decocms 4.364.0 → 4.364.1
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-EniJtD8E.js → AlertCircle-CfOItn1b.js} +1 -1
- package/dist/client/assets/{AreaChart-DZpAPo6a.js → AreaChart-B9tk92oC.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Clu1mSdY.js → ArrowLeft-B4kTLC80.js} +1 -1
- package/dist/client/assets/{ArrowRight-Cu8UuHNR.js → ArrowRight-B4GAIQKI.js} +1 -1
- package/dist/client/assets/{ArrowUp-C0eratGp.js → ArrowUp-Be_FwN-E.js} +1 -1
- package/dist/client/assets/{Check-BWpBE9uf.js → Check-_wGz2-IJ.js} +1 -1
- package/dist/client/assets/{CheckCircle-cinYKmPU.js → CheckCircle-BQEdmdLU.js} +1 -1
- package/dist/client/assets/{ChevronRight-DzRB-rdO.js → ChevronRight-DfnK-irb.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BiIbFU31.js → ChevronSelectorVertical-DTb5009V.js} +1 -1
- package/dist/client/assets/{ChevronUp-DGrguvGW.js → ChevronUp-SbK1Bh_A.js} +1 -1
- package/dist/client/assets/{Copy01-DayLu0dF.js → Copy01-DoHw-_s5.js} +1 -1
- package/dist/client/assets/{CreditCard01-4OsjIT5f.js → CreditCard01-CkbbYVCy.js} +1 -1
- package/dist/client/assets/{Database01-2gG_9E30.js → Database01-DDqP2OWW.js} +1 -1
- package/dist/client/assets/{DotsVertical-CucJCL9y.js → DotsVertical-Ct2yI8vr.js} +1 -1
- package/dist/client/assets/{Download01-BC2rKbuh.js → Download01-IytcAces.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CRh7XbJc.js → ErrorBarContext-Cgip1CtP.js} +1 -1
- package/dist/client/assets/{Eye-dnrP5DkM.js → Eye-Ccu8gsxq.js} +1 -1
- package/dist/client/assets/{File02-BhckHV8N.js → File02-CODRlzC9.js} +1 -1
- package/dist/client/assets/{GitBranch01-BBn4dN5f.js → GitBranch01-y6_LtrpC.js} +1 -1
- package/dist/client/assets/{Globe01-SLAc63wC.js → Globe01-BHsBANMN.js} +1 -1
- package/dist/client/assets/{HardDrive-FlnOYA_8.js → HardDrive-Cr2Uhzo6.js} +1 -1
- package/dist/client/assets/{Image01-BrHSH-Vi.js → Image01-PUenBySa.js} +1 -1
- package/dist/client/assets/{Key01-CKcg8G1v.js → Key01-ugSjw0sl.js} +1 -1
- package/dist/client/assets/{Link01-3t9JrUgl.js → Link01-CUXePRyB.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cp7uxK1i.js → LinkExternal01-DLDyK_TN.js} +1 -1
- package/dist/client/assets/{Monitor01-BUruMK2r.js → Monitor01-J9g_ep-X.js} +1 -1
- package/dist/client/assets/{Package-CdfyZYxN.js → Package-Dm9TBHk7.js} +1 -1
- package/dist/client/assets/{Palette-CglyAOTg.js → Palette-BywMlwsu.js} +1 -1
- package/dist/client/assets/{Play-rnw1eV52.js → Play-HfzzXB20.js} +1 -1
- package/dist/client/assets/{Plus-Bxp02MWl.js → Plus-zXs3aP31.js} +1 -1
- package/dist/client/assets/{Printer-fz_zwxfT.js → Printer-kkmv6XzS.js} +1 -1
- package/dist/client/assets/{SearchLg-FC9suxna.js → SearchLg-BkMCmJSN.js} +1 -1
- package/dist/client/assets/{SearchMd-DRRptSJN.js → SearchMd-uhtNwnF8.js} +1 -1
- package/dist/client/assets/{Sector-CJIPfQ5Z.js → Sector-DNcwKKFv.js} +1 -1
- package/dist/client/assets/{Settings02-D2oiGU4q.js → Settings02-DPUnnUpS.js} +1 -1
- package/dist/client/assets/{Share07-D_kiq5Fr.js → Share07-ezwRb3nU.js} +1 -1
- package/dist/client/assets/{Shield01-CjyLhqlS.js → Shield01-BcXJFwaP.js} +1 -1
- package/dist/client/assets/{Stars01-COChWymR.js → Stars01-DdrI1AvW.js} +1 -1
- package/dist/client/assets/{Sun-nKOZMh9n.js → Sun-DZjMucTf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CxlKjkIX.js → SwitchHorizontal01-Dne29Upz.js} +1 -1
- package/dist/client/assets/{Tool01-BnKd95Y1.js → Tool01-duhLcQNq.js} +1 -1
- package/dist/client/assets/{Tool02-C_xRWqQk.js → Tool02-CnClhfmX.js} +1 -1
- package/dist/client/assets/{Trash01-DqUm2RRh.js → Trash01-CH5l96iG.js} +1 -1
- package/dist/client/assets/{TrendUp01-PFzYDizC.js → TrendUp01-fYoe36da.js} +1 -1
- package/dist/client/assets/{Upload01-CqWnAR1-.js → Upload01-DksJHtIE.js} +1 -1
- package/dist/client/assets/{User01-BJoNdkjl.js → User01-DZs8rqql.js} +1 -1
- package/dist/client/assets/{UserSquare-CCDsU001.js → UserSquare-CXNfIfPy.js} +1 -1
- package/dist/client/assets/{Users01-DSQPwtP5.js → Users01-DZlg18P8.js} +1 -1
- package/dist/client/assets/{Users03-CRtXqa1Q.js → Users03-pPPKVW_h.js} +1 -1
- package/dist/client/assets/{XCircle-9Cb0khfg.js → XCircle-CoSRJnuK.js} +1 -1
- package/dist/client/assets/{XClose-Cw4b4Uag.js → XClose-BYsCvLXW.js} +1 -1
- package/dist/client/assets/{Zap-ChVc0p76.js → Zap-BLQffepl.js} +1 -1
- package/dist/client/assets/{ZoomOut-BXPGwF_O.js → ZoomOut-B6xnZLKD.js} +1 -1
- package/dist/client/assets/{access-gate-BZbNb1lq.js → access-gate-Cc7o9awR.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-s1GRGQ63.js → add-connection-dialog-ColILHSg.js} +1 -1
- package/dist/client/assets/{agent-analytics-C4aHsqYV.js → agent-analytics-BuUA9_zB.js} +1 -1
- package/dist/client/assets/agent-app-CvjgfHdj.js +1 -0
- package/dist/client/assets/{agent-assets-B6lPIA_2.js → agent-assets-CHRAa4hr.js} +1 -1
- package/dist/client/assets/{agent-automation-Bmdy2mNK.js → agent-automation-COYuXB1l.js} +1 -1
- package/dist/client/assets/{agent-automations-5exIOZ--.js → agent-automations-CVa9zvpd.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-ozaEzrP4.js → agent-connect-sources-D-qScFZM.js} +1 -1
- package/dist/client/assets/agent-deck-CtPxHug1.js +1 -0
- package/dist/client/assets/{agent-e2e-s-Nk1F2Y.js → agent-e2e-BJ7p3EFw.js} +1 -1
- package/dist/client/assets/agent-file-r5wJ9MHq.js +1 -0
- package/dist/client/assets/{agent-git-Bu3r6tWp.js → agent-git-RSuMQ7we.js} +1 -1
- package/dist/client/assets/{agent-hosting-CdYzW_dA.js → agent-hosting-C6HCUd84.js} +1 -1
- package/dist/client/assets/{agent-icon-DrlilhFJ.js → agent-icon-DlT0cyOd.js} +1 -1
- package/dist/client/assets/agent-library-file-CDc9dHKg.js +1 -0
- package/dist/client/assets/{agent-monitor-DEQ-34KF.js → agent-monitor-Yob-hhJJ.js} +1 -1
- package/dist/client/assets/{agent-overview-BQIF-rwN.js → agent-overview-Cmt3_HNP.js} +1 -1
- package/dist/client/assets/agent-settings-E30r5sKL.js +1 -0
- package/dist/client/assets/{agent-site-editor-DtPpWjDD.js → agent-site-editor-C9RAIEyo.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-hlPdL0sy.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-6zQLGSyR.js → agent-site-editor-content-5xiQM6XU.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-D8mxBZIU.js → agent-site-editor-preview-CEEI7DH8.js} +3 -3
- package/dist/client/assets/agent-view-DclyqFK6.js +1 -0
- package/dist/client/assets/{agent-view-guard-nj1TYVsk.js → agent-view-guard-BYjSQEWP.js} +1 -1
- package/dist/client/assets/{agents-list-hiZ_XS0O.js → agents-list-D-V7lKYi.js} +1 -1
- package/dist/client/assets/{ai-providers-oY9ilqJZ.js → ai-providers-CnrPu6-b.js} +1 -1
- package/dist/client/assets/{alert-D-emvPaG.js → alert-CKcqWgEA.js} +1 -1
- package/dist/client/assets/{alert-dialog-BE9ltHtr.js → alert-dialog-B19dFL0f.js} +1 -1
- package/dist/client/assets/{api-keys-4NMR09V3.js → api-keys-B82gXphc.js} +1 -1
- package/dist/client/assets/api-keys-C5nyTMkG.js +1 -0
- package/dist/client/assets/app-editor-Ce9aJoOB.js +1 -0
- package/dist/client/assets/{asset-utils-CR65HphV.js → asset-utils-DCSDKdD5.js} +1 -1
- package/dist/client/assets/{auth-RjDDTUUT.js → auth-BRT05k6V.js} +1 -1
- package/dist/client/assets/{auth-catchall-qxwSZGuB.js → auth-catchall-CKtZG-ZL.js} +1 -1
- package/dist/client/assets/{auth-entry-ddblLMjc.js → auth-entry-B04CeC2I.js} +1 -1
- package/dist/client/assets/{auth-split-layout-oGs_kK_4.js → auth-split-layout-Cr7N993d.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DXlrPDSv.js → authenticate-and-persist-oauth-VFbyMRtb.js} +1 -1
- package/dist/client/assets/{automation-list-row-XibuWgpW.js → automation-list-row-Cpi5Xmll.js} +1 -1
- package/dist/client/assets/{automation-runs-nZP284NC.js → automation-runs-pUP2_-kz.js} +1 -1
- package/dist/client/assets/automations-DsASrpQ_.js +1 -0
- package/dist/client/assets/{autosend-HdosN86x.js → autosend-BfRMZFUN.js} +1 -1
- package/dist/client/assets/{avatar-DcDvs8Zz.js → avatar-CAI2JETZ.js} +1 -1
- package/dist/client/assets/{badge-DJpaBl8u.js → badge-ByfZPYh0.js} +1 -1
- package/dist/client/assets/{block-document-LCYQj9PJ.js → block-document-DBxhUTBx.js} +1 -1
- package/dist/client/assets/{breadcrumb-BOAVRiAa.js → breadcrumb-CFkPvTBR.js} +1 -1
- package/dist/client/assets/{buckets-Ze5fok7v.js → buckets-DKSvTBD6.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Dn9xs_5X.js → build-improve-prompt-doc-Bni1nFjn.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-D-Hh71MB.js → bulk-category-panel-B7Aw8gAs.js} +1 -1
- package/dist/client/assets/{calendar-DTnssie4.js → calendar-BPRd4cON.js} +1 -1
- package/dist/client/assets/{capability-load-error-CJ3e1sqb.js → capability-load-error-B39q7sVS.js} +1 -1
- package/dist/client/assets/{cards-DTFINi5r.js → cards-C9H7r60q.js} +1 -1
- package/dist/client/assets/category-editor-C6NG-7y-.js +1 -0
- package/dist/client/assets/{chart-Jb0gHMLD.js → chart-ChK_Oq3k.js} +1 -1
- package/dist/client/assets/{chat-context-CXknhaDs.js → chat-context-BdJniD3E.js} +1 -1
- package/dist/client/assets/{checkbox-D8Ab2Vb-.js → checkbox-Cx7-cMI2.js} +1 -1
- package/dist/client/assets/{choose-editor-Chy2VB_F.js → choose-editor-BFMfKqGX.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B27gos5d.js → cli-auth-success-BXUI2QIq.js} +1 -1
- package/dist/client/assets/{client-icons-CoIMqlIz.js → client-icons-DH8XqhqX.js} +1 -1
- package/dist/client/assets/{collapsible-DH_CZdwE.js → collapsible-DWXt85UZ.js} +1 -1
- package/dist/client/assets/{collection-detail-D8Sq0PzS.js → collection-detail-yuoxb5ei.js} +1 -1
- package/dist/client/assets/{collection-display-button-P_aK73Om.js → collection-display-button-CYeWeHPn.js} +1 -1
- package/dist/client/assets/{collection-search-CzGq8Uso.js → collection-search-DBiZveMp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-ChqJqpKo.js → collection-table-wrapper-GiH-7xKS.js} +1 -1
- package/dist/client/assets/{collection-tabs-BLgGMB42.js → collection-tabs-BxTayoNr.js} +1 -1
- package/dist/client/assets/{command-palette-store-BwHku_Zt.js → command-palette-store-D4d7ysBD.js} +1 -1
- package/dist/client/assets/{command-B6LMVdkQ.js → command-vCLlEnld.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-EmIMFBqV.js → commerce-onboarding-DOo_j1fY.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BszDkkOp.js → companion-mcps-section-RMajitXP.js} +1 -1
- package/dist/client/assets/{connect-CM-97gwN.js → connect-DIZq-DN2.js} +1 -1
- package/dist/client/assets/{connect-layout-C_MQVbrT.js → connect-layout-CcZHYYLs.js} +1 -1
- package/dist/client/assets/{connection-OmoYXqZk.js → connection-D3sgkgc8.js} +1 -1
- package/dist/client/assets/{connection-card-Cy-GdKQl.js → connection-card-BUk8IuWl.js} +1 -1
- package/dist/client/assets/{connection-detail-CuBiFvjK.js → connection-detail-DI7dS0mq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D3hdN_Pk.js → connection-form-helpers-CjZ0gF9p.js} +1 -1
- package/dist/client/assets/{connections-BnO49Vti.js → connections-DtcRjsIv.js} +1 -1
- package/dist/client/assets/{create-organization-dialog--p2RMsV5.js → create-organization-dialog-D3-ZW85P.js} +1 -1
- package/dist/client/assets/{decode-html-entities-DDqE27I4.js → decode-html-entities-DI0z1GlS.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CfYFArSW.js → decopilot-sse-pool-C4pTRblZ.js} +1 -1
- package/dist/client/assets/{dialog-otnvxVN0.js → dialog-BAfLND_C.js} +1 -1
- package/dist/client/assets/{discover-BZKxvY_j.js → discover-CgETi5Ba.js} +1 -1
- package/dist/client/assets/{domain-settings-QORwmdcG.js → domain-settings-DGeWS67L.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BqNRF4Sn.js → download-app-dialog-inqOoiFR.js} +1 -1
- package/dist/client/assets/{drawer-s7gtDrb4.js → drawer-CftCt6Vc.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BxKUbUkE.js → dropdown-menu-DlZDenrk.js} +1 -1
- package/dist/client/assets/{editor-DCxsAs7o.js → editor-VCziEYAl.js} +1 -1
- package/dist/client/assets/{empty-state-CL4F2BS4.js → empty-state-85cr_pDj.js} +1 -1
- package/dist/client/assets/{empty-state-Cz1DkYZE.js → empty-state-DrLFtqMC.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CqGCTPdZ.js → extract-connection-data-DuAiwl2M.js} +1 -1
- package/dist/client/assets/{file-explorer-Uvp7ogK8.js → file-explorer-Dd6bLbvS.js} +1 -1
- package/dist/client/assets/{file-preview-18IJQMnU.js → file-preview-B9gO9A7B.js} +1 -1
- package/dist/client/assets/{file-share-button-Cef5f1VZ.js → file-share-button-Zm0jPBUd.js} +1 -1
- package/dist/client/assets/{file-type-icon-DGllFDOf.js → file-type-icon-ChixCG5B.js} +1 -1
- package/dist/client/assets/{folder-icon-p8jB76CU.js → folder-icon-jWW7DiXp.js} +1 -1
- package/dist/client/assets/{form-KjPevg0A.js → form-B2aJ1tMr.js} +1 -1
- package/dist/client/assets/{general-t-IB2WC3.js → general-Dbd-M2oy.js} +1 -1
- package/dist/client/assets/{github-icon-D51q_6S8.js → github-icon-BHD2Mc12.js} +1 -1
- package/dist/client/assets/{home-Bhl8U_ph.js → home-DRVwgYU_.js} +1 -1
- package/dist/client/assets/{hooks-BhviOOpn.js → hooks-CrGRDkCO.js} +1 -1
- package/dist/client/assets/{hooks-k1OxvonE.js → hooks-D-bAuZ0C.js} +1 -1
- package/dist/client/assets/{index-Bwc7J041.js → index-5lUn2NYU.js} +1 -1
- package/dist/client/assets/{index-CRCvoACn.js → index-BFLLIz5j.js} +1 -1
- package/dist/client/assets/{index-m01im2kT.js → index-Bm0CRiXJ.js} +1 -1
- package/dist/client/assets/{index-B3yBTWEk.js → index-BodvdIMk.js} +3 -3
- package/dist/client/assets/{index-w1d_dmEj.js → index-CFD2Tmax.js} +1 -1
- package/dist/client/assets/{index-D4YJGrDI.js → index-CMW740A7.js} +3 -3
- package/dist/client/assets/{index-fTs6ROSj.js → index-CV73SUyV.js} +1 -1
- package/dist/client/assets/{index-DD-r2o4M.js → index-CenLE2Y1.js} +1 -1
- package/dist/client/assets/{index-C1N-CFMR.js → index-CgWFi-UY.js} +1 -1
- package/dist/client/assets/{index-DlQKfvnq.js → index-D7HQX0oQ.js} +1 -1
- package/dist/client/assets/{index-C7WIaN4y.js → index-DFPd3Z7H.js} +1 -1
- package/dist/client/assets/{index-DOk05MCp.js → index-DTnAWEs3.js} +1 -1
- package/dist/client/assets/{index-DqX9hbqM.js → index-b0vxPrwt.js} +1 -1
- package/dist/client/assets/{index-xVQnUsdi.js → index-o8mv6JmO.js} +1 -1
- package/dist/client/assets/{index-redirect-e7Kr1hOd.js → index-redirect-CAUT4Gir.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DgAoAIrN.js → infiniteQueryObserver-BXxOeKaH.js} +1 -1
- package/dist/client/assets/{infra-billing-B2HwpfSN.js → infra-billing-C6s3jgkP.js} +1 -1
- package/dist/client/assets/{input-BnbYz5_9.js → input-2i3nmZXT.js} +1 -1
- package/dist/client/assets/{input-DxAgQLPa.js → input-7HsiiE3O.js} +1 -1
- package/dist/client/assets/{input-HFOrJf5B.js → input-CyCfmV2v.js} +1 -1
- package/dist/client/assets/{integration-icon-BPwWRlNG.js → integration-icon-BqCQeMla.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-vPcEYe6v.js → invite-member-dialog-l7jaUM00.js} +1 -1
- package/dist/client/assets/{label-CqlSWrLn.js → label-oySBL-hw.js} +1 -1
- package/dist/client/assets/{layout-aU1eoqDA.js → layout-C_9zPyLB.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CpKjJlPs.js → legacy-agents-deep-BGj1G-G6.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ZPChWdtD.js → legacy-main-redirect-BAMIoUmF.js} +1 -1
- package/dist/client/assets/{library-uYIcEGdr.js → library-jBDBHa3X.js} +1 -1
- package/dist/client/assets/{login-CfxNz6kc.js → login-jcZJlm87.js} +1 -1
- package/dist/client/assets/{markdown-B1038zFJ.js → markdown-CuYSLr0D.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Cb8Ud-E7.js → mcp-app-renderer-CAyJEYdf.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D6isOO_s.js → mcp-oauth-D4sc2QRH.js} +1 -1
- package/dist/client/assets/{members-DHLsomPg.js → members-DZnhlZB5.js} +1 -1
- package/dist/client/assets/{mini-report-page-iTjakIrU.js → mini-report-page-DZcKIwCW.js} +1 -1
- package/dist/client/assets/{monaco-editor-WNMTPDp9.js → monaco-editor-miL0A9cI.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B_mR1zw-.js → monitoring-stats-row-Bkr0yo_k.js} +1 -1
- package/dist/client/assets/{multi-select-D54pM3d4.js → multi-select-HV-sxpT4.js} +1 -1
- package/dist/client/assets/{mustache-r9snVmI4.js → mustache-8iDNlOWo.js} +1 -1
- package/dist/client/assets/{oauth-callback-GAK1H0Is.js → oauth-callback-CdbS4grS.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-sdaHeEFx.js → oauth-callback-ai-provider-B6UEwW8h.js} +1 -1
- package/dist/client/assets/{onboarding-BKPW4du6.js → onboarding-CXn2uZdK.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-yrtk59Mo.js → optimistic-project-sidebar-views-Crt809gH.js} +1 -1
- package/dist/client/assets/{org-layout-BNIg984j.js → org-layout-Bh2799KC.js} +1 -1
- package/dist/client/assets/{organization-choice-DvXG7tgx.js → organization-choice-Dim_EV8w.js} +1 -1
- package/dist/client/assets/{orgs-NTyzCYi-.js → orgs-BiHhUqle.js} +1 -1
- package/dist/client/assets/{page-seo-form-DAkbVQPg.js → page-seo-form-Byw6I6v1.js} +1 -1
- package/dist/client/assets/{pair-C08OPQNP.js → pair-BryCAS3L.js} +1 -1
- package/dist/client/assets/{popover-DIqZ2IKF.js → popover-BaPHFXoA.js} +1 -1
- package/dist/client/assets/{post-calendar-DuH_hA9y.js → post-calendar-CX_aQZ9o.js} +1 -1
- package/dist/client/assets/{post-editor-BAf6FqSQ.js → post-editor-Bik9xGuM.js} +1 -1
- package/dist/client/assets/{preview-content-B5xB74fu.js → preview-content-C25g1Qjg.js} +1 -1
- package/dist/client/assets/{preview-dialog-b2QyOGzU.js → preview-dialog-Bd71VPLl.js} +1 -1
- package/dist/client/assets/{primitives-4_D03rJK.js → primitives-C2ZKBNVE.js} +1 -1
- package/dist/client/assets/{profile-COT-hKKD.js → profile-Cvk7HYLO.js} +1 -1
- package/dist/client/assets/{project-app-view-DJ_q7UHg.js → project-app-view-BBFfxMn2.js} +1 -1
- package/dist/client/assets/{project-feed-DJ_jJM3E.js → project-feed-CuafBwOd.js} +1 -1
- package/dist/client/assets/{project-icon-Bl3bXnhv.js → project-icon-D14m61tO.js} +1 -1
- package/dist/client/assets/project-reports-FoQBd9tt.js +1 -0
- package/dist/client/assets/project-tasks-CtrmnVYd.js +1 -0
- package/dist/client/assets/{prompts-CI44HEcf.js → prompts-CdPbev6G.js} +1 -1
- package/dist/client/assets/record-editor-BeEtgfek.js +1 -0
- package/dist/client/assets/redirect-editor-qcgiHklQ.js +1 -0
- package/dist/client/assets/registry-DINMxyfR.js +2 -0
- package/dist/client/assets/{registry-layout-CvRfdld3.js → registry-layout-C94XAKOB.js} +1 -1
- package/dist/client/assets/{reports-C-eaYxW3.js → reports-CxUD1psy.js} +1 -1
- package/dist/client/assets/reports-DbvBqGHI.js +1 -0
- package/dist/client/assets/{reports-tab-qffeKlGd.js → reports-tab-BpUXLiNq.js} +2 -2
- package/dist/client/assets/{repositories-ao250fUH.js → repositories-cLgzNGhX.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Bg_h8YsG.js → repository-import-picker-Bz4mO0xC.js} +1 -1
- package/dist/client/assets/{repository-picker-BDWGy2xY.js → repository-picker-aHa7Yens.js} +1 -1
- package/dist/client/assets/{require-capability-CmR_46yt.js → require-capability-CGWy1zcW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BEc3NUsQ.js → required-auth-layout-C8ueG7DN.js} +1 -1
- package/dist/client/assets/{reset-password-BlF157J6.js → reset-password-Dfhn1DHs.js} +1 -1
- package/dist/client/assets/{review-settings-BBciVvfB.js → review-settings-yj2xfDNH.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CrwbAR31.js → rich-text-link-control-D8pkIadD.js} +1 -1
- package/dist/client/assets/{roles-CuHUTdKb.js → roles-CtsHlJ7R.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-2CMWc-S3.js → runnable-block-editor-DQQgPGex.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CXd9Um8u.js → sandbox-lifecycle-context-KgLleS3y.js} +1 -1
- package/dist/client/assets/{schema-BQbhQoxs.js → schema-DVRYVU-6.js} +1 -1
- package/dist/client/assets/{scroll-area-BgZjjLM3.js → scroll-area-DrpmDXmv.js} +1 -1
- package/dist/client/assets/{search-input-uXtJ6IU8.js → search-input-BEuwwr9P.js} +1 -1
- package/dist/client/assets/{secrets-C1mCKV1g.js → secrets-BfNyBKtt.js} +1 -1
- package/dist/client/assets/{sections-editor-Bv2odcBq.js → sections-editor-CyOHOz8a.js} +1 -1
- package/dist/client/assets/{select-Bc5UZb4n.js → select-bwhAgSkw.js} +1 -1
- package/dist/client/assets/{select-model-BDGEzt-Y.js → select-model-BUtG_o-5.js} +1 -1
- package/dist/client/assets/{seo-editor-DJw3ydvJ.js → seo-editor-liBqGoJ2.js} +1 -1
- package/dist/client/assets/settings-layout-8_4ivRpO.js +1 -0
- package/dist/client/assets/{settings-sidebar-DswZBMwm.js → settings-sidebar-D1CImlJ7.js} +1 -1
- package/dist/client/assets/{settings-tab-Ru2atFmZ.js → settings-tab-DfPM9bhj.js} +1 -1
- package/dist/client/assets/{shell-controls-DkLEUvEw.js → shell-controls-oSe12Dvv.js} +1 -1
- package/dist/client/assets/{shell-layout-1dFmVwYI.js → shell-layout-DfKFME9s.js} +1 -1
- package/dist/client/assets/{skill-preview-CGe8kUoa.js → skill-preview-e4uQz0Dy.js} +1 -1
- package/dist/client/assets/{skills-BGdKR-aF.js → skills-C-9wX-VV.js} +1 -1
- package/dist/client/assets/{sso-M-OsbEtw.js → sso-BRhlLrJf.js} +1 -1
- package/dist/client/assets/{store-BY4ZRY7y.js → store-BESxBvzo.js} +1 -1
- package/dist/client/assets/store-registry-C5Y2YACE.js +2 -0
- package/dist/client/assets/{switch-CJ5Ir2Zx.js → switch-B1nJbGCG.js} +1 -1
- package/dist/client/assets/{synced-repos-9D-CfhL7.js → synced-repos-DSIN0NR4.js} +1 -1
- package/dist/client/assets/{table-Di_WRNkb.js → table-y_mRJ9Zn.js} +1 -1
- package/dist/client/assets/{tabs-DV8akPGb.js → tabs-BUVbbLAT.js} +1 -1
- package/dist/client/assets/{task-board-CXsHf2Zn.js → task-board-B_FYv6yr.js} +1 -1
- package/dist/client/assets/{task-route-D79aS9d_.js → task-route-D8DTrzfK.js} +1 -1
- package/dist/client/assets/{task-status-DIr_2V94.js → task-status-Cm28QQwf.js} +1 -1
- package/dist/client/assets/tasks-C2bVBzhE.js +1 -0
- package/dist/client/assets/{tasks-CiIHA5f1.js → tasks-CIHytgaT.js} +1 -1
- package/dist/client/assets/{textarea-CneoU2lJ.js → textarea-2MjTWIvv.js} +1 -1
- package/dist/client/assets/{thread-intent-DVKldCEq.js → thread-intent-C_TUHShU.js} +1 -1
- package/dist/client/assets/{thread-route-CKY-dKC0.js → thread-route-BPX5b65a.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CcUGPZXB.js → thread-sheet-body-hrROtD20.js} +1 -1
- package/dist/client/assets/{toggle-group-9HQCpj-q.js → toggle-group-yY_Yhls6.js} +1 -1
- package/dist/client/assets/{tool-namespace-BVMQcKlk.js → tool-namespace-CCb8MkTr.js} +1 -1
- package/dist/client/assets/{toolbar-D0oe2g2b.js → toolbar-DK-dWmgo.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-EOE8J-Ai.js → toolbar-icon-button-D7IEoYBH.js} +1 -1
- package/dist/client/assets/{track-BzMi8kcZ.js → track-CzfYfVMq.js} +1 -1
- package/dist/client/assets/{types-Csu6Ims7.js → types-CJQ5rOJz.js} +1 -1
- package/dist/client/assets/{usage-stats-BNse37Wk.js → usage-stats-Cp4Mqdjr.js} +1 -1
- package/dist/client/assets/{use-ai-providers-qnkcjapR.js → use-ai-providers-BHw3Z_he.js} +1 -1
- package/dist/client/assets/{use-automations-CYOC_eS5.js → use-automations-B_2Eci9k.js} +1 -1
- package/dist/client/assets/{use-autosave-CCprSQ13.js → use-autosave-CGgcTeeH.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-mdvL2BW-.js → use-commerce-diagnostic-BQRYyoWw.js} +1 -1
- package/dist/client/assets/{use-connect-companion-2fL060lG.js → use-connect-companion-0NSfsYdR.js} +1 -1
- package/dist/client/assets/{use-connection-DCLPda2h.js → use-connection-B0HreEyO.js} +1 -1
- package/dist/client/assets/{use-copy-14DzRp8J.js → use-copy-Cc2PzrxF.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DoCSQs95.js → use-create-virtual-mcp-GYM-p3SY.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DYzMvrWB.js → use-date-fns-locale-C1uUurom.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BRAVEUZc.js → use-debounced-autosave-D2DtaMQY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Cud3o3Fq.js → use-debounced-value-Dci7_Qwe.js} +1 -1
- package/dist/client/assets/{use-deco-credits-rwNQ1gMg.js → use-deco-credits-CQYk77NF.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DYRVevWg.js → use-decopilot-events-HctMj33h.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ueGIYWMK.js → use-delete-connection-Do6SoZ3c.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D6IzoXV0.js → use-deployment-admin-CRRFLUPy.js} +1 -1
- package/dist/client/assets/{use-file-configs-BwD1CaWo.js → use-file-configs-CMLhU-Fj.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DkLPxlOu.js → use-infinite-scroll-TMy8eEjN.js} +1 -1
- package/dist/client/assets/{use-join-requests-DTGTfD21.js → use-join-requests-DxlLP6Wr.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-EW6rbxam.js → use-main-panel-tabs-CbcTcl9J.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CPh3Lmzs.js → use-mcp-auth-status-gxHqvxAC.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DsJzBus3.js → use-mcp-client-DO1cH-Rq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-i0LZ2nQA.js → use-mcp-prompts-DZqLLTvQ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dc3F6Krl.js → use-mcp-tools-BIFTy-Ao.js} +1 -1
- package/dist/client/assets/{use-members-C0MdJrYz.js → use-members-Ca1m7gk-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bbq0oQ0Y.js → use-navigate-to-agent-DbrSvmvC.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DvTk9GH0.js → use-open-billing-url-CpZXluVO.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-4o0wRx2Q.js → use-org-auth-client-S952sZID.js} +1 -1
- package/dist/client/assets/{use-org-fs-BEoPvlnI.js → use-org-fs-C1ai334S.js} +1 -1
- package/dist/client/assets/{use-org-notice-CXYMfMUq.js → use-org-notice-CJiZMwf2.js} +1 -1
- package/dist/client/assets/{use-org-sso-CdSz0xa8.js → use-org-sso-CFwon6Ac.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DzWM9Nv-.js → use-organization-roles--bC30gnD.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BAVHurZk.js → use-organization-settings-C7uzGCkO.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Byvx0cbx.js → use-panel-navigate-BgqqPVEC.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D-AyEulW.js → use-project-native-view-presence-DqW-vLSC.js} +1 -1
- package/dist/client/assets/{use-project-scope-B2cuvtTy.js → use-project-scope-cOFjIv3F.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DikbDR8w.js → use-registry-connections-XlfVpqo2.js} +1 -1
- package/dist/client/assets/{use-secrets-D-c1ciPZ.js → use-secrets-DEa3ZFkm.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CwIWGkgy.js → use-section-preview-base-DfU-w-9v.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BHahDP0E.js → use-session-runtime-D2nv6bTI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CnCb1h48.js → use-status-sounds-CBYC79_Y.js} +1 -1
- package/dist/client/assets/{use-tags-C2LhenRb.js → use-tags-6rI6kyxz.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CB3EJ29f.js → use-task-metadata-DuwC-TmK.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-9oZhiYbB.js → use-thread-outputs-DwE-nO-h.js} +1 -1
- package/dist/client/assets/{use-view-mode-BvOL5I4W.js → use-view-mode-2goLAQJg.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bk09OpEg.js → use-virtual-mcp-DY2qk06G.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B3TKIUIz.js +1 -0
- package/dist/client/assets/{useQueries-qr8TAkZc.js → useQueries-CDFEvGc1.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BuAksfER.js +1 -0
- package/dist/client/assets/{users-C1ExMDuM.js → users-xM0kvyFO.js} +1 -1
- package/dist/client/assets/{utils-B14U8IKK.js → utils-DPVkkzea.js} +1 -1
- package/dist/client/assets/{variant-calendar-urd0wE-3.js → variant-calendar-C1Gzo9bi.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DvY-JiuY.js → variant-matcher-override-GDeATfJn.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-swSorpD7.js → view-mode-toggle-VHYgVEtv.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DGQbDtgM.js → virtual-mcp-CSoIE5pZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CzbKRw1_.js +0 -1
- package/dist/client/assets/agent-deck-D5-mvZ5i.js +0 -1
- package/dist/client/assets/agent-file-DkGApBvp.js +0 -1
- package/dist/client/assets/agent-library-file-CK85m8fH.js +0 -1
- package/dist/client/assets/agent-settings-gb3smN_4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DkcL_YVi.js +0 -2
- package/dist/client/assets/agent-view-D9WzU94g.js +0 -1
- package/dist/client/assets/api-keys-BQayHq-8.js +0 -1
- package/dist/client/assets/app-editor-DeI0TeES.js +0 -1
- package/dist/client/assets/automations-CDxxuCym.js +0 -1
- package/dist/client/assets/category-editor-4KcN0JRt.js +0 -1
- package/dist/client/assets/project-reports-q4w3pT5T.js +0 -1
- package/dist/client/assets/project-tasks-DqlAyIfE.js +0 -1
- package/dist/client/assets/record-editor-n0M7yiQw.js +0 -1
- package/dist/client/assets/redirect-editor-CK3YSOdb.js +0 -1
- package/dist/client/assets/registry-DkzCUqTc.js +0 -2
- package/dist/client/assets/reports-C2LVTrmJ.js +0 -1
- package/dist/client/assets/settings-layout-DlH0gQXK.js +0 -1
- package/dist/client/assets/store-registry-DQHLJpOA.js +0 -2
- package/dist/client/assets/tasks-C6DyE2q-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-GKCP1c_7.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DmEiIBI4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d3 as It,d4 as Et,d5 as R,am as c,d6 as de,d7 as Je,d8 as Tt,d9 as wt,al as Mt,b2 as O,b1 as W,a_ as oe,ak as S,da as m,c6 as U,db as At,dc as I,a$ as Ot,t as ge,r as J,c as Ee,I as Ct,x as Rt,j as Nt}from"./index-
|
|
1
|
+
import{d3 as It,d4 as Et,d5 as R,am as c,d6 as de,d7 as Je,d8 as Tt,d9 as wt,al as Mt,b2 as O,b1 as W,a_ as oe,ak as S,da as m,c6 as U,db as At,dc as I,a$ as Ot,t as ge,r as J,c as Ee,I as Ct,x as Rt,j as Nt}from"./index-BodvdIMk.js";import{u as xt}from"./use-mcp-client-DO1cH-Rq.js";import{d as Pt}from"./delay-CnY5UFtP.js";import{e as Dt}from"./backoff-CrEUbyZT.js";import{d as Lt,D as kt}from"./decopilot-sse-pool-C4pTRblZ.js";var re;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const n={};for(const i of s)n[i]=i;return n},t.getValidEnumValues=s=>{const n=t.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of n)i[o]=s[o];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(n){return s[n]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const n=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&n.push(i);return n},t.find=(s,n)=>{for(const i of s)if(n(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,n=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}t.joinValues=r,t.jsonStringifyReplacer=(s,n)=>typeof n=="bigint"?n.toString():n})(re||(re={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ce extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(n){return n.message},r={_errors:[]},s=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let o=r,p=0;for(;p<i.path.length;){const u=i.path[p];p===i.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(a(i))):o[u]=o[u]||{_errors:[]},o=o[u],p++}}};return s(this),r}static assert(e){if(!(e instanceof ce))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const n=s.path[0];a[n]=a[n]||[],a[n].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ce.create=t=>new ce(t);var Oe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Oe||(Oe={}));var h;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(h||(h={}));class L{constructor(e){this.value=e}value;subs=new Set;get=()=>this.value;set=e=>{Object.is(e,this.value)||(this.value=e,this.subs.forEach(a=>a()))};update=e=>{this.set(e(this.value))};subscribe=e=>(this.subs.add(e),()=>{this.subs.delete(e)})}var We="vercel.ai.error",jt=Symbol.for(We),Ce,Re,Z=class Ge extends(Re=Error,Ce=jt,Re){constructor({name:e,message:a,cause:r}){super(a),this[Ce]=!0,this.name=e,this.cause=r}static isInstance(e){return Ge.hasMarker(e,We)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function Ye(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var He="AI_InvalidArgumentError",qe=`vercel.ai.error.${He}`,Zt=Symbol.for(qe),Ne,xe,$t=class extends(xe=Z,Ne=Zt,xe){constructor({message:t,cause:e,argument:a}){super({name:He,message:t,cause:e}),this[Ne]=!0,this.argument=a}static isInstance(t){return Z.hasMarker(t,qe)}},Xe="AI_JSONParseError",Qe=`vercel.ai.error.${Xe}`,Ut=Symbol.for(Qe),Pe,De,Le=class extends(De=Z,Pe=Ut,De){constructor({text:t,cause:e}){super({name:Xe,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${Ye(e)}`,cause:e}),this[Pe]=!0,this.text=t}static isInstance(t){return Z.hasMarker(t,Qe)}},Ke="AI_TypeValidationError",et=`vercel.ai.error.${Ke}`,Ft=Symbol.for(et),ke,je,q=class ve extends(je=Z,ke=Ft,je){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const n=[];r.entityName&&n.push(r.entityName),r.entityId&&n.push(`id: "${r.entityId}"`),s+=n.join(", "),s+=")"}super({name:Ke,message:`${s}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${Ye(a)}`,cause:a}),this[ke]=!0,this.value=e,this.context=r}static isInstance(e){return Z.hasMarker(e,et)}static wrap({value:e,cause:a,context:r}){var s,n,i;return ve.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((n=a.context)==null?void 0:n.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new ve({value:e,cause:a,context:r})}},ie=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const n=a.length,i=new Array(e);for(let o=0;o<e;o++)i[o]=a[Math.random()*n|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new $t({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};ie();var Bt=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Vt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Ze(t){const e=JSON.parse(t);return e===null||typeof e!="object"||Bt.test(t)===!1&&Vt.test(t)===!1?e:zt(e)}function zt(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const n=r[s];n&&typeof n=="object"&&e.push(n)}}}return t}function Jt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return Ze(t)}try{return Ze(t)}finally{Error.stackTraceLimit=e}}function Te(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=V(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(V):V(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(V)),t.allOf!=null&&(t.allOf=t.allOf.map(V)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(V));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=V(e[a]);return t}function V(t){return typeof t=="boolean"?t:Te(t)}var Wt=Symbol("Let zodToJsonSchema decide on which parser to use"),$e={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Gt=t=>typeof t=="string"?{...$e,name:t}:{...$e,...t};function N(){return{}}function Yt(t,e){var a,r,s;const n={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==h.ZodAny&&(n.items=b(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(n.minItems=t.minLength.value),t.maxLength&&(n.maxItems=t.maxLength.value),t.exactLength&&(n.minItems=t.exactLength.value,n.maxItems=t.exactLength.value),n}function Ht(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function qt(){return{type:"boolean"}}function tt(t,e){return b(t.type._def,e)}var Xt=(t,e)=>b(t.innerType._def,e);function at(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,n)=>at(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Qt(t)}}var Qt=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Kt(t,e){return{...b(t.innerType._def,e),default:t.defaultValue()}}function ea(t,e){return e.effectStrategy==="input"?b(t.schema._def,e):N()}function ta(t){return{type:"string",enum:Array.from(t.values)}}var aa=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ra(t,e){const a=[b(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),b(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(aa(s))r.push(...s.allOf);else{let n=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...o}=s;n=o}r.push(n)}}),r.length?{allOf:r}:void 0}function sa(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var me=void 0,P={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(me===void 0&&(me=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),me),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function rt(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":D(a,"email",r.message,e);break;case"format:idn-email":D(a,"idn-email",r.message,e);break;case"pattern:zod":A(a,P.email,r.message,e);break}break;case"url":D(a,"uri",r.message,e);break;case"uuid":D(a,"uuid",r.message,e);break;case"regex":A(a,r.regex,r.message,e);break;case"cuid":A(a,P.cuid,r.message,e);break;case"cuid2":A(a,P.cuid2,r.message,e);break;case"startsWith":A(a,RegExp(`^${he(r.value,e)}`),r.message,e);break;case"endsWith":A(a,RegExp(`${he(r.value,e)}$`),r.message,e);break;case"datetime":D(a,"date-time",r.message,e);break;case"date":D(a,"date",r.message,e);break;case"time":D(a,"time",r.message,e);break;case"duration":D(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{A(a,RegExp(he(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&D(a,"ipv4",r.message,e),r.version!=="v4"&&D(a,"ipv6",r.message,e);break}case"base64url":A(a,P.base64url,r.message,e);break;case"jwt":A(a,P.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&A(a,P.ipv4Cidr,r.message,e),r.version!=="v4"&&A(a,P.ipv6Cidr,r.message,e);break}case"emoji":A(a,P.emoji(),r.message,e);break;case"ulid":{A(a,P.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{D(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{A(a,P.base64,r.message,e);break}}break}case"nanoid":A(a,P.nanoid,r.message,e)}return a}function he(t,e){return e.patternStrategy==="escape"?oa(t):t}var na=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function oa(t){let e="";for(let a=0;a<t.length;a++)na.has(t[a])||(e+="\\"),e+=t[a];return e}function D(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(n=>n.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function A(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(n=>n.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Ue(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Ue(e,r)}function Ue(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let n="",i=!1,o=!1,p=!1;for(let u=0;u<s.length;u++){if(i){n+=s[u],i=!1;continue}if(r.i){if(o){if(s[u].match(/[a-z]/)){p?(n+=s[u],n+=`${s[u-2]}-${s[u]}`.toUpperCase(),p=!1):s[u+1]==="-"&&((a=s[u+2])!=null&&a.match(/[a-z]/))?(n+=s[u],p=!0):n+=`${s[u]}${s[u].toUpperCase()}`;continue}}else if(s[u].match(/[a-z]/)){n+=`[${s[u]}${s[u].toUpperCase()}]`;continue}}if(r.m){if(s[u]==="^"){n+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(s[u]==="$"){n+=`($|(?=[\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,a0 as Pe,a1 as ze,o as E,b as A,a as ce,I as F,d as Re,a2 as gt,v as jt,R as vt,r as D,j as n,t as Xe,l as O,a3 as re,a4 as yt,a5 as Nt,a6 as St,a7 as kt,a8 as _t,a9 as Pt,aa as z,ab as M,ac as Ze,n as wt,e as It,K as Ct,B as At,ad as Me,ae as $,C as R,af as $t,ag as Le,ah as Tt,m as Ot,ai as zt,L as Mt,E as Dt}from"./index-B3yBTWEk.js";import{u as we,a as Ie,b as et}from"./use-project-scope-B2cuvtTy.js";import{u as Rt}from"./thread-route-CKY-dKC0.js";import{u as Ee,S as Ce,a as Et,b as Ft,c as tt,d as Vt,e as Bt,f as Kt,g as Lt,h as qt}from"./settings-sidebar-DswZBMwm.js";import{L as le}from"./anchors-yqDzZN4K.js";import{P as st,a as Fe,b as nt}from"./popover-DIqZ2IKF.js";import{D as Ut,a as Qt,b as Ht}from"./drawer-s7gtDrb4.js";import{A as _e}from"./avatar-DcDvs8Zz.js";import{a as Wt}from"./Copy01-DayLu0dF.js";import{n as Jt}from"./Download01-BC2rKbuh.js";import{i as Yt}from"./Printer-fz_zwxfT.js";import{i as Gt}from"./Globe01-SLAc63wC.js";import{n as Xt}from"./LinkExternal01-Cp7uxK1i.js";import{g as qe,e as Zt}from"./TrendUp01-PFzYDizC.js";import{i as ot}from"./Monitor01-BUruMK2r.js";import{n as es,a as ts}from"./Sun-nKOZMh9n.js";import{a as it}from"./Settings02-D2oiGU4q.js";import{i as ss}from"./Shield01-CjyLhqlS.js";import{t as ns,a as os,i as is,b as as,s as Ve,c as at,d as rs,n as ls,e as rt,f as cs,g as ds,h as ms,j as us}from"./agent-icon-DrlilhFJ.js";import{b as fs}from"./Users03-CRtXqa1Q.js";import{u as ps}from"./use-deployment-admin-D6IzoXV0.js";import{u as xs}from"./use-is-desktop-app-BNujXJc_.js";import{i as bs,a as Ue,D as hs}from"./download-app-dialog-BqNRF4Sn.js";import{I as lt}from"./invite-member-dialog-vPcEYe6v.js";import{A as gs}from"./add-connection-dialog-s1GRGQ63.js";import{u as js}from"./use-deco-credits-rwNQ1gMg.js";import{a as vs}from"./use-organization-settings-BAVHurZk.js";import{S as ys}from"./scroll-area-BgZjjLM3.js";import{u as Ns}from"./useInfiniteQuery-GKCP1c_7.js";import{n as Ss}from"./decopilot-sse-pool-CfYFArSW.js";import{t as ct,S as ks,b as _s,p as Ps,a as ws,i as Is,c as Cs,d as As}from"./task-route-D79aS9d_.js";import{g as $s}from"./get-initials-D-f_fDFw.js";import{a as Ts}from"./format-time-BtXRrtv4.js";import{i as Os}from"./Share07-D_kiq5Fr.js";import{e as zs,r as dt,u as Ms,s as Ds,p as Rs,P as Es}from"./use-project-native-view-presence-D-AyEulW.js";import{u as mt}from"./optimistic-project-sidebar-views-yrtk59Mo.js";import{u as Be}from"./use-navigate-to-agent-Bbq0oQ0Y.js";import{c as Fs}from"./SwitchHorizontal01-CxlKjkIX.js";import{a as Vs}from"./Image01-BrHSH-Vi.js";import{u as Bs}from"./use-panel-navigate-Byvx0cbx.js";import{i as Ks}from"./source-system-tabs-CnEGUb4r.js";import{P as Ls}from"./project-icon-Bl3bXnhv.js";function qs(){const t=_.c(4),{setScope:e}=we(),s=Rt(),i=Pe();let o;return t[0]!==i||t[1]!==s||t[2]!==e?(o=()=>{const a=s!==void 0?"route_resolves_scope":ze(i,null)?null:"route_needs_scope";E("scope_cleared",{relocated:a!==null,reason:a}),e(null)},t[0]=i,t[1]=s,t[2]=e,t[3]=o):o=t[3],o}function ae(t){const e=_.c(26),{item:s,onClose:i}=t;let o;e[0]!==s.className?(o=O("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",s.className),e[0]=s.className,e[1]=o):o=e[1];const a=o;if(s.href){const u=s.external?"_blank":void 0,d=s.external?"noopener noreferrer":void 0;let f;e[2]!==s.icon?(f=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[2]=s.icon,e[3]=f):f=e[3];let x;e[4]!==s.label?(x=n.jsx("span",{className:"flex-1",children:s.label}),e[4]=s.label,e[5]=x):x=e[5];let b;return e[6]!==a||e[7]!==s.href||e[8]!==i||e[9]!==u||e[10]!==d||e[11]!==f||e[12]!==x?(b=n.jsxs("a",{href:s.href,target:u,rel:d,className:a,onClick:i,children:[f,x]}),e[6]=a,e[7]=s.href,e[8]=i,e[9]=u,e[10]=d,e[11]=f,e[12]=x,e[13]=b):b=e[13],b}let r;e[14]!==s||e[15]!==i?(r=()=>{s.onClick?.(),i()},e[14]=s,e[15]=i,e[16]=r):r=e[16];let l;e[17]!==s.icon?(l=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[17]=s.icon,e[18]=l):l=e[18];let c;e[19]!==s.label?(c=n.jsx("span",{className:"flex-1",children:s.label}),e[19]=s.label,e[20]=c):c=e[20];let m;return e[21]!==a||e[22]!==r||e[23]!==l||e[24]!==c?(m=n.jsxs("button",{type:"button",onClick:r,className:a,children:[l,c]}),e[21]=a,e[22]=r,e[23]=l,e[24]=c,e[25]=m):m=e[25],m}function Us(){const t=_.c(4),e=A();let s;t[0]!==e?(s=e("common.accountPopover.impersonating"),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==s?(i=n.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-[10px] font-medium text-warning",children:s}),t[2]=s,t[3]=i):i=t[3],i}function Qe(t){const e=_.c(38),{user:s,userImage:i,isImpersonating:o,isMobile:a}=t,r=A(),l=a?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==l?(c=O("flex items-center gap-3 px-4",l),e[0]=l,e[1]=c):c=e[1];const m=s?.name??"U";let u;e[2]!==m||e[3]!==i?(u=n.jsx(_e,{url:i,fallback:m,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=m,e[3]=i,e[4]=u):u=e[4];let d;e[5]!==r||e[6]!==s?.name?(d=s?.name??r("common.accountPopover.defaultUserName"),e[5]=r,e[6]=s?.name,e[7]=d):d=e[7];let f;e[8]!==d?(f=n.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[8]=d,e[9]=f):f=e[9];let x;e[10]!==o?(x=o&&n.jsx(Us,{}),e[10]=o,e[11]=x):x=e[11];let b;e[12]!==f||e[13]!==x?(b=n.jsxs("div",{className:"flex items-center gap-2",children:[f,x]}),e[12]=f,e[13]=x,e[14]=b):b=e[14];const g=s?.email;let p;e[15]!==g?(p=n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:g}),e[15]=g,e[16]=p):p=e[16];let h;e[17]!==p||e[18]!==b?(h=n.jsxs("div",{className:"flex-1 min-w-0",children:[b,p]}),e[17]=p,e[18]=b,e[19]=h):h=e[19];let j;e[20]!==r||e[21]!==s?(j=()=>{s?.id&&navigator.clipboard.writeText(s.id).then(()=>{Xe.success(r("common.accountPopover.userIdCopied"))})},e[20]=r,e[21]=s,e[22]=j):j=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Wt,{size:14}),e[23]=v):v=e[23];let y;e[24]!==j?(y=n.jsx(St,{asChild:!0,children:n.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:v})}),e[24]=j,e[25]=y):y=e[25];let N;e[26]!==r?(N=r("common.accountPopover.copyUserId"),e[26]=r,e[27]=N):N=e[27];let S;e[28]!==N?(S=n.jsx(kt,{side:"right",children:n.jsx("p",{className:"text-xs",children:N})}),e[28]=N,e[29]=S):S=e[29];let k;e[30]!==y||e[31]!==S?(k=n.jsx(_t,{delayDuration:300,children:n.jsxs(Pt,{children:[y,S]})}),e[30]=y,e[31]=S,e[32]=k):k=e[32];let P;return e[33]!==h||e[34]!==k||e[35]!==c||e[36]!==u?(P=n.jsxs("div",{className:c,children:[u,h,k]}),e[33]=h,e[34]=k,e[35]=c,e[36]=u,e[37]=P):P=e[37],P}function He(t){const e=_.c(35),{themeOptions:s,preferences:i,setPreferences:o,isMobile:a}=t,r=A(),l=a?"size-8":"size-7",c=a?"px-3 py-3":"px-2 py-1.5";let m;e[0]!==c?(m=O("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=m):m=e[1];let u;if(e[2]!==l||e[3]!==i.theme||e[4]!==o||e[5]!==s){let N;e[7]!==l||e[8]!==i.theme||e[9]!==o?(N=S=>{const{value:k,icon:P,label:w}=S;return n.jsx("button",{type:"button","aria-label":w,onClick:()=>o(I=>({...I,theme:k})),className:O(l,"rounded-md flex items-center justify-center transition-colors",i.theme===k?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:P},k)},e[7]=l,e[8]=i.theme,e[9]=o,e[10]=N):N=e[10],u=s.map(N),e[2]=l,e[3]=i.theme,e[4]=o,e[5]=s,e[6]=u}else u=e[6];let d;e[11]!==u?(d=n.jsx("div",{className:"flex items-center gap-0.5",children:u}),e[11]=u,e[12]=d):d=e[12];let f;e[13]!==i.enableSounds||e[14]!==r?(f=i.enableSounds?r("common.accountPopover.disableSounds"):r("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=r,e[15]=f):f=e[15];let x;e[16]!==o?(x=()=>o(Qs),e[16]=o,e[17]=x):x=e[17];const b=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let g;e[18]!==l||e[19]!==b?(g=O(l,"rounded-md flex items-center justify-center transition-colors",b),e[18]=l,e[19]=b,e[20]=g):g=e[20];let p;e[21]!==i.enableSounds?(p=i.enableSounds?n.jsx(os,{size:14}):n.jsx(is,{size:14}),e[21]=i.enableSounds,e[22]=p):p=e[22];let h;e[23]!==f||e[24]!==x||e[25]!==g||e[26]!==p?(h=n.jsx("button",{type:"button","aria-label":f,onClick:x,className:g,children:p}),e[23]=f,e[24]=x,e[25]=g,e[26]=p,e[27]=h):h=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.364.0"]}),e[28]=j):j=e[28];let v;e[29]!==h?(v=n.jsxs("div",{className:"flex items-center gap-2",children:[h,j]}),e[29]=h,e[30]=v):v=e[30];let y;return e[31]!==v||e[32]!==m||e[33]!==d?(y=n.jsxs("div",{className:m,children:[d,v]}),e[31]=v,e[32]=m,e[33]=d,e[34]=y):y=e[34],y}function Qs(t){return{...t,enableSounds:!t.enableSounds}}function We(t){const e=_.c(54),{user:s,userImage:i,menuItems:o,signOutItem:a,stopImpersonatingItem:r,isImpersonating:l,themeOptions:c,preferences:m,setPreferences:u,close:d,isMobile:f}=t;if(f){let y;e[0]!==l||e[1]!==s||e[2]!==i?(y=n.jsx(Qe,{user:s,userImage:i,isImpersonating:l,isMobile:!0}),e[0]=l,e[1]=s,e[2]=i,e[3]=y):y=e[3];let N;if(e[4]!==d||e[5]!==o){let C;e[7]!==d?(C=T=>n.jsx(ae,{item:T,onClose:d},T.key),e[7]=d,e[8]=C):C=e[8],N=o.map(C),e[4]=d,e[5]=o,e[6]=N}else N=e[6];let S;e[9]!==d||e[10]!==r?(S=r&&n.jsx(ae,{item:r,onClose:d}),e[9]=d,e[10]=r,e[11]=S):S=e[11];let k;e[12]!==d||e[13]!==a?(k=n.jsx(ae,{item:a,onClose:d}),e[12]=d,e[13]=a,e[14]=k):k=e[14];let P;e[15]!==N||e[16]!==S||e[17]!==k?(P=n.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:n.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[N,S,k]})}),e[15]=N,e[16]=S,e[17]=k,e[18]=P):P=e[18];let w;e[19]!==m||e[20]!==u||e[21]!==c?(w=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!0}),e[19]=m,e[20]=u,e[21]=c,e[22]=w):w=e[22];let I;return e[23]!==y||e[24]!==P||e[25]!==w?(I=n.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,P,w]}),e[23]=y,e[24]=P,e[25]=w,e[26]=I):I=e[26],I}let x;e[27]!==l||e[28]!==s||e[29]!==i?(x=n.jsx(Qe,{user:s,userImage:i,isImpersonating:l,isMobile:!1}),e[27]=l,e[28]=s,e[29]=i,e[30]=x):x=e[30];let b;if(e[31]!==d||e[32]!==o){let y;e[34]!==d?(y=N=>n.jsx(ae,{item:N,onClose:d},N.key),e[34]=d,e[35]=y):y=e[35],b=o.map(y),e[31]=d,e[32]=o,e[33]=b}else b=e[33];let g;e[36]!==d||e[37]!==r?(g=r&&n.jsx(ae,{item:r,onClose:d}),e[36]=d,e[37]=r,e[38]=g):g=e[38];let p;e[39]!==d||e[40]!==a?(p=n.jsx(ae,{item:a,onClose:d}),e[39]=d,e[40]=a,e[41]=p):p=e[41];let h;e[42]!==b||e[43]!==g||e[44]!==p?(h=n.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[b,g,p]}),e[42]=b,e[43]=g,e[44]=p,e[45]=h):h=e[45];let j;e[46]!==m||e[47]!==u||e[48]!==c?(j=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!1}),e[46]=m,e[47]=u,e[48]=c,e[49]=j):j=e[49];let v;return e[50]!==x||e[51]!==h||e[52]!==j?(v=n.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:n.jsxs("div",{className:"flex flex-col",children:[x,h,j]})}),e[50]=x,e[51]=h,e[52]=j,e[53]=v):v=e[53],v}function De(){const t=_.c(107),e=A(),{data:s}=ce.useSession(),{org:i}=F(),o=Re();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/shell/$org",shouldThrow:!1},t[0]=a):a=t[0];const l=gt(a)?.params.org,[c,m]=jt(),u=vt(),{isAdmin:d}=ps(),f=xs(),[x,b]=D.useState(!1),[g,p]=D.useState(!1),h=s?.user,j=h?.image,v=!!s?.session?.impersonatedBy;let y;t[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>b(!1),t[1]=y):y=t[1];const N=y;let S;t[2]!==e?(S=e("common.accountPopover.preferences"),t[2]=e,t[3]=S):S=t[3];let k;t[4]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(it,{size:16}),t[4]=k):k=t[4];let P;t[5]!==o||t[6]!==l?(P=()=>{o({to:"/$org/settings/profile",params:{org:l??""}})},t[5]=o,t[6]=l,t[7]=P):P=t[7];let w;t[8]!==S||t[9]!==P?(w={key:"preferences",label:S,icon:k,onClick:P},t[8]=S,t[9]=P,t[10]=w):w=t[10];let I;t[11]!==i||t[12]!==o?(I=i?[{key:"connect-clients",label:"Connect to Agents",icon:n.jsx(Xt,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=o,t[13]=I):I=t[13];let C;t[14]!==f||t[15]!==e?(C=(bs()||Ue())&&!f?[{key:"install-desktop-app",label:Ue()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:n.jsx(Jt,{size:16}),onClick:()=>p(!0)}]:[],t[14]=f,t[15]=e,t[16]=C):C=t[16];let T;t[17]!==e?(T=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=T):T=t[18];let V;t[19]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(Yt,{size:16}),t[19]=V):V=t[19];let B;t[20]!==T?(B={key:"terms",label:T,icon:V,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=T,t[21]=B):B=t[21];let K;t[22]!==e?(K=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=K):K=t[23];let de;t[24]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(ss,{size:16}),t[24]=de):de=t[24];let L;t[25]!==K?(L={key:"privacy",label:K,icon:de,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=K,t[26]=L):L=t[26];let q;t[27]!==e?(q=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=q):q=t[28];let me;t[29]===Symbol.for("react.memo_cache_sentinel")?(me=n.jsx(yt,{className:"w-4 h-4"}),t[29]=me):me=t[29];let U;t[30]!==q?(U={key:"github",label:q,icon:me,href:"https://github.com/decocms/studio",external:!0},t[30]=q,t[31]=U):U=t[31];let Q;t[32]!==e?(Q=e("common.accountPopover.community"),t[32]=e,t[33]=Q):Q=t[33];let ue;t[34]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(fs,{size:16}),t[34]=ue):ue=t[34];let H;t[35]!==Q?(H={key:"community",label:Q,icon:ue,href:"https://decocms.com/discord",external:!0},t[35]=Q,t[36]=H):H=t[36];let W;t[37]!==e?(W=e("common.accountPopover.homepage"),t[37]=e,t[38]=W):W=t[38];let fe;t[39]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(Gt,{size:16}),t[39]=fe):fe=t[39];let J;t[40]!==W?(J={key:"homepage",label:W,icon:fe,href:"https://decocms.com",external:!0},t[40]=W,t[41]=J):J=t[41];let Y;t[42]!==d||t[43]!==o||t[44]!==e?(Y=d?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:n.jsx(ns,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[42]=d,t[43]=o,t[44]=e,t[45]=Y):Y=t[45];let pe;t[46]!==B||t[47]!==L||t[48]!==U||t[49]!==H||t[50]!==J||t[51]!==Y||t[52]!==w||t[53]!==I||t[54]!==C?(pe=[w,...I,...C,B,L,U,H,J,...Y],t[46]=B,t[47]=L,t[48]=U,t[49]=H,t[50]=J,t[51]=Y,t[52]=w,t[53]=I,t[54]=C,t[55]=pe):pe=t[55];const Ae=pe;let G;t[56]!==e?(G=e("common.accountPopover.signOut"),t[56]=e,t[57]=G):G=t[57];let xe;t[58]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx(qe,{size:16}),t[58]=xe):xe=t[58];let be;t[59]!==G?(be={key:"logout",label:G,icon:xe,onClick:Ws},t[59]=G,t[60]=be):be=t[60];const $e=be;let he;t[61]!==v||t[62]!==e?(he=v?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:n.jsx(qe,{size:16}),onClick:async()=>{const{error:Ke}=await ce.admin.stopImpersonating();if(Ke){Xe.error(Ke.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=v,t[62]=e,t[63]=he):he=t[63];const Te=he;let ge;t[64]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(es,{size:14}),t[64]=ge):ge=t[64];let X;t[65]!==e?(X=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=X):X=t[66];let Z;t[67]!==X?(Z={value:"light",icon:ge,label:X},t[67]=X,t[68]=Z):Z=t[68];let je;t[69]===Symbol.for("react.memo_cache_sentinel")?(je=n.jsx(ts,{size:14}),t[69]=je):je=t[69];let ee;t[70]!==e?(ee=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=ee):ee=t[71];let te;t[72]!==ee?(te={value:"dark",icon:je,label:ee},t[72]=ee,t[73]=te):te=t[73];let ve;t[74]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(ot,{size:14}),t[74]=ve):ve=t[74];let se;t[75]!==e?(se=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=se):se=t[76];let ne;t[77]!==se?(ne={value:"system",icon:ve,label:se},t[77]=se,t[78]=ne):ne=t[78];let ye;t[79]!==Z||t[80]!==te||t[81]!==ne?(ye=[Z,te,ne],t[79]=Z,t[80]=te,t[81]=ne,t[82]=ye):ye=t[82];const Oe=ye;let Ne;t[83]!==v||t[84]!==u||t[85]!==Ae||t[86]!==c||t[87]!==m||t[88]!==$e||t[89]!==Te||t[90]!==Oe||t[91]!==h||t[92]!==j?(Ne={user:h,userImage:j,menuItems:Ae,signOutItem:$e,stopImpersonatingItem:Te,isImpersonating:v,themeOptions:Oe,preferences:c,setPreferences:m,close:N,isMobile:u},t[83]=v,t[84]=u,t[85]=Ae,t[86]=c,t[87]=m,t[88]=$e,t[89]=Te,t[90]=Oe,t[91]=h,t[92]=j,t[93]=Ne):Ne=t[93];const Se=Ne;let oe;t[94]!==v||t[95]!==u||t[96]!==x||t[97]!==Se||t[98]!==e||t[99]!==h?.name||t[100]!==j?(oe=u?n.jsxs(Ut,{open:x,onOpenChange:b,direction:"bottom",children:[n.jsxs("button",{type:"button",onClick:()=>b(!0),className:O("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",v&&"border-2 border-dashed border-warning"),children:[n.jsx(_e,{url:j,fallback:h?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:h?.name??e("common.accountPopover.defaultAccountLabel")})]}),n.jsxs(Qt,{className:"h-[80dvh] p-0",children:[n.jsx(Ht,{className:"sr-only",children:e("common.accountPopover.account")}),n.jsx(We,{...Se})]})]}):n.jsxs(st,{open:x,onOpenChange:b,children:[n.jsx(Fe,{asChild:!0,children:n.jsxs(re,{"data-tour":le.account,tooltip:h?.name??e("common.accountPopover.defaultAccountLabel"),className:O("rounded-md",v&&"border-2 border-dashed border-warning"),children:[n.jsx(_e,{url:j,fallback:h?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:h?.name??e("common.accountPopover.defaultAccountLabel")})]})}),n.jsx(nt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Hs,children:n.jsx(We,{...Se})})]}),t[94]=v,t[95]=u,t[96]=x,t[97]=Se,t[98]=e,t[99]=h?.name,t[100]=j,t[101]=oe):oe=t[101];let ie;t[102]!==g?(ie=n.jsx(hs,{open:g,onOpenChange:p}),t[102]=g,t[103]=ie):ie=t[103];let ke;return t[104]!==oe||t[105]!==ie?(ke=n.jsxs(n.Fragment,{children:[oe,ie]}),t[104]=oe,t[105]=ie,t[106]=ke):ke=t[106],ke}function Hs(t){return t.preventDefault()}function Ws(){E("signed_out",{source:"account_popover"}),Nt(),ce.signOut()}class Js extends D.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?null:this.props.children}}function Ys(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Gs(){const t=_.c(17),e=Re(),{org:s}=F(),{hasDecoKey:i,balanceDollars:o}=js();if(!i)return null;let a;t[0]!==o?(a=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=a):a=t[1];let r;t[2]!==o?(r=O(o!=null&&Ys(o)),t[2]=o,t[3]=r):r=t[3];let l;t[4]!==e||t[5]!==s.slug?(l=()=>e({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[4]=e,t[5]=s.slug,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(as,{}),t[7]=c):c=t[7];let m;t[8]!==o?(m=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=m):m=t[9];let u;t[10]!==m?(u=n.jsx("span",{children:m}),t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==l||t[15]!==u?(d=n.jsx(z,{children:n.jsx(M,{children:n.jsxs(re,{tooltip:a,className:r,onClick:l,children:[c,u]})})}),t[12]=a,t[13]=r,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function Je(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Js,{children:n.jsx(D.Suspense,{fallback:null,children:n.jsx(Gs,{})})}),t[0]=e):e=t[0],e}const Xs=6e4;function Zs(t,e){return t.call("NOTIFICATION_LIST",e?{cursor:e}:{})}function en(t,e){if(!t)return t;const s=e?new Set(e):null;let i=0;const o=t.pages.map(r=>{const l=r.notifications.filter(c=>s&&!s.has(c.id)?!0:(i++,!1));return{...r,notifications:l}}),a=s?Math.max(0,(t.pages[0]?.unreadCount??0)-i):0;return{...t,pages:o.map(r=>({...r,unreadCount:a}))}}function tn(t,e){const s=_.c(4),{data:i}=ce.useSession(),o=i?.user?.id;let a;s[0]!==e||s[1]!==t||s[2]!==o?(a=r=>!t||!o?on:Ss.subscribe(t,c=>{try{if(JSON.parse(c.data).subject!==o)return}catch{return}e(),r()},e),s[0]=e,s[1]=t,s[2]=o,s[3]=a):a=s[3],D.useSyncExternalStore(a,nn,sn)}function sn(){return 0}function nn(){return 0}function on(){}function ut(){const t=_.c(37),{locator:e,org:s}=F(),i=Ze(),o=wt();let a;t[0]!==e?(a=Ct.notifications(e),t[0]=e,t[1]=a):a=t[1];const r=a;let l;t[2]!==i?(l=P=>{const{pageParam:w}=P;return Zs(i,w)},t[2]=i,t[3]=l):l=t[3];let c;t[4]!==r||t[5]!==l?(c={queryKey:r,queryFn:l,initialPageParam:void 0,getNextPageParam:ln,refetchInterval:Xs},t[4]=r,t[5]=l,t[6]=c):c=t[6];const m=Ns(c);let u;t[7]!==o||t[8]!==r?(u=()=>o.invalidateQueries({queryKey:r,refetchType:"active"}),t[7]=o,t[8]=r,t[9]=u):u=t[9],tn(s.slug,u);let d;t[10]!==i?(d=P=>i.call("NOTIFICATION_MARK_READ",P?{ids:P}:{}),t[10]=i,t[11]=d):d=t[11];let f,x;t[12]!==o||t[13]!==r?(f=async P=>{await o.cancelQueries({queryKey:r}),o.setQueryData(r,w=>en(w,P))},x=()=>o.invalidateQueries({queryKey:r}),t[12]=o,t[13]=r,t[14]=f,t[15]=x):(f=t[14],x=t[15]);let b;t[16]!==d||t[17]!==f||t[18]!==x?(b={mutationFn:d,onMutate:f,onSettled:x},t[16]=d,t[17]=f,t[18]=x,t[19]=b):b=t[19];const g=It(b);let p;t[20]!==m.data?.pages?(p=m.data?.pages??[],t[20]=m.data?.pages,t[21]=p):p=t[21];const h=p;let j;t[22]!==h?(j=h.flatMap(an),t[22]=h,t[23]=j):j=t[23];const v=h[0]?.unreadCount??0;let y;t[24]!==m?(y=()=>{m.hasNextPage&&!m.isFetchingNextPage&&m.fetchNextPage()},t[24]=m,t[25]=y):y=t[25];let N,S;t[26]!==g?(N=()=>g.mutate(null),S=P=>g.mutate([P]),t[26]=g,t[27]=N,t[28]=S):(N=t[27],S=t[28]);let k;return t[29]!==m.hasNextPage||t[30]!==m.isFetchingNextPage||t[31]!==v||t[32]!==y||t[33]!==N||t[34]!==S||t[35]!==j?(k={updates:j,redDotCount:v,hasMore:m.hasNextPage,isFetchingMore:m.isFetchingNextPage,fetchMore:y,markAllRead:N,markRead:S},t[29]=m.hasNextPage,t[30]=m.isFetchingNextPage,t[31]=v,t[32]=y,t[33]=N,t[34]=S,t[35]=j,t[36]=k):k=t[36],k}function an(t){return t.notifications.map(rn)}function rn(t){return{id:t.id,taskBoardItemId:t.taskBoardItemId,taskTitle:t.taskTitle,taskKeySeq:t.taskKeySeq,action:t.type,actorName:t.actorName,actorImage:t.actorImage,occurredAt:t.createdAt}}function ln(t){return t.nextCursor??void 0}function cn(t){switch(t){case"mentioned":case"review_requested":return"font-medium text-foreground";case"merge_failed":case"review_changes_requested":return"font-medium text-destructive";case"review_approved":return"font-medium text-success";default:return""}}function dn(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");default:{const s=t.action;return String(s)}}}function mn(t){const e=_.c(36),{update:s,orgSlug:i,onSelect:o}=t,a=A();let r;e[0]!==i||e[1]!==s.taskKeySeq?(r=ct(i,s.taskKeySeq),e[0]=i,e[1]=s.taskKeySeq,e[2]=r):r=e[2];const l=r,c=!s.actorName;let m;e[3]!==c||e[4]!==s.actorImage||e[5]!==s.actorName?(m=n.jsx("span",{className:"mt-0.5 shrink-0",children:c?n.jsx(ks,{size:24}):n.jsx(_e,{url:s.actorImage??void 0,fallback:$s(s.actorName??void 0),shape:"circle",size:"xs"})}),e[3]=c,e[4]=s.actorImage,e[5]=s.actorName,e[6]=m):m=e[6];let u;e[7]!==s.taskTitle?(u=n.jsx("p",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:s.taskTitle}),e[7]=s.taskTitle,e[8]=u):u=e[8];let d;e[9]!==s.occurredAt?(d=Ts(new Date(s.occurredAt)),e[9]=s.occurredAt,e[10]=d):d=e[10];let f;e[11]!==d?(f=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground/70",children:d}),e[11]=d,e[12]=f):f=e[12];let x;e[13]!==u||e[14]!==f?(x=n.jsxs("div",{className:"flex items-baseline gap-2",children:[u,f]}),e[13]=u,e[14]=f,e[15]=x):x=e[15];let b;e[16]!==l?(b=l&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"font-medium",children:l})," · "]}),e[16]=l,e[17]=b):b=e[17];let g;e[18]!==s.action?(g=O(cn(s.action)),e[18]=s.action,e[19]=g):g=e[19];let p;e[20]!==a||e[21]!==s?(p=dn(s,a),e[20]=a,e[21]=s,e[22]=p):p=e[22];let h;e[23]!==g||e[24]!==p?(h=n.jsx("span",{className:g,children:p}),e[23]=g,e[24]=p,e[25]=h):h=e[25];let j;e[26]!==h||e[27]!==b?(j=n.jsxs("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:[b,h]}),e[26]=h,e[27]=b,e[28]=j):j=e[28];let v;e[29]!==j||e[30]!==x?(v=n.jsxs("div",{className:"min-w-0 flex-1",children:[x,j]}),e[29]=j,e[30]=x,e[31]=v):v=e[31];let y;return e[32]!==o||e[33]!==v||e[34]!==m?(y=n.jsxs("button",{type:"button",onClick:o,className:"flex w-full items-start gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-muted/25",children:[m,v]}),e[32]=o,e[33]=v,e[34]=m,e[35]=y):y=e[35],y}function un(t){const e=_.c(2),{onReach:s}=t;let i;return e[0]!==s?(i=n.jsx("div",{className:"h-8 shrink-0",ref:o=>{if(!o)return;const a=new IntersectionObserver(r=>{r.some(fn)&&s()});return a.observe(o),()=>a.disconnect()}}),e[0]=s,e[1]=i):i=e[1],i}function fn(t){return t.isIntersecting}function pn(t){const e=_.c(23),{onClose:s}=t,i=A(),o=Re(),{org:a}=F(),{updates:r,markAllRead:l,markRead:c,hasMore:m,fetchMore:u}=ut();let d;e[0]!==i?(d=i("sidebar.inbox.title"),e[0]=i,e[1]=d):d=e[1];let f;e[2]!==d?(f=n.jsx("h3",{className:"text-sm font-medium",children:d}),e[2]=d,e[3]=f):f=e[3];let x;e[4]!==l||e[5]!==i||e[6]!==r.length?(x=r.length>0&&n.jsx(At,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs text-muted-foreground",onClick:l,children:i("sidebar.inbox.markAllRead")}),e[4]=l,e[5]=i,e[6]=r.length,e[7]=x):x=e[7];let b;e[8]!==f||e[9]!==x?(b=n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[f,x]}),e[8]=f,e[9]=x,e[10]=b):b=e[10];let g;e[11]!==u||e[12]!==m||e[13]!==c||e[14]!==o||e[15]!==s||e[16]!==a||e[17]!==i||e[18]!==r?(g=r.length===0?n.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[n.jsx(Ve,{size:24,className:"text-muted-foreground/50"}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:i("sidebar.inbox.emptyTitle")}),n.jsx("p",{className:"text-xs text-muted-foreground",children:i("sidebar.inbox.emptyBody")})]}):n.jsxs(ys,{className:"min-h-0 flex-1",children:[r.map(h=>{const j=ct(a.slug,h.taskKeySeq);return n.jsx(mn,{update:h,orgSlug:a.slug,onSelect:()=>{c(h.id),s(),j&&o({to:"/$org/tasks/{-$taskKey}",params:{org:a.slug,taskKey:j}})}},h.id)}),m&&n.jsx(un,{onReach:u})]}),e[11]=u,e[12]=m,e[13]=c,e[14]=o,e[15]=s,e[16]=a,e[17]=i,e[18]=r,e[19]=g):g=e[19];let p;return e[20]!==b||e[21]!==g?(p=n.jsxs(n.Fragment,{children:[b,g]}),e[20]=b,e[21]=g,e[22]=p):p=e[22],p}function ft(){const t=_.c(1),{redDotCount:e}=ut();if(e===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function pt(t){const e=_.c(10),{open:s,onOpenChange:i,children:o}=t;let a;e[0]!==i||e[1]!==s?(a=s&&n.jsx(pn,{onClose:()=>i(!1)}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let r;e[3]!==a?(r=n.jsx(nt,{side:"right",align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(400px,calc(100vw-2rem))] flex-col p-0",children:a}),e[3]=a,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==i||e[7]!==s||e[8]!==r?(l=n.jsxs(st,{open:s,onOpenChange:i,children:[o,r]}),e[5]=o,e[6]=i,e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function xt(){const t=_.c(9),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.inbox.title"),t[0]=e,t[1]=o):o=t[1];let a,r;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ve,{size:15}),r=n.jsx(ft,{}),t[2]=a,t[3]=r):(a=t[2],r=t[3]);let l;t[4]!==o?(l=n.jsx(Fe,{asChild:!0,children:n.jsxs("button",{type:"button","aria-label":o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[a,r]})}),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==s||t[7]!==l?(c=n.jsx(pt,{open:s,onOpenChange:i,children:l}),t[6]=s,t[7]=l,t[8]=c):c=t[8],c}function xn(){const t=_.c(15),e=A(),[s,i]=D.useState(!1),o=Ee();let a;t[0]!==o||t[1]!==e?(a=o?e("sidebar.inbox.title"):void 0,t[0]=o,t[1]=e,t[2]=a):a=t[2];let r,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ve,{}),l=n.jsx(ft,{}),t[3]=r,t[4]=l):(r=t[3],l=t[4]);let c;t[5]!==e?(c=e("sidebar.inbox.title"),t[5]=e,t[6]=c):c=t[6];let m;t[7]!==c?(m=n.jsx("span",{className:"truncate",children:c}),t[7]=c,t[8]=m):m=t[8];let u;t[9]!==a||t[10]!==m?(u=n.jsx(Fe,{asChild:!0,children:n.jsxs(re,{tooltip:a,className:"relative",children:[r,l,m]})}),t[9]=a,t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==s||t[13]!==u?(d=n.jsx(pt,{open:s,onOpenChange:i,children:u}),t[12]=s,t[13]=u,t[14]=d):d=t[14],d}function Ye(){const t=_.c(29),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=o):o=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(at,{}),t[2]=a):a=t[2];let r;t[3]!==e?(r=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=r):r=t[4];let l;t[5]!==r?(l=n.jsx("span",{children:r}),t[5]=r,t[6]=l):l=t[6];let c;t[7]!==o||t[8]!==l?(c=n.jsx(M,{children:n.jsx(lt,{trigger:n.jsxs(re,{tooltip:o,children:[a,l]})})}),t[7]=o,t[8]=l,t[9]=c):c=t[9];let m;t[10]!==e?(m=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=m):m=t[11];let u,d;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>i(!0),d=n.jsx(rs,{}),t[12]=u,t[13]=d):(u=t[12],d=t[13]);let f;t[14]!==e?(f=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=f):f=t[15];let x;t[16]!==f?(x=n.jsx("span",{children:f}),t[16]=f,t[17]=x):x=t[17];let b;t[18]!==m||t[19]!==x?(b=n.jsx(M,{children:n.jsxs(re,{tooltip:m,onClick:u,children:[d,x]})}),t[18]=m,t[19]=x,t[20]=b):b=t[20];let g;t[21]!==b||t[22]!==c?(g=n.jsxs(z,{className:"gap-0.5",children:[c,b]}),t[21]=b,t[22]=c,t[23]=g):g=t[23];let p;t[24]!==s?(p=s&&n.jsx(gs,{open:s,onOpenChange:i,mode:"browse"}),t[24]=s,t[25]=p):p=t[25];let h;return t[26]!==g||t[27]!==p?(h=n.jsxs(n.Fragment,{children:[g,p]}),t[26]=g,t[27]=p,t[28]=h):h=t[28],h}function Ge(){const t=_.c(10),e=A();let s;t[0]!==e?(s=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{}),t[2]=i):i=t[2];let o;t[3]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=o):o=t[4];let a;t[5]!==o?(a=n.jsx("span",{children:o}),t[5]=o,t[6]=a):a=t[6];let r;return t[7]!==s||t[8]!==a?(r=n.jsx(z,{className:"gap-0.5",children:n.jsx(M,{children:n.jsx(lt,{trigger:n.jsxs(re,{tooltip:s,children:[i,a]})})})}),t[7]=s,t[8]=a,t[9]=r):r=t[9],r}function bn(){const t=_.c(17),e=Ee(),s=vs(),i=!s;if(e){let c;t[0]!==i?(c=i&&n.jsx(Je,{}),t[0]=i,t[1]=c):c=t[1];let m;t[2]!==s?(m=s?n.jsx(Ge,{}):n.jsx(Ye,{}),t[2]=s,t[3]=m):m=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(M,{children:n.jsx(xn,{})}),t[4]=u):u=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsxs(z,{children:[u,n.jsx(M,{children:n.jsx(De,{})})]}),t[5]=d):d=t[5];let f;return t[6]!==c||t[7]!==m?(f=n.jsxs(Me,{className:"px-2 pb-3 gap-1",children:[c,m,d]}),t[6]=c,t[7]=m,t[8]=f):f=t[8],f}let o;t[9]!==i?(o=i&&n.jsx(Je,{}),t[9]=i,t[10]=o):o=t[10];let a;t[11]!==s?(a=s?n.jsx(Ge,{}):n.jsx(Ye,{}),t[11]=s,t[12]=a):a=t[12];let r;t[13]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(z,{className:"gap-0.5",children:n.jsx(M,{children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(De,{})}),n.jsx(xt,{})]})})}),t[13]=r):r=t[13];let l;return t[14]!==o||t[15]!==a?(l=n.jsxs(Me,{className:"px-2 pb-3 gap-0.5",children:[o,a,r]}),t[14]=o,t[15]=a,t[16]=l):l=t[16],l}function hn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Me,{className:"px-2 pb-3",children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(z,{children:n.jsx(M,{children:n.jsx(De,{})})})}),n.jsx(xt,{})]})}),t[0]=e):e=t[0],e}const gn="settings",jn=["overview","reports","board","files"];function vn(t,e){return!t||!e?!1:!et(e.metadata)}function yn(t,e,s,i){if(!t||!e)return!0;const o=i!==void 0;return zs(o?i:dt(e.metadata),o?1:e.metadata?.sidebarViewsVersion).includes(s)}function Nn(){const t=_.c(16),e=A(),{org:s}=F(),i=Pe(),o=Ie(),{project:a,repo:r}=we(),l=mt(a?.id);let c;t[0]!==a||t[1]!==o?(c=vn(o,a),t[0]=a,t[1]=o,t[2]=c):c=t[2];const m=c;let u;t[3]!==l||t[4]!==a||t[5]!==o?(u=x=>yn(o,a,x,l),t[3]=l,t[4]=a,t[5]=o,t[6]=u):u=t[6];const d=u;let f;if(t[7]!==d||t[8]!==m||t[9]!==i||t[10]!==s||t[11]!==a?.id||t[12]!==r||t[13]!==o||t[14]!==e){const x={overview:m||!d("overview")?null:{key:"overview",label:e("sidebar.navDestinations.home"),icon:n.jsx(cs,{size:16}),isActive:i===$.home||i===$.orgIndex||i===R.root||i===`${R.root}/`,trackAs:"overview",link:o?{to:R.root,params:{org:s.slug,agentId:o}}:{to:$.home,params:{org:s.slug}}},reports:ze($.reports,o)&&!m&&d("reports")?{key:"reports",label:e("sidebar.navDestinations.reports"),icon:n.jsx(rt,{size:16}),isActive:i===$.reports||i===R.reports,trackAs:"reports",link:o?{to:R.reports,params:{org:s.slug,agentId:o}}:{to:$.reports,params:{org:s.slug}}}:null,board:m||!d("board")?null:{key:"board",label:e("sidebar.navDestinations.tasks"),icon:n.jsx(ls,{size:16}),isActive:i===$.tasks||i===R.tasks,trackAs:"board",dataTour:le.tasks,link:{to:o?R.tasks:$.tasks,params:{org:s.slug,agentId:o??void 0,taskKey:void 0},search:b=>{const g=r??a?.id;return g?{...b,repo:g}:b}}},files:ze($.library,o)?{key:"files",label:e("sidebar.navDestinations.library"),icon:n.jsx(Os,{size:16}),isActive:i===$.library,trackAs:"files",link:{to:$.library,params:{org:s.slug}}}:null};f=jn.map(b=>x[b]).filter(Sn),t[7]=d,t[8]=m,t[9]=i,t[10]=s,t[11]=a?.id,t[12]=r,t[13]=o,t[14]=e,t[15]=f}else f=t[15];return f}function Sn(t){return t!==null}function kn(t){const e=_.c(7),{onNavigate:s}=t,i=Nn();let o;if(e[0]!==i||e[1]!==s){let r;e[3]!==s?(r=l=>n.jsx(Ce,{icon:l.icon,label:l.label,dataTour:l.dataTour,isActive:l.isActive,link:l.link,onSelect:()=>{E("nav_destination_clicked",{destination:l.trackAs}),s?.()}},l.key),e[3]=s,e[4]=r):r=e[4],o=i.map(r),e[0]=i,e[1]=s,e[2]=o}else o=e[2];let a;return e[5]!==o?(a=n.jsx(z,{className:"gap-1",children:o}),e[5]=o,e[6]=a):a=e[6],a}function _n(t){const e=_.c(18),{onNavigate:s}=t,i=A(),{org:o}=F(),a=Ie(),r=Be(),l=Pe(),c=$t();let m;e[0]!==c||e[1]!==l?(m=l.startsWith("/$org/settings")||l.startsWith($.projects)&&c==="settings",e[0]=c,e[1]=l,e[2]=m):m=e[2];const u=m;let d;e[3]!==i?(d=i("sidebar.navDestinations.settings"),e[3]=i,e[4]=d):d=e[4];const f=d;let x;e[5]!==o||e[6]!==a?(x=a?void 0:{to:"/$org/settings",params:{org:o.slug}},e[5]=o,e[6]=a,e[7]=x):x=e[7];const b=x;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(it,{size:16}),e[8]=g):g=e[8];let p;e[9]!==r||e[10]!==s||e[11]!==a?(p=()=>{E("nav_destination_clicked",{destination:gn,target:a?"project":"org"}),a&&r(a,{panel:"settings"}),s?.()},e[9]=r,e[10]=s,e[11]=a,e[12]=p):p=e[12];let h;return e[13]!==u||e[14]!==f||e[15]!==b||e[16]!==p?(h=n.jsx(z,{className:"gap-1",children:n.jsx(Ce,{dataTour:le.settings,icon:g,label:f,isActive:u,link:b,onSelect:p})}),e[13]=u,e[14]=f,e[15]=b,e[16]=p,e[17]=h):h=e[17],h}function Pn(t,e){const s=new Set(e);return s.size===0?t:t.filter(i=>s.has(i.connectionId))}function wn(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"):[]}function In(t){const e=_.c(12),{onNavigate:s}=t,i=A(),{project:o}=we(),a=Be(),r=Pe(),l=Bs(),c=Ms(o),m=mt(o?.id);if(!o)return null;let u;if(e[0]!==c.presence||e[1]!==m||e[2]!==o.metadata){const x=et(o.metadata),b=m??dt(o.metadata);u=new Set(Ds(b,Rs(x,c.presence),m!==void 0?1:o.metadata.sidebarViewsVersion)),e[0]=c.presence,e[1]=m,e[2]=o.metadata,e[3]=u}else u=e[3];const d=u;let f;if(e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==s||e[8]!==o||e[9]!==d||e[10]!==i){const x=[];d.has("site-editor")&&x.push({key:"site-editor",label:i("sidebar.projectNav.siteEditor"),icon:n.jsx(ot,{size:16}),panel:"site-editor",isActive:$n,dataTour:le.siteEditor});const b={assets:{label:i("common.mainPanelTabs.assets"),icon:n.jsx(Vs,{size:16})},hosting:{label:i("common.mainPanelTabs.hosting"),icon:n.jsx(us,{size:16})},e2e:{label:i("common.mainPanelTabs.e2e"),icon:n.jsx(Zt,{size:16})},analytics:{label:i("common.mainPanelTabs.analytics"),icon:n.jsx(rt,{size:16})},cdn:{label:i("common.mainPanelTabs.cdn"),icon:n.jsx(ms,{size:16})}};for(const p of Es){if(!d.has(p))continue;const h=b[p];x.push({key:p,label:h.label,icon:h.icon,panel:p,isActive:j=>j===p})}for(const p of Pn(wn(o),(o.connections??[]).map(An)))p.toolName!=="fetch_assets"&&x.push({key:`pinned:${p.connectionId}:${p.toolName}`,label:p.label||p.toolName,icon:p.icon?n.jsx("img",{src:p.icon,alt:"",className:"size-4 rounded-[3px]"}):n.jsx(Fs,{size:16}),panel:Le(p.connectionId,p.toolName),isActive:h=>h===Le(p.connectionId,p.toolName)});d.has("automations")&&x.push({key:"automations",label:i("sidebar.projectNav.automations"),icon:n.jsx(ds,{size:16}),panel:"automations",isActive:Cn,dataTour:le.automations});const g=r.startsWith($.projects);f=n.jsx(z,{className:"gap-1",children:x.map(p=>n.jsx(Ce,{icon:p.icon,label:p.label,dataTour:p.dataTour,isActive:g&&p.isActive(l),onSelect:()=>{E("project_nav_clicked",{surface:p.key}),a(o.id,{panel:p.panel}),s?.()}},p.key))}),e[4]=l,e[5]=r,e[6]=a,e[7]=s,e[8]=o,e[9]=d,e[10]=i,e[11]=f}else f=e[11];return f}function Cn(t){return t==="automations"||Tt(t)!==null}function An(t){return t.connection_id}function $n(t){return!!t&&Ks(t)}const Tn=3;function On(t,e){return t.status==="archived"||t.status==="done"?!1:e&&t.assigneeId===e?!0:Is(t)||Cs(t)}function zn(t,e,s){const i=new Map;for(const a of e){if(!On(a,s))continue;const r=Ps(a,t);for(const l of r){const c=i.get(l.id)??[];c.push({task:a,only:r.length===1}),i.set(l.id,c)}}const o=new Map;for(const[a,r]of i)r.sort((l,c)=>Number(c.only)-Number(l.only)||(c.task.updatedAt??"").localeCompare(l.task.updatedAt??"")),o.set(a,r.slice(0,Tn).map(l=>l.task));return o}function Mn(t){const e=_.c(21),{task:s,orgSlug:i,isLast:o,onNavigate:a}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("span",{"aria-hidden":"true",className:"absolute top-0 left-4 h-1/2 w-3 rounded-bl-lg border-b border-l border-sidebar-border"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=!o&&n.jsx("span",{"aria-hidden":"true",className:"absolute top-1/2 bottom-0 left-4 border-l border-sidebar-border"}),e[1]=o,e[2]=l):l=e[2];let c;e[3]!==i||e[4]!==s?(c=ws(i,s),e[3]=i,e[4]=s,e[5]=c):c=e[5];let m;e[6]!==i||e[7]!==c?(m={org:i,taskKey:c},e[6]=i,e[7]=c,e[8]=m):m=e[8];let u;e[9]!==a||e[10]!==s.status?(u=()=>{E("sidebar_attention_task_clicked",{status:s.status}),a?.()},e[9]=a,e[10]=s.status,e[11]=u):u=e[11];let d;e[12]!==s.title?(d=n.jsx("span",{className:"truncate",children:s.title}),e[12]=s.title,e[13]=d):d=e[13];let f;e[14]!==m||e[15]!==u||e[16]!==d?(f=n.jsx(Mt,{to:"/$org/tasks/{-$taskKey}",params:m,onClick:u,className:"flex h-8 items-center rounded-lg pr-2 pl-9 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:d}),e[14]=m,e[15]=u,e[16]=d,e[17]=f):f=e[17];let x;return e[18]!==l||e[19]!==f?(x=n.jsxs("li",{className:"relative",children:[r,l,f]}),e[18]=l,e[19]=f,e[20]=x):x=e[20],x}function Dn(t){const e=_.c(35),{onNavigate:s}=t,i=A(),o=Ee(),{org:a,locator:r}=F(),l=Ze(),{projects:c}=we(),m=Ie(),u=Be(),{data:d}=ce.useSession();let f;e[0]!==r||e[1]!==l?(f=As(r,l),e[0]=r,e[1]=l,e[2]=f):f=e[2];const x=!o&&!m;let b;e[3]!==f||e[4]!==x?(b={...f,enabled:x},e[3]=f,e[4]=x,e[5]=b):b=e[5];const{data:g}=Ot(b);if(m||c.length===0)return null;let p,h,j,v,y,N;if(e[6]!==o||e[7]!==g?.items||e[8]!==u||e[9]!==s||e[10]!==a||e[11]!==c||e[12]!==m||e[13]!==d?.user?.id||e[14]!==i){const P=zn(_s(c),g?.items??[],d?.user?.id),w=o&&"pt-3";e[21]!==w?(v=O("flex flex-col gap-1",w),e[21]=w,e[22]=v):v=e[22],y=le.projects,e[23]!==o||e[24]!==i?(N=!o&&n.jsx("p",{className:"px-2 pt-5 pb-0.5 text-xs font-medium text-muted-foreground/60",children:i("sidebar.projects.heading")}),e[23]=o,e[24]=i,e[25]=N):N=e[25],p=z,h="gap-1",j=c.map(I=>{const C=P.get(I.id)??[];return n.jsx(Ce,{icon:n.jsx(Ls,{icon:I.icon,name:I.title}),label:I.title,isActive:I.id===m,onSelect:()=>{E("sidebar_project_clicked"),u(I.id,{panel:zt(I.metadata?.ui?.layout)}),s?.()},children:!o&&C.length>0&&n.jsx("ul",{className:"flex flex-col",children:C.map((T,V)=>n.jsx(Mn,{task:T,orgSlug:a.slug,isLast:V===C.length-1,onNavigate:s},T.id))})},I.id)}),e[6]=o,e[7]=g?.items,e[8]=u,e[9]=s,e[10]=a,e[11]=c,e[12]=m,e[13]=d?.user?.id,e[14]=i,e[15]=p,e[16]=h,e[17]=j,e[18]=v,e[19]=y,e[20]=N}else p=e[15],h=e[16],j=e[17],v=e[18],y=e[19],N=e[20];let S;e[26]!==p||e[27]!==h||e[28]!==j?(S=n.jsx(p,{className:h,children:j}),e[26]=p,e[27]=h,e[28]=j,e[29]=S):S=e[29];let k;return e[30]!==v||e[31]!==y||e[32]!==N||e[33]!==S?(k=n.jsxs("div",{className:v,"data-tour":y,children:[N,S]}),e[30]=v,e[31]=y,e[32]=N,e[33]=S,e[34]=k):k=e[34],k}function bt(t){const e=_.c(8),{onNavigate:s}=t,i=A(),o=Ie(),a=qs();if(!o)return null;let r;e[0]!==i?(r=i("sidebar.scope.allProjects"),e[0]=i,e[1]=r):r=e[1];let l;e[2]!==a||e[3]!==s?(l=()=>{a(),s?.()},e[2]=a,e[3]=s,e[4]=l):l=e[4];let c;return e[5]!==r||e[6]!==l?(c=n.jsx(qt,{label:r,onSelect:l}),e[5]=r,e[6]=l,e[7]=c):c=e[7],c}function ht(t){const e=_.c(2),{onNavigate:s}=t;let i;return e[0]!==s?(i=n.jsx(Dt,{children:n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx(kn,{onNavigate:s}),n.jsx(In,{onNavigate:s}),n.jsx(_n,{onNavigate:s}),n.jsx(Dn,{onNavigate:s})]})}),e[0]=s,e[1]=i):i=e[1],i}function Po(){const t=_.c(3),e=Et();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ft,{}),t[0]=s):s=t[0];let i;return t[1]!==e?(i=n.jsx(tt,{header:s,back:e?n.jsx(Kt,{}):n.jsx(bt,{}),body:e?n.jsx(Bt,{}):n.jsx(ht,{}),footer:e?n.jsx(Vt,{}):n.jsx(bn,{})}),t[1]=e,t[2]=i):i=t[2],i}function wo(t){const e=_.c(9),{onClose:s}=t;let i,o,a;e[0]!==s?(i=n.jsx(Lt,{onClose:s}),o=n.jsx(bt,{onNavigate:s}),a=n.jsx(ht,{onNavigate:s}),e[0]=s,e[1]=i,e[2]=o,e[3]=a):(i=e[1],o=e[2],a=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(hn,{}),e[4]=r):r=e[4];let l;return e[5]!==i||e[6]!==o||e[7]!==a?(l=n.jsx(tt,{sheet:!0,header:i,back:o,body:a,footer:r}),e[5]=i,e[6]=o,e[7]=a,e[8]=l):l=e[8],l}export{Po as S,wo as a};
|
|
1
|
+
import{c as _,a0 as Pe,a1 as ze,o as E,b as A,a as ce,I as F,d as Re,a2 as gt,v as jt,R as vt,r as D,j as n,t as Xe,l as O,a3 as re,a4 as yt,a5 as Nt,a6 as St,a7 as kt,a8 as _t,a9 as Pt,aa as z,ab as M,ac as Ze,n as wt,e as It,K as Ct,B as At,ad as Me,ae as $,C as R,af as $t,ag as Le,ah as Tt,m as Ot,ai as zt,L as Mt,E as Dt}from"./index-BodvdIMk.js";import{u as we,a as Ie,b as et}from"./use-project-scope-cOFjIv3F.js";import{u as Rt}from"./thread-route-BPX5b65a.js";import{u as Ee,S as Ce,a as Et,b as Ft,c as tt,d as Vt,e as Bt,f as Kt,g as Lt,h as qt}from"./settings-sidebar-D1CImlJ7.js";import{L as le}from"./anchors-yqDzZN4K.js";import{P as st,a as Fe,b as nt}from"./popover-BaPHFXoA.js";import{D as Ut,a as Qt,b as Ht}from"./drawer-CftCt6Vc.js";import{A as _e}from"./avatar-CAI2JETZ.js";import{a as Wt}from"./Copy01-DoHw-_s5.js";import{n as Jt}from"./Download01-IytcAces.js";import{i as Yt}from"./Printer-kkmv6XzS.js";import{i as Gt}from"./Globe01-BHsBANMN.js";import{n as Xt}from"./LinkExternal01-DLDyK_TN.js";import{g as qe,e as Zt}from"./TrendUp01-fYoe36da.js";import{i as ot}from"./Monitor01-J9g_ep-X.js";import{n as es,a as ts}from"./Sun-DZjMucTf.js";import{a as it}from"./Settings02-DPUnnUpS.js";import{i as ss}from"./Shield01-BcXJFwaP.js";import{t as ns,a as os,i as is,b as as,s as Ve,c as at,d as rs,n as ls,e as rt,f as cs,g as ds,h as ms,j as us}from"./agent-icon-DlT0cyOd.js";import{b as fs}from"./Users03-pPPKVW_h.js";import{u as ps}from"./use-deployment-admin-CRRFLUPy.js";import{u as xs}from"./use-is-desktop-app-BNujXJc_.js";import{i as bs,a as Ue,D as hs}from"./download-app-dialog-inqOoiFR.js";import{I as lt}from"./invite-member-dialog-l7jaUM00.js";import{A as gs}from"./add-connection-dialog-ColILHSg.js";import{u as js}from"./use-deco-credits-CQYk77NF.js";import{a as vs}from"./use-organization-settings-C7uzGCkO.js";import{S as ys}from"./scroll-area-DrpmDXmv.js";import{u as Ns}from"./useInfiniteQuery-B3TKIUIz.js";import{n as Ss}from"./decopilot-sse-pool-C4pTRblZ.js";import{t as ct,S as ks,b as _s,p as Ps,a as ws,i as Is,c as Cs,d as As}from"./task-route-D8DTrzfK.js";import{g as $s}from"./get-initials-D-f_fDFw.js";import{a as Ts}from"./format-time-BtXRrtv4.js";import{i as Os}from"./Share07-ezwRb3nU.js";import{e as zs,r as dt,u as Ms,s as Ds,p as Rs,P as Es}from"./use-project-native-view-presence-DqW-vLSC.js";import{u as mt}from"./optimistic-project-sidebar-views-Crt809gH.js";import{u as Be}from"./use-navigate-to-agent-DbrSvmvC.js";import{c as Fs}from"./SwitchHorizontal01-Dne29Upz.js";import{a as Vs}from"./Image01-PUenBySa.js";import{u as Bs}from"./use-panel-navigate-BgqqPVEC.js";import{i as Ks}from"./source-system-tabs-CnEGUb4r.js";import{P as Ls}from"./project-icon-D14m61tO.js";function qs(){const t=_.c(4),{setScope:e}=we(),s=Rt(),i=Pe();let o;return t[0]!==i||t[1]!==s||t[2]!==e?(o=()=>{const a=s!==void 0?"route_resolves_scope":ze(i,null)?null:"route_needs_scope";E("scope_cleared",{relocated:a!==null,reason:a}),e(null)},t[0]=i,t[1]=s,t[2]=e,t[3]=o):o=t[3],o}function ae(t){const e=_.c(26),{item:s,onClose:i}=t;let o;e[0]!==s.className?(o=O("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",s.className),e[0]=s.className,e[1]=o):o=e[1];const a=o;if(s.href){const u=s.external?"_blank":void 0,d=s.external?"noopener noreferrer":void 0;let f;e[2]!==s.icon?(f=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[2]=s.icon,e[3]=f):f=e[3];let x;e[4]!==s.label?(x=n.jsx("span",{className:"flex-1",children:s.label}),e[4]=s.label,e[5]=x):x=e[5];let b;return e[6]!==a||e[7]!==s.href||e[8]!==i||e[9]!==u||e[10]!==d||e[11]!==f||e[12]!==x?(b=n.jsxs("a",{href:s.href,target:u,rel:d,className:a,onClick:i,children:[f,x]}),e[6]=a,e[7]=s.href,e[8]=i,e[9]=u,e[10]=d,e[11]=f,e[12]=x,e[13]=b):b=e[13],b}let r;e[14]!==s||e[15]!==i?(r=()=>{s.onClick?.(),i()},e[14]=s,e[15]=i,e[16]=r):r=e[16];let l;e[17]!==s.icon?(l=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[17]=s.icon,e[18]=l):l=e[18];let c;e[19]!==s.label?(c=n.jsx("span",{className:"flex-1",children:s.label}),e[19]=s.label,e[20]=c):c=e[20];let m;return e[21]!==a||e[22]!==r||e[23]!==l||e[24]!==c?(m=n.jsxs("button",{type:"button",onClick:r,className:a,children:[l,c]}),e[21]=a,e[22]=r,e[23]=l,e[24]=c,e[25]=m):m=e[25],m}function Us(){const t=_.c(4),e=A();let s;t[0]!==e?(s=e("common.accountPopover.impersonating"),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==s?(i=n.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-[10px] font-medium text-warning",children:s}),t[2]=s,t[3]=i):i=t[3],i}function Qe(t){const e=_.c(38),{user:s,userImage:i,isImpersonating:o,isMobile:a}=t,r=A(),l=a?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==l?(c=O("flex items-center gap-3 px-4",l),e[0]=l,e[1]=c):c=e[1];const m=s?.name??"U";let u;e[2]!==m||e[3]!==i?(u=n.jsx(_e,{url:i,fallback:m,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=m,e[3]=i,e[4]=u):u=e[4];let d;e[5]!==r||e[6]!==s?.name?(d=s?.name??r("common.accountPopover.defaultUserName"),e[5]=r,e[6]=s?.name,e[7]=d):d=e[7];let f;e[8]!==d?(f=n.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[8]=d,e[9]=f):f=e[9];let x;e[10]!==o?(x=o&&n.jsx(Us,{}),e[10]=o,e[11]=x):x=e[11];let b;e[12]!==f||e[13]!==x?(b=n.jsxs("div",{className:"flex items-center gap-2",children:[f,x]}),e[12]=f,e[13]=x,e[14]=b):b=e[14];const g=s?.email;let p;e[15]!==g?(p=n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:g}),e[15]=g,e[16]=p):p=e[16];let h;e[17]!==p||e[18]!==b?(h=n.jsxs("div",{className:"flex-1 min-w-0",children:[b,p]}),e[17]=p,e[18]=b,e[19]=h):h=e[19];let j;e[20]!==r||e[21]!==s?(j=()=>{s?.id&&navigator.clipboard.writeText(s.id).then(()=>{Xe.success(r("common.accountPopover.userIdCopied"))})},e[20]=r,e[21]=s,e[22]=j):j=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Wt,{size:14}),e[23]=v):v=e[23];let y;e[24]!==j?(y=n.jsx(St,{asChild:!0,children:n.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:v})}),e[24]=j,e[25]=y):y=e[25];let N;e[26]!==r?(N=r("common.accountPopover.copyUserId"),e[26]=r,e[27]=N):N=e[27];let S;e[28]!==N?(S=n.jsx(kt,{side:"right",children:n.jsx("p",{className:"text-xs",children:N})}),e[28]=N,e[29]=S):S=e[29];let k;e[30]!==y||e[31]!==S?(k=n.jsx(_t,{delayDuration:300,children:n.jsxs(Pt,{children:[y,S]})}),e[30]=y,e[31]=S,e[32]=k):k=e[32];let P;return e[33]!==h||e[34]!==k||e[35]!==c||e[36]!==u?(P=n.jsxs("div",{className:c,children:[u,h,k]}),e[33]=h,e[34]=k,e[35]=c,e[36]=u,e[37]=P):P=e[37],P}function He(t){const e=_.c(35),{themeOptions:s,preferences:i,setPreferences:o,isMobile:a}=t,r=A(),l=a?"size-8":"size-7",c=a?"px-3 py-3":"px-2 py-1.5";let m;e[0]!==c?(m=O("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=m):m=e[1];let u;if(e[2]!==l||e[3]!==i.theme||e[4]!==o||e[5]!==s){let N;e[7]!==l||e[8]!==i.theme||e[9]!==o?(N=S=>{const{value:k,icon:P,label:w}=S;return n.jsx("button",{type:"button","aria-label":w,onClick:()=>o(I=>({...I,theme:k})),className:O(l,"rounded-md flex items-center justify-center transition-colors",i.theme===k?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:P},k)},e[7]=l,e[8]=i.theme,e[9]=o,e[10]=N):N=e[10],u=s.map(N),e[2]=l,e[3]=i.theme,e[4]=o,e[5]=s,e[6]=u}else u=e[6];let d;e[11]!==u?(d=n.jsx("div",{className:"flex items-center gap-0.5",children:u}),e[11]=u,e[12]=d):d=e[12];let f;e[13]!==i.enableSounds||e[14]!==r?(f=i.enableSounds?r("common.accountPopover.disableSounds"):r("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=r,e[15]=f):f=e[15];let x;e[16]!==o?(x=()=>o(Qs),e[16]=o,e[17]=x):x=e[17];const b=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let g;e[18]!==l||e[19]!==b?(g=O(l,"rounded-md flex items-center justify-center transition-colors",b),e[18]=l,e[19]=b,e[20]=g):g=e[20];let p;e[21]!==i.enableSounds?(p=i.enableSounds?n.jsx(os,{size:14}):n.jsx(is,{size:14}),e[21]=i.enableSounds,e[22]=p):p=e[22];let h;e[23]!==f||e[24]!==x||e[25]!==g||e[26]!==p?(h=n.jsx("button",{type:"button","aria-label":f,onClick:x,className:g,children:p}),e[23]=f,e[24]=x,e[25]=g,e[26]=p,e[27]=h):h=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.364.1"]}),e[28]=j):j=e[28];let v;e[29]!==h?(v=n.jsxs("div",{className:"flex items-center gap-2",children:[h,j]}),e[29]=h,e[30]=v):v=e[30];let y;return e[31]!==v||e[32]!==m||e[33]!==d?(y=n.jsxs("div",{className:m,children:[d,v]}),e[31]=v,e[32]=m,e[33]=d,e[34]=y):y=e[34],y}function Qs(t){return{...t,enableSounds:!t.enableSounds}}function We(t){const e=_.c(54),{user:s,userImage:i,menuItems:o,signOutItem:a,stopImpersonatingItem:r,isImpersonating:l,themeOptions:c,preferences:m,setPreferences:u,close:d,isMobile:f}=t;if(f){let y;e[0]!==l||e[1]!==s||e[2]!==i?(y=n.jsx(Qe,{user:s,userImage:i,isImpersonating:l,isMobile:!0}),e[0]=l,e[1]=s,e[2]=i,e[3]=y):y=e[3];let N;if(e[4]!==d||e[5]!==o){let C;e[7]!==d?(C=T=>n.jsx(ae,{item:T,onClose:d},T.key),e[7]=d,e[8]=C):C=e[8],N=o.map(C),e[4]=d,e[5]=o,e[6]=N}else N=e[6];let S;e[9]!==d||e[10]!==r?(S=r&&n.jsx(ae,{item:r,onClose:d}),e[9]=d,e[10]=r,e[11]=S):S=e[11];let k;e[12]!==d||e[13]!==a?(k=n.jsx(ae,{item:a,onClose:d}),e[12]=d,e[13]=a,e[14]=k):k=e[14];let P;e[15]!==N||e[16]!==S||e[17]!==k?(P=n.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:n.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[N,S,k]})}),e[15]=N,e[16]=S,e[17]=k,e[18]=P):P=e[18];let w;e[19]!==m||e[20]!==u||e[21]!==c?(w=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!0}),e[19]=m,e[20]=u,e[21]=c,e[22]=w):w=e[22];let I;return e[23]!==y||e[24]!==P||e[25]!==w?(I=n.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,P,w]}),e[23]=y,e[24]=P,e[25]=w,e[26]=I):I=e[26],I}let x;e[27]!==l||e[28]!==s||e[29]!==i?(x=n.jsx(Qe,{user:s,userImage:i,isImpersonating:l,isMobile:!1}),e[27]=l,e[28]=s,e[29]=i,e[30]=x):x=e[30];let b;if(e[31]!==d||e[32]!==o){let y;e[34]!==d?(y=N=>n.jsx(ae,{item:N,onClose:d},N.key),e[34]=d,e[35]=y):y=e[35],b=o.map(y),e[31]=d,e[32]=o,e[33]=b}else b=e[33];let g;e[36]!==d||e[37]!==r?(g=r&&n.jsx(ae,{item:r,onClose:d}),e[36]=d,e[37]=r,e[38]=g):g=e[38];let p;e[39]!==d||e[40]!==a?(p=n.jsx(ae,{item:a,onClose:d}),e[39]=d,e[40]=a,e[41]=p):p=e[41];let h;e[42]!==b||e[43]!==g||e[44]!==p?(h=n.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[b,g,p]}),e[42]=b,e[43]=g,e[44]=p,e[45]=h):h=e[45];let j;e[46]!==m||e[47]!==u||e[48]!==c?(j=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!1}),e[46]=m,e[47]=u,e[48]=c,e[49]=j):j=e[49];let v;return e[50]!==x||e[51]!==h||e[52]!==j?(v=n.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:n.jsxs("div",{className:"flex flex-col",children:[x,h,j]})}),e[50]=x,e[51]=h,e[52]=j,e[53]=v):v=e[53],v}function De(){const t=_.c(107),e=A(),{data:s}=ce.useSession(),{org:i}=F(),o=Re();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/shell/$org",shouldThrow:!1},t[0]=a):a=t[0];const l=gt(a)?.params.org,[c,m]=jt(),u=vt(),{isAdmin:d}=ps(),f=xs(),[x,b]=D.useState(!1),[g,p]=D.useState(!1),h=s?.user,j=h?.image,v=!!s?.session?.impersonatedBy;let y;t[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>b(!1),t[1]=y):y=t[1];const N=y;let S;t[2]!==e?(S=e("common.accountPopover.preferences"),t[2]=e,t[3]=S):S=t[3];let k;t[4]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(it,{size:16}),t[4]=k):k=t[4];let P;t[5]!==o||t[6]!==l?(P=()=>{o({to:"/$org/settings/profile",params:{org:l??""}})},t[5]=o,t[6]=l,t[7]=P):P=t[7];let w;t[8]!==S||t[9]!==P?(w={key:"preferences",label:S,icon:k,onClick:P},t[8]=S,t[9]=P,t[10]=w):w=t[10];let I;t[11]!==i||t[12]!==o?(I=i?[{key:"connect-clients",label:"Connect to Agents",icon:n.jsx(Xt,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=o,t[13]=I):I=t[13];let C;t[14]!==f||t[15]!==e?(C=(bs()||Ue())&&!f?[{key:"install-desktop-app",label:Ue()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:n.jsx(Jt,{size:16}),onClick:()=>p(!0)}]:[],t[14]=f,t[15]=e,t[16]=C):C=t[16];let T;t[17]!==e?(T=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=T):T=t[18];let V;t[19]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(Yt,{size:16}),t[19]=V):V=t[19];let B;t[20]!==T?(B={key:"terms",label:T,icon:V,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=T,t[21]=B):B=t[21];let K;t[22]!==e?(K=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=K):K=t[23];let de;t[24]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(ss,{size:16}),t[24]=de):de=t[24];let L;t[25]!==K?(L={key:"privacy",label:K,icon:de,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=K,t[26]=L):L=t[26];let q;t[27]!==e?(q=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=q):q=t[28];let me;t[29]===Symbol.for("react.memo_cache_sentinel")?(me=n.jsx(yt,{className:"w-4 h-4"}),t[29]=me):me=t[29];let U;t[30]!==q?(U={key:"github",label:q,icon:me,href:"https://github.com/decocms/studio",external:!0},t[30]=q,t[31]=U):U=t[31];let Q;t[32]!==e?(Q=e("common.accountPopover.community"),t[32]=e,t[33]=Q):Q=t[33];let ue;t[34]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(fs,{size:16}),t[34]=ue):ue=t[34];let H;t[35]!==Q?(H={key:"community",label:Q,icon:ue,href:"https://decocms.com/discord",external:!0},t[35]=Q,t[36]=H):H=t[36];let W;t[37]!==e?(W=e("common.accountPopover.homepage"),t[37]=e,t[38]=W):W=t[38];let fe;t[39]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(Gt,{size:16}),t[39]=fe):fe=t[39];let J;t[40]!==W?(J={key:"homepage",label:W,icon:fe,href:"https://decocms.com",external:!0},t[40]=W,t[41]=J):J=t[41];let Y;t[42]!==d||t[43]!==o||t[44]!==e?(Y=d?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:n.jsx(ns,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[42]=d,t[43]=o,t[44]=e,t[45]=Y):Y=t[45];let pe;t[46]!==B||t[47]!==L||t[48]!==U||t[49]!==H||t[50]!==J||t[51]!==Y||t[52]!==w||t[53]!==I||t[54]!==C?(pe=[w,...I,...C,B,L,U,H,J,...Y],t[46]=B,t[47]=L,t[48]=U,t[49]=H,t[50]=J,t[51]=Y,t[52]=w,t[53]=I,t[54]=C,t[55]=pe):pe=t[55];const Ae=pe;let G;t[56]!==e?(G=e("common.accountPopover.signOut"),t[56]=e,t[57]=G):G=t[57];let xe;t[58]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx(qe,{size:16}),t[58]=xe):xe=t[58];let be;t[59]!==G?(be={key:"logout",label:G,icon:xe,onClick:Ws},t[59]=G,t[60]=be):be=t[60];const $e=be;let he;t[61]!==v||t[62]!==e?(he=v?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:n.jsx(qe,{size:16}),onClick:async()=>{const{error:Ke}=await ce.admin.stopImpersonating();if(Ke){Xe.error(Ke.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=v,t[62]=e,t[63]=he):he=t[63];const Te=he;let ge;t[64]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(es,{size:14}),t[64]=ge):ge=t[64];let X;t[65]!==e?(X=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=X):X=t[66];let Z;t[67]!==X?(Z={value:"light",icon:ge,label:X},t[67]=X,t[68]=Z):Z=t[68];let je;t[69]===Symbol.for("react.memo_cache_sentinel")?(je=n.jsx(ts,{size:14}),t[69]=je):je=t[69];let ee;t[70]!==e?(ee=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=ee):ee=t[71];let te;t[72]!==ee?(te={value:"dark",icon:je,label:ee},t[72]=ee,t[73]=te):te=t[73];let ve;t[74]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(ot,{size:14}),t[74]=ve):ve=t[74];let se;t[75]!==e?(se=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=se):se=t[76];let ne;t[77]!==se?(ne={value:"system",icon:ve,label:se},t[77]=se,t[78]=ne):ne=t[78];let ye;t[79]!==Z||t[80]!==te||t[81]!==ne?(ye=[Z,te,ne],t[79]=Z,t[80]=te,t[81]=ne,t[82]=ye):ye=t[82];const Oe=ye;let Ne;t[83]!==v||t[84]!==u||t[85]!==Ae||t[86]!==c||t[87]!==m||t[88]!==$e||t[89]!==Te||t[90]!==Oe||t[91]!==h||t[92]!==j?(Ne={user:h,userImage:j,menuItems:Ae,signOutItem:$e,stopImpersonatingItem:Te,isImpersonating:v,themeOptions:Oe,preferences:c,setPreferences:m,close:N,isMobile:u},t[83]=v,t[84]=u,t[85]=Ae,t[86]=c,t[87]=m,t[88]=$e,t[89]=Te,t[90]=Oe,t[91]=h,t[92]=j,t[93]=Ne):Ne=t[93];const Se=Ne;let oe;t[94]!==v||t[95]!==u||t[96]!==x||t[97]!==Se||t[98]!==e||t[99]!==h?.name||t[100]!==j?(oe=u?n.jsxs(Ut,{open:x,onOpenChange:b,direction:"bottom",children:[n.jsxs("button",{type:"button",onClick:()=>b(!0),className:O("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",v&&"border-2 border-dashed border-warning"),children:[n.jsx(_e,{url:j,fallback:h?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:h?.name??e("common.accountPopover.defaultAccountLabel")})]}),n.jsxs(Qt,{className:"h-[80dvh] p-0",children:[n.jsx(Ht,{className:"sr-only",children:e("common.accountPopover.account")}),n.jsx(We,{...Se})]})]}):n.jsxs(st,{open:x,onOpenChange:b,children:[n.jsx(Fe,{asChild:!0,children:n.jsxs(re,{"data-tour":le.account,tooltip:h?.name??e("common.accountPopover.defaultAccountLabel"),className:O("rounded-md",v&&"border-2 border-dashed border-warning"),children:[n.jsx(_e,{url:j,fallback:h?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:h?.name??e("common.accountPopover.defaultAccountLabel")})]})}),n.jsx(nt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Hs,children:n.jsx(We,{...Se})})]}),t[94]=v,t[95]=u,t[96]=x,t[97]=Se,t[98]=e,t[99]=h?.name,t[100]=j,t[101]=oe):oe=t[101];let ie;t[102]!==g?(ie=n.jsx(hs,{open:g,onOpenChange:p}),t[102]=g,t[103]=ie):ie=t[103];let ke;return t[104]!==oe||t[105]!==ie?(ke=n.jsxs(n.Fragment,{children:[oe,ie]}),t[104]=oe,t[105]=ie,t[106]=ke):ke=t[106],ke}function Hs(t){return t.preventDefault()}function Ws(){E("signed_out",{source:"account_popover"}),Nt(),ce.signOut()}class Js extends D.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?null:this.props.children}}function Ys(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Gs(){const t=_.c(17),e=Re(),{org:s}=F(),{hasDecoKey:i,balanceDollars:o}=js();if(!i)return null;let a;t[0]!==o?(a=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=a):a=t[1];let r;t[2]!==o?(r=O(o!=null&&Ys(o)),t[2]=o,t[3]=r):r=t[3];let l;t[4]!==e||t[5]!==s.slug?(l=()=>e({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[4]=e,t[5]=s.slug,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(as,{}),t[7]=c):c=t[7];let m;t[8]!==o?(m=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=m):m=t[9];let u;t[10]!==m?(u=n.jsx("span",{children:m}),t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==l||t[15]!==u?(d=n.jsx(z,{children:n.jsx(M,{children:n.jsxs(re,{tooltip:a,className:r,onClick:l,children:[c,u]})})}),t[12]=a,t[13]=r,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function Je(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Js,{children:n.jsx(D.Suspense,{fallback:null,children:n.jsx(Gs,{})})}),t[0]=e):e=t[0],e}const Xs=6e4;function Zs(t,e){return t.call("NOTIFICATION_LIST",e?{cursor:e}:{})}function en(t,e){if(!t)return t;const s=e?new Set(e):null;let i=0;const o=t.pages.map(r=>{const l=r.notifications.filter(c=>s&&!s.has(c.id)?!0:(i++,!1));return{...r,notifications:l}}),a=s?Math.max(0,(t.pages[0]?.unreadCount??0)-i):0;return{...t,pages:o.map(r=>({...r,unreadCount:a}))}}function tn(t,e){const s=_.c(4),{data:i}=ce.useSession(),o=i?.user?.id;let a;s[0]!==e||s[1]!==t||s[2]!==o?(a=r=>!t||!o?on:Ss.subscribe(t,c=>{try{if(JSON.parse(c.data).subject!==o)return}catch{return}e(),r()},e),s[0]=e,s[1]=t,s[2]=o,s[3]=a):a=s[3],D.useSyncExternalStore(a,nn,sn)}function sn(){return 0}function nn(){return 0}function on(){}function ut(){const t=_.c(37),{locator:e,org:s}=F(),i=Ze(),o=wt();let a;t[0]!==e?(a=Ct.notifications(e),t[0]=e,t[1]=a):a=t[1];const r=a;let l;t[2]!==i?(l=P=>{const{pageParam:w}=P;return Zs(i,w)},t[2]=i,t[3]=l):l=t[3];let c;t[4]!==r||t[5]!==l?(c={queryKey:r,queryFn:l,initialPageParam:void 0,getNextPageParam:ln,refetchInterval:Xs},t[4]=r,t[5]=l,t[6]=c):c=t[6];const m=Ns(c);let u;t[7]!==o||t[8]!==r?(u=()=>o.invalidateQueries({queryKey:r,refetchType:"active"}),t[7]=o,t[8]=r,t[9]=u):u=t[9],tn(s.slug,u);let d;t[10]!==i?(d=P=>i.call("NOTIFICATION_MARK_READ",P?{ids:P}:{}),t[10]=i,t[11]=d):d=t[11];let f,x;t[12]!==o||t[13]!==r?(f=async P=>{await o.cancelQueries({queryKey:r}),o.setQueryData(r,w=>en(w,P))},x=()=>o.invalidateQueries({queryKey:r}),t[12]=o,t[13]=r,t[14]=f,t[15]=x):(f=t[14],x=t[15]);let b;t[16]!==d||t[17]!==f||t[18]!==x?(b={mutationFn:d,onMutate:f,onSettled:x},t[16]=d,t[17]=f,t[18]=x,t[19]=b):b=t[19];const g=It(b);let p;t[20]!==m.data?.pages?(p=m.data?.pages??[],t[20]=m.data?.pages,t[21]=p):p=t[21];const h=p;let j;t[22]!==h?(j=h.flatMap(an),t[22]=h,t[23]=j):j=t[23];const v=h[0]?.unreadCount??0;let y;t[24]!==m?(y=()=>{m.hasNextPage&&!m.isFetchingNextPage&&m.fetchNextPage()},t[24]=m,t[25]=y):y=t[25];let N,S;t[26]!==g?(N=()=>g.mutate(null),S=P=>g.mutate([P]),t[26]=g,t[27]=N,t[28]=S):(N=t[27],S=t[28]);let k;return t[29]!==m.hasNextPage||t[30]!==m.isFetchingNextPage||t[31]!==v||t[32]!==y||t[33]!==N||t[34]!==S||t[35]!==j?(k={updates:j,redDotCount:v,hasMore:m.hasNextPage,isFetchingMore:m.isFetchingNextPage,fetchMore:y,markAllRead:N,markRead:S},t[29]=m.hasNextPage,t[30]=m.isFetchingNextPage,t[31]=v,t[32]=y,t[33]=N,t[34]=S,t[35]=j,t[36]=k):k=t[36],k}function an(t){return t.notifications.map(rn)}function rn(t){return{id:t.id,taskBoardItemId:t.taskBoardItemId,taskTitle:t.taskTitle,taskKeySeq:t.taskKeySeq,action:t.type,actorName:t.actorName,actorImage:t.actorImage,occurredAt:t.createdAt}}function ln(t){return t.nextCursor??void 0}function cn(t){switch(t){case"mentioned":case"review_requested":return"font-medium text-foreground";case"merge_failed":case"review_changes_requested":return"font-medium text-destructive";case"review_approved":return"font-medium text-success";default:return""}}function dn(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");default:{const s=t.action;return String(s)}}}function mn(t){const e=_.c(36),{update:s,orgSlug:i,onSelect:o}=t,a=A();let r;e[0]!==i||e[1]!==s.taskKeySeq?(r=ct(i,s.taskKeySeq),e[0]=i,e[1]=s.taskKeySeq,e[2]=r):r=e[2];const l=r,c=!s.actorName;let m;e[3]!==c||e[4]!==s.actorImage||e[5]!==s.actorName?(m=n.jsx("span",{className:"mt-0.5 shrink-0",children:c?n.jsx(ks,{size:24}):n.jsx(_e,{url:s.actorImage??void 0,fallback:$s(s.actorName??void 0),shape:"circle",size:"xs"})}),e[3]=c,e[4]=s.actorImage,e[5]=s.actorName,e[6]=m):m=e[6];let u;e[7]!==s.taskTitle?(u=n.jsx("p",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:s.taskTitle}),e[7]=s.taskTitle,e[8]=u):u=e[8];let d;e[9]!==s.occurredAt?(d=Ts(new Date(s.occurredAt)),e[9]=s.occurredAt,e[10]=d):d=e[10];let f;e[11]!==d?(f=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground/70",children:d}),e[11]=d,e[12]=f):f=e[12];let x;e[13]!==u||e[14]!==f?(x=n.jsxs("div",{className:"flex items-baseline gap-2",children:[u,f]}),e[13]=u,e[14]=f,e[15]=x):x=e[15];let b;e[16]!==l?(b=l&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"font-medium",children:l})," · "]}),e[16]=l,e[17]=b):b=e[17];let g;e[18]!==s.action?(g=O(cn(s.action)),e[18]=s.action,e[19]=g):g=e[19];let p;e[20]!==a||e[21]!==s?(p=dn(s,a),e[20]=a,e[21]=s,e[22]=p):p=e[22];let h;e[23]!==g||e[24]!==p?(h=n.jsx("span",{className:g,children:p}),e[23]=g,e[24]=p,e[25]=h):h=e[25];let j;e[26]!==h||e[27]!==b?(j=n.jsxs("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:[b,h]}),e[26]=h,e[27]=b,e[28]=j):j=e[28];let v;e[29]!==j||e[30]!==x?(v=n.jsxs("div",{className:"min-w-0 flex-1",children:[x,j]}),e[29]=j,e[30]=x,e[31]=v):v=e[31];let y;return e[32]!==o||e[33]!==v||e[34]!==m?(y=n.jsxs("button",{type:"button",onClick:o,className:"flex w-full items-start gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-muted/25",children:[m,v]}),e[32]=o,e[33]=v,e[34]=m,e[35]=y):y=e[35],y}function un(t){const e=_.c(2),{onReach:s}=t;let i;return e[0]!==s?(i=n.jsx("div",{className:"h-8 shrink-0",ref:o=>{if(!o)return;const a=new IntersectionObserver(r=>{r.some(fn)&&s()});return a.observe(o),()=>a.disconnect()}}),e[0]=s,e[1]=i):i=e[1],i}function fn(t){return t.isIntersecting}function pn(t){const e=_.c(23),{onClose:s}=t,i=A(),o=Re(),{org:a}=F(),{updates:r,markAllRead:l,markRead:c,hasMore:m,fetchMore:u}=ut();let d;e[0]!==i?(d=i("sidebar.inbox.title"),e[0]=i,e[1]=d):d=e[1];let f;e[2]!==d?(f=n.jsx("h3",{className:"text-sm font-medium",children:d}),e[2]=d,e[3]=f):f=e[3];let x;e[4]!==l||e[5]!==i||e[6]!==r.length?(x=r.length>0&&n.jsx(At,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs text-muted-foreground",onClick:l,children:i("sidebar.inbox.markAllRead")}),e[4]=l,e[5]=i,e[6]=r.length,e[7]=x):x=e[7];let b;e[8]!==f||e[9]!==x?(b=n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[f,x]}),e[8]=f,e[9]=x,e[10]=b):b=e[10];let g;e[11]!==u||e[12]!==m||e[13]!==c||e[14]!==o||e[15]!==s||e[16]!==a||e[17]!==i||e[18]!==r?(g=r.length===0?n.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[n.jsx(Ve,{size:24,className:"text-muted-foreground/50"}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:i("sidebar.inbox.emptyTitle")}),n.jsx("p",{className:"text-xs text-muted-foreground",children:i("sidebar.inbox.emptyBody")})]}):n.jsxs(ys,{className:"min-h-0 flex-1",children:[r.map(h=>{const j=ct(a.slug,h.taskKeySeq);return n.jsx(mn,{update:h,orgSlug:a.slug,onSelect:()=>{c(h.id),s(),j&&o({to:"/$org/tasks/{-$taskKey}",params:{org:a.slug,taskKey:j}})}},h.id)}),m&&n.jsx(un,{onReach:u})]}),e[11]=u,e[12]=m,e[13]=c,e[14]=o,e[15]=s,e[16]=a,e[17]=i,e[18]=r,e[19]=g):g=e[19];let p;return e[20]!==b||e[21]!==g?(p=n.jsxs(n.Fragment,{children:[b,g]}),e[20]=b,e[21]=g,e[22]=p):p=e[22],p}function ft(){const t=_.c(1),{redDotCount:e}=ut();if(e===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function pt(t){const e=_.c(10),{open:s,onOpenChange:i,children:o}=t;let a;e[0]!==i||e[1]!==s?(a=s&&n.jsx(pn,{onClose:()=>i(!1)}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let r;e[3]!==a?(r=n.jsx(nt,{side:"right",align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(400px,calc(100vw-2rem))] flex-col p-0",children:a}),e[3]=a,e[4]=r):r=e[4];let l;return e[5]!==o||e[6]!==i||e[7]!==s||e[8]!==r?(l=n.jsxs(st,{open:s,onOpenChange:i,children:[o,r]}),e[5]=o,e[6]=i,e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function xt(){const t=_.c(9),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.inbox.title"),t[0]=e,t[1]=o):o=t[1];let a,r;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ve,{size:15}),r=n.jsx(ft,{}),t[2]=a,t[3]=r):(a=t[2],r=t[3]);let l;t[4]!==o?(l=n.jsx(Fe,{asChild:!0,children:n.jsxs("button",{type:"button","aria-label":o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[a,r]})}),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==s||t[7]!==l?(c=n.jsx(pt,{open:s,onOpenChange:i,children:l}),t[6]=s,t[7]=l,t[8]=c):c=t[8],c}function xn(){const t=_.c(15),e=A(),[s,i]=D.useState(!1),o=Ee();let a;t[0]!==o||t[1]!==e?(a=o?e("sidebar.inbox.title"):void 0,t[0]=o,t[1]=e,t[2]=a):a=t[2];let r,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ve,{}),l=n.jsx(ft,{}),t[3]=r,t[4]=l):(r=t[3],l=t[4]);let c;t[5]!==e?(c=e("sidebar.inbox.title"),t[5]=e,t[6]=c):c=t[6];let m;t[7]!==c?(m=n.jsx("span",{className:"truncate",children:c}),t[7]=c,t[8]=m):m=t[8];let u;t[9]!==a||t[10]!==m?(u=n.jsx(Fe,{asChild:!0,children:n.jsxs(re,{tooltip:a,className:"relative",children:[r,l,m]})}),t[9]=a,t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==s||t[13]!==u?(d=n.jsx(pt,{open:s,onOpenChange:i,children:u}),t[12]=s,t[13]=u,t[14]=d):d=t[14],d}function Ye(){const t=_.c(29),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=o):o=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(at,{}),t[2]=a):a=t[2];let r;t[3]!==e?(r=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=r):r=t[4];let l;t[5]!==r?(l=n.jsx("span",{children:r}),t[5]=r,t[6]=l):l=t[6];let c;t[7]!==o||t[8]!==l?(c=n.jsx(M,{children:n.jsx(lt,{trigger:n.jsxs(re,{tooltip:o,children:[a,l]})})}),t[7]=o,t[8]=l,t[9]=c):c=t[9];let m;t[10]!==e?(m=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=m):m=t[11];let u,d;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>i(!0),d=n.jsx(rs,{}),t[12]=u,t[13]=d):(u=t[12],d=t[13]);let f;t[14]!==e?(f=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=f):f=t[15];let x;t[16]!==f?(x=n.jsx("span",{children:f}),t[16]=f,t[17]=x):x=t[17];let b;t[18]!==m||t[19]!==x?(b=n.jsx(M,{children:n.jsxs(re,{tooltip:m,onClick:u,children:[d,x]})}),t[18]=m,t[19]=x,t[20]=b):b=t[20];let g;t[21]!==b||t[22]!==c?(g=n.jsxs(z,{className:"gap-0.5",children:[c,b]}),t[21]=b,t[22]=c,t[23]=g):g=t[23];let p;t[24]!==s?(p=s&&n.jsx(gs,{open:s,onOpenChange:i,mode:"browse"}),t[24]=s,t[25]=p):p=t[25];let h;return t[26]!==g||t[27]!==p?(h=n.jsxs(n.Fragment,{children:[g,p]}),t[26]=g,t[27]=p,t[28]=h):h=t[28],h}function Ge(){const t=_.c(10),e=A();let s;t[0]!==e?(s=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{}),t[2]=i):i=t[2];let o;t[3]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=o):o=t[4];let a;t[5]!==o?(a=n.jsx("span",{children:o}),t[5]=o,t[6]=a):a=t[6];let r;return t[7]!==s||t[8]!==a?(r=n.jsx(z,{className:"gap-0.5",children:n.jsx(M,{children:n.jsx(lt,{trigger:n.jsxs(re,{tooltip:s,children:[i,a]})})})}),t[7]=s,t[8]=a,t[9]=r):r=t[9],r}function bn(){const t=_.c(17),e=Ee(),s=vs(),i=!s;if(e){let c;t[0]!==i?(c=i&&n.jsx(Je,{}),t[0]=i,t[1]=c):c=t[1];let m;t[2]!==s?(m=s?n.jsx(Ge,{}):n.jsx(Ye,{}),t[2]=s,t[3]=m):m=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(M,{children:n.jsx(xn,{})}),t[4]=u):u=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsxs(z,{children:[u,n.jsx(M,{children:n.jsx(De,{})})]}),t[5]=d):d=t[5];let f;return t[6]!==c||t[7]!==m?(f=n.jsxs(Me,{className:"px-2 pb-3 gap-1",children:[c,m,d]}),t[6]=c,t[7]=m,t[8]=f):f=t[8],f}let o;t[9]!==i?(o=i&&n.jsx(Je,{}),t[9]=i,t[10]=o):o=t[10];let a;t[11]!==s?(a=s?n.jsx(Ge,{}):n.jsx(Ye,{}),t[11]=s,t[12]=a):a=t[12];let r;t[13]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(z,{className:"gap-0.5",children:n.jsx(M,{children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(De,{})}),n.jsx(xt,{})]})})}),t[13]=r):r=t[13];let l;return t[14]!==o||t[15]!==a?(l=n.jsxs(Me,{className:"px-2 pb-3 gap-0.5",children:[o,a,r]}),t[14]=o,t[15]=a,t[16]=l):l=t[16],l}function hn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Me,{className:"px-2 pb-3",children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(z,{children:n.jsx(M,{children:n.jsx(De,{})})})}),n.jsx(xt,{})]})}),t[0]=e):e=t[0],e}const gn="settings",jn=["overview","reports","board","files"];function vn(t,e){return!t||!e?!1:!et(e.metadata)}function yn(t,e,s,i){if(!t||!e)return!0;const o=i!==void 0;return zs(o?i:dt(e.metadata),o?1:e.metadata?.sidebarViewsVersion).includes(s)}function Nn(){const t=_.c(16),e=A(),{org:s}=F(),i=Pe(),o=Ie(),{project:a,repo:r}=we(),l=mt(a?.id);let c;t[0]!==a||t[1]!==o?(c=vn(o,a),t[0]=a,t[1]=o,t[2]=c):c=t[2];const m=c;let u;t[3]!==l||t[4]!==a||t[5]!==o?(u=x=>yn(o,a,x,l),t[3]=l,t[4]=a,t[5]=o,t[6]=u):u=t[6];const d=u;let f;if(t[7]!==d||t[8]!==m||t[9]!==i||t[10]!==s||t[11]!==a?.id||t[12]!==r||t[13]!==o||t[14]!==e){const x={overview:m||!d("overview")?null:{key:"overview",label:e("sidebar.navDestinations.home"),icon:n.jsx(cs,{size:16}),isActive:i===$.home||i===$.orgIndex||i===R.root||i===`${R.root}/`,trackAs:"overview",link:o?{to:R.root,params:{org:s.slug,agentId:o}}:{to:$.home,params:{org:s.slug}}},reports:ze($.reports,o)&&!m&&d("reports")?{key:"reports",label:e("sidebar.navDestinations.reports"),icon:n.jsx(rt,{size:16}),isActive:i===$.reports||i===R.reports,trackAs:"reports",link:o?{to:R.reports,params:{org:s.slug,agentId:o}}:{to:$.reports,params:{org:s.slug}}}:null,board:m||!d("board")?null:{key:"board",label:e("sidebar.navDestinations.tasks"),icon:n.jsx(ls,{size:16}),isActive:i===$.tasks||i===R.tasks,trackAs:"board",dataTour:le.tasks,link:{to:o?R.tasks:$.tasks,params:{org:s.slug,agentId:o??void 0,taskKey:void 0},search:b=>{const g=r??a?.id;return g?{...b,repo:g}:b}}},files:ze($.library,o)?{key:"files",label:e("sidebar.navDestinations.library"),icon:n.jsx(Os,{size:16}),isActive:i===$.library,trackAs:"files",link:{to:$.library,params:{org:s.slug}}}:null};f=jn.map(b=>x[b]).filter(Sn),t[7]=d,t[8]=m,t[9]=i,t[10]=s,t[11]=a?.id,t[12]=r,t[13]=o,t[14]=e,t[15]=f}else f=t[15];return f}function Sn(t){return t!==null}function kn(t){const e=_.c(7),{onNavigate:s}=t,i=Nn();let o;if(e[0]!==i||e[1]!==s){let r;e[3]!==s?(r=l=>n.jsx(Ce,{icon:l.icon,label:l.label,dataTour:l.dataTour,isActive:l.isActive,link:l.link,onSelect:()=>{E("nav_destination_clicked",{destination:l.trackAs}),s?.()}},l.key),e[3]=s,e[4]=r):r=e[4],o=i.map(r),e[0]=i,e[1]=s,e[2]=o}else o=e[2];let a;return e[5]!==o?(a=n.jsx(z,{className:"gap-1",children:o}),e[5]=o,e[6]=a):a=e[6],a}function _n(t){const e=_.c(18),{onNavigate:s}=t,i=A(),{org:o}=F(),a=Ie(),r=Be(),l=Pe(),c=$t();let m;e[0]!==c||e[1]!==l?(m=l.startsWith("/$org/settings")||l.startsWith($.projects)&&c==="settings",e[0]=c,e[1]=l,e[2]=m):m=e[2];const u=m;let d;e[3]!==i?(d=i("sidebar.navDestinations.settings"),e[3]=i,e[4]=d):d=e[4];const f=d;let x;e[5]!==o||e[6]!==a?(x=a?void 0:{to:"/$org/settings",params:{org:o.slug}},e[5]=o,e[6]=a,e[7]=x):x=e[7];const b=x;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(it,{size:16}),e[8]=g):g=e[8];let p;e[9]!==r||e[10]!==s||e[11]!==a?(p=()=>{E("nav_destination_clicked",{destination:gn,target:a?"project":"org"}),a&&r(a,{panel:"settings"}),s?.()},e[9]=r,e[10]=s,e[11]=a,e[12]=p):p=e[12];let h;return e[13]!==u||e[14]!==f||e[15]!==b||e[16]!==p?(h=n.jsx(z,{className:"gap-1",children:n.jsx(Ce,{dataTour:le.settings,icon:g,label:f,isActive:u,link:b,onSelect:p})}),e[13]=u,e[14]=f,e[15]=b,e[16]=p,e[17]=h):h=e[17],h}function Pn(t,e){const s=new Set(e);return s.size===0?t:t.filter(i=>s.has(i.connectionId))}function wn(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"):[]}function In(t){const e=_.c(12),{onNavigate:s}=t,i=A(),{project:o}=we(),a=Be(),r=Pe(),l=Bs(),c=Ms(o),m=mt(o?.id);if(!o)return null;let u;if(e[0]!==c.presence||e[1]!==m||e[2]!==o.metadata){const x=et(o.metadata),b=m??dt(o.metadata);u=new Set(Ds(b,Rs(x,c.presence),m!==void 0?1:o.metadata.sidebarViewsVersion)),e[0]=c.presence,e[1]=m,e[2]=o.metadata,e[3]=u}else u=e[3];const d=u;let f;if(e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==s||e[8]!==o||e[9]!==d||e[10]!==i){const x=[];d.has("site-editor")&&x.push({key:"site-editor",label:i("sidebar.projectNav.siteEditor"),icon:n.jsx(ot,{size:16}),panel:"site-editor",isActive:$n,dataTour:le.siteEditor});const b={assets:{label:i("common.mainPanelTabs.assets"),icon:n.jsx(Vs,{size:16})},hosting:{label:i("common.mainPanelTabs.hosting"),icon:n.jsx(us,{size:16})},e2e:{label:i("common.mainPanelTabs.e2e"),icon:n.jsx(Zt,{size:16})},analytics:{label:i("common.mainPanelTabs.analytics"),icon:n.jsx(rt,{size:16})},cdn:{label:i("common.mainPanelTabs.cdn"),icon:n.jsx(ms,{size:16})}};for(const p of Es){if(!d.has(p))continue;const h=b[p];x.push({key:p,label:h.label,icon:h.icon,panel:p,isActive:j=>j===p})}for(const p of Pn(wn(o),(o.connections??[]).map(An)))p.toolName!=="fetch_assets"&&x.push({key:`pinned:${p.connectionId}:${p.toolName}`,label:p.label||p.toolName,icon:p.icon?n.jsx("img",{src:p.icon,alt:"",className:"size-4 rounded-[3px]"}):n.jsx(Fs,{size:16}),panel:Le(p.connectionId,p.toolName),isActive:h=>h===Le(p.connectionId,p.toolName)});d.has("automations")&&x.push({key:"automations",label:i("sidebar.projectNav.automations"),icon:n.jsx(ds,{size:16}),panel:"automations",isActive:Cn,dataTour:le.automations});const g=r.startsWith($.projects);f=n.jsx(z,{className:"gap-1",children:x.map(p=>n.jsx(Ce,{icon:p.icon,label:p.label,dataTour:p.dataTour,isActive:g&&p.isActive(l),onSelect:()=>{E("project_nav_clicked",{surface:p.key}),a(o.id,{panel:p.panel}),s?.()}},p.key))}),e[4]=l,e[5]=r,e[6]=a,e[7]=s,e[8]=o,e[9]=d,e[10]=i,e[11]=f}else f=e[11];return f}function Cn(t){return t==="automations"||Tt(t)!==null}function An(t){return t.connection_id}function $n(t){return!!t&&Ks(t)}const Tn=3;function On(t,e){return t.status==="archived"||t.status==="done"?!1:e&&t.assigneeId===e?!0:Is(t)||Cs(t)}function zn(t,e,s){const i=new Map;for(const a of e){if(!On(a,s))continue;const r=Ps(a,t);for(const l of r){const c=i.get(l.id)??[];c.push({task:a,only:r.length===1}),i.set(l.id,c)}}const o=new Map;for(const[a,r]of i)r.sort((l,c)=>Number(c.only)-Number(l.only)||(c.task.updatedAt??"").localeCompare(l.task.updatedAt??"")),o.set(a,r.slice(0,Tn).map(l=>l.task));return o}function Mn(t){const e=_.c(21),{task:s,orgSlug:i,isLast:o,onNavigate:a}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("span",{"aria-hidden":"true",className:"absolute top-0 left-4 h-1/2 w-3 rounded-bl-lg border-b border-l border-sidebar-border"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=!o&&n.jsx("span",{"aria-hidden":"true",className:"absolute top-1/2 bottom-0 left-4 border-l border-sidebar-border"}),e[1]=o,e[2]=l):l=e[2];let c;e[3]!==i||e[4]!==s?(c=ws(i,s),e[3]=i,e[4]=s,e[5]=c):c=e[5];let m;e[6]!==i||e[7]!==c?(m={org:i,taskKey:c},e[6]=i,e[7]=c,e[8]=m):m=e[8];let u;e[9]!==a||e[10]!==s.status?(u=()=>{E("sidebar_attention_task_clicked",{status:s.status}),a?.()},e[9]=a,e[10]=s.status,e[11]=u):u=e[11];let d;e[12]!==s.title?(d=n.jsx("span",{className:"truncate",children:s.title}),e[12]=s.title,e[13]=d):d=e[13];let f;e[14]!==m||e[15]!==u||e[16]!==d?(f=n.jsx(Mt,{to:"/$org/tasks/{-$taskKey}",params:m,onClick:u,className:"flex h-8 items-center rounded-lg pr-2 pl-9 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:d}),e[14]=m,e[15]=u,e[16]=d,e[17]=f):f=e[17];let x;return e[18]!==l||e[19]!==f?(x=n.jsxs("li",{className:"relative",children:[r,l,f]}),e[18]=l,e[19]=f,e[20]=x):x=e[20],x}function Dn(t){const e=_.c(35),{onNavigate:s}=t,i=A(),o=Ee(),{org:a,locator:r}=F(),l=Ze(),{projects:c}=we(),m=Ie(),u=Be(),{data:d}=ce.useSession();let f;e[0]!==r||e[1]!==l?(f=As(r,l),e[0]=r,e[1]=l,e[2]=f):f=e[2];const x=!o&&!m;let b;e[3]!==f||e[4]!==x?(b={...f,enabled:x},e[3]=f,e[4]=x,e[5]=b):b=e[5];const{data:g}=Ot(b);if(m||c.length===0)return null;let p,h,j,v,y,N;if(e[6]!==o||e[7]!==g?.items||e[8]!==u||e[9]!==s||e[10]!==a||e[11]!==c||e[12]!==m||e[13]!==d?.user?.id||e[14]!==i){const P=zn(_s(c),g?.items??[],d?.user?.id),w=o&&"pt-3";e[21]!==w?(v=O("flex flex-col gap-1",w),e[21]=w,e[22]=v):v=e[22],y=le.projects,e[23]!==o||e[24]!==i?(N=!o&&n.jsx("p",{className:"px-2 pt-5 pb-0.5 text-xs font-medium text-muted-foreground/60",children:i("sidebar.projects.heading")}),e[23]=o,e[24]=i,e[25]=N):N=e[25],p=z,h="gap-1",j=c.map(I=>{const C=P.get(I.id)??[];return n.jsx(Ce,{icon:n.jsx(Ls,{icon:I.icon,name:I.title}),label:I.title,isActive:I.id===m,onSelect:()=>{E("sidebar_project_clicked"),u(I.id,{panel:zt(I.metadata?.ui?.layout)}),s?.()},children:!o&&C.length>0&&n.jsx("ul",{className:"flex flex-col",children:C.map((T,V)=>n.jsx(Mn,{task:T,orgSlug:a.slug,isLast:V===C.length-1,onNavigate:s},T.id))})},I.id)}),e[6]=o,e[7]=g?.items,e[8]=u,e[9]=s,e[10]=a,e[11]=c,e[12]=m,e[13]=d?.user?.id,e[14]=i,e[15]=p,e[16]=h,e[17]=j,e[18]=v,e[19]=y,e[20]=N}else p=e[15],h=e[16],j=e[17],v=e[18],y=e[19],N=e[20];let S;e[26]!==p||e[27]!==h||e[28]!==j?(S=n.jsx(p,{className:h,children:j}),e[26]=p,e[27]=h,e[28]=j,e[29]=S):S=e[29];let k;return e[30]!==v||e[31]!==y||e[32]!==N||e[33]!==S?(k=n.jsxs("div",{className:v,"data-tour":y,children:[N,S]}),e[30]=v,e[31]=y,e[32]=N,e[33]=S,e[34]=k):k=e[34],k}function bt(t){const e=_.c(8),{onNavigate:s}=t,i=A(),o=Ie(),a=qs();if(!o)return null;let r;e[0]!==i?(r=i("sidebar.scope.allProjects"),e[0]=i,e[1]=r):r=e[1];let l;e[2]!==a||e[3]!==s?(l=()=>{a(),s?.()},e[2]=a,e[3]=s,e[4]=l):l=e[4];let c;return e[5]!==r||e[6]!==l?(c=n.jsx(qt,{label:r,onSelect:l}),e[5]=r,e[6]=l,e[7]=c):c=e[7],c}function ht(t){const e=_.c(2),{onNavigate:s}=t;let i;return e[0]!==s?(i=n.jsx(Dt,{children:n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx(kn,{onNavigate:s}),n.jsx(In,{onNavigate:s}),n.jsx(_n,{onNavigate:s}),n.jsx(Dn,{onNavigate:s})]})}),e[0]=s,e[1]=i):i=e[1],i}function Po(){const t=_.c(3),e=Et();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ft,{}),t[0]=s):s=t[0];let i;return t[1]!==e?(i=n.jsx(tt,{header:s,back:e?n.jsx(Kt,{}):n.jsx(bt,{}),body:e?n.jsx(Bt,{}):n.jsx(ht,{}),footer:e?n.jsx(Vt,{}):n.jsx(bn,{})}),t[1]=e,t[2]=i):i=t[2],i}function wo(t){const e=_.c(9),{onClose:s}=t;let i,o,a;e[0]!==s?(i=n.jsx(Lt,{onClose:s}),o=n.jsx(bt,{onNavigate:s}),a=n.jsx(ht,{onNavigate:s}),e[0]=s,e[1]=i,e[2]=o,e[3]=a):(i=e[1],o=e[2],a=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(hn,{}),e[4]=r):r=e[4];let l;return e[5]!==i||e[6]!==o||e[7]!==a?(l=n.jsx(tt,{sheet:!0,header:i,back:o,body:a,footer:r}),e[5]=i,e[6]=o,e[7]=a,e[8]=l):l=e[8],l}export{Po as S,wo as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,I as j,eo as v,j as p,N as f,ae as h,G as x}from"./index-
|
|
1
|
+
import{c as d,I as j,eo as v,j as p,N as f,ae as h,G as x}from"./index-BodvdIMk.js";import{L as I}from"./legacy-main-redirect-BAMIoUmF.js";import"./thread-route-BPX5b65a.js";const N=x("/shell/$org/org-shell/");function O(){const e=d.c(24),{org:r}=j(),a=N.useSearch(),{main:n,virtualmcpid:o}=a;if(n!==void 0){let t;e[0]!==n||e[1]!==r.slug||e[2]!==a||e[3]!==o?(t=v({org:r.slug,agentId:o,main:n,search:a}),e[0]=n,e[1]=r.slug,e[2]=a,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let l;return e[5]!==s?(l=p.jsx(I,{target:s}),e[5]=s,e[6]=l):l=e[6],l}}let u;e[7]!==o?(u=o?.trim()||null,e[7]=o,e[8]=u):u=e[8];const g=u;if(g){let t;e[9]!==r.slug||e[10]!==g?(t={org:r.slug,agentId:g},e[9]=r.slug,e[10]=g,e[11]=t):t=e[11];let s;e[12]!==a?(s={...a,virtualmcpid:void 0},e[12]=a,e[13]=s):s=e[13];let l;return e[14]!==t||e[15]!==s?(l=p.jsx(f,{to:h.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=l):l=e[16],l}let i;e[17]!==r.slug?(i={org:r.slug},e[17]=r.slug,e[18]=i):i=e[18];let c;e[19]!==a?(c={...a,virtualmcpid:void 0},e[19]=a,e[20]=c):c=e[20];let m;return e[21]!==i||e[22]!==c?(m=p.jsx(f,{to:h.home,params:i,search:c,hash:!0,replace:!0}),e[21]=i,e[22]=c,e[23]=m):m=e[23],m}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,aO as L,aM as B,j as d,eF as q,aJ as y,aN as b,eD as K,aP as E,eE as P,ec as T,aL as _,bW as U,c5 as V}from"./index-
|
|
1
|
+
import{r as s,aO as L,aM as B,j as d,eF as q,aJ as y,aN as b,eD as K,aP as E,eE as P,ec as T,aL as _,bW as U,c5 as V}from"./index-BodvdIMk.js";var I="Radio",[z,w]=_(I),[H,W]=z(I),k=s.forwardRef((a,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:t,value:l="on",onCheck:f,form:R,...v}=a,[p,m]=s.useState(null),i=b(c,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:t,children:[d.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":t?"":void 0,disabled:t,value:l,...v,ref:i,onClick:E(a.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:t,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((a,c)=>{const{__scopeRadio:o,forceMount:n,...e}=a,r=W(g,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var J="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:a,control:c,checked:o,bubbles:n=!0,...e},r)=>{const t=s.useRef(null),l=b(t,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=t.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=J;function A(a){return a?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Y]=_(C,[P,w]),N=P(),j=w(),[Q,Z]=Y(C),D=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:t=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=a,i=N(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return d.jsx(Q,{scope:o,name:n,required:t,disabled:l,value:h,onValueChange:x,children:d.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(y.div,{role:"radiogroup","aria-required":t,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=a,r=Z(M,o),t=r.disabled||n,l=N(o),f=j(o),R=s.useRef(null),v=b(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!t,active:p,children:d.jsx(k,{disabled:t,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",F=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,...n}=a,e=j(o);return d.jsx(G,{...e,...n,ref:c})});F.displayName=$;var oe=D,re=O,ae=F;export{re as I,oe as R,ae as a};
|