@savecontext/dashboard 0.1.22 → 0.1.23
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/.next/standalone/dashboard/.next/BUILD_ID +1 -1
- package/.next/standalone/dashboard/.next/app-path-routes-manifest.json +27 -27
- package/.next/standalone/dashboard/.next/build-manifest.json +2 -2
- package/.next/standalone/dashboard/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.html +17 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/checkpoints/[id]/items/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/checkpoints/[id]/items/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/checkpoints/[id]/items/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/delete/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/delete/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/delete/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/update/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/update/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/context/update/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/create/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/delete/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/list/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/list/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/list/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/subtasks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/issues/update/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/memory/delete/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/memory/list/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/memory/list/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/memory/list/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/memory/save/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/create/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/delete/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/list/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/list/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/list/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/plans/update/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/[id]/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/projects/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/projects/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/stats/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/stats/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/stats/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/status/route.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/status/route.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/api/sessions/[id]/status/route_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/[id]/page.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/[id]/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/page.js +2 -2
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/checkpoints/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/issues/page.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/issues/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/issues/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/memory/page.js +2 -2
- package/.next/standalone/dashboard/.next/server/app/dashboard/memory/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/memory/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/page.js +3 -3
- package/.next/standalone/dashboard/.next/server/app/dashboard/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/plans/page.js +2 -2
- package/.next/standalone/dashboard/.next/server/app/dashboard/plans/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/plans/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/[id]/page.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/[id]/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/page.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/page.js.nft.json +1 -1
- package/.next/standalone/dashboard/.next/server/app/dashboard/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.html +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/dashboard/.next/server/app-paths-manifest.json +27 -27
- package/.next/standalone/dashboard/.next/server/chunks/848.js +1 -1
- package/.next/standalone/dashboard/.next/server/pages/404.html +17 -1
- package/.next/standalone/dashboard/.next/server/pages/500.html +2 -2
- package/.next/standalone/dashboard/.next/static/chunks/{3358-27a1941db2941343.js → 3358-be1dcb412e5a5840.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/{5602-66df072f21a844c9.js → 5602-de6be5d495e39d30.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/{6736-41f13829c40765d8.js → 6736-2e5d92a3f8a9a938.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/checkpoints/{page-4b30b30c441a24c8.js → page-69c93b249f9f09f9.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/issues/page-b176cdca78e8145d.js +1 -0
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/memory/{page-5b92aff45809fc6f.js → page-ffbe55f2b5b3a1a4.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/{page-8403ee5d448ed5a7.js → page-e7dfa69451ac3cf4.js} +2 -2
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/plans/{page-5203a84d31f5998c.js → page-aa014387d68c52ed.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/sessions/[id]/{page-094d2405b39c79d3.js → page-1acf5db28461761f.js} +1 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/sessions/page-bce106da597ef37a.js +1 -0
- package/.next/standalone/dashboard/package.json +7 -8
- package/.next/standalone/package.json +1 -1
- package/README.md +3 -5
- package/bin/savecontext-dashboard.js +6 -5
- package/package.json +7 -8
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/issues/page-8595961148b9e336.js +0 -1
- package/.next/standalone/dashboard/.next/static/chunks/app/dashboard/sessions/page-a6e839598a743003.js +0 -1
- /package/.next/standalone/dashboard/.next/static/{iXCD4qusgLaFdlD22YBUR → fvTz_10g1TFWYx7umMYkL}/_buildManifest.js +0 -0
- /package/.next/standalone/dashboard/.next/static/{iXCD4qusgLaFdlD22YBUR → fvTz_10g1TFWYx7umMYkL}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/dashboard/checkpoints/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"607":{"*":{"id":"14289","name":"*","chunks":[],"async":false}},"632":{"*":{"id":"86730","name":"*","chunks":[],"async":false}},"808":{"*":{"id":"46850","name":"*","chunks":[],"async":false}},"1599":{"*":{"id":"63955","name":"*","chunks":[],"async":false}},"1770":{"*":{"id":"34344","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"56925","name":"*","chunks":[],"async":false}},"2054":{"*":{"id":"288","name":"*","chunks":[],"async":false}},"3304":{"*":{"id":"14268","name":"*","chunks":[],"async":false}},"3628":{"*":{"id":"18510","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"44177","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"62036","name":"*","chunks":[],"async":false}},"5389":{"*":{"id":"1360","name":"*","chunks":[],"async":false}},"5807":{"*":{"id":"71235","name":"*","chunks":[],"async":false}},"6045":{"*":{"id":"16953","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"8241","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"16429","name":"*","chunks":[],"async":false}},"6654":{"*":{"id":"11976","name":"*","chunks":[],"async":false}},"7545":{"*":{"id":"44619","name":"*","chunks":[],"async":false}},"8361":{"*":{"id":"83334","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"44428","name":"*","chunks":[],"async":false}},"8602":{"*":{"id":"71815","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"16472","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"36506","name":"*","chunks":[],"async":false}},"9997":{"*":{"id":"17816","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":9160,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":9160,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/client-page.js":{"id":6281,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":6281,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/client-segment.js":{"id":1987,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":1987,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4456,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4456,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/layout-router.js":{"id":8572,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":8572,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1770,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1770,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/framework/boundary-components.js":{"id":3961,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":3961,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":9100,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":9100,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/providers/theme-provider.tsx":{"id":6045,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\"}],\"variableName\":\"inter\"}":{"id":8313,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/globals.css":{"id":7232,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/dashboard-shell.tsx":{"id":6654,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","7306","static/chunks/7306-029b4a3ee81879be.js","1954","static/chunks/app/dashboard/layout-9595c9185ebc25d2.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-filters.tsx":{"id":5389,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","1497","static/chunks/app/dashboard/checkpoints/page-4b30b30c441a24c8.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/ui/local-date.tsx":{"id":2054,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","1497","static/chunks/app/dashboard/checkpoints/page-4b30b30c441a24c8.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/app-dir/link.js":{"id":6253,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","1497","static/chunks/app/dashboard/checkpoints/page-4b30b30c441a24c8.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/app-dir/link.js":{"id":6253,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","1497","static/chunks/app/dashboard/checkpoints/page-4b30b30c441a24c8.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/plans-client.tsx":{"id":632,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/issues-client.tsx":{"id":7545,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/context-item-card.tsx":{"id":3304,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/active-agents-section.tsx":{"id":607,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/checkpoint-list.tsx":{"id":1599,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/context-items-section.tsx":{"id":8602,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-detail-header.tsx":{"id":3628,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/projects/project-card.tsx":{"id":8361,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","7306","static/chunks/7306-029b4a3ee81879be.js","6736","static/chunks/6736-41f13829c40765d8.js","5105","static/chunks/app/dashboard/page-8403ee5d448ed5a7.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/projects/projects-header.tsx":{"id":808,"name":"*","chunks":["3358","static/chunks/3358-27a1941db2941343.js","7306","static/chunks/7306-029b4a3ee81879be.js","6736","static/chunks/6736-41f13829c40765d8.js","5105","static/chunks/app/dashboard/page-8403ee5d448ed5a7.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/memory-client.tsx":{"id":9997,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-card-content.tsx":{"id":5807,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/layout":[{"inlined":false,"path":"static/css/081a0afca5a9bd20.css"},{"inlined":false,"path":"static/css/c16512ce6b93e2df.css"}],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/page":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/layout":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/page":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/checkpoints/page":[]},"rscModuleMapping":{"607":{"*":{"id":"14171","name":"*","chunks":[],"async":false}},"632":{"*":{"id":"82506","name":"*","chunks":[],"async":false}},"808":{"*":{"id":"8758","name":"*","chunks":[],"async":false}},"1599":{"*":{"id":"64199","name":"*","chunks":[],"async":false}},"1770":{"*":{"id":"16826","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"12583","name":"*","chunks":[],"async":false}},"2054":{"*":{"id":"10318","name":"*","chunks":[],"async":false}},"3304":{"*":{"id":"84358","name":"*","chunks":[],"async":false}},"3628":{"*":{"id":"28828","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"39647","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"41770","name":"*","chunks":[],"async":false}},"5389":{"*":{"id":"26686","name":"*","chunks":[],"async":false}},"5807":{"*":{"id":"9953","name":"*","chunks":[],"async":false}},"6045":{"*":{"id":"17823","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"38895","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"52043","name":"*","chunks":[],"async":false}},"6654":{"*":{"id":"91013","name":"*","chunks":[],"async":false}},"7232":{"*":{"id":"94677","name":"*","chunks":[],"async":false}},"7545":{"*":{"id":"45540","name":"*","chunks":[],"async":false}},"8361":{"*":{"id":"18114","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"6686","name":"*","chunks":[],"async":false}},"8602":{"*":{"id":"43316","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"68842","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"71488","name":"*","chunks":[],"async":false}},"9997":{"*":{"id":"32031","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"1770":{"*":{"id":"34344","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"56925","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"44177","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"62036","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"8241","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"16429","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"44428","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"16472","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"36506","name":"*","chunks":[],"async":false}}}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/dashboard/checkpoints/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"607":{"*":{"id":"14289","name":"*","chunks":[],"async":false}},"632":{"*":{"id":"86730","name":"*","chunks":[],"async":false}},"808":{"*":{"id":"46850","name":"*","chunks":[],"async":false}},"1599":{"*":{"id":"63955","name":"*","chunks":[],"async":false}},"1770":{"*":{"id":"34344","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"56925","name":"*","chunks":[],"async":false}},"2054":{"*":{"id":"288","name":"*","chunks":[],"async":false}},"2532":{"*":{"id":"1360","name":"*","chunks":[],"async":false}},"3304":{"*":{"id":"14268","name":"*","chunks":[],"async":false}},"3628":{"*":{"id":"18510","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"44177","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"62036","name":"*","chunks":[],"async":false}},"5807":{"*":{"id":"71235","name":"*","chunks":[],"async":false}},"6045":{"*":{"id":"16953","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"8241","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"16429","name":"*","chunks":[],"async":false}},"6654":{"*":{"id":"11976","name":"*","chunks":[],"async":false}},"7545":{"*":{"id":"44619","name":"*","chunks":[],"async":false}},"8361":{"*":{"id":"83334","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"44428","name":"*","chunks":[],"async":false}},"8602":{"*":{"id":"71815","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"16472","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"36506","name":"*","chunks":[],"async":false}},"9997":{"*":{"id":"17816","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":9160,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":9160,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/client-page.js":{"id":6281,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":6281,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/client-segment.js":{"id":1987,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":1987,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4456,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4456,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/layout-router.js":{"id":8572,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":8572,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1770,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1770,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/framework/boundary-components.js":{"id":3961,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":3961,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":9100,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":9100,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/providers/theme-provider.tsx":{"id":6045,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\"}],\"variableName\":\"inter\"}":{"id":8313,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/globals.css":{"id":7232,"name":"*","chunks":["7177","static/chunks/app/layout-42e7e1064f322650.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/dashboard-shell.tsx":{"id":6654,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","7306","static/chunks/7306-029b4a3ee81879be.js","1954","static/chunks/app/dashboard/layout-9595c9185ebc25d2.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-filters.tsx":{"id":2532,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","1497","static/chunks/app/dashboard/checkpoints/page-69c93b249f9f09f9.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/ui/local-date.tsx":{"id":2054,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","1497","static/chunks/app/dashboard/checkpoints/page-69c93b249f9f09f9.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/app-dir/link.js":{"id":6253,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","1497","static/chunks/app/dashboard/checkpoints/page-69c93b249f9f09f9.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/esm/client/app-dir/link.js":{"id":6253,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","1497","static/chunks/app/dashboard/checkpoints/page-69c93b249f9f09f9.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/projects/project-card.tsx":{"id":8361,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","7306","static/chunks/7306-029b4a3ee81879be.js","6736","static/chunks/6736-2e5d92a3f8a9a938.js","5105","static/chunks/app/dashboard/page-e7dfa69451ac3cf4.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/projects/projects-header.tsx":{"id":808,"name":"*","chunks":["3358","static/chunks/3358-be1dcb412e5a5840.js","7306","static/chunks/7306-029b4a3ee81879be.js","6736","static/chunks/6736-2e5d92a3f8a9a938.js","5105","static/chunks/app/dashboard/page-e7dfa69451ac3cf4.js"],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/memory-client.tsx":{"id":9997,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/context-item-card.tsx":{"id":3304,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-card-content.tsx":{"id":5807,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/active-agents-section.tsx":{"id":607,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/checkpoint-list.tsx":{"id":1599,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/context-items-section.tsx":{"id":8602,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/session-detail-header.tsx":{"id":3628,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/issues-client.tsx":{"id":7545,"name":"*","chunks":[],"async":false},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/plans-client.tsx":{"id":632,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/layout":[{"inlined":false,"path":"static/css/081a0afca5a9bd20.css"},{"inlined":false,"path":"static/css/c16512ce6b93e2df.css"}],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/page":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/layout":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/page":[],"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/checkpoints/page":[]},"rscModuleMapping":{"607":{"*":{"id":"14171","name":"*","chunks":[],"async":false}},"632":{"*":{"id":"82506","name":"*","chunks":[],"async":false}},"808":{"*":{"id":"8758","name":"*","chunks":[],"async":false}},"1599":{"*":{"id":"64199","name":"*","chunks":[],"async":false}},"1770":{"*":{"id":"16826","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"12583","name":"*","chunks":[],"async":false}},"2054":{"*":{"id":"10318","name":"*","chunks":[],"async":false}},"2532":{"*":{"id":"26686","name":"*","chunks":[],"async":false}},"3304":{"*":{"id":"84358","name":"*","chunks":[],"async":false}},"3628":{"*":{"id":"28828","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"39647","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"41770","name":"*","chunks":[],"async":false}},"5807":{"*":{"id":"9953","name":"*","chunks":[],"async":false}},"6045":{"*":{"id":"17823","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"38895","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"52043","name":"*","chunks":[],"async":false}},"6654":{"*":{"id":"91013","name":"*","chunks":[],"async":false}},"7232":{"*":{"id":"94677","name":"*","chunks":[],"async":false}},"7545":{"*":{"id":"45540","name":"*","chunks":[],"async":false}},"8361":{"*":{"id":"18114","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"6686","name":"*","chunks":[],"async":false}},"8602":{"*":{"id":"43316","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"68842","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"71488","name":"*","chunks":[],"async":false}},"9997":{"*":{"id":"32031","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"1770":{"*":{"id":"34344","name":"*","chunks":[],"async":false}},"1987":{"*":{"id":"56925","name":"*","chunks":[],"async":false}},"3961":{"*":{"id":"44177","name":"*","chunks":[],"async":false}},"4456":{"*":{"id":"62036","name":"*","chunks":[],"async":false}},"6253":{"*":{"id":"8241","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"16429","name":"*","chunks":[],"async":false}},"8572":{"*":{"id":"44428","name":"*","chunks":[],"async":false}},"9100":{"*":{"id":"16472","name":"*","chunks":[],"async":false}},"9160":{"*":{"id":"36506","name":"*","chunks":[],"async":false}}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(()=>{var a={};a.id=954,a.ids=[954],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5759:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>C.a,__next_app__:()=>K,handler:()=>M,routeModule:()=>L});var d=c(28748),e=c(30291),f=c(36573),g=c(78954),h=c(92772),i=c(15742),j=c(7925),k=c(27782),l=c(8748),m=c(94638),n=c(10960),o=c(94486),p=c(56291),q=c(261),r=c(25479),s=c(87500),t=c(26713),u=c(3438),v=c(52243),w=c(20823),x=c(23056),y=c(12904),z=c(75008),A=c(86439),B=c(71488),C=c.n(B),D=c(96868),E=c(72461),F=c(70722),G=c(30044),H=c(43954),I={};for(let a in D)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(I[a]=()=>D[a]);c.d(b,I);let J={children:["",{children:["dashboard",{children:["issues",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,57125)),"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/issues/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,44293)),"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/dashboard/layout.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,98838))).default(a),async a=>(await Promise.resolve().then(c.bind(c,64633))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,62272))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,53522)),"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,71488,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,7702,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,51919,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,54706,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,98838))).default(a),async a=>(await Promise.resolve().then(c.bind(c,64633))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,62272))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]}.children,K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/dashboard/issues/page",pathname:"/dashboard/issues",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:J},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var B;L.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let I=!!(0,h.getRequestMeta)(a,"minimalMode"),N="/dashboard/issues/page";"/index"===N&&(N="/");let O=await L.prepare(a,b,{srcPage:N,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,pageIsDynamic:S,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,serverActionsManifest:W,clientReferenceManifest:X,subresourceIntegrityManifest:Y,prerenderManifest:Z,isDraftMode:$,resolvedPathname:_,revalidateOnlyGenerated:aa,routerServerContext:ab,nextConfig:ac,parsedUrl:ad,interceptionRoutePatterns:ae,deploymentId:af}=O,ag=(0,q.normalizeAppPath)(N),{isOnDemandRevalidate:ah}=O,ai=ac.experimental.ppr&&!ac.cacheComponents&&(0,H.isInterceptionRouteAppPath)(_)?null:L.match(_,Z),aj=!!Z.routes[_],ak=a.headers["user-agent"]||"",al=(0,t.getBotType)(ak),am=(0,p.isHtmlBotRequest)(a),an=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ao=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ap=(0,r.getIsPossibleServerAction)(a),aq=(0,m.checkIsAppPPREnabled)(ac.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&aq&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let ar=aq&&(null==(B=Z.routes[ag]??Z.dynamicRoutes[ag])?void 0:B.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?(0,h.getRequestMeta)(a,"postponed"):void 0,av=ar&&ao&&!an;I&&(av=av&&!!au);let aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=(!am||!ar)&&(!ak||(0,p.shouldServeStreamingMetadata)(ak,ac.htmlLimitedBots)),ay=!!((ai||aj||Z.routes[ag])&&!(am&&ar)),az=ar&&!0===ac.cacheComponents,aA=!0===L.isDev||!ay||"string"==typeof au||(az&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?av&&!I:av),aB=am&&ar,aC=null;$||!ay||aA||ap||au||av||(aC=_);let aD=aC;!aD&&L.isDev&&(aD=_),L.isDev||$||!ay||!ao||av||(0,k.d)(a.headers);let aE={...D,tree:J,GlobalError:C(),handler:M,routeModule:L,__next_app__:K};W&&X&&(0,o.setManifestsSingleton)({page:N,clientReferenceManifest:X,serverActionsManifest:W});let aF=a.method||"GET",aG=(0,g.getTracer)(),aH=aG.getActiveScopeSpan(),aI=async()=>((null==ab?void 0:ab.render404)?await ab.render404(a,b,ad,!1):b.end("This page could not be found"),null);try{let f=L.getVaryHeader(_,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aG.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aF} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aF} ${N}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aE,Component:(0,j.T)(aE),params:R,routeModule:L,page:N,postponed:f,shouldWaitOnAllReady:aB,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||aA,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,subresourceIntegrityManifest:Y,setCacheStatus:null==ab?void 0:ab.setCacheStatus,setIsrStatus:null==ab?void 0:ab.setIsrStatus,setReactDebugChannel:null==ab?void 0:ab.setReactDebugChannel,sendErrorsToBrowser:null==ab?void 0:ab.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:$,botType:al,isOnDemandRevalidate:ah,isPossibleServerAction:ap,assetPrefix:ac.assetPrefix,nextConfigOutput:ac.output,crossOrigin:ac.crossOrigin,trailingSlash:ac.trailingSlash,images:ac.images,previewProps:Z.preview,deploymentId:af,enableTainting:ac.experimental.taint,htmlLimitedBots:ac.htmlLimitedBots,reactMaxHeadersLength:ac.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ac.cacheLife,basePath:ac.basePath,serverActions:ac.experimental.serverActions,...as||at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:as}:{},cacheComponents:!!ac.cacheComponents,experimental:{isRoutePPREnabled:ar,expireTime:ac.expireTime,staleTimes:ac.experimental.staleTimes,dynamicOnHover:!!ac.experimental.dynamicOnHover,inlineCss:!!ac.experimental.inlineCss,authInterrupts:!!ac.experimental.authInterrupts,clientTraceMetadata:ac.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ac.experimental.clientParamParsingOrigins},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>L.onRequestError(a,b,d,e,ab),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}};as&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=as),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,ay&&(null==p?void 0:p.revalidate)===0&&!L.isDev&&!ar){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${_}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
|
-
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ah&&aa&&!f&&!I)return(null==ab?void 0:ab.render404)?await ab.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(k=(0,v.parseFallbackField)(ai.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(ak)&&(!ar||am)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!I&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!q&&!$&&S&&(l||!aj)){if((l||ai)&&k===v.FallbackMode.NOT_FOUND){if(ac.experimental.adapterPath)return await aI();throw new A.NoFallbackError}if(ar&&(ac.cacheComponents?!av:!ao)){let b=l&&"string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:ag,c=l&&(null==ai?void 0:ai.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ac,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:Z,isRoutePPREnabled:ar,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:I});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ah||g||!au?void 0:au;if(az&&!I&&m&&av&&!j){let b=await m.get(_,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(_,m,ar,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(as&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==ai?void 0:ai.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aC,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ac,prerenderManifest:Z,waitUntil:d.waitUntil,isMinimalMode:I});if($&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ay&&!av&&(!n||an)&&(I||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(au)l={revalidate:0,expire:void 0};else if(av)l={revalidate:0,expire:void 0};else if(!L.isDev)if($)l={revalidate:0,expire:void 0};else if(ay){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ac.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];I&&ay&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=az?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(I&&ay||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(I&&ay&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ao&&ar||(b.statusCode=q.status),!I&&q.status&&E.RedirectStatusCode[q.status]&&ao&&(b.statusCode=200),n&&!av&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ao&&!$){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ac.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||I||ao)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:m.cacheControl});if(as)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(i.BaseServerSpan.handleRequest,{spanName:`${aF} ${N}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},q));await q(aH)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:N,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:ay,isOnDemandRevalidate:ah})},!1,ab),b}}},8077:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18750:(a,b,c)=>{Promise.resolve().then(c.bind(c,44619))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},22612:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},24183:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},28525:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},28812:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43085:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},44619:(a,b,c)=>{"use strict";c.d(b,{IssuesClient:()=>_});var d=c(370),e=c(11499),f=c(30114),g=c(86565),h=c(55790),i=c(22612),j=c(27975);let k=(0,j.A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var l=c(7928),m=c(89443),n=c(98194),o=c(86887),p=c(56112),q=c(8077),r=c(78615),s=c(96409),t=c(81313),u=c(85665),v=c(60145);let w=(0,j.A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var x=c(44991),y=c(37068),z=c(64217),A=c(43085),B=c(28812);let C=(0,j.A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var D=c(24183),E=c(28525),F=c(8241),G=c.n(F),H=c(43145),I=c(94310),J=c(63188),K=c(87623),L=c(54295);function M({completed:a,total:b,size:c=16,strokeWidth:e=2,className:f=""}){if(0===b)return null;let g=b>0?a/b*100:0,h=a===b,i=(c-e)/2,j=2*Math.PI*i,k=h?"stroke-emerald-500":a>0?"stroke-blue-500":"stroke-zinc-300 dark:stroke-zinc-600";return(0,d.jsxs)("div",{className:`flex items-center gap-1.5 ${f}`,children:[(0,d.jsxs)("svg",{width:c,height:c,className:"transform -rotate-90",children:[(0,d.jsx)("circle",{cx:c/2,cy:c/2,r:i,fill:"none",strokeWidth:e,className:"stroke-zinc-200 dark:stroke-zinc-700"}),(0,d.jsx)("circle",{cx:c/2,cy:c/2,r:i,fill:"none",strokeWidth:e,strokeLinecap:"round",strokeDasharray:j,strokeDashoffset:j-g/100*j,className:`${k} transition-all duration-300`})]}),(0,d.jsxs)("span",{className:`text-xs tabular-nums ${h?"text-emerald-600 dark:text-emerald-400":"text-zinc-500"}`,children:[a,"/",b]})]})}function N({priority:a,className:b=""}){let c=4===a?"fill-orange-500":"fill-zinc-500 dark:fill-zinc-400",e="fill-zinc-200 dark:fill-zinc-700";return(0,d.jsxs)("svg",{className:`h-4 w-4 ${b}`,viewBox:"0 0 16 16",fill:"none",children:[(0,d.jsx)("rect",{x:"3",y:"2",width:"10",height:"2",rx:"0.5",className:a>=4?c:e}),(0,d.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"2",rx:"0.5",className:a>=3?c:e}),(0,d.jsx)("rect",{x:"3",y:"9",width:"10",height:"2",rx:"0.5",className:a>=2?c:e}),(0,d.jsx)("rect",{x:"3",y:"12.5",width:"10",height:"2",rx:"0.5",className:a>=1?c:e})]})}let O=[{value:"open",label:"Open",icon:(0,d.jsx)(g.A,{className:"h-4 w-4",strokeWidth:2}),color:"text-zinc-400"},{value:"in_progress",label:"In Progress",icon:(0,d.jsx)("div",{className:"h-4 w-4 rounded-full border-2 border-yellow-500 border-r-transparent"}),color:"text-yellow-500"},{value:"blocked",label:"Blocked",icon:(0,d.jsx)(h.A,{className:"h-4 w-4"}),color:"text-red-500"},{value:"closed",label:"Closed",icon:(0,d.jsx)(i.A,{className:"h-4 w-4"}),color:"text-blue-500"},{value:"deferred",label:"Deferred",icon:(0,d.jsx)(k,{className:"h-4 w-4"}),color:"text-zinc-400"}],P=Object.fromEntries(O.map(a=>[a.value,a])),Q=O[0],R=[{value:0,label:"No priority"},{value:4,label:"Urgent"},{value:3,label:"High"},{value:2,label:"Medium"},{value:1,label:"Low"}],S=[{value:"task",label:"Task",icon:(0,d.jsx)(l.A,{className:"h-4 w-4"}),color:"text-zinc-400"},{value:"bug",label:"Bug",icon:(0,d.jsx)(m.A,{className:"h-4 w-4"}),color:"text-red-500"},{value:"feature",label:"Feature",icon:(0,d.jsx)(n.A,{className:"h-4 w-4"}),color:"text-violet-500"},{value:"epic",label:"Epic",icon:(0,d.jsx)(o.A,{className:"h-4 w-4"}),color:"text-indigo-500"},{value:"chore",label:"Chore",icon:(0,d.jsx)(p.A,{className:"h-4 w-4"}),color:"text-zinc-400"}],T=Object.fromEntries(S.map(a=>[a.value,a]));function U({trigger:a,options:b,value:c,onChange:g,renderOption:h,className:i=""}){let[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)({top:0,left:0}),p=(0,e.useRef)(null),r=(0,e.useRef)(null),s=j&&l&&(0,d.jsx)("div",{ref:r,className:"fixed z-99999 min-w-[200px] rounded-lg border border-zinc-200 bg-white py-1 shadow-lg dark:border-zinc-700 dark:bg-zinc-800",style:{top:n.top,left:n.left},children:b.map(a=>(0,d.jsxs)("button",{onClick:b=>{b.stopPropagation(),g(a.value),k(!1)},className:"w-full px-3 py-1.5 text-left text-sm hover:bg-zinc-100 dark:hover:bg-zinc-700 flex items-center justify-between",children:[h(a,a.value===c),a.value===c&&(0,d.jsx)(q.A,{className:"h-4 w-4 text-zinc-500"})]},String(a.value)))});return(0,d.jsxs)("div",{className:`relative ${i}`,children:[(0,d.jsx)("button",{ref:p,onClick:a=>{a.stopPropagation(),k(!j)},className:"flex items-center",children:a}),l&&(0,f.createPortal)(s,document.body)]})}function V({value:a,onChange:b,size:c="sm"}){let e=P[a]||Q;return(0,d.jsx)(U,{trigger:(0,d.jsx)("span",{className:`${e.color} hover:opacity-70 transition-opacity`,children:"sm"===c?(0,d.jsx)("span",{className:"sm"===c?"h-[14px] w-[14px]":"h-4 w-4",children:e.icon}):(0,d.jsxs)("span",{className:`flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 ${e.color}`,children:[e.icon,(0,d.jsx)("span",{className:"text-sm",children:e.label}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]})}),options:O,value:a,onChange:b,renderOption:a=>{let b=P[a.value]||Q;return(0,d.jsxs)("span",{className:`flex items-center gap-2 ${b.color}`,children:[b.icon,(0,d.jsx)("span",{children:a.label})]})}})}function W({value:a,onChange:b,size:c="sm"}){let e=R.find(b=>b.value===a)?.label||"No priority";return(0,d.jsx)(U,{trigger:"sm"===c?(0,d.jsx)("span",{className:"hover:opacity-70 transition-opacity",children:(0,d.jsx)(N,{priority:a})}):(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300",children:[(0,d.jsx)(N,{priority:a}),(0,d.jsx)("span",{className:"text-sm",children:e}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]}),options:R,value:a,onChange:b,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)(N,{priority:a.value}),(0,d.jsx)("span",{className:4===a.value?"text-orange-500":"",children:a.label})]})})}function X({value:a,onChange:b}){let c=T[a]||S[0];return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:`flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 ${c.color}`,children:[c.icon,(0,d.jsx)("span",{className:"text-sm",children:c.label}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]}),options:S,value:a,onChange:b,renderOption:a=>{let b=T[a.value];return(0,d.jsxs)("span",{className:`flex items-center gap-2 ${b?.color}`,children:[b?.icon,(0,d.jsx)("span",{children:a.label})]})}})}function Y({value:a,onChange:b,projects:c}){let e=c.map(a=>({value:a.project_path,label:a.name||a.project_path.split("/").pop()||a.project_path})),f=e.find(b=>b.value===a)?.label||"Project";return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 shrink-0"}),(0,d.jsx)("span",{className:"text-sm truncate max-w-[150px]",children:f}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400 shrink-0"})]}),options:e,value:a,onChange:b,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.label})]})})}function Z({projects:a,currentProjectPath:b,additionalPaths:c,onAdd:e}){let f=new Set([b,...c]),g=a.filter(a=>!f.has(a.project_path));if(0===g.length)return null;let h=g.map(a=>({value:a.project_path,label:a.name||a.project_path.split("/").pop()||a.project_path}));return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:"flex items-center gap-1 px-2 py-1 rounded-md border border-dashed border-zinc-300 dark:border-zinc-600 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-500 dark:text-zinc-400 text-sm",children:[(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Add"})]}),options:h,value:"",onChange:e,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.label})]})})}function $({issue:a,typeConfig:b,onClose:c,onUpdate:f,onSubtaskCreated:h,projects:j}){let[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(!1),[o,p]=(0,e.useState)(!1),[q,E]=(0,e.useState)(a.title),[F,J]=(0,e.useState)(a.description||""),[L,N]=(0,e.useState)(a.details||""),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)(""),[S,T]=(0,e.useState)([]),[U,X]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[aa,ab]=(0,e.useState)([]),[ac,ad]=(0,e.useState)(null),[ae,af]=(0,e.useState)(null),[ag,ah]=(0,e.useState)(""),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)(!1),[am,an]=(0,e.useState)({}),[ao,ap]=(0,e.useState)({}),[aq,ar]=(0,e.useState)(null),[as,at]=(0,e.useState)(""),[au,av]=(0,e.useState)(!1),[aw,ax]=(0,e.useState)(null),[ay,az]=(0,e.useState)(!1),[aA,aB]=(0,e.useState)([]),[aC,aD]=(0,e.useState)(null),[aE,aF]=(0,e.useState)(!1),[aG,aH]=(0,e.useState)([]),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(!1),[aM,aN]=(0,e.useState)(!1),aO=async(b,c)=>{T(a=>a.map(a=>a.id===b?{...a,...c}:a));try{if(!(await fetch("/api/issues/update",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:b,...c})})).ok){let b=await fetch(`/api/issues/subtasks?parentId=${a.id}`),c=await b.json();c.success&&T(c.issues||[])}}catch(a){console.error("Failed to update subtask:",a)}},aP=(a,b,c)=>{af({id:a,field:b}),ah(c||"")},aQ=()=>{if(!ae)return;let{id:a,field:b}=ae;aO(a,{[b]:ag}),af(null),ah("")},aR=async()=>{if(ai)try{let a=new URLSearchParams({id:ai});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(T(a=>a.filter(a=>a.id!==ai)),al(!1),aj(null),h())}catch(a){console.error("Failed to delete subtask:",a)}},aS=async()=>{if(aw)try{let a=new URLSearchParams({id:aw.id});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(an(a=>({...a,[aw.parentId]:a[aw.parentId].filter(a=>a.id!==aw.id)})),az(!1),ax(null),h())}catch(a){console.error("Failed to delete child:",a)}},aT=async()=>{if(Q.trim()){_(!0);try{if((await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:a.project_path,title:Q.trim(),parentId:a.id,status:"open",priority:0,issueType:"task",dependsOn:aa.length>0?aa:void 0})})).ok){R(""),P(!1),ab([]);let b=await fetch(`/api/issues/subtasks?parentId=${a.id}`),c=await b.json();c.success&&T(c.issues||[]),h()}}catch(a){console.error("Failed to create subtask:",a)}finally{_(!1)}}},aU=async b=>{if(as.trim()){av(!0);try{if((await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:a.project_path,title:as.trim(),parentId:b,status:"open",priority:0,issueType:"task",dependsOn:aA.length>0?aA:void 0})})).ok){at(""),ar(null),aB([]);let a=await fetch(`/api/issues/subtasks?parentId=${b}`),c=await a.json();c.success&&an(a=>({...a,[b]:c.issues||[]})),h()}}catch(a){console.error("Failed to create subtask:",a)}finally{av(!1)}}},aV=()=>{q.trim()&&q!==a.title&&f({title:q.trim()}),l(!1)};return(0,d.jsxs)("div",{className:"rounded-lg border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 p-6 space-y-6",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"space-y-1 min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[(0,d.jsx)("span",{className:"font-mono",children:a.short_id||a.id.slice(0,6)}),(0,d.jsx)("span",{children:"\xb7"}),(0,d.jsx)("span",{className:b.color,children:b.label})]}),k?(0,d.jsx)("input",{type:"text",value:q,onChange:a=>E(a.target.value),onBlur:aV,onKeyDown:b=>{"Enter"===b.key&&aV(),"Escape"===b.key&&(E(a.title),l(!1))},autoFocus:!0,className:"w-full text-lg font-semibold text-zinc-900 dark:text-zinc-100 bg-transparent border-b border-zinc-300 dark:border-zinc-600 outline-none focus:border-zinc-500"}):(0,d.jsx)("h2",{onClick:()=>l(!0),className:"text-lg font-semibold text-zinc-900 dark:text-zinc-100 cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-1 -mx-1",children:a.title})]}),(0,d.jsx)("button",{onClick:c,className:"p-1 rounded text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 dark:hover:text-zinc-300 dark:hover:bg-zinc-700",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(aC||a.parent)&&(0,d.jsxs)("div",{className:"flex items-center gap-1 text-xs text-zinc-500 dark:text-zinc-400 bg-zinc-50 dark:bg-zinc-800/50 rounded-lg px-3 py-2",children:[(0,d.jsx)(v.A,{className:"h-3.5 w-3.5 text-zinc-400"}),(0,d.jsx)("span",{className:"text-zinc-400",children:a.project_path?.split("/").pop()}),aC&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w,{className:"h-3 w-3 text-zinc-300"}),(0,d.jsxs)(G(),{href:`/dashboard/plans?id=${aC.id}`,className:"flex items-center gap-1 hover:text-zinc-700 dark:hover:text-zinc-200",children:[(0,d.jsx)(x.A,{className:"h-3.5 w-3.5"}),aC.title]})]}),a.parent&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w,{className:"h-3 w-3 text-zinc-300"}),(0,d.jsxs)("span",{className:"text-zinc-500 dark:text-zinc-400",children:["Subtask of ",a.parent.title]})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(V,{value:a.status,onChange:a=>f({status:a}),size:"md"}),(0,d.jsx)(W,{value:a.priority,onChange:a=>f({priority:a}),size:"md"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400 mb-2 block",children:"Projects"}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 items-center",children:[(0,d.jsx)(Y,{value:a.project_path,onChange:a=>f({project_path:a}),projects:j}),a.additional_project_paths&&a.additional_project_paths.length>0&&a.additional_project_paths.map(a=>(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300 text-sm",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate max-w-[150px]",children:a.split("/").pop()}),(0,d.jsx)("button",{onClick:()=>f({remove_project_path:a}),className:"text-zinc-400 hover:text-red-500",title:"Remove from issue",children:(0,d.jsx)(u.A,{className:"h-3.5 w-3.5"})})]},a)),(0,d.jsx)(Z,{projects:j,currentProjectPath:a.project_path,additionalPaths:a.additional_project_paths||[],onAdd:a=>f({add_project_path:a})})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Description"}),m?(0,d.jsx)("textarea",{value:F,onChange:a=>J(a.target.value),onBlur:()=>{F!==(a.description||"")&&f({description:F}),n(!1)},onKeyDown:b=>{"Escape"===b.key&&(J(a.description||""),n(!1))},autoFocus:!0,rows:4,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-transparent border border-zinc-200 dark:border-zinc-700 rounded-md p-2 outline-none focus:border-zinc-400 resize-none",placeholder:"Add a description..."}):(0,d.jsx)("div",{onClick:()=>n(!0),className:"mt-1 text-sm cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-8",children:a.description?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.description})}):(0,d.jsx)("p",{className:"text-zinc-400 italic",children:"Add a description..."})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[(0,d.jsxs)("button",{onClick:()=>aN(!aM),className:"flex items-center gap-2 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300 w-full",children:[(0,d.jsx)(x.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Implementation Details"}),a.details&&(0,d.jsxs)("span",{className:"text-zinc-400",children:["(",a.details.length," chars)"]}),(0,d.jsx)(r.A,{className:`h-3 w-3 ml-auto transition-transform ${aM?"rotate-180":""}`})]}),aM&&(0,d.jsx)("div",{className:"mt-3",children:o?(0,d.jsx)("textarea",{value:L,onChange:a=>N(a.target.value),onBlur:()=>{L!==(a.details||"")&&f({details:L}),p(!1)},onKeyDown:b=>{"Escape"===b.key&&(N(a.details||""),p(!1))},autoFocus:!0,rows:6,className:"w-full text-sm text-zinc-600 dark:text-zinc-400 bg-transparent border border-zinc-200 dark:border-zinc-700 rounded-md p-2 outline-none focus:border-zinc-400 resize-none font-mono",placeholder:"Add implementation details..."}):(0,d.jsx)("div",{onClick:()=>p(!0),className:"text-sm cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-8",children:a.details?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.details})}):(0,d.jsx)("p",{className:"text-zinc-400 italic",children:"Add implementation details..."})})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[S.length>0&&(0,d.jsx)("div",{className:"mb-3 space-y-1",children:S.map(a=>{let b=ac===a.id;return(0,d.jsxs)("div",{className:"group/subtask border border-zinc-100 dark:border-zinc-800 rounded-lg overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 cursor-pointer",onClick:()=>ad(b?null:a.id),children:[(0,d.jsx)("div",{onClick:a=>a.stopPropagation(),children:(0,d.jsx)(V,{value:a.status,onChange:b=>aO(a.id,{status:b}),size:"sm"})}),(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:a.short_id}),(0,d.jsx)("span",{className:`text-sm flex-1 ${"closed"===a.status?"text-zinc-400 line-through":"text-zinc-700 dark:text-zinc-300"}`,children:a.title}),(0,d.jsx)(M,{completed:a.completed_count||0,total:a.child_count||0}),(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),aj(a.id),al(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 opacity-0 group-hover/subtask:opacity-100 transition-opacity",children:(0,d.jsx)(y.A,{className:"h-3.5 w-3.5"})}),(0,d.jsx)(r.A,{className:`h-4 w-4 text-zinc-400 transition-transform ${b?"rotate-180":""}`})]}),b&&(0,d.jsxs)("div",{className:"px-3 pb-3 pt-1 space-y-3 border-t border-zinc-100 dark:border-zinc-800 bg-zinc-50/50 dark:bg-zinc-800/30",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Title"}),ae?.id===a.id&&"title"===ae.field?(0,d.jsx)("input",{type:"text",value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Enter"===a.key&&aQ(),"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,className:"w-full mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400"}):(0,d.jsx)("p",{onClick:()=>aP(a.id,"title",a.title),className:"mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100 cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2",children:a.title})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Priority"}),(0,d.jsx)(W,{value:a.priority,onChange:b=>aO(a.id,{priority:b}),size:"sm"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Description"}),ae?.id===a.id&&"description"===ae.field?(0,d.jsx)("textarea",{value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,rows:2,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400 resize-none",placeholder:"Add description..."}):(0,d.jsx)("div",{onClick:()=>aP(a.id,"description",a.description||""),className:"mt-1 text-sm cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-6",children:a.description?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.description})}):(0,d.jsx)("span",{className:"italic text-zinc-400",children:"Add description..."})})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Details"}),ae?.id===a.id&&"details"===ae.field?(0,d.jsx)("textarea",{value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,rows:3,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400 resize-none font-mono",placeholder:"Add implementation details..."}):(0,d.jsx)("div",{onClick:()=>aP(a.id,"details",a.details||""),className:"mt-1 text-sm cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-6",children:a.details?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.details})}):(0,d.jsx)("span",{className:"italic text-zinc-400",children:"Add implementation details..."})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-200 dark:border-zinc-700 pt-3 mt-3",children:[(a.child_count||0)>0&&(0,d.jsxs)("span",{className:"text-xs text-zinc-400 font-medium",children:["Subtasks (",a.child_count,")"]}),ao[a.id]?(0,d.jsx)("p",{className:"text-xs text-zinc-400 mt-2",children:"Loading..."}):am[a.id]?.length>0?(0,d.jsx)("div",{className:"mt-2 space-y-1",children:am[a.id].map(b=>(0,d.jsxs)("div",{className:"group/child flex items-center gap-2 py-1.5 px-2 rounded hover:bg-white dark:hover:bg-zinc-800",children:[(0,d.jsx)(V,{value:b.status,onChange:c=>{an(d=>({...d,[a.id]:d[a.id].map(a=>a.id===b.id?{...a,status:c}:a)})),aO(b.id,{status:c})},size:"sm"}),(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:b.short_id}),(0,d.jsx)("span",{className:`text-xs flex-1 ${"closed"===b.status?"text-zinc-400 line-through":"text-zinc-600 dark:text-zinc-300"}`,children:b.title}),(0,d.jsx)("button",{onClick:c=>{c.stopPropagation(),ax({id:b.id,parentId:a.id}),az(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 opacity-0 group-hover/child:opacity-100 transition-opacity",children:(0,d.jsx)(y.A,{className:"h-3 w-3"})})]},b.id))}):null,aq===a.id?(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(g.A,{className:"h-3.5 w-3.5 text-zinc-300 shrink-0"}),(0,d.jsx)("input",{type:"text",value:as,onChange:a=>at(a.target.value),onKeyDown:b=>{"Enter"===b.key&&as.trim()&&aU(a.id),"Escape"===b.key&&(at(""),ar(null),aB([]))},placeholder:"Subtask title",autoFocus:!0,className:"flex-1 text-xs bg-transparent border-b border-zinc-300 dark:border-zinc-600 outline-none text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400 py-1"})]}),am[a.id]?.length>0&&(0,d.jsxs)("div",{className:"pl-5 space-y-1",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:"Blocked by:"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1",children:am[a.id].filter(a=>"closed"!==a.status).map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{aB(b=>b.includes(a.id)?b.filter(b=>b!==a.id):[...b,a.id])},className:`px-1.5 py-0.5 text-xs rounded border transition-colors ${aA.includes(a.id)?"bg-amber-100 dark:bg-amber-900/30 border-amber-300 dark:border-amber-700 text-amber-700 dark:text-amber-400":"bg-zinc-50 dark:bg-zinc-800 border-zinc-200 dark:border-zinc-700 text-zinc-500 hover:border-zinc-300"}`,children:a.short_id},a.id))})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 pl-5",children:[(0,d.jsx)("button",{onClick:()=>aU(a.id),disabled:!as.trim()||au,className:"px-2 py-0.5 text-xs rounded bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 disabled:opacity-50",children:au?"...":"Add"}),(0,d.jsx)("button",{onClick:()=>{at(""),ar(null),aB([])},className:"text-xs text-zinc-400 hover:text-zinc-600",children:"Cancel"})]})]}):(0,d.jsxs)("button",{onClick:()=>ar(a.id),className:"mt-2 flex items-center gap-1 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:[(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"}),"Add subtask"]})]})]})]},a.id)})}),O?(0,d.jsxs)("div",{className:"border border-zinc-200 dark:border-zinc-700 rounded-lg p-3 space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)(g.A,{className:"h-4 w-4 text-zinc-300 mt-0.5 shrink-0"}),(0,d.jsx)("input",{type:"text",value:Q,onChange:a=>R(a.target.value),onKeyDown:a=>{"Enter"===a.key&&Q.trim()&&aT(),"Escape"===a.key&&(R(""),P(!1),ab([]))},placeholder:"epic"===a.issue_type||"feature"===a.issue_type?"Task title":"Subtask title",autoFocus:!0,className:"flex-1 text-sm bg-transparent border-none outline-none text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400"})]}),S.length>0&&(0,d.jsxs)("div",{className:"space-y-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:"Blocked by (optional):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:S.filter(a=>"closed"!==a.status).map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{ab(b=>b.includes(a.id)?b.filter(b=>b!==a.id):[...b,a.id])},className:`px-2 py-0.5 text-xs rounded border transition-colors ${aa.includes(a.id)?"bg-amber-100 dark:bg-amber-900/30 border-amber-300 dark:border-amber-700 text-amber-700 dark:text-amber-400":"bg-zinc-50 dark:bg-zinc-800 border-zinc-200 dark:border-zinc-700 text-zinc-600 dark:text-zinc-400 hover:border-zinc-300 dark:hover:border-zinc-600"}`,children:a.short_id},a.id))})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)("button",{onClick:()=>{R(""),P(!1),ab([])},className:"px-2 py-1 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:"Cancel"}),(0,d.jsx)("button",{onClick:aT,disabled:!Q.trim()||$,className:"px-3 py-1 text-xs rounded-md bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200 disabled:opacity-50",children:$?"Adding...":"epic"===a.issue_type||"feature"===a.issue_type?"Add task":"Add subtask"})]})]}):(0,d.jsxs)("button",{onClick:()=>P(!0),className:"flex items-center gap-1.5 text-sm text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:[(0,d.jsx)(t.A,{className:"h-4 w-4"}),"epic"===a.issue_type||"feature"===a.issue_type?"Add task":"Add subtask"]})]}),a.labels&&a.labels.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Labels"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-2",children:a.labels.map(a=>(0,d.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400",children:a.label},a.id))})]}),a.dependencies&&a.dependencies.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Blocked by"}),(0,d.jsx)("div",{className:"mt-2 space-y-1",children:a.dependencies.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-zinc-600 dark:text-zinc-400",children:[(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:a.dependsOnShortId||a.dependsOnId.slice(0,6)}),(0,d.jsx)("span",{children:a.dependsOnTitle})]},a.id))})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[(0,d.jsxs)("button",{onClick:()=>aL(!aK),className:"flex items-center gap-2 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300 w-full",children:[(0,d.jsx)(z.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Project Memory"}),aG.length>0&&(0,d.jsxs)("span",{className:"text-zinc-400",children:["(",aG.length,")"]}),(0,d.jsx)(r.A,{className:`h-3 w-3 ml-auto transition-transform ${aK?"rotate-180":""}`})]}),aK&&(0,d.jsx)("div",{className:"mt-3 space-y-2",children:aI?(0,d.jsx)("p",{className:"text-xs text-zinc-400",children:"Loading..."}):0===aG.length?(0,d.jsx)("p",{className:"text-xs text-zinc-400 italic",children:"No memory items for this project"}):aG.map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:["command"===a.category&&(0,d.jsx)(A.A,{className:"h-3.5 w-3.5 text-emerald-500 mt-0.5 shrink-0"}),"config"===a.category&&(0,d.jsx)(B.A,{className:"h-3.5 w-3.5 text-blue-500 mt-0.5 shrink-0"}),"note"===a.category&&(0,d.jsx)(C,{className:"h-3.5 w-3.5 text-amber-500 mt-0.5 shrink-0"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("span",{className:"font-mono text-zinc-500 dark:text-zinc-400",children:a.key}),(0,d.jsx)("p",{className:"text-zinc-600 dark:text-zinc-400 wrap-break-word",children:a.value})]})]},a.id))})]}),(a.created_in_session||a.completed_in_session)&&(0,d.jsxs)("div",{className:"flex items-center gap-4 pt-4 border-t border-zinc-100 dark:border-zinc-800 text-xs text-zinc-400",children:[a.created_in_session&&(0,d.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(D.A,{className:"h-3.5 w-3.5"}),"Created in session"]}),a.completed_in_session&&(0,d.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5 text-green-500"}),"Completed in session"]})]}),(0,d.jsx)(K.T,{isOpen:ak,onClose:()=>{al(!1),aj(null)},onConfirm:aR,title:"Delete Subtask",message:"Are you sure you want to delete this subtask? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(K.T,{isOpen:ay,onClose:()=>{az(!1),ax(null)},onConfirm:aS,title:"Delete Subtask",message:"Are you sure you want to delete this subtask? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"})]})}function _({projects:a,initialProjectFilter:b,initialStatusFilter:c}){let f=(0,J.useRouter)(),g=(0,J.usePathname)(),h=(0,J.useSearchParams)(),[i,j]=(0,e.useState)([]),[k,m]=(0,e.useState)({open:0,in_progress:0,blocked:0,closed:0,deferred:0,total:0,by_priority:{},by_type:{}}),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(""),[s,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(null),[D,F]=(0,e.useState)(null),G=(0,e.useRef)(null),[H,I]=(0,e.useState)({title:"",description:"",projectPath:"",status:"open",priority:0,issueType:"task"}),[M,N]=(0,e.useState)(null),O=b||null,Q=(a,b)=>{let c=new URLSearchParams(h.toString());null===b||"all"===b?c.delete(a):c.set(a,b);let d=c.toString();f.push(`${g}${d?`?${d}`:""}`)},R=async()=>{try{o(!0);let a=new URLSearchParams({...O&&{projectPath:O},..."all"!==c&&{status:c}}),b=await fetch(`/api/issues/list?${a}`),d=await b.json();d.success&&(j(d.issues),m(d.stats))}catch(a){console.error("Failed to load issues:",a)}finally{o(!1)}},U=async()=>{if(H.projectPath&&H.title)try{(await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:H.projectPath,title:H.title,description:H.description,status:H.status,priority:H.priority,issueType:H.issueType})})).ok&&(aa(),v(!1),R())}catch(a){console.error("Failed to create issue:",a)}},Z=async(a,b)=>{let c=b.add_project_path||b.remove_project_path;c||j(c=>c.map(c=>c.id===a?{...c,...b,updated_at:Date.now()}:c));try{(await fetch("/api/issues/update",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,...b})})).ok?c&&R():R()}catch(a){console.error("Failed to update issue:",a),R()}},_=async()=>{if(B)try{let a=new URLSearchParams({id:B});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(A(!1),C(null),D===B&&F(null),R())}catch(a){console.error("Failed to delete issue:",a)}},aa=()=>{I({title:"",description:"",projectPath:O||a[0]?.project_path||"",status:"open",priority:0,issueType:"task"}),N(null)},ab=i.filter(a=>!a.parent&&(a.title.toLowerCase().includes(p.toLowerCase())||a.description&&a.description.toLowerCase().includes(p.toLowerCase())||a.short_id&&a.short_id.toLowerCase().includes(p.toLowerCase()))),ac=a.find(a=>a.project_path===O),ad=ac?.project_path.split("/").pop()||null;return(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-zinc-900 dark:text-zinc-50",children:"Issues"}),(0,d.jsxs)("button",{onClick:()=>{aa(),v(!0)},className:"inline-flex items-center gap-1.5 rounded-md bg-zinc-900 dark:bg-zinc-100 px-3 py-1.5 text-sm font-medium text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200",children:[(0,d.jsx)(t.A,{className:"h-4 w-4"}),"New"]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-md",children:[(0,d.jsx)(E.A,{className:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),(0,d.jsx)("input",{type:"text",placeholder:"Search...",value:p,onChange:a=>q(a.target.value),className:"w-full h-8 rounded-md border border-zinc-200 bg-white pl-8 pr-3 text-sm focus:border-zinc-300 focus:outline-none dark:border-zinc-700 dark:bg-zinc-900"})]}),(0,d.jsxs)("div",{className:"relative",ref:G,children:[(0,d.jsxs)("button",{onClick:()=>x(!w),className:"flex items-center gap-1 h-8 rounded-md border border-zinc-200 bg-white px-2.5 text-sm text-zinc-600 hover:bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900 dark:text-zinc-400",children:[(0,d.jsx)("span",{children:ad||"All"}),(0,d.jsx)(r.A,{className:"h-3.5 w-3.5"})]}),w&&(0,d.jsx)("div",{className:"absolute left-0 top-full z-50 mt-1 w-56 rounded-md border border-zinc-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-800",children:(0,d.jsxs)("div",{className:"max-h-64 overflow-y-auto py-1",children:[(0,d.jsx)("button",{onClick:()=>{Q("project",null),x(!1)},className:`w-full px-3 py-1.5 text-left text-sm ${!b?"bg-zinc-100 dark:bg-zinc-700":"hover:bg-zinc-50 dark:hover:bg-zinc-700/50"}`,children:"All Projects"}),a.map(a=>(0,d.jsx)("button",{onClick:()=>{Q("project",a.project_path),x(!1)},className:`w-full px-3 py-1.5 text-left text-sm truncate ${b===a.project_path?"bg-zinc-100 dark:bg-zinc-700":"hover:bg-zinc-50 dark:hover:bg-zinc-700/50"}`,children:a.project_path.split("/").pop()},a.project_path))]})})]}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:[{value:"all",label:"All"},{value:"open",label:"Open"},{value:"in_progress",label:"In Progress"},{value:"blocked",label:"Blocked"},{value:"closed",label:"Closed"},{value:"deferred",label:"Deferred"}].map(a=>(0,d.jsx)("button",{onClick:()=>Q("status",a.value),className:`h-8 px-2.5 rounded-md text-sm transition-colors ${c===a.value?"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-zinc-100":"text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-200"}`,children:a.label},a.value))}),(b||"all"!==c||p)&&(0,d.jsx)("button",{onClick:()=>{q(""),Q("project",null),Q("status","all")},className:"h-8 px-2 text-sm text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,d.jsx)("div",{className:"rounded-lg border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 overflow-hidden",children:n?(0,d.jsx)("div",{className:"flex items-center justify-center py-16",children:(0,d.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-zinc-200 border-t-zinc-600 dark:border-zinc-700 dark:border-t-zinc-300"})}):0===ab.length?(0,d.jsx)(L.p,{icon:(0,d.jsx)(l.A,{}),heading:p||"all"!==c?"No Issues Match Your Filters":"No Issues Yet",description:p||"all"!==c?"Try adjusting your search or filters":"Create your first issue to get started tracking your work"}):(0,d.jsx)("div",{className:"divide-y divide-zinc-100 dark:divide-zinc-800",children:ab.map(a=>{P[a.status];let b=D===a.id;return(0,d.jsxs)("div",{className:`group flex items-center h-10 px-3 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 cursor-pointer transition-colors ${b?"bg-zinc-50 dark:bg-zinc-800/50":""} ${"closed"===a.status?"opacity-50":""}`,onClick:()=>F(b?null:a.id),children:[(0,d.jsx)("div",{className:"w-6 shrink-0",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(W,{value:a.priority,onChange:b=>Z(a.id,{priority:b})})}),(0,d.jsx)("div",{className:"w-6 shrink-0",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(V,{value:a.status,onChange:b=>Z(a.id,{status:b})})}),(0,d.jsx)("span",{className:"w-20 shrink-0 text-xs text-zinc-400 dark:text-zinc-500 font-mono mr-2",children:a.short_id||a.id.slice(0,8)}),(0,d.jsx)("span",{className:`flex-1 text-sm truncate ${"closed"===a.status?"text-zinc-400 line-through":"text-zinc-900 dark:text-zinc-100"}`,children:a.title}),(0,d.jsx)("span",{className:"hidden sm:block w-20 text-xs text-zinc-400 text-right shrink-0",children:new Date(a.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),(0,d.jsx)("div",{className:"w-8 flex items-center justify-end opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),C(a.id),A(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20",children:(0,d.jsx)(y.A,{className:"h-3.5 w-3.5"})})})]},a.id)})})}),D&&(()=>{let b=ab.find(a=>a.id===D);if(!b)return null;let c=T[b.issue_type]||S[0];return(0,d.jsx)($,{issue:b,typeConfig:c,onClose:()=>F(null),onUpdate:a=>Z(b.id,a),onSubtaskCreated:R,projects:a})})(),s&&(0,d.jsx)("div",{className:"fixed inset-0 z-100 flex items-center justify-center bg-black/50 p-4",children:(0,d.jsxs)("div",{className:"w-full max-w-2xl rounded-xl border border-zinc-200 bg-white shadow-2xl dark:border-zinc-700 dark:bg-zinc-900",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-zinc-200 dark:border-zinc-700",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,d.jsx)("span",{className:"px-2 py-0.5 rounded border border-zinc-200 dark:border-zinc-700 text-zinc-600 dark:text-zinc-400 text-xs font-medium",children:H.projectPath?H.projectPath.split("/").pop():"SAV"}),(0,d.jsx)("span",{className:"text-zinc-400",children:"›"}),(0,d.jsx)("span",{className:"text-zinc-700 dark:text-zinc-300",children:"New issue"})]}),(0,d.jsx)("button",{onClick:()=>{v(!1),aa()},className:"p-1 rounded text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 dark:hover:text-zinc-300 dark:hover:bg-zinc-700",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)("div",{className:"p-4 space-y-4",children:[(0,d.jsx)("input",{type:"text",value:H.title,onChange:a=>I({...H,title:a.target.value}),placeholder:"Issue title",autoFocus:!0,className:"w-full text-lg font-medium text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400 bg-transparent border-none outline-none"}),(0,d.jsx)("textarea",{value:H.description,onChange:a=>I({...H,description:a.target.value}),placeholder:"Add description...",rows:4,className:"w-full text-sm text-zinc-600 dark:text-zinc-400 placeholder:text-zinc-400 bg-transparent border-none outline-none resize-none"})]}),(0,d.jsx)("div",{className:"px-4 py-3 border-t border-zinc-200 dark:border-zinc-700",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(V,{value:H.status,onChange:a=>I({...H,status:a}),size:"md"}),(0,d.jsx)(W,{value:H.priority,onChange:a=>I({...H,priority:a}),size:"md"}),(0,d.jsx)(X,{value:H.issueType,onChange:a=>I({...H,issueType:a})}),(0,d.jsx)(Y,{value:H.projectPath,onChange:a=>I({...H,projectPath:a}),projects:a})]})}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-3 px-4 py-3 border-t border-zinc-200 dark:border-zinc-700",children:[(0,d.jsx)("button",{onClick:()=>{v(!1),aa()},className:"px-3 py-1.5 text-sm text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-100",children:"Cancel"}),(0,d.jsx)("button",{onClick:U,disabled:!H.title||!H.projectPath,className:"px-4 py-1.5 rounded-md bg-zinc-900 dark:bg-zinc-100 text-sm font-medium text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200 disabled:opacity-50 disabled:cursor-not-allowed",children:"Create issue"})]})]})}),(0,d.jsx)(K.T,{isOpen:z,onClose:()=>A(!1),onConfirm:_,title:"Delete Issue",message:"Are you sure you want to delete this issue? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"})]})}},45540:(a,b,c)=>{"use strict";c.d(b,{IssuesClient:()=>d});let d=(0,c(15984).registerClientReference)(function(){throw Error("Attempted to call IssuesClient() from the server but IssuesClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/issues-client.tsx","IssuesClient")},54295:(a,b,c)=>{"use strict";c.d(b,{p:()=>g});var d=c(370),e=c(11499),f=c.n(e);function g({icon:a,heading:b,description:c,action:e}){return(0,d.jsx)("div",{className:"rounded-2xl border-2 border-dashed border-zinc-300 bg-zinc-50 p-8 text-center dark:border-zinc-700 dark:bg-zinc-900/50",children:(0,d.jsxs)("div",{className:"mx-auto max-w-lg space-y-4",children:[(0,d.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-zinc-900 text-white dark:bg-zinc-100 dark:text-zinc-900",children:f().isValidElement(a)?f().cloneElement(a,{className:"h-6 w-6"}):a}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("h3",{className:"text-lg font-bold text-zinc-900 dark:text-zinc-50",children:b}),(0,d.jsx)("p",{className:"text-sm text-zinc-600 dark:text-zinc-400",children:c})]}),e&&(0,d.jsx)("button",{onClick:e.onClick,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-zinc-900 px-4 py-2 text-sm font-medium text-white hover:bg-zinc-800 dark:bg-zinc-100 dark:text-zinc-900 dark:hover:bg-zinc-200",children:e.label})]})})}},55790:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},56112:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},57125:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h,dynamic:()=>g});var d=c(67340),e=c(52948),f=c(45540);let g="force-dynamic";async function h(a){let b=await a.searchParams,c="string"==typeof b.project?b.project:void 0,g="string"==typeof b.status?b.status:"all",h=await (0,e.cf)();return(0,d.jsx)(f.IssuesClient,{projects:h,initialProjectFilter:c,initialStatusFilter:g})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71894:(a,b,c)=>{Promise.resolve().then(c.bind(c,45540))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},81313:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},85665:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86565:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},86887:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87623:(a,b,c)=>{"use strict";c.d(b,{T:()=>f});var d=c(370),e=c(55790);function f({isOpen:a,onClose:b,onConfirm:c,title:f,message:g,confirmText:h="Delete",cancelText:i="Cancel",variant:j="danger"}){return a?(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:(0,d.jsxs)("div",{className:"w-full max-w-md rounded-xl border border-zinc-200 bg-white p-6 shadow-xl dark:border-zinc-800 dark:bg-zinc-900",children:[(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30",children:(0,d.jsx)(e.A,{className:"h-5 w-5 text-red-600 dark:text-red-400"})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-zinc-900 dark:text-zinc-50",children:f}),(0,d.jsx)("p",{className:"mt-2 text-sm text-zinc-600 dark:text-zinc-400 whitespace-pre-wrap",children:g})]})]}),(0,d.jsxs)("div",{className:"mt-6 flex justify-end gap-3",children:[(0,d.jsx)("button",{onClick:b,className:"rounded-lg border border-zinc-300 px-4 py-2 text-sm font-medium text-zinc-700 transition-colors hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i}),(0,d.jsx)("button",{onClick:()=>{c(),b()},className:`rounded-lg px-4 py-2 text-sm font-medium text-white transition-colors ${(()=>{switch(j){case"danger":default:return"bg-red-600 hover:bg-red-700 dark:bg-red-600 dark:hover:bg-red-700";case"warning":return"bg-amber-600 hover:bg-amber-700 dark:bg-amber-600 dark:hover:bg-amber-700";case"info":return"bg-blue-600 hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700"}})()}`,children:h})]})]})}):null}},89443:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]])},96409:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]])},98194:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[727,938,562,687,919,848,463],()=>b(b.s=5759));module.exports=c})();
|
|
2
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ah&&aa&&!f&&!I)return(null==ab?void 0:ab.render404)?await ab.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(k=(0,v.parseFallbackField)(ai.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(ak)&&(!ar||am)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!I&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!q&&!$&&S&&(l||!aj)){if((l||ai)&&k===v.FallbackMode.NOT_FOUND){if(ac.experimental.adapterPath)return await aI();throw new A.NoFallbackError}if(ar&&(ac.cacheComponents?!av:!ao)){let b=l&&"string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:ag,c=l&&(null==ai?void 0:ai.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ac,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:Z,isRoutePPREnabled:ar,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:I});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ah||g||!au?void 0:au;if(az&&!I&&m&&av&&!j){let b=await m.get(_,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(_,m,ar,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(as&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==ai?void 0:ai.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aC,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ac,prerenderManifest:Z,waitUntil:d.waitUntil,isMinimalMode:I});if($&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ay&&!av&&(!n||an)&&(I||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(au)l={revalidate:0,expire:void 0};else if(av)l={revalidate:0,expire:void 0};else if(!L.isDev)if($)l={revalidate:0,expire:void 0};else if(ay){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ac.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];I&&ay&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=az?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(I&&ay||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(I&&ay&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ao&&ar||(b.statusCode=q.status),!I&&q.status&&E.RedirectStatusCode[q.status]&&ao&&(b.statusCode=200),n&&!av&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ao&&!$){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ac.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||I||ao)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:m.cacheControl});if(as)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(i.BaseServerSpan.handleRequest,{spanName:`${aF} ${N}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},q));await q(aH)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:N,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:ay,isOnDemandRevalidate:ah})},!1,ab),b}}},8077:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18750:(a,b,c)=>{Promise.resolve().then(c.bind(c,44619))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},22612:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},24183:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},28525:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},28812:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43085:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},44619:(a,b,c)=>{"use strict";c.d(b,{IssuesClient:()=>_});var d=c(370),e=c(11499),f=c(30114),g=c(86565),h=c(55790),i=c(22612),j=c(27975);let k=(0,j.A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var l=c(7928),m=c(89443),n=c(98194),o=c(86887),p=c(56112),q=c(8077),r=c(78615),s=c(96409),t=c(81313),u=c(85665),v=c(60145);let w=(0,j.A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var x=c(44991),y=c(37068),z=c(64217),A=c(43085),B=c(28812);let C=(0,j.A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var D=c(24183),E=c(28525),F=c(8241),G=c.n(F),H=c(43145),I=c(94310),J=c(63188),K=c(87623),L=c(54295);function M({completed:a,total:b,size:c=16,strokeWidth:e=2,className:f=""}){if(0===b)return null;let g=b>0?a/b*100:0,h=a===b,i=(c-e)/2,j=2*Math.PI*i,k=h?"stroke-emerald-500":a>0?"stroke-blue-500":"stroke-zinc-300 dark:stroke-zinc-600";return(0,d.jsxs)("div",{className:`flex items-center gap-1.5 ${f}`,children:[(0,d.jsxs)("svg",{width:c,height:c,className:"transform -rotate-90",children:[(0,d.jsx)("circle",{cx:c/2,cy:c/2,r:i,fill:"none",strokeWidth:e,className:"stroke-zinc-200 dark:stroke-zinc-700"}),(0,d.jsx)("circle",{cx:c/2,cy:c/2,r:i,fill:"none",strokeWidth:e,strokeLinecap:"round",strokeDasharray:j,strokeDashoffset:j-g/100*j,className:`${k} transition-all duration-300`})]}),(0,d.jsxs)("span",{className:`text-xs tabular-nums ${h?"text-emerald-600 dark:text-emerald-400":"text-zinc-500"}`,children:[a,"/",b]})]})}function N({priority:a,className:b=""}){let c=4===a?"fill-orange-500":"fill-zinc-500 dark:fill-zinc-400",e="fill-zinc-200 dark:fill-zinc-700";return(0,d.jsxs)("svg",{className:`h-4 w-4 ${b}`,viewBox:"0 0 16 16",fill:"none",children:[(0,d.jsx)("rect",{x:"3",y:"2",width:"10",height:"2",rx:"0.5",className:a>=4?c:e}),(0,d.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"2",rx:"0.5",className:a>=3?c:e}),(0,d.jsx)("rect",{x:"3",y:"9",width:"10",height:"2",rx:"0.5",className:a>=2?c:e}),(0,d.jsx)("rect",{x:"3",y:"12.5",width:"10",height:"2",rx:"0.5",className:a>=1?c:e})]})}let O=[{value:"open",label:"Open",icon:(0,d.jsx)(g.A,{className:"h-4 w-4",strokeWidth:2}),color:"text-zinc-400"},{value:"in_progress",label:"In Progress",icon:(0,d.jsx)("div",{className:"h-4 w-4 rounded-full border-2 border-yellow-500 border-r-transparent"}),color:"text-yellow-500"},{value:"blocked",label:"Blocked",icon:(0,d.jsx)(h.A,{className:"h-4 w-4"}),color:"text-red-500"},{value:"closed",label:"Closed",icon:(0,d.jsx)(i.A,{className:"h-4 w-4"}),color:"text-blue-500"},{value:"deferred",label:"Deferred",icon:(0,d.jsx)(k,{className:"h-4 w-4"}),color:"text-zinc-400"}],P=Object.fromEntries(O.map(a=>[a.value,a])),Q=O[0],R=[{value:0,label:"No priority"},{value:4,label:"Urgent"},{value:3,label:"High"},{value:2,label:"Medium"},{value:1,label:"Low"}],S=[{value:"task",label:"Task",icon:(0,d.jsx)(l.A,{className:"h-4 w-4"}),color:"text-zinc-400"},{value:"bug",label:"Bug",icon:(0,d.jsx)(m.A,{className:"h-4 w-4"}),color:"text-red-500"},{value:"feature",label:"Feature",icon:(0,d.jsx)(n.A,{className:"h-4 w-4"}),color:"text-violet-500"},{value:"epic",label:"Epic",icon:(0,d.jsx)(o.A,{className:"h-4 w-4"}),color:"text-indigo-500"},{value:"chore",label:"Chore",icon:(0,d.jsx)(p.A,{className:"h-4 w-4"}),color:"text-zinc-400"}],T=Object.fromEntries(S.map(a=>[a.value,a]));function U({trigger:a,options:b,value:c,onChange:g,renderOption:h,className:i=""}){let[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)({top:0,left:0}),p=(0,e.useRef)(null),r=(0,e.useRef)(null),s=j&&l&&(0,d.jsx)("div",{ref:r,className:"fixed z-99999 min-w-[200px] rounded-lg border border-zinc-200 bg-white py-1 shadow-lg dark:border-zinc-700 dark:bg-zinc-800",style:{top:n.top,left:n.left},children:b.map(a=>(0,d.jsxs)("button",{onClick:b=>{b.stopPropagation(),g(a.value),k(!1)},className:"w-full px-3 py-1.5 text-left text-sm hover:bg-zinc-100 dark:hover:bg-zinc-700 flex items-center justify-between",children:[h(a,a.value===c),a.value===c&&(0,d.jsx)(q.A,{className:"h-4 w-4 text-zinc-500"})]},String(a.value)))});return(0,d.jsxs)("div",{className:`relative ${i}`,children:[(0,d.jsx)("button",{ref:p,onClick:a=>{a.stopPropagation(),k(!j)},className:"flex items-center",children:a}),l&&(0,f.createPortal)(s,document.body)]})}function V({value:a,onChange:b,size:c="sm"}){let e=P[a]||Q;return(0,d.jsx)(U,{trigger:(0,d.jsx)("span",{className:`${e.color} hover:opacity-70 transition-opacity`,children:"sm"===c?(0,d.jsx)("span",{className:"sm"===c?"h-[14px] w-[14px]":"h-4 w-4",children:e.icon}):(0,d.jsxs)("span",{className:`flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 ${e.color}`,children:[e.icon,(0,d.jsx)("span",{className:"text-sm",children:e.label}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]})}),options:O,value:a,onChange:b,renderOption:a=>{let b=P[a.value]||Q;return(0,d.jsxs)("span",{className:`flex items-center gap-2 ${b.color}`,children:[b.icon,(0,d.jsx)("span",{children:a.label})]})}})}function W({value:a,onChange:b,size:c="sm"}){let e=R.find(b=>b.value===a)?.label||"No priority";return(0,d.jsx)(U,{trigger:"sm"===c?(0,d.jsx)("span",{className:"hover:opacity-70 transition-opacity",children:(0,d.jsx)(N,{priority:a})}):(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300",children:[(0,d.jsx)(N,{priority:a}),(0,d.jsx)("span",{className:"text-sm",children:e}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]}),options:R,value:a,onChange:b,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)(N,{priority:a.value}),(0,d.jsx)("span",{className:4===a.value?"text-orange-500":"",children:a.label})]})})}function X({value:a,onChange:b}){let c=T[a]||S[0];return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:`flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 ${c.color}`,children:[c.icon,(0,d.jsx)("span",{className:"text-sm",children:c.label}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400"})]}),options:S,value:a,onChange:b,renderOption:a=>{let b=T[a.value];return(0,d.jsxs)("span",{className:`flex items-center gap-2 ${b?.color}`,children:[b?.icon,(0,d.jsx)("span",{children:a.label})]})}})}function Y({value:a,onChange:b,projects:c}){let e=c.map(a=>({value:a.project_path,label:a.name||a.project_path.split("/").pop()||a.project_path})),f=e.find(b=>b.value===a)?.label||"Project";return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 shrink-0"}),(0,d.jsx)("span",{className:"text-sm truncate max-w-[150px]",children:f}),(0,d.jsx)(r.A,{className:"h-3 w-3 ml-1 text-zinc-400 shrink-0"})]}),options:e,value:a,onChange:b,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.label})]})})}function Z({projects:a,currentProjectPath:b,additionalPaths:c,onAdd:e}){let f=new Set([b,...c]),g=a.filter(a=>!f.has(a.project_path));if(0===g.length)return null;let h=g.map(a=>({value:a.project_path,label:a.name||a.project_path.split("/").pop()||a.project_path}));return(0,d.jsx)(U,{trigger:(0,d.jsxs)("span",{className:"flex items-center gap-1 px-2 py-1 rounded-md border border-dashed border-zinc-300 dark:border-zinc-600 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-500 dark:text-zinc-400 text-sm",children:[(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Add"})]}),options:h,value:"",onChange:e,renderOption:a=>(0,d.jsxs)("span",{className:"flex items-center gap-2 whitespace-nowrap",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:a.label})]})})}function $({issue:a,typeConfig:b,onClose:c,onUpdate:f,onSubtaskCreated:h,projects:j}){let[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(!1),[o,p]=(0,e.useState)(!1),[q,E]=(0,e.useState)(a.title),[F,J]=(0,e.useState)(a.description||""),[L,N]=(0,e.useState)(a.details||""),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)(""),[S,T]=(0,e.useState)([]),[U,X]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[aa,ab]=(0,e.useState)([]),[ac,ad]=(0,e.useState)(null),[ae,af]=(0,e.useState)(null),[ag,ah]=(0,e.useState)(""),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)(!1),[am,an]=(0,e.useState)({}),[ao,ap]=(0,e.useState)({}),[aq,ar]=(0,e.useState)(null),[as,at]=(0,e.useState)(""),[au,av]=(0,e.useState)(!1),[aw,ax]=(0,e.useState)(null),[ay,az]=(0,e.useState)(!1),[aA,aB]=(0,e.useState)([]),[aC,aD]=(0,e.useState)(null),[aE,aF]=(0,e.useState)(!1),[aG,aH]=(0,e.useState)([]),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(!1),[aM,aN]=(0,e.useState)(!1),aO=async(b,c)=>{T(a=>a.map(a=>a.id===b?{...a,...c}:a));try{if(!(await fetch("/api/issues/update",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:b,...c})})).ok){let b=await fetch(`/api/issues/subtasks?parentId=${a.id}`),c=await b.json();c.success&&T(c.issues||[])}}catch(a){console.error("Failed to update subtask:",a)}},aP=(a,b,c)=>{af({id:a,field:b}),ah(c||"")},aQ=()=>{if(!ae)return;let{id:a,field:b}=ae;aO(a,{[b]:ag}),af(null),ah("")},aR=async()=>{if(ai)try{let a=new URLSearchParams({id:ai});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(T(a=>a.filter(a=>a.id!==ai)),al(!1),aj(null),h())}catch(a){console.error("Failed to delete subtask:",a)}},aS=async()=>{if(aw)try{let a=new URLSearchParams({id:aw.id});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(an(a=>({...a,[aw.parentId]:a[aw.parentId].filter(a=>a.id!==aw.id)})),az(!1),ax(null),h())}catch(a){console.error("Failed to delete child:",a)}},aT=async()=>{if(Q.trim()){_(!0);try{if((await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:a.project_path,title:Q.trim(),parentId:a.id,status:"open",priority:0,issueType:"task",dependsOn:aa.length>0?aa:void 0})})).ok){R(""),P(!1),ab([]);let b=await fetch(`/api/issues/subtasks?parentId=${a.id}`),c=await b.json();c.success&&T(c.issues||[]),h()}}catch(a){console.error("Failed to create subtask:",a)}finally{_(!1)}}},aU=async b=>{if(as.trim()){av(!0);try{if((await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:a.project_path,title:as.trim(),parentId:b,status:"open",priority:0,issueType:"task",dependsOn:aA.length>0?aA:void 0})})).ok){at(""),ar(null),aB([]);let a=await fetch(`/api/issues/subtasks?parentId=${b}`),c=await a.json();c.success&&an(a=>({...a,[b]:c.issues||[]})),h()}}catch(a){console.error("Failed to create subtask:",a)}finally{av(!1)}}},aV=()=>{q.trim()&&q!==a.title&&f({title:q.trim()}),l(!1)};return(0,d.jsxs)("div",{className:"rounded-lg border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 p-6 space-y-6",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"space-y-1 min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[(0,d.jsx)("span",{className:"font-mono",children:a.short_id||a.id.slice(0,6)}),(0,d.jsx)("span",{children:"\xb7"}),(0,d.jsx)("span",{className:b.color,children:b.label})]}),k?(0,d.jsx)("input",{type:"text",value:q,onChange:a=>E(a.target.value),onBlur:aV,onKeyDown:b=>{"Enter"===b.key&&aV(),"Escape"===b.key&&(E(a.title),l(!1))},autoFocus:!0,className:"w-full text-lg font-semibold text-zinc-900 dark:text-zinc-100 bg-transparent border-b border-zinc-300 dark:border-zinc-600 outline-none focus:border-zinc-500"}):(0,d.jsx)("h2",{onClick:()=>l(!0),className:"text-lg font-semibold text-zinc-900 dark:text-zinc-100 cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-1 -mx-1",children:a.title})]}),(0,d.jsx)("button",{onClick:c,className:"p-1 rounded text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 dark:hover:text-zinc-300 dark:hover:bg-zinc-700",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(aC||a.parent)&&(0,d.jsxs)("div",{className:"flex items-center gap-1 text-xs text-zinc-500 dark:text-zinc-400 bg-zinc-50 dark:bg-zinc-800/50 rounded-lg px-3 py-2",children:[(0,d.jsx)(v.A,{className:"h-3.5 w-3.5 text-zinc-400"}),(0,d.jsx)("span",{className:"text-zinc-400",children:a.project_path?.split("/").pop()}),aC&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w,{className:"h-3 w-3 text-zinc-300"}),(0,d.jsxs)(G(),{href:`/dashboard/plans?id=${aC.id}`,className:"flex items-center gap-1 hover:text-zinc-700 dark:hover:text-zinc-200",children:[(0,d.jsx)(x.A,{className:"h-3.5 w-3.5"}),aC.title]})]}),a.parent&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w,{className:"h-3 w-3 text-zinc-300"}),(0,d.jsxs)("span",{className:"text-zinc-500 dark:text-zinc-400",children:["Subtask of ",a.parent.title]})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(V,{value:a.status,onChange:a=>f({status:a}),size:"md"}),(0,d.jsx)(W,{value:a.priority,onChange:a=>f({priority:a}),size:"md"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400 mb-2 block",children:"Projects"}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 items-center",children:[(0,d.jsx)(Y,{value:a.project_path,onChange:a=>f({project_path:a}),projects:j}),a.additional_project_paths&&a.additional_project_paths.length>0&&a.additional_project_paths.map(a=>(0,d.jsxs)("span",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300 text-sm",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-zinc-400 shrink-0"}),(0,d.jsx)("span",{className:"truncate max-w-[150px]",children:a.split("/").pop()}),(0,d.jsx)("button",{onClick:()=>f({remove_project_path:a}),className:"text-zinc-400 hover:text-red-500",title:"Remove from issue",children:(0,d.jsx)(u.A,{className:"h-3.5 w-3.5"})})]},a)),(0,d.jsx)(Z,{projects:j,currentProjectPath:a.project_path,additionalPaths:a.additional_project_paths||[],onAdd:a=>f({add_project_path:a})})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Description"}),m?(0,d.jsx)("textarea",{value:F,onChange:a=>J(a.target.value),onBlur:()=>{F!==(a.description||"")&&f({description:F}),n(!1)},onKeyDown:b=>{"Escape"===b.key&&(J(a.description||""),n(!1))},autoFocus:!0,rows:4,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-transparent border border-zinc-200 dark:border-zinc-700 rounded-md p-2 outline-none focus:border-zinc-400 resize-none",placeholder:"Add a description..."}):(0,d.jsx)("div",{onClick:()=>n(!0),className:"mt-1 text-sm cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-8",children:a.description?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.description})}):(0,d.jsx)("p",{className:"text-zinc-400 italic",children:"Add a description..."})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[(0,d.jsxs)("button",{onClick:()=>aN(!aM),className:"flex items-center gap-2 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300 w-full",children:[(0,d.jsx)(x.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Implementation Details"}),a.details&&(0,d.jsxs)("span",{className:"text-zinc-400",children:["(",a.details.length," chars)"]}),(0,d.jsx)(r.A,{className:`h-3 w-3 ml-auto transition-transform ${aM?"rotate-180":""}`})]}),aM&&(0,d.jsx)("div",{className:"mt-3",children:o?(0,d.jsx)("textarea",{value:L,onChange:a=>N(a.target.value),onBlur:()=>{L!==(a.details||"")&&f({details:L}),p(!1)},onKeyDown:b=>{"Escape"===b.key&&(N(a.details||""),p(!1))},autoFocus:!0,rows:6,className:"w-full text-sm text-zinc-600 dark:text-zinc-400 bg-transparent border border-zinc-200 dark:border-zinc-700 rounded-md p-2 outline-none focus:border-zinc-400 resize-none font-mono",placeholder:"Add implementation details..."}):(0,d.jsx)("div",{onClick:()=>p(!0),className:"text-sm cursor-text hover:bg-zinc-50 dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-8",children:a.details?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.details})}):(0,d.jsx)("p",{className:"text-zinc-400 italic",children:"Add implementation details..."})})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[S.length>0&&(0,d.jsx)("div",{className:"mb-3 space-y-1",children:S.map(a=>{let b=ac===a.id;return(0,d.jsxs)("div",{className:"group/subtask border border-zinc-100 dark:border-zinc-800 rounded-lg overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 cursor-pointer",onClick:()=>ad(b?null:a.id),children:[(0,d.jsx)("div",{onClick:a=>a.stopPropagation(),children:(0,d.jsx)(V,{value:a.status,onChange:b=>aO(a.id,{status:b}),size:"sm"})}),(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:a.short_id}),(0,d.jsx)("span",{className:`text-sm flex-1 ${"closed"===a.status?"text-zinc-400 line-through":"text-zinc-700 dark:text-zinc-300"}`,children:a.title}),(0,d.jsx)(M,{completed:a.completed_count||0,total:a.child_count||0}),(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),aj(a.id),al(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 opacity-0 group-hover/subtask:opacity-100 transition-opacity",children:(0,d.jsx)(y.A,{className:"h-3.5 w-3.5"})}),(0,d.jsx)(r.A,{className:`h-4 w-4 text-zinc-400 transition-transform ${b?"rotate-180":""}`})]}),b&&(0,d.jsxs)("div",{className:"px-3 pb-3 pt-1 space-y-3 border-t border-zinc-100 dark:border-zinc-800 bg-zinc-50/50 dark:bg-zinc-800/30",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Title"}),ae?.id===a.id&&"title"===ae.field?(0,d.jsx)("input",{type:"text",value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Enter"===a.key&&aQ(),"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,className:"w-full mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400"}):(0,d.jsx)("p",{onClick:()=>aP(a.id,"title",a.title),className:"mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-100 cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2",children:a.title})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Priority"}),(0,d.jsx)(W,{value:a.priority,onChange:b=>aO(a.id,{priority:b}),size:"sm"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Description"}),ae?.id===a.id&&"description"===ae.field?(0,d.jsx)("textarea",{value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,rows:2,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400 resize-none",placeholder:"Add description..."}):(0,d.jsx)("div",{onClick:()=>aP(a.id,"description",a.description||""),className:"mt-1 text-sm cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-6",children:a.description?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.description})}):(0,d.jsx)("span",{className:"italic text-zinc-400",children:"Add description..."})})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Details"}),ae?.id===a.id&&"details"===ae.field?(0,d.jsx)("textarea",{value:ag,onChange:a=>ah(a.target.value),onBlur:aQ,onKeyDown:a=>{"Escape"===a.key&&(af(null),ah(""))},autoFocus:!0,rows:3,className:"w-full mt-1 text-sm text-zinc-600 dark:text-zinc-400 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded px-2 py-1 outline-none focus:border-zinc-400 resize-none font-mono",placeholder:"Add implementation details..."}):(0,d.jsx)("div",{onClick:()=>aP(a.id,"details",a.details||""),className:"mt-1 text-sm cursor-text hover:bg-white dark:hover:bg-zinc-800 rounded px-2 py-1 -mx-2 min-h-6",children:a.details?(0,d.jsx)("div",{className:"prose prose-sm prose-zinc dark:prose-invert max-w-none text-zinc-600 dark:text-zinc-400 [&_pre]:overflow-x-auto [&_pre]:bg-zinc-100 [&_pre]:dark:bg-zinc-800 [&_pre]:text-zinc-800 [&_pre]:dark:text-zinc-200 [&_pre]:p-3 [&_pre]:rounded-lg [&_code]:bg-zinc-100 [&_code]:dark:bg-zinc-800 [&_code]:text-zinc-800 [&_code]:dark:text-zinc-200 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs",children:(0,d.jsx)(H.oz,{remarkPlugins:[I.A],children:a.details})}):(0,d.jsx)("span",{className:"italic text-zinc-400",children:"Add implementation details..."})})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-200 dark:border-zinc-700 pt-3 mt-3",children:[(a.child_count||0)>0&&(0,d.jsxs)("span",{className:"text-xs text-zinc-400 font-medium",children:["Subtasks (",a.child_count,")"]}),ao[a.id]?(0,d.jsx)("p",{className:"text-xs text-zinc-400 mt-2",children:"Loading..."}):am[a.id]?.length>0?(0,d.jsx)("div",{className:"mt-2 space-y-1",children:am[a.id].map(b=>(0,d.jsxs)("div",{className:"group/child flex items-center gap-2 py-1.5 px-2 rounded hover:bg-white dark:hover:bg-zinc-800",children:[(0,d.jsx)(V,{value:b.status,onChange:c=>{an(d=>({...d,[a.id]:d[a.id].map(a=>a.id===b.id?{...a,status:c}:a)})),aO(b.id,{status:c})},size:"sm"}),(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:b.short_id}),(0,d.jsx)("span",{className:`text-xs flex-1 ${"closed"===b.status?"text-zinc-400 line-through":"text-zinc-600 dark:text-zinc-300"}`,children:b.title}),(0,d.jsx)("button",{onClick:c=>{c.stopPropagation(),ax({id:b.id,parentId:a.id}),az(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 opacity-0 group-hover/child:opacity-100 transition-opacity",children:(0,d.jsx)(y.A,{className:"h-3 w-3"})})]},b.id))}):null,aq===a.id?(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(g.A,{className:"h-3.5 w-3.5 text-zinc-300 shrink-0"}),(0,d.jsx)("input",{type:"text",value:as,onChange:a=>at(a.target.value),onKeyDown:b=>{"Enter"===b.key&&as.trim()&&aU(a.id),"Escape"===b.key&&(at(""),ar(null),aB([]))},placeholder:"Subtask title",autoFocus:!0,className:"flex-1 text-xs bg-transparent border-b border-zinc-300 dark:border-zinc-600 outline-none text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400 py-1"})]}),am[a.id]?.length>0&&(0,d.jsxs)("div",{className:"pl-5 space-y-1",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:"Blocked by:"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1",children:am[a.id].filter(a=>"closed"!==a.status).map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{aB(b=>b.includes(a.id)?b.filter(b=>b!==a.id):[...b,a.id])},className:`px-1.5 py-0.5 text-xs rounded border transition-colors ${aA.includes(a.id)?"bg-amber-100 dark:bg-amber-900/30 border-amber-300 dark:border-amber-700 text-amber-700 dark:text-amber-400":"bg-zinc-50 dark:bg-zinc-800 border-zinc-200 dark:border-zinc-700 text-zinc-500 hover:border-zinc-300"}`,children:a.short_id},a.id))})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 pl-5",children:[(0,d.jsx)("button",{onClick:()=>aU(a.id),disabled:!as.trim()||au,className:"px-2 py-0.5 text-xs rounded bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 disabled:opacity-50",children:au?"...":"Add"}),(0,d.jsx)("button",{onClick:()=>{at(""),ar(null),aB([])},className:"text-xs text-zinc-400 hover:text-zinc-600",children:"Cancel"})]})]}):(0,d.jsxs)("button",{onClick:()=>ar(a.id),className:"mt-2 flex items-center gap-1 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:[(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"}),"Add subtask"]})]})]})]},a.id)})}),O?(0,d.jsxs)("div",{className:"border border-zinc-200 dark:border-zinc-700 rounded-lg p-3 space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)(g.A,{className:"h-4 w-4 text-zinc-300 mt-0.5 shrink-0"}),(0,d.jsx)("input",{type:"text",value:Q,onChange:a=>R(a.target.value),onKeyDown:a=>{"Enter"===a.key&&Q.trim()&&aT(),"Escape"===a.key&&(R(""),P(!1),ab([]))},placeholder:"epic"===a.issue_type||"feature"===a.issue_type?"Task title":"Subtask title",autoFocus:!0,className:"flex-1 text-sm bg-transparent border-none outline-none text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400"})]}),S.length>0&&(0,d.jsxs)("div",{className:"space-y-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:"Blocked by (optional):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:S.filter(a=>"closed"!==a.status).map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{ab(b=>b.includes(a.id)?b.filter(b=>b!==a.id):[...b,a.id])},className:`px-2 py-0.5 text-xs rounded border transition-colors ${aa.includes(a.id)?"bg-amber-100 dark:bg-amber-900/30 border-amber-300 dark:border-amber-700 text-amber-700 dark:text-amber-400":"bg-zinc-50 dark:bg-zinc-800 border-zinc-200 dark:border-zinc-700 text-zinc-600 dark:text-zinc-400 hover:border-zinc-300 dark:hover:border-zinc-600"}`,children:a.short_id},a.id))})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)("button",{onClick:()=>{R(""),P(!1),ab([])},className:"px-2 py-1 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:"Cancel"}),(0,d.jsx)("button",{onClick:aT,disabled:!Q.trim()||$,className:"px-3 py-1 text-xs rounded-md bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200 disabled:opacity-50",children:$?"Adding...":"epic"===a.issue_type||"feature"===a.issue_type?"Add task":"Add subtask"})]})]}):(0,d.jsxs)("button",{onClick:()=>P(!0),className:"flex items-center gap-1.5 text-sm text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300",children:[(0,d.jsx)(t.A,{className:"h-4 w-4"}),"epic"===a.issue_type||"feature"===a.issue_type?"Add task":"Add subtask"]})]}),a.labels&&a.labels.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Labels"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-2",children:a.labels.map(a=>(0,d.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400",children:a.label},a.id))})]}),a.dependencies&&a.dependencies.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs text-zinc-400",children:"Blocked by"}),(0,d.jsx)("div",{className:"mt-2 space-y-1",children:a.dependencies.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-zinc-600 dark:text-zinc-400",children:[(0,d.jsx)("span",{className:"font-mono text-xs text-zinc-400",children:a.dependsOnShortId||a.dependsOnId.slice(0,6)}),(0,d.jsx)("span",{children:a.dependsOnTitle})]},a.id))})]}),(0,d.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800 pt-4",children:[(0,d.jsxs)("button",{onClick:()=>aL(!aK),className:"flex items-center gap-2 text-xs text-zinc-500 hover:text-zinc-700 dark:hover:text-zinc-300 w-full",children:[(0,d.jsx)(z.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Project Memory"}),aG.length>0&&(0,d.jsxs)("span",{className:"text-zinc-400",children:["(",aG.length,")"]}),(0,d.jsx)(r.A,{className:`h-3 w-3 ml-auto transition-transform ${aK?"rotate-180":""}`})]}),aK&&(0,d.jsx)("div",{className:"mt-3 space-y-2",children:aI?(0,d.jsx)("p",{className:"text-xs text-zinc-400",children:"Loading..."}):0===aG.length?(0,d.jsx)("p",{className:"text-xs text-zinc-400 italic",children:"No memory items for this project"}):aG.map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:["command"===a.category&&(0,d.jsx)(A.A,{className:"h-3.5 w-3.5 text-emerald-500 mt-0.5 shrink-0"}),"config"===a.category&&(0,d.jsx)(B.A,{className:"h-3.5 w-3.5 text-blue-500 mt-0.5 shrink-0"}),"note"===a.category&&(0,d.jsx)(C,{className:"h-3.5 w-3.5 text-amber-500 mt-0.5 shrink-0"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("span",{className:"font-mono text-zinc-500 dark:text-zinc-400",children:a.key}),(0,d.jsx)("p",{className:"text-zinc-600 dark:text-zinc-400 wrap-break-word",children:a.value})]})]},a.id))})]}),(a.created_in_session||a.completed_in_session)&&(0,d.jsxs)("div",{className:"flex items-center gap-4 pt-4 border-t border-zinc-100 dark:border-zinc-800 text-xs text-zinc-400",children:[a.created_in_session&&(0,d.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(D.A,{className:"h-3.5 w-3.5"}),"Created in session"]}),a.completed_in_session&&(0,d.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5 text-green-500"}),"Completed in session"]})]}),(0,d.jsx)(K.T,{isOpen:ak,onClose:()=>{al(!1),aj(null)},onConfirm:aR,title:"Delete Subtask",message:"Are you sure you want to delete this subtask? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(K.T,{isOpen:ay,onClose:()=>{az(!1),ax(null)},onConfirm:aS,title:"Delete Subtask",message:"Are you sure you want to delete this subtask? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"})]})}function _({projects:a,initialProjectFilter:b,initialStatusFilter:c}){let f=(0,J.useRouter)(),g=(0,J.usePathname)(),h=(0,J.useSearchParams)(),[i,j]=(0,e.useState)([]),[k,m]=(0,e.useState)({open:0,in_progress:0,blocked:0,closed:0,deferred:0,total:0,by_priority:{},by_type:{}}),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(""),[s,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(null),[D,F]=(0,e.useState)(null),G=(0,e.useRef)(null),[H,I]=(0,e.useState)({title:"",description:"",projectPath:"",status:"open",priority:0,issueType:"task"}),[M,N]=(0,e.useState)(null),O=b||null,Q=(a,b)=>{let c=new URLSearchParams(h.toString());null===b||"all"===b?c.delete(a):c.set(a,b);let d=c.toString();f.push(`${g}${d?`?${d}`:""}`)},R=async()=>{try{o(!0);let a=new URLSearchParams({...O&&{projectPath:O},..."all"!==c&&{status:c}}),b=await fetch(`/api/issues/list?${a}`),d=await b.json();d.success&&(j(d.issues),m(d.stats))}catch(a){console.error("Failed to load issues:",a)}finally{o(!1)}},U=async()=>{if(H.projectPath&&H.title)try{(await fetch("/api/issues/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:H.projectPath,title:H.title,description:H.description,status:H.status,priority:H.priority,issueType:H.issueType})})).ok&&(aa(),v(!1),R())}catch(a){console.error("Failed to create issue:",a)}},Z=async(a,b)=>{let c=b.add_project_path||b.remove_project_path;c||j(c=>c.map(c=>c.id===a?{...c,...b,updated_at:Date.now()}:c));try{(await fetch("/api/issues/update",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,...b})})).ok?c&&R():R()}catch(a){console.error("Failed to update issue:",a),R()}},_=async()=>{if(B)try{let a=new URLSearchParams({id:B});(await fetch(`/api/issues/delete?${a}`,{method:"DELETE"})).ok&&(A(!1),C(null),D===B&&F(null),R())}catch(a){console.error("Failed to delete issue:",a)}},aa=()=>{I({title:"",description:"",projectPath:O||a[0]?.project_path||"",status:"open",priority:0,issueType:"task"}),N(null)},ab=i.filter(a=>!a.parent&&(a.title.toLowerCase().includes(p.toLowerCase())||a.description&&a.description.toLowerCase().includes(p.toLowerCase())||a.short_id&&a.short_id.toLowerCase().includes(p.toLowerCase()))),ac=a.find(a=>a.project_path===O),ad=ac?.project_path.split("/").pop()||null;return(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-zinc-900 dark:text-zinc-50",children:"Issues"}),(0,d.jsxs)("button",{onClick:()=>{aa(),v(!0)},className:"inline-flex items-center gap-1.5 rounded-md bg-zinc-900 dark:bg-zinc-100 px-3 py-1.5 text-sm font-medium text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200",children:[(0,d.jsx)(t.A,{className:"h-4 w-4"}),"New"]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("div",{className:"relative flex-1 min-w-[200px] max-w-md",children:[(0,d.jsx)(E.A,{className:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),(0,d.jsx)("input",{type:"text",placeholder:"Search...",value:p,onChange:a=>q(a.target.value),className:"w-full h-8 rounded-md border border-zinc-200 bg-white pl-8 pr-3 text-sm focus:border-zinc-300 focus:outline-none dark:border-zinc-700 dark:bg-zinc-900"})]}),(0,d.jsxs)("div",{className:"relative",ref:G,children:[(0,d.jsxs)("button",{onClick:()=>x(!w),className:"flex items-center gap-1 h-8 rounded-md border border-zinc-200 bg-white px-2.5 text-sm text-zinc-600 hover:bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900 dark:text-zinc-400",children:[(0,d.jsx)("span",{children:ad||"All"}),(0,d.jsx)(r.A,{className:"h-3.5 w-3.5"})]}),w&&(0,d.jsx)("div",{className:"absolute left-0 top-full z-50 mt-1 w-56 rounded-md border border-zinc-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-800",children:(0,d.jsxs)("div",{className:"max-h-64 overflow-y-auto py-1",children:[(0,d.jsx)("button",{onClick:()=>{Q("project",null),x(!1)},className:`w-full px-3 py-1.5 text-left text-sm ${!b?"bg-zinc-100 dark:bg-zinc-700":"hover:bg-zinc-50 dark:hover:bg-zinc-700/50"}`,children:"All Projects"}),a.map(a=>(0,d.jsx)("button",{onClick:()=>{Q("project",a.project_path),x(!1)},className:`w-full px-3 py-1.5 text-left text-sm truncate ${b===a.project_path?"bg-zinc-100 dark:bg-zinc-700":"hover:bg-zinc-50 dark:hover:bg-zinc-700/50"}`,children:a.project_path.split("/").pop()},a.project_path))]})})]}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:[{value:"all",label:"All"},{value:"open",label:"Open"},{value:"in_progress",label:"In Progress"},{value:"blocked",label:"Blocked"},{value:"closed",label:"Closed"},{value:"deferred",label:"Deferred"}].map(a=>(0,d.jsx)("button",{onClick:()=>Q("status",a.value),className:`h-8 px-2.5 rounded-md text-sm transition-colors ${c===a.value?"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-zinc-100":"text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-200"}`,children:a.label},a.value))}),(b||"all"!==c||p)&&(0,d.jsx)("button",{onClick:()=>{q(""),Q("project",null),Q("status","all")},className:"h-8 px-2 text-sm text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,d.jsx)("div",{className:"rounded-lg border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 overflow-hidden",children:n?(0,d.jsx)("div",{className:"flex items-center justify-center py-16",children:(0,d.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-zinc-200 border-t-zinc-600 dark:border-zinc-700 dark:border-t-zinc-300"})}):0===ab.length?(0,d.jsx)(L.p,{icon:(0,d.jsx)(l.A,{}),heading:p||"all"!==c?"No Issues Match Your Filters":"No Issues Yet",description:p||"all"!==c?"Try adjusting your search or filters":"Create your first issue to get started tracking your work"}):(0,d.jsx)("div",{className:"divide-y divide-zinc-100 dark:divide-zinc-800",children:ab.map(a=>{P[a.status];let b=D===a.id;return(0,d.jsxs)("div",{className:`group flex items-center h-10 px-3 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 cursor-pointer transition-colors ${b?"bg-zinc-50 dark:bg-zinc-800/50":""} ${"closed"===a.status?"opacity-50":""}`,onClick:()=>F(b?null:a.id),children:[(0,d.jsx)("div",{className:"w-6 shrink-0",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(W,{value:a.priority,onChange:b=>Z(a.id,{priority:b})})}),(0,d.jsx)("div",{className:"w-6 shrink-0",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(V,{value:a.status,onChange:b=>Z(a.id,{status:b})})}),(0,d.jsx)("span",{className:"w-20 shrink-0 text-xs text-zinc-400 dark:text-zinc-500 font-mono mr-2",children:a.short_id||a.id.slice(0,8)}),(0,d.jsx)("span",{className:`flex-1 text-sm truncate ${"closed"===a.status?"text-zinc-400 line-through":"text-zinc-900 dark:text-zinc-100"}`,children:a.title}),(0,d.jsx)("span",{className:"hidden sm:block w-20 text-xs text-zinc-400 text-right shrink-0",children:new Date(a.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),(0,d.jsx)("div",{className:"w-8 flex items-center justify-end opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),C(a.id),A(!0)},className:"p-1 rounded text-zinc-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20",children:(0,d.jsx)(y.A,{className:"h-3.5 w-3.5"})})})]},a.id)})})}),D&&(()=>{let b=ab.find(a=>a.id===D);if(!b)return null;let c=T[b.issue_type]||S[0];return(0,d.jsx)($,{issue:b,typeConfig:c,onClose:()=>F(null),onUpdate:a=>Z(b.id,a),onSubtaskCreated:R,projects:a})})(),s&&(0,d.jsx)("div",{className:"fixed inset-0 z-100 flex items-center justify-center bg-black/50 p-4",children:(0,d.jsxs)("div",{className:"w-full max-w-2xl rounded-xl border border-zinc-200 bg-white shadow-2xl dark:border-zinc-700 dark:bg-zinc-900",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-zinc-200 dark:border-zinc-700",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,d.jsx)("span",{className:"px-2 py-0.5 rounded border border-zinc-200 dark:border-zinc-700 text-zinc-600 dark:text-zinc-400 text-xs font-medium",children:H.projectPath?H.projectPath.split("/").pop():"SAV"}),(0,d.jsx)("span",{className:"text-zinc-400",children:"›"}),(0,d.jsx)("span",{className:"text-zinc-700 dark:text-zinc-300",children:"New issue"})]}),(0,d.jsx)("button",{onClick:()=>{v(!1),aa()},className:"p-1 rounded text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 dark:hover:text-zinc-300 dark:hover:bg-zinc-700",children:(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)("div",{className:"p-4 space-y-4",children:[(0,d.jsx)("input",{type:"text",value:H.title,onChange:a=>I({...H,title:a.target.value}),placeholder:"Issue title",autoFocus:!0,className:"w-full text-lg font-medium text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400 bg-transparent border-none outline-none"}),(0,d.jsx)("textarea",{value:H.description,onChange:a=>I({...H,description:a.target.value}),placeholder:"Add description...",rows:4,className:"w-full text-sm text-zinc-600 dark:text-zinc-400 placeholder:text-zinc-400 bg-transparent border-none outline-none resize-none"})]}),(0,d.jsx)("div",{className:"px-4 py-3 border-t border-zinc-200 dark:border-zinc-700",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(V,{value:H.status,onChange:a=>I({...H,status:a}),size:"md"}),(0,d.jsx)(W,{value:H.priority,onChange:a=>I({...H,priority:a}),size:"md"}),(0,d.jsx)(X,{value:H.issueType,onChange:a=>I({...H,issueType:a})}),(0,d.jsx)(Y,{value:H.projectPath,onChange:a=>I({...H,projectPath:a}),projects:a})]})}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-3 px-4 py-3 border-t border-zinc-200 dark:border-zinc-700",children:[(0,d.jsx)("button",{onClick:()=>{v(!1),aa()},className:"px-3 py-1.5 text-sm text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-100",children:"Cancel"}),(0,d.jsx)("button",{onClick:U,disabled:!H.title||!H.projectPath,className:"px-4 py-1.5 rounded-md bg-zinc-900 dark:bg-zinc-100 text-sm font-medium text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200 disabled:opacity-50 disabled:cursor-not-allowed",children:"Create issue"})]})]})}),(0,d.jsx)(K.T,{isOpen:z,onClose:()=>A(!1),onConfirm:_,title:"Delete Issue",message:"Are you sure you want to delete this issue? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",variant:"danger"})]})}},45540:(a,b,c)=>{"use strict";c.d(b,{IssuesClient:()=>d});let d=(0,c(15984).registerClientReference)(function(){throw Error("Attempted to call IssuesClient() from the server but IssuesClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/shane/code/dev/savecontext-mono/savecontext/dashboard/components/dashboard/issues-client.tsx","IssuesClient")},54295:(a,b,c)=>{"use strict";c.d(b,{p:()=>g});var d=c(370),e=c(11499),f=c.n(e);function g({icon:a,heading:b,description:c,action:e}){return(0,d.jsx)("div",{className:"rounded-2xl border-2 border-dashed border-zinc-300 bg-zinc-50 p-8 text-center dark:border-zinc-700 dark:bg-zinc-900/50",children:(0,d.jsxs)("div",{className:"mx-auto max-w-lg space-y-4",children:[(0,d.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-zinc-900 text-white dark:bg-zinc-100 dark:text-zinc-900",children:f().isValidElement(a)?f().cloneElement(a,{className:"h-6 w-6"}):a}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("h3",{className:"text-lg font-bold text-zinc-900 dark:text-zinc-50",children:b}),(0,d.jsx)("p",{className:"text-sm text-zinc-600 dark:text-zinc-400",children:c})]}),e&&(0,d.jsx)("button",{onClick:e.onClick,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-zinc-900 px-4 py-2 text-sm font-medium text-white hover:bg-zinc-800 dark:bg-zinc-100 dark:text-zinc-900 dark:hover:bg-zinc-200",children:e.label})]})})}},55790:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},56112:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},57125:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h,dynamic:()=>g});var d=c(67340),e=c(52948),f=c(45540);let g="force-dynamic";async function h(a){let b=await a.searchParams,c="string"==typeof b.project?b.project:void 0,g="string"==typeof b.status?b.status:"all",h=await (0,e.cf)();return(0,d.jsx)(f.IssuesClient,{projects:h,initialProjectFilter:c,initialStatusFilter:g})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71894:(a,b,c)=>{Promise.resolve().then(c.bind(c,45540))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},81313:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},81787:a=>{"use strict";a.exports=require("bun:sqlite")},85665:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86565:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},86887:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},87623:(a,b,c)=>{"use strict";c.d(b,{T:()=>f});var d=c(370),e=c(55790);function f({isOpen:a,onClose:b,onConfirm:c,title:f,message:g,confirmText:h="Delete",cancelText:i="Cancel",variant:j="danger"}){return a?(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:(0,d.jsxs)("div",{className:"w-full max-w-md rounded-xl border border-zinc-200 bg-white p-6 shadow-xl dark:border-zinc-800 dark:bg-zinc-900",children:[(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30",children:(0,d.jsx)(e.A,{className:"h-5 w-5 text-red-600 dark:text-red-400"})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-zinc-900 dark:text-zinc-50",children:f}),(0,d.jsx)("p",{className:"mt-2 text-sm text-zinc-600 dark:text-zinc-400 whitespace-pre-wrap",children:g})]})]}),(0,d.jsxs)("div",{className:"mt-6 flex justify-end gap-3",children:[(0,d.jsx)("button",{onClick:b,className:"rounded-lg border border-zinc-300 px-4 py-2 text-sm font-medium text-zinc-700 transition-colors hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i}),(0,d.jsx)("button",{onClick:()=>{c(),b()},className:`rounded-lg px-4 py-2 text-sm font-medium text-white transition-colors ${(()=>{switch(j){case"danger":default:return"bg-red-600 hover:bg-red-700 dark:bg-red-600 dark:hover:bg-red-700";case"warning":return"bg-amber-600 hover:bg-amber-700 dark:bg-amber-600 dark:hover:bg-amber-700";case"info":return"bg-blue-600 hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700"}})()}`,children:h})]})]})}):null}},89443:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]])},96409:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]])},98194:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(27975).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[727,938,562,687,919,848,463],()=>b(b.s=5759));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/better-sqlite3/package.json","../../../../../../node_modules/.pnpm/better-sqlite3@12.5.0/node_modules/bindings","../../../../../../node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js","../../../../../../node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/package.json","../../../../../../node_modules/.pnpm/bindings@1.5.0/node_modules/file-uri-to-path","../../../../../../node_modules/.pnpm/file-uri-to-path@1.0.0/node_modules/file-uri-to-path/index.js","../../../../../../node_modules/.pnpm/file-uri-to-path@1.0.0/node_modules/file-uri-to-path/package.json","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/constants.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/package.json","../../../../../../package.json","../../../../../node_modules/better-sqlite3","../../../../../node_modules/next","../../../../../package.json","../../../../package.json","../../../chunks/463.js","../../../chunks/562.js","../../../chunks/687.js","../../../chunks/727.js","../../../chunks/848.js","../../../chunks/919.js","../../../chunks/938.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/constants.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/.pnpm/next@16.1.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/next/package.json","../../../../../../package.json","../../../../../node_modules/next","../../../../../package.json","../../../../package.json","../../../chunks/463.js","../../../chunks/562.js","../../../chunks/687.js","../../../chunks/727.js","../../../chunks/848.js","../../../chunks/919.js","../../../chunks/938.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|