@shepai/cli 1.194.3-pr586.23e3597 → 1.194.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +2 -2
- package/web/.next/required-server-files.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +36 -36
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +37 -37
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/control-center/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/control-center/page/server-reference-manifest.json +34 -34
- package/web/.next/server/app/(dashboard)/control-center/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/control-center/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +37 -37
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +46 -46
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +35 -35
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/application/[id]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/applications/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/applications/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/applications/page.js.nft.json +1 -1
- package/web/.next/server/app/applications/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/features/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/features/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/features/page.js.nft.json +1 -1
- package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/projects/[slug]/items/[itemId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/pages/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/pages/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/projects/[slug]/pages/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/[slug]/settings/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/[slug]/settings/page/server-reference-manifest.json +17 -17
- package/web/.next/server/app/projects/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/projects/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/projects/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/settings/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/skills/page/server-reference-manifest.json +16 -16
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/tools/page/server-reference-manifest.json +14 -14
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/react-loadable-manifest.json +3 -3
- package/web/.next/server/app/version/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__10e976f3._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_99cb41a4.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_99cb41a4.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_3bcbcc2f.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_3bcbcc2f.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_059f6735.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_059f6735.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_control-center_page_actions_86edeb51.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_control-center_page_actions_86edeb51.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_items_[itemId]_work-item-detail-client_tsx_d2e02407._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_items_[itemId]_work-item-detail-client_tsx_d2e02407._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_settings_project-settings-client_tsx_e8b85ddc._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_app_projects_[slug]_settings_project-settings-client_tsx_e8b85ddc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__012a0e7d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__012a0e7d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0462fa34._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0462fa34._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1973d644._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a86d5fe._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a86d5fe._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__30326387._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__30326387._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3438c354._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3438c354._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__361129f0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__361129f0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4adb4a94._.js +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4adb4a94._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c25ef9b._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c25ef9b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5f9704._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5f9704._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__638955bc._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78e1366f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78e1366f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d04b8e2._.js → [root-of-the-server]__8ccbc357._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d04b8e2._.js.map → [root-of-the-server]__8ccbc357._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__97b6831c._.js +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9b16348d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9b16348d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1e902e32._.js → [root-of-the-server]__b2926b69._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1e902e32._.js.map → [root-of-the-server]__b2926b69._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3bc9689._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3bc9689._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba8cbee2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba8cbee2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dbde193f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dbde193f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f6adb460._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f6adb460._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_101de7c3._.js +1 -1
- package/web/.next/server/chunks/ssr/_101de7c3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_12ba4a07._.js +1 -1
- package/web/.next/server/chunks/ssr/_12ba4a07._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_15634d5b._.js +1 -1
- package/web/.next/server/chunks/ssr/_15634d5b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_27c2f774._.js +1 -1
- package/web/.next/server/chunks/ssr/_27c2f774._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_30787024._.js +1 -1
- package/web/.next/server/chunks/ssr/_30787024._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_3bd60fa3._.js +1 -1
- package/web/.next/server/chunks/ssr/_402d53bf._.js +1 -1
- package/web/.next/server/chunks/ssr/_402d53bf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_6868b4b1._.js +1 -1
- package/web/.next/server/chunks/ssr/{_3906be1d._.js → _759e7aaa._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_3906be1d._.js.map → _759e7aaa._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_12f37a55._.js → _7cd98562._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_12f37a55._.js.map → _7cd98562._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_805ae1aa._.js +1 -1
- package/web/.next/server/chunks/ssr/_805ae1aa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_8a700ff4._.js +1 -1
- package/web/.next/server/chunks/ssr/_8a700ff4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_8f4f8aa1._.js +1 -1
- package/web/.next/server/chunks/ssr/_8f4f8aa1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_fe68c1e2._.js → _9df39bfe._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_fe68c1e2._.js.map → _9df39bfe._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_1055ec32._.js → _a31c3a42._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1055ec32._.js.map → _a31c3a42._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_b40a4fc3._.js +1 -1
- package/web/.next/server/chunks/ssr/_b40a4fc3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_c44ec376._.js +1 -1
- package/web/.next/server/chunks/ssr/_c44ec376._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_cd641c61._.js +1 -1
- package/web/.next/server/chunks/ssr/_cd641c61._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d53224a9._.js +1 -1
- package/web/.next/server/chunks/ssr/_d53224a9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_60246ee2._.js → _de93c45c._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_60246ee2._.js.map → _de93c45c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_8ee3123d._.js → _e0e86221._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_8ee3123d._.js.map → _e0e86221._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_e6271303._.js +1 -1
- package/web/.next/server/chunks/ssr/_e6271303._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_ed8fd56c._.js +1 -1
- package/web/.next/server/chunks/ssr/_ed8fd56c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f602cc9f._.js +1 -1
- package/web/.next/server/chunks/ssr/_f602cc9f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_05bba4dc._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_05bba4dc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_43451480._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_43451480._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_4b306bb3._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_4b306bb3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{src_presentation_web_1f525bd4._.js → src_presentation_web_5c844690._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_1f525bd4._.js.map → src_presentation_web_5c844690._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_81dd84ae._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_81dd84ae._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_7ab26c98._.js +3 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_adopt-local-directory_ts_75f1f28c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_adopt-local-directory_ts_75f1f28c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_9453ce8b._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-directory_ts_1209d917._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-directory_ts_1209d917._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_features_feature-tree-page-client_tsx_34c5cbbf._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b504e3e2._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b504e3e2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b5838705._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b5838705._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b6b4baa1._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b6b4baa1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c3d0de23._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c3d0de23._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_66643378._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_66643378._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{src_presentation_web_dc5ba3cf._.js → src_presentation_web_e596fda8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_dc5ba3cf._.js.map → src_presentation_web_e596fda8._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_fc29283f._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_fc29283f._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +98 -98
- package/web/.next/static/chunks/{1d72f699758c6d3a.js → 089bd320dc4b1575.js} +1 -1
- package/web/.next/static/chunks/{913f8613ffba3e5c.js → 0fc17b433aa79b46.js} +1 -1
- package/web/.next/static/chunks/105bb00cb34ccd38.js +1 -0
- package/web/.next/static/chunks/{d5b120471ecd81c3.js → 18be29465f4a1def.js} +1 -1
- package/web/.next/static/chunks/1f42ad4a0931acd3.js +1 -0
- package/web/.next/static/chunks/{dddb3a86ceab0299.js → 298594ed8c886cbf.js} +1 -1
- package/web/.next/static/chunks/{6d5150e080c53d51.js → 33317caa5c5abd6b.js} +1 -1
- package/web/.next/static/chunks/{6ac3de2ae9fd6923.js → 34593f30cd188c4a.js} +1 -1
- package/web/.next/static/chunks/{3be081e466e5c38f.js → 37ea114b14bec27f.js} +1 -1
- package/web/.next/static/chunks/{5d7f74c25dacc25c.js → 3c250fbfb60ee24f.js} +1 -1
- package/web/.next/static/chunks/{79865a986c6f7b78.js → 3c98769f57d9cab5.js} +1 -1
- package/web/.next/static/chunks/{88de900956cc7c59.js → 3d2af4aff402ec27.js} +1 -1
- package/web/.next/static/chunks/{60fd7ec231b71fe6.js → 424eadec8be0f312.js} +1 -1
- package/web/.next/static/chunks/{600304d205fb6d78.js → 4936903aae95a25f.js} +1 -1
- package/web/.next/static/chunks/4d47b81085b62d87.js +1 -0
- package/web/.next/static/chunks/{127b0c5b93da3ad5.js → 4e2de41996b256eb.js} +1 -1
- package/web/.next/static/chunks/{e09a852e65d50ea9.js → 512f87d97c19d83c.js} +1 -1
- package/web/.next/static/chunks/{d8a8d0ea290869a7.js → 51de8a6b0bdc70c9.js} +1 -1
- package/web/.next/static/chunks/57a7139e142ed273.js +1 -0
- package/web/.next/static/chunks/{31eb52265493ef76.js → 61757ff9dcbbd032.js} +1 -1
- package/web/.next/static/chunks/674e4d59f39b85e2.js +1 -0
- package/web/.next/static/chunks/93ea366bd74183ac.js +1 -0
- package/web/.next/static/chunks/{b0658275cec08831.js → ae7430dbb2e98782.js} +1 -1
- package/web/.next/static/chunks/{07361c8c12a5843e.js → b2abfb9855755aa4.js} +1 -1
- package/web/.next/static/chunks/{eb53dfcd51b8c265.js → c3d369f4301955a1.js} +1 -1
- package/web/.next/static/chunks/{07c57742ecdf243e.js → cd057f6e3acdf607.js} +1 -1
- package/web/.next/static/chunks/{afc90b9d319294e0.js → d5563287e193adaa.js} +1 -1
- package/web/.next/static/chunks/{c777b5c3be68f05b.js → d861a3318a70ff49.js} +1 -1
- package/web/.next/static/chunks/{88cebfaa6dd82cc7.js → da7737afc53217ed.js} +3 -3
- package/web/.next/static/chunks/{4cecc66a490b21f7.js → e115c6778a53c0b0.js} +1 -1
- package/web/.next/static/chunks/{39b106ba3f6b82ea.js → ea904b744cea3776.js} +1 -1
- package/web/.next/static/chunks/{6ae0cf4dd1f41683.js → f0c7b0a956112e63.js} +1 -1
- package/web/.next/static/chunks/{a59dfab21ca0ba91.js → f31db8ecfc2d481e.js} +1 -1
- package/web/.next/static/chunks/{a98de0590c6ebab9.js → f8a21f4841d519ff.js} +1 -1
- package/web/.next/static/chunks/00f78bad91244b81.js +0 -1
- package/web/.next/static/chunks/55b11c087456741a.js +0 -1
- package/web/.next/static/chunks/64b32c7716c3cde3.js +0 -1
- package/web/.next/static/chunks/83b6dc76bfe00b00.js +0 -1
- package/web/.next/static/chunks/a29ef3fcc3085a7d.js +0 -1
- package/web/.next/static/chunks/b6f72b83e6cf64bc.js +0 -1
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_buildManifest.js +0 -0
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{VT3SIc3eQMRpCzfl2igIb → wfZhz3kojQGb8pd6OW9Lk}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43416,e=>{"use strict";let t=(0,e.i(903645).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],43416)},958481,e=>{"use strict";var t=e.i(215131);e.s(["AlertTriangle",()=>t.default])},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let s=new Set(["txt","md","csv","json","yaml","yml","xml","html","css","js","ts","jsx","tsx","py","rb","go","rs","java","kt","c","cpp","h","hpp","cs","swift","sh","bash","zsh","fish","ps1","bat","cmd","sql","graphql","proto","toml","ini","cfg","conf","env","dockerfile","makefile","cmake","gradle","sbt","lock","sum","mod","png","jpg","jpeg","gif","svg","webp","bmp","ico","avif","pdf","doc","docx","xls","xlsx","ppt","pptx","odt","ods","odp","zip","tar","gz","bz2","xz","7z","rar","log","diff","patch"]);function i(){let[e,t]=(0,r.useState)([]),[i,a]=(0,r.useState)(null),[n,l]=(0,r.useState)(!1),o=(0,r.useRef)(0),u=(0,r.useRef)(crypto.randomUUID()),c=(0,r.useCallback)(async e=>{for(let t of(a(null),e)){if(t.size>0xa00000)return void a(`"${t.name}" exceeds 10 MB limit`);let e=function(e){let t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():null}(t.name);if(e&&!s.has(e))return void a(`File type "${e}" is not allowed`)}for(let r of e){let e=crypto.randomUUID();t(t=>[...t,{id:e,name:r.name,size:r.size,mimeType:r.type||"application/octet-stream",path:"",loading:!0}]);try{let s=new FormData;s.append("file",r),s.append("sessionId",u.current);let i=await fetch("/api/attachments/upload",{method:"POST",body:s});if(!i.ok){let r=await i.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),a(r.error??"Upload failed");return}let n=await i.json();t(t=>t.some(t=>t.id!==e&&t.path===n.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...n,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),a("Upload failed")}}},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&l(!0)},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&l(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,l(!1);let t=Array.from(e.dataTransfer.files);t.length>0&&c(t)},[c]),y=(0,r.useCallback)(e=>{let t=e.clipboardData?.items;if(!t)return;let r=[];for(let e of Array.from(t))if("file"===e.kind){let t=e.getAsFile();t&&r.push(t)}r.length>0&&(e.preventDefault(),c(r))},[c]),v=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),m=(0,r.useCallback)((e,r)=>{t(t=>t.map(t=>t.id===e?{...t,notes:r}:t))},[]),b=(0,r.useCallback)(e=>{t(t=>t.some(t=>t.path===e.path)?t:[...t,{...e,loading:!1}])},[]),g=(0,r.useCallback)(()=>{t([]),a(null)},[]),R=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:R,uploadError:i,isDragOver:n,handleFiles:c,handleDragEnter:h,handleDragLeave:d,handleDragOver:p,handleDrop:f,handlePaste:y,addAttachment:b,removeAttachment:v,updateNotes:m,clearAttachments:g}}e.s(["useAttachments",()=>i],731151)},962885,e=>{"use strict";let t;var r=e.i(704520),s=e.i(265617),i=e.i(806786),a=e.i(328574),n=e.i(477501),l=e.i(20820),o=e.i(800003),u=e.i(668911),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#l;#r;#t;#o;#u;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#y():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#m(),this.#b(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||i!==this.#p)&&this.#k(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#l=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#y(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#R(){this.#m();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#k(e){this.#b(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#y()},this.#p))}#v(){this.#R(),this.#k(this.#S())}#m(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#b(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,u=this.#n,c=this.#l,d=e!==s?e.state:this.#i,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),l=r&&p(e,s,t,i);(n||l)&&(v={...v,...(0,a.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=v;r=v.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(R="success",r=(0,o.replaceData)(n?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!S)if(n&&r===u?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(n?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,r=this.#u,g=Date.now(),R="error");let k="fetching"===v.fetchStatus,w="pending"===R,x="error"===R,C=w&&k,I=void 0!==r,E={status:R,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===R,isError:x,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!w,isLoadingError:x&&!I,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:x&&I,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==E.data,r="error"===E.status&&!t,i=e=>{r?e.reject(E.error):t&&e.resolve(E.data)},a=()=>{i(this.#r=E.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||E.data!==n.value)&&a();break;case"rejected":r&&E.error===n.reason||a()}}return E}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#l=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(54101);var y=e.i(152155),v=e.i(434682);e.i(679606);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=y.createContext(!1);b.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let a,n=y.useContext(b),l=y.useContext(m),u=(0,v.useQueryClient)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,o.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!l.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{l.clearReset()},[l]);let d=!u.getQueryCache().get(c.queryHash),[p]=y.useState(()=>new t(u,c)),f=p.getOptimisticResult(c),R=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?p.subscribe(i.notifyManager.batchCalls(e)):o.noop;return p.updateResult(),t},[p,R]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),y.useEffect(()=>{p.setOptions(c)},[c,p]),c?.suspense&&f.isPending)throw g(c,p,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw f.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&f.isLoading&&f.isFetching&&!n){let e=d?g(c,p,l):h?.promise;e?.catch(o.noop).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?f:p.trackResult(f)}(e,c,t)}e.s(["useQuery",()=>R],962885)},32494,e=>{"use strict";let t=(0,e.i(903645).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],32494)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),i=e.i(786874),a=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,c]=l(n,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:n,collectionRef:i,children:s})};h.displayName=n;let d=e+"CollectionSlot",p=(0,i.createSlot)(d),f=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=c(d,r),l=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:l,children:i})});f.displayName=d;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,i.createSlot)(y),b=t.default.forwardRef((e,r)=>{let{scope:i,children:n,...l}=e,o=t.default.useRef(null),u=(0,s.useComposedRefs)(r,o),h=c(y,i);return t.default.useEffect(()=>(h.itemMap.set(o,{ref:o,...l}),()=>void h.itemMap.delete(o))),(0,a.jsx)(m,{...{[v]:""},ref:u,children:n})});return b.displayName=y,[{Provider:h,Slot:f,ItemSlot:b},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,s;let i,a,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,s=t,i=r.length,(n=(a=u(s))>=0?a:i+a)<0||n>=i?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#x;constructor(e){super(e),this.#x=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#x[this.#x.indexOf(e)]=e:this.#x.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),a=this.#x.length,n=u(e),l=n>=0?n:a+n,o=l<0||l>=a?-1:l;if(o===this.size||i&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!i;n<0&&l++;let h=[...this.#x],d=!1;for(let e=l;e<c;e++)if(l===e){let a=h[e];h[e]===t&&(a=h[e+1]),i&&this.delete(t),s=this.get(a),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#x.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#x.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#x=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#x.splice(this.#x.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#x,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#x,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#x.indexOf(e)}keyAt(e){return o(this.#x,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),i=e.i(205978),a=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),h=e.i(679606),d="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[y,v,m]=(0,s.createCollection)(f),[b,g]=(0,a.createContextScope)(f,[m]),[R,S]=b(f),k=t.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(w,{...e,ref:t})})}));k.displayName=f;var w=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,orientation:n,loop:y=!1,dir:m,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:S,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...x}=e,C=t.useRef(null),I=(0,i.useComposedRefs)(s,C),T=(0,c.useDirection)(m),[M,O]=(0,u.useControllableState)({prop:b,defaultProp:g??null,onChange:S,caller:f}),[Q,D]=t.useState(!1),A=(0,o.useCallbackRef)(k),F=v(a),L=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(d,A),()=>e.removeEventListener(d,A)},[A]),(0,h.jsx)(R,{scope:a,orientation:n,dir:T,loop:y,currentTabStopId:M,onItemFocus:t.useCallback(e=>O(e),[O]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,h.jsx)(l.Primitive.div,{tabIndex:Q||0===P?-1:0,"data-orientation":n,...x,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!Q){let t=new CustomEvent(d,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),w)}}L.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),x="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:u,children:c,...d}=e,p=(0,n.useId)(),f=u||p,m=S(x,i),b=m.currentTabStopId===f,g=v(i),{onFocusableItemAdd:R,onFocusableItemRemove:k,currentTabStopId:w}=m;return t.useEffect(()=>{if(a)return R(),()=>k()},[a,R,k]),(0,h.jsx)(y.ItemSlot,{scope:i,id:f,focusable:a,active:o,children:(0,h.jsx)(l.Primitive.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...d,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let i=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return I[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=m.loop?(r=i,s=a+1,r.map((e,t)=>r[(s+t)%r.length])):i.slice(a+1)}setTimeout(()=>E(i))}}),children:"function"==typeof c?c({isCurrentTabStop:b,hasTabStop:null!=w}):c})})});C.displayName=x;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>g])},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,399108,143620,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(317406),i=e.i(508893);let a=(0,i.createServerReference)("40380eb0a867264153f92eb0befd51c6b57f60c9ce",i.callServer,void 0,i.findSourceMapURL,"deployFeature"),n=(0,i.createServerReference)("407b3082f8aa0308989b442f49820085256f25e5dc",i.callServer,void 0,i.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],399108);let l=(0,i.createServerReference)("40a9e7a9c3e1b77e7c9fa85b9f7d5a523b9d2f51c4",i.callServer,void 0,i.findSourceMapURL,"deployApplication"),o=(0,i.createServerReference)("4054d12a818d20b3295a47380239e047421be5e3db",i.callServer,void 0,i.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],143620);let u=(0,i.createServerReference)("40354d622fd4841e21d4e5394473f74e7fbffaabab",i.callServer,void 0,i.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let h={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class d{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??h}update(e,t){let r={...this.entries.get(e)??h,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>d,"EMPTY_ENTRY",0,h],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),f=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:i}){let c=(0,r.useRef)(null);c.current||(c.current=new d,c.current.hydrate(e));let h=c.current;(0,r.useEffect)(()=>{h.hydrate(e)},[e,h]);let v=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),b=(0,r.useCallback)(e=>{if(v.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),h.setStatus(e,null),m(e);return}if(!t||t.state===s.DeploymentState.Stopped){h.setStatus(e,null),m(e);return}h.setStatus(e,t)},3e3);v.current.set(e,t)},[h,m]);(0,r.useEffect)(()=>{let e=v.current,t=h.subscribeAll(()=>{for(let[t]of e){let e=h.getEntry(t);e.status&&f.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[h,m]);let g=(0,r.useCallback)(e=>{if(e&&!h.getEntry(e).hydrated){if(h.isFullyHydrated())return void h.update(e,{hydrated:!0});h.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);h.setStatus(e,t),t&&f.has(t.state)&&b(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[h,b]),R=(0,r.useCallback)(async e=>{h.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await a(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void h.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});h.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),b(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";h.update(e.targetId,{deployLoading:!1,deployError:t})}},[h,b]),S=(0,r.useCallback)(async e=>{if(e){h.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),h.update(e,{stopLoading:!1,status:null,url:null})):h.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),h.update(e,{stopLoading:!1})}}},[h,m]),k=(0,r.useMemo)(()=>({store:h,deploy:R,stop:S,ensureHydrated:g}),[h,R,S,g]);return(0,t.jsx)(y.Provider,{value:k,children:i})}function m(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function b(){let e=(0,r.useContext)(y);return e||g}let g={store:new d,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>b],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function i(e){let{store:i,deploy:a,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?i.subscribe(o,e):s,[i,o]),c=(0,t.useCallback)(()=>o?i.getEntry(o):i.getEntry(""),[i,o]),h=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await a(e)},[a,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:h.deployLoading,stopLoading:h.stopLoading,deployError:h.deployError,status:h.status,url:h.url}}e.s(["useDeployAction",()=>i])},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43416,e=>{"use strict";let t=(0,e.i(903645).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],43416)},958481,e=>{"use strict";var t=e.i(215131);e.s(["AlertTriangle",()=>t.default])},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let s=new Set(["txt","md","csv","json","yaml","yml","xml","html","css","js","ts","jsx","tsx","py","rb","go","rs","java","kt","c","cpp","h","hpp","cs","swift","sh","bash","zsh","fish","ps1","bat","cmd","sql","graphql","proto","toml","ini","cfg","conf","env","dockerfile","makefile","cmake","gradle","sbt","lock","sum","mod","png","jpg","jpeg","gif","svg","webp","bmp","ico","avif","pdf","doc","docx","xls","xlsx","ppt","pptx","odt","ods","odp","zip","tar","gz","bz2","xz","7z","rar","log","diff","patch"]);function i(){let[e,t]=(0,r.useState)([]),[i,a]=(0,r.useState)(null),[n,l]=(0,r.useState)(!1),o=(0,r.useRef)(0),u=(0,r.useRef)(crypto.randomUUID()),c=(0,r.useCallback)(async e=>{for(let t of(a(null),e)){if(t.size>0xa00000)return void a(`"${t.name}" exceeds 10 MB limit`);let e=function(e){let t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():null}(t.name);if(e&&!s.has(e))return void a(`File type "${e}" is not allowed`)}for(let r of e){let e=crypto.randomUUID();t(t=>[...t,{id:e,name:r.name,size:r.size,mimeType:r.type||"application/octet-stream",path:"",loading:!0}]);try{let s=new FormData;s.append("file",r),s.append("sessionId",u.current);let i=await fetch("/api/attachments/upload",{method:"POST",body:s});if(!i.ok){let r=await i.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),a(r.error??"Upload failed");return}let n=await i.json();t(t=>t.some(t=>t.id!==e&&t.path===n.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...n,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),a("Upload failed")}}},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&l(!0)},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&l(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,l(!1);let t=Array.from(e.dataTransfer.files);t.length>0&&c(t)},[c]),y=(0,r.useCallback)(e=>{let t=e.clipboardData?.items;if(!t)return;let r=[];for(let e of Array.from(t))if("file"===e.kind){let t=e.getAsFile();t&&r.push(t)}r.length>0&&(e.preventDefault(),c(r))},[c]),v=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),m=(0,r.useCallback)((e,r)=>{t(t=>t.map(t=>t.id===e?{...t,notes:r}:t))},[]),g=(0,r.useCallback)(e=>{t(t=>t.some(t=>t.path===e.path)?t:[...t,{...e,loading:!1}])},[]),b=(0,r.useCallback)(()=>{t([]),a(null)},[]),R=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:R,uploadError:i,isDragOver:n,handleFiles:c,handleDragEnter:h,handleDragLeave:d,handleDragOver:p,handleDrop:f,handlePaste:y,addAttachment:g,removeAttachment:v,updateNotes:m,clearAttachments:b}}e.s(["useAttachments",()=>i],731151)},962885,e=>{"use strict";let t;var r=e.i(704520),s=e.i(265617),i=e.i(806786),a=e.i(328574),n=e.i(477501),l=e.i(20820),o=e.i(800003),u=e.i(668911),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#l;#r;#t;#o;#u;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#y():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#m(),this.#g(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||i!==this.#p)&&this.#k(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#l=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#y(e){this.#b();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#R(){this.#m();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#k(e){this.#g(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#y()},this.#p))}#v(){this.#R(),this.#k(this.#S())}#m(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#g(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,u=this.#n,c=this.#l,d=e!==s?e.state:this.#i,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),l=r&&p(e,s,t,i);(n||l)&&(v={...v,...(0,a.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:R}=v;r=v.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(R="success",r=(0,o.replaceData)(n?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!S)if(n&&r===u?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(n?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(g=this.#t,r=this.#u,b=Date.now(),R="error");let k="fetching"===v.fetchStatus,w="pending"===R,x="error"===R,C=w&&k,I=void 0!==r,E={status:R,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===R,isError:x,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:v.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!w,isLoadingError:x&&!I,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:x&&I,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==E.data,r="error"===E.status&&!t,i=e=>{r?e.reject(E.error):t&&e.resolve(E.data)},a=()=>{i(this.#r=E.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||E.data!==n.value)&&a();break;case"rejected":r&&E.error===n.reason||a()}}return E}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#l=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(54101);var y=e.i(152155),v=e.i(434682);e.i(679606);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),g=y.createContext(!1);g.Provider;var b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let a,n=y.useContext(g),l=y.useContext(m),u=(0,v.useQueryClient)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,o.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!l.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{l.clearReset()},[l]);let d=!u.getQueryCache().get(c.queryHash),[p]=y.useState(()=>new t(u,c)),f=p.getOptimisticResult(c),R=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?p.subscribe(i.notifyManager.batchCalls(e)):o.noop;return p.updateResult(),t},[p,R]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),y.useEffect(()=>{p.setOptions(c)},[c,p]),c?.suspense&&f.isPending)throw b(c,p,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw f.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&f.isLoading&&f.isFetching&&!n){let e=d?b(c,p,l):h?.promise;e?.catch(o.noop).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?f:p.trackResult(f)}(e,c,t)}e.s(["useQuery",()=>R],962885)},32494,e=>{"use strict";let t=(0,e.i(903645).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],32494)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),i=e.i(786874),a=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,c]=l(n,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:n,collectionRef:i,children:s})};h.displayName=n;let d=e+"CollectionSlot",p=(0,i.createSlot)(d),f=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=c(d,r),l=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:l,children:i})});f.displayName=d;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,i.createSlot)(y),g=t.default.forwardRef((e,r)=>{let{scope:i,children:n,...l}=e,o=t.default.useRef(null),u=(0,s.useComposedRefs)(r,o),h=c(y,i);return t.default.useEffect(()=>(h.itemMap.set(o,{ref:o,...l}),()=>void h.itemMap.delete(o))),(0,a.jsx)(m,{...{[v]:""},ref:u,children:n})});return g.displayName=y,[{Provider:h,Slot:f,ItemSlot:g},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,s;let i,a,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,s=t,i=r.length,(n=(a=u(s))>=0?a:i+a)<0||n>=i?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#x;constructor(e){super(e),this.#x=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#x[this.#x.indexOf(e)]=e:this.#x.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),a=this.#x.length,n=u(e),l=n>=0?n:a+n,o=l<0||l>=a?-1:l;if(o===this.size||i&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!i;n<0&&l++;let h=[...this.#x],d=!1;for(let e=l;e<c;e++)if(l===e){let a=h[e];h[e]===t&&(a=h[e+1]),i&&this.delete(t),s=this.get(a),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#x.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#x.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#x=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#x.splice(this.#x.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#x,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#x,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#x.indexOf(e)}keyAt(e){return o(this.#x,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),i=e.i(205978),a=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),h=e.i(679606),d="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[y,v,m]=(0,s.createCollection)(f),[g,b]=(0,a.createContextScope)(f,[m]),[R,S]=g(f),k=t.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(w,{...e,ref:t})})}));k.displayName=f;var w=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,orientation:n,loop:y=!1,dir:m,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:S,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...x}=e,C=t.useRef(null),I=(0,i.useComposedRefs)(s,C),T=(0,c.useDirection)(m),[M,O]=(0,u.useControllableState)({prop:g,defaultProp:b??null,onChange:S,caller:f}),[Q,D]=t.useState(!1),A=(0,o.useCallbackRef)(k),F=v(a),L=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(d,A),()=>e.removeEventListener(d,A)},[A]),(0,h.jsx)(R,{scope:a,orientation:n,dir:T,loop:y,currentTabStopId:M,onItemFocus:t.useCallback(e=>O(e),[O]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,h.jsx)(l.Primitive.div,{tabIndex:Q||0===P?-1:0,"data-orientation":n,...x,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!Q){let t=new CustomEvent(d,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),w)}}L.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),x="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:u,children:c,...d}=e,p=(0,n.useId)(),f=u||p,m=S(x,i),g=m.currentTabStopId===f,b=v(i),{onFocusableItemAdd:R,onFocusableItemRemove:k,currentTabStopId:w}=m;return t.useEffect(()=>{if(a)return R(),()=>k()},[a,R,k]),(0,h.jsx)(y.ItemSlot,{scope:i,id:f,focusable:a,active:o,children:(0,h.jsx)(l.Primitive.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let i=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return I[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=m.loop?(r=i,s=a+1,r.map((e,t)=>r[(s+t)%r.length])):i.slice(a+1)}setTimeout(()=>E(i))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=w}):c})})});C.displayName=x;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>b])},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,259289,450838,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(317406),i=e.i(508893);let a=(0,i.createServerReference)("40439b078896772e272d73cff5c9e76f12d2ad4fff",i.callServer,void 0,i.findSourceMapURL,"deployFeature"),n=(0,i.createServerReference)("40e1761c0b43e73601f7fcd9dce8acd5bd268ef35f",i.callServer,void 0,i.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],259289);let l=(0,i.createServerReference)("40e171d0c1bb54653072e2fa70eb1f9107de77cd77",i.callServer,void 0,i.findSourceMapURL,"deployApplication"),o=(0,i.createServerReference)("405b78d3f646f2c9b1433c26864d9f6ab5f562bdf5",i.callServer,void 0,i.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],450838);let u=(0,i.createServerReference)("40198f1fcab162e3ff7b2b293c1c1f8dc5ccba5116",i.callServer,void 0,i.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let h={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class d{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??h}update(e,t){let r={...this.entries.get(e)??h,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>d,"EMPTY_ENTRY",0,h],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),f=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:i}){let c=(0,r.useRef)(null);c.current||(c.current=new d,c.current.hydrate(e));let h=c.current;(0,r.useEffect)(()=>{h.hydrate(e)},[e,h]);let v=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),g=(0,r.useCallback)(e=>{if(v.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),h.setStatus(e,null),m(e);return}if(!t||t.state===s.DeploymentState.Stopped){h.setStatus(e,null),m(e);return}h.setStatus(e,t)},3e3);v.current.set(e,t)},[h,m]);(0,r.useEffect)(()=>{let e=v.current,t=h.subscribeAll(()=>{for(let[t]of e){let e=h.getEntry(t);e.status&&f.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[h,m]);let b=(0,r.useCallback)(e=>{if(e&&!h.getEntry(e).hydrated){if(h.isFullyHydrated())return void h.update(e,{hydrated:!0});h.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);h.setStatus(e,t),t&&f.has(t.state)&&g(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[h,g]),R=(0,r.useCallback)(async e=>{h.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await a(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void h.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});h.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),g(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";h.update(e.targetId,{deployLoading:!1,deployError:t})}},[h,g]),S=(0,r.useCallback)(async e=>{if(e){h.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),h.update(e,{stopLoading:!1,status:null,url:null})):h.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),h.update(e,{stopLoading:!1})}}},[h,m]),k=(0,r.useMemo)(()=>({store:h,deploy:R,stop:S,ensureHydrated:b}),[h,R,S,b]);return(0,t.jsx)(y.Provider,{value:k,children:i})}function m(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function g(){let e=(0,r.useContext)(y);return e||b}let b={store:new d,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>g],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function i(e){let{store:i,deploy:a,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?i.subscribe(o,e):s,[i,o]),c=(0,t.useCallback)(()=>o?i.getEntry(o):i.getEntry(""),[i,o]),h=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await a(e)},[a,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:h.deployLoading,stopLoading:h.stopLoading,deployError:h.deployError,status:h.status,url:h.url}}e.s(["useDeployAction",()=>i])},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,440106,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(711719),i=e.i(935946),l=e.i(83428),s=e.i(542049),n=e.i(453360),o=e.i(941698),d=e.i(99105),c=e.i(723925),p=e.i(860253);e.i(541001);var u=e.i(64780),h=e.i(131777),x=e.i(508893);let m=(0,x.createServerReference)("4002cb2cd5637e166af94ad41d670792e2dcfe4205",x.callServer,void 0,x.findSourceMapURL,"createProjectAndFeature"),g=(0,x.createServerReference)("40606d2b1076b8b1fbed9a9e24749c8e59c8ba8ed2",x.callServer,void 0,x.findSourceMapURL,"createApplication");var f=e.i(41413);e.i(650032);var b=e.i(486254);e.i(692233);var v=e.i(210025),j=e.i(102828),y=e.i(470646),w=e.i(731151);let k=["application","fast","spec"],N={application:{icon:s.LayoutGrid,label:"Application",placeholder:"Build a modern e-commerce storefront with product catalog...",suggestions:["A landing page with hero, features, and pricing sections","Full-stack SaaS app with auth, billing, and dashboard","Mobile-first social media app with real-time chat","Personal portfolio with blog and project showcase"]},fast:{icon:n.Zap,label:"Fast",placeholder:"Add a dark mode toggle to the settings page...",suggestions:["Add pagination to the users list endpoint","Fix the broken logout redirect","Add input validation to the signup form","Refactor the API error handling middleware"]},spec:{icon:o.ClipboardList,label:"Spec Driven",placeholder:"Implement a role-based access control system with audit logging...",suggestions:["OAuth2 authentication with SSO and MFA support","Event-driven notification system with email and push","REST API with versioning, rate limiting, and OpenAPI docs","Data pipeline with ETL, validation, and monitoring"]}};function C({onRepositorySelect:e,onApplicationCreated:s,onClose:n,className:o}){let{t:x}=(0,u.useTranslation)("web"),[C,D]=(0,r.useState)(""),[A,P]=(0,r.useState)(void 0),[S,L]=(0,r.useState)(void 0),[_,T]=(0,r.useState)("application"),[M,R]=(0,r.useState)(!1),[E,O]=(0,r.useState)(null),[I,F]=(0,r.useState)(!1),z=(0,r.useRef)(null),$=(0,w.useAttachments)(),B=!!e,H=B?_:"application",Z=(0,r.useCallback)(()=>{T(e=>{let t=k.indexOf(e);return k[(t+1)%k.length]})},[]);(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n&&n(),"Tab"===t.key&&t.shiftKey&&e&&(t.preventDefault(),Z())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[n,Z,e]);let V=(0,r.useCallback)(async()=>{if(C.trim()&&!M){R(!0),O(null);try{if("application"!==H&&e){let t=await m({description:C.trim(),attachments:$.completedAttachments.map(e=>({path:e.path,name:e.name,notes:e.notes})),agentType:A,model:S,fast:"fast"===H});if(t.error){O(t.error),R(!1);return}t.repositoryPath&&e?.(t.repositoryPath),t.feature&&t.repositoryPath&&window.dispatchEvent(new CustomEvent("shep:feature-created",{detail:{featureId:t.feature.id,name:t.feature.name,description:t.feature.description,repositoryPath:t.repositoryPath}}))}else{let e=await g({description:C.trim(),agentType:A,modelOverride:S,initialPrompt:C.trim()});if(e.error){O(e.error),R(!1);return}e.application&&s?.(e.application.id)}}catch{O("Something went wrong. Please try again."),R(!1)}}},[C,M,H,$.completedAttachments,A,S,e,s]),W=(0,r.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),V())},[V]),U=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/dialog/pick-files");if(!e.ok)return;let t=await e.json();if(!t.paths?.length)return;for(let e of t.paths){let t=await fetch("/api/attachments/upload-from-path",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,sessionId:"onboarding"})});if(!t.ok)continue;let r=await t.json();$.addAttachment(r)}}catch{}},[$.addAttachment]),G=(0,r.useCallback)(e=>{D(e),z.current?.focus()},[]),K=N[H],q=K.icon;return(0,t.jsxs)("div",{"data-testid":"control-center-empty-state",className:(0,h.cn)("relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-8",o),children:[(0,t.jsx)("div",{className:"onboard-bg pointer-events-none absolute inset-0 animate-[onboard-fade-in_1.2s_ease-out_both]"}),n?(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Close",className:"text-muted-foreground hover:text-foreground hover:bg-accent/50 absolute top-4 right-4 z-10 cursor-pointer rounded p-1.5 transition-colors",children:(0,t.jsx)(p.X,{className:"h-5 w-5"})}):null,(0,t.jsxs)("div",{className:"relative flex w-full max-w-2xl flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-6 animate-[onboard-logo_0.8s_cubic-bezier(0.16,1,0.3,1)_both]",style:{animationDelay:"0ms"},children:(0,t.jsx)(v.ShepLogo,{size:72,className:"text-foreground"})}),(0,t.jsx)("h1",{className:"text-foreground animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-5xl font-extralight tracking-tight",style:{animationDelay:"120ms"},children:"What do you want to build?"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-3 animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-lg leading-relaxed font-light",style:{animationDelay:"220ms"},children:"Describe your idea and Shep creates the project for you."}),(0,t.jsxs)("div",{className:"mt-10 w-full animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both]",style:{animationDelay:"350ms"},children:[(0,t.jsxs)("div",{onFocus:()=>F(!0),onBlur:()=>F(!1),onDragEnter:$.handleDragEnter,onDragLeave:$.handleDragLeave,onDragOver:$.handleDragOver,onDrop:$.handleDrop,className:(0,h.cn)("flex flex-col rounded-xl border transition-all duration-200","border-border/60 bg-background shadow-sm dark:border-white/10 dark:bg-white/[0.04]",I&&"ring-ring/50 border-ring shadow-md ring-[3px] dark:border-orange-500/40 dark:ring-orange-500/25",$.isDragOver&&"border-primary/50 bg-primary/5",M&&"opacity-70"),children:[(0,t.jsx)("textarea",{ref:z,rows:2,autoFocus:!0,value:C,onChange:e=>D(e.target.value),onKeyDown:W,onPaste:$.handlePaste,placeholder:K.placeholder,disabled:M,className:"text-foreground placeholder:text-muted-foreground/60 max-h-[10rem] min-h-[4.5rem] w-full resize-none border-0 bg-transparent px-4 py-3.5 text-sm leading-relaxed focus:outline-none disabled:cursor-not-allowed"}),$.attachments.length>0?(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2.5 overflow-x-auto overflow-y-visible px-5 pt-2 pb-2",children:$.attachments.map(e=>(0,t.jsx)(b.AttachmentChip,{name:e.name,size:e.size,mimeType:e.mimeType,path:e.path,onRemove:()=>$.removeAttachment(e.id),loading:e.loading,notes:e.notes,onNotesChange:t=>$.updateNotes(e.id,t)},e.id))}):null,$.uploadError?(0,t.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",children:$.uploadError}):null,(0,t.jsxs)("div",{className:"border-border/60 flex shrink-0 items-center gap-3 border-t px-3 py-2 dark:border-white/10",children:[(0,t.jsx)(f.AgentModelPicker,{initialAgentType:A??"claude-code",initialModel:S??"claude-sonnet-4-6",mode:"override",showInstallStatus:!0,onAgentModelChange:(e,t)=>{P(e),L(t)},className:"w-55"}),(0,t.jsx)("div",{className:"flex-1"}),B?(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","data-testid":"build-mode-selector",className:"text-muted-foreground hover:text-foreground hover:bg-accent/50 flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",children:[(0,t.jsxs)("span",{className:"flex animate-[onboard-fade-up_0.25s_ease-out_both] items-center gap-1.5",children:[(0,t.jsx)(q,{className:"h-3.5 w-3.5"}),K.label]},H),(0,t.jsx)(d.ChevronDown,{className:"h-3 w-3 opacity-50"})]})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",className:"min-w-[160px]",children:k.map(e=>{let r=N[e],a=r.icon,i=H===e;return(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>T(e),"data-testid":`build-mode-${e}`,className:"flex items-center gap-2",children:[(0,t.jsx)(a,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"flex-1",children:r.label}),i?(0,t.jsx)(c.Check,{className:"text-foreground h-3.5 w-3.5"}):null]},e)})})]}):null,(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:U,disabled:M,"aria-label":x("chat.attachFiles"),className:"text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors disabled:opacity-50",children:(0,t.jsx)(i.Paperclip,{className:"h-4 w-4"})})}),(0,t.jsx)(j.TooltipContent,{side:"top",children:x("chat.attachFiles")})]}),(0,t.jsx)("button",{type:"button",onClick:V,disabled:!C.trim()||M,className:(0,h.cn)("bg-foreground text-background inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-lg","hover:bg-foreground/90 disabled:pointer-events-none disabled:opacity-30","transition-all duration-150"),children:M?(0,t.jsx)(l.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(a.SendHorizontal,{className:"h-3.5 w-3.5"})})]})]}),E?(0,t.jsx)("p",{className:"text-destructive mt-2 text-center text-sm",children:E}):null]}),(0,t.jsx)("div",{className:"mt-6 flex animate-[onboard-fade-up_0.4s_ease-out_both] flex-wrap justify-center gap-2",children:K.suggestions.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>G(e),disabled:M,className:"text-muted-foreground hover:text-foreground border-border/60 hover:border-border hover:bg-accent/50 cursor-pointer rounded-full border px-3.5 py-1.5 text-xs transition-all duration-150 disabled:opacity-50 dark:border-white/10 dark:hover:border-white/20 dark:hover:bg-white/[0.06]",children:e},e))},H)]})]})}e.s(["ControlCenterEmptyState",()=>C],440106)},532077,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("405a6777132c43c4e7b43cd50863a8f5d3428800c5",t.callServer,void 0,t.findSourceMapURL,"deleteApplication");e.s(["deleteApplication",()=>r])},370002,942616,e=>{"use strict";var t=e.i(215131);function r(e,t,r,a){return"processing"===t?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:"awaiting_input"===t?{label:"Action Required",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!0,previewDisabled:!0}:"interrupted"===a?{label:"Interrupted",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!1,previewDisabled:!0}:"failed"===a?{label:"Failed",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:"building"===a?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:r?{label:"Live",dotClass:"bg-emerald-500",borderClass:"",pulse:!0,previewDisabled:!1}:"Error"===e?{label:"Error",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:{label:"Ready",dotClass:"bg-sky-500",borderClass:"",pulse:!1,previewDisabled:!1}}e.s(["TriangleAlert",()=>t.default],370002),e.s(["deriveAppLiveStatus",()=>r],942616)},672971,e=>{"use strict";function t(e){return`app-${e}`}e.s(["featureIdForApplication",()=>t])},731463,e=>{"use strict";let t=(0,e.i(903645).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",()=>t],731463)},74573,e=>{"use strict";var t=e.i(679606),r=e.i(317406);function a({d:e,...r}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...r,"aria-hidden":"true",children:(0,t.jsx)("path",{d:e})})}function i(e){return(0,t.jsx)(a,{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",...e})}let l={[r.CloudDeploymentProvider.CloudflarePages]:function(e){return(0,t.jsx)(a,{d:"M10.715 14.32H5.442l-.64-1.203L13.673 0l1.397.579-1.752 9.112h5.24l.648 1.192L10.719 24l-1.412-.54ZM4.091 5.448a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.543 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.544 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm8.657-2.7h5.424l.772.771v16.975l-.772.772h-7.392l.374-.579h6.779l.432-.432V3.758l-.432-.432h-4.676l-.552 2.85h-.59l.529-2.877.108-.552ZM2.74 21.265l-.772-.772V3.518l.772-.771h7.677l-.386.579H2.98l-.432.432v16.496l.432.432h5.586l-.092.579zm1.157-1.93h3.28l-.116.58h-3.55l-.192-.193v-3.473l.578 1.158zm13.117 0 .579.58H14.7l.385-.58z",...e})},[r.CloudDeploymentProvider.Vercel]:function(e){return(0,t.jsx)(a,{d:"m12 1.608 12 20.784H0Z",...e})},[r.CloudDeploymentProvider.Netlify]:function(e){return(0,t.jsx)(a,{d:"M6.49 19.04h-.23L5.13 17.9v-.23l1.73-1.71h1.2l.15.15v1.2L6.5 19.04ZM5.13 6.31V6.1l1.13-1.13h.23L8.2 6.68v1.2l-.15.15h-1.2L5.13 6.31Zm9.96 9.09h-1.65l-.14-.13v-3.83c0-.68-.27-1.2-1.1-1.23-.42 0-.9 0-1.43.02l-.07.08v4.96l-.14.14H8.9l-.13-.14V8.73l.13-.14h3.7a2.6 2.6 0 0 1 2.61 2.6v4.08l-.13.14Zm-8.37-2.44H.14L0 12.82v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14Zm17.14 0h-6.58l-.14-.14v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14ZM11.05 6.55V1.64l.14-.14h1.65l.14.14v4.9l-.14.14h-1.65l-.14-.13Zm0 15.81v-4.9l.14-.14h1.65l.14.13v4.91l-.14.14h-1.65l-.14-.14Z",...e})},[r.CloudDeploymentProvider.AwsAmplify]:function(e){return(0,t.jsx)(a,{d:"M11.58 2.1 1.15 20.87h4.33l1.9-3.5h9.24l1.9 3.5h4.33L12.42 2.1h-.84Zm.42 5.6 3.12 5.73H8.88L12 7.7Z",...e})},[r.CloudDeploymentProvider.GcpCloudRun]:function(e){return(0,t.jsx)(a,{d:"M12.19 2.38a9.344 9.344 0 0 0-9.234 6.893c.053-.02-.055.013 0 0-3.875 2.551-3.922 8.11-.247 10.941l.006-.007-.007.03a6.717 6.717 0 0 0 4.077 1.356h5.173l.03.03h5.192c6.687.053 9.376-8.605 3.835-12.35a9.365 9.365 0 0 0-2.821-4.552l-.043.043.006-.05A9.344 9.344 0 0 0 12.19 2.38zm-.358 4.146c1.244-.04 2.518.368 3.486 1.15a5.186 5.186 0 0 1 1.862 4.078v.518c3.53-.07 3.53 5.262 0 5.193h-5.193l-.008.009v-.04H6.785a2.59 2.59 0 0 1-1.067-.23h.001a2.597 2.597 0 1 1 3.437-3.437l3.013-3.012A6.747 6.747 0 0 0 8.11 8.24c.018-.01.04-.026.054-.023a5.186 5.186 0 0 1 3.67-1.69z",...e})}},s={[r.CloudDeploymentProvider.CloudflarePages]:"#F38020",[r.CloudDeploymentProvider.Vercel]:"#000000",[r.CloudDeploymentProvider.Netlify]:"#00C7B7",[r.CloudDeploymentProvider.AwsAmplify]:"#FF9900",[r.CloudDeploymentProvider.GcpCloudRun]:"#4285F4"};e.s(["CLOUD_PROVIDER_BRAND_HEX",0,s,"CLOUD_PROVIDER_ICONS",0,l,"GitHubIcon",()=>i])},453721,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(711434),i=e.i(962885),l=e.i(619933),s=e.i(382569),n=e.i(542049),o=e.i(83428),d=e.i(3214),c=e.i(853756),p=e.i(131777),u=e.i(873504),h=e.i(175921),x=e.i(440106),m=e.i(958481),g=e.i(383379),f=e.i(730702);let b=(0,e.i(903645).default)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);var v=e.i(32494),j=e.i(731463),y=e.i(724042),w=e.i(43416),k=e.i(267669),N=e.i(370002),C=e.i(453360),D=e.i(434682),A=e.i(360112),P=e.i(735364),S=e.i(602287),L=e.i(470646),_=e.i(532077),T=e.i(942616),M=e.i(680554),R=e.i(8537),E=e.i(317406),O=e.i(672971),I=e.i(74573);let F="rgba(255,255,255,0.13)",z="rgba(255,255,255,0.07)",$="rgba(255,255,255,0.04)",B=[function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[Array.from({length:8},(e,r)=>Array.from({length:16},(e,a)=>(0,t.jsx)("circle",{cx:10+20*a,cy:10+20*r,r:"1.5",fill:z},`${r}-${a}`))),(0,t.jsx)("circle",{cx:"240",cy:"56",r:"52",fill:"none",stroke:$,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"240",cy:"56",r:"32",fill:"none",stroke:F,strokeWidth:"0.8"}),(0,t.jsx)("circle",{cx:"60",cy:"112",r:"14",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"60",cy:"112",r:"6",fill:$})]})},function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[[24,48,72,96,120].map((e,r)=>(0,t.jsx)("path",{d:`M0,${e} C64,${e-18+4*r} 128,${e+18-3*r} 192,${e-12+2*r} S288,${e+14} 320,${e}`,fill:"none",stroke:2===r?F:z,strokeWidth:2===r?1.5:1},`wave-${e}`)),(0,t.jsx)("path",{d:"M0,72 C64,54 128,90 192,60 S288,86 320,72 L320,160 L0,160 Z",fill:$}),(0,t.jsx)("circle",{cx:"290",cy:"30",r:"18",fill:"none",stroke:z,strokeWidth:"1"})]})},function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"160",cy:"160",r:"120",fill:"none",stroke:$,strokeWidth:"40"}),(0,t.jsx)("circle",{cx:"100",cy:"60",r:"70",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"220",cy:"80",r:"55",fill:"none",stroke:F,strokeWidth:"1"}),(0,t.jsx)("polygon",{points:"160,18 196,60 160,102 124,60",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"20",cy:"20",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"300",cy:"20",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"20",cy:"140",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"300",cy:"140",r:"2",fill:F})]})},function(){let e=[];for(let r=32;r<320;r+=32)e.push((0,t.jsx)("line",{x1:r,y1:"0",x2:r,y2:"160",stroke:$,strokeWidth:"1"},`v${r}`));for(let r=32;r<160;r+=32)e.push((0,t.jsx)("line",{x1:"0",y1:r,x2:"320",y2:r,stroke:$,strokeWidth:"1"},`h${r}`));return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[e,[20,40,64,90].map(e=>(0,t.jsx)("circle",{cx:"160",cy:"80",r:e,fill:"none",stroke:40===e?F:z,strokeWidth:"1"},e)),(0,t.jsx)("circle",{cx:"160",cy:"80",r:"4",fill:F})]})}];function H({name:e}){let r=B[function(e){let t=0x811c9dc5;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193)>>>0;return t}(e)%B.length];return(0,t.jsx)(r,{})}function Z({application:i,className:l}){let s=(0,a.useRouter)(),n=(0,D.useQueryClient)(),[d,c]=(0,r.useState)(!1),u=(0,M.useTurnStatus)((0,O.featureIdForApplication)(i.id)),h=(0,R.useDeployAction)({targetId:i.id,targetType:"application",repositoryPath:i.repositoryPath}),x=h.url,F=(0,T.deriveAppLiveStatus)(i.status,u,!!x,i.effectiveStatus),z=i.cloudDeploymentUrl??null,$=i.cloudDeploymentProvider??null,B=$?I.CLOUD_PROVIDER_ICONS[$]:null,Z=$?I.CLOUD_PROVIDER_BRAND_HEX[$]:void 0,V=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Deployed&&!!z,W=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Uploading,U=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Failed,G="building"===i.effectiveStatus,K="interrupted"===i.effectiveStatus,q="failed"===i.effectiveStatus,Q=h.status===E.DeploymentState.Booting||h.deployLoading,X=h.status===E.DeploymentState.Ready&&!!x,J=X?x:V?z:null,Y=!!J,ee=()=>s.push(`/application/${i.id}`),et=i.repositoryPath.split(/[/\\]/).pop()??i.repositoryPath;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("article",{"data-testid":"application-card",onClick:ee,className:(0,p.cn)("group relative flex cursor-pointer flex-col overflow-hidden rounded-sm","bg-card dark:bg-neutral-900","border-border/60 border shadow-sm dark:border-white/10","hover:border-border transition-all duration-200 hover:shadow-lg dark:hover:border-white/20 dark:hover:shadow-black/40","min-h-[280px]",l),children:[(0,t.jsxs)("div",{className:"relative overflow-hidden",style:{height:160},children:[Y?(0,t.jsxs)("div",{className:"absolute inset-0 bg-white dark:bg-neutral-900",children:[(0,t.jsx)("iframe",{src:J,title:`${i.name} preview`,className:"pointer-events-none absolute top-0 left-0 origin-top-left border-0",style:{width:"250%",height:"250%",transform:"scale(0.4)"},sandbox:"allow-same-origin allow-scripts",loading:"lazy"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center gap-2 bg-black/60 opacity-0 transition-opacity group-hover:opacity-100",onClick:e=>e.stopPropagation(),children:[X?(0,t.jsxs)("button",{type:"button",onClick:()=>void h.stop(),disabled:h.stopLoading,className:"inline-flex h-7 cursor-pointer items-center gap-1 rounded-full bg-white/90 px-3 text-[11px] font-semibold text-neutral-900 hover:bg-red-50 hover:text-red-600",children:[h.stopLoading?(0,t.jsx)(o.Loader2,{className:"h-3 w-3 animate-spin"}):(0,t.jsx)(w.RefreshCw,{className:"h-3 w-3"}),"Stop"]}):null,(0,t.jsxs)("button",{type:"button",onClick:()=>window.open(J,"_blank","noopener,noreferrer"),className:"inline-flex h-7 cursor-pointer items-center gap-1 rounded-full bg-white/90 px-3 text-[11px] font-semibold text-neutral-900 hover:bg-white",children:[(0,t.jsx)(f.ExternalLink,{className:"h-3 w-3"}),"Open"]})]})]}):Q?(0,t.jsx)("div",{className:"absolute inset-0 bg-white dark:bg-neutral-900",children:(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[(0,t.jsx)(o.Loader2,{className:"h-6 w-6 animate-spin text-amber-500"}),(0,t.jsx)("span",{className:"text-[11px] font-medium text-amber-600 dark:text-amber-400",children:"Starting…"})]})}):(0,t.jsx)("div",{className:"absolute inset-0 overflow-hidden bg-[#111827] dark:bg-neutral-800",children:(0,t.jsx)(H,{name:i.name})}),(0,t.jsx)("div",{className:"absolute top-2.5 left-2.5",onClick:e=>e.stopPropagation(),children:V?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white uppercase backdrop-blur-sm",children:[B?(0,t.jsx)(B,{className:"h-3 w-3",style:{color:Z??"#fff"}}):(0,t.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-emerald-400"}),"Live"]}):W?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white/80 uppercase backdrop-blur-sm",children:[(0,t.jsx)(o.Loader2,{className:"h-2.5 w-2.5 animate-spin"}),"Deploying"]}):G?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white/80 uppercase backdrop-blur-sm",children:[(0,t.jsx)(C.Zap,{className:"h-2.5 w-2.5"}),"Building"]}):F.pulse?(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:(0,p.cn)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",F.dotClass)}),(0,t.jsx)("span",{className:(0,p.cn)("relative inline-flex h-2 w-2 rounded-full",F.dotClass)})]}):null}),(0,t.jsx)("div",{className:"absolute top-2.5 right-2.5",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(L.DropdownMenu,{children:[(0,t.jsx)(L.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"flex h-6 w-6 cursor-pointer items-center justify-center rounded-full bg-black/30 text-white/80 opacity-0 backdrop-blur-sm transition-opacity group-hover:opacity-100 hover:bg-black/50",children:(0,t.jsx)(j.MoreHorizontal,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(L.DropdownMenuContent,{align:"end",sideOffset:4,children:(0,t.jsxs)(L.DropdownMenuItem,{className:"text-destructive focus:text-destructive cursor-pointer",onClick:()=>c(!0),children:[(0,t.jsx)(k.Trash2,{className:"mr-2 h-3.5 w-3.5"}),"Delete"]})})]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5 px-3.5 pt-3 pb-0",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-foreground line-clamp-1 text-[14px] leading-tight font-semibold",children:i.name}),i.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 line-clamp-1 text-[11px] leading-relaxed",children:i.description}):null]}),W?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(o.Loader2,{className:"text-muted-foreground h-3 w-3 shrink-0 animate-spin"}),(0,t.jsxs)("span",{className:"text-muted-foreground text-[11px]",children:["Deploying to ",$??"cloud","…"]})]}):U?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(m.AlertTriangle,{className:"text-destructive/70 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-destructive/80 text-[11px]",children:"Deployment failed"})]}):G?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(C.Zap,{className:"text-muted-foreground h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Building with AI…"}),(0,t.jsx)("div",{className:"ml-auto flex gap-0.5",children:[0,1,2].map(e=>(0,t.jsx)("span",{className:"bg-muted-foreground/40 h-1 w-1 animate-bounce rounded-full",style:{animationDelay:`${120*e}ms`}},e))})]}):K?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(m.AlertTriangle,{className:"h-3 w-3 shrink-0 text-amber-500/70"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Build interrupted"})]}):q?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(N.TriangleAlert,{className:"text-destructive/70 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Build failed"})]}):V?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(v.Globe,{className:"text-muted-foreground/40 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground/60 text-[11px]",children:"Not deployed yet"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3.5 pt-2 pb-3",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsxs)("button",{type:"button",title:i.repositoryPath,onClick:async t=>{t.stopPropagation();let{openDirectory:r}=await e.A(127062);await r(i.repositoryPath)},className:"text-muted-foreground/70 hover:text-foreground inline-flex shrink-0 items-center gap-1 text-[10px] transition-colors",children:[(0,t.jsx)(b,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:et})]}),z?(0,t.jsxs)("a",{href:z,target:"_blank",rel:"noopener noreferrer",title:z,className:"text-muted-foreground/70 hover:text-foreground inline-flex min-w-0 items-center gap-1 text-[10px] transition-colors",children:[B?(0,t.jsx)(B,{className:"h-3 w-3 shrink-0",style:{color:Z}}):(0,t.jsx)(v.Globe,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"font-mono",children:function(e,t=22){let r=e.replace(/^https?:\/\//,"").replace(/\/$/,"");if(r.length<=t)return r;let a=r.slice(-(t-6));return`${r.slice(0,5)}…${a}`}(z)})]}):null]}),G||W?(0,t.jsxs)("span",{className:"text-muted-foreground inline-flex shrink-0 items-center gap-1.5 text-[11px]",children:[(0,t.jsx)(o.Loader2,{className:"h-3 w-3 animate-spin"}),G?"Building…":"Deploying…"]}):z&&V?(0,t.jsxs)("a",{href:z,target:"_blank",rel:"noopener noreferrer",className:"bg-foreground text-background inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold transition-opacity hover:opacity-80",children:[(0,t.jsx)(f.ExternalLink,{className:"h-3 w-3"}),"Open live"]}):K?(0,t.jsxs)("button",{type:"button",onClick:ee,className:"inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-amber-500 px-3 text-[11px] font-semibold text-white transition-opacity hover:opacity-80",children:[(0,t.jsx)(y.Play,{className:"h-3 w-3 fill-current"}),"Continue"]}):q?(0,t.jsxs)("button",{type:"button",onClick:ee,className:"bg-destructive inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold text-white transition-opacity hover:opacity-80",children:[(0,t.jsx)(g.ArrowRight,{className:"h-3 w-3"}),"View error"]}):(0,t.jsxs)("button",{type:"button",onClick:ee,className:"bg-foreground text-background inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold transition-opacity hover:opacity-80",children:[(0,t.jsx)(g.ArrowRight,{className:"h-3 w-3"}),"Open"]})]})]}),(0,t.jsx)(S.Dialog,{open:d,onOpenChange:c,children:(0,t.jsxs)(S.DialogContent,{className:"max-w-xs",children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{children:"Delete application?"}),(0,t.jsxs)(S.DialogDescription,{children:["This will permanently remove ",(0,t.jsx)("strong",{children:i.name}),"."]})]}),(0,t.jsxs)(S.DialogFooter,{className:"grid grid-cols-2 gap-2 sm:flex-none",children:[(0,t.jsx)(S.DialogClose,{asChild:!0,children:(0,t.jsx)(P.Button,{variant:"outline",children:"Cancel"})}),(0,t.jsx)(P.Button,{variant:"destructive",onClick:async()=>{c(!1);let e=await (0,_.deleteApplication)(i.id);e.error?A.toast.error("Failed to delete",{description:e.error}):(A.toast.success("Application deleted"),n.invalidateQueries({queryKey:["applications"]}))},children:"Delete"})]})]})})]})}function V({className:l}){let s=(0,a.useRouter)(),d=(0,h.useFeatureFlags)(),[c,m]=(0,r.useState)(!1),{data:g=[],isLoading:f}=(0,i.useQuery)({queryKey:["applications"],queryFn:async()=>{let e=await fetch("/api/applications");if(!e.ok)throw Error("Failed to fetch applications");return e.json()},staleTime:3e4}),b=(0,r.useMemo)(()=>[...g].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),[g]);return(0,t.jsx)(u.DeploymentStatusProvider,{initialDeployments:[],children:(0,t.jsxs)("div",{"data-testid":"applications-page-client",className:(0,p.cn)("relative flex min-h-full flex-col",l),children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-4 p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.LayoutGrid,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("h1",{className:"text-sm font-bold tracking-tight",children:"Applications"}),f?null:(0,t.jsxs)("span",{className:"text-muted-foreground text-[10px]",children:[g.length," ",1===g.length?"app":"apps"]})]}),f?(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(o.Loader2,{className:"text-muted-foreground h-5 w-5 animate-spin"})}):0===b.length?(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,t.jsx)(x.ControlCenterEmptyState,{onApplicationCreated:e=>{s.push(`/application/${e}`)}})}):(0,t.jsxs)("div",{"data-testid":"applications-page-grid",className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[(0,t.jsx)(W,{onDescribe:()=>m(!0),onOpenLocalDirectory:async()=>{let{pickFolder:t}=await e.A(633405),r=await t();if(!r)return;let{adoptLocalDirectory:a}=await e.A(743797),i=await a({repositoryPath:r});i.applicationId&&s.push(`/application/${i.applicationId}`)},onImportGitHub:d.githubImport?()=>window.dispatchEvent(new CustomEvent("shep:open-github-import")):void 0}),b.map(e=>(0,t.jsx)(Z,{application:e},e.id))]})]}),c?(0,t.jsx)("div",{className:"absolute inset-0 z-40",children:(0,t.jsx)(x.ControlCenterEmptyState,{onApplicationCreated:e=>{s.push(`/application/${e}`)},onClose:()=>m(!1),className:"bg-background"})}):null]})})}function W({onDescribe:e,onOpenLocalDirectory:r,onImportGitHub:a}){let i=[{icon:(0,t.jsx)(c.Sparkles,{className:"h-4 w-4"}),label:"Describe with AI",description:"Tell Shep what to build — it scaffolds + ships",onClick:e,accent:"text-indigo-500 bg-indigo-100 dark:bg-indigo-900/60"},...r?[{icon:(0,t.jsx)(l.FolderOpen,{className:"h-4 w-4"}),label:"Open local project",description:"Pick an existing folder and continue from there",onClick:r,accent:"text-amber-600 bg-amber-100 dark:bg-amber-900/40"}]:[],...a?[{icon:(0,t.jsx)(s.Github,{className:"h-4 w-4"}),label:"Import from GitHub",description:"Connect an existing repo to manage here",onClick:a,accent:"text-foreground bg-muted"}]:[]];return(0,t.jsxs)("div",{className:(0,p.cn)("group relative flex cursor-pointer flex-col overflow-hidden rounded-sm border-2","border-dashed border-indigo-200 bg-transparent transition-all duration-200","hover:border-indigo-400 hover:bg-indigo-500/[0.03]","dark:border-indigo-900 dark:hover:border-indigo-700","min-h-[280px]"),onClick:e,children:[(0,t.jsxs)("div",{className:(0,p.cn)("absolute inset-0 flex flex-col items-center justify-center gap-3","transition-opacity duration-200 group-hover:opacity-0","pointer-events-none"),children:[(0,t.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-indigo-100 text-indigo-500 dark:bg-indigo-900/60 dark:text-indigo-400",children:(0,t.jsx)(d.Plus,{className:"h-5 w-5 stroke-[2]"})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-foreground text-sm font-semibold",children:"New application"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px]",children:"Click to get started"})]})]}),(0,t.jsxs)("div",{className:(0,p.cn)("absolute inset-0 flex flex-col justify-center gap-1.5 px-4","translate-y-3 opacity-0 transition-all duration-200","group-hover:translate-y-0 group-hover:opacity-100"),children:[(0,t.jsx)("p",{className:"text-muted-foreground mb-1 px-1 text-[10px] font-medium tracking-wide uppercase",children:"How would you like to start?"}),i.map(e=>(0,t.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),e.onClick()},className:(0,p.cn)("flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-left","border-border/60 bg-background/80 border transition-all duration-150","hover:border-indigo-300 hover:bg-indigo-50 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/40"),children:[(0,t.jsx)("span",{className:(0,p.cn)("flex h-7 w-7 shrink-0 items-center justify-center rounded-md",e.accent),children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-foreground text-[12px] font-semibold",children:e.label}),(0,t.jsx)("div",{className:"text-muted-foreground truncate text-[10px]",children:e.description})]})]},e.label))]})]})}e.s(["ApplicationsPageClient",()=>V],453721)},127062,e=>{e.v(t=>Promise.all(["static/chunks/00f78bad91244b81.js"].map(t=>e.l(t))).then(()=>t(617841)))},633405,e=>{e.v(e=>Promise.resolve().then(()=>e(478521)))},743797,e=>{e.v(t=>Promise.all(["static/chunks/83b6dc76bfe00b00.js"].map(t=>e.l(t))).then(()=>t(868662)))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,440106,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(711719),i=e.i(935946),l=e.i(83428),s=e.i(542049),n=e.i(453360),o=e.i(941698),d=e.i(99105),c=e.i(723925),p=e.i(860253);e.i(541001);var u=e.i(64780),h=e.i(131777),x=e.i(508893);let m=(0,x.createServerReference)("4035e1ac88876828a7d56567d1258244abdb67fa5b",x.callServer,void 0,x.findSourceMapURL,"createProjectAndFeature"),g=(0,x.createServerReference)("40b2732c90dc8f6013e5f8355e9e55f993a9a7ef67",x.callServer,void 0,x.findSourceMapURL,"createApplication");var f=e.i(41413);e.i(650032);var b=e.i(486254);e.i(692233);var v=e.i(210025),j=e.i(102828),y=e.i(470646),w=e.i(731151);let k=["application","fast","spec"],N={application:{icon:s.LayoutGrid,label:"Application",placeholder:"Build a modern e-commerce storefront with product catalog...",suggestions:["A landing page with hero, features, and pricing sections","Full-stack SaaS app with auth, billing, and dashboard","Mobile-first social media app with real-time chat","Personal portfolio with blog and project showcase"]},fast:{icon:n.Zap,label:"Fast",placeholder:"Add a dark mode toggle to the settings page...",suggestions:["Add pagination to the users list endpoint","Fix the broken logout redirect","Add input validation to the signup form","Refactor the API error handling middleware"]},spec:{icon:o.ClipboardList,label:"Spec Driven",placeholder:"Implement a role-based access control system with audit logging...",suggestions:["OAuth2 authentication with SSO and MFA support","Event-driven notification system with email and push","REST API with versioning, rate limiting, and OpenAPI docs","Data pipeline with ETL, validation, and monitoring"]}};function C({onRepositorySelect:e,onApplicationCreated:s,onClose:n,className:o}){let{t:x}=(0,u.useTranslation)("web"),[C,D]=(0,r.useState)(""),[A,P]=(0,r.useState)(void 0),[S,L]=(0,r.useState)(void 0),[_,T]=(0,r.useState)("application"),[M,R]=(0,r.useState)(!1),[E,O]=(0,r.useState)(null),[I,F]=(0,r.useState)(!1),z=(0,r.useRef)(null),$=(0,w.useAttachments)(),B=!!e,H=B?_:"application",Z=(0,r.useCallback)(()=>{T(e=>{let t=k.indexOf(e);return k[(t+1)%k.length]})},[]);(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n&&n(),"Tab"===t.key&&t.shiftKey&&e&&(t.preventDefault(),Z())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[n,Z,e]);let V=(0,r.useCallback)(async()=>{if(C.trim()&&!M){R(!0),O(null);try{if("application"!==H&&e){let t=await m({description:C.trim(),attachments:$.completedAttachments.map(e=>({path:e.path,name:e.name,notes:e.notes})),agentType:A,model:S,fast:"fast"===H});if(t.error){O(t.error),R(!1);return}t.repositoryPath&&e?.(t.repositoryPath),t.feature&&t.repositoryPath&&window.dispatchEvent(new CustomEvent("shep:feature-created",{detail:{featureId:t.feature.id,name:t.feature.name,description:t.feature.description,repositoryPath:t.repositoryPath}}))}else{let e=await g({description:C.trim(),agentType:A,modelOverride:S,initialPrompt:C.trim()});if(e.error){O(e.error),R(!1);return}e.application&&s?.(e.application.id)}}catch{O("Something went wrong. Please try again."),R(!1)}}},[C,M,H,$.completedAttachments,A,S,e,s]),W=(0,r.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),V())},[V]),U=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/dialog/pick-files");if(!e.ok)return;let t=await e.json();if(!t.paths?.length)return;for(let e of t.paths){let t=await fetch("/api/attachments/upload-from-path",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,sessionId:"onboarding"})});if(!t.ok)continue;let r=await t.json();$.addAttachment(r)}}catch{}},[$.addAttachment]),G=(0,r.useCallback)(e=>{D(e),z.current?.focus()},[]),K=N[H],q=K.icon;return(0,t.jsxs)("div",{"data-testid":"control-center-empty-state",className:(0,h.cn)("relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-8",o),children:[(0,t.jsx)("div",{className:"onboard-bg pointer-events-none absolute inset-0 animate-[onboard-fade-in_1.2s_ease-out_both]"}),n?(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Close",className:"text-muted-foreground hover:text-foreground hover:bg-accent/50 absolute top-4 right-4 z-10 cursor-pointer rounded p-1.5 transition-colors",children:(0,t.jsx)(p.X,{className:"h-5 w-5"})}):null,(0,t.jsxs)("div",{className:"relative flex w-full max-w-2xl flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-6 animate-[onboard-logo_0.8s_cubic-bezier(0.16,1,0.3,1)_both]",style:{animationDelay:"0ms"},children:(0,t.jsx)(v.ShepLogo,{size:72,className:"text-foreground"})}),(0,t.jsx)("h1",{className:"text-foreground animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-5xl font-extralight tracking-tight",style:{animationDelay:"120ms"},children:"What do you want to build?"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-3 animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-lg leading-relaxed font-light",style:{animationDelay:"220ms"},children:"Describe your idea and Shep creates the project for you."}),(0,t.jsxs)("div",{className:"mt-10 w-full animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both]",style:{animationDelay:"350ms"},children:[(0,t.jsxs)("div",{onFocus:()=>F(!0),onBlur:()=>F(!1),onDragEnter:$.handleDragEnter,onDragLeave:$.handleDragLeave,onDragOver:$.handleDragOver,onDrop:$.handleDrop,className:(0,h.cn)("flex flex-col rounded-xl border transition-all duration-200","border-border/60 bg-background shadow-sm dark:border-white/10 dark:bg-white/[0.04]",I&&"ring-ring/50 border-ring shadow-md ring-[3px] dark:border-orange-500/40 dark:ring-orange-500/25",$.isDragOver&&"border-primary/50 bg-primary/5",M&&"opacity-70"),children:[(0,t.jsx)("textarea",{ref:z,rows:2,autoFocus:!0,value:C,onChange:e=>D(e.target.value),onKeyDown:W,onPaste:$.handlePaste,placeholder:K.placeholder,disabled:M,className:"text-foreground placeholder:text-muted-foreground/60 max-h-[10rem] min-h-[4.5rem] w-full resize-none border-0 bg-transparent px-4 py-3.5 text-sm leading-relaxed focus:outline-none disabled:cursor-not-allowed"}),$.attachments.length>0?(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2.5 overflow-x-auto overflow-y-visible px-5 pt-2 pb-2",children:$.attachments.map(e=>(0,t.jsx)(b.AttachmentChip,{name:e.name,size:e.size,mimeType:e.mimeType,path:e.path,onRemove:()=>$.removeAttachment(e.id),loading:e.loading,notes:e.notes,onNotesChange:t=>$.updateNotes(e.id,t)},e.id))}):null,$.uploadError?(0,t.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",children:$.uploadError}):null,(0,t.jsxs)("div",{className:"border-border/60 flex shrink-0 items-center gap-3 border-t px-3 py-2 dark:border-white/10",children:[(0,t.jsx)(f.AgentModelPicker,{initialAgentType:A??"claude-code",initialModel:S??"claude-sonnet-4-6",mode:"override",showInstallStatus:!0,onAgentModelChange:(e,t)=>{P(e),L(t)},className:"w-55"}),(0,t.jsx)("div",{className:"flex-1"}),B?(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","data-testid":"build-mode-selector",className:"text-muted-foreground hover:text-foreground hover:bg-accent/50 flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",children:[(0,t.jsxs)("span",{className:"flex animate-[onboard-fade-up_0.25s_ease-out_both] items-center gap-1.5",children:[(0,t.jsx)(q,{className:"h-3.5 w-3.5"}),K.label]},H),(0,t.jsx)(d.ChevronDown,{className:"h-3 w-3 opacity-50"})]})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",className:"min-w-[160px]",children:k.map(e=>{let r=N[e],a=r.icon,i=H===e;return(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>T(e),"data-testid":`build-mode-${e}`,className:"flex items-center gap-2",children:[(0,t.jsx)(a,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"flex-1",children:r.label}),i?(0,t.jsx)(c.Check,{className:"text-foreground h-3.5 w-3.5"}):null]},e)})})]}):null,(0,t.jsxs)(j.Tooltip,{children:[(0,t.jsx)(j.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:U,disabled:M,"aria-label":x("chat.attachFiles"),className:"text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors disabled:opacity-50",children:(0,t.jsx)(i.Paperclip,{className:"h-4 w-4"})})}),(0,t.jsx)(j.TooltipContent,{side:"top",children:x("chat.attachFiles")})]}),(0,t.jsx)("button",{type:"button",onClick:V,disabled:!C.trim()||M,className:(0,h.cn)("bg-foreground text-background inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-lg","hover:bg-foreground/90 disabled:pointer-events-none disabled:opacity-30","transition-all duration-150"),children:M?(0,t.jsx)(l.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(a.SendHorizontal,{className:"h-3.5 w-3.5"})})]})]}),E?(0,t.jsx)("p",{className:"text-destructive mt-2 text-center text-sm",children:E}):null]}),(0,t.jsx)("div",{className:"mt-6 flex animate-[onboard-fade-up_0.4s_ease-out_both] flex-wrap justify-center gap-2",children:K.suggestions.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>G(e),disabled:M,className:"text-muted-foreground hover:text-foreground border-border/60 hover:border-border hover:bg-accent/50 cursor-pointer rounded-full border px-3.5 py-1.5 text-xs transition-all duration-150 disabled:opacity-50 dark:border-white/10 dark:hover:border-white/20 dark:hover:bg-white/[0.06]",children:e},e))},H)]})]})}e.s(["ControlCenterEmptyState",()=>C],440106)},813790,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("4035905dfb9dc202ed0650338aba71886ec1152615",t.callServer,void 0,t.findSourceMapURL,"deleteApplication");e.s(["deleteApplication",()=>r])},370002,942616,e=>{"use strict";var t=e.i(215131);function r(e,t,r,a){return"processing"===t?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:"awaiting_input"===t?{label:"Action Required",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!0,previewDisabled:!0}:"interrupted"===a?{label:"Interrupted",dotClass:"bg-amber-500",borderClass:"border-amber-500/60",pulse:!1,previewDisabled:!0}:"failed"===a?{label:"Failed",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:"building"===a?{label:"In Progress",dotClass:"bg-violet-500",borderClass:"",pulse:!0,previewDisabled:!0}:r?{label:"Live",dotClass:"bg-emerald-500",borderClass:"",pulse:!0,previewDisabled:!1}:"Error"===e?{label:"Error",dotClass:"bg-red-500",borderClass:"border-red-500/60",pulse:!1,previewDisabled:!0}:{label:"Ready",dotClass:"bg-sky-500",borderClass:"",pulse:!1,previewDisabled:!1}}e.s(["TriangleAlert",()=>t.default],370002),e.s(["deriveAppLiveStatus",()=>r],942616)},672971,e=>{"use strict";function t(e){return`app-${e}`}e.s(["featureIdForApplication",()=>t])},731463,e=>{"use strict";let t=(0,e.i(903645).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",()=>t],731463)},74573,e=>{"use strict";var t=e.i(679606),r=e.i(317406);function a({d:e,...r}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...r,"aria-hidden":"true",children:(0,t.jsx)("path",{d:e})})}function i(e){return(0,t.jsx)(a,{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",...e})}let l={[r.CloudDeploymentProvider.CloudflarePages]:function(e){return(0,t.jsx)(a,{d:"M10.715 14.32H5.442l-.64-1.203L13.673 0l1.397.579-1.752 9.112h5.24l.648 1.192L10.719 24l-1.412-.54ZM4.091 5.448a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.543 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm1.544 0a.5787.5787 0 1 1 0-1.1574.5787.5787 0 0 1 0 1.1574zm8.657-2.7h5.424l.772.771v16.975l-.772.772h-7.392l.374-.579h6.779l.432-.432V3.758l-.432-.432h-4.676l-.552 2.85h-.59l.529-2.877.108-.552ZM2.74 21.265l-.772-.772V3.518l.772-.771h7.677l-.386.579H2.98l-.432.432v16.496l.432.432h5.586l-.092.579zm1.157-1.93h3.28l-.116.58h-3.55l-.192-.193v-3.473l.578 1.158zm13.117 0 .579.58H14.7l.385-.58z",...e})},[r.CloudDeploymentProvider.Vercel]:function(e){return(0,t.jsx)(a,{d:"m12 1.608 12 20.784H0Z",...e})},[r.CloudDeploymentProvider.Netlify]:function(e){return(0,t.jsx)(a,{d:"M6.49 19.04h-.23L5.13 17.9v-.23l1.73-1.71h1.2l.15.15v1.2L6.5 19.04ZM5.13 6.31V6.1l1.13-1.13h.23L8.2 6.68v1.2l-.15.15h-1.2L5.13 6.31Zm9.96 9.09h-1.65l-.14-.13v-3.83c0-.68-.27-1.2-1.1-1.23-.42 0-.9 0-1.43.02l-.07.08v4.96l-.14.14H8.9l-.13-.14V8.73l.13-.14h3.7a2.6 2.6 0 0 1 2.61 2.6v4.08l-.13.14Zm-8.37-2.44H.14L0 12.82v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14Zm17.14 0h-6.58l-.14-.14v-1.64l.14-.14h6.58l.14.14v1.64l-.14.14ZM11.05 6.55V1.64l.14-.14h1.65l.14.14v4.9l-.14.14h-1.65l-.14-.13Zm0 15.81v-4.9l.14-.14h1.65l.14.13v4.91l-.14.14h-1.65l-.14-.14Z",...e})},[r.CloudDeploymentProvider.AwsAmplify]:function(e){return(0,t.jsx)(a,{d:"M11.58 2.1 1.15 20.87h4.33l1.9-3.5h9.24l1.9 3.5h4.33L12.42 2.1h-.84Zm.42 5.6 3.12 5.73H8.88L12 7.7Z",...e})},[r.CloudDeploymentProvider.GcpCloudRun]:function(e){return(0,t.jsx)(a,{d:"M12.19 2.38a9.344 9.344 0 0 0-9.234 6.893c.053-.02-.055.013 0 0-3.875 2.551-3.922 8.11-.247 10.941l.006-.007-.007.03a6.717 6.717 0 0 0 4.077 1.356h5.173l.03.03h5.192c6.687.053 9.376-8.605 3.835-12.35a9.365 9.365 0 0 0-2.821-4.552l-.043.043.006-.05A9.344 9.344 0 0 0 12.19 2.38zm-.358 4.146c1.244-.04 2.518.368 3.486 1.15a5.186 5.186 0 0 1 1.862 4.078v.518c3.53-.07 3.53 5.262 0 5.193h-5.193l-.008.009v-.04H6.785a2.59 2.59 0 0 1-1.067-.23h.001a2.597 2.597 0 1 1 3.437-3.437l3.013-3.012A6.747 6.747 0 0 0 8.11 8.24c.018-.01.04-.026.054-.023a5.186 5.186 0 0 1 3.67-1.69z",...e})}},s={[r.CloudDeploymentProvider.CloudflarePages]:"#F38020",[r.CloudDeploymentProvider.Vercel]:"#000000",[r.CloudDeploymentProvider.Netlify]:"#00C7B7",[r.CloudDeploymentProvider.AwsAmplify]:"#FF9900",[r.CloudDeploymentProvider.GcpCloudRun]:"#4285F4"};e.s(["CLOUD_PROVIDER_BRAND_HEX",0,s,"CLOUD_PROVIDER_ICONS",0,l,"GitHubIcon",()=>i])},453721,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(711434),i=e.i(962885),l=e.i(619933),s=e.i(382569),n=e.i(542049),o=e.i(83428),d=e.i(3214),c=e.i(853756),p=e.i(131777),u=e.i(873504),h=e.i(175921),x=e.i(440106),m=e.i(958481),g=e.i(383379),f=e.i(730702);let b=(0,e.i(903645).default)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);var v=e.i(32494),j=e.i(731463),y=e.i(724042),w=e.i(43416),k=e.i(267669),N=e.i(370002),C=e.i(453360),D=e.i(434682),A=e.i(360112),P=e.i(735364),S=e.i(602287),L=e.i(470646),_=e.i(813790),T=e.i(942616),M=e.i(680554),R=e.i(8537),E=e.i(317406),O=e.i(672971),I=e.i(74573);let F="rgba(255,255,255,0.13)",z="rgba(255,255,255,0.07)",$="rgba(255,255,255,0.04)",B=[function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[Array.from({length:8},(e,r)=>Array.from({length:16},(e,a)=>(0,t.jsx)("circle",{cx:10+20*a,cy:10+20*r,r:"1.5",fill:z},`${r}-${a}`))),(0,t.jsx)("circle",{cx:"240",cy:"56",r:"52",fill:"none",stroke:$,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"240",cy:"56",r:"32",fill:"none",stroke:F,strokeWidth:"0.8"}),(0,t.jsx)("circle",{cx:"60",cy:"112",r:"14",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"60",cy:"112",r:"6",fill:$})]})},function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[[24,48,72,96,120].map((e,r)=>(0,t.jsx)("path",{d:`M0,${e} C64,${e-18+4*r} 128,${e+18-3*r} 192,${e-12+2*r} S288,${e+14} 320,${e}`,fill:"none",stroke:2===r?F:z,strokeWidth:2===r?1.5:1},`wave-${e}`)),(0,t.jsx)("path",{d:"M0,72 C64,54 128,90 192,60 S288,86 320,72 L320,160 L0,160 Z",fill:$}),(0,t.jsx)("circle",{cx:"290",cy:"30",r:"18",fill:"none",stroke:z,strokeWidth:"1"})]})},function(){return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"160",cy:"160",r:"120",fill:"none",stroke:$,strokeWidth:"40"}),(0,t.jsx)("circle",{cx:"100",cy:"60",r:"70",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"220",cy:"80",r:"55",fill:"none",stroke:F,strokeWidth:"1"}),(0,t.jsx)("polygon",{points:"160,18 196,60 160,102 124,60",fill:"none",stroke:z,strokeWidth:"1"}),(0,t.jsx)("circle",{cx:"20",cy:"20",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"300",cy:"20",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"20",cy:"140",r:"2",fill:F}),(0,t.jsx)("circle",{cx:"300",cy:"140",r:"2",fill:F})]})},function(){let e=[];for(let r=32;r<320;r+=32)e.push((0,t.jsx)("line",{x1:r,y1:"0",x2:r,y2:"160",stroke:$,strokeWidth:"1"},`v${r}`));for(let r=32;r<160;r+=32)e.push((0,t.jsx)("line",{x1:"0",y1:r,x2:"320",y2:r,stroke:$,strokeWidth:"1"},`h${r}`));return(0,t.jsxs)("svg",{viewBox:"0 0 320 160",className:"h-full w-full","aria-hidden":"true",children:[e,[20,40,64,90].map(e=>(0,t.jsx)("circle",{cx:"160",cy:"80",r:e,fill:"none",stroke:40===e?F:z,strokeWidth:"1"},e)),(0,t.jsx)("circle",{cx:"160",cy:"80",r:"4",fill:F})]})}];function H({name:e}){let r=B[function(e){let t=0x811c9dc5;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193)>>>0;return t}(e)%B.length];return(0,t.jsx)(r,{})}function Z({application:i,className:l}){let s=(0,a.useRouter)(),n=(0,D.useQueryClient)(),[d,c]=(0,r.useState)(!1),u=(0,M.useTurnStatus)((0,O.featureIdForApplication)(i.id)),h=(0,R.useDeployAction)({targetId:i.id,targetType:"application",repositoryPath:i.repositoryPath}),x=h.url,F=(0,T.deriveAppLiveStatus)(i.status,u,!!x,i.effectiveStatus),z=i.cloudDeploymentUrl??null,$=i.cloudDeploymentProvider??null,B=$?I.CLOUD_PROVIDER_ICONS[$]:null,Z=$?I.CLOUD_PROVIDER_BRAND_HEX[$]:void 0,V=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Deployed&&!!z,W=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Uploading,U=i.cloudDeploymentStatus===E.CloudDeploymentStatus.Failed,G="building"===i.effectiveStatus,K="interrupted"===i.effectiveStatus,q="failed"===i.effectiveStatus,Q=h.status===E.DeploymentState.Booting||h.deployLoading,X=h.status===E.DeploymentState.Ready&&!!x,J=X?x:V?z:null,Y=!!J,ee=()=>s.push(`/application/${i.id}`),et=i.repositoryPath.split(/[/\\]/).pop()??i.repositoryPath;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("article",{"data-testid":"application-card",onClick:ee,className:(0,p.cn)("group relative flex cursor-pointer flex-col overflow-hidden rounded-sm","bg-card dark:bg-neutral-900","border-border/60 border shadow-sm dark:border-white/10","hover:border-border transition-all duration-200 hover:shadow-lg dark:hover:border-white/20 dark:hover:shadow-black/40","min-h-[280px]",l),children:[(0,t.jsxs)("div",{className:"relative overflow-hidden",style:{height:160},children:[Y?(0,t.jsxs)("div",{className:"absolute inset-0 bg-white dark:bg-neutral-900",children:[(0,t.jsx)("iframe",{src:J,title:`${i.name} preview`,className:"pointer-events-none absolute top-0 left-0 origin-top-left border-0",style:{width:"250%",height:"250%",transform:"scale(0.4)"},sandbox:"allow-same-origin allow-scripts",loading:"lazy"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center gap-2 bg-black/60 opacity-0 transition-opacity group-hover:opacity-100",onClick:e=>e.stopPropagation(),children:[X?(0,t.jsxs)("button",{type:"button",onClick:()=>void h.stop(),disabled:h.stopLoading,className:"inline-flex h-7 cursor-pointer items-center gap-1 rounded-full bg-white/90 px-3 text-[11px] font-semibold text-neutral-900 hover:bg-red-50 hover:text-red-600",children:[h.stopLoading?(0,t.jsx)(o.Loader2,{className:"h-3 w-3 animate-spin"}):(0,t.jsx)(w.RefreshCw,{className:"h-3 w-3"}),"Stop"]}):null,(0,t.jsxs)("button",{type:"button",onClick:()=>window.open(J,"_blank","noopener,noreferrer"),className:"inline-flex h-7 cursor-pointer items-center gap-1 rounded-full bg-white/90 px-3 text-[11px] font-semibold text-neutral-900 hover:bg-white",children:[(0,t.jsx)(f.ExternalLink,{className:"h-3 w-3"}),"Open"]})]})]}):Q?(0,t.jsx)("div",{className:"absolute inset-0 bg-white dark:bg-neutral-900",children:(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[(0,t.jsx)(o.Loader2,{className:"h-6 w-6 animate-spin text-amber-500"}),(0,t.jsx)("span",{className:"text-[11px] font-medium text-amber-600 dark:text-amber-400",children:"Starting…"})]})}):(0,t.jsx)("div",{className:"absolute inset-0 overflow-hidden bg-[#111827] dark:bg-neutral-800",children:(0,t.jsx)(H,{name:i.name})}),(0,t.jsx)("div",{className:"absolute top-2.5 left-2.5",onClick:e=>e.stopPropagation(),children:V?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white uppercase backdrop-blur-sm",children:[B?(0,t.jsx)(B,{className:"h-3 w-3",style:{color:Z??"#fff"}}):(0,t.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-emerald-400"}),"Live"]}):W?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white/80 uppercase backdrop-blur-sm",children:[(0,t.jsx)(o.Loader2,{className:"h-2.5 w-2.5 animate-spin"}),"Deploying"]}):G?(0,t.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-black/30 px-2 py-0.5 text-[9px] font-bold tracking-wider text-white/80 uppercase backdrop-blur-sm",children:[(0,t.jsx)(C.Zap,{className:"h-2.5 w-2.5"}),"Building"]}):F.pulse?(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:(0,p.cn)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",F.dotClass)}),(0,t.jsx)("span",{className:(0,p.cn)("relative inline-flex h-2 w-2 rounded-full",F.dotClass)})]}):null}),(0,t.jsx)("div",{className:"absolute top-2.5 right-2.5",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(L.DropdownMenu,{children:[(0,t.jsx)(L.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"flex h-6 w-6 cursor-pointer items-center justify-center rounded-full bg-black/30 text-white/80 opacity-0 backdrop-blur-sm transition-opacity group-hover:opacity-100 hover:bg-black/50",children:(0,t.jsx)(j.MoreHorizontal,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(L.DropdownMenuContent,{align:"end",sideOffset:4,children:(0,t.jsxs)(L.DropdownMenuItem,{className:"text-destructive focus:text-destructive cursor-pointer",onClick:()=>c(!0),children:[(0,t.jsx)(k.Trash2,{className:"mr-2 h-3.5 w-3.5"}),"Delete"]})})]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5 px-3.5 pt-3 pb-0",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-foreground line-clamp-1 text-[14px] leading-tight font-semibold",children:i.name}),i.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 line-clamp-1 text-[11px] leading-relaxed",children:i.description}):null]}),W?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(o.Loader2,{className:"text-muted-foreground h-3 w-3 shrink-0 animate-spin"}),(0,t.jsxs)("span",{className:"text-muted-foreground text-[11px]",children:["Deploying to ",$??"cloud","…"]})]}):U?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(m.AlertTriangle,{className:"text-destructive/70 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-destructive/80 text-[11px]",children:"Deployment failed"})]}):G?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(C.Zap,{className:"text-muted-foreground h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Building with AI…"}),(0,t.jsx)("div",{className:"ml-auto flex gap-0.5",children:[0,1,2].map(e=>(0,t.jsx)("span",{className:"bg-muted-foreground/40 h-1 w-1 animate-bounce rounded-full",style:{animationDelay:`${120*e}ms`}},e))})]}):K?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(m.AlertTriangle,{className:"h-3 w-3 shrink-0 text-amber-500/70"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Build interrupted"})]}):q?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(N.TriangleAlert,{className:"text-destructive/70 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:"Build failed"})]}):V?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-0.5",children:[(0,t.jsx)(v.Globe,{className:"text-muted-foreground/40 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground/60 text-[11px]",children:"Not deployed yet"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3.5 pt-2 pb-3",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsxs)("button",{type:"button",title:i.repositoryPath,onClick:async t=>{t.stopPropagation();let{openDirectory:r}=await e.A(127062);await r(i.repositoryPath)},className:"text-muted-foreground/70 hover:text-foreground inline-flex shrink-0 items-center gap-1 text-[10px] transition-colors",children:[(0,t.jsx)(b,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:et})]}),z?(0,t.jsxs)("a",{href:z,target:"_blank",rel:"noopener noreferrer",title:z,className:"text-muted-foreground/70 hover:text-foreground inline-flex min-w-0 items-center gap-1 text-[10px] transition-colors",children:[B?(0,t.jsx)(B,{className:"h-3 w-3 shrink-0",style:{color:Z}}):(0,t.jsx)(v.Globe,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"font-mono",children:function(e,t=22){let r=e.replace(/^https?:\/\//,"").replace(/\/$/,"");if(r.length<=t)return r;let a=r.slice(-(t-6));return`${r.slice(0,5)}…${a}`}(z)})]}):null]}),G||W?(0,t.jsxs)("span",{className:"text-muted-foreground inline-flex shrink-0 items-center gap-1.5 text-[11px]",children:[(0,t.jsx)(o.Loader2,{className:"h-3 w-3 animate-spin"}),G?"Building…":"Deploying…"]}):z&&V?(0,t.jsxs)("a",{href:z,target:"_blank",rel:"noopener noreferrer",className:"bg-foreground text-background inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold transition-opacity hover:opacity-80",children:[(0,t.jsx)(f.ExternalLink,{className:"h-3 w-3"}),"Open live"]}):K?(0,t.jsxs)("button",{type:"button",onClick:ee,className:"inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-amber-500 px-3 text-[11px] font-semibold text-white transition-opacity hover:opacity-80",children:[(0,t.jsx)(y.Play,{className:"h-3 w-3 fill-current"}),"Continue"]}):q?(0,t.jsxs)("button",{type:"button",onClick:ee,className:"bg-destructive inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold text-white transition-opacity hover:opacity-80",children:[(0,t.jsx)(g.ArrowRight,{className:"h-3 w-3"}),"View error"]}):(0,t.jsxs)("button",{type:"button",onClick:ee,className:"bg-foreground text-background inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold transition-opacity hover:opacity-80",children:[(0,t.jsx)(g.ArrowRight,{className:"h-3 w-3"}),"Open"]})]})]}),(0,t.jsx)(S.Dialog,{open:d,onOpenChange:c,children:(0,t.jsxs)(S.DialogContent,{className:"max-w-xs",children:[(0,t.jsxs)(S.DialogHeader,{children:[(0,t.jsx)(S.DialogTitle,{children:"Delete application?"}),(0,t.jsxs)(S.DialogDescription,{children:["This will permanently remove ",(0,t.jsx)("strong",{children:i.name}),"."]})]}),(0,t.jsxs)(S.DialogFooter,{className:"grid grid-cols-2 gap-2 sm:flex-none",children:[(0,t.jsx)(S.DialogClose,{asChild:!0,children:(0,t.jsx)(P.Button,{variant:"outline",children:"Cancel"})}),(0,t.jsx)(P.Button,{variant:"destructive",onClick:async()=>{c(!1);let e=await (0,_.deleteApplication)(i.id);e.error?A.toast.error("Failed to delete",{description:e.error}):(A.toast.success("Application deleted"),n.invalidateQueries({queryKey:["applications"]}))},children:"Delete"})]})]})})]})}function V({className:l}){let s=(0,a.useRouter)(),d=(0,h.useFeatureFlags)(),[c,m]=(0,r.useState)(!1),{data:g=[],isLoading:f}=(0,i.useQuery)({queryKey:["applications"],queryFn:async()=>{let e=await fetch("/api/applications");if(!e.ok)throw Error("Failed to fetch applications");return e.json()},staleTime:3e4}),b=(0,r.useMemo)(()=>[...g].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),[g]);return(0,t.jsx)(u.DeploymentStatusProvider,{initialDeployments:[],children:(0,t.jsxs)("div",{"data-testid":"applications-page-client",className:(0,p.cn)("relative flex min-h-full flex-col",l),children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-4 p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.LayoutGrid,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("h1",{className:"text-sm font-bold tracking-tight",children:"Applications"}),f?null:(0,t.jsxs)("span",{className:"text-muted-foreground text-[10px]",children:[g.length," ",1===g.length?"app":"apps"]})]}),f?(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(o.Loader2,{className:"text-muted-foreground h-5 w-5 animate-spin"})}):0===b.length?(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,t.jsx)(x.ControlCenterEmptyState,{onApplicationCreated:e=>{s.push(`/application/${e}`)}})}):(0,t.jsxs)("div",{"data-testid":"applications-page-grid",className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[(0,t.jsx)(W,{onDescribe:()=>m(!0),onOpenLocalDirectory:async()=>{let{pickFolder:t}=await e.A(633405),r=await t();if(!r)return;let{adoptLocalDirectory:a}=await e.A(743797),i=await a({repositoryPath:r});i.applicationId&&s.push(`/application/${i.applicationId}`)},onImportGitHub:d.githubImport?()=>window.dispatchEvent(new CustomEvent("shep:open-github-import")):void 0}),b.map(e=>(0,t.jsx)(Z,{application:e},e.id))]})]}),c?(0,t.jsx)("div",{className:"absolute inset-0 z-40",children:(0,t.jsx)(x.ControlCenterEmptyState,{onApplicationCreated:e=>{s.push(`/application/${e}`)},onClose:()=>m(!1),className:"bg-background"})}):null]})})}function W({onDescribe:e,onOpenLocalDirectory:r,onImportGitHub:a}){let i=[{icon:(0,t.jsx)(c.Sparkles,{className:"h-4 w-4"}),label:"Describe with AI",description:"Tell Shep what to build — it scaffolds + ships",onClick:e,accent:"text-indigo-500 bg-indigo-100 dark:bg-indigo-900/60"},...r?[{icon:(0,t.jsx)(l.FolderOpen,{className:"h-4 w-4"}),label:"Open local project",description:"Pick an existing folder and continue from there",onClick:r,accent:"text-amber-600 bg-amber-100 dark:bg-amber-900/40"}]:[],...a?[{icon:(0,t.jsx)(s.Github,{className:"h-4 w-4"}),label:"Import from GitHub",description:"Connect an existing repo to manage here",onClick:a,accent:"text-foreground bg-muted"}]:[]];return(0,t.jsxs)("div",{className:(0,p.cn)("group relative flex cursor-pointer flex-col overflow-hidden rounded-sm border-2","border-dashed border-indigo-200 bg-transparent transition-all duration-200","hover:border-indigo-400 hover:bg-indigo-500/[0.03]","dark:border-indigo-900 dark:hover:border-indigo-700","min-h-[280px]"),onClick:e,children:[(0,t.jsxs)("div",{className:(0,p.cn)("absolute inset-0 flex flex-col items-center justify-center gap-3","transition-opacity duration-200 group-hover:opacity-0","pointer-events-none"),children:[(0,t.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-indigo-100 text-indigo-500 dark:bg-indigo-900/60 dark:text-indigo-400",children:(0,t.jsx)(d.Plus,{className:"h-5 w-5 stroke-[2]"})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-foreground text-sm font-semibold",children:"New application"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px]",children:"Click to get started"})]})]}),(0,t.jsxs)("div",{className:(0,p.cn)("absolute inset-0 flex flex-col justify-center gap-1.5 px-4","translate-y-3 opacity-0 transition-all duration-200","group-hover:translate-y-0 group-hover:opacity-100"),children:[(0,t.jsx)("p",{className:"text-muted-foreground mb-1 px-1 text-[10px] font-medium tracking-wide uppercase",children:"How would you like to start?"}),i.map(e=>(0,t.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),e.onClick()},className:(0,p.cn)("flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-left","border-border/60 bg-background/80 border transition-all duration-150","hover:border-indigo-300 hover:bg-indigo-50 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/40"),children:[(0,t.jsx)("span",{className:(0,p.cn)("flex h-7 w-7 shrink-0 items-center justify-center rounded-md",e.accent),children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-foreground text-[12px] font-semibold",children:e.label}),(0,t.jsx)("div",{className:"text-muted-foreground truncate text-[10px]",children:e.description})]})]},e.label))]})]})}e.s(["ApplicationsPageClient",()=>V],453721)},127062,e=>{e.v(t=>Promise.all(["static/chunks/1f42ad4a0931acd3.js"].map(t=>e.l(t))).then(()=>t(617841)))},633405,e=>{e.v(e=>Promise.resolve().then(()=>e(478521)))},743797,e=>{e.v(t=>Promise.all(["static/chunks/93ea366bd74183ac.js"].map(t=>e.l(t))).then(()=>t(868662)))}]);
|