@shepai/cli 1.194.2-pr584.4f4957c → 1.194.3
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]__ae78a6b9._.js → [root-of-the-server]__252fcd17._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__ae78a6b9._.js.map → [root-of-the-server]__252fcd17._.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]__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]__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]__b8c0d40a._.js → [root-of-the-server]__c3b6abac._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__b8c0d40a._.js.map → [root-of-the-server]__c3b6abac._.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/{_761e4bd3._.js → _06c1d752._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_761e4bd3._.js.map → _06c1d752._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_588a572a._.js → _0a84dcd8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_588a572a._.js.map → _0a84dcd8._.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/{_7e021392._.js → _494c9d59._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_7e021392._.js.map → _494c9d59._.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/_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/{_973065c3._.js → _b2c44425._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_973065c3._.js.map → _b2c44425._.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/{_e32aca20._.js → _c570d4fb._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_e32aca20._.js.map → _c570d4fb._.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/_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/{_3f792f30._.js → _fc1ebfd1._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_3f792f30._.js.map → _fc1ebfd1._.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_929e9a7b._.js → src_presentation_web_0a898c35._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_929e9a7b._.js.map → src_presentation_web_0a898c35._.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_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_70ef7fde._.js → src_presentation_web_bdc7c0dd._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_70ef7fde._.js.map → src_presentation_web_bdc7c0dd._.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_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/{ce7b3441e19255e6.js → 03c8ee30ab88f919.js} +1 -1
- package/web/.next/static/chunks/{a564b5b907b54a5f.js → 0cc03015af924e20.js} +1 -1
- package/web/.next/static/chunks/{eb88bae05f0b043b.js → 0cf016ec6f65fa24.js} +1 -1
- package/web/.next/static/chunks/{9f62973ace3dc4af.js → 2c61425fc96ae9f7.js} +1 -1
- package/web/.next/static/chunks/{f2040895572839d9.js → 318759d8e86dfc42.js} +1 -1
- package/web/.next/static/chunks/{733544bb6796c862.js → 331f023572696b0a.js} +1 -1
- package/web/.next/static/chunks/{3977923286c37140.js → 41e289ee887c8517.js} +1 -1
- package/web/.next/static/chunks/{5dc0003cc1241cb9.js → 50bb4ae3adb5eb0e.js} +1 -1
- package/web/.next/static/chunks/{edd8cb6712149e39.js → 6da640312464431a.js} +1 -1
- package/web/.next/static/chunks/{8665bb59c0620008.js → 77966d6d1929c049.js} +1 -1
- package/web/.next/static/chunks/{4826c460d01c6943.js → 8e693bdf4d04fa2c.js} +1 -1
- package/web/.next/static/chunks/{67109f43808725c6.js → 931795a6a581b203.js} +1 -1
- package/web/.next/static/chunks/{c954985ac32f7d87.js → 953e9d92d97dcaf1.js} +2 -2
- package/web/.next/static/chunks/{4b5d061eb5c2aac4.js → 959faf37d8e8d52b.js} +1 -1
- package/web/.next/static/chunks/{b9bb2c40f2b62ef2.js → a42c84a8e2742018.js} +1 -1
- package/web/.next/static/chunks/{3a25d8e6bc3ede3d.js → a95cef864840e759.js} +1 -1
- package/web/.next/static/chunks/{07156bfe6433ad08.js → accd7fa108255573.js} +1 -1
- package/web/.next/static/chunks/{7f2567429fbb01f5.js → aea0f9b5ab3bace4.js} +1 -1
- package/web/.next/static/chunks/{68d5517e0344f2a8.js → b10e586976309bb7.js} +1 -1
- package/web/.next/static/chunks/{e62cd9095e37f064.js → b15f7964eeaaab12.js} +1 -1
- package/web/.next/static/chunks/{150d2879079190e3.js → b207588307f7be12.js} +1 -1
- package/web/.next/static/chunks/{8c997a1b1fbb91bf.js → b77a5bc7f8489137.js} +1 -1
- package/web/.next/static/chunks/{22f47ab138b2d9a9.js → baf694f161ce7342.js} +1 -1
- package/web/.next/static/chunks/{65b5726d39a4d482.js → bec8ec0800020acc.js} +1 -1
- package/web/.next/static/chunks/{389b6724824ff3f6.js → c0bb71cba2d00657.js} +1 -1
- package/web/.next/static/chunks/{33264a24cdc2c4a5.js → c20650058ecf47b9.js} +1 -1
- package/web/.next/static/chunks/{24ec879c40147be1.js → cc3f38aa30b0e5bc.js} +1 -1
- package/web/.next/static/chunks/d3257028b32efe04.js +1 -0
- package/web/.next/static/chunks/{6ade0b141237e333.js → e0a0360221311346.js} +1 -1
- package/web/.next/static/chunks/{fea2481993c12344.js → f18f55bcb03d0992.js} +1 -1
- package/web/.next/static/chunks/{6235f12c6bcbd03b.js → f55c73d6668c343d.js} +1 -1
- package/web/.next/static/chunks/{249d416f38a960ee.js → f8d7451055dafa13.js} +1 -1
- package/web/.next/static/chunks/{e2b81d6dd4f82a2c.js → f96f160b292fa8fe.js} +1 -1
- package/web/.next/static/chunks/{19a5af71926715a0.js → fb08b36e6fb54e54.js} +1 -1
- package/web/.next/static/chunks/0abf3aca0664110e.js +0 -1
- /package/web/.next/static/{v2TqKlCQvmOQONd8Gezvw → edsd2kzyk0v0aunegSWUo}/_buildManifest.js +0 -0
- /package/web/.next/static/{v2TqKlCQvmOQONd8Gezvw → edsd2kzyk0v0aunegSWUo}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{v2TqKlCQvmOQONd8Gezvw → edsd2kzyk0v0aunegSWUo}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,791909,e=>{"use strict";let t=(0,e.i(903645).default)("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]]);e.s(["default",()=>t])},812919,e=>{"use strict";let t=(0,e.i(903645).default)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);e.s(["FilePlus",()=>t],812919)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),a=e.i(786874),i=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,d]=l(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:s}=e,a=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:n,collectionRef:a,children:s})};c.displayName=n;let f=e+"CollectionSlot",p=(0,a.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:a}=e,n=d(f,r),l=(0,s.useComposedRefs)(t,n.collectionRef);return(0,i.jsx)(p,{ref:l,children:a})});h.displayName=f;let y=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,a.createSlot)(y),m=t.default.forwardRef((e,r)=>{let{scope:a,children:n,...l}=e,o=t.default.useRef(null),u=(0,s.useComposedRefs)(r,o),c=d(y,a);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,i.jsx)(g,{...{[v]:""},ref:u,children:n})});return m.displayName=y,[{Provider:c,Slot:h,ItemSlot:m},function(r){let s=d(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 a,i,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,s=t,a=r.length,(n=(i=u(s))>=0?i:a+i)<0||n>=a?-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{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let s,a=this.has(t),i=this.#e.length,n=u(e),l=n>=0?n:i+n,o=l<0||l>=i?-1:l;if(o===this.size||a&&o===this.size-1||-1===o)return this.set(t,r),this;let d=this.size+ +!a;n<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<d;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),a&&this.delete(t),s=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],a=s;s=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,s){let a=new e(this);return a.insert(t,r,s),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#e.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.#e.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.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,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=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&s.push(e),a++;return new e(s)}map(t,r){let s=[],a=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(s)}reduce(...e){let[t,r]=e,s=0,a=r??this.at(0);for(let r of this)a=0===s&&1===e.length?r:Reflect.apply(t,this,[a,r,s,this]),s++;return a}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);s=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[s,a,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,a=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;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),a=e.i(205978),i=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),d=e.i(566033),c=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,v,g]=(0,s.createCollection)(h),[m,b]=(0,i.createContextScope)(h,[g]),[w,k]=m(h),x=t.forwardRef((e,t)=>(0,c.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(R,{...e,ref:t})})}));x.displayName=h;var R=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:y=!1,dir:g,currentTabStopId:m,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:k,onEntryFocus:x,preventScrollOnEntryFocus:R=!1,...S}=e,C=t.useRef(null),A=(0,a.useComposedRefs)(s,C),M=(0,d.useDirection)(g),[E,I]=(0,u.useControllableState)({prop:m,defaultProp:b??null,onChange:k,caller:h}),[L,D]=t.useState(!1),F=(0,o.useCallbackRef)(x),j=v(i),z=t.useRef(!1),[P,H]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,c.jsx)(w,{scope:i,orientation:n,dir:M,loop:y,currentTabStopId:E,onItemFocus:t.useCallback(e=>I(e),[I]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,c.jsx)(l.Primitive.div,{tabIndex:L||0===P?-1:0,"data-orientation":n,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{z.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),R)}}z.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),S="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,focusable:i=!0,active:o=!1,tabStopId:u,children:d,...f}=e,p=(0,n.useId)(),h=u||p,g=k(S,a),m=g.currentTabStopId===h,b=v(a),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:R}=g;return t.useEffect(()=>{if(i)return w(),()=>x()},[i,w,x]),(0,c.jsx)(y.ItemSlot,{scope:a,id:h,focusable:i,active:o,children:(0,c.jsx)(l.Primitive.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...f,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let a=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return A[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&a.reverse();let i=a.indexOf(e.currentTarget);a=g.loop?(r=a,s=i+1,r.map((e,t)=>r[(s+t)%r.length])):a.slice(i+1)}setTimeout(()=>T(a))}}),children:"function"==typeof d?d({isCurrentTabStop:m,hasTabStop:null!=R}):d})})});C.displayName=S;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(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",()=>x,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(291967),a=e.i(922528),i=e.i(151080),n=e.i(685995),l=e.i(287620),o=e.i(566033),u=e.i(936589),d=e.i(713123),c="Tabs",[f,p]=(0,a.createContextScope)(c,[i.createRovingFocusGroupScope]),h=(0,i.createRovingFocusGroupScope)(),[y,v]=f(c),g=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:a,onValueChange:i,defaultValue:n,orientation:f="horizontal",dir:p,activationMode:h="automatic",...v}=e,g=(0,o.useDirection)(p),[m,b]=(0,u.useControllableState)({prop:a,onChange:i,defaultProp:n??"",caller:c});return(0,t.jsx)(y,{scope:s,baseId:(0,d.useId)(),value:m,onValueChange:b,orientation:f,dir:g,activationMode:h,children:(0,t.jsx)(l.Primitive.div,{dir:g,"data-orientation":f,...v,ref:r})})});g.displayName=c;var m="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:s,loop:a=!0,...n}=e,o=v(m,s),u=h(s);return(0,t.jsx)(i.Root,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:a,children:(0,t.jsx)(l.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:r})})});b.displayName=m;var w="TabsTrigger",k=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:n,disabled:o=!1,...u}=e,d=v(w,a),c=h(a),f=S(d.baseId,n),p=C(d.baseId,n),y=n===d.value;return(0,t.jsx)(i.Item,{asChild:!0,...c,focusable:!o,active:y,children:(0,t.jsx)(l.Primitive.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":p,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...u,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(n)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(n)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;y||o||!e||d.onValueChange(n)})})})});k.displayName=w;var x="TabsContent",R=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:i,forceMount:o,children:u,...d}=e,c=v(x,a),f=S(c.baseId,i),p=C(c.baseId,i),h=i===c.value,y=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(n.Presence,{present:o||h,children:({present:r})=>(0,t.jsx)(l.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...d,ref:s,style:{...e.style,animationDuration:y.current?"0s":void 0},children:r&&u})})});function S(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}R.displayName=x,e.s(["Content",()=>R,"List",()=>b,"Root",()=>g,"Tabs",()=>g,"TabsContent",()=>R,"TabsList",()=>b,"TabsTrigger",()=>k,"Trigger",()=>k,"createTabsScope",()=>p],743133);var A=e.i(743133),A=A,T=e.i(131777);let M=A.Root,E=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(A.List,{ref:s,className:(0,T.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));E.displayName=A.List.displayName;let I=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(A.Trigger,{ref:s,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",e),...r}));I.displayName=A.Trigger.displayName;let L=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(A.Content,{ref:s,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));L.displayName=A.Content.displayName,e.s(["Tabs",()=>M,"TabsContent",()=>L,"TabsList",()=>E,"TabsTrigger",()=>I],468304)},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)},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)},208952,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("40953c2cf20f4bbd41d6a9487c7ef3e988462d2869",t.callServer,void 0,t.findSourceMapURL,"openFolder");e.s(["openFolder",()=>r])},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},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,860493,202824,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(317406),a=e.i(508893);let i=(0,a.createServerReference)("40c4a6aecf45d4f3bcee9f0abca065bb2204369961",a.callServer,void 0,a.findSourceMapURL,"deployFeature"),n=(0,a.createServerReference)("40480b2914f085773198eda76564879e2a82bf9abf",a.callServer,void 0,a.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],860493);let l=(0,a.createServerReference)("40b269b73a63cba8a12cdea3206c88dd77d1a720c5",a.callServer,void 0,a.findSourceMapURL,"deployApplication"),o=(0,a.createServerReference)("40f6a442e6dcb385edbe497760723810a4d3b6cd78",a.callServer,void 0,a.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],202824);let u=(0,a.createServerReference)("405bb37393c554d70ce53e367e581f340c25f403c3",a.callServer,void 0,a.findSourceMapURL,"getDeploymentStatus");var d=e.i(118354);let c={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{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)??c}update(e,t){let r={...this.entries.get(e)??c,...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",()=>f,"EMPTY_ENTRY",0,c],481605);let p=(0,d.createLogger)("[DeploymentStatusProvider]"),h=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:a}){let d=(0,r.useRef)(null);d.current||(d.current=new f,d.current.hydrate(e));let c=d.current;(0,r.useEffect)(()=>{c.hydrate(e)},[e,c]);let v=(0,r.useRef)(new Map),g=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),m=(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),c.setStatus(e,null),g(e);return}if(!t||t.state===s.DeploymentState.Stopped){c.setStatus(e,null),g(e);return}c.setStatus(e,t)},3e3);v.current.set(e,t)},[c,g]);(0,r.useEffect)(()=>{let e=v.current,t=c.subscribeAll(()=>{for(let[t]of e){let e=c.getEntry(t);e.status&&h.has(e.status)||g(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[c,g]);let b=(0,r.useCallback)(e=>{if(e&&!c.getEntry(e).hydrated){if(c.isFullyHydrated())return void c.update(e,{hydrated:!0});c.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);c.setStatus(e,t),t&&h.has(t.state)&&m(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[c,m]),w=(0,r.useCallback)(async e=>{c.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await i(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void c.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});c.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),m(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";c.update(e.targetId,{deployLoading:!1,deployError:t})}},[c,m]),k=(0,r.useCallback)(async e=>{if(e){c.update(e,{stopLoading:!0});try{(await o(e)).success?(g(e),c.update(e,{stopLoading:!1,status:null,url:null})):c.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),c.update(e,{stopLoading:!1})}}},[c,g]),x=(0,r.useMemo)(()=>({store:c,deploy:w,stop:k,ensureHydrated:b}),[c,w,k,b]);return(0,t.jsx)(y.Provider,{value:x,children:a})}function g(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function m(){let e=(0,r.useContext)(y);return e||b}let b={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>g,"useDeploymentStatusContextOptional",()=>m],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function a(e){let{store:a,deploy:i,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?a.subscribe(o,e):s,[a,o]),d=(0,t.useCallback)(()=>o?a.getEntry(o):a.getEntry(""),[a,o]),c=(0,t.useSyncExternalStore)(u,d,d);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await i(e)},[i,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:c.deployLoading,stopLoading:c.stopLoading,deployError:c.deployError,status:c.status,url:c.url}}e.s(["useDeployAction",()=>a])},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)},208986,e=>{"use strict";let t=(0,e.i(903645).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",()=>t],208986)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,791909,e=>{"use strict";let t=(0,e.i(903645).default)("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]]);e.s(["default",()=>t])},812919,e=>{"use strict";let t=(0,e.i(903645).default)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);e.s(["FilePlus",()=>t],812919)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),a=e.i(205978),s=e.i(786874),i=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,d]=l(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:a}=e,s=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:n,collectionRef:s,children:a})};c.displayName=n;let f=e+"CollectionSlot",p=(0,s.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:s}=e,n=d(f,r),l=(0,a.useComposedRefs)(t,n.collectionRef);return(0,i.jsx)(p,{ref:l,children:s})});h.displayName=f;let y=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,s.createSlot)(y),m=t.default.forwardRef((e,r)=>{let{scope:s,children:n,...l}=e,o=t.default.useRef(null),u=(0,a.useComposedRefs)(r,o),c=d(y,s);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,i.jsx)(g,{...{[v]:""},ref:u,children:n})});return m.displayName=y,[{Provider:c,Slot:h,ItemSlot:m},function(r){let a=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(a.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[a.collectionRef,a.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,a;let s,i,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,a=t,s=r.length,(n=(i=u(a))>=0?i:s+i)<0||n>=s?-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{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let a,s=this.has(t),i=this.#e.length,n=u(e),l=n>=0?n:i+n,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let d=this.size+ +!s;n<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<d;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),s&&this.delete(t),a=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],s=a;a=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,a){let s=new e(this);return s.insert(t,r,a),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return a;r++}}findIndex(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return r;r++}return -1}filter(t,r){let a=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&a.push(e),s++;return new e(a)}map(t,r){let a=[],s=0;for(let e of this)a.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(a)}reduce(...e){let[t,r]=e,a=0,s=r??this.at(0);for(let r of this)s=0===a&&1===e.length?r:Reflect.apply(t,this,[s,r,a,this]),a++;return s}reduceRight(...e){let[t,r]=e,a=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);a=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[a,s,r,this])}return a}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),a=this.get(r);t.set(r,a)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let a=new e,s=this.size-1;if(void 0===t)return a;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);a.set(t,r)}return a}every(e,t){let r=0;for(let a of this){if(!Reflect.apply(e,t,[a,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),a=e.i(787342),s=e.i(205978),i=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),d=e.i(566033),c=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,v,g]=(0,a.createCollection)(h),[m,b]=(0,i.createContextScope)(h,[g]),[w,k]=m(h),x=t.forwardRef((e,t)=>(0,c.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(R,{...e,ref:t})})}));x.displayName=h;var R=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:y=!1,dir:g,currentTabStopId:m,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:k,onEntryFocus:x,preventScrollOnEntryFocus:R=!1,...S}=e,C=t.useRef(null),A=(0,s.useComposedRefs)(a,C),M=(0,d.useDirection)(g),[E,I]=(0,u.useControllableState)({prop:m,defaultProp:b??null,onChange:k,caller:h}),[L,D]=t.useState(!1),F=(0,o.useCallbackRef)(x),j=v(i),z=t.useRef(!1),[P,H]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,c.jsx)(w,{scope:i,orientation:n,dir:M,loop:y,currentTabStopId:E,onItemFocus:t.useCallback(e=>I(e),[I]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,c.jsx)(l.Primitive.div,{tabIndex:L||0===P?-1:0,"data-orientation":n,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{z.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),R)}}z.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),S="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,focusable:i=!0,active:o=!1,tabStopId:u,children:d,...f}=e,p=(0,n.useId)(),h=u||p,g=k(S,s),m=g.currentTabStopId===h,b=v(s),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:R}=g;return t.useEffect(()=>{if(i)return w(),()=>x()},[i,w,x]),(0,c.jsx)(y.ItemSlot,{scope:s,id:h,focusable:i,active:o,children:(0,c.jsx)(l.Primitive.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var a;let s=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return A[s]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=g.loop?(r=s,a=i+1,r.map((e,t)=>r[(a+t)%r.length])):s.slice(i+1)}setTimeout(()=>T(s))}}),children:"function"==typeof d?d({isCurrentTabStop:m,hasTabStop:null!=R}):d})})});C.displayName=S;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>x,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),s=e.i(922528),i=e.i(151080),n=e.i(685995),l=e.i(287620),o=e.i(566033),u=e.i(936589),d=e.i(713123),c="Tabs",[f,p]=(0,s.createContextScope)(c,[i.createRovingFocusGroupScope]),h=(0,i.createRovingFocusGroupScope)(),[y,v]=f(c),g=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:s,onValueChange:i,defaultValue:n,orientation:f="horizontal",dir:p,activationMode:h="automatic",...v}=e,g=(0,o.useDirection)(p),[m,b]=(0,u.useControllableState)({prop:s,onChange:i,defaultProp:n??"",caller:c});return(0,t.jsx)(y,{scope:a,baseId:(0,d.useId)(),value:m,onValueChange:b,orientation:f,dir:g,activationMode:h,children:(0,t.jsx)(l.Primitive.div,{dir:g,"data-orientation":f,...v,ref:r})})});g.displayName=c;var m="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:a,loop:s=!0,...n}=e,o=v(m,a),u=h(a);return(0,t.jsx)(i.Root,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:s,children:(0,t.jsx)(l.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:r})})});b.displayName=m;var w="TabsTrigger",k=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:n,disabled:o=!1,...u}=e,d=v(w,s),c=h(s),f=S(d.baseId,n),p=C(d.baseId,n),y=n===d.value;return(0,t.jsx)(i.Item,{asChild:!0,...c,focusable:!o,active:y,children:(0,t.jsx)(l.Primitive.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":p,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...u,ref:r,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(n)}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(n)}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;y||o||!e||d.onValueChange(n)})})})});k.displayName=w;var x="TabsContent",R=r.forwardRef((e,a)=>{let{__scopeTabs:s,value:i,forceMount:o,children:u,...d}=e,c=v(x,s),f=S(c.baseId,i),p=C(c.baseId,i),h=i===c.value,y=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(n.Presence,{present:o||h,children:({present:r})=>(0,t.jsx)(l.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:p,tabIndex:0,...d,ref:a,style:{...e.style,animationDuration:y.current?"0s":void 0},children:r&&u})})});function S(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}R.displayName=x,e.s(["Content",()=>R,"List",()=>b,"Root",()=>g,"Tabs",()=>g,"TabsContent",()=>R,"TabsList",()=>b,"TabsTrigger",()=>k,"Trigger",()=>k,"createTabsScope",()=>p],743133);var A=e.i(743133),A=A,T=e.i(131777);let M=A.Root,E=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(A.List,{ref:a,className:(0,T.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));E.displayName=A.List.displayName;let I=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(A.Trigger,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",e),...r}));I.displayName=A.Trigger.displayName;let L=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(A.Content,{ref:a,className:(0,T.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));L.displayName=A.Content.displayName,e.s(["Tabs",()=>M,"TabsContent",()=>L,"TabsList",()=>E,"TabsTrigger",()=>I],468304)},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)},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)},881317,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("40c1a0f14ef861167306a54cacc49d47d7c53935a9",t.callServer,void 0,t.findSourceMapURL,"openFolder");e.s(["openFolder",()=>r])},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},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,120716,464139,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(317406),s=e.i(508893);let i=(0,s.createServerReference)("40f07513aa1c0e813c802fc093ccedf3f983c32dce",s.callServer,void 0,s.findSourceMapURL,"deployFeature"),n=(0,s.createServerReference)("40168bcbd07a153b51a47e534636398af1478b3357",s.callServer,void 0,s.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],120716);let l=(0,s.createServerReference)("4092e06c387d5277093b0c3ab0d02c67d0634c3c36",s.callServer,void 0,s.findSourceMapURL,"deployApplication"),o=(0,s.createServerReference)("409823ed6e50482ab029132da1af3bc99aaa94ce52",s.callServer,void 0,s.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],464139);let u=(0,s.createServerReference)("408132a4d33adc8c71a573e5f9f01866bd95ce81ae",s.callServer,void 0,s.findSourceMapURL,"getDeploymentStatus");var d=e.i(118354);let c={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{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)??c}update(e,t){let r={...this.entries.get(e)??c,...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",()=>f,"EMPTY_ENTRY",0,c],481605);let p=(0,d.createLogger)("[DeploymentStatusProvider]"),h=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:s}){let d=(0,r.useRef)(null);d.current||(d.current=new f,d.current.hydrate(e));let c=d.current;(0,r.useEffect)(()=>{c.hydrate(e)},[e,c]);let v=(0,r.useRef)(new Map),g=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),m=(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),c.setStatus(e,null),g(e);return}if(!t||t.state===a.DeploymentState.Stopped){c.setStatus(e,null),g(e);return}c.setStatus(e,t)},3e3);v.current.set(e,t)},[c,g]);(0,r.useEffect)(()=>{let e=v.current,t=c.subscribeAll(()=>{for(let[t]of e){let e=c.getEntry(t);e.status&&h.has(e.status)||g(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[c,g]);let b=(0,r.useCallback)(e=>{if(e&&!c.getEntry(e).hydrated){if(c.isFullyHydrated())return void c.update(e,{hydrated:!0});c.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);c.setStatus(e,t),t&&h.has(t.state)&&m(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[c,m]),w=(0,r.useCallback)(async e=>{c.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await i(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void c.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});c.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),m(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";c.update(e.targetId,{deployLoading:!1,deployError:t})}},[c,m]),k=(0,r.useCallback)(async e=>{if(e){c.update(e,{stopLoading:!0});try{(await o(e)).success?(g(e),c.update(e,{stopLoading:!1,status:null,url:null})):c.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),c.update(e,{stopLoading:!1})}}},[c,g]),x=(0,r.useMemo)(()=>({store:c,deploy:w,stop:k,ensureHydrated:b}),[c,w,k,b]);return(0,t.jsx)(y.Provider,{value:x,children:s})}function g(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function m(){let e=(0,r.useContext)(y);return e||b}let b={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>g,"useDeploymentStatusContextOptional",()=>m],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function a(){}function s(e){let{store:s,deploy:i,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?s.subscribe(o,e):a,[s,o]),d=(0,t.useCallback)(()=>o?s.getEntry(o):s.getEntry(""),[s,o]),c=(0,t.useSyncExternalStore)(u,d,d);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await i(e)},[i,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:c.deployLoading,stopLoading:c.stopLoading,deployError:c.deployError,status:c.status,url:c.url}}e.s(["useDeployAction",()=>s])},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)},208986,e=>{"use strict";let t=(0,e.i(903645).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",()=>t],208986)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,951911,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(291967),n=e.i(205978),s=e.i(922528),i=e.i(936589),o=e.i(23405),l=e.i(277624),c=e.i(287620),d="Switch",[u,h]=(0,s.createContextScope)(d),[p,m]=u(d),x=a.forwardRef((e,s)=>{let{__scopeSwitch:o,name:l,checked:u,defaultChecked:h,required:m,disabled:x,value:f="on",onCheckedChange:b,form:y,...j}=e,[k,w]=a.useState(null),N=(0,n.useComposedRefs)(s,e=>w(e)),C=a.useRef(!1),S=!k||y||!!k.closest("form"),[D,F]=(0,i.useControllableState)({prop:u,defaultProp:h??!1,onChange:b,caller:d});return(0,t.jsxs)(p,{scope:o,checked:D,disabled:x,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":D,"aria-required":m,"data-state":v(D),"data-disabled":x?"":void 0,disabled:x,value:f,...j,ref:N,onClick:(0,r.composeEventHandlers)(e.onClick,e=>{F(e=>!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,t.jsx)(g,{control:k,bubbles:!C.current,name:l,value:f,checked:D,required:m,disabled:x,form:y,style:{transform:"translateX(-100%)"}})]})});x.displayName=d;var f="SwitchThumb",b=a.forwardRef((e,a)=>{let{__scopeSwitch:r,...n}=e,s=m(f,r);return(0,t.jsx)(c.Primitive.span,{"data-state":v(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a})});b.displayName=f;var g=a.forwardRef(({__scopeSwitch:e,control:r,checked:s,bubbles:i=!0,...c},d)=>{let u=a.useRef(null),h=(0,n.useComposedRefs)(u,d),p=(0,o.usePrevious)(s),m=(0,l.useSize)(r);return a.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==s&&t){let a=new Event("click",{bubbles:i});t.call(e,s),e.dispatchEvent(a)}},[p,s,i]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...c,tabIndex:-1,ref:h,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function v(e){return e?"checked":"unchecked"}g.displayName="SwitchBubbleInput",e.s(["Root",()=>x,"Switch",()=>x,"SwitchThumb",()=>b,"Thumb",()=>b,"createSwitchScope",()=>h],595291);var y=e.i(595291),y=y,j=e.i(131777);function k({className:e,size:a="default",...r}){return(0,t.jsx)(y.Root,{"data-slot":"switch","data-size":a,className:(0,j.cn)("peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...r,children:(0,t.jsx)(y.Thumb,{"data-slot":"switch-thumb",className:(0,j.cn)("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")})})}e.s(["Switch",()=>k],951911)},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)},197667,e=>{"use strict";var t=e.i(301012);e.s(["CheckIcon",()=>t.default])},216868,442076,e=>{"use strict";var t=e.i(943698);async function a(){let e=await fetch("/api/dialog/pick-files",{method:"POST"});if(!e.ok)throw Error("Failed to open file dialog");let t=await e.json();return t.cancelled?null:t.files}e.s(["PaperclipIcon",()=>t.default],216868),e.s(["pickFiles",()=>a],442076)},983299,474363,765104,e=>{"use strict";let t=(0,e.i(903645).default)("archive-restore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);e.s(["ArchiveRestore",()=>t],983299);var a=e.i(679606),r=e.i(152155),n=e.i(83428);e.i(541001);var s=e.i(626960),i=e.i(64780),o=e.i(271326),l=e.i(197667),c=e.i(961569),c=c,d=e.i(205978),u=e.i(922528),h=e.i(291967),p=e.i(936589),m=e.i(23405),x=e.i(277624),f=e.i(685995),b=e.i(287620),g="Checkbox",[v,y]=(0,u.createContextScope)(g),[j,k]=v(g);function w(e){let{__scopeCheckbox:t,checked:n,children:s,defaultChecked:i,disabled:o,form:l,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[x,f]=(0,p.useControllableState)({prop:n,defaultProp:i??!1,onChange:d,caller:g}),[b,v]=r.useState(null),[y,k]=r.useState(null),w=r.useRef(!1),N=!b||!!l||!!b.closest("form"),C={checked:x,disabled:o,setChecked:f,control:b,setControl:v,name:c,form:l,value:h,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:!P(i)&&i,isFormControl:N,bubbleInput:y,setBubbleInput:k};return(0,a.jsx)(j,{scope:t,...C,children:"function"==typeof m?m(C):s})}var N="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},i)=>{let{control:o,value:l,disabled:c,checked:u,required:p,setControl:m,setChecked:x,hasConsumerStoppedPropagationRef:f,isFormControl:g,bubbleInput:v}=k(N,e),y=(0,d.useComposedRefs)(i,m),j=r.useRef(u);return r.useEffect(()=>{let e=o?.form;if(e){let t=()=>x(j.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,x]),(0,a.jsx)(b.Primitive.button,{type:"button",role:"checkbox","aria-checked":P(u)?"mixed":u,"aria-required":p,"data-state":A(u),"data-disabled":c?"":void 0,disabled:c,value:l,...s,ref:y,onKeyDown:(0,h.composeEventHandlers)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,h.composeEventHandlers)(n,e=>{x(e=>!!P(e)||!e),v&&g&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});C.displayName=N;var S=r.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:d,form:u,...h}=e;return(0,a.jsx)(w,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:d,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C,{...h,ref:t,__scopeCheckbox:r}),e&&(0,a.jsx)(E,{__scopeCheckbox:r})]})})});S.displayName=g;var D="CheckboxIndicator",F=r.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...s}=e,i=k(D,r);return(0,a.jsx)(f.Presence,{present:n||P(i.checked)||!0===i.checked,children:(0,a.jsx)(b.Primitive.span,{"data-state":A(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});F.displayName=D;var R="CheckboxBubbleInput",E=r.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:s,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:l,required:c,disabled:u,name:h,value:p,form:f,bubbleInput:g,setBubbleInput:v}=k(R,e),y=(0,d.useComposedRefs)(n,v),j=(0,m.usePrevious)(o),w=(0,x.useSize)(s);r.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!i.current;if(j!==o&&e){let a=new Event("click",{bubbles:t});g.indeterminate=P(o),e.call(g,!P(o)&&o),g.dispatchEvent(a)}},[g,j,o,i]);let N=r.useRef(!P(o)&&o);return(0,a.jsx)(b.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??N.current,required:c,disabled:u,name:h,value:p,form:f,...t,tabIndex:-1,ref:y,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function P(e){return"indeterminate"===e}function A(e){return P(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=R,e.s(["Checkbox",()=>S,"CheckboxIndicator",()=>F,"Indicator",()=>F,"Root",()=>S,"createCheckboxScope",()=>y,"unstable_BubbleInput",()=>E,"unstable_CheckboxBubbleInput",()=>E,"unstable_CheckboxProvider",()=>w,"unstable_CheckboxTrigger",()=>C,"unstable_Provider",()=>w,"unstable_Trigger",()=>C],257696);var M=e.i(257696),M=M,z=e.i(131777);function L({className:e,...t}){return(0,a.jsx)(M.Root,{"data-slot":"checkbox",className:(0,z.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 cursor-pointer rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,a.jsx)(M.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:"indeterminate"===t.checked?(0,a.jsx)(c.default,{className:"size-3.5"}):(0,a.jsx)(l.CheckIcon,{className:"size-3.5"})})})}e.s(["Checkbox",()=>L],474363);var T=e.i(141957);function _({open:e,onOpenChange:t,onConfirm:l,isDeleting:c,featureName:d,featureId:u,hasChildren:h,hasOpenPr:p}){let{t:m}=(0,i.useTranslation)("web"),[x,f]=(0,r.useState)(!0),[b,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{e&&(f(!0),g(!1),y(!0))},[e]),(0,r.useEffect)(()=>{x?y(!0):y(!1)},[x]),(0,a.jsx)(o.AlertDialog,{open:e,onOpenChange:t,children:(0,a.jsxs)(o.AlertDialogContent,{onCloseAutoFocus:e=>e.preventDefault(),children:[(0,a.jsxs)(o.AlertDialogHeader,{children:[(0,a.jsx)(o.AlertDialogTitle,{children:m("deleteFeature.title")}),(0,a.jsx)(o.AlertDialogDescription,{children:(0,a.jsx)(s.Trans,{t:m,i18nKey:"deleteFeature.description",values:{featureName:d,featureId:u},components:{strong:(0,a.jsx)("strong",{})}})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"cleanup-checkbox",checked:x,onCheckedChange:e=>f(!0===e),disabled:c,"aria-label":m("deleteFeature.cleanupLabel")}),(0,a.jsx)(T.Label,{htmlFor:"cleanup-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.cleanupLabel")})]}),h?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"cascade-delete-checkbox",checked:b,onCheckedChange:e=>g(!0===e),disabled:c,"aria-label":m("deleteFeature.deleteSubFeatures")}),(0,a.jsx)(T.Label,{htmlFor:"cascade-delete-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.deleteSubFeatures")})]}):null,p?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"close-pr-checkbox",checked:v,onCheckedChange:e=>y(!0===e),disabled:c||!x,"aria-label":m("deleteFeature.closePullRequest")}),(0,a.jsx)(T.Label,{htmlFor:"close-pr-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.closePullRequest")})]}):null]}),(0,a.jsxs)(o.AlertDialogFooter,{children:[(0,a.jsx)(o.AlertDialogCancel,{disabled:c,onClick:()=>t(!1),children:m("deleteFeature.cancel")}),(0,a.jsx)(o.AlertDialogAction,{variant:"destructive",disabled:c,onClick:()=>l(x,b,!!p&&v),children:c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Loader2,{className:"me-2 h-4 w-4 animate-spin"}),m("deleteFeature.deleting")]}):m("deleteFeature.delete")})]})]})})}e.s(["DeleteFeatureDialog",()=>_],765104)},759338,525146,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("4063ea21afa87ec4e962daf2de20fa05318b794cb4",t.callServer,void 0,t.findSourceMapURL,"startFeature");e.s(["startFeature",()=>a],759338);let r=(0,t.createServerReference)("408062fa703c2448d3d5b1d10dc2ba51dd21151299",t.callServer,void 0,t.findSourceMapURL,"stopFeature");e.s(["stopFeature",()=>r],525146)},387812,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40ef4a4df3bd27c0b96ddb72f3f13e5bafa024a912",t.callServer,void 0,t.findSourceMapURL,"resumeFeature");e.s(["resumeFeature",()=>a])},454793,207729,e=>{"use strict";var t=e.i(679606),a=e.i(131777);function r({icon:e,title:r,description:n,action:s,className:i,...o}){return(0,t.jsxs)("div",{className:(0,a.cn)("flex flex-col items-center gap-4 px-4 py-12 text-center",i),...o,children:[e?(0,t.jsx)("div",{className:"text-muted-foreground",children:e}):null,(0,t.jsx)("h3",{className:"text-lg font-semibold",children:r}),n?(0,t.jsx)("p",{className:"text-muted-foreground max-w-md text-sm",children:n}):null,s?(0,t.jsx)("div",{className:"mt-2",children:s}):null]})}e.s(["EmptyState",()=>r],207729),e.s([],454793)},809443,185871,e=>{"use strict";var t=e.i(679606),a=e.i(131777);function r({title:e,description:r,children:n,className:s}){return(0,t.jsxs)("header",{className:(0,a.cn)("flex items-center justify-between gap-4",s),children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:e}),r?(0,t.jsx)("p",{className:"text-muted-foreground",children:r}):null]}),n?(0,t.jsx)("div",{"data-slot":"actions",children:n}):null]})}e.s(["PageHeader",()=>r],185871),e.s([],809443)},440106,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(711719),n=e.i(935946),s=e.i(83428),i=e.i(542049),o=e.i(453360),l=e.i(941698),c=e.i(99105),d=e.i(723925),u=e.i(860253);e.i(541001);var h=e.i(64780),p=e.i(131777),m=e.i(508893);let x=(0,m.createServerReference)("40f595593fe64753a85724c13a37bc0c1727608b01",m.callServer,void 0,m.findSourceMapURL,"createProjectAndFeature"),f=(0,m.createServerReference)("403f35995a71f5bd40ca59261723021e33ac84d4e3",m.callServer,void 0,m.findSourceMapURL,"createApplication");var b=e.i(41413);e.i(650032);var g=e.i(486254);e.i(692233);var v=e.i(210025),y=e.i(102828),j=e.i(470646),k=e.i(731151);let w=["application","fast","spec"],N={application:{icon:i.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:o.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:l.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:i,onClose:o,className:l}){let{t:m}=(0,h.useTranslation)("web"),[C,S]=(0,a.useState)(""),[D,F]=(0,a.useState)(void 0),[R,E]=(0,a.useState)(void 0),[P,A]=(0,a.useState)("application"),[M,z]=(0,a.useState)(!1),[L,T]=(0,a.useState)(null),[_,I]=(0,a.useState)(!1),O=(0,a.useRef)(null),B=(0,k.useAttachments)(),H=!!e,U=H?P:"application",q=(0,a.useCallback)(()=>{A(e=>{let t=w.indexOf(e);return w[(t+1)%w.length]})},[]);(0,a.useEffect)(()=>{let t=t=>{"Escape"===t.key&&o&&o(),"Tab"===t.key&&t.shiftKey&&e&&(t.preventDefault(),q())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[o,q,e]);let $=(0,a.useCallback)(async()=>{if(C.trim()&&!M){z(!0),T(null);try{if("application"!==U&&e){let t=await x({description:C.trim(),attachments:B.completedAttachments.map(e=>({path:e.path,name:e.name,notes:e.notes})),agentType:D,model:R,fast:"fast"===U});if(t.error){T(t.error),z(!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 f({description:C.trim(),agentType:D,modelOverride:R,initialPrompt:C.trim()});if(e.error){T(e.error),z(!1);return}e.application&&i?.(e.application.id)}}catch{T("Something went wrong. Please try again."),z(!1)}}},[C,M,U,B.completedAttachments,D,R,e,i]),K=(0,a.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),$())},[$]),X=(0,a.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 a=await t.json();B.addAttachment(a)}}catch{}},[B.addAttachment]),Z=(0,a.useCallback)(e=>{S(e),O.current?.focus()},[]),G=N[U],V=G.icon;return(0,t.jsxs)("div",{"data-testid":"control-center-empty-state",className:(0,p.cn)("relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-8",l),children:[(0,t.jsx)("div",{className:"onboard-bg pointer-events-none absolute inset-0 animate-[onboard-fade-in_1.2s_ease-out_both]"}),o?(0,t.jsx)("button",{type:"button",onClick:o,"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)(u.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:()=>I(!0),onBlur:()=>I(!1),onDragEnter:B.handleDragEnter,onDragLeave:B.handleDragLeave,onDragOver:B.handleDragOver,onDrop:B.handleDrop,className:(0,p.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]",_&&"ring-ring/50 border-ring shadow-md ring-[3px] dark:border-orange-500/40 dark:ring-orange-500/25",B.isDragOver&&"border-primary/50 bg-primary/5",M&&"opacity-70"),children:[(0,t.jsx)("textarea",{ref:O,rows:2,autoFocus:!0,value:C,onChange:e=>S(e.target.value),onKeyDown:K,onPaste:B.handlePaste,placeholder:G.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"}),B.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:B.attachments.map(e=>(0,t.jsx)(g.AttachmentChip,{name:e.name,size:e.size,mimeType:e.mimeType,path:e.path,onRemove:()=>B.removeAttachment(e.id),loading:e.loading,notes:e.notes,onNotesChange:t=>B.updateNotes(e.id,t)},e.id))}):null,B.uploadError?(0,t.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",children:B.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)(b.AgentModelPicker,{initialAgentType:D??"claude-code",initialModel:R??"claude-sonnet-4-6",mode:"override",showInstallStatus:!0,onAgentModelChange:(e,t)=>{F(e),E(t)},className:"w-55"}),(0,t.jsx)("div",{className:"flex-1"}),H?(0,t.jsxs)(j.DropdownMenu,{children:[(0,t.jsx)(j.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)(V,{className:"h-3.5 w-3.5"}),G.label]},U),(0,t.jsx)(c.ChevronDown,{className:"h-3 w-3 opacity-50"})]})}),(0,t.jsx)(j.DropdownMenuContent,{align:"end",className:"min-w-[160px]",children:w.map(e=>{let a=N[e],r=a.icon,n=U===e;return(0,t.jsxs)(j.DropdownMenuItem,{onClick:()=>A(e),"data-testid":`build-mode-${e}`,className:"flex items-center gap-2",children:[(0,t.jsx)(r,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"flex-1",children:a.label}),n?(0,t.jsx)(d.Check,{className:"text-foreground h-3.5 w-3.5"}):null]},e)})})]}):null,(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:X,disabled:M,"aria-label":m("chat.attachFiles"),className:"text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors disabled:opacity-50",children:(0,t.jsx)(n.Paperclip,{className:"h-4 w-4"})})}),(0,t.jsx)(y.TooltipContent,{side:"top",children:m("chat.attachFiles")})]}),(0,t.jsx)("button",{type:"button",onClick:$,disabled:!C.trim()||M,className:(0,p.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)(s.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(r.SendHorizontal,{className:"h-3.5 w-3.5"})})]})]}),L?(0,t.jsx)("p",{className:"text-destructive mt-2 text-center text-sm",children:L}):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:G.suggestions.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>Z(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))},U)]})]})}e.s(["ControlCenterEmptyState",()=>C],440106)},998798,e=>{"use strict";let t=(0,e.i(903645).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],998798)},13322,961201,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(276016);let n=(0,e.i(903645).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var s=e.i(619933),i=e.i(83428),o=e.i(998798),l=e.i(360112),c=e.i(602287),d=e.i(735364),u=e.i(835340);async function h(e){let t=new URLSearchParams;e&&t.set("path",e);let a=await fetch(`/api/directory/list?${t.toString()}`);if(!a.ok)throw Error((await a.json().catch(()=>({error:"Failed to load directory"}))).error??"Failed to load directory");return a.json()}function p({currentPath:e,isEditing:n,onToggleEdit:s,onNavigate:i}){let l=(0,a.useRef)(null),[c,d]=(0,a.useState)(e);function u(){d(e),s()}(0,a.useEffect)(()=>{d(e)},[e]),(0,a.useEffect)(()=>{n&&l.current&&(l.current.focus(),l.current.select())},[n]);let h=function(e){if(!e)return[];let t=/^[a-zA-Z]:/.test(e),a=t?"\\":"/",r=e.split(/[\\/]/).filter(Boolean),n=[];for(let e=0;e<r.length;e++){let s=t?r.slice(0,e+1).join(a):a+r.slice(0,e+1).join(a);n.push({label:r[e],path:s})}return n}(e),p=h.length>3,m=p?h.slice(-3):h;return(0,t.jsxs)("div",{className:"border-b px-4 py-3",children:[(0,t.jsx)("h2",{className:"text-foreground mb-2.5 text-sm font-semibold tracking-[-0.01em]",children:"Select Folder"}),n?(0,t.jsx)("input",{ref:l,type:"text",value:c,onChange:e=>d(e.target.value),onKeyDown:e=>{if("Enter"===e.key){let t;e.preventDefault(),(t=c.trim())&&i(t)}"Escape"===e.key&&(e.preventDefault(),u())},onBlur:u,className:"bg-muted/60 border-border focus:ring-ring/20 focus:border-ring w-full rounded-lg border px-3 py-2 font-mono text-xs transition-all outline-none focus:ring-2",placeholder:"Type a path and press Enter...",spellCheck:!1,autoComplete:"off"}):(0,t.jsxs)("div",{className:"bg-muted/40 flex items-center gap-1 rounded-lg px-2.5 py-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i("/"),className:"text-muted-foreground hover:text-foreground hover:bg-background shrink-0 rounded px-1.5 py-0.5 font-mono text-xs transition-colors",children:"/"}),p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/30 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground/40 font-mono text-xs",children:"..."})]}):null,m.map((e,a)=>{let n=a===m.length-1;return(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/30 h-3 w-3"}),n?(0,t.jsx)("span",{className:"bg-primary/10 text-primary rounded px-2 py-0.5 font-mono text-xs font-medium",children:e.label}):(0,t.jsx)("button",{type:"button",onClick:()=>i(e.path),className:"text-muted-foreground hover:text-foreground hover:bg-background rounded px-1.5 py-0.5 font-mono text-xs transition-colors",children:e.label})]},e.path)}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("button",{type:"button",onClick:s,className:"text-muted-foreground/40 hover:text-foreground hover:bg-background shrink-0 rounded p-1 transition-colors","aria-label":"Edit path",children:(0,t.jsx)(o.Pencil,{className:"h-3 w-3"})})]})]})}function m({open:e,onOpenChange:o,onSelect:m,initialPath:x}){let[f,b]=(0,a.useState)([]),[g,v]=(0,a.useState)(""),[y,j]=(0,a.useState)(!1),[k,w]=(0,a.useState)(!1),N=(0,a.useRef)(!1),[C,S]=(0,a.useState)(0),D=(0,a.useCallback)(async e=>{j(!0),w(!1);try{let t=await h(e);b(t.entries),v(t.currentPath),S(e=>e+1)}catch(t){let e=t instanceof Error?t.message:"Failed to load directory";l.toast.error(e)}finally{j(!1)}},[]);function F(e){D(e)}function R(){m(null),o(!1)}return(0,a.useEffect)(()=>{e&&!N.current&&(N.current=!0,D(x)),e||(N.current=!1,w(!1))},[e,x,D]),(0,t.jsx)(c.Dialog,{open:e,onOpenChange:e=>{e||R()},children:(0,t.jsxs)(c.DialogContent,{className:"flex h-[min(520px,85dvh)] w-full max-w-[460px] flex-col gap-0 overflow-hidden p-0",onCloseAutoFocus:e=>e.preventDefault(),children:[(0,t.jsx)(c.DialogTitle,{className:"sr-only",children:"Select Folder"}),(0,t.jsx)(c.DialogDescription,{className:"sr-only",children:"Navigate to a folder and select it"}),(0,t.jsx)(p,{currentPath:g,isEditing:k,onToggleEdit:()=>w(e=>!e),onNavigate:F}),(0,t.jsx)(u.ScrollArea,{className:"min-h-0 flex-1",children:y&&0===f.length?(0,t.jsx)("div",{className:"space-y-0.5 p-2",children:Array.from({length:8}).map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{opacity:1-.1*a},children:[(0,t.jsx)("div",{className:"bg-muted h-4 w-4 animate-pulse rounded"}),(0,t.jsx)("div",{className:"bg-muted h-3.5 animate-pulse rounded",style:{width:`${40+35*Math.random()}%`}})]},`skeleton-${a}`))}):0===f.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,t.jsx)(s.FolderOpen,{className:"text-muted-foreground/25 mb-3 h-10 w-10"}),(0,t.jsx)("p",{className:"text-muted-foreground/60 text-sm",children:"Empty folder"})]}):(0,t.jsx)("div",{className:"p-2",children:f.map((e,a)=>(0,t.jsxs)("button",{type:"button",onClick:()=>F(e.path),className:"folder-row group flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-all hover:bg-[var(--color-primary)]/[0.06] active:scale-[0.997]",style:{animationDelay:`${20*a}ms`},children:[(0,t.jsx)(n,{className:"text-muted-foreground/50 group-hover:text-primary h-[18px] w-[18px] shrink-0 transition-colors"}),(0,t.jsx)("span",{className:"text-foreground min-w-0 flex-1 truncate text-[13px] font-medium",children:e.name}),(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/0 group-hover:text-muted-foreground/40 h-3.5 w-3.5 shrink-0 transition-all"})]},e.path))},C)}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-t px-4 py-3",children:[(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 flex-1 truncate font-mono text-[11px] leading-none",children:g||" "}),(0,t.jsx)(d.Button,{variant:"ghost",size:"sm",onClick:R,className:"text-muted-foreground h-8 shrink-0 px-3 text-xs",children:"Cancel"}),(0,t.jsxs)(d.Button,{size:"sm",onClick:function(){g&&(m(g),o(!1))},disabled:!g||y,className:"h-8 shrink-0 px-5 text-xs font-medium",children:[y?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-3 w-3 animate-spin"}):null,"Select"]})]})]})})}e.s(["ReactFileManagerDialog",()=>m],961201),e.s([],13322)},591925,e=>{"use strict";let t=(0,e.i(903645).default)("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["FolderPlus",()=>t],591925)},790427,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40cc81584374c75e940be2f287524cce4305096ef6",t.callServer,void 0,t.findSourceMapURL,"addRepository");e.s(["addRepository",()=>a])},713005,371127,744263,327810,e=>{"use strict";let t=(0,e.i(903645).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",()=>t],713005);var a=e.i(679606),r=e.i(152155),n=e.i(3214),s=e.i(83428),i=e.i(860253);e.i(541001);var o=e.i(64780),l=e.i(131777),c=e.i(735364);function d({actions:e,className:t,style:d}){let{t:u}=(0,o.useTranslation)("web"),[h,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(h)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&p(!1)}},[h]),(0,a.jsxs)(a.Fragment,{children:[h?(0,a.jsx)("div",{"data-testid":"fab-overlay",className:"fixed inset-0 z-40",onClick:()=>p(!1),"aria-hidden":"true"}):null,(0,a.jsxs)("div",{"data-testid":"floating-action-button",className:(0,l.cn)("relative z-50",t),style:d,children:[(0,a.jsx)("div",{className:(0,l.cn)("absolute start-0 bottom-[calc(100%+24px)] flex flex-col items-start gap-2",!h&&"pointer-events-none"),"data-testid":"fab-actions",children:e.map((t,r)=>{let n=(e.length-1-r)*50;return(0,a.jsxs)("button",{"data-testid":`fab-action-${t.id}`,"aria-label":t.label,disabled:t.disabled??t.loading,className:(0,l.cn)("flex h-10 items-center gap-2.5 rounded-full px-4","bg-background text-foreground shadow-md","border-border border","hover:bg-accent hover:text-accent-foreground","disabled:pointer-events-none disabled:opacity-50","text-sm font-medium whitespace-nowrap",h?"translate-y-0 opacity-100":"pointer-events-none translate-y-0 opacity-0"),style:{transition:`opacity ${h?250:120}ms ease-out ${h?n:0}ms, transform ${h?250:120}ms ease-out ${h?n:0}ms`},onClick:()=>{t.onClick(),p(!1)},children:[(0,a.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:t.loading?(0,a.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):t.icon}),(0,a.jsx)("span",{children:t.label})]},t.id)})}),(0,a.jsxs)(c.Button,{size:"icon","data-testid":"fab-trigger","aria-label":u(h?"fab.closeActions":"fab.createNew"),className:(0,l.cn)("relative h-14 w-14 rounded-full shadow-lg","bg-indigo-500 text-white hover:bg-indigo-400 dark:bg-indigo-500 dark:hover:bg-indigo-400","transition-all duration-200 hover:scale-105 hover:shadow-xl active:scale-95"),onClick:()=>p(e=>!e),children:[(0,a.jsx)(n.Plus,{className:(0,l.cn)("absolute h-7 w-7 stroke-[2.5] transition-all",h?"scale-0 rotate-90 opacity-0":"scale-100 rotate-0 opacity-100"),style:{transitionDuration:"250ms"}}),(0,a.jsx)(i.X,{className:(0,l.cn)("absolute h-6 w-6 stroke-[2.5] transition-all",h?"scale-100 rotate-0 opacity-100":"scale-0 -rotate-90 opacity-0"),style:{transitionDuration:"250ms"}})]})]})]})}e.s(["FloatingActionButton",()=>d],371127),e.s([],744263);var u=e.i(602287),h=e.i(698127),p=e.i(508893);let m=(0,p.createServerReference)("4037afd36a0e4d96004d619099ae3c4ed0437cb245",p.callServer,void 0,p.findSourceMapURL,"createProjectFolder");function x({open:e,onOpenChange:t,onCreated:n}){let[i,o]=(0,r.useState)(""),[l,d]=(0,r.useState)(!1),[p,x]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(o(""),d(!1),x(null))},[e]);let f=async e=>{e.preventDefault();let a=i.trim();if(!a||l)return;d(!0),x(null);let r=await m(a);if(!r.ok||!r.path){x(r.error??"Failed to create project."),d(!1);return}n(r.path),t(!1)};return(0,a.jsx)(u.Dialog,{open:e,onOpenChange:t,children:(0,a.jsx)(u.DialogContent,{className:"max-w-sm",children:(0,a.jsxs)("form",{onSubmit:f,children:[(0,a.jsxs)(u.DialogHeader,{children:[(0,a.jsx)(u.DialogTitle,{children:"New project"}),(0,a.jsx)(u.DialogDescription,{children:"Create an empty project folder inside your Shep home directory. Git will be initialised automatically when the project is added."})]}),(0,a.jsxs)("div",{className:"py-4",children:[(0,a.jsx)(h.Input,{autoFocus:!0,value:i,onChange:e=>{o(e.target.value),p&&x(null)},placeholder:"my-prototype",disabled:l,"data-testid":"new-project-name-input"}),p?(0,a.jsx)("p",{className:"text-destructive mt-2 text-xs",role:"alert",children:p}):null]}),(0,a.jsxs)(u.DialogFooter,{children:[(0,a.jsx)(c.Button,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:l,children:"Cancel"}),(0,a.jsx)(c.Button,{type:"submit",disabled:!i.trim()||l,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating…"]}):"Create project"})]})]})})})}e.s(["NewProjectDialog",()=>x],327810)},553124,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40fa8b8abaeee37ffabb840060521e189cf9ba2d0c",t.callServer,void 0,t.findSourceMapURL,"archiveFeature");e.s(["archiveFeature",()=>a])},256579,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40b8dc2eb040ff49e5ee86c1e81b4a821a06d6ffb6",t.callServer,void 0,t.findSourceMapURL,"unarchiveFeature");e.s(["unarchiveFeature",()=>a])},541568,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("785bad8c4de5480280884c0069132eab9b32df6064",t.callServer,void 0,t.findSourceMapURL,"deleteFeature");e.s(["deleteFeature",()=>a])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,951911,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(291967),n=e.i(205978),s=e.i(922528),i=e.i(936589),o=e.i(23405),l=e.i(277624),c=e.i(287620),d="Switch",[u,h]=(0,s.createContextScope)(d),[p,m]=u(d),x=a.forwardRef((e,s)=>{let{__scopeSwitch:o,name:l,checked:u,defaultChecked:h,required:m,disabled:x,value:f="on",onCheckedChange:b,form:y,...j}=e,[k,w]=a.useState(null),N=(0,n.useComposedRefs)(s,e=>w(e)),C=a.useRef(!1),S=!k||y||!!k.closest("form"),[D,F]=(0,i.useControllableState)({prop:u,defaultProp:h??!1,onChange:b,caller:d});return(0,t.jsxs)(p,{scope:o,checked:D,disabled:x,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":D,"aria-required":m,"data-state":v(D),"data-disabled":x?"":void 0,disabled:x,value:f,...j,ref:N,onClick:(0,r.composeEventHandlers)(e.onClick,e=>{F(e=>!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,t.jsx)(g,{control:k,bubbles:!C.current,name:l,value:f,checked:D,required:m,disabled:x,form:y,style:{transform:"translateX(-100%)"}})]})});x.displayName=d;var f="SwitchThumb",b=a.forwardRef((e,a)=>{let{__scopeSwitch:r,...n}=e,s=m(f,r);return(0,t.jsx)(c.Primitive.span,{"data-state":v(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a})});b.displayName=f;var g=a.forwardRef(({__scopeSwitch:e,control:r,checked:s,bubbles:i=!0,...c},d)=>{let u=a.useRef(null),h=(0,n.useComposedRefs)(u,d),p=(0,o.usePrevious)(s),m=(0,l.useSize)(r);return a.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==s&&t){let a=new Event("click",{bubbles:i});t.call(e,s),e.dispatchEvent(a)}},[p,s,i]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...c,tabIndex:-1,ref:h,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function v(e){return e?"checked":"unchecked"}g.displayName="SwitchBubbleInput",e.s(["Root",()=>x,"Switch",()=>x,"SwitchThumb",()=>b,"Thumb",()=>b,"createSwitchScope",()=>h],595291);var y=e.i(595291),y=y,j=e.i(131777);function k({className:e,size:a="default",...r}){return(0,t.jsx)(y.Root,{"data-slot":"switch","data-size":a,className:(0,j.cn)("peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...r,children:(0,t.jsx)(y.Thumb,{"data-slot":"switch-thumb",className:(0,j.cn)("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")})})}e.s(["Switch",()=>k],951911)},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)},197667,e=>{"use strict";var t=e.i(301012);e.s(["CheckIcon",()=>t.default])},216868,442076,e=>{"use strict";var t=e.i(943698);async function a(){let e=await fetch("/api/dialog/pick-files",{method:"POST"});if(!e.ok)throw Error("Failed to open file dialog");let t=await e.json();return t.cancelled?null:t.files}e.s(["PaperclipIcon",()=>t.default],216868),e.s(["pickFiles",()=>a],442076)},983299,474363,765104,e=>{"use strict";let t=(0,e.i(903645).default)("archive-restore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);e.s(["ArchiveRestore",()=>t],983299);var a=e.i(679606),r=e.i(152155),n=e.i(83428);e.i(541001);var s=e.i(626960),i=e.i(64780),o=e.i(271326),l=e.i(197667),c=e.i(961569),c=c,d=e.i(205978),u=e.i(922528),h=e.i(291967),p=e.i(936589),m=e.i(23405),x=e.i(277624),f=e.i(685995),b=e.i(287620),g="Checkbox",[v,y]=(0,u.createContextScope)(g),[j,k]=v(g);function w(e){let{__scopeCheckbox:t,checked:n,children:s,defaultChecked:i,disabled:o,form:l,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[x,f]=(0,p.useControllableState)({prop:n,defaultProp:i??!1,onChange:d,caller:g}),[b,v]=r.useState(null),[y,k]=r.useState(null),w=r.useRef(!1),N=!b||!!l||!!b.closest("form"),C={checked:x,disabled:o,setChecked:f,control:b,setControl:v,name:c,form:l,value:h,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:!P(i)&&i,isFormControl:N,bubbleInput:y,setBubbleInput:k};return(0,a.jsx)(j,{scope:t,...C,children:"function"==typeof m?m(C):s})}var N="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},i)=>{let{control:o,value:l,disabled:c,checked:u,required:p,setControl:m,setChecked:x,hasConsumerStoppedPropagationRef:f,isFormControl:g,bubbleInput:v}=k(N,e),y=(0,d.useComposedRefs)(i,m),j=r.useRef(u);return r.useEffect(()=>{let e=o?.form;if(e){let t=()=>x(j.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,x]),(0,a.jsx)(b.Primitive.button,{type:"button",role:"checkbox","aria-checked":P(u)?"mixed":u,"aria-required":p,"data-state":A(u),"data-disabled":c?"":void 0,disabled:c,value:l,...s,ref:y,onKeyDown:(0,h.composeEventHandlers)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,h.composeEventHandlers)(n,e=>{x(e=>!!P(e)||!e),v&&g&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});C.displayName=N;var S=r.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:d,form:u,...h}=e;return(0,a.jsx)(w,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:d,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C,{...h,ref:t,__scopeCheckbox:r}),e&&(0,a.jsx)(E,{__scopeCheckbox:r})]})})});S.displayName=g;var D="CheckboxIndicator",F=r.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...s}=e,i=k(D,r);return(0,a.jsx)(f.Presence,{present:n||P(i.checked)||!0===i.checked,children:(0,a.jsx)(b.Primitive.span,{"data-state":A(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});F.displayName=D;var R="CheckboxBubbleInput",E=r.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:s,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:l,required:c,disabled:u,name:h,value:p,form:f,bubbleInput:g,setBubbleInput:v}=k(R,e),y=(0,d.useComposedRefs)(n,v),j=(0,m.usePrevious)(o),w=(0,x.useSize)(s);r.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!i.current;if(j!==o&&e){let a=new Event("click",{bubbles:t});g.indeterminate=P(o),e.call(g,!P(o)&&o),g.dispatchEvent(a)}},[g,j,o,i]);let N=r.useRef(!P(o)&&o);return(0,a.jsx)(b.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??N.current,required:c,disabled:u,name:h,value:p,form:f,...t,tabIndex:-1,ref:y,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function P(e){return"indeterminate"===e}function A(e){return P(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=R,e.s(["Checkbox",()=>S,"CheckboxIndicator",()=>F,"Indicator",()=>F,"Root",()=>S,"createCheckboxScope",()=>y,"unstable_BubbleInput",()=>E,"unstable_CheckboxBubbleInput",()=>E,"unstable_CheckboxProvider",()=>w,"unstable_CheckboxTrigger",()=>C,"unstable_Provider",()=>w,"unstable_Trigger",()=>C],257696);var M=e.i(257696),M=M,z=e.i(131777);function L({className:e,...t}){return(0,a.jsx)(M.Root,{"data-slot":"checkbox",className:(0,z.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 cursor-pointer rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,a.jsx)(M.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:"indeterminate"===t.checked?(0,a.jsx)(c.default,{className:"size-3.5"}):(0,a.jsx)(l.CheckIcon,{className:"size-3.5"})})})}e.s(["Checkbox",()=>L],474363);var T=e.i(141957);function _({open:e,onOpenChange:t,onConfirm:l,isDeleting:c,featureName:d,featureId:u,hasChildren:h,hasOpenPr:p}){let{t:m}=(0,i.useTranslation)("web"),[x,f]=(0,r.useState)(!0),[b,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{e&&(f(!0),g(!1),y(!0))},[e]),(0,r.useEffect)(()=>{x?y(!0):y(!1)},[x]),(0,a.jsx)(o.AlertDialog,{open:e,onOpenChange:t,children:(0,a.jsxs)(o.AlertDialogContent,{onCloseAutoFocus:e=>e.preventDefault(),children:[(0,a.jsxs)(o.AlertDialogHeader,{children:[(0,a.jsx)(o.AlertDialogTitle,{children:m("deleteFeature.title")}),(0,a.jsx)(o.AlertDialogDescription,{children:(0,a.jsx)(s.Trans,{t:m,i18nKey:"deleteFeature.description",values:{featureName:d,featureId:u},components:{strong:(0,a.jsx)("strong",{})}})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"cleanup-checkbox",checked:x,onCheckedChange:e=>f(!0===e),disabled:c,"aria-label":m("deleteFeature.cleanupLabel")}),(0,a.jsx)(T.Label,{htmlFor:"cleanup-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.cleanupLabel")})]}),h?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"cascade-delete-checkbox",checked:b,onCheckedChange:e=>g(!0===e),disabled:c,"aria-label":m("deleteFeature.deleteSubFeatures")}),(0,a.jsx)(T.Label,{htmlFor:"cascade-delete-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.deleteSubFeatures")})]}):null,p?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L,{id:"close-pr-checkbox",checked:v,onCheckedChange:e=>y(!0===e),disabled:c||!x,"aria-label":m("deleteFeature.closePullRequest")}),(0,a.jsx)(T.Label,{htmlFor:"close-pr-checkbox",className:"cursor-pointer text-sm",children:m("deleteFeature.closePullRequest")})]}):null]}),(0,a.jsxs)(o.AlertDialogFooter,{children:[(0,a.jsx)(o.AlertDialogCancel,{disabled:c,onClick:()=>t(!1),children:m("deleteFeature.cancel")}),(0,a.jsx)(o.AlertDialogAction,{variant:"destructive",disabled:c,onClick:()=>l(x,b,!!p&&v),children:c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Loader2,{className:"me-2 h-4 w-4 animate-spin"}),m("deleteFeature.deleting")]}):m("deleteFeature.delete")})]})]})})}e.s(["DeleteFeatureDialog",()=>_],765104)},146481,489677,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("406c150c89af08f40e35c6cf2e5c389d43edfd9dbc",t.callServer,void 0,t.findSourceMapURL,"startFeature");e.s(["startFeature",()=>a],146481);let r=(0,t.createServerReference)("40665947062b5d4df71f7002982b67b95738045c72",t.callServer,void 0,t.findSourceMapURL,"stopFeature");e.s(["stopFeature",()=>r],489677)},419843,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40b566eb49b2224b56705992624415e9e53c3d3904",t.callServer,void 0,t.findSourceMapURL,"resumeFeature");e.s(["resumeFeature",()=>a])},454793,207729,e=>{"use strict";var t=e.i(679606),a=e.i(131777);function r({icon:e,title:r,description:n,action:s,className:i,...o}){return(0,t.jsxs)("div",{className:(0,a.cn)("flex flex-col items-center gap-4 px-4 py-12 text-center",i),...o,children:[e?(0,t.jsx)("div",{className:"text-muted-foreground",children:e}):null,(0,t.jsx)("h3",{className:"text-lg font-semibold",children:r}),n?(0,t.jsx)("p",{className:"text-muted-foreground max-w-md text-sm",children:n}):null,s?(0,t.jsx)("div",{className:"mt-2",children:s}):null]})}e.s(["EmptyState",()=>r],207729),e.s([],454793)},809443,185871,e=>{"use strict";var t=e.i(679606),a=e.i(131777);function r({title:e,description:r,children:n,className:s}){return(0,t.jsxs)("header",{className:(0,a.cn)("flex items-center justify-between gap-4",s),children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:e}),r?(0,t.jsx)("p",{className:"text-muted-foreground",children:r}):null]}),n?(0,t.jsx)("div",{"data-slot":"actions",children:n}):null]})}e.s(["PageHeader",()=>r],185871),e.s([],809443)},440106,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(711719),n=e.i(935946),s=e.i(83428),i=e.i(542049),o=e.i(453360),l=e.i(941698),c=e.i(99105),d=e.i(723925),u=e.i(860253);e.i(541001);var h=e.i(64780),p=e.i(131777),m=e.i(508893);let x=(0,m.createServerReference)("40ed367dc55e430a53091232a4574b78b5e2323be9",m.callServer,void 0,m.findSourceMapURL,"createProjectAndFeature"),f=(0,m.createServerReference)("405a4c9344642c0f00ef5aa0c297812475e1f732d0",m.callServer,void 0,m.findSourceMapURL,"createApplication");var b=e.i(41413);e.i(650032);var g=e.i(486254);e.i(692233);var v=e.i(210025),y=e.i(102828),j=e.i(470646),k=e.i(731151);let w=["application","fast","spec"],N={application:{icon:i.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:o.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:l.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:i,onClose:o,className:l}){let{t:m}=(0,h.useTranslation)("web"),[C,S]=(0,a.useState)(""),[D,F]=(0,a.useState)(void 0),[R,E]=(0,a.useState)(void 0),[P,A]=(0,a.useState)("application"),[M,z]=(0,a.useState)(!1),[L,T]=(0,a.useState)(null),[_,I]=(0,a.useState)(!1),O=(0,a.useRef)(null),B=(0,k.useAttachments)(),H=!!e,U=H?P:"application",q=(0,a.useCallback)(()=>{A(e=>{let t=w.indexOf(e);return w[(t+1)%w.length]})},[]);(0,a.useEffect)(()=>{let t=t=>{"Escape"===t.key&&o&&o(),"Tab"===t.key&&t.shiftKey&&e&&(t.preventDefault(),q())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[o,q,e]);let $=(0,a.useCallback)(async()=>{if(C.trim()&&!M){z(!0),T(null);try{if("application"!==U&&e){let t=await x({description:C.trim(),attachments:B.completedAttachments.map(e=>({path:e.path,name:e.name,notes:e.notes})),agentType:D,model:R,fast:"fast"===U});if(t.error){T(t.error),z(!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 f({description:C.trim(),agentType:D,modelOverride:R,initialPrompt:C.trim()});if(e.error){T(e.error),z(!1);return}e.application&&i?.(e.application.id)}}catch{T("Something went wrong. Please try again."),z(!1)}}},[C,M,U,B.completedAttachments,D,R,e,i]),K=(0,a.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),$())},[$]),X=(0,a.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 a=await t.json();B.addAttachment(a)}}catch{}},[B.addAttachment]),Z=(0,a.useCallback)(e=>{S(e),O.current?.focus()},[]),G=N[U],V=G.icon;return(0,t.jsxs)("div",{"data-testid":"control-center-empty-state",className:(0,p.cn)("relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-8",l),children:[(0,t.jsx)("div",{className:"onboard-bg pointer-events-none absolute inset-0 animate-[onboard-fade-in_1.2s_ease-out_both]"}),o?(0,t.jsx)("button",{type:"button",onClick:o,"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)(u.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:()=>I(!0),onBlur:()=>I(!1),onDragEnter:B.handleDragEnter,onDragLeave:B.handleDragLeave,onDragOver:B.handleDragOver,onDrop:B.handleDrop,className:(0,p.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]",_&&"ring-ring/50 border-ring shadow-md ring-[3px] dark:border-orange-500/40 dark:ring-orange-500/25",B.isDragOver&&"border-primary/50 bg-primary/5",M&&"opacity-70"),children:[(0,t.jsx)("textarea",{ref:O,rows:2,autoFocus:!0,value:C,onChange:e=>S(e.target.value),onKeyDown:K,onPaste:B.handlePaste,placeholder:G.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"}),B.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:B.attachments.map(e=>(0,t.jsx)(g.AttachmentChip,{name:e.name,size:e.size,mimeType:e.mimeType,path:e.path,onRemove:()=>B.removeAttachment(e.id),loading:e.loading,notes:e.notes,onNotesChange:t=>B.updateNotes(e.id,t)},e.id))}):null,B.uploadError?(0,t.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",children:B.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)(b.AgentModelPicker,{initialAgentType:D??"claude-code",initialModel:R??"claude-sonnet-4-6",mode:"override",showInstallStatus:!0,onAgentModelChange:(e,t)=>{F(e),E(t)},className:"w-55"}),(0,t.jsx)("div",{className:"flex-1"}),H?(0,t.jsxs)(j.DropdownMenu,{children:[(0,t.jsx)(j.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)(V,{className:"h-3.5 w-3.5"}),G.label]},U),(0,t.jsx)(c.ChevronDown,{className:"h-3 w-3 opacity-50"})]})}),(0,t.jsx)(j.DropdownMenuContent,{align:"end",className:"min-w-[160px]",children:w.map(e=>{let a=N[e],r=a.icon,n=U===e;return(0,t.jsxs)(j.DropdownMenuItem,{onClick:()=>A(e),"data-testid":`build-mode-${e}`,className:"flex items-center gap-2",children:[(0,t.jsx)(r,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"flex-1",children:a.label}),n?(0,t.jsx)(d.Check,{className:"text-foreground h-3.5 w-3.5"}):null]},e)})})]}):null,(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:X,disabled:M,"aria-label":m("chat.attachFiles"),className:"text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors disabled:opacity-50",children:(0,t.jsx)(n.Paperclip,{className:"h-4 w-4"})})}),(0,t.jsx)(y.TooltipContent,{side:"top",children:m("chat.attachFiles")})]}),(0,t.jsx)("button",{type:"button",onClick:$,disabled:!C.trim()||M,className:(0,p.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)(s.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(r.SendHorizontal,{className:"h-3.5 w-3.5"})})]})]}),L?(0,t.jsx)("p",{className:"text-destructive mt-2 text-center text-sm",children:L}):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:G.suggestions.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>Z(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))},U)]})]})}e.s(["ControlCenterEmptyState",()=>C],440106)},998798,e=>{"use strict";let t=(0,e.i(903645).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],998798)},13322,961201,e=>{"use strict";var t=e.i(679606),a=e.i(152155),r=e.i(276016);let n=(0,e.i(903645).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var s=e.i(619933),i=e.i(83428),o=e.i(998798),l=e.i(360112),c=e.i(602287),d=e.i(735364),u=e.i(835340);async function h(e){let t=new URLSearchParams;e&&t.set("path",e);let a=await fetch(`/api/directory/list?${t.toString()}`);if(!a.ok)throw Error((await a.json().catch(()=>({error:"Failed to load directory"}))).error??"Failed to load directory");return a.json()}function p({currentPath:e,isEditing:n,onToggleEdit:s,onNavigate:i}){let l=(0,a.useRef)(null),[c,d]=(0,a.useState)(e);function u(){d(e),s()}(0,a.useEffect)(()=>{d(e)},[e]),(0,a.useEffect)(()=>{n&&l.current&&(l.current.focus(),l.current.select())},[n]);let h=function(e){if(!e)return[];let t=/^[a-zA-Z]:/.test(e),a=t?"\\":"/",r=e.split(/[\\/]/).filter(Boolean),n=[];for(let e=0;e<r.length;e++){let s=t?r.slice(0,e+1).join(a):a+r.slice(0,e+1).join(a);n.push({label:r[e],path:s})}return n}(e),p=h.length>3,m=p?h.slice(-3):h;return(0,t.jsxs)("div",{className:"border-b px-4 py-3",children:[(0,t.jsx)("h2",{className:"text-foreground mb-2.5 text-sm font-semibold tracking-[-0.01em]",children:"Select Folder"}),n?(0,t.jsx)("input",{ref:l,type:"text",value:c,onChange:e=>d(e.target.value),onKeyDown:e=>{if("Enter"===e.key){let t;e.preventDefault(),(t=c.trim())&&i(t)}"Escape"===e.key&&(e.preventDefault(),u())},onBlur:u,className:"bg-muted/60 border-border focus:ring-ring/20 focus:border-ring w-full rounded-lg border px-3 py-2 font-mono text-xs transition-all outline-none focus:ring-2",placeholder:"Type a path and press Enter...",spellCheck:!1,autoComplete:"off"}):(0,t.jsxs)("div",{className:"bg-muted/40 flex items-center gap-1 rounded-lg px-2.5 py-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i("/"),className:"text-muted-foreground hover:text-foreground hover:bg-background shrink-0 rounded px-1.5 py-0.5 font-mono text-xs transition-colors",children:"/"}),p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/30 h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"text-muted-foreground/40 font-mono text-xs",children:"..."})]}):null,m.map((e,a)=>{let n=a===m.length-1;return(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/30 h-3 w-3"}),n?(0,t.jsx)("span",{className:"bg-primary/10 text-primary rounded px-2 py-0.5 font-mono text-xs font-medium",children:e.label}):(0,t.jsx)("button",{type:"button",onClick:()=>i(e.path),className:"text-muted-foreground hover:text-foreground hover:bg-background rounded px-1.5 py-0.5 font-mono text-xs transition-colors",children:e.label})]},e.path)}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("button",{type:"button",onClick:s,className:"text-muted-foreground/40 hover:text-foreground hover:bg-background shrink-0 rounded p-1 transition-colors","aria-label":"Edit path",children:(0,t.jsx)(o.Pencil,{className:"h-3 w-3"})})]})]})}function m({open:e,onOpenChange:o,onSelect:m,initialPath:x}){let[f,b]=(0,a.useState)([]),[g,v]=(0,a.useState)(""),[y,j]=(0,a.useState)(!1),[k,w]=(0,a.useState)(!1),N=(0,a.useRef)(!1),[C,S]=(0,a.useState)(0),D=(0,a.useCallback)(async e=>{j(!0),w(!1);try{let t=await h(e);b(t.entries),v(t.currentPath),S(e=>e+1)}catch(t){let e=t instanceof Error?t.message:"Failed to load directory";l.toast.error(e)}finally{j(!1)}},[]);function F(e){D(e)}function R(){m(null),o(!1)}return(0,a.useEffect)(()=>{e&&!N.current&&(N.current=!0,D(x)),e||(N.current=!1,w(!1))},[e,x,D]),(0,t.jsx)(c.Dialog,{open:e,onOpenChange:e=>{e||R()},children:(0,t.jsxs)(c.DialogContent,{className:"flex h-[min(520px,85dvh)] w-full max-w-[460px] flex-col gap-0 overflow-hidden p-0",onCloseAutoFocus:e=>e.preventDefault(),children:[(0,t.jsx)(c.DialogTitle,{className:"sr-only",children:"Select Folder"}),(0,t.jsx)(c.DialogDescription,{className:"sr-only",children:"Navigate to a folder and select it"}),(0,t.jsx)(p,{currentPath:g,isEditing:k,onToggleEdit:()=>w(e=>!e),onNavigate:F}),(0,t.jsx)(u.ScrollArea,{className:"min-h-0 flex-1",children:y&&0===f.length?(0,t.jsx)("div",{className:"space-y-0.5 p-2",children:Array.from({length:8}).map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{opacity:1-.1*a},children:[(0,t.jsx)("div",{className:"bg-muted h-4 w-4 animate-pulse rounded"}),(0,t.jsx)("div",{className:"bg-muted h-3.5 animate-pulse rounded",style:{width:`${40+35*Math.random()}%`}})]},`skeleton-${a}`))}):0===f.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20",children:[(0,t.jsx)(s.FolderOpen,{className:"text-muted-foreground/25 mb-3 h-10 w-10"}),(0,t.jsx)("p",{className:"text-muted-foreground/60 text-sm",children:"Empty folder"})]}):(0,t.jsx)("div",{className:"p-2",children:f.map((e,a)=>(0,t.jsxs)("button",{type:"button",onClick:()=>F(e.path),className:"folder-row group flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-all hover:bg-[var(--color-primary)]/[0.06] active:scale-[0.997]",style:{animationDelay:`${20*a}ms`},children:[(0,t.jsx)(n,{className:"text-muted-foreground/50 group-hover:text-primary h-[18px] w-[18px] shrink-0 transition-colors"}),(0,t.jsx)("span",{className:"text-foreground min-w-0 flex-1 truncate text-[13px] font-medium",children:e.name}),(0,t.jsx)(r.ChevronRight,{className:"text-muted-foreground/0 group-hover:text-muted-foreground/40 h-3.5 w-3.5 shrink-0 transition-all"})]},e.path))},C)}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-t px-4 py-3",children:[(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 flex-1 truncate font-mono text-[11px] leading-none",children:g||" "}),(0,t.jsx)(d.Button,{variant:"ghost",size:"sm",onClick:R,className:"text-muted-foreground h-8 shrink-0 px-3 text-xs",children:"Cancel"}),(0,t.jsxs)(d.Button,{size:"sm",onClick:function(){g&&(m(g),o(!1))},disabled:!g||y,className:"h-8 shrink-0 px-5 text-xs font-medium",children:[y?(0,t.jsx)(i.Loader2,{className:"mr-1.5 h-3 w-3 animate-spin"}):null,"Select"]})]})]})})}e.s(["ReactFileManagerDialog",()=>m],961201),e.s([],13322)},591925,e=>{"use strict";let t=(0,e.i(903645).default)("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["FolderPlus",()=>t],591925)},603691,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("406f241f9194f4d06274607a8fa6fb3d98c2d169b9",t.callServer,void 0,t.findSourceMapURL,"addRepository");e.s(["addRepository",()=>a])},713005,371127,744263,327810,e=>{"use strict";let t=(0,e.i(903645).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",()=>t],713005);var a=e.i(679606),r=e.i(152155),n=e.i(3214),s=e.i(83428),i=e.i(860253);e.i(541001);var o=e.i(64780),l=e.i(131777),c=e.i(735364);function d({actions:e,className:t,style:d}){let{t:u}=(0,o.useTranslation)("web"),[h,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(h)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&p(!1)}},[h]),(0,a.jsxs)(a.Fragment,{children:[h?(0,a.jsx)("div",{"data-testid":"fab-overlay",className:"fixed inset-0 z-40",onClick:()=>p(!1),"aria-hidden":"true"}):null,(0,a.jsxs)("div",{"data-testid":"floating-action-button",className:(0,l.cn)("relative z-50",t),style:d,children:[(0,a.jsx)("div",{className:(0,l.cn)("absolute start-0 bottom-[calc(100%+24px)] flex flex-col items-start gap-2",!h&&"pointer-events-none"),"data-testid":"fab-actions",children:e.map((t,r)=>{let n=(e.length-1-r)*50;return(0,a.jsxs)("button",{"data-testid":`fab-action-${t.id}`,"aria-label":t.label,disabled:t.disabled??t.loading,className:(0,l.cn)("flex h-10 items-center gap-2.5 rounded-full px-4","bg-background text-foreground shadow-md","border-border border","hover:bg-accent hover:text-accent-foreground","disabled:pointer-events-none disabled:opacity-50","text-sm font-medium whitespace-nowrap",h?"translate-y-0 opacity-100":"pointer-events-none translate-y-0 opacity-0"),style:{transition:`opacity ${h?250:120}ms ease-out ${h?n:0}ms, transform ${h?250:120}ms ease-out ${h?n:0}ms`},onClick:()=>{t.onClick(),p(!1)},children:[(0,a.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:t.loading?(0,a.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):t.icon}),(0,a.jsx)("span",{children:t.label})]},t.id)})}),(0,a.jsxs)(c.Button,{size:"icon","data-testid":"fab-trigger","aria-label":u(h?"fab.closeActions":"fab.createNew"),className:(0,l.cn)("relative h-14 w-14 rounded-full shadow-lg","bg-indigo-500 text-white hover:bg-indigo-400 dark:bg-indigo-500 dark:hover:bg-indigo-400","transition-all duration-200 hover:scale-105 hover:shadow-xl active:scale-95"),onClick:()=>p(e=>!e),children:[(0,a.jsx)(n.Plus,{className:(0,l.cn)("absolute h-7 w-7 stroke-[2.5] transition-all",h?"scale-0 rotate-90 opacity-0":"scale-100 rotate-0 opacity-100"),style:{transitionDuration:"250ms"}}),(0,a.jsx)(i.X,{className:(0,l.cn)("absolute h-6 w-6 stroke-[2.5] transition-all",h?"scale-100 rotate-0 opacity-100":"scale-0 -rotate-90 opacity-0"),style:{transitionDuration:"250ms"}})]})]})]})}e.s(["FloatingActionButton",()=>d],371127),e.s([],744263);var u=e.i(602287),h=e.i(698127),p=e.i(508893);let m=(0,p.createServerReference)("40acee3773e6e6a2c581ce9edeac077f0135086848",p.callServer,void 0,p.findSourceMapURL,"createProjectFolder");function x({open:e,onOpenChange:t,onCreated:n}){let[i,o]=(0,r.useState)(""),[l,d]=(0,r.useState)(!1),[p,x]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(o(""),d(!1),x(null))},[e]);let f=async e=>{e.preventDefault();let a=i.trim();if(!a||l)return;d(!0),x(null);let r=await m(a);if(!r.ok||!r.path){x(r.error??"Failed to create project."),d(!1);return}n(r.path),t(!1)};return(0,a.jsx)(u.Dialog,{open:e,onOpenChange:t,children:(0,a.jsx)(u.DialogContent,{className:"max-w-sm",children:(0,a.jsxs)("form",{onSubmit:f,children:[(0,a.jsxs)(u.DialogHeader,{children:[(0,a.jsx)(u.DialogTitle,{children:"New project"}),(0,a.jsx)(u.DialogDescription,{children:"Create an empty project folder inside your Shep home directory. Git will be initialised automatically when the project is added."})]}),(0,a.jsxs)("div",{className:"py-4",children:[(0,a.jsx)(h.Input,{autoFocus:!0,value:i,onChange:e=>{o(e.target.value),p&&x(null)},placeholder:"my-prototype",disabled:l,"data-testid":"new-project-name-input"}),p?(0,a.jsx)("p",{className:"text-destructive mt-2 text-xs",role:"alert",children:p}):null]}),(0,a.jsxs)(u.DialogFooter,{children:[(0,a.jsx)(c.Button,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:l,children:"Cancel"}),(0,a.jsx)(c.Button,{type:"submit",disabled:!i.trim()||l,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating…"]}):"Create project"})]})]})})})}e.s(["NewProjectDialog",()=>x],327810)},655226,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("40fcdce16b3f745cf6fb922e73d96ee1dd1aa62108",t.callServer,void 0,t.findSourceMapURL,"archiveFeature");e.s(["archiveFeature",()=>a])},156346,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("402abe0e21e119df44d8fa3eb4808cfc49d2cf41c4",t.callServer,void 0,t.findSourceMapURL,"unarchiveFeature");e.s(["unarchiveFeature",()=>a])},639828,e=>{"use strict";var t=e.i(508893);let a=(0,t.createServerReference)("785c746aba6c5ee7ed83dbddd2f917125f685bba11",t.callServer,void 0,t.findSourceMapURL,"deleteFeature");e.s(["deleteFeature",()=>a])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},48829,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",()=>t],48829)},670471,e=>{"use strict";var t=e.i(16298);e.s(["FileText",()=>t.default])},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)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},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)},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 a=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 l(){let[e,t]=(0,r.useState)([]),[l,s]=(0,r.useState)(null),[i,n]=(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(s(null),e)){if(t.size>0xa00000)return void s(`"${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&&!a.has(e))return void s(`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 a=new FormData;a.append("file",r),a.append("sessionId",u.current);let l=await fetch("/api/attachments/upload",{method:"POST",body:a});if(!l.ok){let r=await l.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),s(r.error??"Upload failed");return}let i=await l.json();t(t=>t.some(t=>t.id!==e&&t.path===i.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...i,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),s("Upload failed")}}},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&n(!0)},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&n(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,n(!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}])},[]),k=(0,r.useCallback)(()=>{t([]),s(null)},[]),b=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:b,uploadError:l,isDragOver:i,handleFiles:c,handleDragEnter:d,handleDragLeave:f,handleDragOver:p,handleDrop:h,handlePaste:y,addAttachment:g,removeAttachment:v,updateNotes:m,clearAttachments:k}}e.s(["useAttachments",()=>l],731151)},237260,651188,976270,e=>{"use strict";let t=(0,e.i(903645).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",()=>t],237260);var r=e.i(508893);let a=(0,r.createServerReference)("402eaf2dfc159de004ecf396d636141c8de28eb5e9",r.callServer,void 0,r.findSourceMapURL,"openIde");e.s(["openIde",()=>a],651188);let l=(0,r.createServerReference)("40c2b6290934f3abd131684546a21b3ec963786f44",r.callServer,void 0,r.findSourceMapURL,"openShell");e.s(["openShell",()=>l],976270)},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},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,860493,202824,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(317406),l=e.i(508893);let s=(0,l.createServerReference)("40c4a6aecf45d4f3bcee9f0abca065bb2204369961",l.callServer,void 0,l.findSourceMapURL,"deployFeature"),i=(0,l.createServerReference)("40480b2914f085773198eda76564879e2a82bf9abf",l.callServer,void 0,l.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>i],860493);let n=(0,l.createServerReference)("40b269b73a63cba8a12cdea3206c88dd77d1a720c5",l.callServer,void 0,l.findSourceMapURL,"deployApplication"),o=(0,l.createServerReference)("40f6a442e6dcb385edbe497760723810a4d3b6cd78",l.callServer,void 0,l.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],202824);let u=(0,l.createServerReference)("405bb37393c554d70ce53e367e581f340c25f403c3",l.callServer,void 0,l.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let d={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{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)??d}update(e,t){let r={...this.entries.get(e)??d,...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",()=>f,"EMPTY_ENTRY",0,d],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),h=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:l}){let c=(0,r.useRef)(null);c.current||(c.current=new f,c.current.hydrate(e));let d=c.current;(0,r.useEffect)(()=>{d.hydrate(e)},[e,d]);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),d.setStatus(e,null),m(e);return}if(!t||t.state===a.DeploymentState.Stopped){d.setStatus(e,null),m(e);return}d.setStatus(e,t)},3e3);v.current.set(e,t)},[d,m]);(0,r.useEffect)(()=>{let e=v.current,t=d.subscribeAll(()=>{for(let[t]of e){let e=d.getEntry(t);e.status&&h.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[d,m]);let k=(0,r.useCallback)(e=>{if(e&&!d.getEntry(e).hydrated){if(d.isFullyHydrated())return void d.update(e,{hydrated:!0});d.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);d.setStatus(e,t),t&&h.has(t.state)&&g(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[d,g]),b=(0,r.useCallback)(async e=>{d.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await s(e.targetId):"application"===e.targetType?await n(e.targetId):await i(e.repositoryPath);if(!t.success)return void d.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});d.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";d.update(e.targetId,{deployLoading:!1,deployError:t})}},[d,g]),S=(0,r.useCallback)(async e=>{if(e){d.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),d.update(e,{stopLoading:!1,status:null,url:null})):d.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),d.update(e,{stopLoading:!1})}}},[d,m]),w=(0,r.useMemo)(()=>({store:d,deploy:b,stop:S,ensureHydrated:k}),[d,b,S,k]);return(0,t.jsx)(y.Provider,{value:w,children:l})}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||k}let k={store:new f,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 a(){}function l(e){let{store:l,deploy:s,stop:i,ensureHydrated:n}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?l.subscribe(o,e):a,[l,o]),c=(0,t.useCallback)(()=>o?l.getEntry(o):l.getEntry(""),[l,o]),d=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&n(o)},[o,n]),{deploy:(0,t.useCallback)(async()=>{e&&await s(e)},[s,e]),stop:(0,t.useCallback)(async()=>{o&&await i(o)},[i,o]),deployLoading:d.deployLoading,stopLoading:d.stopLoading,deployError:d.deployError,status:d.status,url:d.url}}e.s(["useDeployAction",()=>l])},1650,e=>{"use strict";e.i(511495),e.s([])},208952,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("40953c2cf20f4bbd41d6a9487c7ef3e988462d2869",t.callServer,void 0,t.findSourceMapURL,"openFolder");e.s(["openFolder",()=>r])},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),a=e.i(205978),l=e.i(786874),s=e.i(679606);function i(e){let i=e+"CollectionProvider",[n,o]=(0,r.createContextScope)(i),[u,c]=n(i,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:a}=e,l=t.default.useRef(null),i=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:i,collectionRef:l,children:a})};d.displayName=i;let f=e+"CollectionSlot",p=(0,l.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:l}=e,i=c(f,r),n=(0,a.useComposedRefs)(t,i.collectionRef);return(0,s.jsx)(p,{ref:n,children:l})});h.displayName=f;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,l.createSlot)(y),g=t.default.forwardRef((e,r)=>{let{scope:l,children:i,...n}=e,o=t.default.useRef(null),u=(0,a.useComposedRefs)(r,o),d=c(y,l);return t.default.useEffect(()=>(d.itemMap.set(o,{ref:o,...n}),()=>void d.itemMap.delete(o))),(0,s.jsx)(m,{...{[v]:""},ref:u,children:i})});return g.displayName=y,[{Provider:d,Slot:h,ItemSlot:g},function(r){let a=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(a.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[a.collectionRef,a.itemMap])},o]}var n=new WeakMap;function o(e,t){var r,a;let l,s,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=(r=e,a=t,l=r.length,(i=(s=u(a))>=0?s:l+s)<0||i>=l?-1:i);return -1===n?void 0:e[n]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],n.set(this,!0)}set(e,t){return n.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let a,l=this.has(t),s=this.#e.length,i=u(e),n=i>=0?i:s+i,o=n<0||n>=s?-1:n;if(o===this.size||l&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!l;i<0&&n++;let d=[...this.#e],f=!1;for(let e=n;e<c;e++)if(n===e){let s=d[e];d[e]===t&&(s=d[e+1]),l&&this.delete(t),a=this.get(s),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],l=a;a=this.get(r),this.delete(r),this.set(r,l)}return this}with(t,r,a){let l=new e(this);return l.insert(t,r,a),l}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return a;r++}}findIndex(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return r;r++}return -1}filter(t,r){let a=[],l=0;for(let e of this)Reflect.apply(t,r,[e,l,this])&&a.push(e),l++;return new e(a)}map(t,r){let a=[],l=0;for(let e of this)a.push([e[0],Reflect.apply(t,r,[e,l,this])]),l++;return new e(a)}reduce(...e){let[t,r]=e,a=0,l=r??this.at(0);for(let r of this)l=0===a&&1===e.length?r:Reflect.apply(t,this,[l,r,a,this]),a++;return l}reduceRight(...e){let[t,r]=e,a=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let l=this.at(r);a=r===this.size-1&&1===e.length?l:Reflect.apply(t,this,[a,l,r,this])}return a}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),a=this.get(r);t.set(r,a)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let a=new e,l=this.size-1;if(void 0===t)return a;t<0&&(t+=this.size),void 0!==r&&r>0&&(l=r-1);for(let e=t;e<=l;e++){let t=this.keyAt(e),r=this.get(t);a.set(t,r)}return a}every(e,t){let r=0;for(let a of this){if(!Reflect.apply(e,t,[a,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>i])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),a=e.i(787342),l=e.i(205978),s=e.i(922528),i=e.i(713123),n=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),d=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,v,m]=(0,a.createCollection)(h),[g,k]=(0,s.createContextScope)(h,[m]),[b,S]=g(h),w=t.forwardRef((e,t)=>(0,d.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(x,{...e,ref:t})})}));w.displayName=h;var x=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,orientation:i,loop:y=!1,dir:m,currentTabStopId:g,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...R}=e,C=t.useRef(null),M=(0,l.useComposedRefs)(a,C),E=(0,c.useDirection)(m),[I,L]=(0,u.useControllableState)({prop:g,defaultProp:k??null,onChange:S,caller:h}),[D,z]=t.useState(!1),T=(0,o.useCallbackRef)(w),F=v(s),P=t.useRef(!1),[j,H]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,T),()=>e.removeEventListener(f,T)},[T]),(0,d.jsx)(b,{scope:s,orientation:i,dir:E,loop:y,currentTabStopId:I,onItemFocus:t.useCallback(e=>L(e),[L]),onItemShiftTab:t.useCallback(()=>z(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,d.jsx)(n.Primitive.div,{tabIndex:D||0===j?-1:0,"data-orientation":i,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),x)}}P.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>z(!1))})})}),R="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:l,focusable:s=!0,active:o=!1,tabStopId:u,children:c,...f}=e,p=(0,i.useId)(),h=u||p,m=S(R,l),g=m.currentTabStopId===h,k=v(l),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:x}=m;return t.useEffect(()=>{if(s)return b(),()=>w()},[s,b,w]),(0,d.jsx)(y.ItemSlot,{scope:l,id:h,focusable:s,active:o,children:(0,d.jsx)(n.Primitive.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(h)),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 a;let l=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(l))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(l)))return M[l]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let l=k().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)l.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&l.reverse();let s=l.indexOf(e.currentTarget);l=m.loop?(r=l,a=s+1,r.map((e,t)=>r[(a+t)%r.length])):l.slice(s+1)}setTimeout(()=>A(l))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=x}):c})})});C.displayName=R;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>w,"createRovingFocusGroupScope",()=>k])},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)},208986,e=>{"use strict";let t=(0,e.i(903645).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",()=>t],208986)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},48829,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",()=>t],48829)},670471,e=>{"use strict";var t=e.i(16298);e.s(["FileText",()=>t.default])},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)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},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)},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 a=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 l(){let[e,t]=(0,r.useState)([]),[l,s]=(0,r.useState)(null),[i,n]=(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(s(null),e)){if(t.size>0xa00000)return void s(`"${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&&!a.has(e))return void s(`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 a=new FormData;a.append("file",r),a.append("sessionId",u.current);let l=await fetch("/api/attachments/upload",{method:"POST",body:a});if(!l.ok){let r=await l.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),s(r.error??"Upload failed");return}let i=await l.json();t(t=>t.some(t=>t.id!==e&&t.path===i.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...i,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),s("Upload failed")}}},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&n(!0)},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&n(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,n(!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}])},[]),k=(0,r.useCallback)(()=>{t([]),s(null)},[]),b=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:b,uploadError:l,isDragOver:i,handleFiles:c,handleDragEnter:d,handleDragLeave:f,handleDragOver:p,handleDrop:h,handlePaste:y,addAttachment:g,removeAttachment:v,updateNotes:m,clearAttachments:k}}e.s(["useAttachments",()=>l],731151)},237260,781944,195020,e=>{"use strict";let t=(0,e.i(903645).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",()=>t],237260);var r=e.i(508893);let a=(0,r.createServerReference)("4041dd5dd767bfc104c81370139a23a6f51a98bb3e",r.callServer,void 0,r.findSourceMapURL,"openIde");e.s(["openIde",()=>a],781944);let l=(0,r.createServerReference)("4069100bbb6e4a56588c0609562404c60c59389735",r.callServer,void 0,r.findSourceMapURL,"openShell");e.s(["openShell",()=>l],195020)},949228,e=>{"use strict";let t=(0,e.i(903645).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",()=>t],949228)},338573,e=>{"use strict";let t=(0,e.i(903645).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],338573)},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,120716,464139,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(317406),l=e.i(508893);let s=(0,l.createServerReference)("40f07513aa1c0e813c802fc093ccedf3f983c32dce",l.callServer,void 0,l.findSourceMapURL,"deployFeature"),i=(0,l.createServerReference)("40168bcbd07a153b51a47e534636398af1478b3357",l.callServer,void 0,l.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>i],120716);let n=(0,l.createServerReference)("4092e06c387d5277093b0c3ab0d02c67d0634c3c36",l.callServer,void 0,l.findSourceMapURL,"deployApplication"),o=(0,l.createServerReference)("409823ed6e50482ab029132da1af3bc99aaa94ce52",l.callServer,void 0,l.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],464139);let u=(0,l.createServerReference)("408132a4d33adc8c71a573e5f9f01866bd95ce81ae",l.callServer,void 0,l.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let d={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class f{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)??d}update(e,t){let r={...this.entries.get(e)??d,...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",()=>f,"EMPTY_ENTRY",0,d],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),h=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:l}){let c=(0,r.useRef)(null);c.current||(c.current=new f,c.current.hydrate(e));let d=c.current;(0,r.useEffect)(()=>{d.hydrate(e)},[e,d]);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),d.setStatus(e,null),m(e);return}if(!t||t.state===a.DeploymentState.Stopped){d.setStatus(e,null),m(e);return}d.setStatus(e,t)},3e3);v.current.set(e,t)},[d,m]);(0,r.useEffect)(()=>{let e=v.current,t=d.subscribeAll(()=>{for(let[t]of e){let e=d.getEntry(t);e.status&&h.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[d,m]);let k=(0,r.useCallback)(e=>{if(e&&!d.getEntry(e).hydrated){if(d.isFullyHydrated())return void d.update(e,{hydrated:!0});d.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);d.setStatus(e,t),t&&h.has(t.state)&&g(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[d,g]),b=(0,r.useCallback)(async e=>{d.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await s(e.targetId):"application"===e.targetType?await n(e.targetId):await i(e.repositoryPath);if(!t.success)return void d.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});d.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";d.update(e.targetId,{deployLoading:!1,deployError:t})}},[d,g]),S=(0,r.useCallback)(async e=>{if(e){d.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),d.update(e,{stopLoading:!1,status:null,url:null})):d.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),d.update(e,{stopLoading:!1})}}},[d,m]),w=(0,r.useMemo)(()=>({store:d,deploy:b,stop:S,ensureHydrated:k}),[d,b,S,k]);return(0,t.jsx)(y.Provider,{value:w,children:l})}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||k}let k={store:new f,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 a(){}function l(e){let{store:l,deploy:s,stop:i,ensureHydrated:n}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?l.subscribe(o,e):a,[l,o]),c=(0,t.useCallback)(()=>o?l.getEntry(o):l.getEntry(""),[l,o]),d=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&n(o)},[o,n]),{deploy:(0,t.useCallback)(async()=>{e&&await s(e)},[s,e]),stop:(0,t.useCallback)(async()=>{o&&await i(o)},[i,o]),deployLoading:d.deployLoading,stopLoading:d.stopLoading,deployError:d.deployError,status:d.status,url:d.url}}e.s(["useDeployAction",()=>l])},1650,e=>{"use strict";e.i(511495),e.s([])},881317,e=>{"use strict";var t=e.i(508893);let r=(0,t.createServerReference)("40c1a0f14ef861167306a54cacc49d47d7c53935a9",t.callServer,void 0,t.findSourceMapURL,"openFolder");e.s(["openFolder",()=>r])},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),a=e.i(205978),l=e.i(786874),s=e.i(679606);function i(e){let i=e+"CollectionProvider",[n,o]=(0,r.createContextScope)(i),[u,c]=n(i,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:a}=e,l=t.default.useRef(null),i=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:i,collectionRef:l,children:a})};d.displayName=i;let f=e+"CollectionSlot",p=(0,l.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:l}=e,i=c(f,r),n=(0,a.useComposedRefs)(t,i.collectionRef);return(0,s.jsx)(p,{ref:n,children:l})});h.displayName=f;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,l.createSlot)(y),g=t.default.forwardRef((e,r)=>{let{scope:l,children:i,...n}=e,o=t.default.useRef(null),u=(0,a.useComposedRefs)(r,o),d=c(y,l);return t.default.useEffect(()=>(d.itemMap.set(o,{ref:o,...n}),()=>void d.itemMap.delete(o))),(0,s.jsx)(m,{...{[v]:""},ref:u,children:i})});return g.displayName=y,[{Provider:d,Slot:h,ItemSlot:g},function(r){let a=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=a.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(a.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[a.collectionRef,a.itemMap])},o]}var n=new WeakMap;function o(e,t){var r,a;let l,s,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=(r=e,a=t,l=r.length,(i=(s=u(a))>=0?s:l+s)<0||i>=l?-1:i);return -1===n?void 0:e[n]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],n.set(this,!0)}set(e,t){return n.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let a,l=this.has(t),s=this.#e.length,i=u(e),n=i>=0?i:s+i,o=n<0||n>=s?-1:n;if(o===this.size||l&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!l;i<0&&n++;let d=[...this.#e],f=!1;for(let e=n;e<c;e++)if(n===e){let s=d[e];d[e]===t&&(s=d[e+1]),l&&this.delete(t),a=this.get(s),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],l=a;a=this.get(r),this.delete(r),this.set(r,l)}return this}with(t,r,a){let l=new e(this);return l.insert(t,r,a),l}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=this.#e.indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let a=r+t;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return a;r++}}findIndex(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return r;r++}return -1}filter(t,r){let a=[],l=0;for(let e of this)Reflect.apply(t,r,[e,l,this])&&a.push(e),l++;return new e(a)}map(t,r){let a=[],l=0;for(let e of this)a.push([e[0],Reflect.apply(t,r,[e,l,this])]),l++;return new e(a)}reduce(...e){let[t,r]=e,a=0,l=r??this.at(0);for(let r of this)l=0===a&&1===e.length?r:Reflect.apply(t,this,[l,r,a,this]),a++;return l}reduceRight(...e){let[t,r]=e,a=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let l=this.at(r);a=r===this.size-1&&1===e.length?l:Reflect.apply(t,this,[a,l,r,this])}return a}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),a=this.get(r);t.set(r,a)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let a=new e,l=this.size-1;if(void 0===t)return a;t<0&&(t+=this.size),void 0!==r&&r>0&&(l=r-1);for(let e=t;e<=l;e++){let t=this.keyAt(e),r=this.get(t);a.set(t,r)}return a}every(e,t){let r=0;for(let a of this){if(!Reflect.apply(e,t,[a,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let a of this){if(Reflect.apply(e,t,[a,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>i])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),a=e.i(787342),l=e.i(205978),s=e.i(922528),i=e.i(713123),n=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),d=e.i(679606),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,v,m]=(0,a.createCollection)(h),[g,k]=(0,s.createContextScope)(h,[m]),[b,S]=g(h),w=t.forwardRef((e,t)=>(0,d.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(x,{...e,ref:t})})}));w.displayName=h;var x=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,orientation:i,loop:y=!1,dir:m,currentTabStopId:g,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...R}=e,C=t.useRef(null),M=(0,l.useComposedRefs)(a,C),E=(0,c.useDirection)(m),[I,L]=(0,u.useControllableState)({prop:g,defaultProp:k??null,onChange:S,caller:h}),[D,z]=t.useState(!1),T=(0,o.useCallbackRef)(w),F=v(s),P=t.useRef(!1),[j,H]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,T),()=>e.removeEventListener(f,T)},[T]),(0,d.jsx)(b,{scope:s,orientation:i,dir:E,loop:y,currentTabStopId:I,onItemFocus:t.useCallback(e=>L(e),[L]),onItemShiftTab:t.useCallback(()=>z(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,d.jsx)(n.Primitive.div,{tabIndex:D||0===j?-1:0,"data-orientation":i,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),x)}}P.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>z(!1))})})}),R="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:l,focusable:s=!0,active:o=!1,tabStopId:u,children:c,...f}=e,p=(0,i.useId)(),h=u||p,m=S(R,l),g=m.currentTabStopId===h,k=v(l),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:x}=m;return t.useEffect(()=>{if(s)return b(),()=>w()},[s,b,w]),(0,d.jsx)(y.ItemSlot,{scope:l,id:h,focusable:s,active:o,children:(0,d.jsx)(n.Primitive.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(h)),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 a;let l=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(l))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(l)))return M[l]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let l=k().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)l.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&l.reverse();let s=l.indexOf(e.currentTarget);l=m.loop?(r=l,a=s+1,r.map((e,t)=>r[(a+t)%r.length])):l.slice(s+1)}setTimeout(()=>A(l))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=x}):c})})});C.displayName=R;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>w,"createRovingFocusGroupScope",()=>k])},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)},208986,e=>{"use strict";let t=(0,e.i(903645).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",()=>t],208986)}]);
|