decocms 4.358.3 → 4.358.4
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-CeZShh3U.js → AlertCircle-CMRaxRH0.js} +1 -1
- package/dist/client/assets/{AreaChart-DaOi1JnH.js → AreaChart-B89wUvDZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BHyMBVmj.js → ArrowLeft-CDsXpmYk.js} +1 -1
- package/dist/client/assets/{ArrowRight-t0H2SUBp.js → ArrowRight-D4gFWG4E.js} +1 -1
- package/dist/client/assets/{ArrowUp-Dk3SGv4e.js → ArrowUp-RL1EvMiw.js} +1 -1
- package/dist/client/assets/{Check-CUGiQ-dz.js → Check-CH-Vw96P.js} +1 -1
- package/dist/client/assets/{CheckCircle-DVzwjrU9.js → CheckCircle-BfII6xai.js} +1 -1
- package/dist/client/assets/{ChevronRight-8Tl2pOiS.js → ChevronRight-BIBNVIgv.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CSPUzgWr.js → ChevronSelectorVertical-C3yeiRoP.js} +1 -1
- package/dist/client/assets/{ChevronUp-DxkK9vWN.js → ChevronUp-LZw5ldfA.js} +1 -1
- package/dist/client/assets/{Copy01-BfKD11Tj.js → Copy01-7ESKNzsF.js} +1 -1
- package/dist/client/assets/{CreditCard01-PGpP4uYs.js → CreditCard01-X3NUCMht.js} +1 -1
- package/dist/client/assets/{DotsVertical-BJxRgf31.js → DotsVertical-BuCGsnKC.js} +1 -1
- package/dist/client/assets/{Download01-VIgSb1Gt.js → Download01-CWqYv5nm.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C1op1w1d.js → ErrorBarContext-C3bPbFQR.js} +1 -1
- package/dist/client/assets/{Eye-Bc8Bp32w.js → Eye-Crli8POp.js} +1 -1
- package/dist/client/assets/{GitBranch01-BmA02Aq6.js → GitBranch01-72jxttZ6.js} +1 -1
- package/dist/client/assets/{Globe01-CsQbY1jq.js → Globe01-Cy4h9cCT.js} +1 -1
- package/dist/client/assets/{HardDrive-CHfQTYzU.js → HardDrive-BNFNRWa2.js} +1 -1
- package/dist/client/assets/{Image01-ovi_dtKK.js → Image01-BmPB3CGi.js} +1 -1
- package/dist/client/assets/{Key01-BUn_5WkH.js → Key01-CZRkxFSD.js} +1 -1
- package/dist/client/assets/{Link01-BPl-rDCZ.js → Link01-CGkSXfCb.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DXt1rDQh.js → LinkExternal01-BclTSoLr.js} +1 -1
- package/dist/client/assets/{Monitor01-CL2iHj9m.js → Monitor01-YRHjA6R9.js} +1 -1
- package/dist/client/assets/{Package-C_-Q5Esp.js → Package-BzzU4u_u.js} +1 -1
- package/dist/client/assets/{Palette-Dusg_py1.js → Palette-X8Db8_UN.js} +1 -1
- package/dist/client/assets/{Play-Cpfdc7s2.js → Play-BoNmTNnP.js} +1 -1
- package/dist/client/assets/{Plus-BJwCMzrn.js → Plus-n8T8nTev.js} +1 -1
- package/dist/client/assets/{SearchLg-BaYqDNtw.js → SearchLg-f_L2Kvyk.js} +1 -1
- package/dist/client/assets/{SearchMd-Dh1-DUlX.js → SearchMd-lyyfFftC.js} +1 -1
- package/dist/client/assets/{Sector-B1HJlQHP.js → Sector-I2OmGIkF.js} +1 -1
- package/dist/client/assets/{Settings02-BWRldyBo.js → Settings02-Bx0NVz3k.js} +1 -1
- package/dist/client/assets/{Share07-BDlgOZKG.js → Share07-C1p_MWl6.js} +1 -1
- package/dist/client/assets/{Shield01-CMKtSWGe.js → Shield01-BokaKYbc.js} +1 -1
- package/dist/client/assets/{Stars01-DGMYzyka.js → Stars01-iTZ7rNwl.js} +1 -1
- package/dist/client/assets/{Sun-oQiFMWS2.js → Sun-BDdnw2qk.js} +1 -1
- package/dist/client/assets/{Tool01-Bx-khC3K.js → Tool01-g5vYDM8K.js} +1 -1
- package/dist/client/assets/{Tool02-DxZfvlXn.js → Tool02-CGD2nPmr.js} +1 -1
- package/dist/client/assets/{Trash01-SnqdhQxc.js → Trash01-t2ffl_GD.js} +1 -1
- package/dist/client/assets/{TrendUp01-fhZolcLR.js → TrendUp01-VmRDw6yp.js} +1 -1
- package/dist/client/assets/{Upload01-CmJh_MJ7.js → Upload01-DyGMn8P9.js} +1 -1
- package/dist/client/assets/{User01-BhatsblZ.js → User01-DRqlxFU-.js} +1 -1
- package/dist/client/assets/{UserSquare-BSX82kso.js → UserSquare-BXtYIsBP.js} +1 -1
- package/dist/client/assets/{Users01-Bjak-4We.js → Users01-_fKkic4W.js} +1 -1
- package/dist/client/assets/{Users03-B_lI977b.js → Users03-BYYeaXKm.js} +1 -1
- package/dist/client/assets/{XCircle-BP-HhMLp.js → XCircle-CZEWi75q.js} +1 -1
- package/dist/client/assets/{XClose-DRn4_qWI.js → XClose-Cwrkqthu.js} +1 -1
- package/dist/client/assets/{Zap-CQJqW5vE.js → Zap-C3LXNIn_.js} +1 -1
- package/dist/client/assets/{ZoomOut-y6M1cE6I.js → ZoomOut-C3xqzTBu.js} +1 -1
- package/dist/client/assets/{access-gate-C_DMg6fs.js → access-gate-Bg-T7c43.js} +1 -1
- package/dist/client/assets/{agent-icon-D228wxkn.js → agent-icon-CudHlm3I.js} +1 -1
- package/dist/client/assets/{agents-list-1mLjidX7.js → agents-list-DO612N2L.js} +1 -1
- package/dist/client/assets/{ai-providers-JgzkSKb9.js → ai-providers-DJvT4cwl.js} +1 -1
- package/dist/client/assets/{alert-CFqpXhB7.js → alert-BMrk3Rg6.js} +1 -1
- package/dist/client/assets/{alert-dialog-B4oyCkOY.js → alert-dialog-CLnCQjTe.js} +1 -1
- package/dist/client/assets/{analytics-tab-imq4dkjn.js → analytics-tab-ag2K00gF.js} +1 -1
- package/dist/client/assets/api-keys-CkKXSi8f.js +1 -0
- package/dist/client/assets/{api-keys-CsETZa8r.js → api-keys-DvNir-Oo.js} +1 -1
- package/dist/client/assets/{app-editor-BBvxmYsX.js → app-editor-phhr7a8L.js} +1 -1
- package/dist/client/assets/{auth-qrQV_TPS.js → auth-ByP-tT2X.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cwgd9j8I.js → auth-catchall-B6PZuIzZ.js} +1 -1
- package/dist/client/assets/{auth-entry-DKTd-XWt.js → auth-entry-B_bcFChh.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CMRDUfSn.js → auth-split-layout-Bgm67rw4.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BLT-4u1H.js → authenticate-and-persist-oauth-DquyOiBU.js} +1 -1
- package/dist/client/assets/{automation-list-row-mggz5xf0.js → automation-list-row-B7n4iPcb.js} +1 -1
- package/dist/client/assets/{automation-runs-Bu6vmoPh.js → automation-runs-B-YiqY-J.js} +1 -1
- package/dist/client/assets/{automations-CfcnI6My.js → automations-Cwy0iBlf.js} +1 -1
- package/dist/client/assets/{autosend-Z96CEx8G.js → autosend-Clc37UTr.js} +1 -1
- package/dist/client/assets/{avatar-DeXAxDZB.js → avatar-Bd9Rksmp.js} +1 -1
- package/dist/client/assets/{badge-DvDU4LEK.js → badge-BBxP7UMd.js} +1 -1
- package/dist/client/assets/{block-document-ido7ztgK.js → block-document-CFhSOKUo.js} +1 -1
- package/dist/client/assets/{breadcrumb-gaxFV_EO.js → breadcrumb-D2uDconw.js} +1 -1
- package/dist/client/assets/{buckets-Hd3sFm29.js → buckets-CxOZSmSd.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-C8oGx6ik.js → bulk-category-panel-DO9_WMxg.js} +1 -1
- package/dist/client/assets/{capability-load-error-C4J1O2Gg.js → capability-load-error-CagSnWYA.js} +1 -1
- package/dist/client/assets/{cards-BbNDRKbI.js → cards-Cl_HUtMX.js} +1 -1
- package/dist/client/assets/{category-editor-CJzz5Prx.js → category-editor-4FTBFtyr.js} +1 -1
- package/dist/client/assets/{cdn-tab-C-Ot3r6K.js → cdn-tab-BrvdbwL-.js} +1 -1
- package/dist/client/assets/{chart-BBE-b-Nh.js → chart-D4ng9omo.js} +1 -1
- package/dist/client/assets/{chat-context-BeZYUQ1L.js → chat-context-C4fGEODB.js} +1 -1
- package/dist/client/assets/{checkbox-D6tCUs9Q.js → checkbox-Cpoz71yR.js} +1 -1
- package/dist/client/assets/{choose-editor-_mZTthu2.js → choose-editor-DkGMyByx.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BdVdOnRf.js → cli-auth-success-C1HkzZiJ.js} +1 -1
- package/dist/client/assets/{client-icons-L8im1ccX.js → client-icons-CzSglPFh.js} +1 -1
- package/dist/client/assets/{collection-detail-Cka0jgiZ.js → collection-detail-DXZuWuWE.js} +1 -1
- package/dist/client/assets/{collection-display-button-BIciTVsL.js → collection-display-button-C75LHouu.js} +1 -1
- package/dist/client/assets/{collection-search-E3r51olD.js → collection-search-Cq_wBTZg.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BrWvVUZZ.js → collection-table-wrapper-BCHHwz-Q.js} +1 -1
- package/dist/client/assets/{collection-tabs-DBBgWhhB.js → collection-tabs-DB42vY5i.js} +1 -1
- package/dist/client/assets/{command-DR3zyIhn.js → command-ByPccqvA.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-D--LvBER.js → commerce-onboarding-sfXf40L7.js} +1 -1
- package/dist/client/assets/{connect-DFYj93VY.js → connect-CBlIRry-.js} +1 -1
- package/dist/client/assets/{connect-layout-Bi2aLO5E.js → connect-layout-DW13WTys.js} +1 -1
- package/dist/client/assets/{connection-YtRx9C0l.js → connection-CYzFF4q0.js} +1 -1
- package/dist/client/assets/{connection-card-DsMi9xa_.js → connection-card-zjj4H0I2.js} +1 -1
- package/dist/client/assets/{connection-detail-C2tUkW1w.js → connection-detail-pzQoKTV9.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-XypSEqtp.js → connection-form-helpers-I9skVz45.js} +1 -1
- package/dist/client/assets/{connections-C3pSVu59.js → connections-CsbO_XfC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CoCfQ8aS.js → create-organization-dialog-BgvTrrjx.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-MgvD7iUo.js → decopilot-sse-pool-DX0QeH6Y.js} +1 -1
- package/dist/client/assets/{dialog-BMI17Dr2.js → dialog-vW1U_9BE.js} +1 -1
- package/dist/client/assets/{domain-settings-Dsjgm8YG.js → domain-settings-Dc7Qc2A-.js} +1 -1
- package/dist/client/assets/{drawer-CxGUNehS.js → drawer-C-MNillf.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DNyVknXD.js → dropdown-menu-BFWT10oB.js} +1 -1
- package/dist/client/assets/{e2e-tab-C0657lIk.js → e2e-tab-ETEOzG9Q.js} +1 -1
- package/dist/client/assets/{editor-C3XqvbX1.js → editor-DkXjZ3Qc.js} +1 -1
- package/dist/client/assets/{empty-state-DWq9gil9.js → empty-state-DoVWR5lf.js} +1 -1
- package/dist/client/assets/{empty-state-B-Y5pIFs.js → empty-state-n8xkQXzO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D0btXV7A.js → extract-connection-data-DcM36N9w.js} +1 -1
- package/dist/client/assets/{file-explorer-B-Qy7P-2.js → file-explorer-geXr-_YT.js} +1 -1
- package/dist/client/assets/{file-type-icon-DlYHlErF.js → file-type-icon-Dw-Vh4Ee.js} +1 -1
- package/dist/client/assets/{folder-icon-Bg2xl_5i.js → folder-icon-DE8-CrRK.js} +1 -1
- package/dist/client/assets/{form-DpBqT9rl.js → form-COufQX0n.js} +1 -1
- package/dist/client/assets/{general-BpNSACBM.js → general-BTS-hR_J.js} +1 -1
- package/dist/client/assets/{github-icon-DuzjqkoH.js → github-icon-DnD32Rlf.js} +1 -1
- package/dist/client/assets/{hooks-D5lhSBKy.js → hooks-aYH-Zsjx.js} +1 -1
- package/dist/client/assets/{index-CfOIZC95.js → index-B5aa7ZmM.js} +1 -1
- package/dist/client/assets/{index-C9yX5Zq8.js → index-B6RXs6Gk.js} +1 -1
- package/dist/client/assets/{index-CtY9-Vkx.js → index-BcnbwxTX.js} +1 -1
- package/dist/client/assets/{index-DagJRKZX.js → index-CO3xqZ9k.js} +1 -1
- package/dist/client/assets/{index-CFRMjuAc.js → index-CPdVUPWU.js} +1 -1
- package/dist/client/assets/{index-DJV1tPju.js → index-Cb9Dicnx.js} +1 -1
- package/dist/client/assets/{index-BW0cYi0A.js → index-CkeetxbR.js} +1 -1
- package/dist/client/assets/{index-B8IzgUC-.js → index-CnzJtn66.js} +6 -6
- package/dist/client/assets/{index-BNii9H3k.js → index-CsUNCFTt.js} +4 -4
- package/dist/client/assets/{index-DPsms1XK.js → index-JABw5nMj.js} +1 -1
- package/dist/client/assets/{index-BpVl9Iu6.js → index-ZNPgar3I.js} +1 -1
- package/dist/client/assets/{index-BPLs_zH-.js → index-eaXEhlJQ.js} +1 -1
- package/dist/client/assets/{index-redirect-ARk9vwUp.js → index-redirect-BU-x-Jlu.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-9dBDgBK1.js → infiniteQueryObserver-Mp4zNKL8.js} +1 -1
- package/dist/client/assets/{infra-billing-wxfhmC0A.js → infra-billing-BL9hdnl-.js} +1 -1
- package/dist/client/assets/{input-o_y8vbED.js → input-CCjvC2WC.js} +1 -1
- package/dist/client/assets/{integration-icon-sBwTb2sI.js → integration-icon-ByFS2bKz.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CkstR_WT.js → invite-member-dialog-LYRPulJz.js} +1 -1
- package/dist/client/assets/{label-KmEwpC8j.js → label-lVk0cwye.js} +1 -1
- package/dist/client/assets/{layout-8pO8nta4.js → layout-Bc8dpGj2.js} +1 -1
- package/dist/client/assets/{login-Cd41ZmSK.js → login-vr_cvPTk.js} +1 -1
- package/dist/client/assets/{markdown-DI5UctqV.js → markdown-Ck89HZfW.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BoKI1qFl.js → mcp-app-renderer-0U5lG_oC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BXbJ2tLV.js → mcp-oauth-B62HA2YM.js} +1 -1
- package/dist/client/assets/{members-DnmVkKyQ.js → members-Gb2aA5Df.js} +1 -1
- package/dist/client/assets/{monaco-editor-DT8LsDWU.js → monaco-editor-CgHgPYpH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DofnKsMg.js → monitoring-stats-row-BSrSLLOG.js} +1 -1
- package/dist/client/assets/{multi-select-CuSWP3Ip.js → multi-select-DY0VqhgN.js} +1 -1
- package/dist/client/assets/{oauth-callback-D8BLMDQv.js → oauth-callback-CGUo92N6.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C2E7G63x.js → oauth-callback-ai-provider-BAHVHY9a.js} +1 -1
- package/dist/client/assets/{onboarding-D3oibVje.js → onboarding-C8N1dqa6.js} +1 -1
- package/dist/client/assets/{org-layout-DGHWOl-M.js → org-layout-LYCBQjs_.js} +1 -1
- package/dist/client/assets/{organization-choice-BpDfYFGk.js → organization-choice-ssvPgUh6.js} +1 -1
- package/dist/client/assets/{orgs-YCpk-jvz.js → orgs-PXtodFG4.js} +1 -1
- package/dist/client/assets/{page-seo-form-CzNSZ9sj.js → page-seo-form-CxIuP8Jj.js} +1 -1
- package/dist/client/assets/{popover-SMAK3S-U.js → popover-D2X4LilX.js} +1 -1
- package/dist/client/assets/{post-calendar-BMjvabK0.js → post-calendar-Ljdr9UOJ.js} +1 -1
- package/dist/client/assets/{post-editor-C9ML4-3t.js → post-editor-BbHVQLZy.js} +1 -1
- package/dist/client/assets/{primitives-BcsiqfJ5.js → primitives-D-Oc6UeY.js} +1 -1
- package/dist/client/assets/{profile-BWSi0G8T.js → profile-JN-4PP-v.js} +1 -1
- package/dist/client/assets/{project-app-view-Dxcl1aT4.js → project-app-view-D1tnNJ1j.js} +1 -1
- package/dist/client/assets/{project-icon-DPaLVtKI.js → project-icon-B6leAseu.js} +1 -1
- package/dist/client/assets/{prompts-B-CxKnVg.js → prompts-D9FCeLmE.js} +1 -1
- package/dist/client/assets/record-editor-vXW7284o.js +1 -0
- package/dist/client/assets/redirect-editor-BRVcNhnF.js +1 -0
- package/dist/client/assets/registry-D7vBYddA.js +2 -0
- package/dist/client/assets/{registry-layout-CYouan_f.js → registry-layout-zGpULVoe.js} +1 -1
- package/dist/client/assets/{reports-BSLLlkvy.js → reports-BIXVUoz6.js} +1 -1
- package/dist/client/assets/{repositories-CUwZd1SG.js → repositories-h_r0jLGb.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B0VIBWE5.js → repository-import-picker-CDuZQeMP.js} +1 -1
- package/dist/client/assets/{repository-picker-Cx-6wloW.js → repository-picker-CX_uCy46.js} +1 -1
- package/dist/client/assets/{require-capability-DBvMdnbk.js → require-capability-D5sGM312.js} +1 -1
- package/dist/client/assets/{required-auth-layout-vMOV7A-1.js → required-auth-layout-BXxzIMVl.js} +1 -1
- package/dist/client/assets/{reset-password-D7rNtMox.js → reset-password-CNc0wHcQ.js} +1 -1
- package/dist/client/assets/{review-settings-BJD--bpz.js → review-settings-BpIIMVAn.js} +1 -1
- package/dist/client/assets/{roles-DYPFenvJ.js → roles-BgyFR3-e.js} +1 -1
- package/dist/client/assets/{schema-CMNH6jkB.js → schema-oIgkdsyk.js} +1 -1
- package/dist/client/assets/{scroll-area-C0mQJlt6.js → scroll-area-QfBe8RGo.js} +1 -1
- package/dist/client/assets/{search-input-tUbF1ptE.js → search-input-DVdWUH1y.js} +1 -1
- package/dist/client/assets/{secrets-D5j1zABQ.js → secrets-DhekGnOy.js} +1 -1
- package/dist/client/assets/{sections-editor-gTvkeaCt.js → sections-editor-BGnr1nQx.js} +1 -1
- package/dist/client/assets/{select-DwV8X7f6.js → select-DgPCfz0D.js} +1 -1
- package/dist/client/assets/{select-model-ZhFhgPBA.js → select-model-Ck2HPAGp.js} +1 -1
- package/dist/client/assets/{self-tool-result-ClWTH_bI.js → self-tool-result-Cr7ayB_1.js} +1 -1
- package/dist/client/assets/{seo-editor-BAaldpLU.js → seo-editor-gO8669fK.js} +1 -1
- package/dist/client/assets/settings-layout-DPWnYw6P.js +1 -0
- package/dist/client/assets/settings-sidebar-B3Fd_xQz.js +1 -0
- package/dist/client/assets/{shell-controls-CqyJgQ7j.js → shell-controls-CL0mEPr_.js} +1 -1
- package/dist/client/assets/{shell-layout-BYg8XQbK.js → shell-layout-BcJzjh5V.js} +1 -1
- package/dist/client/assets/{skill-preview-CKQetGjJ.js → skill-preview-ByFvWaNw.js} +1 -1
- package/dist/client/assets/{skills-xI-UVBa4.js → skills-Dst6qdjL.js} +1 -1
- package/dist/client/assets/{sso-CfNklRih.js → sso-E8ANappM.js} +1 -1
- package/dist/client/assets/{store-BadQgxeZ.js → store-BiujRYzR.js} +1 -1
- package/dist/client/assets/store-registry-D9-b28Qz.js +2 -0
- package/dist/client/assets/{switch-CS27na4M.js → switch-CprchaBn.js} +1 -1
- package/dist/client/assets/{synced-repos-CoMJQQ9Y.js → synced-repos-BEVJZIhz.js} +1 -1
- package/dist/client/assets/{table-qzWiQSpc.js → table-DwZbOfva.js} +1 -1
- package/dist/client/assets/{tabs-QNWV2GCs.js → tabs-Tmo0ftZT.js} +1 -1
- package/dist/client/assets/{task-board-Cn_pHjsF.js → task-board-Ci8z0xfT.js} +1 -1
- package/dist/client/assets/{task-route-B7ei82Gq.js → task-route-CoTpYdFf.js} +1 -1
- package/dist/client/assets/{tasks-_RvPcTaN.js → tasks-CG8Znj53.js} +1 -1
- package/dist/client/assets/{textarea-BVhDYcc1.js → textarea-C3bul5E0.js} +1 -1
- package/dist/client/assets/{thread-intent-Loysb1I9.js → thread-intent-DDeV3qR-.js} +1 -1
- package/dist/client/assets/{thread-route-Byu3ebg8.js → thread-route-BiOADTxM.js} +1 -1
- package/dist/client/assets/{toggle-group-B-tj3XKh.js → toggle-group-D5EjwHU_.js} +1 -1
- package/dist/client/assets/{toolbar-Bm2rm9wx.js → toolbar-DXZJk4GB.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CVH99K3A.js → toolbar-icon-button-C-dzzl3n.js} +1 -1
- package/dist/client/assets/{track-CeGHDOSL.js → track-DWh2IQva.js} +1 -1
- package/dist/client/assets/{types-DiuASwJM.js → types-S2aaB8QX.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dq95BiGx.js → use-ai-providers-CQVbdgN3.js} +1 -1
- package/dist/client/assets/{use-automations-BfncXBxU.js → use-automations-L4-jkEaD.js} +1 -1
- package/dist/client/assets/{use-autosave-BhZ1NKNk.js → use-autosave-C2R1fZzG.js} +1 -1
- package/dist/client/assets/{use-connection-BHOM1KCS.js → use-connection-DwzyMekq.js} +1 -1
- package/dist/client/assets/{use-copy-DP-dn8NK.js → use-copy-BH26Ez9c.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BLl-W3F1.js → use-create-virtual-mcp-C1PIsfOi.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BeNxPbWX.js → use-date-fns-locale-DLXzkBWw.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BW8ckVjz.js → use-debounced-autosave-Dx7y2YhF.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Df9tl1Js.js → use-debounced-value-BV5VgsWu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-ChjgrZYX.js → use-decopilot-events-Bpj9LkzO.js} +1 -1
- package/dist/client/assets/{use-delete-connection-1N9PZehZ.js → use-delete-connection-Bedw4u5M.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-MUXNvpjB.js → use-deployment-admin-B9TlwbLi.js} +1 -1
- package/dist/client/assets/{use-destination-route-Bhiy4EoU.js → use-destination-route-Cnt7EB8f.js} +1 -1
- package/dist/client/assets/{use-file-configs-y2zMW2WE.js → use-file-configs-C_ZKBrCY.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DpakBpEW.js → use-infinite-scroll-Dh-C4d_p.js} +1 -1
- package/dist/client/assets/{use-join-requests-DYy9A_hL.js → use-join-requests-D2CcrgPb.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CoOsHfD4.js → use-mcp-auth-status-DXDNbmEe.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CTci8Fpw.js → use-mcp-client-DpVIRGbg.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DMMC0Xlr.js → use-mcp-prompts-BAbYWejn.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DuSarxbB.js → use-mcp-tools-D6lQ9fA7.js} +1 -1
- package/dist/client/assets/{use-members-MlPQdN4X.js → use-members-ByJns5XF.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cx0i3xh7.js → use-navigate-to-agent-DbEtN3CH.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-JVIoeMxe.js → use-org-auth-client-BEnuOfjI.js} +1 -1
- package/dist/client/assets/{use-org-notice---l3wso1.js → use-org-notice-Quz1j7e9.js} +1 -1
- package/dist/client/assets/{use-org-sso-DUVDDhja.js → use-org-sso-1vJuA_ma.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BHCsacjS.js → use-organization-roles-BnX3yEy4.js} +1 -1
- package/dist/client/assets/{use-organization-settings-k0fnufc_.js → use-organization-settings-CiaoV5Jh.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-HDWlFxjd.js → use-panel-navigate-Da6Ty1S6.js} +1 -1
- package/dist/client/assets/{use-registry-connections-YYlPIx2s.js → use-registry-connections-BlcXRjcv.js} +1 -1
- package/dist/client/assets/{use-secrets-DN6b0vCF.js → use-secrets-BlK-zk8w.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BsdTD0NP.js → use-section-preview-base-yQPb9KKu.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Ct0vFbvq.js → use-status-sounds-CfHb7hyZ.js} +1 -1
- package/dist/client/assets/{use-tags-CfOhaYdy.js → use-tags-DnAKYH8b.js} +1 -1
- package/dist/client/assets/{use-view-mode-C_R4jd67.js → use-view-mode-DxUtziMu.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D2iJ6ogQ.js → use-virtual-mcp-Cy8Wdlxm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CM6s3UpC.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DUOoYxBa.js +1 -0
- package/dist/client/assets/{users-B2ixGvua.js → users-CHM0pU90.js} +1 -1
- package/dist/client/assets/{variant-calendar-CtHnxvJ8.js → variant-calendar-CJ-atZfz.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Bor1__4t.js → view-mode-toggle-BkXf1XU_.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/api-keys-BpxbZDLX.js +0 -1
- package/dist/client/assets/record-editor-D9UkDkip.js +0 -1
- package/dist/client/assets/redirect-editor-D4HhQlHy.js +0 -1
- package/dist/client/assets/registry-g-fmSyh6.js +0 -2
- package/dist/client/assets/settings-layout-2nHZ-xUy.js +0 -1
- package/dist/client/assets/settings-sidebar-CPy3LeC5.js +0 -1
- package/dist/client/assets/store-registry-EfqkQfUX.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BdnThnOb.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DO0PekCG.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as j,Z as Ae,H as je,l as R,j as n,b as O,r as T,B as me,a as M,t as L,w as Re,c0 as qe,m as De,K as Le,c1 as Me,G as de,J as Fe,_ as oe,d as He,s as Ee,a1 as ve,a2 as Se,a4 as ke,o as F,a_ as ye,L as Ue,a6 as fe,a5 as le,c2 as Ve,c3 as Be,z as Ge,c4 as Je,f as Ke,k as We,c5 as Qe,c6 as Ye,c7 as Ze,a0 as Xe}from"./index-CsUNCFTt.js";import{t as es}from"./ChevronUp-LZw5ldfA.js";import{i as ss}from"./ChevronRight-BIBNVIgv.js";import{g as ts}from"./TrendUp01-VmRDw6yp.js";import{I as ns,T as Ne}from"./toolbar-icon-button-C-dzzl3n.js";import{i as Q}from"./Check-CH-Vw96P.js";import{i as as}from"./ChevronSelectorVertical-C3yeiRoP.js";import{s as is}from"./Plus-n8T8nTev.js";import{c as he,e as W,d as Y,b as rs,C as os,a as ls}from"./command-ByPccqvA.js";import{D as cs,d as ds,a as gs,b as us}from"./drawer-C-MNillf.js";import{P as ms,a as fs,b as hs}from"./popover-D2X4LilX.js";import{A as ps,n as xs,e as bs,aU as js,aV as vs}from"./agent-icon-CudHlm3I.js";import{u as $e,P as Ce}from"./project-icon-B6leAseu.js";import{C as Ss}from"./create-organization-dialog-BgvTrrjx.js";import{s as ks}from"./XClose-Cwrkqthu.js";import{u as ys}from"./use-destination-route-Cnt7EB8f.js";import{L as Z}from"./anchors-yqDzZN4K.js";import{e as Ns}from"./use-virtual-mcp-Cy8Wdlxm.js";import{i as $s}from"./ArrowLeft-CDsXpmYk.js";import{t as Cs,b as pe}from"./Users03-BYYeaXKm.js";import{i as ws}from"./CreditCard01-X3NUCMht.js";import{i as _s}from"./GitBranch01-72jxttZ6.js";import{i as zs}from"./HardDrive-BNFNRWa2.js";import{i as Ts}from"./Key01-CZRkxFSD.js";import{n as Is}from"./LinkExternal01-BclTSoLr.js";import{t as Os}from"./Stars01-iTZ7rNwl.js";import{s as Ps}from"./User01-DRqlxFU-.js";import{i as As}from"./Zap-C3LXNIn_.js";import{u as Rs}from"./use-join-requests-D2CcrgPb.js";function qs(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Ae(e)}function ge(){const{state:t,isMobile:e}=je();return t==="collapsed"&&!e}function Ds(t){let e=0;for(let d=0;d<t.length;d++)e=t.charCodeAt(d)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function ue(t){const e=j.c(13),{org:s,size:d}=t,r=d===void 0?"sm":d,a=r==="xs"?"size-5":"size-6",l=r==="xs"?"text-[9px]":"text-xs";let i;e[0]!==a?(i=R(a,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=a,e[1]=i):i=e[1];let o;e[2]!==s.logo||e[3]!==s.name?(o=s.logo?void 0:Ds(s.name),e[2]=s.logo,e[3]=s.name,e[4]=o):o=e[4];let c;e[5]!==s.logo||e[6]!==s.name||e[7]!==l?(c=s.logo?n.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):n.jsx("span",{className:R("font-semibold leading-none",l),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=l,e[8]=c):c=e[8];let g;return e[9]!==i||e[10]!==o||e[11]!==c?(g=n.jsx("div",{className:i,style:o,children:c}),e[9]=i,e[10]=o,e[11]=c,e[12]=g):g=e[12],g}function Ls({invitation:t,onChanged:e}){const s=O(),[d,r]=T.useState(!1),a=t.organizationName??s("header.orgSwitcher.unknownOrganization"),l=async()=>{r(!0);try{const c=await M.organization.acceptInvitation({invitationId:t.id});if(c.error){L.error(c.error.message),r(!1);return}}catch{L.error(s("header.orgSwitcher.failedToAcceptInvitation")),r(!1);return}L.success(s("header.orgSwitcher.joined",{name:a})),Re();let o;try{o=(await M.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=o?`/${o}`:"/"},i=async()=>{r(!0);try{const o=await M.organization.rejectInvitation({invitationId:t.id});if(o.error){L.error(o.error.message),r(!1);return}L.success(s("header.orgSwitcher.invitationDeclined")),r(!1),e()}catch{L.error(s("header.orgSwitcher.failedToDeclineInvitation")),r(!1)}};return n.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[n.jsx(ue,{org:{name:a},size:"sm"}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"truncate text-sm font-medium",children:a}),n.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[n.jsx(me,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:l,disabled:d,children:s("header.orgSwitcher.accept")}),n.jsx(me,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:i,disabled:d,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:a}),children:n.jsx(ks,{size:14})})]})]})}function we(){const t=T.useContext(qe),{data:e,refetch:s}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(r=>r.status==="pending"&&new Date(r.expiresAt)>new Date),refetch:()=>s?.()}}function Ms(t){const e=j.c(13),s=t.trim(),{data:d}=M.useSession(),r=d?.user?.id??"",a=s.length>0&&!!r,l=Le.projectSearch(r,s);let i;e[0]!==s?(i=async k=>{const{signal:v}=k,S=await fetch(`/api/_me/projects/search?q=${encodeURIComponent(s)}`,{signal:v});if(!S.ok)throw new Error(`Project search failed: ${S.status}`);return await S.json()},e[0]=s,e[1]=i):i=e[1];let o;e[2]!==a||e[3]!==l||e[4]!==i?(o={queryKey:l,queryFn:i,enabled:a,placeholderData:Me,staleTime:3e4,retry:!1},e[2]=a,e[3]=l,e[4]=i,e[5]=o):o=e[5];const{data:c,isFetching:g,isPlaceholderData:u,isError:f}=De(o);let m;e[6]!==c?.items?(m=c?.items??[],e[6]=c?.items,e[7]=m):m=e[7];const h=a&&g,b=a&&u;let x;return e[8]!==f||e[9]!==m||e[10]!==h||e[11]!==b?(x={hits:m,isSearching:h,isStale:b,isError:f},e[8]=f,e[9]=m,e[10]=h,e[11]=b,e[12]=x):x=e[12],x}function xe(t){const e=j.c(15),{id:s,label:d,createLabel:r,onCreate:a}=t;let l;e[0]!==s||e[1]!==d?(l=n.jsx("span",{id:s,className:"truncate",children:d}),e[0]=s,e[1]=d,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(is,{size:14}),e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==a?(o=n.jsx(ve,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":r,className:"-my-1 shrink-0 cursor-pointer rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",onClick:a,children:i})}),e[4]=r,e[5]=a,e[6]=o):o=e[6];let c;e[7]!==r?(c=n.jsx(Se,{side:"right",children:r}),e[7]=r,e[8]=c):c=e[8];let g;e[9]!==o||e[10]!==c?(g=n.jsxs(ke,{children:[o,c]}),e[9]=o,e[10]=c,e[11]=g):g=e[11];let u;return e[12]!==l||e[13]!==g?(u=n.jsxs("div",{className:"flex w-full items-center justify-between gap-2 px-2 py-1.5 text-xs font-medium text-muted-foreground",children:[l,g]}),e[12]=l,e[13]=g,e[14]=u):u=e[14],u}const X="min-h-9 items-center",A={allProjects:"scope:__all__",project:t=>`scope:${t}`,org:t=>`org:${t}`,foreignProject:(t,e)=>`travel:${t}:${e}`};function Fs(t){const e=j.c(9),{active:s,rows:d}=t,r=O();let a,l,i;if(e[0]!==s||e[1]!==d||e[2]!==r){i=Symbol.for("react.early_return_sentinel");e:{const c=d.get(s);if(c?.kind!=="travel"){i=null;break e}a="border-t border-border px-3 py-2 text-xs text-warning",l=r("sidebar.picker.verbTravel",{name:c.label})}e[0]=s,e[1]=d,e[2]=r,e[3]=a,e[4]=l,e[5]=i}else a=e[3],l=e[4],i=e[5];if(i!==Symbol.for("react.early_return_sentinel"))return i;let o;return e[6]!==a||e[7]!==l?(o=n.jsx("div",{className:a,children:l}),e[6]=a,e[7]=l,e[8]=o):o=e[8],o}function Hs(t){const e=j.c(27),{onClose:s,onCreateOrg:d,className:r}=t,a=O(),l=T.useId(),i=T.useId(),o=He(),{org:c}=de(),{scopeId:g,projects:u,setScope:f}=$e(),{hasMore:m}=Ns(),[h,b]=T.useState(""),[x,k]=T.useState(A.allProjects),v=T.useDeferredValue(h);let S;e[0]!==v?(S=v.trim(),e[0]=v,e[1]=S):S=e[1];const y=S,$=y.length>0,{data:w}=Ee(),{invitations:C,refetch:_}=we();let N;e[2]!==c.slug?(N=(p,z)=>p.slug===c.slug?-1:z.slug===c.slug?1:0,e[2]=c.slug,e[3]=N):N=e[3];const I=(w??[]).slice().sort(N),{hits:P,isSearching:H,isStale:Ie,isError:ee}=Ms($?y:""),se=$?I.filter(p=>{const z=y.toLowerCase();return p.name.toLowerCase().includes(z)||p.slug.toLowerCase().includes(z)}):[],te=ys();let E;e[4]!==te?(E=te.startsWith("/$org/settings"),e[4]=te,e[5]=E):E=e[5];const U=E,q=new Map;let V;e[6]!==U||e[7]!==o||e[8]!==s||e[9]!==c.slug||e[10]!==f?(V=p=>{F("scope_set",{scoped:p!==null,fromSettings:U}),U?o({to:"/$org",params:{org:c.slug},search:{virtualmcpid:p??void 0}}):f(p),s()},e[6]=U,e[7]=o,e[8]=s,e[9]=c.slug,e[10]=f,e[11]=V):V=e[11];const ne=V;let B;e[12]!==o||e[13]!==s?(B=(p,z)=>{F("org_project_travel",{scoped:!!z}),o({to:"/$org",params:{org:p},search:z?{virtualmcpid:z}:{}}),s()},e[12]=o,e[13]=s,e[14]=B):B=e[14];const ae=B;let G;e[15]!==o||e[16]!==s||e[17]!==c.slug?(G=()=>{F("picker_new_project"),o({to:"/$org/agents/{-$panel}",params:{org:c.slug,panel:void 0},search:{virtualmcpid:void 0}}),s()},e[15]=o,e[16]=s,e[17]=c.slug,e[18]=G):G=e[18];const Oe=G;q.set(A.allProjects,{kind:"scope",label:a("sidebar.scope.allProjects")});let D;e[19]!==a?(D=a("sidebar.picker.searchPlaceholder"),e[19]=a,e[20]=D):D=e[20];let J;e[21]!==h||e[22]!==D?(J=n.jsx(ls,{value:h,onValueChange:b,placeholder:D}),e[21]=h,e[22]=D,e[23]=J):J=e[23];const ie=rs,Pe="max-h-none min-h-0 flex-1",re=$?n.jsxs(n.Fragment,{children:[ee&&n.jsx(he,{children:a("sidebar.picker.searchFailed")}),!ee&&!H&&P.length===0&&se.length===0&&n.jsx(he,{children:a("sidebar.picker.noMatches",{query:y})}),!ee&&P.length>0&&n.jsx(W,{heading:a("sidebar.picker.projectsHeading"),className:R(Ie&&"opacity-50"),children:P.map(p=>n.jsx(Es,{hit:p,currentOrgSlug:c.slug,scopeId:g,rows:q,onScope:ne,onTravel:ae},`${p.orgSlug}:${p.id}`))}),se.length>0&&n.jsx(W,{heading:a("sidebar.picker.orgsHeading"),children:se.map(p=>n.jsx(be,{candidate:p,currentOrgSlug:c.slug,rows:q,onTravel:ae,onClose:s},p.id))})]}):n.jsxs(n.Fragment,{children:[n.jsx(xe,{id:l,label:a("sidebar.picker.projectsHeading"),createLabel:a("sidebar.picker.newProject"),onCreate:Oe}),n.jsxs(W,{"aria-labelledby":l,children:[n.jsxs(Y,{value:A.allProjects,className:X,onSelect:()=>ne(null),children:[n.jsx("span",{className:"min-w-0 flex-1 truncate",children:a("sidebar.scope.allProjects")}),g===null&&n.jsx(Q,{size:14})]}),u.map(p=>{const z=A.project(p.id);return q.set(z,{kind:"scope",label:p.title}),n.jsxs(Y,{value:z,className:X,onSelect:()=>ne(p.id),children:[n.jsx(Ce,{icon:p.icon,name:p.title}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:p.title}),g===p.id&&n.jsx(Q,{size:14})]},p.id)}),m&&n.jsx("p",{className:"px-3 py-1.5 text-xs text-muted-foreground",children:a("sidebar.picker.moreExist")})]}),n.jsx(xe,{id:i,label:a("sidebar.picker.orgsHeading"),createLabel:a("sidebar.picker.newOrganization"),onCreate:d}),n.jsxs(W,{"aria-labelledby":i,children:[C.map(p=>n.jsx(Ls,{invitation:p,onChanged:_},p.id)),I.map(p=>n.jsx(be,{candidate:p,currentOrgSlug:c.slug,rows:q,onTravel:ae,onClose:s},p.id))]})]});let K;return e[24]!==ie||e[25]!==re?(K=n.jsx(ie,{className:Pe,children:re}),e[24]=ie,e[25]=re,e[26]=K):K=e[26],n.jsxs(os,{shouldFilter:!1,value:x,onValueChange:k,className:r,children:[J,K,n.jsx(Fs,{active:x,rows:q})]})}function be(t){const e=j.c(22),{candidate:s,currentOrgSlug:d,rows:r,onTravel:a,onClose:l}=t,i=s.slug===d;let o;e[0]!==s.name||e[1]!==s.slug||e[2]!==i||e[3]!==r?(o=A.org(s.slug),r.set(o,{kind:i?"scope":"travel",label:s.name}),e[0]=s.name,e[1]=s.slug,e[2]=i,e[3]=r,e[4]=o):o=e[4];let c;e[5]!==s.slug||e[6]!==i||e[7]!==l||e[8]!==a?(c=()=>i?l():a(s.slug),e[5]=s.slug,e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9];let g;e[10]!==s?(g=n.jsx(ue,{org:s,size:"xs"}),e[10]=s,e[11]=g):g=e[11];let u;e[12]!==s.name?(u=n.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.name}),e[12]=s.name,e[13]=u):u=e[13];let f;e[14]!==i?(f=i&&n.jsx(Q,{size:14}),e[14]=i,e[15]=f):f=e[15];let m;return e[16]!==c||e[17]!==g||e[18]!==u||e[19]!==f||e[20]!==o?(m=n.jsxs(Y,{value:o,className:X,onSelect:c,children:[g,u,f]}),e[16]=c,e[17]=g,e[18]=u,e[19]=f,e[20]=o,e[21]=m):m=e[21],m}function Es(t){const e=j.c(30),{hit:s,currentOrgSlug:d,scopeId:r,rows:a,onScope:l,onTravel:i}=t,o=s.orgSlug===d;let c;e[0]!==s.id||e[1]!==s.orgSlug||e[2]!==s.title||e[3]!==o||e[4]!==a?(c=o?A.project(s.id):A.foreignProject(s.orgSlug,s.id),a.set(c,{kind:o?"scope":"travel",label:s.title}),e[0]=s.id,e[1]=s.orgSlug,e[2]=s.title,e[3]=o,e[4]=a,e[5]=c):c=e[5];let g;e[6]!==s.id||e[7]!==s.orgSlug||e[8]!==o||e[9]!==l||e[10]!==i?(g=()=>o?l(s.id):i(s.orgSlug,s.id),e[6]=s.id,e[7]=s.orgSlug,e[8]=o,e[9]=l,e[10]=i,e[11]=g):g=e[11];let u;e[12]!==s.icon||e[13]!==s.title?(u=n.jsx(Ce,{icon:s.icon,name:s.title}),e[12]=s.icon,e[13]=s.title,e[14]=u):u=e[14];let f;e[15]!==s.title?(f=n.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.title}),e[15]=s.title,e[16]=f):f=e[16];let m;e[17]!==s.orgName?(m=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:s.orgName}),e[17]=s.orgName,e[18]=m):m=e[18];let h;e[19]!==s.id||e[20]!==o||e[21]!==r?(h=o&&r===s.id&&n.jsx(Q,{size:14}),e[19]=s.id,e[20]=o,e[21]=r,e[22]=h):h=e[22];let b;return e[23]!==g||e[24]!==u||e[25]!==f||e[26]!==m||e[27]!==h||e[28]!==c?(b=n.jsxs(Y,{value:c,className:X,onSelect:g,children:[u,f,m,h]}),e[23]=g,e[24]=u,e[25]=f,e[26]=m,e[27]=h,e[28]=c,e[29]=b):b=e[29],b}function _e(t){const e=j.c(32),{collapsed:s,onNavigate:d}=t,r=s===void 0?!1:s,a=O(),{org:l}=de(),{project:i}=$e(),{invitations:o}=we(),[c,g]=T.useState(!1),[u,f]=T.useState(!1),m=Fe();let h;if(e[0]!==r||e[1]!==o.length||e[2]!==l||e[3]!==i||e[4]!==a){const _=i?a("sidebar.picker.projectInOrg",{project:i.title,org:l.name}):l.name;let N;e[6]!==l||e[7]!==i?(N=i?n.jsx(ps,{icon:i.icon,name:i.title,size:"xs",className:"shrink-0"}):n.jsx(ue,{org:l,size:"sm"}),e[6]=l,e[7]=i,e[8]=N):N=e[8];let I;e[9]!==o.length?(I=o.length>0&&n.jsx("span",{className:"absolute -right-1 -top-1 size-2.5 rounded-full bg-destructive ring-2 ring-background"}),e[9]=o.length,e[10]=I):I=e[10];let P;e[11]!==N||e[12]!==I?(P=n.jsxs("div",{className:"relative inline-flex shrink-0",children:[N,I]}),e[11]=N,e[12]=I,e[13]=P):P=e[13];const H=P;h=r?n.jsx(oe,{tooltip:_,"data-tour":Z.switcher,children:H}):n.jsxs("button",{type:"button","data-tour":Z.switcher,"aria-label":a("sidebar.picker.ariaLabel",{name:_}),className:R("flex min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pl-1 pr-1.5 text-left md:h-[34px] md:py-0","[transition:background-color_180ms_ease] hover:bg-sidebar-accent",ns),children:[H,n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:i?i.title:l.name}),n.jsx(as,{size:14,className:"shrink-0 text-muted-foreground"})]}),e[0]=r,e[1]=o.length,e[2]=l,e[3]=i,e[4]=a,e[5]=h}else h=e[5];const b=h,x=m?"min-h-0 flex-1":"max-h-[min(560px,70dvh,var(--radix-popover-content-available-height,70dvh))]";let k;e[14]!==d?(k=()=>{g(!1),d?.()},e[14]=d,e[15]=k):k=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{g(!1),f(!0)},e[16]=v):v=e[16];let S;e[17]!==x||e[18]!==k?(S=n.jsx(Hs,{onClose:k,onCreateOrg:v,className:x}),e[17]=x,e[18]=k,e[19]=S):S=e[19];const y=S;let $;e[20]!==r||e[21]!==y||e[22]!==m||e[23]!==c||e[24]!==a||e[25]!==b?($=m?n.jsxs(cs,{open:c,onOpenChange:g,direction:"bottom",children:[n.jsx(ds,{asChild:!0,children:b}),n.jsxs(gs,{className:"flex max-h-[85dvh] flex-col p-0",children:[n.jsx(us,{className:"sr-only",children:a("sidebar.picker.title")}),y]})]}):n.jsxs(ms,{open:c,onOpenChange:g,children:[n.jsx(fs,{asChild:!0,children:b}),n.jsx(hs,{side:r?"right":"bottom",align:"start",className:"w-[min(340px,calc(100vw-2rem))] p-0",children:y})]}),e[20]=r,e[21]=y,e[22]=m,e[23]=c,e[24]=a,e[25]=b,e[26]=$):$=e[26];let w;e[27]!==u?(w=n.jsx(Ss,{open:u,onOpenChange:f}),e[27]=u,e[28]=w):w=e[28];let C;return e[29]!==$||e[30]!==w?(C=n.jsxs(n.Fragment,{children:[$,w]}),e[29]=$,e[30]=w,e[31]=C):C=e[31],C}const ze=16;function Pt(){const t=j.c(7),e=ge(),s=qs();let d;t[0]!==e?(d=n.jsx(_e,{collapsed:e}),t[0]=e,t[1]=d):d=t[1];let r;t[2]!==s?(r=!s&&n.jsx(Vs,{}),t[2]=s,t[3]=r):r=t[3];let a;return t[4]!==d||t[5]!==r?(a=n.jsxs(n.Fragment,{children:[d,r]}),t[4]=d,t[5]=r,t[6]=a):a=t[6],a}function Us(t){const e=j.c(12),{onClose:s}=t,d=O();let r;e[0]!==s?(r=n.jsx(_e,{onNavigate:s}),e[0]=s,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex-1"}),e[2]=a):a=e[2];let l;e[3]!==d?(l=d("sidebar.header.closeSidebar"),e[3]=d,e[4]=l):l=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ye,{size:ze}),e[5]=i):i=e[5];let o;e[6]!==s||e[7]!==l?(o=n.jsx(Ne,{onClick:s,"aria-label":l,children:i}),e[6]=s,e[7]=l,e[8]=o):o=e[8];let c;return e[9]!==r||e[10]!==o?(c=n.jsxs(n.Fragment,{children:[r,a,o]}),e[9]=r,e[10]=o,e[11]=c):c=e[11],c}function Vs(){const t=j.c(12),e=O(),s=ge(),{toggleSidebar:d}=je();let r;t[0]!==e?(r=e("sidebar.header.toggleSidebar"),t[0]=e,t[1]=r):r=t[1];const a=r;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ye,{size:ze}),t[2]=l):l=t[2];let i;t[3]!==a||t[4]!==d?(i=n.jsx(ve,{asChild:!0,children:n.jsx(Ne,{"aria-label":a,onClick:d,className:"shrink-0 rounded-lg md:size-[34px] group-data-[state=collapsed]/sidebar:mx-auto",children:l})}),t[3]=a,t[4]=d,t[5]=i):i=t[5];const o=!s;let c;t[6]!==a||t[7]!==o?(c=n.jsx(Se,{side:"right",hidden:o,children:a}),t[6]=a,t[7]=o,t[8]=c):c=t[8];let g;return t[9]!==i||t[10]!==c?(g=n.jsxs(ke,{children:[i,c]}),t[9]=i,t[10]=c,t[11]=g):g=t[11],g}function ce(t){const e=j.c(30),{icon:s,label:d,isActive:r,link:a,onSelect:l,ariaLabel:i,className:o,dataTour:c,children:g}=t,u=r===void 0?!1:r,f=ge(),m=i??d,h=f?m:void 0;let b;e[0]!==o||e[1]!==c||e[2]!==u||e[3]!==h?(b={isActive:u,tooltip:h,className:o,"data-tour":c},e[0]=o,e[1]=c,e[2]=u,e[3]=h,e[4]=b):b=e[4];const x=b;let k;e[5]!==d?(k=n.jsx("span",{className:"truncate",children:d}),e[5]=d,e[6]=k):k=e[6];let v;e[7]!==s||e[8]!==k?(v=n.jsxs(n.Fragment,{children:[s,k]}),e[7]=s,e[8]=k,e[9]=v):v=e[9];const S=v;if(a){const w=u?"page":void 0;let C;e[10]!==S||e[11]!==a||e[12]!==m||e[13]!==l||e[14]!==w?(C=n.jsx(Ue,{...a,"aria-label":m,"aria-current":w,onClick:l,children:S}),e[10]=S,e[11]=a,e[12]=m,e[13]=l,e[14]=w,e[15]=C):C=e[15];let _;e[16]!==x||e[17]!==C?(_=n.jsx(oe,{asChild:!0,...x,children:C}),e[16]=x,e[17]=C,e[18]=_):_=e[18];let N;return e[19]!==g||e[20]!==_?(N=n.jsxs(fe,{children:[_,g]}),e[19]=g,e[20]=_,e[21]=N):N=e[21],N}let y;e[22]!==S||e[23]!==m||e[24]!==l||e[25]!==x?(y=n.jsx(oe,{...x,"aria-label":m,onClick:l,children:S}),e[22]=S,e[23]=m,e[24]=l,e[25]=x,e[26]=y):y=e[26];let $;return e[27]!==g||e[28]!==y?($=n.jsxs(fe,{children:[y,g]}),e[27]=g,e[28]=y,e[29]=$):$=e[29],$}function Bs(t){const e=j.c(5),{label:s,link:d,onSelect:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx($s,{size:16}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==d||e[3]!==r?(l=n.jsx("div",{className:"-mx-2 border-b border-sidebar-border px-2 py-2",children:n.jsx(le,{className:"shrink-0",children:n.jsx(ce,{icon:a,label:s,className:"text-sidebar-foreground/70",link:d,onSelect:r})})}),e[1]=s,e[2]=d,e[3]=r,e[4]=l):l=e[4],l}function Gs(){const t=j.c(8),e=O(),{capabilities:s,isPrivileged:d,loading:r,error:a}=Ve(),l=Rs().length,i=Be();let o;return t[0]!==s||t[1]!==a||t[2]!==d||t[3]!==l||t[4]!==r||t[5]!==e||t[6]!==i?(o=[{key:"account",label:"",items:[{key:"profile",label:e("settings.nav.profile"),icon:n.jsx(Ps,{size:14}),to:"/$org/settings/profile"}]},{key:"organization",label:e("settings.nav.organization"),items:[{key:"general",label:e("settings.nav.general"),icon:n.jsx(Cs,{size:14}),to:"/$org/settings/general",requires:"org:manage"},{key:"billing",label:e("settings.nav.billing"),icon:n.jsx(ws,{size:14}),to:"/$org/settings/ai-providers",group:"billing"},{key:"connect",label:e("settings.nav.connect"),icon:n.jsx(Is,{size:14}),to:"/$org/settings/connect",group:"connect"},{key:"tasks",label:e("settings.nav.tasks"),icon:n.jsx(xs,{size:14}),to:"/$org/settings/task-board",requires:"org:manage"}]},{key:"build",label:e("settings.nav.build"),items:[{key:"repositories",label:e("settings.nav.repositories"),icon:n.jsx(_s,{size:14}),to:"/$org/settings/repositories",requires:"file-configs:manage"},{key:"connections",label:e("settings.nav.connections"),icon:n.jsx(bs,{size:14}),to:"/$org/settings/connections"},{key:"agents",label:e("settings.nav.agents"),icon:n.jsx(pe,{size:14}),to:"/$org/settings/agents"},{key:"automations",label:e("settings.nav.automations"),icon:n.jsx(As,{size:14}),to:"/$org/settings/automations",requires:"automations:manage"},{key:"skills",label:e("settings.nav.skills"),icon:n.jsx(Os,{size:14}),to:"/$org/settings/skills"}]},{key:"manage",label:e("settings.nav.manage"),items:[{key:"monitor",label:e("settings.nav.monitor"),icon:n.jsx(js,{size:14}),to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:e("settings.nav.members"),icon:n.jsx(pe,{size:14}),to:"/$org/settings/members",group:"members",badge:l}]},{key:"advanced",label:e("settings.nav.advanced"),collapsible:!0,items:[{key:"secrets",label:e("settings.nav.secrets"),icon:n.jsx(Ts,{size:14}),to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"storage",label:e("settings.nav.storage"),icon:n.jsx(zs,{size:14}),to:"/$org/settings/buckets",group:"storage"},{key:"store",label:e("settings.nav.store"),icon:n.jsx(vs,{size:14}),to:"/$org/settings/store",requires:"registry:manage"},{key:"sso",label:e("settings.nav.security"),icon:n.jsx(Ge,{size:14}),to:"/$org/settings/sso",requires:"org:manage"}]}].map(g=>({...g,items:g.items.flatMap(u=>{if(u.group){const[f]=i[u.group];return f?[{...u,to:f.to}]:Je(u.group)?[]:[u]}return r||a?[u]:u.privilegedOnly?d?[u]:[]:u.requires?d||s[u.requires]?[u]:[]:[u]})})).filter(Js),t[0]=s,t[1]=a,t[2]=d,t[3]=l,t[4]=r,t[5]=e,t[6]=i,t[7]=o):o=t[7],o}function Js(t){return t.items.length>0}function Te(){const t=j.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=Ke(e);let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d={select:Ks},t[1]=d):d=t[1];const r=We(d);let a;if(t[2]!==s||t[3]!==r){const o=c=>{const g=c.replace("$org",s);return r===g||r.startsWith(`${g}/`)};a=c=>[c.to,...c.group?Qe(c.group):[]].some(o),t[2]=s,t[3]=r,t[4]=a}else a=t[4];const l=a;let i;return t[5]!==l||t[6]!==s?(i={org:s,isActive:l},t[5]=l,t[6]=s,t[7]=i):i=t[7],i}function Ks(t){return t.location.pathname}const Ws="pt-1.5";function Qs(t){const e=j.c(15),{header:s,back:d,body:r,footer:a,sheet:l}=t;let i;e[0]!==s?(i=s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-2 group-data-[state=collapsed]/sidebar:h-auto group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:py-2",children:s}),n.jsx("div",{className:"mt-1.5 h-px shrink-0 bg-sidebar-border"})]}),e[0]=s,e[1]=i):i=e[1];let o;e[2]!==d?(o=d&&n.jsx("div",{className:"shrink-0 px-2",children:d}),e[2]=d,e[3]=o):o=e[3];let c;e[4]!==r?(c=n.jsx(Ye,{className:"gap-0 overflow-y-auto px-2 pt-2 pb-2 group-data-[state=collapsed]/sidebar:[scrollbar-width:none] group-data-[state=collapsed]/sidebar:[&::-webkit-scrollbar]:hidden",children:r}),e[4]=r,e[5]=c):c=e[5];let g;e[6]!==a||e[7]!==i||e[8]!==o||e[9]!==c?(g=n.jsxs(n.Fragment,{children:[i,o,c,a]}),e[6]=a,e[7]=i,e[8]=o,e[9]=c,e[10]=g):g=e[10];const u=g;if(l){let m;return e[11]!==u?(m=n.jsx("div",{className:"group/sidebar flex h-full w-full flex-col bg-sidebar text-sidebar-foreground","data-sidebar":"sidebar","data-state":"expanded","data-tour":Z.nav,children:u}),e[11]=u,e[12]=m):m=e[12],m}let f;return e[13]!==u?(f=n.jsx(Ze,{className:Ws,"data-tour":Z.nav,children:u}),e[13]=u,e[14]=f):f=e[14],f}function Ys(){const t=j.c(9),{isActive:e}=Te();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={},t[0]=s):s=t[0];const[d,r]=T.useState(s);let a;t[1]!==e||t[2]!==d?(a=g=>d[g.key]??(!g.collapsible||g.items.some(e)),t[1]=e,t[2]=d,t[3]=a):a=t[3];const l=a;let i;t[4]!==l?(i=g=>r(u=>({...u,[g.key]:!l(g)})),t[4]=l,t[5]=i):i=t[5];const o=i;let c;return t[6]!==l||t[7]!==o?(c={isOpen:l,toggle:o},t[6]=l,t[7]=o,t[8]=c):c=t[8],c}function Zs(t){const e=j.c(21),{group:s,open:d,onToggle:r,className:a}=t;let l,i,o,c,g;if(e[0]!==a||e[1]!==s.collapsible||e[2]!==s.label||e[3]!==r||e[4]!==d){g=Symbol.for("react.early_return_sentinel");e:{const h=R("text-xs font-medium text-muted-foreground/60 truncate",a);if(!s.collapsible){g=n.jsx("p",{className:h,children:s.label});break e}l="button",i=r,o=d,c=R("flex w-full items-center gap-1 rounded-md hover:text-muted-foreground",h)}e[0]=a,e[1]=s.collapsible,e[2]=s.label,e[3]=r,e[4]=d,e[5]=l,e[6]=i,e[7]=o,e[8]=c,e[9]=g}else l=e[5],i=e[6],o=e[7],c=e[8],g=e[9];if(g!==Symbol.for("react.early_return_sentinel"))return g;let u;e[10]!==d?(u=d?n.jsx(es,{size:12}):n.jsx(ss,{size:12}),e[10]=d,e[11]=u):u=e[11];let f;e[12]!==s.label?(f=n.jsx("span",{className:"truncate",children:s.label}),e[12]=s.label,e[13]=f):f=e[13];let m;return e[14]!==l||e[15]!==i||e[16]!==o||e[17]!==c||e[18]!==u||e[19]!==f?(m=n.jsxs("button",{type:l,onClick:i,"aria-expanded":o,className:c,children:[u,f]}),e[14]=l,e[15]=i,e[16]=o,e[17]=c,e[18]=u,e[19]=f,e[20]=m):m=e[20],m}function Xs(t){const e=j.c(5),{icon:s,badge:d}=t;let r;e[0]!==d?(r=d?n.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,e[0]=d,e[1]=r):r=e[1];let a;return e[2]!==s||e[3]!==r?(a=n.jsxs("span",{className:"relative shrink-0",children:[s,r]}),e[2]=s,e[3]=r,e[4]=a):a=e[4],a}function et(t){const e=j.c(22),{onNavigate:s}=t,d=O(),r=Gs(),{org:a,isActive:l}=Te(),{isOpen:i,toggle:o}=Ys();let c;if(e[0]!==r||e[1]!==l||e[2]!==i||e[3]!==s||e[4]!==a||e[5]!==o){let b;e[7]!==l||e[8]!==i||e[9]!==s||e[10]!==a||e[11]!==o?(b=(x,k)=>n.jsxs("div",{className:"flex flex-col",children:[x.label&&n.jsx(Zs,{group:x,open:i(x),onToggle:()=>o(x),className:R("px-2 pt-1.5 pb-0.5",k>0&&"mt-3")}),i(x)&&n.jsx(le,{className:"gap-0.5",children:x.items.map(v=>n.jsx(ce,{icon:n.jsx(Xs,{icon:v.icon,badge:v.badge}),label:v.label,isActive:l(v),link:{to:v.to,params:{org:a}},className:"gap-2.5",onSelect:()=>{F("settings_nav_clicked",{section_key:v.key,group_key:x.key}),s?.()}},v.key))})]},x.key),e[7]=l,e[8]=i,e[9]=s,e[10]=a,e[11]=o,e[12]=b):b=e[12],c=r.map(b),e[0]=r,e[1]=l,e[2]=i,e[3]=s,e[4]=a,e[5]=o,e[6]=c}else c=e[6];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[13]=g):g=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("span",{className:"shrink-0",children:n.jsx(ts,{size:14})}),e[14]=u):u=e[14];let f;e[15]!==d?(f=d("settings.nav.signOut"),e[15]=d,e[16]=f):f=e[16];let m;e[17]!==f?(m=n.jsxs("div",{className:"mt-auto flex flex-col",children:[g,n.jsx(le,{className:"gap-0.5",children:n.jsx(ce,{icon:u,label:f,className:"gap-2.5",onSelect:st})})]}),e[17]=f,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=n.jsxs(n.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function st(){F("signed_out",{source:"settings_sidebar"}),Xe(),M.signOut()}function tt(t){const e=j.c(8),{onNavigate:s}=t,d=O(),{org:r}=de();let a;e[0]!==d?(a=d("settings.nav.backToHome"),e[0]=d,e[1]=a):a=e[1];let l;e[2]!==r.slug?(l={to:"/$org/home",params:{org:r.slug}},e[2]=r.slug,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==a||e[6]!==l?(i=n.jsx(Bs,{label:a,link:l,onSelect:s}),e[4]=s,e[5]=a,e[6]=l,e[7]=i):i=e[7],i}function nt(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"px-4 pb-1",children:n.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.358.4"]})}),t[0]=e):e=t[0],e}function At(t){const e=j.c(9),{onClose:s}=t;let d,r,a;e[0]!==s?(d=n.jsx(Us,{onClose:s}),r=n.jsx(tt,{onNavigate:s}),a=n.jsx(et,{onNavigate:s}),e[0]=s,e[1]=d,e[2]=r,e[3]=a):(d=e[1],r=e[2],a=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(nt,{}),e[4]=l):l=e[4];let i;return e[5]!==d||e[6]!==r||e[7]!==a?(i=n.jsx(Qs,{sheet:!0,header:d,back:r,body:a,footer:l}),e[5]=d,e[6]=r,e[7]=a,e[8]=i):i=e[8],i}export{ce as S,qs as a,Pt as b,Qs as c,nt as d,et as e,tt as f,Us as g,Bs as h,At as i,ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,b as d,H as h,j as b,a_ as S,bm as p,bn as x,bo as g}from"./index-
|
|
1
|
+
import{c as u,b as d,H as h,j as b,a_ as S,bm as p,bn as x,bo as g}from"./index-CsUNCFTt.js";import{T as j}from"./toolbar-icon-button-C-dzzl3n.js";function y(m){const e=u.c(7),{className:o}=m,n=d(),{toggleSidebar:i}=h();let t;e[0]!==n?(t=n("layouts.shellControls.toggleSidebar"),e[0]=n,e[1]=t):t=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(S,{size:16}),e[2]=s):s=e[2];let l;return e[3]!==o||e[4]!==t||e[5]!==i?(l=b.jsx(j,{onClick:i,"aria-label":t,className:o,children:s}),e[3]=o,e[4]=t,e[5]=i,e[6]=l):l=e[6],l}function M(m){const e=u.c(16),{renderSidebar:o}=m,n=d(),{openMobile:i,setOpenMobile:t}=h();let s;e[0]!==n?(s=n("layouts.shellControls.navigationTitle"),e[0]=n,e[1]=s):s=e[1];let l;e[2]!==s?(l=b.jsx(p,{className:"sr-only",children:s}),e[2]=s,e[3]=l):l=e[3];let a;e[4]!==t?(a=()=>t(!1),e[4]=t,e[5]=a):a=e[5];let r;e[6]!==o||e[7]!==a?(r=o({onClose:a}),e[6]=o,e[7]=a,e[8]=r):r=e[8];let c;e[9]!==l||e[10]!==r?(c=b.jsxs(x,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",children:[l,r]}),e[9]=l,e[10]=r,e[11]=c):c=e[11];let f;return e[12]!==i||e[13]!==t||e[14]!==c?(f=b.jsx(g,{open:i,onOpenChange:t,children:c}),e[12]=i,e[13]=t,e[14]=c,e[15]=f):f=e[15],f}export{M,y as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,b as W,e as Je,j as n,B as z,t as Ue,cR as me,z as kt,a as Ke,w as Ut,x as Tt,K as We,cS as Gt,cT as Jt,M as qe,l as lt,bq as Vt,r as V,d as Nt,G as mt,m as Ve,o as ct,bb as gt,v as Wt,cU as Yt,cV as Qt,cW as Xt,cX as Zt,cY as en,C as tn,u as nn,Z as sn,ce as on,cZ as an,k as _t,c_ as at,c$ as rn,d0 as ln,O as cn,d1 as dn}from"./index-BNii9H3k.js";import{A as ot}from"./avatar-DeXAxDZB.js";import{t as At,b as ht}from"./Users03-B_lI977b.js";import{i as un}from"./SearchLg-BaYqDNtw.js";import{b9 as mn,aD as fn,b6 as ee,ba as gn,aK as hn,bb as pn,n as pt,g as yn,f as bn,bc as xn,d as Sn}from"./agent-icon-D228wxkn.js";import{s as wn}from"./XClose-DRn4_qWI.js";import{D as vn,u as jn,c as kn,d as Tn,b as Nn}from"./thread-route-Byu3ebg8.js";import{l as Pt}from"./anchors-yqDzZN4K.js";import{u as _n,D as te}from"./use-destination-route-Bhiy4EoU.js";import{a as An,u as Pn,P as Cn}from"./project-icon-DPaLVtKI.js";import{i as En}from"./source-system-tabs-CnEGUb4r.js";import{u as Ct,a as On}from"./use-panel-navigate-HDWlFxjd.js";import{i as ae}from"./CheckCircle-DVzwjrU9.js";import{i as yt}from"./Tool02-DxZfvlXn.js";import{i as rt}from"./Monitor01-CL2iHj9m.js";import{i as re}from"./Zap-CQJqW5vE.js";import{c as Et,d as Ot,b as It,D as Lt,h as In,e as Ln}from"./dialog-BMI17Dr2.js";import{i as $n}from"./Share07-BDlgOZKG.js";import{s as bt}from"./Plus-BJwCMzrn.js";import{a as Dn}from"./Settings02-BWRldyBo.js";import{d as le,e as Be,f as Rn,a as Mn,b as zn,c as Fn}from"./command-DR3zyIhn.js";import{I as qn}from"./integration-icon-sBwTb2sI.js";import{q as Kn,S as $t,a as Bn,m as Hn}from"./use-mcp-client-CTci8Fpw.js";import{S as Un,a as Gn}from"./hooks-D5lhSBKy.js";import{u as Jn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Vn}from"./required-auth-layout-vMOV7A-1.js";import{A as Wn}from"./autosend-Z96CEx8G.js";import{f as Yn}from"./use-organization-settings-k0fnufc_.js";import{u as Qn}from"./use-org-sso-DUVDDhja.js";import{u as Xn}from"./use-org-notice---l3wso1.js";function Zn(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ue.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Je(v),b=es;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(z,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(z,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function es(){window.location.href="/"}function xt(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ts,u=o==="not-found",m=u?un:kt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==s||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(z,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(me,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ts(){window.location.href="/"}function ns(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let u;e[0]!==s?(u=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=u):u=e[1];let m;e[2]!==o?(m=()=>{Ut(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Je(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ue.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=Je(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(ot,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(z,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(z,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function ss(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(ot,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(z,{variant:"ghost",onClick:os,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function os(){window.location.href="/"}function is(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=rs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ue.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=Je(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(z,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(z,{variant:"ghost",onClick:as,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function as(){window.location.href="/"}function rs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ls(t){const e=R.c(7);let s;e[0]!==t?(s=We.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Tt(o)}function cs({orgSlug:t}){const{data:e}=ls(t);if(e.status!=="member"){Gt()?.org===t&&Jt();const s=localStorage.getItem(qe.lastOrgSlug())===t;if(s&&localStorage.removeItem(qe.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(ns,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Zn,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(is,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ss,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Dt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=lt("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:lt("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ds=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function us(t){return ds.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ms(t,e){return us(e).map(s=>({element:Pt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const fs=Pt("switcher"),gs=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function hs(t,e){return ms(t,e).filter(s=>typeof s.element=="string"&&Rt(s.element))}function ps(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function ys(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function bs(t,e){if(He)return;He=!0;let s=0;const r=()=>{if(!Rt(fs)&&s++<gs){requestAnimationFrame(r);return}const o=hs(t,e);if(o.length===0){He=!1;return}ys().then(a=>{a(ps(t,o)).drive()}).catch(()=>{He=!1})};r()}const xs=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:rt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:rt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:rt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Mt=xs,st="studio.release-feed.v1",dt=new Set;let de="",ue={},ut=!1;function Ss(){if(ut)return de||"{}";try{return localStorage.getItem(st)??"{}"}catch{return de||"{}"}}function zt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ss();return t!==de&&(de=t,ue=zt(t)),ue}function ws(t){dt.add(t);const e=s=>{if(!(s.key!==st&&s.key!==null)){try{const r=localStorage.getItem(st)??"{}",a={...zt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function vs(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(st,de),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function js(){const t=R.c(7),e=V.useSyncExternalStore(ws,St,St);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=ks;let a;t[2]!==e?(a=Mt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function ks(t){ue[t]||vs({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ts=720*60*60*1e3,Ns=10080*60*1e3;function _s(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function As(t){const e=Mt[0];if(!e)return null;const s=_s(e.date),r=t-s;return r<0||r>Ts?null:e}function Ps(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Cs(t,e){const s=Ps(t);return s===null?!1:e-s>=Ns}function Es(){const t=R.c(52),e=W(),s=An(),r=_n(),o=Ct(),a=!!s,i=r===te.home&&!s;let u;t[0]!==o||t[1]!==a?(u=a&&!!o&&En(o),t[0]=o,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=js(),[b,p]=V.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=As(O),!l){d=null;break e}if(!Cs(h?.user?.createdAt,O)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),bs(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(z,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(z,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Os),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Os(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ft=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Ft?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Is=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function wt(t){return Ft?t.metaKey:t.ctrlKey}function Ls(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function $s(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Et,{children:n.jsx(Ot,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Is.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Lt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const vt=8;function zs(t){const{org:e}=mt(),s=Kn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:r}=Ve({queryKey:We.globalSearch(e.id,t,vt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:vt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Fs(t){const e=R.c(191),{open:s,onOpenChange:r}=t,o=W(),a=Nt(),{org:i}=mt(),{projects:u,hasProjects:m}=Pn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=zs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(F,ie)=>{ct("command_palette_used",{kind:ie}),F(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.slug?(x=F=>{if(F.type==="connection"){if(!F.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:F.slug}});return}if(F.type==="task"){a({to:te.tasks,params:{org:i.slug,taskKey:F.key??void 0}});return}a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:F.virtual_mcp_id??void 0,thread:F.id}})},e[4]=a,e[5]=i.slug,e[6]=x):x=e[6];const S=x;let y;e[7]!==h?(y=[h],e[7]=h,e[8]=y):y=e[8];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[9]!==l||e[10]!==d||e[11]!==m||e[12]!==b||e[13]!==a||e[14]!==r||e[15]!==s||e[16]!==S||e[17]!==i.slug||e[18]!==u||e[19]!==w||e[20]!==o||e[21]!==h){const F=b.filter(Ks),ie=b.filter(qs);let ne;e[35]!==i.slug?(ne={org:i.slug},e[35]=i.slug,e[36]=ne):ne=e[36];const D=ne;let Z;e[37]!==o?(Z=o("sidebar.navDestinations.home"),e[37]=o,e[38]=Z):Z=e[38];let Y;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(yn,{}),e[39]=Y):Y=e[39];let B;e[40]!==D||e[41]!==Z?(B={key:"home",label:Z,icon:Y,to:te.home,params:D},e[40]=D,e[41]=Z,e[42]=B):B=e[42];let Q;e[43]!==o?(Q=o("sidebar.navDestinations.reports"),e[43]=o,e[44]=Q):Q=e[44];let se;e[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(bn,{}),e[45]=se):se=e[45];let H;e[46]!==D||e[47]!==Q?(H={key:"reports",label:Q,icon:se,to:te.reports,params:D},e[46]=D,e[47]=Q,e[48]=H):H=e[48];let U;e[49]!==o?(U=o("sidebar.navDestinations.tasks"),e[49]=o,e[50]=U):U=e[50];let oe;e[51]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(pt,{}),e[51]=oe):oe=e[51];let X;e[52]!==i.slug?(X={org:i.slug,taskKey:void 0},e[52]=i.slug,e[53]=X):X=e[53];let L;e[54]!==U||e[55]!==X?(L={key:"tasks",label:U,icon:oe,to:te.tasks,params:X},e[54]=U,e[55]=X,e[56]=L):L=e[56];let q;e[57]!==o?(q=o("sidebar.navDestinations.library"),e[57]=o,e[58]=q):q=e[58];let Ye;e[59]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx($n,{}),e[59]=Ye):Ye=e[59];let fe;e[60]!==D||e[61]!==q?(fe={key:"library",label:q,icon:Ye,to:te.library,params:D},e[60]=D,e[61]=q,e[62]=fe):fe=e[62];let ge;e[63]!==o?(ge=o("sidebar.navDestinations.discover"),e[63]=o,e[64]=ge):ge=e[64];let Qe;e[65]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(xn,{}),e[65]=Qe):Qe=e[65];let he;e[66]!==D||e[67]!==ge?(he={key:"discover",label:ge,icon:Qe,to:te.discover,params:D},e[66]=D,e[67]=ge,e[68]=he):he=e[68];let Xe;e[69]!==B||e[70]!==H||e[71]!==L||e[72]!==fe||e[73]!==he?(Xe=[B,H,L,fe,he],e[69]=B,e[70]=H,e[71]=L,e[72]=fe,e[73]=he,e[74]=Xe):Xe=e[74];const it=Xe;P=Rn,j=s,e[75]!==l||e[76]!==r?(g=$=>$?r(!0):l(),e[75]=l,e[76]=r,e[77]=g):g=e[77],e[78]!==o?(T=o("commandPalette.title"),e[78]=o,e[79]=T):T=e[79],e[80]!==o?(k=o("commandPalette.description"),e[80]=o,e[81]=k):k=e[81];let pe;e[82]!==o?(pe=o("commandPalette.placeholder"),e[82]=o,e[83]=pe):pe=e[83],e[84]!==pe||e[85]!==h?(A=n.jsx(Mn,{placeholder:pe,value:h,onValueChange:v}),e[84]=pe,e[85]=h,e[86]=A):A=e[86],_=zn;let ye;e[87]!==o?(ye=o("commandPalette.empty"),e[87]=o,e[88]=ye):ye=e[88],e[89]!==ye?(E=n.jsx(Fn,{children:ye}),e[89]=ye,e[90]=E):E=e[90];let be;e[91]!==o?(be=o("commandPalette.goTo"),e[91]=o,e[92]=be):be=e[92];let xe;e[93]!==it||e[94]!==d||e[95]!==a?(xe=it.map($=>n.jsxs(le,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[93]=it,e[94]=d,e[95]=a,e[96]=xe):xe=e[96],e[97]!==be||e[98]!==xe?(C=n.jsx(Be,{heading:be,children:xe}),e[97]=be,e[98]=xe,e[99]=C):C=e[99],e[100]!==d||e[101]!==m||e[102]!==a||e[103]!==i.slug||e[104]!==u||e[105]!==o?(O=m&&n.jsx(Be,{heading:o("commandPalette.projects"),children:u.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:$.id}}),"project"),children:[n.jsx(Cn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[100]=d,e[101]=m,e[102]=a,e[103]=i.slug,e[104]=u,e[105]=o,e[106]=O):O=e[106];let Se;e[107]!==o?(Se=o("commandPalette.actions"),e[107]=o,e[108]=Se):Se=e[108];let we;e[109]!==o?(we=o("commandPalette.newProject"),e[109]=o,e[110]=we):we=e[110];let ve;e[111]!==d||e[112]!==a||e[113]!==i.slug?(ve=()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:void 0}}),"new_project"),e[111]=d,e[112]=a,e[113]=i.slug,e[114]=ve):ve=e[114];let Ze;e[115]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(bt,{}),e[115]=Ze):Ze=e[115];let je;e[116]!==o?(je=o("commandPalette.newProject"),e[116]=o,e[117]=je):je=e[117];let ke;e[118]!==je?(ke=n.jsx("span",{children:je}),e[118]=je,e[119]=ke):ke=e[119];let Te;e[120]!==we||e[121]!==ve||e[122]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[120]=we,e[121]=ve,e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==o?(Ne=o("commandPalette.inviteTeammate"),e[124]=o,e[125]=Ne):Ne=e[125];let _e;e[126]!==d||e[127]!==a||e[128]!==D?(_e=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[126]=d,e[127]=a,e[128]=D,e[129]=_e):_e=e[129];let et;e[130]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Sn,{}),e[130]=et):et=e[130];let Ae;e[131]!==o?(Ae=o("commandPalette.inviteTeammate"),e[131]=o,e[132]=Ae):Ae=e[132];let Pe;e[133]!==Ae?(Pe=n.jsx("span",{children:Ae}),e[133]=Ae,e[134]=Pe):Pe=e[134];let Ce;e[135]!==Ne||e[136]!==_e||e[137]!==Pe?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Pe]}),e[135]=Ne,e[136]=_e,e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==o?(Ee=o("commandPalette.addConnection"),e[139]=o,e[140]=Ee):Ee=e[140];let Oe;e[141]!==d||e[142]!==a||e[143]!==D?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[141]=d,e[142]=a,e[143]=D,e[144]=Oe):Oe=e[144];let tt;e[145]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(bt,{}),e[145]=tt):tt=e[145];let Ie;e[146]!==o?(Ie=o("commandPalette.addConnection"),e[146]=o,e[147]=Ie):Ie=e[147];let Le;e[148]!==Ie?(Le=n.jsx("span",{children:Ie}),e[148]=Ie,e[149]=Le):Le=e[149];let $e;e[150]!==Ee||e[151]!==Oe||e[152]!==Le?($e=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,Le]}),e[150]=Ee,e[151]=Oe,e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==o?(De=o("commandPalette.settings"),e[154]=o,e[155]=De):De=e[155];let Re;e[156]!==d||e[157]!==a||e[158]!==D?(Re=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[156]=d,e[157]=a,e[158]=D,e[159]=Re):Re=e[159];let nt;e[160]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{}),e[160]=nt):nt=e[160];let Me;e[161]!==o?(Me=o("commandPalette.settings"),e[161]=o,e[162]=Me):Me=e[162];let ze;e[163]!==Me?(ze=n.jsx("span",{children:Me}),e[163]=Me,e[164]=ze):ze=e[164];let Fe;e[165]!==De||e[166]!==Re||e[167]!==ze?(Fe=n.jsxs(le,{value:De,onSelect:Re,children:[nt,ze]}),e[165]=De,e[166]=Re,e[167]=ze,e[168]=Fe):Fe=e[168],e[169]!==Se||e[170]!==Te||e[171]!==Ce||e[172]!==$e||e[173]!==Fe?(I=n.jsxs(Be,{heading:Se,children:[Te,Ce,$e,Fe]}),e[169]=Se,e[170]=Te,e[171]=Ce,e[172]=$e,e[173]=Fe,e[174]=I):I=e[174],M=F.length>0&&n.jsx(Be,{heading:o("commandPalette.connections"),children:F.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(qn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=ie.length>0&&n.jsx(Be,{heading:o("commandPalette.results"),children:ie.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(pt,{}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[9]=l,e[10]=d,e[11]=m,e[12]=b,e[13]=a,e[14]=r,e[15]=s,e[16]=S,e[17]=i.slug,e[18]=u,e[19]=w,e[20]=o,e[21]=h,e[22]=_,e[23]=P,e[24]=N,e[25]=j,e[26]=g,e[27]=T,e[28]=k,e[29]=A,e[30]=E,e[31]=C,e[32]=O,e[33]=I,e[34]=M}else _=e[22],P=e[23],N=e[24],j=e[25],g=e[26],T=e[27],k=e[28],A=e[29],E=e[30],C=e[31],O=e[32],I=e[33],M=e[34];let K;e[175]!==_||e[176]!==N||e[177]!==E||e[178]!==C||e[179]!==O||e[180]!==I||e[181]!==M?(K=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[175]=_,e[176]=N,e[177]=E,e[178]=C,e[179]=O,e[180]=I,e[181]=M,e[182]=K):K=e[182];let G;return e[183]!==P||e[184]!==j||e[185]!==g||e[186]!==T||e[187]!==k||e[188]!==A||e[189]!==K?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,K]}),e[183]=P,e[184]=j,e[185]=g,e[186]=T,e[187]=k,e[188]=A,e[189]=K,e[190]=G):G=e[190],G}function qs(t){return t.type!=="connection"}function Ks(t){return t.type==="connection"}const Ge=new Un(!1);function Bs(){Ge.set(!0)}function Hs(){Ge.set(!1)}function Us(){const t=R.c(2),e=V.useSyncExternalStore(Ge.subscribe,Ge.get);let s;return t[0]!==e?(s=[e,Ge.set],t[0]=e,t[1]=s):s=t[1],s}const Gs=300*1e3,Js=2;function Vs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ws(t,e){return t.count>=Js&&t.version!==null&&t.version!==e}function Ys(){const t=R.c(43),e=W(),s=Jn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Xs},t[0]=r):r=t[0];const o=Je(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:We.appVersionCheck(),queryFn:Qs,refetchInterval:Gs,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ve(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);u!==m&&(h(u),b(K=>Vs(K,i,"4.358.3")));const[p,l]=V.useState(null),f=s;let d;t[3]!==s||t[4]!==o?(d=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Ws(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(gt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.358.3"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=lt(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(gt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(z,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function Qs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Xs(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Zs(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const eo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>Zs(qe.ptBrAnnouncementSeen(t));function to(){const t=R.c(35),e=W(),[s,r]=Wt(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<eo,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&s.language==="en"&&!jt(u).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&u&&(jt(u).mark(),r(so),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{ct("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(no),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Ot,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(In,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Et,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(z,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(z,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(Ln,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let K;return t[32]!==l||t[33]!==M?(K=n.jsx(Lt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=K):K=t[34],K}function no(t){return{...t,language:"en"}}function so(t){return{...t,language:"pt-BR"}}function oo(t){const e=Qt(t);return typeof e=="string"?e:void 0}function io(){return oo("experiment-pipeline-check"),null}function ao(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;Xt(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(io,{}),e[0]=r):r=e[0],r}function ro(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,u={mainpanel:void 0};s?u.virtualmcpid=s:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(u.mainpanel=o.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const qt="studio:thread-layout:v3",lo=50;function Kt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function co(t,e,s,r=lo){const o=t.filter(([a])=>a!==e);for(o.push([e,Kt(s)]);o.length>r;)o.shift();return o}function ft(){try{const t=sessionStorage.getItem(qt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Bt(t){try{sessionStorage.setItem(qt,JSON.stringify(t))}catch{}}function uo(t,e){t&&Bt(co(ft(),t,e))}function mo(t){if(!t)return null;const e=ft().find(([s])=>s===t);return e?Kt(e[1]):null}function si(t){if(!t)return;const e=ft(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Bt(s)}function Ht(t){return{queryKey:We.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function oi(t){const e=R.c(10);let s;e[0]!==t?(s=Ht(t),e[0]=t,e[1]=s):s=e[1];const r=Ve(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function fo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const u=i,m=go;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(z,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(z,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function go(){window.location.href="/"}function ho(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let u;e[3]!==s.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const po="/settings/infra-billing";function yo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(po)}function bo(t){const e=R.c(8),{org:s,children:r}=t,a=Yn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==s||e[6]!==u?(m=n.jsx(dn,{org:s,project:u,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=m):m=e[7],m}function xo(){const t=Nt(),e=Gn(),{org:s}=mt(),r=nn({strict:!1}),o=Ct(),{openPanel:a,closePanel:i}=On(),u=jn(),m=kn(),h=Tn(),v=Nn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&uo(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:mo(f),w=Bn(s.id).id,_=ro({prev:{virtualmcpid:u,tabId:o},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Wn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const So=new Set(["/$org/","/$org/home"]);function wo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:vo},t[0]=e):e=t[0],_t(e)}function vo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&So.has(e)}function jo(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[o,a]=V.useState(!1),[i,u]=Us(),m=on(),h=wo(),v=r??"";let c;t[1]!==v?(c=Ht(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ve(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(wt(q)&&q.code==="KeyK"){q.preventDefault(),Bs();return}if(q.key==="?"&&!Ls(q.target)){q.preventDefault(),a(!0);return}wt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=We.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(To),q=at(L);return L&&!q&&localStorage.setItem(qe.lastOrgSlug(),r),f&&L&&ln(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Tt(j),T=g?.id,k=g?.slug,{data:A}=Qn(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Xn(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:ko},t[22]=O):O=t[22];const I=_t(O),M=C?.severity==="block"&&!yo(I),K=T??"",G=k??"";let F;t[23]!==K||t[24]!==G?(F=Hn({connectionId:$t,orgId:K,orgSlug:G}),t[23]=K,t[24]=G,t[25]=F):F=t[25];const ie=!!T&&!!k;let ne;if(t[26]!==F||t[27]!==ie?(ne={...F,enabled:ie},t[26]=F,t[27]=ie,t[28]=ne):ne=t[28],Ve(ne),(!g||at(g)||E||M)&&Hs(),!g){let L;return t[29]!==r?(L=n.jsx(cs,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(at(g)){localStorage.getItem(qe.lastOrgSlug())===r&&localStorage.removeItem(qe.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(ho,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(fo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const Z=g.logo??null;let Y;t[41]!==g||t[42]!==Z?(Y={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=Y):Y=t[43];let B;t[44]!==g?(B=n.jsx(ao,{activeOrg:g}),t[44]=g,t[45]=B):B=t[45];let Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(cn,{}),t[46]=Q):Q=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Es,{}),n.jsx(Ys,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Fs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx($s,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(to,{}),t[53]=oe):oe=t[53];let X;return t[54]!==Y||t[55]!==B||t[56]!==H||t[57]!==U?(X=n.jsxs(bo,{org:Y,children:[B,Q,se,H,U,oe]}),t[54]=Y,t[55]=B,t[56]=H,t[57]=U,t[58]=X):X=t[58],X}function ko(t){return t.location.pathname}function To(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Vn,{children:n.jsx(jo,{})}),t[0]=e):e=t[0],e}const ii=Object.freeze(Object.defineProperty({__proto__:null,default:No,usePanelActions:xo},Symbol.toStringTag,{value:"Module"}));export{J as K,oi as a,si as f,wt as i,Bs as o,ii as s,xo as u};
|
|
1
|
+
import{c as R,b as W,e as Je,j as n,B as z,t as Ue,cR as me,z as kt,a as Ke,w as Ut,x as Tt,K as We,cS as Gt,cT as Jt,M as qe,l as lt,bq as Vt,r as V,d as Nt,G as mt,m as Ve,o as ct,bb as gt,v as Wt,cU as Yt,cV as Qt,cW as Xt,cX as Zt,cY as en,C as tn,u as nn,Z as sn,ce as on,cZ as an,k as _t,c_ as at,c$ as rn,d0 as ln,O as cn,d1 as dn}from"./index-CsUNCFTt.js";import{A as ot}from"./avatar-Bd9Rksmp.js";import{t as At,b as ht}from"./Users03-BYYeaXKm.js";import{i as un}from"./SearchLg-f_L2Kvyk.js";import{b9 as mn,aD as fn,b6 as ee,ba as gn,aK as hn,bb as pn,n as pt,g as yn,f as bn,bc as xn,d as Sn}from"./agent-icon-CudHlm3I.js";import{s as wn}from"./XClose-Cwrkqthu.js";import{D as vn,u as jn,c as kn,d as Tn,b as Nn}from"./thread-route-BiOADTxM.js";import{l as Pt}from"./anchors-yqDzZN4K.js";import{u as _n,D as te}from"./use-destination-route-Cnt7EB8f.js";import{a as An,u as Pn,P as Cn}from"./project-icon-B6leAseu.js";import{i as En}from"./source-system-tabs-CnEGUb4r.js";import{u as Ct,a as On}from"./use-panel-navigate-Da6Ty1S6.js";import{i as ae}from"./CheckCircle-BfII6xai.js";import{i as yt}from"./Tool02-CGD2nPmr.js";import{i as rt}from"./Monitor01-YRHjA6R9.js";import{i as re}from"./Zap-C3LXNIn_.js";import{c as Et,d as Ot,b as It,D as Lt,h as In,e as Ln}from"./dialog-vW1U_9BE.js";import{i as $n}from"./Share07-C1p_MWl6.js";import{s as bt}from"./Plus-n8T8nTev.js";import{a as Dn}from"./Settings02-Bx0NVz3k.js";import{d as le,e as Be,f as Rn,a as Mn,b as zn,c as Fn}from"./command-ByPccqvA.js";import{I as qn}from"./integration-icon-ByFS2bKz.js";import{q as Kn,S as $t,a as Bn,m as Hn}from"./use-mcp-client-DpVIRGbg.js";import{S as Un,a as Gn}from"./hooks-aYH-Zsjx.js";import{u as Jn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Vn}from"./required-auth-layout-BXxzIMVl.js";import{A as Wn}from"./autosend-Clc37UTr.js";import{f as Yn}from"./use-organization-settings-CiaoV5Jh.js";import{u as Qn}from"./use-org-sso-1vJuA_ma.js";import{u as Xn}from"./use-org-notice-Quz1j7e9.js";function Zn(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ue.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Je(v),b=es;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(z,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(z,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function es(){window.location.href="/"}function xt(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ts,u=o==="not-found",m=u?un:kt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==s||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(z,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(me,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ts(){window.location.href="/"}function ns(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let u;e[0]!==s?(u=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=u):u=e[1];let m;e[2]!==o?(m=()=>{Ut(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Je(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ue.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ue.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=Je(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(ot,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(z,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(z,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function ss(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(ot,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(z,{variant:"ghost",onClick:os,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function os(){window.location.href="/"}function is(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=rs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ue.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=Je(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(ot,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(At,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(z,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(z,{variant:"ghost",onClick:as,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function as(){window.location.href="/"}function rs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ls(t){const e=R.c(7);let s;e[0]!==t?(s=We.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Tt(o)}function cs({orgSlug:t}){const{data:e}=ls(t);if(e.status!=="member"){Gt()?.org===t&&Jt();const s=localStorage.getItem(qe.lastOrgSlug())===t;if(s&&localStorage.removeItem(qe.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(ns,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Zn,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(is,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ss,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Dt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=lt("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:lt("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ds=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function us(t){return ds.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ms(t,e){return us(e).map(s=>({element:Pt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const fs=Pt("switcher"),gs=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function hs(t,e){return ms(t,e).filter(s=>typeof s.element=="string"&&Rt(s.element))}function ps(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function ys(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function bs(t,e){if(He)return;He=!0;let s=0;const r=()=>{if(!Rt(fs)&&s++<gs){requestAnimationFrame(r);return}const o=hs(t,e);if(o.length===0){He=!1;return}ys().then(a=>{a(ps(t,o)).drive()}).catch(()=>{He=!1})};r()}const xs=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:rt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:rt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:rt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Mt=xs,st="studio.release-feed.v1",dt=new Set;let de="",ue={},ut=!1;function Ss(){if(ut)return de||"{}";try{return localStorage.getItem(st)??"{}"}catch{return de||"{}"}}function zt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ss();return t!==de&&(de=t,ue=zt(t)),ue}function ws(t){dt.add(t);const e=s=>{if(!(s.key!==st&&s.key!==null)){try{const r=localStorage.getItem(st)??"{}",a={...zt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function vs(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(st,de),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function js(){const t=R.c(7),e=V.useSyncExternalStore(ws,St,St);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=ks;let a;t[2]!==e?(a=Mt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function ks(t){ue[t]||vs({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ts=720*60*60*1e3,Ns=10080*60*1e3;function _s(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function As(t){const e=Mt[0];if(!e)return null;const s=_s(e.date),r=t-s;return r<0||r>Ts?null:e}function Ps(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Cs(t,e){const s=Ps(t);return s===null?!1:e-s>=Ns}function Es(){const t=R.c(52),e=W(),s=An(),r=_n(),o=Ct(),a=!!s,i=r===te.home&&!s;let u;t[0]!==o||t[1]!==a?(u=a&&!!o&&En(o),t[0]=o,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=js(),[b,p]=V.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=As(O),!l){d=null;break e}if(!Cs(h?.user?.createdAt,O)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),bs(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(z,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(z,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Os),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Os(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ft=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Ft?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Is=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function wt(t){return Ft?t.metaKey:t.ctrlKey}function Ls(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function $s(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Et,{children:n.jsx(Ot,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Is.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Lt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const vt=8;function zs(t){const{org:e}=mt(),s=Kn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:r}=Ve({queryKey:We.globalSearch(e.id,t,vt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:vt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Fs(t){const e=R.c(191),{open:s,onOpenChange:r}=t,o=W(),a=Nt(),{org:i}=mt(),{projects:u,hasProjects:m}=Pn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=zs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(F,ie)=>{ct("command_palette_used",{kind:ie}),F(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.slug?(x=F=>{if(F.type==="connection"){if(!F.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:F.slug}});return}if(F.type==="task"){a({to:te.tasks,params:{org:i.slug,taskKey:F.key??void 0}});return}a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:F.virtual_mcp_id??void 0,thread:F.id}})},e[4]=a,e[5]=i.slug,e[6]=x):x=e[6];const S=x;let y;e[7]!==h?(y=[h],e[7]=h,e[8]=y):y=e[8];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[9]!==l||e[10]!==d||e[11]!==m||e[12]!==b||e[13]!==a||e[14]!==r||e[15]!==s||e[16]!==S||e[17]!==i.slug||e[18]!==u||e[19]!==w||e[20]!==o||e[21]!==h){const F=b.filter(Ks),ie=b.filter(qs);let ne;e[35]!==i.slug?(ne={org:i.slug},e[35]=i.slug,e[36]=ne):ne=e[36];const D=ne;let Z;e[37]!==o?(Z=o("sidebar.navDestinations.home"),e[37]=o,e[38]=Z):Z=e[38];let Y;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(yn,{}),e[39]=Y):Y=e[39];let B;e[40]!==D||e[41]!==Z?(B={key:"home",label:Z,icon:Y,to:te.home,params:D},e[40]=D,e[41]=Z,e[42]=B):B=e[42];let Q;e[43]!==o?(Q=o("sidebar.navDestinations.reports"),e[43]=o,e[44]=Q):Q=e[44];let se;e[45]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(bn,{}),e[45]=se):se=e[45];let H;e[46]!==D||e[47]!==Q?(H={key:"reports",label:Q,icon:se,to:te.reports,params:D},e[46]=D,e[47]=Q,e[48]=H):H=e[48];let U;e[49]!==o?(U=o("sidebar.navDestinations.tasks"),e[49]=o,e[50]=U):U=e[50];let oe;e[51]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(pt,{}),e[51]=oe):oe=e[51];let X;e[52]!==i.slug?(X={org:i.slug,taskKey:void 0},e[52]=i.slug,e[53]=X):X=e[53];let L;e[54]!==U||e[55]!==X?(L={key:"tasks",label:U,icon:oe,to:te.tasks,params:X},e[54]=U,e[55]=X,e[56]=L):L=e[56];let q;e[57]!==o?(q=o("sidebar.navDestinations.library"),e[57]=o,e[58]=q):q=e[58];let Ye;e[59]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx($n,{}),e[59]=Ye):Ye=e[59];let fe;e[60]!==D||e[61]!==q?(fe={key:"library",label:q,icon:Ye,to:te.library,params:D},e[60]=D,e[61]=q,e[62]=fe):fe=e[62];let ge;e[63]!==o?(ge=o("sidebar.navDestinations.discover"),e[63]=o,e[64]=ge):ge=e[64];let Qe;e[65]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(xn,{}),e[65]=Qe):Qe=e[65];let he;e[66]!==D||e[67]!==ge?(he={key:"discover",label:ge,icon:Qe,to:te.discover,params:D},e[66]=D,e[67]=ge,e[68]=he):he=e[68];let Xe;e[69]!==B||e[70]!==H||e[71]!==L||e[72]!==fe||e[73]!==he?(Xe=[B,H,L,fe,he],e[69]=B,e[70]=H,e[71]=L,e[72]=fe,e[73]=he,e[74]=Xe):Xe=e[74];const it=Xe;P=Rn,j=s,e[75]!==l||e[76]!==r?(g=$=>$?r(!0):l(),e[75]=l,e[76]=r,e[77]=g):g=e[77],e[78]!==o?(T=o("commandPalette.title"),e[78]=o,e[79]=T):T=e[79],e[80]!==o?(k=o("commandPalette.description"),e[80]=o,e[81]=k):k=e[81];let pe;e[82]!==o?(pe=o("commandPalette.placeholder"),e[82]=o,e[83]=pe):pe=e[83],e[84]!==pe||e[85]!==h?(A=n.jsx(Mn,{placeholder:pe,value:h,onValueChange:v}),e[84]=pe,e[85]=h,e[86]=A):A=e[86],_=zn;let ye;e[87]!==o?(ye=o("commandPalette.empty"),e[87]=o,e[88]=ye):ye=e[88],e[89]!==ye?(E=n.jsx(Fn,{children:ye}),e[89]=ye,e[90]=E):E=e[90];let be;e[91]!==o?(be=o("commandPalette.goTo"),e[91]=o,e[92]=be):be=e[92];let xe;e[93]!==it||e[94]!==d||e[95]!==a?(xe=it.map($=>n.jsxs(le,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[93]=it,e[94]=d,e[95]=a,e[96]=xe):xe=e[96],e[97]!==be||e[98]!==xe?(C=n.jsx(Be,{heading:be,children:xe}),e[97]=be,e[98]=xe,e[99]=C):C=e[99],e[100]!==d||e[101]!==m||e[102]!==a||e[103]!==i.slug||e[104]!==u||e[105]!==o?(O=m&&n.jsx(Be,{heading:o("commandPalette.projects"),children:u.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:$.id}}),"project"),children:[n.jsx(Cn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[100]=d,e[101]=m,e[102]=a,e[103]=i.slug,e[104]=u,e[105]=o,e[106]=O):O=e[106];let Se;e[107]!==o?(Se=o("commandPalette.actions"),e[107]=o,e[108]=Se):Se=e[108];let we;e[109]!==o?(we=o("commandPalette.newProject"),e[109]=o,e[110]=we):we=e[110];let ve;e[111]!==d||e[112]!==a||e[113]!==i.slug?(ve=()=>d(()=>a({to:te.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:void 0}}),"new_project"),e[111]=d,e[112]=a,e[113]=i.slug,e[114]=ve):ve=e[114];let Ze;e[115]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(bt,{}),e[115]=Ze):Ze=e[115];let je;e[116]!==o?(je=o("commandPalette.newProject"),e[116]=o,e[117]=je):je=e[117];let ke;e[118]!==je?(ke=n.jsx("span",{children:je}),e[118]=je,e[119]=ke):ke=e[119];let Te;e[120]!==we||e[121]!==ve||e[122]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[120]=we,e[121]=ve,e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==o?(Ne=o("commandPalette.inviteTeammate"),e[124]=o,e[125]=Ne):Ne=e[125];let _e;e[126]!==d||e[127]!==a||e[128]!==D?(_e=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[126]=d,e[127]=a,e[128]=D,e[129]=_e):_e=e[129];let et;e[130]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Sn,{}),e[130]=et):et=e[130];let Ae;e[131]!==o?(Ae=o("commandPalette.inviteTeammate"),e[131]=o,e[132]=Ae):Ae=e[132];let Pe;e[133]!==Ae?(Pe=n.jsx("span",{children:Ae}),e[133]=Ae,e[134]=Pe):Pe=e[134];let Ce;e[135]!==Ne||e[136]!==_e||e[137]!==Pe?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Pe]}),e[135]=Ne,e[136]=_e,e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==o?(Ee=o("commandPalette.addConnection"),e[139]=o,e[140]=Ee):Ee=e[140];let Oe;e[141]!==d||e[142]!==a||e[143]!==D?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[141]=d,e[142]=a,e[143]=D,e[144]=Oe):Oe=e[144];let tt;e[145]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(bt,{}),e[145]=tt):tt=e[145];let Ie;e[146]!==o?(Ie=o("commandPalette.addConnection"),e[146]=o,e[147]=Ie):Ie=e[147];let Le;e[148]!==Ie?(Le=n.jsx("span",{children:Ie}),e[148]=Ie,e[149]=Le):Le=e[149];let $e;e[150]!==Ee||e[151]!==Oe||e[152]!==Le?($e=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,Le]}),e[150]=Ee,e[151]=Oe,e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==o?(De=o("commandPalette.settings"),e[154]=o,e[155]=De):De=e[155];let Re;e[156]!==d||e[157]!==a||e[158]!==D?(Re=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[156]=d,e[157]=a,e[158]=D,e[159]=Re):Re=e[159];let nt;e[160]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{}),e[160]=nt):nt=e[160];let Me;e[161]!==o?(Me=o("commandPalette.settings"),e[161]=o,e[162]=Me):Me=e[162];let ze;e[163]!==Me?(ze=n.jsx("span",{children:Me}),e[163]=Me,e[164]=ze):ze=e[164];let Fe;e[165]!==De||e[166]!==Re||e[167]!==ze?(Fe=n.jsxs(le,{value:De,onSelect:Re,children:[nt,ze]}),e[165]=De,e[166]=Re,e[167]=ze,e[168]=Fe):Fe=e[168],e[169]!==Se||e[170]!==Te||e[171]!==Ce||e[172]!==$e||e[173]!==Fe?(I=n.jsxs(Be,{heading:Se,children:[Te,Ce,$e,Fe]}),e[169]=Se,e[170]=Te,e[171]=Ce,e[172]=$e,e[173]=Fe,e[174]=I):I=e[174],M=F.length>0&&n.jsx(Be,{heading:o("commandPalette.connections"),children:F.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(qn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=ie.length>0&&n.jsx(Be,{heading:o("commandPalette.results"),children:ie.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(pt,{}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[9]=l,e[10]=d,e[11]=m,e[12]=b,e[13]=a,e[14]=r,e[15]=s,e[16]=S,e[17]=i.slug,e[18]=u,e[19]=w,e[20]=o,e[21]=h,e[22]=_,e[23]=P,e[24]=N,e[25]=j,e[26]=g,e[27]=T,e[28]=k,e[29]=A,e[30]=E,e[31]=C,e[32]=O,e[33]=I,e[34]=M}else _=e[22],P=e[23],N=e[24],j=e[25],g=e[26],T=e[27],k=e[28],A=e[29],E=e[30],C=e[31],O=e[32],I=e[33],M=e[34];let K;e[175]!==_||e[176]!==N||e[177]!==E||e[178]!==C||e[179]!==O||e[180]!==I||e[181]!==M?(K=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[175]=_,e[176]=N,e[177]=E,e[178]=C,e[179]=O,e[180]=I,e[181]=M,e[182]=K):K=e[182];let G;return e[183]!==P||e[184]!==j||e[185]!==g||e[186]!==T||e[187]!==k||e[188]!==A||e[189]!==K?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,K]}),e[183]=P,e[184]=j,e[185]=g,e[186]=T,e[187]=k,e[188]=A,e[189]=K,e[190]=G):G=e[190],G}function qs(t){return t.type!=="connection"}function Ks(t){return t.type==="connection"}const Ge=new Un(!1);function Bs(){Ge.set(!0)}function Hs(){Ge.set(!1)}function Us(){const t=R.c(2),e=V.useSyncExternalStore(Ge.subscribe,Ge.get);let s;return t[0]!==e?(s=[e,Ge.set],t[0]=e,t[1]=s):s=t[1],s}const Gs=300*1e3,Js=2;function Vs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ws(t,e){return t.count>=Js&&t.version!==null&&t.version!==e}function Ys(){const t=R.c(43),e=W(),s=Jn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Xs},t[0]=r):r=t[0];const o=Je(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:We.appVersionCheck(),queryFn:Qs,refetchInterval:Gs,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ve(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);u!==m&&(h(u),b(K=>Vs(K,i,"4.358.4")));const[p,l]=V.useState(null),f=s;let d;t[3]!==s||t[4]!==o?(d=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Ws(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(gt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.358.4"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=lt(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(gt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(z,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Dt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function Qs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Xs(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Zs(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const eo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>Zs(qe.ptBrAnnouncementSeen(t));function to(){const t=R.c(35),e=W(),[s,r]=Wt(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<eo,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&s.language==="en"&&!jt(u).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&u&&(jt(u).mark(),r(so),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{ct("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(no),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Ot,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(In,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Et,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(z,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(z,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(Ln,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let K;return t[32]!==l||t[33]!==M?(K=n.jsx(Lt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=K):K=t[34],K}function no(t){return{...t,language:"en"}}function so(t){return{...t,language:"pt-BR"}}function oo(t){const e=Qt(t);return typeof e=="string"?e:void 0}function io(){return oo("experiment-pipeline-check"),null}function ao(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;Xt(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(io,{}),e[0]=r):r=e[0],r}function ro(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,u={mainpanel:void 0};s?u.virtualmcpid=s:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(u.mainpanel=o.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const qt="studio:thread-layout:v3",lo=50;function Kt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function co(t,e,s,r=lo){const o=t.filter(([a])=>a!==e);for(o.push([e,Kt(s)]);o.length>r;)o.shift();return o}function ft(){try{const t=sessionStorage.getItem(qt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Bt(t){try{sessionStorage.setItem(qt,JSON.stringify(t))}catch{}}function uo(t,e){t&&Bt(co(ft(),t,e))}function mo(t){if(!t)return null;const e=ft().find(([s])=>s===t);return e?Kt(e[1]):null}function si(t){if(!t)return;const e=ft(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Bt(s)}function Ht(t){return{queryKey:We.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function oi(t){const e=R.c(10);let s;e[0]!==t?(s=Ht(t),e[0]=t,e[1]=s):s=e[1];const r=Ve(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function fo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const u=i,m=go;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(z,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(z,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function go(){window.location.href="/"}function ho(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let u;e[3]!==s.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const po="/settings/infra-billing";function yo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(po)}function bo(t){const e=R.c(8),{org:s,children:r}=t,a=Yn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==s||e[6]!==u?(m=n.jsx(dn,{org:s,project:u,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=m):m=e[7],m}function xo(){const t=Nt(),e=Gn(),{org:s}=mt(),r=nn({strict:!1}),o=Ct(),{openPanel:a,closePanel:i}=On(),u=jn(),m=kn(),h=Tn(),v=Nn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&uo(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:mo(f),w=Bn(s.id).id,_=ro({prev:{virtualmcpid:u,tabId:o},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Wn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const So=new Set(["/$org/","/$org/home"]);function wo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:vo},t[0]=e):e=t[0],_t(e)}function vo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&So.has(e)}function jo(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[o,a]=V.useState(!1),[i,u]=Us(),m=on(),h=wo(),v=r??"";let c;t[1]!==v?(c=Ht(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ve(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(wt(q)&&q.code==="KeyK"){q.preventDefault(),Bs();return}if(q.key==="?"&&!Ls(q.target)){q.preventDefault(),a(!0);return}wt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=We.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(To),q=at(L);return L&&!q&&localStorage.setItem(qe.lastOrgSlug(),r),f&&L&&ln(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Tt(j),T=g?.id,k=g?.slug,{data:A}=Qn(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Xn(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:ko},t[22]=O):O=t[22];const I=_t(O),M=C?.severity==="block"&&!yo(I),K=T??"",G=k??"";let F;t[23]!==K||t[24]!==G?(F=Hn({connectionId:$t,orgId:K,orgSlug:G}),t[23]=K,t[24]=G,t[25]=F):F=t[25];const ie=!!T&&!!k;let ne;if(t[26]!==F||t[27]!==ie?(ne={...F,enabled:ie},t[26]=F,t[27]=ie,t[28]=ne):ne=t[28],Ve(ne),(!g||at(g)||E||M)&&Hs(),!g){let L;return t[29]!==r?(L=n.jsx(cs,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(at(g)){localStorage.getItem(qe.lastOrgSlug())===r&&localStorage.removeItem(qe.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(ho,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(fo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const Z=g.logo??null;let Y;t[41]!==g||t[42]!==Z?(Y={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=Y):Y=t[43];let B;t[44]!==g?(B=n.jsx(ao,{activeOrg:g}),t[44]=g,t[45]=B):B=t[45];let Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(cn,{}),t[46]=Q):Q=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Es,{}),n.jsx(Ys,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Fs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx($s,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(to,{}),t[53]=oe):oe=t[53];let X;return t[54]!==Y||t[55]!==B||t[56]!==H||t[57]!==U?(X=n.jsxs(bo,{org:Y,children:[B,Q,se,H,U,oe]}),t[54]=Y,t[55]=B,t[56]=H,t[57]=U,t[58]=X):X=t[58],X}function ko(t){return t.location.pathname}function To(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Vn,{children:n.jsx(jo,{})}),t[0]=e):e=t[0],e}const ii=Object.freeze(Object.defineProperty({__proto__:null,default:No,usePanelActions:xo},Symbol.toStringTag,{value:"Module"}));export{J as K,oi as a,si as f,wt as i,Bs as o,ii as s,xo as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as b,v as Q,j as r,h as Z,B as U,b8 as g,r as ee,l as M,ap as O}from"./index-
|
|
1
|
+
import{c as b,v as Q,j as r,h as Z,B as U,b8 as g,r as ee,l as M,ap as O}from"./index-CsUNCFTt.js";import{b as te,D as se,d as ne,i as re}from"./dialog-vW1U_9BE.js";import{i as ie}from"./Zap-C3LXNIn_.js";import{M as H}from"./markdown-Ck89HZfW.js";import{n as le}from"./Download01-CWqYv5nm.js";import{k as K,b as oe,l as ae,p as ce}from"./folder-icon-DE8-CrRK.js";import{a as $,s as fe,i as R}from"./ZoomOut-C3xqzTBu.js";import{a as de}from"./Image01-BmPB3CGi.js";import{F as me}from"./editor-DkXjZ3Qc.js";import{F as q}from"./file-type-icon-Dw-Vh4Ee.js";import{p as ue,b as j}from"./location-oTTXFrSF.js";function he(s){if(!s||s.includes("\\")||s.includes("..")||s.includes("\0"))return!0;try{const e=decodeURIComponent(s);return!!(e.includes("\\")||e.includes("..")||e.includes("\0"))}catch{return!0}}function pe(s){if(he(s))throw new Error(`Invalid block key: ${s||"(empty)"}`)}function xe(s){try{return decodeURIComponent(s)}catch{return s}}function ge(s){return pe(s),encodeURIComponent(s)}function Ae(s){return`.deco/blocks/${ge(s)}.json`}const He=1e4,we=3;function B(s){return s.trim()?(s.startsWith("/")?s:`/${s}`).replace(/\/+/g,"/"):"/"}function _(s){return s.startsWith("/")?s.slice(1):s}function Ke(s){const e=_(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function W(s){return s.trim()?s.startsWith("/")?s:`/${s}`:"/"}function je(s){const e=W(s);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qe(s,e){const t=e.replace(/^\/+|\/+$/g,"");return W(t?`${s==="/"?"":s}/${t}`:s)}function Ve(s,e){return e==="directory"?s:je(s)}function Ye(s){const e=s.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function be(s){const e=_(s);return e?e.split("/").filter(Boolean).length:0}function Je(s,e,t,i=!1){return{files:[...new Set([...s,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:i||!!t.truncated}}function Qe(s,e){return be(s)>=we&&!e.has(s)}function Ze(s,e,t=[]){const i=_(s);if(e.includes(i)||t.includes(i))return!0;if(!i)return!1;const n=`${i}/`;return e.some(o=>o.startsWith(n))||t.some(o=>o.startsWith(n))}function et(s){const e=_(s),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const i=e.slice(t.length,-5);return xe(i)}function ve(s){if(!s)return"plaintext";const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const ye="#94a3b8";function tt(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:$,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:$,color:"#d9a441"}:e.endsWith(".json")?{Icon:fe,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:$,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:$,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:de,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:R,color:"#64748b"}:{Icon:R,color:ye}}function st(s){const e=B(s).split("/").filter(Boolean),t=["/"];let i="";for(const n of e.slice(0,-1))i+=`/${n}`,t.push(i);return t}function nt(s,e=[]){const t={path:"/",children:[]},i=new Map,n=c=>{let l=i.get(c.path);return l||(l=new Map,i.set(c.path,l)),l},o=c=>{const f=B(c).split("/").filter(Boolean);let d=t,u="";for(const m of f){u+=`/${m}`;const v=n(d);let h=v.get(m);h?h.kind==="file"&&(h.kind="directory"):(h={name:m,path:u,kind:"directory",children:[]},d.children.push(h),v.set(m,h)),d=h}};for(const c of s){const f=B(c).split("/").filter(Boolean);let d=t,u="";f.forEach((m,v)=>{u+=`/${m}`;const h=v===f.length-1,w=n(d);let x=w.get(m);x||(x={name:m,path:u,kind:h?"file":"directory",children:[]},d.children.push(x),w.set(m,x)),d=x})}for(const c of e)o(W(c));const a=c=>{c.sort((l,f)=>l.kind!==f.kind?l.kind==="directory"?-1:1:l.name.localeCompare(f.name));for(const l of c)l.children.length>0&&a(l.children)};return a(t.children),t.children}function ke(s,e,t=0){const i=[];for(const n of s)if(n.name!==".gitkeep"&&(i.push({node:n,depth:t}),n.kind==="directory"&&n.children.length>0&&e.has(n.path)))for(const o of ke(n.children,e,t+1))i.push(o);return i}function rt(s){const e=[];for(const t of s.split(`
|
|
2
2
|
`)){if(!t)continue;const i=t.indexOf(":");if(i<0)continue;const n=t.indexOf(":",i+1);if(n<0)continue;const o=Number.parseInt(t.slice(i+1,n),10);Number.isFinite(o)&&e.push({path:W(t.slice(0,i)),line:o,text:t.slice(n+1)})}return e}function it(s,e,t){const i=e.trim().toLowerCase();if(!i)return[];const n=[];for(const o of s)if((o.split("/").pop()??o).toLowerCase().includes(i)&&(n.push(W(o)),n.length>=t))break;return n}const G=24;function lt(s,e){const t=s.replace(/^\s+/,""),i=e.trim().toLowerCase();if(!i)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const n=t.toLowerCase().indexOf(i);if(n<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const o=n>G,a=o?t.slice(n-G):t,c=a.toLowerCase(),l=[];let f=0;for(;;){const d=c.indexOf(i,f);if(d<0){f<a.length&&l.push({text:a.slice(f),match:!1});break}d>f&&l.push({text:a.slice(f,d),match:!1}),l.push({text:a.slice(d,d+i.length),match:!0}),f=d+i.length}return{leadingEllipsis:o,segments:l}}function ot(s){const e=[],t=new Map;for(const i of s){let n=t.get(i.path);n||(n={path:i.path,matches:[]},t.set(i.path,n),e.push(n)),n.matches.push(i)}return e}function at(s){return s.split(`
|
|
3
3
|
`).map(e=>e.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}function Ne(s){const e=b.c(11),{value:t,filename:i}=s,[n]=Q(),o=n.theme==="dark"||n.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let a;e[0]!==i?(a=ve(i),e[0]=i,e[1]=a):a=e[1];const c=o?"vs-dark":"light";let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsx(Z,{className:"size-5 text-muted-foreground"})}),e[2]=l):l=e[2];let f,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(f={enabled:!1},d={top:12,bottom:12},e[3]=f,e[4]=d):(f=e[3],d=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:f,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let m;return e[6]!==i||e[7]!==a||e[8]!==c||e[9]!==t?(m=r.jsx(me,{path:i,language:a,value:t,theme:c,loading:l,options:u},i),e[6]=i,e[7]=a,e[8]=c,e[9]=t,e[10]=m):m=e[10],m}function We(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}const Se=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ce=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),X=2*1024*1024;function Ee(s,e){const t=s.split(".").pop()?.toLowerCase()??"";return Se.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=X?"markdown":"download":Ce.has(t)&&e<=X?"text":"download"}function Pe(){const s=b.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(g,{className:"h-6 w-2/3"}),s[0]=e):e=s[0];let t;return s[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]})]})}),s[1]=t):t=s[1],t}function V(s){const e=b.c(20),{file:t,note:i}=s;let n;e[0]!==t.filename?(n=r.jsx(q,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=n):n=e[1];let o;e[2]!==t.filename?(o=r.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=o):o=e[3];let a;e[4]!==t.size?(a=We(t.size),e[4]=t.size,e[5]=a):a=e[5];const c=i?` · ${i}`:"";let l;e[6]!==a||e[7]!==c?(l=r.jsxs("span",{className:"text-xs text-muted-foreground",children:[a,c]}),e[6]=a,e[7]=c,e[8]=l):l=e[8];let f;e[9]!==o||e[10]!==l?(f=r.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[o,l]}),e[9]=o,e[10]=l,e[11]=f):f=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(le,{size:14}),e[12]=d):d=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=r.jsx(U,{asChild:!0,variant:"outline",size:"sm",children:r.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[d,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let m;return e[16]!==n||e[17]!==f||e[18]!==u?(m=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[n,f,u]})}),e[16]=n,e[17]=f,e[18]=u,e[19]=m):m=e[19],m}function A(s){const e=b.c(9),{file:t,markdown:i}=s,{data:n,isPending:o,isError:a}=K(t.downloadUrl);if(o){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(Pe,{}),e[0]=l):l=e[0],l}if(a||!n){let l;return e[1]!==t?(l=r.jsx(V,{file:t,note:"preview unavailable"}),e[1]=t,e[2]=l):l=e[2],l}if(i){const l=`file-preview-${t.key}`;let f;return e[3]!==n||e[4]!==l?(f=r.jsx("div",{className:"h-full overflow-y-auto",children:r.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:r.jsx(H,{id:l,text:n})})}),e[3]=n,e[4]=l,e[5]=f):f=e[5],f}let c;return e[6]!==n||e[7]!==t.filename?(c=r.jsx(Ne,{value:n,filename:t.filename}),e[6]=n,e[7]=t.filename,e[8]=c):c=e[8],c}function ze(s){const e=b.c(15),{file:t}=s;switch(Ee(t.filename,t.size)){case"image":{let n;return e[0]!==t.downloadUrl||e[1]!==t.filename?(n=r.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:r.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=n):n=e[2],n}case"pdf":{let n;return e[3]!==t.downloadUrl||e[4]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=n):n=e[5],n}case"html":{let n;return e[6]!==t.downloadUrl||e[7]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=n):n=e[8],n}case"markdown":{let n;return e[9]!==t?(n=r.jsx(A,{file:t,markdown:!0}),e[9]=t,e[10]=n):n=e[10],n}case"text":{let n;return e[11]!==t?(n=r.jsx(A,{file:t,markdown:!1}),e[11]=t,e[12]=n):n=e[12],n}default:{let n;return e[13]!==t?(n=r.jsx(V,{file:t}),e[13]=t,e[14]=n):n=e[14],n}}}function Fe(s){const e=b.c(18),{skillPath:t,onClose:i,variant:n}=s,o=ue(t),{volume:a,dirPath:c}=o,l=oe(),f=l(a??"",`${c}/SKILL.md`),d=K(f),u=ae(a??"",c);let m;e[0]!==c?(m=j(c),e[0]=c,e[1]=m):m=e[1];const v=m;let h;e[2]!==d.data?(h=d.data?ce(d.data):null,e[2]=d.data,e[3]=h):h=e[3];const w=h,x=$e;let C;e[4]===Symbol.for("react.memo_cache_sentinel")?(C=(p,S)=>x(p.path)?-1:x(S.path)?1:j(p.path).localeCompare(j(S.path)),e[4]=C):C=e[4];const D=(u.data??[]).filter(Le).sort(C),[I,Y]=ee.useState(null),y=I===null?null:D.find(p=>p.path===I)??null,E=w?.name??v;let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:r.jsx(ie,{size:18})}),e[5]=P):P=e[5];let k;e[6]!==E||e[7]!==n?(k=n==="dialog"?r.jsx(ne,{className:"flex-1 truncate text-base font-medium text-foreground",children:E}):r.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:E}),e[6]=E,e[7]=n,e[8]=k):k=e[8];let N;e[9]!==i||e[10]!==n?(N=n==="dialog"?r.jsx(re,{asChild:!0,children:r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:r.jsx(O,{size:16})})}):r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:i,children:r.jsx(O,{size:16})}),e[9]=i,e[10]=n,e[11]=N):N=e[11];let z;e[12]!==k||e[13]!==N?(z=r.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[P,k,N]}),e[12]=k,e[13]=N,e[14]=z):z=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=F):F=e[15];const J="relative flex min-w-0 flex-1 flex-col overflow-y-auto",T=y?r.jsx(ze,{file:{key:y.path,filename:j(y.path),size:y.size,downloadUrl:l(a??"",y.path)}}):d.isPending?r.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[r.jsx(g,{className:"h-4 w-1/3"}),r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]}):d.isError||!w?r.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[r.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),r.jsx("p",{className:"text-base text-muted-foreground",children:w.description??"Claude Code skill"})]}),r.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:r.jsx(H,{id:`skill-preview-${t}`,text:w.body})})]});let L;return e[16]!==T?(L=r.jsx("div",{className:J,children:T}),e[16]=T,e[17]=L):L=e[17],r.jsxs(r.Fragment,{children:[z,r.jsxs("div",{className:"flex min-h-0 flex-1",children:[r.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[F,u.isPending?r.jsx(g,{className:"mx-2 h-4 w-24"}):D.map(p=>{const S=x(p.path)?y===null:I===p.path;return r.jsxs("button",{type:"button",onClick:()=>Y(x(p.path)?null:p.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",S?"bg-background shadow-sm":"hover:bg-muted/60"),children:[r.jsx(q,{filename:j(p.path),className:"h-6 w-5 shrink-0"}),r.jsx("span",{className:M("truncate text-sm",S?"text-foreground":"text-muted-foreground"),children:j(p.path)})]},p.path)})]}),L]})]})}function Le(s){return s.kind==="file"}function $e(s){return j(s)==="SKILL.md"}function ct(s){const e=b.c(8),{skillPath:t,onClose:i}=s;let n;e[0]!==i?(n=c=>{c||i()},e[0]=i,e[1]=n):n=e[1];let o;e[2]!==i||e[3]!==t?(o=r.jsx(te,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:r.jsx(Fe,{skillPath:t,onClose:i,variant:"dialog"})}),e[2]=i,e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=r.jsx(se,{open:!0,onOpenChange:n,children:o}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}export{Je as A,we as E,Pe as F,ct as S,pe as a,ze as b,xe as c,Ae as d,He as e,We as f,ve as g,nt as h,Ke as i,ke as j,ot as k,Ve as l,W as m,tt as n,je as o,st as p,lt as q,Qe as r,at as s,_ as t,qe as u,Ye as v,Ze as w,it as x,rt as y,et as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b8 as ae,C as ce,t as w,c as ie,l as de,K as H,b6 as me}from"./index-
|
|
1
|
+
import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b8 as ae,C as ce,t as w,c as ie,l as de,K as H,b6 as me}from"./index-CsUNCFTt.js";import{i as ue}from"./DotsVertical-BuCGsnKC.js";import{i as pe}from"./GitBranch01-72jxttZ6.js";import{a as ge}from"./Package-BzzU4u_u.js";import{s as fe}from"./Trash01-t2ffl_GD.js";import{i as he}from"./Upload01-DyGMn8P9.js";import{i as le}from"./Zap-C3LXNIn_.js";import{S as xe}from"./search-input-DVdWUH1y.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-BFWT10oB.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-CLnCQjTe.js";import{E as J}from"./empty-state-DoVWR5lf.js";import{C as Ae}from"./collection-tabs-DB42vY5i.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-DE8-CrRK.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-ByFvWaNw.js";import"./SearchMd-lyyfFftC.js";import"./Check-CH-Vw96P.js";import"./ChevronRight-BIBNVIgv.js";import"./badge-BBxP7UMd.js";import"./Eye-Crli8POp.js";import"./dialog-vW1U_9BE.js";import"./markdown-Ck89HZfW.js";import"./Copy01-7ESKNzsF.js";import"./Download01-CWqYv5nm.js";import"./ZoomOut-C3xqzTBu.js";import"./use-panel-navigate-Da6Ty1S6.js";import"./use-destination-route-Cnt7EB8f.js";import"./Image01-BmPB3CGi.js";import"./editor-DkXjZ3Qc.js";import"./file-type-icon-Dw-Vh4Ee.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,G as L,r as v,j as e,P as x,b5 as k,b1 as y,b0 as E,a$ as a,fi as D,B as m,o as b,t as c,c as z}from"./index-
|
|
1
|
+
import{b as B,G as L,r as v,j as e,P as x,b5 as k,b1 as y,b0 as E,a$ as a,fi as D,B as m,o as b,t as c,c as z}from"./index-CsUNCFTt.js";import{D as T}from"./domain-settings-Dc7Qc2A-.js";import{A as O,a as R,b as F,c as q,e as M,f as U,g as $}from"./alert-dialog-CLnCQjTe.js";import{I as d}from"./input-CCjvC2WC.js";import{S as G}from"./switch-CprchaBn.js";import{a as H,b as J,c as K,d as Q}from"./use-org-sso-1vJuA_ma.js";import{s as V}from"./Trash01-t2ffl_GD.js";import{R as W}from"./require-capability-D5sGM312.js";import"./badge-BBxP7UMd.js";import"./select-DgPCfz0D.js";import"./Check-CH-Vw96P.js";import"./ChevronUp-LZw5ldfA.js";import"./access-gate-Bg-T7c43.js";import"./capability-load-error-CagSnWYA.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),C=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),b(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),b("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await C.mutateAsync(t),b("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(G,{checked:n.enforced,onCheckedChange:A,disabled:C.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(q,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
|