@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,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)},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)},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)},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)},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 m({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 m=(0,r.useRef)(new Map),v=(0,r.useCallback)(e=>{let t=m.current.get(e);t&&(clearInterval(t),m.current.delete(e))},[]),g=(0,r.useCallback)(e=>{if(m.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),v(e);return}if(!t||t.state===a.DeploymentState.Stopped){d.setStatus(e,null),v(e);return}d.setStatus(e,t)},3e3);m.current.set(e,t)},[d,v]);(0,r.useEffect)(()=>{let e=m.current,t=d.subscribeAll(()=>{for(let[t]of e){let e=d.getEntry(t);e.status&&h.has(e.status)||v(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[d,v]);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?(v(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,v]),x=(0,r.useMemo)(()=>({store:d,deploy:b,stop:S,ensureHydrated:k}),[d,b,S,k]);return(0,t.jsx)(y.Provider,{value:x,children:l})}function v(){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",()=>m,"useDeploymentStatusContext",()=>v,"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([])},435e3,e=>{"use strict";var t=e.i(980986);e.s(["CheckCircle2",()=>t.default])},194365,e=>{"use strict";let t=(0,e.i(903645).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],194365)},248109,e=>{"use strict";let t=(0,e.i(903645).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",()=>t],248109)},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let 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]),m=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),v=(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:m,updateNotes:v,clearAttachments:k}}e.s(["useAttachments",()=>l],731151)},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)},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])},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",m="data-radix-collection-item",v=(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)(v,{...{[m]:""},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(`[${m}]`));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,m,v]=(0,a.createCollection)(h),[g,k]=(0,s.createContextScope)(h,[v]),[b,S]=g(h),x=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)(w,{...e,ref:t})})}));x.displayName=h;var w=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,orientation:i,loop:y=!1,dir:v,currentTabStopId:g,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:x,preventScrollOnEntryFocus:w=!1,...R}=e,C=t.useRef(null),M=(0,l.useComposedRefs)(a,C),E=(0,c.useDirection)(v),[I,D]=(0,u.useControllableState)({prop:g,defaultProp:k??null,onChange:S,caller:h}),[z,L]=t.useState(!1),T=(0,o.useCallbackRef)(x),F=m(s),j=t.useRef(!1),[P,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=>D(e),[D]),onItemShiftTab:t.useCallback(()=>L(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,d.jsx)(n.Primitive.div,{tabIndex:z||0===P?-1:0,"data-orientation":i,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!z){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),w)}}j.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>L(!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,v=S(R,l),g=v.currentTabStopId===h,k=m(l),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:w}=v;return t.useEffect(()=>{if(s)return b(),()=>x()},[s,b,x]),(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":v.orientation,...f,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?v.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.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,v.orientation,v.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=v.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!=w}):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",()=>x,"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)},565530,e=>{"use strict";let t=(0,e.i(903645).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);e.s(["GitCommitHorizontal",()=>t],565530)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},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)},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)},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)},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 p{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",()=>p,"EMPTY_ENTRY",0,d],481605);let f=(0,c.createLogger)("[DeploymentStatusProvider]"),h=new Set([a.DeploymentState.Booting,a.DeploymentState.Ready]),y=(0,r.createContext)(null);function m({initialDeployments:e,children:l}){let c=(0,r.useRef)(null);c.current||(c.current=new p,c.current.hydrate(e));let d=c.current;(0,r.useEffect)(()=>{d.hydrate(e)},[e,d]);let m=(0,r.useRef)(new Map),v=(0,r.useCallback)(e=>{let t=m.current.get(e);t&&(clearInterval(t),m.current.delete(e))},[]),g=(0,r.useCallback)(e=>{if(m.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){f.warn(`poll failed for "${e}"`,t),d.setStatus(e,null),v(e);return}if(!t||t.state===a.DeploymentState.Stopped){d.setStatus(e,null),v(e);return}d.setStatus(e,t)},3e3);m.current.set(e,t)},[d,v]);(0,r.useEffect)(()=>{let e=m.current,t=d.subscribeAll(()=>{for(let[t]of e){let e=d.getEntry(t);e.status&&h.has(e.status)||v(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[d,v]);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){f.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?(v(e),d.update(e,{stopLoading:!1,status:null,url:null})):d.update(e,{stopLoading:!1})}catch(t){f.warn("stop error (non-critical)",t),d.update(e,{stopLoading:!1})}}},[d,v]),x=(0,r.useMemo)(()=>({store:d,deploy:b,stop:S,ensureHydrated:k}),[d,b,S,k]);return(0,t.jsx)(y.Provider,{value:x,children:l})}function v(){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 p,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>m,"useDeploymentStatusContext",()=>v,"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([])},435e3,e=>{"use strict";var t=e.i(980986);e.s(["CheckCircle2",()=>t.default])},194365,e=>{"use strict";let t=(0,e.i(903645).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],194365)},248109,e=>{"use strict";let t=(0,e.i(903645).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",()=>t],248109)},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let 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)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&n(!1)},[]),f=(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]),m=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),v=(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:p,handleDragOver:f,handleDrop:h,handlePaste:y,addAttachment:g,removeAttachment:m,updateNotes:v,clearAttachments:k}}e.s(["useAttachments",()=>l],731151)},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)},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])},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 p=e+"CollectionSlot",f=(0,l.createSlot)(p),h=t.default.forwardRef((e,t)=>{let{scope:r,children:l}=e,i=c(p,r),n=(0,a.useComposedRefs)(t,i.collectionRef);return(0,s.jsx)(f,{ref:n,children:l})});h.displayName=p;let y=e+"CollectionItemSlot",m="data-radix-collection-item",v=(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)(v,{...{[m]:""},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(`[${m}]`));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],p=!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{p||d[e-1]!==t||(p=!0);let r=d[p?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),p="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,m,v]=(0,a.createCollection)(h),[g,k]=(0,s.createContextScope)(h,[v]),[b,S]=g(h),x=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)(w,{...e,ref:t})})}));x.displayName=h;var w=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,orientation:i,loop:y=!1,dir:v,currentTabStopId:g,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:x,preventScrollOnEntryFocus:w=!1,...R}=e,C=t.useRef(null),M=(0,l.useComposedRefs)(a,C),E=(0,c.useDirection)(v),[I,D]=(0,u.useControllableState)({prop:g,defaultProp:k??null,onChange:S,caller:h}),[z,L]=t.useState(!1),T=(0,o.useCallbackRef)(x),F=m(s),j=t.useRef(!1),[P,H]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(p,T),()=>e.removeEventListener(p,T)},[T]),(0,d.jsx)(b,{scope:s,orientation:i,dir:E,loop:y,currentTabStopId:I,onItemFocus:t.useCallback(e=>D(e),[D]),onItemShiftTab:t.useCallback(()=>L(!0),[]),onFocusableItemAdd:t.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>H(e=>e-1),[]),children:(0,d.jsx)(n.Primitive.div,{tabIndex:z||0===P?-1:0,"data-orientation":i,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!z){let t=new CustomEvent(p,f);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),w)}}j.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>L(!1))})})}),R="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:l,focusable:s=!0,active:o=!1,tabStopId:u,children:c,...p}=e,f=(0,i.useId)(),h=u||f,v=S(R,l),g=v.currentTabStopId===h,k=m(l),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:w}=v;return t.useEffect(()=>{if(s)return b(),()=>x()},[s,b,x]),(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":v.orientation,...p,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?v.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.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,v.orientation,v.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=v.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!=w}):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",()=>x,"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)},565530,e=>{"use strict";let t=(0,e.i(903645).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);e.s(["GitCommitHorizontal",()=>t],565530)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,951911,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),o=e.i(205978),s=e.i(922528),n=e.i(936589),i=e.i(23405),l=e.i(277624),c=e.i(287620),d="Switch",[u,p]=(0,s.createContextScope)(d),[h,f]=u(d),m=r.forwardRef((e,s)=>{let{__scopeSwitch:i,name:l,checked:u,defaultChecked:p,required:f,disabled:m,value:x="on",onCheckedChange:g,form:k,...b}=e,[w,j]=r.useState(null),C=(0,o.useComposedRefs)(s,e=>j(e)),P=r.useRef(!1),N=!w||k||!!w.closest("form"),[S,R]=(0,n.useControllableState)({prop:u,defaultProp:p??!1,onChange:g,caller:d});return(0,t.jsxs)(h,{scope:i,checked:S,disabled:m,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":S,"aria-required":f,"data-state":y(S),"data-disabled":m?"":void 0,disabled:m,value:x,...b,ref:C,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{R(e=>!e),N&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),N&&(0,t.jsx)(v,{control:w,bubbles:!P.current,name:l,value:x,checked:S,required:f,disabled:m,form:k,style:{transform:"translateX(-100%)"}})]})});m.displayName=d;var x="SwitchThumb",g=r.forwardRef((e,r)=>{let{__scopeSwitch:a,...o}=e,s=f(x,a);return(0,t.jsx)(c.Primitive.span,{"data-state":y(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:r})});g.displayName=x;var v=r.forwardRef(({__scopeSwitch:e,control:a,checked:s,bubbles:n=!0,...c},d)=>{let u=r.useRef(null),p=(0,o.useComposedRefs)(u,d),h=(0,i.usePrevious)(s),f=(0,l.useSize)(a);return r.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==s&&t){let r=new Event("click",{bubbles:n});t.call(e,s),e.dispatchEvent(r)}},[h,s,n]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...c,tabIndex:-1,ref:p,style:{...c.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}v.displayName="SwitchBubbleInput",e.s(["Root",()=>m,"Switch",()=>m,"SwitchThumb",()=>g,"Thumb",()=>g,"createSwitchScope",()=>p],595291);var k=e.i(595291),k=k,b=e.i(131777);function w({className:e,size:r="default",...a}){return(0,t.jsx)(k.Root,{"data-slot":"switch","data-size":r,className:(0,b.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),...a,children:(0,t.jsx)(k.Thumb,{"data-slot":"switch-thumb",className:(0,b.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",()=>w],951911)},483902,e=>{"use strict";let t=(0,e.i(903645).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["Rocket",()=>t],483902)},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)},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)},926370,e=>{"use strict";let t=(0,e.i(903645).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",()=>t],926370)},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)},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)},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},390382,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),o=e.i(205978),s=e.i(922528),n=e.i(253532),i=e.i(341687),l=e.i(556720),c=e.i(713123),d=e.i(252740),u=e.i(339979),p=e.i(685995),h=e.i(287620),f=e.i(786874),m=e.i(936589),x=e.i(73772),g=e.i(813044),v="Popover",[y,k]=(0,s.createContextScope)(v,[d.createPopperScope]),b=(0,d.createPopperScope)(),[w,j]=y(v),C=e=>{let{__scopePopover:a,children:o,open:s,defaultOpen:n,onOpenChange:i,modal:l=!1}=e,u=b(a),p=r.useRef(null),[h,f]=r.useState(!1),[x,g]=(0,m.useControllableState)({prop:s,defaultProp:n??!1,onChange:i,caller:v});return(0,t.jsx)(d.Root,{...u,children:(0,t.jsx)(w,{scope:a,contentId:(0,c.useId)(),triggerRef:p,open:x,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:h,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:o})})};C.displayName=v;var P="PopoverAnchor",N=r.forwardRef((e,a)=>{let{__scopePopover:o,...s}=e,n=j(P,o),i=b(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=n;return r.useEffect(()=>(l(),()=>c()),[l,c]),(0,t.jsx)(d.Anchor,{...i,...s,ref:a})});N.displayName=P;var S="PopoverTrigger",R=r.forwardRef((e,r)=>{let{__scopePopover:s,...n}=e,i=j(S,s),l=b(s),c=(0,o.useComposedRefs)(r,i.triggerRef),u=(0,t.jsx)(h.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...n,ref:c,onClick:(0,a.composeEventHandlers)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,t.jsx)(d.Anchor,{asChild:!0,...l,children:u})});R.displayName=S;var A="PopoverPortal",[M,T]=y(A,{forceMount:void 0}),E=e=>{let{__scopePopover:r,forceMount:a,children:o,container:s}=e,n=j(A,r);return(0,t.jsx)(M,{scope:r,forceMount:a,children:(0,t.jsx)(p.Presence,{present:a||n.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:s,children:o})})})};E.displayName=A;var z="PopoverContent",F=r.forwardRef((e,r)=>{let a=T(z,e.__scopePopover),{forceMount:o=a.forceMount,...s}=e,n=j(z,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:o||n.open,children:n.modal?(0,t.jsx)(L,{...s,ref:r}):(0,t.jsx)(q,{...s,ref:r})})});F.displayName=z;var O=(0,f.createSlot)("PopoverContent.RemoveScroll"),L=r.forwardRef((e,s)=>{let n=j(z,e.__scopePopover),i=r.useRef(null),l=(0,o.useComposedRefs)(s,i),c=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,x.hideOthers)(e)},[]),(0,t.jsx)(g.RemoveScroll,{as:O,allowPinchZoom:!0,children:(0,t.jsx)(D,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),q=r.forwardRef((e,a)=>{let o=j(z,e.__scopePopover),s=r.useRef(!1),n=r.useRef(!1);return(0,t.jsx)(D,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(s.current||o.triggerRef.current?.focus(),t.preventDefault()),s.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(s.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),D=r.forwardRef((e,r)=>{let{__scopePopover:a,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,...x}=e,g=j(z,a),v=b(a);return(0,i.useFocusGuards)(),(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c,children:(0,t.jsx)(n.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,t.jsx)(d.Content,{"data-state":B(g.open),role:"dialog",id:g.contentId,...v,...x,ref:r,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",I=r.forwardRef((e,r)=>{let{__scopePopover:o,...s}=e,n=j(H,o);return(0,t.jsx)(h.Primitive.button,{type:"button",...s,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})});I.displayName=H;var _=r.forwardRef((e,r)=>{let{__scopePopover:a,...o}=e,s=b(a);return(0,t.jsx)(d.Arrow,{...s,...o,ref:r})});function B(e){return e?"open":"closed"}_.displayName="PopoverArrow",e.s(["Anchor",()=>N,"Arrow",()=>_,"Close",()=>I,"Content",()=>F,"Popover",()=>C,"PopoverAnchor",()=>N,"PopoverArrow",()=>_,"PopoverClose",()=>I,"PopoverContent",()=>F,"PopoverPortal",()=>E,"PopoverTrigger",()=>R,"Portal",()=>E,"Root",()=>C,"Trigger",()=>R,"createPopoverScope",()=>k],689920);var U=e.i(689920),U=U,G=e.i(131777);let K=U.Root,V=U.Trigger;U.Anchor;let X=r.forwardRef(({className:e,align:r="center",sideOffset:a=4,...o},s)=>(0,t.jsx)(U.Portal,{children:(0,t.jsx)(U.Content,{ref:s,align:r,sideOffset:a,className:(0,G.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",e),...o})}));X.displayName=U.Content.displayName,e.s(["Popover",()=>K,"PopoverContent",()=>X,"PopoverTrigger",()=>V],390382)},93752,e=>{"use strict";let t=(0,e.i(903645).default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["default",()=>t])},276016,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],276016)},611345,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],611345)},41413,729393,978409,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(723925),o=e.i(611345),s=e.i(276016),n=e.i(710942);let i=(0,e.i(903645).default)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);var l=e.i(66459),c=e.i(508893);let d=(0,c.createServerReference)("00cf55906747e594573ba6c834dc7a51f5d50195b2",c.callServer,void 0,c.findSourceMapURL,"getAllAgentModels");e.s(["getAllAgentModels",()=>d],729393);let u=(0,c.createServerReference)("0049deb93e89c4dc33162f98af258ebf9160348bdb",c.callServer,void 0,c.findSourceMapURL,"checkAllAgentsStatus"),p=(0,c.createServerReference)("6004dfdee9cb6f4eb53095c541adeee2f7c9017018",c.callServer,void 0,c.findSourceMapURL,"updateAgentAndModel");e.s(["updateAgentAndModel",()=>p],978409);var h=e.i(286782),f=e.i(229847),m=e.i(735364),x=e.i(390382),g=e.i(131777);function v({initialAgentType:e,initialModel:c,agentType:v,model:y,onAgentModelChange:k,onSave:b,saveError:w,saving:j,disabled:C,className:P,mode:N,showInstallStatus:S}){var R;let A,M,[T,E]=r.useState(!1),[z,F]=r.useState([]),[O,L]=r.useState(!0),[q,D]=r.useState({}),[H,I]=r.useState(v??e),[_,B]=r.useState(y??c),[U,G]=r.useState(!1),[K,V]=r.useState(null),[X,$]=r.useState(0),[Z,J]=r.useState(null),[Q,W]=r.useState("");r.useEffect(()=>{d().then(F).finally(()=>L(!1)),S&&u().then(D)},[S]),r.useEffect(()=>{I(v??e)},[v,e]),r.useEffect(()=>{B(y??c)},[y,c]);let Y=r.useRef(T);r.useEffect(()=>{let e=Y.current;if(Y.current=T,e&&!T){let e=setTimeout(()=>{$(0),J(null),W("")},150);return()=>clearTimeout(e)}},[T]);let ee=async(e,t)=>{if(E(!1),e===H&&t===_)return;if(V(null),"override"===N){I(e),B(t),k?.(e,t);return}let r=b??(async(e,t)=>p(e,t||null));G(!0);try{let a=await r(e,t);if(a&&"ok"in a&&!a.ok)return void V(a.error??"Failed to save");I(e),B(t),k?.(e,t)}catch{V("Failed to save")}finally{G(!1)}},et=w??K,er=(0,h.getAgentTypeIcon)(H),ea=z.find(e=>e.agentType===H)?.label??H,eo=_?(0,f.getModelMeta)(_).displayName||_:null,es=Z?z.find(e=>e.agentType===Z):null;return(0,t.jsxs)("div",{className:(0,g.cn)("flex flex-col gap-1",P),children:[(0,t.jsxs)(x.Popover,{open:T,onOpenChange:E,children:[(0,t.jsx)(x.PopoverTrigger,{asChild:!0,children:(0,t.jsx)(m.Button,{type:"button",variant:"outline",role:"combobox","aria-expanded":T,disabled:(C??!1)||O||(j??!1)||U,className:"w-auto cursor-pointer justify-start font-normal hover:border-violet-300 hover:bg-violet-50/50 dark:hover:border-violet-700 dark:hover:bg-violet-950/30",children:(0,t.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[(0,t.jsx)(er,{className:"h-4 w-4 shrink-0"}),O?"Loading…":(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:ea}),eo?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground/50 text-xs",children:"·"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:eo})]}):null]})]})})}),(0,t.jsx)(x.PopoverContent,{className:"z-[70] w-(--radix-popover-trigger-width) overflow-hidden p-0",align:"start",side:"bottom",avoidCollisions:!1,children:(0,t.jsxs)("div",{className:"flex transition-transform duration-200 ease-in-out",style:{transform:`translateX(${1===X?"-50%":"0%"})`,width:"200%"},children:[(0,t.jsxs)("div",{className:(0,g.cn)("max-h-53.75 w-1/2 shrink-0 overflow-y-auto",1===X&&"h-0 overflow-hidden"),children:[(0,t.jsx)("div",{className:"text-muted-foreground border-b px-3 py-2 text-xs font-medium",children:"Select agent"}),z.map(e=>{let r=(0,h.getAgentTypeIcon)(e.agentType),o=H===e.agentType,l=e.models.length>0;return(0,t.jsxs)("button",{type:"button",className:(0,g.cn)("flex w-full cursor-pointer items-center gap-2.5 px-3 py-2 text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",o&&"bg-accent/50"),onClick:()=>{l?(J(e.agentType),W(""),requestAnimationFrame(()=>{requestAnimationFrame(()=>$(1))})):ee(e.agentType,"")},children:[(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 text-start",children:e.label}),S&&e.agentType in q?q[e.agentType]?(0,t.jsx)(n.CircleCheck,{className:"h-3 w-3 shrink-0 text-emerald-500"}):(0,t.jsx)(i,{className:"text-muted-foreground/40 h-3 w-3 shrink-0"}):null,o&&!l?(0,t.jsx)(a.Check,{className:"text-primary h-3.5 w-3.5 shrink-0"}):null,l?(0,t.jsx)(s.ChevronRight,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}):null]},e.agentType)})]}),(0,t.jsx)("div",{className:(0,g.cn)("max-h-53.75 w-1/2 shrink-0 overflow-y-auto",0===X&&"h-0 overflow-hidden"),children:es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"text-muted-foreground hover:text-foreground flex w-full cursor-pointer items-center gap-1.5 border-b px-3 py-2 text-xs font-medium transition-colors",onClick:()=>{$(0),W(""),setTimeout(()=>J(null),220)},children:[(0,t.jsx)(o.ChevronLeft,{className:"h-3.5 w-3.5"}),es.label,(0,t.jsx)("span",{className:"text-muted-foreground/60 ml-auto",children:es.models.length})]}),es.models.length>8?(0,t.jsx)("div",{className:"bg-background sticky top-0 z-10 border-b px-2 py-1.5",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Search,{className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2 h-3 w-3 -translate-y-1/2"}),(0,t.jsx)("input",{type:"text",value:Q,onChange:e=>W(e.target.value),placeholder:"Search models…",className:"bg-muted/50 placeholder:text-muted-foreground focus:ring-ring w-full rounded-md py-1 pr-2 pl-6 text-xs outline-none focus:ring-1"})]})}):null,(R=es.models,0===(M=(A=Q.trim().toLowerCase())?R.filter(e=>e.id.toLowerCase().includes(A)||(e.displayName??"").toLowerCase().includes(A)||(e.vendor??"").toLowerCase().includes(A)||(e.description??"").toLowerCase().includes(A)):R).length?(0,t.jsxs)("div",{className:"text-muted-foreground px-3 py-4 text-center text-xs",children:["No models match “",Q,"”"]}):M.map(e=>{let r=H===es.agentType&&_===e.id,o=e.description||[e.vendor,e.contextLength?`${Math.round(e.contextLength/1e3)}k ctx`:null].filter(Boolean).join(" · ")||e.id;return(0,t.jsxs)("button",{type:"button",className:(0,g.cn)("flex w-full cursor-pointer items-center gap-3 px-3 py-2 text-start transition-colors","hover:bg-accent hover:text-accent-foreground",r&&"bg-accent/50"),onClick:()=>ee(es.agentType,e.id),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium",children:[(0,t.jsx)("span",{className:"truncate",children:e.displayName}),e.isFree?(0,t.jsx)("span",{className:"rounded bg-emerald-100 px-1 py-0 text-[9px] font-semibold tracking-wide text-emerald-700 uppercase dark:bg-emerald-900/40 dark:text-emerald-300",children:"Free"}):null]}),(0,t.jsx)("span",{className:"text-muted-foreground truncate text-xs",children:o})]}),r?(0,t.jsx)(a.Check,{className:"text-primary h-3.5 w-3.5 shrink-0"}):null]},e.id)}))]}):null})]})})]}),!!et&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:et})]})}e.s(["AgentModelPicker",()=>v],41413)},248109,e=>{"use strict";let t=(0,e.i(903645).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",()=>t],248109)},987889,e=>{"use strict";let t=(0,e.i(903645).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],987889)},544229,e=>{"use strict";var t=e.i(93752);e.s(["Code",()=>t.default])},374294,558860,e=>{"use strict";var t=e.i(903645);let r=(0,t.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",()=>r],374294);let a=(0,t.default)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);e.s(["Timer",()=>a],558860)},806288,e=>{"use strict";let t=(0,e.i(903645).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",()=>t],806288)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,951911,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),o=e.i(205978),s=e.i(922528),n=e.i(936589),i=e.i(23405),l=e.i(277624),c=e.i(287620),d="Switch",[u,p]=(0,s.createContextScope)(d),[h,f]=u(d),m=r.forwardRef((e,s)=>{let{__scopeSwitch:i,name:l,checked:u,defaultChecked:p,required:f,disabled:m,value:x="on",onCheckedChange:g,form:b,...k}=e,[w,j]=r.useState(null),C=(0,o.useComposedRefs)(s,e=>j(e)),P=r.useRef(!1),N=!w||b||!!w.closest("form"),[S,R]=(0,n.useControllableState)({prop:u,defaultProp:p??!1,onChange:g,caller:d});return(0,t.jsxs)(h,{scope:i,checked:S,disabled:m,children:[(0,t.jsx)(c.Primitive.button,{type:"button",role:"switch","aria-checked":S,"aria-required":f,"data-state":y(S),"data-disabled":m?"":void 0,disabled:m,value:x,...k,ref:C,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{R(e=>!e),N&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),N&&(0,t.jsx)(v,{control:w,bubbles:!P.current,name:l,value:x,checked:S,required:f,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});m.displayName=d;var x="SwitchThumb",g=r.forwardRef((e,r)=>{let{__scopeSwitch:a,...o}=e,s=f(x,a);return(0,t.jsx)(c.Primitive.span,{"data-state":y(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:r})});g.displayName=x;var v=r.forwardRef(({__scopeSwitch:e,control:a,checked:s,bubbles:n=!0,...c},d)=>{let u=r.useRef(null),p=(0,o.useComposedRefs)(u,d),h=(0,i.usePrevious)(s),f=(0,l.useSize)(a);return r.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==s&&t){let r=new Event("click",{bubbles:n});t.call(e,s),e.dispatchEvent(r)}},[h,s,n]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...c,tabIndex:-1,ref:p,style:{...c.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}v.displayName="SwitchBubbleInput",e.s(["Root",()=>m,"Switch",()=>m,"SwitchThumb",()=>g,"Thumb",()=>g,"createSwitchScope",()=>p],595291);var b=e.i(595291),b=b,k=e.i(131777);function w({className:e,size:r="default",...a}){return(0,t.jsx)(b.Root,{"data-slot":"switch","data-size":r,className:(0,k.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),...a,children:(0,t.jsx)(b.Thumb,{"data-slot":"switch-thumb",className:(0,k.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",()=>w],951911)},483902,e=>{"use strict";let t=(0,e.i(903645).default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);e.s(["Rocket",()=>t],483902)},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)},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)},926370,e=>{"use strict";let t=(0,e.i(903645).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",()=>t],926370)},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)},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)},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},390382,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(291967),o=e.i(205978),s=e.i(922528),n=e.i(253532),i=e.i(341687),l=e.i(556720),c=e.i(713123),d=e.i(252740),u=e.i(339979),p=e.i(685995),h=e.i(287620),f=e.i(786874),m=e.i(936589),x=e.i(73772),g=e.i(813044),v="Popover",[y,b]=(0,s.createContextScope)(v,[d.createPopperScope]),k=(0,d.createPopperScope)(),[w,j]=y(v),C=e=>{let{__scopePopover:a,children:o,open:s,defaultOpen:n,onOpenChange:i,modal:l=!1}=e,u=k(a),p=r.useRef(null),[h,f]=r.useState(!1),[x,g]=(0,m.useControllableState)({prop:s,defaultProp:n??!1,onChange:i,caller:v});return(0,t.jsx)(d.Root,{...u,children:(0,t.jsx)(w,{scope:a,contentId:(0,c.useId)(),triggerRef:p,open:x,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:h,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:o})})};C.displayName=v;var P="PopoverAnchor",N=r.forwardRef((e,a)=>{let{__scopePopover:o,...s}=e,n=j(P,o),i=k(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=n;return r.useEffect(()=>(l(),()=>c()),[l,c]),(0,t.jsx)(d.Anchor,{...i,...s,ref:a})});N.displayName=P;var S="PopoverTrigger",R=r.forwardRef((e,r)=>{let{__scopePopover:s,...n}=e,i=j(S,s),l=k(s),c=(0,o.useComposedRefs)(r,i.triggerRef),u=(0,t.jsx)(h.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...n,ref:c,onClick:(0,a.composeEventHandlers)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,t.jsx)(d.Anchor,{asChild:!0,...l,children:u})});R.displayName=S;var A="PopoverPortal",[M,T]=y(A,{forceMount:void 0}),E=e=>{let{__scopePopover:r,forceMount:a,children:o,container:s}=e,n=j(A,r);return(0,t.jsx)(M,{scope:r,forceMount:a,children:(0,t.jsx)(p.Presence,{present:a||n.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:s,children:o})})})};E.displayName=A;var z="PopoverContent",F=r.forwardRef((e,r)=>{let a=T(z,e.__scopePopover),{forceMount:o=a.forceMount,...s}=e,n=j(z,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:o||n.open,children:n.modal?(0,t.jsx)(L,{...s,ref:r}):(0,t.jsx)(q,{...s,ref:r})})});F.displayName=z;var O=(0,f.createSlot)("PopoverContent.RemoveScroll"),L=r.forwardRef((e,s)=>{let n=j(z,e.__scopePopover),i=r.useRef(null),l=(0,o.useComposedRefs)(s,i),c=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,x.hideOthers)(e)},[]),(0,t.jsx)(g.RemoveScroll,{as:O,allowPinchZoom:!0,children:(0,t.jsx)(D,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),q=r.forwardRef((e,a)=>{let o=j(z,e.__scopePopover),s=r.useRef(!1),n=r.useRef(!1);return(0,t.jsx)(D,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(s.current||o.triggerRef.current?.focus(),t.preventDefault()),s.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(s.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),D=r.forwardRef((e,r)=>{let{__scopePopover:a,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,...x}=e,g=j(z,a),v=k(a);return(0,i.useFocusGuards)(),(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c,children:(0,t.jsx)(n.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,t.jsx)(d.Content,{"data-state":B(g.open),role:"dialog",id:g.contentId,...v,...x,ref:r,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",I=r.forwardRef((e,r)=>{let{__scopePopover:o,...s}=e,n=j(H,o);return(0,t.jsx)(h.Primitive.button,{type:"button",...s,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})});I.displayName=H;var _=r.forwardRef((e,r)=>{let{__scopePopover:a,...o}=e,s=k(a);return(0,t.jsx)(d.Arrow,{...s,...o,ref:r})});function B(e){return e?"open":"closed"}_.displayName="PopoverArrow",e.s(["Anchor",()=>N,"Arrow",()=>_,"Close",()=>I,"Content",()=>F,"Popover",()=>C,"PopoverAnchor",()=>N,"PopoverArrow",()=>_,"PopoverClose",()=>I,"PopoverContent",()=>F,"PopoverPortal",()=>E,"PopoverTrigger",()=>R,"Portal",()=>E,"Root",()=>C,"Trigger",()=>R,"createPopoverScope",()=>b],689920);var U=e.i(689920),U=U,G=e.i(131777);let K=U.Root,V=U.Trigger;U.Anchor;let X=r.forwardRef(({className:e,align:r="center",sideOffset:a=4,...o},s)=>(0,t.jsx)(U.Portal,{children:(0,t.jsx)(U.Content,{ref:s,align:r,sideOffset:a,className:(0,G.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",e),...o})}));X.displayName=U.Content.displayName,e.s(["Popover",()=>K,"PopoverContent",()=>X,"PopoverTrigger",()=>V],390382)},93752,e=>{"use strict";let t=(0,e.i(903645).default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["default",()=>t])},276016,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],276016)},611345,e=>{"use strict";let t=(0,e.i(903645).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],611345)},41413,830728,227800,e=>{"use strict";var t=e.i(679606),r=e.i(152155),a=e.i(723925),o=e.i(611345),s=e.i(276016),n=e.i(710942);let i=(0,e.i(903645).default)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);var l=e.i(66459),c=e.i(508893);let d=(0,c.createServerReference)("00a6c2aee46881b11cdb387b406998ab3ebcfa108a",c.callServer,void 0,c.findSourceMapURL,"getAllAgentModels");e.s(["getAllAgentModels",()=>d],830728);let u=(0,c.createServerReference)("00e3964b802b6f86c8ad684602c66660e76d7d911e",c.callServer,void 0,c.findSourceMapURL,"checkAllAgentsStatus"),p=(0,c.createServerReference)("60cb3c46518981344c02b500d8402e689d66b1ee0a",c.callServer,void 0,c.findSourceMapURL,"updateAgentAndModel");e.s(["updateAgentAndModel",()=>p],227800);var h=e.i(286782),f=e.i(229847),m=e.i(735364),x=e.i(390382),g=e.i(131777);function v({initialAgentType:e,initialModel:c,agentType:v,model:y,onAgentModelChange:b,onSave:k,saveError:w,saving:j,disabled:C,className:P,mode:N,showInstallStatus:S}){var R;let A,M,[T,E]=r.useState(!1),[z,F]=r.useState([]),[O,L]=r.useState(!0),[q,D]=r.useState({}),[H,I]=r.useState(v??e),[_,B]=r.useState(y??c),[U,G]=r.useState(!1),[K,V]=r.useState(null),[X,$]=r.useState(0),[Z,J]=r.useState(null),[Q,W]=r.useState("");r.useEffect(()=>{d().then(F).finally(()=>L(!1)),S&&u().then(D)},[S]),r.useEffect(()=>{I(v??e)},[v,e]),r.useEffect(()=>{B(y??c)},[y,c]);let Y=r.useRef(T);r.useEffect(()=>{let e=Y.current;if(Y.current=T,e&&!T){let e=setTimeout(()=>{$(0),J(null),W("")},150);return()=>clearTimeout(e)}},[T]);let ee=async(e,t)=>{if(E(!1),e===H&&t===_)return;if(V(null),"override"===N){I(e),B(t),b?.(e,t);return}let r=k??(async(e,t)=>p(e,t||null));G(!0);try{let a=await r(e,t);if(a&&"ok"in a&&!a.ok)return void V(a.error??"Failed to save");I(e),B(t),b?.(e,t)}catch{V("Failed to save")}finally{G(!1)}},et=w??K,er=(0,h.getAgentTypeIcon)(H),ea=z.find(e=>e.agentType===H)?.label??H,eo=_?(0,f.getModelMeta)(_).displayName||_:null,es=Z?z.find(e=>e.agentType===Z):null;return(0,t.jsxs)("div",{className:(0,g.cn)("flex flex-col gap-1",P),children:[(0,t.jsxs)(x.Popover,{open:T,onOpenChange:E,children:[(0,t.jsx)(x.PopoverTrigger,{asChild:!0,children:(0,t.jsx)(m.Button,{type:"button",variant:"outline",role:"combobox","aria-expanded":T,disabled:(C??!1)||O||(j??!1)||U,className:"w-auto cursor-pointer justify-start font-normal hover:border-violet-300 hover:bg-violet-50/50 dark:hover:border-violet-700 dark:hover:bg-violet-950/30",children:(0,t.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[(0,t.jsx)(er,{className:"h-4 w-4 shrink-0"}),O?"Loading…":(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:ea}),eo?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground/50 text-xs",children:"·"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:eo})]}):null]})]})})}),(0,t.jsx)(x.PopoverContent,{className:"z-[70] w-(--radix-popover-trigger-width) overflow-hidden p-0",align:"start",side:"bottom",avoidCollisions:!1,children:(0,t.jsxs)("div",{className:"flex transition-transform duration-200 ease-in-out",style:{transform:`translateX(${1===X?"-50%":"0%"})`,width:"200%"},children:[(0,t.jsxs)("div",{className:(0,g.cn)("max-h-53.75 w-1/2 shrink-0 overflow-y-auto",1===X&&"h-0 overflow-hidden"),children:[(0,t.jsx)("div",{className:"text-muted-foreground border-b px-3 py-2 text-xs font-medium",children:"Select agent"}),z.map(e=>{let r=(0,h.getAgentTypeIcon)(e.agentType),o=H===e.agentType,l=e.models.length>0;return(0,t.jsxs)("button",{type:"button",className:(0,g.cn)("flex w-full cursor-pointer items-center gap-2.5 px-3 py-2 text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",o&&"bg-accent/50"),onClick:()=>{l?(J(e.agentType),W(""),requestAnimationFrame(()=>{requestAnimationFrame(()=>$(1))})):ee(e.agentType,"")},children:[(0,t.jsx)(r,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 text-start",children:e.label}),S&&e.agentType in q?q[e.agentType]?(0,t.jsx)(n.CircleCheck,{className:"h-3 w-3 shrink-0 text-emerald-500"}):(0,t.jsx)(i,{className:"text-muted-foreground/40 h-3 w-3 shrink-0"}):null,o&&!l?(0,t.jsx)(a.Check,{className:"text-primary h-3.5 w-3.5 shrink-0"}):null,l?(0,t.jsx)(s.ChevronRight,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}):null]},e.agentType)})]}),(0,t.jsx)("div",{className:(0,g.cn)("max-h-53.75 w-1/2 shrink-0 overflow-y-auto",0===X&&"h-0 overflow-hidden"),children:es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"text-muted-foreground hover:text-foreground flex w-full cursor-pointer items-center gap-1.5 border-b px-3 py-2 text-xs font-medium transition-colors",onClick:()=>{$(0),W(""),setTimeout(()=>J(null),220)},children:[(0,t.jsx)(o.ChevronLeft,{className:"h-3.5 w-3.5"}),es.label,(0,t.jsx)("span",{className:"text-muted-foreground/60 ml-auto",children:es.models.length})]}),es.models.length>8?(0,t.jsx)("div",{className:"bg-background sticky top-0 z-10 border-b px-2 py-1.5",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Search,{className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2 h-3 w-3 -translate-y-1/2"}),(0,t.jsx)("input",{type:"text",value:Q,onChange:e=>W(e.target.value),placeholder:"Search models…",className:"bg-muted/50 placeholder:text-muted-foreground focus:ring-ring w-full rounded-md py-1 pr-2 pl-6 text-xs outline-none focus:ring-1"})]})}):null,(R=es.models,0===(M=(A=Q.trim().toLowerCase())?R.filter(e=>e.id.toLowerCase().includes(A)||(e.displayName??"").toLowerCase().includes(A)||(e.vendor??"").toLowerCase().includes(A)||(e.description??"").toLowerCase().includes(A)):R).length?(0,t.jsxs)("div",{className:"text-muted-foreground px-3 py-4 text-center text-xs",children:["No models match “",Q,"”"]}):M.map(e=>{let r=H===es.agentType&&_===e.id,o=e.description||[e.vendor,e.contextLength?`${Math.round(e.contextLength/1e3)}k ctx`:null].filter(Boolean).join(" · ")||e.id;return(0,t.jsxs)("button",{type:"button",className:(0,g.cn)("flex w-full cursor-pointer items-center gap-3 px-3 py-2 text-start transition-colors","hover:bg-accent hover:text-accent-foreground",r&&"bg-accent/50"),onClick:()=>ee(es.agentType,e.id),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium",children:[(0,t.jsx)("span",{className:"truncate",children:e.displayName}),e.isFree?(0,t.jsx)("span",{className:"rounded bg-emerald-100 px-1 py-0 text-[9px] font-semibold tracking-wide text-emerald-700 uppercase dark:bg-emerald-900/40 dark:text-emerald-300",children:"Free"}):null]}),(0,t.jsx)("span",{className:"text-muted-foreground truncate text-xs",children:o})]}),r?(0,t.jsx)(a.Check,{className:"text-primary h-3.5 w-3.5 shrink-0"}):null]},e.id)}))]}):null})]})})]}),!!et&&(0,t.jsx)("p",{className:"text-destructive text-sm",children:et})]})}e.s(["AgentModelPicker",()=>v],41413)},248109,e=>{"use strict";let t=(0,e.i(903645).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",()=>t],248109)},987889,e=>{"use strict";let t=(0,e.i(903645).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],987889)},544229,e=>{"use strict";var t=e.i(93752);e.s(["Code",()=>t.default])},374294,558860,e=>{"use strict";var t=e.i(903645);let r=(0,t.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",()=>r],374294);let a=(0,t.default)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);e.s(["Timer",()=>a],558860)},806288,e=>{"use strict";let t=(0,e.i(903645).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",()=>t],806288)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,602287,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(90033),l=e.i(860253),o=e.i(131777);let r=s.Dialog.Root,n=s.Dialog.Trigger,d=s.Dialog.Portal,i=s.Dialog.Close,c=a.forwardRef(({className:e,onClick:a,...l},r)=>(0,t.jsx)(s.Dialog.Overlay,{ref:r,className:(0,o.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),a?.(e)},...l}));c.displayName=s.Dialog.Overlay.displayName;let m=a.forwardRef(({className:e,children:a,...r},n)=>(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(s.Dialog.Content,{ref:n,className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...r,children:[a,(0,t.jsxs)(s.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(l.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName=s.Dialog.Content.displayName;let u=({className:e,...a})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...a});u.displayName="DialogHeader";let p=({className:e,...a})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});p.displayName="DialogFooter";let x=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)(s.Dialog.Title,{ref:l,className:(0,o.cn)("text-lg leading-none font-semibold tracking-tight",e),...a}));x.displayName=s.Dialog.Title.displayName;let f=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)(s.Dialog.Description,{ref:l,className:(0,o.cn)("text-muted-foreground text-sm",e),...a}));f.displayName=s.Dialog.Description.displayName,e.s(["Dialog",()=>r,"DialogClose",()=>i,"DialogContent",()=>m,"DialogDescription",()=>f,"DialogFooter",()=>p,"DialogHeader",()=>u,"DialogTitle",()=>x,"DialogTrigger",()=>n])},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},16298,e=>{"use strict";let t=(0,e.i(903645).default)("file-text",[["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:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["default",()=>t])},670471,e=>{"use strict";var t=e.i(16298);e.s(["FileText",()=>t.default])},187752,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(66459),l=e.i(131777);let o=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...a}));o.displayName="Command";let r=a.forwardRef(({className:e,...a},o)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3",children:[(0,t.jsx)(s.Search,{className:"me-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)("input",{ref:o,className:(0,l.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...a})]}));r.displayName="CommandInput";let n=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("max-h-[300px] overflow-x-hidden overflow-y-auto",e),...a}));n.displayName="CommandList";let d=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-muted-foreground py-6 text-center text-sm",e),...a}));d.displayName="CommandEmpty";let i=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-foreground overflow-hidden p-1",e),...a}));i.displayName="CommandGroup";let c=a.forwardRef(({className:e,selected:a,...s},o)=>(0,t.jsx)("button",{ref:o,type:"button","data-selected":a,className:(0,l.cn)("relative flex w-full cursor-default items-center rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none","hover:bg-accent hover:text-accent-foreground","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","disabled:pointer-events-none disabled:opacity-50",e),...s}));c.displayName="CommandItem";let m=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("bg-border -mx-1 h-px",e),...a}));m.displayName="CommandSeparator",e.s(["Command",()=>o,"CommandEmpty",()=>d,"CommandGroup",()=>i,"CommandInput",()=>r,"CommandItem",()=>c,"CommandList",()=>n,"CommandSeparator",()=>m])},232763,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(711434),l=e.i(595400),o=e.i(670471),r=e.i(66459);let n=(0,e.i(903645).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var d=e.i(602287),i=e.i(187752),c=e.i(508893);let m=(0,c.createServerReference)("
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,602287,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(90033),l=e.i(860253),o=e.i(131777);let r=s.Dialog.Root,n=s.Dialog.Trigger,d=s.Dialog.Portal,i=s.Dialog.Close,c=a.forwardRef(({className:e,onClick:a,...l},r)=>(0,t.jsx)(s.Dialog.Overlay,{ref:r,className:(0,o.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),a?.(e)},...l}));c.displayName=s.Dialog.Overlay.displayName;let m=a.forwardRef(({className:e,children:a,...r},n)=>(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(s.Dialog.Content,{ref:n,className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...r,children:[a,(0,t.jsxs)(s.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(l.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName=s.Dialog.Content.displayName;let u=({className:e,...a})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...a});u.displayName="DialogHeader";let p=({className:e,...a})=>(0,t.jsx)("div",{className:(0,o.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});p.displayName="DialogFooter";let x=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)(s.Dialog.Title,{ref:l,className:(0,o.cn)("text-lg leading-none font-semibold tracking-tight",e),...a}));x.displayName=s.Dialog.Title.displayName;let f=a.forwardRef(({className:e,...a},l)=>(0,t.jsx)(s.Dialog.Description,{ref:l,className:(0,o.cn)("text-muted-foreground text-sm",e),...a}));f.displayName=s.Dialog.Description.displayName,e.s(["Dialog",()=>r,"DialogClose",()=>i,"DialogContent",()=>m,"DialogDescription",()=>f,"DialogFooter",()=>p,"DialogHeader",()=>u,"DialogTitle",()=>x,"DialogTrigger",()=>n])},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},16298,e=>{"use strict";let t=(0,e.i(903645).default)("file-text",[["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:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["default",()=>t])},670471,e=>{"use strict";var t=e.i(16298);e.s(["FileText",()=>t.default])},187752,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(66459),l=e.i(131777);let o=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...a}));o.displayName="Command";let r=a.forwardRef(({className:e,...a},o)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3",children:[(0,t.jsx)(s.Search,{className:"me-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)("input",{ref:o,className:(0,l.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...a})]}));r.displayName="CommandInput";let n=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("max-h-[300px] overflow-x-hidden overflow-y-auto",e),...a}));n.displayName="CommandList";let d=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-muted-foreground py-6 text-center text-sm",e),...a}));d.displayName="CommandEmpty";let i=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-foreground overflow-hidden p-1",e),...a}));i.displayName="CommandGroup";let c=a.forwardRef(({className:e,selected:a,...s},o)=>(0,t.jsx)("button",{ref:o,type:"button","data-selected":a,className:(0,l.cn)("relative flex w-full cursor-default items-center rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none","hover:bg-accent hover:text-accent-foreground","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","disabled:pointer-events-none disabled:opacity-50",e),...s}));c.displayName="CommandItem";let m=a.forwardRef(({className:e,...a},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("bg-border -mx-1 h-px",e),...a}));m.displayName="CommandSeparator",e.s(["Command",()=>o,"CommandEmpty",()=>d,"CommandGroup",()=>i,"CommandInput",()=>r,"CommandItem",()=>c,"CommandList",()=>n,"CommandSeparator",()=>m])},232763,e=>{"use strict";var t=e.i(679606),a=e.i(152155),s=e.i(711434),l=e.i(595400),o=e.i(670471),r=e.i(66459);let n=(0,e.i(903645).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var d=e.i(602287),i=e.i(187752),c=e.i(508893);let m=(0,c.createServerReference)("40401491c242cdf2459949fa4c7b82ac568e29dd2f",c.callServer,void 0,c.findSourceMapURL,"globalSearch");function u({className:e}){let[c,u]=(0,a.useState)(!1),[p,x]=(0,a.useState)(""),[f,h]=(0,a.useState)([]),[g,y]=(0,a.useState)(!1),j=(0,s.useRouter)(),N=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),u(e=>!e))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let v=(0,a.useCallback)(async e=>{if(!e.trim())return void h([]);y(!0);try{let{results:t}=await m(e);h(t??[])}finally{y(!1)}},[]),b=(0,a.useCallback)(e=>{let t=e.target.value;x(t),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>v(t),200)},[v]),C=(0,a.useCallback)(e=>{u(!1),x(""),h([]),j.push(e.url)},[j]),w=(0,a.useCallback)(e=>{u(e),e||(x(""),h([]))},[]),k=f.filter(e=>"project"===e.type),D=f.filter(e=>"workItem"===e.type),S=f.filter(e=>"page"===e.type);return(0,t.jsx)(d.Dialog,{open:c,onOpenChange:w,children:(0,t.jsx)(d.DialogContent,{"data-testid":"global-search-dialog",className:"max-w-lg gap-0 overflow-hidden p-0",children:(0,t.jsxs)(i.Command,{className:e,children:[(0,t.jsx)(i.CommandInput,{placeholder:"Search projects, work items, and pages...",value:p,onChange:b,"data-testid":"global-search-input"}),(0,t.jsxs)(i.CommandList,{children:[p.trim()&&!g&&0===f.length?(0,t.jsx)(i.CommandEmpty,{children:"No results found."}):null,g?(0,t.jsx)("div",{className:"text-muted-foreground py-6 text-center text-xs",children:"Searching..."}):null,k.length>0?(0,t.jsxs)(i.CommandGroup,{children:[(0,t.jsx)("div",{className:"text-muted-foreground px-2 py-1.5 text-[10px] font-medium",children:"Projects"}),k.map(e=>(0,t.jsxs)(i.CommandItem,{onClick:()=>C(e),"data-testid":`search-result-${e.id}`,children:[(0,t.jsx)(l.FolderKanban,{className:"mr-2 h-3.5 w-3.5 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:"flex-1 truncate text-xs",children:e.title}),e.subtitle?(0,t.jsx)("span",{className:"text-muted-foreground ml-2 shrink-0 font-mono text-[10px]",children:e.subtitle}):null]},e.id))]}):null,k.length>0&&D.length>0?(0,t.jsx)(i.CommandSeparator,{}):null,D.length>0?(0,t.jsxs)(i.CommandGroup,{children:[(0,t.jsx)("div",{className:"text-muted-foreground px-2 py-1.5 text-[10px] font-medium",children:"Work Items"}),D.map(e=>(0,t.jsxs)(i.CommandItem,{onClick:()=>C(e),"data-testid":`search-result-${e.id}`,children:[(0,t.jsx)(o.FileText,{className:"mr-2 h-3.5 w-3.5 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:"flex-1 truncate text-xs",children:e.title}),e.subtitle?(0,t.jsx)("span",{className:"text-muted-foreground ml-2 shrink-0 font-mono text-[10px]",children:e.subtitle}):null]},e.id))]}):null,S.length>0?(0,t.jsxs)(t.Fragment,{children:[k.length>0||D.length>0?(0,t.jsx)(i.CommandSeparator,{}):null,(0,t.jsxs)(i.CommandGroup,{children:[(0,t.jsx)("div",{className:"text-muted-foreground px-2 py-1.5 text-[10px] font-medium",children:"Pages"}),S.map(e=>(0,t.jsxs)(i.CommandItem,{onClick:()=>C(e),"data-testid":`search-result-${e.id}`,children:[(0,t.jsx)(n,{className:"mr-2 h-3.5 w-3.5 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:"flex-1 truncate text-xs",children:e.title}),e.subtitle?(0,t.jsx)("span",{className:"text-muted-foreground ml-2 shrink-0 font-mono text-[10px]",children:e.subtitle}):null]},e.id))]})]}):null,p.trim()||g?null:(0,t.jsxs)("div",{className:"text-muted-foreground py-6 text-center text-xs",children:[(0,t.jsx)(r.Search,{className:"mx-auto mb-2 h-5 w-5 opacity-20"}),(0,t.jsx)("p",{children:"Type to search projects, work items, and pages"}),(0,t.jsxs)("p",{className:"mt-1 text-[10px]",children:["Press"," ",(0,t.jsx)("kbd",{className:"bg-muted rounded px-1 py-0.5 font-mono text-[10px]",children:"⌘K"})," ","to open anytime"]})]})]})]})})})}e.s(["GlobalSearchDialog",()=>u],232763)},534801,e=>{e.n(e.i(232763))}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),i=e.i(205978),s=e.i(786874),a=e.i(679606);function l(e){let l=e+"CollectionProvider",[o,n]=(0,r.createContextScope)(l),[c,u]=o(l,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:i}=e,s=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:l,collectionRef:s,children:i})};d.displayName=l;let f=e+"CollectionSlot",h=(0,s.createSlot)(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:s}=e,l=u(f,r),o=(0,i.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(h,{ref:o,children:s})});p.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",x=(0,s.createSlot)(m),v=t.default.forwardRef((e,r)=>{let{scope:s,children:l,...o}=e,n=t.default.useRef(null),c=(0,i.useComposedRefs)(r,n),d=u(m,s);return t.default.useEffect(()=>(d.itemMap.set(n,{ref:n,...o}),()=>void d.itemMap.delete(n))),(0,a.jsx)(x,{...{[g]:""},ref:c,children:l})});return v.displayName=m,[{Provider:d,Slot:p,ItemSlot:v},function(r){let i=u(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])},n]}var o=new WeakMap;function n(e,t){var r,i;let s,a,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(r=e,i=t,s=r.length,(l=(a=c(i))>=0?a:s+a)<0||l>=s?-1:l);return -1===o?void 0:e[o]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],o.set(this,!0)}set(e,t){return o.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 i,s=this.has(t),a=this.#e.length,l=c(e),o=l>=0?l:a+l,n=o<0||o>=a?-1:o;if(n===this.size||s&&n===this.size-1||-1===n)return this.set(t,r),this;let u=this.size+ +!s;l<0&&o++;let d=[...this.#e],f=!1;for(let e=o;e<u;e++)if(o===e){let a=d[e];d[e]===t&&(a=d[e+1]),s&&this.delete(t),i=this.get(a),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],s=i;i=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,i){let s=new e(this);return s.insert(t,r,i),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,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 i=this.#e.indexOf(e);return -1===i?this:this.insert(i+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=n(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=n(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return n(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&i.push(e),s++;return new e(i)}map(t,r){let i=[],s=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(i)}reduce(...e){let[t,r]=e,i=0,s=r??this.at(0);for(let r of this)s=0===i&&1===e.length?r:Reflect.apply(t,this,[s,r,i,this]),i++;return s}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);i=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[i,s,r,this])}return i}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),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,s=this.size-1;if(void 0===t)return i;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);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>l])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),i=e.i(787342),s=e.i(205978),a=e.i(922528),l=e.i(713123),o=e.i(287620),n=e.i(929297),c=e.i(936589),u=e.i(566033),d=e.i(679606),f="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,g,x]=(0,i.createCollection)(p),[v,b]=(0,a.createContextScope)(p,[x]),[y,w]=v(p),j=t.forwardRef((e,t)=>(0,d.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(R,{...e,ref:t})})}));j.displayName=p;var R=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:a,orientation:l,loop:m=!1,dir:x,currentTabStopId:v,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:j,preventScrollOnEntryFocus:R=!1,...N}=e,k=t.useRef(null),S=(0,s.useComposedRefs)(i,k),D=(0,u.useDirection)(x),[T,A]=(0,c.useControllableState)({prop:v,defaultProp:b??null,onChange:w,caller:p}),[I,z]=t.useState(!1),F=(0,n.useCallbackRef)(j),E=g(a),H=t.useRef(!1),[L,M]=t.useState(0);return t.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,d.jsx)(y,{scope:a,orientation:l,dir:D,loop:m,currentTabStopId:T,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>z(!0),[]),onFocusableItemAdd:t.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>M(e=>e-1),[]),children:(0,d.jsx)(o.Primitive.div,{tabIndex:I||0===L?-1:0,"data-orientation":l,...N,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{H.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!H.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(f,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>e.focusable);C([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),R)}}H.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>z(!1))})})}),N="RovingFocusGroupItem",k=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:s,focusable:a=!0,active:n=!1,tabStopId:c,children:u,...f}=e,h=(0,l.useId)(),p=c||h,x=w(N,s),v=x.currentTabStopId===p,b=g(s),{onFocusableItemAdd:y,onFocusableItemRemove:j,currentTabStopId:R}=x;return t.useEffect(()=>{if(a)return y(),()=>j()},[a,y,j]),(0,d.jsx)(m.ItemSlot,{scope:s,id:p,focusable:a,active:n,children:(0,d.jsx)(o.Primitive.span,{tabIndex:v?0:-1,"data-orientation":x.orientation,...f,ref:i,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?x.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>x.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let s=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return S[s]}(e,x.orientation,x.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,i;"prev"===t&&s.reverse();let a=s.indexOf(e.currentTarget);s=x.loop?(r=s,i=a+1,r.map((e,t)=>r[(i+t)%r.length])):s.slice(a+1)}setTimeout(()=>C(s))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=R}):u})})});k.displayName=N;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>k,"Root",()=>j,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(291967),s=e.i(922528),a=e.i(151080),l=e.i(685995),o=e.i(287620),n=e.i(566033),c=e.i(936589),u=e.i(713123),d="Tabs",[f,h]=(0,s.createContextScope)(d,[a.createRovingFocusGroupScope]),p=(0,a.createRovingFocusGroupScope)(),[m,g]=f(d),x=r.forwardRef((e,r)=>{let{__scopeTabs:i,value:s,onValueChange:a,defaultValue:l,orientation:f="horizontal",dir:h,activationMode:p="automatic",...g}=e,x=(0,n.useDirection)(h),[v,b]=(0,c.useControllableState)({prop:s,onChange:a,defaultProp:l??"",caller:d});return(0,t.jsx)(m,{scope:i,baseId:(0,u.useId)(),value:v,onValueChange:b,orientation:f,dir:x,activationMode:p,children:(0,t.jsx)(o.Primitive.div,{dir:x,"data-orientation":f,...g,ref:r})})});x.displayName=d;var v="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:i,loop:s=!0,...l}=e,n=g(v,i),c=p(i);return(0,t.jsx)(a.Root,{asChild:!0,...c,orientation:n.orientation,dir:n.dir,loop:s,children:(0,t.jsx)(o.Primitive.div,{role:"tablist","aria-orientation":n.orientation,...l,ref:r})})});b.displayName=v;var y="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:l,disabled:n=!1,...c}=e,u=g(y,s),d=p(s),f=N(u.baseId,l),h=k(u.baseId,l),m=l===u.value;return(0,t.jsx)(a.Item,{asChild:!0,...d,focusable:!n,active:m,children:(0,t.jsx)(o.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:f,...c,ref:r,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(l)}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(l)}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==u.activationMode;m||n||!e||u.onValueChange(l)})})})});w.displayName=y;var j="TabsContent",R=r.forwardRef((e,i)=>{let{__scopeTabs:s,value:a,forceMount:n,children:c,...u}=e,d=g(j,s),f=N(d.baseId,a),h=k(d.baseId,a),p=a===d.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(l.Presence,{present:n||p,children:({present:r})=>(0,t.jsx)(o.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:h,tabIndex:0,...u,ref:i,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&c})})});function N(e,t){return`${e}-trigger-${t}`}function k(e,t){return`${e}-content-${t}`}R.displayName=j,e.s(["Content",()=>R,"List",()=>b,"Root",()=>x,"Tabs",()=>x,"TabsContent",()=>R,"TabsList",()=>b,"TabsTrigger",()=>w,"Trigger",()=>w,"createTabsScope",()=>h],743133);var S=e.i(743133),S=S,C=e.i(131777);let D=S.Root,T=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.List,{ref:i,className:(0,C.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));T.displayName=S.List.displayName;let A=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.Trigger,{ref:i,className:(0,C.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}));A.displayName=S.Trigger.displayName;let I=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.Content,{ref:i,className:(0,C.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}));I.displayName=S.Content.displayName,e.s(["Tabs",()=>D,"TabsContent",()=>I,"TabsList",()=>T,"TabsTrigger",()=>A],468304)},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)},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)},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(90033),s=e.i(860253),a=e.i(131777);let l=i.Dialog.Root,o=i.Dialog.Trigger,n=i.Dialog.Portal,c=i.Dialog.Close,u=r.forwardRef(({className:e,onClick:r,...s},l)=>(0,t.jsx)(i.Dialog.Overlay,{ref:l,className:(0,a.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),r?.(e)},...s}));u.displayName=i.Dialog.Overlay.displayName;let d=r.forwardRef(({className:e,children:r,...l},o)=>(0,t.jsxs)(n,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(i.Dialog.Content,{ref:o,className:(0,a.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...l,children:[r,(0,t.jsxs)(i.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(s.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));d.displayName=i.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let h=({className:e,...r})=>(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});h.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(i.Dialog.Title,{ref:s,className:(0,a.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));p.displayName=i.Dialog.Title.displayName;let m=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(i.Dialog.Description,{ref:s,className:(0,a.cn)("text-muted-foreground text-sm",e),...r}));m.displayName=i.Dialog.Description.displayName,e.s(["Dialog",()=>l,"DialogClose",()=>c,"DialogContent",()=>d,"DialogDescription",()=>m,"DialogFooter",()=>h,"DialogHeader",()=>f,"DialogTitle",()=>p,"DialogTrigger",()=>o])},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},579687,e=>{"use strict";var t=e.i(714748);e.s(["AlertCircle",()=>t.default])},612997,e=>{"use strict";let t=(0,e.i(903645).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],612997)},192350,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(602287),s=e.i(468304),a=e.i(83428),l=e.i(698127),o=e.i(735364),n=e.i(141957);let c=/^(?:https:\/\/github\.com\/([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+?)(?:\.git)?|git@github\.com:([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+?)(?:\.git)?|([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+))$/;function u({onSubmit:e,loading:i=!1}){let[s,u]=(0,r.useState)(""),[d,f]=(0,r.useState)("");function h(){let t=s.trim();t?c.test(t.trim())?(f(""),e(t)):f("Enter a valid GitHub URL (e.g. owner/repo or https://github.com/owner/repo)"):f("Please enter a GitHub URL")}return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(n.Label,{htmlFor:"github-url-input",children:"GitHub URL"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.Input,{id:"github-url-input",placeholder:"owner/repo or https://github.com/owner/repo",value:s,onChange:e=>{u(e.target.value),d&&f("")},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),h())},disabled:i,"aria-invalid":!!d,"aria-describedby":d?"github-url-error":void 0}),(0,t.jsx)(o.Button,{onClick:h,disabled:i||!s.trim(),size:"sm",children:i?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin"}):"Import"})]}),d?(0,t.jsx)("p",{id:"github-url-error",className:"text-destructive text-sm",role:"alert",children:d}):null]})}var d=e.i(612997),f=e.i(32494),h=e.i(66459),p=e.i(579687),m=e.i(81846),g=e.i(461238),x=e.i(547373),v=e.i(508893);let b=(0,v.createServerReference)("402aea723632c76ae35c7b50dcd165b68cee3c6d04",v.callServer,void 0,v.findSourceMapURL,"listGitHubRepositories"),y=(0,v.createServerReference)("0010aa03e16a9c3b883287167bc3f8cb1577b174bd",v.callServer,void 0,v.findSourceMapURL,"listGitHubOrganizations"),w="__personal__";function j({onSelect:e,loading:i=!1,fetchRepos:s=b,fetchOrgs:o=y}){let[n,c]=(0,r.useState)([]),[u,v]=(0,r.useState)([]),[j,R]=(0,r.useState)(!0),[N,k]=(0,r.useState)(""),[S,C]=(0,r.useState)(""),[D,T]=(0,r.useState)(w),A=(0,r.useRef)(null);(0,r.useEffect)(()=>{!async function(){try{let e=await o();e.orgs&&v(e.orgs)}catch{}}()},[o]);let I=(0,r.useCallback)(async(e,t)=>{R(!0),k("");try{let r={};e&&(r.search=e),t&&t!==w&&(r.owner=t);let i=await s(Object.keys(r).length>0?r:void 0);i.error?(k(i.error),c([])):c(i.repos??[])}catch{k("Failed to fetch repositories"),c([])}finally{R(!1)}},[s]);return((0,r.useEffect)(()=>{I(S||void 0,D)},[I,D]),N&&!j)?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 text-center","data-testid":"repo-browser-error",children:[(0,t.jsx)(p.AlertCircle,{className:"text-destructive h-8 w-8"}),(0,t.jsx)("p",{className:"text-destructive text-sm",children:N})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[u.length>0?(0,t.jsxs)(x.Select,{value:D,onValueChange:function(e){T(e),C("")},disabled:i,children:[(0,t.jsx)(x.SelectTrigger,{"aria-label":"Select owner",children:(0,t.jsx)(x.SelectValue,{placeholder:"Select owner"})}),(0,t.jsxs)(x.SelectContent,{children:[(0,t.jsx)(x.SelectItem,{value:w,children:"My repositories"}),u.map(e=>(0,t.jsx)(x.SelectItem,{value:e.login,children:e.login},e.login))]})]}):null,(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.Search,{className:"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2"}),(0,t.jsx)(l.Input,{placeholder:"Search repositories...",value:S,onChange:e=>{var t;C(t=e.target.value),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{I(t||void 0,D)},300)},className:"ps-9",disabled:i,"aria-label":"Search repositories"})]}),(0,t.jsx)("div",{className:"max-h-64 overflow-x-hidden overflow-y-auto rounded-md border",role:"listbox","aria-label":"GitHub repositories",children:j?(0,t.jsx)("div",{className:"flex flex-col gap-2 p-3","data-testid":"repo-browser-loading",children:Array.from({length:5}).map((e,r)=>(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(g.Skeleton,{className:"h-4 w-48"}),(0,t.jsx)(g.Skeleton,{className:"h-3 w-72"})]},`skeleton-${String(r)}`))}):0===n.length?(0,t.jsx)("div",{className:"text-muted-foreground py-8 text-center text-sm","data-testid":"repo-browser-empty",children:"No repositories found"}):n.map(r=>(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":!1,className:"hover:bg-accent flex w-full items-start gap-2 border-b px-3 py-2.5 text-start last:border-b-0 disabled:opacity-50",onClick:()=>e(r.nameWithOwner),disabled:i,children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:r.nameWithOwner}),(0,t.jsx)(m.Badge,{variant:r.isPrivate?"secondary":"outline",className:"shrink-0 text-xs",children:r.isPrivate?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Lock,{className:"me-1 h-3 w-3"}),"Private"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.Globe,{className:"me-1 h-3 w-3"}),"Public"]})})]}),r.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 truncate text-xs",children:r.description}):null]}),i?(0,t.jsx)(a.Loader2,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin"}):null]},r.nameWithOwner))})]})}let R=(0,v.createServerReference)("4086e3aa850c0075c857cd912d4c154e7d4b8382ff",v.callServer,void 0,v.findSourceMapURL,"importGitHubRepository");function N({open:e,onOpenChange:a,onImportComplete:l}){let[o,n]=(0,r.useState)(!1),[c,d]=(0,r.useState)("");async function f(e){n(!0),d("");try{let t=await R({url:e});t.error?d(t.error):t.repository&&(l(t.repository),a(!1))}catch{d("An unexpected error occurred")}finally{n(!1)}}return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:a,children:(0,t.jsxs)(i.DialogContent,{className:"overflow-hidden sm:max-w-lg",children:[(0,t.jsxs)(i.DialogHeader,{children:[(0,t.jsx)(i.DialogTitle,{children:"Import from GitHub"}),(0,t.jsx)(i.DialogDescription,{children:"Clone a GitHub repository and add it to Shep."})]}),(0,t.jsxs)(s.Tabs,{defaultValue:"url",className:"min-w-0",children:[(0,t.jsxs)(s.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(s.TabsTrigger,{value:"url",children:"URL"}),(0,t.jsx)(s.TabsTrigger,{value:"browse",children:"Browse"})]}),(0,t.jsx)(s.TabsContent,{value:"url",className:"mt-4",children:(0,t.jsx)(u,{onSubmit:f,loading:o})}),(0,t.jsx)(s.TabsContent,{value:"browse",className:"mt-4",children:(0,t.jsx)(j,{onSelect:f,loading:o})})]}),c?(0,t.jsx)("p",{className:"text-destructive text-sm",role:"alert",children:c}):null]})})}e.s([],294771),e.i(294771),e.s(["GitHubImportDialog",()=>N,"GitHubRepoBrowser",()=>j,"GitHubUrlInput",()=>u],192350)},522129,e=>{e.n(e.i(192350))}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),i=e.i(205978),s=e.i(786874),a=e.i(679606);function l(e){let l=e+"CollectionProvider",[o,n]=(0,r.createContextScope)(l),[c,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:i}=e,s=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:l,collectionRef:s,children:i})};u.displayName=l;let f=e+"CollectionSlot",h=(0,s.createSlot)(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:s}=e,l=d(f,r),o=(0,i.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(h,{ref:o,children:s})});p.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",x=(0,s.createSlot)(m),v=t.default.forwardRef((e,r)=>{let{scope:s,children:l,...o}=e,n=t.default.useRef(null),c=(0,i.useComposedRefs)(r,n),u=d(m,s);return t.default.useEffect(()=>(u.itemMap.set(n,{ref:n,...o}),()=>void u.itemMap.delete(n))),(0,a.jsx)(x,{...{[g]:""},ref:c,children:l})});return v.displayName=m,[{Provider:u,Slot:p,ItemSlot:v},function(r){let i=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])},n]}var o=new WeakMap;function n(e,t){var r,i;let s,a,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(r=e,i=t,s=r.length,(l=(a=c(i))>=0?a:s+a)<0||l>=s?-1:l);return -1===o?void 0:e[o]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],o.set(this,!0)}set(e,t){return o.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 i,s=this.has(t),a=this.#e.length,l=c(e),o=l>=0?l:a+l,n=o<0||o>=a?-1:o;if(n===this.size||s&&n===this.size-1||-1===n)return this.set(t,r),this;let d=this.size+ +!s;l<0&&o++;let u=[...this.#e],f=!1;for(let e=o;e<d;e++)if(o===e){let a=u[e];u[e]===t&&(a=u[e+1]),s&&this.delete(t),i=this.get(a),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],s=i;i=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,i){let s=new e(this);return s.insert(t,r,i),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,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 i=this.#e.indexOf(e);return -1===i?this:this.insert(i+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=n(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=n(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return n(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&i.push(e),s++;return new e(i)}map(t,r){let i=[],s=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(i)}reduce(...e){let[t,r]=e,i=0,s=r??this.at(0);for(let r of this)s=0===i&&1===e.length?r:Reflect.apply(t,this,[s,r,i,this]),i++;return s}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);i=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[i,s,r,this])}return i}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),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,s=this.size-1;if(void 0===t)return i;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);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>l])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),i=e.i(787342),s=e.i(205978),a=e.i(922528),l=e.i(713123),o=e.i(287620),n=e.i(929297),c=e.i(936589),d=e.i(566033),u=e.i(679606),f="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,g,x]=(0,i.createCollection)(p),[v,b]=(0,a.createContextScope)(p,[x]),[y,w]=v(p),j=t.forwardRef((e,t)=>(0,u.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(R,{...e,ref:t})})}));j.displayName=p;var R=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:a,orientation:l,loop:m=!1,dir:x,currentTabStopId:v,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:j,preventScrollOnEntryFocus:R=!1,...N}=e,k=t.useRef(null),S=(0,s.useComposedRefs)(i,k),D=(0,d.useDirection)(x),[T,A]=(0,c.useControllableState)({prop:v,defaultProp:b??null,onChange:w,caller:p}),[I,z]=t.useState(!1),F=(0,n.useCallbackRef)(j),E=g(a),H=t.useRef(!1),[L,M]=t.useState(0);return t.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,u.jsx)(y,{scope:a,orientation:l,dir:D,loop:m,currentTabStopId:T,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>z(!0),[]),onFocusableItemAdd:t.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>M(e=>e-1),[]),children:(0,u.jsx)(o.Primitive.div,{tabIndex:I||0===L?-1:0,"data-orientation":l,...N,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{H.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!H.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(f,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>e.focusable);C([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),R)}}H.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>z(!1))})})}),N="RovingFocusGroupItem",k=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:s,focusable:a=!0,active:n=!1,tabStopId:c,children:d,...f}=e,h=(0,l.useId)(),p=c||h,x=w(N,s),v=x.currentTabStopId===p,b=g(s),{onFocusableItemAdd:y,onFocusableItemRemove:j,currentTabStopId:R}=x;return t.useEffect(()=>{if(a)return y(),()=>j()},[a,y,j]),(0,u.jsx)(m.ItemSlot,{scope:s,id:p,focusable:a,active:n,children:(0,u.jsx)(o.Primitive.span,{tabIndex:v?0:-1,"data-orientation":x.orientation,...f,ref:i,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?x.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>x.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let s=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return S[s]}(e,x.orientation,x.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,i;"prev"===t&&s.reverse();let a=s.indexOf(e.currentTarget);s=x.loop?(r=s,i=a+1,r.map((e,t)=>r[(i+t)%r.length])):s.slice(a+1)}setTimeout(()=>C(s))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=R}):d})})});k.displayName=N;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>k,"Root",()=>j,"createRovingFocusGroupScope",()=>b])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(291967),s=e.i(922528),a=e.i(151080),l=e.i(685995),o=e.i(287620),n=e.i(566033),c=e.i(936589),d=e.i(713123),u="Tabs",[f,h]=(0,s.createContextScope)(u,[a.createRovingFocusGroupScope]),p=(0,a.createRovingFocusGroupScope)(),[m,g]=f(u),x=r.forwardRef((e,r)=>{let{__scopeTabs:i,value:s,onValueChange:a,defaultValue:l,orientation:f="horizontal",dir:h,activationMode:p="automatic",...g}=e,x=(0,n.useDirection)(h),[v,b]=(0,c.useControllableState)({prop:s,onChange:a,defaultProp:l??"",caller:u});return(0,t.jsx)(m,{scope:i,baseId:(0,d.useId)(),value:v,onValueChange:b,orientation:f,dir:x,activationMode:p,children:(0,t.jsx)(o.Primitive.div,{dir:x,"data-orientation":f,...g,ref:r})})});x.displayName=u;var v="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:i,loop:s=!0,...l}=e,n=g(v,i),c=p(i);return(0,t.jsx)(a.Root,{asChild:!0,...c,orientation:n.orientation,dir:n.dir,loop:s,children:(0,t.jsx)(o.Primitive.div,{role:"tablist","aria-orientation":n.orientation,...l,ref:r})})});b.displayName=v;var y="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:l,disabled:n=!1,...c}=e,d=g(y,s),u=p(s),f=N(d.baseId,l),h=k(d.baseId,l),m=l===d.value;return(0,t.jsx)(a.Item,{asChild:!0,...u,focusable:!n,active:m,children:(0,t.jsx)(o.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:f,...c,ref:r,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(l)}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(l)}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;m||n||!e||d.onValueChange(l)})})})});w.displayName=y;var j="TabsContent",R=r.forwardRef((e,i)=>{let{__scopeTabs:s,value:a,forceMount:n,children:c,...d}=e,u=g(j,s),f=N(u.baseId,a),h=k(u.baseId,a),p=a===u.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(l.Presence,{present:n||p,children:({present:r})=>(0,t.jsx)(o.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:h,tabIndex:0,...d,ref:i,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&c})})});function N(e,t){return`${e}-trigger-${t}`}function k(e,t){return`${e}-content-${t}`}R.displayName=j,e.s(["Content",()=>R,"List",()=>b,"Root",()=>x,"Tabs",()=>x,"TabsContent",()=>R,"TabsList",()=>b,"TabsTrigger",()=>w,"Trigger",()=>w,"createTabsScope",()=>h],743133);var S=e.i(743133),S=S,C=e.i(131777);let D=S.Root,T=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.List,{ref:i,className:(0,C.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));T.displayName=S.List.displayName;let A=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.Trigger,{ref:i,className:(0,C.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}));A.displayName=S.Trigger.displayName;let I=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)(S.Content,{ref:i,className:(0,C.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}));I.displayName=S.Content.displayName,e.s(["Tabs",()=>D,"TabsContent",()=>I,"TabsList",()=>T,"TabsTrigger",()=>A],468304)},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)},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)},66459,e=>{"use strict";let t=(0,e.i(903645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],66459)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(90033),s=e.i(860253),a=e.i(131777);let l=i.Dialog.Root,o=i.Dialog.Trigger,n=i.Dialog.Portal,c=i.Dialog.Close,d=r.forwardRef(({className:e,onClick:r,...s},l)=>(0,t.jsx)(i.Dialog.Overlay,{ref:l,className:(0,a.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80 duration-150",e),onClick:e=>{e.stopPropagation(),r?.(e)},...s}));d.displayName=i.Dialog.Overlay.displayName;let u=r.forwardRef(({className:e,children:r,...l},o)=>(0,t.jsxs)(n,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(i.Dialog.Content,{ref:o,className:(0,a.cn)("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-150 sm:rounded-lg",e),...l,children:[r,(0,t.jsxs)(i.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,t.jsx)(s.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));u.displayName=i.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let h=({className:e,...r})=>(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});h.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(i.Dialog.Title,{ref:s,className:(0,a.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));p.displayName=i.Dialog.Title.displayName;let m=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(i.Dialog.Description,{ref:s,className:(0,a.cn)("text-muted-foreground text-sm",e),...r}));m.displayName=i.Dialog.Description.displayName,e.s(["Dialog",()=>l,"DialogClose",()=>c,"DialogContent",()=>u,"DialogDescription",()=>m,"DialogFooter",()=>h,"DialogHeader",()=>f,"DialogTitle",()=>p,"DialogTrigger",()=>o])},723925,301012,e=>{"use strict";let t=(0,e.i(903645).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t],301012),e.s(["Check",()=>t],723925)},579687,e=>{"use strict";var t=e.i(714748);e.s(["AlertCircle",()=>t.default])},612997,e=>{"use strict";let t=(0,e.i(903645).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],612997)},192350,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(602287),s=e.i(468304),a=e.i(83428),l=e.i(698127),o=e.i(735364),n=e.i(141957);let c=/^(?:https:\/\/github\.com\/([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+?)(?:\.git)?|git@github\.com:([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+?)(?:\.git)?|([a-zA-Z0-9._-]+)\/([a-zA-Z0-9._-]+))$/;function d({onSubmit:e,loading:i=!1}){let[s,d]=(0,r.useState)(""),[u,f]=(0,r.useState)("");function h(){let t=s.trim();t?c.test(t.trim())?(f(""),e(t)):f("Enter a valid GitHub URL (e.g. owner/repo or https://github.com/owner/repo)"):f("Please enter a GitHub URL")}return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(n.Label,{htmlFor:"github-url-input",children:"GitHub URL"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.Input,{id:"github-url-input",placeholder:"owner/repo or https://github.com/owner/repo",value:s,onChange:e=>{d(e.target.value),u&&f("")},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),h())},disabled:i,"aria-invalid":!!u,"aria-describedby":u?"github-url-error":void 0}),(0,t.jsx)(o.Button,{onClick:h,disabled:i||!s.trim(),size:"sm",children:i?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin"}):"Import"})]}),u?(0,t.jsx)("p",{id:"github-url-error",className:"text-destructive text-sm",role:"alert",children:u}):null]})}var u=e.i(612997),f=e.i(32494),h=e.i(66459),p=e.i(579687),m=e.i(81846),g=e.i(461238),x=e.i(547373),v=e.i(508893);let b=(0,v.createServerReference)("4061f76af86d96fd47d91cc2b2f87a54c9d25690cd",v.callServer,void 0,v.findSourceMapURL,"listGitHubRepositories"),y=(0,v.createServerReference)("005a8f79042a30afcd77a32cd51666ddd657c53efa",v.callServer,void 0,v.findSourceMapURL,"listGitHubOrganizations"),w="__personal__";function j({onSelect:e,loading:i=!1,fetchRepos:s=b,fetchOrgs:o=y}){let[n,c]=(0,r.useState)([]),[d,v]=(0,r.useState)([]),[j,R]=(0,r.useState)(!0),[N,k]=(0,r.useState)(""),[S,C]=(0,r.useState)(""),[D,T]=(0,r.useState)(w),A=(0,r.useRef)(null);(0,r.useEffect)(()=>{!async function(){try{let e=await o();e.orgs&&v(e.orgs)}catch{}}()},[o]);let I=(0,r.useCallback)(async(e,t)=>{R(!0),k("");try{let r={};e&&(r.search=e),t&&t!==w&&(r.owner=t);let i=await s(Object.keys(r).length>0?r:void 0);i.error?(k(i.error),c([])):c(i.repos??[])}catch{k("Failed to fetch repositories"),c([])}finally{R(!1)}},[s]);return((0,r.useEffect)(()=>{I(S||void 0,D)},[I,D]),N&&!j)?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 text-center","data-testid":"repo-browser-error",children:[(0,t.jsx)(p.AlertCircle,{className:"text-destructive h-8 w-8"}),(0,t.jsx)("p",{className:"text-destructive text-sm",children:N})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d.length>0?(0,t.jsxs)(x.Select,{value:D,onValueChange:function(e){T(e),C("")},disabled:i,children:[(0,t.jsx)(x.SelectTrigger,{"aria-label":"Select owner",children:(0,t.jsx)(x.SelectValue,{placeholder:"Select owner"})}),(0,t.jsxs)(x.SelectContent,{children:[(0,t.jsx)(x.SelectItem,{value:w,children:"My repositories"}),d.map(e=>(0,t.jsx)(x.SelectItem,{value:e.login,children:e.login},e.login))]})]}):null,(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.Search,{className:"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2"}),(0,t.jsx)(l.Input,{placeholder:"Search repositories...",value:S,onChange:e=>{var t;C(t=e.target.value),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{I(t||void 0,D)},300)},className:"ps-9",disabled:i,"aria-label":"Search repositories"})]}),(0,t.jsx)("div",{className:"max-h-64 overflow-x-hidden overflow-y-auto rounded-md border",role:"listbox","aria-label":"GitHub repositories",children:j?(0,t.jsx)("div",{className:"flex flex-col gap-2 p-3","data-testid":"repo-browser-loading",children:Array.from({length:5}).map((e,r)=>(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(g.Skeleton,{className:"h-4 w-48"}),(0,t.jsx)(g.Skeleton,{className:"h-3 w-72"})]},`skeleton-${String(r)}`))}):0===n.length?(0,t.jsx)("div",{className:"text-muted-foreground py-8 text-center text-sm","data-testid":"repo-browser-empty",children:"No repositories found"}):n.map(r=>(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":!1,className:"hover:bg-accent flex w-full items-start gap-2 border-b px-3 py-2.5 text-start last:border-b-0 disabled:opacity-50",onClick:()=>e(r.nameWithOwner),disabled:i,children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:r.nameWithOwner}),(0,t.jsx)(m.Badge,{variant:r.isPrivate?"secondary":"outline",className:"shrink-0 text-xs",children:r.isPrivate?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Lock,{className:"me-1 h-3 w-3"}),"Private"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.Globe,{className:"me-1 h-3 w-3"}),"Public"]})})]}),r.description?(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 truncate text-xs",children:r.description}):null]}),i?(0,t.jsx)(a.Loader2,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin"}):null]},r.nameWithOwner))})]})}let R=(0,v.createServerReference)("403e57af29a1c30a3da59a1b0e4a0bb265afbb3846",v.callServer,void 0,v.findSourceMapURL,"importGitHubRepository");function N({open:e,onOpenChange:a,onImportComplete:l}){let[o,n]=(0,r.useState)(!1),[c,u]=(0,r.useState)("");async function f(e){n(!0),u("");try{let t=await R({url:e});t.error?u(t.error):t.repository&&(l(t.repository),a(!1))}catch{u("An unexpected error occurred")}finally{n(!1)}}return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:a,children:(0,t.jsxs)(i.DialogContent,{className:"overflow-hidden sm:max-w-lg",children:[(0,t.jsxs)(i.DialogHeader,{children:[(0,t.jsx)(i.DialogTitle,{children:"Import from GitHub"}),(0,t.jsx)(i.DialogDescription,{children:"Clone a GitHub repository and add it to Shep."})]}),(0,t.jsxs)(s.Tabs,{defaultValue:"url",className:"min-w-0",children:[(0,t.jsxs)(s.TabsList,{className:"grid w-full grid-cols-2",children:[(0,t.jsx)(s.TabsTrigger,{value:"url",children:"URL"}),(0,t.jsx)(s.TabsTrigger,{value:"browse",children:"Browse"})]}),(0,t.jsx)(s.TabsContent,{value:"url",className:"mt-4",children:(0,t.jsx)(d,{onSubmit:f,loading:o})}),(0,t.jsx)(s.TabsContent,{value:"browse",className:"mt-4",children:(0,t.jsx)(j,{onSelect:f,loading:o})})]}),c?(0,t.jsx)("p",{className:"text-destructive text-sm",role:"alert",children:c}):null]})})}e.s([],294771),e.i(294771),e.s(["GitHubImportDialog",()=>N,"GitHubRepoBrowser",()=>j,"GitHubUrlInput",()=>d],192350)},522129,e=>{e.n(e.i(192350))}]);
|