decocms 4.570.1 → 4.571.0
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-DSTgjQZE.js → AlertCircle-Cbs5Ab1P.js} +1 -1
- package/dist/client/assets/{AreaChart-BFiXRx9a.js → AreaChart-CToSouiR.js} +1 -1
- package/dist/client/assets/{ArrowLeft-ENfdZA7-.js → ArrowLeft-2ggpgqb0.js} +1 -1
- package/dist/client/assets/{ArrowUp-BNjQS3K-.js → ArrowUp-cgUvwam2.js} +1 -1
- package/dist/client/assets/{CartesianChart-D6hSTdD_.js → CartesianChart-CQdu8PPi.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BvoSRMBa.js → CategoricalChart-B5fszPCD.js} +1 -1
- package/dist/client/assets/{CheckCircle-B5oyaJit.js → CheckCircle-D2qom1Qe.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D9X2NrqX.js → ChevronSelectorVertical-CSCxxcTv.js} +1 -1
- package/dist/client/assets/{ChevronUp-CWpA2uR_.js → ChevronUp-DPwvtZ7T.js} +1 -1
- package/dist/client/assets/{CreditCard01-DUDVRgSi.js → CreditCard01-BeIdgKm8.js} +1 -1
- package/dist/client/assets/{Globe04-cXNn3Iwb.js → Globe04-BNjS8hE_.js} +1 -1
- package/dist/client/assets/{Key01-DykOvg3J.js → Key01-Bb2fYsyQ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DWhYckSm.js → LinkBroken01-a5oI2X-K.js} +1 -1
- package/dist/client/assets/{Minus-DD8EF-Qg.js → Minus-HfQUebB7.js} +1 -1
- package/dist/client/assets/{Monitor01-Brx479PM.js → Monitor01-D0NO-K1o.js} +1 -1
- package/dist/client/assets/{Play-Cnv-o711.js → Play-UerN5i51.js} +1 -1
- package/dist/client/assets/{Plus-Cyljarjx.js → Plus-BqBCvRtk.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CU3NLmsp.js → ReferenceLine-8Od-_LqW.js} +1 -1
- package/dist/client/assets/{SearchMd-B8lLWvFT.js → SearchMd-ip9BTueQ.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CsD1bZL0.js → ShoppingBag01-Z5jujKnF.js} +1 -1
- package/dist/client/assets/{Sun-qBi61vDS.js → Sun-BqxGPQ7c.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-omZLJ9y8.js → SwitchHorizontal01-xah_f_KH.js} +1 -1
- package/dist/client/assets/{Tool01-U3lMqDqt.js → Tool01-CAgFzAvv.js} +1 -1
- package/dist/client/assets/{Tooltip-DUfhZGnv.js → Tooltip-2CGCyakg.js} +1 -1
- package/dist/client/assets/{Trash01-BbqimkDt.js → Trash01-C7v1fWGY.js} +1 -1
- package/dist/client/assets/{Upload01-CKgAWfXR.js → Upload01-7apXt8L7.js} +1 -1
- package/dist/client/assets/{UserSquare-BItoQb26.js → UserSquare-Dfda7sxk.js} +1 -1
- package/dist/client/assets/{Users01-C6CsMI-H.js → Users01-DGaGzIcz.js} +1 -1
- package/dist/client/assets/{XClose-B0OqPlIT.js → XClose-DaTfQwji.js} +1 -1
- package/dist/client/assets/{Zap-FLVG2fHK.js → Zap-CmFvKOKc.js} +1 -1
- package/dist/client/assets/{access-gate-BjOW8RuZ.js → access-gate-DSrHE9mR.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CUGt2QIL.js → add-connection-dialog-sfNoRM_t.js} +1 -1
- package/dist/client/assets/agent-app-B_xuQBe4.js +1 -0
- package/dist/client/assets/agent-assets-BOBiAU4U.js +1 -0
- package/dist/client/assets/{agent-automation-DlJDTqvr.js → agent-automation-JSDOOiNt.js} +1 -1
- package/dist/client/assets/{agent-automations-DNMHOegy.js → agent-automations-dSGzVGTE.js} +1 -1
- package/dist/client/assets/agent-calendar-JsZQH9DJ.js +1 -0
- package/dist/client/assets/{agent-capabilities-DOVKnykH.js → agent-capabilities-CuOmNgv3.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DLaujtJt.js → agent-connect-sources-f0poJHtj.js} +1 -1
- package/dist/client/assets/agent-deck-DrS8cvv6.js +1 -0
- package/dist/client/assets/agent-e2e-DsNy3BsN.js +1 -0
- package/dist/client/assets/agent-experiments-BmXzB7sO.js +1 -0
- package/dist/client/assets/agent-file-Y-EO6Btn.js +1 -0
- package/dist/client/assets/agent-hosting-BS_jB6we.js +1 -0
- package/dist/client/assets/{agent-icon-DKTp0XyY.js → agent-icon-BGTckvlP.js} +1 -1
- package/dist/client/assets/agent-library-BeOICuv4.js +1 -0
- package/dist/client/assets/agent-library-file-BLEe6X-g.js +1 -0
- package/dist/client/assets/agent-overview-DK7iRg_t.js +1 -0
- package/dist/client/assets/{agent-releases-DXsHCiTg.js → agent-releases-B_K3FIWy.js} +1 -1
- package/dist/client/assets/agent-settings-BjOD_o2l.js +1 -0
- package/dist/client/assets/{agent-site-editor-CTCs3RDg.js → agent-site-editor-CiaB1f7K.js} +1 -1
- package/dist/client/assets/agent-site-editor-code--mSzyNhn.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CxN1Ldoy.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-RW-nzlvn.js +1 -0
- package/dist/client/assets/agent-view-DaSIF8yy.js +1 -0
- package/dist/client/assets/{agent-view-guard-CuLYN5bV.js → agent-view-guard-H_xpaENl.js} +1 -1
- package/dist/client/assets/{ai-providers-9vWHbCvl.js → ai-providers-OlLaxP2V.js} +1 -1
- package/dist/client/assets/{alert-Bvpz2H4v.js → alert-CWtTJO7c.js} +1 -1
- package/dist/client/assets/{analytics-sections-TE-35yVi.js → analytics-sections-DH9U0O99.js} +1 -1
- package/dist/client/assets/{api-keys-C-jExymv.js → api-keys-B4joTgKi.js} +1 -1
- package/dist/client/assets/api-keys-CI8mz52i.js +1 -0
- package/dist/client/assets/{app-editor-DnFNwaE0.js → app-editor-BrdqMvUA.js} +1 -1
- package/dist/client/assets/{asset-utils-C8aDDKpg.js → asset-utils-BO-AcYFX.js} +1 -1
- package/dist/client/assets/{auth-I4p8-ocC.js → auth-BExDXNDY.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwgMTdiF.js → auth-catchall-CU4VU9mW.js} +1 -1
- package/dist/client/assets/{auth-entry-DandZrkK.js → auth-entry-CuJQjZjM.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dg_DSwSr.js → auth-split-layout-BCXGVZBW.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-NcJzMudq.js → authenticate-and-persist-oauth-vexqf63k.js} +1 -1
- package/dist/client/assets/{automation-list-row-BaDQ8nN-.js → automation-list-row-Bp87yYiZ.js} +1 -1
- package/dist/client/assets/{automation-runs-BsUJbSCS.js → automation-runs-DiRDWuN3.js} +1 -1
- package/dist/client/assets/{automations-BnTFSnM5.js → automations-DMWU0I6x.js} +1 -1
- package/dist/client/assets/{autosend-BWmOY3ov.js → autosend-DL4CutFR.js} +1 -1
- package/dist/client/assets/{badge-DStDMa4b.js → badge-CVFmvf1e.js} +1 -1
- package/dist/client/assets/{block-document-DIb-ND30.js → block-document-BENHfkyr.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-C8dnQCV5.js → blocks-preview-workspace-context-EXsoCHPE.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-C3vtkrE6.js → blocks-tab-states-Of3CFRB8.js} +1 -1
- package/dist/client/assets/{blog-schema-7Bvb7ybL.js → blog-schema-BG9a5NjF.js} +1 -1
- package/dist/client/assets/{buckets-CzpSZY9W.js → buckets-CC28Un34.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DSMfcdZz.js → build-improve-prompt-doc-BISiPdsN.js} +1 -1
- package/dist/client/assets/{calendar-CWxLf6uz.js → calendar-9d4oM3ql.js} +1 -1
- package/dist/client/assets/{capability-load-error-C-cOEkiu.js → capability-load-error-ByWk_AoZ.js} +1 -1
- package/dist/client/assets/{category-editor-llVhx3m4.js → category-editor-7CKgp_eM.js} +1 -1
- package/dist/client/assets/{chart-aXx8MtyI.js → chart-DXLoDuxi.js} +1 -1
- package/dist/client/assets/{chat-context-B8Z5vGcJ.js → chat-context-WEEHZlsn.js} +1 -1
- package/dist/client/assets/{chat-draft-DkEn0tls.js → chat-draft-CeM2nWLu.js} +1 -1
- package/dist/client/assets/{checkbox-BprzbiMO.js → checkbox-KpsWsk0_.js} +1 -1
- package/dist/client/assets/{choose-editor-SgZcLGEy.js → choose-editor-PfXE6_H8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DK2OLw1X.js → cli-auth-success-C2W_huzL.js} +1 -1
- package/dist/client/assets/{client-icons-xxn_7LaS.js → client-icons-CCN4dFtx.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BZi_-T0e.js → cms-settings-editor-CdGJgv0b.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-SBEy3_cr.js → cms-store-drafts-dVKFaKA7.js} +1 -1
- package/dist/client/assets/{collapsible-DFsZxhwL.js → collapsible-B14xMZuR.js} +1 -1
- package/dist/client/assets/{collection-detail-CSrSzasC.js → collection-detail-pdnHCRF6.js} +1 -1
- package/dist/client/assets/{collection-display-button-BxcAk_pb.js → collection-display-button-CRiNqITy.js} +1 -1
- package/dist/client/assets/{collection-search-Bhx5TJ6L.js → collection-search-Ck-1gfFY.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BoSXl9vr.js → collection-table-wrapper-BlhppHAs.js} +1 -1
- package/dist/client/assets/{collection-tabs-QO8RS8bh.js → collection-tabs-6FzXiv6G.js} +1 -1
- package/dist/client/assets/{combobox-BmbiPO09.js → combobox-fgtxpSsO.js} +1 -1
- package/dist/client/assets/{command-uMdfud6o.js → command-C37DfioB.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-AvTxX0pL.js → companion-mcps-section-pEyer4h1.js} +1 -1
- package/dist/client/assets/{config-C9OaANUg.js → config-C_d2w75d.js} +1 -1
- package/dist/client/assets/{connect-C__OLdre.js → connect-CyzT5SDn.js} +1 -1
- package/dist/client/assets/{connect-layout-BGiLRWZe.js → connect-layout-DCavpmFh.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-a9uKmocf.js → connect-source-dialog-MOlb_mGB.js} +1 -1
- package/dist/client/assets/{connection-DG7KBlix.js → connection-BjCYlDIW.js} +1 -1
- package/dist/client/assets/{connection-card-qG0EXE1L.js → connection-card-qC58rx0g.js} +1 -1
- package/dist/client/assets/{connection-detail-CpfvCnzG.js → connection-detail-CnaYuh7u.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Ce5Bf_zZ.js → connection-form-helpers-9PE7Ghza.js} +1 -1
- package/dist/client/assets/{connection-slug-BoBDHMu2.js → connection-slug-DgmEtT2x.js} +1 -1
- package/dist/client/assets/{connections-d7gGzcVn.js → connections-DG7FZ0U7.js} +1 -1
- package/dist/client/assets/{content-tab-BCGl_up3.js → content-tab-Ce8Q2_t2.js} +3 -3
- package/dist/client/assets/{context-BL8O-tTH.js → context-BB5j-Jdw.js} +1 -1
- package/dist/client/assets/{context-menu-D_E7697D.js → context-menu-BrSBg_ox.js} +1 -1
- package/dist/client/assets/{context-shell-DunJzbL-.js → context-shell-D7i0aANg.js} +3 -3
- package/dist/client/assets/{core.esm-BKNJrrxU.js → core.esm-FUcIa7Fp.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DJ9X5Xlz.js → create-organization-dialog-D_0hk2gK.js} +1 -1
- package/dist/client/assets/{device-hint-Ce3veXZo.js → device-hint-CyMFSeT8.js} +1 -1
- package/dist/client/assets/{discover-NcR5tz4J.js → discover-DJRtlG9n.js} +1 -1
- package/dist/client/assets/{domain-settings-DimTUYUq.js → domain-settings-Y_vTNHIA.js} +1 -1
- package/dist/client/assets/{drawer-C6lamT3y.js → drawer-C8tQ9pS2.js} +1 -1
- package/dist/client/assets/{editor-C7RxjaWr.js → editor-QJRHEQ16.js} +1 -1
- package/dist/client/assets/{editor-classes-B55y9L5n.js → editor-classes-B6F-sROj.js} +1 -1
- package/dist/client/assets/{empty-state-DM7xlu-4.js → empty-state-BCvL-1M3.js} +1 -1
- package/dist/client/assets/{empty-state-Ci8hZXbK.js → empty-state-DKsEkDWT.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-ByO3wkbg.js → experiments-tab-choice-CbV3SQAK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C8qmylg2.js → extract-connection-data-Co4igpCy.js} +1 -1
- package/dist/client/assets/{feature-gate-C6EPE__O.js → feature-gate-CS539brz.js} +1 -1
- package/dist/client/assets/{feature-paywall-7RP1Qwpl.js → feature-paywall-BVeAB8_F.js} +1 -1
- package/dist/client/assets/{feedback-idlW6Rt2.js → feedback-DF1F9BRw.js} +1 -1
- package/dist/client/assets/{file-explorer-LvtKoAWE.js → file-explorer-Sdd0azAq.js} +1 -1
- package/dist/client/assets/{file-preview-Ds-vtVwj.js → file-preview-BQioSlJw.js} +1 -1
- package/dist/client/assets/{file-share-button-B6jqluQi.js → file-share-button-Dq-dVjtE.js} +1 -1
- package/dist/client/assets/{file-type-icon-C_NX_6K0.js → file-type-icon-CNDz0hBy.js} +1 -1
- package/dist/client/assets/{folder-icon-nyqn5Twi.js → folder-icon-U2FEFXsO.js} +1 -1
- package/dist/client/assets/{form-dOKUm1o9.js → form-DXyLAoEr.js} +1 -1
- package/dist/client/assets/{general-CmjqVXSD.js → general-DxPErvh9.js} +1 -1
- package/dist/client/assets/{github-icon-D5i5T8iF.js → github-icon-DTSso41S.js} +1 -1
- package/dist/client/assets/{home-Bf_aEScW.js → home-C-LgRFYa.js} +1 -1
- package/dist/client/assets/{home-overview-BaddYyk7.js → home-overview-BLmq-j06.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BdQaV1pW.js → hosted-reconcile-BRk5mz3x.js} +1 -1
- package/dist/client/assets/{icon-button-CL44LV6o.js → icon-button-B4XnwraP.js} +1 -1
- package/dist/client/assets/{index-Cojr6Fpq.js → index-B6AqVyRx.js} +1 -1
- package/dist/client/assets/{index-BoutsVvy.js → index-BFve9Wi8.js} +1 -1
- package/dist/client/assets/{index-DR80z_C4.js → index-BMlrWTB1.js} +1 -1
- package/dist/client/assets/{index-LOAUw-Ks.js → index-BgFyWMUk.js} +1 -1
- package/dist/client/assets/{index-CSIpvoWn.js → index-Bgkjt4vy.js} +3 -3
- package/dist/client/assets/{index-Y545ko-X.js → index-C7lWWhIU.js} +1 -1
- package/dist/client/assets/{index-C0-jFhOF.js → index-CQ63loJV.js} +1 -1
- package/dist/client/assets/{index-FggPcfHb.js → index-D08mzr4H.js} +1 -1
- package/dist/client/assets/{index-CmbhAzcu.js → index-D3t73ds8.js} +1 -1
- package/dist/client/assets/{index-Cu6-9y1I.js → index-DObYgDqg.js} +1 -1
- package/dist/client/assets/{index-e0iOUxAj.js → index-DP8sH5of.js} +1 -1
- package/dist/client/assets/{index-BZRUARFj.js → index-DovyWo-R.js} +1 -1
- package/dist/client/assets/index-DxfUJlA4.js +4 -0
- package/dist/client/assets/{index-4w1PAhG_.js → index-RQA3UZ8F.js} +1 -1
- package/dist/client/assets/{index-DADVzh-A.js → index-cE8Cg_AR.js} +1 -1
- package/dist/client/assets/{index-cBNiMokO.js → index-kwATYZnP.js} +1 -1
- package/dist/client/assets/{index-redirect-Bcv6Ftw-.js → index-redirect-CcWBc9jM.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CgO-7OwI.js → infiniteQueryObserver-X5CcDr9j.js} +1 -1
- package/dist/client/assets/{infra-billing-C63z5K_k.js → infra-billing-DFPWiYwa.js} +1 -1
- package/dist/client/assets/{input-DPkRheY2.js → input-B1ylvcHV.js} +3 -3
- package/dist/client/assets/{input-BX4MndAE.js → input-BYA2vxZm.js} +1 -1
- package/dist/client/assets/{integration-icon-dTPy2b7i.js → integration-icon-C7bRwcH_.js} +1 -1
- package/dist/client/assets/{jira-icon-B-iFZO-u.js → jira-icon-DGCOmFp6.js} +1 -1
- package/dist/client/assets/{label-ceAH5i3J.js → label-D25-0Wh6.js} +1 -1
- package/dist/client/assets/{layout-t2hFRUfQ.js → layout-DnoCv7Y5.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-QW5LKNZ9.js → legacy-agents-deep-C5jspcJW.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-agOJ7qxO.js → legacy-main-redirect-D7NT1WBZ.js} +1 -1
- package/dist/client/assets/library-B8KAYORe.js +1 -0
- package/dist/client/assets/{library-tab-Cd6LpVzA.js → library-tab-tbFrXHgR.js} +1 -1
- package/dist/client/assets/{login-DAO6F2t7.js → login-Cn8-U1Kv.js} +1 -1
- package/dist/client/assets/{markdown-R4HS4rag.js → markdown-12a9C6gs.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BhX-TA45.js → mcp-app-renderer-D5couJ6l.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BD1gbmnp.js → mcp-oauth-BaddOlGq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B9XClwsH.js → mcp-oauth-a2WNYr35.js} +1 -1
- package/dist/client/assets/{members-B5ITOykA.js → members-CZ44ad9P.js} +1 -1
- package/dist/client/assets/{memory-2YoF1gtv.js → memory-C6DEVRSO.js} +1 -1
- package/dist/client/assets/{mock-board-B8zFRpTH.js → mock-board-DfUD0CJt.js} +3 -3
- package/dist/client/assets/{monaco-editor-COXw9tpM.js → monaco-editor-Cn1TEUmq.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bqran8Kb.js → monitoring-stats-row-B_RviRp-.js} +1 -1
- package/dist/client/assets/{monitoring-D40iJL2y.js → monitoring-z5KlpAiC.js} +1 -1
- package/dist/client/assets/{multi-select-CJZaGsBr.js → multi-select-DAJzscc4.js} +1 -1
- package/dist/client/assets/{mustache-R0EQOelB.js → mustache-BYgEr74H.js} +1 -1
- package/dist/client/assets/{named-rule-view-C5CYsfvZ.js → named-rule-view-a6Af9Y_h.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CIVKu-7h.js → new-project-dialog-DZScwreb.js} +1 -1
- package/dist/client/assets/{oauth-callback-BPcRWINw.js → oauth-callback-CssoBuAl.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B-M4ZinT.js → oauth-callback-ai-provider-DeW99Mbt.js} +1 -1
- package/dist/client/assets/{oauth-consent-D4opNBgY.js → oauth-consent-3FbtrQ-O.js} +1 -1
- package/dist/client/assets/{onboarding-B4LUp0An.js → onboarding-idlA3-zh.js} +1 -1
- package/dist/client/assets/{openai-conversation-zvFqUh2z.js → openai-conversation-C88BC7Je.js} +1 -1
- package/dist/client/assets/optimistic-project-sidebar-views-C-XQYFtN.js +1 -0
- package/dist/client/assets/{order-monitor-day-DAdsKEE4.js → order-monitor-day-DRh7v9Pq.js} +1 -1
- package/dist/client/assets/{organization-choice-BS5zo77t.js → organization-choice-D8HF6Nft.js} +1 -1
- package/dist/client/assets/{orgs-KOkht6C7.js → orgs-HEuftt--.js} +1 -1
- package/dist/client/assets/{own-accounts-section-x8GM3van.js → own-accounts-section-BoGn4pOO.js} +1 -1
- package/dist/client/assets/{pair-CCa5vpj1.js → pair-Ct1xgxut.js} +1 -1
- package/dist/client/assets/{parse-sections-y55_dTHG.js → parse-sections-D-35SZIB.js} +3 -3
- package/dist/client/assets/{plan-Bu1ae04L.js → plan-CfTunmR6.js} +1 -1
- package/dist/client/assets/{plan-ladder-DexOsahh.js → plan-ladder-iJPGG0mc.js} +1 -1
- package/dist/client/assets/{plan-usage-card-Dv-we64H.js → plan-usage-card-CPmF1Mdc.js} +1 -1
- package/dist/client/assets/{popover-DvNPDyrT.js → popover-CRX5tFOb.js} +1 -1
- package/dist/client/assets/{post-calendar-BbxK7Nck.js → post-calendar-BJXCzebc.js} +1 -1
- package/dist/client/assets/{post-editor-D3-DvSTe.js → post-editor-wf3j_7Z5.js} +1 -1
- package/dist/client/assets/{preview-content-B_nl5Vt5.js → preview-content-BSZZr-mZ.js} +1 -1
- package/dist/client/assets/{preview-dialog-CSKtivij.js → preview-dialog-BcxXfQ6o.js} +1 -1
- package/dist/client/assets/{preview-panel-Bgx1GfaD.js → preview-panel-Ce1qZOdd.js} +1 -1
- package/dist/client/assets/{preview-tab-BhpH-2Ud.js → preview-tab-ClX_Bl94.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-7dCvJecm.js → product-picker-dialog-Q92D1y36.js} +1 -1
- package/dist/client/assets/{profile-CE19vOJM.js → profile-CERW1LgW.js} +1 -1
- package/dist/client/assets/{project-app-view-1nFCQkd0.js → project-app-view-CEubGD1t.js} +1 -1
- package/dist/client/assets/{project-apps-BH_f18IX.js → project-apps-C951mymv.js} +1 -1
- package/dist/client/assets/{project-icon-MnmUeo9G.js → project-icon-CzcU3Mqg.js} +1 -1
- package/dist/client/assets/{project-index-VbMkJjNv.js → project-index-BJwudS3v.js} +1 -1
- package/dist/client/assets/project-reports-BfKeLcLP.js +1 -0
- package/dist/client/assets/project-tasks-Dn-Gv_TR.js +1 -0
- package/dist/client/assets/{projects-BV3gIN23.js → projects-DYDXJVDD.js} +1 -1
- package/dist/client/assets/{projects-empty-state-afMxQRTs.js → projects-empty-state-DQUhcI6R.js} +1 -1
- package/dist/client/assets/{prompts-oZ33-QKo.js → prompts-Pr-m_FAx.js} +1 -1
- package/dist/client/assets/record-editor-DBJCnSL6.js +1 -0
- package/dist/client/assets/{redirect-editor-CYAcoJC8.js → redirect-editor-BGvUBqUv.js} +1 -1
- package/dist/client/assets/reports-DR2YJPbu.js +1 -0
- package/dist/client/assets/{reports-CDhkA5XZ.js → reports-DzbfP0a1.js} +1 -1
- package/dist/client/assets/{reports-onboarding-N-tDslEn.js → reports-onboarding-fdfwoC5Y.js} +1 -1
- package/dist/client/assets/{reports-tab-CwMJYWOD.js → reports-tab-DsenaOP3.js} +2 -2
- package/dist/client/assets/{repositories-Dd6j8vDN.js → repositories-BKBt9Cjw.js} +1 -1
- package/dist/client/assets/repositories-ByhK-3bU.js +1 -0
- package/dist/client/assets/{repository-binding-lATwNZrT.js → repository-binding-SOF1batH.js} +1 -1
- package/dist/client/assets/{repository-picker-C4hJc23I.js → repository-picker-DL7LhDyE.js} +1 -1
- package/dist/client/assets/{require-capability-DC5p7lOC.js → require-capability-CulwBmL_.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C3gt0jrF.js → required-auth-layout-Bbj3yijQ.js} +1 -1
- package/dist/client/assets/{reset-password-CyyT5tby.js → reset-password-CEDutYaS.js} +1 -1
- package/dist/client/assets/{resizable-BOUBAwD3.js → resizable-BF1q0sZm.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Cy2CMMCX.js → resolve-tab-icon-BZMbKk3n.js} +1 -1
- package/dist/client/assets/{review-settings-BckYzYJ3.js → review-settings-ZkiMBoaj.js} +1 -1
- package/dist/client/assets/{role-color-DoTrcNjE.js → role-color-C9uhwzF-.js} +1 -1
- package/dist/client/assets/{roles-Bcyxf_BJ.js → roles-CEON3RQs.js} +1 -1
- package/dist/client/assets/route-D7DW4Q6o.js +1 -0
- package/dist/client/assets/route-DEPx9jGW.js +1 -0
- package/dist/client/assets/route-iWPPipTt.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-ezRldKto.js → sandbox-lifecycle-context-Cuu6DFTF.js} +1 -1
- package/dist/client/assets/{schema-oSx50TOf.js → schema-DCIk1LTk.js} +1 -1
- package/dist/client/assets/{schema-CYb0A5pZ.js → schema-DJM5djBQ.js} +1 -1
- package/dist/client/assets/{scroll-area-C2kqOV3G.js → scroll-area-jAJHvOhj.js} +1 -1
- package/dist/client/assets/{search-input-D2_G90x-.js → search-input-DVDThqIB.js} +1 -1
- package/dist/client/assets/{search-toggle-DB94_Uzf.js → search-toggle-CI-y0p8p.js} +1 -1
- package/dist/client/assets/{secret-picker-BaH4MCDx.js → secret-picker-popVUrUL.js} +1 -1
- package/dist/client/assets/{secrets-Ba8vj8rp.js → secrets-DalYwIr1.js} +1 -1
- package/dist/client/assets/{section-array-field-C_pqbrT4.js → section-array-field-DC06wjHY.js} +1 -1
- package/dist/client/assets/{sections-CiSDVCFc.js → sections-D1hA-xOU.js} +1 -1
- package/dist/client/assets/{sections-editor-DbbjUxTa.js → sections-editor-D78O6u_r.js} +1 -1
- package/dist/client/assets/{select-5VAmllhJ.js → select-lF0wcoip.js} +1 -1
- package/dist/client/assets/{select-model-CGTpgJ_F.js → select-model-D7HU-f3b.js} +1 -1
- package/dist/client/assets/{seo-editor-BToxCPgQ.js → seo-editor-CtzJbmZQ.js} +1 -1
- package/dist/client/assets/{separator-BPNBTypb.js → separator-C_6waQwt.js} +1 -1
- package/dist/client/assets/settings-tab-udmQO91m.js +1 -0
- package/dist/client/assets/{sheet-DO79DyVm.js → sheet-B-HfTX7L.js} +1 -1
- package/dist/client/assets/{shell-layout-BE-F-e8S.js → shell-layout-DJhfQde-.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CSmqWURg.js → site-draft-actions-CMHnwxCd.js} +1 -1
- package/dist/client/assets/{site-draft-view-D9Mkp6Cl.js → site-draft-view-CwjjGmMd.js} +1 -1
- package/dist/client/assets/site-editor-DG5keOVm.js +1 -0
- package/dist/client/assets/{site-editor-toast-hszpYNCy.js → site-editor-toast-CFZ3g20k.js} +1 -1
- package/dist/client/assets/{skills-Bv-bIoQE.js → skills-TRY4s8Yy.js} +1 -1
- package/dist/client/assets/{slider-ShXfqPv2.js → slider-DGqHqKd3.js} +1 -1
- package/dist/client/assets/{sortable.esm-CuHm_9IF.js → sortable.esm-DwDHqu2Z.js} +1 -1
- package/dist/client/assets/{sso-CSplF7G4.js → sso-Am4Nf_A1.js} +1 -1
- package/dist/client/assets/{suggestion-D3ekTtHr.js → suggestion-9_dojs-y.js} +1 -1
- package/dist/client/assets/{switch-DXYVQM5M.js → switch-Bh4leDQ8.js} +1 -1
- package/dist/client/assets/{synced-repos-CuP83Elu.js → synced-repos-lK4skxC9.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-vdlPy3Bm.js → tab-icon-glyph-DQowlddo.js} +1 -1
- package/dist/client/assets/{table-D0fiB6FK.js → table-BVlqjzf4.js} +1 -1
- package/dist/client/assets/{tabs-Cv20SIqi.js → tabs-CE50d848.js} +1 -1
- package/dist/client/assets/{task-board-DSsXkzaF.js → task-board-D_hXj2Vy.js} +1 -1
- package/dist/client/assets/{task-route-DMVHtIU_.js → task-route-Be5seRTj.js} +1 -1
- package/dist/client/assets/{task-status-BNhGvcs9.js → task-status-1axt5dZB.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CMwW3rsH.js → taskboard-analytics-r6HixYm_.js} +1 -1
- package/dist/client/assets/tasks-BWjB_1VS.js +1 -0
- package/dist/client/assets/{tasks-DhVzWH9H.js → tasks-CdxgNM_V.js} +1 -1
- package/dist/client/assets/{textarea-jvxCA8mN.js → textarea-DnFolSR6.js} +1 -1
- package/dist/client/assets/{thread-analytics-CM1xCbgM.js → thread-analytics-BoSR9_dC.js} +1 -1
- package/dist/client/assets/{thread-intent-BirCtYTn.js → thread-intent-W-PQxNVd.js} +1 -1
- package/dist/client/assets/{thread-route-gjL8sFh9.js → thread-route-B-6djUfH.js} +1 -1
- package/dist/client/assets/{thread-route-BaKA80Bq.js → thread-route-mCuisQJI.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C68t2imw.js → thread-sheet-body-C1IbmVK3.js} +1 -1
- package/dist/client/assets/{time-range-picker-8dvZbzAF.js → time-range-picker-DihnOOBB.js} +1 -1
- package/dist/client/assets/{toggle-group-BkFB4B6f.js → toggle-group-DErjWYXo.js} +1 -1
- package/dist/client/assets/{tool-namespace-BPtJyOTH.js → tool-namespace-Dwob85yl.js} +1 -1
- package/dist/client/assets/{tool-set-selector-D3Q4u2pt.js → tool-set-selector-C4XbxKMC.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DWxNo-CH.js → toolbar-icon-button-CuzSG6Ep.js} +1 -1
- package/dist/client/assets/{tooltip-BS3U7s1j.js → tooltip-BP38juWI.js} +1 -1
- package/dist/client/assets/{tooltipContext-BLujWWNh.js → tooltipContext-BmU0TqD4.js} +1 -1
- package/dist/client/assets/{track-CpUWIu8h.js → track-auFJ_XdC.js} +1 -1
- package/dist/client/assets/{types-BzcfuN64.js → types-8U8D-Y9v.js} +1 -1
- package/dist/client/assets/{url-slug-BOoM9-0A.js → url-slug-CvXmCpJZ.js} +1 -1
- package/dist/client/assets/{usage-stats-8fBPxKmN.js → usage-stats-C-iZo0BZ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CGSjFpU8.js → use-ai-providers-BIh1KBLl.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-CpJPkStL.js → use-apply-named-rule-Cp8bLYtd.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BvyYDdXE.js +1 -0
- package/dist/client/assets/{use-automations-XQDz01iY.js → use-automations-BomrPGWU.js} +1 -1
- package/dist/client/assets/{use-autosave-C37w8LAn.js → use-autosave-CwfHnqn6.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-iz2iNvo9.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-VEEgw78z.js → use-chat-layout-state-BJFKgYgw.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-ZwEhZ1LO.js → use-cms-publish-actions-BqHNyOA0.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DaWAsSVX.js → use-connect-companion-B9Lrc-HW.js} +1 -1
- package/dist/client/assets/{use-connection-Br1r8foQ.js → use-connection-BT_OOtuG.js} +1 -1
- package/dist/client/assets/{use-content-sync-W-nuOa0g.js → use-content-sync-B0MN54yQ.js} +1 -1
- package/dist/client/assets/{use-copy-B7Ns5hk7.js → use-copy-DrB0tWuk.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DdNyhrK9.js → use-date-fns-locale-BBt-5tGJ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BWd-EoeM.js → use-debounced-autosave-DsHXF_za.js} +1 -1
- package/dist/client/assets/{use-debounced-value-_GKTwOmp.js → use-debounced-value-CekhRquV.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D7cUDa9s.js → use-deco-credits-qwzMk2Ai.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-MFonZFqV.js → use-decopilot-events-Dd92yoAZ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DqWgt_cH.js → use-delete-connection-D-UTTC0v.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Dpt106eE.js → use-deployment-admin-DE1jKIDx.js} +1 -1
- package/dist/client/assets/{use-entitlements-BIn3vhw_.js → use-entitlements-BWZ6Su0L.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Btcix_Th.js → use-fast-preview-draft-url-Cqws--qI.js} +1 -1
- package/dist/client/assets/{use-file-configs-B7N8jort.js → use-file-configs-DpxzYxst.js} +1 -1
- package/dist/client/assets/{use-id-selection-BYftOYVM.js → use-id-selection-BGnSfWFf.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-Ccjtmqv0.js → use-inbox-feed-lQA3V0xG.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DIKScsa1.js → use-infinite-scroll-wFaFK15q.js} +1 -1
- package/dist/client/assets/{use-join-requests-CUdH2HZc.js → use-join-requests-BdaV0Rjj.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-Dk8fH1fE.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-N-GvDO1N.js → use-mcp-auth-status-Ck3Se_Y3.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C6kW4vbD.js → use-mcp-client-IMgoLgFY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CjpO3wzS.js → use-mcp-prompts-Bk_g-v-0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cjb6pYnM.js → use-mcp-tools-CtpSFCmz.js} +1 -1
- package/dist/client/assets/{use-mobile-Dl5gc-ru.js → use-mobile-CW7DCn5M.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Ce0Kig2N.js → use-move-blocks-DfaBs3sc.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B5ZbLCUr.js → use-navigate-to-agent-DUsfLcvr.js} +1 -1
- package/dist/client/assets/{use-org-fs-BGMZPpcx.js → use-org-fs-DDvKBG9i.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BAfsGUin.js → use-org-repo-syncs-C4JLwrAt.js} +1 -1
- package/dist/client/assets/{use-org-sso-CwVEWYSS.js → use-org-sso-BH_ZUFcu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BTar9wUH.js → use-organization-settings-Ca4qUgyM.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-4sY_IqcV.js +1 -0
- package/dist/client/assets/{use-project-scope-D-D3vFqs.js → use-project-scope-CxaJ6AcP.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CLezfBII.js → use-recent-apps-kdlh-9NG.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DOqTM6Sq.js → use-reports-diagnostic-DYAFraaD.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-D2qF_K2w.js → use-sandbox-events-Bv6EHRzy.js} +1 -1
- package/dist/client/assets/{use-secrets-CdTtOnTm.js → use-secrets-BwcJJCVK.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BQcFctze.js → use-section-preview-base-CWdiCrj1.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CU3_YQ2d.js → use-sidebar-collapsed-CEHXblGy.js} +1 -1
- package/dist/client/assets/{use-tags-ChNJSZUC.js → use-tags-CoD8SrC4.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CEr1IeWK.js → use-task-board-analytics-B7geh4Sd.js} +1 -1
- package/dist/client/assets/{use-task-board-events-sZpvmMHd.js → use-task-board-events-CVDrlP1V.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Dv_8MGt1.js → use-task-board-item-prs-BrtOevur.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CoNq_Cxi.js → use-task-board-items-COv-bhs6.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-CWMdTCPN.js → use-task-board-prompts-Dx8vM0fR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DsDxaplE.js → use-task-metadata-DPZ7Y524.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-St6ye3b1.js → use-thread-outputs-Pm3V0nbB.js} +1 -1
- package/dist/client/assets/{use-voice-input-B9rrFwaR.js → use-voice-input-DwO5kNPT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Sda1zjLQ.js +1 -0
- package/dist/client/assets/{useQueries-H5rWlyEJ.js → useQueries-CvrSJ4L5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CscGJh0l.js +1 -0
- package/dist/client/assets/{users-wWFrk5XR.js → users-B-jZ9pgk.js} +1 -1
- package/dist/client/assets/{utils-1rHoZRD5.js → utils-CnVlph4k.js} +1 -1
- package/dist/client/assets/{variant-calendar-BktNebbV.js → variant-calendar-DSMYmXmT.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CtOZ7RsB.js → variant-matcher-override-DCs6FrU7.js} +1 -1
- package/dist/client/assets/{view-header-BOKi0SWm.js → view-header-CggAPEpA.js} +1 -1
- package/dist/client/assets/virtual-mcp-knTda3gw.js +1 -0
- package/dist/client/assets/{watch-sse-pool-D6Aszef8.js → watch-sse-pool-CjiXfMh2.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-D_QasKCt.js +0 -1
- package/dist/client/assets/agent-assets-CJlmAaWQ.js +0 -1
- package/dist/client/assets/agent-calendar-Z-NoCJJy.js +0 -1
- package/dist/client/assets/agent-deck-BHqHGfqC.js +0 -1
- package/dist/client/assets/agent-e2e-DhR3lPfF.js +0 -1
- package/dist/client/assets/agent-experiments-CsbbrlzU.js +0 -1
- package/dist/client/assets/agent-file-C-Y5K07p.js +0 -1
- package/dist/client/assets/agent-hosting-BYTFH-Ly.js +0 -1
- package/dist/client/assets/agent-library-BrbVgxGh.js +0 -1
- package/dist/client/assets/agent-library-file-38op_SYX.js +0 -1
- package/dist/client/assets/agent-overview-rJN7hxM8.js +0 -1
- package/dist/client/assets/agent-settings-OJszyqyL.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Tm63iotr.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DGdOpwTo.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-UslQ1OuK.js +0 -1
- package/dist/client/assets/agent-view-D7OqtWKn.js +0 -1
- package/dist/client/assets/api-keys-BwvxdsTQ.js +0 -1
- package/dist/client/assets/index-BWLOSW33.js +0 -4
- package/dist/client/assets/library-y46FHCMx.js +0 -1
- package/dist/client/assets/optimistic-project-sidebar-views-HH03nXs0.js +0 -1
- package/dist/client/assets/project-reports-CnsbnjmF.js +0 -1
- package/dist/client/assets/project-sidebar-views-B0YI7MEr.js +0 -1
- package/dist/client/assets/project-tasks-DNvniFkq.js +0 -1
- package/dist/client/assets/record-editor-Z7XUx2eC.js +0 -1
- package/dist/client/assets/reports-D0p-Um_j.js +0 -1
- package/dist/client/assets/repositories-420JyOBQ.js +0 -1
- package/dist/client/assets/route-Dm6KS1MZ.js +0 -1
- package/dist/client/assets/route-WCW0DstB.js +0 -1
- package/dist/client/assets/route-Z2AgEOBo.js +0 -1
- package/dist/client/assets/settings-tab-CvzmrN3x.js +0 -1
- package/dist/client/assets/site-editor-BnuHlrBY.js +0 -1
- package/dist/client/assets/tasks-BesFuPIU.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CpD8hrjd.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-C468EFq8.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-CCwGm8EC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bh3c89Tr.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-bp-UKwHD.js +0 -1
- package/dist/client/assets/virtual-mcp-o7wxm5IS.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,b as ee,j as s,q as ze,K as Ne,r as Z,as as Ae,B as Ie,h as Pe}from"./index-CSIpvoWn.js";import{a1 as we}from"./agent-icon-DKTp0XyY.js";import{S as Ee}from"./scroll-area-C2kqOV3G.js";import{O as Oe,aC as Ue,k as fe,a3 as Be,aD as He,aE as Re,aF as Me,d as Ge,aG as Qe,J as _e,aH as qe,af as Ve,i as We,aI as Ye,ag as Je,h as Ze}from"./parse-sections-y55_dTHG.js";import{Z as Xe,A as et}from"./blocks-tab-states-C3vtkrE6.js";import{L as Fe}from"./label-ceAH5i3J.js";import{S as Ce}from"./switch-DXYVQM5M.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-5VAmllhJ.js";import{c as nt,u as rt}from"./hosted-reconcile-BdQaV1pW.js";import{b as Ke}from"./Tool01-U3lMqDqt.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-hszpYNCy.js";const ft="https://deco.cx/docs/en/performance/edge-async-render";function mt(a){const e=_.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:f,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Oe();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let d;e[2]!==t?(d=Ue(t),e[2]=t,e[3]=d):d=e[3];const x=d,h=!n&&u;let v;e[4]!==c?(v=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=v):v=e[5];let y;e[6]!==v?(y=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:v}),e[6]=v,e[7]=y):y=e[7];const k=h&&l?"seo-enable-hint":void 0;let b;e[8]!==h||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:h,"aria-describedby":k,onCheckedChange:i}),e[8]=h,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==y||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,b]}),e[13]=y,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==h||e[17]!==l?(j=h&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=h,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==x||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==f||e[24]!==c?(g=n&&(m||!f?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:ft,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:x,onCheckedChange:f,className:"shrink-0"})]})]})),e[19]=x,e[20]=o,e[21]=m,e[22]=n,e[23]=f,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function ut(a){const e=_.c(20),{options:t,value:i,onChange:f}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(st,{className:"w-full",children:s.jsx(lt,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(ht).map(pt),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(ot,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==f||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(it,{value:i,onValueChange:f,children:[c,p]}),e[12]=f,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let d;return e[17]!==o||e[18]!==n?(d=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=d):d=e[19],d}function pt(a){return s.jsx(tt,{value:a.resolveType,children:a.title},a.resolveType)}function ht(a){return a.resolveType.length>0}function xt(a){const e=_.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:f,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:d,onBumpFormKey:x,beforeFields:h,asyncRenderAvailable:v,seoTypesLoading:y}=a,k=v===void 0?!0:v,b=y===void 0?!1:y,S=ee(),g=!Be()||!b&&f!=="";let N;e[0]!==f||e[1]!==x||e[2]!==d||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Me(f);p($),d(),x();return}p(null),d(),x()},e[0]=f,e[1]=x,e[2]=d,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const C=E;let T;e[9]!==x||e[10]!==n?(T=K=>{n({__resolveType:K}),x()},e[9]=x,e[10]=n,e[11]=T):T=e[11];const L=T,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const Y=k?C:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(ut,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let U;return e[31]!==h||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(mt,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[h,P,F]}),e[31]=h,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=Y,e[38]=P,e[39]=U):U=e[39],U}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function yt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const f=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Qe(i,f)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function vt(a,e,t){if(e===null&&Xe(t??void 0)){const{seo:i,...f}=a;return f}return{...a,seo:e}}function gt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function bt(a){const e=_.c(25),{orgSlug:t,virtualMcpId:i,branch:f,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze(),m=`${t}/${i}/${f}`;let p;e[0]!==f||e[1]!==t||e[2]!==i?(p={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=p):p=e[3];let n;e[4]!==u?(n={onSaved:u,holdsCopy:!0},e[4]=u,e[5]=n):n=e[5];const{save:d,flush:x,isPending:h,hold:v}=Ge(p,n);let y;e[6]!==m||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r?(y=g=>{l&&d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return yt(r,l,w,g)})},e[6]=m,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=y):y=e[11];const k=y;let b;e[12]!==m||e[13]!==o||e[14]!==c||e[15]!==l||e[16]!==d||e[17]!==r?(b=g=>{!l||r.kind!=="page"||d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return Se(w)?vt(w,g,o):null})},e[12]=m,e[13]=o,e[14]=c,e[15]=l,e[16]=d,e[17]=r,e[18]=b):b=e[18];const S=b;let j;return e[19]!==x||e[20]!==v||e[21]!==h||e[22]!==S||e[23]!==k?(j={persistSeo:k,persistRawSeo:S,flush:x,isPending:h,hold:v},e[19]=x,e[20]=v,e[21]=h,e[22]=S,e[23]=k,e[24]=j):j=e[24],j}function X(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function St(a){if(!a)return{};const e=X(a.title),t=X(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:X(a.description),image:X(a.image),favicon:X(a.favicon)}}function jt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const kt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=_.c(10),{src:t,className:i,iconSize:f}=a,r=f===void 0?20:f;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function Nt(a){const e=_.c(33),{seo:t,host:i,path:f,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==f?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,f]}),e[8]=i,e[9]=f,e[10]=n):n=e[10];let d;e[11]!==m||e[12]!==n?(d=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=d):d=e[13];let x;e[14]!==u||e[15]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,d]}),e[14]=u,e[15]=d,e[16]=x):x=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#1a0dab"},e[17]=h):h=e[17];let v;e[18]!==t.title||e[19]!==r?(v=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=v):v=e[20];let y;e[21]!==v?(y=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:h,children:v}),e[21]=v,e[22]=y):y=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==y||e[30]!==S||e[31]!==x?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[x,y,S]}),e[29]=y,e[30]=S,e[31]=x,e[32]=j):j=e[32],j}function wt(a){const e=_.c(26),{seo:t,host:i,t:f}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==f?(p=t.title??f("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=f,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#60666c"},e[13]=d):d=e[13];let x;e[14]!==t.description||e[15]!==f?(x=t.description??f("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=f,e[16]=x):x=e[16];let h;e[17]!==x?(h=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:d,children:x}),e[17]=x,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==c||e[21]!==n?(v=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,h]}),e[19]=h,e[20]=c,e[21]=n,e[22]=v):v=e[22];let y;return e[23]!==v||e[24]!==l?(y=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,v]}),e[23]=v,e[24]=l,e[25]=y):y=e[25],y}function Et(a){const e=_.c(36),{seo:t,host:i,accent:f,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${f}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#1c2024"},e[10]=d):d=e[10];let x;e[11]!==t.title||e[12]!==r?(x=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:d,children:x}),e[14]=x,e[15]=h):h=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v={color:"#60666c"},e[16]=v):v=e[16];let y;e[17]!==t.description||e[18]!==r?(y=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=y):y=e[19];let k;e[20]!==y?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:v,children:y}),e[20]=y,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==h||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[h,k,S]}),e[25]=h,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function _t(a){const e=_.c(39),{seo:t,host:i,accent:f,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const d=`3px solid ${f}`;let x;e[3]!==d?(x={borderLeft:d,borderRadius:2},e[3]=d,e[4]=x):x=e[4];let h;e[5]!==m?(h={color:m},e[5]=m,e[6]=h):h=e[6];let v;e[7]!==i||e[8]!==h?(v=s.jsx("div",{className:"text-[10px]",style:h,children:i}),e[7]=i,e[8]=h,e[9]=v):v=e[9];let y;e[10]!==u?(y={color:u},e[10]=u,e[11]=y):y=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==y||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:y,children:k}),e[15]=y,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==v||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[v,b,g]}),e[26]=g,e[27]=v,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==x?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=E):E=e[35];let C;return e[36]!==E||e[37]!==n?(C=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=C):C=e[38],C}function Ct(a){const e=_.c(21),{platform:t,seo:i,host:f,path:r,t:l}=a;let o;e[0]!==f||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(Nt,{seo:i,host:f,path:r,t:l}):t.layout==="card"?s.jsx(wt,{seo:i,host:f,path:r,t:l}):t.layout==="chat"?s.jsx(Et,{seo:i,host:f,path:r,accent:t.color,t:l}):s.jsx(_t,{seo:i,host:f,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=f,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let d;return e[18]!==u||e[19]!==n?(d=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=d):d=e[20],d}function Tt(a){const e=_.c(18),{seo:t,url:i,path:f}=a,r=f===void 0?"/":f,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const y=St(t);o=y,u=Te(y.image,i),c=Te(y.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=jt(i),e[9]=i,e[10]=n):n=e[10];const d=n,x=r==="/"?"":r;let h;e[11]!==x||e[12]!==d||e[13]!==l||e[14]!==p?(h=kt.map(y=>s.jsx(Ct,{platform:y,seo:p,host:d,path:x,t:l},y.id)),e[11]=x,e[12]=d,e[13]=l,e[14]=p,e[15]=h):h=e[15];let v;return e[16]!==h?(v=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:h}),e[16]=h,e[17]=v):v=e[17],v}function De(a,e,t){const i=_.c(3);let f;return i[0]!==e||i[1]!==t?(f=e?qe(e,t):[],i[0]=e,i[1]=t,i[2]=f):f=i[2],at(a,f)}function Pt(a){const e=_.c(7),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l}=a;let o;if(e[0]!==f||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Rt,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Rt(a){const e=_.c(77),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),d=Ve(r,o,l),x=ct(i,f);let h;e[0]!==x?(h=dt(x),e[0]=x,e[1]=h):h=e[1];const v=!h,y=d?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,C]=Z.useState(void 0),{persistSeo:T,persistRawSeo:L,flush:z,isPending:R,hold:Y}=bt({orgSlug:t,virtualMcpId:i,branch:f,target:o,resolved:d,meta:l,onSaved:c});let P;e[2]!==f||e[3]!==t||e[4]!==i?(P=nt({orgSlug:t,virtualMcpId:i,branch:f}),e[2]=f,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=rt(P)(d?.blockKey??""),[U,K]=Z.useState(F);(b!==k||U!==F)&&(d&&Y(d.blockKey),S(k),K(F),g(null),C(void 0),w(Kt));const $=o.kind==="page",$e=$?d?.rawSeoData:void 0,J=E!==void 0?E:$e,Le=$?We(J)??void 0:void 0,D=j??Le??y??{},A=d?Ye(gt(D,d),r,l):null,B=A&&(!$||fe(J))?et(A,l):null;let te;e[6]!==l?(te=Je(l),e[6]=l,e[7]=te):te=e[7];const me=te;let I,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(I=o.kind==="page"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?$t(I,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=I,e[13]=se):(I=e[12],se=e[13]);const ue=se;let le;e[14]!==T||e[15]!==d||e[16]!==g?(le=O=>{if(!d)return;const ke=O;g(ke),T(ke)},e[14]=T,e[15]=d,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Ft),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,H=o.kind==="page"?o.path:"/";let re;e[25]!==H||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?Dt(H,u):u??null,e[25]=H,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==d||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(d?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=d,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&d,be=o.kind==="site"&&d&&B;let M;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(M=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=M):M=e[37];let G;e[38]!==R?(G=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=G):G=e[39];let Q;e[40]!==m||e[41]!==n||e[42]!==o.kind?(Q=o.kind==="page"&&m&&s.jsxs(Ie,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=Q):Q=e[43];let q;e[44]!==G||e[45]!==Q?(q=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[G,Q]}),e[44]=G,e[45]=Q,e[46]=q):q=e[46];let V;e[47]!==M||e[48]!==q?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[M,q]}),e[47]=M,e[48]=q,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==v||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==J||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==H||e[61]!==L||e[62]!==T||e[63]!==ue||e[64]!==ve||e[65]!==d||e[66]!==B||e[67]!==g||e[68]!==C||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!d||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(xt,{rawSeo:J,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:d.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{C(O),L(O)},onInnerChange:O=>{g(O),T(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:v})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Tt,{seo:ue,url:ve,path:H})})})]}),e[50]=A,e[51]=v,e[52]=xe,e[53]=he,e[54]=me,e[55]=J,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=H,e[61]=L,e[62]=T,e[63]=ue,e[64]=ve,e[65]=d,e[66]=B,e[67]=g,e[68]=C,e[69]=ce,e[70]=be,e[71]=I,e[72]=n,e[73]=W):W=e[73];let de;return e[74]!==V||e[75]!==W?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[V,W]}),e[74]=V,e[75]=W,e[76]=de):de=e[76],de}function Ft(a){return a+1}function Kt(a){return a+1}function Dt(a,e){try{return new URL(a,e).href}catch{return e}}function $t(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const f={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(f[r]=l));return f}const qt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Pt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{xt as P,gt as a,yt as b,qt as s,De as u,vt as w};
|
|
1
|
+
import{c as _,b as ee,j as s,q as ze,K as Ne,r as Z,as as Ae,B as Ie,h as Pe}from"./index-Bgkjt4vy.js";import{a1 as we}from"./agent-icon-BGTckvlP.js";import{S as Ee}from"./scroll-area-jAJHvOhj.js";import{O as Oe,aC as Ue,k as fe,a3 as Be,aD as He,aE as Re,aF as Me,d as Ge,aG as Qe,J as _e,aH as qe,af as Ve,i as We,aI as Ye,ag as Je,h as Ze}from"./parse-sections-D-35SZIB.js";import{Z as Xe,A as et}from"./blocks-tab-states-Of3CFRB8.js";import{L as Fe}from"./label-D25-0Wh6.js";import{S as Ce}from"./switch-Bh4leDQ8.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-lF0wcoip.js";import{c as nt,u as rt}from"./hosted-reconcile-BRk5mz3x.js";import{b as Ke}from"./Tool01-CAgFzAvv.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-CFZ3g20k.js";const ft="https://deco.cx/docs/en/performance/edge-async-render";function mt(a){const e=_.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:f,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Oe();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let d;e[2]!==t?(d=Ue(t),e[2]=t,e[3]=d):d=e[3];const x=d,h=!n&&u;let v;e[4]!==c?(v=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=v):v=e[5];let y;e[6]!==v?(y=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:v}),e[6]=v,e[7]=y):y=e[7];const k=h&&l?"seo-enable-hint":void 0;let b;e[8]!==h||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:h,"aria-describedby":k,onCheckedChange:i}),e[8]=h,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==y||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,b]}),e[13]=y,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==h||e[17]!==l?(j=h&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=h,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==x||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==f||e[24]!==c?(g=n&&(m||!f?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:ft,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:x,onCheckedChange:f,className:"shrink-0"})]})]})),e[19]=x,e[20]=o,e[21]=m,e[22]=n,e[23]=f,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function ut(a){const e=_.c(20),{options:t,value:i,onChange:f}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(st,{className:"w-full",children:s.jsx(lt,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(ht).map(pt),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(ot,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==f||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(it,{value:i,onValueChange:f,children:[c,p]}),e[12]=f,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let d;return e[17]!==o||e[18]!==n?(d=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=d):d=e[19],d}function pt(a){return s.jsx(tt,{value:a.resolveType,children:a.title},a.resolveType)}function ht(a){return a.resolveType.length>0}function xt(a){const e=_.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:f,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:d,onBumpFormKey:x,beforeFields:h,asyncRenderAvailable:v,seoTypesLoading:y}=a,k=v===void 0?!0:v,b=y===void 0?!1:y,S=ee(),g=!Be()||!b&&f!=="";let N;e[0]!==f||e[1]!==x||e[2]!==d||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Me(f);p($),d(),x();return}p(null),d(),x()},e[0]=f,e[1]=x,e[2]=d,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const C=E;let T;e[9]!==x||e[10]!==n?(T=K=>{n({__resolveType:K}),x()},e[9]=x,e[10]=n,e[11]=T):T=e[11];const L=T,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const Y=k?C:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(ut,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let U;return e[31]!==h||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(mt,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[h,P,F]}),e[31]=h,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=Y,e[38]=P,e[39]=U):U=e[39],U}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function yt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const f=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Qe(i,f)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function vt(a,e,t){if(e===null&&Xe(t??void 0)){const{seo:i,...f}=a;return f}return{...a,seo:e}}function gt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function bt(a){const e=_.c(25),{orgSlug:t,virtualMcpId:i,branch:f,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze(),m=`${t}/${i}/${f}`;let p;e[0]!==f||e[1]!==t||e[2]!==i?(p={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=p):p=e[3];let n;e[4]!==u?(n={onSaved:u,holdsCopy:!0},e[4]=u,e[5]=n):n=e[5];const{save:d,flush:x,isPending:h,hold:v}=Ge(p,n);let y;e[6]!==m||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r?(y=g=>{l&&d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return yt(r,l,w,g)})},e[6]=m,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=y):y=e[11];const k=y;let b;e[12]!==m||e[13]!==o||e[14]!==c||e[15]!==l||e[16]!==d||e[17]!==r?(b=g=>{!l||r.kind!=="page"||d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return Se(w)?vt(w,g,o):null})},e[12]=m,e[13]=o,e[14]=c,e[15]=l,e[16]=d,e[17]=r,e[18]=b):b=e[18];const S=b;let j;return e[19]!==x||e[20]!==v||e[21]!==h||e[22]!==S||e[23]!==k?(j={persistSeo:k,persistRawSeo:S,flush:x,isPending:h,hold:v},e[19]=x,e[20]=v,e[21]=h,e[22]=S,e[23]=k,e[24]=j):j=e[24],j}function X(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function St(a){if(!a)return{};const e=X(a.title),t=X(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:X(a.description),image:X(a.image),favicon:X(a.favicon)}}function jt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const kt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=_.c(10),{src:t,className:i,iconSize:f}=a,r=f===void 0?20:f;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function Nt(a){const e=_.c(33),{seo:t,host:i,path:f,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==f?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,f]}),e[8]=i,e[9]=f,e[10]=n):n=e[10];let d;e[11]!==m||e[12]!==n?(d=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=d):d=e[13];let x;e[14]!==u||e[15]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,d]}),e[14]=u,e[15]=d,e[16]=x):x=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#1a0dab"},e[17]=h):h=e[17];let v;e[18]!==t.title||e[19]!==r?(v=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=v):v=e[20];let y;e[21]!==v?(y=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:h,children:v}),e[21]=v,e[22]=y):y=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==y||e[30]!==S||e[31]!==x?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[x,y,S]}),e[29]=y,e[30]=S,e[31]=x,e[32]=j):j=e[32],j}function wt(a){const e=_.c(26),{seo:t,host:i,t:f}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==f?(p=t.title??f("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=f,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#60666c"},e[13]=d):d=e[13];let x;e[14]!==t.description||e[15]!==f?(x=t.description??f("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=f,e[16]=x):x=e[16];let h;e[17]!==x?(h=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:d,children:x}),e[17]=x,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==c||e[21]!==n?(v=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,h]}),e[19]=h,e[20]=c,e[21]=n,e[22]=v):v=e[22];let y;return e[23]!==v||e[24]!==l?(y=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,v]}),e[23]=v,e[24]=l,e[25]=y):y=e[25],y}function Et(a){const e=_.c(36),{seo:t,host:i,accent:f,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${f}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#1c2024"},e[10]=d):d=e[10];let x;e[11]!==t.title||e[12]!==r?(x=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:d,children:x}),e[14]=x,e[15]=h):h=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v={color:"#60666c"},e[16]=v):v=e[16];let y;e[17]!==t.description||e[18]!==r?(y=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=y):y=e[19];let k;e[20]!==y?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:v,children:y}),e[20]=y,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==h||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[h,k,S]}),e[25]=h,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function _t(a){const e=_.c(39),{seo:t,host:i,accent:f,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const d=`3px solid ${f}`;let x;e[3]!==d?(x={borderLeft:d,borderRadius:2},e[3]=d,e[4]=x):x=e[4];let h;e[5]!==m?(h={color:m},e[5]=m,e[6]=h):h=e[6];let v;e[7]!==i||e[8]!==h?(v=s.jsx("div",{className:"text-[10px]",style:h,children:i}),e[7]=i,e[8]=h,e[9]=v):v=e[9];let y;e[10]!==u?(y={color:u},e[10]=u,e[11]=y):y=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==y||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:y,children:k}),e[15]=y,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==v||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[v,b,g]}),e[26]=g,e[27]=v,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==x?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=E):E=e[35];let C;return e[36]!==E||e[37]!==n?(C=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=C):C=e[38],C}function Ct(a){const e=_.c(21),{platform:t,seo:i,host:f,path:r,t:l}=a;let o;e[0]!==f||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(Nt,{seo:i,host:f,path:r,t:l}):t.layout==="card"?s.jsx(wt,{seo:i,host:f,path:r,t:l}):t.layout==="chat"?s.jsx(Et,{seo:i,host:f,path:r,accent:t.color,t:l}):s.jsx(_t,{seo:i,host:f,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=f,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let d;return e[18]!==u||e[19]!==n?(d=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=d):d=e[20],d}function Tt(a){const e=_.c(18),{seo:t,url:i,path:f}=a,r=f===void 0?"/":f,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const y=St(t);o=y,u=Te(y.image,i),c=Te(y.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=jt(i),e[9]=i,e[10]=n):n=e[10];const d=n,x=r==="/"?"":r;let h;e[11]!==x||e[12]!==d||e[13]!==l||e[14]!==p?(h=kt.map(y=>s.jsx(Ct,{platform:y,seo:p,host:d,path:x,t:l},y.id)),e[11]=x,e[12]=d,e[13]=l,e[14]=p,e[15]=h):h=e[15];let v;return e[16]!==h?(v=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:h}),e[16]=h,e[17]=v):v=e[17],v}function De(a,e,t){const i=_.c(3);let f;return i[0]!==e||i[1]!==t?(f=e?qe(e,t):[],i[0]=e,i[1]=t,i[2]=f):f=i[2],at(a,f)}function Pt(a){const e=_.c(7),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l}=a;let o;if(e[0]!==f||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Rt,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Rt(a){const e=_.c(77),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),d=Ve(r,o,l),x=ct(i,f);let h;e[0]!==x?(h=dt(x),e[0]=x,e[1]=h):h=e[1];const v=!h,y=d?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,C]=Z.useState(void 0),{persistSeo:T,persistRawSeo:L,flush:z,isPending:R,hold:Y}=bt({orgSlug:t,virtualMcpId:i,branch:f,target:o,resolved:d,meta:l,onSaved:c});let P;e[2]!==f||e[3]!==t||e[4]!==i?(P=nt({orgSlug:t,virtualMcpId:i,branch:f}),e[2]=f,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=rt(P)(d?.blockKey??""),[U,K]=Z.useState(F);(b!==k||U!==F)&&(d&&Y(d.blockKey),S(k),K(F),g(null),C(void 0),w(Kt));const $=o.kind==="page",$e=$?d?.rawSeoData:void 0,J=E!==void 0?E:$e,Le=$?We(J)??void 0:void 0,D=j??Le??y??{},A=d?Ye(gt(D,d),r,l):null,B=A&&(!$||fe(J))?et(A,l):null;let te;e[6]!==l?(te=Je(l),e[6]=l,e[7]=te):te=e[7];const me=te;let I,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(I=o.kind==="page"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?$t(I,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=I,e[13]=se):(I=e[12],se=e[13]);const ue=se;let le;e[14]!==T||e[15]!==d||e[16]!==g?(le=O=>{if(!d)return;const ke=O;g(ke),T(ke)},e[14]=T,e[15]=d,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Ft),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,H=o.kind==="page"?o.path:"/";let re;e[25]!==H||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?Dt(H,u):u??null,e[25]=H,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==d||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(d?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=d,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&d,be=o.kind==="site"&&d&&B;let M;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(M=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=M):M=e[37];let G;e[38]!==R?(G=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=G):G=e[39];let Q;e[40]!==m||e[41]!==n||e[42]!==o.kind?(Q=o.kind==="page"&&m&&s.jsxs(Ie,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=Q):Q=e[43];let q;e[44]!==G||e[45]!==Q?(q=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[G,Q]}),e[44]=G,e[45]=Q,e[46]=q):q=e[46];let V;e[47]!==M||e[48]!==q?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[M,q]}),e[47]=M,e[48]=q,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==v||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==J||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==H||e[61]!==L||e[62]!==T||e[63]!==ue||e[64]!==ve||e[65]!==d||e[66]!==B||e[67]!==g||e[68]!==C||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!d||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(xt,{rawSeo:J,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:d.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{C(O),L(O)},onInnerChange:O=>{g(O),T(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:v})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Tt,{seo:ue,url:ve,path:H})})})]}),e[50]=A,e[51]=v,e[52]=xe,e[53]=he,e[54]=me,e[55]=J,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=H,e[61]=L,e[62]=T,e[63]=ue,e[64]=ve,e[65]=d,e[66]=B,e[67]=g,e[68]=C,e[69]=ce,e[70]=be,e[71]=I,e[72]=n,e[73]=W):W=e[73];let de;return e[74]!==V||e[75]!==W?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[V,W]}),e[74]=V,e[75]=W,e[76]=de):de=e[76],de}function Ft(a){return a+1}function Kt(a){return a+1}function Dt(a,e){try{return new URL(a,e).href}catch{return e}}function $t(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const f={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(f[r]=l));return f}const qt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Pt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{xt as P,gt as a,yt as b,qt as s,De as u,vt as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,m as d,j as f,fP as m}from"./index-
|
|
1
|
+
import{c as p,m as d,j as f,fP as m}from"./index-Bgkjt4vy.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,j as o}from"./index-Bgkjt4vy.js";import{V as a}from"./index-DxfUJlA4.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m,j as i,f9 as S,el as $,aQ as w,fa as C,em as z,fb as R,b2 as k,en as B}from"./index-
|
|
1
|
+
import{c as n,m,j as i,f9 as S,el as $,aQ as w,fa as C,em as z,fb as R,b2 as k,en as B}from"./index-Bgkjt4vy.js";function P(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",...t}),e[2]=t,e[3]=s):s=e[3],s}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(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(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=m("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(B,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const r=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(E,{}),e[7]=u):u=e[7];const b=r==="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",g=r==="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",j=(r==="left"||r==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=r==="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 d;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(d=m("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",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(R,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==d||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("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 H(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=m("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(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function Q(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=m("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(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{H as S,T as a,P as b,_ as c,Q as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,b as J,e as nt,j as o,B as D,t as X,o as ot,cV as xe,ag as qt,a as ne,M as Bt,V as Kt,K as Xe,cW as Ht,cX as Ut,at as ge,m as wt,b9 as bn,C as Pt,r as G,ae as wn,af as ae,cY as Sn,w as Gt,x as Jt,v as Vt,D as Yt,i as he,cZ as vn,ar as Wt,d as kt,a5 as Tt,H as jn,T as Qt,E as St,aS as Xt,c_ as kn,aY as Tn,b3 as _t,J as Nn,c$ as Pn,aT as _n,y as On,d0 as In,d1 as An,d2 as En,d3 as Cn,d4 as $n,a6 as Rn,u as Ln,a7 as zn,d5 as Dn,d6 as Mn,l as Zt,d7 as Ot,d8 as Fn,O as qn,a_ as It,d9 as Bn,a0 as Kn}from"./index-CSIpvoWn.js";import{t as en}from"./Globe04-cXNn3Iwb.js";import{i as Hn,s as oe}from"./UserSquare-BItoQb26.js";import{u as Un}from"./use-deployment-admin-Dpt106eE.js";import{a as Gn}from"./admin-fetch-BhTJlAsX.js";import{aw as Jn,S as Vn,F as bt,a7 as Yn,H as Wn,ax as Qn,ay as Xn,n as At,h as Zn,az as es,m as ts,aA as ns}from"./agent-icon-DKTp0XyY.js";import{s as tn}from"./XClose-B0OqPlIT.js";import{u as ss,a as os}from"./use-project-scope-D-D3vFqs.js";import{u as nn,a as is,A as as}from"./autosend-BWmOY3ov.js";import{i as fe}from"./CheckCircle-B5oyaJit.js";import{i as Et}from"./Monitor01-Brx479PM.js";import{i as We}from"./Zap-FLVG2fHK.js";import{s as Ct}from"./Plus-Cyljarjx.js";import{a as rs}from"./Tool01-U3lMqDqt.js";import{e as Qe,b as ie,d as ls,a as cs,c as ds,C as us}from"./command-uMdfud6o.js";import{I as ms}from"./integration-icon-dTPy2b7i.js";import{P as fs}from"./project-icon-MnmUeo9G.js";import{a as gs}from"./use-navigate-to-agent-B5ZbLCUr.js";import{u as hs}from"./use-debounced-value-_GKTwOmp.js";import{a as ps,m as ys}from"./use-mcp-client-C6kW4vbD.js";import{u as xs,a as bs,n as ws}from"./new-project-dialog-CIVKu-7h.js";import{S as Ss,u as vs}from"./thread-intent-BirCtYTn.js";import{R as js}from"./required-auth-layout-C3gt0jrF.js";import{u as ks,a as Ts,b as Ns,c as Ps}from"./thread-route-gjL8sFh9.js";import{u as _s}from"./use-org-sso-CwVEWYSS.js";function Os(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=O=>{X.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h),m=Is;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let u;e[17]!==y?(u=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=u):u=e[18];let p;e[19]!==r||e[20]!==i?(p=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=p):p=e[21];let S;e[22]!==p?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[22]=p,e[23]=S):S=e[23];let x;e[24]!==u||e[25]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[u,S]}),e[24]=u,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==f?(b=()=>f.mutate(),e[27]=f,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==s||e[31]!==i?(v=f.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=f.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==f.isPending||e[34]!==b||e[35]!==v?(w=o.jsx(D,{onClick:b,disabled:f.isPending,children:v}),e[33]=f.isPending,e[34]=b,e[35]=v,e[36]=w):w=e[36];const N=f.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==f.isPending||e[40]!==T?(j=o.jsx(D,{variant:"ghost",onClick:m,disabled:N,children:T}),e[39]=f.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==x||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,x,P]}),e[45]=x,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Is(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Un(),d=As,g=r==="not-found",h=g?Hn:qt;let f;e[0]!==g||e[1]!==i?(f=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=f):f=e[2];const m=f;let c;e[3]!==g||e[4]!==n||e[5]!==s||e[6]!==i?(c=g?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let u;e[8]!==h?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=u):u=e[9];let p;e[10]!==m?(p=o.jsx("h3",{className:"text-lg font-medium",children:m}),e[10]=m,e[11]=p):p=e[11];let S;e[12]!==y?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=S):S=e[13];let x;e[14]!==p||e[15]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[p,S]}),e[14]=p,e[15]=S,e[16]=x):x=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Es,{orgId:a,orgSlug:s}),o.jsx(D,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(D,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==b?(v=o.jsxs(xe,{children:[u,x,b]}),e[22]=u,e[23]=x,e[24]=b,e[25]=v):v=e[25],v}function As(){window.location.href="/"}function Es(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=ne.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Gn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==n?(g=p=>{X.error(p instanceof Error?p.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h);let m;e[11]!==f?(m=()=>f.mutate(),e[11]=f,e[12]=m):m=e[12];const c=!i||f.isPending;let y;e[13]!==f.isPending||e[14]!==n?(y=f.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=f.isPending,e[14]=n,e[15]=y):y=e[15];let u;return e[16]!==m||e[17]!==c||e[18]!==y?(u=o.jsx(D,{onClick:m,disabled:c,children:y}),e[16]=m,e[17]=c,e[18]=y,e[19]=u):u=e[19],u}function Cs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await ne.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let g;e[4]!==i?(g=I=>{X.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[6]=l,e[7]=d,e[8]=g,e[9]=h):h=e[9];const f=nt(h);let m;e[10]!==s?(m=async()=>{const I=await ne.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=m):m=e[11];let c,y;e[12]!==i?(c=()=>{X.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{X.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let u;e[15]!==m||e[16]!==c||e[17]!==y?(u={mutationFn:m,onSuccess:c,onError:y},e[15]=m,e[16]=c,e[17]=y,e[18]=u):u=e[18];const p=nt(u),S=f.isPending||p.isPending;let x;e[19]!==r||e[20]!==a?(x=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let v;e[25]!==b?(v=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let N;e[29]!==w?(N=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=N):N=e[30];let T;e[31]!==v||e[32]!==N?(T=o.jsxs("div",{className:"space-y-2",children:[v,N]}),e[31]=v,e[32]=N,e[33]=T):T=e[33];let j;e[34]!==f?(j=()=>f.mutate(),e[34]=f,e[35]=j):j=e[35];let P;e[36]!==f.isPending||e[37]!==i?(P=f.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=f.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==S||e[40]!==j||e[41]!==P?(_=o.jsx(D,{onClick:j,disabled:S,children:P}),e[39]=S,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==p?(O=()=>p.mutate(),e[43]=p,e[44]=O):O=e[44];let A;e[45]!==p.isPending||e[46]!==i?(A=p.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=p.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==S||e[49]!==O||e[50]!==A?($=o.jsx(D,{variant:"ghost",onClick:O,disabled:S,children:A}),e[48]=S,e[49]=O,e[50]=A,e[51]=$):$=e[51];let R;e[52]!==_||e[53]!==$?(R=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=R):R=e[54];let L;return e[55]!==T||e[56]!==R||e[57]!==x?(L=o.jsxs(xe,{children:[x,T,R]}),e[55]=T,e[56]=R,e[57]=x,e[58]=L):L=e[58],L}function $s(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let g;e[10]!==d?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let h;e[12]!==l||e[13]!==g?(h=o.jsxs("div",{className:"space-y-2",children:[l,g]}),e[12]=l,e[13]=g,e[14]=h):h=e[14];let f;e[15]!==n?(f=n("common.goHome"),e[15]=n,e[16]=f):f=e[16];let m;e[17]!==f?(m=o.jsx(D,{variant:"ghost",onClick:Rs,children:f}),e[17]=f,e[18]=m):m=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==m?(c=o.jsxs(xe,{children:[r,h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=c):c=e[22],c}function Rs(){window.location.href="/"}function Ls(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Ds,e[2]=d):d=e[2];let g;e[3]!==i?(g=_=>{X.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==l||e[6]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[5]=l,e[6]=g,e[7]=h):h=e[7];const f=nt(h);let m;e[8]!==n||e[9]!==s?(m=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=m):m=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let p;e[19]!==u?(p=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=p):p=e[20];let S;e[21]!==y||e[22]!==p?(S=o.jsxs("div",{className:"space-y-2",children:[y,p]}),e[21]=y,e[22]=p,e[23]=S):S=e[23];let x;e[24]!==f?(x=()=>f.mutate(),e[24]=f,e[25]=x):x=e[25];let b;e[26]!==f.isPending||e[27]!==i?(b=f.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=f.isPending,e[27]=i,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==x||e[31]!==b?(v=o.jsx(D,{onClick:x,disabled:f.isPending,children:b}),e[29]=f.isPending,e[30]=x,e[31]=b,e[32]=v):v=e[32];const w=f.isPending;let N;e[33]!==i?(N=i("common.goHome"),e[33]=i,e[34]=N):N=e[34];let T;e[35]!==f.isPending||e[36]!==N?(T=o.jsx(D,{variant:"ghost",onClick:zs,disabled:w,children:N}),e[35]=f.isPending,e[36]=N,e[37]=T):T=e[37];let j;e[38]!==v||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,T]}),e[38]=v,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==S||e[42]!==j||e[43]!==m?(P=o.jsxs(xe,{children:[m,S,j]}),e[41]=S,e[42]=j,e[43]=m,e[44]=P):P=e[44],P}function zs(){window.location.href="/"}function Ds(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ms(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Fs({orgSlug:t}){const{data:e}=Ms(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(ge.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Cs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Os,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx($s,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:g,actions:h,onDismiss:f,tone:m}=t,c=m===void 0?"neutral":m,y=g||h;let u;e[0]!==c?(u=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=u):u=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(tn,{size:14}),e[2]=p):p=e[2];let S;e[3]!==a||e[4]!==f?(S=o.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:f,children:p}),e[3]=a,e[4]=f,e[5]=S):S=e[5];const x=l&&"flex items-start gap-3",b=d&&"pb-3";let v;e[6]!==x||e[7]!==b?(v=wt("p-4 pr-11",x,b),e[6]=x,e[7]=b,e[8]=v):v=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let N;e[11]!==n?(N=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=N):N=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==N?(P=o.jsxs("div",{children:[N,T,j]}),e[17]=T,e[18]=j,e[19]=N,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==v||e[28]!==w?(A=o.jsxs("div",{className:v,children:[w,O]}),e[26]=O,e[27]=v,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=c,e[34]=$):$=e[34];let R;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==u||e[39]!==S||e[40]!==c?(R=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,S,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=u,e[39]=S,e[40]=c,e[41]=R):R=e[41],R}const qs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${qs[t]}"]`}const Bs=[{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 Ks(t){return Bs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Hs(t,e){return Ks(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Us=on("switcher"),Gs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Js(t,e){return Hs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function Vs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function Ys(){return(await bn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ws(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Us)&&s++<Gs){requestAnimationFrame(a);return}const n=Js(t,e);if(n.length===0){et=!1;return}Ys().then(r=>{r(Vs(t,n)).drive()}).catch(()=>{et=!1})};a()}function Qs(t){return t!=="off"}function Gi(t){if(!t.hasSource)return[];const e=["site-editor"];return Qs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Ji(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:bt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:oe,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:Et,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:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:oe,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:fe,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:We,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:oe,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:fe,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:We,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:fe,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:oe,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:We,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:oe,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:fe,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:We,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:oe,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:fe,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:We,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:oe,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:bt,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:fe,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:We,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:fe,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:oe,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:bt,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:oe,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:Wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let pe="",ye={},jt=!1;function Xs(){if(jt)return pe||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return pe||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Rt(){const t=Xs();return t!==pe&&(pe=t,ye=cn(t)),ye}function Zs(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...ye};ye=r,pe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function eo(t){ye=t,pe=JSON.stringify(t);try{localStorage.setItem(yt,pe),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function to(){const t=C.c(7),e=G.useSyncExternalStore(Zs,Rt,Rt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=no;let r;t[2]!==e?(r=ln.reduce((d,g)=>e[g.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function no(t){ye[t]||eo({...ye,[t]:{seenAt:new Date().toISOString()}})}const Lt=new Map;function dn(t){let e=Lt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Lt.set(t,e)),e}function so(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function oo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>so(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const io=720*60*60*1e3,ao=10080*60*1e3;function ro(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function lo(t){const e=ln[0];if(!e)return null;const s=ro(e.date),a=t-s;return a<0||a>io?null:e}function co(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 uo(t,e){const s=co(t);return s===null?!1:e-s>=ao}function mo(){const t=C.c(46),e=J(),s=ss(),a=wn(),n=nn(),r=!!s,i=a===ae.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:g}=ne.useSession(),{isSeen:h,markSeen:f}=to(),m=oo(6e4);let c,y,u;if(t[3]!==h||t[4]!==m||t[5]!==g?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(c=lo(m),!c){u=null;break e}if(!uo(g?.user?.createdAt,m)){u=null;break e}y=h(c.id)}t[3]=h,t[4]=m,t[5]=g?.user?.createdAt,t[6]=c,t[7]=y,t[8]=u}else c=t[6],y=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(y)return null;let p;t[9]!==c.id||t[10]!==r||t[11]!==f||t[12]!==i||t[13]!==d||t[14]!==e?(p=()=>{f(c.id),Ws(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=f,t[12]=i,t[13]=d,t[14]=e,t[15]=p):p=t[15];const S=p;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const v=c.eyebrow,w=c.title;let N;t[20]!==c.id||t[21]!==f?(N=()=>f(c.id),t[20]=c.id,t[21]=f,t[22]=N):N=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==f||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>f(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=f,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==f||t[31]!==S?(j=c.cta?"href"in c.cta?o.jsx(D,{asChild:!0,size:"sm",onClick:()=>f(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(D,{size:"sm",onClick:S,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=f,t[31]=S,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(fo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==x||t[42]!==b||t[43]!==N||t[44]!==T?(O=o.jsx(sn,{ariaLabel:x,dismissLabel:b,eyebrow:v,title:w,onDismiss:N,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=x,t[42]=b,t[43]=N,t[44]=T,t[45]=O):O=t[45],O}function fo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function go(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(ho)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==d?(g=o.jsx(Yt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=g):g=e[10],g}function ho(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(po)})]},t.label)}function po(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(yo)})]},t.description)}function yo(t){return o.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 xo={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=xo[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function Vi({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const g=await ne.organization.acceptInvitation({invitationId:t.id});if(g.error){X.error(g.error.message),n(!1);return}}catch{X.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}X.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await ne.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await ne.organization.rejectInvitation({invitationId:t.id});if(d.error){X.error(d.error.message),n(!1);return}X.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{X.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(D,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(D,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function bo(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function wo(t){const e=C.c(13),s=t.trim(),{data:a}=ne.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async S=>{const{signal:x}=S,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:x});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const v=await b.json();if(!bo(v))throw new Error("Invalid organization search response");return v},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:g,isFetching:h,isPlaceholderData:f,isError:m}=he(d);let c;e[6]!==g?.items?(c=g?.items??[],e[6]=g?.items,e[7]=c):c=e[7];const y=r&&h,u=r&&f;let p;return e[8]!==m||e[9]!==c||e[10]!==y||e[11]!==u?(p={hits:c,isSearching:y,isStale:u,isError:m},e[8]=m,e[9]=c,e[10]=y,e[11]=u,e[12]=p):p=e[12],p}const So=3,mn=10,vo=440,jo=55;function Yi(t){const e=Math.floor((t-vo)/jo);return Math.min(mn,Math.max(So,e))}function ko(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function To(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function Wi(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const zt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=ge.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Wt(e,zt),n=Array.isArray(s)?s:zt;let r;t[1]!==a?(r=(l,d)=>a(g=>ko(Array.isArray(g)?g:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function No(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function Qi(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function Po(t,e){return{...t,hidden:st(t.hidden,e)}}function Xi(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function Zi(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function ea(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function _o(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=ge.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Wt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(g=>Po(No(g),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const Dt=8,Ze=["all","organizations","projects","chats","connections","actions"],Oo=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Io(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function Ao(t,e){const{org:s}=Tt(),a=ps({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=he({queryKey:Xe.globalSearch(s.id,t,Dt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Dt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Eo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=os(),{remember:g}=gs(i.slug),[h,f]=G.useState(""),[m,c]=G.useState("all");let y;e[0]!==m?(y=M=>m==="all"||m===M,e[0]=m,e[1]=y):y=e[1];const u=y,p=G.useDeferredValue(h),S=Ao(p,u("chats")||u("connections")),x=_o(),{data:b}=jn(),{recent:v}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const N=w,T=hs(N,150),{hits:j}=wo(u("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==v){const M=Io(To(b??[],i),v);let U;e[10]!==j?(U=new Set(j.map(Lo)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=v,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==m||e[15]!==N?(A=m==="all"&&!N?O.filter(M=>M.slug!==i.slug).slice(0,Oo):O,e[12]=O,e[13]=i.slug,e[14]=m,e[15]=N,e[16]=A):A=e[16];const $=A;let R;e[17]!==a?(R=()=>{a(!1),f(""),c("all")},e[17]=a,e[18]=R):R=e[18];const L=R;let I;e[19]!==m?(I=M=>{const U=Ze.indexOf(m);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=m,e[20]=I):I=e[20];const B=I;let H;e[21]!==L?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),L()},e[21]=L,e[22]=H):H=e[22];const z=H;let re;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(re=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:ae.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=re):re=e[26];const Z=re;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const se=ee;let te,V,Y,K,W,Q,E,q,be,we,Se,le,ce,de,ue,me;if(e[29]!==L||e[30]!==B||e[31]!==z||e[32]!==d||e[33]!==S||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==Z||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==g||e[42]!==se||e[43]!==m||e[44]!==P||e[45]!==u||e[46]!==n||e[47]!==h||e[48]!==x){const M=S.filter(Ro),U=S.filter($o);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(Zn,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:ae.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Re;e[73]!==n?(Re=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Re):Re=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(es,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Le;e[76]!==F||e[77]!==Re?(Le={key:"reports",label:Re,icon:ut,to:ae.reports,params:F},e[76]=F,e[77]=Re,e[78]=Le):Le=e[78];let ze;e[79]!==n?(ze=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=ze):ze=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let De;e[82]!==i.slug?(De={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=De):De=e[83];let Me;e[84]!==ze||e[85]!==De?(Me={key:"tasks",label:ze,icon:mt,to:ae.tasks,params:De},e[84]=ze,e[85]=De,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ts,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:ae.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ns,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:ae.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Le||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Le,Me,qe,Ke],e[99]=$e,e[100]=Le,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const xt=ht;V=ls,Se=s,e[105]!==L||e[106]!==a?(le=k=>k?a(!0):L(),e[105]=L,e[106]=a,e[107]=le):le=e[107],e[108]!==n?(ce=n("commandPalette.title"),e[108]=n,e[109]=ce):ce=e[109],e[110]!==n?(de=n("commandPalette.description"),e[110]=n,e[111]=de):de=e[111];let He;e[112]!==m||e[113]!==n?(He=m==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(m)).toLowerCase()}),e[112]=m,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==B||e[118]!==m||e[119]!==h?(Ge=k=>{if(k.key==="Tab"){k.preventDefault(),B(k.shiftKey?-1:1);return}k.key==="Backspace"&&!h&&m!=="all"&&(k.preventDefault(),c("all"))},e[117]=B,e[118]=m,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(ue=o.jsx(cs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:f,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=ue):ue=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==m||e[129]!==n?(Ve=Ze.map(k=>o.jsx("button",{type:"button",role:"radio","aria-checked":m===k,tabIndex:-1,onMouseDown:Co,onClick:()=>c(k),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",m===k?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(k))},k)),e[128]=m,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(me=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=me):me=e[133],te=ds,Y="h-[min(420px,60vh)] max-h-none";let Ye;e[134]!==n?(Ye=n("commandPalette.empty"),e[134]=n,e[135]=Ye):Ye=e[135],e[136]!==Ye?(K=o.jsx(us,{children:Ye}),e[136]=Ye,e[137]=K):K=e[137],e[138]!==z||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==u||e[143]!==n||e[144]!==h||e[145]!==x?(W=u("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(k=>o.jsxs(ie,{value:`org ${k.name} ${k.slug}`,keywords:P.has(k.id)?[h]:void 0,onSelect:()=>z(()=>x(k.slug),"organization"),children:[o.jsx(un,{org:k,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.name}),k.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${k.id}`))}),e[138]=z,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=u,e[143]=n,e[144]=h,e[145]=x,e[146]=W):W=e[146],e[147]!==xt||e[148]!==z||e[149]!==r||e[150]!==u||e[151]!==n?(Q=u("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:xt.map(k=>o.jsxs(ie,{onSelect:()=>z(()=>r({to:k.to,params:k.params}),"destination"),children:[k.icon,o.jsx("span",{children:k.label})]},k.key))}),e[147]=xt,e[148]=z,e[149]=r,e[150]=u,e[151]=n,e[152]=Q):Q=e[152],e[153]!==z||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==g||e[159]!==u||e[160]!==n?(E=u("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(k=>o.jsxs(ie,{value:`project ${k.title}`,onSelect:()=>z(()=>{g(k.id),r({to:ae.projects,params:{org:i.slug,agentId:k.id}})},"project"),children:[o.jsx(fs,{icon:k.icon,name:k.title,"aria-hidden":"true"}),o.jsx("span",{children:k.title})]},k.id))}),e[153]=z,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=g,e[159]=u,e[160]=n,e[161]=E):E=e[161],e[162]!==z||e[163]!==r||e[164]!==F||e[165]!==u||e[166]!==n?(q=u("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ie,{value:n("commandPalette.newProject"),onSelect:()=>z(()=>r({to:ae.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ie,{value:n("commandPalette.inviteTeammate"),onSelect:()=>z(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Qn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ie,{value:n("commandPalette.addConnection"),onSelect:()=>z(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ie,{value:n("commandPalette.settings"),onSelect:()=>z(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(rs,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=z,e[163]=r,e[164]=F,e[165]=u,e[166]=n,e[167]=q):q=e[167],be=u("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(k=>o.jsxs(ie,{value:`${k.title} ${k.id}`,keywords:se,onSelect:()=>z(()=>Z(k),"connection"),children:[o.jsx(ms,{icon:k.icon,name:k.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title})]},`connection:${k.id}`))}),we=u("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(k=>o.jsxs(ie,{value:`${k.title} ${k.id}`,keywords:se,onSelect:()=>z(()=>Z(k),k.type),children:[k.type==="thread"?o.jsx(Xn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title}),k.type==="task"&&k.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:k.key})]},`${k.type}:${k.id}`))}),e[29]=L,e[30]=B,e[31]=z,e[32]=d,e[33]=S,e[34]=r,e[35]=a,e[36]=s,e[37]=Z,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=g,e[42]=se,e[43]=m,e[44]=P,e[45]=u,e[46]=n,e[47]=h,e[48]=x,e[49]=te,e[50]=V,e[51]=Y,e[52]=K,e[53]=W,e[54]=Q,e[55]=E,e[56]=q,e[57]=be,e[58]=we,e[59]=Se,e[60]=le,e[61]=ce,e[62]=de,e[63]=ue,e[64]=me}else te=e[49],V=e[50],Y=e[51],K=e[52],W=e[53],Q=e[54],E=e[55],q=e[56],be=e[57],we=e[58],Se=e[59],le=e[60],ce=e[61],de=e[62],ue=e[63],me=e[64];let ve;e[168]!==te||e[169]!==Y||e[170]!==K||e[171]!==W||e[172]!==Q||e[173]!==E||e[174]!==q||e[175]!==be||e[176]!==we?(ve=o.jsxs(te,{className:Y,children:[K,W,Q,E,q,be,we]}),e[168]=te,e[169]=Y,e[170]=K,e[171]=W,e[172]=Q,e[173]=E,e[174]=q,e[175]=be,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==le||e[206]!==ce||e[207]!==de||e[208]!==ue||e[209]!==me||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:le,title:ce,description:de,children:[ue,me,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=le,e[206]=ce,e[207]=de,e[208]=ue,e[209]=me,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Co(t){return t.preventDefault()}function $o(t){return t.type!=="connection"}function Ro(t){return t.type==="connection"}function Lo(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(zo),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function zo(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ss(!1);function Do(){tt.set(!0)}function Mo(){tt.set(!1)}function Fo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const qo=300*1e3,Bo=2;function Ko(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ho(t,e){return t.count>=Bo&&t.version!==null&&t.version!==e}function Uo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:Jo,refetchInterval:qo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=he(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,g]=G.useState(l);n!==r&&(i(n),g(j=>Ko(j,a,"4.570.1")));const[h,f]=G.useState(null);if(!Ho(d,h))return null;let m;t[2]!==e?(m=e("announcements.version.ariaLabel"),t[2]=e,t[3]=m):m=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let p;t[10]!==e?(p=e("announcements.version.description"),t[10]=e,t[11]=p):p=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(_t,{size:16}),t[12]=S):S=t[12];let x;t[13]!==d.version?(x=()=>f(d.version),t[13]=d.version,t[14]=x):x=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.570.1"}),t[15]=e,t[16]=b):b=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let N;t[20]!==v?(N=o.jsxs(D,{size:"sm",onClick:Go,children:[v,w]}),t[20]=v,t[21]=N):N=t[21];let T;return t[22]!==N||t[23]!==m||t[24]!==c||t[25]!==y||t[26]!==u||t[27]!==p||t[28]!==x||t[29]!==b?(T=o.jsx(sn,{ariaLabel:m,dismissLabel:c,eyebrow:y,title:u,description:p,icon:S,tone:"system",onDismiss:x,footerLeading:b,actions:N}),t[22]=N,t[23]=m,t[24]=c,t[25]=y,t[26]=u,t[27]=p,t[28]=x,t[29]=b,t[30]=T):T=t[30],T}function Go(){return window.location.reload()}async function Jo(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function Vo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Yo=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>Vo(ge.ptBrAnnouncementSeen(t));function Wo(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=ne.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<Yo,h=Pn()==="pt-BR",f=!r&&!!l&&g&&h&&s.language==="en"&&!Ft(l).has(),[m,c]=G.useState(!1),[y,u]=G.useState(!1);!m&&!r&&(c(!0),f&&l&&(Ft(l).mark(),a(Xo),u(!0),St("pt_br_auto_switch_shown")));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=z=>{St("pt_br_auto_switch_closed",{action:z}),u(!1)},t[0]=p):p=t[0];const S=p;let x;t[1]!==a?(x=()=>{a(Qo),S("switch-back")},t[1]=a,t[2]=x):x=t[2];const b=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=z=>!z&&S("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let N;t[5]!==e?(N=e("announcements.ptBr.title"),t[5]=e,t[6]=N):N=t[6];let T;t[7]!==N?(T=o.jsx(Jt,{children:N}),t[7]=N,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(_n,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(D,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>S("ok"),t[21]=$):$=t[21];let R;t[22]!==e?(R=e("announcements.ptBr.ok"),t[22]=e,t[23]=R):R=t[23];let L;t[24]!==R?(L=o.jsx(D,{onClick:$,children:R}),t[24]=R,t[25]=L):L=t[25];let I;t[26]!==A||t[27]!==L?(I=o.jsxs(On,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=I):I=t[28];let B;t[29]!==I||t[30]!==_?(B=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=B):B=t[31];let H;return t[32]!==y||t[33]!==B?(H=o.jsx(Yt,{open:y,onOpenChange:v,children:B}),t[32]=y,t[33]=B,t[34]=H):H=t[34],H}function Qo(t){return{...t,language:"en"}}function Xo(t){return{...t,language:"pt-BR"}}function Zo(t){const e=In(t);return typeof e=="string"?e:void 0}function ei(){return Zo("experiment-pipeline-check"),null}function ti(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;An(s.id,{name:s.name??void 0,slug:s.slug??void 0}),En();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ei,{}),e[0]=a):a=e[0],a}function ni(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let f,m;return r?.panel?m=r.panel:r?.newThread&&!h&&Cn(e.tabId)?(m=e.tabId,l.mainpanel=e.mainpanel,f=e.sidepanel):n?(m=n.tab,n.sidepanel!==void 0&&(f=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!$n(e.tabId)&&(m=e.tabId),f!==void 0&&(l.sidepanel=f),r?.autosend&&(l.autosend=i),{tabId:m,search:l}}const hn="studio:thread-layout:v4",si=50;function pn(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 oi(t,e,s,a=si){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function ii(t,e){t&&yn(oi(Nt(),t,e))}function ai(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ta(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function xn(t){return{queryKey:Xe.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 na(t){const e=C.c(10);let s;e[0]!==t?(s=xn(t),e[0]=t,e[1]=s):s=e[1];const a=he(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function ri(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=li;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let f;e[5]!==h?(f=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=f):f=e[6];let m;e[7]!==n||e[8]!==a||e[9]!==r?(m=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=m):m=e[10];let c;e[11]!==m?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[11]=m,e[12]=c):c=e[12];let y;e[13]!==f||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[f,c]}),e[13]=f,e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let p;e[18]!==l||e[19]!==u?(p=o.jsx(D,{onClick:l,children:u}),e[18]=l,e[19]=u,e[20]=p):p=e[20];let S;e[21]!==r?(S=r("common.goBack"),e[21]=r,e[22]=S):S=e[22];let x;e[23]!==S?(x=o.jsx(D,{variant:"ghost",onClick:d,children:S}),e[23]=S,e[24]=x):x=e[24];let b;e[25]!==x||e[26]!==p?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,x]}),e[25]=x,e[26]=p,e[27]=b):b=e[27];let v;return e[28]!==b||e[29]!==y?(v=o.jsxs(xe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=v):v=e[30],v}function li(){window.location.href="/"}function ci(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(g=s.ctaUrl&&s.ctaLabel?o.jsx(D,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let f;e[11]!==n?(f=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==h||e[14]!==f?(m=o.jsx(D,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:f})}),e[13]=h,e[14]=f,e[15]=m):m=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(D,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let u;e[20]!==y||e[21]!==g||e[22]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,m,y]}),e[20]=y,e[21]=g,e[22]=m,e[23]=u):u=e[23];let p;return e[24]!==u||e[25]!==d?(p=o.jsxs(xe,{children:[r,d,u]}),e[24]=u,e[25]=d,e[26]=p):p=e[26],p}function di(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],he(r)}const ui="/settings/infra-billing";function mi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ui)}function fi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Kn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function gi(){const t=kt(),e=vs(),{org:s}=Tt(),a=Ln({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=is(),l=ks(),d=Ts(),g=Ns(),h=Ps(),f=(u,p=!0)=>t({to:".",search:u,replace:p}),m=()=>f(u=>({...u,sidepanel:!0})),c=(u,p,S)=>{const x=!!d&&d===u;d&&!x&&ii(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const b=x?null:ai(u),v=Xt(s.id).id,w=ni({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:p,decopilotId:v,savedLayout:b,opts:S,autosendValue:as});return h(u,()=>w.search,{virtualMcpId:p,view:{tabId:w.tabId}})};return{openSidePanel:m,setTaskId:c,createNewTask:async(u,p,S)=>{const x=crypto.randomUUID(),b=u??g;try{await e?.create({id:x,virtual_mcp_id:b,...p?{branch:p}:{}})}catch{}c(x,b,{...S,newThread:!0})},openTab:r,closeTab:i}}const hi=new Set(["/$org/","/$org/home"]);function pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:yi},t[0]=e):e=t[0],Zt(e)}function yi(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&hi.has(e)}function xi(){const t=C.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Fo(),[d,g]=xs(),h=Dn(),f=pi(),m=a??"";let c;t[1]!==m?(c=xn(m),t[1]=m,t[2]=c):c=t[2];const y=!!a&&f;let u;t[3]!==c||t[4]!==y?(u={...c,enabled:y},t[3]=c,t[4]=y,t[5]=u):u=t[5],he(u);const{data:p}=ne.useSession(),S=p?.user?.id;let x,b;t[6]!==h?(x=()=>{const E=q=>{if(It(q)&&q.code==="KeyK"){q.preventDefault(),Do();return}if(q.key==="?"&&!Bn(q.target)){q.preventDefault(),r(!0);return}It(q)&&q.code==="BracketLeft"&&h.history.canGoBack()&&(q.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=x,t[8]=b):(x=t[7],b=t[8]),G.useEffect(x,b);let v;t[9]!==a||t[10]!==S?(v=Mn(a,S),t[9]=a,t[10]=S,t[11]=v):v=t[11];const{data:w}=Kt(v),N=w?.id,T=w?.slug,{data:j}=_s(N,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=di(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:bi},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!mi(A),R=N??"",L=T??"";let I;t[13]!==L||t[14]!==R?(I=ys({connectionId:Qt,orgId:R,orgSlug:L}),t[13]=L,t[14]=R,t[15]=I):I=t[15];const B=!!N&&!!T;let H;if(t[16]!==I||t[17]!==B?(H={...I,enabled:B},t[16]=I,t[17]=B,t[18]=H):H=t[18],he(H),(!w||Ot(w)||P||$)&&Mo(),!w){let E;return t[19]!==a?(E=o.jsx(Fs,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(ge.lastOrgSlug())===a&&localStorage.removeItem(ge.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(Fn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(ci,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(ri,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const re=w.logo??null;let Z;t[31]!==w||t[32]!==re?(Z={...w,logo:re},t[31]=w,t[32]=re,t[33]=Z):Z=t[33];let ee;t[34]!==w?(ee=o.jsx(ti,{activeOrg:w}),t[34]=w,t[35]=ee):ee=t[35];let se;t[36]===Symbol.for("react.memo_cache_sentinel")?(se=o.jsx(qn,{}),t[36]=se):se=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(mo,{}),o.jsx(Uo,{})]}),t[37]=te):te=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Eo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let Y;t[41]!==d||t[42]!==g?(Y=d&&o.jsx(bs,{open:!0,onOpenChange:g,source:ws()}),t[41]=d,t[42]=g,t[43]=Y):Y=t[43];let K;t[44]!==n?(K=o.jsx(go,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let W;t[46]===Symbol.for("react.memo_cache_sentinel")?(W=o.jsx(Wo,{}),t[46]=W):W=t[46];let Q;return t[47]!==Z||t[48]!==ee||t[49]!==V||t[50]!==Y||t[51]!==K?(Q=o.jsxs(fi,{org:Z,children:[ee,se,te,V,Y,K,W]}),t[47]=Z,t[48]=ee,t[49]=V,t[50]=Y,t[51]=K,t[52]=Q):Q=t[52],Q}function bi(t){return t.location.pathname}function wi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(js,{children:o.jsx(xi,{})}),t[0]=e):e=t[0],e}const sa=Object.freeze(Object.defineProperty({__proto__:null,default:wi,usePanelActions:gi},Symbol.toStringTag,{value:"Module"}));export{gn as E,Vi as I,qs as L,un as O,wo as a,fn as b,_o as c,Wi as d,Zi as e,Yi as f,gi as g,Qi as h,rn as i,oo as j,ta as k,Qs as l,ea as m,na as n,Do as o,Gi as p,sa as q,No as r,Ji as s,Xi as t,di as u,To as w};
|
|
1
|
+
import{c as C,b as J,e as nt,j as o,B as D,t as X,o as ot,cV as xe,ag as qt,a as ne,M as Bt,V as Kt,K as Xe,cW as Ht,cX as Ut,at as ge,m as wt,b9 as bn,C as Pt,r as G,ae as wn,af as ae,cY as Sn,w as Gt,x as Jt,v as Vt,D as Yt,i as he,cZ as vn,ar as Wt,d as kt,a5 as Tt,H as jn,T as Qt,E as St,aS as Xt,c_ as kn,aY as Tn,b3 as _t,J as Nn,c$ as Pn,aT as _n,y as On,d0 as In,d1 as An,d2 as En,d3 as Cn,d4 as $n,a6 as Rn,u as Ln,a7 as zn,d5 as Dn,d6 as Mn,l as Zt,d7 as Ot,d8 as Fn,O as qn,a_ as It,d9 as Bn,a0 as Kn}from"./index-Bgkjt4vy.js";import{t as en}from"./Globe04-BNjS8hE_.js";import{i as Hn,s as oe}from"./UserSquare-Dfda7sxk.js";import{u as Un}from"./use-deployment-admin-DE1jKIDx.js";import{a as Gn}from"./admin-fetch-BhTJlAsX.js";import{aw as Jn,S as Vn,F as bt,a7 as Yn,H as Wn,ax as Qn,ay as Xn,n as At,h as Zn,az as es,m as ts,aA as ns}from"./agent-icon-BGTckvlP.js";import{s as tn}from"./XClose-DaTfQwji.js";import{u as ss,a as os}from"./use-project-scope-CxaJ6AcP.js";import{u as nn,a as is,A as as}from"./autosend-DL4CutFR.js";import{i as fe}from"./CheckCircle-D2qom1Qe.js";import{i as Et}from"./Monitor01-D0NO-K1o.js";import{i as We}from"./Zap-CmFvKOKc.js";import{s as Ct}from"./Plus-BqBCvRtk.js";import{a as rs}from"./Tool01-CAgFzAvv.js";import{e as Qe,b as ie,d as ls,a as cs,c as ds,C as us}from"./command-C37DfioB.js";import{I as ms}from"./integration-icon-C7bRwcH_.js";import{P as fs}from"./project-icon-CzcU3Mqg.js";import{a as gs}from"./use-navigate-to-agent-DUsfLcvr.js";import{u as hs}from"./use-debounced-value-CekhRquV.js";import{a as ps,m as ys}from"./use-mcp-client-IMgoLgFY.js";import{u as xs,a as bs,n as ws}from"./new-project-dialog-DZScwreb.js";import{S as Ss,u as vs}from"./thread-intent-W-PQxNVd.js";import{R as js}from"./required-auth-layout-Bbj3yijQ.js";import{u as ks,a as Ts,b as Ns,c as Ps}from"./thread-route-B-6djUfH.js";import{u as _s}from"./use-org-sso-BH_ZUFcu.js";function Os(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=O=>{X.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h),m=Is;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let u;e[17]!==y?(u=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=u):u=e[18];let p;e[19]!==r||e[20]!==i?(p=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=p):p=e[21];let S;e[22]!==p?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[22]=p,e[23]=S):S=e[23];let x;e[24]!==u||e[25]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[u,S]}),e[24]=u,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==f?(b=()=>f.mutate(),e[27]=f,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==s||e[31]!==i?(v=f.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=f.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==f.isPending||e[34]!==b||e[35]!==v?(w=o.jsx(D,{onClick:b,disabled:f.isPending,children:v}),e[33]=f.isPending,e[34]=b,e[35]=v,e[36]=w):w=e[36];const N=f.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==f.isPending||e[40]!==T?(j=o.jsx(D,{variant:"ghost",onClick:m,disabled:N,children:T}),e[39]=f.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==x||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,x,P]}),e[45]=x,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Is(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Un(),d=As,g=r==="not-found",h=g?Hn:qt;let f;e[0]!==g||e[1]!==i?(f=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=f):f=e[2];const m=f;let c;e[3]!==g||e[4]!==n||e[5]!==s||e[6]!==i?(c=g?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let u;e[8]!==h?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=u):u=e[9];let p;e[10]!==m?(p=o.jsx("h3",{className:"text-lg font-medium",children:m}),e[10]=m,e[11]=p):p=e[11];let S;e[12]!==y?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=S):S=e[13];let x;e[14]!==p||e[15]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[p,S]}),e[14]=p,e[15]=S,e[16]=x):x=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Es,{orgId:a,orgSlug:s}),o.jsx(D,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(D,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==b?(v=o.jsxs(xe,{children:[u,x,b]}),e[22]=u,e[23]=x,e[24]=b,e[25]=v):v=e[25],v}function As(){window.location.href="/"}function Es(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=ne.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Gn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==n?(g=p=>{X.error(p instanceof Error?p.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h);let m;e[11]!==f?(m=()=>f.mutate(),e[11]=f,e[12]=m):m=e[12];const c=!i||f.isPending;let y;e[13]!==f.isPending||e[14]!==n?(y=f.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=f.isPending,e[14]=n,e[15]=y):y=e[15];let u;return e[16]!==m||e[17]!==c||e[18]!==y?(u=o.jsx(D,{onClick:m,disabled:c,children:y}),e[16]=m,e[17]=c,e[18]=y,e[19]=u):u=e[19],u}function Cs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await ne.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let g;e[4]!==i?(g=I=>{X.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[6]=l,e[7]=d,e[8]=g,e[9]=h):h=e[9];const f=nt(h);let m;e[10]!==s?(m=async()=>{const I=await ne.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=m):m=e[11];let c,y;e[12]!==i?(c=()=>{X.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{X.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let u;e[15]!==m||e[16]!==c||e[17]!==y?(u={mutationFn:m,onSuccess:c,onError:y},e[15]=m,e[16]=c,e[17]=y,e[18]=u):u=e[18];const p=nt(u),S=f.isPending||p.isPending;let x;e[19]!==r||e[20]!==a?(x=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let v;e[25]!==b?(v=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let N;e[29]!==w?(N=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=N):N=e[30];let T;e[31]!==v||e[32]!==N?(T=o.jsxs("div",{className:"space-y-2",children:[v,N]}),e[31]=v,e[32]=N,e[33]=T):T=e[33];let j;e[34]!==f?(j=()=>f.mutate(),e[34]=f,e[35]=j):j=e[35];let P;e[36]!==f.isPending||e[37]!==i?(P=f.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=f.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==S||e[40]!==j||e[41]!==P?(_=o.jsx(D,{onClick:j,disabled:S,children:P}),e[39]=S,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==p?(O=()=>p.mutate(),e[43]=p,e[44]=O):O=e[44];let A;e[45]!==p.isPending||e[46]!==i?(A=p.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=p.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==S||e[49]!==O||e[50]!==A?($=o.jsx(D,{variant:"ghost",onClick:O,disabled:S,children:A}),e[48]=S,e[49]=O,e[50]=A,e[51]=$):$=e[51];let R;e[52]!==_||e[53]!==$?(R=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=R):R=e[54];let L;return e[55]!==T||e[56]!==R||e[57]!==x?(L=o.jsxs(xe,{children:[x,T,R]}),e[55]=T,e[56]=R,e[57]=x,e[58]=L):L=e[58],L}function $s(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let g;e[10]!==d?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let h;e[12]!==l||e[13]!==g?(h=o.jsxs("div",{className:"space-y-2",children:[l,g]}),e[12]=l,e[13]=g,e[14]=h):h=e[14];let f;e[15]!==n?(f=n("common.goHome"),e[15]=n,e[16]=f):f=e[16];let m;e[17]!==f?(m=o.jsx(D,{variant:"ghost",onClick:Rs,children:f}),e[17]=f,e[18]=m):m=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==m?(c=o.jsxs(xe,{children:[r,h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=c):c=e[22],c}function Rs(){window.location.href="/"}function Ls(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Ds,e[2]=d):d=e[2];let g;e[3]!==i?(g=_=>{X.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==l||e[6]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[5]=l,e[6]=g,e[7]=h):h=e[7];const f=nt(h);let m;e[8]!==n||e[9]!==s?(m=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=m):m=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let p;e[19]!==u?(p=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=p):p=e[20];let S;e[21]!==y||e[22]!==p?(S=o.jsxs("div",{className:"space-y-2",children:[y,p]}),e[21]=y,e[22]=p,e[23]=S):S=e[23];let x;e[24]!==f?(x=()=>f.mutate(),e[24]=f,e[25]=x):x=e[25];let b;e[26]!==f.isPending||e[27]!==i?(b=f.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=f.isPending,e[27]=i,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==x||e[31]!==b?(v=o.jsx(D,{onClick:x,disabled:f.isPending,children:b}),e[29]=f.isPending,e[30]=x,e[31]=b,e[32]=v):v=e[32];const w=f.isPending;let N;e[33]!==i?(N=i("common.goHome"),e[33]=i,e[34]=N):N=e[34];let T;e[35]!==f.isPending||e[36]!==N?(T=o.jsx(D,{variant:"ghost",onClick:zs,disabled:w,children:N}),e[35]=f.isPending,e[36]=N,e[37]=T):T=e[37];let j;e[38]!==v||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,T]}),e[38]=v,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==S||e[42]!==j||e[43]!==m?(P=o.jsxs(xe,{children:[m,S,j]}),e[41]=S,e[42]=j,e[43]=m,e[44]=P):P=e[44],P}function zs(){window.location.href="/"}function Ds(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Ms(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Fs({orgSlug:t}){const{data:e}=Ms(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(ge.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Cs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Os,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx($s,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:g,actions:h,onDismiss:f,tone:m}=t,c=m===void 0?"neutral":m,y=g||h;let u;e[0]!==c?(u=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=u):u=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(tn,{size:14}),e[2]=p):p=e[2];let S;e[3]!==a||e[4]!==f?(S=o.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:f,children:p}),e[3]=a,e[4]=f,e[5]=S):S=e[5];const x=l&&"flex items-start gap-3",b=d&&"pb-3";let v;e[6]!==x||e[7]!==b?(v=wt("p-4 pr-11",x,b),e[6]=x,e[7]=b,e[8]=v):v=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let N;e[11]!==n?(N=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=N):N=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==N?(P=o.jsxs("div",{children:[N,T,j]}),e[17]=T,e[18]=j,e[19]=N,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==v||e[28]!==w?(A=o.jsxs("div",{className:v,children:[w,O]}),e[26]=O,e[27]=v,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=c,e[34]=$):$=e[34];let R;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==u||e[39]!==S||e[40]!==c?(R=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,S,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=u,e[39]=S,e[40]=c,e[41]=R):R=e[41],R}const qs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${qs[t]}"]`}const Bs=[{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 Ks(t){return Bs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Hs(t,e){return Ks(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Us=on("switcher"),Gs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Js(t,e){return Hs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function Vs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function Ys(){return(await bn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ws(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Us)&&s++<Gs){requestAnimationFrame(a);return}const n=Js(t,e);if(n.length===0){et=!1;return}Ys().then(r=>{r(Vs(t,n)).drive()}).catch(()=>{et=!1})};a()}function Qs(t){return t!=="off"}function Gi(t){if(!t.hasSource)return[];const e=["site-editor"];return Qs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Ji(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:bt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:oe,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:Et,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:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:oe,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:fe,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:We,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:oe,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:fe,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:We,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:fe,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:oe,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:We,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:oe,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:fe,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:We,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:oe,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:fe,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:We,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:oe,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:bt,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:fe,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:We,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:fe,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:oe,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:bt,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:oe,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:Wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let pe="",ye={},jt=!1;function Xs(){if(jt)return pe||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return pe||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Rt(){const t=Xs();return t!==pe&&(pe=t,ye=cn(t)),ye}function Zs(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...ye};ye=r,pe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function eo(t){ye=t,pe=JSON.stringify(t);try{localStorage.setItem(yt,pe),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function to(){const t=C.c(7),e=G.useSyncExternalStore(Zs,Rt,Rt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=no;let r;t[2]!==e?(r=ln.reduce((d,g)=>e[g.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function no(t){ye[t]||eo({...ye,[t]:{seenAt:new Date().toISOString()}})}const Lt=new Map;function dn(t){let e=Lt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Lt.set(t,e)),e}function so(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function oo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>so(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const io=720*60*60*1e3,ao=10080*60*1e3;function ro(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function lo(t){const e=ln[0];if(!e)return null;const s=ro(e.date),a=t-s;return a<0||a>io?null:e}function co(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 uo(t,e){const s=co(t);return s===null?!1:e-s>=ao}function mo(){const t=C.c(46),e=J(),s=ss(),a=wn(),n=nn(),r=!!s,i=a===ae.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:g}=ne.useSession(),{isSeen:h,markSeen:f}=to(),m=oo(6e4);let c,y,u;if(t[3]!==h||t[4]!==m||t[5]!==g?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(c=lo(m),!c){u=null;break e}if(!uo(g?.user?.createdAt,m)){u=null;break e}y=h(c.id)}t[3]=h,t[4]=m,t[5]=g?.user?.createdAt,t[6]=c,t[7]=y,t[8]=u}else c=t[6],y=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(y)return null;let p;t[9]!==c.id||t[10]!==r||t[11]!==f||t[12]!==i||t[13]!==d||t[14]!==e?(p=()=>{f(c.id),Ws(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=f,t[12]=i,t[13]=d,t[14]=e,t[15]=p):p=t[15];const S=p;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const v=c.eyebrow,w=c.title;let N;t[20]!==c.id||t[21]!==f?(N=()=>f(c.id),t[20]=c.id,t[21]=f,t[22]=N):N=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==f||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>f(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=f,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==f||t[31]!==S?(j=c.cta?"href"in c.cta?o.jsx(D,{asChild:!0,size:"sm",onClick:()=>f(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(D,{size:"sm",onClick:S,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=f,t[31]=S,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(fo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==x||t[42]!==b||t[43]!==N||t[44]!==T?(O=o.jsx(sn,{ariaLabel:x,dismissLabel:b,eyebrow:v,title:w,onDismiss:N,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=x,t[42]=b,t[43]=N,t[44]=T,t[45]=O):O=t[45],O}function fo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function go(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(ho)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==d?(g=o.jsx(Yt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=g):g=e[10],g}function ho(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(po)})]},t.label)}function po(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(yo)})]},t.description)}function yo(t){return o.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 xo={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=xo[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function Vi({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const g=await ne.organization.acceptInvitation({invitationId:t.id});if(g.error){X.error(g.error.message),n(!1);return}}catch{X.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}X.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await ne.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await ne.organization.rejectInvitation({invitationId:t.id});if(d.error){X.error(d.error.message),n(!1);return}X.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{X.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(D,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(D,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function bo(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function wo(t){const e=C.c(13),s=t.trim(),{data:a}=ne.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async S=>{const{signal:x}=S,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:x});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const v=await b.json();if(!bo(v))throw new Error("Invalid organization search response");return v},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:g,isFetching:h,isPlaceholderData:f,isError:m}=he(d);let c;e[6]!==g?.items?(c=g?.items??[],e[6]=g?.items,e[7]=c):c=e[7];const y=r&&h,u=r&&f;let p;return e[8]!==m||e[9]!==c||e[10]!==y||e[11]!==u?(p={hits:c,isSearching:y,isStale:u,isError:m},e[8]=m,e[9]=c,e[10]=y,e[11]=u,e[12]=p):p=e[12],p}const So=3,mn=10,vo=440,jo=55;function Yi(t){const e=Math.floor((t-vo)/jo);return Math.min(mn,Math.max(So,e))}function ko(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function To(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function Wi(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const zt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=ge.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Wt(e,zt),n=Array.isArray(s)?s:zt;let r;t[1]!==a?(r=(l,d)=>a(g=>ko(Array.isArray(g)?g:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function No(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function Qi(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function Po(t,e){return{...t,hidden:st(t.hidden,e)}}function Xi(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function Zi(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function ea(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function _o(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=ge.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Wt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(g=>Po(No(g),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const Dt=8,Ze=["all","organizations","projects","chats","connections","actions"],Oo=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Io(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function Ao(t,e){const{org:s}=Tt(),a=ps({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=he({queryKey:Xe.globalSearch(s.id,t,Dt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Dt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Eo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=os(),{remember:g}=gs(i.slug),[h,f]=G.useState(""),[m,c]=G.useState("all");let y;e[0]!==m?(y=M=>m==="all"||m===M,e[0]=m,e[1]=y):y=e[1];const u=y,p=G.useDeferredValue(h),S=Ao(p,u("chats")||u("connections")),x=_o(),{data:b}=jn(),{recent:v}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const N=w,T=hs(N,150),{hits:j}=wo(u("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==v){const M=Io(To(b??[],i),v);let U;e[10]!==j?(U=new Set(j.map(Lo)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=v,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==m||e[15]!==N?(A=m==="all"&&!N?O.filter(M=>M.slug!==i.slug).slice(0,Oo):O,e[12]=O,e[13]=i.slug,e[14]=m,e[15]=N,e[16]=A):A=e[16];const $=A;let R;e[17]!==a?(R=()=>{a(!1),f(""),c("all")},e[17]=a,e[18]=R):R=e[18];const L=R;let I;e[19]!==m?(I=M=>{const U=Ze.indexOf(m);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=m,e[20]=I):I=e[20];const B=I;let H;e[21]!==L?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),L()},e[21]=L,e[22]=H):H=e[22];const z=H;let re;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(re=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:ae.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=re):re=e[26];const Z=re;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const se=ee;let te,V,Y,K,W,Q,E,q,be,we,Se,le,ce,de,ue,me;if(e[29]!==L||e[30]!==B||e[31]!==z||e[32]!==d||e[33]!==S||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==Z||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==g||e[42]!==se||e[43]!==m||e[44]!==P||e[45]!==u||e[46]!==n||e[47]!==h||e[48]!==x){const M=S.filter(Ro),U=S.filter($o);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(Zn,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:ae.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Re;e[73]!==n?(Re=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Re):Re=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(es,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Le;e[76]!==F||e[77]!==Re?(Le={key:"reports",label:Re,icon:ut,to:ae.reports,params:F},e[76]=F,e[77]=Re,e[78]=Le):Le=e[78];let ze;e[79]!==n?(ze=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=ze):ze=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let De;e[82]!==i.slug?(De={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=De):De=e[83];let Me;e[84]!==ze||e[85]!==De?(Me={key:"tasks",label:ze,icon:mt,to:ae.tasks,params:De},e[84]=ze,e[85]=De,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ts,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:ae.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ns,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:ae.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Le||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Le,Me,qe,Ke],e[99]=$e,e[100]=Le,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const xt=ht;V=ls,Se=s,e[105]!==L||e[106]!==a?(le=k=>k?a(!0):L(),e[105]=L,e[106]=a,e[107]=le):le=e[107],e[108]!==n?(ce=n("commandPalette.title"),e[108]=n,e[109]=ce):ce=e[109],e[110]!==n?(de=n("commandPalette.description"),e[110]=n,e[111]=de):de=e[111];let He;e[112]!==m||e[113]!==n?(He=m==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(m)).toLowerCase()}),e[112]=m,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==B||e[118]!==m||e[119]!==h?(Ge=k=>{if(k.key==="Tab"){k.preventDefault(),B(k.shiftKey?-1:1);return}k.key==="Backspace"&&!h&&m!=="all"&&(k.preventDefault(),c("all"))},e[117]=B,e[118]=m,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(ue=o.jsx(cs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:f,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=ue):ue=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==m||e[129]!==n?(Ve=Ze.map(k=>o.jsx("button",{type:"button",role:"radio","aria-checked":m===k,tabIndex:-1,onMouseDown:Co,onClick:()=>c(k),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",m===k?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(k))},k)),e[128]=m,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(me=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=me):me=e[133],te=ds,Y="h-[min(420px,60vh)] max-h-none";let Ye;e[134]!==n?(Ye=n("commandPalette.empty"),e[134]=n,e[135]=Ye):Ye=e[135],e[136]!==Ye?(K=o.jsx(us,{children:Ye}),e[136]=Ye,e[137]=K):K=e[137],e[138]!==z||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==u||e[143]!==n||e[144]!==h||e[145]!==x?(W=u("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(k=>o.jsxs(ie,{value:`org ${k.name} ${k.slug}`,keywords:P.has(k.id)?[h]:void 0,onSelect:()=>z(()=>x(k.slug),"organization"),children:[o.jsx(un,{org:k,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.name}),k.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${k.id}`))}),e[138]=z,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=u,e[143]=n,e[144]=h,e[145]=x,e[146]=W):W=e[146],e[147]!==xt||e[148]!==z||e[149]!==r||e[150]!==u||e[151]!==n?(Q=u("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:xt.map(k=>o.jsxs(ie,{onSelect:()=>z(()=>r({to:k.to,params:k.params}),"destination"),children:[k.icon,o.jsx("span",{children:k.label})]},k.key))}),e[147]=xt,e[148]=z,e[149]=r,e[150]=u,e[151]=n,e[152]=Q):Q=e[152],e[153]!==z||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==g||e[159]!==u||e[160]!==n?(E=u("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(k=>o.jsxs(ie,{value:`project ${k.title}`,onSelect:()=>z(()=>{g(k.id),r({to:ae.projects,params:{org:i.slug,agentId:k.id}})},"project"),children:[o.jsx(fs,{icon:k.icon,name:k.title,"aria-hidden":"true"}),o.jsx("span",{children:k.title})]},k.id))}),e[153]=z,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=g,e[159]=u,e[160]=n,e[161]=E):E=e[161],e[162]!==z||e[163]!==r||e[164]!==F||e[165]!==u||e[166]!==n?(q=u("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ie,{value:n("commandPalette.newProject"),onSelect:()=>z(()=>r({to:ae.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ie,{value:n("commandPalette.inviteTeammate"),onSelect:()=>z(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Qn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ie,{value:n("commandPalette.addConnection"),onSelect:()=>z(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ie,{value:n("commandPalette.settings"),onSelect:()=>z(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(rs,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=z,e[163]=r,e[164]=F,e[165]=u,e[166]=n,e[167]=q):q=e[167],be=u("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(k=>o.jsxs(ie,{value:`${k.title} ${k.id}`,keywords:se,onSelect:()=>z(()=>Z(k),"connection"),children:[o.jsx(ms,{icon:k.icon,name:k.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title})]},`connection:${k.id}`))}),we=u("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(k=>o.jsxs(ie,{value:`${k.title} ${k.id}`,keywords:se,onSelect:()=>z(()=>Z(k),k.type),children:[k.type==="thread"?o.jsx(Xn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title}),k.type==="task"&&k.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:k.key})]},`${k.type}:${k.id}`))}),e[29]=L,e[30]=B,e[31]=z,e[32]=d,e[33]=S,e[34]=r,e[35]=a,e[36]=s,e[37]=Z,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=g,e[42]=se,e[43]=m,e[44]=P,e[45]=u,e[46]=n,e[47]=h,e[48]=x,e[49]=te,e[50]=V,e[51]=Y,e[52]=K,e[53]=W,e[54]=Q,e[55]=E,e[56]=q,e[57]=be,e[58]=we,e[59]=Se,e[60]=le,e[61]=ce,e[62]=de,e[63]=ue,e[64]=me}else te=e[49],V=e[50],Y=e[51],K=e[52],W=e[53],Q=e[54],E=e[55],q=e[56],be=e[57],we=e[58],Se=e[59],le=e[60],ce=e[61],de=e[62],ue=e[63],me=e[64];let ve;e[168]!==te||e[169]!==Y||e[170]!==K||e[171]!==W||e[172]!==Q||e[173]!==E||e[174]!==q||e[175]!==be||e[176]!==we?(ve=o.jsxs(te,{className:Y,children:[K,W,Q,E,q,be,we]}),e[168]=te,e[169]=Y,e[170]=K,e[171]=W,e[172]=Q,e[173]=E,e[174]=q,e[175]=be,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==le||e[206]!==ce||e[207]!==de||e[208]!==ue||e[209]!==me||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:le,title:ce,description:de,children:[ue,me,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=le,e[206]=ce,e[207]=de,e[208]=ue,e[209]=me,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Co(t){return t.preventDefault()}function $o(t){return t.type!=="connection"}function Ro(t){return t.type==="connection"}function Lo(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(zo),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function zo(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ss(!1);function Do(){tt.set(!0)}function Mo(){tt.set(!1)}function Fo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const qo=300*1e3,Bo=2;function Ko(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ho(t,e){return t.count>=Bo&&t.version!==null&&t.version!==e}function Uo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:Jo,refetchInterval:qo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=he(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,g]=G.useState(l);n!==r&&(i(n),g(j=>Ko(j,a,"4.571.0")));const[h,f]=G.useState(null);if(!Ho(d,h))return null;let m;t[2]!==e?(m=e("announcements.version.ariaLabel"),t[2]=e,t[3]=m):m=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let p;t[10]!==e?(p=e("announcements.version.description"),t[10]=e,t[11]=p):p=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(_t,{size:16}),t[12]=S):S=t[12];let x;t[13]!==d.version?(x=()=>f(d.version),t[13]=d.version,t[14]=x):x=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.571.0"}),t[15]=e,t[16]=b):b=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let N;t[20]!==v?(N=o.jsxs(D,{size:"sm",onClick:Go,children:[v,w]}),t[20]=v,t[21]=N):N=t[21];let T;return t[22]!==N||t[23]!==m||t[24]!==c||t[25]!==y||t[26]!==u||t[27]!==p||t[28]!==x||t[29]!==b?(T=o.jsx(sn,{ariaLabel:m,dismissLabel:c,eyebrow:y,title:u,description:p,icon:S,tone:"system",onDismiss:x,footerLeading:b,actions:N}),t[22]=N,t[23]=m,t[24]=c,t[25]=y,t[26]=u,t[27]=p,t[28]=x,t[29]=b,t[30]=T):T=t[30],T}function Go(){return window.location.reload()}async function Jo(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function Vo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Yo=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>Vo(ge.ptBrAnnouncementSeen(t));function Wo(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=ne.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<Yo,h=Pn()==="pt-BR",f=!r&&!!l&&g&&h&&s.language==="en"&&!Ft(l).has(),[m,c]=G.useState(!1),[y,u]=G.useState(!1);!m&&!r&&(c(!0),f&&l&&(Ft(l).mark(),a(Xo),u(!0),St("pt_br_auto_switch_shown")));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=z=>{St("pt_br_auto_switch_closed",{action:z}),u(!1)},t[0]=p):p=t[0];const S=p;let x;t[1]!==a?(x=()=>{a(Qo),S("switch-back")},t[1]=a,t[2]=x):x=t[2];const b=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=z=>!z&&S("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let N;t[5]!==e?(N=e("announcements.ptBr.title"),t[5]=e,t[6]=N):N=t[6];let T;t[7]!==N?(T=o.jsx(Jt,{children:N}),t[7]=N,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(_n,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(D,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>S("ok"),t[21]=$):$=t[21];let R;t[22]!==e?(R=e("announcements.ptBr.ok"),t[22]=e,t[23]=R):R=t[23];let L;t[24]!==R?(L=o.jsx(D,{onClick:$,children:R}),t[24]=R,t[25]=L):L=t[25];let I;t[26]!==A||t[27]!==L?(I=o.jsxs(On,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=I):I=t[28];let B;t[29]!==I||t[30]!==_?(B=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=B):B=t[31];let H;return t[32]!==y||t[33]!==B?(H=o.jsx(Yt,{open:y,onOpenChange:v,children:B}),t[32]=y,t[33]=B,t[34]=H):H=t[34],H}function Qo(t){return{...t,language:"en"}}function Xo(t){return{...t,language:"pt-BR"}}function Zo(t){const e=In(t);return typeof e=="string"?e:void 0}function ei(){return Zo("experiment-pipeline-check"),null}function ti(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;An(s.id,{name:s.name??void 0,slug:s.slug??void 0}),En();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ei,{}),e[0]=a):a=e[0],a}function ni(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let f,m;return r?.panel?m=r.panel:r?.newThread&&!h&&Cn(e.tabId)?(m=e.tabId,l.mainpanel=e.mainpanel,f=e.sidepanel):n?(m=n.tab,n.sidepanel!==void 0&&(f=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!$n(e.tabId)&&(m=e.tabId),f!==void 0&&(l.sidepanel=f),r?.autosend&&(l.autosend=i),{tabId:m,search:l}}const hn="studio:thread-layout:v4",si=50;function pn(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 oi(t,e,s,a=si){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function ii(t,e){t&&yn(oi(Nt(),t,e))}function ai(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ta(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function xn(t){return{queryKey:Xe.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 na(t){const e=C.c(10);let s;e[0]!==t?(s=xn(t),e[0]=t,e[1]=s):s=e[1];const a=he(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function ri(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=li;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let f;e[5]!==h?(f=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=f):f=e[6];let m;e[7]!==n||e[8]!==a||e[9]!==r?(m=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=m):m=e[10];let c;e[11]!==m?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[11]=m,e[12]=c):c=e[12];let y;e[13]!==f||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[f,c]}),e[13]=f,e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let p;e[18]!==l||e[19]!==u?(p=o.jsx(D,{onClick:l,children:u}),e[18]=l,e[19]=u,e[20]=p):p=e[20];let S;e[21]!==r?(S=r("common.goBack"),e[21]=r,e[22]=S):S=e[22];let x;e[23]!==S?(x=o.jsx(D,{variant:"ghost",onClick:d,children:S}),e[23]=S,e[24]=x):x=e[24];let b;e[25]!==x||e[26]!==p?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,x]}),e[25]=x,e[26]=p,e[27]=b):b=e[27];let v;return e[28]!==b||e[29]!==y?(v=o.jsxs(xe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=v):v=e[30],v}function li(){window.location.href="/"}function ci(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(g=s.ctaUrl&&s.ctaLabel?o.jsx(D,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let f;e[11]!==n?(f=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==h||e[14]!==f?(m=o.jsx(D,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:f})}),e[13]=h,e[14]=f,e[15]=m):m=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(D,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let u;e[20]!==y||e[21]!==g||e[22]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,m,y]}),e[20]=y,e[21]=g,e[22]=m,e[23]=u):u=e[23];let p;return e[24]!==u||e[25]!==d?(p=o.jsxs(xe,{children:[r,d,u]}),e[24]=u,e[25]=d,e[26]=p):p=e[26],p}function di(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],he(r)}const ui="/settings/infra-billing";function mi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ui)}function fi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Kn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function gi(){const t=kt(),e=vs(),{org:s}=Tt(),a=Ln({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=is(),l=ks(),d=Ts(),g=Ns(),h=Ps(),f=(u,p=!0)=>t({to:".",search:u,replace:p}),m=()=>f(u=>({...u,sidepanel:!0})),c=(u,p,S)=>{const x=!!d&&d===u;d&&!x&&ii(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const b=x?null:ai(u),v=Xt(s.id).id,w=ni({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:p,decopilotId:v,savedLayout:b,opts:S,autosendValue:as});return h(u,()=>w.search,{virtualMcpId:p,view:{tabId:w.tabId}})};return{openSidePanel:m,setTaskId:c,createNewTask:async(u,p,S)=>{const x=crypto.randomUUID(),b=u??g;try{await e?.create({id:x,virtual_mcp_id:b,...p?{branch:p}:{}})}catch{}c(x,b,{...S,newThread:!0})},openTab:r,closeTab:i}}const hi=new Set(["/$org/","/$org/home"]);function pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:yi},t[0]=e):e=t[0],Zt(e)}function yi(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&hi.has(e)}function xi(){const t=C.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Fo(),[d,g]=xs(),h=Dn(),f=pi(),m=a??"";let c;t[1]!==m?(c=xn(m),t[1]=m,t[2]=c):c=t[2];const y=!!a&&f;let u;t[3]!==c||t[4]!==y?(u={...c,enabled:y},t[3]=c,t[4]=y,t[5]=u):u=t[5],he(u);const{data:p}=ne.useSession(),S=p?.user?.id;let x,b;t[6]!==h?(x=()=>{const E=q=>{if(It(q)&&q.code==="KeyK"){q.preventDefault(),Do();return}if(q.key==="?"&&!Bn(q.target)){q.preventDefault(),r(!0);return}It(q)&&q.code==="BracketLeft"&&h.history.canGoBack()&&(q.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=x,t[8]=b):(x=t[7],b=t[8]),G.useEffect(x,b);let v;t[9]!==a||t[10]!==S?(v=Mn(a,S),t[9]=a,t[10]=S,t[11]=v):v=t[11];const{data:w}=Kt(v),N=w?.id,T=w?.slug,{data:j}=_s(N,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=di(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:bi},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!mi(A),R=N??"",L=T??"";let I;t[13]!==L||t[14]!==R?(I=ys({connectionId:Qt,orgId:R,orgSlug:L}),t[13]=L,t[14]=R,t[15]=I):I=t[15];const B=!!N&&!!T;let H;if(t[16]!==I||t[17]!==B?(H={...I,enabled:B},t[16]=I,t[17]=B,t[18]=H):H=t[18],he(H),(!w||Ot(w)||P||$)&&Mo(),!w){let E;return t[19]!==a?(E=o.jsx(Fs,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(ge.lastOrgSlug())===a&&localStorage.removeItem(ge.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(Fn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(ci,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(ri,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const re=w.logo??null;let Z;t[31]!==w||t[32]!==re?(Z={...w,logo:re},t[31]=w,t[32]=re,t[33]=Z):Z=t[33];let ee;t[34]!==w?(ee=o.jsx(ti,{activeOrg:w}),t[34]=w,t[35]=ee):ee=t[35];let se;t[36]===Symbol.for("react.memo_cache_sentinel")?(se=o.jsx(qn,{}),t[36]=se):se=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(mo,{}),o.jsx(Uo,{})]}),t[37]=te):te=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Eo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let Y;t[41]!==d||t[42]!==g?(Y=d&&o.jsx(bs,{open:!0,onOpenChange:g,source:ws()}),t[41]=d,t[42]=g,t[43]=Y):Y=t[43];let K;t[44]!==n?(K=o.jsx(go,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let W;t[46]===Symbol.for("react.memo_cache_sentinel")?(W=o.jsx(Wo,{}),t[46]=W):W=t[46];let Q;return t[47]!==Z||t[48]!==ee||t[49]!==V||t[50]!==Y||t[51]!==K?(Q=o.jsxs(fi,{org:Z,children:[ee,se,te,V,Y,K,W]}),t[47]=Z,t[48]=ee,t[49]=V,t[50]=Y,t[51]=K,t[52]=Q):Q=t[52],Q}function bi(t){return t.location.pathname}function wi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(js,{children:o.jsx(xi,{})}),t[0]=e):e=t[0],e}const sa=Object.freeze(Object.defineProperty({__proto__:null,default:wi,usePanelActions:gi},Symbol.toStringTag,{value:"Module"}));export{gn as E,Vi as I,qs as L,un as O,wo as a,fn as b,_o as c,Wi as d,Zi as e,Yi as f,gi as g,Qi as h,rn as i,oo as j,ta as k,Qs as l,ea as m,na as n,Do as o,Gi as p,sa as q,No as r,Ji as s,Xi as t,di as u,To as w};
|