decocms 4.325.0 → 4.325.2
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/dist/client/assets/{AlertCircle-qkRvRfRP.js → AlertCircle-B0exjy2G.js} +1 -1
- package/dist/client/assets/{AreaChart-BATwk1bb.js → AreaChart-BbyZpwNl.js} +1 -1
- package/dist/client/assets/{ArrowLeft-xEKYdSEN.js → ArrowLeft-DDVITG8K.js} +1 -1
- package/dist/client/assets/{ArrowUp-Bl0SBXL4.js → ArrowUp-DY0nxQiU.js} +1 -1
- package/dist/client/assets/{Check-Bmui6n8a.js → Check-DFnPCTEg.js} +1 -1
- package/dist/client/assets/{CheckCircle-DmC1H0up.js → CheckCircle-DLOuSHro.js} +1 -1
- package/dist/client/assets/{ChevronRight-CnQYYyM7.js → ChevronRight-BcTQG1DI.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-C0PeDPEb.js → ChevronSelectorVertical-DMK3FCxp.js} +1 -1
- package/dist/client/assets/{ChevronUp-CC_s9uBr.js → ChevronUp-CVSn4-gi.js} +1 -1
- package/dist/client/assets/{Copy01-DDsbHXgC.js → Copy01-DXf2ReD_.js} +1 -1
- package/dist/client/assets/{CreditCard01-1sly0i_F.js → CreditCard01-Dufq2QQE.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dd1sEkCZ.js → DotsVertical-CqFpz0HG.js} +1 -1
- package/dist/client/assets/{Download01-DLr18AUl.js → Download01-GnhueTng.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CdWKbzEC.js → ErrorBarContext-7Y0x3JBZ.js} +1 -1
- package/dist/client/assets/{Eye-DpHe69gy.js → Eye-CHLagXa7.js} +1 -1
- package/dist/client/assets/{GitBranch01-CnyoksQT.js → GitBranch01-CQRzbSyx.js} +1 -1
- package/dist/client/assets/{Globe01-BosJuQ-2.js → Globe01-DyhA33s1.js} +1 -1
- package/dist/client/assets/{HardDrive-Dc5yobnu.js → HardDrive-eC4I4aqw.js} +1 -1
- package/dist/client/assets/{Image01-Dq8MtTBc.js → Image01-D6KzR28r.js} +1 -1
- package/dist/client/assets/{Key01-CPDJfD4K.js → Key01-CNitiCfD.js} +1 -1
- package/dist/client/assets/{Link01-bN977iyt.js → Link01-BHe0dd0_.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CEZzFDFF.js → LinkExternal01-CvQ-ylaK.js} +1 -1
- package/dist/client/assets/{Monitor01-BgWz2t9s.js → Monitor01-SbvebE9T.js} +1 -1
- package/dist/client/assets/{Package-xW7U_IHN.js → Package-BIDQhscg.js} +1 -1
- package/dist/client/assets/{Palette-h8FYNnaS.js → Palette-DgVW07vN.js} +1 -1
- package/dist/client/assets/{Play-CICSRd4f.js → Play-CR4MAXKW.js} +1 -1
- package/dist/client/assets/{Plus-DEQvgNJL.js → Plus-D-mogJXC.js} +1 -1
- package/dist/client/assets/{SearchMd-B51If2wF.js → SearchMd-BYpvO9Ao.js} +1 -1
- package/dist/client/assets/{Sector-DFkyq2dL.js → Sector-CorkPUdM.js} +1 -1
- package/dist/client/assets/{Settings02-DxNvJuvQ.js → Settings02-B2gnPQ3Q.js} +1 -1
- package/dist/client/assets/{Share07-4wfFEEmb.js → Share07-Bu5e840D.js} +1 -1
- package/dist/client/assets/{Shield01-BzdyjVwE.js → Shield01-BAHmK5_B.js} +1 -1
- package/dist/client/assets/{Stars01-Bb6amhXy.js → Stars01-CCTPiWmK.js} +1 -1
- package/dist/client/assets/{Sun-DUIWbbLf.js → Sun-aWHPBk6T.js} +1 -1
- package/dist/client/assets/{Tool01-BgsGAZUu.js → Tool01-DbPhfEvg.js} +1 -1
- package/dist/client/assets/{Tool02-eRuYPFV8.js → Tool02-8qVRgTeE.js} +1 -1
- package/dist/client/assets/{Trash01-wIyIG9fp.js → Trash01-CV8Q1VzZ.js} +1 -1
- package/dist/client/assets/{TrendUp01-BAGTZc-D.js → TrendUp01-yPe3UG0T.js} +1 -1
- package/dist/client/assets/{Upload01-Cckm1qUk.js → Upload01-B1Qytz_u.js} +1 -1
- package/dist/client/assets/{User01-BXgP91eQ.js → User01-DmJKrYPV.js} +1 -1
- package/dist/client/assets/{UserSquare-CANxBBrs.js → UserSquare-HSvWRq_9.js} +1 -1
- package/dist/client/assets/{Users01-DdVmVtsy.js → Users01-B4HgX8Cb.js} +1 -1
- package/dist/client/assets/{Users03-CrQagTbR.js → Users03-CMpVHpdR.js} +1 -1
- package/dist/client/assets/{XCircle-D3SkhE1s.js → XCircle-BN22j-Jn.js} +1 -1
- package/dist/client/assets/{XClose-BZMaJENw.js → XClose-N8lMtUXr.js} +1 -1
- package/dist/client/assets/{Zap-pdDkFead.js → Zap-BMyl5tLM.js} +1 -1
- package/dist/client/assets/{ZoomOut-DkUI6_zV.js → ZoomOut-BUSsAg6c.js} +1 -1
- package/dist/client/assets/{access-gate-CwhHHMO7.js → access-gate-BsoMn5at.js} +1 -1
- package/dist/client/assets/{agent-icon-BeYiauK7.js → agent-icon-DyMYbwSC.js} +1 -1
- package/dist/client/assets/{agents-list-Bu75rvWH.js → agents-list-DS28B9dy.js} +1 -1
- package/dist/client/assets/{ai-providers-B9oafhO2.js → ai-providers-D5QrIBul.js} +1 -1
- package/dist/client/assets/{alert-dialog-H5oy5IB0.js → alert-dialog-Bb1OlmEm.js} +1 -1
- package/dist/client/assets/{alert-zq7LYrux.js → alert-vGXUrUMH.js} +1 -1
- package/dist/client/assets/{analytics-tab-C1y43wVi.js → analytics-tab-CLBd26bq.js} +1 -1
- package/dist/client/assets/{api-keys-Bwfj9Na7.js → api-keys-AQ1KvOAI.js} +1 -1
- package/dist/client/assets/api-keys-onistOjb.js +1 -0
- package/dist/client/assets/{app-editor-CFvMQR0w.js → app-editor-CO72zzFt.js} +1 -1
- package/dist/client/assets/{auth-Dq_zaBWs.js → auth-Dy3Ai_hi.js} +1 -1
- package/dist/client/assets/{auth-catchall-u56dvXpO.js → auth-catchall-CAeQDale.js} +1 -1
- package/dist/client/assets/{auth-entry-jBHPgGdM.js → auth-entry-Bw_OxH2J.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CqUwH_K0.js → auth-split-layout-zISyI7ol.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-08i3Vh9j.js → authenticate-and-persist-oauth-DBIvzM9b.js} +1 -1
- package/dist/client/assets/{automation-list-row-4zC4VM95.js → automation-list-row-Cm527FOk.js} +1 -1
- package/dist/client/assets/{automation-runs-keFRWrJE.js → automation-runs-CHfOqm8r.js} +1 -1
- package/dist/client/assets/{automations-BPUSrqs2.js → automations-ZjgouUBF.js} +1 -1
- package/dist/client/assets/{avatar-C7YZIoOv.js → avatar-B8b2hWV1.js} +1 -1
- package/dist/client/assets/{badge-BGxAvzDU.js → badge-DiXK5Efu.js} +1 -1
- package/dist/client/assets/{block-document-D6wHgW1M.js → block-document-ItsWS1DV.js} +1 -1
- package/dist/client/assets/{breadcrumb-C8_Fp7hZ.js → breadcrumb-C5kFXgQY.js} +1 -1
- package/dist/client/assets/{buckets-CB86vC40.js → buckets-BapAtm2k.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DstMrHCc.js → bulk-category-panel-D9GBldVp.js} +1 -1
- package/dist/client/assets/{capability-load-error-CS3cBwaC.js → capability-load-error-RzShLZ2L.js} +1 -1
- package/dist/client/assets/{cards-JextA67c.js → cards-BdTZBvrL.js} +1 -1
- package/dist/client/assets/{category-editor-Cabu7j7v.js → category-editor-C2R7fccg.js} +1 -1
- package/dist/client/assets/{cdn-tab-BKiPB1OF.js → cdn-tab-BL4NoAOo.js} +1 -1
- package/dist/client/assets/{chart-CNuf1gFw.js → chart-kfhwAaMN.js} +1 -1
- package/dist/client/assets/{chat-context-B0FMNiU7.js → chat-context-D2SP0J5D.js} +1 -1
- package/dist/client/assets/{checkbox-CXzwRfUE.js → checkbox-CusZZICa.js} +1 -1
- package/dist/client/assets/{choose-editor-pFvuHpjf.js → choose-editor-Cojs0lHL.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B2keG3z0.js → cli-auth-success-DtWzwr_V.js} +1 -1
- package/dist/client/assets/{client-icons-Bh_RUHrx.js → client-icons-CIbINaqs.js} +1 -1
- package/dist/client/assets/{collection-detail-CnLO9cpZ.js → collection-detail-BW5w3jba.js} +1 -1
- package/dist/client/assets/{collection-display-button-DwsYjWTb.js → collection-display-button-BA2fqyxJ.js} +1 -1
- package/dist/client/assets/{collection-search-BP5V8TNH.js → collection-search-gbLnoGWa.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DVlX1pcV.js → collection-table-wrapper-C4Ljyh7l.js} +1 -1
- package/dist/client/assets/{collection-tabs-B9q2tyXa.js → collection-tabs-BGNThV3i.js} +1 -1
- package/dist/client/assets/{command-xxrmvnv_.js → command-CeyGqPmM.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Ced8-iKj.js → commerce-onboarding-YVPg5HyO.js} +1 -1
- package/dist/client/assets/{connect-B5ubw0Xr.js → connect-D9TGqvpE.js} +1 -1
- package/dist/client/assets/{connect-layout-BxbbI7IH.js → connect-layout-fngCpQZ1.js} +1 -1
- package/dist/client/assets/{connection-card-kQBldReX.js → connection-card-D-rWqndL.js} +1 -1
- package/dist/client/assets/{connection-detail-7rNvsPe4.js → connection-detail-eknzRIjb.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D5mMM1qm.js → connection-form-helpers-nmBh-twk.js} +1 -1
- package/dist/client/assets/{connection-C_GT2d8-.js → connection-pv2H4wMd.js} +1 -1
- package/dist/client/assets/{connections-D0eQc9A_.js → connections-C6rPB7TJ.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BRfORzJq.js → create-organization-dialog-BZKwvpuX.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-B5m7PhT4.js → decopilot-sse-pool-xVL-mPxb.js} +1 -1
- package/dist/client/assets/{dialog-BJD0J9Bz.js → dialog-Do-ZnJpa.js} +1 -1
- package/dist/client/assets/{domain-settings-B_VGYOzv.js → domain-settings-gHV_ko81.js} +1 -1
- package/dist/client/assets/{drawer-BfaqwYt1.js → drawer-D4J_5BCc.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C2qw5lYh.js → dropdown-menu-C9hHhEdP.js} +1 -1
- package/dist/client/assets/{e2e-tab-BP4-sYdo.js → e2e-tab-0aOWE4gZ.js} +1 -1
- package/dist/client/assets/{editor-DxUXA2r2.js → editor-CgtWB5x3.js} +1 -1
- package/dist/client/assets/{empty-state-IZIR5O75.js → empty-state-BPIeTQLP.js} +1 -1
- package/dist/client/assets/{empty-state-DdVUCNJZ.js → empty-state-CRtvF4Xb.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DxA2PIFR.js → extract-connection-data-Cq3FrLyn.js} +1 -1
- package/dist/client/assets/{file-explorer-B8dJdWja.js → file-explorer-DFCGDD7E.js} +1 -1
- package/dist/client/assets/{file-type-icon-CiGbN5nh.js → file-type-icon-BoulZj-0.js} +1 -1
- package/dist/client/assets/{folder-icon-B26uK6jG.js → folder-icon-P0KHTdfp.js} +1 -1
- package/dist/client/assets/{form-Bf8QzsIY.js → form-j23QTiVs.js} +1 -1
- package/dist/client/assets/{general-BPJmcXAO.js → general-BNkDnICW.js} +1 -1
- package/dist/client/assets/{github-repo-picker-De6RN0SL.js → github-repo-picker-CuXoDtLm.js} +1 -1
- package/dist/client/assets/{hooks-hLZbmXFp.js → hooks-D1D8x6_l.js} +1 -1
- package/dist/client/assets/{hosting-tab-vGfzOwFR.js → hosting-tab-Bvp0zXsU.js} +1 -1
- package/dist/client/assets/{index-BbbUBW4g.js → index-B1coIP-x.js} +54 -54
- package/dist/client/assets/{index-DZFBCXYH.js → index-BMAJGR3J.js} +1 -1
- package/dist/client/assets/{index-B_cX3Htx.js → index-BVzdbF4_.js} +1 -1
- package/dist/client/assets/{index--i5Zl0c6.js → index-Bmvq3ihr.js} +1 -1
- package/dist/client/assets/{index-DK1lFPeA.js → index-CaFXU7vU.js} +1 -1
- package/dist/client/assets/{index-BnzWRG1L.js → index-CeYSBtaz.js} +1 -1
- package/dist/client/assets/index-CiiXjYYX.css +1 -0
- package/dist/client/assets/{index-DHUj86CX.js → index-CxLq_ov_.js} +2 -2
- package/dist/client/assets/{index-DNpcz6m5.js → index-DkQlXscT.js} +1 -1
- package/dist/client/assets/{index-CUKu2Oqh.js → index-SiTXPFii.js} +1 -1
- package/dist/client/assets/{index-Cmgbp8UF.js → index-ZeDNJ_1q.js} +1 -1
- package/dist/client/assets/{index-redirect-CI3PpIpT.js → index-redirect-CJiAolND.js} +1 -1
- package/dist/client/assets/{infra-billing-DgWdjSd8.js → infra-billing-Y3GfCRPw.js} +1 -1
- package/dist/client/assets/{input-BYrAjXBd.js → input-t2vq_Yhz.js} +1 -1
- package/dist/client/assets/{integration-icon-D6yFL1WJ.js → integration-icon-Cr-roc4W.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-mr7cS4bO.js → invite-member-dialog-CEk-b8tU.js} +1 -1
- package/dist/client/assets/{label-BvWpi_I4.js → label-HkRxmwei.js} +1 -1
- package/dist/client/assets/{layout-BswWrcOW.js → layout-Dxu31OnK.js} +1 -1
- package/dist/client/assets/{login-dma4Uh-G.js → login-Cx8SbtxE.js} +1 -1
- package/dist/client/assets/{markdown-BLyHaybO.js → markdown-DFiEgKZj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DsIID2Ty.js → mcp-oauth-BHYwKN2k.js} +1 -1
- package/dist/client/assets/{members-BZVH4Hq6.js → members-D2oEyQo4.js} +1 -1
- package/dist/client/assets/{monaco-editor-DSlDQDpY.js → monaco-editor-BFa0VsLo.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CF82uRZ3.js → monitoring-stats-row-BQP-lBLM.js} +1 -1
- package/dist/client/assets/{multi-select-D7sx_YzR.js → multi-select-DtPXBo_Z.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-buV7frKP.js → oauth-callback-ai-provider-9CMbhleP.js} +1 -1
- package/dist/client/assets/{oauth-callback-DkDlV2GJ.js → oauth-callback-ccYetd0V.js} +1 -1
- package/dist/client/assets/{onboarding-CVXYiuMZ.js → onboarding-BFJvKMEA.js} +1 -1
- package/dist/client/assets/org-layout-DY_zUSdZ.js +1 -0
- package/dist/client/assets/{organization-choice-DEZsvT9T.js → organization-choice-VRNC0lDk.js} +1 -1
- package/dist/client/assets/{orgs-BbcG-0m-.js → orgs-C2coJyQH.js} +1 -1
- package/dist/client/assets/{page-seo-form-DGhTev0v.js → page-seo-form-C6r-7uaM.js} +1 -1
- package/dist/client/assets/{popover-CxcGQDvW.js → popover-CpTW2alp.js} +1 -1
- package/dist/client/assets/{post-calendar-CdaatkEy.js → post-calendar-op-KKH1q.js} +1 -1
- package/dist/client/assets/{post-editor-CQcEuv8C.js → post-editor-ClKCgdAj.js} +1 -1
- package/dist/client/assets/{primitives-D9TXzj58.js → primitives-MHQnCsXb.js} +1 -1
- package/dist/client/assets/{profile-DeWl16OG.js → profile-A_0trZ37.js} +1 -1
- package/dist/client/assets/{project-app-view-Df7OomKS.js → project-app-view-CsHhCOz6.js} +1 -1
- package/dist/client/assets/{project-icon-BVrtCH30.js → project-icon-BY6MP5uE.js} +1 -1
- package/dist/client/assets/{prompts-CjRNp29_.js → prompts-DM7CdEW3.js} +1 -1
- package/dist/client/assets/record-editor-BTQg6PKa.js +1 -0
- package/dist/client/assets/redirect-editor-CXHphZOh.js +1 -0
- package/dist/client/assets/registry-CT_YquLV.js +2 -0
- package/dist/client/assets/{registry-layout-Bcc3FGo0.js → registry-layout-f961NKWZ.js} +1 -1
- package/dist/client/assets/{reports-dQYPtnA9.js → reports-Cs0DFjxC.js} +1 -1
- package/dist/client/assets/{require-capability-BPws0VXm.js → require-capability-B5tbYFX0.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BHYy5oMU.js → required-auth-layout-LhCq4pE1.js} +1 -1
- package/dist/client/assets/{reset-password-dOKmmUFy.js → reset-password-CCpghMSK.js} +1 -1
- package/dist/client/assets/{review-settings-KEN_J40P.js → review-settings-CDYWi0EQ.js} +1 -1
- package/dist/client/assets/{roles-DOJSIUBN.js → roles-BBW1oHcq.js} +1 -1
- package/dist/client/assets/{schema-C1N_zzss.js → schema-ChmhgfCW.js} +1 -1
- package/dist/client/assets/{scroll-area-D1PuVQEj.js → scroll-area-B3TTluOZ.js} +1 -1
- package/dist/client/assets/{search-input-Bdewo0bo.js → search-input-D0Aw5sb3.js} +1 -1
- package/dist/client/assets/{secrets-lHa6g6Iv.js → secrets-CgpThP8p.js} +1 -1
- package/dist/client/assets/{sections-editor-BKahaI8C.js → sections-editor-CBOJB7Hp.js} +1 -1
- package/dist/client/assets/{select-o1Z8sQDO.js → select-CNhOTIVN.js} +1 -1
- package/dist/client/assets/{select-model-B0T331Iw.js → select-model-BHenBcjH.js} +1 -1
- package/dist/client/assets/{self-tool-result-CUKWYH29.js → self-tool-result-gsJsfaVf.js} +1 -1
- package/dist/client/assets/{seo-editor-5d8Qy46G.js → seo-editor-CXcll4p8.js} +1 -1
- package/dist/client/assets/settings-layout-BuGaWoZD.js +1 -0
- package/dist/client/assets/{settings-sidebar-DuLtrrKp.js → settings-sidebar-CqkH_Jwa.js} +1 -1
- package/dist/client/assets/{shell-controls-DF_5s2A9.js → shell-controls-DnEVv7XR.js} +1 -1
- package/dist/client/assets/{shell-layout-Bp6zbn7Y.js → shell-layout-CAB27XFS.js} +1 -1
- package/dist/client/assets/{skill-preview-DR36Crod.js → skill-preview-D5ZuDhd0.js} +1 -1
- package/dist/client/assets/{skills-vIJWkN22.js → skills-BjJLGoK9.js} +1 -1
- package/dist/client/assets/{sso-DPj-Qg7w.js → sso-BEJGla7K.js} +1 -1
- package/dist/client/assets/{store-C2b0ypaY.js → store-DDqzPQql.js} +1 -1
- package/dist/client/assets/store-registry-Ds5fAPeG.js +2 -0
- package/dist/client/assets/{switch-CIJKrsmR.js → switch--G1maXos.js} +1 -1
- package/dist/client/assets/{synced-repos-6h8u2e0S.js → synced-repos-_n1sYI3v.js} +1 -1
- package/dist/client/assets/{table-CbmmbOsN.js → table-Bi-psIbe.js} +1 -1
- package/dist/client/assets/{tabs-DZqppLwy.js → tabs-DZInEuUb.js} +1 -1
- package/dist/client/assets/{task-board-PHwYKgbo.js → task-board-CcPPQONZ.js} +1 -1
- package/dist/client/assets/task-route-GdQl-L3H.js +1 -0
- package/dist/client/assets/{tasks-Cpm22gUw.js → tasks-CTHZjHVD.js} +1 -1
- package/dist/client/assets/{textarea--HJe9c5t.js → textarea-DFMKKUyA.js} +1 -1
- package/dist/client/assets/{thread-intent-g73PlzB4.js → thread-intent-BCmi7agT.js} +1 -1
- package/dist/client/assets/{thread-route-HmYzobv1.js → thread-route-Ckn7Kp8P.js} +1 -1
- package/dist/client/assets/{toggle-group-BHM_Zyyd.js → toggle-group-HQ3bB1sR.js} +1 -1
- package/dist/client/assets/{toolbar-CVe8vu_Q.js → toolbar-CSNy9NkF.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Bb6xS7EQ.js → toolbar-icon-button-DEqW4Jpo.js} +1 -1
- package/dist/client/assets/{track-LQmldNni.js → track-C5SbOoh_.js} +1 -1
- package/dist/client/assets/{types-DArfb8I8.js → types-hwFA5Ktg.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CNMWeWm5.js → use-ai-providers-DRa-WP8c.js} +1 -1
- package/dist/client/assets/{use-automations-DSXRNZT_.js → use-automations-Cppk9Xar.js} +1 -1
- package/dist/client/assets/{use-autosave-3NFasuKK.js → use-autosave-H5fEY0zQ.js} +1 -1
- package/dist/client/assets/{use-connection-B2Ls0qA7.js → use-connection-B3hf1saX.js} +1 -1
- package/dist/client/assets/{use-copy-B3ppetom.js → use-copy-DvOjkuTL.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C6x58Zi1.js → use-create-virtual-mcp-59Af3Rsa.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D2nYoYJN.js → use-debounced-autosave-DQmx8pBf.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DQRRwMEk.js → use-debounced-value-BLtVz2Ja.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BgKUothP.js → use-decopilot-events-CkAI1xCS.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BxbzIhKD.js → use-delete-connection-BdxhtyUk.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-tC8VpguE.js → use-deployment-admin-DSVf8vXV.js} +1 -1
- package/dist/client/assets/{use-destination-route-CK2pPLV9.js → use-destination-route-BePPmQxb.js} +1 -1
- package/dist/client/assets/{use-file-configs-kkWXXPPS.js → use-file-configs-BEZ_kwp8.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CTOc5P5x.js → use-infinite-scroll-D8hgBz9p.js} +1 -1
- package/dist/client/assets/{use-join-requests-D7msZlUr.js → use-join-requests-D-_6MxTr.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Jom0xHJN.js → use-mcp-auth-status-CC8-P5tO.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BUwgNIF4.js → use-mcp-client-Bzii9bW9.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BTQCvFnt.js → use-mcp-prompts-BTyLUk2o.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-f0ZCuJZp.js → use-mcp-tools-3xoGjo6f.js} +1 -1
- package/dist/client/assets/{use-members-CvIGlKzJ.js → use-members-CEM7zlP_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-6n6GQTNy.js → use-navigate-to-agent-CUFdthzD.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DgKrgAJK.js → use-org-auth-client-Crsb07JJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-BVOTopFK.js → use-org-sso-DTBnbTx7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D_WbYzwy.js → use-organization-roles-6Vfaalz_.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C6sYQHTC.js → use-organization-settings-DRchtNm3.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B6m-OiH_.js → use-panel-navigate-DSf87ewD.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CF5ZdTLS.js → use-registry-connections-DndEI7JT.js} +1 -1
- package/dist/client/assets/{use-secrets-StFvtWmA.js → use-secrets-DmVRsGO4.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DXUf8TMq.js → use-section-preview-base-Z9XEvq4w.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BHHiD94K.js → use-status-sounds-D9cQQiox.js} +1 -1
- package/dist/client/assets/{use-tags-CnW1y5-P.js → use-tags-C4M9TEep.js} +1 -1
- package/dist/client/assets/{use-view-mode-CrdWRVbX.js → use-view-mode-BVUyWYvX.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DyAOZKmx.js → use-virtual-mcp-Drh4_cTK.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cy80sU-k.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DKd6bR20.js +1 -0
- package/dist/client/assets/{users-DejAJoPr.js → users-CxuT9c7Z.js} +1 -1
- package/dist/client/assets/{variant-calendar-CotjIC0g.js → variant-calendar-CGeSmoC0.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-B4qO2TFn.js → view-mode-toggle-DdtTJc3o.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/api-keys-LbNkwKZn.js +0 -1
- package/dist/client/assets/index-yssuKkag.css +0 -1
- package/dist/client/assets/org-layout-CidRL8xz.js +0 -1
- package/dist/client/assets/record-editor-CTYfDrz2.js +0 -1
- package/dist/client/assets/redirect-editor-qaQ4jTUB.js +0 -1
- package/dist/client/assets/registry-DExM0TW0.js +0 -2
- package/dist/client/assets/settings-layout-C2F4tAt7.js +0 -1
- package/dist/client/assets/store-registry-Chz797xW.js +0 -2
- package/dist/client/assets/task-route-C9rGtyl3.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BwTZ3U88.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DD_-tZCS.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,W as L,r as v,j as e,P as x,dt as k,dq as y,dr as E,ds as a,fj as D,B as m,o as C,t as c,c as z}from"./index-
|
|
1
|
+
import{b as B,W as L,r as v,j as e,P as x,dt as k,dq as y,dr as E,ds as a,fj as D,B as m,o as C,t as c,c as z}from"./index-CxLq_ov_.js";import{D as T}from"./domain-settings-gHV_ko81.js";import{A as O,a as R,b as q,c as F,e as M,f as U,g as $}from"./alert-dialog-Bb1OlmEm.js";import{I as d}from"./input-t2vq_Yhz.js";import{S as H}from"./switch--G1maXos.js";import{a as W,b as G,c as J,d as K}from"./use-org-sso-DTBnbTx7.js";import{s as Q}from"./Trash01-CV8Q1VzZ.js";import{R as V}from"./require-capability-B5tbYFX0.js";import"./badge-DiXK5Efu.js";import"./select-CNhOTIVN.js";import"./Check-DFnPCTEg.js";import"./ChevronUp-CVSn4-gi.js";import"./access-gate-BsoMn5at.js";import"./capability-load-error-RzShLZ2L.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=W(o.id,o.slug),h=G(o.id,o.slug),S=J(o.id,o.slug),b=K(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(Q,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(V,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,b as Z,j as i,P as te,r as V,dt as ue,b5 as pe,E as xe,W as Se,n as he,ds as H,B as X,d as ye,f as je,o as ae,K as ve,dr as ie,dq as re,e as Ce,t as ge}from"./index-DHUj86CX.js";import{i as be}from"./AlertCircle-qkRvRfRP.js";import{i as _e}from"./ChevronRight-CnQYYyM7.js";import{s as Re}from"./Plus-DEQvgNJL.js";import{s as ke}from"./Trash01-wIyIG9fp.js";import{I as ne}from"./input-BYrAjXBd.js";import{S as de}from"./switch-CIJKrsmR.js";import{A as me}from"./avatar-C7YZIoOv.js";import{P as Ne,a as Pe,b as Te}from"./popover-CxcGQDvW.js";import{b as fe}from"./use-connection-B2Ls0qA7.js";import{W as le}from"./constants-DNuUCxmW.js";import{u as we}from"./use-registry-connections-CF5ZdTLS.js";import{h as Ae,k as ze}from"./use-organization-settings-C6sYQHTC.js";import{R as Ee}from"./require-capability-BPws0VXm.js";import"./User01-BXgP91eQ.js";import"./use-mcp-client-BUwgNIF4.js";import"./auth-Dq_zaBWs.js";import"./schema-C1N_zzss.js";import"./task-board-PHwYKgbo.js";import"./access-gate-CwhHHMO7.js";import"./capability-load-error-CS3cBwaC.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let Y;e[30]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>A(y.target.value),e[30]=Y):Y=e[30];let q;e[31]!==U||e[32]!==a?(q=i.jsx(ne,{placeholder:U,value:a,onChange:Y,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=q):q=e[33];let B;e[34]!==F||e[35]!==q?(B=i.jsx(H,{title:F,action:q}),e[34]=F,e[35]=q,e[36]=B):B=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>_(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==B||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,B,I,w]}),e[69]=B,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,Y=le.SELF(l.id),q=new Set([f,C,"community-registry",Y]),B=c.filter(n=>!q.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let W;t[45]!==b?(W=n=>b("self",n),t[45]=b,t[46]=W):W=t[46];let G;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==W?(G=i.jsx(se,{name:w,description:$,enabled:y,onToggle:W,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=W,t[51]=G):G=t[51];let ee;t[52]!==O||t[53]!==b||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>b(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=b,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=B.map(ee);let Q;t[57]!==G||t[58]!==oe?(Q=i.jsxs(ie,{children:[G,oe]}),t[57]=G,t[58]=oe,t[59]=Q):Q=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==Q?(m=i.jsxs(re,{title:L,actions:P,children:[T,Q]}),t[60]=L,t[61]=P,t[62]=T,t[63]=Q,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function at(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{at as default};
|
|
1
|
+
import{c as J,b as Z,j as i,P as te,r as V,dt as ue,b5 as pe,E as xe,W as Se,n as he,ds as H,B as X,d as ye,f as je,o as ae,K as ve,dr as ie,dq as re,e as Ce,t as ge}from"./index-CxLq_ov_.js";import{i as be}from"./AlertCircle-B0exjy2G.js";import{i as _e}from"./ChevronRight-BcTQG1DI.js";import{s as Re}from"./Plus-D-mogJXC.js";import{s as ke}from"./Trash01-CV8Q1VzZ.js";import{I as ne}from"./input-t2vq_Yhz.js";import{S as de}from"./switch--G1maXos.js";import{A as me}from"./avatar-B8b2hWV1.js";import{P as Ne,a as Pe,b as Te}from"./popover-CpTW2alp.js";import{b as fe}from"./use-connection-B3hf1saX.js";import{W as le}from"./constants-DNuUCxmW.js";import{u as we}from"./use-registry-connections-DndEI7JT.js";import{h as Ae,k as ze}from"./use-organization-settings-DRchtNm3.js";import{R as Ee}from"./require-capability-B5tbYFX0.js";import"./User01-DmJKrYPV.js";import"./use-mcp-client-Bzii9bW9.js";import"./auth-Dy3Ai_hi.js";import"./schema-ChmhgfCW.js";import"./task-board-CcPPQONZ.js";import"./access-gate-BsoMn5at.js";import"./capability-load-error-RzShLZ2L.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let Y;e[30]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>A(y.target.value),e[30]=Y):Y=e[30];let q;e[31]!==U||e[32]!==a?(q=i.jsx(ne,{placeholder:U,value:a,onChange:Y,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=q):q=e[33];let B;e[34]!==F||e[35]!==q?(B=i.jsx(H,{title:F,action:q}),e[34]=F,e[35]=q,e[36]=B):B=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>_(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==B||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,B,I,w]}),e[69]=B,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,Y=le.SELF(l.id),q=new Set([f,C,"community-registry",Y]),B=c.filter(n=>!q.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let W;t[45]!==b?(W=n=>b("self",n),t[45]=b,t[46]=W):W=t[46];let G;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==W?(G=i.jsx(se,{name:w,description:$,enabled:y,onToggle:W,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=W,t[51]=G):G=t[51];let ee;t[52]!==O||t[53]!==b||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>b(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=b,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=B.map(ee);let Q;t[57]!==G||t[58]!==oe?(Q=i.jsxs(ie,{children:[G,oe]}),t[57]=G,t[58]=oe,t[59]=Q):Q=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==Q?(m=i.jsxs(re,{title:L,actions:P,children:[T,Q]}),t[60]=L,t[61]=P,t[62]=T,t[63]=Q,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function at(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{at as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-f961NKWZ.js","assets/index-CxLq_ov_.js","assets/index-CiiXjYYX.css","assets/Tool02-8qVRgTeE.js","assets/CheckCircle-DLOuSHro.js","assets/Settings02-B2gnPQ3Q.js","assets/use-mcp-client-Bzii9bW9.js","assets/constants-DNuUCxmW.js","assets/auth-Dy3Ai_hi.js","assets/useInfiniteQuery-Cy80sU-k.js","assets/use-infinite-scroll-D8hgBz9p.js","assets/badge-DiXK5Efu.js","assets/input-t2vq_Yhz.js","assets/dropdown-menu-C9hHhEdP.js","assets/Check-DFnPCTEg.js","assets/ChevronRight-BcTQG1DI.js","assets/DotsVertical-CqFpz0HG.js","assets/table-Bi-psIbe.js","assets/toggle-group-HQ3bB1sR.js","assets/use-view-mode-BVUyWYvX.js","assets/Globe01-DyhA33s1.js","assets/SearchMd-BYpvO9Ao.js","assets/dialog-Do-ZnJpa.js","assets/AlertCircle-B0exjy2G.js","assets/Download01-GnhueTng.js","assets/Upload01-B1Qytz_u.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-Bb1OlmEm.js","assets/Trash01-CV8Q1VzZ.js","assets/label-HkRxmwei.js","assets/select-CNhOTIVN.js","assets/ChevronUp-CVSn4-gi.js","assets/switch--G1maXos.js","assets/textarea-DFMKKUyA.js","assets/ArrowLeft-DDVITG8K.js","assets/XCircle-BN22j-Jn.js","assets/Link01-BHe0dd0_.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CusZZICa.js","assets/Eye-CHLagXa7.js","assets/LinkExternal01-CvQ-ylaK.js","assets/use-copy-DvOjkuTL.js","assets/Copy01-DXf2ReD_.js","assets/Key01-CNitiCfD.js","assets/Plus-D-mogJXC.js","assets/mcp-oauth-BHYwKN2k.js","assets/Play-CR4MAXKW.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as n,d as c,f as m,j as t,h as f,r as l,bm as p}from"./index-CxLq_ov_.js";import{R as u}from"./require-capability-B5tbYFX0.js";import"./access-gate-BsoMn5at.js";import"./capability-load-error-RzShLZ2L.js";const g=l.lazy(()=>p(()=>import("./registry-layout-f961NKWZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,bn as C,br as y,bq as T,bt as I,cD as M,cC as H,bp as q,c as z,l as g}from"./index-
|
|
1
|
+
import{r as c,j as i,bn as C,br as y,bq as T,bt as I,cD as M,cC as H,bp as q,c as z,l as g}from"./index-CxLq_ov_.js";var m="Switch",[A]=q(m),[U,D]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=D(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(a){return a?"checked":"unchecked"}var O=E,$=R;function W(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx(O,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as te,j as s,du as ye,b as ue,r as ce,B as ee,l as je,t as ae,b5 as be}from"./index-DHUj86CX.js";import{s as ge}from"./Plus-DEQvgNJL.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-H5oy5IB0.js";import{d as Ae,h as ke,c as we,e as Oe,b as ze,D as Ee}from"./dialog-BJD0J9Bz.js";import{I as Ie}from"./input-BYrAjXBd.js";import{G as xe,a as $e}from"./github-repo-picker-De6RN0SL.js";import{a as Fe,d as Te,h as Ge,t as He}from"./cards-JextA67c.js";import{R as Be}from"./require-capability-BPws0VXm.js";import"./collection-search-BP5V8TNH.js";import"./SearchMd-B51If2wF.js";import"./use-debounced-value-DQRRwMEk.js";import"./use-connection-B2Ls0qA7.js";import"./use-mcp-client-BUwgNIF4.js";import"./constants-DNuUCxmW.js";import"./auth-Dq_zaBWs.js";import"./authenticate-and-persist-oauth-08i3Vh9j.js";import"./mcp-oauth-DsIID2Ty.js";import"./ArrowLeft-xEKYdSEN.js";import"./LinkExternal01-CEZzFDFF.js";import"./Share07-4wfFEEmb.js";import"./use-mcp-tools-f0ZCuJZp.js";import"./extract-connection-data-DxA2PIFR.js";import"./metadata-dUsYcpuu.js";import"./connection-C_GT2d8-.js";import"./use-navigate-to-agent-6n6GQTNy.js";import"./use-destination-route-CK2pPLV9.js";import"./use-virtual-mcp-DyAOZKmx.js";import"./hooks-hLZbmXFp.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B5m7PhT4.js";import"./task-board-PHwYKgbo.js";import"./schema-C1N_zzss.js";import"./thread-intent-g73PlzB4.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-COLY3wWI.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./folder-icon-B26uK6jG.js";import"./Eye-DpHe69gy.js";import"./DotsVertical-Dd1sEkCZ.js";import"./Download01-DLr18AUl.js";import"./Globe01-BosJuQ-2.js";import"./Key01-CPDJfD4K.js";import"./Palette-h8FYNnaS.js";import"./Trash01-wIyIG9fp.js";import"./Zap-pdDkFead.js";import"./dropdown-menu-C2qw5lYh.js";import"./Check-Bmui6n8a.js";import"./ChevronRight-CnQYYyM7.js";import"./file-type-icon-CiGbN5nh.js";import"./access-gate-CwhHHMO7.js";import"./capability-load-error-CS3cBwaC.js";function qe(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Le(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:He(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ve(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ue();let u;t[0]!==l||t[1]!==c?(u=Le(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(xe,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Je(e){const t=te.c(21),{onAdd:l}=e,i=ue();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(xe,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ge,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Ke(){const e=te.c(107),t=ue(),l=Fe(),i=Te(),c=Ge(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(be,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let v;e[12]!==t?(v=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=v):v=e[13];let S;e[14]!==v?(S=s.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[14]=v,e[15]=S):S=e[15];let D;e[16]!==b||e[17]!==t?(D=b.length===0?s.jsx(Je,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(ge,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ve,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=D):D=e[18];let N;e[19]!==t?(N=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=N):N=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(qe(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==N?(_=s.jsx($e,{mode:"connection",open:u,onOpenChange:p,title:N,onImportComplete:se}),e[22]=u,e[23]=N,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Ae,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(ke,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(we,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ie,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const he=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:he,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let G;e[60]!==I||e[61]!==T?(G=s.jsxs(Oe,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=G):G=e[62];let H;e[63]!==w||e[64]!==z||e[65]!==G?(H=s.jsxs(ze,{className:"sm:max-w-sm",children:[w,z,G]}),e[63]=w,e[64]=z,e[65]=G,e[66]=H):H=e[66];let B;e[67]!==H||e[68]!==me?(B=s.jsx(Ee,{open:me,onOpenChange:ie,children:H}),e[67]=H,e[68]=me,e[69]=B):B=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(Re,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(ve,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(De,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(_e,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(Ce,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Pe,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==B||e[102]!==S||e[103]!==Z||e[104]!==D||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[S,D,_,B,Z]}),e[101]=B,e[102]=S,e[103]=Z,e[104]=D,e[105]=_,e[106]=re):re=e[106],re}function Me(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Ke,{})}),e[0]=t):t=e[0],t}function Kt(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Be,{capability:"file-configs:manage",area:"files",children:s.jsx(Me,{})}),e[0]=t):t=e[0],t}export{Kt as default};
|
|
1
|
+
import{c as te,j as s,du as ye,b as ue,r as ce,B as ee,l as je,t as ae,b5 as be}from"./index-CxLq_ov_.js";import{s as ge}from"./Plus-D-mogJXC.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-Bb1OlmEm.js";import{d as Ae,h as ke,c as we,e as Oe,b as ze,D as Ee}from"./dialog-Do-ZnJpa.js";import{I as Ie}from"./input-t2vq_Yhz.js";import{G as xe,a as $e}from"./github-repo-picker-CuXoDtLm.js";import{a as Fe,d as Te,h as Ge,t as He}from"./cards-BdTZBvrL.js";import{R as Be}from"./require-capability-B5tbYFX0.js";import"./collection-search-gbLnoGWa.js";import"./SearchMd-BYpvO9Ao.js";import"./use-debounced-value-BLtVz2Ja.js";import"./use-connection-B3hf1saX.js";import"./use-mcp-client-Bzii9bW9.js";import"./constants-DNuUCxmW.js";import"./auth-Dy3Ai_hi.js";import"./authenticate-and-persist-oauth-DBIvzM9b.js";import"./mcp-oauth-BHYwKN2k.js";import"./ArrowLeft-DDVITG8K.js";import"./LinkExternal01-CvQ-ylaK.js";import"./Share07-Bu5e840D.js";import"./use-mcp-tools-3xoGjo6f.js";import"./extract-connection-data-Cq3FrLyn.js";import"./metadata-dUsYcpuu.js";import"./connection-pv2H4wMd.js";import"./use-navigate-to-agent-CUFdthzD.js";import"./use-destination-route-BePPmQxb.js";import"./use-virtual-mcp-Drh4_cTK.js";import"./hooks-D1D8x6_l.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-xVL-mPxb.js";import"./task-board-CcPPQONZ.js";import"./schema-ChmhgfCW.js";import"./thread-intent-BCmi7agT.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-COLY3wWI.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./folder-icon-P0KHTdfp.js";import"./Eye-CHLagXa7.js";import"./DotsVertical-CqFpz0HG.js";import"./Download01-GnhueTng.js";import"./Globe01-DyhA33s1.js";import"./Key01-CNitiCfD.js";import"./Palette-DgVW07vN.js";import"./Trash01-CV8Q1VzZ.js";import"./Zap-BMyl5tLM.js";import"./dropdown-menu-C9hHhEdP.js";import"./Check-DFnPCTEg.js";import"./ChevronRight-BcTQG1DI.js";import"./file-type-icon-BoulZj-0.js";import"./access-gate-BsoMn5at.js";import"./capability-load-error-RzShLZ2L.js";function qe(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Le(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:He(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ve(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ue();let u;t[0]!==l||t[1]!==c?(u=Le(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(xe,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Je(e){const t=te.c(21),{onAdd:l}=e,i=ue();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(xe,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ge,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Ke(){const e=te.c(107),t=ue(),l=Fe(),i=Te(),c=Ge(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(be,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let v;e[12]!==t?(v=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=v):v=e[13];let S;e[14]!==v?(S=s.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[14]=v,e[15]=S):S=e[15];let D;e[16]!==b||e[17]!==t?(D=b.length===0?s.jsx(Je,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(ge,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ve,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=D):D=e[18];let N;e[19]!==t?(N=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=N):N=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(qe(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==N?(_=s.jsx($e,{mode:"connection",open:u,onOpenChange:p,title:N,onImportComplete:se}),e[22]=u,e[23]=N,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Ae,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(ke,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(we,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ie,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const he=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:he,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let G;e[60]!==I||e[61]!==T?(G=s.jsxs(Oe,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=G):G=e[62];let H;e[63]!==w||e[64]!==z||e[65]!==G?(H=s.jsxs(ze,{className:"sm:max-w-sm",children:[w,z,G]}),e[63]=w,e[64]=z,e[65]=G,e[66]=H):H=e[66];let B;e[67]!==H||e[68]!==me?(B=s.jsx(Ee,{open:me,onOpenChange:ie,children:H}),e[67]=H,e[68]=me,e[69]=B):B=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(Re,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(ve,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(De,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(_e,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(Ce,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Pe,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==B||e[102]!==S||e[103]!==Z||e[104]!==D||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[S,D,_,B,Z]}),e[101]=B,e[102]=S,e[103]=Z,e[104]=D,e[105]=_,e[106]=re):re=e[106],re}function Me(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Ke,{})}),e[0]=t):t=e[0],t}function Kt(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Be,{capability:"file-configs:manage",area:"files",children:s.jsx(Me,{})}),e[0]=t):t=e[0],t}export{Kt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,l as i,j as r}from"./index-
|
|
1
|
+
import{c,l as i,j as r}from"./index-CxLq_ov_.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,m as d,f as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as d,dv as k,bn as p,bt as T,dw as y,bp as M,bs as P,bq as S,bu as F,dx as V,cH as D,c as x,l as g}from"./index-
|
|
1
|
+
import{r as v,j as d,dv as k,bn as p,bt as T,dw as y,bp as M,bs as P,bq as S,bu as F,dx as V,cH as D,c as x,l as g}from"./index-CxLq_ov_.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,q=_,B=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(q,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(B,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,O as a,Q as b,J as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as s}from"./schema-
|
|
1
|
+
import{o as s}from"./schema-ChmhgfCW.js";const u="super-agent",i=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=i[0];function T(e){return i[e%i.length]??c}function l(e){return e.createdBy==="system"}const w="chore",A=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function p(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],g=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const o=a.data??{};if(o.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&o.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function D(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",C=4e3;export{R as C,w as D,A as R,u as S,m as T,D as a,S as b,c,g as d,L as e,C as f,l as i,T as n,p as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bW as Us,c as O,l as J,j as n,h as Qe,r as G,I as ss,G as Gs,o as oe,b as Q,b5 as Hs,W as le,d as ns,a6 as os,_ as is,L as Qs,a1 as Le,a2 as Me,a4 as Re,a as Dt,F as qs,ar as Ws,as as Ys,B as ye,t as de,H as Xs,J as Js,K as fe,n as at,a7 as At,m as lt,bv as Zs,e as Oe,bl as en,ap as tn}from"./index-CxLq_ov_.js";import{c as rs,u as sn,d as as}from"./thread-route-Ckn7Kp8P.js";import{t as Ge}from"./ChevronUp-CVSn4-gi.js";import{A as ls,N as nn,s as jt,aJ as on,aK as rn,aL as Kt,aM as an,t as ln,aN as cn,a6 as dn,aO as un,p as fn,aP as mn,a4 as bt,a3 as pn,aa as gn}from"./agent-icon-DyMYbwSC.js";import{a as cs,i as hn,e as xn,S as jn,f as bn}from"./constants-DNuUCxmW.js";import{b as Tt,u as yn}from"./use-virtual-mcp-Drh4_cTK.js";import{g as vn,p as Cn,r as kn}from"./github-repo-COLY3wWI.js";import{T as ds}from"./toolbar-icon-button-DEqW4Jpo.js";import{P as ct,a as Ue,b as dt}from"./popover-CpTW2alp.js";import{D as It,a as Ft,b as Bt,c as Nn,e as Sn,f as us,g as fs,d as wn}from"./drawer-D4J_5BCc.js";import{i as _n}from"./SearchMd-BYpvO9Ao.js";import{i as qe}from"./Check-DFnPCTEg.js";import{s as Ye}from"./Plus-D-mogJXC.js";import{G as ms,a as Dn}from"./github-repo-picker-CuXoDtLm.js";import{g as An,u as Tn,b as ps}from"./hooks-D1D8x6_l.js";import{g as In,b as gs,P as Fn}from"./project-icon-BY6MP5uE.js";import{u as hs}from"./shell-layout-CAB27XFS.js";import{a as Bn}from"./use-navigate-to-agent-CUFdthzD.js";import{d as Pn}from"./thread-intent-BCmi7agT.js";import{C as En}from"./collection-search-gbLnoGWa.js";import{g as Vn,b as $n,a as On,e as Ln}from"./extract-connection-data-Cq3FrLyn.js";import{u as xs,a as js,g as Mn,C as yt}from"./connection-card-D-rWqndL.js";import{D as bs,b as ys,c as vs,d as Cs,h as Rn,e as Kn}from"./dialog-Do-ZnJpa.js";import{d as pe,a as ge,e as he,b as xe,c as je,F as zt}from"./form-j23QTiVs.js";import{I as Se}from"./input-t2vq_Yhz.js";import{S as zn,a as Un,b as Gn,c as Hn,d as He}from"./select-CNhOTIVN.js";import{T as Qn}from"./textarea-DFMKKUyA.js";import{b as ks}from"./use-connection-B3hf1saX.js";import{n as ot,a as vt,i as Ns}from"./Tool02-8qVRgTeE.js";import{b as qn,d as Wn}from"./UserSquare-HSvWRq_9.js";import{s as Yn}from"./XClose-N8lMtUXr.js";import{c as Xn,i as et,a as Ut,E as Jn,p as Zn,b as eo,d as to}from"./connection-form-helpers-nmBh-twk.js";import{a as Ct}from"./authenticate-and-persist-oauth-DBIvzM9b.js";import{g as so}from"./connection-slug-CITJ0kGN.js";import{C as no}from"./collection-tabs-BGNThV3i.js";import{u as Gt}from"./use-infinite-scroll-D8hgBz9p.js";import{B as tt}from"./badge-DiXK5Efu.js";import{u as oo}from"./useSuspenseInfiniteQuery-DKd6bR20.js";import{u as io}from"./use-mcp-client-Bzii9bW9.js";import{g as it}from"./metadata-dUsYcpuu.js";import{u as ro}from"./use-ai-providers-DRa-WP8c.js";import{a as ao}from"./use-file-configs-BEZ_kwp8.js";import{d as lo}from"./use-organization-settings-DRchtNm3.js";import{r as co}from"./site-slug-uya6Wp4-.js";import{T as uo,C as Pt,c as fo,d as mo,S as Nt}from"./task-board-CcPPQONZ.js";import{t as po}from"./decopilot-sse-pool-xVL-mPxb.js";import{u as go}from"./use-decopilot-events-CkAI1xCS.js";import{A as Ht}from"./avatar-B8b2hWV1.js";import{h as rt,D as Ss,b as ws,g as _s,c as Ds}from"./dropdown-menu-C9hHhEdP.js";import{e as Ke,a as Et,c as Vt,d as Ce,b as $t,C as Ot}from"./command-CeyGqPmM.js";import{s as ho}from"./TrendUp01-yPe3UG0T.js";import{a as xo}from"./Settings02-B2gnPQ3Q.js";import{s as Qt}from"./User01-DmJKrYPV.js";import{g as qt}from"./get-initials-D-f_fDFw.js";import{i as jo}from"./AlertCircle-B0exjy2G.js";import{i as bo}from"./CheckCircle-DLOuSHro.js";import{a as As}from"./DotsVertical-CqFpz0HG.js";import{s as yo}from"./Eye-CHLagXa7.js";import{i as vo}from"./Shield01-BAHmK5_B.js";const Co=Us("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function ko(t){const e=O.c(21),{value:s,onChange:o,placeholder:a,onKeyDown:r,className:i,isSearching:c,disabled:l}=t,f=a===void 0?"Search...":a;let u;e[0]!==i?(u=J("shrink-0 w-full border-b border-border h-12",i),e[0]=i,e[1]=u):u=e[1];const m=l?"cursor-not-allowed opacity-50":"cursor-text";let d;e[2]!==m?(d=J("flex items-center gap-2.5 h-12 px-4",m),e[2]=m,e[3]=d):d=e[3];let p;e[4]!==c?(p=c?n.jsx(Qe,{className:"size-4 text-muted-foreground shrink-0"}):n.jsx(_n,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=c,e[5]=p):p=e[5];let g;e[6]!==o?(g=N=>o(N.target.value),e[6]=o,e[7]=g):g=e[7];let h;e[8]!==l||e[9]!==r||e[10]!==f||e[11]!==g||e[12]!==s?(h=n.jsx("input",{type:"text",value:s,onChange:g,onKeyDown:r,placeholder:f,disabled:l,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=l,e[9]=r,e[10]=f,e[11]=g,e[12]=s,e[13]=h):h=e[13];let x;e[14]!==d||e[15]!==p||e[16]!==h?(x=n.jsxs("label",{className:d,children:[p,h]}),e[14]=d,e[15]=p,e[16]=h,e[17]=x):x=e[17];let j;return e[18]!==u||e[19]!==x?(j=n.jsx("div",{className:u,children:x}),e[18]=u,e[19]=x,e[20]=j):j=e[20],j}function No(t,e,s){if(!s)return null;const o=An(t,e);return o?o.threads.get().find(r=>r.id===s)?.branch??null:null}const Ts=G.createContext(null);function aa(t){const e=O.c(5),{children:s}=t,[o,a]=G.useState(!1);let r;e[0]!==o?(r={empty:o,setEmpty:a},e[0]=o,e[1]=r):r=e[1];let i;return e[2]!==s||e[3]!==r?(i=n.jsx(Ts.Provider,{value:r,children:s}),e[2]=s,e[3]=r,e[4]=i):i=e[4],i}function So(){return G.useContext(Ts)?.empty??!1}function wo(t){const e=O.c(6),{value:s,onChange:o}=t,a=Q();let r;e[0]!==a?(r=a("sidebar.agentsSection.searchAgents"),e[0]=a,e[1]=r):r=e[1];let i;return e[2]!==o||e[3]!==r||e[4]!==s?(i=n.jsx(ko,{value:s,onChange:o,placeholder:r}),e[2]=o,e[3]=r,e[4]=s,e[5]=i):i=e[5],i}function _o(){const t=O.c(4),e=Q();let s;t[0]!==e?(s=e("sidebar.agentsSection.noAgentsFound"),t[0]=e,t[1]=s):s=t[1];let o;return t[2]!==s?(o=n.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=o):o=t[3],o}function Do(t){const e=O.c(10),{org:s,onClose:o}=t,a=Q();let r;e[0]!==s.slug?(r={org:s.slug},e[0]=s.slug,e[1]=r):r=e[1];let i;e[2]!==o?(i=()=>o(),e[2]=o,e[3]=i):i=e[3];let c;e[4]!==a?(c=a("sidebar.agentsSection.seeAllAgents"),e[4]=a,e[5]=c):c=e[5];let l;return e[6]!==r||e[7]!==i||e[8]!==c?(l=n.jsx("div",{className:"border-t border-border px-3 py-2.5",children:n.jsx(Qs,{to:"/$org/settings/agents",params:r,onClick:i,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:c})}),e[6]=r,e[7]=i,e[8]=c,e[9]=l):l=e[9],l}function Ao(){const t=O.c(4),e=Q();let s;t[0]!==e?(s=e("sidebar.agentsSection.agents"),t[0]=e,t[1]=s):s=t[1];let o;return t[2]!==s?(o=n.jsx(Is,{children:s}),t[2]=s,t[3]=o):o=t[3],o}function To(t){const e=O.c(11),{onImportFromGithub:s}=t,o=Q();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ms,{className:"size-3.5"}),e[0]=a):a=e[0];let r;e[1]!==o?(r=o("sidebar.agentsSection.import"),e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s||e[4]!==r?(i=n.jsxs("button",{type:"button",onClick:s,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",children:[a,r]}),e[3]=s,e[4]=r,e[5]=i):i=e[5];let c;e[6]!==o?(c=o("sidebar.agentsSection.codeAgents"),e[6]=o,e[7]=c):c=e[7];let l;return e[8]!==i||e[9]!==c?(l=n.jsx(Is,{action:i,children:c}),e[8]=i,e[9]=c,e[10]=l):l=e[10],l}function Io(t){const e=O.c(11),{setOpen:s,emptyCtaClass:o}=t,a=Q();let r;e[0]!==a?(r=a("sidebar.agentsSection.browseAgents"),e[0]=a,e[1]=r):r=e[1];let i;e[2]!==o?(i=J(o),e[2]=o,e[3]=i):i=e[3];let c;e[4]!==s?(c=()=>{oe("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[4]=s,e[5]=c):c=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Ye,{className:"size-4"}),e[6]=l):l=e[6];let f;return e[7]!==r||e[8]!==i||e[9]!==c?(f=n.jsx(ds,{"aria-label":r,className:i,onClick:c,children:l}),e[7]=r,e[8]=i,e[9]=c,e[10]=f):f=e[10],f}function Fo(t){const e=O.c(17),{setOpen:s,highlightEmpty:o,emptyCtaClass:a}=t,r=Q();let i;e[0]!==o||e[1]!==r?(i=o?void 0:r("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=r,e[2]=i):i=e[2];let c;e[3]!==a?(c=J(a),e[3]=a,e[4]=c):c=e[4];let l;e[5]!==s?(l=()=>{oe("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[5]=s,e[6]=l):l=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ye,{}),e[7]=f):f=e[7];let u;e[8]!==r?(u=r("sidebar.agentsSection.newAgent"),e[8]=r,e[9]=u):u=e[9];let m;e[10]!==u?(m=n.jsx("span",{children:u}),e[10]=u,e[11]=m):m=e[11];let d;return e[12]!==i||e[13]!==c||e[14]!==l||e[15]!==m?(d=n.jsx(os,{children:n.jsxs(is,{tooltip:i,className:c,onClick:l,children:[f,m]})}),e[12]=i,e[13]=c,e[14]=l,e[15]=m,e[16]=d):d=e[16],d}function Bo(){const t=O.c(4),e=Q();let s;t[0]!==e?(s=e("sidebar.agentsSection.browseAgents"),t[0]=e,t[1]=s):s=t[1];let o;return t[2]!==s?(o=n.jsx(Bt,{className:"sr-only",children:s}),t[2]=s,t[3]=o):o=t[3],o}function Po(t){const e=O.c(8),{emptyCtaClass:s}=t,o=Q();let a;e[0]!==o?(a=o("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=a):a=e[1];let r;e[2]!==s?(r=J(s),e[2]=s,e[3]=r):r=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(Ye,{className:"size-4"}),e[4]=i):i=e[4];let c;return e[5]!==a||e[6]!==r?(c=n.jsx(ds,{"aria-label":a,className:r,children:i}),e[5]=a,e[6]=r,e[7]=c):c=e[7],c}function Eo(t){const e=O.c(19),{wrapEmptyHint:s,highlightEmpty:o,emptyCtaClass:a}=t,r=Q();let i;e[0]!==o||e[1]!==r?(i=o?void 0:r("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=r,e[2]=i):i=e[2];let c;e[3]!==a?(c=J(a),e[3]=a,e[4]=c):c=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Ye,{}),e[5]=l):l=e[5];let f;e[6]!==r?(f=r("sidebar.agentsSection.newAgent"),e[6]=r,e[7]=f):f=e[7];let u;e[8]!==f?(u=n.jsx("span",{children:f}),e[8]=f,e[9]=u):u=e[9];let m;e[10]!==i||e[11]!==c||e[12]!==u?(m=n.jsx(Ue,{asChild:!0,children:n.jsxs(is,{tooltip:i,className:c,children:[l,u]})}),e[10]=i,e[11]=c,e[12]=u,e[13]=m):m=e[13];let d;e[14]!==m||e[15]!==s?(d=s(m),e[14]=m,e[15]=s,e[16]=d):d=e[16];let p;return e[17]!==d?(p=n.jsx(os,{children:d}),e[17]=d,e[18]=p):p=e[18],p}function Vo(t){const e=O.c(9),{children:s}=t,o=Q();let a;e[0]!==s?(a=n.jsx(Le,{asChild:!0,children:s}),e[0]=s,e[1]=a):a=e[1];let r;e[2]!==o?(r=o("sidebar.agentsSection.selectAnExistingAgent"),e[2]=o,e[3]=r):r=e[3];let i;e[4]!==r?(i=n.jsx(Me,{side:"right",sideOffset:8,children:r}),e[4]=r,e[5]=i):i=e[5];let c;return e[6]!==a||e[7]!==i?(c=n.jsxs(Re,{defaultOpen:!0,delayDuration:0,children:[a,i]}),e[6]=a,e[7]=i,e[8]=c):c=e[8],c}function $o(t){const e=ns(),{create:s}=Tn(),{locator:o}=le(),a=rs(),r=sn();return async i=>{const c=crypto.randomUUID(),l=i===r?No(t,o,a??""):null;try{await s({id:c,virtual_mcp_id:i,...l?{branch:l}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:c},search:{virtualmcpid:i}})}}function kt(t){const e=O.c(20),{agent:s,selected:o,onClick:a}=t,r=o?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let i;e[0]!==r?(i=J("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",r),e[0]=r,e[1]=i):i=e[1];let c;e[2]!==s.icon||e[3]!==s.title?(c=n.jsx(ls,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[2]=s.icon,e[3]=s.title,e[4]=c):c=e[4];let l;e[5]!==s.title?(l=n.jsx("p",{className:"text-sm font-medium truncate",children:s.title}),e[5]=s.title,e[6]=l):l=e[6];let f;e[7]!==s.description?(f=s.description&&n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s.description}),e[7]=s.description,e[8]=f):f=e[8];let u;e[9]!==l||e[10]!==f?(u=n.jsxs("div",{className:"flex-1 min-w-0",children:[l,f]}),e[9]=l,e[10]=f,e[11]=u):u=e[11];let m;e[12]!==o?(m=o&&n.jsx(qe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=o,e[13]=m):m=e[13];let d;return e[14]!==a||e[15]!==i||e[16]!==c||e[17]!==u||e[18]!==m?(d=n.jsxs("button",{type:"button",onClick:a,className:i,children:[c,u,m]}),e[14]=a,e[15]=i,e[16]=c,e[17]=u,e[18]=m,e[19]=d):d=e[19],d}function Is(t){const e=O.c(5),{children:s,action:o}=t;let a;e[0]!==s?(a=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:s}),e[0]=s,e[1]=a):a=e[1];let r;return e[2]!==o||e[3]!==a?(r=n.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[a,o]}),e[2]=o,e[3]=a,e[4]=r):r=e[4],r}function Oo(t){const e=O.c(43),{onClose:s,onSelectAgent:o,selectedAgentId:a,onImportFromGithub:r}=t,[i,c]=G.useState(""),l=G.useDeferredValue(i),f=l||void 0;let u;e[0]!==f?(u={searchTerm:f},e[0]=f,e[1]=u):u=e[1];const m=Tt(u),d=m??[],{org:p}=le(),g=$o(p.slug),h=In(m),x=l.toLowerCase(),j=d.filter(Ko).filter(z=>!h.has(z.id)).filter(Ro),N=j.filter(Mo),y=j.filter(Lo),v=cs(p.id),k=!l||v.title.toLowerCase().includes(x),C=!!(o&&k);let D;e[2]!==s||e[3]!==o?(D=()=>{o?.(null),s(),c("")},e[2]=s,e[3]=o,e[4]=D):D=e[4];const b=D;let w;e[5]!==g||e[6]!==s||e[7]!==o?(w=z=>{if(o){o(z.id),s(),c("");return}s(),c(""),g(z.id)},e[5]=g,e[6]=s,e[7]=o,e[8]=w):w=e[8];const _=w,I="flex flex-col max-h-[min(640px,80dvh)]";let P;e[9]!==i?(P=n.jsx(wo,{value:i,onChange:c}),e[9]=i,e[10]=P):P=e[10];const S="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5";let A;e[11]!==v||e[12]!==o||e[13]!==b||e[14]!==a||e[15]!==k?(A=o&&k&&v&&n.jsx(kt,{agent:v,selected:!a||a===v.id,onClick:b}),e[11]=v,e[12]=o,e[13]=b,e[14]=a,e[15]=k,e[16]=A):A=e[16];const T=(N.length>0||!l)&&n.jsx(To,{onImportFromGithub:r});let R;e[17]!==_||e[18]!==o||e[19]!==a?(R=z=>n.jsx(kt,{agent:z,selected:o?a===z.id:void 0,onClick:()=>_(z)},z.id),e[17]=_,e[18]=o,e[19]=a,e[20]=R):R=e[20];const E=N.map(R),F=y.length>0&&n.jsx(Ao,{});let L;e[21]!==_||e[22]!==o||e[23]!==a?(L=z=>n.jsx(kt,{agent:z,selected:o?a===z.id:void 0,onClick:()=>_(z)},z.id),e[21]=_,e[22]=o,e[23]=a,e[24]=L):L=e[24];const q=y.map(L);let B;e[25]!==C||e[26]!==l||e[27]!==j.length?(B=j.length===0&&!C&&l&&n.jsx(_o,{}),e[25]=C,e[26]=l,e[27]=j.length,e[28]=B):B=e[28];let U;e[29]!==E||e[30]!==F||e[31]!==q||e[32]!==B||e[33]!==A||e[34]!==T?(U=n.jsxs("div",{className:S,children:[A,T,E,F,q,B]}),e[29]=E,e[30]=F,e[31]=q,e[32]=B,e[33]=A,e[34]=T,e[35]=U):U=e[35];let $;e[36]!==s||e[37]!==p?($=n.jsx(Do,{org:p,onClose:s}),e[36]=s,e[37]=p,e[38]=$):$=e[38];let H;return e[39]!==U||e[40]!==$||e[41]!==P?(H=n.jsxs("div",{className:I,children:[P,U,$]}),e[39]=U,e[40]=$,e[41]=P,e[42]=H):H=e[42],H}function Lo(t){return!gs(t.metadata)}function Mo(t){return gs(t.metadata)}function Ro(t){return!xn(t.id)}function Ko(t){return!hn(t.id)}function zo(t){const e=O.c(14),{compact:s,trigger:o,onSelectAgent:a,selectedAgentId:r,side:i,align:c}=t===void 0?{}:t,l=s===void 0?!1:s,f=i===void 0?"right":i,u=c===void 0?"start":c,[m,d]=G.useState(!1),[p,g]=G.useState(!1),h=ss(),{setOpenMobile:x}=Gs(),j=So(),N=j?"border border-border":void 0;let y;e[0]!==j?(y=S=>j?n.jsx(Vo,{children:S}):S,e[0]=j,e[1]=y):y=e[1];const v=y;let k;e[2]!==h||e[3]!==x?(k=()=>{d(!1),h&&x(!1)},e[2]=h,e[3]=x,e[4]=k):k=e[4];const C=k;let D;e[5]!==C||e[6]!==g?(D=()=>{C(),g(!0)},e[5]=C,e[6]=g,e[7]=D):D=e[7];const b=D,w=m&&n.jsx(G.Suspense,{fallback:n.jsx("div",{className:"flex items-center justify-center py-8",children:n.jsx(Hs,{className:"h-4 w-24"})}),children:n.jsx(Oo,{onClose:C,onSelectAgent:a,selectedAgentId:r,onImportFromGithub:b})}),_=h?n.jsxs(n.Fragment,{children:[o?G.cloneElement(o,{onClick:S=>{o.props.onClick?.(S),d(!0)}}):l?v(n.jsx(Io,{setOpen:d,emptyCtaClass:N})):n.jsx(Fo,{setOpen:d,highlightEmpty:j,emptyCtaClass:N}),n.jsx(It,{open:m,onOpenChange:d,direction:"bottom",children:n.jsxs(Ft,{className:"max-h-[85dvh] p-0",children:[n.jsx(Bo,{}),w]})})]}):n.jsxs(ct,{open:m,onOpenChange:S=>{S&&!m&&oe("agent_browser_opened",{surface:"desktop_popover"}),d(S)},children:[o?n.jsx(Ue,{asChild:!0,children:o}):l?v(n.jsx(Ue,{asChild:!0,children:n.jsx(Po,{emptyCtaClass:N})})):n.jsx(Eo,{wrapEmptyHint:v,highlightEmpty:j,emptyCtaClass:N}),n.jsx(dt,{className:"w-[380px] p-0 overflow-hidden",side:f,align:u,children:w})]});let I;e[8]!==p||e[9]!==g?(I=n.jsx(Dn,{open:p,onOpenChange:g,mode:"agent"}),e[8]=p,e[9]=g,e[10]=I):I=e[10];let P;return e[11]!==_||e[12]!==I?(P=n.jsxs(n.Fragment,{children:[_,I]}),e[11]=_,e[12]=I,e[13]=P):P=e[13],P}function Uo(){const t=O.c(2),e=Tt()??[];let s;return t[0]!==e?(s=o=>{if(!o)return;const a=e.find(r=>r.id===o);return a?Pn(a.metadata):void 0},t[0]=e,t[1]=s):s=t[1],s}const Go="inline-flex items-center gap-1.5 min-w-0 rounded-md pl-1 pr-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Ho(t){const e=O.c(29),{agentId:s,fallback:o,onOpenHome:a,onPick:r}=t,i=Q(),c=yn(s)??o??null;let l,f,u,m,d;e[0]!==c?.title||e[1]!==a||e[2]!==i?(d=c?.title??i("header.shellBreadcrumb.superAgentDefaultName"),m="flex min-w-0 items-center gap-0",l="button",f=a,u=i("header.shellBreadcrumb.openAgentHome",{name:d}),e[0]=c?.title,e[1]=a,e[2]=i,e[3]=l,e[4]=f,e[5]=u,e[6]=m,e[7]=d):(l=e[3],f=e[4],u=e[5],m=e[6],d=e[7]);const p=c?.icon??null;let g;e[8]!==p||e[9]!==d?(g=n.jsx(ls,{icon:p,name:d,size:"xs"}),e[8]=p,e[9]=d,e[10]=g):g=e[10];let h;e[11]!==l||e[12]!==f||e[13]!==u||e[14]!==g?(h=n.jsx("button",{type:l,onClick:f,"aria-label":u,className:"flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:g}),e[11]=l,e[12]=f,e[13]=u,e[14]=g,e[15]=h):h=e[15];let x;e[16]!==d?(x=n.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:d}),e[16]=d,e[17]=x):x=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Ge,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[18]=j):j=e[18];let N;e[19]!==x?(N=n.jsxs("button",{type:"button",className:Go,children:[x,j]}),e[19]=x,e[20]=N):N=e[20];let y;e[21]!==s||e[22]!==r||e[23]!==N?(y=n.jsx(zo,{side:"bottom",align:"start",selectedAgentId:s,onSelectAgent:r,trigger:N}),e[21]=s,e[22]=r,e[23]=N,e[24]=y):y=e[24];let v;return e[25]!==y||e[26]!==m||e[27]!==h?(v=n.jsxs("div",{className:m,children:[h,y]}),e[25]=y,e[26]=m,e[27]=h,e[28]=v):v=e[28],v}function la(t){const e=O.c(22);let s;e[0]!==t?(s=t===void 0?{}:t,e[0]=t,e[1]=s):s=e[1];const{onNavigate:o}=s,{org:a}=le(),{threads:r}=ps(),i=Tt(),{data:c}=Dt.useSession(),{setTaskId:l,createNewTask:f}=hs(),u=Uo();let m;e[2]!==a.id?(m=cs(a.id),e[2]=a.id,e[3]=m):m=e[3];const d=m,p=d.id,g=as();let h;e[4]!==i||e[5]!==f||e[6]!==p||e[7]!==o||e[8]!==u||e[9]!==c?.user?.id||e[10]!==l||e[11]!==r?(h=k=>{const C=k??p,D=(i??[]).find(w=>w.id===C),b=Bn(r,C,c?.user?.id,u(C),!!(D&&vn(D)));b?l(b.id,C):f(C),o?.()},e[4]=i,e[5]=f,e[6]=p,e[7]=o,e[8]=u,e[9]=c?.user?.id,e[10]=l,e[11]=r,e[12]=h):h=e[12];const x=h;let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[13]=j):j=e[13];const N=g===p?d:void 0;let y;e[14]!==g||e[15]!==x?(y=()=>x(g),e[14]=g,e[15]=x,e[16]=y):y=e[16];let v;return e[17]!==g||e[18]!==x||e[19]!==N||e[20]!==y?(v=n.jsx(G.Suspense,{fallback:j,children:n.jsx(Ho,{agentId:g,fallback:N,onOpenHome:y,onPick:x})}),e[17]=g,e[18]=x,e[19]=N,e[20]=y,e[21]=v):v=e[21],v}function ca(){const t=O.c(20),e=Q(),{threads:s}=ps(),{createNewTask:o}=hs(),a=as(),r=rs();let i;t[0]!==r||t[1]!==s?(i=s.find(x=>x.id===r)?.branch??null,t[0]=r,t[1]=s,t[2]=i):i=t[2];const c=i;let l;t[3]!==a||t[4]!==o||t[5]!==c?(l=()=>{o(a,c)},t[3]=a,t[4]=o,t[5]=c,t[6]=l):l=t[6];const f=l;let u;t[7]!==e?(u=e("sidebar.taskGroupsList.newChat"),t[7]=e,t[8]=u):u=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(nn,{size:16}),t[9]=m):m=t[9];let d;t[10]!==f||t[11]!==u?(d=n.jsx(Le,{asChild:!0,children:n.jsx("button",{type:"button",onClick:f,"aria-label":u,className:"flex shrink-0 items-center rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:m})}),t[10]=f,t[11]=u,t[12]=d):d=t[12];let p;t[13]!==e?(p=e("sidebar.taskGroupsList.newChat"),t[13]=e,t[14]=p):p=t[14];let g;t[15]!==p?(g=n.jsx(Me,{side:"bottom",children:p}),t[15]=p,t[16]=g):g=t[16];let h;return t[17]!==d||t[18]!==g?(h=n.jsxs(Re,{children:[d,g]}),t[17]=d,t[18]=g,t[19]=h):h=t[19],h}function Qo({open:t,onOpenChange:e,onCreated:s}){const o=Q(),{org:a}=le(),{data:r}=Dt.useSession(),{stdioEnabled:i}=qs(),c=ss(),l=ks(),f=xs(),m=js(f,"").items,d=Ws({resolver:Ys(Xn),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),p=d.watch("ui_type"),g=d.watch("connection_url"),h=d.watch("npx_package"),x=et({uiType:p,connectionUrl:g??"",npxPackage:h??""})??Ut({uiType:p,connectionUrl:g??"",registryItems:m}),j=b=>{const w=b.trim();if(!w)return;const _=!!d.formState.dirtyFields.title,I=!!d.formState.dirtyFields.description,P=!!d.formState.dirtyFields.env_vars,S=T=>{if(T&&(!_&&!d.getValues("title").trim()&&T.title&&d.setValue("title",T.title,{shouldDirty:!1}),!I&&!(d.getValues("description")??"").trim()&&T.description&&d.setValue("description",T.description,{shouldDirty:!1}),!P&&T.envVarKeys?.length)){const R=d.getValues("env_vars")??[],E=new Set(R.map(L=>L.key)),F=T.envVarKeys.filter(L=>!E.has(L));F.length>0&&d.setValue("env_vars",[...R,...F.map(L=>({key:L,value:""}))],{shouldDirty:!0})}},A=Zn(w);if(A&&i){d.setValue("ui_type","NPX",{shouldDirty:!0}),d.setValue("npx_package",A.packageName,{shouldDirty:!0}),d.setValue("connection_url","",{shouldDirty:!0}),d.setValue("connection_token",null,{shouldDirty:!0}),S(et({uiType:"NPX",npxPackage:A.packageName}));return}if(w.startsWith("http://")||w.startsWith("https://")){const T=p==="HTTP"||p==="SSE"||p==="Websocket"?p:"HTTP";d.setValue("ui_type",T,{shouldDirty:!0}),d.setValue("connection_url",w,{shouldDirty:!0}),S(et({uiType:T,connectionUrl:w})??Ut({uiType:T,connectionUrl:w,registryItems:m}));return}p==="NPX"&&S(et({uiType:"NPX",npxPackage:w}))},N=b=>{b||d.reset(),e(b)},y=async b=>{let w,_=null,I=null,P=null;b.ui_type==="NPX"?(w="STDIO",_="",P=eo(b.npx_package||"",b.env_vars||[])):b.ui_type==="STDIO"?(w="STDIO",_="",P=to(b.stdio_command||"",b.stdio_args||"",b.stdio_cwd,b.env_vars||[])):(w=b.ui_type,_=b.connection_url||"",I=b.connection_token||null);const S=Vn("conn");try{await l.create.mutateAsync({id:S,title:b.title,description:b.description||null,connection_type:w,connection_url:_,connection_token:I,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:r?.user?.id||"system",organization_id:a.id,icon:b.icon??null,app_name:null,app_id:null,connection_headers:P,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),d.reset(),e(!1),s?.(S)}catch{de.error(o("connections.createConnectionDialog.failedToCreateConnection"))}},v=o("connections.createConnectionDialog.title"),k=o("connections.createConnectionDialog.description"),C=d.formState.isSubmitting?o("connections.createConnectionDialog.saving"):o("connections.createConnectionDialog.createButton"),D=n.jsxs("div",{className:"grid gap-4",children:[n.jsx(pe,{control:d.control,name:"ui_type",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.typeLabel")}),n.jsxs(zn,{value:b.value,onValueChange:b.onChange,children:[n.jsx(xe,{children:n.jsx(Un,{children:n.jsx(Gn,{})})}),n.jsxs(Hn,{children:[n.jsx(He,{value:"HTTP",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"w-4 h-4"}),o("connections.createConnectionDialog.httpType")]})}),n.jsx(He,{value:"SSE",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"w-4 h-4"}),o("connections.createConnectionDialog.sseType")]})}),n.jsx(He,{value:"Websocket",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(jt,{className:"w-4 h-4"}),o("connections.createConnectionDialog.websocketType")]})}),i&&n.jsxs(n.Fragment,{children:[n.jsx(He,{value:"NPX",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(ot,{className:"w-4 h-4"}),o("connections.createConnectionDialog.npxPackageType")]})}),n.jsx(He,{value:"STDIO",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(qn,{className:"w-4 h-4"}),o("connections.createConnectionDialog.customCommandType")]})})]})]})]}),n.jsx(je,{})]})}),p==="NPX"&&n.jsx(pe,{control:d.control,name:"npx_package",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.npmPackageLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.npmPackagePlaceholder"),...b,value:b.value??"",onPaste:w=>{const _=w.clipboardData.getData("text");_&&(w.preventDefault(),d.setValue("npx_package",_.trim(),{shouldDirty:!0}),j(_))},onBlur:w=>{j(w.target.value),b.onBlur()}})}),n.jsx(je,{})]})}),p==="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[n.jsx(pe,{control:d.control,name:"stdio_command",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.commandLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.commandPlaceholder"),...b,value:b.value??""})}),n.jsx(je,{})]})}),n.jsx(pe,{control:d.control,name:"stdio_args",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.argumentsLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.argumentsPlaceholder"),...b,value:b.value??""})}),n.jsx(je,{})]})})]}),n.jsx(pe,{control:d.control,name:"stdio_cwd",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.workingDirectoryLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.workingDirectoryPlaceholder"),...b,value:b.value??""})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:o("connections.createConnectionDialog.workingDirectoryDescription")}),n.jsx(je,{})]})})]}),(p==="NPX"||p==="STDIO")&&n.jsx(pe,{control:d.control,name:"env_vars",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.environmentVariablesLabel")}),n.jsx(xe,{children:n.jsx(Jn,{value:b.value??[],onChange:b.onChange})}),n.jsx(je,{})]})}),p!=="NPX"&&p!=="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsx(pe,{control:d.control,name:"connection_url",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.urlLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.urlPlaceholder"),...b,value:b.value??"",onPaste:w=>{const _=w.clipboardData.getData("text");_&&(w.preventDefault(),d.setValue("connection_url",_.trim(),{shouldDirty:!0}),j(_))},onBlur:w=>{j(w.target.value),b.onBlur()}})}),n.jsx(je,{})]})}),n.jsx(pe,{control:d.control,name:"connection_token",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:x?.token?.label??o("connections.createConnectionDialog.tokenLabelDefault")}),n.jsx(xe,{children:n.jsx(Se,{type:"password",placeholder:x?.token?.placeholder??o("connections.createConnectionDialog.tokenPlaceholderDefault"),className:"ph-no-capture",...b,value:b.value??""})}),x?.token?.helperText&&n.jsxs("p",{className:"text-xs text-muted-foreground",children:[x.token.helperText,x.id==="github"&&n.jsxs(n.Fragment,{children:[" ","·"," ",n.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:o("connections.createConnectionDialog.openGitHubPatSettings")})]})]}),n.jsx(je,{})]})})]}),n.jsx(pe,{control:d.control,name:"title",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.nameLabel")}),n.jsx(xe,{children:n.jsx(Se,{placeholder:o("connections.createConnectionDialog.namePlaceholder"),...b})}),n.jsx(je,{})]})}),n.jsx(pe,{control:d.control,name:"description",render:({field:b})=>n.jsxs(ge,{children:[n.jsx(he,{children:o("connections.createConnectionDialog.descriptionLabel")}),n.jsx(xe,{children:n.jsx(Qn,{placeholder:o("connections.createConnectionDialog.descriptionPlaceholder"),rows:3,...b,value:b.value??""})}),n.jsx(je,{})]})})]});return c?n.jsx(It,{open:t,onOpenChange:N,children:n.jsxs(Ft,{className:"max-h-[90vh]",children:[n.jsx(Nn,{className:"pb-2",children:n.jsxs("div",{className:"flex items-start justify-between gap-4",children:[n.jsxs("div",{className:"flex-1 text-left",children:[n.jsx(Bt,{children:v}),n.jsx(Sn,{className:"mt-1",children:k})]}),n.jsx(us,{asChild:!0,children:n.jsx(ye,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:n.jsx(Yn,{size:16})})})]})}),n.jsx(zt,{...d,children:n.jsxs("form",{onSubmit:d.handleSubmit(y),children:[n.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:D}),n.jsx(fs,{children:n.jsx(ye,{type:"submit",disabled:d.formState.isSubmitting,className:"w-full",children:C})})]})})]})}):n.jsx(bs,{open:t,onOpenChange:N,children:n.jsxs(ys,{className:"sm:max-w-[525px]",children:[n.jsxs(vs,{children:[n.jsx(Cs,{children:v}),n.jsx(Rn,{children:k})]}),n.jsx(zt,{...d,children:n.jsxs("form",{onSubmit:d.handleSubmit(y),children:[n.jsx("div",{className:"py-4",children:D}),n.jsxs(Kn,{children:[n.jsx(ye,{type:"button",variant:"outline",onClick:()=>N(!1),children:o("connections.createConnectionDialog.cancelButton")}),n.jsx(ye,{type:"submit",disabled:d.formState.isSubmitting,className:"min-w-40",children:C})]})]})})]})})}function qo(t){const e=O.c(72),{mode:s,agentId:o,addedConnectionIds:a,onAdd:r,onCloneAndAdd:i,onConnectAndAdd:c,connectingItemId:l,search:f,onCreateConnection:u,onBrowseNavigate:m,defaultTab:d}=t,p=s===void 0?"add":s,g=d===void 0?"connected":d,h=Q(),{org:x}=le(),j=G.useDeferredValue(f),N=f!==j;let y;e[0]!==j?(y=j.trim().toLowerCase(),e[0]=j,e[1]=y):y=e[1];const v=y;let k;e[2]!==g?(k=V=>V??g,e[2]=g,e[3]=k):k=e[3];const[C,D]=Xs(Js.connectionsTab(x.slug)+(g==="all"?":home-modal":":agent-modal"),k);let b;e[4]!==C||e[5]!==D?(b=V=>{V!==C&&oe("connections_dialog_tab_changed",{to_tab:V}),D(V)},e[4]=C,e[5]=D,e[6]=b):b=e[6];const w=b;let _;e[7]!==x.id||e[8]!==x.slug?(_={connectionId:jn,orgId:x.id,orgSlug:x.slug},e[7]=x.id,e[8]=x.slug,e[9]=_):_=e[9];const I=io(_),P=j?.trim().split(/\s+/).filter(Boolean)??[],S=P.length>0?{operator:"or",conditions:P.flatMap(si)}:void 0,A={...S&&{where:S},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},T=JSON.stringify(A),{data:R,fetchNextPage:E,hasNextPage:F,isFetchingNextPage:L}=oo({queryKey:fe.collectionListInfinite(I,x.id,"","CONNECTIONS",T),queryFn:async V=>{const{pageParam:X}=V,be=X===void 0?0:X;return(await I.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...S&&{where:S},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:be}})).structuredContent},initialPageParam:0,getNextPageParam:ei,staleTime:3e4}),q=R?.pages.flatMap(Zo)??[],B=Mn(q),U=new Set(q.filter(Jo).map(Xo)),$=xs(),H=js($,j),z=Gt(H.loadMore,H.hasMore,H.isLoadingMore),se=Gt(E,F??!1,L),W=C==="all"||!!v,ie=W?H.items.filter(V=>{const X=$n(V);if(X&&U.has(X))return!1;if(!v)return!0;const be=it(V._meta),ke=[V.title,V.description,V.name,V.server?.title,V.server?.description,V.server?.name,be?.friendly_name,be?.friendlyName].filter(Boolean).join(" ").toLowerCase();return P.some(me=>ke.includes(me.toLowerCase()))}):[],Z=ie.filter(Yo),ee=ie.filter(Wo);let te;e[10]!==a?(te=V=>V.some(X=>a.has(X.id)),e[10]=a,e[11]=te):te=e[11];const ne=te;let re;e[12]!==a||e[13]!==o||e[14]!==l||e[15]!==ne||e[16]!==p||e[17]!==r||e[18]!==m||e[19]!==i||e[20]!==h?(re=(V,X,be,ke,me)=>{const Ze=ne(me),$e=me.find(Ne=>!a.has(Ne.id)),ce=me[0];if(p==="browse"){const Ne=so(ce);return n.jsx(yt,{connection:{title:X,icon:be,description:me.length>1?`${me.length} instances`:ke??void 0},fallbackIcon:n.jsx(ot,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs(tt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(qe,{size:11})," ",h("virtualMcp.connectionDialogContent.connected")]}),onClick:()=>{oe("connection_browse_clicked",{app_name:ce.app_name??null,connection_id:ce.id,instances_count:me.length}),m?.(Ne)}},V)}return n.jsx(yt,{connection:{title:X,icon:be,description:ke},fallbackIcon:n.jsx(ot,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[Ze&&n.jsxs(tt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(qe,{size:11})," ",h("virtualMcp.connectionDialogContent.added")]}),n.jsx(ye,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Ne=>{Ne.stopPropagation(),$e?(oe("connection_add_clicked",{action:"use_existing",app_name:ce.app_name??null,connection_id:$e.id}),o&&oe("agent_connection_attached",{agent_id:o,connection_id:$e.id,app_name:ce.app_name??null,mode:"existing"}),r($e.id)):(oe("connection_add_clicked",{action:"clone",app_name:ce.app_name??null,base_connection_id:ce.id}),i(ce))},children:h("virtualMcp.connectionDialogContent.add")})]})},V)},e[12]=a,e[13]=o,e[14]=l,e[15]=ne,e[16]=p,e[17]=r,e[18]=m,e[19]=i,e[20]=h,e[21]=re):re=e[21];const M=re;let K;e[22]!==l||e[23]!==p||e[24]!==c||e[25]!==h?(K=V=>{const X=it(V._meta),be=X?.friendlyName||X?.friendly_name||V.server?.title||V.title||V.server?.name||V.name||V.id||"",ke=V.server?.description||V.description||null,me=V.server?.icons?.[0]?.src||On(V.server?.repository)||null,Ze=X?.official===!0,$e=X?.verified===!0,ce=X?.owner==="deco";return n.jsx(yt,{connection:{title:be,description:ke,icon:me},fallbackIcon:n.jsx(ot,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[ce&&n.jsxs(Re,{children:[n.jsx(Le,{asChild:!0,children:n.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:n.jsx("img",{src:"/logos/deco logo.svg",alt:h("virtualMcp.connectionDialogContent.madeByDeco"),className:"size-3"})})}),n.jsx(Me,{children:h("virtualMcp.connectionDialogContent.builtByDeco")})]}),!ce&&Ze&&n.jsxs(Re,{children:[n.jsx(Le,{asChild:!0,children:n.jsx(tt,{variant:"outline",size:"icon",children:n.jsx(vt,{})})}),n.jsx(Me,{children:h("virtualMcp.connectionDialogContent.builtByOfficial")})]}),!ce&&!Ze&&$e&&n.jsxs(Re,{children:[n.jsx(Le,{asChild:!0,children:n.jsx(tt,{variant:"outline",size:"icon",children:n.jsx(vt,{})})}),n.jsx(Me,{children:h("virtualMcp.connectionDialogContent.verifiedByDeco")})]}),n.jsx(ye,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Ne=>{Ne.stopPropagation(),oe("connection_add_clicked",{action:"connect_new",registry_item_id:V.id,app_name:X?.friendlyName||V.server?.name||V.name||null}),c(V)},children:l===V.id?n.jsx(Qe,{className:"size-3.5"}):h(p==="browse"?"virtualMcp.connectionDialogContent.connect":"virtualMcp.connectionDialogContent.add")})]})},`catalog-${V.id}`)},e[22]=l,e[23]=p,e[24]=c,e[25]=h,e[26]=K):K=e[26];const ae=K;let Y;e[27]!==C||e[28]!==w||e[29]!==u||e[30]!==v||e[31]!==h?(Y=!v&&n.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[n.jsx(no,{tabs:[{id:"all",label:h("virtualMcp.connectionDialogContent.tabAll")},{id:"connected",label:h("virtualMcp.connectionDialogContent.tabConnected")}],activeTab:C,onTabChange:V=>w(V)}),n.jsxs(ye,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{oe("connections_dialog_custom_clicked"),u()},children:[n.jsx(Ye,{size:12}),h("virtualMcp.connectionDialogContent.customConnection")]})]}),e[27]=C,e[28]=w,e[29]=u,e[30]=v,e[31]=h,e[32]=Y):Y=e[32];const ve=N&&"opacity-50 pointer-events-none";let ue;e[33]!==ve?(ue=J("flex-1 overflow-auto p-5 transition-opacity duration-150",ve),e[33]=ve,e[34]=ue):ue=e[34];const De="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let Ae;e[35]!==M?(Ae=V=>{if(V.type==="group")return M(V.key,V.title,V.icon,null,V.connections);const X=V.connection;return M(X.id,X.title,X.icon,X.description??null,[X])},e[35]=M,e[36]=Ae):Ae=e[36];const mt=B.map(Ae);let Te;e[37]!==se?(Te=n.jsx("div",{ref:se,className:"col-span-full h-1"}),e[37]=se,e[38]=Te):Te=e[38];let Ie;e[39]!==L?(Ie=L&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(Qe,{className:"size-6 text-muted-foreground"})}),e[39]=L,e[40]=Ie):Ie=e[40];const pt=W&&Z.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx(vt,{size:13,className:"text-muted-foreground shrink-0"}),n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:h("virtualMcp.connectionDialogContent.sectionVerified")}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),gt=W&&Z.map(ae),ht=W&&ee.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:h("virtualMcp.connectionDialogContent.sectionAllConnections")}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),xt=W&&ee.map(ae);let Fe;e[41]!==z||e[42]!==$||e[43]!==W?(Fe=W&&$.length>0&&n.jsx("div",{ref:z,className:"col-span-full h-1"}),e[41]=z,e[42]=$,e[43]=W,e[44]=Fe):Fe=e[44];let Be;e[45]!==H.isLoadingMore||e[46]!==W?(Be=W&&H.isLoadingMore&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(Qe,{className:"size-6 text-muted-foreground"})}),e[45]=H.isLoadingMore,e[46]=W,e[47]=Be):Be=e[47];let Pe;e[48]!==mt||e[49]!==Te||e[50]!==Ie||e[51]!==pt||e[52]!==gt||e[53]!==ht||e[54]!==xt||e[55]!==Fe||e[56]!==Be?(Pe=n.jsxs("div",{className:De,children:[mt,Te,Ie,pt,gt,ht,xt,Fe,Be]}),e[48]=mt,e[49]=Te,e[50]=Ie,e[51]=pt,e[52]=gt,e[53]=ht,e[54]=xt,e[55]=Fe,e[56]=Be,e[57]=Pe):Pe=e[57];let Ee;e[58]!==C||e[59]!==B.length||e[60]!==ee||e[61]!==f||e[62]!==h||e[63]!==Z?(Ee=B.length===0&&Z.length===0&&ee.length===0&&n.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:f?h("virtualMcp.connectionDialogContent.emptyStateSearchNoMatch",{search:f}):h(C==="connected"?"virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable")}),e[58]=C,e[59]=B.length,e[60]=ee,e[61]=f,e[62]=h,e[63]=Z,e[64]=Ee):Ee=e[64];let Ve;e[65]!==ue||e[66]!==Pe||e[67]!==Ee?(Ve=n.jsxs("div",{className:ue,children:[Pe,Ee]}),e[65]=ue,e[66]=Pe,e[67]=Ee,e[68]=Ve):Ve=e[68];let Je;return e[69]!==Y||e[70]!==Ve?(Je=n.jsxs(n.Fragment,{children:[Y,Ve]}),e[69]=Y,e[70]=Ve,e[71]=Je):Je=e[71],Je}function Wo(t){return!t.verified&&!it(t._meta)?.verified&&!t.meta?.verified}function Yo(t){return t.verified||it(t._meta)?.verified||t.meta?.verified}function Xo(t){return t.app_name}function Jo(t){return t.app_name}function Zo(t){return t?.items??[]}function ei(t,e){if(t?.hasMore)return e.reduce(ti,0)}function ti(t,e){return t+(e?.items?.length??0)}function si(t){return[{field:["title"],operator:"contains",value:t},{field:["description"],operator:"contains",value:t}]}function da({open:t,onOpenChange:e,defaultTab:s,initialSearch:o="",...a}){const r=Q(),i=a.mode??"add",c="agentId"in a?a.agentId:void 0,l="addedConnectionIds"in a?a.addedConnectionIds??new Set:new Set,f="onAdd"in a&&a.onAdd?a.onAdd:S=>{},u=(S,A,T)=>{c&&oe("agent_connection_attached",{agent_id:c,connection_id:S,app_name:A,mode:T})},[m,d]=G.useState(null),[p,g]=G.useState(o),[h,x]=G.useState(!1),[j,N]=G.useState(t);t!==j&&(N(t),t&&g(o));const{org:y}=le(),{data:v}=Dt.useSession(),k=ks(),C=at(),D=ns(),b=S=>{e(!1),D({to:"/$org/settings/connections/$appSlug",params:{org:y.slug,appSlug:S}})},w=()=>{C.invalidateQueries({predicate:S=>{const A=S.queryKey;return A[1]===y.id&&A[3]==="collection"&&A[4]==="CONNECTIONS"}})},_=async(S,A)=>{oe("connection_oauth_succeeded",{connection_id:S,flow:A});const T=new URL(`/api/${y.slug}/mcp/${S}`,window.location.origin);await C.invalidateQueries({queryKey:fe.isMCPAuthenticated(T.href,null)}),w()},I=async S=>{d(S.app_name??S.id);try{const T=`${S.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,E=(await k.create.mutateAsync({title:T,description:S.description??null,connection_type:S.connection_type,connection_url:S.connection_url??null,connection_token:null,icon:S.icon??null,app_name:S.app_name??null,app_id:S.app_id??null,connection_headers:S.connection_headers??null})).id,F=await Ct({connectionId:E,orgId:y.id,orgSlug:y.slug,persistFallback:L=>k.update.mutateAsync({id:E,data:{connection_token:L}}).then(()=>{})});if(F.ran&&!F.ok){oe("connection_oauth_failed",{connection_id:E,flow:"clone",error:F.error??"no_token"}),de.error(r("virtualMcp.addConnectionDialog.authenticationFailedError",{error:F.error??"no token received"})),await k.delete.mutateAsync(E);return}F.ran&&await _(E,"clone"),u(E,S.app_name??null,"clone"),f(E)}catch(A){console.error("Failed to add connection:",A),de.error(r("virtualMcp.addConnectionDialog.failedToAddConnection"))}finally{d(null)}},P=async S=>{if(!(!y||!v?.user?.id)){d(S.id);try{const A=Ln(S,y.id,v.user.id,{remoteIndex:0}),T=A.connection_type==="STDIO",R=!!A.connection_url,E=T&&A.connection_headers&&typeof A.connection_headers=="object"&&"command"in A.connection_headers;if(!R&&!E){de.error(r("virtualMcp.addConnectionDialog.mcpServerConnectionError")),d(null);return}const{id:F}=await k.create.mutateAsync(A),L=await Ct({connectionId:F,orgId:y.id,orgSlug:y.slug,persistFallback:q=>k.update.mutateAsync({id:F,data:{connection_token:q}}).then(()=>{})});if(L.ran&&!L.ok){oe("connection_oauth_failed",{connection_id:F,flow:"connect_new",error:L.error??"no_token"}),de.warning(r("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:r("virtualMcp.addConnectionDialog.signInFailedDescription",{error:L.error??"no token received"})}),u(F,A.app_name??null,"new"),f(F);return}L.ran?(await _(F,"connect_new"),de.success(r("virtualMcp.addConnectionDialog.connectedAuthenticated"))):de.success(r("virtualMcp.addConnectionDialog.connected")),u(F,A.app_name??null,"new"),f(F)}catch(A){console.error("Failed to connect:",A),de.error(r("virtualMcp.addConnectionDialog.failedToConnect"))}finally{d(null)}}};return n.jsxs(bs,{open:t,onOpenChange:e,children:[n.jsxs(ys,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[n.jsx(vs,{className:"px-6 pt-5 pb-0 shrink-0",children:n.jsx(Cs,{className:"text-base font-semibold",children:r(i==="browse"?"virtualMcp.addConnectionDialog.connectionsTitle":"virtualMcp.addConnectionDialog.addConnectionTitle")})}),n.jsx("div",{className:"pt-3 shrink-0",children:n.jsx(En,{value:p,onChange:g,placeholder:r("virtualMcp.addConnectionDialog.searchConnectionsPlaceholder")})}),n.jsx(G.Suspense,{fallback:n.jsx("div",{className:"flex-1 flex items-center justify-center",children:n.jsx(Qe,{className:"size-6 text-muted-foreground"})}),children:n.jsx(qo,{mode:i,agentId:c,addedConnectionIds:l,onAdd:f,onCloneAndAdd:I,onConnectAndAdd:P,connectingItemId:m,search:p,onCreateConnection:()=>x(!0),onBrowseNavigate:b,defaultTab:s})})]}),n.jsx(Qo,{open:h,onOpenChange:x,onCreated:async S=>{x(!1);const A=await Ct({connectionId:S,orgId:y.id,orgSlug:y.slug,persistFallback:T=>k.update.mutateAsync({id:S,data:{connection_token:T}}).then(()=>{})});if(A.ran&&!A.ok){oe("connection_oauth_failed",{connection_id:S,flow:"custom_create",error:A.error??"no_token"}),de.warning(r("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:r("virtualMcp.addConnectionDialog.signInFailedDescription",{error:A.error??"no token received"})}),u(S,null,"custom"),f(S),e(!1);return}A.ran&&await _(S,"custom_create"),u(S,null,"custom"),f(S),e(!1)}})]})}const Wt=new Map;function ua(){const{org:t}=le(),e=At(),s=ro(),o=s.find(x=>x.providerId==="deco"),{data:a,isLoading:r,refetch:i,isFetching:c}=lt({queryKey:fe.aiProviderCredits(t.id,"deco"),enabled:!!o,staleTime:6e4,queryFn:async()=>{try{return await e.call("AI_PROVIDER_CREDITS",{providerId:"deco"})}catch{return null}}}),l=a?.balanceCents??null,f=l!=null?l/100:null,u=G.useRef(new Map);if(l!=null){const x=Wt.get(t.id);u.current.get(t.id)&&x!=null&&l>x&&oe("credits_topped_up_detected",{organization_id:t.id,delta_cents:l-x,previous_balance_cents:x,new_balance_cents:l}),Wt.set(t.id,l),u.current.set(t.id,!0)}const m=!!o,d=l!=null&&l>0,p=l!=null&&l===0,g=l!=null&&l===200,h=s.length>0&&s.every(x=>x.providerId==="deco");return{hasDecoKey:m,decoKeyId:o?.id??null,balanceCents:l,balanceDollars:f,hasCredits:d,isZeroBalance:p,isInitialFreeCredit:g,hasOnlyDecoProvider:h,isLoading:r,isFetching:c,refetch:i}}const ni=4,oi="TASK";function ii(t){return t.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,ni)||oi}function ri(t,e){return e==null?null:`${ii(t)}-${String(e).padStart(2,"0")}`}const ai=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function li(t){const e=ai.exec(t.trim())?.[1];return e===void 0?null:Number(e)}function Yt(t){const e=O.c(8),{size:s,className:o}=t,a=s===void 0?16:s;let r;e[0]!==a?(r={width:a,height:a},e[0]=a,e[1]=r):r=e[1];let i;e[2]!==o?(i=J("shrink-0 rounded-full object-cover",o),e[2]=o,e[3]=i):i=e[3];let c;return e[4]!==a||e[5]!==r||e[6]!==i?(c=n.jsx("img",{src:bn,alt:"Super Agent",width:a,height:a,style:r,className:i}),e[4]=a,e[5]=r,e[6]=i,e[7]=c):c=e[7],c}const Xe=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations"],ci=["overview","reports","board","site-editor"],Lt=1,di=["assets","hosting","e2e","analytics","cdn"];function fa(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const o=e?.id===t?e:s?.id===t?s:null;return{project:o,resolvedScopeId:o?t:null}}function ma(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function Fs(t,e){const s=new Set(t??[]);if(e!==Lt)for(const o of ci)s.add(o);return Xe.filter(o=>s.has(o))}function ui(t){return Xe.some(e=>e===t)}function fi(t){return di.some(e=>e===t)}function mi(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,automations:!0}}function pa(t,e,s){const o=mi(e,s);return t?o:{...o,overview:!0,reports:!0,board:!0}}function ga(t,e,s){const o=new Set(Fs(t,s));return Xe.filter(a=>e[a]&&o.has(a))}function ha(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function xa(t){return Xe.filter(e=>t[e])}function pi(t,e,s){return!ui(t)||e[t]?!1:fi(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function ja(t,e,s,o,a){return pi(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!o.includes("content")||t==="code"&&a&&!o.includes("code")}function ba(t,e,s,o){const a=new Set(Fs(t,o));return s?a.add(e):a.delete(e),Xe.filter(r=>a.has(r))}function We(t,e){return fe.optimisticProjectSidebarViews(t,e)}function st(t){return typeof t=="object"&&t!==null}function Bs(t,e){return t[1]===e&&t[3]==="collection"&&t[4]==="VIRTUAL_MCP"}function gi(t,e){if(!st(t))return t;if("item"in t&&st(t.item)&&t.item.id===e.id)return{...t,item:e};if(!("structuredContent"in t)||!st(t.structuredContent))return t;const s=t.structuredContent.items;if(!Array.isArray(s))return t;let o=!1;const a=s.map(r=>!st(r)||r.id!==e.id?r:(o=!0,e));return o?{...t,structuredContent:{...t.structuredContent,items:a}}:t}function ya(t,e,s){t.setQueriesData({predicate:o=>Bs(o.queryKey,e)},o=>gi(o,s))}function va(t,e,s){const o=t.getQueriesData({predicate:a=>Bs(a.queryKey,e)&&a.queryKey[5]===s});for(const[,a]of o)if(a?.item?.id===s)return a.item;return null}function Mt(t,e,s){return t.getQueryData(We(e,s))??null}function hi(t,e){if(e)return{sidebarViews:[...e.views],sidebarViewsVersion:Lt};const s=t?.sidebarViews;return{sidebarViews:s===null?null:s?[...s]:void 0,sidebarViewsVersion:t?.sidebarViewsVersion}}function Ca(t,e,s){return e?{sidebarViews:[...e.views],sidebarViewsVersion:Lt}:s===void 0?{sidebarViews:t.sidebarViews===null?null:t.sidebarViews?[...t.sidebarViews]:void 0,sidebarViewsVersion:t.sidebarViewsVersion}:hi(s,null)}function xi(t,e,s,o,a){const r=Mt(t,e,s),i={revision:(r?.revision??0)+1,views:[...o],rollbackViews:r?[...r.rollbackViews]:[...a]};return t.setQueryData(We(e,s),i),{revision:i.revision,views:[...i.views],persistedViews:[...i.rollbackViews]}}function ji(t,e,s){const o=Mt(t,e,s);return o?{revision:o.revision,views:[...o.views],persistedViews:[...o.rollbackViews]}:null}function Ps(t,e){const s=new Set(t),o=new Set(e);return s.size===o.size&&[...s].every(a=>o.has(a))}function ka(t){return t?!Ps(t.views,t.persistedViews):!1}function bi(t,e,s,{snapshot:o,saved:a,authoritativeViews:r}){if(!o)return{settledLatest:!1,reconciledViews:null};const i=Mt(t,e,s);if(!i||o.revision>i.revision)return{settledLatest:!1,reconciledViews:null};const c=r!==void 0?[...r]:a?[...o.views]:null,l={...i,rollbackViews:c??i.rollbackViews};return l.rollbackViews!==i.rollbackViews&&t.setQueryData(We(e,s),l),o.revision!==i.revision?{settledLatest:!1,reconciledViews:null}:(t.setQueryData(We(e,s),null),{settledLatest:!0,reconciledViews:a?c&&!Ps(c,o.views)?c:null:[...l.rollbackViews]})}function Na(t){const e=O.c(5),{org:s}=le(),o=t??"";let a;e[0]!==s.id||e[1]!==o?(a=We(s.id,o),e[0]=s.id,e[1]=o,e[2]=a):a=e[2];let r;e[3]!==a?(r={queryKey:a,queryFn:yi,enabled:!1,staleTime:Number.POSITIVE_INFINITY},e[3]=a,e[4]=r):r=e[4];const{data:i}=lt(r);return i?.views}async function yi(){return null}function Sa(t){const e=O.c(4),{org:s}=le(),o=at();let a;return e[0]!==s||e[1]!==o||e[2]!==t?(a={stage:(r,i)=>xi(o,s.id,t,r,i),snapshot:()=>ji(o,s.id,t),settle:r=>bi(o,s.id,t,r)},e[0]=s,e[1]=o,e[2]=t,e[3]=a):a=e[3],a}function vi(t,e){if(!e)return null;const s=e.toLowerCase();return t.find(o=>{const a=o.bucket.toLowerCase();return o.siteSlug?.toLowerCase()===s||a===s||a===`deco-assets-${s}`})??null}function wa(t){const e=O.c(10),{org:s}=le(),o=Zs(),a=lo(),r=ao(),i=co(t),c=o.hostingEnabled===!0,l=o.monitorEnabled===!0||o.auth.localMode===!0,f=(c||l)&&!!i,u=lt({queryKey:fe.hostingAccess(s.slug,i??""),queryFn:async()=>{const k=await fetch(`/api/${s.slug}/hosting/${encodeURIComponent(i??"")}/access`);return k.ok?await k.json():{owned:!1,canWrite:!1}},enabled:f,staleTime:6e4}),m=u.data?.owned===!0,d=!!vi(r.data?.configs??[],i),p=c&&m&&a.hosting,g=c&&m&&a.e2e,h=c&&m&&a.analytics,x=l&&m&&a.monitor;let j;e[0]!==d||e[1]!==p||e[2]!==g||e[3]!==h||e[4]!==x?(j={assets:d,hosting:p,e2e:g,analytics:h,cdn:x},e[0]=d,e[1]=p,e[2]=g,e[3]=h,e[4]=x,e[5]=j):j=e[5];const N=!!i&&r.isPending,y=f&&u.isPending;let v;return e[6]!==j||e[7]!==N||e[8]!==y?(v={presence:j,assetsPending:N,siteAccessPending:y},e[6]=j,e[7]=N,e[8]=y,e[9]=v):v=e[9],v}const Xt=()=>0;function Ci(t){const{orgSlug:e,enabled:s=!0,onUpdate:o,onDelete:a,onResync:r}=t,i=G.useRef(o);i.current=o;const c=G.useRef(a);c.current=a;const l=G.useRef(r);l.current=r;const f=G.useRef(null),u=G.useRef(s),m=G.useRef(e);(!f.current||u.current!==s||m.current!==e)&&(u.current=s,m.current=e,f.current=p=>{if(!s||!e)return()=>{};const g=h=>{let x;try{x=JSON.parse(h.data)}catch{return}x.data&&(h.type===uo?c.current?.(x.data.id):i.current(x.data)),p()};return po.subscribe(e,g,()=>l.current?.())}),G.useSyncExternalStore(f.current,Xt,Xt)}function ki(t,e){return{queryKey:fe.taskBoardItems(t),refetchInterval:6e4,queryFn:async()=>{const{items:s}=await e.call("TASK_BOARD_ITEM_LIST",{});return{items:s}}}}function Ni(){const t=O.c(21),{org:e,locator:s}=le(),o=at();let a;t[0]!==s?(a=fe.taskBoardItems(s),t[0]=s,t[1]=a):a=t[1];const r=a;let i;t[2]!==s||t[3]!==o||t[4]!==r?(i=d=>{o.cancelQueries({queryKey:r}),o.setQueryData(r,p=>p&&{...p,items:p.items.some(g=>g.id===d.id)?p.items.map(g=>g.id===d.id?d:g):[d,...p.items]}),o.invalidateQueries({queryKey:fe.taskBoardActivity(s,d.id)})},t[2]=s,t[3]=o,t[4]=r,t[5]=i):i=t[5];let c,l;t[6]!==o||t[7]!==r?(c=()=>{o.invalidateQueries({queryKey:r})},l=d=>{o.cancelQueries({queryKey:r}),o.setQueryData(r,p=>p&&{...p,items:p.items.filter(g=>g.id!==d)})},t[6]=o,t[7]=r,t[8]=c,t[9]=l):(c=t[8],l=t[9]);let f;t[10]!==e.slug||t[11]!==i||t[12]!==c||t[13]!==l?(f={orgSlug:e.slug,onUpdate:i,onResync:c,onDelete:l},t[10]=e.slug,t[11]=i,t[12]=c,t[13]=l,t[14]=f):f=t[14],Ci(f);let u;t[15]!==o||t[16]!==r?(u=d=>{const p=d.subject,g=d.data.status;o.cancelQueries({queryKey:r}),o.setQueryData(r,h=>h&&{...h,items:h.items.map(x=>x.threads.some(j=>j.threadId===p)?{...x,threads:x.threads.map(j=>j.threadId===p?{...j,status:g}:j)}:x)})},t[15]=o,t[16]=r,t[17]=u):u=t[17];let m;t[18]!==e.slug||t[19]!==u?(m={orgSlug:e.slug,onTaskStatus:u},t[18]=e.slug,t[19]=u,t[20]=m):m=t[20],go(m)}function _a(){const t=O.c(9),{locator:e}=le(),s=At();let o;t[0]!==e||t[1]!==s?(o=ki(e,s),t[0]=e,t[1]=s,t[2]=o):o=t[2];const a=lt(o);Ni();let r;t[3]!==a.data?.items?(r=a.data?.items??[],t[3]=a.data?.items,t[4]=r):r=t[4];let i;return t[5]!==a.error||t[6]!==a.isLoading||t[7]!==r?(i={items:r,isLoading:a.isLoading,error:a.error},t[5]=a.error,t[6]=a.isLoading,t[7]=r,t[8]=i):i=t[8],i}function Da(){const t=O.c(70),{org:e,locator:s}=le(),o=At(),a=at(),r=Q();let i;t[0]!==s?(i=fe.taskBoardItems(s),t[0]=s,t[1]=i):i=t[1];const c=i;let l;t[2]!==a||t[3]!==c?(l=()=>a.invalidateQueries({queryKey:c}),t[2]=a,t[3]=c,t[4]=l):l=t[4];const f=l;let u;t[5]!==o?(u=B=>o.call("TASK_BOARD_ITEM_CREATE",B),t[5]=o,t[6]=u):u=t[6];let m;t[7]!==f||t[8]!==u?(m={mutationFn:u,onSuccess:f},t[7]=f,t[8]=u,t[9]=m):m=t[9];const d=Oe(m);let p;t[10]!==o?(p=B=>o.call("TASK_BOARD_ITEM_UPDATE",B),t[10]=o,t[11]=p):p=t[11];let g;t[12]!==a||t[13]!==c?(g=async B=>{await a.cancelQueries({queryKey:c});const U=a.getQueryData(c);return a.setQueryData(c,$=>$&&{...$,items:$.items.map(H=>H.id===B.id?{...H,...B}:H)}),{previous:U}},t[12]=a,t[13]=c,t[14]=g):g=t[14];let h;t[15]!==e?(h=(B,U)=>{U.status==="done"&&oe("task_marked_done",{organization_id:e.id,task_board_item_id:U.id})},t[15]=e,t[16]=h):h=t[16];let x;t[17]!==a||t[18]!==c?(x=(B,U,$)=>{$?.previous&&a.setQueryData(c,$.previous)},t[17]=a,t[18]=c,t[19]=x):x=t[19];let j;t[20]!==f||t[21]!==s||t[22]!==a?(j=(B,U,$)=>{f(),a.invalidateQueries({queryKey:fe.taskBoardActivity(s,$.id)})},t[20]=f,t[21]=s,t[22]=a,t[23]=j):j=t[23];let N;t[24]!==p||t[25]!==g||t[26]!==h||t[27]!==x||t[28]!==j?(N={mutationFn:p,onMutate:g,onSuccess:h,onError:x,onSettled:j},t[24]=p,t[25]=g,t[26]=h,t[27]=x,t[28]=j,t[29]=N):N=t[29];const y=Oe(N);let v;t[30]!==o?(v=B=>o.call("TASK_BOARD_ITEM_DELETE",{id:B}),t[30]=o,t[31]=v):v=t[31];let k;t[32]!==f||t[33]!==r?(k=B=>{de.error(B instanceof Error&&B.message?B.message:r("taskBoard.taskBoard.deleteError")),f()},t[32]=f,t[33]=r,t[34]=k):k=t[34];let C;t[35]!==f||t[36]!==v||t[37]!==k?(C={mutationFn:v,onSuccess:f,onError:k},t[35]=f,t[36]=v,t[37]=k,t[38]=C):C=t[38];const D=Oe(C);let b;t[39]!==o?(b=async B=>{const U=await Promise.allSettled(B.map($=>o.call("TASK_BOARD_ITEM_DELETE",{id:$})));return{total:B.length,failed:U.filter(Si).length}},t[39]=o,t[40]=b):b=t[40];let w,_;t[41]!==r?(w=B=>{const{total:U,failed:$}=B;$!==0&&de.error(r("taskBoard.taskBoard.deleteBulkError",{failed:String($),total:String(U)}))},_=()=>de.error(r("taskBoard.taskBoard.deleteError")),t[41]=r,t[42]=w,t[43]=_):(w=t[42],_=t[43]);let I;t[44]!==f||t[45]!==b||t[46]!==w||t[47]!==_?(I={mutationFn:b,onSuccess:w,onError:_,onSettled:f},t[44]=f,t[45]=b,t[46]=w,t[47]=_,t[48]=I):I=t[48];const P=Oe(I);let S;t[49]!==o?(S=B=>o.call("TASK_BOARD_ITEM_UPDATE",B),t[49]=o,t[50]=S):S=t[50];let A;t[51]!==f||t[52]!==S?(A={mutationFn:S,onSuccess:f},t[51]=f,t[52]=S,t[53]=A):A=t[53];const T=Oe(A);let R;t[54]!==o?(R=B=>o.call("TASK_BOARD_ITEM_RERUN",B),t[54]=o,t[55]=R):R=t[55];let E;t[56]!==f||t[57]!==s||t[58]!==a?(E=(B,U,$)=>{f(),a.invalidateQueries({queryKey:fe.taskBoardActivity(s,$.id)})},t[56]=f,t[57]=s,t[58]=a,t[59]=E):E=t[59];let F;t[60]!==R||t[61]!==E?(F={mutationFn:R,onSettled:E},t[60]=R,t[61]=E,t[62]=F):F=t[62];const L=Oe(F);let q;return t[63]!==d||t[64]!==T||t[65]!==D||t[66]!==P||t[67]!==L||t[68]!==y?(q={create:d,update:y,remove:D,removeMany:P,link:T,rerun:L},t[63]=d,t[64]=T,t[65]=D,t[66]=P,t[67]=L,t[68]=y,t[69]=q):q=t[69],q}function Si(t){return t.status==="rejected"}const wi=["ended_after_delivery","superseded"];function _i(t){return!!t&&wi.includes(t)}function Aa(t){return!(t.action==="status_changed"&&typeof t.data?.retry=="number")}function Ta(t){return t.failureKind!=="superseded"}function Es(t){return t.threads.some(e=>e.status==="requires_action")}function Ia(t){return t.status==="in_review"&&!t.assigneeId}function Fa(t){return Es(t)}function Ba(t){return t.status==="in_progress"&&Es(t)?"text-warning animate-pulse":$s(t.status).iconClassName}function Pa(t){return t.threads.some(s=>s.status==="in_progress")?"running":t.threads.some(s=>s.status==="failed"&&!_i(s.failureKind))?"failed":null}function Ea(t,e,s){const o=t.findIndex(u=>u.id===s),a=e===s?t[o+1]?.id??null:e,r=t.filter(u=>u.id!==s),i=a?r.findIndex(u=>u.id===a):-1,c=i===-1?r.length:i,l=r[c-1],f=r[c];return l&&f?(l.sortOrder+f.sortOrder)/2:l?l.sortOrder+1:f?f.sortOrder-1:0}function Va(t,e){return Array.from({length:e},(s,o)=>t-(e-1-o)*1e-4)}const Di=["archived"],Vs={triage:{labelKey:"taskBoard.config.statusBacklog",icon:jo,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:As,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:dn,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:yo,iconClassName:"text-warning"},approved:{labelKey:"taskBoard.config.statusApproved",icon:cn,iconClassName:"text-success"},merged:{labelKey:"taskBoard.config.statusMerged",icon:Wn,iconClassName:"text-primary"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:ln,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:bo,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:en,iconClassName:"text-muted-foreground"}},Ai={icon:As,iconClassName:"text-muted-foreground"},Ti=Vs;function $s(t){return Ti[t]??Ai}function $a(t,e){const s=Vs[t];return{label:s?e(s.labelKey):t,visual:$s(t)}}const Oa=["bug","feature","chore","spike","security"],La={bug:{labelKey:"taskBoard.config.typeBug",icon:Co,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:mn,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:fn,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:un,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:vo,iconClassName:"text-purple-500"}};function St(t){return mo.includes(t)}function Ma(t){return Pt.filter(e=>t||!St(e))}function Ra({deliveryEnabled:t,shownLanes:e,occupied:s}){const o=Pt.filter(i=>t||!St(i)||s.includes(i)),a=o.filter(i=>Di.includes(i)||!t&&St(i)),r=a.filter(i=>!e.includes(i));return{lanes:o.filter(i=>!r.includes(i)),hidden:r,hideable:a}}const Jt="lane:";function Ii(t){return Pt.includes(t)}function Ka({overId:t,statusOf:e}){if(t===void 0)return null;const s=String(t),o=s.startsWith(Jt)?s.slice(Jt.length):e(s);return o!==void 0&&Ii(o)?o:null}const Fi=["none","low","medium","high","urgent"],nt={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:Kt,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:an,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:Kt,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:rn,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:on,iconClassName:"text-destructive"}};function za(t,e=Date.now()){const s=new Date(t).getTime();return Number.isNaN(s)?null:s<e?"overdue":s-e<=Bi*864e5?"soon":null}const Bi=3;function Zt(t){return`color-mix(in oklab, ${t??fo} var(--user-color-strength), transparent)`}function Os(t){return t?.projects.length===1?t.projects[0]:void 0}function Pi(t){return Os(t)?t.repo:t.projects.length>1?t.projects.map(e=>e.title).join(", "):null}function Ls(t){const e=O.c(6),{entry:s}=t;let o;e[0]!==s?(o=Os(s),e[0]=s,e[1]=o):o=e[1];const a=o;if(a){let i;return e[2]!==a.icon||e[3]!==a.title?(i=n.jsx(Fn,{icon:a.icon,name:a.title}),e[2]=a.icon,e[3]=a.title,e[4]=i):i=e[4],i}let r;return e[5]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(ms,{className:"size-3"})}),e[5]=r):r=e[5],r}function Ei(t){const e=O.c(14),{entry:s}=t;let o;e[0]!==s?(o=Pi(s),e[0]=s,e[1]=o):o=e[1];const a=o;let r;e[2]!==s?(r=n.jsx(Ls,{entry:s}),e[2]=s,e[3]=r):r=e[3];let i;e[4]!==s.title?(i=n.jsx("span",{className:"truncate",children:s.title}),e[4]=s.title,e[5]=i):i=e[5];let c;e[6]!==a?(c=a&&n.jsx("span",{className:"truncate text-xs text-muted-foreground",children:a}),e[6]=a,e[7]=c):c=e[7];let l;e[8]!==i||e[9]!==c?(l=n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i,c]}),e[8]=i,e[9]=c,e[10]=l):l=e[10];let f;return e[11]!==r||e[12]!==l?(f=n.jsxs(n.Fragment,{children:[r,l]}),e[11]=r,e[12]=l,e[13]=f):f=e[13],f}const ut="__no_repo__";function we(t){return(t??"").trim().toLowerCase()}function Vi(t,e){const s=(t.created_at??"").localeCompare(e.created_at??"");return s!==0?s:t.id.localeCompare(e.id)}function $i(t){return t.projects.length===1?t.projects[0]?.title??t.repo??t.id:t.repo??t.id}function Ua(t,e=[]){const s=new Map,o=new Map,a=[],r=u=>{const m=we(u),d=s.get(m);if(d)return d;const p={id:m,kind:"repo",repo:u.trim(),title:u.trim(),projects:[]};return s.set(m,p),p};for(const u of t){const m=Cn(u);if(m){const p=r(m);p.projects.push(u),o.set(u.id,p);continue}const d={id:u.id,kind:"project",repo:null,title:u.title,projects:[u]};a.push(d),o.set(u.id,d)}for(const u of e){const m=(u??"").trim();m&&r(m)}for(const u of s.values())u.projects.sort(Vi),u.title=$i(u);const i=[...s.values()].filter(u=>u.projects.length>0),c=[...s.values()].filter(u=>u.projects.length===0),l=(u,m)=>u.title.localeCompare(m.title),f=[...[...i,...a].sort(l),...c.sort(l)];return{entries:f,byId:new Map(f.map(u=>[u.id,u])),byRepo:s,byProject:o}}function wt(t,e){for(const o of t.threads??[]){const a=o.virtualMcpId?e.byProject.get(o.virtualMcpId):void 0;if(a)return a}const s=we(t.repo);return(s?e.byRepo.get(s):void 0)??null}function Oi(t,e){const s=wt(t,e);if(!s)return[];if(s.projects.length<=1)return s.projects;for(const o of t.threads??[]){const a=o.virtualMcpId?s.projects.find(r=>r.id===o.virtualMcpId):void 0;if(a)return[a]}return s.projects}function Ga(t,e){const s=Oi(t,e);return s.length===1?s[0]??null:null}function Rt(t,e){return e.byId.get(t)??e.byRepo.get(we(t))??e.byProject.get(t)}function Ms(t,e,s){if(e===null)return!0;if(e===ut)return wt(t,s)===null;const o=Rt(e,s);return o?o.repo&&we(t.repo)===we(o.repo)?!0:wt(t,s)===o:e.includes("/")?we(t.repo)===we(e):!0}function ft(t,e){return t===null?!1:t===ut?!0:!!Rt(t,e)||t.includes("/")}function Ha(t,e,s){return e===null?null:Ms(t,e,s)?e:null}function Qa(t){return t.entries.filter(e=>e.repo!==null&&(e.projects.length===0||e.projects.some(s=>kn(s).status!=="detached")))}const _t="__unassigned__",ze="__any__",Rs={assignee:null,priority:null,due:null,tags:[],project:null,search:""};function Li(t,e){return t.assignee!==null||t.priority!==null||t.due!==null||t.tags.length>0||ft(t.project,e)||t.search.trim()!==""}function Mi(t,e){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)+(t.tags.length>0?1:0)+(ft(t.project,e)?1:0)+(t.search.trim()!==""?1:0)}const Ri=864e5;function Ki(t,e){const s=new Date(t),o=new Date(e);return s.getFullYear()===o.getFullYear()&&s.getMonth()===o.getMonth()&&s.getDate()===o.getDate()}function Ks(t,e){const s=t.trim();return s===""?!1:e!=null&&li(s)===e}function zi(t,e){return t.assigneeId===e?!0:t.assigneeId===Nt&&t.assignedBy===e}function qa(t,e,s){const o=e.search.trim().toLowerCase();if(o!==""&&!`${t.title} ${t.description??""}`.toLowerCase().includes(o)&&!Ks(o,t.keySeq))return!1;if(e.assignee!==null){if(e.assignee===_t){if(t.assigneeId!==null)return!1}else if(!zi(t,e.assignee))return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const a=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&a>=r||e.due==="today"&&!Ki(a,r)||e.due==="week"&&(a<r||a>r+7*Ri))return!1}if(e.tags.length>0){const a=t.tags.map(r=>r.id);if(!e.tags.some(r=>a.includes(r)))return!1}return!!Ms(t,e.project,s)}const es={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function _e(t,e=!1){return J("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function Ui(t){const e=O.c(107),{value:s,members:o,onChange:a,block:r}=t,i=Q(),[c,l]=G.useState(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Qt,{size:14,className:"shrink-0"}),e[0]=f):f=e[0];let u=f,m;e[1]!==i?(m=i("taskBoard.taskFilters.assigneeLabel"),e[1]=i,e[2]=m):m=e[2];let d=m;if(s===_t){let M;e[3]!==i?(M=i("taskBoard.taskFilters.assigneeUnassigned"),e[3]=i,e[4]=M):M=e[4],d=M}else if(s===Nt){let M;e[5]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx(Yt,{size:14}),e[5]=M):M=e[5],u=M;let K;e[6]!==i?(K=i("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=i,e[7]=K):K=e[7],d=K}else if(s){let M,K,ae,Y;if(e[8]!==o||e[9]!==s){let De;e[14]!==s?(De=Ae=>Ae.userId===s,e[14]=s,e[15]=De):De=e[15],K=o.find(De),M=Ht,ae=K?.user?.image??void 0,Y=qt(K?.user?.name),e[8]=o,e[9]=s,e[10]=M,e[11]=K,e[12]=ae,e[13]=Y}else M=e[10],K=e[11],ae=e[12],Y=e[13];let ve;e[16]!==M||e[17]!==ae||e[18]!==Y?(ve=n.jsx(M,{url:ae,fallback:Y,shape:"circle",size:"2xs"}),e[16]=M,e[17]=ae,e[18]=Y,e[19]=ve):ve=e[19],u=ve;let ue;e[20]!==K?.user?.name||e[21]!==i?(ue=K?.user?.name??i("taskBoard.taskFilters.assigneeMember"),e[20]=K?.user?.name,e[21]=i,e[22]=ue):ue=e[22],d=ue}let p;e[23]!==a?(p=M=>{a(M),l(!1)},e[23]=a,e[24]=p):p=e[24];const g=p,h=s!==null;let x;e[25]!==r||e[26]!==h?(x=_e(h,r),e[25]=r,e[26]=h,e[27]=x):x=e[27];const j=x,N=r&&"ml-auto";let y;e[28]!==N?(y=J("shrink-0 opacity-60",N),e[28]=N,e[29]=y):y=e[29];const v=y;let k;e[30]!==d?(k=n.jsx("span",{className:"max-w-[10rem] truncate",children:d}),e[30]=d,e[31]=k):k=e[31];let C;e[32]!==v?(C=n.jsx(Ge,{size:12,className:v}),e[32]=v,e[33]=C):C=e[33];let D;e[34]!==u||e[35]!==k||e[36]!==C||e[37]!==j?(D=n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",className:j,children:[u,k,C]})}),e[34]=u,e[35]=k,e[36]=C,e[37]=j,e[38]=D):D=e[38];let b;e[39]!==i?(b=i("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=i,e[40]=b):b=e[40];let w;e[41]!==i?(w=i("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[41]=i,e[42]=w):w=e[42];let _;e[43]!==b||e[44]!==w?(_=n.jsx(Et,{placeholder:b,"aria-label":w,className:"h-9"}),e[43]=b,e[44]=w,e[45]=_):_=e[45];let I;e[46]!==i?(I=i("taskBoard.taskFilters.assigneeNoMembersFound"),e[46]=i,e[47]=I):I=e[47];let P;e[48]!==I?(P=n.jsx(Vt,{children:I}),e[48]=I,e[49]=P):P=e[49];let S;e[50]!==i?(S=i("taskBoard.taskFilters.assigneeAnyone"),e[50]=i,e[51]=S):S=e[51];let A;e[52]!==g?(A=()=>g(null),e[52]=g,e[53]=A):A=e[53];let T;e[54]!==i?(T=i("taskBoard.taskFilters.assigneeAnyone"),e[54]=i,e[55]=T):T=e[55];let R;e[56]!==S||e[57]!==A||e[58]!==T?(R=n.jsx(Ce,{value:S,onSelect:A,children:T}),e[56]=S,e[57]=A,e[58]=T,e[59]=R):R=e[59];let E;e[60]!==i?(E=i("taskBoard.taskFilters.assigneeUnassigned"),e[60]=i,e[61]=E):E=e[61];let F;e[62]!==g?(F=()=>g(_t),e[62]=g,e[63]=F):F=e[63];let L;e[64]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(Qt,{size:16,className:"text-muted-foreground"}),e[64]=L):L=e[64];let q;e[65]!==i?(q=i("taskBoard.taskFilters.assigneeUnassigned"),e[65]=i,e[66]=q):q=e[66];let B;e[67]!==E||e[68]!==F||e[69]!==q?(B=n.jsxs(Ce,{value:E,onSelect:F,className:"gap-2",children:[L,q]}),e[67]=E,e[68]=F,e[69]=q,e[70]=B):B=e[70];let U;e[71]!==i?(U=i("taskBoard.taskFilters.assigneeSuperAgent"),e[71]=i,e[72]=U):U=e[72];let $;e[73]!==g?($=()=>g(Nt),e[73]=g,e[74]=$):$=e[74];let H;e[75]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx(Yt,{size:16}),e[75]=H):H=e[75];let z;e[76]!==i?(z=i("taskBoard.taskFilters.assigneeSuperAgent"),e[76]=i,e[77]=z):z=e[77];let se;e[78]!==U||e[79]!==$||e[80]!==z?(se=n.jsxs(Ce,{value:U,onSelect:$,className:"gap-2",children:[H,z]}),e[78]=U,e[79]=$,e[80]=z,e[81]=se):se=e[81];let W;e[82]!==R||e[83]!==B||e[84]!==se?(W=n.jsxs(Ke,{children:[R,B,se]}),e[82]=R,e[83]=B,e[84]=se,e[85]=W):W=e[85];let ie;e[86]!==i?(ie=i("taskBoard.taskFilters.assigneeGroupMembers"),e[86]=i,e[87]=ie):ie=e[87];let Z;if(e[88]!==o||e[89]!==g){let M;e[91]!==g?(M=K=>n.jsxs(Ce,{value:K.user?.name??K.userId,onSelect:()=>g(K.userId),className:"gap-2",children:[n.jsx(Ht,{url:K.user?.image??void 0,fallback:qt(K.user?.name),shape:"circle",size:"2xs"}),n.jsx("span",{className:"truncate",children:K.user?.name??K.userId})]},K.userId),e[91]=g,e[92]=M):M=e[92],Z=o.map(M),e[88]=o,e[89]=g,e[90]=Z}else Z=e[90];let ee;e[93]!==ie||e[94]!==Z?(ee=n.jsx(Ke,{heading:ie,children:Z}),e[93]=ie,e[94]=Z,e[95]=ee):ee=e[95];let te;e[96]!==P||e[97]!==W||e[98]!==ee?(te=n.jsxs($t,{children:[P,W,ee]}),e[96]=P,e[97]=W,e[98]=ee,e[99]=te):te=e[99];let ne;e[100]!==_||e[101]!==te?(ne=n.jsx(dt,{align:"start",className:"w-56 p-0",children:n.jsxs(Ot,{children:[_,te]})}),e[100]=_,e[101]=te,e[102]=ne):ne=e[102];let re;return e[103]!==c||e[104]!==D||e[105]!==ne?(re=n.jsxs(ct,{open:c,onOpenChange:l,children:[D,ne]}),e[103]=c,e[104]=D,e[105]=ne,e[106]=re):re=e[106],re}function Gi(t){const e=O.c(33),{value:s,onChange:o,block:a}=t,r=Q(),i=s!==null;let c;e[0]!==a||e[1]!==i?(c=_e(i,a),e[0]=a,e[1]=i,e[2]=c):c=e[2];const l=c,f=a&&"ml-auto";let u;e[3]!==f?(u=J("shrink-0 opacity-60",f),e[3]=f,e[4]=u):u=e[4];const m=u;let d;e[5]!==s?(d=s?n.jsx("span",{className:J("size-2 shrink-0 rounded-full",nt[s].dotClassName)}):n.jsx(ho,{size:14,className:"shrink-0"}),e[5]=s,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==s?(p=r(s?nt[s].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=r,e[8]=s,e[9]=p):p=e[9];let g;e[10]!==m?(g=n.jsx(Ge,{size:12,className:m}),e[10]=m,e[11]=g):g=e[11];let h;e[12]!==d||e[13]!==p||e[14]!==g||e[15]!==l?(h=n.jsx(Ss,{asChild:!0,children:n.jsxs("button",{type:"button",className:l,children:[d,p,g]})}),e[12]=d,e[13]=p,e[14]=g,e[15]=l,e[16]=h):h=e[16];const x=s??ze;let j;e[17]!==o?(j=D=>o(D===ze?null:D),e[17]=o,e[18]=j):j=e[18];let N;e[19]!==r?(N=r("taskBoard.taskFilters.priorityAnyPriority"),e[19]=r,e[20]=N):N=e[20];let y;e[21]!==N?(y=n.jsx(rt,{value:ze,children:N}),e[21]=N,e[22]=y):y=e[22];let v;e[23]!==r?(v=Fi.map(D=>n.jsxs(rt,{value:D,className:"gap-2",children:[n.jsx("span",{className:J("size-2 rounded-full",nt[D].dotClassName)}),r(nt[D].labelKey)]},D)),e[23]=r,e[24]=v):v=e[24];let k;e[25]!==j||e[26]!==y||e[27]!==v||e[28]!==x?(k=n.jsx(ws,{align:"start",className:"w-40",children:n.jsxs(_s,{value:x,onValueChange:j,children:[y,v]})}),e[25]=j,e[26]=y,e[27]=v,e[28]=x,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==h?(C=n.jsxs(Ds,{children:[h,k]}),e[30]=k,e[31]=h,e[32]=C):C=e[32],C}function Hi(t){const e=O.c(35),{value:s,onChange:o,block:a}=t,r=Q();let i;e[0]!==r||e[1]!==s?(i=s?r(es[s]):void 0,e[0]=r,e[1]=s,e[2]=i):i=e[2];const c=i,l=s!==null;let f;e[3]!==a||e[4]!==l?(f=_e(l,a),e[3]=a,e[4]=l,e[5]=f):f=e[5];const u=f,m=a&&"ml-auto";let d;e[6]!==m?(d=J("shrink-0 opacity-60",m),e[6]=m,e[7]=d):d=e[7];const p=d;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(bt,{size:14,className:"shrink-0"}),e[8]=g):g=e[8];let h;e[9]!==c||e[10]!==r?(h=c??r("taskBoard.taskFilters.dueDateLabel"),e[9]=c,e[10]=r,e[11]=h):h=e[11];let x;e[12]!==p?(x=n.jsx(Ge,{size:12,className:p}),e[12]=p,e[13]=x):x=e[13];let j;e[14]!==h||e[15]!==x||e[16]!==u?(j=n.jsx(Ss,{asChild:!0,children:n.jsxs("button",{type:"button",className:u,children:[g,h,x]})}),e[14]=h,e[15]=x,e[16]=u,e[17]=j):j=e[17];const N=s??ze;let y;e[18]!==o?(y=_=>o(_===ze?null:_),e[18]=o,e[19]=y):y=e[19];let v;e[20]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(bt,{size:16,className:"text-muted-foreground"}),e[20]=v):v=e[20];let k;e[21]!==r?(k=r("taskBoard.taskFilters.dueDateAnyTime"),e[21]=r,e[22]=k):k=e[22];let C;e[23]!==k?(C=n.jsxs(rt,{value:ze,className:"gap-2",children:[v,k]}),e[23]=k,e[24]=C):C=e[24];let D;e[25]!==r?(D=Object.entries(es).map(_=>{const[I,P]=_,S=I==="overdue";return n.jsxs(rt,{value:I,className:J("gap-2",S&&"text-destructive"),children:[n.jsx(bt,{size:16,className:J("shrink-0",S?"text-destructive":"text-muted-foreground")}),r(P)]},I)}),e[25]=r,e[26]=D):D=e[26];let b;e[27]!==N||e[28]!==y||e[29]!==C||e[30]!==D?(b=n.jsx(ws,{align:"start",className:"w-44",children:n.jsxs(_s,{value:N,onValueChange:y,children:[C,D]})}),e[27]=N,e[28]=y,e[29]=C,e[30]=D,e[31]=b):b=e[31];let w;return e[32]!==b||e[33]!==j?(w=n.jsxs(Ds,{children:[j,b]}),e[32]=b,e[33]=j,e[34]=w):w=e[34],w}function Qi(t){const e=O.c(56),{value:s,tags:o,onChange:a,block:r}=t,i=Q(),[c,l]=G.useState(!1);let f;e[0]!==a||e[1]!==s?(f=E=>a(s.includes(E)?s.filter(F=>F!==E):[...s,E]),e[0]=a,e[1]=s,e[2]=f):f=e[2];const u=f;let m;e[3]!==i||e[4]!==o||e[5]!==s[0]||e[6]!==s.length?(m=s.length===0?i("taskBoard.taskFilters.tagsLabel"):s.length===1?o.find(E=>E.id===s[0])?.name??i("taskBoard.taskFilters.tagsLabel"):i("taskBoard.taskFilters.tagsSelectedCount",{count:s.length}),e[3]=i,e[4]=o,e[5]=s[0],e[6]=s.length,e[7]=m):m=e[7];const d=m,p=s.length>0;let g;e[8]!==r||e[9]!==p?(g=_e(p,r),e[8]=r,e[9]=p,e[10]=g):g=e[10];const h=g,x=r&&"ml-auto";let j;e[11]!==x?(j=J("shrink-0 opacity-60",x),e[11]=x,e[12]=j):j=e[12];const N=j;let y;e[13]!==o||e[14]!==s[0]||e[15]!==s.length?(y=s.length===1?n.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:Zt(o.find(E=>E.id===s[0])?.color)}}):n.jsx(pn,{size:14,className:"shrink-0"}),e[13]=o,e[14]=s[0],e[15]=s.length,e[16]=y):y=e[16];let v;e[17]!==d?(v=n.jsx("span",{className:"max-w-[10rem] truncate",children:d}),e[17]=d,e[18]=v):v=e[18];let k;e[19]!==N?(k=n.jsx(Ge,{size:12,className:N}),e[19]=N,e[20]=k):k=e[20];let C;e[21]!==y||e[22]!==v||e[23]!==k||e[24]!==h?(C=n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",className:h,children:[y,v,k]})}),e[21]=y,e[22]=v,e[23]=k,e[24]=h,e[25]=C):C=e[25];let D;e[26]!==i?(D=i("taskBoard.taskFilters.tagsFilterPlaceholder"),e[26]=i,e[27]=D):D=e[27];let b;e[28]!==i?(b=i("taskBoard.taskFilters.tagsFilterPlaceholder"),e[28]=i,e[29]=b):b=e[29];let w;e[30]!==D||e[31]!==b?(w=n.jsx(Et,{placeholder:D,"aria-label":b,className:"h-9"}),e[30]=D,e[31]=b,e[32]=w):w=e[32];let _;e[33]!==i?(_=i("taskBoard.taskFilters.tagsNoTagsFound"),e[33]=i,e[34]=_):_=e[34];let I;e[35]!==_?(I=n.jsx(Vt,{children:_}),e[35]=_,e[36]=I):I=e[36];let P;if(e[37]!==o||e[38]!==u||e[39]!==s){let E;e[41]!==u||e[42]!==s?(E=F=>n.jsxs(Ce,{value:F.name,onSelect:()=>u(F.id),className:"gap-2",children:[n.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:Zt(F.color)}}),n.jsx("span",{className:"flex-1 truncate",children:F.name}),s.includes(F.id)&&n.jsx(qe,{size:14,className:"shrink-0 text-foreground"})]},F.id),e[41]=u,e[42]=s,e[43]=E):E=e[43],P=o.map(E),e[37]=o,e[38]=u,e[39]=s,e[40]=P}else P=e[40];let S;e[44]!==P?(S=n.jsx(Ke,{children:P}),e[44]=P,e[45]=S):S=e[45];let A;e[46]!==I||e[47]!==S?(A=n.jsxs($t,{children:[I,S]}),e[46]=I,e[47]=S,e[48]=A):A=e[48];let T;e[49]!==w||e[50]!==A?(T=n.jsx(dt,{align:"start",className:"w-56 p-0",children:n.jsxs(Ot,{children:[w,A]})}),e[49]=w,e[50]=A,e[51]=T):T=e[51];let R;return e[52]!==c||e[53]!==C||e[54]!==T?(R=n.jsxs(ct,{open:c,onOpenChange:l,children:[C,T]}),e[52]=c,e[53]=C,e[54]=T,e[55]=R):R=e[55],R}function ts(t){const e=O.c(11),{entry:s,selected:o,onSelect:a}=t,r=s.id,i=s.title;let c;e[0]!==s.projects?(c=s.projects.map(qi).join(" "),e[0]=s.projects,e[1]=c):c=e[1];const l=`${r} ${i} ${s.repo??""} ${c}`;let f;e[2]!==s?(f=n.jsx(Ei,{entry:s}),e[2]=s,e[3]=f):f=e[3];let u;e[4]!==o?(u=o&&n.jsx(qe,{size:14,className:"shrink-0 text-foreground"}),e[4]=o,e[5]=u):u=e[5];let m;return e[6]!==a||e[7]!==l||e[8]!==f||e[9]!==u?(m=n.jsxs(Ce,{value:l,onSelect:a,className:"gap-2",children:[f,u]}),e[6]=a,e[7]=l,e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function qi(t){return t.title}function Wi(t,e,s,o){return t===null||!s?o("taskBoard.taskFilters.projectLabel"):t===ut?o("taskBoard.taskFilters.projectNone"):e?.title??t}function Yi(t){const e=O.c(90),{value:s,index:o,onChange:a,block:r}=t,i=Q(),[c,l]=G.useState(!1);let f,u,m,d,p,g,h,x,j,N,y,v,k,C;if(e[0]!==r||e[1]!==o||e[2]!==a||e[3]!==c||e[4]!==i||e[5]!==s){const I=s===null?void 0:Rt(s,o),P=ft(s,o),S=Wi(s,I,P,i);let A;e[20]!==a?(A=Y=>{a(Y),l(!1)},e[20]=a,e[21]=A):A=e[21];const T=A,R=o.entries.filter(Ji),E=o.entries.filter(Xi),F=_e(P,r),L=r&&"ml-auto";let q;e[22]!==L?(q=J("shrink-0 opacity-60",L),e[22]=L,e[23]=q):q=e[23];const B=q;d=ct,k=c,C=l;const U=P?I:void 0;let $;e[24]!==U?($=n.jsx(Ls,{entry:U}),e[24]=U,e[25]=$):$=e[25];let H;e[26]!==S?(H=n.jsx("span",{className:"max-w-[12rem] truncate",children:S}),e[26]=S,e[27]=H):H=e[27];let z;e[28]!==B?(z=n.jsx(Ge,{size:12,className:B}),e[28]=B,e[29]=z):z=e[29],e[30]!==$||e[31]!==H||e[32]!==z||e[33]!==F?(g=n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",className:F,children:[$,H,z]})}),e[30]=$,e[31]=H,e[32]=z,e[33]=F,e[34]=g):g=e[34],m=dt,y="start",v="w-72 p-0",u=Ot;let se;e[35]!==i?(se=i("taskBoard.taskFilters.projectFilterPlaceholder"),e[35]=i,e[36]=se):se=e[36];let W;e[37]!==i?(W=i("taskBoard.taskFilters.projectFilterPlaceholder"),e[37]=i,e[38]=W):W=e[38],e[39]!==se||e[40]!==W?(N=n.jsx(Et,{placeholder:se,"aria-label":W,className:"h-9"}),e[39]=se,e[40]=W,e[41]=N):N=e[41],f=$t;let ie;e[42]!==i?(ie=i("taskBoard.taskFilters.projectNoneFound"),e[42]=i,e[43]=ie):ie=e[43],e[44]!==ie?(p=n.jsx(Vt,{children:ie}),e[44]=ie,e[45]=p):p=e[45];let Z;e[46]!==i?(Z=i("taskBoard.taskFilters.projectAny"),e[46]=i,e[47]=Z):Z=e[47];let ee;e[48]!==T?(ee=()=>T(null),e[48]=T,e[49]=ee):ee=e[49];let te;e[50]!==i?(te=i("taskBoard.taskFilters.projectAny"),e[50]=i,e[51]=te):te=e[51];let ne;e[52]!==Z||e[53]!==ee||e[54]!==te?(ne=n.jsx(Ce,{value:Z,onSelect:ee,children:te}),e[52]=Z,e[53]=ee,e[54]=te,e[55]=ne):ne=e[55];let re;e[56]!==i?(re=i("taskBoard.taskFilters.projectNone"),e[56]=i,e[57]=re):re=e[57];let M;e[58]!==T?(M=()=>T(ut),e[58]=T,e[59]=M):M=e[59];let K;e[60]!==i?(K=i("taskBoard.taskFilters.projectNone"),e[60]=i,e[61]=K):K=e[61];let ae;e[62]!==re||e[63]!==M||e[64]!==K?(ae=n.jsx(Ce,{value:re,onSelect:M,children:K}),e[62]=re,e[63]=M,e[64]=K,e[65]=ae):ae=e[65],e[66]!==ne||e[67]!==ae?(h=n.jsxs(Ke,{children:[ne,ae]}),e[66]=ne,e[67]=ae,e[68]=h):h=e[68],x=R.length>0&&n.jsx(Ke,{heading:i("taskBoard.taskFilters.projectGroupProjects"),children:R.map(Y=>n.jsx(ts,{entry:Y,selected:I===Y,onSelect:()=>T(Y.id)},Y.id))}),j=E.length>0&&n.jsx(Ke,{heading:i("taskBoard.taskFilters.projectGroupRepos"),children:E.map(Y=>n.jsx(ts,{entry:Y,selected:I===Y,onSelect:()=>T(Y.id)},Y.id))}),e[0]=r,e[1]=o,e[2]=a,e[3]=c,e[4]=i,e[5]=s,e[6]=f,e[7]=u,e[8]=m,e[9]=d,e[10]=p,e[11]=g,e[12]=h,e[13]=x,e[14]=j,e[15]=N,e[16]=y,e[17]=v,e[18]=k,e[19]=C}else f=e[6],u=e[7],m=e[8],d=e[9],p=e[10],g=e[11],h=e[12],x=e[13],j=e[14],N=e[15],y=e[16],v=e[17],k=e[18],C=e[19];let D;e[69]!==f||e[70]!==p||e[71]!==h||e[72]!==x||e[73]!==j?(D=n.jsxs(f,{children:[p,h,x,j]}),e[69]=f,e[70]=p,e[71]=h,e[72]=x,e[73]=j,e[74]=D):D=e[74];let b;e[75]!==u||e[76]!==D||e[77]!==N?(b=n.jsxs(u,{children:[N,D]}),e[75]=u,e[76]=D,e[77]=N,e[78]=b):b=e[78];let w;e[79]!==m||e[80]!==b||e[81]!==y||e[82]!==v?(w=n.jsx(m,{align:y,className:v,children:b}),e[79]=m,e[80]=b,e[81]=y,e[82]=v,e[83]=w):w=e[83];let _;return e[84]!==d||e[85]!==g||e[86]!==w||e[87]!==k||e[88]!==C?(_=n.jsxs(d,{open:k,onOpenChange:C,children:[g,w]}),e[84]=d,e[85]=g,e[86]=w,e[87]=k,e[88]=C,e[89]=_):_=e[89],_}function Xi(t){return t.projects.length===0}function Ji(t){return t.projects.length>0}function Zi(t){const e=O.c(25),{value:s,onChange:o,block:a}=t,r=Q(),[i,c]=G.useState(s!==""),[l,f]=G.useState(!1),[u,m]=G.useState(s);s!==u&&(m(s),s===""&&!l&&c(!1));const d=i||a,p=d?"w-32 sm:w-44":"w-8 px-0 justify-center",g=a&&"h-10 w-full px-3 text-sm sm:w-full";let h;e[0]!==p||e[1]!==g?(h=J("inline-flex h-8 shrink-0 items-center gap-1.5 overflow-hidden rounded-lg border border-border px-2.5 text-xs text-foreground transition-all duration-200 ease-out",p,g),e[0]=p,e[1]=g,e[2]=h):h=e[2];let x;e[3]!==r?(x=r("taskBoard.taskFilters.searchLabel"),e[3]=r,e[4]=x):x=e[4];let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=()=>c(!0),e[5]=j):j=e[5];let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(gn,{size:14}),e[6]=N):N=e[6];let y;e[7]!==x?(y=n.jsx("button",{type:"button","aria-label":x,onClick:j,className:"shrink-0 text-muted-foreground transition-colors hover:text-foreground",children:N}),e[7]=x,e[8]=y):y=e[8];let v;e[9]!==a||e[10]!==d||e[11]!==o||e[12]!==r||e[13]!==s?(v=d&&n.jsx("input",{autoFocus:!a,value:s,onChange:D=>o(D.target.value),onFocus:()=>f(!0),onBlur:()=>{f(!1),s===""&&c(!1)},placeholder:r("taskBoard.taskFilters.searchPlaceholder"),"aria-label":r("taskBoard.taskFilters.searchPlaceholder"),className:"w-full min-w-0 bg-transparent text-xs outline-none placeholder:text-muted-foreground"}),e[9]=a,e[10]=d,e[11]=o,e[12]=r,e[13]=s,e[14]=v):v=e[14];let k;e[15]!==a||e[16]!==o||e[17]!==r||e[18]!==s?(k=s!==""&&n.jsx("button",{type:"button","aria-label":r("taskBoard.taskFilters.searchClearLabel"),onMouseDown:er,onClick:()=>{o(""),a||c(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:n.jsx(tn,{size:14})}),e[15]=a,e[16]=o,e[17]=r,e[18]=s,e[19]=k):k=e[19];let C;return e[20]!==h||e[21]!==y||e[22]!==v||e[23]!==k?(C=n.jsxs("div",{className:h,children:[y,v,k]}),e[20]=h,e[21]=y,e[22]=v,e[23]=k,e[24]=C):C=e[24],C}function er(t){return t.preventDefault()}function tr(t){const e=O.c(20),{block:s,onClick:o}=t,a=Q();let r;e[0]!==a?(r=a("taskBoard.taskFilters.boardSettingsLabel"),e[0]=a,e[1]=r):r=e[1];const i=r;let c;e[2]!==s?(c=J(_e(!1,s),s?"h-10 w-full":"w-8 justify-center px-0"),e[2]=s,e[3]=c):c=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(xo,{size:14,className:"shrink-0"}),e[4]=l):l=e[4];let f;e[5]!==s||e[6]!==i?(f=s&&n.jsx("span",{children:i}),e[5]=s,e[6]=i,e[7]=f):f=e[7];let u;e[8]!==i||e[9]!==o||e[10]!==c||e[11]!==f?(u=n.jsxs("button",{type:"button",onClick:o,"aria-label":i,className:c,children:[l,f]}),e[8]=i,e[9]=o,e[10]=c,e[11]=f,e[12]=u):u=e[12];const m=u;if(s)return m;let d;e[13]!==m?(d=n.jsx(Le,{asChild:!0,children:m}),e[13]=m,e[14]=d):d=e[14];let p;e[15]!==i?(p=n.jsx(Me,{side:"top",children:i}),e[15]=i,e[16]=p):p=e[16];let g;return e[17]!==d||e[18]!==p?(g=n.jsxs(Re,{children:[d,p]}),e[17]=d,e[18]=p,e[19]=g):g=e[19],g}function zs(t){const e=O.c(53),{filters:s,members:o,tags:a,index:r,onChange:i,onOpenBoardSettings:c,block:l}=t;let f;e[0]!==s||e[1]!==i?(f=C=>i({...s,search:C}),e[0]=s,e[1]=i,e[2]=f):f=e[2];let u;e[3]!==l||e[4]!==s.search||e[5]!==f?(u=n.jsx(Zi,{block:l,value:s.search,onChange:f}),e[3]=l,e[4]=s.search,e[5]=f,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==i?(m=C=>i({...s,assignee:C}),e[7]=s,e[8]=i,e[9]=m):m=e[9];let d;e[10]!==l||e[11]!==s.assignee||e[12]!==o||e[13]!==m?(d=n.jsx(Ui,{block:l,value:s.assignee,members:o,onChange:m}),e[10]=l,e[11]=s.assignee,e[12]=o,e[13]=m,e[14]=d):d=e[14];let p;e[15]!==s||e[16]!==i?(p=C=>i({...s,priority:C}),e[15]=s,e[16]=i,e[17]=p):p=e[17];let g;e[18]!==l||e[19]!==s.priority||e[20]!==p?(g=n.jsx(Gi,{block:l,value:s.priority,onChange:p}),e[18]=l,e[19]=s.priority,e[20]=p,e[21]=g):g=e[21];let h;e[22]!==s||e[23]!==i?(h=C=>i({...s,due:C}),e[22]=s,e[23]=i,e[24]=h):h=e[24];let x;e[25]!==l||e[26]!==s.due||e[27]!==h?(x=n.jsx(Hi,{block:l,value:s.due,onChange:h}),e[25]=l,e[26]=s.due,e[27]=h,e[28]=x):x=e[28];let j;e[29]!==s||e[30]!==i?(j=C=>i({...s,tags:C}),e[29]=s,e[30]=i,e[31]=j):j=e[31];let N;e[32]!==l||e[33]!==s.tags||e[34]!==j||e[35]!==a?(N=n.jsx(Qi,{block:l,value:s.tags,tags:a,onChange:j}),e[32]=l,e[33]=s.tags,e[34]=j,e[35]=a,e[36]=N):N=e[36];let y;e[37]!==l||e[38]!==s||e[39]!==r||e[40]!==i?(y=(r.entries.length>0||ft(s.project,r))&&n.jsx(Yi,{block:l,value:s.project,index:r,onChange:C=>i({...s,project:C})}),e[37]=l,e[38]=s,e[39]=r,e[40]=i,e[41]=y):y=e[41];let v;e[42]!==l||e[43]!==c?(v=n.jsx(tr,{block:l,onClick:c}),e[42]=l,e[43]=c,e[44]=v):v=e[44];let k;return e[45]!==N||e[46]!==y||e[47]!==v||e[48]!==u||e[49]!==d||e[50]!==g||e[51]!==x?(k=n.jsxs(n.Fragment,{children:[u,d,g,x,N,y,v]}),e[45]=N,e[46]=y,e[47]=v,e[48]=u,e[49]=d,e[50]=g,e[51]=x,e[52]=k):k=e[52],k}function Wa(t){const e=O.c(16),{filters:s,members:o,tags:a,index:r,onChange:i,onOpenBoardSettings:c}=t,l=Q();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ns,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=f):f=e[0];let u;e[1]!==s||e[2]!==r||e[3]!==o||e[4]!==i||e[5]!==c||e[6]!==a?(u=n.jsx(zs,{filters:s,members:o,tags:a,index:r,onChange:i,onOpenBoardSettings:c}),e[1]=s,e[2]=r,e[3]=o,e[4]=i,e[5]=c,e[6]=a,e[7]=u):u=e[7];let m;e[8]!==s||e[9]!==r||e[10]!==i||e[11]!==l?(m=Li(s,r)&&n.jsx("button",{type:"button",onClick:()=>i(Rs),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:l("taskBoard.taskFilters.clearButton")}),e[8]=s,e[9]=r,e[10]=i,e[11]=l,e[12]=m):m=e[12];let d;return e[13]!==u||e[14]!==m?(d=n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f,u,m]}),e[13]=u,e[14]=m,e[15]=d):d=e[15],d}function Ya(t){const e=O.c(41),{filters:s,members:o,tags:a,index:r,onChange:i,onOpenBoardSettings:c}=t,l=Q(),[f,u]=G.useState(!1),m=Mi(s,r),d=m>0;let p;e[0]!==d?(p=_e(d),e[0]=d,e[1]=p):p=e[1];const g=p;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(Ns,{size:14,className:"shrink-0"}),e[2]=h):h=e[2];let x;e[3]!==l?(x=l("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=l,e[4]=x):x=e[4];let j;e[5]!==m?(j=m>0&&n.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:m}),e[5]=m,e[6]=j):j=e[6];let N;e[7]!==x||e[8]!==j||e[9]!==g?(N=n.jsx(wn,{asChild:!0,children:n.jsxs("button",{type:"button",className:g,children:[h,x,j]})}),e[7]=x,e[8]=j,e[9]=g,e[10]=N):N=e[10];let y;e[11]!==l?(y=l("taskBoard.taskFilters.filterDrawerTitle"),e[11]=l,e[12]=y):y=e[12];let v;e[13]!==y?(v=n.jsx(Bt,{className:"px-4 pt-4 text-base font-medium text-foreground",children:y}),e[13]=y,e[14]=v):v=e[14];let k;e[15]!==s||e[16]!==r||e[17]!==o||e[18]!==i||e[19]!==c||e[20]!==a?(k=n.jsx("div",{className:"flex flex-col gap-2 p-4",children:n.jsx(zs,{block:!0,filters:s,members:o,tags:a,index:r,onChange:i,onOpenBoardSettings:c})}),e[15]=s,e[16]=r,e[17]=o,e[18]=i,e[19]=c,e[20]=a,e[21]=k):k=e[21];let C;e[22]!==m||e[23]!==i||e[24]!==l?(C=m>0&&n.jsx(ye,{variant:"outline",className:"flex-1",onClick:()=>i(Rs),children:l("taskBoard.taskFilters.clearAllButton")}),e[22]=m,e[23]=i,e[24]=l,e[25]=C):C=e[25];let D;e[26]!==l?(D=l("taskBoard.taskFilters.doneButton"),e[26]=l,e[27]=D):D=e[27];let b;e[28]!==D?(b=n.jsx(us,{asChild:!0,children:n.jsx(ye,{className:"flex-1",children:D})}),e[28]=D,e[29]=b):b=e[29];let w;e[30]!==C||e[31]!==b?(w=n.jsxs(fs,{className:"flex-row gap-2",children:[C,b]}),e[30]=C,e[31]=b,e[32]=w):w=e[32];let _;e[33]!==w||e[34]!==v||e[35]!==k?(_=n.jsxs(Ft,{className:"p-0",children:[v,k,w]}),e[33]=w,e[34]=v,e[35]=k,e[36]=_):_=e[36];let I;return e[37]!==f||e[38]!==_||e[39]!==N?(I=n.jsxs(It,{open:f,onOpenChange:u,direction:"bottom",children:[N,_]}),e[37]=f,e[38]=_,e[39]=N,e[40]=I):I=e[40],I}function Xa(t,e){return ri(t,e.keySeq)??e.id}function Ja(t,e){const s=e?.trim();if(s)return t.find(o=>Ks(s,o.keySeq))??t.find(o=>o.id===s)}export{_i as $,da as A,va as B,Ca as C,ya as D,Bs as E,Lt as F,Ni as G,wt as H,Ga as I,$a as J,nt as K,Rt as L,Da as M,Fi as N,Oa as O,di as P,Zt as Q,Qa as R,Yt as S,La as T,Ba as U,$s as V,Ma as W,Ls as X,Ei as Y,Aa as Z,Ta as _,Na as a,Vs as a0,_a as a1,Ja as a2,Ya as a3,Wa as a4,Va as a5,Ra as a6,Rs as a7,Pa as a8,Fa as a9,Jt as aa,Ea as ab,Ka as ac,qa as ad,Di as ae,Ha as af,za as ag,vi as ah,Uo as ai,ca as aj,wa as b,Ua as c,Oi as d,Fs as e,Xa as f,Ia as g,ki as h,Es as i,aa as j,la as k,fa as l,pa as m,ja as n,pi as o,mi as p,Sa as q,ma as r,ga as s,ri as t,ua as u,xa as v,ba as w,ha as x,hi as y,ka as z};
|