@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,43416,e=>{"use strict";let t=(0,e.i(903645).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],43416)},958481,e=>{"use strict";var t=e.i(215131);e.s(["AlertTriangle",()=>t.default])},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let s=new Set(["txt","md","csv","json","yaml","yml","xml","html","css","js","ts","jsx","tsx","py","rb","go","rs","java","kt","c","cpp","h","hpp","cs","swift","sh","bash","zsh","fish","ps1","bat","cmd","sql","graphql","proto","toml","ini","cfg","conf","env","dockerfile","makefile","cmake","gradle","sbt","lock","sum","mod","png","jpg","jpeg","gif","svg","webp","bmp","ico","avif","pdf","doc","docx","xls","xlsx","ppt","pptx","odt","ods","odp","zip","tar","gz","bz2","xz","7z","rar","log","diff","patch"]);function i(){let[e,t]=(0,r.useState)([]),[i,a]=(0,r.useState)(null),[n,l]=(0,r.useState)(!1),o=(0,r.useRef)(0),u=(0,r.useRef)(crypto.randomUUID()),c=(0,r.useCallback)(async e=>{for(let t of(a(null),e)){if(t.size>0xa00000)return void a(`"${t.name}" exceeds 10 MB limit`);let e=function(e){let t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():null}(t.name);if(e&&!s.has(e))return void a(`File type "${e}" is not allowed`)}for(let r of e){let e=crypto.randomUUID();t(t=>[...t,{id:e,name:r.name,size:r.size,mimeType:r.type||"application/octet-stream",path:"",loading:!0}]);try{let s=new FormData;s.append("file",r),s.append("sessionId",u.current);let i=await fetch("/api/attachments/upload",{method:"POST",body:s});if(!i.ok){let r=await i.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),a(r.error??"Upload failed");return}let n=await i.json();t(t=>t.some(t=>t.id!==e&&t.path===n.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...n,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),a("Upload failed")}}},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&l(!0)},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&l(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,l(!1);let t=Array.from(e.dataTransfer.files);t.length>0&&c(t)},[c]),y=(0,r.useCallback)(e=>{let t=e.clipboardData?.items;if(!t)return;let r=[];for(let e of Array.from(t))if("file"===e.kind){let t=e.getAsFile();t&&r.push(t)}r.length>0&&(e.preventDefault(),c(r))},[c]),v=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),m=(0,r.useCallback)((e,r)=>{t(t=>t.map(t=>t.id===e?{...t,notes:r}:t))},[]),b=(0,r.useCallback)(e=>{t(t=>t.some(t=>t.path===e.path)?t:[...t,{...e,loading:!1}])},[]),g=(0,r.useCallback)(()=>{t([]),a(null)},[]),R=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:R,uploadError:i,isDragOver:n,handleFiles:c,handleDragEnter:h,handleDragLeave:d,handleDragOver:p,handleDrop:f,handlePaste:y,addAttachment:b,removeAttachment:v,updateNotes:m,clearAttachments:g}}e.s(["useAttachments",()=>i],731151)},962885,e=>{"use strict";let t;var r=e.i(704520),s=e.i(265617),i=e.i(806786),a=e.i(328574),n=e.i(477501),l=e.i(20820),o=e.i(800003),u=e.i(668911),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#l;#r;#t;#o;#u;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#y():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#m(),this.#b(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||i!==this.#p)&&this.#k(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#l=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#y(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#R(){this.#m();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#k(e){this.#b(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#y()},this.#p))}#v(){this.#R(),this.#k(this.#S())}#m(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#b(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,u=this.#n,c=this.#l,d=e!==s?e.state:this.#i,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),l=r&&p(e,s,t,i);(n||l)&&(v={...v,...(0,a.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=v;r=v.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(R="success",r=(0,o.replaceData)(n?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!S)if(n&&r===u?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(n?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,r=this.#u,g=Date.now(),R="error");let k="fetching"===v.fetchStatus,w="pending"===R,x="error"===R,C=w&&k,I=void 0!==r,E={status:R,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===R,isError:x,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!w,isLoadingError:x&&!I,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:x&&I,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==E.data,r="error"===E.status&&!t,i=e=>{r?e.reject(E.error):t&&e.resolve(E.data)},a=()=>{i(this.#r=E.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||E.data!==n.value)&&a();break;case"rejected":r&&E.error===n.reason||a()}}return E}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#l=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(54101);var y=e.i(152155),v=e.i(434682);e.i(679606);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=y.createContext(!1);b.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let a,n=y.useContext(b),l=y.useContext(m),u=(0,v.useQueryClient)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,o.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!l.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{l.clearReset()},[l]);let d=!u.getQueryCache().get(c.queryHash),[p]=y.useState(()=>new t(u,c)),f=p.getOptimisticResult(c),R=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?p.subscribe(i.notifyManager.batchCalls(e)):o.noop;return p.updateResult(),t},[p,R]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),y.useEffect(()=>{p.setOptions(c)},[c,p]),c?.suspense&&f.isPending)throw g(c,p,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw f.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&f.isLoading&&f.isFetching&&!n){let e=d?g(c,p,l):h?.promise;e?.catch(o.noop).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?f:p.trackResult(f)}(e,c,t)}e.s(["useQuery",()=>R],962885)},32494,e=>{"use strict";let t=(0,e.i(903645).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],32494)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),i=e.i(786874),a=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,c]=l(n,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:n,collectionRef:i,children:s})};h.displayName=n;let d=e+"CollectionSlot",p=(0,i.createSlot)(d),f=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=c(d,r),l=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:l,children:i})});f.displayName=d;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,i.createSlot)(y),b=t.default.forwardRef((e,r)=>{let{scope:i,children:n,...l}=e,o=t.default.useRef(null),u=(0,s.useComposedRefs)(r,o),h=c(y,i);return t.default.useEffect(()=>(h.itemMap.set(o,{ref:o,...l}),()=>void h.itemMap.delete(o))),(0,a.jsx)(m,{...{[v]:""},ref:u,children:n})});return b.displayName=y,[{Provider:h,Slot:f,ItemSlot:b},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,s;let i,a,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,s=t,i=r.length,(n=(a=u(s))>=0?a:i+a)<0||n>=i?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#x;constructor(e){super(e),this.#x=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#x[this.#x.indexOf(e)]=e:this.#x.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),a=this.#x.length,n=u(e),l=n>=0?n:a+n,o=l<0||l>=a?-1:l;if(o===this.size||i&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!i;n<0&&l++;let h=[...this.#x],d=!1;for(let e=l;e<c;e++)if(l===e){let a=h[e];h[e]===t&&(a=h[e+1]),i&&this.delete(t),s=this.get(a),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#x.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#x.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#x=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#x.splice(this.#x.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#x,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#x,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#x.indexOf(e)}keyAt(e){return o(this.#x,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),i=e.i(205978),a=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),h=e.i(679606),d="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[y,v,m]=(0,s.createCollection)(f),[b,g]=(0,a.createContextScope)(f,[m]),[R,S]=b(f),k=t.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(w,{...e,ref:t})})}));k.displayName=f;var w=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,orientation:n,loop:y=!1,dir:m,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:S,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...x}=e,C=t.useRef(null),I=(0,i.useComposedRefs)(s,C),T=(0,c.useDirection)(m),[M,O]=(0,u.useControllableState)({prop:b,defaultProp:g??null,onChange:S,caller:f}),[Q,D]=t.useState(!1),A=(0,o.useCallbackRef)(k),F=v(a),L=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(d,A),()=>e.removeEventListener(d,A)},[A]),(0,h.jsx)(R,{scope:a,orientation:n,dir:T,loop:y,currentTabStopId:M,onItemFocus:t.useCallback(e=>O(e),[O]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,h.jsx)(l.Primitive.div,{tabIndex:Q||0===P?-1:0,"data-orientation":n,...x,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!Q){let t=new CustomEvent(d,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),w)}}L.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),x="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:u,children:c,...d}=e,p=(0,n.useId)(),f=u||p,m=S(x,i),b=m.currentTabStopId===f,g=v(i),{onFocusableItemAdd:R,onFocusableItemRemove:k,currentTabStopId:w}=m;return t.useEffect(()=>{if(a)return R(),()=>k()},[a,R,k]),(0,h.jsx)(y.ItemSlot,{scope:i,id:f,focusable:a,active:o,children:(0,h.jsx)(l.Primitive.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...d,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let i=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return I[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=m.loop?(r=i,s=a+1,r.map((e,t)=>r[(s+t)%r.length])):i.slice(a+1)}setTimeout(()=>E(i))}}),children:"function"==typeof c?c({isCurrentTabStop:b,hasTabStop:null!=w}):c})})});C.displayName=x;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>g])},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,860493,202824,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(317406),i=e.i(508893);let a=(0,i.createServerReference)("40c4a6aecf45d4f3bcee9f0abca065bb2204369961",i.callServer,void 0,i.findSourceMapURL,"deployFeature"),n=(0,i.createServerReference)("40480b2914f085773198eda76564879e2a82bf9abf",i.callServer,void 0,i.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],860493);let l=(0,i.createServerReference)("40b269b73a63cba8a12cdea3206c88dd77d1a720c5",i.callServer,void 0,i.findSourceMapURL,"deployApplication"),o=(0,i.createServerReference)("40f6a442e6dcb385edbe497760723810a4d3b6cd78",i.callServer,void 0,i.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],202824);let u=(0,i.createServerReference)("405bb37393c554d70ce53e367e581f340c25f403c3",i.callServer,void 0,i.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let h={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class d{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??h}update(e,t){let r={...this.entries.get(e)??h,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>d,"EMPTY_ENTRY",0,h],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),f=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:i}){let c=(0,r.useRef)(null);c.current||(c.current=new d,c.current.hydrate(e));let h=c.current;(0,r.useEffect)(()=>{h.hydrate(e)},[e,h]);let v=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),b=(0,r.useCallback)(e=>{if(v.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),h.setStatus(e,null),m(e);return}if(!t||t.state===s.DeploymentState.Stopped){h.setStatus(e,null),m(e);return}h.setStatus(e,t)},3e3);v.current.set(e,t)},[h,m]);(0,r.useEffect)(()=>{let e=v.current,t=h.subscribeAll(()=>{for(let[t]of e){let e=h.getEntry(t);e.status&&f.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[h,m]);let g=(0,r.useCallback)(e=>{if(e&&!h.getEntry(e).hydrated){if(h.isFullyHydrated())return void h.update(e,{hydrated:!0});h.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);h.setStatus(e,t),t&&f.has(t.state)&&b(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[h,b]),R=(0,r.useCallback)(async e=>{h.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await a(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void h.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});h.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),b(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";h.update(e.targetId,{deployLoading:!1,deployError:t})}},[h,b]),S=(0,r.useCallback)(async e=>{if(e){h.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),h.update(e,{stopLoading:!1,status:null,url:null})):h.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),h.update(e,{stopLoading:!1})}}},[h,m]),k=(0,r.useMemo)(()=>({store:h,deploy:R,stop:S,ensureHydrated:g}),[h,R,S,g]);return(0,t.jsx)(y.Provider,{value:k,children:i})}function m(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function b(){let e=(0,r.useContext)(y);return e||g}let g={store:new d,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>b],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function i(e){let{store:i,deploy:a,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?i.subscribe(o,e):s,[i,o]),c=(0,t.useCallback)(()=>o?i.getEntry(o):i.getEntry(""),[i,o]),h=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await a(e)},[a,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:h.deployLoading,stopLoading:h.stopLoading,deployError:h.deployError,status:h.status,url:h.url}}e.s(["useDeployAction",()=>i])},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43416,e=>{"use strict";let t=(0,e.i(903645).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],43416)},958481,e=>{"use strict";var t=e.i(215131);e.s(["AlertTriangle",()=>t.default])},215131,e=>{"use strict";let t=(0,e.i(903645).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",()=>t])},495812,e=>{"use strict";let t=(0,e.i(903645).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],495812)},267669,e=>{"use strict";let t=(0,e.i(903645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",()=>t],267669)},935946,e=>{"use strict";var t=e.i(943698);e.s(["Paperclip",()=>t.default])},382569,e=>{"use strict";let t=(0,e.i(903645).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);e.s(["Github",()=>t],382569)},711719,731151,e=>{"use strict";let t=(0,e.i(903645).default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["SendHorizontal",()=>t],711719);var r=e.i(152155);let s=new Set(["txt","md","csv","json","yaml","yml","xml","html","css","js","ts","jsx","tsx","py","rb","go","rs","java","kt","c","cpp","h","hpp","cs","swift","sh","bash","zsh","fish","ps1","bat","cmd","sql","graphql","proto","toml","ini","cfg","conf","env","dockerfile","makefile","cmake","gradle","sbt","lock","sum","mod","png","jpg","jpeg","gif","svg","webp","bmp","ico","avif","pdf","doc","docx","xls","xlsx","ppt","pptx","odt","ods","odp","zip","tar","gz","bz2","xz","7z","rar","log","diff","patch"]);function i(){let[e,t]=(0,r.useState)([]),[i,a]=(0,r.useState)(null),[n,l]=(0,r.useState)(!1),o=(0,r.useRef)(0),u=(0,r.useRef)(crypto.randomUUID()),c=(0,r.useCallback)(async e=>{for(let t of(a(null),e)){if(t.size>0xa00000)return void a(`"${t.name}" exceeds 10 MB limit`);let e=function(e){let t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():null}(t.name);if(e&&!s.has(e))return void a(`File type "${e}" is not allowed`)}for(let r of e){let e=crypto.randomUUID();t(t=>[...t,{id:e,name:r.name,size:r.size,mimeType:r.type||"application/octet-stream",path:"",loading:!0}]);try{let s=new FormData;s.append("file",r),s.append("sessionId",u.current);let i=await fetch("/api/attachments/upload",{method:"POST",body:s});if(!i.ok){let r=await i.json().catch(()=>({error:"Upload failed"}));t(t=>t.filter(t=>t.id!==e)),a(r.error??"Upload failed");return}let n=await i.json();t(t=>t.some(t=>t.id!==e&&t.path===n.path)?t.filter(t=>t.id!==e):t.map(t=>t.id===e?{...n,id:e,loading:!1}:t))}catch{t(t=>t.filter(t=>t.id!==e)),a("Upload failed")}}},[]),h=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current+=1,1===o.current&&l(!0)},[]),d=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current-=1,0===o.current&&l(!1)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),f=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),o.current=0,l(!1);let t=Array.from(e.dataTransfer.files);t.length>0&&c(t)},[c]),y=(0,r.useCallback)(e=>{let t=e.clipboardData?.items;if(!t)return;let r=[];for(let e of Array.from(t))if("file"===e.kind){let t=e.getAsFile();t&&r.push(t)}r.length>0&&(e.preventDefault(),c(r))},[c]),v=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),m=(0,r.useCallback)((e,r)=>{t(t=>t.map(t=>t.id===e?{...t,notes:r}:t))},[]),g=(0,r.useCallback)(e=>{t(t=>t.some(t=>t.path===e.path)?t:[...t,{...e,loading:!1}])},[]),b=(0,r.useCallback)(()=>{t([]),a(null)},[]),R=e.filter(e=>!e.loading);return{attachments:e,completedAttachments:R,uploadError:i,isDragOver:n,handleFiles:c,handleDragEnter:h,handleDragLeave:d,handleDragOver:p,handleDrop:f,handlePaste:y,addAttachment:g,removeAttachment:v,updateNotes:m,clearAttachments:b}}e.s(["useAttachments",()=>i],731151)},962885,e=>{"use strict";let t;var r=e.i(704520),s=e.i(265617),i=e.i(806786),a=e.i(328574),n=e.i(477501),l=e.i(20820),o=e.i(800003),u=e.i(668911),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#l;#r;#t;#o;#u;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#y():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#m(),this.#g(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||i!==this.#p)&&this.#k(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#l=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#y(e){this.#b();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#R(){this.#m();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#k(e){this.#g(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#y()},this.#p))}#v(){this.#R(),this.#k(this.#S())}#m(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#g(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,u=this.#n,c=this.#l,d=e!==s?e.state:this.#i,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),l=r&&p(e,s,t,i);(n||l)&&(v={...v,...(0,a.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:R}=v;r=v.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(R="success",r=(0,o.replaceData)(n?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!S)if(n&&r===u?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(n?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(g=this.#t,r=this.#u,b=Date.now(),R="error");let k="fetching"===v.fetchStatus,w="pending"===R,x="error"===R,C=w&&k,I=void 0!==r,E={status:R,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===R,isError:x,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:v.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!w,isLoadingError:x&&!I,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:x&&I,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==E.data,r="error"===E.status&&!t,i=e=>{r?e.reject(E.error):t&&e.resolve(E.data)},a=()=>{i(this.#r=E.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||E.data!==n.value)&&a();break;case"rejected":r&&E.error===n.reason||a()}}return E}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#l=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(54101);var y=e.i(152155),v=e.i(434682);e.i(679606);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),g=y.createContext(!1);g.Provider;var b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let a,n=y.useContext(g),l=y.useContext(m),u=(0,v.useQueryClient)(r),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,o.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!l.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{l.clearReset()},[l]);let d=!u.getQueryCache().get(c.queryHash),[p]=y.useState(()=>new t(u,c)),f=p.getOptimisticResult(c),R=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?p.subscribe(i.notifyManager.batchCalls(e)):o.noop;return p.updateResult(),t},[p,R]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),y.useEffect(()=>{p.setOptions(c)},[c,p]),c?.suspense&&f.isPending)throw b(c,p,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw f.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&f.isLoading&&f.isFetching&&!n){let e=d?b(c,p,l):h?.promise;e?.catch(o.noop).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?f:p.trackResult(f)}(e,c,t)}e.s(["useQuery",()=>R],962885)},32494,e=>{"use strict";let t=(0,e.i(903645).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],32494)},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),i=e.i(786874),a=e.i(679606);function n(e){let n=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(n),[u,c]=l(n,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.default.useRef(null),n=t.default.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:n,collectionRef:i,children:s})};h.displayName=n;let d=e+"CollectionSlot",p=(0,i.createSlot)(d),f=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=c(d,r),l=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:l,children:i})});f.displayName=d;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,i.createSlot)(y),g=t.default.forwardRef((e,r)=>{let{scope:i,children:n,...l}=e,o=t.default.useRef(null),u=(0,s.useComposedRefs)(r,o),h=c(y,i);return t.default.useEffect(()=>(h.itemMap.set(o,{ref:o,...l}),()=>void h.itemMap.delete(o))),(0,a.jsx)(m,{...{[v]:""},ref:u,children:n})});return g.displayName=y,[{Provider:h,Slot:f,ItemSlot:g},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var l=new WeakMap;function o(e,t){var r,s;let i,a,n;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,s=t,i=r.length,(n=(a=u(s))>=0?a:i+a)<0||n>=i?-1:n);return -1===l?void 0:e[l]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#x;constructor(e){super(e),this.#x=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#x[this.#x.indexOf(e)]=e:this.#x.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),a=this.#x.length,n=u(e),l=n>=0?n:a+n,o=l<0||l>=a?-1:l;if(o===this.size||i&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!i;n<0&&l++;let h=[...this.#x],d=!1;for(let e=l;e<c;e++)if(l===e){let a=h[e];h[e]===t&&(a=h[e+1]),i&&this.delete(t),s=this.get(a),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#x.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#x.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#x.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#x=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#x.splice(this.#x.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#x,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#x,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#x.indexOf(e)}keyAt(e){return o(this.#x,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>n])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),i=e.i(205978),a=e.i(922528),n=e.i(713123),l=e.i(287620),o=e.i(929297),u=e.i(936589),c=e.i(566033),h=e.i(679606),d="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[y,v,m]=(0,s.createCollection)(f),[g,b]=(0,a.createContextScope)(f,[m]),[R,S]=g(f),k=t.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(w,{...e,ref:t})})}));k.displayName=f;var w=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,orientation:n,loop:y=!1,dir:m,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:S,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...x}=e,C=t.useRef(null),I=(0,i.useComposedRefs)(s,C),T=(0,c.useDirection)(m),[M,O]=(0,u.useControllableState)({prop:g,defaultProp:b??null,onChange:S,caller:f}),[Q,D]=t.useState(!1),A=(0,o.useCallbackRef)(k),F=v(a),L=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(d,A),()=>e.removeEventListener(d,A)},[A]),(0,h.jsx)(R,{scope:a,orientation:n,dir:T,loop:y,currentTabStopId:M,onItemFocus:t.useCallback(e=>O(e),[O]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,h.jsx)(l.Primitive.div,{tabIndex:Q||0===P?-1:0,"data-orientation":n,...x,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!Q){let t=new CustomEvent(d,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),w)}}L.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),x="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:u,children:c,...d}=e,p=(0,n.useId)(),f=u||p,m=S(x,i),g=m.currentTabStopId===f,b=v(i),{onFocusableItemAdd:R,onFocusableItemRemove:k,currentTabStopId:w}=m;return t.useEffect(()=>{if(a)return R(),()=>k()},[a,R,k]),(0,h.jsx)(y.ItemSlot,{scope:i,id:f,focusable:a,active:o,children:(0,h.jsx)(l.Primitive.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let i=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return I[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=m.loop?(r=i,s=a+1,r.map((e,t)=>r[(s+t)%r.length])):i.slice(a+1)}setTimeout(()=>E(i))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=w}):c})})});C.displayName=x;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>b])},724042,e=>{"use strict";let t=(0,e.i(903645).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],724042)},730702,e=>{"use strict";let t=(0,e.i(903645).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],730702)},873504,120716,464139,481605,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(317406),i=e.i(508893);let a=(0,i.createServerReference)("40f07513aa1c0e813c802fc093ccedf3f983c32dce",i.callServer,void 0,i.findSourceMapURL,"deployFeature"),n=(0,i.createServerReference)("40168bcbd07a153b51a47e534636398af1478b3357",i.callServer,void 0,i.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>n],120716);let l=(0,i.createServerReference)("4092e06c387d5277093b0c3ab0d02c67d0634c3c36",i.callServer,void 0,i.findSourceMapURL,"deployApplication"),o=(0,i.createServerReference)("409823ed6e50482ab029132da1af3bc99aaa94ce52",i.callServer,void 0,i.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],464139);let u=(0,i.createServerReference)("408132a4d33adc8c71a573e5f9f01866bd95ce81ae",i.callServer,void 0,i.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let h={status:null,url:null,targetType:null,hydrated:!1,deployLoading:!1,stopLoading:!1,deployError:null};class d{entries=new Map;listeners=new Map;globalListeners=new Set;fullyHydrated=!1;isFullyHydrated(){return this.fullyHydrated}hydrate(e){let t=new Set;for(let r of e)t.add(r.targetId),this.update(r.targetId,{status:r.state,url:r.url,targetType:r.targetType,hydrated:!0});for(let[e,r]of this.entries)!t.has(e)&&r.hydrated&&null!==r.status?this.update(e,{status:null,url:null}):t.has(e)||r.hydrated||this.update(e,{hydrated:!0});this.fullyHydrated=!0}getEntry(e){return this.entries.get(e)??h}update(e,t){let r={...this.entries.get(e)??h,...t};this.entries.set(e,r),this.notify(e)}setStatus(e,t){null===t?this.update(e,{status:null,url:null,hydrated:!0}):this.update(e,{status:t.state,url:t.url,hydrated:!0})}subscribe(e,t){let r=this.listeners.get(e);return r||(r=new Set,this.listeners.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this.listeners.delete(e)}}subscribeAll(e){return this.globalListeners.add(e),()=>{this.globalListeners.delete(e)}}notify(e){let t=this.listeners.get(e);if(t)for(let e of t)e();for(let e of this.globalListeners)e()}}e.s(["DeploymentStatusStore",()=>d,"EMPTY_ENTRY",0,h],481605);let p=(0,c.createLogger)("[DeploymentStatusProvider]"),f=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),y=(0,r.createContext)(null);function v({initialDeployments:e,children:i}){let c=(0,r.useRef)(null);c.current||(c.current=new d,c.current.hydrate(e));let h=c.current;(0,r.useEffect)(()=>{h.hydrate(e)},[e,h]);let v=(0,r.useRef)(new Map),m=(0,r.useCallback)(e=>{let t=v.current.get(e);t&&(clearInterval(t),v.current.delete(e))},[]),g=(0,r.useCallback)(e=>{if(v.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await u(e)}catch(t){p.warn(`poll failed for "${e}"`,t),h.setStatus(e,null),m(e);return}if(!t||t.state===s.DeploymentState.Stopped){h.setStatus(e,null),m(e);return}h.setStatus(e,t)},3e3);v.current.set(e,t)},[h,m]);(0,r.useEffect)(()=>{let e=v.current,t=h.subscribeAll(()=>{for(let[t]of e){let e=h.getEntry(t);e.status&&f.has(e.status)||m(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[h,m]);let b=(0,r.useCallback)(e=>{if(e&&!h.getEntry(e).hydrated){if(h.isFullyHydrated())return void h.update(e,{hydrated:!0});h.update(e,{hydrated:!0}),(async()=>{try{let t=await u(e);h.setStatus(e,t),t&&f.has(t.state)&&g(e)}catch(t){p.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[h,g]),R=(0,r.useCallback)(async e=>{h.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await a(e.targetId):"application"===e.targetType?await l(e.targetId):await n(e.repositoryPath);if(!t.success)return void h.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});h.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),g(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";h.update(e.targetId,{deployLoading:!1,deployError:t})}},[h,g]),S=(0,r.useCallback)(async e=>{if(e){h.update(e,{stopLoading:!0});try{(await o(e)).success?(m(e),h.update(e,{stopLoading:!1,status:null,url:null})):h.update(e,{stopLoading:!1})}catch(t){p.warn("stop error (non-critical)",t),h.update(e,{stopLoading:!1})}}},[h,m]),k=(0,r.useMemo)(()=>({store:h,deploy:R,stop:S,ensureHydrated:b}),[h,R,S,b]);return(0,t.jsx)(y.Provider,{value:k,children:i})}function m(){let e=(0,r.useContext)(y);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function g(){let e=(0,r.useContext)(y);return e||b}let b={store:new d,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>v,"useDeploymentStatusContext",()=>m,"useDeploymentStatusContextOptional",()=>g],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function i(e){let{store:i,deploy:a,stop:n,ensureHydrated:l}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",u=(0,t.useCallback)(e=>o?i.subscribe(o,e):s,[i,o]),c=(0,t.useCallback)(()=>o?i.getEntry(o):i.getEntry(""),[i,o]),h=(0,t.useSyncExternalStore)(u,c,c);return(0,t.useEffect)(()=>{o&&l(o)},[o,l]),{deploy:(0,t.useCallback)(async()=>{e&&await a(e)},[a,e]),stop:(0,t.useCallback)(async()=>{o&&await n(o)},[n,o]),deployLoading:h.deployLoading,stopLoading:h.stopLoading,deployError:h.deployError,status:h.status,url:h.url}}e.s(["useDeployAction",()=>i])},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,868662,e=>{"use strict";e.s([],153556),e.i(153556);var c=e.i(508893);let r=(0,c.createServerReference)("40c7aa9f54839dbcfce8ff528a4a959145569934fc",c.callServer,void 0,c.findSourceMapURL,"adoptLocalDirectory");e.s(["adoptLocalDirectory",()=>r],868662)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,141957,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(287620),a=r.forwardRef((e,r)=>(0,t.jsx)(s.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label",e.s(["Label",()=>a,"Root",()=>a],127572);var l=e.i(127572),l=l,i=e.i(294237),n=e.i(131777);let o=(0,i.cva)("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(l.Root,{ref:s,className:(0,n.cn)(o(),e),...r}));d.displayName=l.Root.displayName,e.s(["Label",()=>d],141957)},81846,e=>{"use strict";var t=e.i(679606),r=e.i(294237),s=e.i(131777);let a=(0,r.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l({className:e,variant:r,...l}){return(0,t.jsx)("div",{className:(0,s.cn)(a({variant:r}),e),...l})}e.s(["Badge",()=>l])},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),a=e.i(786874),l=e.i(679606);function i(e){let i=e+"CollectionProvider",[n,o]=(0,r.createContextScope)(i),[d,c]=n(i,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:s}=e,a=t.default.useRef(null),i=t.default.useRef(new Map).current;return(0,l.jsx)(d,{scope:r,itemMap:i,collectionRef:a,children:s})};u.displayName=i;let f=e+"CollectionSlot",m=(0,a.createSlot)(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:a}=e,i=c(f,r),n=(0,s.useComposedRefs)(t,i.collectionRef);return(0,l.jsx)(m,{ref:n,children:a})});p.displayName=f;let h=e+"CollectionItemSlot",x="data-radix-collection-item",g=(0,a.createSlot)(h),y=t.default.forwardRef((e,r)=>{let{scope:a,children:i,...n}=e,o=t.default.useRef(null),d=(0,s.useComposedRefs)(r,o),u=c(h,a);return t.default.useEffect(()=>(u.itemMap.set(o,{ref:o,...n}),()=>void u.itemMap.delete(o))),(0,l.jsx)(g,{...{[x]:""},ref:d,children:i})});return y.displayName=h,[{Provider:u,Slot:p,ItemSlot:y},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var n=new WeakMap;function o(e,t){var r,s;let a,l,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=(r=e,s=t,a=r.length,(i=(l=d(s))>=0?l:a+l)<0||i>=a?-1:i);return -1===n?void 0:e[n]}function d(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 s,a=this.has(t),l=this.#e.length,i=d(e),n=i>=0?i:l+i,o=n<0||n>=l?-1:n;if(o===this.size||a&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!a;i<0&&n++;let u=[...this.#e],f=!1;for(let e=n;e<c;e++)if(n===e){let l=u[e];u[e]===t&&(l=u[e+1]),a&&this.delete(t),s=this.get(l),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],a=s;s=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,s){let a=new e(this);return a.insert(t,r,s),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&s.push(e),a++;return new e(s)}map(t,r){let s=[],a=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(s)}reduce(...e){let[t,r]=e,s=0,a=r??this.at(0);for(let r of this)a=0===s&&1===e.length?r:Reflect.apply(t,this,[a,r,s,this]),s++;return a}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);s=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[s,a,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,a=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>i])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),a=e.i(205978),l=e.i(922528),i=e.i(713123),n=e.i(287620),o=e.i(929297),d=e.i(936589),c=e.i(566033),u=e.i(679606),f="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[h,x,g]=(0,s.createCollection)(p),[y,v]=(0,l.createContextScope)(p,[g]),[b,j]=y(p),k=t.forwardRef((e,t)=>(0,u.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(N,{...e,ref:t})})}));k.displayName=p;var N=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:l,orientation:i,loop:h=!1,dir:g,currentTabStopId:y,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:j,onEntryFocus:k,preventScrollOnEntryFocus:N=!1,...w}=e,C=t.useRef(null),S=(0,a.useComposedRefs)(s,C),D=(0,c.useDirection)(g),[T,A]=(0,d.useControllableState)({prop:y,defaultProp:v??null,onChange:j,caller:p}),[L,E]=t.useState(!1),F=(0,o.useCallbackRef)(k),I=x(l),M=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,u.jsx)(b,{scope:l,orientation:i,dir:D,loop:h,currentTabStopId:T,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>E(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,u.jsx)(n.Primitive.div,{tabIndex:L||0===P?-1:0,"data-orientation":i,...w,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(f,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),N)}}M.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>E(!1))})})}),w="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,focusable:l=!0,active:o=!1,tabStopId:d,children:c,...f}=e,m=(0,i.useId)(),p=d||m,g=j(w,a),y=g.currentTabStopId===p,v=x(a),{onFocusableItemAdd:b,onFocusableItemRemove:k,currentTabStopId:N}=g;return t.useEffect(()=>{if(l)return b(),()=>k()},[l,b,k]),(0,u.jsx)(h.ItemSlot,{scope:a,id:p,focusable:l,active:o,children:(0,u.jsx)(n.Primitive.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...f,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{l?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let a=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return S[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&a.reverse();let l=a.indexOf(e.currentTarget);a=g.loop?(r=a,s=l+1,r.map((e,t)=>r[(s+t)%r.length])):a.slice(l+1)}setTimeout(()=>R(a))}}),children:"function"==typeof c?c({isCurrentTabStop:y,hasTabStop:null!=N}):c})})});C.displayName=w;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>v])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(291967),a=e.i(922528),l=e.i(151080),i=e.i(685995),n=e.i(287620),o=e.i(566033),d=e.i(936589),c=e.i(713123),u="Tabs",[f,m]=(0,a.createContextScope)(u,[l.createRovingFocusGroupScope]),p=(0,l.createRovingFocusGroupScope)(),[h,x]=f(u),g=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:a,onValueChange:l,defaultValue:i,orientation:f="horizontal",dir:m,activationMode:p="automatic",...x}=e,g=(0,o.useDirection)(m),[y,v]=(0,d.useControllableState)({prop:a,onChange:l,defaultProp:i??"",caller:u});return(0,t.jsx)(h,{scope:s,baseId:(0,c.useId)(),value:y,onValueChange:v,orientation:f,dir:g,activationMode:p,children:(0,t.jsx)(n.Primitive.div,{dir:g,"data-orientation":f,...x,ref:r})})});g.displayName=u;var y="TabsList",v=r.forwardRef((e,r)=>{let{__scopeTabs:s,loop:a=!0,...i}=e,o=x(y,s),d=p(s);return(0,t.jsx)(l.Root,{asChild:!0,...d,orientation:o.orientation,dir:o.dir,loop:a,children:(0,t.jsx)(n.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:r})})});v.displayName=y;var b="TabsTrigger",j=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:i,disabled:o=!1,...d}=e,c=x(b,a),u=p(a),f=w(c.baseId,i),m=C(c.baseId,i),h=i===c.value;return(0,t.jsx)(l.Item,{asChild:!0,...u,focusable:!o,active:h,children:(0,t.jsx)(n.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":m,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...d,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(i)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(i)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||o||!e||c.onValueChange(i)})})})});j.displayName=b;var k="TabsContent",N=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:l,forceMount:o,children:d,...c}=e,u=x(k,a),f=w(u.baseId,l),m=C(u.baseId,l),p=l===u.value,h=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(i.Presence,{present:o||p,children:({present:r})=>(0,t.jsx)(n.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:m,tabIndex:0,...c,ref:s,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&d})})});function w(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}N.displayName=k,e.s(["Content",()=>N,"List",()=>v,"Root",()=>g,"Tabs",()=>g,"TabsContent",()=>N,"TabsList",()=>v,"TabsTrigger",()=>j,"Trigger",()=>j,"createTabsScope",()=>m],743133);var S=e.i(743133),S=S,R=e.i(131777);let D=S.Root,T=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(S.List,{ref:s,className:(0,R.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},s)=>(0,t.jsx)(S.Trigger,{ref:s,className:(0,R.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 L=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(S.Content,{ref:s,className:(0,R.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));L.displayName=S.Content.displayName,e.s(["Tabs",()=>D,"TabsContent",()=>L,"TabsList",()=>T,"TabsTrigger",()=>A],468304)},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(90033),a=e.i(860253),l=e.i(131777);let i=s.Dialog.Root,n=s.Dialog.Trigger,o=s.Dialog.Portal,d=s.Dialog.Close,c=r.forwardRef(({className:e,onClick:r,...a},i)=>(0,t.jsx)(s.Dialog.Overlay,{ref:i,className:(0,l.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)},...a}));c.displayName=s.Dialog.Overlay.displayName;let u=r.forwardRef(({className:e,children:r,...i},n)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(s.Dialog.Content,{ref:n,className:(0,l.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),...i,children:[r,(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)(a.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));u.displayName=s.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let m=({className:e,...r})=>(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});m.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(s.Dialog.Title,{ref:a,className:(0,l.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));p.displayName=s.Dialog.Title.displayName;let h=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(s.Dialog.Description,{ref:a,className:(0,l.cn)("text-muted-foreground text-sm",e),...r}));h.displayName=s.Dialog.Description.displayName,e.s(["Dialog",()=>i,"DialogClose",()=>d,"DialogContent",()=>u,"DialogDescription",()=>h,"DialogFooter",()=>m,"DialogHeader",()=>f,"DialogTitle",()=>p,"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)},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),s=e.i(317406),a=e.i(508893);let l=(0,a.createServerReference)("40c4a6aecf45d4f3bcee9f0abca065bb2204369961",a.callServer,void 0,a.findSourceMapURL,"deployFeature"),i=(0,a.createServerReference)("40480b2914f085773198eda76564879e2a82bf9abf",a.callServer,void 0,a.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>i],860493);let n=(0,a.createServerReference)("40b269b73a63cba8a12cdea3206c88dd77d1a720c5",a.callServer,void 0,a.findSourceMapURL,"deployApplication"),o=(0,a.createServerReference)("40f6a442e6dcb385edbe497760723810a4d3b6cd78",a.callServer,void 0,a.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],202824);let d=(0,a.createServerReference)("405bb37393c554d70ce53e367e581f340c25f403c3",a.callServer,void 0,a.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let u={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)??u}update(e,t){let r={...this.entries.get(e)??u,...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,u],481605);let m=(0,c.createLogger)("[DeploymentStatusProvider]"),p=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),h=(0,r.createContext)(null);function x({initialDeployments:e,children:a}){let c=(0,r.useRef)(null);c.current||(c.current=new f,c.current.hydrate(e));let u=c.current;(0,r.useEffect)(()=>{u.hydrate(e)},[e,u]);let x=(0,r.useRef)(new Map),g=(0,r.useCallback)(e=>{let t=x.current.get(e);t&&(clearInterval(t),x.current.delete(e))},[]),y=(0,r.useCallback)(e=>{if(x.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await d(e)}catch(t){m.warn(`poll failed for "${e}"`,t),u.setStatus(e,null),g(e);return}if(!t||t.state===s.DeploymentState.Stopped){u.setStatus(e,null),g(e);return}u.setStatus(e,t)},3e3);x.current.set(e,t)},[u,g]);(0,r.useEffect)(()=>{let e=x.current,t=u.subscribeAll(()=>{for(let[t]of e){let e=u.getEntry(t);e.status&&p.has(e.status)||g(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[u,g]);let v=(0,r.useCallback)(e=>{if(e&&!u.getEntry(e).hydrated){if(u.isFullyHydrated())return void u.update(e,{hydrated:!0});u.update(e,{hydrated:!0}),(async()=>{try{let t=await d(e);u.setStatus(e,t),t&&p.has(t.state)&&y(e)}catch(t){m.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[u,y]),b=(0,r.useCallback)(async e=>{u.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await l(e.targetId):"application"===e.targetType?await n(e.targetId):await i(e.repositoryPath);if(!t.success)return void u.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});u.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),y(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";u.update(e.targetId,{deployLoading:!1,deployError:t})}},[u,y]),j=(0,r.useCallback)(async e=>{if(e){u.update(e,{stopLoading:!0});try{(await o(e)).success?(g(e),u.update(e,{stopLoading:!1,status:null,url:null})):u.update(e,{stopLoading:!1})}catch(t){m.warn("stop error (non-critical)",t),u.update(e,{stopLoading:!1})}}},[u,g]),k=(0,r.useMemo)(()=>({store:u,deploy:b,stop:j,ensureHydrated:v}),[u,b,j,v]);return(0,t.jsx)(h.Provider,{value:k,children:a})}function g(){let e=(0,r.useContext)(h);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function y(){let e=(0,r.useContext)(h);return e||v}let v={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>x,"useDeploymentStatusContext",()=>g,"useDeploymentStatusContextOptional",()=>y],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function a(e){let{store:a,deploy:l,stop:i,ensureHydrated:n}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",d=(0,t.useCallback)(e=>o?a.subscribe(o,e):s,[a,o]),c=(0,t.useCallback)(()=>o?a.getEntry(o):a.getEntry(""),[a,o]),u=(0,t.useSyncExternalStore)(d,c,c);return(0,t.useEffect)(()=>{o&&n(o)},[o,n]),{deploy:(0,t.useCallback)(async()=>{e&&await l(e)},[l,e]),stop:(0,t.useCallback)(async()=>{o&&await i(o)},[i,o]),deployLoading:u.deployLoading,stopLoading:u.stopLoading,deployError:u.deployError,status:u.status,url:u.url}}e.s(["useDeployAction",()=>a])},1650,e=>{"use strict";e.i(511495),e.s([])},454793,207729,e=>{"use strict";var t=e.i(679606),r=e.i(131777);function s({icon:e,title:s,description:a,action:l,className:i,...n}){return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center gap-4 px-4 py-12 text-center",i),...n,children:[e?(0,t.jsx)("div",{className:"text-muted-foreground",children:e}):null,(0,t.jsx)("h3",{className:"text-lg font-semibold",children:s}),a?(0,t.jsx)("p",{className:"text-muted-foreground max-w-md text-sm",children:a}):null,l?(0,t.jsx)("div",{className:"mt-2",children:l}):null]})}e.s(["EmptyState",()=>s],207729),e.s([],454793)},809443,185871,e=>{"use strict";var t=e.i(679606),r=e.i(131777);function s({title:e,description:s,children:a,className:l}){return(0,t.jsxs)("header",{className:(0,r.cn)("flex items-center justify-between gap-4",l),children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:e}),s?(0,t.jsx)("p",{className:"text-muted-foreground",children:s}):null]}),a?(0,t.jsx)("div",{"data-slot":"actions",children:a}):null]})}e.s(["PageHeader",()=>s],185871),e.s([],809443)},200956,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(131777);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("bg-card text-card-foreground rounded-xl border shadow",e),...r}));a.displayName="Card";let l=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...r}));l.displayName="CardHeader";let i=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("leading-none font-semibold tracking-tight",e),...r}));i.displayName="CardTitle";let n=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("text-muted-foreground text-sm",e),...r}));n.displayName="CardDescription";let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("p-6 pt-0",e),...r}));o.displayName="CardContent",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center p-6 pt-0",e),...r})).displayName="CardFooter",e.s(["Card",()=>a,"CardContent",()=>o,"CardDescription",()=>n,"CardHeader",()=>l,"CardTitle",()=>i])},638752,e=>{"use strict";var t=e.i(679606);e.i(1650);var r=e.i(511495),s=e.i(845811),a=e.i(81846),l=e.i(425235),i=e.i(619933);function n({skill:e,onClose:n}){return(0,t.jsx)(r.BaseDrawer,{open:null!==e,onClose:n,size:"sm",modal:!0,"data-testid":"skill-detail-drawer",header:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.DrawerTitle,{children:e.displayName}),(0,t.jsx)(s.DrawerDescription,{children:e.name})]}):void 0,children:e?(0,t.jsxs)("div",{className:"px-4 pb-4",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(a.Badge,{variant:"project"===e.source?"secondary":"outline",children:"project"===e.source?"Project":"Global"}),(0,t.jsx)(a.Badge,{variant:"outline",children:e.category}),e.context?(0,t.jsx)(a.Badge,{variant:"outline",children:e.context}):null]}),e.allowedTools?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:"Allowed Tools"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:e.allowedTools})]})]}):null,e.resources.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:"Resources"}),(0,t.jsx)("ul",{className:"mt-2 space-y-1.5",children:e.resources.map(e=>(0,t.jsxs)("li",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[(0,t.jsx)(i.FolderOpen,{className:"size-3.5 shrink-0"}),(0,t.jsxs)("span",{children:[e.name,"/ — ",e.fileCount," ",1===e.fileCount?"file":"files"]})]},e.name))})]})]}):null,e.body?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsx)("pre",{className:"text-muted-foreground text-sm leading-relaxed whitespace-pre-wrap",children:e.body})]}):null]}):null})}e.s(["SkillDetailDrawer",()=>n])},316919,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(66459),a=e.i(912103),l=e.i(698127),i=e.i(735364);e.i(809443);var n=e.i(185871);e.i(454793);var o=e.i(207729),d=e.i(200956),c=e.i(81846),u=e.i(619933);function f({skill:e,onSelect:r}){return(0,t.jsxs)(d.Card,{className:"hover:border-primary/50 cursor-pointer transition-colors",role:"button",tabIndex:0,onClick:()=>r(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),r(e))},"data-testid":`skill-card-${e.name}`,children:[(0,t.jsxs)(d.CardHeader,{className:"pb-3",children:[(0,t.jsx)(d.CardTitle,{className:"text-base",children:e.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground font-mono text-xs",children:e.name})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-2 text-sm",children:e.description}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(c.Badge,{variant:"project"===e.source?"secondary":"outline",children:"project"===e.source?"Project":"Global"}),e.context?(0,t.jsx)(c.Badge,{variant:"outline",children:e.context}):null,e.allowedTools?(0,t.jsx)(c.Badge,{variant:"outline",children:"Tools"}):null,e.resources.length>0?(0,t.jsxs)("span",{className:"text-muted-foreground inline-flex items-center gap-1 text-xs",children:[(0,t.jsx)(u.FolderOpen,{className:"size-3"}),e.resources.length," ",1===e.resources.length?"resource":"resources"]}):null]})]})]})}let m=["Workflow","Code Generation","Analysis","Reference"];function p({skills:e,onSkillSelect:r}){let s=function(e){let t=new Map;for(let r of e){let e=t.get(r.category)??[];e.push(r),t.set(r.category,e)}return t}(e);return(0,t.jsx)("div",{className:"space-y-8",children:m.map(e=>{let a=s.get(e);return a&&0!==a.length?(0,t.jsxs)("section",{children:[(0,t.jsxs)("h2",{className:"mb-4 text-lg font-semibold",children:[e," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-sm font-normal",children:["(",a.length,")"]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:a.map(e=>(0,t.jsx)(f,{skill:e,onSelect:r},e.name))})]},e):null})})}let h=[{label:"All",value:null},{label:"Workflow",value:"Workflow"},{label:"Code Generation",value:"Code Generation"},{label:"Analysis",value:"Analysis"},{label:"Reference",value:"Reference"}];function x({activeCategory:e,onCategoryChange:r,counts:s}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Filter by category",children:h.map(({label:a,value:l})=>(0,t.jsxs)(i.Button,{variant:e===l?"default":"outline",size:"sm",onClick:()=>r(l),children:[a,s&&l?(0,t.jsxs)("span",{className:"ms-1 text-xs opacity-70",children:["(",s[l],")"]}):null]},a))})}var g=e.i(638752),y=e.i(425235),v=e.i(711434),b=e.i(3214),j=e.i(860253),k=e.i(360112),N=e.i(508893);let w=(0,N.createServerReference)("4007c45bac51f37e1910a6d8825cd7899edf9cb666",N.callServer,void 0,N.findSourceMapURL,"removeInjectedSkill");var C=e.i(602287),S=e.i(141957),R=e.i(468304);let D=(0,N.createServerReference)("40ae27dacf73fbd4978b73bb48af1a9bd2545e9d6b",N.callServer,void 0,N.findSourceMapURL,"addInjectedSkill");function T({open:e,onOpenChange:s,onAdded:a,discoveredSkills:n,existingSkillNames:o}){let[d,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(""),[m,p]=(0,r.useState)(""),[h,x]=(0,r.useState)(""),g=n.filter(e=>!o.includes(e.name)),y=async e=>{c(!0);let t=await D({name:e.name,type:"local",source:`.claude/skills/${e.name}`});(c(!1),t.success)?(k.toast.success(`Added "${e.name}" to feature skills`),a()):k.toast.error(t.error??"Failed to add skill")},v=async()=>{if(!u.trim()||!m.trim())return void k.toast.error("Name and source are required");c(!0);let e=await D({name:u.trim(),type:"remote",source:m.trim(),...h.trim()&&{remoteSkillName:h.trim()}});(c(!1),e.success)?(k.toast.success(`Added "${u.trim()}" to feature skills`),f(""),p(""),x(""),a()):k.toast.error(e.error??"Failed to add skill")};return(0,t.jsx)(C.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(C.DialogContent,{className:"sm:max-w-md","data-testid":"add-skill-dialog",children:[(0,t.jsx)(C.DialogHeader,{children:(0,t.jsx)(C.DialogTitle,{children:"Add Skill to Features"})}),(0,t.jsxs)(R.Tabs,{defaultValue:"local",children:[(0,t.jsxs)(R.TabsList,{className:"w-full",children:[(0,t.jsx)(R.TabsTrigger,{value:"local",className:"flex-1",children:"Local"}),(0,t.jsx)(R.TabsTrigger,{value:"remote",className:"flex-1",children:"Remote"})]}),(0,t.jsx)(R.TabsContent,{value:"local",className:"mt-4",children:0===g.length?(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"All discovered skills are already configured."}):(0,t.jsx)("div",{className:"flex max-h-60 flex-col gap-2 overflow-y-auto",children:g.map(e=>(0,t.jsxs)("button",{type:"button",className:"hover:bg-accent flex flex-col gap-0.5 rounded-md border p-3 text-left transition-colors",onClick:()=>y(e),disabled:d,"data-testid":`add-local-skill-${e.name}`,children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.displayName}),(0,t.jsx)("span",{className:"text-muted-foreground line-clamp-1 text-xs",children:e.description})]},e.name))})}),(0,t.jsx)(R.TabsContent,{value:"remote",className:"mt-4",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-name",children:"Name"}),(0,t.jsx)(l.Input,{id:"remote-name",placeholder:"e.g. remotion-best-practices",value:u,onChange:e=>f(e.target.value),"data-testid":"remote-skill-name"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-source",children:"Source (npm package or URL)"}),(0,t.jsx)(l.Input,{id:"remote-source",placeholder:"e.g. @anthropic/remotion-skills",value:m,onChange:e=>p(e.target.value),"data-testid":"remote-skill-source"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-skill-name",children:"Skill Name (optional)"}),(0,t.jsx)(l.Input,{id:"remote-skill-name",placeholder:"e.g. remotion-best-practices",value:h,onChange:e=>x(e.target.value),"data-testid":"remote-skill-skill-name"})]}),(0,t.jsx)(C.DialogFooter,{children:(0,t.jsx)(i.Button,{onClick:v,disabled:d||!u.trim()||!m.trim(),"data-testid":"add-remote-skill-submit",children:"Add Remote Skill"})})]})})]})]})})}function A({config:e,discoveredSkills:s}){let a=(0,v.useRouter)(),[l,n]=(0,r.useState)(!1),[o,d]=(0,r.useState)(null),c=(0,r.useMemo)(()=>{let e=new Map;for(let t of s)e.set(t.name,t.description);return e},[s]),u=async e=>{d(e);let t=await w(e);(d(null),t.success)?(k.toast.success(`Removed "${e}" from feature skills`),a.refresh()):k.toast.error(t.error??"Failed to remove skill")};return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-base font-semibold",children:"Feature Skills"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Curated skills included in new feature worktrees to guide the agent"})]}),e.skills.length>0?(0,t.jsx)("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:e.skills.map(e=>(0,t.jsx)(L,{skill:e,description:c.get(e.name),onRemove:()=>u(e.name),isRemoving:o===e.name},e.name))}):(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No skills configured. Add skills to guide the agent when working on new features."}),(0,t.jsx)("div",{children:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:()=>n(!0),"data-testid":"add-injected-skill-button",children:[(0,t.jsx)(b.Plus,{className:"mr-1.5 size-4"}),"Add Skill"]})}),(0,t.jsx)(T,{open:l,onOpenChange:n,onAdded:()=>{n(!1),a.refresh()},discoveredSkills:s,existingSkillNames:e.skills.map(e=>e.name)})]})}function L({skill:e,description:r,onRemove:s,isRemoving:a}){return(0,t.jsxs)(d.Card,{"data-testid":`injected-skill-${e.name}`,children:[(0,t.jsxs)(d.CardHeader,{className:"flex flex-row items-start justify-between gap-2 pb-2",children:[(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)(d.CardTitle,{className:"truncate text-sm",children:e.name})}),(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:s,disabled:a,"aria-label":`Remove ${e.name}`,"data-testid":`remove-injected-skill-${e.name}`,children:(0,t.jsx)(j.X,{className:"size-4"})})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-2 pt-0",children:[r?(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-2 text-xs",children:r}):null,(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(c.Badge,{variant:"local"===e.type?"secondary":"outline",className:"text-xs",children:"local"===e.type?"Local":"Remote"}),(0,t.jsx)("span",{className:"text-muted-foreground max-w-37.5 truncate text-xs",children:e.source})]})]})]})}function E({skills:e,injectionConfig:d}){let[c,u]=(0,r.useState)(""),[f,m]=(0,r.useState)(null),[h,v]=(0,r.useState)(null),b=(0,r.useMemo)(()=>(function(e){let t={Workflow:0,"Code Generation":0,Analysis:0,Reference:0};for(let r of e)t[r.category]++;return t})(e),[e]),j=(0,r.useMemo)(()=>{let t=c.toLowerCase();return e.filter(e=>{if(f&&e.category!==f)return!1;if(t){let r=e.name.toLowerCase().includes(t),s=e.description.toLowerCase().includes(t);if(!r&&!s)return!1}return!0})},[e,c,f]);return 0===e.length?(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,t.jsx)(n.PageHeader,{title:"Skills",description:"Claude Code skills available to this project"}),(0,t.jsx)(A,{config:d,discoveredSkills:e}),(0,t.jsx)(y.Separator,{}),(0,t.jsx)(o.EmptyState,{icon:(0,t.jsx)(a.Puzzle,{className:"size-10"}),title:"No skills found",description:"No Claude Code skills are installed. Add skills to .claude/skills/ to get started."})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,t.jsx)(n.PageHeader,{title:"Skills",description:"Claude Code skills available to this project"}),(0,t.jsx)(A,{config:d,discoveredSkills:e}),(0,t.jsx)(y.Separator,{}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(s.Search,{className:"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2"}),(0,t.jsx)(l.Input,{placeholder:"Search skills...",value:c,onChange:e=>u(e.target.value),className:"ps-9"})]}),(0,t.jsx)(x,{activeCategory:f,onCategoryChange:m,counts:b}),j.length>0?(0,t.jsx)(p,{skills:j,onSkillSelect:v}):(0,t.jsx)(o.EmptyState,{icon:(0,t.jsx)(s.Search,{className:"size-10"}),title:"No matching skills",description:"No skills match your current search and filter criteria.",action:(0,t.jsx)(i.Button,{variant:"outline",onClick:()=>{u(""),m(null)},children:"Clear filters"})}),(0,t.jsx)(g.SkillDetailDrawer,{skill:h,onClose:()=>v(null)})]})}e.s(["SkillsPageClient",()=>E],316919)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,141957,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(287620),a=r.forwardRef((e,r)=>(0,t.jsx)(s.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label",e.s(["Label",()=>a,"Root",()=>a],127572);var l=e.i(127572),l=l,i=e.i(294237),n=e.i(131777);let o=(0,i.cva)("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(l.Root,{ref:s,className:(0,n.cn)(o(),e),...r}));d.displayName=l.Root.displayName,e.s(["Label",()=>d],141957)},81846,e=>{"use strict";var t=e.i(679606),r=e.i(294237),s=e.i(131777);let a=(0,r.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l({className:e,variant:r,...l}){return(0,t.jsx)("div",{className:(0,s.cn)(a({variant:r}),e),...l})}e.s(["Badge",()=>l])},787342,e=>{"use strict";var t=e.i(152155),r=e.i(922528),s=e.i(205978),a=e.i(786874),l=e.i(679606);function i(e){let i=e+"CollectionProvider",[n,o]=(0,r.createContextScope)(i),[d,c]=n(i,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:s}=e,a=t.default.useRef(null),i=t.default.useRef(new Map).current;return(0,l.jsx)(d,{scope:r,itemMap:i,collectionRef:a,children:s})};u.displayName=i;let f=e+"CollectionSlot",m=(0,a.createSlot)(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:a}=e,i=c(f,r),n=(0,s.useComposedRefs)(t,i.collectionRef);return(0,l.jsx)(m,{ref:n,children:a})});p.displayName=f;let h=e+"CollectionItemSlot",x="data-radix-collection-item",g=(0,a.createSlot)(h),y=t.default.forwardRef((e,r)=>{let{scope:a,children:i,...n}=e,o=t.default.useRef(null),d=(0,s.useComposedRefs)(r,o),u=c(h,a);return t.default.useEffect(()=>(u.itemMap.set(o,{ref:o,...n}),()=>void u.itemMap.delete(o))),(0,l.jsx)(g,{...{[x]:""},ref:d,children:i})});return y.displayName=h,[{Provider:u,Slot:p,ItemSlot:y},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}var n=new WeakMap;function o(e,t){var r,s;let a,l,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=(r=e,s=t,a=r.length,(i=(l=d(s))>=0?l:a+l)<0||i>=a?-1:i);return -1===n?void 0:e[n]}function d(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 s,a=this.has(t),l=this.#e.length,i=d(e),n=i>=0?i:l+i,o=n<0||n>=l?-1:n;if(o===this.size||a&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!a;i<0&&n++;let u=[...this.#e],f=!1;for(let e=n;e<c;e++)if(n===e){let l=u[e];u[e]===t&&(l=u[e+1]),a&&this.delete(t),s=this.get(l),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],a=s;s=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,s){let a=new e(this);return a.insert(t,r,s),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&s.push(e),a++;return new e(s)}map(t,r){let s=[],a=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(s)}reduce(...e){let[t,r]=e,s=0,a=r??this.at(0);for(let r of this)a=0===s&&1===e.length?r:Reflect.apply(t,this,[a,r,s,this]),s++;return a}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);s=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[s,a,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,a=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>i])},151080,e=>{"use strict";var t=e.i(152155),r=e.i(291967),s=e.i(787342),a=e.i(205978),l=e.i(922528),i=e.i(713123),n=e.i(287620),o=e.i(929297),d=e.i(936589),c=e.i(566033),u=e.i(679606),f="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[h,x,g]=(0,s.createCollection)(p),[y,v]=(0,l.createContextScope)(p,[g]),[b,j]=y(p),k=t.forwardRef((e,t)=>(0,u.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(N,{...e,ref:t})})}));k.displayName=p;var N=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:l,orientation:i,loop:h=!1,dir:g,currentTabStopId:y,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:j,onEntryFocus:k,preventScrollOnEntryFocus:N=!1,...w}=e,C=t.useRef(null),S=(0,a.useComposedRefs)(s,C),D=(0,c.useDirection)(g),[T,A]=(0,d.useControllableState)({prop:y,defaultProp:v??null,onChange:j,caller:p}),[L,E]=t.useState(!1),F=(0,o.useCallbackRef)(k),I=x(l),M=t.useRef(!1),[P,z]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,u.jsx)(b,{scope:l,orientation:i,dir:D,loop:h,currentTabStopId:T,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>E(!0),[]),onFocusableItemAdd:t.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>z(e=>e-1),[]),children:(0,u.jsx)(n.Primitive.div,{tabIndex:L||0===P?-1:0,"data-orientation":i,...w,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(f,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),N)}}M.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>E(!1))})})}),w="RovingFocusGroupItem",C=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:a,focusable:l=!0,active:o=!1,tabStopId:d,children:c,...f}=e,m=(0,i.useId)(),p=d||m,g=j(w,a),y=g.currentTabStopId===p,v=x(a),{onFocusableItemAdd:b,onFocusableItemRemove:k,currentTabStopId:N}=g;return t.useEffect(()=>{if(l)return b(),()=>k()},[l,b,k]),(0,u.jsx)(h.ItemSlot,{scope:a,id:p,focusable:l,active:o,children:(0,u.jsx)(n.Primitive.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...f,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{l?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let a=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return S[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&a.reverse();let l=a.indexOf(e.currentTarget);a=g.loop?(r=a,s=l+1,r.map((e,t)=>r[(s+t)%r.length])):a.slice(l+1)}setTimeout(()=>R(a))}}),children:"function"==typeof c?c({isCurrentTabStop:y,hasTabStop:null!=N}):c})})});C.displayName=w;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>k,"createRovingFocusGroupScope",()=>v])},468304,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(291967),a=e.i(922528),l=e.i(151080),i=e.i(685995),n=e.i(287620),o=e.i(566033),d=e.i(936589),c=e.i(713123),u="Tabs",[f,m]=(0,a.createContextScope)(u,[l.createRovingFocusGroupScope]),p=(0,l.createRovingFocusGroupScope)(),[h,x]=f(u),g=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:a,onValueChange:l,defaultValue:i,orientation:f="horizontal",dir:m,activationMode:p="automatic",...x}=e,g=(0,o.useDirection)(m),[y,v]=(0,d.useControllableState)({prop:a,onChange:l,defaultProp:i??"",caller:u});return(0,t.jsx)(h,{scope:s,baseId:(0,c.useId)(),value:y,onValueChange:v,orientation:f,dir:g,activationMode:p,children:(0,t.jsx)(n.Primitive.div,{dir:g,"data-orientation":f,...x,ref:r})})});g.displayName=u;var y="TabsList",v=r.forwardRef((e,r)=>{let{__scopeTabs:s,loop:a=!0,...i}=e,o=x(y,s),d=p(s);return(0,t.jsx)(l.Root,{asChild:!0,...d,orientation:o.orientation,dir:o.dir,loop:a,children:(0,t.jsx)(n.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:r})})});v.displayName=y;var b="TabsTrigger",j=r.forwardRef((e,r)=>{let{__scopeTabs:a,value:i,disabled:o=!1,...d}=e,c=x(b,a),u=p(a),f=w(c.baseId,i),m=C(c.baseId,i),h=i===c.value;return(0,t.jsx)(l.Item,{asChild:!0,...u,focusable:!o,active:h,children:(0,t.jsx)(n.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":m,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...d,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(i)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(i)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||o||!e||c.onValueChange(i)})})})});j.displayName=b;var k="TabsContent",N=r.forwardRef((e,s)=>{let{__scopeTabs:a,value:l,forceMount:o,children:d,...c}=e,u=x(k,a),f=w(u.baseId,l),m=C(u.baseId,l),p=l===u.value,h=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(i.Presence,{present:o||p,children:({present:r})=>(0,t.jsx)(n.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:m,tabIndex:0,...c,ref:s,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&d})})});function w(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}N.displayName=k,e.s(["Content",()=>N,"List",()=>v,"Root",()=>g,"Tabs",()=>g,"TabsContent",()=>N,"TabsList",()=>v,"TabsTrigger",()=>j,"Trigger",()=>j,"createTabsScope",()=>m],743133);var S=e.i(743133),S=S,R=e.i(131777);let D=S.Root,T=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(S.List,{ref:s,className:(0,R.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},s)=>(0,t.jsx)(S.Trigger,{ref:s,className:(0,R.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 L=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(S.Content,{ref:s,className:(0,R.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));L.displayName=S.Content.displayName,e.s(["Tabs",()=>D,"TabsContent",()=>L,"TabsList",()=>T,"TabsTrigger",()=>A],468304)},619933,e=>{"use strict";let t=(0,e.i(903645).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",()=>t],619933)},602287,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(90033),a=e.i(860253),l=e.i(131777);let i=s.Dialog.Root,n=s.Dialog.Trigger,o=s.Dialog.Portal,d=s.Dialog.Close,c=r.forwardRef(({className:e,onClick:r,...a},i)=>(0,t.jsx)(s.Dialog.Overlay,{ref:i,className:(0,l.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)},...a}));c.displayName=s.Dialog.Overlay.displayName;let u=r.forwardRef(({className:e,children:r,...i},n)=>(0,t.jsxs)(o,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(s.Dialog.Content,{ref:n,className:(0,l.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),...i,children:[r,(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)(a.X,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));u.displayName=s.Dialog.Content.displayName;let f=({className:e,...r})=>(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-start",e),...r});f.displayName="DialogHeader";let m=({className:e,...r})=>(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});m.displayName="DialogFooter";let p=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(s.Dialog.Title,{ref:a,className:(0,l.cn)("text-lg leading-none font-semibold tracking-tight",e),...r}));p.displayName=s.Dialog.Title.displayName;let h=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(s.Dialog.Description,{ref:a,className:(0,l.cn)("text-muted-foreground text-sm",e),...r}));h.displayName=s.Dialog.Description.displayName,e.s(["Dialog",()=>i,"DialogClose",()=>d,"DialogContent",()=>u,"DialogDescription",()=>h,"DialogFooter",()=>m,"DialogHeader",()=>f,"DialogTitle",()=>p,"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)},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),s=e.i(317406),a=e.i(508893);let l=(0,a.createServerReference)("40f07513aa1c0e813c802fc093ccedf3f983c32dce",a.callServer,void 0,a.findSourceMapURL,"deployFeature"),i=(0,a.createServerReference)("40168bcbd07a153b51a47e534636398af1478b3357",a.callServer,void 0,a.findSourceMapURL,"deployRepository");e.s(["deployRepository",()=>i],120716);let n=(0,a.createServerReference)("4092e06c387d5277093b0c3ab0d02c67d0634c3c36",a.callServer,void 0,a.findSourceMapURL,"deployApplication"),o=(0,a.createServerReference)("409823ed6e50482ab029132da1af3bc99aaa94ce52",a.callServer,void 0,a.findSourceMapURL,"stopDeployment");e.s(["stopDeployment",()=>o],464139);let d=(0,a.createServerReference)("408132a4d33adc8c71a573e5f9f01866bd95ce81ae",a.callServer,void 0,a.findSourceMapURL,"getDeploymentStatus");var c=e.i(118354);let u={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)??u}update(e,t){let r={...this.entries.get(e)??u,...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,u],481605);let m=(0,c.createLogger)("[DeploymentStatusProvider]"),p=new Set([s.DeploymentState.Booting,s.DeploymentState.Ready]),h=(0,r.createContext)(null);function x({initialDeployments:e,children:a}){let c=(0,r.useRef)(null);c.current||(c.current=new f,c.current.hydrate(e));let u=c.current;(0,r.useEffect)(()=>{u.hydrate(e)},[e,u]);let x=(0,r.useRef)(new Map),g=(0,r.useCallback)(e=>{let t=x.current.get(e);t&&(clearInterval(t),x.current.delete(e))},[]),y=(0,r.useCallback)(e=>{if(x.current.has(e))return;let t=setInterval(async()=>{let t;try{t=await d(e)}catch(t){m.warn(`poll failed for "${e}"`,t),u.setStatus(e,null),g(e);return}if(!t||t.state===s.DeploymentState.Stopped){u.setStatus(e,null),g(e);return}u.setStatus(e,t)},3e3);x.current.set(e,t)},[u,g]);(0,r.useEffect)(()=>{let e=x.current,t=u.subscribeAll(()=>{for(let[t]of e){let e=u.getEntry(t);e.status&&p.has(e.status)||g(t)}});return()=>{for(let[,r]of(t(),e))clearInterval(r);e.clear()}},[u,g]);let v=(0,r.useCallback)(e=>{if(e&&!u.getEntry(e).hydrated){if(u.isFullyHydrated())return void u.update(e,{hydrated:!0});u.update(e,{hydrated:!0}),(async()=>{try{let t=await d(e);u.setStatus(e,t),t&&p.has(t.state)&&y(e)}catch(t){m.warn(`ensureHydrated failed for "${e}"`,t)}})()}},[u,y]),b=(0,r.useCallback)(async e=>{u.update(e.targetId,{deployLoading:!0,deployError:null});try{let t="feature"===e.targetType?await l(e.targetId):"application"===e.targetType?await n(e.targetId):await i(e.repositoryPath);if(!t.success)return void u.update(e.targetId,{deployLoading:!1,deployError:t.error??"An unexpected error occurred"});u.update(e.targetId,{deployLoading:!1,status:t.state??null,url:null,hydrated:!0,targetType:e.targetType}),y(e.targetId)}catch(r){let t=r instanceof Error?r.message:"An unexpected error occurred";u.update(e.targetId,{deployLoading:!1,deployError:t})}},[u,y]),j=(0,r.useCallback)(async e=>{if(e){u.update(e,{stopLoading:!0});try{(await o(e)).success?(g(e),u.update(e,{stopLoading:!1,status:null,url:null})):u.update(e,{stopLoading:!1})}catch(t){m.warn("stop error (non-critical)",t),u.update(e,{stopLoading:!1})}}},[u,g]),k=(0,r.useMemo)(()=>({store:u,deploy:b,stop:j,ensureHydrated:v}),[u,b,j,v]);return(0,t.jsx)(h.Provider,{value:k,children:a})}function g(){let e=(0,r.useContext)(h);if(!e)throw Error("useDeploymentStatusContext must be used within a <DeploymentStatusProvider>");return e}function y(){let e=(0,r.useContext)(h);return e||v}let v={store:new f,deploy:async()=>{},stop:async()=>{},ensureHydrated:()=>{}};e.s(["DeploymentStatusProvider",()=>x,"useDeploymentStatusContext",()=>g,"useDeploymentStatusContextOptional",()=>y],873504)},8537,e=>{"use strict";var t=e.i(152155),r=e.i(873504);function s(){}function a(e){let{store:a,deploy:l,stop:i,ensureHydrated:n}=(0,r.useDeploymentStatusContextOptional)(),o=e?.targetId??"",d=(0,t.useCallback)(e=>o?a.subscribe(o,e):s,[a,o]),c=(0,t.useCallback)(()=>o?a.getEntry(o):a.getEntry(""),[a,o]),u=(0,t.useSyncExternalStore)(d,c,c);return(0,t.useEffect)(()=>{o&&n(o)},[o,n]),{deploy:(0,t.useCallback)(async()=>{e&&await l(e)},[l,e]),stop:(0,t.useCallback)(async()=>{o&&await i(o)},[i,o]),deployLoading:u.deployLoading,stopLoading:u.stopLoading,deployError:u.deployError,status:u.status,url:u.url}}e.s(["useDeployAction",()=>a])},1650,e=>{"use strict";e.i(511495),e.s([])},454793,207729,e=>{"use strict";var t=e.i(679606),r=e.i(131777);function s({icon:e,title:s,description:a,action:l,className:i,...n}){return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center gap-4 px-4 py-12 text-center",i),...n,children:[e?(0,t.jsx)("div",{className:"text-muted-foreground",children:e}):null,(0,t.jsx)("h3",{className:"text-lg font-semibold",children:s}),a?(0,t.jsx)("p",{className:"text-muted-foreground max-w-md text-sm",children:a}):null,l?(0,t.jsx)("div",{className:"mt-2",children:l}):null]})}e.s(["EmptyState",()=>s],207729),e.s([],454793)},809443,185871,e=>{"use strict";var t=e.i(679606),r=e.i(131777);function s({title:e,description:s,children:a,className:l}){return(0,t.jsxs)("header",{className:(0,r.cn)("flex items-center justify-between gap-4",l),children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:e}),s?(0,t.jsx)("p",{className:"text-muted-foreground",children:s}):null]}),a?(0,t.jsx)("div",{"data-slot":"actions",children:a}):null]})}e.s(["PageHeader",()=>s],185871),e.s([],809443)},200956,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(131777);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("bg-card text-card-foreground rounded-xl border shadow",e),...r}));a.displayName="Card";let l=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...r}));l.displayName="CardHeader";let i=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("leading-none font-semibold tracking-tight",e),...r}));i.displayName="CardTitle";let n=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("text-muted-foreground text-sm",e),...r}));n.displayName="CardDescription";let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("p-6 pt-0",e),...r}));o.displayName="CardContent",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center p-6 pt-0",e),...r})).displayName="CardFooter",e.s(["Card",()=>a,"CardContent",()=>o,"CardDescription",()=>n,"CardHeader",()=>l,"CardTitle",()=>i])},638752,e=>{"use strict";var t=e.i(679606);e.i(1650);var r=e.i(511495),s=e.i(845811),a=e.i(81846),l=e.i(425235),i=e.i(619933);function n({skill:e,onClose:n}){return(0,t.jsx)(r.BaseDrawer,{open:null!==e,onClose:n,size:"sm",modal:!0,"data-testid":"skill-detail-drawer",header:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.DrawerTitle,{children:e.displayName}),(0,t.jsx)(s.DrawerDescription,{children:e.name})]}):void 0,children:e?(0,t.jsxs)("div",{className:"px-4 pb-4",children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(a.Badge,{variant:"project"===e.source?"secondary":"outline",children:"project"===e.source?"Project":"Global"}),(0,t.jsx)(a.Badge,{variant:"outline",children:e.category}),e.context?(0,t.jsx)(a.Badge,{variant:"outline",children:e.context}):null]}),e.allowedTools?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:"Allowed Tools"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:e.allowedTools})]})]}):null,e.resources.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:"Resources"}),(0,t.jsx)("ul",{className:"mt-2 space-y-1.5",children:e.resources.map(e=>(0,t.jsxs)("li",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[(0,t.jsx)(i.FolderOpen,{className:"size-3.5 shrink-0"}),(0,t.jsxs)("span",{children:[e.name,"/ — ",e.fileCount," ",1===e.fileCount?"file":"files"]})]},e.name))})]})]}):null,e.body?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{className:"my-4"}),(0,t.jsx)("pre",{className:"text-muted-foreground text-sm leading-relaxed whitespace-pre-wrap",children:e.body})]}):null]}):null})}e.s(["SkillDetailDrawer",()=>n])},316919,e=>{"use strict";var t=e.i(679606),r=e.i(152155),s=e.i(66459),a=e.i(912103),l=e.i(698127),i=e.i(735364);e.i(809443);var n=e.i(185871);e.i(454793);var o=e.i(207729),d=e.i(200956),c=e.i(81846),u=e.i(619933);function f({skill:e,onSelect:r}){return(0,t.jsxs)(d.Card,{className:"hover:border-primary/50 cursor-pointer transition-colors",role:"button",tabIndex:0,onClick:()=>r(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),r(e))},"data-testid":`skill-card-${e.name}`,children:[(0,t.jsxs)(d.CardHeader,{className:"pb-3",children:[(0,t.jsx)(d.CardTitle,{className:"text-base",children:e.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground font-mono text-xs",children:e.name})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-2 text-sm",children:e.description}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(c.Badge,{variant:"project"===e.source?"secondary":"outline",children:"project"===e.source?"Project":"Global"}),e.context?(0,t.jsx)(c.Badge,{variant:"outline",children:e.context}):null,e.allowedTools?(0,t.jsx)(c.Badge,{variant:"outline",children:"Tools"}):null,e.resources.length>0?(0,t.jsxs)("span",{className:"text-muted-foreground inline-flex items-center gap-1 text-xs",children:[(0,t.jsx)(u.FolderOpen,{className:"size-3"}),e.resources.length," ",1===e.resources.length?"resource":"resources"]}):null]})]})]})}let m=["Workflow","Code Generation","Analysis","Reference"];function p({skills:e,onSkillSelect:r}){let s=function(e){let t=new Map;for(let r of e){let e=t.get(r.category)??[];e.push(r),t.set(r.category,e)}return t}(e);return(0,t.jsx)("div",{className:"space-y-8",children:m.map(e=>{let a=s.get(e);return a&&0!==a.length?(0,t.jsxs)("section",{children:[(0,t.jsxs)("h2",{className:"mb-4 text-lg font-semibold",children:[e," ",(0,t.jsxs)("span",{className:"text-muted-foreground text-sm font-normal",children:["(",a.length,")"]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:a.map(e=>(0,t.jsx)(f,{skill:e,onSelect:r},e.name))})]},e):null})})}let h=[{label:"All",value:null},{label:"Workflow",value:"Workflow"},{label:"Code Generation",value:"Code Generation"},{label:"Analysis",value:"Analysis"},{label:"Reference",value:"Reference"}];function x({activeCategory:e,onCategoryChange:r,counts:s}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Filter by category",children:h.map(({label:a,value:l})=>(0,t.jsxs)(i.Button,{variant:e===l?"default":"outline",size:"sm",onClick:()=>r(l),children:[a,s&&l?(0,t.jsxs)("span",{className:"ms-1 text-xs opacity-70",children:["(",s[l],")"]}):null]},a))})}var g=e.i(638752),y=e.i(425235),v=e.i(711434),b=e.i(3214),j=e.i(860253),k=e.i(360112),N=e.i(508893);let w=(0,N.createServerReference)("401f41a92dcc12f043410bad18392e7e69788319be",N.callServer,void 0,N.findSourceMapURL,"removeInjectedSkill");var C=e.i(602287),S=e.i(141957),R=e.i(468304);let D=(0,N.createServerReference)("404c4562ef6f327be977aab8e8ec6bcf054a784451",N.callServer,void 0,N.findSourceMapURL,"addInjectedSkill");function T({open:e,onOpenChange:s,onAdded:a,discoveredSkills:n,existingSkillNames:o}){let[d,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(""),[m,p]=(0,r.useState)(""),[h,x]=(0,r.useState)(""),g=n.filter(e=>!o.includes(e.name)),y=async e=>{c(!0);let t=await D({name:e.name,type:"local",source:`.claude/skills/${e.name}`});(c(!1),t.success)?(k.toast.success(`Added "${e.name}" to feature skills`),a()):k.toast.error(t.error??"Failed to add skill")},v=async()=>{if(!u.trim()||!m.trim())return void k.toast.error("Name and source are required");c(!0);let e=await D({name:u.trim(),type:"remote",source:m.trim(),...h.trim()&&{remoteSkillName:h.trim()}});(c(!1),e.success)?(k.toast.success(`Added "${u.trim()}" to feature skills`),f(""),p(""),x(""),a()):k.toast.error(e.error??"Failed to add skill")};return(0,t.jsx)(C.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(C.DialogContent,{className:"sm:max-w-md","data-testid":"add-skill-dialog",children:[(0,t.jsx)(C.DialogHeader,{children:(0,t.jsx)(C.DialogTitle,{children:"Add Skill to Features"})}),(0,t.jsxs)(R.Tabs,{defaultValue:"local",children:[(0,t.jsxs)(R.TabsList,{className:"w-full",children:[(0,t.jsx)(R.TabsTrigger,{value:"local",className:"flex-1",children:"Local"}),(0,t.jsx)(R.TabsTrigger,{value:"remote",className:"flex-1",children:"Remote"})]}),(0,t.jsx)(R.TabsContent,{value:"local",className:"mt-4",children:0===g.length?(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"All discovered skills are already configured."}):(0,t.jsx)("div",{className:"flex max-h-60 flex-col gap-2 overflow-y-auto",children:g.map(e=>(0,t.jsxs)("button",{type:"button",className:"hover:bg-accent flex flex-col gap-0.5 rounded-md border p-3 text-left transition-colors",onClick:()=>y(e),disabled:d,"data-testid":`add-local-skill-${e.name}`,children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.displayName}),(0,t.jsx)("span",{className:"text-muted-foreground line-clamp-1 text-xs",children:e.description})]},e.name))})}),(0,t.jsx)(R.TabsContent,{value:"remote",className:"mt-4",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-name",children:"Name"}),(0,t.jsx)(l.Input,{id:"remote-name",placeholder:"e.g. remotion-best-practices",value:u,onChange:e=>f(e.target.value),"data-testid":"remote-skill-name"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-source",children:"Source (npm package or URL)"}),(0,t.jsx)(l.Input,{id:"remote-source",placeholder:"e.g. @anthropic/remotion-skills",value:m,onChange:e=>p(e.target.value),"data-testid":"remote-skill-source"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(S.Label,{htmlFor:"remote-skill-name",children:"Skill Name (optional)"}),(0,t.jsx)(l.Input,{id:"remote-skill-name",placeholder:"e.g. remotion-best-practices",value:h,onChange:e=>x(e.target.value),"data-testid":"remote-skill-skill-name"})]}),(0,t.jsx)(C.DialogFooter,{children:(0,t.jsx)(i.Button,{onClick:v,disabled:d||!u.trim()||!m.trim(),"data-testid":"add-remote-skill-submit",children:"Add Remote Skill"})})]})})]})]})})}function A({config:e,discoveredSkills:s}){let a=(0,v.useRouter)(),[l,n]=(0,r.useState)(!1),[o,d]=(0,r.useState)(null),c=(0,r.useMemo)(()=>{let e=new Map;for(let t of s)e.set(t.name,t.description);return e},[s]),u=async e=>{d(e);let t=await w(e);(d(null),t.success)?(k.toast.success(`Removed "${e}" from feature skills`),a.refresh()):k.toast.error(t.error??"Failed to remove skill")};return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-base font-semibold",children:"Feature Skills"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Curated skills included in new feature worktrees to guide the agent"})]}),e.skills.length>0?(0,t.jsx)("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:e.skills.map(e=>(0,t.jsx)(L,{skill:e,description:c.get(e.name),onRemove:()=>u(e.name),isRemoving:o===e.name},e.name))}):(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"No skills configured. Add skills to guide the agent when working on new features."}),(0,t.jsx)("div",{children:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:()=>n(!0),"data-testid":"add-injected-skill-button",children:[(0,t.jsx)(b.Plus,{className:"mr-1.5 size-4"}),"Add Skill"]})}),(0,t.jsx)(T,{open:l,onOpenChange:n,onAdded:()=>{n(!1),a.refresh()},discoveredSkills:s,existingSkillNames:e.skills.map(e=>e.name)})]})}function L({skill:e,description:r,onRemove:s,isRemoving:a}){return(0,t.jsxs)(d.Card,{"data-testid":`injected-skill-${e.name}`,children:[(0,t.jsxs)(d.CardHeader,{className:"flex flex-row items-start justify-between gap-2 pb-2",children:[(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)(d.CardTitle,{className:"truncate text-sm",children:e.name})}),(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:s,disabled:a,"aria-label":`Remove ${e.name}`,"data-testid":`remove-injected-skill-${e.name}`,children:(0,t.jsx)(j.X,{className:"size-4"})})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-2 pt-0",children:[r?(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-2 text-xs",children:r}):null,(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(c.Badge,{variant:"local"===e.type?"secondary":"outline",className:"text-xs",children:"local"===e.type?"Local":"Remote"}),(0,t.jsx)("span",{className:"text-muted-foreground max-w-37.5 truncate text-xs",children:e.source})]})]})]})}function E({skills:e,injectionConfig:d}){let[c,u]=(0,r.useState)(""),[f,m]=(0,r.useState)(null),[h,v]=(0,r.useState)(null),b=(0,r.useMemo)(()=>(function(e){let t={Workflow:0,"Code Generation":0,Analysis:0,Reference:0};for(let r of e)t[r.category]++;return t})(e),[e]),j=(0,r.useMemo)(()=>{let t=c.toLowerCase();return e.filter(e=>{if(f&&e.category!==f)return!1;if(t){let r=e.name.toLowerCase().includes(t),s=e.description.toLowerCase().includes(t);if(!r&&!s)return!1}return!0})},[e,c,f]);return 0===e.length?(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,t.jsx)(n.PageHeader,{title:"Skills",description:"Claude Code skills available to this project"}),(0,t.jsx)(A,{config:d,discoveredSkills:e}),(0,t.jsx)(y.Separator,{}),(0,t.jsx)(o.EmptyState,{icon:(0,t.jsx)(a.Puzzle,{className:"size-10"}),title:"No skills found",description:"No Claude Code skills are installed. Add skills to .claude/skills/ to get started."})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,t.jsx)(n.PageHeader,{title:"Skills",description:"Claude Code skills available to this project"}),(0,t.jsx)(A,{config:d,discoveredSkills:e}),(0,t.jsx)(y.Separator,{}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(s.Search,{className:"text-muted-foreground absolute top-1/2 left-3 size-4 -translate-y-1/2"}),(0,t.jsx)(l.Input,{placeholder:"Search skills...",value:c,onChange:e=>u(e.target.value),className:"ps-9"})]}),(0,t.jsx)(x,{activeCategory:f,onCategoryChange:m,counts:b}),j.length>0?(0,t.jsx)(p,{skills:j,onSkillSelect:v}):(0,t.jsx)(o.EmptyState,{icon:(0,t.jsx)(s.Search,{className:"size-10"}),title:"No matching skills",description:"No skills match your current search and filter criteria.",action:(0,t.jsx)(i.Button,{variant:"outline",onClick:()=>{u(""),m(null)},children:"Clear filters"})}),(0,t.jsx)(g.SkillDetailDrawer,{skill:h,onClose:()=>v(null)})]})}e.s(["SkillsPageClient",()=>E],316919)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,993192,e=>{"use strict";let t=(0,e.i(903645).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",()=>t],993192)},938518,e=>{"use strict";let t=(0,e.i(903645).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],938518)},976874,e=>{"use strict";let t=(0,e.i(903645).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",()=>t],976874)},220206,(e,t,r)=>{"use strict";var i=e.r(152155),n=e.r(56032),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,l=i.useRef,s=i.useEffect,u=i.useMemo,c=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=o(e,(f=u(function(){function e(e){if(!s){if(s=!0,o=e,e=i(e),void 0!==n&&d.hasValue){var t=d.value;if(n(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=i(e);return void 0!==n&&n(t,r)?(o=e,t):(o=e,l=r)}var o,l,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,i,n]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},596482,(e,t,r)=>{"use strict";t.exports=e.r(220206)},161610,321137,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function i(){}var n="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${n},${n},${n}\\)$`),u=RegExp(`^rgb\\(${o},${o},${o}\\)$`),c=RegExp(`^rgba\\(${n},${n},${n},${a}\\)$`),f=RegExp(`^rgba\\(${o},${o},${o},${a}\\)$`),d=RegExp(`^hsl\\(${a},${o},${o}\\)$`),h=RegExp(`^hsla\\(${a},${o},${o},${a}\\)$`),x={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function p(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function y(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?b(t):3===r?new w(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?m(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new w(t[1],t[2],t[3],1):(t=u.exec(e))?new w(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?m(t[1],t[2],t[3],t[4]):(t=f.exec(e))?m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?E(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?E(t[1],t[2]/100,t[3]/100,t[4]):x.hasOwnProperty(e)?b(x[e]):"transparent"===e?new w(NaN,NaN,NaN,0):null}function b(e){return new w(e>>16&255,e>>8&255,255&e,1)}function m(e,t,r,i){return i<=0&&(e=t=r=NaN),new w(e,t,r,i)}function v(e,t,r,n){var a;return 1==arguments.length?((a=e)instanceof i||(a=y(a)),a)?new w((a=a.rgb()).r,a.g,a.b,a.opacity):new w:new w(e,t,r,null==n?1:n)}function w(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function N(){return`#${$(this.r)}${$(this.g)}${$(this.b)}`}function j(){let e=k(this.opacity);return`${1===e?"rgb(":"rgba("}${S(this.r)}, ${S(this.g)}, ${S(this.b)}${1===e?")":`, ${e})`}`}function k(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function S(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $(e){return((e=S(e))<16?"0":"")+e.toString(16)}function E(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,r,i)}function M(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=y(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=NaN,s=o-a,u=(o+a)/2;return s?(l=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=u<.5?o+a:2-o-a,l*=60):s=u>0&&u<1?0:l,new O(l,s,u,e.opacity)}function O(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function I(e){return(e=(e||0)%360)<0?e+360:e}function A(e){return Math.max(0,Math.min(1,e||0))}function C(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(i,y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p,formatHex:p,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return M(this).formatHsl()},formatRgb:g,toString:g}),t(w,v,r(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w(S(this.r),S(this.g),S(this.b),k(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatHex8:function(){return`#${$(this.r)}${$(this.g)}${$(this.b)}${$((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),t(O,function(e,t,r,i){return 1==arguments.length?M(e):new O(e,t,r,null==i?1:i)},r(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new O(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new w(C(e>=240?e-240:e+120,n,i),C(e,n,i),C(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new O(I(this.h),A(this.s),A(this.l),k(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=k(this.opacity);return`${1===e?"hsl(":"hsla("}${I(this.h)}, ${100*A(this.s)}%, ${100*A(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",()=>y,"rgb",()=>v],321137),e.s(["color",()=>y],161610)},145665,181503,e=>{"use strict";var t=e.i(321137);function r(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}let i=e=>()=>e;function n(e,t){var r=t-e;return r?function(t){return e+t*r}:i(isNaN(e)?t:e)}e.s(["default",0,i],181503);let a=function e(r){var a,o=1==(a=+r)?n:function(e,t){var r,n,o;return t-e?(r=e,n=t,r=Math.pow(r,o=a),n=Math.pow(n,o)-r,o=1/o,function(e){return Math.pow(r+e*n,o)}):i(isNaN(e)?t:e)};function l(e,r){var i=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),a=o(e.g,r.g),l=o(e.b,r.b),s=n(e.opacity,r.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=l(t),e.opacity=s(t),e+""}}return l.gamma=e,l}(1);function o(e){return function(r){var i,n,a=r.length,o=Array(a),l=Array(a),s=Array(a);for(i=0;i<a;++i)n=(0,t.rgb)(r[i]),o[i]=n.r||0,l[i]=n.g||0,s[i]=n.b||0;return o=e(o),l=e(l),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=l(e),n.b=s(e),n+""}}}o(function(e){var t=e.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),a=e[n],o=e[n+1],l=n>0?e[n-1]:2*a-o,s=n<t-1?e[n+2]:2*o-a;return r((i-n/t)*t,l,a,o,s)}}),o(function(e){var t=e.length;return function(i){var n=Math.floor(((i%=1)<0?++i:i)*t),a=e[(n+t-1)%t],o=e[n%t],l=e[(n+1)%t],s=e[(n+2)%t];return r((i-n/t)*t,a,o,l,s)}}),e.s(["default",0,a],145665)},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>i],819505);var t=e.i(213570);function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function i(e,r){var i,n=r?r.length:0,a=e?Math.min(n,e.length):0,o=Array(a),l=Array(n);for(i=0;i<a;++i)o[i]=(0,t.default)(e[i],r[i]);for(;i<n;++i)l[i]=r[i];return function(e){for(i=0;i<a;++i)l[i]=o[i](e);return l}}e.s(["default",0,function(e,t){t||(t=[]);var r,i=e?Math.min(t.length,e.length):0,n=t.slice();return function(a){for(r=0;r<i;++r)n[r]=e[r]*(1-a)+t[r]*a;return n}},"isNumberArray",()=>r],238816),e.s(["default",0,function(e,t){var r=new Date;return e*=1,t*=1,function(i){return r.setTime(e*(1-i)+t*i),r}}],97376)},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},905660,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(213570);function r(e,r){var i,n={},a={};for(i in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)i in e?n[i]=(0,t.default)(e[i],r[i]):a[i]=r[i];return function(e){for(i in n)a[i]=n[i](e);return a}}},647483,e=>{"use strict";var t=e.i(842541),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(r.source,"g");e.s(["default",0,function(e,n){var a,o,l,s,u,c=r.lastIndex=i.lastIndex=0,f=-1,d=[],h=[];for(e+="",n+="";(l=r.exec(e))&&(s=i.exec(n));)(u=s.index)>c&&(u=n.slice(c,u),d[f]?d[f]+=u:d[++f]=u),(l=l[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:(0,t.default)(l,s)})),c=i.lastIndex;return c<n.length&&(u=n.slice(c),d[f]?d[f]+=u:d[++f]=u),d.length<2?h[0]?(a=h[0].x,function(e){return a(e)+""}):(o=n,function(){return o}):(n=h.length,function(e){for(var t,r=0;r<n;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},678152,213570,e=>{"use strict";e.s(["default",()=>c],213570);var t=e.i(161610),r=e.i(145665),i=e.i(819505),n=e.i(97376),a=e.i(842541),o=e.i(905660),l=e.i(647483),s=e.i(181503),u=e.i(238816);function c(e,c){var f,d=typeof c;return null==c||"boolean"===d?(0,s.default)(c):("number"===d?a.default:"string"===d?(f=(0,t.color)(c))?(c=f,r.default):l.default:c instanceof t.color?r.default:c instanceof Date?n.default:(0,u.isNumberArray)(c)?u.default:Array.isArray(c)?i.genericArray:"function"!=typeof c.valueOf&&"function"!=typeof c.toString||isNaN(c)?o.default:a.default)(e,c)}e.s(["interpolate",0,c],678152)},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},204461,499915,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(735364),n=e.i(81846),a=e.i(317406),o=e.i(508893);let l=(0,o.createServerReference)("60bb2893aaa264de4d37c6822549157d222c12e77e",o.callServer,void 0,o.findSourceMapURL,"updatePmProject");e.s(["updatePmProject",()=>l],499915);let s=[{value:a.EstimateType.None,label:"None",description:"No estimates"},{value:a.EstimateType.Category,label:"T-Shirt Sizes",description:"XS, S, M, L, XL"},{value:a.EstimateType.Points,label:"Fibonacci Points",description:"1, 2, 3, 5, 8, 13, 21"}];function u({projectId:e,currentEstimateType:a,onEstimateTypeChange:o,className:u}){let[c,f]=(0,r.useState)(a),[d,h]=(0,r.useState)(!1),x=async t=>{t!==c&&(f(t),h(!0),await l(e,{estimateType:t}),h(!1),o?.(t))};return(0,t.jsxs)("div",{"data-testid":"estimate-settings",className:u,children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)("h3",{className:"text-xs font-medium",children:"Estimate System"}),d?(0,t.jsx)("span",{className:"text-muted-foreground text-[10px]",children:"Saving..."}):null]}),(0,t.jsx)("div",{className:"space-y-2",children:s.map(e=>(0,t.jsx)(i.Button,{variant:c===e.value?"default":"outline",size:"sm",className:"h-auto w-full justify-start px-3 py-2 text-left",onClick:()=>x(e.value),"data-testid":`estimate-option-${e.value}`,children:(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:e.label}),(0,t.jsx)("span",{className:"text-muted-foreground ml-2 text-[10px]",children:e.description})]}),c===e.value?(0,t.jsx)(n.Badge,{variant:"secondary",className:"text-[10px]",children:"Active"}):null]})},e.value))})]})}e.s(["EstimateSettings",()=>u],204461)},405682,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(602287),n=e.i(735364),a=e.i(698127),o=e.i(141957),l=e.i(48306),s=e.i(547373),u=e.i(508893);let c=(0,u.createServerReference)("40636385d98667911ae36ddd516cdbe565fb9b8e8e",u.callServer,void 0,u.findSourceMapURL,"createWorkItem");function f({open:e,onOpenChange:u,projectId:f,states:d,onCreated:h,parentId:x}){let[p,g]=(0,r.useState)(""),[y,b]=(0,r.useState)(""),[m,v]=(0,r.useState)(""),[w,N]=(0,r.useState)("None"),[j,k]=(0,r.useState)(null),[S,$]=(0,r.useState)(!1),E=async()=>{k(null),$(!0);try{let e=await c({projectId:f,title:p,description:y||void 0,stateId:m||void 0,priority:w||void 0,parentId:x??void 0});e.error?k(e.error):e.workItem&&(h(e.workItem),g(""),b(""),v(""),N("None"))}finally{$(!1)}};return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:u,children:(0,t.jsxs)(i.DialogContent,{"data-testid":"create-work-item-dialog",children:[(0,t.jsx)(i.DialogHeader,{children:(0,t.jsx)(i.DialogTitle,{children:x?"Create Sub-item":"Create Work Item"})}),(0,t.jsxs)("div",{className:"space-y-4 py-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{htmlFor:"work-item-title",children:"Title"}),(0,t.jsx)(a.Input,{id:"work-item-title",value:p,onChange:e=>g(e.target.value),placeholder:"What needs to be done?","data-testid":"work-item-title-input"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{htmlFor:"work-item-desc",children:"Description (optional)"}),(0,t.jsx)(l.Textarea,{id:"work-item-desc",value:y,onChange:e=>b(e.target.value),placeholder:"Add more details...",rows:3,"data-testid":"work-item-desc-input"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{children:"State"}),(0,t.jsxs)(s.Select,{value:m,onValueChange:v,children:[(0,t.jsx)(s.SelectTrigger,{"data-testid":"work-item-state-select",children:(0,t.jsx)(s.SelectValue,{placeholder:"Default"})}),(0,t.jsx)(s.SelectContent,{children:d.map(e=>(0,t.jsx)(s.SelectItem,{value:e.id,children:e.name},e.id))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{children:"Priority"}),(0,t.jsxs)(s.Select,{value:w,onValueChange:N,children:[(0,t.jsx)(s.SelectTrigger,{"data-testid":"work-item-priority-select",children:(0,t.jsx)(s.SelectValue,{placeholder:"None"})}),(0,t.jsxs)(s.SelectContent,{children:[(0,t.jsx)(s.SelectItem,{value:"None",children:"None"}),(0,t.jsx)(s.SelectItem,{value:"Low",children:"Low"}),(0,t.jsx)(s.SelectItem,{value:"Medium",children:"Medium"}),(0,t.jsx)(s.SelectItem,{value:"High",children:"High"}),(0,t.jsx)(s.SelectItem,{value:"Urgent",children:"Urgent"})]})]})]})]}),j?(0,t.jsx)("p",{className:"text-destructive text-xs","data-testid":"create-work-item-error",children:j}):null]}),(0,t.jsxs)(i.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",onClick:()=>u(!1),disabled:S,children:"Cancel"}),(0,t.jsx)(n.Button,{onClick:E,disabled:!p.trim()||S,"data-testid":"create-work-item-submit",children:S?"Creating...":"Create"})]})]})})}e.s(["CreateWorkItemDialog",()=>f],405682)},606581,e=>{"use strict";function t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",i=()=>Math.random().toString(36).substring(7).split("").join("."),n={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function o(e,i,l){if("function"!=typeof e)throw Error(t(2));if("function"==typeof i&&"function"==typeof l||"function"==typeof l&&"function"==typeof arguments[3])throw Error(t(0));if("function"==typeof i&&void 0===l&&(l=i,i=void 0),void 0!==l){if("function"!=typeof l)throw Error(t(1));return l(o)(e,i)}let s=e,u=i,c=new Map,f=c,d=0,h=!1;function x(){f===c&&(f=new Map,c.forEach((e,t)=>{f.set(t,e)}))}function p(){if(h)throw Error(t(3));return u}function g(e){if("function"!=typeof e)throw Error(t(4));if(h)throw Error(t(5));let r=!0;x();let i=d++;return f.set(i,e),function(){if(r){if(h)throw Error(t(6));r=!1,x(),f.delete(i),c=null}}}function y(e){if(!a(e))throw Error(t(7));if(void 0===e.type)throw Error(t(8));if("string"!=typeof e.type)throw Error(t(17));if(h)throw Error(t(9));try{h=!0,u=s(u,e)}finally{h=!1}return(c=f).forEach(e=>{e()}),e}return y({type:n.INIT}),{dispatch:y,subscribe:g,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(t(10));s=e,y({type:n.REPLACE})},[r]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(t(11));function r(){e.next&&e.next(p())}return r(),{unsubscribe:g(r)}},[r](){return this}}}}}function l(e){let r,i=Object.keys(e),a={};for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof e[r]&&(a[r]=e[r])}let o=Object.keys(a);try{Object.keys(a).forEach(e=>{let r=a[e];if(void 0===r(void 0,{type:n.INIT}))throw Error(t(12));if(void 0===r(void 0,{type:n.PROBE_UNKNOWN_ACTION()}))throw Error(t(13))})}catch(e){r=e}return function(e={},i){if(r)throw r;let n=!1,l={};for(let r=0;r<o.length;r++){let s=o[r],u=a[s],c=e[s],f=u(c,i);if(void 0===f)throw i&&i.type,Error(t(14));l[s]=f,n=n||f!==c}return(n=n||o.length!==Object.keys(e).length)?l:e}}function s(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function u(...e){return r=>(i,n)=>{let a=r(i,n),o=()=>{throw Error(t(15))},l={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=s(...e.map(e=>e(l)))(a.dispatch),{...a,dispatch:o}}}function c(e){return a(e)&&"type"in e&&"string"==typeof e.type}e.s(["applyMiddleware",()=>u,"combineReducers",()=>l,"compose",()=>s,"createStore",()=>o,"isAction",()=>c,"isPlainObject",()=>a])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,993192,e=>{"use strict";let t=(0,e.i(903645).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",()=>t],993192)},938518,e=>{"use strict";let t=(0,e.i(903645).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],938518)},976874,e=>{"use strict";let t=(0,e.i(903645).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",()=>t],976874)},220206,(e,t,r)=>{"use strict";var i=e.r(152155),n=e.r(56032),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,l=i.useRef,s=i.useEffect,u=i.useMemo,c=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=o(e,(f=u(function(){function e(e){if(!s){if(s=!0,o=e,e=i(e),void 0!==n&&d.hasValue){var t=d.value;if(n(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=i(e);return void 0!==n&&n(t,r)?(o=e,t):(o=e,l=r)}var o,l,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,i,n]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},596482,(e,t,r)=>{"use strict";t.exports=e.r(220206)},161610,321137,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function i(){}var n="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${n},${n},${n}\\)$`),u=RegExp(`^rgb\\(${o},${o},${o}\\)$`),c=RegExp(`^rgba\\(${n},${n},${n},${a}\\)$`),f=RegExp(`^rgba\\(${o},${o},${o},${a}\\)$`),d=RegExp(`^hsl\\(${a},${o},${o}\\)$`),h=RegExp(`^hsla\\(${a},${o},${o},${a}\\)$`),x={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function p(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function y(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?b(t):3===r?new w(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?m(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new w(t[1],t[2],t[3],1):(t=u.exec(e))?new w(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?m(t[1],t[2],t[3],t[4]):(t=f.exec(e))?m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?E(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?E(t[1],t[2]/100,t[3]/100,t[4]):x.hasOwnProperty(e)?b(x[e]):"transparent"===e?new w(NaN,NaN,NaN,0):null}function b(e){return new w(e>>16&255,e>>8&255,255&e,1)}function m(e,t,r,i){return i<=0&&(e=t=r=NaN),new w(e,t,r,i)}function v(e,t,r,n){var a;return 1==arguments.length?((a=e)instanceof i||(a=y(a)),a)?new w((a=a.rgb()).r,a.g,a.b,a.opacity):new w:new w(e,t,r,null==n?1:n)}function w(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function N(){return`#${$(this.r)}${$(this.g)}${$(this.b)}`}function j(){let e=k(this.opacity);return`${1===e?"rgb(":"rgba("}${S(this.r)}, ${S(this.g)}, ${S(this.b)}${1===e?")":`, ${e})`}`}function k(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function S(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $(e){return((e=S(e))<16?"0":"")+e.toString(16)}function E(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,r,i)}function M(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=y(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=NaN,s=o-a,u=(o+a)/2;return s?(l=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=u<.5?o+a:2-o-a,l*=60):s=u>0&&u<1?0:l,new O(l,s,u,e.opacity)}function O(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function I(e){return(e=(e||0)%360)<0?e+360:e}function A(e){return Math.max(0,Math.min(1,e||0))}function C(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(i,y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p,formatHex:p,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return M(this).formatHsl()},formatRgb:g,toString:g}),t(w,v,r(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w(S(this.r),S(this.g),S(this.b),k(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatHex8:function(){return`#${$(this.r)}${$(this.g)}${$(this.b)}${$((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),t(O,function(e,t,r,i){return 1==arguments.length?M(e):new O(e,t,r,null==i?1:i)},r(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new O(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new w(C(e>=240?e-240:e+120,n,i),C(e,n,i),C(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new O(I(this.h),A(this.s),A(this.l),k(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=k(this.opacity);return`${1===e?"hsl(":"hsla("}${I(this.h)}, ${100*A(this.s)}%, ${100*A(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",()=>y,"rgb",()=>v],321137),e.s(["color",()=>y],161610)},145665,181503,e=>{"use strict";var t=e.i(321137);function r(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}let i=e=>()=>e;function n(e,t){var r=t-e;return r?function(t){return e+t*r}:i(isNaN(e)?t:e)}e.s(["default",0,i],181503);let a=function e(r){var a,o=1==(a=+r)?n:function(e,t){var r,n,o;return t-e?(r=e,n=t,r=Math.pow(r,o=a),n=Math.pow(n,o)-r,o=1/o,function(e){return Math.pow(r+e*n,o)}):i(isNaN(e)?t:e)};function l(e,r){var i=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),a=o(e.g,r.g),l=o(e.b,r.b),s=n(e.opacity,r.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=l(t),e.opacity=s(t),e+""}}return l.gamma=e,l}(1);function o(e){return function(r){var i,n,a=r.length,o=Array(a),l=Array(a),s=Array(a);for(i=0;i<a;++i)n=(0,t.rgb)(r[i]),o[i]=n.r||0,l[i]=n.g||0,s[i]=n.b||0;return o=e(o),l=e(l),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=l(e),n.b=s(e),n+""}}}o(function(e){var t=e.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),a=e[n],o=e[n+1],l=n>0?e[n-1]:2*a-o,s=n<t-1?e[n+2]:2*o-a;return r((i-n/t)*t,l,a,o,s)}}),o(function(e){var t=e.length;return function(i){var n=Math.floor(((i%=1)<0?++i:i)*t),a=e[(n+t-1)%t],o=e[n%t],l=e[(n+1)%t],s=e[(n+2)%t];return r((i-n/t)*t,a,o,l,s)}}),e.s(["default",0,a],145665)},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>i],819505);var t=e.i(213570);function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function i(e,r){var i,n=r?r.length:0,a=e?Math.min(n,e.length):0,o=Array(a),l=Array(n);for(i=0;i<a;++i)o[i]=(0,t.default)(e[i],r[i]);for(;i<n;++i)l[i]=r[i];return function(e){for(i=0;i<a;++i)l[i]=o[i](e);return l}}e.s(["default",0,function(e,t){t||(t=[]);var r,i=e?Math.min(t.length,e.length):0,n=t.slice();return function(a){for(r=0;r<i;++r)n[r]=e[r]*(1-a)+t[r]*a;return n}},"isNumberArray",()=>r],238816),e.s(["default",0,function(e,t){var r=new Date;return e*=1,t*=1,function(i){return r.setTime(e*(1-i)+t*i),r}}],97376)},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},905660,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(213570);function r(e,r){var i,n={},a={};for(i in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)i in e?n[i]=(0,t.default)(e[i],r[i]):a[i]=r[i];return function(e){for(i in n)a[i]=n[i](e);return a}}},647483,e=>{"use strict";var t=e.i(842541),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(r.source,"g");e.s(["default",0,function(e,n){var a,o,l,s,u,c=r.lastIndex=i.lastIndex=0,f=-1,d=[],h=[];for(e+="",n+="";(l=r.exec(e))&&(s=i.exec(n));)(u=s.index)>c&&(u=n.slice(c,u),d[f]?d[f]+=u:d[++f]=u),(l=l[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:(0,t.default)(l,s)})),c=i.lastIndex;return c<n.length&&(u=n.slice(c),d[f]?d[f]+=u:d[++f]=u),d.length<2?h[0]?(a=h[0].x,function(e){return a(e)+""}):(o=n,function(){return o}):(n=h.length,function(e){for(var t,r=0;r<n;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},678152,213570,e=>{"use strict";e.s(["default",()=>c],213570);var t=e.i(161610),r=e.i(145665),i=e.i(819505),n=e.i(97376),a=e.i(842541),o=e.i(905660),l=e.i(647483),s=e.i(181503),u=e.i(238816);function c(e,c){var f,d=typeof c;return null==c||"boolean"===d?(0,s.default)(c):("number"===d?a.default:"string"===d?(f=(0,t.color)(c))?(c=f,r.default):l.default:c instanceof t.color?r.default:c instanceof Date?n.default:(0,u.isNumberArray)(c)?u.default:Array.isArray(c)?i.genericArray:"function"!=typeof c.valueOf&&"function"!=typeof c.toString||isNaN(c)?o.default:a.default)(e,c)}e.s(["interpolate",0,c],678152)},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},204461,309975,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(735364),n=e.i(81846),a=e.i(317406),o=e.i(508893);let l=(0,o.createServerReference)("60611c84e9caaf7a8effe6545d1aabce1508e45556",o.callServer,void 0,o.findSourceMapURL,"updatePmProject");e.s(["updatePmProject",()=>l],309975);let s=[{value:a.EstimateType.None,label:"None",description:"No estimates"},{value:a.EstimateType.Category,label:"T-Shirt Sizes",description:"XS, S, M, L, XL"},{value:a.EstimateType.Points,label:"Fibonacci Points",description:"1, 2, 3, 5, 8, 13, 21"}];function u({projectId:e,currentEstimateType:a,onEstimateTypeChange:o,className:u}){let[c,f]=(0,r.useState)(a),[d,h]=(0,r.useState)(!1),x=async t=>{t!==c&&(f(t),h(!0),await l(e,{estimateType:t}),h(!1),o?.(t))};return(0,t.jsxs)("div",{"data-testid":"estimate-settings",className:u,children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)("h3",{className:"text-xs font-medium",children:"Estimate System"}),d?(0,t.jsx)("span",{className:"text-muted-foreground text-[10px]",children:"Saving..."}):null]}),(0,t.jsx)("div",{className:"space-y-2",children:s.map(e=>(0,t.jsx)(i.Button,{variant:c===e.value?"default":"outline",size:"sm",className:"h-auto w-full justify-start px-3 py-2 text-left",onClick:()=>x(e.value),"data-testid":`estimate-option-${e.value}`,children:(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:e.label}),(0,t.jsx)("span",{className:"text-muted-foreground ml-2 text-[10px]",children:e.description})]}),c===e.value?(0,t.jsx)(n.Badge,{variant:"secondary",className:"text-[10px]",children:"Active"}):null]})},e.value))})]})}e.s(["EstimateSettings",()=>u],204461)},405682,e=>{"use strict";var t=e.i(679606),r=e.i(152155),i=e.i(602287),n=e.i(735364),a=e.i(698127),o=e.i(141957),l=e.i(48306),s=e.i(547373),u=e.i(508893);let c=(0,u.createServerReference)("404dbccdd7e086c9f1b5fcef7668b7dd23b2d11e32",u.callServer,void 0,u.findSourceMapURL,"createWorkItem");function f({open:e,onOpenChange:u,projectId:f,states:d,onCreated:h,parentId:x}){let[p,g]=(0,r.useState)(""),[y,b]=(0,r.useState)(""),[m,v]=(0,r.useState)(""),[w,N]=(0,r.useState)("None"),[j,k]=(0,r.useState)(null),[S,$]=(0,r.useState)(!1),E=async()=>{k(null),$(!0);try{let e=await c({projectId:f,title:p,description:y||void 0,stateId:m||void 0,priority:w||void 0,parentId:x??void 0});e.error?k(e.error):e.workItem&&(h(e.workItem),g(""),b(""),v(""),N("None"))}finally{$(!1)}};return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:u,children:(0,t.jsxs)(i.DialogContent,{"data-testid":"create-work-item-dialog",children:[(0,t.jsx)(i.DialogHeader,{children:(0,t.jsx)(i.DialogTitle,{children:x?"Create Sub-item":"Create Work Item"})}),(0,t.jsxs)("div",{className:"space-y-4 py-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{htmlFor:"work-item-title",children:"Title"}),(0,t.jsx)(a.Input,{id:"work-item-title",value:p,onChange:e=>g(e.target.value),placeholder:"What needs to be done?","data-testid":"work-item-title-input"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{htmlFor:"work-item-desc",children:"Description (optional)"}),(0,t.jsx)(l.Textarea,{id:"work-item-desc",value:y,onChange:e=>b(e.target.value),placeholder:"Add more details...",rows:3,"data-testid":"work-item-desc-input"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{children:"State"}),(0,t.jsxs)(s.Select,{value:m,onValueChange:v,children:[(0,t.jsx)(s.SelectTrigger,{"data-testid":"work-item-state-select",children:(0,t.jsx)(s.SelectValue,{placeholder:"Default"})}),(0,t.jsx)(s.SelectContent,{children:d.map(e=>(0,t.jsx)(s.SelectItem,{value:e.id,children:e.name},e.id))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(o.Label,{children:"Priority"}),(0,t.jsxs)(s.Select,{value:w,onValueChange:N,children:[(0,t.jsx)(s.SelectTrigger,{"data-testid":"work-item-priority-select",children:(0,t.jsx)(s.SelectValue,{placeholder:"None"})}),(0,t.jsxs)(s.SelectContent,{children:[(0,t.jsx)(s.SelectItem,{value:"None",children:"None"}),(0,t.jsx)(s.SelectItem,{value:"Low",children:"Low"}),(0,t.jsx)(s.SelectItem,{value:"Medium",children:"Medium"}),(0,t.jsx)(s.SelectItem,{value:"High",children:"High"}),(0,t.jsx)(s.SelectItem,{value:"Urgent",children:"Urgent"})]})]})]})]}),j?(0,t.jsx)("p",{className:"text-destructive text-xs","data-testid":"create-work-item-error",children:j}):null]}),(0,t.jsxs)(i.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",onClick:()=>u(!1),disabled:S,children:"Cancel"}),(0,t.jsx)(n.Button,{onClick:E,disabled:!p.trim()||S,"data-testid":"create-work-item-submit",children:S?"Creating...":"Create"})]})]})})}e.s(["CreateWorkItemDialog",()=>f],405682)},606581,e=>{"use strict";function t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",i=()=>Math.random().toString(36).substring(7).split("").join("."),n={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function o(e,i,l){if("function"!=typeof e)throw Error(t(2));if("function"==typeof i&&"function"==typeof l||"function"==typeof l&&"function"==typeof arguments[3])throw Error(t(0));if("function"==typeof i&&void 0===l&&(l=i,i=void 0),void 0!==l){if("function"!=typeof l)throw Error(t(1));return l(o)(e,i)}let s=e,u=i,c=new Map,f=c,d=0,h=!1;function x(){f===c&&(f=new Map,c.forEach((e,t)=>{f.set(t,e)}))}function p(){if(h)throw Error(t(3));return u}function g(e){if("function"!=typeof e)throw Error(t(4));if(h)throw Error(t(5));let r=!0;x();let i=d++;return f.set(i,e),function(){if(r){if(h)throw Error(t(6));r=!1,x(),f.delete(i),c=null}}}function y(e){if(!a(e))throw Error(t(7));if(void 0===e.type)throw Error(t(8));if("string"!=typeof e.type)throw Error(t(17));if(h)throw Error(t(9));try{h=!0,u=s(u,e)}finally{h=!1}return(c=f).forEach(e=>{e()}),e}return y({type:n.INIT}),{dispatch:y,subscribe:g,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(t(10));s=e,y({type:n.REPLACE})},[r]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(t(11));function r(){e.next&&e.next(p())}return r(),{unsubscribe:g(r)}},[r](){return this}}}}}function l(e){let r,i=Object.keys(e),a={};for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof e[r]&&(a[r]=e[r])}let o=Object.keys(a);try{Object.keys(a).forEach(e=>{let r=a[e];if(void 0===r(void 0,{type:n.INIT}))throw Error(t(12));if(void 0===r(void 0,{type:n.PROBE_UNKNOWN_ACTION()}))throw Error(t(13))})}catch(e){r=e}return function(e={},i){if(r)throw r;let n=!1,l={};for(let r=0;r<o.length;r++){let s=o[r],u=a[s],c=e[s],f=u(c,i);if(void 0===f)throw i&&i.type,Error(t(14));l[s]=f,n=n||f!==c}return(n=n||o.length!==Object.keys(e).length)?l:e}}function s(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function u(...e){return r=>(i,n)=>{let a=r(i,n),o=()=>{throw Error(t(15))},l={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=s(...e.map(e=>e(l)))(a.dispatch),{...a,dispatch:o}}}function c(e){return a(e)&&"type"in e&&"string"==typeof e.type}e.s(["applyMiddleware",()=>u,"combineReducers",()=>l,"compose",()=>s,"createStore",()=>o,"isAction",()=>c,"isPlainObject",()=>a])}]);
|