decocms 4.372.2 → 4.372.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CBmZyziw.js → AlertCircle-CMjsP_Tk.js} +1 -1
- package/dist/client/assets/{AreaChart-S0mQzrWT.js → AreaChart-Bh_grNQZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B69K0kVk.js → ArrowLeft-CjYy5Nhj.js} +1 -1
- package/dist/client/assets/{ArrowRight-xPNMNz_B.js → ArrowRight-CLncCNat.js} +1 -1
- package/dist/client/assets/{ArrowUp-u0dcFMS5.js → ArrowUp-Cii1LHW7.js} +1 -1
- package/dist/client/assets/{CartesianChart-C3sk-6j9.js → CartesianChart-CD-5y_pX.js} +1 -1
- package/dist/client/assets/{Check-B1dsRB6C.js → Check-B3RSsr_D.js} +1 -1
- package/dist/client/assets/{CheckCircle-DWLeIAIi.js → CheckCircle-DHXQFnpK.js} +1 -1
- package/dist/client/assets/{ChevronRight-B6hcwUgO.js → ChevronRight-USKkhEpL.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Cyo58PlY.js → ChevronSelectorVertical-DpRb2z1l.js} +1 -1
- package/dist/client/assets/{ChevronUp-CLfesB4Y.js → ChevronUp-DiYhGG4T.js} +1 -1
- package/dist/client/assets/{Copy01-BmdYCu9M.js → Copy01-nMxlBfeT.js} +1 -1
- package/dist/client/assets/{CreditCard01-CwXLRxxa.js → CreditCard01-CWXVH3ZM.js} +1 -1
- package/dist/client/assets/{Database01-DtsDBLPS.js → Database01-C0YJpjc3.js} +1 -1
- package/dist/client/assets/{DotsVertical-CVHL4KPF.js → DotsVertical-CsjwfYzf.js} +1 -1
- package/dist/client/assets/{Download01-CSXusgOH.js → Download01-BRrSA3Yx.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Cr0hYOrs.js → ErrorBarContext-fXvhmekg.js} +1 -1
- package/dist/client/assets/{Eye-cBhNaih2.js → Eye-Dyg2WPG4.js} +1 -1
- package/dist/client/assets/{File02-BhN-1ALj.js → File02-BvR-HYxK.js} +1 -1
- package/dist/client/assets/{GitBranch01--s8uEzME.js → GitBranch01-rWb2SJK9.js} +1 -1
- package/dist/client/assets/{Globe01-fgEMsm16.js → Globe01-D6FaaFR2.js} +1 -1
- package/dist/client/assets/{HardDrive-TyjleYaj.js → HardDrive-DNTPLPT4.js} +1 -1
- package/dist/client/assets/{Image01-O24XNmwN.js → Image01-CxnjAzbb.js} +1 -1
- package/dist/client/assets/{Key01-CtPEI4Eg.js → Key01-CIXwHMRo.js} +1 -1
- package/dist/client/assets/{Line-DL6BR25n.js → Line-YO4Ozgbt.js} +1 -1
- package/dist/client/assets/{Link01-CcL48lHm.js → Link01-C0FvgZZB.js} +1 -1
- package/dist/client/assets/{LinkExternal01-rfdoJ7W0.js → LinkExternal01-AWlhN5o7.js} +1 -1
- package/dist/client/assets/{MessageCircle01-C-CyP7IO.js → MessageCircle01-DBcg2aiD.js} +1 -1
- package/dist/client/assets/{Monitor01-D5zc1Ggz.js → Monitor01-Ccs1gh2Z.js} +1 -1
- package/dist/client/assets/{Package-BUXYnAsJ.js → Package-nTbucmaQ.js} +1 -1
- package/dist/client/assets/{Palette-BCFMI_Wq.js → Palette-DSdn1Xis.js} +1 -1
- package/dist/client/assets/{Play-CKEbdlIO.js → Play-lMuWOObF.js} +1 -1
- package/dist/client/assets/{Plus-DhTGO6OU.js → Plus-CVauOqLT.js} +1 -1
- package/dist/client/assets/{Printer-Cqaundx-.js → Printer-CvyxF9Jo.js} +1 -1
- package/dist/client/assets/{SearchLg-Cqrhx8lj.js → SearchLg-BrrPVuXr.js} +1 -1
- package/dist/client/assets/{SearchMd-fdzDozsD.js → SearchMd-C45D2PMI.js} +1 -1
- package/dist/client/assets/{Sector-jcjEFxz0.js → Sector-9mXbxJ9i.js} +1 -1
- package/dist/client/assets/{Settings02-BQWj4mrx.js → Settings02-Cyf85ea0.js} +1 -1
- package/dist/client/assets/{Share07-DL7pSoYx.js → Share07-wC47qn2E.js} +1 -1
- package/dist/client/assets/{Shield01-BwfDPRaf.js → Shield01-CqB4I7qm.js} +1 -1
- package/dist/client/assets/{Stars01-OOrCszDj.js → Stars01-oAh9h5b5.js} +1 -1
- package/dist/client/assets/{Sun-DbDrPFGS.js → Sun-0Ied-kyZ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D-erjhEy.js → SwitchHorizontal01-DpXsFGyJ.js} +1 -1
- package/dist/client/assets/{Tool01-C1iMp6Qn.js → Tool01-DouqPjim.js} +1 -1
- package/dist/client/assets/{Tool02-C0Kk7KSA.js → Tool02-CATStXCy.js} +1 -1
- package/dist/client/assets/{Trash01-UhB0CRb8.js → Trash01-nl-t4IoV.js} +1 -1
- package/dist/client/assets/{TrendUp01-CnwsmsBB.js → TrendUp01-BFAEMx9E.js} +1 -1
- package/dist/client/assets/{Upload01-CZDGBHSw.js → Upload01-B4Fqdkae.js} +1 -1
- package/dist/client/assets/{User01-fZfVT6XZ.js → User01-ClMaVCaJ.js} +1 -1
- package/dist/client/assets/{UserSquare-CxfIKRZH.js → UserSquare-B2lKdt4w.js} +1 -1
- package/dist/client/assets/{Users01-DtXUy7uu.js → Users01-BFhxJVhO.js} +1 -1
- package/dist/client/assets/{Users03-Dw5nWIKh.js → Users03-Y0Jco4zL.js} +1 -1
- package/dist/client/assets/{X-DdrxBhnS.js → X-CFCE4a-Q.js} +1 -1
- package/dist/client/assets/{XCircle-BmfJL_8e.js → XCircle-CleKT0Id.js} +1 -1
- package/dist/client/assets/{XClose-MLfi0Jji.js → XClose-BgzK-Dwz.js} +1 -1
- package/dist/client/assets/{Zap-DRR3UUhJ.js → Zap-B6zkqKWB.js} +1 -1
- package/dist/client/assets/{ZoomOut-7sZYwmin.js → ZoomOut-BPxprY2s.js} +1 -1
- package/dist/client/assets/{access-gate-C6q3nVJm.js → access-gate-Ds4n25mC.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-GCEfUHNn.js → add-connection-dialog-DZjTm9W3.js} +1 -1
- package/dist/client/assets/{agent-analytics-DCkhWf9p.js → agent-analytics-DmvdLg8B.js} +1 -1
- package/dist/client/assets/agent-app-BvmFdS4C.js +1 -0
- package/dist/client/assets/{agent-assets-ojJ8Xiqs.js → agent-assets-czUGY90q.js} +1 -1
- package/dist/client/assets/{agent-automation-B4eHDQrX.js → agent-automation-C5Kr5Oj3.js} +1 -1
- package/dist/client/assets/{agent-automations-ff2RUxFe.js → agent-automations-D-3-Opoc.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CcPIf5gR.js → agent-connect-sources-CjhmYssY.js} +1 -1
- package/dist/client/assets/agent-deck-BC5MWVm-.js +1 -0
- package/dist/client/assets/{agent-e2e-rPac5L3D.js → agent-e2e-DkL4Ltr6.js} +1 -1
- package/dist/client/assets/{agent-experiments-DaPdd-X9.js → agent-experiments--rXT-2aB.js} +1 -1
- package/dist/client/assets/agent-file-C3XkHLMm.js +1 -0
- package/dist/client/assets/{agent-git-DcEJ2X4i.js → agent-git-D4IYczGa.js} +1 -1
- package/dist/client/assets/{agent-hosting-DuNL_wpb.js → agent-hosting-DaIfm8Hu.js} +1 -1
- package/dist/client/assets/{agent-icon-CG9LA776.js → agent-icon-CczrFEe7.js} +1 -1
- package/dist/client/assets/agent-library-file-Dji653pU.js +1 -0
- package/dist/client/assets/{agent-monitor-BM-OnMxj.js → agent-monitor-C-HIyaF_.js} +1 -1
- package/dist/client/assets/{agent-overview-D6iBUiTw.js → agent-overview-cm15sxNU.js} +1 -1
- package/dist/client/assets/agent-settings-XmhY1FOi.js +1 -0
- package/dist/client/assets/{agent-site-editor-ejdHfOFM.js → agent-site-editor-DJSdtoNU.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-_Tz57RqE.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-_Pf4joQg.js → agent-site-editor-content-DOAcxz0t.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-DjTBMAQa.js → agent-site-editor-preview-mg5Q6hoW.js} +3 -3
- package/dist/client/assets/agent-view-ClMILC98.js +1 -0
- package/dist/client/assets/{agent-view-guard-DXWg2Gk-.js → agent-view-guard-DHJpzCVR.js} +1 -1
- package/dist/client/assets/{agents-list-CKNjfI6O.js → agents-list-rKFF5b3o.js} +1 -1
- package/dist/client/assets/{ai-providers-DK9rldFg.js → ai-providers-jxGd6MbV.js} +1 -1
- package/dist/client/assets/{alert-CCseTQ3U.js → alert-U2IStW1f.js} +1 -1
- package/dist/client/assets/{alert-dialog-D1mw46Sk.js → alert-dialog-BI-B_8hq.js} +1 -1
- package/dist/client/assets/{api-keys-CKHrd_7x.js → api-keys-AIfL76r6.js} +1 -1
- package/dist/client/assets/api-keys-B6ry5Bc6.js +1 -0
- package/dist/client/assets/app-editor-BZKFeBmU.js +1 -0
- package/dist/client/assets/{asset-utils-D_zaQTaK.js → asset-utils-DhbLEVKo.js} +1 -1
- package/dist/client/assets/{auth-DD_Ixcci.js → auth-DhzAq_9m.js} +1 -1
- package/dist/client/assets/{auth-catchall-cbZs_0W-.js → auth-catchall-Dar7OygY.js} +1 -1
- package/dist/client/assets/{auth-entry-CnbW7-3f.js → auth-entry-CwWjlqGu.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bdz_uyrq.js → auth-split-layout-DLFqjvPt.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C-rkDcUs.js → authenticate-and-persist-oauth-DkJ4g-X5.js} +1 -1
- package/dist/client/assets/{automation-list-row-CR6JdgMc.js → automation-list-row-Btr-Kty6.js} +1 -1
- package/dist/client/assets/{automation-runs-CZTAHOWn.js → automation-runs-CnOOOwZJ.js} +1 -1
- package/dist/client/assets/automations-CtLmB1Eo.js +1 -0
- package/dist/client/assets/{autosend-Ui23lPKc.js → autosend-BberXmli.js} +1 -1
- package/dist/client/assets/{avatar-B4O8VfWG.js → avatar-C9HiP4eS.js} +1 -1
- package/dist/client/assets/{badge-Dt3iCXyZ.js → badge-Bu51Hlti.js} +1 -1
- package/dist/client/assets/{block-document-B4aPeXms.js → block-document-BLCekKXO.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DHWKuZAa.js → blocks-preview-workspace-context-Bwmvvd4S.js} +1 -1
- package/dist/client/assets/{breadcrumb-C1f6kD30.js → breadcrumb-Dhdru7Jh.js} +1 -1
- package/dist/client/assets/{buckets-6ACibqOT.js → buckets-BndbOAGO.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B6wx1rP9.js → build-improve-prompt-doc-Cedp3vV1.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-F9HNDtYy.js → bulk-category-panel-D3c_qJDk.js} +1 -1
- package/dist/client/assets/{calendar-vO7jAMoX.js → calendar-DIQx67oO.js} +1 -1
- package/dist/client/assets/{capability-load-error-H0rjgWhr.js → capability-load-error-CJMvYDf4.js} +1 -1
- package/dist/client/assets/{cards-kf5vSVVS.js → cards-BVw8sRdW.js} +1 -1
- package/dist/client/assets/category-editor-C7sRrVfl.js +1 -0
- package/dist/client/assets/{chart-BzMhag8P.js → chart-8nXuVw9P.js} +1 -1
- package/dist/client/assets/{chat-context-CyABXc7f.js → chat-context-tZCX_cqt.js} +1 -1
- package/dist/client/assets/{chat-draft-D7-8Bmdq.js → chat-draft-BCeqPSxA.js} +1 -1
- package/dist/client/assets/{checkbox-CtOL1W3M.js → checkbox-jLf7fBuW.js} +1 -1
- package/dist/client/assets/{choose-editor-BtO73yE_.js → choose-editor-Cbu3-nVC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CoTXpnpD.js → cli-auth-success-D39z_FO3.js} +1 -1
- package/dist/client/assets/{client-icons-CQZdxqWS.js → client-icons-DpcP1bht.js} +1 -1
- package/dist/client/assets/{collapsible-pX1z8P9s.js → collapsible-CTgXdVQa.js} +1 -1
- package/dist/client/assets/{collection-detail-BZDl7xyG.js → collection-detail-BF7WM7Gn.js} +1 -1
- package/dist/client/assets/{collection-display-button-CbltoNVs.js → collection-display-button-C-4xB6xx.js} +1 -1
- package/dist/client/assets/{collection-search-CDJVma9q.js → collection-search-J9Bt25gS.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DcmT6WdT.js → collection-table-wrapper-DBeauaNS.js} +1 -1
- package/dist/client/assets/{collection-tabs-BxK4CJTN.js → collection-tabs-CrXIJeNf.js} +1 -1
- package/dist/client/assets/{combobox-DXVa1WHx.js → combobox-BHrqHmge.js} +1 -1
- package/dist/client/assets/{command-DQAiupfD.js → command-B-XD29Nx.js} +1 -1
- package/dist/client/assets/{command-palette-store-BAKFtSbo.js → command-palette-store-DK-56E2K.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BTo1SG3V.js → companion-mcps-section-xmRpNJBK.js} +1 -1
- package/dist/client/assets/{connect-D69kUPQ6.js → connect-D4qCE3TM.js} +1 -1
- package/dist/client/assets/{connect-layout-CCzmI4dZ.js → connect-layout-DGO84ImO.js} +1 -1
- package/dist/client/assets/{connection-HbykX7y1.js → connection-DD0omVHZ.js} +1 -1
- package/dist/client/assets/{connection-card-CVCUQ3aW.js → connection-card-fcMCwbTh.js} +1 -1
- package/dist/client/assets/{connection-detail-26OGwpTw.js → connection-detail-DS015J4e.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BbPIPH0F.js → connection-form-helpers-CHlcdgAK.js} +1 -1
- package/dist/client/assets/{connections-DfOC15A2.js → connections-C98FMYyY.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CQqrzhNr.js → create-organization-dialog-1mI4Ad1B.js} +1 -1
- package/dist/client/assets/{decofile-api-D4EZXGFG.js → decofile-api-BNWbEMR6.js} +1 -1
- package/dist/client/assets/{decopilot-CS4SGQVN.js → decopilot-BvepxP_-.js} +1 -1
- package/dist/client/assets/{dialog-DqEzjMAL.js → dialog-llvhXw2o.js} +1 -1
- package/dist/client/assets/{discover-BzlMmTOv.js → discover-DNPHmIfF.js} +1 -1
- package/dist/client/assets/{domain-settings-B8sQXZqE.js → domain-settings-CXxEmIjB.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BAvoyDUp.js → download-app-dialog-D_4eQbbs.js} +1 -1
- package/dist/client/assets/{drawer-CcQRz4y-.js → drawer-BIjkXMV3.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B91kH2ef.js → dropdown-menu-C5iafa8S.js} +1 -1
- package/dist/client/assets/{editor-B5kh_87R.js → editor-D4Ls62vg.js} +1 -1
- package/dist/client/assets/{empty-state-DxrEQWmF.js → empty-state-BdiOfgle.js} +1 -1
- package/dist/client/assets/{empty-state-CsX1FA1W.js → empty-state-CyICQznD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Chw2Aon_.js → extract-connection-data-Dbm_cKaX.js} +1 -1
- package/dist/client/assets/{feature-gate-BGURuoWY.js → feature-gate-Bp7Cydio.js} +1 -1
- package/dist/client/assets/{feature-paywall-BnPg6xWO.js → feature-paywall-DEy2mpV2.js} +1 -1
- package/dist/client/assets/{file-explorer-CzROIsmv.js → file-explorer-Bs7B2-rr.js} +1 -1
- package/dist/client/assets/{file-preview-4gOrulnp.js → file-preview-CARebwHJ.js} +1 -1
- package/dist/client/assets/{file-share-button-4P1UpMsl.js → file-share-button-Dk1ugrdV.js} +1 -1
- package/dist/client/assets/{file-type-icon-ajQojKQT.js → file-type-icon-C9Qn36v4.js} +1 -1
- package/dist/client/assets/{folder-icon-C8L4j1L7.js → folder-icon-BLBZBD_a.js} +1 -1
- package/dist/client/assets/{form-DMzpEXyE.js → form-CSXgIHLz.js} +1 -1
- package/dist/client/assets/{gateway-client-D6HrO7KA.js → gateway-client-BuiOykcN.js} +1 -1
- package/dist/client/assets/{general-DzSsaIiU.js → general-BYFfG0fF.js} +1 -1
- package/dist/client/assets/{github-icon-DDXLGNgI.js → github-icon-huXDOAgf.js} +1 -1
- package/dist/client/assets/{home-C7Nc_ynT.js → home-DTaaCW3K.js} +1 -1
- package/dist/client/assets/{hooks-B2j1s3nm.js → hooks-BoX5BC-f.js} +1 -1
- package/dist/client/assets/{hooks-Cb68QwoE.js → hooks-DZOMRp7D.js} +1 -1
- package/dist/client/assets/{index-CKrLkZIn.js → index-2eKztu7k.js} +1 -1
- package/dist/client/assets/{index-CxD5N3g_.js → index-2gtoysbs.js} +1 -1
- package/dist/client/assets/{index-JOfrpEq3.js → index-BD213WLU.js} +1 -1
- package/dist/client/assets/{index-BZ60Q2vF.js → index-BH7uCYoT.js} +1 -1
- package/dist/client/assets/{index-Df1kyaWx.js → index-BWpNlf6e.js} +1 -1
- package/dist/client/assets/{index-CwzlBp8e.js → index-Bb-Re5q8.js} +1 -1
- package/dist/client/assets/{index-CUYQAaOU.js → index-CSd_k8Np.js} +1 -1
- package/dist/client/assets/{index-rDWCi11h.js → index-CiMUXLco.js} +1 -1
- package/dist/client/assets/{index-CQDDfSqE.js → index-D4RUT3q0.js} +1 -1
- package/dist/client/assets/{index-Lc7giPgZ.js → index-DWw5wi2G.js} +1 -1
- package/dist/client/assets/{index-Byp-1yx-.js → index-D_X-LIyA.js} +1 -1
- package/dist/client/assets/{index-zEbfx_2K.js → index-Dc7hzqoi.js} +2 -2
- package/dist/client/assets/{index-CZK4_x46.js → index-DiULBiX9.js} +1 -1
- package/dist/client/assets/{index-C1mE9nWp.js → index-DqT4mG5l.js} +1 -1
- package/dist/client/assets/{index-redirect-BuWy9Z6S.js → index-redirect-BQTLrDGT.js} +1 -1
- package/dist/client/assets/{index-Diborc_9.js → index-tj4CWdxr.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-sPk7QDR1.js → infiniteQueryObserver-CjWlcBHD.js} +1 -1
- package/dist/client/assets/{infra-billing-C4xv4inC.js → infra-billing-D6jrbNxA.js} +1 -1
- package/dist/client/assets/{input-BYddSsu_.js → input-DXlaTX4w.js} +1 -1
- package/dist/client/assets/{input-C_NYYd89.js → input-D_FfvHr0.js} +1 -1
- package/dist/client/assets/{input-wjpeVemQ.js → input-uIV5S_EX.js} +1 -1
- package/dist/client/assets/{integration-icon-CdbMa5vl.js → integration-icon-BeEdjsn9.js} +1 -1
- package/dist/client/assets/{label-DeeZ_khO.js → label-BMxIRiEr.js} +1 -1
- package/dist/client/assets/{last-preview-page-Bs7lLAHU.js → last-preview-page-B_H0ubHa.js} +1 -1
- package/dist/client/assets/{layout-CGB6UTjd.js → layout-Dli4i2a0.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-KBnG2EVw.js → legacy-agents-deep-CoiLV3QJ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DpIQ14bR.js → legacy-main-redirect-BZ4nzqkQ.js} +1 -1
- package/dist/client/assets/{library-CceKr55E.js → library-Dste3SFA.js} +1 -1
- package/dist/client/assets/{login-Ch-rMjOh.js → login-C4Dx9xMO.js} +1 -1
- package/dist/client/assets/{markdown-CxV2eB4e.js → markdown-DGWjAeXL.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BV8BWgXU.js → mcp-app-renderer-BTjC7Gse.js} +1 -1
- package/dist/client/assets/{mcp-oauth-YLkkgmwu.js → mcp-oauth-C4khbNJJ.js} +1 -1
- package/dist/client/assets/{members-Cf9YeQtc.js → members-CRtKrUle.js} +1 -1
- package/dist/client/assets/{message-templates-BdE6dkny.js → message-templates-B8kOo0Kk.js} +1 -1
- package/dist/client/assets/{mini-report-page-BGQ5cRDa.js → mini-report-page-Ci4cxCz8.js} +1 -1
- package/dist/client/assets/{mock-board-BKlTNwzx.js → mock-board-DRa60E6i.js} +3 -3
- package/dist/client/assets/{monaco-editor-CM8IdJ5Z.js → monaco-editor-CMRYkmyb.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B8YXJIqJ.js → monitoring-stats-row-PncjnNwy.js} +1 -1
- package/dist/client/assets/{multi-select-CAw7QXMy.js → multi-select-DzAZ8Rb8.js} +1 -1
- package/dist/client/assets/{mustache-BYUJMv8S.js → mustache-CPZS2ebG.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cx9sp11t.js → oauth-callback-CETK2WZB.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Daw9NS6o.js → oauth-callback-ai-provider-DqbbngEF.js} +1 -1
- package/dist/client/assets/{onboarding-4smvmYpm.js → onboarding-B5zAGi2B.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BaFWHjow.js → optimistic-project-sidebar-views-CrZ9OeIk.js} +1 -1
- package/dist/client/assets/{org-file-open-context--Mwc-yMq.js → org-file-open-context-BCUpiY_R.js} +1 -1
- package/dist/client/assets/{organization-choice-CDn7Mna7.js → organization-choice-BNulT5zU.js} +1 -1
- package/dist/client/assets/{orgs-D-lV9-X0.js → orgs-B1TBklWZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-BIFPULvd.js → page-seo-form-BrHgBXF1.js} +1 -1
- package/dist/client/assets/{pair-DQUrmxV6.js → pair-B46EBBjF.js} +1 -1
- package/dist/client/assets/{plan-ladder-87xBAt0E.js → plan-ladder-B2pv9Y73.js} +1 -1
- package/dist/client/assets/{popover-Bq4WOviU.js → popover-yk_ePqAA.js} +1 -1
- package/dist/client/assets/{post-calendar-NmXDxp_f.js → post-calendar-Bx8YiCbs.js} +1 -1
- package/dist/client/assets/{post-editor-CyV8-7qm.js → post-editor-B1fD7o8C.js} +1 -1
- package/dist/client/assets/{preview-content-lLPCW88q.js → preview-content-CfbsbElk.js} +1 -1
- package/dist/client/assets/{preview-dialog-CYHTLvBD.js → preview-dialog-CA2C3DS4.js} +1 -1
- package/dist/client/assets/{primitives-B7wT1jpV.js → primitives-JiGRyPkw.js} +1 -1
- package/dist/client/assets/{profile-2MWkYt1W.js → profile-CDR0JVtv.js} +1 -1
- package/dist/client/assets/{project-app-view-DnD6ABvi.js → project-app-view-8VWdrWMf.js} +1 -1
- package/dist/client/assets/{project-feed-9ymkpfIM.js → project-feed-ChJRKxhk.js} +1 -1
- package/dist/client/assets/{project-icon-CnsTRQs7.js → project-icon-MWmzrrm8.js} +1 -1
- package/dist/client/assets/project-reports-D31utlHg.js +1 -0
- package/dist/client/assets/project-tasks-D2AAgqxo.js +1 -0
- package/dist/client/assets/{prompts-BTWUWzEW.js → prompts-4lILOzK9.js} +1 -1
- package/dist/client/assets/record-editor-DPAL8Tq5.js +1 -0
- package/dist/client/assets/{redirect-editor-BrOsxFBz.js → redirect-editor-EPs_GX-_.js} +1 -1
- package/dist/client/assets/registry-Dw8UrRRZ.js +2 -0
- package/dist/client/assets/{registry-layout-ybJm-zJ1.js → registry-layout-CC2lewiS.js} +1 -1
- package/dist/client/assets/{reports-gjPyOi1V.js → reports-BpxYdv2_.js} +1 -1
- package/dist/client/assets/reports-Ch9UvBcS.js +1 -0
- package/dist/client/assets/{reports-onboarding-zrsVhRJJ.js → reports-onboarding-Dhm8IBuD.js} +1 -1
- package/dist/client/assets/{reports-tab-CSxOpMBu.js → reports-tab-BJWrZp37.js} +2 -2
- package/dist/client/assets/{repositories-DhB53p4v.js → repositories-CMIGVJwC.js} +1 -1
- package/dist/client/assets/{repository-import-picker-G5-hX7A2.js → repository-import-picker-DhVniDI2.js} +1 -1
- package/dist/client/assets/{repository-picker-CqYIk9Jh.js → repository-picker-BkoSI-jm.js} +1 -1
- package/dist/client/assets/{require-capability-ClQfFfk3.js → require-capability-CmtOZnXt.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DSCX2iMO.js → required-auth-layout-RoMNnMPO.js} +1 -1
- package/dist/client/assets/{reset-password-BwIVBrTT.js → reset-password-BeUL8IgX.js} +1 -1
- package/dist/client/assets/{resizable-Cfhvj7Gy.js → resizable-Bt7dvMCc.js} +1 -1
- package/dist/client/assets/{review-settings-DYJgy9wi.js → review-settings-Cx_Yzx40.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-D3Q8eCOs.js → rich-text-link-control-CHsxXHIo.js} +1 -1
- package/dist/client/assets/{roles-IFbGtvaS.js → roles-BNleKwt9.js} +1 -1
- package/dist/client/assets/{route-BPQK-oME.js → route-CHqG9ihd.js} +1 -1
- package/dist/client/assets/{route-3RXQg1rv.js → route-DqJoK5dW.js} +1 -1
- package/dist/client/assets/{route-Dio936vS.js → route-x8jgkj5T.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-DOljNlCw.js → runnable-block-editor-xmOnaiFL.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-tfkoXu0L.js → sandbox-lifecycle-context-C7VKOJoV.js} +1 -1
- package/dist/client/assets/{schema-CpmuStS2.js → schema-1zAO-l7e.js} +1 -1
- package/dist/client/assets/{scroll-area-BUwrzwMz.js → scroll-area-C-wtbVS1.js} +1 -1
- package/dist/client/assets/{search-input-CT4D4zLR.js → search-input-Pobww52G.js} +1 -1
- package/dist/client/assets/{secrets-DS5_dizq.js → secrets-BF5nuoR4.js} +1 -1
- package/dist/client/assets/{sections-editor-BxFRL2DR.js → sections-editor-B1LpXw4X.js} +1 -1
- package/dist/client/assets/{select-5CD79m_H.js → select-BkKPcZFe.js} +1 -1
- package/dist/client/assets/{select-model-BBl_olhQ.js → select-model-DPv-zVVj.js} +1 -1
- package/dist/client/assets/{seo-editor-pCv-C3du.js → seo-editor-9G7mQFJ5.js} +1 -1
- package/dist/client/assets/{settings-tab-BDnT7VBW.js → settings-tab-D1V5Uszb.js} +1 -1
- package/dist/client/assets/{sheet-D-CTuaTd.js → sheet-i72Qx7sL.js} +1 -1
- package/dist/client/assets/{shell-layout-DVwBW-8f.js → shell-layout-Ce0aCJuX.js} +1 -1
- package/dist/client/assets/{sidebar-CnKCwozZ.js → sidebar-C5KRz1Pj.js} +1 -1
- package/dist/client/assets/{skill-preview-Br1NvL8D.js → skill-preview-gfYVdSdM.js} +1 -1
- package/dist/client/assets/{skills-DQbBqdux.js → skills-CgTiBPyO.js} +1 -1
- package/dist/client/assets/{sso-BVr60kN3.js → sso-BK-aRT5P.js} +1 -1
- package/dist/client/assets/{store-aWb7HUd8.js → store-Nm6KtwbD.js} +1 -1
- package/dist/client/assets/store-registry-Cs6bPPkP.js +2 -0
- package/dist/client/assets/{switch-ClJqQzki.js → switch-BQFtt3BH.js} +1 -1
- package/dist/client/assets/{synced-repos-D7iLaGtW.js → synced-repos-B1z4DDCt.js} +1 -1
- package/dist/client/assets/{table-Da5i0DDT.js → table-6I6YKvFY.js} +1 -1
- package/dist/client/assets/{tabs-CXXWDRig.js → tabs-CLziM0Ww.js} +1 -1
- package/dist/client/assets/{task-board-DgAEwWBa.js → task-board-DrUf5p-Z.js} +1 -1
- package/dist/client/assets/{task-route-D9BNUMx2.js → task-route-BCTCy27Q.js} +1 -1
- package/dist/client/assets/{task-status-Bt8iPML5.js → task-status-DhCT2ly_.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-B88KUIje.js → taskboard-analytics-Cf1r1f7I.js} +1 -1
- package/dist/client/assets/tasks-BNvHI7hJ.js +1 -0
- package/dist/client/assets/{tasks-B9UZq7u-.js → tasks-Drgd6az8.js} +1 -1
- package/dist/client/assets/{textarea-Cmx8DtdI.js → textarea-BU6xemAP.js} +1 -1
- package/dist/client/assets/{thread-intent-B0Twy-Y4.js → thread-intent-F-sZEflj.js} +1 -1
- package/dist/client/assets/{thread-route-BqVXF90R.js → thread-route-BBf64Mwk.js} +1 -1
- package/dist/client/assets/{thread-route-DS6Bc_kc.js → thread-route-BSYRqZDg.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-FLXrrZaF.js → thread-sheet-body-B4OUWlMn.js} +1 -1
- package/dist/client/assets/{toggle-group-DjgZ3Fw8.js → toggle-group-BiU_UDOq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BnICfdNs.js → toolbar-icon-button-PuQFE8Y9.js} +1 -1
- package/dist/client/assets/{tooltip-CgGnYGtj.js → tooltip-DV2xHesQ.js} +1 -1
- package/dist/client/assets/{track-CLzcG0zs.js → track-ZuOMvhd2.js} +1 -1
- package/dist/client/assets/{types-_4eK3VIa.js → types-27TVsPN_.js} +1 -1
- package/dist/client/assets/{usage-stats-BCiFcxmR.js → usage-stats-vMRDbAUM.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D1prvpLy.js → use-ai-providers-BnF5Rw_n.js} +1 -1
- package/dist/client/assets/{use-automations-DQOVDERk.js → use-automations-Bo0S3g8m.js} +1 -1
- package/dist/client/assets/{use-autosave-CgR3xjdo.js → use-autosave-DOzyZumC.js} +1 -1
- package/dist/client/assets/{use-connect-companion-VfoTFThS.js → use-connect-companion-CClQCUMS.js} +1 -1
- package/dist/client/assets/{use-connection-DYvm3CFt.js → use-connection-Ba04fHwa.js} +1 -1
- package/dist/client/assets/{use-copy-ryXIsHmg.js → use-copy-C_ctOeuP.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CBo7Jhzx.js → use-create-virtual-mcp-D1w9d4ex.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BW93JelV.js → use-date-fns-locale-onM9TTf8.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-XooE91Oe.js → use-debounced-autosave-DqyNKPJM.js} +1 -1
- package/dist/client/assets/{use-debounced-value-o4QMDSqG.js → use-debounced-value-B9nG3bW5.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CA-pBDW2.js → use-deco-credits-BGBshlLi.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CQEvF74O.js → use-decopilot-events-BpuQrfKN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-TJEFMdZF.js → use-delete-connection-Cns6x8UC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B__P-eVb.js → use-deployment-admin-BVfgEagI.js} +1 -1
- package/dist/client/assets/{use-entitlements-CtB8_mAv.js → use-entitlements-Dl7pAsQ5.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B-DOK-ru.js → use-fast-preview-draft-url-mcfOeAAq.js} +1 -1
- package/dist/client/assets/{use-file-configs-COihRw2M.js → use-file-configs-DYGSdjth.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BaFLbkIz.js → use-infinite-scroll-PhBGPm8H.js} +1 -1
- package/dist/client/assets/{use-join-requests-DqOkUzx0.js → use-join-requests-DjeVFQr9.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BlyDpOj8.js → use-main-panel-tabs-sSRGo66A.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-n6X-ANPT.js → use-mcp-auth-status-I377R0Kg.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dpy2Y_w9.js → use-mcp-client-e_hCatGm.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dh294adh.js → use-mcp-prompts-DJRXjL4_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DErOx9G_.js → use-mcp-tools-g86k4oib.js} +1 -1
- package/dist/client/assets/{use-members-p6-jNNXz.js → use-members-DPYHJDe2.js} +1 -1
- package/dist/client/assets/{use-mobile-DI9_UYOG.js → use-mobile-hIijCK0k.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent--7G-5-aE.js → use-navigate-to-agent-C8pu0B4z.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DZl00gsn.js → use-open-billing-url-Df7K1DCF.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CwCwgSJe.js → use-org-auth-client-DbPU3bA-.js} +1 -1
- package/dist/client/assets/{use-org-fs-HohNEA-L.js → use-org-fs-Du-ErRPs.js} +1 -1
- package/dist/client/assets/{use-org-notice-D1-emMG_.js → use-org-notice-CyiiFkRG.js} +1 -1
- package/dist/client/assets/{use-org-sso-htHtfKs8.js → use-org-sso-BvfIL0yq.js} +1 -1
- package/dist/client/assets/{use-organization-roles-ff44n98g.js → use-organization-roles-FAEtbpE5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BIkwHnT4.js → use-organization-settings-CKbX2SdA.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-jpI-ng6I.js → use-panel-navigate-WrD0KEYx.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-lTz9hDFO.js → use-project-native-view-presence-DWzPH-Sc.js} +1 -1
- package/dist/client/assets/{use-project-scope-1l5jykdC.js → use-project-scope-DU0-JxYr.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BC2lTMUS.js → use-registry-connections-SLFMHpqj.js} +1 -1
- package/dist/client/assets/{use-releases-BIlaWt_C.js → use-releases-CFNTwgY3.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-D3ATdgVr.js → use-reports-diagnostic-8BvW2in8.js} +1 -1
- package/dist/client/assets/{use-route-default-main-Bn6e9_Md.js → use-route-default-main-Djaj_cL9.js} +1 -1
- package/dist/client/assets/{use-secrets-CQys3abK.js → use-secrets-DVry--sz.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DdpOVR5d.js → use-section-preview-base-BOFovHh4.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DfUQQIgJ.js → use-session-runtime-BR1aW1y5.js} +1 -1
- package/dist/client/assets/{use-tags-DrMO9XPS.js → use-tags-CZXCbbwL.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics--aa1q8Xf.js → use-task-board-analytics-Ci1AhxvH.js} +1 -1
- package/dist/client/assets/{use-task-metadata-C0KiQ70L.js → use-task-metadata-Dt9l5S_a.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Cr0IwDUd.js → use-thread-outputs-Dq-RN0P_.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bj8v6WKY.js → use-view-mode-B0LeaJg7.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-4ZF94-K-.js → use-virtual-mcp-DkK7ErtB.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CspLjV7h.js +1 -0
- package/dist/client/assets/{useQueries-BPL3ni2A.js → useQueries-C-SV8tD7.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BiQYAhJn.js +1 -0
- package/dist/client/assets/{users-DB_UA5AH.js → users-BiOPZ43X.js} +1 -1
- package/dist/client/assets/{utils-CirfulKG.js → utils-DsvmRe8M.js} +1 -1
- package/dist/client/assets/{variant-calendar-Dr5L9BOb.js → variant-calendar-DImnsJnP.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-vR8HAnnC.js → variant-matcher-override-BFQoXu82.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-wxXVeUM6.js → view-mode-toggle-DvGhnpsV.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Beu0ehlX.js → virtual-mcp-ldxphi5G.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +603 -603
- package/dist/server/server.js +409 -409
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CzCHojcy.js +0 -1
- package/dist/client/assets/agent-deck-D8wRpPkn.js +0 -1
- package/dist/client/assets/agent-file-Do2RcnWv.js +0 -1
- package/dist/client/assets/agent-library-file-BuWcxxL9.js +0 -1
- package/dist/client/assets/agent-settings-BzjnuB_y.js +0 -1
- package/dist/client/assets/agent-site-editor-code-2yBGi2Ha.js +0 -2
- package/dist/client/assets/agent-view-DnqS13ka.js +0 -1
- package/dist/client/assets/api-keys-CIgCoePx.js +0 -1
- package/dist/client/assets/app-editor-O01UEByL.js +0 -1
- package/dist/client/assets/automations-V9ZwFDwX.js +0 -1
- package/dist/client/assets/category-editor-CTdcJ7FT.js +0 -1
- package/dist/client/assets/project-reports-ucVO7tht.js +0 -1
- package/dist/client/assets/project-tasks-BkwjlR7M.js +0 -1
- package/dist/client/assets/record-editor-fArJyWhH.js +0 -1
- package/dist/client/assets/registry-hucrdHOL.js +0 -2
- package/dist/client/assets/reports-DK2KYT30.js +0 -1
- package/dist/client/assets/store-registry-9bzkx-m3.js +0 -2
- package/dist/client/assets/tasks-Dn9XFRM-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BMvdD4sR.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DxuC0K9H.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,l as f,j as i,aX as N,aW as y,ae as S,aY as v,aZ as $,b0 as C,a_ as w}from"./index-
|
|
1
|
+
import{c as n,l as f,j as i,aX as N,aW as y,ae as S,aY as v,aZ as $,b0 as C,a_ as w}from"./index-Dc7hzqoi.js";import{i as k}from"./X-CFCE4a-Q.js";function D(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 E(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 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",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 O(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 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("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 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-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{P as S,E as a,D as b,O as c,T as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,b as J,e as He,j as n,B as F,t as Ke,bu as de,D as wt,a as qe,w as Bt,z as vt,K as Ge,bv as Kt,bw as Ht,J as Fe,l as it,au as Ut,r as X,R as Gt,a1 as oe,d as jt,M as ct,x as kt,m as Ue,o as at,ag as Tt,bx as Jt,an as Vt,as as ut,v as Wt,by as Yt,bz as Qt,bA as Xt,bB as Zt,bC as en,F as tn,u as nn,X as sn,bD as on,bE as an,k as Nt,bF as st,bG as rn,bH as ln,O as cn,bI as dn}from"./index-zEbfx_2K.js";import{A as tt}from"./avatar-B4O8VfWG.js";import{t as _t,b as mt}from"./Users03-Dw5nWIKh.js";import{i as un}from"./SearchLg-Cqrhx8lj.js";import{aa as mn,a9 as fn,ab as ee,ac as gn,r as hn,ad as pn,n as ft,f as yn,e as bn,ae as xn,d as Sn}from"./agent-icon-CG9LA776.js";import{s as wn}from"./XClose-MLfi0Jji.js";import{D as vn}from"./download-app-dialog-BAvoyDUp.js";import{l as At}from"./anchors-yqDzZN4K.js";import{a as jn,u as kn}from"./use-project-scope-1l5jykdC.js";import{i as Tn,u as Nn}from"./use-org-notice-D1-emMG_.js";import{u as Pt,a as _n}from"./use-panel-navigate-jpI-ng6I.js";import{i as ie}from"./CheckCircle-DWLeIAIi.js";import{i as gt}from"./Tool02-C0Kk7KSA.js";import{i as ot}from"./Monitor01-D5zc1Ggz.js";import{i as ae}from"./Zap-DRR3UUhJ.js";import{c as Ct,d as Et,b as It,D as Ot,h as An,e as Pn}from"./dialog-DqEzjMAL.js";import{S as Cn,u as En,c as In,i as ht,o as On,a as Ln}from"./command-palette-store-BAKFtSbo.js";import{i as $n}from"./Share07-DL7pSoYx.js";import{s as pt}from"./Plus-DhTGO6OU.js";import{a as Dn}from"./Settings02-BQWj4mrx.js";import{b as re,a as Me,f as Rn,e as zn,c as Fn,C as qn}from"./command-DQAiupfD.js";import{I as Mn}from"./integration-icon-CdbMa5vl.js";import{P as Bn}from"./project-icon-CnsTRQs7.js";import{a as Kn,m as Hn}from"./use-mcp-client-Dpy2Y_w9.js";import{u as Un}from"./use-is-desktop-app-BNujXJc_.js";import{R as Gn}from"./required-auth-layout-DSCX2iMO.js";import{A as Jn}from"./autosend-Ui23lPKc.js";import{u as Vn,a as Wn,b as Yn,c as Qn}from"./thread-route-BqVXF90R.js";import{u as Xn}from"./hooks-Cb68QwoE.js";import{b as Zn}from"./use-organization-settings-BIkwHnT4.js";import{u as es}from"./use-org-sso-htHtfKs8.js";function ts(t){const e=z.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ke.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=He(v),b=ns;let p;e[11]!==s||e[12]!==o?(p=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=p):p=e[13];let l;e[14]!==o||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==o||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=c.isPending,e[30]=o,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(de,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function yt(t){const e=z.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=ss,u=s==="not-found",m=u?un:wt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==o||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=o,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(de,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=z.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let u;e[0]!==o?(u=async()=>{const O=await qe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=u):u=e[1];let m;e[2]!==s?(m=()=>{Bt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=He(v);let b;e[10]!==o?(b=async()=>{const O=await qe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=He(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(tt,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let I;return e[55]!==N||e[56]!==C||e[57]!==S?(I=n.jsxs(de,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=I):I=e[58],I}function is(t){const e=z.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(tt,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==s?(c=s("common.requestPendingScreen.goHome"),e[15]=s,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(de,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=z.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ke.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=He(v);let b;e[8]!==s||e[9]!==o?(b=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=b):b=e[10];let p;e[11]!==o||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(de,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=z.c(7);let o;e[0]!==t?(o=Ge.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],vt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Kt()?.org===t&&Ht();const o=localStorage.getItem(Fe.lastOrgSlug())===t;if(o&&localStorage.removeItem(Fe.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(yt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(yt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=z.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=it("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==s?(P=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:it("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms=[{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 fs(t){return ms.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return fs(e).map(o=>({element:At(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const hs=At("switcher"),ps=30;function $t(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ys(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&$t(o.element))}function bs(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:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Be=!1},steps:e}}let Be=!1;async function xs(){return(await Ut(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Be)return;Be=!0;let o=0;const r=()=>{if(!$t(hs)&&o++<ps){requestAnimationFrame(r);return}const s=ys(t,e);if(s.length===0){Be=!1;return}xs().then(a=>{a(bs(t,s)).drive()}).catch(()=>{Be=!1})};r()}const ws=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon: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:ie,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:ae,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:ae,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon: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:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ie,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:ae,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ie,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:ae,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:ie,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:ae,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ie,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:ae,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ie,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:ae,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:gt,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:ie,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:mt,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:ae,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:ie,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:gt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Dt=ws,et="studio.release-feed.v1",rt=new Set;let le="",ce={},lt=!1;function vs(){if(lt)return le||"{}";try{return localStorage.getItem(et)??"{}"}catch{return le||"{}"}}function Rt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function bt(){const t=vs();return t!==le&&(le=t,ce=Rt(t)),ce}function js(t){rt.add(t);const e=o=>{if(!(o.key!==et&&o.key!==null)){try{const r=localStorage.getItem(et)??"{}",a={...Rt(r),...ce};ce=a,le=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function ks(t){ce=t,le=JSON.stringify(t);try{localStorage.setItem(et,le),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ts(){const t=z.c(7),e=X.useSyncExternalStore(js,bt,bt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ns;let a;t[2]!==e?(a=Dt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function Ns(t){ce[t]||ks({...ce,[t]:{seenAt:new Date().toISOString()}})}const _s=720*60*60*1e3,As=10080*60*1e3;function Ps(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Cs(t){const e=Dt[0];if(!e)return null;const o=Ps(e.date),r=t-o;return r<0||r>_s?null:e}function Es(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 Is(t,e){const o=Es(t);return o===null?!1:e-o>=As}function Os(){const t=z.c(52),e=J(),o=jn(),r=Gt(),s=Pt(),a=!!o,i=r===oe.home&&!o;let u;t[0]!==s||t[1]!==a?(u=a&&!!s&&Tn(s),t[0]=s,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=qe.useSession(),{isSeen:v,markSeen:c}=Ts(),[b,p]=X.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const I=Date.now();if(l=Cs(I),!l){d=null;break e}if(!Is(h?.user?.createdAt,I)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),Ss(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(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:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ls),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=I=>{p(I),I||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ls(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 $s(t){const e=z.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Ct,{children:n.jsx(Et,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Cn.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ot,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(zs)})]},t.description)}function zs(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 xt=8;function Fs(t){const{org:e}=ct(),o=Kn({connectionId:kt,orgId:e.id,orgSlug:e.slug}),{data:r}=Ue({queryKey:Ge.globalSearch(e.id,t,xt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:xt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function qs(t){const e=z.c(192),{open:o,onOpenChange:r}=t,s=J(),a=jt(),{org:i}=ct(),{projects:u,hasProjects:m}=kn(),[h,v]=X.useState(""),c=X.useDeferredValue(h),b=Fs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(q,V)=>{at("command_palette_used",{kind:V}),q(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){a({to:oe.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const V=Tt(i.id).id;Jt(a,Vt({org:i.slug,agentId:q.virtual_mcp_id??V,superAgentId:V}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,I,O,R;if(e[10]!==l||e[11]!==d||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==S||e[18]!==i.slug||e[19]!==u||e[20]!==w||e[21]!==s||e[22]!==h){const q=b.filter(Bs),V=b.filter(Ms);let te;e[36]!==i.slug?(te={org:i.slug},e[36]=i.slug,e[37]=te):te=e[37];const D=te;let Z;e[38]!==s?(Z=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Z):Z=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(yn,{}),e[40]=W):W=e[40];let K;e[41]!==D||e[42]!==Z?(K={key:"home",label:Z,icon:W,to:oe.home,params:D},e[41]=D,e[42]=Z,e[43]=K):K=e[43];let Y;e[44]!==s?(Y=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=Y):Y=e[45];let ne;e[46]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(bn,{}),e[46]=ne):ne=e[46];let H;e[47]!==D||e[48]!==Y?(H={key:"reports",label:Y,icon:ne,to:oe.reports,params:D},e[47]=D,e[48]=Y,e[49]=H):H=e[49];let U;e[50]!==s?(U=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=U):U=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ft,{}),e[52]=se):se=e[52];let Q;e[53]!==i.slug?(Q={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Q):Q=e[54];let L;e[55]!==U||e[56]!==Q?(L={key:"tasks",label:U,icon:se,to:oe.tasks,params:Q},e[55]=U,e[56]=Q,e[57]=L):L=e[57];let M;e[58]!==s?(M=s("sidebar.navDestinations.library"),e[58]=s,e[59]=M):M=e[59];let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx($n,{}),e[60]=Je):Je=e[60];let ue;e[61]!==D||e[62]!==M?(ue={key:"library",label:M,icon:Je,to:oe.library,params:D},e[61]=D,e[62]=M,e[63]=ue):ue=e[63];let me;e[64]!==s?(me=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=me):me=e[65];let Ve;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(xn,{}),e[66]=Ve):Ve=e[66];let fe;e[67]!==D||e[68]!==me?(fe={key:"discover",label:me,icon:Ve,to:oe.discover,params:D},e[67]=D,e[68]=me,e[69]=fe):fe=e[69];let We;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==ue||e[74]!==fe?(We=[K,H,L,ue,fe],e[70]=K,e[71]=H,e[72]=L,e[73]=ue,e[74]=fe,e[75]=We):We=e[75];const nt=We;P=Rn,j=o,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==s?(T=s("commandPalette.title"),e[79]=s,e[80]=T):T=e[80],e[81]!==s?(k=s("commandPalette.description"),e[81]=s,e[82]=k):k=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84],e[85]!==ge||e[86]!==h?(A=n.jsx(zn,{placeholder:ge,value:h,onValueChange:v}),e[85]=ge,e[86]=h,e[87]=A):A=e[87],_=Fn;let he;e[88]!==s?(he=s("commandPalette.empty"),e[88]=s,e[89]=he):he=e[89],e[90]!==he?(E=n.jsx(qn,{children:he}),e[90]=he,e[91]=E):E=e[91];let pe;e[92]!==s?(pe=s("commandPalette.goTo"),e[92]=s,e[93]=pe):pe=e[93];let ye;e[94]!==nt||e[95]!==d||e[96]!==a?(ye=nt.map($=>n.jsxs(re,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[94]=nt,e[95]=d,e[96]=a,e[97]=ye):ye=e[97],e[98]!==pe||e[99]!==ye?(C=n.jsx(Me,{heading:pe,children:ye}),e[98]=pe,e[99]=ye,e[100]=C):C=e[100],e[101]!==d||e[102]!==m||e[103]!==a||e[104]!==i.slug||e[105]!==u||e[106]!==s?(I=m&&n.jsx(Me,{heading:s("commandPalette.projects"),children:u.map($=>n.jsxs(re,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:oe.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(Bn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[101]=d,e[102]=m,e[103]=a,e[104]=i.slug,e[105]=u,e[106]=s,e[107]=I):I=e[107];let be;e[108]!==s?(be=s("commandPalette.actions"),e[108]=s,e[109]=be):be=e[109];let xe;e[110]!==s?(xe=s("commandPalette.newProject"),e[110]=s,e[111]=xe):xe=e[111];let Se;e[112]!==d||e[113]!==a||e[114]!==D?(Se=()=>d(()=>a({to:oe.home,params:D}),"new_project"),e[112]=d,e[113]=a,e[114]=D,e[115]=Se):Se=e[115];let Ye;e[116]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(pt,{}),e[116]=Ye):Ye=e[116];let we;e[117]!==s?(we=s("commandPalette.newProject"),e[117]=s,e[118]=we):we=e[118];let ve;e[119]!==we?(ve=n.jsx("span",{children:we}),e[119]=we,e[120]=ve):ve=e[120];let je;e[121]!==xe||e[122]!==Se||e[123]!==ve?(je=n.jsxs(re,{value:xe,onSelect:Se,children:[Ye,ve]}),e[121]=xe,e[122]=Se,e[123]=ve,e[124]=je):je=e[124];let ke;e[125]!==s?(ke=s("commandPalette.inviteTeammate"),e[125]=s,e[126]=ke):ke=e[126];let Te;e[127]!==d||e[128]!==a||e[129]!==D?(Te=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[127]=d,e[128]=a,e[129]=D,e[130]=Te):Te=e[130];let Qe;e[131]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Sn,{}),e[131]=Qe):Qe=e[131];let Ne;e[132]!==s?(Ne=s("commandPalette.inviteTeammate"),e[132]=s,e[133]=Ne):Ne=e[133];let _e;e[134]!==Ne?(_e=n.jsx("span",{children:Ne}),e[134]=Ne,e[135]=_e):_e=e[135];let Ae;e[136]!==ke||e[137]!==Te||e[138]!==_e?(Ae=n.jsxs(re,{value:ke,onSelect:Te,children:[Qe,_e]}),e[136]=ke,e[137]=Te,e[138]=_e,e[139]=Ae):Ae=e[139];let Pe;e[140]!==s?(Pe=s("commandPalette.addConnection"),e[140]=s,e[141]=Pe):Pe=e[141];let Ce;e[142]!==d||e[143]!==a||e[144]!==D?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[142]=d,e[143]=a,e[144]=D,e[145]=Ce):Ce=e[145];let Xe;e[146]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(pt,{}),e[146]=Xe):Xe=e[146];let Ee;e[147]!==s?(Ee=s("commandPalette.addConnection"),e[147]=s,e[148]=Ee):Ee=e[148];let Ie;e[149]!==Ee?(Ie=n.jsx("span",{children:Ee}),e[149]=Ee,e[150]=Ie):Ie=e[150];let Oe;e[151]!==Pe||e[152]!==Ce||e[153]!==Ie?(Oe=n.jsxs(re,{value:Pe,onSelect:Ce,children:[Xe,Ie]}),e[151]=Pe,e[152]=Ce,e[153]=Ie,e[154]=Oe):Oe=e[154];let Le;e[155]!==s?(Le=s("commandPalette.settings"),e[155]=s,e[156]=Le):Le=e[156];let $e;e[157]!==d||e[158]!==a||e[159]!==D?($e=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[157]=d,e[158]=a,e[159]=D,e[160]=$e):$e=e[160];let Ze;e[161]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Dn,{}),e[161]=Ze):Ze=e[161];let De;e[162]!==s?(De=s("commandPalette.settings"),e[162]=s,e[163]=De):De=e[163];let Re;e[164]!==De?(Re=n.jsx("span",{children:De}),e[164]=De,e[165]=Re):Re=e[165];let ze;e[166]!==Le||e[167]!==$e||e[168]!==Re?(ze=n.jsxs(re,{value:Le,onSelect:$e,children:[Ze,Re]}),e[166]=Le,e[167]=$e,e[168]=Re,e[169]=ze):ze=e[169],e[170]!==be||e[171]!==je||e[172]!==Ae||e[173]!==Oe||e[174]!==ze?(O=n.jsxs(Me,{heading:be,children:[je,Ae,Oe,ze]}),e[170]=be,e[171]=je,e[172]=Ae,e[173]=Oe,e[174]=ze,e[175]=O):O=e[175],R=q.length>0&&n.jsx(Me,{heading:s("commandPalette.connections"),children:q.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(Mn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=V.length>0&&n.jsx(Me,{heading:s("commandPalette.results"),children:V.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(ft,{}),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]=l,e[11]=d,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=o,e[17]=S,e[18]=i.slug,e[19]=u,e[20]=w,e[21]=s,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=I,e[34]=O,e[35]=R}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],I=e[33],O=e[34],R=e[35];let B;e[176]!==_||e[177]!==N||e[178]!==E||e[179]!==C||e[180]!==I||e[181]!==O||e[182]!==R?(B=n.jsxs(_,{children:[E,C,I,O,R,N]}),e[176]=_,e[177]=N,e[178]=E,e[179]=C,e[180]=I,e[181]=O,e[182]=R,e[183]=B):B=e[183];let G;return e[184]!==P||e[185]!==j||e[186]!==g||e[187]!==T||e[188]!==k||e[189]!==A||e[190]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[184]=P,e[185]=j,e[186]=g,e[187]=T,e[188]=k,e[189]=A,e[190]=B,e[191]=G):G=e[191],G}function Ms(t){return t.type!=="connection"}function Bs(t){return t.type==="connection"}const Ks=300*1e3,Hs=2;function Us(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Gs(t,e){return t.count>=Hs&&t.version!==null&&t.version!==e}function Js(){const t=z.c(43),e=J(),o=Un();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Ws},t[0]=r):r=t[0];const s=He(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ge.appVersionCheck(),queryFn:Vs,refetchInterval:Ks,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ue(a),[m,h]=X.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=X.useState(v);u!==m&&(h(u),b(B=>Us(B,i,"4.372.2")));const[p,l]=X.useState(null),f=o;let d;t[3]!==o||t[4]!==s?(d=()=>window.location.reload(),t[3]=o,t[4]=s,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Gs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ut,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.372.2"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=it(E),t[25]=E,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(ut,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let O;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==I?(O=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,I]}),t[29]=x,t[30]=f,t[31]=A,t[32]=I,t[33]=O):O=t[33];let R;return t[34]!==T||t[35]!==k||t[36]!==O||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:O}),t[34]=T,t[35]=k,t[36]=O,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function Vs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Ws(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ys(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qs=Date.parse("2026-07-21T00:00:00Z"),St=t=>Ys(Fe.ptBrAnnouncementSeen(t));function Xs(){const t=z.c(35),e=J(),[o,r]=Wt(),{data:s,isPending:a}=qe.useSession(),i=s?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<Qs,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&o.language==="en"&&!St(u).has(),[b,p]=X.useState(!1),[l,f]=X.useState(!1);!b&&!a&&(p(!0),c&&u&&(St(u).mark(),r(eo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{at("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(Zs),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Et,{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(An,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Ct,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let I;t[24]!==C?(I=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=I):I=t[25];let O;t[26]!==A||t[27]!==I?(O=n.jsxs(Pn,{children:[A,I]}),t[26]=A,t[27]=I,t[28]=O):O=t[28];let R;t[29]!==O||t[30]!==T?(R=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,O]}),t[29]=O,t[30]=T,t[31]=R):R=t[31];let B;return t[32]!==l||t[33]!==R?(B=n.jsx(Ot,{open:l,onOpenChange:w,children:R}),t[32]=l,t[33]=R,t[34]=B):B=t[34],B}function Zs(t){return{...t,language:"en"}}function eo(t){return{...t,language:"pt-BR"}}function to(t){const e=Qt(t);return typeof e=="string"?e:void 0}function no(){return to("experiment-pipeline-check"),null}function so(t){const e=z.c(1),{activeOrg:o}=t;if(!o)return null;Xt(o.id,{name:o.name??void 0,slug:o.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(no,{}),e[0]=r):r=e[0],r}function oo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,u={mainpanel:void 0};o?u.virtualmcpid=o:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(o??m)!==m;let c,b;return a?.panel?b=a.panel:s?(b=s.tab,s.sidepanel!==void 0&&(c=s.sidepanel),s.mainpanel!==void 0&&(u.mainpanel=s.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const zt="studio:thread-layout:v4",io=50;function Ft(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 ao(t,e,o,r=io){const s=t.filter(([a])=>a!==e);for(s.push([e,Ft(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(zt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qt(t){try{sessionStorage.setItem(zt,JSON.stringify(t))}catch{}}function ro(t,e){t&&qt(ao(dt(),t,e))}function lo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Ft(e[1]):null}function ti(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&qt(o)}function Mt(t){return{queryKey:Ge.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 ni(t){const e=z.c(10);let o;e[0]!==t?(o=Mt(t),e[0]=t,e[1]=o):o=e[1];const r=Ue(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function co(t){const e=z.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const u=i,m=uo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==s||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(F,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(de,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function uo(){window.location.href="/"}function mo(t){const e=z.c(27),{notice:o,orgSlug:r}=t,s=J();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let u;e[3]!==o.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==s?(c=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==s?(p=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(de,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const fo="/settings/infra-billing";function go(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fo)}function ho(t){const e=z.c(8),{org:o,children:r}=t,a=Zn(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==a?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:a,ui:null},e[0]=o.id,e[1]=o.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==o||e[6]!==u?(m=n.jsx(dn,{org:o,project:u,children:r}),e[4]=r,e[5]=o,e[6]=u,e[7]=m):m=e[7],m}function po(){const t=jt(),e=Xn(),{org:o}=ct(),r=nn({strict:!1}),s=Pt(),{openPanel:a,closePanel:i}=_n(),u=Vn(),m=Wn(),h=Yn(),v=Qn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&ro(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:lo(f),w=Tt(o.id).id,_=oo({prev:{virtualmcpid:u,tabId:s},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Jn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const yo=new Set(["/$org/","/$org/home"]);function bo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:xo},t[0]=e):e=t[0],Nt(e)}function xo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yo.has(e)}function So(){const t=z.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[s,a]=X.useState(!1),[i,u]=En(),m=on(),h=bo(),v=r??"";let c;t[1]!==v?(c=Mt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ue(p);const{data:l}=qe.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const L=M=>{if(ht(M)&&M.code==="KeyK"){M.preventDefault(),On();return}if(M.key==="?"&&!Ln(M.target)){M.preventDefault(),a(!0);return}ht(M)&&M.code==="BracketLeft"&&m.history.canGoBack()&&(M.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),X.useEffect(S,y);let w;t[12]!==r?(w=Ge.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await qe.organization.getFullOrganization({query:{organizationSlug:r}}).finally(vo),M=st(L);return L&&!M&&localStorage.setItem(Fe.lastOrgSlug(),r),f&&L&&ln(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=vt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Nn(k);let I;t[22]===Symbol.for("react.memo_cache_sentinel")?(I={select:wo},t[22]=I):I=t[22];const O=Nt(I),R=C?.severity==="block"&&!go(O),B=T??"",G=k??"";let q;t[23]!==B||t[24]!==G?(q=Hn({connectionId:kt,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=q):q=t[25];const V=!!T&&!!k;let te;if(t[26]!==q||t[27]!==V?(te={...q,enabled:V},t[26]=q,t[27]=V,t[28]=te):te=t[28],Ue(te),(!g||st(g)||E||R)&&In(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(st(g)){localStorage.getItem(Fe.lastOrgSlug())===r&&localStorage.removeItem(Fe.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(R&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(mo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(co,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const Z=g.logo??null;let W;t[41]!==g||t[42]!==Z?(W={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=W):W=t[43];let K;t[44]!==g?(K=n.jsx(so,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(cn,{}),t[46]=Y):Y=t[46];let ne;t[47]===Symbol.for("react.memo_cache_sentinel")?(ne=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(Os,{}),n.jsx(Js,{})]}),t[47]=ne):ne=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(qs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==s?(U=n.jsx($s,{open:s,onOpenChange:a}),t[51]=s,t[52]=U):U=t[52];let se;t[53]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(Xs,{}),t[53]=se):se=t[53];let Q;return t[54]!==W||t[55]!==K||t[56]!==H||t[57]!==U?(Q=n.jsxs(ho,{org:W,children:[K,Y,ne,H,U,se]}),t[54]=W,t[55]=K,t[56]=H,t[57]=U,t[58]=Q):Q=t[58],Q}function wo(t){return t.location.pathname}function vo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function jo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Gn,{children:n.jsx(So,{})}),t[0]=e):e=t[0],e}const si=Object.freeze(Object.defineProperty({__proto__:null,default:jo,usePanelActions:po},Symbol.toStringTag,{value:"Module"}));export{ni as a,ti as f,si as s,po as u};
|
|
1
|
+
import{c as z,b as J,e as He,j as n,B as F,t as Ke,bu as de,D as wt,a as qe,w as Bt,z as vt,K as Ge,bv as Kt,bw as Ht,J as Fe,l as it,au as Ut,r as X,R as Gt,a1 as oe,d as jt,M as ct,x as kt,m as Ue,o as at,ag as Tt,bx as Jt,an as Vt,as as ut,v as Wt,by as Yt,bz as Qt,bA as Xt,bB as Zt,bC as en,F as tn,u as nn,X as sn,bD as on,bE as an,k as Nt,bF as st,bG as rn,bH as ln,O as cn,bI as dn}from"./index-Dc7hzqoi.js";import{A as tt}from"./avatar-C9HiP4eS.js";import{t as _t,b as mt}from"./Users03-Y0Jco4zL.js";import{i as un}from"./SearchLg-BrrPVuXr.js";import{aa as mn,a9 as fn,ab as ee,ac as gn,r as hn,ad as pn,n as ft,f as yn,e as bn,ae as xn,d as Sn}from"./agent-icon-CczrFEe7.js";import{s as wn}from"./XClose-BgzK-Dwz.js";import{D as vn}from"./download-app-dialog-D_4eQbbs.js";import{l as At}from"./anchors-yqDzZN4K.js";import{a as jn,u as kn}from"./use-project-scope-DU0-JxYr.js";import{i as Tn,u as Nn}from"./use-org-notice-CyiiFkRG.js";import{u as Pt,a as _n}from"./use-panel-navigate-WrD0KEYx.js";import{i as ie}from"./CheckCircle-DHXQFnpK.js";import{i as gt}from"./Tool02-CATStXCy.js";import{i as ot}from"./Monitor01-Ccs1gh2Z.js";import{i as ae}from"./Zap-B6zkqKWB.js";import{c as Ct,d as Et,b as It,D as Ot,h as An,e as Pn}from"./dialog-llvhXw2o.js";import{S as Cn,u as En,c as In,i as ht,o as On,a as Ln}from"./command-palette-store-DK-56E2K.js";import{i as $n}from"./Share07-wC47qn2E.js";import{s as pt}from"./Plus-CVauOqLT.js";import{a as Dn}from"./Settings02-Cyf85ea0.js";import{b as re,a as Me,f as Rn,e as zn,c as Fn,C as qn}from"./command-B-XD29Nx.js";import{I as Mn}from"./integration-icon-BeEdjsn9.js";import{P as Bn}from"./project-icon-MWmzrrm8.js";import{a as Kn,m as Hn}from"./use-mcp-client-e_hCatGm.js";import{u as Un}from"./use-is-desktop-app-BNujXJc_.js";import{R as Gn}from"./required-auth-layout-RoMNnMPO.js";import{A as Jn}from"./autosend-BberXmli.js";import{u as Vn,a as Wn,b as Yn,c as Qn}from"./thread-route-BBf64Mwk.js";import{u as Xn}from"./hooks-DZOMRp7D.js";import{b as Zn}from"./use-organization-settings-CKbX2SdA.js";import{u as es}from"./use-org-sso-BvfIL0yq.js";function ts(t){const e=z.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ke.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=He(v),b=ns;let p;e[11]!==s||e[12]!==o?(p=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=p):p=e[13];let l;e[14]!==o||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==o||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=c.isPending,e[30]=o,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(de,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function yt(t){const e=z.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=ss,u=s==="not-found",m=u?un:wt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==o||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=o,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(de,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=z.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let u;e[0]!==o?(u=async()=>{const O=await qe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=u):u=e[1];let m;e[2]!==s?(m=()=>{Bt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=He(v);let b;e[10]!==o?(b=async()=>{const O=await qe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=He(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(tt,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let I;return e[55]!==N||e[56]!==C||e[57]!==S?(I=n.jsxs(de,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=I):I=e[58],I}function is(t){const e=z.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(tt,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==s?(c=s("common.requestPendingScreen.goHome"),e[15]=s,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(de,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=z.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ke.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=He(v);let b;e[8]!==s||e[9]!==o?(b=s?n.jsx(tt,{url:s,fallback:o.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(_t,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=b):b=e[10];let p;e[11]!==o||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(de,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=z.c(7);let o;e[0]!==t?(o=Ge.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],vt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Kt()?.org===t&&Ht();const o=localStorage.getItem(Fe.lastOrgSlug())===t;if(o&&localStorage.removeItem(Fe.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(yt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(yt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=z.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=it("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==s?(P=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:it("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms=[{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 fs(t){return ms.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return fs(e).map(o=>({element:At(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const hs=At("switcher"),ps=30;function $t(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ys(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&$t(o.element))}function bs(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:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Be=!1},steps:e}}let Be=!1;async function xs(){return(await Ut(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Be)return;Be=!0;let o=0;const r=()=>{if(!$t(hs)&&o++<ps){requestAnimationFrame(r);return}const s=ys(t,e);if(s.length===0){Be=!1;return}xs().then(a=>{a(bs(t,s)).drive()}).catch(()=>{Be=!1})};r()}const ws=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon: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:ie,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:ae,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:ae,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon: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:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ie,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:ae,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ie,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:ae,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:ie,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:ae,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ie,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:ae,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ie,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:ae,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:gt,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:ie,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:mt,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:ae,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:ie,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:gt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Dt=ws,et="studio.release-feed.v1",rt=new Set;let le="",ce={},lt=!1;function vs(){if(lt)return le||"{}";try{return localStorage.getItem(et)??"{}"}catch{return le||"{}"}}function Rt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function bt(){const t=vs();return t!==le&&(le=t,ce=Rt(t)),ce}function js(t){rt.add(t);const e=o=>{if(!(o.key!==et&&o.key!==null)){try{const r=localStorage.getItem(et)??"{}",a={...Rt(r),...ce};ce=a,le=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function ks(t){ce=t,le=JSON.stringify(t);try{localStorage.setItem(et,le),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ts(){const t=z.c(7),e=X.useSyncExternalStore(js,bt,bt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ns;let a;t[2]!==e?(a=Dt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function Ns(t){ce[t]||ks({...ce,[t]:{seenAt:new Date().toISOString()}})}const _s=720*60*60*1e3,As=10080*60*1e3;function Ps(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Cs(t){const e=Dt[0];if(!e)return null;const o=Ps(e.date),r=t-o;return r<0||r>_s?null:e}function Es(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 Is(t,e){const o=Es(t);return o===null?!1:e-o>=As}function Os(){const t=z.c(52),e=J(),o=jn(),r=Gt(),s=Pt(),a=!!o,i=r===oe.home&&!o;let u;t[0]!==s||t[1]!==a?(u=a&&!!s&&Tn(s),t[0]=s,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=qe.useSession(),{isSeen:v,markSeen:c}=Ts(),[b,p]=X.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const I=Date.now();if(l=Cs(I),!l){d=null;break e}if(!Is(h?.user?.createdAt,I)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),Ss(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(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:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ls),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=I=>{p(I),I||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ls(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 $s(t){const e=z.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Ct,{children:n.jsx(Et,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Cn.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ot,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(zs)})]},t.description)}function zs(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 xt=8;function Fs(t){const{org:e}=ct(),o=Kn({connectionId:kt,orgId:e.id,orgSlug:e.slug}),{data:r}=Ue({queryKey:Ge.globalSearch(e.id,t,xt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:xt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function qs(t){const e=z.c(192),{open:o,onOpenChange:r}=t,s=J(),a=jt(),{org:i}=ct(),{projects:u,hasProjects:m}=kn(),[h,v]=X.useState(""),c=X.useDeferredValue(h),b=Fs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(q,V)=>{at("command_palette_used",{kind:V}),q(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){a({to:oe.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const V=Tt(i.id).id;Jt(a,Vt({org:i.slug,agentId:q.virtual_mcp_id??V,superAgentId:V}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,I,O,R;if(e[10]!==l||e[11]!==d||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==S||e[18]!==i.slug||e[19]!==u||e[20]!==w||e[21]!==s||e[22]!==h){const q=b.filter(Bs),V=b.filter(Ms);let te;e[36]!==i.slug?(te={org:i.slug},e[36]=i.slug,e[37]=te):te=e[37];const D=te;let Z;e[38]!==s?(Z=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Z):Z=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(yn,{}),e[40]=W):W=e[40];let K;e[41]!==D||e[42]!==Z?(K={key:"home",label:Z,icon:W,to:oe.home,params:D},e[41]=D,e[42]=Z,e[43]=K):K=e[43];let Y;e[44]!==s?(Y=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=Y):Y=e[45];let ne;e[46]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(bn,{}),e[46]=ne):ne=e[46];let H;e[47]!==D||e[48]!==Y?(H={key:"reports",label:Y,icon:ne,to:oe.reports,params:D},e[47]=D,e[48]=Y,e[49]=H):H=e[49];let U;e[50]!==s?(U=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=U):U=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ft,{}),e[52]=se):se=e[52];let Q;e[53]!==i.slug?(Q={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Q):Q=e[54];let L;e[55]!==U||e[56]!==Q?(L={key:"tasks",label:U,icon:se,to:oe.tasks,params:Q},e[55]=U,e[56]=Q,e[57]=L):L=e[57];let M;e[58]!==s?(M=s("sidebar.navDestinations.library"),e[58]=s,e[59]=M):M=e[59];let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx($n,{}),e[60]=Je):Je=e[60];let ue;e[61]!==D||e[62]!==M?(ue={key:"library",label:M,icon:Je,to:oe.library,params:D},e[61]=D,e[62]=M,e[63]=ue):ue=e[63];let me;e[64]!==s?(me=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=me):me=e[65];let Ve;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(xn,{}),e[66]=Ve):Ve=e[66];let fe;e[67]!==D||e[68]!==me?(fe={key:"discover",label:me,icon:Ve,to:oe.discover,params:D},e[67]=D,e[68]=me,e[69]=fe):fe=e[69];let We;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==ue||e[74]!==fe?(We=[K,H,L,ue,fe],e[70]=K,e[71]=H,e[72]=L,e[73]=ue,e[74]=fe,e[75]=We):We=e[75];const nt=We;P=Rn,j=o,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==s?(T=s("commandPalette.title"),e[79]=s,e[80]=T):T=e[80],e[81]!==s?(k=s("commandPalette.description"),e[81]=s,e[82]=k):k=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84],e[85]!==ge||e[86]!==h?(A=n.jsx(zn,{placeholder:ge,value:h,onValueChange:v}),e[85]=ge,e[86]=h,e[87]=A):A=e[87],_=Fn;let he;e[88]!==s?(he=s("commandPalette.empty"),e[88]=s,e[89]=he):he=e[89],e[90]!==he?(E=n.jsx(qn,{children:he}),e[90]=he,e[91]=E):E=e[91];let pe;e[92]!==s?(pe=s("commandPalette.goTo"),e[92]=s,e[93]=pe):pe=e[93];let ye;e[94]!==nt||e[95]!==d||e[96]!==a?(ye=nt.map($=>n.jsxs(re,{onSelect:()=>d(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[94]=nt,e[95]=d,e[96]=a,e[97]=ye):ye=e[97],e[98]!==pe||e[99]!==ye?(C=n.jsx(Me,{heading:pe,children:ye}),e[98]=pe,e[99]=ye,e[100]=C):C=e[100],e[101]!==d||e[102]!==m||e[103]!==a||e[104]!==i.slug||e[105]!==u||e[106]!==s?(I=m&&n.jsx(Me,{heading:s("commandPalette.projects"),children:u.map($=>n.jsxs(re,{value:`project ${$.title}`,onSelect:()=>d(()=>a({to:oe.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(Bn,{icon:$.icon,name:$.title}),n.jsx("span",{children:$.title})]},$.id))}),e[101]=d,e[102]=m,e[103]=a,e[104]=i.slug,e[105]=u,e[106]=s,e[107]=I):I=e[107];let be;e[108]!==s?(be=s("commandPalette.actions"),e[108]=s,e[109]=be):be=e[109];let xe;e[110]!==s?(xe=s("commandPalette.newProject"),e[110]=s,e[111]=xe):xe=e[111];let Se;e[112]!==d||e[113]!==a||e[114]!==D?(Se=()=>d(()=>a({to:oe.home,params:D}),"new_project"),e[112]=d,e[113]=a,e[114]=D,e[115]=Se):Se=e[115];let Ye;e[116]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(pt,{}),e[116]=Ye):Ye=e[116];let we;e[117]!==s?(we=s("commandPalette.newProject"),e[117]=s,e[118]=we):we=e[118];let ve;e[119]!==we?(ve=n.jsx("span",{children:we}),e[119]=we,e[120]=ve):ve=e[120];let je;e[121]!==xe||e[122]!==Se||e[123]!==ve?(je=n.jsxs(re,{value:xe,onSelect:Se,children:[Ye,ve]}),e[121]=xe,e[122]=Se,e[123]=ve,e[124]=je):je=e[124];let ke;e[125]!==s?(ke=s("commandPalette.inviteTeammate"),e[125]=s,e[126]=ke):ke=e[126];let Te;e[127]!==d||e[128]!==a||e[129]!==D?(Te=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[127]=d,e[128]=a,e[129]=D,e[130]=Te):Te=e[130];let Qe;e[131]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Sn,{}),e[131]=Qe):Qe=e[131];let Ne;e[132]!==s?(Ne=s("commandPalette.inviteTeammate"),e[132]=s,e[133]=Ne):Ne=e[133];let _e;e[134]!==Ne?(_e=n.jsx("span",{children:Ne}),e[134]=Ne,e[135]=_e):_e=e[135];let Ae;e[136]!==ke||e[137]!==Te||e[138]!==_e?(Ae=n.jsxs(re,{value:ke,onSelect:Te,children:[Qe,_e]}),e[136]=ke,e[137]=Te,e[138]=_e,e[139]=Ae):Ae=e[139];let Pe;e[140]!==s?(Pe=s("commandPalette.addConnection"),e[140]=s,e[141]=Pe):Pe=e[141];let Ce;e[142]!==d||e[143]!==a||e[144]!==D?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[142]=d,e[143]=a,e[144]=D,e[145]=Ce):Ce=e[145];let Xe;e[146]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(pt,{}),e[146]=Xe):Xe=e[146];let Ee;e[147]!==s?(Ee=s("commandPalette.addConnection"),e[147]=s,e[148]=Ee):Ee=e[148];let Ie;e[149]!==Ee?(Ie=n.jsx("span",{children:Ee}),e[149]=Ee,e[150]=Ie):Ie=e[150];let Oe;e[151]!==Pe||e[152]!==Ce||e[153]!==Ie?(Oe=n.jsxs(re,{value:Pe,onSelect:Ce,children:[Xe,Ie]}),e[151]=Pe,e[152]=Ce,e[153]=Ie,e[154]=Oe):Oe=e[154];let Le;e[155]!==s?(Le=s("commandPalette.settings"),e[155]=s,e[156]=Le):Le=e[156];let $e;e[157]!==d||e[158]!==a||e[159]!==D?($e=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[157]=d,e[158]=a,e[159]=D,e[160]=$e):$e=e[160];let Ze;e[161]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Dn,{}),e[161]=Ze):Ze=e[161];let De;e[162]!==s?(De=s("commandPalette.settings"),e[162]=s,e[163]=De):De=e[163];let Re;e[164]!==De?(Re=n.jsx("span",{children:De}),e[164]=De,e[165]=Re):Re=e[165];let ze;e[166]!==Le||e[167]!==$e||e[168]!==Re?(ze=n.jsxs(re,{value:Le,onSelect:$e,children:[Ze,Re]}),e[166]=Le,e[167]=$e,e[168]=Re,e[169]=ze):ze=e[169],e[170]!==be||e[171]!==je||e[172]!==Ae||e[173]!==Oe||e[174]!==ze?(O=n.jsxs(Me,{heading:be,children:[je,Ae,Oe,ze]}),e[170]=be,e[171]=je,e[172]=Ae,e[173]=Oe,e[174]=ze,e[175]=O):O=e[175],R=q.length>0&&n.jsx(Me,{heading:s("commandPalette.connections"),children:q.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),"connection"),children:[n.jsx(Mn,{icon:$.icon,name:$.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=V.length>0&&n.jsx(Me,{heading:s("commandPalette.results"),children:V.map($=>n.jsxs(re,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>d(()=>S($),$.type),children:[$.type==="thread"?n.jsx(pn,{}):n.jsx(ft,{}),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]=l,e[11]=d,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=o,e[17]=S,e[18]=i.slug,e[19]=u,e[20]=w,e[21]=s,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=I,e[34]=O,e[35]=R}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],I=e[33],O=e[34],R=e[35];let B;e[176]!==_||e[177]!==N||e[178]!==E||e[179]!==C||e[180]!==I||e[181]!==O||e[182]!==R?(B=n.jsxs(_,{children:[E,C,I,O,R,N]}),e[176]=_,e[177]=N,e[178]=E,e[179]=C,e[180]=I,e[181]=O,e[182]=R,e[183]=B):B=e[183];let G;return e[184]!==P||e[185]!==j||e[186]!==g||e[187]!==T||e[188]!==k||e[189]!==A||e[190]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[184]=P,e[185]=j,e[186]=g,e[187]=T,e[188]=k,e[189]=A,e[190]=B,e[191]=G):G=e[191],G}function Ms(t){return t.type!=="connection"}function Bs(t){return t.type==="connection"}const Ks=300*1e3,Hs=2;function Us(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Gs(t,e){return t.count>=Hs&&t.version!==null&&t.version!==e}function Js(){const t=z.c(43),e=J(),o=Un();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Ws},t[0]=r):r=t[0];const s=He(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ge.appVersionCheck(),queryFn:Vs,refetchInterval:Ks,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ue(a),[m,h]=X.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=X.useState(v);u!==m&&(h(u),b(B=>Us(B,i,"4.372.3")));const[p,l]=X.useState(null),f=o;let d;t[3]!==o||t[4]!==s?(d=()=>window.location.reload(),t[3]=o,t[4]=s,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Gs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ut,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.372.3"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=it(E),t[25]=E,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(ut,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let O;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==I?(O=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,I]}),t[29]=x,t[30]=f,t[31]=A,t[32]=I,t[33]=O):O=t[33];let R;return t[34]!==T||t[35]!==k||t[36]!==O||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(Lt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:O}),t[34]=T,t[35]=k,t[36]=O,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function Vs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Ws(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ys(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qs=Date.parse("2026-07-21T00:00:00Z"),St=t=>Ys(Fe.ptBrAnnouncementSeen(t));function Xs(){const t=z.c(35),e=J(),[o,r]=Wt(),{data:s,isPending:a}=qe.useSession(),i=s?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<Qs,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&o.language==="en"&&!St(u).has(),[b,p]=X.useState(!1),[l,f]=X.useState(!1);!b&&!a&&(p(!0),c&&u&&(St(u).mark(),r(eo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{at("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(Zs),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Et,{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(An,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Ct,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let I;t[24]!==C?(I=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=I):I=t[25];let O;t[26]!==A||t[27]!==I?(O=n.jsxs(Pn,{children:[A,I]}),t[26]=A,t[27]=I,t[28]=O):O=t[28];let R;t[29]!==O||t[30]!==T?(R=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,O]}),t[29]=O,t[30]=T,t[31]=R):R=t[31];let B;return t[32]!==l||t[33]!==R?(B=n.jsx(Ot,{open:l,onOpenChange:w,children:R}),t[32]=l,t[33]=R,t[34]=B):B=t[34],B}function Zs(t){return{...t,language:"en"}}function eo(t){return{...t,language:"pt-BR"}}function to(t){const e=Qt(t);return typeof e=="string"?e:void 0}function no(){return to("experiment-pipeline-check"),null}function so(t){const e=z.c(1),{activeOrg:o}=t;if(!o)return null;Xt(o.id,{name:o.name??void 0,slug:o.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(no,{}),e[0]=r):r=e[0],r}function oo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,u={mainpanel:void 0};o?u.virtualmcpid=o:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(o??m)!==m;let c,b;return a?.panel?b=a.panel:s?(b=s.tab,s.sidepanel!==void 0&&(c=s.sidepanel),s.mainpanel!==void 0&&(u.mainpanel=s.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const zt="studio:thread-layout:v4",io=50;function Ft(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 ao(t,e,o,r=io){const s=t.filter(([a])=>a!==e);for(s.push([e,Ft(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(zt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function qt(t){try{sessionStorage.setItem(zt,JSON.stringify(t))}catch{}}function ro(t,e){t&&qt(ao(dt(),t,e))}function lo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Ft(e[1]):null}function ti(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&qt(o)}function Mt(t){return{queryKey:Ge.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 ni(t){const e=z.c(10);let o;e[0]!==t?(o=Mt(t),e[0]=t,e[1]=o):o=e[1];const r=Ue(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function co(t){const e=z.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const u=i,m=uo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==s||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(F,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(de,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function uo(){window.location.href="/"}function mo(t){const e=z.c(27),{notice:o,orgSlug:r}=t,s=J();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let u;e[3]!==o.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==s?(c=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==s?(p=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(de,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const fo="/settings/infra-billing";function go(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fo)}function ho(t){const e=z.c(8),{org:o,children:r}=t,a=Zn(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==a?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:a,ui:null},e[0]=o.id,e[1]=o.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==o||e[6]!==u?(m=n.jsx(dn,{org:o,project:u,children:r}),e[4]=r,e[5]=o,e[6]=u,e[7]=m):m=e[7],m}function po(){const t=jt(),e=Xn(),{org:o}=ct(),r=nn({strict:!1}),s=Pt(),{openPanel:a,closePanel:i}=_n(),u=Vn(),m=Wn(),h=Yn(),v=Qn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&ro(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:lo(f),w=Tt(o.id).id,_=oo({prev:{virtualmcpid:u,tabId:s},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Jn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const yo=new Set(["/$org/","/$org/home"]);function bo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:xo},t[0]=e):e=t[0],Nt(e)}function xo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yo.has(e)}function So(){const t=z.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[s,a]=X.useState(!1),[i,u]=En(),m=on(),h=bo(),v=r??"";let c;t[1]!==v?(c=Mt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ue(p);const{data:l}=qe.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const L=M=>{if(ht(M)&&M.code==="KeyK"){M.preventDefault(),On();return}if(M.key==="?"&&!Ln(M.target)){M.preventDefault(),a(!0);return}ht(M)&&M.code==="BracketLeft"&&m.history.canGoBack()&&(M.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),X.useEffect(S,y);let w;t[12]!==r?(w=Ge.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await qe.organization.getFullOrganization({query:{organizationSlug:r}}).finally(vo),M=st(L);return L&&!M&&localStorage.setItem(Fe.lastOrgSlug(),r),f&&L&&ln(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=vt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Nn(k);let I;t[22]===Symbol.for("react.memo_cache_sentinel")?(I={select:wo},t[22]=I):I=t[22];const O=Nt(I),R=C?.severity==="block"&&!go(O),B=T??"",G=k??"";let q;t[23]!==B||t[24]!==G?(q=Hn({connectionId:kt,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=q):q=t[25];const V=!!T&&!!k;let te;if(t[26]!==q||t[27]!==V?(te={...q,enabled:V},t[26]=q,t[27]=V,t[28]=te):te=t[28],Ue(te),(!g||st(g)||E||R)&&In(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(st(g)){localStorage.getItem(Fe.lastOrgSlug())===r&&localStorage.removeItem(Fe.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(R&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(mo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(co,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const Z=g.logo??null;let W;t[41]!==g||t[42]!==Z?(W={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=W):W=t[43];let K;t[44]!==g?(K=n.jsx(so,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(cn,{}),t[46]=Y):Y=t[46];let ne;t[47]===Symbol.for("react.memo_cache_sentinel")?(ne=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(Os,{}),n.jsx(Js,{})]}),t[47]=ne):ne=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(qs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==s?(U=n.jsx($s,{open:s,onOpenChange:a}),t[51]=s,t[52]=U):U=t[52];let se;t[53]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(Xs,{}),t[53]=se):se=t[53];let Q;return t[54]!==W||t[55]!==K||t[56]!==H||t[57]!==U?(Q=n.jsxs(ho,{org:W,children:[K,Y,ne,H,U,se]}),t[54]=W,t[55]=K,t[56]=H,t[57]=U,t[58]=Q):Q=t[58],Q}function wo(t){return t.location.pathname}function vo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function jo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Gn,{children:n.jsx(So,{})}),t[0]=e):e=t[0],e}const si=Object.freeze(Object.defineProperty({__proto__:null,default:jo,usePanelActions:po},Symbol.toStringTag,{value:"Module"}));export{ni as a,ti as f,si as s,po as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,r as O,j as o,l as N,B as A,aU as P,aq as R}from"./index-zEbfx_2K.js";import{i as H}from"./Printer-Cqaundx-.js";import{u as V}from"./use-mobile-DI9_UYOG.js";import{b as W,c as q,S as L,d as F,a as U}from"./sheet-D-CTuaTd.js";import{b as $,T as B,a as E,c as z}from"./tooltip-CgGnYGtj.js";const G="15rem",J="18rem",K="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),[u,g]=O.useState(!1),c=a!==void 0,p=c?a:n;let S;e[0]!==c||e[1]!==i?(S=_=>{c||x(_),i?.(_)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const f=S;let w;e[3]!==r||e[4]!==p||e[5]!==f?(w=()=>{r?g(Q):f(!p)},e[3]=r,e[4]=p,e[5]=f,e[6]=w):w=e[6];const j=w,m=p?"expanded":"collapsed";let b;e[7]!==r||e[8]!==p||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==j?(b={state:m,open:p,setOpen:f,isMobile:r,openMobile:u,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=p,e[9]=u,e[10]=f,e[11]=m,e[12]=j,e[13]=b):b=e[13];const v=b;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let C;return e[16]!==v||e[17]!==h?(C=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=C):C=e[18],C}function Q(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":G,"--sidebar-width-icon":K,...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:u,openMobile:g,setOpenMobile:c}=D();if(x){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":J},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsxs(q,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=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(U,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[_,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 p=u==="expanded",S=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==S?(f=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]=f):f=e[19];const w=p?void 0:"icon",j=p?"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 b;e[23]!==t?(b=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]=b):b=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==b?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:b}),e[25]=a,e[26]=m,e[27]=b,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==u||e[31]!==f||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:f,"data-state":u,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=u,e[31]=f,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=p=>{s?.(p),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 u;e[11]!==a||e[12]!==d||e[13]!==r?(u=o.jsx(B,{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]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(E,{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]!==u?(c=o.jsx($,{delayDuration:300,children:o.jsxs(z,{children:[u,g]})}),e[16]=u,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 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("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 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("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 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{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 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! 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",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function be(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,u=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,p=x?P:"button",{isMobile:S}=D();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let w;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(w=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=c,e[16]=f,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(B,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let b;e[22]!==S||e[23]!==n?(b=o.jsx(E,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=b):b=e[24];let v;return e[25]!==m||e[26]!==b?(v=o.jsxs(z,{children:[m,b]}),e[25]=m,e[26]=b,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,be as c,fe as d,ue as e,de as f,ce as g,re as h,ne as i,D as u};
|
|
1
|
+
import{c as y,r as O,j as o,l as N,B as A,aU as P,aq as R}from"./index-Dc7hzqoi.js";import{i as H}from"./Printer-CvyxF9Jo.js";import{u as V}from"./use-mobile-hIijCK0k.js";import{b as W,c as q,S as L,d as F,a as U}from"./sheet-i72Qx7sL.js";import{b as $,T as B,a as E,c as z}from"./tooltip-DV2xHesQ.js";const G="15rem",J="18rem",K="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),[u,g]=O.useState(!1),c=a!==void 0,p=c?a:n;let S;e[0]!==c||e[1]!==i?(S=_=>{c||x(_),i?.(_)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const f=S;let w;e[3]!==r||e[4]!==p||e[5]!==f?(w=()=>{r?g(Q):f(!p)},e[3]=r,e[4]=p,e[5]=f,e[6]=w):w=e[6];const j=w,m=p?"expanded":"collapsed";let b;e[7]!==r||e[8]!==p||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==j?(b={state:m,open:p,setOpen:f,isMobile:r,openMobile:u,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=p,e[9]=u,e[10]=f,e[11]=m,e[12]=j,e[13]=b):b=e[13];const v=b;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let C;return e[16]!==v||e[17]!==h?(C=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=C):C=e[18],C}function Q(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":G,"--sidebar-width-icon":K,...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:u,openMobile:g,setOpenMobile:c}=D();if(x){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":J},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsxs(q,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(F,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=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(U,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[_,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 p=u==="expanded",S=p?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==S?(f=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]=f):f=e[19];const w=p?void 0:"icon",j=p?"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 b;e[23]!==t?(b=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]=b):b=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==b?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:b}),e[25]=a,e[26]=m,e[27]=b,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==u||e[31]!==f||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:f,"data-state":u,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=u,e[31]=f,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=p=>{s?.(p),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 u;e[11]!==a||e[12]!==d||e[13]!==r?(u=o.jsx(B,{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]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(E,{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]!==u?(c=o.jsx($,{delayDuration:300,children:o.jsxs(z,{children:[u,g]})}),e[16]=u,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 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("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 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("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 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{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 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! 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",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function be(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,u=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,p=x?P:"button",{isMobile:S}=D();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let w;e[12]!==p||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(w=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=p,e[13]=u,e[14]=s,e[15]=c,e[16]=f,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(B,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let b;e[22]!==S||e[23]!==n?(b=o.jsx(E,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=b):b=e[24];let v;return e[25]!==m||e[26]!==b?(v=o.jsxs(z,{children:[m,b]}),e[25]=m,e[26]=b,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,be as c,fe as d,ue 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 K,ax as u,l as M,B as T}from"./index-
|
|
1
|
+
import{c as E,j as s,r as K,ax as u,l as M,B as T}from"./index-Dc7hzqoi.js";import{b as R,D as _,d as q,i as A}from"./dialog-llvhXw2o.js";import{i as $}from"./X-CFCE4a-Q.js";import{i as G}from"./Zap-B6zkqKWB.js";import{M as H}from"./markdown-DGWjAeXL.js";import{F as J}from"./file-preview-CARebwHJ.js";import{F as Q}from"./file-type-icon-C9Qn36v4.js";import{i as V,c as W,l as X}from"./use-org-fs-Du-ErRPs.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]=K.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(R,{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{b as te,M as se,n as oe,r as M,j as t,B as Q,P as L,ax as ae,F as ce,t as w,c as ie,l as me,K as H,eC as de}from"./index-zEbfx_2K.js";import{i as pe}from"./DotsVertical-CVHL4KPF.js";import{i as ue}from"./GitBranch01--s8uEzME.js";import{a as ge}from"./Package-BUXYnAsJ.js";import{s as fe}from"./Trash01-UhB0CRb8.js";import{i as he}from"./Upload01-CZDGBHSw.js";import{i as le}from"./Zap-DRR3UUhJ.js";import{S as xe}from"./search-input-CT4D4zLR.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-B91kH2ef.js";import{f as Se,e as be,b as we,A as Ce,a as De,d as Ne,c as Pe,g as Ee}from"./alert-dialog-D1mw46Sk.js";import{E as J}from"./empty-state-CsX1FA1W.js";import{C as Ae}from"./collection-tabs-BxK4CJTN.js";import{F as Me}from"./folder-icon-C8L4j1L7.js";import{p as Te,h as Ie,q as Oe}from"./use-org-fs-HohNEA-L.js";import{H as V,d as ze}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-Br1NvL8D.js";import{p as $e}from"./skill-md-ChfVs4uF.js";import"./SearchMd-fdzDozsD.js";import"./Check-B1dsRB6C.js";import"./ChevronRight-B6hcwUgO.js";import"./badge-Dt3iCXyZ.js";import"./Eye-cBhNaih2.js";import"./dialog-DqEzjMAL.js";import"./X-DdrxBhnS.js";import"./markdown-CxV2eB4e.js";import"./Copy01-BmdYCu9M.js";import"./Download01-CSXusgOH.js";import"./ZoomOut-7sZYwmin.js";import"./org-file-open-context--Mwc-yMq.js";import"./use-mobile-DI9_UYOG.js";import"./use-panel-navigate-jpI-ng6I.js";import"./thread-route-BqVXF90R.js";import"./use-project-scope-1l5jykdC.js";import"./use-virtual-mcp-4ZF94-K-.js";import"./use-mcp-client-Dpy2Y_w9.js";import"./auth-DD_Ixcci.js";import"./github-repo-BknN0SVI.js";import"./file-preview-4gOrulnp.js";import"./utils-CirfulKG.js";import"./File02-BhN-1ALj.js";import"./Image01-O24XNmwN.js";import"./editor-B5kh_87R.js";import"./file-type-icon-ajQojKQT.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function U(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return U(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=U(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=$e(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?ue:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:p}=se();let C;e[0]!==l.source||e[1]!==p.name?(C=re(l.source,p.name),e[0]=l.source,e[1]=p.name,e[2]=C):C=e[2];const{label:T,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=me("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let m;e[7]!==l.name||e[8]!==c||e[9]!==r?(m=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=m):m=e[10];const P=z?"default":"system",F=!z;let h;e[11]!==O||e[12]!==P||e[13]!==F?(h=t.jsx(Me,{glyph:O,tone:P,readOnly:F,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=F,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(pe,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let d;e[26]!==k?(d=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=d):d=e[27];let v;e[28]!==b||e[29]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,d]}),e[28]=b,e[29]=d,e[30]=v):v=e[30];let u;e[31]!==j||e[32]!==v?(u=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=u):u=e[33];let y;e[34]!==T||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):T,e[34]=T,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==u||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[u,g]}),e[40]=u,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==m?(I=t.jsxs(de,{"aria-busy":r,className:f,children:[m,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=m,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function Ot(){const s=te(),{org:e}=se(),l=Te(),{remove:r,upload:c}=Ie("home"),a=oe(),o=M.useRef(null),[p,C]=M.useState(""),[T,O]=M.useState(_),[D,z]=M.useState(!1),[N,f]=M.useState(null),[m,P]=M.useState(null),[F,h]=M.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>U(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const $=_e(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=qe($,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,$),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=p.toLowerCase(),d=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),u=new Map;for(const i of d)u.set(i.source,(u.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:u.get(i)??0}))],g=v.has(T)?T:_,S=g===_?d:d.filter(i=>i.source===g),I=i=>f(ze(i.volume,i.path)),K=async()=>{if(!m)return;const{id:i,path:n}=m;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},G=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:p,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),G,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(p?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:p?s("settings.skills.noResultsDescription",{search:p}):s("settings.skills.emptyDescription"),actions:!p&&G})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===F;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:m!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:m?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{Ot as default};
|
|
1
|
+
import{b as te,M as se,n as oe,r as M,j as t,B as Q,P as L,ax as ae,F as ce,t as w,c as ie,l as me,K as H,eC as de}from"./index-Dc7hzqoi.js";import{i as pe}from"./DotsVertical-CsjwfYzf.js";import{i as ue}from"./GitBranch01-rWb2SJK9.js";import{a as ge}from"./Package-nTbucmaQ.js";import{s as fe}from"./Trash01-nl-t4IoV.js";import{i as he}from"./Upload01-B4Fqdkae.js";import{i as le}from"./Zap-B6zkqKWB.js";import{S as xe}from"./search-input-Pobww52G.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-C5iafa8S.js";import{f as Se,e as be,b as we,A as Ce,a as De,d as Ne,c as Pe,g as Ee}from"./alert-dialog-BI-B_8hq.js";import{E as J}from"./empty-state-CyICQznD.js";import{C as Ae}from"./collection-tabs-CrXIJeNf.js";import{F as Me}from"./folder-icon-BLBZBD_a.js";import{p as Te,h as Ie,q as Oe}from"./use-org-fs-Du-ErRPs.js";import{H as V,d as ze}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-gfYVdSdM.js";import{p as $e}from"./skill-md-ChfVs4uF.js";import"./SearchMd-C45D2PMI.js";import"./Check-B3RSsr_D.js";import"./ChevronRight-USKkhEpL.js";import"./badge-Bu51Hlti.js";import"./Eye-Dyg2WPG4.js";import"./dialog-llvhXw2o.js";import"./X-CFCE4a-Q.js";import"./markdown-DGWjAeXL.js";import"./Copy01-nMxlBfeT.js";import"./Download01-BRrSA3Yx.js";import"./ZoomOut-BPxprY2s.js";import"./org-file-open-context-BCUpiY_R.js";import"./use-mobile-hIijCK0k.js";import"./use-panel-navigate-WrD0KEYx.js";import"./thread-route-BBf64Mwk.js";import"./use-project-scope-DU0-JxYr.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./github-repo-BknN0SVI.js";import"./file-preview-CARebwHJ.js";import"./utils-DsvmRe8M.js";import"./File02-BvR-HYxK.js";import"./Image01-CxnjAzbb.js";import"./editor-D4Ls62vg.js";import"./file-type-icon-C9Qn36v4.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function U(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return U(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=U(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=$e(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?ue:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:p}=se();let C;e[0]!==l.source||e[1]!==p.name?(C=re(l.source,p.name),e[0]=l.source,e[1]=p.name,e[2]=C):C=e[2];const{label:T,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=me("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let m;e[7]!==l.name||e[8]!==c||e[9]!==r?(m=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=m):m=e[10];const P=z?"default":"system",F=!z;let h;e[11]!==O||e[12]!==P||e[13]!==F?(h=t.jsx(Me,{glyph:O,tone:P,readOnly:F,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=F,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(pe,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let d;e[26]!==k?(d=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=d):d=e[27];let v;e[28]!==b||e[29]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,d]}),e[28]=b,e[29]=d,e[30]=v):v=e[30];let u;e[31]!==j||e[32]!==v?(u=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=u):u=e[33];let y;e[34]!==T||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):T,e[34]=T,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==u||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[u,g]}),e[40]=u,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==m?(I=t.jsxs(de,{"aria-busy":r,className:f,children:[m,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=m,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function Ot(){const s=te(),{org:e}=se(),l=Te(),{remove:r,upload:c}=Ie("home"),a=oe(),o=M.useRef(null),[p,C]=M.useState(""),[T,O]=M.useState(_),[D,z]=M.useState(!1),[N,f]=M.useState(null),[m,P]=M.useState(null),[F,h]=M.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>U(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const $=_e(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=qe($,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,$),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=p.toLowerCase(),d=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),u=new Map;for(const i of d)u.set(i.source,(u.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:u.get(i)??0}))],g=v.has(T)?T:_,S=g===_?d:d.filter(i=>i.source===g),I=i=>f(ze(i.volume,i.path)),K=async()=>{if(!m)return;const{id:i,path:n}=m;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},G=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:p,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),G,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(p?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:p?s("settings.skills.noResultsDescription",{search:p}):s("settings.skills.emptyDescription"),actions:!p&&G})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===F;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:m!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:m?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{Ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,M as L,r as v,j as e,P as x,eU as k,dN as E,dO as y,dP as a,fo as D,B as u,o as C,t as c,c as z}from"./index-
|
|
1
|
+
import{b as B,M as L,r as v,j as e,P as x,eU as k,dN as E,dO as y,dP as a,fo as D,B as u,o as C,t as c,c as z}from"./index-Dc7hzqoi.js";import{D as O}from"./domain-settings-CXxEmIjB.js";import{f as T,e as R,b as F,A as M,d as U,c as q,g as $}from"./alert-dialog-BI-B_8hq.js";import{I as d}from"./input-DXlaTX4w.js";import{S as H}from"./switch-BQFtt3BH.js";import{a as G,b as J,c as K,d as Q}from"./use-org-sso-BvfIL0yq.js";import{s as V}from"./Trash01-nl-t4IoV.js";import{R as W}from"./require-capability-CmtOZnXt.js";import"./badge-Bu51Hlti.js";import"./select-BkKPcZFe.js";import"./index-DWw5wi2G.js";import"./Check-B3RSsr_D.js";import"./ChevronUp-DiYhGG4T.js";import"./access-gate-Ds4n25mC.js";import"./capability-load-error-CJMvYDf4.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=G(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),m=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!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(O,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[m&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{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(V,{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:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!m||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{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:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(T,{open:I,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(M,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(U,{children:[e.jsx(q,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,b as Z,j as i,P as te,r as V,eU as ue,ax as pe,E as xe,M as Se,n as he,W as re,dP as H,B as X,d as ye,f as je,o as ae,K as ve,dO as ie,dN as ne,e as Ce,t as ge}from"./index-zEbfx_2K.js";import{i as _e}from"./AlertCircle-CBmZyziw.js";import{i as be}from"./ChevronRight-B6hcwUgO.js";import{s as Re}from"./Plus-DhTGO6OU.js";import{s as ke}from"./Trash01-UhB0CRb8.js";import{I as le}from"./input-BYddSsu_.js";import{S as de}from"./switch-ClJqQzki.js";import{A as me}from"./avatar-B4O8VfWG.js";import{P as Ne,a as Pe,b as Te}from"./popover-Bq4WOviU.js";import{b as fe}from"./use-connection-DYvm3CFt.js";import{u as we}from"./use-registry-connections-BC2lTMUS.js";import{f as Ae,m as ze}from"./use-organization-settings-BIkwHnT4.js";import{R as Ee}from"./require-capability-ClQfFfk3.js";import"./User01-fZfVT6XZ.js";import"./use-mcp-client-Dpy2Y_w9.js";import"./auth-DD_Ixcci.js";import"./schema-CpmuStS2.js";import"./task-board-DgAEwWBa.js";import"./access-gate-C6q3nVJm.js";import"./capability-load-error-H0rjgWhr.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(_e,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,b]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let K;e[28]!==s?(K=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=K):K=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let O;e[31]!==K||e[32]!==a?(O=i.jsx(le,{placeholder:K,value:a,onChange:B,className:"w-[280px]"}),e[31]=K,e[32]=a,e[33]=O):O=e[33];let Y;e[34]!==F||e[35]!==O?(Y=i.jsx(H,{title:F,action:O}),e[34]=F,e[35]=O,e[36]=Y):Y=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let q;e[43]===Symbol.for("react.memo_cache_sentinel")?(q=y=>b(y.target.value),e[43]=q):q=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:q,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==Y||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,Y,I,w]}),e[69]=Y,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(be,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,b,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const U=o.registries[n];return U?U.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),K=F?.id??C,B=re.SELF(l.id),O=new Set([f,C,"community-registry",B]),Y=c.filter(n=>!O.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,U)=>{ae("store_registry_toggled",{connection_id:n,enabled:U});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:U}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const q=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const U=o??{registries:{},blockedMcps:[]};await r({...U,registries:{...U.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>_(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(ne,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==_?(G=n=>_("self",n),t[45]=_,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==q||t[53]!==_||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:U=>_(n.id,U),onDelete:()=>q(n.id)},n.id),t[52]=q,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=Y.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(ne,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],b=ne,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(K),onToggle:n=>_(K,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ue(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Container,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ue,{})}),t[0]=e):e=t[0],e}export{lt as default};
|
|
1
|
+
import{c as J,b as Z,j as i,P as te,r as V,eU as ue,ax as pe,E as xe,M as Se,n as he,W as re,dP as H,B as X,d as ye,f as je,o as ae,K as ve,dO as ie,dN as ne,e as Ce,t as ge}from"./index-Dc7hzqoi.js";import{i as _e}from"./AlertCircle-CMjsP_Tk.js";import{i as be}from"./ChevronRight-USKkhEpL.js";import{s as Re}from"./Plus-CVauOqLT.js";import{s as ke}from"./Trash01-nl-t4IoV.js";import{I as le}from"./input-DXlaTX4w.js";import{S as de}from"./switch-BQFtt3BH.js";import{A as me}from"./avatar-C9HiP4eS.js";import{P as Ne,a as Pe,b as Te}from"./popover-yk_ePqAA.js";import{b as fe}from"./use-connection-Ba04fHwa.js";import{u as we}from"./use-registry-connections-SLFMHpqj.js";import{f as Ae,m as ze}from"./use-organization-settings-CKbX2SdA.js";import{R as Ee}from"./require-capability-CmtOZnXt.js";import"./User01-ClMaVCaJ.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./schema-1zAO-l7e.js";import"./task-board-DrUf5p-Z.js";import"./access-gate-Ds4n25mC.js";import"./capability-load-error-CJMvYDf4.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(_e,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,b]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(le,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let K;e[28]!==s?(K=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=K):K=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=y=>A(y.target.value),e[30]=B):B=e[30];let O;e[31]!==K||e[32]!==a?(O=i.jsx(le,{placeholder:K,value:a,onChange:B,className:"w-[280px]"}),e[31]=K,e[32]=a,e[33]=O):O=e[33];let Y;e[34]!==F||e[35]!==O?(Y=i.jsx(H,{title:F,action:O}),e[34]=F,e[35]=O,e[36]=Y):Y=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let _;e[39]!==s?(_=s("settings.orgStore.optional"),e[39]=s,e[40]=_):_=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let q;e[43]===Symbol.for("react.memo_cache_sentinel")?(q=y=>b(y.target.value),e[43]=q):q=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(le,{type:"password",placeholder:E,value:x,onChange:q,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==_||e[49]!==M?(I=i.jsx(H,{title:z,description:_,action:M}),e[47]=z,e[48]=_,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==Y||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,Y,I,w]}),e[69]=Y,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org"},e[0]=b):b=e[0];const{org:j}=je(b);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(be,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,b,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=re.REGISTRY(l.id),u=n=>{if(!o)return n===f;const U=o.registries[n];return U?U.enabled:n===f},C=re.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),K=F?.id??C,B=re.SELF(l.id),O=new Set([f,C,"community-registry",B]),Y=c.filter(n=>!O.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,U)=>{ae("store_registry_toggled",{connection_id:n,enabled:U});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:U}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const _=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const q=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const U=o??{registries:{},blockedMcps:[]};await r({...U,registries:{...U.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>_(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(ne,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==_?(G=n=>_("self",n),t[45]=_,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==q||t[53]!==_||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:U=>_(n.id,U),onDelete:()=>q(n.id)},n.id),t[52]=q,t[53]=_,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=Y.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(ne,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],b=ne,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(K),onToggle:n=>_(K,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=b,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],b=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==b||t[71]!==d||t[72]!==v?(g=i.jsx(b,{title:d,children:v}),t[70]=b,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ue(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Container,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ue,{})}),t[0]=e):e=t[0],e}export{lt as default};
|