decocms 4.565.1 → 4.567.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-BavhHXrm.js → AlertCircle-77Slg1mo.js} +1 -1
- package/dist/client/assets/{AreaChart-CpdR-UAM.js → AreaChart-SE-oSToz.js} +1 -1
- package/dist/client/assets/{ArrowLeft-NHzfDSKs.js → ArrowLeft-0eZGIs9d.js} +1 -1
- package/dist/client/assets/{ArrowUp-D6obKkNl.js → ArrowUp-D3pp3g8x.js} +1 -1
- package/dist/client/assets/{CartesianChart-BuCntSQu.js → CartesianChart-oe8TUIzs.js} +1 -1
- package/dist/client/assets/{CategoricalChart-9YwAdaOL.js → CategoricalChart-D-0Fq-ih.js} +1 -1
- package/dist/client/assets/{CheckCircle-BZC8qNjY.js → CheckCircle-TpvuszDI.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-XtqZtaGN.js → ChevronSelectorVertical-C6Gq0VMA.js} +1 -1
- package/dist/client/assets/{ChevronUp-CP2Q1tno.js → ChevronUp-BtMiI6cM.js} +1 -1
- package/dist/client/assets/{CreditCard01-DSR9reUx.js → CreditCard01-5X4JuL9P.js} +1 -1
- package/dist/client/assets/{Globe04-DsEVRQ8J.js → Globe04-DE5hlmxS.js} +1 -1
- package/dist/client/assets/{Key01-CACSt4gn.js → Key01-BEX3raxr.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Dhqzd5Xp.js → LinkBroken01-ClWYoOJF.js} +1 -1
- package/dist/client/assets/{Minus-CF20rGao.js → Minus-Dqs0K-y6.js} +1 -1
- package/dist/client/assets/{Monitor01-CTh24U4S.js → Monitor01-Dy43NIcG.js} +1 -1
- package/dist/client/assets/{Play-Dl9rHUIQ.js → Play-B9kSRU73.js} +1 -1
- package/dist/client/assets/{Plus-CcxRdpHl.js → Plus-DTA_qyzr.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DG_YV7QB.js → ReferenceLine-HOuLDy67.js} +1 -1
- package/dist/client/assets/{SearchMd-BvpUvADB.js → SearchMd-DODrmRDH.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-B2TVYCJe.js → ShoppingBag01-CK3v09in.js} +1 -1
- package/dist/client/assets/{Sun-CwYfSEKK.js → Sun-BirMDMzO.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C6F9FLuz.js → SwitchHorizontal01-DFMegDqF.js} +1 -1
- package/dist/client/assets/{Tool01-BpRvGDMW.js → Tool01-Dhj9-e2p.js} +1 -1
- package/dist/client/assets/{Tooltip-DyscjpNm.js → Tooltip-DUa9z7L4.js} +1 -1
- package/dist/client/assets/{Trash01-rMYgPi4D.js → Trash01-DlPuy4hk.js} +1 -1
- package/dist/client/assets/{Upload01-CTvUgusS.js → Upload01-B7_UtIIy.js} +1 -1
- package/dist/client/assets/{UserSquare-CeUdUVlp.js → UserSquare-DRzDrNWv.js} +1 -1
- package/dist/client/assets/{Users01-CgIFV9B4.js → Users01-D2MH6X4i.js} +1 -1
- package/dist/client/assets/{XClose-B8ZWakSs.js → XClose-BPpAzkjm.js} +1 -1
- package/dist/client/assets/{Zap-BheFKoJA.js → Zap-CSm2QafG.js} +1 -1
- package/dist/client/assets/{access-gate-DetE2JQz.js → access-gate-VZjzTtj1.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-HS2-iXa_.js → add-connection-dialog-Dlb7QEF0.js} +1 -1
- package/dist/client/assets/agent-app-D-w7piVd.js +1 -0
- package/dist/client/assets/{agent-assets-BVfyM3W2.js → agent-assets-C17EfgRE.js} +1 -1
- package/dist/client/assets/{agent-automation-CFoval4K.js → agent-automation-B4ZBovsD.js} +1 -1
- package/dist/client/assets/{agent-automations-PQlm_1-3.js → agent-automations-qrK0F_qT.js} +1 -1
- package/dist/client/assets/{agent-calendar-JHkSgIaW.js → agent-calendar-DH2mwvW-.js} +1 -1
- package/dist/client/assets/{agent-capabilities-D5dRez_U.js → agent-capabilities-_Toql8Rw.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DpIMd_nf.js → agent-connect-sources-DKscloVB.js} +1 -1
- package/dist/client/assets/agent-deck-sQICWvWi.js +1 -0
- package/dist/client/assets/{agent-e2e-Co6-h6xW.js → agent-e2e-EecJC8x2.js} +1 -1
- package/dist/client/assets/agent-experiments-CYKGvEGA.js +1 -0
- package/dist/client/assets/{agent-file-D2ltAo8E.js → agent-file-iZ4NUGLw.js} +1 -1
- package/dist/client/assets/{agent-hosting-_jnJiyJB.js → agent-hosting-Dv4dOzql.js} +1 -1
- package/dist/client/assets/{agent-icon-WM9Nds86.js → agent-icon-Bw6QCyEx.js} +1 -1
- package/dist/client/assets/agent-library-BHDQegTE.js +1 -0
- package/dist/client/assets/agent-library-file-CVUtuonJ.js +1 -0
- package/dist/client/assets/agent-overview-WvKNJRaS.js +1 -0
- package/dist/client/assets/{agent-releases-Cs9chBHo.js → agent-releases-TATL9kUr.js} +1 -1
- package/dist/client/assets/agent-settings-CXIVbo4Q.js +1 -0
- package/dist/client/assets/{agent-site-editor-CUzXKk_L.js → agent-site-editor-DNv8LivC.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C8pZNRHE.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CsMmLm8L.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-vjIMqLQd.js +1 -0
- package/dist/client/assets/agent-view-Doh3INR0.js +1 -0
- package/dist/client/assets/{agent-view-guard-BxS78jGZ.js → agent-view-guard-DZBM0b8V.js} +1 -1
- package/dist/client/assets/{ai-providers-Bg6XVNeS.js → ai-providers-AE8XVdCE.js} +1 -1
- package/dist/client/assets/{alert-U9tZtWPC.js → alert-CdBC10NR.js} +1 -1
- package/dist/client/assets/{analytics-sections-_Da0sWct.js → analytics-sections-BeJKxwpX.js} +1 -1
- package/dist/client/assets/api-keys-Cbsqw06u.js +1 -0
- package/dist/client/assets/{api-keys-Bj6cZbJj.js → api-keys-Dhr7aXaQ.js} +1 -1
- package/dist/client/assets/{app-editor-DsNvlfaV.js → app-editor-DKFrTznS.js} +1 -1
- package/dist/client/assets/{asset-utils-B5Sq3qKL.js → asset-utils-7GGOgR3V.js} +1 -1
- package/dist/client/assets/{auth-A_dHVlLy.js → auth-DsiBBvOi.js} +1 -1
- package/dist/client/assets/{auth-catchall-C9DBUwY3.js → auth-catchall-BDiLMtRv.js} +1 -1
- package/dist/client/assets/{auth-entry-B2MqWpcF.js → auth-entry-cOo1IIAQ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CwJlT6Oq.js → auth-split-layout-BD7ZQtZI.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Ci98CWsZ.js → authenticate-and-persist-oauth-g4wWRHNx.js} +1 -1
- package/dist/client/assets/{automation-list-row-5R79B6L2.js → automation-list-row-DxL776kN.js} +1 -1
- package/dist/client/assets/{automation-runs-muPpbYEP.js → automation-runs-CLAvbaXa.js} +1 -1
- package/dist/client/assets/{automations-C7djfZR5.js → automations-DTy3O45p.js} +1 -1
- package/dist/client/assets/{autosend-BLwaDfuL.js → autosend-CLDsiYES.js} +1 -1
- package/dist/client/assets/{badge-C8SoiSYZ.js → badge-CQfwGgw6.js} +1 -1
- package/dist/client/assets/{block-document-C7XO3wXa.js → block-document-Ds1SRHrx.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Ct_L2Frv.js → blocks-preview-workspace-context-BjUOv6Gn.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DjNiCspc.js → blocks-tab-states-DTS9heYD.js} +1 -1
- package/dist/client/assets/{blog-schema-Buyn-oQb.js → blog-schema-D0od8ENQ.js} +1 -1
- package/dist/client/assets/{buckets-D-SuQdJV.js → buckets-DJa_BsNC.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BiW3JFW6.js → build-improve-prompt-doc-B3q_lki0.js} +1 -1
- package/dist/client/assets/{calendar-B-_EB2yo.js → calendar-DyqOJ3Yl.js} +1 -1
- package/dist/client/assets/{capability-load-error-DTfH6BCq.js → capability-load-error-BCivHBGk.js} +1 -1
- package/dist/client/assets/{category-editor-BEQyGteX.js → category-editor-CjAyQPuX.js} +1 -1
- package/dist/client/assets/{chart-BgKVrBIO.js → chart-eHX6bECf.js} +1 -1
- package/dist/client/assets/{chat-context-DGEoSZ8g.js → chat-context-DGlvTnKl.js} +1 -1
- package/dist/client/assets/{chat-draft-Hfl-Vt7X.js → chat-draft-lDXn_WJo.js} +1 -1
- package/dist/client/assets/{checkbox-2hVfC1K9.js → checkbox-BicdYBus.js} +1 -1
- package/dist/client/assets/{choose-editor-DoJJP7Y2.js → choose-editor-EWBezbD2.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BhPPAawt.js → cli-auth-success-F_8HAZW5.js} +1 -1
- package/dist/client/assets/{client-icons-D56oac-S.js → client-icons-DajqMwYZ.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DS_lS8up.js → cms-settings-editor-BwSxTAM8.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BOzxBdUW.js → cms-store-drafts-uQohRmgN.js} +1 -1
- package/dist/client/assets/{collapsible-CBkOKy_V.js → collapsible-BUfI2uMB.js} +1 -1
- package/dist/client/assets/{collection-detail-BwgBO9rx.js → collection-detail-DJM8n-Nh.js} +1 -1
- package/dist/client/assets/{collection-display-button-B1FWTXCr.js → collection-display-button-BwDkXlls.js} +1 -1
- package/dist/client/assets/{collection-search-DLMLNhxJ.js → collection-search-CX3zyrl-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-OFbnOu-w.js → collection-table-wrapper-YLWvJmM-.js} +1 -1
- package/dist/client/assets/{collection-tabs-Tp4T2q9Y.js → collection-tabs-By2NKMgI.js} +1 -1
- package/dist/client/assets/{combobox-Bv4H0UoH.js → combobox-CfLj8nnB.js} +1 -1
- package/dist/client/assets/{command-Dnw2pasR.js → command-gJAHYCw0.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-68jW8mRF.js → companion-mcps-section-CfXFRKkt.js} +1 -1
- package/dist/client/assets/{config-LiKo2fo2.js → config-BmEe9Sll.js} +1 -1
- package/dist/client/assets/{connect-BFbtHYxe.js → connect-Bv1wjltN.js} +1 -1
- package/dist/client/assets/{connect-layout-ByOzPiGU.js → connect-layout-BWcLA-tm.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-B7Ld_9Px.js → connect-source-dialog-DSZRQtyq.js} +1 -1
- package/dist/client/assets/{connection-q83jFl6d.js → connection-C_2ILr0W.js} +1 -1
- package/dist/client/assets/{connection-card-BChC3QcL.js → connection-card-CYwtBEJi.js} +1 -1
- package/dist/client/assets/{connection-detail-B9GtoOQz.js → connection-detail-Bou1FrgT.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B8GujYbR.js → connection-form-helpers-TcnlMaZD.js} +1 -1
- package/dist/client/assets/{connection-slug-e_XZGcMc.js → connection-slug-BW3zmzZg.js} +1 -1
- package/dist/client/assets/{connections-BmZaBZ7X.js → connections-k6Hr0O7B.js} +1 -1
- package/dist/client/assets/{content-tab-DEygOE9A.js → content-tab-BZbNqACK.js} +3 -3
- package/dist/client/assets/{context-DixWzk5F.js → context-BrQkqNcb.js} +1 -1
- package/dist/client/assets/{context-menu-sQTRwOW7.js → context-menu-vgijVtOb.js} +1 -1
- package/dist/client/assets/{context-shell-u2FWmfVw.js → context-shell-Ctmm-Xdc.js} +3 -3
- package/dist/client/assets/{core.esm-Dg3ste3x.js → core.esm-BMG4ioMU.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Ddfg1y7k.js → create-organization-dialog-DVfXqnPV.js} +1 -1
- package/dist/client/assets/{device-hint-CyVF9iUZ.js → device-hint-C-9B9AO-.js} +1 -1
- package/dist/client/assets/{discover-CsUnTSVq.js → discover-PXb5-Euj.js} +1 -1
- package/dist/client/assets/{domain-settings-Bv-_QfjI.js → domain-settings-BZ2zcLtt.js} +1 -1
- package/dist/client/assets/{drawer-Cr3trfMB.js → drawer-7PMhL6c9.js} +1 -1
- package/dist/client/assets/{editor-CtNrPORw.js → editor-C31TESmA.js} +1 -1
- package/dist/client/assets/{editor-classes-DGhQ0khm.js → editor-classes-Cf4dLWq3.js} +1 -1
- package/dist/client/assets/{empty-state-CPzwuwQF.js → empty-state-Br5S8FBX.js} +1 -1
- package/dist/client/assets/{empty-state-CQDiVxjd.js → empty-state-CkiFzdzZ.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DYELyAgl.js → experiments-tab-choice-C_eZAy_m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BrWbQJSD.js → extract-connection-data-ByI5vK4V.js} +1 -1
- package/dist/client/assets/{feature-gate-BYSpD9vV.js → feature-gate-Fvf7MS-k.js} +1 -1
- package/dist/client/assets/{feature-paywall-Vs4R367Q.js → feature-paywall-C6MAaSeS.js} +1 -1
- package/dist/client/assets/{feedback-BvXufGHE.js → feedback-uGs2nxfi.js} +1 -1
- package/dist/client/assets/{file-explorer-BnhpA6z2.js → file-explorer-BYGhyWEG.js} +1 -1
- package/dist/client/assets/{file-preview-DUdl3Yo6.js → file-preview-DVtj98bP.js} +1 -1
- package/dist/client/assets/{file-share-button-CVNjiAGQ.js → file-share-button-BRYVxpzc.js} +1 -1
- package/dist/client/assets/{file-type-icon-BbCX4o-i.js → file-type-icon-aib86xB6.js} +1 -1
- package/dist/client/assets/{folder-icon-COq_f1Ug.js → folder-icon-xP_msldQ.js} +1 -1
- package/dist/client/assets/{form-CX9Y8rXx.js → form-BBNzwOZG.js} +1 -1
- package/dist/client/assets/{general-C2M6kUiq.js → general-CeisvnAE.js} +1 -1
- package/dist/client/assets/{github-icon-D5WAOakM.js → github-icon-Caf_vA32.js} +1 -1
- package/dist/client/assets/{home-BomzyME8.js → home-jWQT8tJO.js} +1 -1
- package/dist/client/assets/{home-overview-M5WdT7OK.js → home-overview-C_lPrOCA.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-CFgAFv0C.js → hosted-reconcile-C-wcyta_.js} +1 -1
- package/dist/client/assets/{icon-button-nqkgw44k.js → icon-button-D7c84PdP.js} +1 -1
- package/dist/client/assets/{index-wPGh-4Qn.js → index-2X0wZvq4.js} +1 -1
- package/dist/client/assets/{index-CTGLhdnQ.js → index-B2hAsS12.js} +1 -1
- package/dist/client/assets/{index-D8pFT62M.js → index-B8UywZZm.js} +3 -3
- package/dist/client/assets/{index-D9_88oYJ.js → index-BXDjwwPk.js} +1 -1
- package/dist/client/assets/{index-DAtb5cig.js → index-C98dKlkT.js} +1 -1
- package/dist/client/assets/{index-CLm0YAEW.js → index-CGPEL67z.js} +1 -1
- package/dist/client/assets/{index-BJboiqe7.js → index-CMM5_x0M.js} +1 -1
- package/dist/client/assets/{index-C_uBCqyj.js → index-CNvZmowt.js} +1 -1
- package/dist/client/assets/{index-GzXknTmE.js → index-CkLGogIO.js} +1 -1
- package/dist/client/assets/{index-CH6fvsN5.js → index-CqcoXuFg.js} +1 -1
- package/dist/client/assets/{index-B-SSEV3y.js → index-DJTz8tA2.js} +1 -1
- package/dist/client/assets/{index-BI_4p3rJ.js → index-DqnMzkHt.js} +1 -1
- package/dist/client/assets/{index-C7fe-3-1.js → index-DrT_mubP.js} +1 -1
- package/dist/client/assets/{index-DsP4hX0b.js → index-qZbv6YO4.js} +1 -1
- package/dist/client/assets/{index-C6icdhcm.js → index-rV6-HlJv.js} +1 -1
- package/dist/client/assets/{index-DX6T00mS.js → index-rbq2RwK4.js} +1 -1
- package/dist/client/assets/{index-redirect-DNhgvlnT.js → index-redirect-DCqW-S58.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BCA8pHQ9.js → infiniteQueryObserver-BGhionND.js} +1 -1
- package/dist/client/assets/{infra-billing-tTGuSBOr.js → infra-billing-CkEQLhps.js} +1 -1
- package/dist/client/assets/{input-DzvNX6KE.js → input-30s27Dwt.js} +1 -1
- package/dist/client/assets/{input-CS6hOcXP.js → input-DE1KZAH4.js} +3 -3
- package/dist/client/assets/{integration-icon-oVgUnqWm.js → integration-icon-DXRPTOXy.js} +1 -1
- package/dist/client/assets/{jira-icon-DpVhNd3p.js → jira-icon-CfexjHAg.js} +1 -1
- package/dist/client/assets/{label-DyJSQ7-Z.js → label-bffvb9RR.js} +1 -1
- package/dist/client/assets/{layout-uNVzsDnw.js → layout-DUb1_0Na.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DX51gRsB.js → legacy-agents-deep-CGYaMIvK.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-acRLIQQu.js → legacy-main-redirect-DTIlt7DJ.js} +1 -1
- package/dist/client/assets/library-KpfW-byA.js +1 -0
- package/dist/client/assets/{library-tab-Daw4myox.js → library-tab-ChfMhJEt.js} +1 -1
- package/dist/client/assets/{login-Cayh2Ab3.js → login-oQzZnf04.js} +1 -1
- package/dist/client/assets/{markdown-h9PNnEh6.js → markdown-C594pPG2.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CQuQ-XsR.js → mcp-app-renderer-BgKMzsSF.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BJRs38bR.js → mcp-oauth-BzKawp-_.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B7rGQlv9.js → mcp-oauth-Dm95e807.js} +1 -1
- package/dist/client/assets/{members-CdshZLmo.js → members-DEZJ5Mkk.js} +1 -1
- package/dist/client/assets/{memory-DJgsUgS2.js → memory-D8k1PjtE.js} +1 -1
- package/dist/client/assets/{mock-board-B2foCBkp.js → mock-board-DbSEkLmB.js} +3 -3
- package/dist/client/assets/{monaco-editor-Cjb9-6hs.js → monaco-editor-Cp-Ik4oF.js} +1 -1
- package/dist/client/assets/{monitoring-cw60w70o.js → monitoring-DcVl24hV.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DUQcmnd2.js → monitoring-stats-row-do-o5vGg.js} +1 -1
- package/dist/client/assets/{multi-select-PFXUkRJa.js → multi-select-CTRCP8n_.js} +1 -1
- package/dist/client/assets/{mustache-DYLtwKk5.js → mustache-ezjY74jH.js} +1 -1
- package/dist/client/assets/{named-rule-view-CMSveLhT.js → named-rule-view-DvHwI-Uj.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CkpxzAtO.js → new-project-dialog-C8Uv8Lu7.js} +1 -1
- package/dist/client/assets/{oauth-callback-BN5rMV5w.js → oauth-callback-CUY5LMrV.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BNpWukqC.js → oauth-callback-ai-provider-BM4j1Kp6.js} +1 -1
- package/dist/client/assets/{oauth-consent-CFvEz3rr.js → oauth-consent-CGVwKR_T.js} +1 -1
- package/dist/client/assets/{onboarding-CcWFl6rw.js → onboarding-Rp6hEouh.js} +1 -1
- package/dist/client/assets/{openai-conversation-BwEhAFIx.js → openai-conversation-DEpsjI9o.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bbojv3r5.js → optimistic-project-sidebar-views-DWyqj7gv.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Bsfg1ZCB.js → order-monitor-day-Bu3YI8SD.js} +1 -1
- package/dist/client/assets/{organization-choice-DzLKhvgC.js → organization-choice-CH8EbPmN.js} +1 -1
- package/dist/client/assets/{orgs-DzDCfdd2.js → orgs-Rdz1cKF2.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DxED_LsY.js → own-accounts-section-B5fmcBw0.js} +1 -1
- package/dist/client/assets/{pair-BqxIn6Y_.js → pair-xiFs456g.js} +1 -1
- package/dist/client/assets/{parse-sections-Cu3Ael-d.js → parse-sections-CWxm7mRm.js} +3 -3
- package/dist/client/assets/{plan-BwTvKeoR.js → plan-iqz5I5FG.js} +1 -1
- package/dist/client/assets/{plan-ladder-Nrfbc5fv.js → plan-ladder-5XW4hCzP.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BTqlywv2.js → plan-usage-card-Cj9Gz5rK.js} +1 -1
- package/dist/client/assets/{popover-Bc0Osxls.js → popover-Bcm8q-UM.js} +1 -1
- package/dist/client/assets/{post-calendar-Cj1rSs4t.js → post-calendar-C-wpEVEt.js} +1 -1
- package/dist/client/assets/{post-editor-CB2rddqd.js → post-editor-DSrYz5eu.js} +1 -1
- package/dist/client/assets/{preview-content-CB9eYnQK.js → preview-content-BZTSsgR7.js} +1 -1
- package/dist/client/assets/{preview-dialog-DB7-jTmO.js → preview-dialog-Si16X-hs.js} +1 -1
- package/dist/client/assets/{preview-panel-B_W92FeD.js → preview-panel-BUZ06et3.js} +1 -1
- package/dist/client/assets/preview-tab-IspVWI2P.js +551 -0
- package/dist/client/assets/{product-picker-dialog-BkNY0_GA.js → product-picker-dialog-QdVrFrEF.js} +1 -1
- package/dist/client/assets/{profile-Ctw12CJ6.js → profile-BU9rPDry.js} +1 -1
- package/dist/client/assets/{project-app-view-BUgKvzjP.js → project-app-view-BBFj0BFi.js} +1 -1
- package/dist/client/assets/{project-apps-OqNLxpWb.js → project-apps-J9B-3GYC.js} +1 -1
- package/dist/client/assets/{project-icon-D_-oKizr.js → project-icon-BYuH9rQ-.js} +1 -1
- package/dist/client/assets/{project-index-Dqo3lK4y.js → project-index-DAfZ854O.js} +1 -1
- package/dist/client/assets/project-reports-ByPdonNL.js +1 -0
- package/dist/client/assets/{project-sidebar-views-BIhw1vTs.js → project-sidebar-views-Czma7tbo.js} +1 -1
- package/dist/client/assets/project-tasks-Da5LxTaa.js +1 -0
- package/dist/client/assets/{projects-BTc2uvLZ.js → projects-DHRuNCso.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BO8xkUWT.js → projects-empty-state-DAINcqhx.js} +1 -1
- package/dist/client/assets/{prompts-DuFnMTdK.js → prompts-BwCKANv5.js} +1 -1
- package/dist/client/assets/record-editor-CBUfhtyf.js +1 -0
- package/dist/client/assets/{redirect-editor-DVXp876P.js → redirect-editor-DKgcJLei.js} +1 -1
- package/dist/client/assets/{reports-Dv36rH_a.js → reports-B-KM0N71.js} +1 -1
- package/dist/client/assets/reports-BOoYfaIC.js +1 -0
- package/dist/client/assets/{reports-onboarding-BaBC6lkq.js → reports-onboarding-lrKJ48LY.js} +1 -1
- package/dist/client/assets/{reports-tab-Dixc59hm.js → reports-tab-7YQe_lby.js} +2 -2
- package/dist/client/assets/repositories-DHNSFbbH.js +1 -0
- package/dist/client/assets/{repositories-CBz0Kfvj.js → repositories-DZ-YNWPW.js} +1 -1
- package/dist/client/assets/{repository-binding-BgpHTQa3.js → repository-binding-DtOS-5pr.js} +1 -1
- package/dist/client/assets/{repository-picker-DxnB6y8P.js → repository-picker-BkanTJ3i.js} +1 -1
- package/dist/client/assets/{require-capability-rIoksLSL.js → require-capability-DJA2DKIk.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BPTXO06k.js → required-auth-layout-FfGW_C4w.js} +1 -1
- package/dist/client/assets/{reset-password-Bbozq7HR.js → reset-password-Do7rzjnV.js} +1 -1
- package/dist/client/assets/{resizable-DHZRSfuo.js → resizable-C3wpOoRo.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CQ5UCjTa.js → resolve-tab-icon-D0LRqEAN.js} +1 -1
- package/dist/client/assets/{review-settings-Ca5wNyAg.js → review-settings-Dknq5J3l.js} +1 -1
- package/dist/client/assets/{role-color-DaNs5ahF.js → role-color-C15OiMK-.js} +1 -1
- package/dist/client/assets/{roles-DWA1nSJR.js → roles-BnyT0Tpg.js} +1 -1
- package/dist/client/assets/route-D6Y4UL2U.js +1 -0
- package/dist/client/assets/{route-Bn0Zg4Y6.js → route-cyGY1xFk.js} +1 -1
- package/dist/client/assets/{route-Br6B1RCL.js → route-wsTyUIFW.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-KNW6PNmy.js → sandbox-lifecycle-context-CTE-NRJ8.js} +1 -1
- package/dist/client/assets/{schema-Czvp_Lwx.js → schema-BeGOWHqJ.js} +1 -1
- package/dist/client/assets/{schema-CTKQWjpO.js → schema-HsTF1Pc5.js} +1 -1
- package/dist/client/assets/{scroll-area-mSNTFn2P.js → scroll-area-C4JxE3Sd.js} +1 -1
- package/dist/client/assets/{search-input-BFuc9oQg.js → search-input-CqVCmKRX.js} +1 -1
- package/dist/client/assets/{search-toggle-CQD7JD66.js → search-toggle-2zm3S8SV.js} +1 -1
- package/dist/client/assets/{secret-picker-DQnAib0F.js → secret-picker-BWL5LPg8.js} +1 -1
- package/dist/client/assets/{secrets-DBF3k11O.js → secrets-tbMtsvU-.js} +1 -1
- package/dist/client/assets/{section-array-field-DvmsCB7P.js → section-array-field-DAQuFQGC.js} +1 -1
- package/dist/client/assets/{sections-BBJqTxGW.js → sections-BlIgOACC.js} +1 -1
- package/dist/client/assets/sections-editor-BW_YSgr6.js +1 -0
- package/dist/client/assets/{select-o79Ct_ay.js → select-74xFBRwJ.js} +1 -1
- package/dist/client/assets/{select-model-Bb6eOMs-.js → select-model-DhRUUoEu.js} +1 -1
- package/dist/client/assets/{seo-editor-BE13UypD.js → seo-editor-Ckanf0Y7.js} +1 -1
- package/dist/client/assets/{separator-DMd7UEiq.js → separator-oNbzaXZp.js} +1 -1
- package/dist/client/assets/settings-tab-DHUT_FZr.js +1 -0
- package/dist/client/assets/{sheet-DzHWnq_T.js → sheet-DSOCEYQs.js} +1 -1
- package/dist/client/assets/{shell-layout-DP24kzbV.js → shell-layout-DLOpHw0Q.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CecQb3Ga.js → site-draft-actions-DZN15MLN.js} +1 -1
- package/dist/client/assets/{site-draft-view-dNLIex4F.js → site-draft-view-M5zMgyWp.js} +1 -1
- package/dist/client/assets/site-editor-CQZ_UVRr.js +1 -0
- package/dist/client/assets/{site-editor-toast-Aeb7soFG.js → site-editor-toast-BU0n_ImS.js} +1 -1
- package/dist/client/assets/{skills-D2_FfMjv.js → skills-BNUPWCHo.js} +1 -1
- package/dist/client/assets/{slider-Dh1rUkk7.js → slider-COhKeoXK.js} +1 -1
- package/dist/client/assets/{sortable.esm-BeVlNSdK.js → sortable.esm-DcEMfWKZ.js} +1 -1
- package/dist/client/assets/{sso-BfMn38Ls.js → sso-gKduWE5w.js} +1 -1
- package/dist/client/assets/{suggestion-D7zzeZOU.js → suggestion-tumipUUi.js} +1 -1
- package/dist/client/assets/{switch-BaIjfvqD.js → switch-DhJh_HPi.js} +1 -1
- package/dist/client/assets/{synced-repos-BP9uEFMS.js → synced-repos-n432_4GJ.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CVcm827m.js → tab-icon-glyph-P5ldYfjO.js} +1 -1
- package/dist/client/assets/{table-_XF-prXn.js → table-BsHAPl3y.js} +1 -1
- package/dist/client/assets/{tabs-CzXyAmJC.js → tabs-ChqaRicq.js} +1 -1
- package/dist/client/assets/{task-board-HVkUhR2P.js → task-board-BEneHA34.js} +1 -1
- package/dist/client/assets/{task-route-B3pI7dth.js → task-route-P15E5tiK.js} +1 -1
- package/dist/client/assets/{task-status-yRMe4nbp.js → task-status-C56yYxCa.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Du7Elnb7.js → taskboard-analytics-sEKNVpnd.js} +1 -1
- package/dist/client/assets/{tasks-BzhoYnpL.js → tasks-BGXHV-F9.js} +1 -1
- package/dist/client/assets/tasks-Du9Lvkep.js +1 -0
- package/dist/client/assets/{textarea-B05kUdob.js → textarea-DB65Cb4P.js} +1 -1
- package/dist/client/assets/{thread-analytics-BfeByGR2.js → thread-analytics-DBVrKrEw.js} +1 -1
- package/dist/client/assets/{thread-intent-BIRE7Qtk.js → thread-intent-CWn1HmtU.js} +1 -1
- package/dist/client/assets/{thread-route-CZ8MMB_J.js → thread-route-BYTJQqVq.js} +1 -1
- package/dist/client/assets/{thread-route-Cn39v6pB.js → thread-route-BjJwVBtH.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D65WuUvv.js → thread-sheet-body-D86XTeGF.js} +1 -1
- package/dist/client/assets/{time-range-picker-DzKmFLJB.js → time-range-picker-NUSfs4B1.js} +1 -1
- package/dist/client/assets/{toggle-group-HpKtAH98.js → toggle-group-C49gUsJz.js} +1 -1
- package/dist/client/assets/{tool-namespace-DxYdT3r_.js → tool-namespace-Bj1cvBDc.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CnBqlG8R.js → tool-set-selector-Bs7M3rhU.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-TYsxy9yJ.js → toolbar-icon-button-D-DoL4BQ.js} +1 -1
- package/dist/client/assets/{tooltip-BgCnMV2H.js → tooltip-CSjs8EXx.js} +1 -1
- package/dist/client/assets/{tooltipContext-BRYDLqxt.js → tooltipContext-D6EVwPYC.js} +1 -1
- package/dist/client/assets/{track-BDp_1Hit.js → track-iPianFfO.js} +1 -1
- package/dist/client/assets/{types-D8M__V__.js → types-Cr7M9oTi.js} +1 -1
- package/dist/client/assets/{url-slug-Bsw_pMhA.js → url-slug-DYxjfT2K.js} +1 -1
- package/dist/client/assets/{usage-stats-DJLHvs3H.js → usage-stats-QKrG0Chq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-F8TOugyU.js → use-ai-providers-BvE5F9lZ.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BRkF3nZ-.js → use-apply-named-rule-CI1WcDAo.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CLDGXLQz.js +1 -0
- package/dist/client/assets/{use-automations-EsbplC7e.js → use-automations-C6CsqXzM.js} +1 -1
- package/dist/client/assets/{use-autosave-BG4nXiOR.js → use-autosave-DXTXn5fk.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DA_MqDc2.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-CQ-6yLaB.js → use-chat-layout-state-C7mDb3bl.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-CiGJc3Qg.js → use-cms-publish-actions-CQy1zqVQ.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ClTD8ccL.js → use-connect-companion-FoCT7yyy.js} +1 -1
- package/dist/client/assets/{use-connection-DCYGUl-Y.js → use-connection-Cbht658s.js} +1 -1
- package/dist/client/assets/{use-content-sync-CoOj2Ul7.js → use-content-sync--RnYhndo.js} +1 -1
- package/dist/client/assets/{use-copy-L2-IdJ_Y.js → use-copy-pqG4JWZ9.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DPCm9If2.js → use-date-fns-locale-LBGPcKQF.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DWtRBliW.js → use-debounced-autosave-BhHBDt6n.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Dn9biZK4.js → use-debounced-value-DZeaw_xf.js} +1 -1
- package/dist/client/assets/{use-deco-credits-dZ-Tevsi.js → use-deco-credits-DRZjLOnu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKMPTK-j.js → use-decopilot-events-B4_GF30e.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DxUOloiw.js → use-delete-connection-BwZvQv2v.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-_7fnOeiD.js → use-deployment-admin-CWBM5pU4.js} +1 -1
- package/dist/client/assets/{use-entitlements-BB4qLcGz.js → use-entitlements-DRzAxQMt.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D8KiT4ue.js → use-fast-preview-draft-url-CLbSHMWD.js} +1 -1
- package/dist/client/assets/{use-file-configs-c0RGBFjk.js → use-file-configs-Cbnx7meP.js} +1 -1
- package/dist/client/assets/{use-id-selection-CmywK9L9.js → use-id-selection-Bo8PJDCH.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BHnwr1_f.js → use-inbox-feed-CbhFgNvg.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CM4CmzMp.js → use-infinite-scroll-D2U3wOff.js} +1 -1
- package/dist/client/assets/{use-join-requests-DbFDM92p.js → use-join-requests-IG9tsdHd.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Xv2NwPm3.js → use-main-panel-tabs-z25jEKcZ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-irD2t1-7.js → use-mcp-auth-status-DBT7VWeT.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CqE4Ghrf.js → use-mcp-client-IDMULkw-.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-SlwHiJ8X.js → use-mcp-prompts-DdK4Oz96.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BwZkbv7p.js → use-mcp-tools-Dua9SLd1.js} +1 -1
- package/dist/client/assets/{use-mobile-EwBUtNij.js → use-mobile-C9EJZpJe.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DIQrtI4I.js → use-move-blocks-RdGjZI5s.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ByCAg0It.js → use-navigate-to-agent-CnITDZ1K.js} +1 -1
- package/dist/client/assets/{use-org-fs-CZ6M3p96.js → use-org-fs-D39JXIqn.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DSYvITnH.js → use-org-repo-syncs-CaKxuApg.js} +1 -1
- package/dist/client/assets/{use-org-sso-BQNy4M1M.js → use-org-sso-DHFjLEgz.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B6zxeTvg.js → use-organization-settings-DNsCw29W.js} +1 -1
- package/dist/client/assets/{use-project-scope-BmxYOSqD.js → use-project-scope-BDLA_MFt.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CMc3bDPy.js → use-recent-apps-DiJWCjqp.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Bz_fmb8r.js → use-reports-diagnostic-DIEvib1u.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Bcmjy8_y.js → use-sandbox-events-BFY14jyB.js} +1 -1
- package/dist/client/assets/{use-secrets-D3u_mrII.js → use-secrets-CCi4Nf5b.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-RT0rIB3U.js → use-section-preview-base-BDzVvnhP.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BWIgVYHH.js → use-sidebar-collapsed-BUc8VCoH.js} +1 -1
- package/dist/client/assets/{use-tags-C_S8Ff1f.js → use-tags-DVR6me46.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BCLzvxv7.js → use-task-board-analytics-DN7o6q3R.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BQW5hXik.js → use-task-board-events-D0AhUaeo.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B6Z2gJgd.js → use-task-board-item-prs-C8FVkZ-C.js} +1 -1
- package/dist/client/assets/{use-task-board-items-B3aJ_5y5.js → use-task-board-items-CdM5j7aW.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Dr1CEZWZ.js → use-task-board-prompts-C-FdeWq2.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CdWilbXi.js → use-task-metadata-CRegh7J_.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B4Zce4lE.js → use-thread-outputs-WXqq1m_V.js} +1 -1
- package/dist/client/assets/{use-voice-input-ADzQEEIx.js → use-voice-input-8QaSlWvq.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CVYcell7.js +1 -0
- package/dist/client/assets/{useQueries-sl3HeH6v.js → useQueries-ZkLHF4yp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kNSTEkih.js +1 -0
- package/dist/client/assets/{users-ChLpJ4P2.js → users-CmySmLhu.js} +1 -1
- package/dist/client/assets/{utils-ymd1FJWf.js → utils-DJ4kGZR9.js} +1 -1
- package/dist/client/assets/{variant-calendar-Cs7cI_1m.js → variant-calendar-Dp3dcJps.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-1piR_ouW.js → variant-matcher-override-Bg1xLD4H.js} +1 -1
- package/dist/client/assets/{view-header-DjtjUnvm.js → view-header-BT81K0Rv.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BwBYFvbj.js → virtual-mcp-R0xcD8OP.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BoqhatUL.js → watch-sse-pool-BBUNHexJ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/studio-modules/v1/wireframe.js +53 -45
- package/dist/server/cli.js +63 -63
- package/dist/server/server.js +587 -587
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Cj5VRE9N.js +0 -1
- package/dist/client/assets/agent-deck-C8zPFh-t.js +0 -1
- package/dist/client/assets/agent-experiments-DTpS9tX-.js +0 -1
- package/dist/client/assets/agent-library-D7usyBbZ.js +0 -1
- package/dist/client/assets/agent-library-file-BctrjiTr.js +0 -1
- package/dist/client/assets/agent-overview-0_ctMLbb.js +0 -1
- package/dist/client/assets/agent-settings-V07gT5Cf.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CwFZJgDv.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B-zSDz5I.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DtjBE5NW.js +0 -1
- package/dist/client/assets/agent-view-VjGFcOmA.js +0 -1
- package/dist/client/assets/api-keys-B1FZ7y5P.js +0 -1
- package/dist/client/assets/library-CxZb-jUS.js +0 -1
- package/dist/client/assets/preview-tab-6TAM9aA1.js +0 -551
- package/dist/client/assets/project-reports-wHT0lgrT.js +0 -1
- package/dist/client/assets/project-tasks-CsGsl0Ue.js +0 -1
- package/dist/client/assets/record-editor-DwEzP7FO.js +0 -1
- package/dist/client/assets/reports-CM-guqFW.js +0 -1
- package/dist/client/assets/repositories-B1FKGPtG.js +0 -1
- package/dist/client/assets/route-CFGDEN28.js +0 -1
- package/dist/client/assets/sections-editor-CxLQrocH.js +0 -1
- package/dist/client/assets/settings-tab-DNa3VCcv.js +0 -1
- package/dist/client/assets/site-editor-Z3fmTiRV.js +0 -1
- package/dist/client/assets/tasks-BtYoq0Uy.js +0 -1
- package/dist/client/assets/use-ask-in-chat-C9KFi3ct.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BOjb1YoC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C3wEWRY0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-mTZwKUMV.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-D8pFT62M.js";import{a1 as we}from"./agent-icon-WM9Nds86.js";import{S as Ee}from"./scroll-area-mSNTFn2P.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-Cu3Ael-d.js";import{Z as Xe,A as et}from"./blocks-tab-states-DjNiCspc.js";import{L as Fe}from"./label-DyJSQ7-Z.js";import{S as Ce}from"./switch-BaIjfvqD.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-o79Ct_ay.js";import{c as nt,u as rt}from"./hosted-reconcile-CFgAFv0C.js";import{b as Ke}from"./Tool01-BpRvGDMW.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-Aeb7soFG.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-B8UywZZm.js";import{a1 as we}from"./agent-icon-Bw6QCyEx.js";import{S as Ee}from"./scroll-area-C4JxE3Sd.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-CWxm7mRm.js";import{Z as Xe,A as et}from"./blocks-tab-states-DTS9heYD.js";import{L as Fe}from"./label-bffvb9RR.js";import{S as Ce}from"./switch-DhJh_HPi.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-74xFBRwJ.js";import{c as nt,u as rt}from"./hosted-reconcile-C-wcyta_.js";import{b as Ke}from"./Tool01-Dhj9-e2p.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-BU0n_ImS.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,fN as m}from"./index-
|
|
1
|
+
import{c as p,m as d,j as f,fN as m}from"./index-B8UywZZm.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-B8UywZZm.js";import{V as a}from"./index-CqcoXuFg.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,f7 as S,ek as $,aQ as w,f8 as C,el as z,f9 as k,b2 as R,em as B}from"./index-
|
|
1
|
+
import{c as n,m,j as i,f7 as S,ek as $,aQ as w,f8 as C,el as z,f9 as k,b2 as R,em as B}from"./index-B8UywZZm.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(k,{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(R,{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 D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as Sn}from"./index-D8pFT62M.js";import{t as Rt}from"./Globe04-DsEVRQ8J.js";import{i as wn,s as Z}from"./UserSquare-CeUdUVlp.js";import{u as vn}from"./use-deployment-admin-_7fnOeiD.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Tn,S as kn,F as at,a7 as Nn,H as _n,ax as Pn,n as yt,h as An,ay as In,m as Cn,az as En,aA as On}from"./agent-icon-WM9Nds86.js";import{s as $n}from"./XClose-B8ZWakSs.js";import{u as Ln,a as Dn}from"./use-project-scope-BmxYOSqD.js";import{u as zt,a as Rn,A as zn}from"./autosend-BLwaDfuL.js";import{i as se}from"./CheckCircle-BZC8qNjY.js";import{i as bt}from"./Monitor01-CTh24U4S.js";import{i as Fe}from"./Zap-BheFKoJA.js";import{s as xt}from"./Plus-CcxRdpHl.js";import{a as Fn}from"./Tool01-BpRvGDMW.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-Dnw2pasR.js";import{I as Hn}from"./integration-icon-oVgUnqWm.js";import{P as Un}from"./project-icon-D_-oKizr.js";import{a as Jn}from"./use-navigate-to-agent-ByCAg0It.js";import{a as Gn,m as Vn}from"./use-mcp-client-CqE4Ghrf.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-CkpxzAtO.js";import{S as Xn,u as Zn}from"./thread-intent-BIRE7Qtk.js";import{R as es}from"./required-auth-layout-BPTXO06k.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-CZ8MMB_J.js";import{u as is}from"./use-org-sso-BQNy4M1M.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let S;e[27]!==d?(S=()=>d.mutate(),e[27]=d,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==d.isPending||e[34]!==S||e[35]!==v?(w=s.jsx(z,{onClick:S,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=S,e[35]=v,e[36]=w):w=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==w||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,T]}),e[42]=w,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function St(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?wn:kt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(S=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=S):S=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==S?(v=s.jsxs(ae,{children:[u,x,S]}),e[22]=u,e[23]=x,e[24]=S,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=s.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,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 k;e[29]!==w?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=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 g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let S;e[26]!==d.isPending||e[27]!==i?(S=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==S?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:S}),e[29]=d.isPending,e[30]=x,e[31]=S,e[32]=v):v=e[32];const w=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:w,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=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 o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(St,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",S=m&&"pb-3";let v;e[6]!==x||e[7]!==S?(v=mt("p-4 pr-11",x,S),e[6]=x,e[7]=S,e[8]=v):v=e[8];let w;e[9]!==c?(w=c&&s.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=w):w=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==w?(I=s.jsxs("div",{className:v,children:[w,_]}),e[26]=_,e[27]=v,e[28]=w,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"data-slot":"announcement-card","data-tone":l,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,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={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 qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{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 Ss(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ws(t,e){return Ss(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return ws(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(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:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,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:at,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:Nn,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:ft,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:Z,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:bt,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:Z,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,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:Fe,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:Z,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:se,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:Fe,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:se,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:Z,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:Fe,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:Z,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:se,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:Fe,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:Z,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:se,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:Fe,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:Z,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:at,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:se,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:ft,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:Fe,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:se,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:Z,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:at,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:Z,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:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,wt,wt);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const v=l.eyebrow,w=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==S||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:S,eyebrow:v,title:w,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=S,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.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 jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const w=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==S||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==w||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let Se;e[117]!==h||e[118]!==r||e[119]!==$?(Se=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=Se):Se=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let we;e[122]!==o?(we=o("commandPalette.newProject"),e[122]=o,e[123]=we):we=e[123];let ve;e[124]!==we?(ve=s.jsx("span",{children:we}),e[124]=we,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==Se||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:Se,children:[Ze,ve]}),e[126]=xe,e[127]=Se,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=S,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=w,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.565.1")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.565.1"}),t[15]=e,t[16]=S):S=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=s.jsx(ht,{size:14}),t[19]=w):w=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,w]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==S?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=S,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const S=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==S||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:S,children:_}),t[18]=S,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[w,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function So(t,e){t&&Vt(xo(ut(),t,e))}function wo(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(t){return{queryKey:Ve.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 ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=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]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let S;e[25]!==x||e[26]!==g?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,S]}),e[28]=S,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=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 o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(Sn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&So(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const S=x?null:wo(u),v=Lt(n.id).id,w=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:S,opts:h,autosendValue:zn});return y(u,()=>w.search,{virtualMcpId:g,view:{tabId:w.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),S=u??f;try{await e?.create({id:x,virtual_mcp_id:S,...g?{branch:g}:{}})}catch{}l(x,S,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.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=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,S;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},S=[y],t[6]=y,t[7]=x,t[8]=S):(x=t[7],S=t[8]),G.useEffect(x,S);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:w}=Nt(v),k=w?.id,j=w?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!w||gt(w)||P||O)&&Zs(),!w){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(w)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==w.name?(L=s.jsx(yn,{orgName:w.name}),t[21]=w.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==w.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:w.slug}),t[23]=w.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:T.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=w.logo??null;let q;t[31]!==w||t[32]!==te?(q={...w,logo:te},t[31]=w,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==w?(K=s.jsx(po,{activeOrg:w}),t[34]=w,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};
|
|
1
|
+
import{c as D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as Sn}from"./index-B8UywZZm.js";import{t as Rt}from"./Globe04-DE5hlmxS.js";import{i as wn,s as Z}from"./UserSquare-DRzDrNWv.js";import{u as vn}from"./use-deployment-admin-CWBM5pU4.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Tn,S as kn,F as at,a7 as Nn,H as _n,ax as Pn,n as yt,h as An,ay as In,m as Cn,az as En,aA as On}from"./agent-icon-Bw6QCyEx.js";import{s as $n}from"./XClose-BPpAzkjm.js";import{u as Ln,a as Dn}from"./use-project-scope-BDLA_MFt.js";import{u as zt,a as Rn,A as zn}from"./autosend-CLDsiYES.js";import{i as se}from"./CheckCircle-TpvuszDI.js";import{i as bt}from"./Monitor01-Dy43NIcG.js";import{i as Fe}from"./Zap-CSm2QafG.js";import{s as xt}from"./Plus-DTA_qyzr.js";import{a as Fn}from"./Tool01-Dhj9-e2p.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-gJAHYCw0.js";import{I as Hn}from"./integration-icon-DXRPTOXy.js";import{P as Un}from"./project-icon-BYuH9rQ-.js";import{a as Jn}from"./use-navigate-to-agent-CnITDZ1K.js";import{a as Gn,m as Vn}from"./use-mcp-client-IDMULkw-.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-C8Uv8Lu7.js";import{S as Xn,u as Zn}from"./thread-intent-CWn1HmtU.js";import{R as es}from"./required-auth-layout-FfGW_C4w.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-BYTJQqVq.js";import{u as is}from"./use-org-sso-DHFjLEgz.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let S;e[27]!==d?(S=()=>d.mutate(),e[27]=d,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==d.isPending||e[34]!==S||e[35]!==v?(w=s.jsx(z,{onClick:S,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=S,e[35]=v,e[36]=w):w=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==w||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,T]}),e[42]=w,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function St(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?wn:kt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(S=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=S):S=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==S?(v=s.jsxs(ae,{children:[u,x,S]}),e[22]=u,e[23]=x,e[24]=S,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=s.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,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 k;e[29]!==w?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=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 g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let S;e[26]!==d.isPending||e[27]!==i?(S=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==S?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:S}),e[29]=d.isPending,e[30]=x,e[31]=S,e[32]=v):v=e[32];const w=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:w,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=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 o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(St,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",S=m&&"pb-3";let v;e[6]!==x||e[7]!==S?(v=mt("p-4 pr-11",x,S),e[6]=x,e[7]=S,e[8]=v):v=e[8];let w;e[9]!==c?(w=c&&s.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=w):w=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==w?(I=s.jsxs("div",{className:v,children:[w,_]}),e[26]=_,e[27]=v,e[28]=w,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"data-slot":"announcement-card","data-tone":l,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,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={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 qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{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 Ss(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ws(t,e){return Ss(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return ws(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(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:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,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:at,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:Nn,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:ft,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:Z,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:bt,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:Z,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,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:Fe,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:Z,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:se,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:Fe,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:se,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:Z,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:Fe,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:Z,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:se,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:Fe,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:Z,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:se,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:Fe,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:Z,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:at,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:se,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:ft,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:Fe,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:se,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:Z,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:at,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:Z,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:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,wt,wt);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const v=l.eyebrow,w=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==S||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:S,eyebrow:v,title:w,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=S,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.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 jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const w=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==S||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==w||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let Se;e[117]!==h||e[118]!==r||e[119]!==$?(Se=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=Se):Se=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let we;e[122]!==o?(we=o("commandPalette.newProject"),e[122]=o,e[123]=we):we=e[123];let ve;e[124]!==we?(ve=s.jsx("span",{children:we}),e[124]=we,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==Se||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:Se,children:[Ze,ve]}),e[126]=xe,e[127]=Se,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=S,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=w,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.567.0")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.567.0"}),t[15]=e,t[16]=S):S=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=s.jsx(ht,{size:14}),t[19]=w):w=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,w]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==S?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=S,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const S=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==S||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:S,children:_}),t[18]=S,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[w,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function So(t,e){t&&Vt(xo(ut(),t,e))}function wo(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(t){return{queryKey:Ve.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 ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=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]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let S;e[25]!==x||e[26]!==g?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,S]}),e[28]=S,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=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 o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(Sn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&So(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const S=x?null:wo(u),v=Lt(n.id).id,w=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:S,opts:h,autosendValue:zn});return y(u,()=>w.search,{virtualMcpId:g,view:{tabId:w.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),S=u??f;try{await e?.create({id:x,virtual_mcp_id:S,...g?{branch:g}:{}})}catch{}l(x,S,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.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=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,S;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},S=[y],t[6]=y,t[7]=x,t[8]=S):(x=t[7],S=t[8]),G.useEffect(x,S);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:w}=Nt(v),k=w?.id,j=w?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!w||gt(w)||P||O)&&Zs(),!w){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(w)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==w.name?(L=s.jsx(yn,{orgName:w.name}),t[21]=w.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==w.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:w.slug}),t[23]=w.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:T.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=w.logo??null;let q;t[31]!==w||t[32]!==te?(q={...w,logo:te},t[31]=w,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==w?(K=s.jsx(po,{activeOrg:w}),t[34]=w,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};
|