decocms 4.390.4 → 4.390.5
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-iVRTcaBg.js → AlertCircle-BXd3wmhE.js} +1 -1
- package/dist/client/assets/{AreaChart-vGEKzI4F.js → AreaChart-BurPFOEM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DfZNe3Vl.js → ArrowLeft-CtG_Sz3T.js} +1 -1
- package/dist/client/assets/{ArrowRight-CswoMXm3.js → ArrowRight-DGQoBfX2.js} +1 -1
- package/dist/client/assets/{ArrowUp-ZHCqKDUA.js → ArrowUp-BAzKSoqz.js} +1 -1
- package/dist/client/assets/{CartesianChart-_SxUX3gE.js → CartesianChart-BHBzHrfv.js} +1 -1
- package/dist/client/assets/{Check-ocmT1xhM.js → Check-D3UEH1bb.js} +1 -1
- package/dist/client/assets/{CheckCircle-BmHBdTYn.js → CheckCircle-BmoxvNcp.js} +1 -1
- package/dist/client/assets/{ChevronUp-BEGO8LAp.js → ChevronUp-DkDOUc-8.js} +1 -1
- package/dist/client/assets/{Copy01-Djl84HjT.js → Copy01-1VyfDicU.js} +1 -1
- package/dist/client/assets/{CreditCard01-DA21YZ9t.js → CreditCard01-CrYxi8Yw.js} +1 -1
- package/dist/client/assets/{DotsVertical-GP-H6-nS.js → DotsVertical-BVvaV8Wy.js} +1 -1
- package/dist/client/assets/{Download01-CQZ78LGI.js → Download01-CRbdo8yP.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CU0G222G.js → ErrorBarContext-Cq12nkBo.js} +1 -1
- package/dist/client/assets/{Eye-CNk4ml55.js → Eye-DnZDEgOn.js} +1 -1
- package/dist/client/assets/{Globe04-B3-IlgJ4.js → Globe04-Cfnfjo6J.js} +1 -1
- package/dist/client/assets/{Image01-zHW5odO5.js → Image01-ZQL1hr5Q.js} +1 -1
- package/dist/client/assets/{Key01-BCjLeK7M.js → Key01-HEuAw7Uw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-dzqHSKuH.js → LayoutLeft-Di6ed8JP.js} +1 -1
- package/dist/client/assets/{Line-BPNz1hy-.js → Line-D1DSosvE.js} +1 -1
- package/dist/client/assets/{Link01-CBc36KC8.js → Link01-CZiQuc44.js} +1 -1
- package/dist/client/assets/{LinkExternal01-JGUyp91x.js → LinkExternal01-BekDuv1R.js} +1 -1
- package/dist/client/assets/{Monitor01-DMBIX-hP.js → Monitor01-BLWTHtTp.js} +1 -1
- package/dist/client/assets/{Package-VT7-ZGoy.js → Package-tH33TvgC.js} +1 -1
- package/dist/client/assets/{Palette-CPW0a6wF.js → Palette-BagjpLZN.js} +1 -1
- package/dist/client/assets/{Plus-ojokEQ8x.js → Plus-Y-KvMcUC.js} +1 -1
- package/dist/client/assets/{SearchLg-C-i1c0zU.js → SearchLg-CL6esTtw.js} +1 -1
- package/dist/client/assets/{SearchMd-MG_xST09.js → SearchMd-CzE1IXtk.js} +1 -1
- package/dist/client/assets/{Sector-DLq_M76x.js → Sector-7uDV3O2e.js} +1 -1
- package/dist/client/assets/{Share07-uQomrLCR.js → Share07-DwVANqGN.js} +1 -1
- package/dist/client/assets/{Stars01-DxtRb5WZ.js → Stars01-BvtQBnED.js} +1 -1
- package/dist/client/assets/{Sun-BEdjuN6j.js → Sun-CPPd8cP7.js} +1 -1
- package/dist/client/assets/{Tool01-COB6rywP.js → Tool01-CeJWUTx4.js} +1 -1
- package/dist/client/assets/{Trash01-DTUu7NOU.js → Trash01-C6BZglNY.js} +1 -1
- package/dist/client/assets/{Upload01-Dty36l1w.js → Upload01-DBDdtdRw.js} +1 -1
- package/dist/client/assets/{User01-BSto60sn.js → User01-DhER-7M5.js} +1 -1
- package/dist/client/assets/{UserSquare-C8brDzYe.js → UserSquare-D9izLEMu.js} +1 -1
- package/dist/client/assets/{Users01-CxwIEg0g.js → Users01-CGh_okmA.js} +1 -1
- package/dist/client/assets/{X-B5gw2EHv.js → X-rZfX9y0d.js} +1 -1
- package/dist/client/assets/{XCircle-seVaST6e.js → XCircle-fYjVO-4e.js} +1 -1
- package/dist/client/assets/{XClose-B5O4OZct.js → XClose-Drgfi-MO.js} +1 -1
- package/dist/client/assets/{Zap-D7YN1rKW.js → Zap-DcWY_A2w.js} +1 -1
- package/dist/client/assets/{ZoomOut-qVaUZ9ca.js → ZoomOut-CmJNnQZa.js} +1 -1
- package/dist/client/assets/{access-gate-BIKeQRL_.js → access-gate-DrC617P9.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BCh8Kz04.js → add-connection-dialog-BrlUHuQ9.js} +1 -1
- package/dist/client/assets/{agent-analytics--KcDdN57.js → agent-analytics-Cw9tQISn.js} +1 -1
- package/dist/client/assets/agent-app-BE3kXNei.js +1 -0
- package/dist/client/assets/{agent-assets-CB6ZSzqA.js → agent-assets-NJjJRoAl.js} +1 -1
- package/dist/client/assets/{agent-automation-B57x68Um.js → agent-automation-C1ibaLXl.js} +1 -1
- package/dist/client/assets/{agent-automations-DsNAcyrP.js → agent-automations-DB1TbF54.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-D1XyNIWt.js → agent-connect-sources-Cvwx0aGv.js} +1 -1
- package/dist/client/assets/agent-deck-BjwXuCnI.js +1 -0
- package/dist/client/assets/{agent-e2e-DPPSPIQv.js → agent-e2e-Bm0ir2w1.js} +1 -1
- package/dist/client/assets/{agent-experiments-CMIDfL0o.js → agent-experiments-Bv3P9kPX.js} +1 -1
- package/dist/client/assets/agent-file-B5ULlTNv.js +1 -0
- package/dist/client/assets/{agent-git-BBWRyZCE.js → agent-git-B1sEUtW8.js} +1 -1
- package/dist/client/assets/{agent-hosting-BIMxJVDi.js → agent-hosting-DNw3gDr1.js} +1 -1
- package/dist/client/assets/{agent-icon-BsnTrJjJ.js → agent-icon-CUHwvCug.js} +1 -1
- package/dist/client/assets/agent-library-file-ys3FW6Ts.js +1 -0
- package/dist/client/assets/{agent-monitor-CbmXFCNk.js → agent-monitor-8Z9iofGU.js} +1 -1
- package/dist/client/assets/{agent-overview-BPW1OhWv.js → agent-overview-DV6D5mcW.js} +1 -1
- package/dist/client/assets/agent-settings-Do48sFtz.js +1 -0
- package/dist/client/assets/{agent-site-editor-m4t0aVDo.js → agent-site-editor-Bp9kex6E.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D6OZaku7.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Y18YyEWw.js → agent-site-editor-content-BnmxakX4.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-BOHOs4hS.js → agent-site-editor-preview-k6KOtKNv.js} +3 -3
- package/dist/client/assets/agent-view-BcTmq8aW.js +1 -0
- package/dist/client/assets/{agent-view-guard-DBlz_p2t.js → agent-view-guard-mWuQM6et.js} +1 -1
- package/dist/client/assets/{agents-list-7X7ucg0e.js → agents-list-CKVhVS_6.js} +1 -1
- package/dist/client/assets/{ai-providers-Bm2tLrMu.js → ai-providers-CZkq155K.js} +1 -1
- package/dist/client/assets/{alert-dialog-BhgAEu2i.js → alert-dialog-D0EwpcN4.js} +1 -1
- package/dist/client/assets/{alert-DslM1OpO.js → alert-tPvl5V7J.js} +1 -1
- package/dist/client/assets/{api-keys-Dq1Bnar4.js → api-keys-CiTZWPra.js} +1 -1
- package/dist/client/assets/api-keys-D0yLzADM.js +1 -0
- package/dist/client/assets/app-editor-CQk3gD21.js +1 -0
- package/dist/client/assets/{asset-utils-D3ZIfM_Z.js → asset-utils-tQ6o2CDF.js} +1 -1
- package/dist/client/assets/{auth-uih7AqvO.js → auth-6ek5T3GB.js} +1 -1
- package/dist/client/assets/{auth-catchall-pT36A0zr.js → auth-catchall-BTt0HN1L.js} +1 -1
- package/dist/client/assets/{auth-entry-2UXAVZ_y.js → auth-entry-Bq9TVm0P.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BjGbJo38.js → auth-split-layout-CNzOx79W.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B9I5UxEd.js → authenticate-and-persist-oauth-C0EgQu0P.js} +1 -1
- package/dist/client/assets/{automation-list-row-6I49gBmF.js → automation-list-row-BSZgMG8f.js} +1 -1
- package/dist/client/assets/{automation-runs-EAqUU_Ij.js → automation-runs-BMsBLMsg.js} +1 -1
- package/dist/client/assets/{automations-CQPehM0c.js → automations-Bdbn7Pu2.js} +1 -1
- package/dist/client/assets/{autosend-BJW1PfVQ.js → autosend-BNuK0erf.js} +1 -1
- package/dist/client/assets/{avatar-_8aGoMXJ.js → avatar-D0sKo5Ko.js} +1 -1
- package/dist/client/assets/{badge-DMewhq-R.js → badge-CFEM0raL.js} +1 -1
- package/dist/client/assets/{block-document-Dcc8Ersi.js → block-document-Chl-m90T.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BRSFaO-e.js → blocks-preview-workspace-context-DdPADfnI.js} +1 -1
- package/dist/client/assets/{breadcrumb-ClrBbM2y.js → breadcrumb-DGzJ2mi_.js} +1 -1
- package/dist/client/assets/{buckets-8W4ppyWH.js → buckets-W6OaopO-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CX4X_Kjx.js → build-improve-prompt-doc-DeW5gQgu.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DRm2c8X2.js → bulk-category-panel-Rf660pBu.js} +1 -1
- package/dist/client/assets/{calendar-B83nuFOI.js → calendar-BDrJCpVb.js} +1 -1
- package/dist/client/assets/{capability-load-error-BUHyT4vC.js → capability-load-error-CkdeSGfJ.js} +1 -1
- package/dist/client/assets/{category-editor-DmtS6BHb.js → category-editor-BjOOP9zk.js} +1 -1
- package/dist/client/assets/{chart-O1DWzSgB.js → chart-r_c7F5B8.js} +1 -1
- package/dist/client/assets/{chat-context-H6Zpj-Vd.js → chat-context-DfIPg4kF.js} +1 -1
- package/dist/client/assets/{chat-draft-BXT8ntBy.js → chat-draft-BqHnkSRF.js} +1 -1
- package/dist/client/assets/{checkbox-JC6LoT32.js → checkbox-Dr1iEjvP.js} +1 -1
- package/dist/client/assets/{choose-editor-D-IXY8oL.js → choose-editor-Dp7QkLDv.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CPiQ28RG.js → claim-phase-copy-CPp-hZ5n.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CQt2stGY.js → cli-auth-success-B3ECmgl-.js} +1 -1
- package/dist/client/assets/{client-icons-D5aE3fDf.js → client-icons-Ce5SmXFK.js} +1 -1
- package/dist/client/assets/{collapsible-B930Znij.js → collapsible-Ozwn48y1.js} +1 -1
- package/dist/client/assets/{collection-detail-DILC7xOI.js → collection-detail-DApKXcnj.js} +1 -1
- package/dist/client/assets/{collection-display-button-DKuiVs_e.js → collection-display-button-DM83AZTp.js} +1 -1
- package/dist/client/assets/{collection-search-DFVK1KQ8.js → collection-search-BRkIgroJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DvM7LDpZ.js → collection-table-wrapper-SNXCX7Mr.js} +1 -1
- package/dist/client/assets/{collection-tabs-DWdbo1Je.js → collection-tabs-BN1xWU9h.js} +1 -1
- package/dist/client/assets/{combobox-BoqrgDcx.js → combobox-Ct9LBV7p.js} +1 -1
- package/dist/client/assets/{command-C3KYPhtk.js → command-Das6UcyK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DhDS_06A.js → companion-mcps-section-B4IqxVxa.js} +1 -1
- package/dist/client/assets/{connect-Dyr51oJk.js → connect-DKxaqp8T.js} +1 -1
- package/dist/client/assets/{connect-layout-BNbZXyRv.js → connect-layout-GIo2P6vy.js} +1 -1
- package/dist/client/assets/{connection-D9jQPSCJ.js → connection-Vq7712iH.js} +1 -1
- package/dist/client/assets/{connection-card-D-LytxKQ.js → connection-card-DmSG--jc.js} +1 -1
- package/dist/client/assets/{connection-detail-CNt-Uyzd.js → connection-detail-DCIP_zf4.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DSpcP1Dc.js → connection-form-helpers-B1Gfuz6v.js} +1 -1
- package/dist/client/assets/{connections-C7W7axzQ.js → connections-BE_Q0OgI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DBxZ2XGo.js → create-organization-dialog-CNW2-tLc.js} +1 -1
- package/dist/client/assets/{decofile-api-CAHmkQlU.js → decofile-api-DvonsyVe.js} +1 -1
- package/dist/client/assets/{decopilot-BnOOn6v6.js → decopilot-_2aHa55x.js} +1 -1
- package/dist/client/assets/{dialog-BTnr_AVV.js → dialog-O_WsqGxK.js} +1 -1
- package/dist/client/assets/{discover-U5K5oM8Q.js → discover-DNKxCZwb.js} +1 -1
- package/dist/client/assets/{domain-settings-CzbkVMPe.js → domain-settings-9s0IWIG1.js} +1 -1
- package/dist/client/assets/{download-app-dialog-nvCUSnk2.js → download-app-dialog-DJrde0mx.js} +1 -1
- package/dist/client/assets/{drawer-D6LfOfIo.js → drawer-DmWpiePK.js} +1 -1
- package/dist/client/assets/{editor-BqmQJegj.js → editor-bajIdLtD.js} +1 -1
- package/dist/client/assets/{empty-state-DMmxHRTF.js → empty-state-Atjx1U2W.js} +1 -1
- package/dist/client/assets/{empty-state-DMiHCSxy.js → empty-state-DYH2UztF.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CZjdLMbg.js → extract-connection-data-C8tfLeRY.js} +1 -1
- package/dist/client/assets/{feature-gate-ByUUxxIv.js → feature-gate-C5gwa5Kb.js} +1 -1
- package/dist/client/assets/{feature-paywall-C9xFi1nx.js → feature-paywall-C7OuLsbm.js} +1 -1
- package/dist/client/assets/{file-explorer-DmorIYyd.js → file-explorer-6H1B3qt6.js} +1 -1
- package/dist/client/assets/{file-preview-DG6yyUI3.js → file-preview-BiHR6COU.js} +1 -1
- package/dist/client/assets/{file-share-button-B2dbicF1.js → file-share-button-C5XfrmpE.js} +1 -1
- package/dist/client/assets/{file-type-icon-BkowPfFv.js → file-type-icon-D6rUMGA4.js} +1 -1
- package/dist/client/assets/{folder-icon-D4_mI7nX.js → folder-icon-B_bfB1iq.js} +1 -1
- package/dist/client/assets/{form-Cs0YGgAz.js → form-Db0Tj8hF.js} +1 -1
- package/dist/client/assets/{gateway-client-D0N_12qS.js → gateway-client-pQEk_YWf.js} +1 -1
- package/dist/client/assets/{general-C7u2nzrT.js → general-BVSSoQ2s.js} +1 -1
- package/dist/client/assets/{github-icon-BuR6fL8l.js → github-icon-DO6paY-Y.js} +1 -1
- package/dist/client/assets/{home-DVyMZFQG.js → home-B5QgEHQi.js} +1 -1
- package/dist/client/assets/{hooks-CZw8Nj9H.js → hooks-D5xL0VD-.js} +1 -1
- package/dist/client/assets/{hooks-BIIUffrO.js → hooks-Dyt2S900.js} +1 -1
- package/dist/client/assets/{icon-button-ffXmg1OC.js → icon-button-bkQbZIJx.js} +1 -1
- package/dist/client/assets/{index-BYhU0OAw.js → index-3wu9QSuh.js} +1 -1
- package/dist/client/assets/{index-DbCXB6UC.js → index-B1H3xTcC.js} +1 -1
- package/dist/client/assets/{index-CJvGo7M-.js → index-B9KXIX84.js} +2 -2
- package/dist/client/assets/{index-IKyehAj0.js → index-BEBsD_Uj.js} +1 -1
- package/dist/client/assets/{index-CwPMc6DD.js → index-BFBOXOd5.js} +1 -1
- package/dist/client/assets/{index-DqJtHo4n.js → index-BMguGW4R.js} +1 -1
- package/dist/client/assets/{index-P6xk5T3b.js → index-CcCENa4K.js} +1 -1
- package/dist/client/assets/{index-cLR8hRUZ.js → index-CcStfLcS.js} +1 -1
- package/dist/client/assets/{index-R-0H4aXt.js → index-Cqfo3dLZ.js} +1 -1
- package/dist/client/assets/{index-CC4ky7Bt.js → index-D-HNn6NY.js} +1 -1
- package/dist/client/assets/{index-DnfITnHh.js → index-DTD6MU_-.js} +1 -1
- package/dist/client/assets/{index-BSqcExWu.js → index-DXPgJ5pN.js} +1 -1
- package/dist/client/assets/{index-Bo1CTi_x.js → index-TQAMEK3-.js} +1 -1
- package/dist/client/assets/{index-B0qiS0Xy.js → index-ew-hZs-T.js} +1 -1
- package/dist/client/assets/{index-redirect-UW05aF5k.js → index-redirect-DtXP9nXs.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Co_jht2h.js → infiniteQueryObserver-DrVVQrbK.js} +1 -1
- package/dist/client/assets/{infra-billing-BNNb1HUT.js → infra-billing-7wcYScSW.js} +1 -1
- package/dist/client/assets/{input-DmhYaSfN.js → input-ALPFLjGK.js} +1 -1
- package/dist/client/assets/{input-CW1e_IGW.js → input-BlBczlUj.js} +1 -1
- package/dist/client/assets/{input-ctnVSOTh.js → input-DLqUDU4v.js} +1 -1
- package/dist/client/assets/{integration-icon-DBmxvUTr.js → integration-icon-BDlRT6Oh.js} +1 -1
- package/dist/client/assets/{label-4VvccInH.js → label-CeYXCWIS.js} +1 -1
- package/dist/client/assets/{last-preview-page-CvHaNJZf.js → last-preview-page-Pa_m-NGp.js} +1 -1
- package/dist/client/assets/{layout-YtNzwgmw.js → layout-2OR9C3vu.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-D_WKz4Q4.js → legacy-agents-deep-BXlfHsnP.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Cuoc1Q6w.js → legacy-main-redirect-CXr4DIMg.js} +1 -1
- package/dist/client/assets/{library-C5hSt5jS.js → library-DC1sHBtK.js} +1 -1
- package/dist/client/assets/{login-BHMe1ZN5.js → login-ETcUXX8b.js} +1 -1
- package/dist/client/assets/{markdown-DgiLeH6x.js → markdown-BHnqyTep.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Dpmk1Vv4.js → mcp-app-renderer-CN7HJqgc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C2J7M1Qy.js → mcp-oauth-DBcvf4Gv.js} +1 -1
- package/dist/client/assets/{members-DZUeyWSF.js → members-CKovzLZm.js} +1 -1
- package/dist/client/assets/{message-templates-DEiaR-4t.js → message-templates-CVWApNdw.js} +1 -1
- package/dist/client/assets/{mini-report-page-DZ2brjJR.js → mini-report-page-D75y78PO.js} +1 -1
- package/dist/client/assets/{mock-board-C3-S11yK.js → mock-board-CKKlMTR7.js} +3 -3
- package/dist/client/assets/{monaco-editor-CWYBB1Jc.js → monaco-editor-sTKHVHs7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BIOo_dNd.js → monitoring-stats-row-CFvcs0FY.js} +1 -1
- package/dist/client/assets/{multi-select-CQmA6upg.js → multi-select-bTG-_3iX.js} +1 -1
- package/dist/client/assets/{mustache-CCIaSVE8.js → mustache-D5HgeK1D.js} +1 -1
- package/dist/client/assets/{oauth-callback-JKin_sKW.js → oauth-callback-BQGhxVdk.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CVBe8y5A.js → oauth-callback-ai-provider-9WlNwZ-4.js} +1 -1
- package/dist/client/assets/{onboarding-CiuzJ17Q.js → onboarding-TK-D_Eg-.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B1t6VhD_.js → optimistic-project-sidebar-views-BuKbcQgt.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BpKzz2X6.js → org-file-open-context-DNQMuR7f.js} +1 -1
- package/dist/client/assets/{organization-choice-DtGmLZl3.js → organization-choice-O0bt4mln.js} +1 -1
- package/dist/client/assets/{orgs-C7GJQT2F.js → orgs-Dv-imO9p.js} +1 -1
- package/dist/client/assets/{page-seo-form-CJEF56bx.js → page-seo-form-Biw0BL9j.js} +1 -1
- package/dist/client/assets/{pair-B42JzU0G.js → pair-B2IVuWLB.js} +1 -1
- package/dist/client/assets/{plan-ladder-DZj3EnLg.js → plan-ladder-CCULPA3j.js} +1 -1
- package/dist/client/assets/{popover-Dc6K6r1C.js → popover-Wvqr_2yR.js} +1 -1
- package/dist/client/assets/{post-calendar-CdMKYMS2.js → post-calendar-a5E2qOG-.js} +1 -1
- package/dist/client/assets/{post-editor-my4ezea6.js → post-editor-DFx-26e8.js} +1 -1
- package/dist/client/assets/{preview-content-CziYH8nP.js → preview-content-BCd4V54J.js} +1 -1
- package/dist/client/assets/{preview-dialog-DDwPGbj2.js → preview-dialog-ClD44N_y.js} +1 -1
- package/dist/client/assets/{primitives-BeUcpT_l.js → primitives-byxT-Ui7.js} +1 -1
- package/dist/client/assets/{profile-BOKysRT9.js → profile-9uJoAI6f.js} +1 -1
- package/dist/client/assets/{project-app-view-CRETWS5_.js → project-app-view-XjFGHkML.js} +1 -1
- package/dist/client/assets/{project-feed-DnXMTyTK.js → project-feed-B4oD-iPW.js} +1 -1
- package/dist/client/assets/{project-icon-CQHpgqjE.js → project-icon-BFHg-quI.js} +1 -1
- package/dist/client/assets/project-reports-zGc7Q3TI.js +1 -0
- package/dist/client/assets/project-tasks-DqoKheUq.js +1 -0
- package/dist/client/assets/{prompts-Buirx6sq.js → prompts-D6Qoh4zQ.js} +1 -1
- package/dist/client/assets/record-editor-jLe9lZIe.js +1 -0
- package/dist/client/assets/{redirect-editor-T_gO2ARt.js → redirect-editor-CnOUBdx5.js} +1 -1
- package/dist/client/assets/{reports-D29xfPX4.js → reports-D6i3xT-r.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Cd6ZQZfG.js → reports-onboarding-BJ3gF8Jt.js} +1 -1
- package/dist/client/assets/reports-r1Z-LWUs.js +1 -0
- package/dist/client/assets/{reports-tab-C8QCg1Zh.js → reports-tab-DXNb57Ao.js} +2 -2
- package/dist/client/assets/{repositories-eEvxM93v.js → repositories-BXIZ-orB.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CYhmnGT6.js → repository-import-picker-BomeZ4YD.js} +1 -1
- package/dist/client/assets/{repository-picker-CJrIw77i.js → repository-picker-Bpcr10QR.js} +1 -1
- package/dist/client/assets/{require-capability-CQeOwSD4.js → require-capability-B5vhBt9u.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CE8AnY1F.js → required-auth-layout-CyCpjrfs.js} +1 -1
- package/dist/client/assets/{reset-password-DFPIxqxe.js → reset-password-B2Z9lfbJ.js} +1 -1
- package/dist/client/assets/{resizable-C4Edp607.js → resizable-X9aB8eM5.js} +1 -1
- package/dist/client/assets/{review-settings-CbjseDbt.js → review-settings-c3E6ViNV.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-Do2n6JIO.js → rich-text-link-control-DLGtga8b.js} +1 -1
- package/dist/client/assets/{roles-CJoQe-iA.js → roles-DPfRfWCB.js} +1 -1
- package/dist/client/assets/{route-DFFPgrtv.js → route-Cvx3z9KR.js} +1 -1
- package/dist/client/assets/{route-euoZW6b2.js → route-DtNPEkNV.js} +1 -1
- package/dist/client/assets/{route-wRSR0-RQ.js → route-cbFwKoF4.js} +1 -1
- package/dist/client/assets/{route-page-header-CEYsqpu_.js → route-page-header-Dr10DLhY.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Bm9IpSRw.js → runnable-block-editor-Luwb6lXF.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CFfKpmMd.js → sandbox-lifecycle-context-CHjp6hDX.js} +1 -1
- package/dist/client/assets/{schema--090tLTs.js → schema-CdJJOHN7.js} +1 -1
- package/dist/client/assets/{scroll-area-DaAnCQrg.js → scroll-area-DiE2RXUS.js} +1 -1
- package/dist/client/assets/{search-input-Cq2H58ks.js → search-input-MsiE4xnC.js} +1 -1
- package/dist/client/assets/{search-toggle-BzE09wAY.js → search-toggle-BujrzbmS.js} +1 -1
- package/dist/client/assets/{secret-picker-FNqMA4b3.js → secret-picker-BOvhv2JQ.js} +1 -1
- package/dist/client/assets/{secrets-B79xiOvr.js → secrets-CpJVBw79.js} +1 -1
- package/dist/client/assets/{sections-editor-Bch82FO0.js → sections-editor-DDnlJ9KQ.js} +1 -1
- package/dist/client/assets/{select-_7jCWmPs.js → select-BmpMhuXU.js} +1 -1
- package/dist/client/assets/{select-model-C991WVaS.js → select-model-Cqn2WNWa.js} +1 -1
- package/dist/client/assets/{seo-editor-COzsrOm2.js → seo-editor-1A35EHVT.js} +1 -1
- package/dist/client/assets/{separator-CTDFfWkU.js → separator-Dl5b3JZz.js} +1 -1
- package/dist/client/assets/{settings-tab-OQmnW7Ut.js → settings-tab-CJkqi9sH.js} +1 -1
- package/dist/client/assets/{sheet-fXc9nA9M.js → sheet-B0Sr1nwg.js} +1 -1
- package/dist/client/assets/{shell-layout-CFgBlrHw.js → shell-layout-BA4WahT2.js} +1 -1
- package/dist/client/assets/{sidebar-CD_qlBS1.js → sidebar-DGGwKufn.js} +1 -1
- package/dist/client/assets/{skill-preview-iGSQpWTN.js → skill-preview-D99Hmxpn.js} +1 -1
- package/dist/client/assets/{skills-Bo3AuN87.js → skills-DusNUug_.js} +1 -1
- package/dist/client/assets/{sso-bCqIdarJ.js → sso-Q5OGwWHg.js} +1 -1
- package/dist/client/assets/{switch-_-H0ZzQ0.js → switch-CGGsZGg2.js} +1 -1
- package/dist/client/assets/{synced-repos-CJ3PDs71.js → synced-repos-disT4WD-.js} +1 -1
- package/dist/client/assets/{table-B0ylfHsr.js → table-p5K_r58-.js} +1 -1
- package/dist/client/assets/{tabs-CbBMI_3w.js → tabs-B2X-mfaO.js} +1 -1
- package/dist/client/assets/{task-board-BOtwbMNd.js → task-board-mTs0BkYi.js} +1 -1
- package/dist/client/assets/{task-route-ClDUjCmA.js → task-route-CGQF_N5D.js} +1 -1
- package/dist/client/assets/{task-status-DCDgnDj7.js → task-status-BfecW6Jc.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CiRR6YhP.js → taskboard-analytics-CtICaEUy.js} +1 -1
- package/dist/client/assets/{tasks-MLHolUxt.js → tasks-BAEY4_dG.js} +1 -1
- package/dist/client/assets/tasks-WvRRvqRc.js +1 -0
- package/dist/client/assets/{textarea-Pm894Vb7.js → textarea-BGjs-_ya.js} +1 -1
- package/dist/client/assets/{thread-button-0yNolO5U.js → thread-button-B_TrQG9B.js} +1 -1
- package/dist/client/assets/{thread-intent-CZ1rMWWZ.js → thread-intent-BHNHSQWV.js} +1 -1
- package/dist/client/assets/{thread-route-Cz0k6s-0.js → thread-route-C_KFFLE6.js} +1 -1
- package/dist/client/assets/{thread-route-DDyPLFny.js → thread-route-DNtSLAiW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CoOlYiyz.js → thread-sheet-body-C_nRrD8j.js} +1 -1
- package/dist/client/assets/{toggle-group-BCKZnr8W.js → toggle-group-C66gu9FY.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-SVo3Fo7H.js → toolbar-icon-button-ClGr1SmO.js} +1 -1
- package/dist/client/assets/{tooltip-ChaEDFwp.js → tooltip-C3KYJcjJ.js} +1 -1
- package/dist/client/assets/{track-CO4eg07r.js → track-D48SK3WP.js} +1 -1
- package/dist/client/assets/{types-DOMFbfVw.js → types-CsEtlQqb.js} +1 -1
- package/dist/client/assets/{usage-stats-rx7t_Nos.js → usage-stats-BWbFQ6nI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-8tdExCCT.js → use-ai-providers-CBInTetj.js} +1 -1
- package/dist/client/assets/{use-automations-C3DIh181.js → use-automations-DhqE5Iln.js} +1 -1
- package/dist/client/assets/{use-autosave-Bra0uvzP.js → use-autosave-BZ31lz42.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Bull_Zxw.js → use-connect-companion-Cgkf5QHC.js} +1 -1
- package/dist/client/assets/{use-connection-_01X3r9K.js → use-connection-DNwnGnCC.js} +1 -1
- package/dist/client/assets/{use-copy-DYjRVCxp.js → use-copy-BaRXHXi4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bj3aYXDp.js → use-create-virtual-mcp-CNiIu7cC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-yvDr0D7T.js → use-date-fns-locale-CIJdwgov.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DbVxH1pQ.js → use-debounced-autosave-CvGfYHrZ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BAx8VCR0.js → use-debounced-value-CkL-oBw0.js} +1 -1
- package/dist/client/assets/{use-deco-credits-yiRW4WkY.js → use-deco-credits-raOHBi_A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D9jYfL-F.js → use-decopilot-events-BBmla5vN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C_I3mgoO.js → use-delete-connection-BaUPu_7u.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-ByTSklJo.js → use-deployment-admin-ReJnLBFa.js} +1 -1
- package/dist/client/assets/{use-entitlements-C3RfsquV.js → use-entitlements-B9tTc-Ev.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D8zl5mEv.js → use-fast-preview-draft-url-CDhB1Fq2.js} +1 -1
- package/dist/client/assets/{use-file-configs-DOTdJIrl.js → use-file-configs-y5ZRqVAK.js} +1 -1
- package/dist/client/assets/{use-in-settings-C7yJRVKh.js → use-in-settings-pVGM4OYb.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D7ecDjvR.js → use-infinite-scroll-DTMvlJNU.js} +1 -1
- package/dist/client/assets/{use-join-requests-Ilb6bw8C.js → use-join-requests-Kpry70bT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CnSLB640.js → use-main-panel-tabs-4N3JxcLp.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BZ3hpP0X.js → use-mcp-auth-status-DKnE_dZf.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CNhRUvA5.js → use-mcp-client-DgXYHdq4.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-EbPPuTcd.js → use-mcp-prompts-BXGa38c2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BPf00IDz.js → use-mcp-tools-CVoDfjIr.js} +1 -1
- package/dist/client/assets/{use-members-B3lGJD1d.js → use-members-BBMuBGx7.js} +1 -1
- package/dist/client/assets/{use-mobile-DX7VP8iK.js → use-mobile-BYkN2CBV.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-g6nQp_q-.js → use-navigate-to-agent-fAaFURKA.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-UFHRZeDE.js → use-open-billing-url-D9101_ww.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DbfrlNFJ.js → use-org-auth-client-gMmPeQrf.js} +1 -1
- package/dist/client/assets/{use-org-fs-BJVySa9m.js → use-org-fs-FICli5P0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bu37nqQ2.js → use-org-repo-syncs-Be5dKRHy.js} +1 -1
- package/dist/client/assets/{use-org-sso-BlWvz-NF.js → use-org-sso-Dbq_Rnc1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DE7kCN9L.js → use-organization-roles-xXXb48cX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BLQ6mu_F.js → use-organization-settings-C_ZfDEow.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BsGJc9V3.js → use-panel-navigate-Wiv5HcS5.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-KEUHlmpo.js → use-project-native-view-presence-DON0VaEF.js} +1 -1
- package/dist/client/assets/{use-project-scope-BGBC-ayH.js → use-project-scope-bzqn-AFR.js} +1 -1
- package/dist/client/assets/{use-releases-CQr6l3Pj.js → use-releases-BfrGp9Ns.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CofOdWW9.js → use-reports-diagnostic-LvWG_eGZ.js} +1 -1
- package/dist/client/assets/{use-route-default-main-B3Le2s3e.js → use-route-default-main-BxMIgjib.js} +1 -1
- package/dist/client/assets/{use-secrets-C61EqNPY.js → use-secrets-CQXQ7e5K.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-lO8EHufR.js → use-section-preview-base-DRPQTFm9.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CJtUNfm9.js → use-session-runtime-QJbktQ89.js} +1 -1
- package/dist/client/assets/{use-tags-Cw8Tl4V2.js → use-tags-w04zmXlI.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-P3ACpavh.js → use-task-board-analytics-Da2cyRoo.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Bh8dwwJo.js → use-task-metadata-DiRAYc7A.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DWb5Ffwp.js → use-thread-outputs-BBHbLuqJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DYsZ_S7V.js → use-virtual-mcp-CijpHWeY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-yhr2eVB6.js +1 -0
- package/dist/client/assets/{useQueries-BkAl2Nho.js → useQueries-0w4KxC3A.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4wrf6ZX.js +1 -0
- package/dist/client/assets/{users-D9VRrUZq.js → users-6Ayldnit.js} +1 -1
- package/dist/client/assets/{utils-SncAWk77.js → utils-D_eBTbjc.js} +1 -1
- package/dist/client/assets/{variant-calendar-Bc7nrgXK.js → variant-calendar-C5cziu6r.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-B6vu1CuI.js → variant-matcher-override-GL2lvgp-.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BaA42o_l.js → view-mode-toggle-C2y3stN0.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C32FiGUT.js → virtual-mcp-BrketPQW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Br6aux_w.js +0 -1
- package/dist/client/assets/agent-deck-Vhc8akKy.js +0 -1
- package/dist/client/assets/agent-file-BJobJMYY.js +0 -1
- package/dist/client/assets/agent-library-file-SIskwRA5.js +0 -1
- package/dist/client/assets/agent-settings-CzdAFelD.js +0 -1
- package/dist/client/assets/agent-site-editor-code-tjytfPRA.js +0 -2
- package/dist/client/assets/agent-view-B0TeCTGP.js +0 -1
- package/dist/client/assets/api-keys-BdpkM46E.js +0 -1
- package/dist/client/assets/app-editor-C3rD0azc.js +0 -1
- package/dist/client/assets/project-reports-D_REhIUx.js +0 -1
- package/dist/client/assets/project-tasks-CCtFBWbk.js +0 -1
- package/dist/client/assets/record-editor-CvRbpNqI.js +0 -1
- package/dist/client/assets/reports-CyGj47MI.js +0 -1
- package/dist/client/assets/tasks-pXX1X4bj.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ChD58h72.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C9oYMcau.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,l as f,j as i,bj as N,bi as y,ar as S,bk as v,bl as $,bo as C,bn as w}from"./index-
|
|
1
|
+
import{c as n,l as f,j as i,bj as N,bi as y,ar as S,bk as v,bl as $,bo as C,bn as w}from"./index-B9KXIX84.js";import{i as k}from"./X-rZfX9y0d.js";function E(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 classic:rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none compact:rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,E as b,P as c,_ as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,b as W,e as Ye,j as n,B as F,t as Ve,bS as me,R as Nt,a as Be,y as Qt,D as _t,K as Ue,bT as Xt,bU as Zt,$ as Ke,l as dt,aI as en,p as pt,bV as tn,r as J,a1 as nn,x as At,a9 as ie,d as Pt,a0 as ht,z as Ct,m as He,q as ut,at as Et,bW as sn,aA as on,aG as yt,bX as an,bY as rn,bZ as ln,b_ as cn,b$ as dn,T as un,u as mn,a3 as fn,c0 as hn,c1 as gn,k as It,c2 as lt,c3 as pn,c4 as yn,O as bn,c5 as xn}from"./index-CJvGo7M-.js";import{A as at}from"./avatar-_8aGoMXJ.js";import{t as Ot}from"./Globe04-B3-IlgJ4.js";import{i as wn}from"./SearchLg-C-i1c0zU.js";import{af as Sn,ae as vn,o as ct,S as jn,ag as te,r as kn,ah as Tn,n as bt,g as Nn,f as _n,ai as An,e as Pn}from"./agent-icon-BsnTrJjJ.js";import{s as Cn}from"./XClose-B5O4OZct.js";import{D as En}from"./download-app-dialog-nvCUSnk2.js";import{a as In,u as On}from"./use-project-scope-BGBC-ayH.js";import{u as Lt,a as Ln}from"./use-panel-navigate-BsGJc9V3.js";import{i as ae}from"./CheckCircle-BmHBdTYn.js";import{i as ot}from"./Monitor01-DMBIX-hP.js";import{i as re}from"./Zap-D7YN1rKW.js";import{c as $t,d as Dt,b as Rt,D as Mt,h as $n,e as Dn}from"./dialog-BTnr_AVV.js";import{a as Rn}from"./Share07-uQomrLCR.js";import{s as xt}from"./Plus-ojokEQ8x.js";import{a as Mn}from"./Tool01-COB6rywP.js";import{b as le,a as Ge,f as zn,e as Fn,c as qn,C as Kn}from"./command-C3KYPhtk.js";import{I as Bn}from"./integration-icon-DBmxvUTr.js";import{P as Hn}from"./project-icon-CQHpgqjE.js";import{a as Un,m as Gn}from"./use-mcp-client-CNhRUvA5.js";import{S as Jn,u as Vn}from"./hooks-CZw8Nj9H.js";import{u as Wn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Yn}from"./required-auth-layout-CE8AnY1F.js";import{A as Qn}from"./autosend-BJW1PfVQ.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-Cz0k6s-0.js";import{u as ns}from"./use-org-sso-BlWvz-NF.js";function ss(t){const e=M.c(49),{orgName:s,orgSlug:a,orgLogo:o,domain:i}=t,r=W();let d;e[0]!==a||e[1]!==r?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??r("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=r,e[2]=d):d=e[2];let u;e[3]!==a?(u=k=>{window.location.href=`/${k.slug??a}`},e[3]=a,e[4]=u):u=e[4];let f;e[5]!==r?(f=k=>{Ve.error(k instanceof Error?k.message:r("common.autoDomainJoinScreen.joinError"))},e[5]=r,e[6]=f):f=e[6];let S;e[7]!==d||e[8]!==u||e[9]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[7]=d,e[8]=u,e[9]=f,e[10]=S):S=e[10];const c=Ye(S),y=os;let h;e[11]!==o||e[12]!==s?(h=o?n.jsx(at,{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(Ot,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=h):h=e[13];let w;e[14]!==s||e[15]!==r?(w=r("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=r,e[16]=w):w=e[16];let m;e[17]!==w?(m=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[17]=w,e[18]=m):m=e[18];let l;e[19]!==i||e[20]!==r?(l=r("common.autoDomainJoinScreen.joinDescription",{domain:i}),e[19]=i,e[20]=r,e[21]=l):l=e[21];let b;e[22]!==l?(b=n.jsx("p",{className:"text-sm text-muted-foreground",children:l}),e[22]=l,e[23]=b):b=e[23];let p;e[24]!==m||e[25]!==b?(p=n.jsxs("div",{className:"space-y-2",children:[m,b]}),e[24]=m,e[25]=b,e[26]=p):p=e[26];let x;e[27]!==c?(x=()=>c.mutate(),e[27]=c,e[28]=x):x=e[28];let v;e[29]!==c.isPending||e[30]!==s||e[31]!==r?(v=c.isPending?r("common.autoDomainJoinScreen.joining"):r("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=r,e[32]=v):v=e[32];let T;e[33]!==c.isPending||e[34]!==x||e[35]!==v?(T=n.jsx(F,{onClick:x,disabled:c.isPending,children:v}),e[33]=c.isPending,e[34]=x,e[35]=v,e[36]=T):T=e[36];const P=c.isPending;let N;e[37]!==r?(N=r("common.autoDomainJoinScreen.goHome"),e[37]=r,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:y,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==T||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,j]}),e[42]=T,e[43]=j,e[44]=g):g=e[44];let _;return e[45]!==p||e[46]!==g||e[47]!==h?(_=n.jsxs(me,{children:[h,p,g]}),e[45]=p,e[46]=g,e[47]=h,e[48]=_):_=e[48],_}function os(){window.location.href="/"}function wt(t){const e=M.c(25),{orgSlug:s,orgName:a,reason:o}=t,i=W(),r=is,d=o==="not-found",u=d?wn:Nt;let f;e[0]!==d||e[1]!==i?(f=i(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=i,e[2]=f):f=e[2];const S=f;let c;e[3]!==d||e[4]!==a||e[5]!==s||e[6]!==i?(c=d?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=a,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let h;e[8]!==u?(h=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(u,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=u,e[9]=h):h=e[9];let w;e[10]!==S?(w=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=w):w=e[11];let m;e[12]!==y?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=m):m=e[13];let l;e[14]!==w||e[15]!==m?(l=n.jsxs("div",{className:"space-y-2",children:[w,m]}),e[14]=w,e[15]=m,e[16]=l):l=e[16];let b;e[17]!==i?(b=i("common.noAccessScreen.goToHome"),e[17]=i,e[18]=b):b=e[18];let p;e[19]!==b?(p=n.jsx(F,{onClick:r,children:b}),e[19]=b,e[20]=p):p=e[20];let x;return e[21]!==h||e[22]!==l||e[23]!==p?(x=n.jsxs(me,{children:[h,l,p]}),e[21]=h,e[22]=l,e[23]=p,e[24]=x):x=e[24],x}function is(){window.location.href="/"}function as(t){const e=M.c(59),{invitationId:s,orgName:a,orgSlug:o,orgLogo:i}=t,r=W();let d;e[0]!==s?(d=async()=>{const E=await Be.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=d):d=e[1];let u;e[2]!==o?(u=()=>{Qt(),window.location.href=`/${o}`},e[2]=o,e[3]=u):u=e[3];let f;e[4]!==r?(f=E=>{Ve.error(E instanceof Error?E.message:r("common.pendingInviteScreen.failedToAccept"))},e[4]=r,e[5]=f):f=e[5];let S;e[6]!==d||e[7]!==u||e[8]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[6]=d,e[7]=u,e[8]=f,e[9]=S):S=e[9];const c=Ye(S);let y;e[10]!==s?(y=async()=>{const E=await Be.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=y):y=e[11];let h,w;e[12]!==r?(h=()=>{Ve.success(r("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},w=E=>{Ve.error(E instanceof Error?E.message:r("common.pendingInviteScreen.failedToDecline"))},e[12]=r,e[13]=h,e[14]=w):(h=e[13],w=e[14]);let m;e[15]!==y||e[16]!==h||e[17]!==w?(m={mutationFn:y,onSuccess:h,onError:w},e[15]=y,e[16]=h,e[17]=w,e[18]=m):m=e[18];const l=Ye(m),b=c.isPending||l.isPending;let p;e[19]!==i||e[20]!==a?(p=i?n.jsx(at,{url:i,fallback:a.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(Sn,{className:"h-6 w-6 text-primary"})}),e[19]=i,e[20]=a,e[21]=p):p=e[21];let x;e[22]!==a||e[23]!==r?(x=r("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=r,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let T;e[27]!==r?(T=r("common.pendingInviteScreen.acceptDescription"),e[27]=r,e[28]=T):T=e[28];let P;e[29]!==T?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:T}),e[29]=T,e[30]=P):P=e[30];let N;e[31]!==v||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[v,P]}),e[31]=v,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]!==r?(g=c.isPending?r("common.pendingInviteScreen.acceptingButton"):r("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=r,e[38]=g):g=e[38];let _;e[39]!==b||e[40]!==j||e[41]!==g?(_=n.jsx(F,{onClick:j,disabled:b,children:g}),e[39]=b,e[40]=j,e[41]=g,e[42]=_):_=e[42];let k;e[43]!==l?(k=()=>l.mutate(),e[43]=l,e[44]=k):k=e[44];let A;e[45]!==l.isPending||e[46]!==r?(A=l.isPending?r("common.pendingInviteScreen.decliningButton"):r("common.pendingInviteScreen.declineButton"),e[45]=l.isPending,e[46]=r,e[47]=A):A=e[47];let I;e[48]!==b||e[49]!==k||e[50]!==A?(I=n.jsx(F,{variant:"ghost",onClick:k,disabled:b,children:A}),e[48]=b,e[49]=k,e[50]=A,e[51]=I):I=e[51];let C;e[52]!==_||e[53]!==I?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,I]}),e[52]=_,e[53]=I,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==p?(O=n.jsxs(me,{children:[p,N,C]}),e[55]=N,e[56]=C,e[57]=p,e[58]=O):O=e[58],O}function rs(t){const e=M.c(23),{orgName:s,orgLogo:a}=t,o=W();let i;e[0]!==a||e[1]!==s?(i=a?n.jsx(at,{url:a,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(vn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=i):i=e[2];let r;e[3]!==o?(r=o("common.requestPendingScreen.title"),e[3]=o,e[4]=r):r=e[4];let d;e[5]!==r?(d=n.jsx("h3",{className:"text-lg font-medium",children:r}),e[5]=r,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==o?(u=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=u):u=e[9];let f;e[10]!==u?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[10]=u,e[11]=f):f=e[11];let S;e[12]!==d||e[13]!==f?(S=n.jsxs("div",{className:"space-y-2",children:[d,f]}),e[12]=d,e[13]=f,e[14]=S):S=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let y;e[17]!==c?(y=n.jsx(F,{variant:"ghost",onClick:ls,children:c}),e[17]=c,e[18]=y):y=e[18];let h;return e[19]!==i||e[20]!==S||e[21]!==y?(h=n.jsxs(me,{children:[i,S,y]}),e[19]=i,e[20]=S,e[21]=y,e[22]=h):h=e[22],h}function ls(){window.location.href="/"}function cs(t){const e=M.c(45),{orgName:s,orgSlug:a,orgLogo:o,domain:i}=t,r=W();let d;e[0]!==a?(d=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=a,e[1]=d):d=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=us,e[2]=u):u=e[2];let f;e[3]!==r?(f=_=>{Ve.error(_ instanceof Error?_.message:r("common.requestToJoinScreen.failedToRequest"))},e[3]=r,e[4]=f):f=e[4];let S;e[5]!==d||e[6]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[5]=d,e[6]=f,e[7]=S):S=e[7];const c=Ye(S);let y;e[8]!==o||e[9]!==s?(y=o?n.jsx(at,{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(Ot,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=y):y=e[10];let h;e[11]!==s||e[12]!==r?(h=r("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=r,e[13]=h):h=e[13];let w;e[14]!==h?(w=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[14]=h,e[15]=w):w=e[15];let m;e[16]!==i||e[17]!==r?(m=r("common.requestToJoinScreen.description",{domain:i}),e[16]=i,e[17]=r,e[18]=m):m=e[18];let l;e[19]!==m?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=l):l=e[20];let b;e[21]!==w||e[22]!==l?(b=n.jsxs("div",{className:"space-y-2",children:[w,l]}),e[21]=w,e[22]=l,e[23]=b):b=e[23];let p;e[24]!==c?(p=()=>c.mutate(),e[24]=c,e[25]=p):p=e[25];let x;e[26]!==c.isPending||e[27]!==r?(x=c.isPending?r("common.requestToJoinScreen.requesting"):r("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=r,e[28]=x):x=e[28];let v;e[29]!==c.isPending||e[30]!==p||e[31]!==x?(v=n.jsx(F,{onClick:p,disabled:c.isPending,children:x}),e[29]=c.isPending,e[30]=p,e[31]=x,e[32]=v):v=e[32];const T=c.isPending;let P;e[33]!==r?(P=r("common.requestToJoinScreen.goToHome"),e[33]=r,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ds,disabled:T,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==v||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,N]}),e[38]=v,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==b||e[42]!==j||e[43]!==y?(g=n.jsxs(me,{children:[y,b,j]}),e[41]=b,e[42]=j,e[43]=y,e[44]=g):g=e[44],g}function ds(){window.location.href="/"}function us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ms(t){const e=M.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!i.ok)throw new Error(`org-access-status failed (${i.status})`);return await i.json()},e[2]=t,e[3]=a):a=e[3];let o;return e[4]!==s||e[5]!==a?(o={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=o):o=e[6],_t(o)}function fs({orgSlug:t}){const{data:e}=ms(t);if(e.status!=="member"){Xt()?.org===t&&Zt();const s=localStorage.getItem(Ke.lastOrgSlug())===t;if(s&&localStorage.removeItem(Ke.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(wt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(as,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(cs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(wt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function zt(t){const e=M.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:o,title:i,description:r,icon:d,children:u,footerLeading:f,actions:S,onDismiss:c,tone:y}=t,h=y===void 0?"neutral":y,w=f||S;let m;e[0]!==h?(m=h==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=h,e[1]=m):m=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Cn,{size:14}),e[2]=l):l=e[2];let b;e[3]!==a||e[4]!==c?(b=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:l}),e[3]=a,e[4]=c,e[5]=b):b=e[5];const p=d&&"flex items-start gap-3",x=u&&"pb-3";let v;e[6]!==p||e[7]!==x?(v=dt("p-4 pr-11",p,x),e[6]=p,e[7]=x,e[8]=v):v=e[8];let T;e[9]!==d?(T=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=T):T=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]!==i?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:i}),e[13]=i,e[14]=N):N=e[14];let j;e[15]!==r?(j=r&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:r}),e[15]=r,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 _;e[21]!==u?(_=u&&n.jsx("div",{className:"mt-3",children:u}),e[21]=u,e[22]=_):_=e[22];let k;e[23]!==g||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,_]}),e[23]=g,e[24]=_,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==v||e[28]!==T?(A=n.jsxs("div",{className:v,children:[T,k]}),e[26]=k,e[27]=v,e[28]=T,e[29]=A):A=e[29];let I;e[30]!==S||e[31]!==f||e[32]!==w||e[33]!==h?(I=w&&n.jsxs("div",{className:dt("flex items-center justify-between gap-3 px-4 py-2.5",h==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=f,e[32]=w,e[33]=h,e[34]=I):I=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==I||e[38]!==m||e[39]!==b||e[40]!==h?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":h,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:[m,b,A,I]}),e[35]=s,e[36]=A,e[37]=I,e[38]=m,e[39]=b,e[40]=h,e[41]=C):C=e[41],C}const hs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Ft(t){return`[data-tour="${hs[t]}"]`}const gs=[{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 ps(t){return gs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ys(t,e){return ps(e).map(s=>({element:Ft(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const bs=Ft("switcher"),xs=30;function qt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ws(t,e){return ys(t,e).filter(s=>typeof s.element=="string"&&qt(s.element))}function Ss(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:a})=>{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",()=>a.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function vs(){return(await en(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function js(t,e){if(Je)return;Je=!0;let s=0;const a=()=>{if(!qt(bs)&&s++<xs){requestAnimationFrame(a);return}const o=ws(t,e);if(o.length===0){Je=!1;return}vs().then(i=>{i(Ss(t,o)).drive()}).catch(()=>{Je=!1})};a()}function ks(t){return t!=="off"}function ci(t){if(!t.hasSource)return[];const e=["site-editor"];return ks(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Kt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function di(t){return t.reportsOnly&&!t.onReportAgent&&Kt(t.tabId)}const Ts=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:ot,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:ct,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:jn,title:"Site editor redesigned",body:"Every block wears the same icon and the same actions, the variant you are editing is named in the header beside the block it belongs to, and picking a section is now a search rather than a scroll."}],cta:{label:"Try it now",action:"enable-new-layout"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:pt,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:te,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:ot,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:ot,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:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:tn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ot,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:te,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:te,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:te,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:te,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:te,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:te,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:ct,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:pt,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:te,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:ct,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:te,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Bt=Ts,it="studio.release-feed.v1",mt=new Set;let de="",ue={},ft=!1;function Ns(){if(ft)return de||"{}";try{return localStorage.getItem(it)??"{}"}catch{return de||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ns();return t!==de&&(de=t,ue=Ht(t)),ue}function _s(t){mt.add(t);const e=s=>{if(!(s.key!==it&&s.key!==null)){try{const a=localStorage.getItem(it)??"{}",i={...Ht(a),...ue};ue=i,de=JSON.stringify(i)}catch{}t()}};return window.addEventListener("storage",e),()=>{mt.delete(t),window.removeEventListener("storage",e)}}function As(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(it,de),ft=!1}catch{ft=!0}mt.forEach(e=>e())}function Ps(){const t=M.c(7),e=J.useSyncExternalStore(_s,St,St);let s;t[0]!==e?(s=u=>!!e[u],t[0]=e,t[1]=s):s=t[1];const a=s,o=Cs;let i;t[2]!==e?(i=Bt.reduce((u,f)=>e[f.id]?u:u+1,0),t[2]=e,t[3]=i):i=t[3];const r=i;let d;return t[4]!==a||t[5]!==r?(d={isSeen:a,markSeen:o,unseenCount:r},t[4]=a,t[5]=r,t[6]=d):d=t[6],d}function Cs(t){ue[t]||As({...ue,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function Es(t,e){const s=Ut(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function Is(t){const e=M.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>Ut(s).now,e[0]=s,e[1]=a):a=e[1];const o=a;let i;return e[2]!==s?(i=r=>Es(s,r),e[2]=s,e[3]=i):i=e[3],J.useSyncExternalStore(i,o,o)}const Os=720*60*60*1e3,Ls=10080*60*1e3;function $s(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ds(t){const e=Bt[0];if(!e)return null;const s=$s(e.date),a=t-s;return a<0||a>Os?null:e}function Rs(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 Ms(t,e){const s=Rs(t);return s===null?!1:e-s>=Ls}function zs(){const t=M.c(58),e=W(),s=In(),a=nn(),o=Lt(),i=!!s,r=a===ie.home&&!s;let d;t[0]!==o||t[1]!==i?(d=i&&!!o&&Kt(o),t[0]=o,t[1]=i,t[2]=d):d=t[2];const u=d,{data:f}=Be.useSession(),{isSeen:S,markSeen:c}=Ps(),[,y]=At(),[h,w]=J.useState(!1),m=Is(6e4);let l,b,p;if(t[3]!==S||t[4]!==m||t[5]!==f?.user?.createdAt){p=Symbol.for("react.early_return_sentinel");e:{if(l=Ds(m),!l){p=null;break e}if(!Ms(f?.user?.createdAt,m)){p=null;break e}b=S(l.id)}t[3]=S,t[4]=m,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=p}else l=t[6],b=t[7],p=t[8];if(p!==Symbol.for("react.early_return_sentinel"))return p;if(b)return null;let x;t[9]!==l.id||t[10]!==i||t[11]!==c||t[12]!==r||t[13]!==u||t[14]!==e?(x=()=>{c(l.id),js(e,{onOrgHome:r,inProject:i,onSiteEditor:u})},t[9]=l.id,t[10]=i,t[11]=c,t[12]=r,t[13]=u,t[14]=e,t[15]=x):x=t[15];const v=x;let T;t[16]!==l.id||t[17]!==c||t[18]!==y?(T=()=>{y(qs),c(l.id)},t[16]=l.id,t[17]=c,t[18]=y,t[19]=T):T=t[19];const P=T;let N;t[20]!==e?(N=e("announcements.release.ariaLabel"),t[20]=e,t[21]=N):N=t[21];let j;t[22]!==e?(j=e("announcements.release.dismiss"),t[22]=e,t[23]=j):j=t[23];const g=l.eyebrow,_=l.title;let k;t[24]!==l.id||t[25]!==c?(k=()=>c(l.id),t[24]=l.id,t[25]=c,t[26]=k):k=t[26];let A;t[27]!==l.id||t[28]!==l.learnMoreHref||t[29]!==c||t[30]!==e?(A=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[27]=l.id,t[28]=l.learnMoreHref,t[29]=c,t[30]=e,t[31]=A):A=t[31];let I;t[32]!==l.cta||t[33]!==l.id||t[34]!==P||t[35]!==c||t[36]!==v?(I=l.cta?"href"in l.cta?n.jsx(F,{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(F,{size:"sm",onClick:v,children:l.cta.label}):l.cta.action==="enable-new-layout"?n.jsx(F,{size:"sm",onClick:P,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>w(!0),children:l.cta.label}):null,t[32]=l.cta,t[33]=l.id,t[34]=P,t[35]=c,t[36]=v,t[37]=I):I=t[37];let C;t[38]!==l.bullets?(C=l.bullets.map(Fs),t[38]=l.bullets,t[39]=C):C=t[39];let O;t[40]!==C?(O=n.jsx("ul",{className:"flex flex-col gap-3",children:C}),t[40]=C,t[41]=O):O=t[41];let E;t[42]!==l.id||t[43]!==c?(E=B=>{w(B),B||c(l.id)},t[42]=l.id,t[43]=c,t[44]=E):E=t[44];let D;t[45]!==h||t[46]!==E?(D=n.jsx(En,{open:h,onOpenChange:E}),t[45]=h,t[46]=E,t[47]=D):D=t[47];let z;return t[48]!==l.eyebrow||t[49]!==l.title||t[50]!==A||t[51]!==I||t[52]!==O||t[53]!==D||t[54]!==N||t[55]!==j||t[56]!==k?(z=n.jsxs(zt,{ariaLabel:N,dismissLabel:j,eyebrow:g,title:_,onDismiss:k,footerLeading:A,actions:I,children:[O,D]}),t[48]=l.eyebrow,t[49]=l.title,t[50]=A,t[51]=I,t[52]=O,t[53]=D,t[54]=N,t[55]=j,t[56]=k,t[57]=z):z=t[57],z}function Fs(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)}function qs(t){return{...t,compactPageLayout:!0}}const Gt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Gt?"⌘":"Ctrl",V={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"}},Ks=[{label:"General",shortcuts:[V.commandPalette,V.keyboardShortcuts,V.back,V.newTask,V.toggleDaemon]},{label:"Editor",shortcuts:[V.saveAndFormat]},{label:"Chat",shortcuts:[V.focusChatInput,V.togglePlanMode,V.sendMessage,V.newLine]},{label:"Questions",shortcuts:[V.selectOption]},{label:"Monitoring",shortcuts:[V.applyFilter]}];function jt(t){return Gt?t.metaKey:t.ctrlKey}function Bs(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Hs(t){const e=M.c(11),{open:s,onOpenChange:a}=t,o=W();let i;e[0]!==o?(i=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=i):i=e[1];let r;e[2]!==i?(r=n.jsx($t,{children:n.jsx(Dt,{children:i})}),e[2]=i,e[3]=r):r=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Ks.map(Us)}),e[4]=d):d=e[4];let u;e[5]!==r?(u=n.jsxs(Rt,{className:"sm:max-w-md",children:[r,d]}),e[5]=r,e[6]=u):u=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==u?(f=n.jsx(Mt,{open:s,onOpenChange:a,children:u}),e[7]=a,e[8]=s,e[9]=u,e[10]=f):f=e[10],f}function Us(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(Gs)})]},t.label)}function Gs(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(Js)})]},t.description)}function Js(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 kt=8;function Vs(t){const{org:e}=ht(),s=Un({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:a}=He({queryKey:Ue.globalSearch(e.id,t,kt),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:kt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=M.c(195),{open:s,onOpenChange:a}=t,o=W(),i=Pt(),{org:r}=ht(),{projects:d,hasProjects:u}=On(),[f,S]=J.useState(""),c=J.useDeferredValue(f),y=Vs(c);let h;e[0]!==a?(h=()=>{a(!1),S("")},e[0]=a,e[1]=h):h=e[1];const w=h;let m;e[2]!==w?(m=(q,Y)=>{ut("command_palette_used",{kind:Y}),q(),w()},e[2]=w,e[3]=m):m=e[3];const l=m;let b;e[4]!==i||e[5]!==r.id||e[6]!==r.slug?(b=q=>{if(q.type==="connection"){if(!q.slug){i({to:"/$org/settings/connections",params:{org:r.slug},search:{tab:"all"}});return}i({to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:q.slug}});return}if(q.type==="task"){i({to:ie.tasks,params:{org:r.slug,taskKey:q.key??void 0}});return}const Y=Et(r.id).id;sn(i,on({org:r.slug,agentId:q.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:q.id}),replace:!1})},e[4]=i,e[5]=r.id,e[6]=r.slug,e[7]=b):b=e[7];const p=b;let x;e[8]!==f?(x=[f],e[8]=f,e[9]=x):x=e[9];const v=x;let T,P,N,j,g,_,k,A,I,C,O,E,D;if(e[10]!==w||e[11]!==l||e[12]!==u||e[13]!==y||e[14]!==i||e[15]!==a||e[16]!==s||e[17]!==p||e[18]!==r.slug||e[19]!==d||e[20]!==v||e[21]!==o||e[22]!==f){const q=y.filter(Qs),Y=y.filter(Ys);let ne;e[36]!==r.slug?(ne={org:r.slug},e[36]=r.slug,e[37]=ne):ne=e[37];const R=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let H;e[41]!==R||e[42]!==ee?(H={key:"home",label:ee,icon:Q,to:ie.home,params:R},e[41]=R,e[42]=ee,e[43]=H):H=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(_n,{"aria-hidden":"true"}),e[46]=se):se=e[46];let U;e[47]!==R||e[48]!==X?(U={key:"reports",label:X,icon:se,to:ie.reports,params:R},e[47]=R,e[48]=X,e[49]=U):U=e[49];let G;e[50]!==o?(G=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=G):G=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(bt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==r.slug?(Z={org:r.slug,taskKey:void 0},e[53]=r.slug,e[54]=Z):Z=e[54];let L;e[55]!==G||e[56]!==Z?(L={key:"tasks",label:G,icon:oe,to:ie.tasks,params:Z},e[55]=G,e[56]=Z,e[57]=L):L=e[57];let K;e[58]!==o?(K=o("sidebar.navDestinations.library"),e[58]=o,e[59]=K):K=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Rn,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==R||e[62]!==K?(fe={key:"library",label:K,icon:Qe,to:ie.library,params:R},e[61]=R,e[62]=K,e[63]=fe):fe=e[63];let he;e[64]!==o?(he=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=he):he=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(An,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let ge;e[67]!==R||e[68]!==he?(ge={key:"discover",label:he,icon:Xe,to:ie.discover,params:R},e[67]=R,e[68]=he,e[69]=ge):ge=e[69];let Ze;e[70]!==H||e[71]!==U||e[72]!==L||e[73]!==fe||e[74]!==ge?(Ze=[H,U,L,fe,ge],e[70]=H,e[71]=U,e[72]=L,e[73]=fe,e[74]=ge,e[75]=Ze):Ze=e[75];const rt=Ze;P=zn,j=s,e[76]!==w||e[77]!==a?(g=$=>$?a(!0):w(),e[76]=w,e[77]=a,e[78]=g):g=e[78],e[79]!==o?(_=o("commandPalette.title"),e[79]=o,e[80]=_):_=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==f?(A=n.jsx(Fn,{placeholder:pe,"aria-label":ye,value:f,onValueChange:S}),e[87]=pe,e[88]=ye,e[89]=f,e[90]=A):A=e[90],T=qn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(I=n.jsx(Kn,{children:be}),e[93]=be,e[94]=I):I=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let we;e[97]!==rt||e[98]!==l||e[99]!==i?(we=rt.map($=>n.jsxs(le,{onSelect:()=>l(()=>i({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=rt,e[98]=l,e[99]=i,e[100]=we):we=e[100],e[101]!==xe||e[102]!==we?(C=n.jsx(Ge,{heading:xe,children:we}),e[101]=xe,e[102]=we,e[103]=C):C=e[103],e[104]!==l||e[105]!==u||e[106]!==i||e[107]!==r.slug||e[108]!==d||e[109]!==o?(O=u&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>l(()=>i({to:ie.projects,params:{org:r.slug,agentId:$.id}}),"project"),children:[n.jsx(Hn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=l,e[105]=u,e[106]=i,e[107]=r.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let Se;e[111]!==o?(Se=o("commandPalette.actions"),e[111]=o,e[112]=Se):Se=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==l||e[116]!==i||e[117]!==R?(je=()=>l(()=>i({to:ie.home,params:R}),"new_project"),e[115]=l,e[116]=i,e[117]=R,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==l||e[131]!==i||e[132]!==R?(Ae=()=>l(()=>i({to:"/$org/settings/members",params:R}),"invite"),e[130]=l,e[131]=i,e[132]=R,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Pn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Ie;e[143]!==o?(Ie=o("commandPalette.addConnection"),e[143]=o,e[144]=Ie):Ie=e[144];let Oe;e[145]!==l||e[146]!==i||e[147]!==R?(Oe=()=>l(()=>i({to:"/$org/settings/connections",params:R,search:{tab:"all"}}),"add_connection"),e[145]=l,e[146]=i,e[147]=R,e[148]=Oe):Oe=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Ie||e[155]!==Oe||e[156]!==$e?(De=n.jsxs(le,{value:Ie,onSelect:Oe,children:[nt,$e]}),e[154]=Ie,e[155]=Oe,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==l||e[161]!==i||e[162]!==R?(Me=()=>l(()=>i({to:"/$org/settings/general",params:R}),"settings"),e[160]=l,e[161]=i,e[162]=R,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx(Mn,{"aria-hidden":"true"}),e[164]=st):st=e[164];let ze;e[165]!==o?(ze=o("commandPalette.settings"),e[165]=o,e[166]=ze):ze=e[166];let Fe;e[167]!==ze?(Fe=n.jsx("span",{children:ze}),e[167]=ze,e[168]=Fe):Fe=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==Fe?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,Fe]}),e[169]=Re,e[170]=Me,e[171]=Fe,e[172]=qe):qe=e[172],e[173]!==Se||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(E=n.jsxs(Ge,{heading:Se,children:[Ne,Ee,De,qe]}),e[173]=Se,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=E):E=e[178],D=q.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:q.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:v,onSelect:()=>l(()=>p($),"connection"),children:[n.jsx(Bn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:v,onSelect:()=>l(()=>p($),$.type),children:[$.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(bt,{"aria-hidden":"true"}),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[10]=w,e[11]=l,e[12]=u,e[13]=y,e[14]=i,e[15]=a,e[16]=s,e[17]=p,e[18]=r.slug,e[19]=d,e[20]=v,e[21]=o,e[22]=f,e[23]=T,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=_,e[29]=k,e[30]=A,e[31]=I,e[32]=C,e[33]=O,e[34]=E,e[35]=D}else T=e[23],P=e[24],N=e[25],j=e[26],g=e[27],_=e[28],k=e[29],A=e[30],I=e[31],C=e[32],O=e[33],E=e[34],D=e[35];let z;e[179]!==T||e[180]!==N||e[181]!==I||e[182]!==C||e[183]!==O||e[184]!==E||e[185]!==D?(z=n.jsxs(T,{children:[I,C,O,E,D,N]}),e[179]=T,e[180]=N,e[181]=I,e[182]=C,e[183]=O,e[184]=E,e[185]=D,e[186]=z):z=e[186];let B;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==_||e[191]!==k||e[192]!==A||e[193]!==z?(B=n.jsxs(P,{open:j,onOpenChange:g,title:_,description:k,children:[A,z]}),e[187]=P,e[188]=j,e[189]=g,e[190]=_,e[191]=k,e[192]=A,e[193]=z,e[194]=B):B=e[194],B}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const We=new Jn(!1);function Xs(){We.set(!0)}function Zs(){We.set(!1)}function eo(){const t=M.c(2),e=J.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const to=300*1e3,no=2;function so(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 oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=M.c(43),e=W(),s=Wn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={mutationFn:ro},t[0]=a):a=t[0];const o=Ye(a);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={queryKey:Ue.appVersionCheck(),queryFn:ao,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[1]=i):i=t[1];const{data:r,dataUpdatedAt:d}=He(i),[u,f]=J.useState(0);let S;t[2]===Symbol.for("react.memo_cache_sentinel")?(S={version:null,count:0},t[2]=S):S=t[2];const[c,y]=J.useState(S);d!==u&&(f(d),y(z=>so(z,r,"4.390.4")));const[h,w]=J.useState(null),m=s;let l;t[3]!==s||t[4]!==o?(l=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=l):l=t[5];const b=l,p="announcements.version.refresh";if(!oo(c,h))return null;let x;t[6]!==e?(x=e("announcements.version.ariaLabel"),t[6]=e,t[7]=x):x=t[7];let v;t[8]!==e?(v=e("announcements.version.dismiss"),t[8]=e,t[9]=v):v=t[9];let T;t[10]!==e?(T=e("announcements.version.eyebrow"),t[10]=e,t[11]=T):T=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(yt,{size:16}),t[17]=g):g=t[17];let _;t[18]!==c.version?(_=()=>w(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.390.4"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==p||t[23]!==e?(A=e(p),t[22]=p,t[23]=e,t[24]=A):A=t[24];const I=m;let C;t[25]!==I?(C=dt(I),t[25]=I,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(yt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let E;t[29]!==b||t[30]!==m||t[31]!==A||t[32]!==O?(E=n.jsxs(F,{size:"sm",disabled:m,onClick:b,children:[A,O]}),t[29]=b,t[30]=m,t[31]=A,t[32]=O,t[33]=E):E=t[33];let D;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==x||t[38]!==v||t[39]!==T||t[40]!==P||t[41]!==j?(D=n.jsx(zt,{ariaLabel:x,dismissLabel:v,eyebrow:T,title:P,description:j,icon:g,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=x,t[38]=v,t[39]=T,t[40]=P,t[41]=j,t[42]=D):D=t[42],D}async function ao(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ro(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ke.ptBrAnnouncementSeen(t));function uo(){const t=M.c(35),e=W(),[s,a]=At(),{data:o,isPending:i}=Be.useSession(),r=o?.user,d=r?.id,u=r?.createdAt,f=u!=null&&new Date(u).getTime()<co,S=an()==="pt-BR",c=!i&&!!d&&f&&S&&s.language==="en"&&!Tt(d).has(),[y,h]=J.useState(!1),[w,m]=J.useState(!1);!y&&!i&&(h(!0),c&&d&&(Tt(d).mark(),a(fo),m(!0),ut("pt_br_auto_switch_shown")));let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=B=>{ut("pt_br_auto_switch_closed",{action:B}),m(!1)},t[0]=l):l=t[0];const b=l;let p;t[1]!==a?(p=()=>{a(mo),b("switch-back")},t[1]=a,t[2]=p):p=t[2];const x=p;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=B=>!B&&b("dismiss"),t[3]=v):v=t[3];let T;t[4]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=T):T=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(Dt,{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($n,{children:j}),t[11]=j,t[12]=g):g=t[12];let _;t[13]!==N||t[14]!==g?(_=n.jsxs($t,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=_):_=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]!==x||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:x,children:k}),t[18]=x,t[19]=k,t[20]=A):A=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b("ok"),t[21]=I):I=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(F,{onClick:I,children:C}),t[24]=C,t[25]=O):O=t[25];let E;t[26]!==A||t[27]!==O?(E=n.jsxs(Dn,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=E):E=t[28];let D;t[29]!==E||t[30]!==_?(D=n.jsxs(Rt,{className:"sm:max-w-md",children:[T,_,E]}),t[29]=E,t[30]=_,t[31]=D):D=t[31];let z;return t[32]!==w||t[33]!==D?(z=n.jsx(Mt,{open:w,onOpenChange:v,children:D}),t[32]=w,t[33]=D,t[34]=z):z=t[34],z}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=M.c(1),{activeOrg:s}=t;if(!s)return null;ln(s.id,{name:s.name??void 0,slug:s.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:o,opts:i,autosendValue:r}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const u=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(s??u)!==u;let c,y;return i?.panel?y=i.panel:o?(y=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!S&&e.tabId&&!dn(e.tabId)&&(y=e.tabId),c!==void 0&&(d.sidepanel=c),i?.autosend&&(d.autosend=r),{tabId:y,search:d}}const Jt="studio:thread-layout:v4",bo=50;function Vt(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 xo(t,e,s,a=bo){const o=t.filter(([i])=>i!==e);for(o.push([e,Vt(s)]);o.length>a;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Jt);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 Wt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function wo(t,e){t&&Wt(xo(gt(),t,e))}function So(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Vt(e[1]):null}function ui(t){if(!t)return;const e=gt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Wt(s)}function Yt(t){return{queryKey:Ue.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 mi(t){const e=M.c(10);let s;e[0]!==t?(s=Yt(t),e[0]=t,e[1]=s):s=e[1];const a=He(s);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=e[3];let i;e[4]!==a.data?.tiles?(i=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=i):i=e[5];let r;return e[6]!==a.isLoading||e[7]!==o||e[8]!==i?(r={isLoading:a.isLoading,prompts:o,tiles:i},e[6]=a.isLoading,e[7]=o,e[8]=i,e[9]=r):r=e[9],r}function vo(t){const e=M.c(31),{orgSlug:s,orgName:a,domain:o}=t,i=W();let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const d=r,u=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Nt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let S;e[3]!==i?(S=i("common.ssoRequiredScreen.title"),e[3]=i,e[4]=S):S=e[4];let c;e[5]!==S?(c=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=c):c=e[6];let y;e[7]!==o||e[8]!==a||e[9]!==i?(y=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",i("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${i("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):i("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=i,e[10]=y):y=e[10];let h;e[11]!==y?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=h):h=e[12];let w;e[13]!==c||e[14]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[13]=c,e[14]=h,e[15]=w):w=e[15];let m;e[16]!==i?(m=i("common.ssoRequiredScreen.signInWithSso"),e[16]=i,e[17]=m):m=e[17];let l;e[18]!==d||e[19]!==m?(l=n.jsx(F,{onClick:d,children:m}),e[18]=d,e[19]=m,e[20]=l):l=e[20];let b;e[21]!==i?(b=i("common.ssoRequiredScreen.goBack"),e[21]=i,e[22]=b):b=e[22];let p;e[23]!==b?(p=n.jsx(F,{variant:"ghost",onClick:u,children:b}),e[23]=b,e[24]=p):p=e[24];let x;e[25]!==p||e[26]!==l?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[l,p]}),e[25]=p,e[26]=l,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==w?(v=n.jsxs(me,{children:[f,w,x]}),e[28]=x,e[29]=w,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function ko(t){const e=M.c(27),{notice:s,orgSlug:a}=t,o=W();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(un,{className:"h-6 w-6 text-destructive"})}),e[0]=i):i=e[0];let r;e[1]!==s.title?(r=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=r):r=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let u;e[5]!==r||e[6]!==d?(u=n.jsxs("div",{className:"space-y-2",children:[r,d]}),e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?n.jsx(F,{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]=f):f=e[10];const S=`/${encodeURIComponent(a)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let y;e[13]!==S||e[14]!==c?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:c})}),e[13]=S,e[14]=c,e[15]=y):y=e[15];let h;e[16]!==o?(h=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=h):h=e[17];let w;e[18]!==h?(w=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:h})}),e[18]=h,e[19]=w):w=e[19];let m;e[20]!==w||e[21]!==f||e[22]!==y?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y,w]}),e[20]=w,e[21]=f,e[22]=y,e[23]=m):m=e[23];let l;return e[24]!==m||e[25]!==u?(l=n.jsxs(me,{children:[i,u,m]}),e[24]=m,e[25]=u,e[26]=l):l=e[26],l}function To(t){const e=M.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/${t}/notice`,{credentials:"include"});return r.ok?(await r.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const o=!!t;let i;return e[4]!==s||e[5]!==a||e[6]!==o?(i={queryKey:s,queryFn:a,enabled:o,staleTime:6e4},e[4]=s,e[5]=a,e[6]=o,e[7]=i):i=e[7],He(i)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Ao(t){const e=M.c(7),{org:s,children:a}=t;let o;e[0]!==s.id||e[1]!==s.name?(o={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=o):o=e[2];const i=o;let r;return e[3]!==a||e[4]!==s||e[5]!==i?(r=n.jsx(xn,{org:s,project:i,children:a}),e[3]=a,e[4]=s,e[5]=i,e[6]=r):r=e[6],r}function Po(){const t=Pt(),e=Vn(),{org:s}=ht(),a=mn({strict:!1}),o=Lt(),{openPanel:i,closePanel:r}=Ln(),d=Xn(),u=Zn(),f=es(),S=ts(),c=(m,l=!0)=>t({to:".",search:m,replace:l}),y=()=>c(m=>({...m,sidepanel:!0})),h=(m,l,b)=>{const p=!!u&&u===m;u&&!p&&wo(u,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const x=p?null:So(m),v=Et(s.id).id,T=yo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:l,decopilotId:v,savedLayout:x,opts:b,autosendValue:Qn});return S(m,()=>T.search,{virtualMcpId:l,view:{tabId:T.tabId}})};return{openSidePanel:y,setTaskId:h,createNewTask:async(m,l,b)=>{const p=crypto.randomUUID(),x=m??f;try{await e?.create({id:p,virtual_mcp_id:x,...l?{branch:l}:{}})}catch{}h(p,x,b)},openTab:i,closeTab:r}}const Co=new Set(["/$org/","/$org/home"]);function Eo(){const t=M.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Io},t[0]=e):e=t[0],It(e)}function Io(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Co.has(e)}function Oo(){const t=M.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 a=fn(e)?.params.org,[o,i]=J.useState(!1),[r,d]=eo(),u=hn(),f=Eo(),S=a??"";let c;t[1]!==S?(c=Yt(S),t[1]=S,t[2]=c):c=t[2];const y=!!a&&f;let h;t[3]!==c||t[4]!==y?(h={...c,enabled:y},t[3]=c,t[4]=y,t[5]=h):h=t[5],He(h);const{data:w}=Be.useSession(),m=w?.user?.id;let l;t[6]!==a||t[7]!==m?(l=a&&m?gn(m,a):null,t[6]=a,t[7]=m,t[8]=l):l=t[8];const b=l;let p,x;t[9]!==u?(p=()=>{const L=K=>{if(jt(K)&&K.code==="KeyK"){K.preventDefault(),Xs();return}if(K.key==="?"&&!Bs(K.target)){K.preventDefault(),i(!0);return}jt(K)&&K.code==="BracketLeft"&&u.history.canGoBack()&&(K.preventDefault(),u.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[u],t[9]=u,t[10]=p,t[11]=x):(p=t[10],x=t[11]),J.useEffect(p,x);let v;t[12]!==a?(v=Ue.activeOrganization(a),t[12]=a,t[13]=v):v=t[13];let T;t[14]!==a||t[15]!==m?(T=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Be.organization.getFullOrganization({query:{organizationSlug:a}}).finally($o),K=lt(L);return L&&!K&&localStorage.setItem(Ke.lastOrgSlug(),a),m&&L&&yn(m,a,L),L},t[14]=a,t[15]=m,t[16]=T):T=t[16];const P=b?b.data:void 0,N=b?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==v||t[20]!==T?(j={queryKey:v,queryFn:T,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=v,t[20]=T,t[21]=j):j=t[21];const{data:g}=_t(j),_=g?.id,k=g?.slug,{data:A}=ns(_,k),I=!!A?.ssoRequired&&!A.authenticated,{data:C}=To(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Lo},t[22]=O):O=t[22];const E=It(O),D=C?.severity==="block"&&!_o(E),z=_??"",B=k??"";let q;t[23]!==z||t[24]!==B?(q=Gn({connectionId:Ct,orgId:z,orgSlug:B}),t[23]=z,t[24]=B,t[25]=q):q=t[25];const Y=!!_&&!!k;let ne;if(t[26]!==q||t[27]!==Y?(ne={...q,enabled:Y},t[26]=q,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||lt(g)||I||D)&&Zs(),!g){let L;return t[29]!==a?(L=n.jsx(fs,{orgSlug:a}),t[29]=a,t[30]=L):L=t[30],L}if(lt(g)){localStorage.getItem(Ke.lastOrgSlug())===a&&localStorage.removeItem(Ke.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(pn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(D&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(ko,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(I){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(vo,{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 ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let H;t[44]!==g?(H=n.jsx(po,{activeOrg:g}),t[44]=g,t[45]=H):H=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(bn,{}),t[46]=X):X=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(zs,{}),n.jsx(io,{})]}),t[47]=se):se=t[47];let U;t[48]!==r||t[49]!==d?(U=r&&n.jsx(Ws,{open:r,onOpenChange:d}),t[48]=r,t[49]=d,t[50]=U):U=t[50];let G;t[51]!==o?(G=n.jsx(Hs,{open:o,onOpenChange:i}),t[51]=o,t[52]=G):G=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(uo,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==H||t[56]!==U||t[57]!==G?(Z=n.jsxs(Ao,{org:Q,children:[H,X,se,U,G,oe]}),t[54]=Q,t[55]=H,t[56]=U,t[57]=G,t[58]=Z):Z=t[58],Z}function Lo(t){return t.location.pathname}function $o(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Do(){const t=M.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Oo,{})}),t[0]=e):e=t[0],e}const fi=Object.freeze(Object.defineProperty({__proto__:null,default:Do,usePanelActions:Po},Symbol.toStringTag,{value:"Module"}));export{V as K,hs as L,Po as a,Is as b,jt as c,ks as d,mi as e,ui as f,fi as g,Kt as i,Xs as o,ci as r,di as s,To as u};
|
|
1
|
+
import{c as M,b as W,e as Ye,j as n,B as F,t as Ve,bS as me,R as Nt,a as Be,y as Qt,D as _t,K as Ue,bT as Xt,bU as Zt,$ as Ke,l as dt,aI as en,p as pt,bV as tn,r as J,a1 as nn,x as At,a9 as ie,d as Pt,a0 as ht,z as Ct,m as He,q as ut,at as Et,bW as sn,aA as on,aG as yt,bX as an,bY as rn,bZ as ln,b_ as cn,b$ as dn,T as un,u as mn,a3 as fn,c0 as hn,c1 as gn,k as It,c2 as lt,c3 as pn,c4 as yn,O as bn,c5 as xn}from"./index-B9KXIX84.js";import{A as at}from"./avatar-D0sKo5Ko.js";import{t as Ot}from"./Globe04-Cfnfjo6J.js";import{i as wn}from"./SearchLg-CL6esTtw.js";import{af as Sn,ae as vn,o as ct,S as jn,ag as te,r as kn,ah as Tn,n as bt,g as Nn,f as _n,ai as An,e as Pn}from"./agent-icon-CUHwvCug.js";import{s as Cn}from"./XClose-Drgfi-MO.js";import{D as En}from"./download-app-dialog-DJrde0mx.js";import{a as In,u as On}from"./use-project-scope-bzqn-AFR.js";import{u as Lt,a as Ln}from"./use-panel-navigate-Wiv5HcS5.js";import{i as ae}from"./CheckCircle-BmoxvNcp.js";import{i as ot}from"./Monitor01-BLWTHtTp.js";import{i as re}from"./Zap-DcWY_A2w.js";import{c as $t,d as Dt,b as Rt,D as Mt,h as $n,e as Dn}from"./dialog-O_WsqGxK.js";import{a as Rn}from"./Share07-DwVANqGN.js";import{s as xt}from"./Plus-Y-KvMcUC.js";import{a as Mn}from"./Tool01-CeJWUTx4.js";import{b as le,a as Ge,f as zn,e as Fn,c as qn,C as Kn}from"./command-Das6UcyK.js";import{I as Bn}from"./integration-icon-BDlRT6Oh.js";import{P as Hn}from"./project-icon-BFHg-quI.js";import{a as Un,m as Gn}from"./use-mcp-client-DgXYHdq4.js";import{S as Jn,u as Vn}from"./hooks-D5xL0VD-.js";import{u as Wn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Yn}from"./required-auth-layout-CyCpjrfs.js";import{A as Qn}from"./autosend-BNuK0erf.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-C_KFFLE6.js";import{u as ns}from"./use-org-sso-Dbq_Rnc1.js";function ss(t){const e=M.c(49),{orgName:s,orgSlug:a,orgLogo:o,domain:i}=t,r=W();let d;e[0]!==a||e[1]!==r?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??r("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=r,e[2]=d):d=e[2];let u;e[3]!==a?(u=k=>{window.location.href=`/${k.slug??a}`},e[3]=a,e[4]=u):u=e[4];let f;e[5]!==r?(f=k=>{Ve.error(k instanceof Error?k.message:r("common.autoDomainJoinScreen.joinError"))},e[5]=r,e[6]=f):f=e[6];let S;e[7]!==d||e[8]!==u||e[9]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[7]=d,e[8]=u,e[9]=f,e[10]=S):S=e[10];const c=Ye(S),y=os;let h;e[11]!==o||e[12]!==s?(h=o?n.jsx(at,{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(Ot,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=h):h=e[13];let w;e[14]!==s||e[15]!==r?(w=r("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=r,e[16]=w):w=e[16];let m;e[17]!==w?(m=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[17]=w,e[18]=m):m=e[18];let l;e[19]!==i||e[20]!==r?(l=r("common.autoDomainJoinScreen.joinDescription",{domain:i}),e[19]=i,e[20]=r,e[21]=l):l=e[21];let b;e[22]!==l?(b=n.jsx("p",{className:"text-sm text-muted-foreground",children:l}),e[22]=l,e[23]=b):b=e[23];let p;e[24]!==m||e[25]!==b?(p=n.jsxs("div",{className:"space-y-2",children:[m,b]}),e[24]=m,e[25]=b,e[26]=p):p=e[26];let x;e[27]!==c?(x=()=>c.mutate(),e[27]=c,e[28]=x):x=e[28];let v;e[29]!==c.isPending||e[30]!==s||e[31]!==r?(v=c.isPending?r("common.autoDomainJoinScreen.joining"):r("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=r,e[32]=v):v=e[32];let T;e[33]!==c.isPending||e[34]!==x||e[35]!==v?(T=n.jsx(F,{onClick:x,disabled:c.isPending,children:v}),e[33]=c.isPending,e[34]=x,e[35]=v,e[36]=T):T=e[36];const P=c.isPending;let N;e[37]!==r?(N=r("common.autoDomainJoinScreen.goHome"),e[37]=r,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:y,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==T||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,j]}),e[42]=T,e[43]=j,e[44]=g):g=e[44];let _;return e[45]!==p||e[46]!==g||e[47]!==h?(_=n.jsxs(me,{children:[h,p,g]}),e[45]=p,e[46]=g,e[47]=h,e[48]=_):_=e[48],_}function os(){window.location.href="/"}function wt(t){const e=M.c(25),{orgSlug:s,orgName:a,reason:o}=t,i=W(),r=is,d=o==="not-found",u=d?wn:Nt;let f;e[0]!==d||e[1]!==i?(f=i(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=i,e[2]=f):f=e[2];const S=f;let c;e[3]!==d||e[4]!==a||e[5]!==s||e[6]!==i?(c=d?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:a??s}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=a,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let h;e[8]!==u?(h=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(u,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=u,e[9]=h):h=e[9];let w;e[10]!==S?(w=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=w):w=e[11];let m;e[12]!==y?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=m):m=e[13];let l;e[14]!==w||e[15]!==m?(l=n.jsxs("div",{className:"space-y-2",children:[w,m]}),e[14]=w,e[15]=m,e[16]=l):l=e[16];let b;e[17]!==i?(b=i("common.noAccessScreen.goToHome"),e[17]=i,e[18]=b):b=e[18];let p;e[19]!==b?(p=n.jsx(F,{onClick:r,children:b}),e[19]=b,e[20]=p):p=e[20];let x;return e[21]!==h||e[22]!==l||e[23]!==p?(x=n.jsxs(me,{children:[h,l,p]}),e[21]=h,e[22]=l,e[23]=p,e[24]=x):x=e[24],x}function is(){window.location.href="/"}function as(t){const e=M.c(59),{invitationId:s,orgName:a,orgSlug:o,orgLogo:i}=t,r=W();let d;e[0]!==s?(d=async()=>{const E=await Be.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=d):d=e[1];let u;e[2]!==o?(u=()=>{Qt(),window.location.href=`/${o}`},e[2]=o,e[3]=u):u=e[3];let f;e[4]!==r?(f=E=>{Ve.error(E instanceof Error?E.message:r("common.pendingInviteScreen.failedToAccept"))},e[4]=r,e[5]=f):f=e[5];let S;e[6]!==d||e[7]!==u||e[8]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[6]=d,e[7]=u,e[8]=f,e[9]=S):S=e[9];const c=Ye(S);let y;e[10]!==s?(y=async()=>{const E=await Be.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=y):y=e[11];let h,w;e[12]!==r?(h=()=>{Ve.success(r("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},w=E=>{Ve.error(E instanceof Error?E.message:r("common.pendingInviteScreen.failedToDecline"))},e[12]=r,e[13]=h,e[14]=w):(h=e[13],w=e[14]);let m;e[15]!==y||e[16]!==h||e[17]!==w?(m={mutationFn:y,onSuccess:h,onError:w},e[15]=y,e[16]=h,e[17]=w,e[18]=m):m=e[18];const l=Ye(m),b=c.isPending||l.isPending;let p;e[19]!==i||e[20]!==a?(p=i?n.jsx(at,{url:i,fallback:a.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(Sn,{className:"h-6 w-6 text-primary"})}),e[19]=i,e[20]=a,e[21]=p):p=e[21];let x;e[22]!==a||e[23]!==r?(x=r("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=r,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let T;e[27]!==r?(T=r("common.pendingInviteScreen.acceptDescription"),e[27]=r,e[28]=T):T=e[28];let P;e[29]!==T?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:T}),e[29]=T,e[30]=P):P=e[30];let N;e[31]!==v||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[v,P]}),e[31]=v,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]!==r?(g=c.isPending?r("common.pendingInviteScreen.acceptingButton"):r("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=r,e[38]=g):g=e[38];let _;e[39]!==b||e[40]!==j||e[41]!==g?(_=n.jsx(F,{onClick:j,disabled:b,children:g}),e[39]=b,e[40]=j,e[41]=g,e[42]=_):_=e[42];let k;e[43]!==l?(k=()=>l.mutate(),e[43]=l,e[44]=k):k=e[44];let A;e[45]!==l.isPending||e[46]!==r?(A=l.isPending?r("common.pendingInviteScreen.decliningButton"):r("common.pendingInviteScreen.declineButton"),e[45]=l.isPending,e[46]=r,e[47]=A):A=e[47];let I;e[48]!==b||e[49]!==k||e[50]!==A?(I=n.jsx(F,{variant:"ghost",onClick:k,disabled:b,children:A}),e[48]=b,e[49]=k,e[50]=A,e[51]=I):I=e[51];let C;e[52]!==_||e[53]!==I?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,I]}),e[52]=_,e[53]=I,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==p?(O=n.jsxs(me,{children:[p,N,C]}),e[55]=N,e[56]=C,e[57]=p,e[58]=O):O=e[58],O}function rs(t){const e=M.c(23),{orgName:s,orgLogo:a}=t,o=W();let i;e[0]!==a||e[1]!==s?(i=a?n.jsx(at,{url:a,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(vn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=i):i=e[2];let r;e[3]!==o?(r=o("common.requestPendingScreen.title"),e[3]=o,e[4]=r):r=e[4];let d;e[5]!==r?(d=n.jsx("h3",{className:"text-lg font-medium",children:r}),e[5]=r,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==o?(u=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=u):u=e[9];let f;e[10]!==u?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[10]=u,e[11]=f):f=e[11];let S;e[12]!==d||e[13]!==f?(S=n.jsxs("div",{className:"space-y-2",children:[d,f]}),e[12]=d,e[13]=f,e[14]=S):S=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let y;e[17]!==c?(y=n.jsx(F,{variant:"ghost",onClick:ls,children:c}),e[17]=c,e[18]=y):y=e[18];let h;return e[19]!==i||e[20]!==S||e[21]!==y?(h=n.jsxs(me,{children:[i,S,y]}),e[19]=i,e[20]=S,e[21]=y,e[22]=h):h=e[22],h}function ls(){window.location.href="/"}function cs(t){const e=M.c(45),{orgName:s,orgSlug:a,orgLogo:o,domain:i}=t,r=W();let d;e[0]!==a?(d=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=a,e[1]=d):d=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=us,e[2]=u):u=e[2];let f;e[3]!==r?(f=_=>{Ve.error(_ instanceof Error?_.message:r("common.requestToJoinScreen.failedToRequest"))},e[3]=r,e[4]=f):f=e[4];let S;e[5]!==d||e[6]!==f?(S={mutationFn:d,onSuccess:u,onError:f},e[5]=d,e[6]=f,e[7]=S):S=e[7];const c=Ye(S);let y;e[8]!==o||e[9]!==s?(y=o?n.jsx(at,{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(Ot,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=y):y=e[10];let h;e[11]!==s||e[12]!==r?(h=r("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=r,e[13]=h):h=e[13];let w;e[14]!==h?(w=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[14]=h,e[15]=w):w=e[15];let m;e[16]!==i||e[17]!==r?(m=r("common.requestToJoinScreen.description",{domain:i}),e[16]=i,e[17]=r,e[18]=m):m=e[18];let l;e[19]!==m?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=l):l=e[20];let b;e[21]!==w||e[22]!==l?(b=n.jsxs("div",{className:"space-y-2",children:[w,l]}),e[21]=w,e[22]=l,e[23]=b):b=e[23];let p;e[24]!==c?(p=()=>c.mutate(),e[24]=c,e[25]=p):p=e[25];let x;e[26]!==c.isPending||e[27]!==r?(x=c.isPending?r("common.requestToJoinScreen.requesting"):r("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=r,e[28]=x):x=e[28];let v;e[29]!==c.isPending||e[30]!==p||e[31]!==x?(v=n.jsx(F,{onClick:p,disabled:c.isPending,children:x}),e[29]=c.isPending,e[30]=p,e[31]=x,e[32]=v):v=e[32];const T=c.isPending;let P;e[33]!==r?(P=r("common.requestToJoinScreen.goToHome"),e[33]=r,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ds,disabled:T,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==v||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,N]}),e[38]=v,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==b||e[42]!==j||e[43]!==y?(g=n.jsxs(me,{children:[y,b,j]}),e[41]=b,e[42]=j,e[43]=y,e[44]=g):g=e[44],g}function ds(){window.location.href="/"}function us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ms(t){const e=M.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!i.ok)throw new Error(`org-access-status failed (${i.status})`);return await i.json()},e[2]=t,e[3]=a):a=e[3];let o;return e[4]!==s||e[5]!==a?(o={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=o):o=e[6],_t(o)}function fs({orgSlug:t}){const{data:e}=ms(t);if(e.status!=="member"){Xt()?.org===t&&Zt();const s=localStorage.getItem(Ke.lastOrgSlug())===t;if(s&&localStorage.removeItem(Ke.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(wt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(as,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(cs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(wt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function zt(t){const e=M.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:o,title:i,description:r,icon:d,children:u,footerLeading:f,actions:S,onDismiss:c,tone:y}=t,h=y===void 0?"neutral":y,w=f||S;let m;e[0]!==h?(m=h==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=h,e[1]=m):m=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Cn,{size:14}),e[2]=l):l=e[2];let b;e[3]!==a||e[4]!==c?(b=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:l}),e[3]=a,e[4]=c,e[5]=b):b=e[5];const p=d&&"flex items-start gap-3",x=u&&"pb-3";let v;e[6]!==p||e[7]!==x?(v=dt("p-4 pr-11",p,x),e[6]=p,e[7]=x,e[8]=v):v=e[8];let T;e[9]!==d?(T=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=T):T=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]!==i?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:i}),e[13]=i,e[14]=N):N=e[14];let j;e[15]!==r?(j=r&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:r}),e[15]=r,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 _;e[21]!==u?(_=u&&n.jsx("div",{className:"mt-3",children:u}),e[21]=u,e[22]=_):_=e[22];let k;e[23]!==g||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,_]}),e[23]=g,e[24]=_,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==v||e[28]!==T?(A=n.jsxs("div",{className:v,children:[T,k]}),e[26]=k,e[27]=v,e[28]=T,e[29]=A):A=e[29];let I;e[30]!==S||e[31]!==f||e[32]!==w||e[33]!==h?(I=w&&n.jsxs("div",{className:dt("flex items-center justify-between gap-3 px-4 py-2.5",h==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=f,e[32]=w,e[33]=h,e[34]=I):I=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==I||e[38]!==m||e[39]!==b||e[40]!==h?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":h,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:[m,b,A,I]}),e[35]=s,e[36]=A,e[37]=I,e[38]=m,e[39]=b,e[40]=h,e[41]=C):C=e[41],C}const hs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Ft(t){return`[data-tour="${hs[t]}"]`}const gs=[{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 ps(t){return gs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ys(t,e){return ps(e).map(s=>({element:Ft(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const bs=Ft("switcher"),xs=30;function qt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ws(t,e){return ys(t,e).filter(s=>typeof s.element=="string"&&qt(s.element))}function Ss(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:a})=>{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",()=>a.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function vs(){return(await en(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function js(t,e){if(Je)return;Je=!0;let s=0;const a=()=>{if(!qt(bs)&&s++<xs){requestAnimationFrame(a);return}const o=ws(t,e);if(o.length===0){Je=!1;return}vs().then(i=>{i(Ss(t,o)).drive()}).catch(()=>{Je=!1})};a()}function ks(t){return t!=="off"}function ci(t){if(!t.hasSource)return[];const e=["site-editor"];return ks(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Kt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function di(t){return t.reportsOnly&&!t.onReportAgent&&Kt(t.tabId)}const Ts=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:ot,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:ct,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:jn,title:"Site editor redesigned",body:"Every block wears the same icon and the same actions, the variant you are editing is named in the header beside the block it belongs to, and picking a section is now a search rather than a scroll."}],cta:{label:"Try it now",action:"enable-new-layout"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:pt,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:te,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:ot,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:ot,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:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:tn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ot,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:te,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:te,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:te,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:te,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:te,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:te,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:ct,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:pt,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:te,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:ct,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:te,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Bt=Ts,it="studio.release-feed.v1",mt=new Set;let de="",ue={},ft=!1;function Ns(){if(ft)return de||"{}";try{return localStorage.getItem(it)??"{}"}catch{return de||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ns();return t!==de&&(de=t,ue=Ht(t)),ue}function _s(t){mt.add(t);const e=s=>{if(!(s.key!==it&&s.key!==null)){try{const a=localStorage.getItem(it)??"{}",i={...Ht(a),...ue};ue=i,de=JSON.stringify(i)}catch{}t()}};return window.addEventListener("storage",e),()=>{mt.delete(t),window.removeEventListener("storage",e)}}function As(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(it,de),ft=!1}catch{ft=!0}mt.forEach(e=>e())}function Ps(){const t=M.c(7),e=J.useSyncExternalStore(_s,St,St);let s;t[0]!==e?(s=u=>!!e[u],t[0]=e,t[1]=s):s=t[1];const a=s,o=Cs;let i;t[2]!==e?(i=Bt.reduce((u,f)=>e[f.id]?u:u+1,0),t[2]=e,t[3]=i):i=t[3];const r=i;let d;return t[4]!==a||t[5]!==r?(d={isSeen:a,markSeen:o,unseenCount:r},t[4]=a,t[5]=r,t[6]=d):d=t[6],d}function Cs(t){ue[t]||As({...ue,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function Es(t,e){const s=Ut(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function Is(t){const e=M.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>Ut(s).now,e[0]=s,e[1]=a):a=e[1];const o=a;let i;return e[2]!==s?(i=r=>Es(s,r),e[2]=s,e[3]=i):i=e[3],J.useSyncExternalStore(i,o,o)}const Os=720*60*60*1e3,Ls=10080*60*1e3;function $s(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function Ds(t){const e=Bt[0];if(!e)return null;const s=$s(e.date),a=t-s;return a<0||a>Os?null:e}function Rs(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 Ms(t,e){const s=Rs(t);return s===null?!1:e-s>=Ls}function zs(){const t=M.c(58),e=W(),s=In(),a=nn(),o=Lt(),i=!!s,r=a===ie.home&&!s;let d;t[0]!==o||t[1]!==i?(d=i&&!!o&&Kt(o),t[0]=o,t[1]=i,t[2]=d):d=t[2];const u=d,{data:f}=Be.useSession(),{isSeen:S,markSeen:c}=Ps(),[,y]=At(),[h,w]=J.useState(!1),m=Is(6e4);let l,b,p;if(t[3]!==S||t[4]!==m||t[5]!==f?.user?.createdAt){p=Symbol.for("react.early_return_sentinel");e:{if(l=Ds(m),!l){p=null;break e}if(!Ms(f?.user?.createdAt,m)){p=null;break e}b=S(l.id)}t[3]=S,t[4]=m,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=p}else l=t[6],b=t[7],p=t[8];if(p!==Symbol.for("react.early_return_sentinel"))return p;if(b)return null;let x;t[9]!==l.id||t[10]!==i||t[11]!==c||t[12]!==r||t[13]!==u||t[14]!==e?(x=()=>{c(l.id),js(e,{onOrgHome:r,inProject:i,onSiteEditor:u})},t[9]=l.id,t[10]=i,t[11]=c,t[12]=r,t[13]=u,t[14]=e,t[15]=x):x=t[15];const v=x;let T;t[16]!==l.id||t[17]!==c||t[18]!==y?(T=()=>{y(qs),c(l.id)},t[16]=l.id,t[17]=c,t[18]=y,t[19]=T):T=t[19];const P=T;let N;t[20]!==e?(N=e("announcements.release.ariaLabel"),t[20]=e,t[21]=N):N=t[21];let j;t[22]!==e?(j=e("announcements.release.dismiss"),t[22]=e,t[23]=j):j=t[23];const g=l.eyebrow,_=l.title;let k;t[24]!==l.id||t[25]!==c?(k=()=>c(l.id),t[24]=l.id,t[25]=c,t[26]=k):k=t[26];let A;t[27]!==l.id||t[28]!==l.learnMoreHref||t[29]!==c||t[30]!==e?(A=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[27]=l.id,t[28]=l.learnMoreHref,t[29]=c,t[30]=e,t[31]=A):A=t[31];let I;t[32]!==l.cta||t[33]!==l.id||t[34]!==P||t[35]!==c||t[36]!==v?(I=l.cta?"href"in l.cta?n.jsx(F,{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(F,{size:"sm",onClick:v,children:l.cta.label}):l.cta.action==="enable-new-layout"?n.jsx(F,{size:"sm",onClick:P,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>w(!0),children:l.cta.label}):null,t[32]=l.cta,t[33]=l.id,t[34]=P,t[35]=c,t[36]=v,t[37]=I):I=t[37];let C;t[38]!==l.bullets?(C=l.bullets.map(Fs),t[38]=l.bullets,t[39]=C):C=t[39];let O;t[40]!==C?(O=n.jsx("ul",{className:"flex flex-col gap-3",children:C}),t[40]=C,t[41]=O):O=t[41];let E;t[42]!==l.id||t[43]!==c?(E=B=>{w(B),B||c(l.id)},t[42]=l.id,t[43]=c,t[44]=E):E=t[44];let D;t[45]!==h||t[46]!==E?(D=n.jsx(En,{open:h,onOpenChange:E}),t[45]=h,t[46]=E,t[47]=D):D=t[47];let z;return t[48]!==l.eyebrow||t[49]!==l.title||t[50]!==A||t[51]!==I||t[52]!==O||t[53]!==D||t[54]!==N||t[55]!==j||t[56]!==k?(z=n.jsxs(zt,{ariaLabel:N,dismissLabel:j,eyebrow:g,title:_,onDismiss:k,footerLeading:A,actions:I,children:[O,D]}),t[48]=l.eyebrow,t[49]=l.title,t[50]=A,t[51]=I,t[52]=O,t[53]=D,t[54]=N,t[55]=j,t[56]=k,t[57]=z):z=t[57],z}function Fs(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)}function qs(t){return{...t,compactPageLayout:!0}}const Gt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Gt?"⌘":"Ctrl",V={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"}},Ks=[{label:"General",shortcuts:[V.commandPalette,V.keyboardShortcuts,V.back,V.newTask,V.toggleDaemon]},{label:"Editor",shortcuts:[V.saveAndFormat]},{label:"Chat",shortcuts:[V.focusChatInput,V.togglePlanMode,V.sendMessage,V.newLine]},{label:"Questions",shortcuts:[V.selectOption]},{label:"Monitoring",shortcuts:[V.applyFilter]}];function jt(t){return Gt?t.metaKey:t.ctrlKey}function Bs(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Hs(t){const e=M.c(11),{open:s,onOpenChange:a}=t,o=W();let i;e[0]!==o?(i=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=i):i=e[1];let r;e[2]!==i?(r=n.jsx($t,{children:n.jsx(Dt,{children:i})}),e[2]=i,e[3]=r):r=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Ks.map(Us)}),e[4]=d):d=e[4];let u;e[5]!==r?(u=n.jsxs(Rt,{className:"sm:max-w-md",children:[r,d]}),e[5]=r,e[6]=u):u=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==u?(f=n.jsx(Mt,{open:s,onOpenChange:a,children:u}),e[7]=a,e[8]=s,e[9]=u,e[10]=f):f=e[10],f}function Us(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(Gs)})]},t.label)}function Gs(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(Js)})]},t.description)}function Js(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 kt=8;function Vs(t){const{org:e}=ht(),s=Un({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:a}=He({queryKey:Ue.globalSearch(e.id,t,kt),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:kt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=M.c(195),{open:s,onOpenChange:a}=t,o=W(),i=Pt(),{org:r}=ht(),{projects:d,hasProjects:u}=On(),[f,S]=J.useState(""),c=J.useDeferredValue(f),y=Vs(c);let h;e[0]!==a?(h=()=>{a(!1),S("")},e[0]=a,e[1]=h):h=e[1];const w=h;let m;e[2]!==w?(m=(q,Y)=>{ut("command_palette_used",{kind:Y}),q(),w()},e[2]=w,e[3]=m):m=e[3];const l=m;let b;e[4]!==i||e[5]!==r.id||e[6]!==r.slug?(b=q=>{if(q.type==="connection"){if(!q.slug){i({to:"/$org/settings/connections",params:{org:r.slug},search:{tab:"all"}});return}i({to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:q.slug}});return}if(q.type==="task"){i({to:ie.tasks,params:{org:r.slug,taskKey:q.key??void 0}});return}const Y=Et(r.id).id;sn(i,on({org:r.slug,agentId:q.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:q.id}),replace:!1})},e[4]=i,e[5]=r.id,e[6]=r.slug,e[7]=b):b=e[7];const p=b;let x;e[8]!==f?(x=[f],e[8]=f,e[9]=x):x=e[9];const v=x;let T,P,N,j,g,_,k,A,I,C,O,E,D;if(e[10]!==w||e[11]!==l||e[12]!==u||e[13]!==y||e[14]!==i||e[15]!==a||e[16]!==s||e[17]!==p||e[18]!==r.slug||e[19]!==d||e[20]!==v||e[21]!==o||e[22]!==f){const q=y.filter(Qs),Y=y.filter(Ys);let ne;e[36]!==r.slug?(ne={org:r.slug},e[36]=r.slug,e[37]=ne):ne=e[37];const R=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let H;e[41]!==R||e[42]!==ee?(H={key:"home",label:ee,icon:Q,to:ie.home,params:R},e[41]=R,e[42]=ee,e[43]=H):H=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(_n,{"aria-hidden":"true"}),e[46]=se):se=e[46];let U;e[47]!==R||e[48]!==X?(U={key:"reports",label:X,icon:se,to:ie.reports,params:R},e[47]=R,e[48]=X,e[49]=U):U=e[49];let G;e[50]!==o?(G=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=G):G=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(bt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==r.slug?(Z={org:r.slug,taskKey:void 0},e[53]=r.slug,e[54]=Z):Z=e[54];let L;e[55]!==G||e[56]!==Z?(L={key:"tasks",label:G,icon:oe,to:ie.tasks,params:Z},e[55]=G,e[56]=Z,e[57]=L):L=e[57];let K;e[58]!==o?(K=o("sidebar.navDestinations.library"),e[58]=o,e[59]=K):K=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Rn,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==R||e[62]!==K?(fe={key:"library",label:K,icon:Qe,to:ie.library,params:R},e[61]=R,e[62]=K,e[63]=fe):fe=e[63];let he;e[64]!==o?(he=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=he):he=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(An,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let ge;e[67]!==R||e[68]!==he?(ge={key:"discover",label:he,icon:Xe,to:ie.discover,params:R},e[67]=R,e[68]=he,e[69]=ge):ge=e[69];let Ze;e[70]!==H||e[71]!==U||e[72]!==L||e[73]!==fe||e[74]!==ge?(Ze=[H,U,L,fe,ge],e[70]=H,e[71]=U,e[72]=L,e[73]=fe,e[74]=ge,e[75]=Ze):Ze=e[75];const rt=Ze;P=zn,j=s,e[76]!==w||e[77]!==a?(g=$=>$?a(!0):w(),e[76]=w,e[77]=a,e[78]=g):g=e[78],e[79]!==o?(_=o("commandPalette.title"),e[79]=o,e[80]=_):_=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==f?(A=n.jsx(Fn,{placeholder:pe,"aria-label":ye,value:f,onValueChange:S}),e[87]=pe,e[88]=ye,e[89]=f,e[90]=A):A=e[90],T=qn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(I=n.jsx(Kn,{children:be}),e[93]=be,e[94]=I):I=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let we;e[97]!==rt||e[98]!==l||e[99]!==i?(we=rt.map($=>n.jsxs(le,{onSelect:()=>l(()=>i({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=rt,e[98]=l,e[99]=i,e[100]=we):we=e[100],e[101]!==xe||e[102]!==we?(C=n.jsx(Ge,{heading:xe,children:we}),e[101]=xe,e[102]=we,e[103]=C):C=e[103],e[104]!==l||e[105]!==u||e[106]!==i||e[107]!==r.slug||e[108]!==d||e[109]!==o?(O=u&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>l(()=>i({to:ie.projects,params:{org:r.slug,agentId:$.id}}),"project"),children:[n.jsx(Hn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=l,e[105]=u,e[106]=i,e[107]=r.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let Se;e[111]!==o?(Se=o("commandPalette.actions"),e[111]=o,e[112]=Se):Se=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==l||e[116]!==i||e[117]!==R?(je=()=>l(()=>i({to:ie.home,params:R}),"new_project"),e[115]=l,e[116]=i,e[117]=R,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==l||e[131]!==i||e[132]!==R?(Ae=()=>l(()=>i({to:"/$org/settings/members",params:R}),"invite"),e[130]=l,e[131]=i,e[132]=R,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Pn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Ie;e[143]!==o?(Ie=o("commandPalette.addConnection"),e[143]=o,e[144]=Ie):Ie=e[144];let Oe;e[145]!==l||e[146]!==i||e[147]!==R?(Oe=()=>l(()=>i({to:"/$org/settings/connections",params:R,search:{tab:"all"}}),"add_connection"),e[145]=l,e[146]=i,e[147]=R,e[148]=Oe):Oe=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Ie||e[155]!==Oe||e[156]!==$e?(De=n.jsxs(le,{value:Ie,onSelect:Oe,children:[nt,$e]}),e[154]=Ie,e[155]=Oe,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==l||e[161]!==i||e[162]!==R?(Me=()=>l(()=>i({to:"/$org/settings/general",params:R}),"settings"),e[160]=l,e[161]=i,e[162]=R,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx(Mn,{"aria-hidden":"true"}),e[164]=st):st=e[164];let ze;e[165]!==o?(ze=o("commandPalette.settings"),e[165]=o,e[166]=ze):ze=e[166];let Fe;e[167]!==ze?(Fe=n.jsx("span",{children:ze}),e[167]=ze,e[168]=Fe):Fe=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==Fe?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,Fe]}),e[169]=Re,e[170]=Me,e[171]=Fe,e[172]=qe):qe=e[172],e[173]!==Se||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(E=n.jsxs(Ge,{heading:Se,children:[Ne,Ee,De,qe]}),e[173]=Se,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=E):E=e[178],D=q.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:q.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:v,onSelect:()=>l(()=>p($),"connection"),children:[n.jsx(Bn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:v,onSelect:()=>l(()=>p($),$.type),children:[$.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(bt,{"aria-hidden":"true"}),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[10]=w,e[11]=l,e[12]=u,e[13]=y,e[14]=i,e[15]=a,e[16]=s,e[17]=p,e[18]=r.slug,e[19]=d,e[20]=v,e[21]=o,e[22]=f,e[23]=T,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=_,e[29]=k,e[30]=A,e[31]=I,e[32]=C,e[33]=O,e[34]=E,e[35]=D}else T=e[23],P=e[24],N=e[25],j=e[26],g=e[27],_=e[28],k=e[29],A=e[30],I=e[31],C=e[32],O=e[33],E=e[34],D=e[35];let z;e[179]!==T||e[180]!==N||e[181]!==I||e[182]!==C||e[183]!==O||e[184]!==E||e[185]!==D?(z=n.jsxs(T,{children:[I,C,O,E,D,N]}),e[179]=T,e[180]=N,e[181]=I,e[182]=C,e[183]=O,e[184]=E,e[185]=D,e[186]=z):z=e[186];let B;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==_||e[191]!==k||e[192]!==A||e[193]!==z?(B=n.jsxs(P,{open:j,onOpenChange:g,title:_,description:k,children:[A,z]}),e[187]=P,e[188]=j,e[189]=g,e[190]=_,e[191]=k,e[192]=A,e[193]=z,e[194]=B):B=e[194],B}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const We=new Jn(!1);function Xs(){We.set(!0)}function Zs(){We.set(!1)}function eo(){const t=M.c(2),e=J.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const to=300*1e3,no=2;function so(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 oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=M.c(43),e=W(),s=Wn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={mutationFn:ro},t[0]=a):a=t[0];const o=Ye(a);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={queryKey:Ue.appVersionCheck(),queryFn:ao,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[1]=i):i=t[1];const{data:r,dataUpdatedAt:d}=He(i),[u,f]=J.useState(0);let S;t[2]===Symbol.for("react.memo_cache_sentinel")?(S={version:null,count:0},t[2]=S):S=t[2];const[c,y]=J.useState(S);d!==u&&(f(d),y(z=>so(z,r,"4.390.5")));const[h,w]=J.useState(null),m=s;let l;t[3]!==s||t[4]!==o?(l=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=l):l=t[5];const b=l,p="announcements.version.refresh";if(!oo(c,h))return null;let x;t[6]!==e?(x=e("announcements.version.ariaLabel"),t[6]=e,t[7]=x):x=t[7];let v;t[8]!==e?(v=e("announcements.version.dismiss"),t[8]=e,t[9]=v):v=t[9];let T;t[10]!==e?(T=e("announcements.version.eyebrow"),t[10]=e,t[11]=T):T=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(yt,{size:16}),t[17]=g):g=t[17];let _;t[18]!==c.version?(_=()=>w(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.390.5"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==p||t[23]!==e?(A=e(p),t[22]=p,t[23]=e,t[24]=A):A=t[24];const I=m;let C;t[25]!==I?(C=dt(I),t[25]=I,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(yt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let E;t[29]!==b||t[30]!==m||t[31]!==A||t[32]!==O?(E=n.jsxs(F,{size:"sm",disabled:m,onClick:b,children:[A,O]}),t[29]=b,t[30]=m,t[31]=A,t[32]=O,t[33]=E):E=t[33];let D;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==x||t[38]!==v||t[39]!==T||t[40]!==P||t[41]!==j?(D=n.jsx(zt,{ariaLabel:x,dismissLabel:v,eyebrow:T,title:P,description:j,icon:g,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=x,t[38]=v,t[39]=T,t[40]=P,t[41]=j,t[42]=D):D=t[42],D}async function ao(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ro(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ke.ptBrAnnouncementSeen(t));function uo(){const t=M.c(35),e=W(),[s,a]=At(),{data:o,isPending:i}=Be.useSession(),r=o?.user,d=r?.id,u=r?.createdAt,f=u!=null&&new Date(u).getTime()<co,S=an()==="pt-BR",c=!i&&!!d&&f&&S&&s.language==="en"&&!Tt(d).has(),[y,h]=J.useState(!1),[w,m]=J.useState(!1);!y&&!i&&(h(!0),c&&d&&(Tt(d).mark(),a(fo),m(!0),ut("pt_br_auto_switch_shown")));let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=B=>{ut("pt_br_auto_switch_closed",{action:B}),m(!1)},t[0]=l):l=t[0];const b=l;let p;t[1]!==a?(p=()=>{a(mo),b("switch-back")},t[1]=a,t[2]=p):p=t[2];const x=p;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=B=>!B&&b("dismiss"),t[3]=v):v=t[3];let T;t[4]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=T):T=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(Dt,{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($n,{children:j}),t[11]=j,t[12]=g):g=t[12];let _;t[13]!==N||t[14]!==g?(_=n.jsxs($t,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=_):_=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]!==x||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:x,children:k}),t[18]=x,t[19]=k,t[20]=A):A=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b("ok"),t[21]=I):I=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(F,{onClick:I,children:C}),t[24]=C,t[25]=O):O=t[25];let E;t[26]!==A||t[27]!==O?(E=n.jsxs(Dn,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=E):E=t[28];let D;t[29]!==E||t[30]!==_?(D=n.jsxs(Rt,{className:"sm:max-w-md",children:[T,_,E]}),t[29]=E,t[30]=_,t[31]=D):D=t[31];let z;return t[32]!==w||t[33]!==D?(z=n.jsx(Mt,{open:w,onOpenChange:v,children:D}),t[32]=w,t[33]=D,t[34]=z):z=t[34],z}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=M.c(1),{activeOrg:s}=t;if(!s)return null;ln(s.id,{name:s.name??void 0,slug:s.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:o,opts:i,autosendValue:r}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const u=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(s??u)!==u;let c,y;return i?.panel?y=i.panel:o?(y=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!S&&e.tabId&&!dn(e.tabId)&&(y=e.tabId),c!==void 0&&(d.sidepanel=c),i?.autosend&&(d.autosend=r),{tabId:y,search:d}}const Jt="studio:thread-layout:v4",bo=50;function Vt(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 xo(t,e,s,a=bo){const o=t.filter(([i])=>i!==e);for(o.push([e,Vt(s)]);o.length>a;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Jt);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 Wt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function wo(t,e){t&&Wt(xo(gt(),t,e))}function So(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Vt(e[1]):null}function ui(t){if(!t)return;const e=gt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&Wt(s)}function Yt(t){return{queryKey:Ue.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 mi(t){const e=M.c(10);let s;e[0]!==t?(s=Yt(t),e[0]=t,e[1]=s):s=e[1];const a=He(s);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=e[3];let i;e[4]!==a.data?.tiles?(i=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=i):i=e[5];let r;return e[6]!==a.isLoading||e[7]!==o||e[8]!==i?(r={isLoading:a.isLoading,prompts:o,tiles:i},e[6]=a.isLoading,e[7]=o,e[8]=i,e[9]=r):r=e[9],r}function vo(t){const e=M.c(31),{orgSlug:s,orgName:a,domain:o}=t,i=W();let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const d=r,u=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Nt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let S;e[3]!==i?(S=i("common.ssoRequiredScreen.title"),e[3]=i,e[4]=S):S=e[4];let c;e[5]!==S?(c=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=c):c=e[6];let y;e[7]!==o||e[8]!==a||e[9]!==i?(y=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",i("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${i("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):i("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=i,e[10]=y):y=e[10];let h;e[11]!==y?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=h):h=e[12];let w;e[13]!==c||e[14]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[13]=c,e[14]=h,e[15]=w):w=e[15];let m;e[16]!==i?(m=i("common.ssoRequiredScreen.signInWithSso"),e[16]=i,e[17]=m):m=e[17];let l;e[18]!==d||e[19]!==m?(l=n.jsx(F,{onClick:d,children:m}),e[18]=d,e[19]=m,e[20]=l):l=e[20];let b;e[21]!==i?(b=i("common.ssoRequiredScreen.goBack"),e[21]=i,e[22]=b):b=e[22];let p;e[23]!==b?(p=n.jsx(F,{variant:"ghost",onClick:u,children:b}),e[23]=b,e[24]=p):p=e[24];let x;e[25]!==p||e[26]!==l?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[l,p]}),e[25]=p,e[26]=l,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==w?(v=n.jsxs(me,{children:[f,w,x]}),e[28]=x,e[29]=w,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function ko(t){const e=M.c(27),{notice:s,orgSlug:a}=t,o=W();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(un,{className:"h-6 w-6 text-destructive"})}),e[0]=i):i=e[0];let r;e[1]!==s.title?(r=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=r):r=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let u;e[5]!==r||e[6]!==d?(u=n.jsxs("div",{className:"space-y-2",children:[r,d]}),e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?n.jsx(F,{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]=f):f=e[10];const S=`/${encodeURIComponent(a)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let y;e[13]!==S||e[14]!==c?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:c})}),e[13]=S,e[14]=c,e[15]=y):y=e[15];let h;e[16]!==o?(h=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=h):h=e[17];let w;e[18]!==h?(w=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:h})}),e[18]=h,e[19]=w):w=e[19];let m;e[20]!==w||e[21]!==f||e[22]!==y?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,y,w]}),e[20]=w,e[21]=f,e[22]=y,e[23]=m):m=e[23];let l;return e[24]!==m||e[25]!==u?(l=n.jsxs(me,{children:[i,u,m]}),e[24]=m,e[25]=u,e[26]=l):l=e[26],l}function To(t){const e=M.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/${t}/notice`,{credentials:"include"});return r.ok?(await r.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const o=!!t;let i;return e[4]!==s||e[5]!==a||e[6]!==o?(i={queryKey:s,queryFn:a,enabled:o,staleTime:6e4},e[4]=s,e[5]=a,e[6]=o,e[7]=i):i=e[7],He(i)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Ao(t){const e=M.c(7),{org:s,children:a}=t;let o;e[0]!==s.id||e[1]!==s.name?(o={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=o):o=e[2];const i=o;let r;return e[3]!==a||e[4]!==s||e[5]!==i?(r=n.jsx(xn,{org:s,project:i,children:a}),e[3]=a,e[4]=s,e[5]=i,e[6]=r):r=e[6],r}function Po(){const t=Pt(),e=Vn(),{org:s}=ht(),a=mn({strict:!1}),o=Lt(),{openPanel:i,closePanel:r}=Ln(),d=Xn(),u=Zn(),f=es(),S=ts(),c=(m,l=!0)=>t({to:".",search:m,replace:l}),y=()=>c(m=>({...m,sidepanel:!0})),h=(m,l,b)=>{const p=!!u&&u===m;u&&!p&&wo(u,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const x=p?null:So(m),v=Et(s.id).id,T=yo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:l,decopilotId:v,savedLayout:x,opts:b,autosendValue:Qn});return S(m,()=>T.search,{virtualMcpId:l,view:{tabId:T.tabId}})};return{openSidePanel:y,setTaskId:h,createNewTask:async(m,l,b)=>{const p=crypto.randomUUID(),x=m??f;try{await e?.create({id:p,virtual_mcp_id:x,...l?{branch:l}:{}})}catch{}h(p,x,b)},openTab:i,closeTab:r}}const Co=new Set(["/$org/","/$org/home"]);function Eo(){const t=M.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Io},t[0]=e):e=t[0],It(e)}function Io(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Co.has(e)}function Oo(){const t=M.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 a=fn(e)?.params.org,[o,i]=J.useState(!1),[r,d]=eo(),u=hn(),f=Eo(),S=a??"";let c;t[1]!==S?(c=Yt(S),t[1]=S,t[2]=c):c=t[2];const y=!!a&&f;let h;t[3]!==c||t[4]!==y?(h={...c,enabled:y},t[3]=c,t[4]=y,t[5]=h):h=t[5],He(h);const{data:w}=Be.useSession(),m=w?.user?.id;let l;t[6]!==a||t[7]!==m?(l=a&&m?gn(m,a):null,t[6]=a,t[7]=m,t[8]=l):l=t[8];const b=l;let p,x;t[9]!==u?(p=()=>{const L=K=>{if(jt(K)&&K.code==="KeyK"){K.preventDefault(),Xs();return}if(K.key==="?"&&!Bs(K.target)){K.preventDefault(),i(!0);return}jt(K)&&K.code==="BracketLeft"&&u.history.canGoBack()&&(K.preventDefault(),u.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[u],t[9]=u,t[10]=p,t[11]=x):(p=t[10],x=t[11]),J.useEffect(p,x);let v;t[12]!==a?(v=Ue.activeOrganization(a),t[12]=a,t[13]=v):v=t[13];let T;t[14]!==a||t[15]!==m?(T=async()=>{if(!a)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Be.organization.getFullOrganization({query:{organizationSlug:a}}).finally($o),K=lt(L);return L&&!K&&localStorage.setItem(Ke.lastOrgSlug(),a),m&&L&&yn(m,a,L),L},t[14]=a,t[15]=m,t[16]=T):T=t[16];const P=b?b.data:void 0,N=b?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==v||t[20]!==T?(j={queryKey:v,queryFn:T,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=v,t[20]=T,t[21]=j):j=t[21];const{data:g}=_t(j),_=g?.id,k=g?.slug,{data:A}=ns(_,k),I=!!A?.ssoRequired&&!A.authenticated,{data:C}=To(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Lo},t[22]=O):O=t[22];const E=It(O),D=C?.severity==="block"&&!_o(E),z=_??"",B=k??"";let q;t[23]!==z||t[24]!==B?(q=Gn({connectionId:Ct,orgId:z,orgSlug:B}),t[23]=z,t[24]=B,t[25]=q):q=t[25];const Y=!!_&&!!k;let ne;if(t[26]!==q||t[27]!==Y?(ne={...q,enabled:Y},t[26]=q,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||lt(g)||I||D)&&Zs(),!g){let L;return t[29]!==a?(L=n.jsx(fs,{orgSlug:a}),t[29]=a,t[30]=L):L=t[30],L}if(lt(g)){localStorage.getItem(Ke.lastOrgSlug())===a&&localStorage.removeItem(Ke.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(pn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(D&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(ko,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(I){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(vo,{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 ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let H;t[44]!==g?(H=n.jsx(po,{activeOrg:g}),t[44]=g,t[45]=H):H=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(bn,{}),t[46]=X):X=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(zs,{}),n.jsx(io,{})]}),t[47]=se):se=t[47];let U;t[48]!==r||t[49]!==d?(U=r&&n.jsx(Ws,{open:r,onOpenChange:d}),t[48]=r,t[49]=d,t[50]=U):U=t[50];let G;t[51]!==o?(G=n.jsx(Hs,{open:o,onOpenChange:i}),t[51]=o,t[52]=G):G=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(uo,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==H||t[56]!==U||t[57]!==G?(Z=n.jsxs(Ao,{org:Q,children:[H,X,se,U,G,oe]}),t[54]=Q,t[55]=H,t[56]=U,t[57]=G,t[58]=Z):Z=t[58],Z}function Lo(t){return t.location.pathname}function $o(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Do(){const t=M.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Oo,{})}),t[0]=e):e=t[0],e}const fi=Object.freeze(Object.defineProperty({__proto__:null,default:Do,usePanelActions:Po},Symbol.toStringTag,{value:"Module"}));export{V as K,hs as L,Po as a,Is as b,jt as c,ks as d,mi as e,ui as f,fi as g,Kt as i,Xs as o,ci as r,di as s,To as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O,c as y,j as o,l as N,B as A,bg as P,aE as R}from"./index-CJvGo7M-.js";import{i as H}from"./LayoutLeft-dzqHSKuH.js";import{u as V}from"./use-mobile-DX7VP8iK.js";import{b as W,c as L,S as q,d as F,a as G}from"./sheet-fXc9nA9M.js";import{b as E,T as $,a as z,c as B}from"./tooltip-ChaEDFwp.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx(E,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(L,{className:"sr-only",children:[o.jsx(q,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx($,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(z,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx(E,{delayDuration:300,children:o.jsxs(B,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx($,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(z,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(B,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
|
|
1
|
+
import{r as O,c as y,j as o,l as N,B as A,bg as P,aE as R}from"./index-B9KXIX84.js";import{i as H}from"./LayoutLeft-Di6ed8JP.js";import{u as V}from"./use-mobile-BYkN2CBV.js";import{b as W,c as L,S as q,d as F,a as G}from"./sheet-B0Sr1nwg.js";import{b as E,T as $,a as z,c as B}from"./tooltip-C3KYJcjJ.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx(E,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(L,{className:"sr-only",children:[o.jsx(q,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx($,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(z,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx(E,{delayDuration:300,children:o.jsxs(B,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx($,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(z,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(B,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,j as s,r as R,aR as u,l as M,B as T}from"./index-
|
|
1
|
+
import{c as E,j as s,r as R,aR as u,l as M,B as T}from"./index-B9KXIX84.js";import{b as K,D as _,d as q,i as A}from"./dialog-O_WsqGxK.js";import{i as $}from"./X-rZfX9y0d.js";import{i as G}from"./Zap-DcWY_A2w.js";import{M as H}from"./markdown-BHnqyTep.js";import{F as J}from"./file-preview-BiHR6COU.js";import{F as Q}from"./file-type-icon-D6rUMGA4.js";import{i as V,c as W,n as X}from"./use-org-fs-FICli5P0.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,P=V(),U=P(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[z,I]=R.useState(null),x=z===null?null:L.find(l=>l.path===z)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",F=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:P(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==F?(S=s.jsx("div",{className:O,children:F}),e[16]=F,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:z===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(K,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as L,aR as me,T as de,t as D,ai as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eM as je}from"./index-CJvGo7M-.js";import{i as ke}from"./DotsVertical-GP-H6-nS.js";import{a as ve}from"./Package-VT7-ZGoy.js";import{s as ye}from"./Trash01-DTUu7NOU.js";import{i as Se}from"./Upload01-Dty36l1w.js";import{i as le}from"./Zap-D7YN1rKW.js";import{S as be}from"./search-input-Cq2H58ks.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-BhgAEu2i.js";import{E as Z}from"./empty-state-DMmxHRTF.js";import{C as Me}from"./collection-tabs-DWdbo1Je.js";import{F as Ie}from"./folder-icon-D4_mI7nX.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-BJVySa9m.js";import{H as J,d as Re}from"./location-oTTXFrSF.js";import{S as $e}from"./skill-preview-iGSQpWTN.js";import{p as Le}from"./skill-md-ChfVs4uF.js";import"./SearchMd-MG_xST09.js";import"./badge-DMewhq-R.js";import"./Eye-CNk4ml55.js";import"./dialog-BTnr_AVV.js";import"./X-B5gw2EHv.js";import"./markdown-DgiLeH6x.js";import"./Check-ocmT1xhM.js";import"./Copy01-Djl84HjT.js";import"./Download01-CQZ78LGI.js";import"./ZoomOut-qVaUZ9ca.js";import"./org-file-open-context-BpKzz2X6.js";import"./use-mobile-DX7VP8iK.js";import"./use-panel-navigate-BsGJc9V3.js";import"./thread-route-Cz0k6s-0.js";import"./use-project-scope-BGBC-ayH.js";import"./use-virtual-mcp-DYsZ_S7V.js";import"./use-mcp-client-CNhRUvA5.js";import"./auth-uih7AqvO.js";import"./github-repo-BknN0SVI.js";import"./file-preview-DG6yyUI3.js";import"./utils-SncAWk77.js";import"./Image01-zHW5odO5.js";import"./editor-BqmQJegj.js";import"./file-type-icon-BkowPfFv.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Le(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=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:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Mt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",$=n.filter(Be),W=$.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if($.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String($.length),max:String(V)}));return}const R=Ke(q),X=`skills/${R}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:R}));return}Y=!0;const A=Qe(R,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He($,R),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:R}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f(Re(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx($e,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Mt as default};
|
|
1
|
+
import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as L,aR as me,T as de,t as D,ai as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eM as je}from"./index-B9KXIX84.js";import{i as ke}from"./DotsVertical-BVvaV8Wy.js";import{a as ve}from"./Package-tH33TvgC.js";import{s as ye}from"./Trash01-C6BZglNY.js";import{i as Se}from"./Upload01-DBDdtdRw.js";import{i as le}from"./Zap-DcWY_A2w.js";import{S as be}from"./search-input-MsiE4xnC.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-D0EwpcN4.js";import{E as Z}from"./empty-state-Atjx1U2W.js";import{C as Me}from"./collection-tabs-BN1xWU9h.js";import{F as Ie}from"./folder-icon-B_bfB1iq.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-FICli5P0.js";import{H as J,d as Re}from"./location-oTTXFrSF.js";import{S as $e}from"./skill-preview-D99Hmxpn.js";import{p as Le}from"./skill-md-ChfVs4uF.js";import"./SearchMd-CzE1IXtk.js";import"./badge-CFEM0raL.js";import"./Eye-DnZDEgOn.js";import"./dialog-O_WsqGxK.js";import"./X-rZfX9y0d.js";import"./markdown-BHnqyTep.js";import"./Check-D3UEH1bb.js";import"./Copy01-1VyfDicU.js";import"./Download01-CRbdo8yP.js";import"./ZoomOut-CmJNnQZa.js";import"./org-file-open-context-DNQMuR7f.js";import"./use-mobile-BYkN2CBV.js";import"./use-panel-navigate-Wiv5HcS5.js";import"./thread-route-C_KFFLE6.js";import"./use-project-scope-bzqn-AFR.js";import"./use-virtual-mcp-CijpHWeY.js";import"./use-mcp-client-DgXYHdq4.js";import"./auth-6ek5T3GB.js";import"./github-repo-BknN0SVI.js";import"./file-preview-BiHR6COU.js";import"./utils-D_eBTbjc.js";import"./Image01-ZQL1hr5Q.js";import"./editor-bajIdLtD.js";import"./file-type-icon-D6rUMGA4.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Le(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=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:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Mt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",$=n.filter(Be),W=$.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if($.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String($.length),max:String(V)}));return}const R=Ke(q),X=`skills/${R}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:R}));return}Y=!0;const A=Qe(R,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He($,R),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:R}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f(Re(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx($e,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Mt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,a0 as L,r as v,j as e,n as x,e$ as k,dY as y,dZ as E,d_ as a,fy as D,B as u,q as C,t as c,c as z}from"./index-
|
|
1
|
+
import{b as B,a0 as L,r as v,j as e,n as x,e$ as k,dY as y,dZ as E,d_ as a,fy as D,B as u,q as C,t as c,c as z}from"./index-B9KXIX84.js";import{D as T}from"./domain-settings-9s0IWIG1.js";import{f as O,e as R,b as q,A as F,d as M,c as U,g as $}from"./alert-dialog-D0EwpcN4.js";import{I as d}from"./input-ALPFLjGK.js";import{S as H}from"./switch-CGGsZGg2.js";import{a as Y,b as Z,c as G,d as J}from"./use-org-sso-Dbq_Rnc1.js";import{s as K}from"./Trash01-C6BZglNY.js";import{R as Q}from"./require-capability-B5vhBt9u.js";import"./badge-CFEM0raL.js";import"./select-BmpMhuXU.js";import"./index-CcCENa4K.js";import"./Check-D3UEH1bb.js";import"./ChevronUp-DkDOUc-8.js";import"./access-gate-DrC617P9.js";import"./capability-load-error-CkdeSGfJ.js";function V(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=Y(o.id,o.slug),h=Z(o.id,o.slug),S=G(o.id,o.slug),b=J(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,_=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},N=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!m&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(m?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(u,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(K,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(u,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(u,{variant:"outline",size:"sm",onClick:_,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||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&&m?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(u,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(u,{onClick:N,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(Q,{capability:"org:manage",area:"security",children:e.jsx(V,{})}),s[0]=o):o=s[0],o}export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,br as C,bp as y,bx as I,bs as T,bH as M,bM as H,bI as z,c as A,l as g}from"./index-
|
|
1
|
+
import{r as c,j as i,br as C,bp as y,bx as I,bs as T,bH as M,bM as H,bI as z,c as A,l as g}from"./index-B9KXIX84.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
|