decocms 4.589.0 → 4.589.1
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-k-5O6cw_.js → AlertCircle-iHYLI3wA.js} +1 -1
- package/dist/client/assets/{AreaChart-BbBmBhmZ.js → AreaChart-BYhZUeRP.js} +1 -1
- package/dist/client/assets/{ArrowLeft-ClkcoIX4.js → ArrowLeft-Crx5FZ7V.js} +1 -1
- package/dist/client/assets/{ArrowRight-D62IR3mi.js → ArrowRight-ipUtveZC.js} +1 -1
- package/dist/client/assets/{ArrowUp-DwmUsoz4.js → ArrowUp-CLrfDSfr.js} +1 -1
- package/dist/client/assets/{BookOpen01-BtddYmqo.js → BookOpen01-C_4qgS91.js} +1 -1
- package/dist/client/assets/{CartesianChart-6ds2d44w.js → CartesianChart-uKSvKxUK.js} +1 -1
- package/dist/client/assets/{CategoricalChart-B61TvcyO.js → CategoricalChart-DwLXaENy.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cp5xjlw-.js → CheckCircle-Bcn1SkPC.js} +1 -1
- package/dist/client/assets/{ChevronDown-CM9Urfsd.js → ChevronDown-BEVTcfYy.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-r9NWov70.js → ChevronSelectorVertical-DxrQPHmH.js} +1 -1
- package/dist/client/assets/{ChevronUp--3SHAUXV.js → ChevronUp-BEJWDky5.js} +1 -1
- package/dist/client/assets/{CreditCard01-DVqX0918.js → CreditCard01-DQXQKw2A.js} +1 -1
- package/dist/client/assets/{Eye-BoqAJmT6.js → Eye-8uguzols.js} +1 -1
- package/dist/client/assets/{File02-Dh6SOo4d.js → File02-foS0DPWb.js} +1 -1
- package/dist/client/assets/{Fingerprint04-YAruy68-.js → Fingerprint04-DJD9RxrF.js} +1 -1
- package/dist/client/assets/{Globe04-DYHS72xm.js → Globe04-CMPPLcPg.js} +1 -1
- package/dist/client/assets/{Image01-RSPET2Po.js → Image01-5QAQlONA.js} +1 -1
- package/dist/client/assets/{Key01-L7povfCu.js → Key01-o1uKXv-x.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CUvx-Pvw.js → LayoutLeft-BejjIkGZ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-JVhKBnEM.js → LinkBroken01-DOKZ024q.js} +1 -1
- package/dist/client/assets/{MessageCircle01-gn4vp2uo.js → MessageCircle01-BFCg8Yla.js} +1 -1
- package/dist/client/assets/{Minus-DN5eCgUQ.js → Minus-CVLCskxk.js} +1 -1
- package/dist/client/assets/{Monitor01-D0Bxj-fe.js → Monitor01-D_volcqW.js} +1 -1
- package/dist/client/assets/{Play-7916CrEc.js → Play-ClJ-fqo6.js} +1 -1
- package/dist/client/assets/{Plus-DA5fCRCT.js → Plus-DPgqzlX_.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BiUIpSso.js → ReferenceLine-BUQcJCjj.js} +1 -1
- package/dist/client/assets/{SearchMd-BPdzWKZu.js → SearchMd-0hSvyNNc.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BhOTMWsh.js → ShoppingBag01-Dzd7DSPA.js} +1 -1
- package/dist/client/assets/{Sun-CcLmZkDa.js → Sun-D-iFjrkT.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-KL7mZ6la.js → SwitchHorizontal01-fo0U4Jp1.js} +1 -1
- package/dist/client/assets/{Tool01-x-P519mQ.js → Tool01-CAPkmPtU.js} +1 -1
- package/dist/client/assets/{Tooltip-Djlyj-LN.js → Tooltip-YU2cQ8p5.js} +1 -1
- package/dist/client/assets/{Trash01-q67Vms6R.js → Trash01-BJozO1DS.js} +1 -1
- package/dist/client/assets/{TrendUp01-CXnsnsUU.js → TrendUp01-C3pm_0WN.js} +1 -1
- package/dist/client/assets/{Upload01-BUC8UUt4.js → Upload01-DSwYubv_.js} +1 -1
- package/dist/client/assets/{UserCheck01-BxAZblZb.js → UserCheck01-UUUmyjQl.js} +1 -1
- package/dist/client/assets/{UserSquare-2uLtK5zL.js → UserSquare-C9Yfn3z-.js} +1 -1
- package/dist/client/assets/{Users01-GuAUZTSm.js → Users01-D4LsevsD.js} +1 -1
- package/dist/client/assets/{XClose-BKbw2IM5.js → XClose-2FBIsrt9.js} +1 -1
- package/dist/client/assets/{Zap-iZQqC26K.js → Zap-CDm_Ehxw.js} +1 -1
- package/dist/client/assets/{access-gate-DNdYk1Lk.js → access-gate-BwFzBMDO.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BgsYTqB2.js → add-connection-dialog-BXLnkEQI.js} +1 -1
- package/dist/client/assets/agent-app-CaThun3p.js +1 -0
- package/dist/client/assets/{agent-assets-BlAA6Ea3.js → agent-assets-DQ6MCcEj.js} +1 -1
- package/dist/client/assets/{agent-automation-WLxLTpF2.js → agent-automation-BqTAjK3Y.js} +1 -1
- package/dist/client/assets/{agent-automations-Q5qlgn-x.js → agent-automations-B_MlFsas.js} +1 -1
- package/dist/client/assets/{agent-blog-DlTYvL9l.js → agent-blog-Cf0tbU1l.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CYSXcL8b.js → agent-blog-post-31LJFaZl.js} +2 -2
- package/dist/client/assets/{agent-calendar-CmW3YOqH.js → agent-calendar-BPD66_Yn.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B_vVx4Z2.js → agent-capabilities-BsyhIZjv.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CMaIt_p4.js → agent-connect-sources-C5jaXM3z.js} +1 -1
- package/dist/client/assets/agent-deck-C4-3n5Um.js +1 -0
- package/dist/client/assets/{agent-e2e-D9ABwflY.js → agent-e2e-B4bXub-8.js} +1 -1
- package/dist/client/assets/agent-experiments-Dt4E84CD.js +1 -0
- package/dist/client/assets/agent-file-ZoyASwRD.js +1 -0
- package/dist/client/assets/{agent-hosting-D1Xn3qWe.js → agent-hosting-S1nwBnV9.js} +1 -1
- package/dist/client/assets/{agent-icon-1xBXRQD0.js → agent-icon-BsqGoLFA.js} +1 -1
- package/dist/client/assets/agent-library-Dp1THlC2.js +1 -0
- package/dist/client/assets/agent-library-file-MqTLUDDf.js +1 -0
- package/dist/client/assets/agent-overview-D36Aps5a.js +1 -0
- package/dist/client/assets/{agent-releases-CvessDoS.js → agent-releases-DU3bmm_0.js} +1 -1
- package/dist/client/assets/agent-settings-Cwf8ygyN.js +1 -0
- package/dist/client/assets/{agent-site-editor-DaA9FbZT.js → agent-site-editor-C14Msw43.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bfx6tF36.js +2 -0
- package/dist/client/assets/agent-site-editor-content-ClE_yu25.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CkOj53vr.js +1 -0
- package/dist/client/assets/agent-view-BFaJoYzv.js +1 -0
- package/dist/client/assets/{agent-view-guard-DtzAtZkl.js → agent-view-guard-CIz8LGod.js} +1 -1
- package/dist/client/assets/{ai-providers-D_nS8tyt.js → ai-providers-r0-0mCmL.js} +1 -1
- package/dist/client/assets/{alert-BKTlpEuH.js → alert-DOHGmi4E.js} +1 -1
- package/dist/client/assets/{analytics-sections-CHwF2OJ5.js → analytics-sections-ByzsZ2nT.js} +1 -1
- package/dist/client/assets/{api-keys-nye037OF.js → api-keys-Cx-1_N3a.js} +1 -1
- package/dist/client/assets/api-keys-DEDTYWqc.js +1 -0
- package/dist/client/assets/{app-editor-DIR7u1uj.js → app-editor-Dog5XorX.js} +1 -1
- package/dist/client/assets/{asset-utils-EHKoLUwI.js → asset-utils-bAbYz6KR.js} +1 -1
- package/dist/client/assets/{auth-n3l0CNa5.js → auth-D7fJVlZI.js} +1 -1
- package/dist/client/assets/{auth-catchall-B1hTDp3D.js → auth-catchall-mcIpmHwN.js} +1 -1
- package/dist/client/assets/{auth-entry-C9-pIDNg.js → auth-entry--fPh4bga.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BDghObzj.js → auth-split-layout-CgDgkGrM.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-wfBLEPa1.js → authenticate-and-persist-oauth-CagzPMUa.js} +1 -1
- package/dist/client/assets/{automation-list-row-BaFEU26i.js → automation-list-row-CzmFBSJK.js} +1 -1
- package/dist/client/assets/{automation-runs-R-XY-5Gf.js → automation-runs-pGRkVZxp.js} +1 -1
- package/dist/client/assets/{automations-DA4CRapY.js → automations-CdiT8rAu.js} +1 -1
- package/dist/client/assets/{badge-qzONP_je.js → badge-6S4VrRSd.js} +1 -1
- package/dist/client/assets/{block-document-3MwcWTqG.js → block-document-W9khPqgD.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Cx1-vnp6.js → blocks-preview-workspace-context-DqT5ijpX.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BzmLdpJn.js → blocks-tab-states-KPALSuby.js} +1 -1
- package/dist/client/assets/{blog-preview-url--XUf7gOW.js → blog-preview-url-B0kKH_hk.js} +1 -1
- package/dist/client/assets/{blog-schema-nE0twzgM.js → blog-schema-Cq1DY5OT.js} +1 -1
- package/dist/client/assets/{blog-source-gate-DqoOOI_M.js → blog-source-gate-BKHgRm5t.js} +1 -1
- package/dist/client/assets/{blog-view-gate-BJcOSjYL.js → blog-view-gate-BSbrrvm1.js} +1 -1
- package/dist/client/assets/{buckets-uZt9g5Bq.js → buckets-CnsbkFLd.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CgWoBsJ9.js → build-improve-prompt-doc-w2XF9qPZ.js} +1 -1
- package/dist/client/assets/{calendar-Dpmy4fF4.js → calendar-CMiVsJ2O.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cdh5jEwj.js → capability-load-error-BsPxZdDg.js} +1 -1
- package/dist/client/assets/{category-editor-Dwd3B69y.js → category-editor-B55wgVpm.js} +1 -1
- package/dist/client/assets/{category-tree-BhvPvvoc.js → category-tree-Dx9MEpa8.js} +1 -1
- package/dist/client/assets/{chart-DrWDD8lq.js → chart-_k2iqUio.js} +1 -1
- package/dist/client/assets/{chat-context-SiB3iaPb.js → chat-context-j3hnPPib.js} +1 -1
- package/dist/client/assets/{chat-draft-DZb5RXeg.js → chat-draft-C0rM_rqB.js} +1 -1
- package/dist/client/assets/{checkbox-2zvTb6ww.js → checkbox-Cdx0XKK4.js} +1 -1
- package/dist/client/assets/{choose-editor-CNWQv99A.js → choose-editor-BD2gD3z5.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BLj0fm2s.js → cli-auth-success-DkpbFCDc.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-C5EiL7JE.js → cms-settings-editor-B9i94VP_.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-OgnJq3xE.js → cms-store-drafts-FkDsCDbL.js} +1 -1
- package/dist/client/assets/{collapsible-CGEFlpDq.js → collapsible-BzN0Qes0.js} +1 -1
- package/dist/client/assets/{collection-detail-PIXIFFSE.js → collection-detail-C4Ke0wbG.js} +1 -1
- package/dist/client/assets/{collection-display-button-B1Sy-opz.js → collection-display-button-BHiOzw31.js} +1 -1
- package/dist/client/assets/{collection-search-OTIoM0sQ.js → collection-search-CcaFYOka.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-AbpEjmrL.js → collection-table-wrapper-DkjjklLa.js} +1 -1
- package/dist/client/assets/{collection-tabs-CeLcBMHA.js → collection-tabs-BwesRoId.js} +1 -1
- package/dist/client/assets/{combobox-Cb2ClVLj.js → combobox-JgBd9MSE.js} +1 -1
- package/dist/client/assets/{command-n87yBV6H.js → command-DVSq7p7n.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DNJp1Z4x.js → companion-mcps-section-DCGfaw7A.js} +1 -1
- package/dist/client/assets/{config-3CnG3YfD.js → config-CKkzGJkL.js} +1 -1
- package/dist/client/assets/{connect-key-CK5GMVlb.js → connect-key-hZHvW2X-.js} +1 -1
- package/dist/client/assets/{connect-layout-BlNkHf40.js → connect-layout-tKbIMecd.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-B5QdFSKj.js → connect-source-dialog-CzPiRiCA.js} +1 -1
- package/dist/client/assets/{connect-B3H39Rc5.js → connect-ys4Sl4xB.js} +1 -1
- package/dist/client/assets/{connection-card-DLq506jh.js → connection-card-CJUEGGqR.js} +1 -1
- package/dist/client/assets/{connection-detail-Cb8cn8w5.js → connection-detail-lYpymXb_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DgyNgCMk.js → connection-form-helpers-Ccz7aVvg.js} +1 -1
- package/dist/client/assets/{connection-D7qO0DS_.js → connection-nHJUyklo.js} +1 -1
- package/dist/client/assets/{connection-slug-Cz4zCQv8.js → connection-slug-DUcOK0Fv.js} +1 -1
- package/dist/client/assets/{connections-D91ZFGMn.js → connections-D32hrWXX.js} +1 -1
- package/dist/client/assets/{content-tab-BxFhj1WZ.js → content-tab-BrA4C_fM.js} +3 -3
- package/dist/client/assets/{context-CajYEf8N.js → context-C7dlM4xM.js} +1 -1
- package/dist/client/assets/{context-menu-h7MPYNV3.js → context-menu-DHrP4gKv.js} +1 -1
- package/dist/client/assets/{context-shell-DflkpwUC.js → context-shell-BUcF0UUg.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-Dhpldq4f.js → create-organization-dialog-By1RJqKH.js} +1 -1
- package/dist/client/assets/{daily-pulse-nXUPyJMF.js → daily-pulse-DSk3dDWE.js} +1 -1
- package/dist/client/assets/{delete-copy-We0skK0X.js → delete-copy-Kn8AlU6Q.js} +1 -1
- package/dist/client/assets/{device-hint-DOcsqBNG.js → device-hint-99FRzBRh.js} +1 -1
- package/dist/client/assets/{discover-sj6esNit.js → discover-jVbiCy7Z.js} +1 -1
- package/dist/client/assets/{domain-settings-DxSVKJuS.js → domain-settings-DTUBY3uJ.js} +1 -1
- package/dist/client/assets/{drawer-CHLTZ7IE.js → drawer-CEhULiRL.js} +1 -1
- package/dist/client/assets/{editor-BSfFsGxN.js → editor-CX-xsdGa.js} +1 -1
- package/dist/client/assets/{editor-classes-BFc0AEgj.js → editor-classes-BJYykvRM.js} +1 -1
- package/dist/client/assets/{empty-message-BCpAqPWS.js → empty-message-BbW3Jun4.js} +1 -1
- package/dist/client/assets/{empty-state-XftlsSWz.js → empty-state-Cojx_Zm8.js} +1 -1
- package/dist/client/assets/{empty-state-B8oDHUMl.js → empty-state-DXP-L1Wm.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-Dm_h0xkr.js → experiments-tab-choice-Dh5QN5lA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DlPXjE5Z.js → extract-connection-data-DpbVANVQ.js} +1 -1
- package/dist/client/assets/{feature-gate-Dz2idXk1.js → feature-gate-3H-gGeAe.js} +1 -1
- package/dist/client/assets/{feature-paywall-QNpgcQyq.js → feature-paywall-DleoKpSm.js} +1 -1
- package/dist/client/assets/{file-explorer-SBkm6OaE.js → file-explorer-Cp783Tpn.js} +1 -1
- package/dist/client/assets/{file-preview-e5Po0Lnn.js → file-preview-8A9Z-Pv6.js} +1 -1
- package/dist/client/assets/{file-share-button-DLIUfXlB.js → file-share-button-Dtr80KeB.js} +1 -1
- package/dist/client/assets/{file-type-icon-DHed-Vbt.js → file-type-icon-DTjItFVz.js} +1 -1
- package/dist/client/assets/{folder-icon-BmyxaPeT.js → folder-icon-CzIe0pJo.js} +1 -1
- package/dist/client/assets/{form-tdA5bJ97.js → form-Dol0DPDh.js} +1 -1
- package/dist/client/assets/{frame-navigation-DJad9YsZ.js → frame-navigation-DlUhG149.js} +1 -1
- package/dist/client/assets/{gateway-client-MCgSJtiT.js → gateway-client-Cv5mFjk5.js} +1 -1
- package/dist/client/assets/{general-Dq2SfvLf.js → general-K7Ly14C_.js} +1 -1
- package/dist/client/assets/{github-icon-BSdAKSFL.js → github-icon-Df4tGqBJ.js} +1 -1
- package/dist/client/assets/{held-block-view-DMqKyknK.js → held-block-view-CVaa9FfQ.js} +1 -1
- package/dist/client/assets/{home-Dj3ETwz3.js → home-CMisahbl.js} +1 -1
- package/dist/client/assets/{home-overview-DxRzuH3P.js → home-overview-QXWQEji-.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BP447g5V.js → hosted-reconcile-BMXAyYfq.js} +1 -1
- package/dist/client/assets/{icon-button-B1n86T_T.js → icon-button-CdifSdSj.js} +1 -1
- package/dist/client/assets/{index-CZRVgAXr.js → index-4b--WRWP.js} +1 -1
- package/dist/client/assets/{index-DxMUaH8f.js → index-BBOoPujC.js} +1 -1
- package/dist/client/assets/{index-Gg8ZNrTJ.js → index-BgM7C0ew.js} +1 -1
- package/dist/client/assets/{index-DeDZf8GV.js → index-BgkSXyah.js} +1 -1
- package/dist/client/assets/{index-CDbo40Qi.js → index-BlJBO-4-.js} +1 -1
- package/dist/client/assets/{index-DdcMEgo_.js → index-BmbgcyrV.js} +1 -1
- package/dist/client/assets/{index-zfbeX5vo.js → index-BybXw0ff.js} +1 -1
- package/dist/client/assets/{index-_v_cX_Uz.js → index-CM7QLcHH.js} +3 -3
- package/dist/client/assets/{index-BpQKQj0d.js → index-COqqVuml.js} +1 -1
- package/dist/client/assets/{index-Cv404MWT.js → index-CUq-H9kS.js} +1 -1
- package/dist/client/assets/{index-DYBVGhf3.js → index-CjeoaOq1.js} +1 -1
- package/dist/client/assets/{index-D4QMDMQB.js → index-Cv1rMcuh.js} +1 -1
- package/dist/client/assets/{index-B9Qj8_a8.js → index-CvH2MSpo.js} +1 -1
- package/dist/client/assets/{index-DBEc0hp1.js → index-VhglRpxf.js} +1 -1
- package/dist/client/assets/{index-I4vIjLyL.js → index-XHwfOtpV.js} +1 -1
- package/dist/client/assets/{index-8J9eeoYX.js → index-ZityOjdC.js} +1 -1
- package/dist/client/assets/{index-redirect-CbBr1BrP.js → index-redirect-8j7UZTHx.js} +1 -1
- package/dist/client/assets/{index-CO8P4I1E.js → index-rm58Ae1x.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BjuIdZaK.js → infiniteQueryObserver-DvCgvYkY.js} +1 -1
- package/dist/client/assets/{infra-billing-BggUjndl.js → infra-billing-Cly584OY.js} +1 -1
- package/dist/client/assets/{input-DVGC51NU.js → input-A3jqLlaQ.js} +3 -3
- package/dist/client/assets/{input-rwnUX4xK.js → input-DiaViL4j.js} +1 -1
- package/dist/client/assets/{integration-icon-DMudGnaH.js → integration-icon-DiYH80o3.js} +1 -1
- package/dist/client/assets/{item-actions-CXcqqG2O.js → item-actions-DloHlq0j.js} +1 -1
- package/dist/client/assets/{jira-icon-Cs0wA4Aj.js → jira-icon--6KDrxLj.js} +1 -1
- package/dist/client/assets/{label-BPobXy5D.js → label-C3UnAGG4.js} +1 -1
- package/dist/client/assets/{layout-Haof-3fN.js → layout-DJuaIAka.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DR6IgoHi.js → legacy-admin-welcome-dialog-DFUf5Cdu.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BhViZxi4.js → legacy-agents-deep-DtW_imiE.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BRcPtkE0.js → legacy-main-redirect-BS5y0F2f.js} +1 -1
- package/dist/client/assets/library-qh111GTe.js +1 -0
- package/dist/client/assets/{library-tab-BXZW9Gf-.js → library-tab-CMlXx_SF.js} +1 -1
- package/dist/client/assets/{login-DEJdToWz.js → login-yrc2iZYE.js} +1 -1
- package/dist/client/assets/{markdown-6Y7kRU0S.js → markdown-Dh0wHZhv.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DRWpmXqd.js → mcp-app-renderer-DtYrCtmr.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CuTkV8Yh.js → mcp-oauth-ClKqUQpf.js} +1 -1
- package/dist/client/assets/{mcp-oauth-dNTY3RLT.js → mcp-oauth-daaKdPIW.js} +1 -1
- package/dist/client/assets/{members-r4o9r9rq.js → members-BX-0kJRN.js} +1 -1
- package/dist/client/assets/{memory-DJveej8e.js → memory-CtjxvXGU.js} +1 -1
- package/dist/client/assets/{mock-board-BfAvxuuB.js → mock-board-DpyDhwr5.js} +3 -3
- package/dist/client/assets/{monaco-editor-DVnCrHXl.js → monaco-editor-D3Gw1Jfy.js} +1 -1
- package/dist/client/assets/monitoring-D_tNIZ2e.js +2 -0
- package/dist/client/assets/{monitoring-stats-row--t2gmwDv.js → monitoring-stats-row-C6kAl3zD.js} +1 -1
- package/dist/client/assets/{multi-select-C4pEiex-.js → multi-select-DvfLkkrU.js} +1 -1
- package/dist/client/assets/{mustache-BJxqarwP.js → mustache-CLHAlDpU.js} +1 -1
- package/dist/client/assets/{named-rule-step-CeWd1q2n.js → named-rule-step-BnZCIvtI.js} +1 -1
- package/dist/client/assets/{named-rule-view-B-FR02zc.js → named-rule-view-DM7JOYEY.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BF76iYqU.js → new-project-dialog-CLqrrOSd.js} +1 -1
- package/dist/client/assets/{new-project-store-DWxCJQOo.js → new-project-store-BfCXIlUR.js} +1 -1
- package/dist/client/assets/{oauth-callback-DTZ86bL8.js → oauth-callback-C2bvYENs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DuXQBSEx.js → oauth-callback-ai-provider-Cv9ZTrWg.js} +1 -1
- package/dist/client/assets/{oauth-consent-_PYevD-4.js → oauth-consent-CXCI4aOM.js} +1 -1
- package/dist/client/assets/{onboarding-Dv4c0ulx.js → onboarding-CvxIS3gV.js} +1 -1
- package/dist/client/assets/{openai-conversation-Ccmhy4PF.js → openai-conversation-DA7CTgnA.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-ChxB21rZ.js → optimistic-project-sidebar-views-CsRuVxdu.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Dz2wZyUQ.js → order-monitor-day-DyAv0mEB.js} +1 -1
- package/dist/client/assets/{organization-choice-Doar8yJk.js → organization-choice-D110x4oD.js} +1 -1
- package/dist/client/assets/{orgs-Du522J0-.js → orgs-FQXpiZ1_.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Dub3kcxT.js → own-accounts-section-7akGVJrI.js} +1 -1
- package/dist/client/assets/{pair-dE3C8WhI.js → pair-Dm1DLdXS.js} +1 -1
- package/dist/client/assets/{parse-sections-BNVVULt_.js → parse-sections-PsKqddQO.js} +2 -2
- package/dist/client/assets/{plan-eTOH4djb.js → plan-Co0vMUcn.js} +1 -1
- package/dist/client/assets/{plan-ladder-CbTEVjlC.js → plan-ladder-Cq8l_zYq.js} +1 -1
- package/dist/client/assets/{plan-usage-card-_Ff0mpr8.js → plan-usage-card-DFxgoAX0.js} +1 -1
- package/dist/client/assets/{popover-SbxIMG75.js → popover-DmtZGzFU.js} +1 -1
- package/dist/client/assets/{post-calendar-B1CybeCu.js → post-calendar-Da3q3Ygw.js} +1 -1
- package/dist/client/assets/{post-editor-CNorej-X.js → post-editor-Hqz0xhX7.js} +1 -1
- package/dist/client/assets/{preview-content-LyXURvUK.js → preview-content-hEcinhPu.js} +1 -1
- package/dist/client/assets/{preview-dialog-bMg2yisv.js → preview-dialog-DljBi3FV.js} +1 -1
- package/dist/client/assets/{preview-panel-DVadceTQ.js → preview-panel-DO2BIcaB.js} +1 -1
- package/dist/client/assets/{preview-tab-CX_rhPDl.js → preview-tab-pXBusHNY.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-J_wgt3fp.js → product-picker-dialog-DLj4-KZd.js} +1 -1
- package/dist/client/assets/{profile-Kt0coOMj.js → profile-Dtmbbo3x.js} +1 -1
- package/dist/client/assets/{project-app-view-BJ3tVux4.js → project-app-view-BxptOyUa.js} +1 -1
- package/dist/client/assets/{project-apps-Cni0OecT.js → project-apps-Cn4DuDQX.js} +1 -1
- package/dist/client/assets/{project-icon-m6Ad1m7q.js → project-icon-DbKP1qyo.js} +1 -1
- package/dist/client/assets/{project-index-C0zTM-WA.js → project-index-BUELrKzm.js} +1 -1
- package/dist/client/assets/project-reports-CNlIBYwg.js +1 -0
- package/dist/client/assets/project-tasks-DQYKPSKu.js +1 -0
- package/dist/client/assets/{projects-oaHlFO8V.js → projects-BoBHi4SI.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B91deBQU.js → projects-empty-state-C9ApcIGM.js} +1 -1
- package/dist/client/assets/{prompts-DSIkPLeQ.js → prompts-jatLyuYM.js} +1 -1
- package/dist/client/assets/record-editor-Cp3c1KLb.js +1 -0
- package/dist/client/assets/{redirect-editor-yx7ByECD.js → redirect-editor-DgMP0xUQ.js} +1 -1
- package/dist/client/assets/{reports-D7g3Ml1J.js → reports-CdFOpeDD.js} +1 -1
- package/dist/client/assets/reports-DOVfNyho.js +1 -0
- package/dist/client/assets/{reports-onboarding-BhNZvfy4.js → reports-onboarding-D_ZP7_DT.js} +1 -1
- package/dist/client/assets/{reports-tab-Gh5DaJuQ.js → reports-tab-B8zZV09K.js} +2 -2
- package/dist/client/assets/repositories-HhM0lN0I.js +1 -0
- package/dist/client/assets/{repositories-C0KYN8ne.js → repositories-O2ZQLufg.js} +1 -1
- package/dist/client/assets/{repository-binding-CaMbcDLV.js → repository-binding-DGBKNnnx.js} +1 -1
- package/dist/client/assets/{repository-picker-CtTW0G31.js → repository-picker-Ck1bYhNz.js} +1 -1
- package/dist/client/assets/{require-capability-CdsgNeD6.js → require-capability-DWuswMDo.js} +1 -1
- package/dist/client/assets/{required-auth-layout-AmJ1uTFt.js → required-auth-layout-fGhNBti1.js} +1 -1
- package/dist/client/assets/{reset-password-CtqV555d.js → reset-password-YiTpF_34.js} +1 -1
- package/dist/client/assets/{resizable-BVcChq5e.js → resizable-utjkC78H.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DERG1JDa.js → resolve-tab-icon-Cdcrgm48.js} +1 -1
- package/dist/client/assets/{review-settings--Kf9eCfs.js → review-settings-HU6DVEY_.js} +1 -1
- package/dist/client/assets/{role-color-OzS56aIA.js → role-color-Dn3u5B7Y.js} +1 -1
- package/dist/client/assets/{roles-5yWWx_DJ.js → roles-BICOUyYP.js} +1 -1
- package/dist/client/assets/{route-CvAef_ho.js → route-BGXXnJrt.js} +1 -1
- package/dist/client/assets/{route-9oi0rgOU.js → route-Ds4xA11c.js} +1 -1
- package/dist/client/assets/{route-page-header-Dwl09nk0.js → route-page-header-B-x8DYPs.js} +1 -1
- package/dist/client/assets/route-uH186jXx.js +1 -0
- package/dist/client/assets/{sandbox-git-api-CUzd7R0k.js → sandbox-git-api-Dn4SMgAT.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Bb3AkWOb.js → sandbox-lifecycle-context-jNC_clan.js} +1 -1
- package/dist/client/assets/{save-status-DwZEDw1l.js → save-status-BV5dLQjb.js} +1 -1
- package/dist/client/assets/{schema-XQ38kn3Z.js → schema-Ce-FrpNr.js} +1 -1
- package/dist/client/assets/{schema-CkOMMSLb.js → schema-DcgkXC70.js} +1 -1
- package/dist/client/assets/{scroll-area-CYAgrqag.js → scroll-area-b9xVFzV5.js} +1 -1
- package/dist/client/assets/{search-input-C650lN1b.js → search-input-1i2wqfqT.js} +1 -1
- package/dist/client/assets/{search-toggle-C3h6VPGQ.js → search-toggle-XYuup3CG.js} +1 -1
- package/dist/client/assets/{secret-picker-Dgn1St8u.js → secret-picker-DZquDxOH.js} +1 -1
- package/dist/client/assets/{secrets-CHUSJNqz.js → secrets-DpZZQQGY.js} +1 -1
- package/dist/client/assets/{section-array-field-DjpdZjjA.js → section-array-field-BSHV5f4W.js} +1 -1
- package/dist/client/assets/{sections-RWn2QTBe.js → sections-Cx2cA7bt.js} +1 -1
- package/dist/client/assets/{sections-editor-DtmSAXwn.js → sections-editor-PxxwYC37.js} +1 -1
- package/dist/client/assets/{select-BAD2nCs0.js → select-CaopsMfN.js} +1 -1
- package/dist/client/assets/{select-model-DuWZC39Y.js → select-model-BopeKOzD.js} +1 -1
- package/dist/client/assets/{seo-editor-DQ-gjrg1.js → seo-editor-aSBXwgtx.js} +1 -1
- package/dist/client/assets/{separator-DxL8DcTB.js → separator-HRL3cQc1.js} +1 -1
- package/dist/client/assets/{session-runtime-CoMtO0vP.js → session-runtime-DxWcwkbE.js} +1 -1
- package/dist/client/assets/settings-tab-DCmoO3Y0.js +1 -0
- package/dist/client/assets/{sheet-BSNpAEVQ.js → sheet-BO3NxzQ5.js} +1 -1
- package/dist/client/assets/{shell-layout-C2FEOZHE.js → shell-layout-B-KkCs2s.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DQhEp0pW.js → site-draft-actions-JYm0Mn1B.js} +1 -1
- package/dist/client/assets/{site-draft-view-JFh5CXlv.js → site-draft-view-DNiaphx_.js} +1 -1
- package/dist/client/assets/site-editor-Cdx1-RS5.js +1 -0
- package/dist/client/assets/{site-editor-toast-DbjIe6vh.js → site-editor-toast-Dn6ViTaq.js} +1 -1
- package/dist/client/assets/{skills-mk29STuQ.js → skills-BHa_bfo4.js} +1 -1
- package/dist/client/assets/{slider-DMCHPWiy.js → slider-fBCZdjFb.js} +1 -1
- package/dist/client/assets/{sortable.esm-CsjiJtN2.js → sortable.esm-BFwpd7Bz.js} +1 -1
- package/dist/client/assets/{sso-SIfrP_88.js → sso-DiYuDVPI.js} +1 -1
- package/dist/client/assets/{suggestion-CX1YVdIt.js → suggestion-CCkp3p2A.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DCxdIVB-.js → super-agent-icon-Dc9HnUHT.js} +1 -1
- package/dist/client/assets/{switch-BHmpCIVF.js → switch-D7D2_cGm.js} +1 -1
- package/dist/client/assets/{synced-repos-BFxzW6vz.js → synced-repos-BYS6iZQk.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-FZMoReXN.js → tab-icon-glyph--TL2dqdf.js} +1 -1
- package/dist/client/assets/{table-DUtLs9KY.js → table-Byvkq2zY.js} +1 -1
- package/dist/client/assets/{tabs-ByjyyO35.js → tabs-BsgKQ4s5.js} +1 -1
- package/dist/client/assets/{task-board-DFizZUve.js → task-board-GaVTCBBV.js} +1 -1
- package/dist/client/assets/{task-key-jbMkJ-gq.js → task-key-DtysXUVK.js} +1 -1
- package/dist/client/assets/{task-route-jGx8dPBi.js → task-route-CUqbdLvO.js} +1 -1
- package/dist/client/assets/{task-status-D6uDrhP9.js → task-status-BXqVXI-m.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-C9Q3oP78.js → taskboard-analytics-B0HWC6O-.js} +1 -1
- package/dist/client/assets/tasks-DhSSxaKz.js +1 -0
- package/dist/client/assets/{tasks-CQ1Xzkf7.js → tasks-miMlN4cx.js} +1 -1
- package/dist/client/assets/{textarea-BG3_jDPK.js → textarea-ZVs6QWMS.js} +1 -1
- package/dist/client/assets/{thread-analytics-PTzxnnwH.js → thread-analytics-BtdyB-95.js} +1 -1
- package/dist/client/assets/{thread-button-CSrnO4J2.js → thread-button-BP19iYV6.js} +1 -1
- package/dist/client/assets/{thread-intent-AFleKGnm.js → thread-intent-CXxEw9VY.js} +1 -1
- package/dist/client/assets/{thread-route-XlUtBNme.js → thread-route-uvbTgJ88.js} +1 -1
- package/dist/client/assets/{thread-route-DgTdTFs-.js → thread-route-vX4Lb76a.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D9NA2h2p.js → thread-sheet-body-W61B260Q.js} +1 -1
- package/dist/client/assets/{time-range-picker-COT-3s6C.js → time-range-picker-KAXJCf1A.js} +1 -1
- package/dist/client/assets/{toggle-group-B5NhEkmw.js → toggle-group-CnZM62uw.js} +1 -1
- package/dist/client/assets/{tool-set-selector--vjZ40l5.js → tool-set-selector-DkiUwtNk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-slFtkrIv.js → toolbar-icon-button-BIIhydVi.js} +1 -1
- package/dist/client/assets/{tooltip-2yYSYsa-.js → tooltip-BQEYSfJS.js} +1 -1
- package/dist/client/assets/{tooltipContext-BjkTtu04.js → tooltipContext-DbDWWDqQ.js} +1 -1
- package/dist/client/assets/{track-FOISCTZ9.js → track-e9xtonv_.js} +1 -1
- package/dist/client/assets/{types-C-gTijki.js → types-DWswJ8mv.js} +1 -1
- package/dist/client/assets/{url-slug-lJqSTlr5.js → url-slug-DjA6hXx8.js} +1 -1
- package/dist/client/assets/{usage-stats-BeZTZSlb.js → usage-stats-B9lqQ6Vi.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DBMFXH54.js → use-ai-providers-BG51IkbK.js} +1 -1
- package/dist/client/assets/{use-api-keys-n29QPUT5.js → use-api-keys-BxJnNXoF.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Bodgcm5R.js → use-apply-named-rule-C8FWPrxn.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-D5OfnzQn.js +1 -0
- package/dist/client/assets/{use-automations-CxZwTkEF.js → use-automations-DbnU6HJw.js} +1 -1
- package/dist/client/assets/{use-autosave-BAhs-b8G.js → use-autosave-D33RJEAf.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BoPkhD0M.js +1 -0
- package/dist/client/assets/use-blog-view-B86NPWtX.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-BjrxY9zk.js → use-chat-layout-state-C-ACjcBl.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BAGkHuFe.js → use-cms-publish-actions-ReRXsKsa.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DdHCkif9.js → use-connect-companion-C1XxMwnF.js} +1 -1
- package/dist/client/assets/{use-connection-DXrrdGow.js → use-connection-zSjqu4n6.js} +1 -1
- package/dist/client/assets/{use-content-sync-DZOdB8PF.js → use-content-sync-CjWUTBAq.js} +1 -1
- package/dist/client/assets/{use-copy-C9KqfKbD.js → use-copy-pqQjGIBG.js} +1 -1
- package/dist/client/assets/{use-current-view-CTU_KTOZ.js → use-current-view-vcCNv8DD.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DL2Sv8WK.js → use-date-fns-locale-CZuNa_MT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-LqgXHP5M.js → use-debounced-autosave-0vKSwZYP.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D0-3lKxq.js → use-debounced-value-DfcYC5J6.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BlcIIio7.js → use-deco-credits-DxqKl3TU.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-ia2U1D-_.js → use-decopilot-events-CMQAe_lU.js} +1 -1
- package/dist/client/assets/{use-delete-block-4OWBeqRv.js → use-delete-block-CFJmdzOj.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BhL2muMH.js → use-delete-connection-BHPfP1_h.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DMzm770d.js → use-deployment-admin-CZypPrVT.js} +1 -1
- package/dist/client/assets/{use-entitlements-C0Jnglmb.js → use-entitlements-DDuw6b8L.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BbJh-wFY.js → use-fast-preview-draft-url-YZ259K-C.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bj7muxL3.js → use-file-configs-CDDhJYZV.js} +1 -1
- package/dist/client/assets/{use-id-selection-aBsPLNQg.js → use-id-selection-YID_YzI_.js} +1 -1
- package/dist/client/assets/{use-in-settings-DTiMI92T.js → use-in-settings-BEbaMise.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-ykY7SYoP.js → use-inbox-feed-DB2CtrvR.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C-Jtx_R8.js → use-infinite-scroll-B49BW4bH.js} +1 -1
- package/dist/client/assets/{use-join-requests-DA8sBvoB.js → use-join-requests-7sKC-hWK.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DQP_KfHN.js → use-main-panel-tabs-CKmMTIf_.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CgYIT7O6.js → use-mcp-auth-status-BuZ66FeQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client--6E0VdQ1.js → use-mcp-client-B64wHnuV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DZL7WNWx.js → use-mcp-prompts-C23e7-j9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DGaS62Fn.js → use-mcp-tools-Dvg1HkLl.js} +1 -1
- package/dist/client/assets/{use-mobile-C2Wa6qqh.js → use-mobile-UENbdBUz.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Bg0QqQnT.js → use-move-blocks-DlRJEeor.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Blb_gT0Z.js → use-navigate-to-agent-CSVf4amv.js} +1 -1
- package/dist/client/assets/{use-never-published-wykmkClz.js → use-never-published-DzAvx8nn.js} +1 -1
- package/dist/client/assets/{use-org-fs-elhmqDGC.js → use-org-fs-BvX9HCNX.js} +1 -1
- package/dist/client/assets/{use-org-notice-BmGI5AoV.js → use-org-notice-CX9RQL9x.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bqe0mTI4.js → use-org-repo-syncs-Dx0-27sI.js} +1 -1
- package/dist/client/assets/{use-org-sso-D0oSmb0Y.js → use-org-sso-DCPh9AmN.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D19qndSA.js → use-organization-settings-Bqv7vsKx.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BUxvnLXh.js → use-panel-navigate-BxbJ8ZAZ.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D6vX4rCD.js → use-project-native-view-presence-D5woEtTG.js} +1 -1
- package/dist/client/assets/{use-project-scope-BW5vvzIR.js → use-project-scope-BUOLpI6_.js} +1 -1
- package/dist/client/assets/{use-recent-apps-qt6-6ySx.js → use-recent-apps-Dlz8hl9S.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-yo9M4TG9.js → use-reports-diagnostic-CzptLM8W.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-xbG28nOp.js → use-sandbox-events-CNefffyh.js} +1 -1
- package/dist/client/assets/{use-secrets-D1HWpuW_.js → use-secrets-CM2rBe1P.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DXkAoW7H.js → use-section-preview-base-8d_iVlol.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-L0ea2Q3b.js → use-sidebar-collapsed-CBdcfBq2.js} +1 -1
- package/dist/client/assets/{use-tags-B46ACyo8.js → use-tags-C1iDbyRX.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Q8JP9hY1.js → use-task-board-analytics-BYDsZg64.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DD-h7mMH.js → use-task-board-item-prs-BYZFu1Z-.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DJs5p39s.js → use-task-board-items-BF60SnNN.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DhN9b-Ei.js → use-task-board-prompts-BxJJDuKd.js} +1 -1
- package/dist/client/assets/{use-task-metadata-wSSRfe9l.js → use-task-metadata--lsabEC6.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BXUBmrcQ.js → use-thread-outputs-BmkTnzaJ.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Dog_0xGP.js → use-view-draft-kind-B8piuikE.js} +1 -1
- package/dist/client/assets/{use-voice-input-Cml6WhPe.js → use-voice-input-DU1R1jSr.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C5QtpK6u.js +1 -0
- package/dist/client/assets/{useQueries-BuIHgxFS.js → useQueries-Cz_Jqaen.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B3VojzV_.js +1 -0
- package/dist/client/assets/{users-BBlUm9BI.js → users-CyC8gi8K.js} +1 -1
- package/dist/client/assets/{utils-ZT3Tr9FQ.js → utils-DbRgnGD0.js} +1 -1
- package/dist/client/assets/{variant-calendar-BJi5SDmS.js → variant-calendar-CjXn36hn.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DPAlBy59.js → variant-matcher-override-Bn-Yrew9.js} +1 -1
- package/dist/client/assets/{view-header-D_AYsQS1.js → view-header-BKQqoxa1.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C1YM4Fvh.js → virtual-mcp-DoeeFvfY.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C3KG4d2d.js → watch-sse-pool-DV_D2Q4a.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Rg0Tr0ya.js +0 -1
- package/dist/client/assets/agent-deck-DaxKom9K.js +0 -1
- package/dist/client/assets/agent-experiments-gALcE-F4.js +0 -1
- package/dist/client/assets/agent-file-DY1lwsgY.js +0 -1
- package/dist/client/assets/agent-library-CPa8urhx.js +0 -1
- package/dist/client/assets/agent-library-file-CnGwYE2k.js +0 -1
- package/dist/client/assets/agent-overview-el3kyIBv.js +0 -1
- package/dist/client/assets/agent-settings-CQn5vagF.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DT9ycvyN.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BDuFxBcC.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-IKIhLz0T.js +0 -1
- package/dist/client/assets/agent-view-BhxK3cU9.js +0 -1
- package/dist/client/assets/api-keys-Cv0oZpoT.js +0 -1
- package/dist/client/assets/library-CB2VVs8O.js +0 -1
- package/dist/client/assets/monitoring-N4CPm7XC.js +0 -2
- package/dist/client/assets/project-reports-DiUu1Qc1.js +0 -1
- package/dist/client/assets/project-tasks-CAdmZlMS.js +0 -1
- package/dist/client/assets/record-editor-p_d7oWmO.js +0 -1
- package/dist/client/assets/reports-BEgGXtxt.js +0 -1
- package/dist/client/assets/repositories-BRHtIrVz.js +0 -1
- package/dist/client/assets/route-CmbvxWwg.js +0 -1
- package/dist/client/assets/settings-tab-XKL-PXfE.js +0 -1
- package/dist/client/assets/site-editor-BCUDTULP.js +0 -1
- package/dist/client/assets/tasks-CcgLlawT.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DMYy6FC9.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CSboyg4V.js +0 -1
- package/dist/client/assets/use-blog-view-7SxY0DSD.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D0bLDkrM.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DUNAnJxH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,b as ee,j as s,q as ze,K as Ne,r as J,au as Ae,B as Ie,h as Pe}from"./index-_v_cX_Uz.js";import{P as we}from"./agent-icon-1xBXRQD0.js";import{S as Ee}from"./scroll-area-CYAgrqag.js";import{X as Re,a as _e}from"./held-block-view-DMqKyknK.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-BzmLdpJn.js";import{h as Be,i as fe,b as Me,t as He,j as Qe,w as qe,s as Ge,r as Ve,u as We,k as Ye,a as Xe,f as Je}from"./empty-message-BCpAqPWS.js";import{L as Fe}from"./label-BPobXy5D.js";import{S as Ce}from"./switch-BHmpCIVF.js";import{a as Ze}from"./save-status-DwZEDw1l.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-BAD2nCs0.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-DbjIe6vh.js";import{b as ct}from"./use-never-published-wykmkClz.js";import{c as dt,u as ft}from"./hosted-reconcile-BP447g5V.js";import{a as Ke}from"./Image01-RSPET2Po.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Ze();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?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:mt,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:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,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 pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=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(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,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 T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,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?T: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(pt,{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]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[x,P,F]}),e[31]=x,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 vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:qe(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Oe(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function Z(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 jt(a){if(!a)return{};const e=Z(a.title),t=Z(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:Z(a.description),image:Z(a.image),favicon:Z(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{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.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;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 wt(a){const e=C.c(33),{seo:t,host:i,path:d,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]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=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]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=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]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,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 f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,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 ${d}`;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 f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,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]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,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 Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,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 f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=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]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,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]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,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]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||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(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,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 f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.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=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ge(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,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(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=Ve(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=J.useState(k),[j,g]=J.useState(null),[N,w]=J.useState(0),[E,T]=J.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:Y}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[U,K]=J.useState(F);(b!==k||U!==F)&&(f&&Y(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,X=E!==void 0?E:$e,Le=$?We(X)??void 0:void 0,D=j??Le??v??{},A=f?Ye(bt(D,f),r,l):null,B=A&&(!$||fe(X))?Ue(A,l):null;let te;e[6]!==l?(te=Xe(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"?Je(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(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]!==_||e[15]!==f||e[16]!==g?(le=O=>{if(!f)return;const ke=O;g(ke),_(ke)},e[14]=_,e[15]=f,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(Kt),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,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=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]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=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 G;e[44]!==Q||e[45]!==q?(G=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,q]}),e[44]=Q,e[45]=q,e[46]=G):G=e[46];let V;e[47]!==H||e[48]!==G?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,G]}),e[47]=H,e[48]=G,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==X||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!f||!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(yt,{rawSeo:X,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{T(O),L(O)},onInnerChange:O=>{g(O),_(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):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(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=X,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,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 Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Xt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Xt as s,De as u,gt as w};
|
|
1
|
+
import{c as C,b as ee,j as s,q as ze,K as Ne,r as J,au as Ae,B as Ie,h as Pe}from"./index-CM7QLcHH.js";import{P as we}from"./agent-icon-BsqGoLFA.js";import{S as Ee}from"./scroll-area-b9xVFzV5.js";import{X as Re,a as _e}from"./held-block-view-CVaa9FfQ.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-KPALSuby.js";import{h as Be,i as fe,b as Me,t as He,j as Qe,w as qe,s as Ge,r as Ve,u as We,k as Ye,a as Xe,f as Je}from"./empty-message-BbW3Jun4.js";import{L as Fe}from"./label-C3UnAGG4.js";import{S as Ce}from"./switch-D7D2_cGm.js";import{a as Ze}from"./save-status-BV5dLQjb.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-CaopsMfN.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-Dn6ViTaq.js";import{b as ct}from"./use-never-published-DzAvx8nn.js";import{c as dt,u as ft}from"./hosted-reconcile-BMXAyYfq.js";import{a as Ke}from"./Image01-5QAQlONA.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Ze();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?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:mt,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:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,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 pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=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(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,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 T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,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?T: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(pt,{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]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[x,P,F]}),e[31]=x,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 vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:qe(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Oe(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function Z(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 jt(a){if(!a)return{};const e=Z(a.title),t=Z(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:Z(a.description),image:Z(a.image),favicon:Z(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{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.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;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 wt(a){const e=C.c(33),{seo:t,host:i,path:d,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]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=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]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=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]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,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 f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,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 ${d}`;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 f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,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]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,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 Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,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 f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=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]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,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]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,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]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||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(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,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 f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.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=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ge(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,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(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=Ve(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=J.useState(k),[j,g]=J.useState(null),[N,w]=J.useState(0),[E,T]=J.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:Y}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[U,K]=J.useState(F);(b!==k||U!==F)&&(f&&Y(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,X=E!==void 0?E:$e,Le=$?We(X)??void 0:void 0,D=j??Le??v??{},A=f?Ye(bt(D,f),r,l):null,B=A&&(!$||fe(X))?Ue(A,l):null;let te;e[6]!==l?(te=Xe(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"?Je(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(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]!==_||e[15]!==f||e[16]!==g?(le=O=>{if(!f)return;const ke=O;g(ke),_(ke)},e[14]=_,e[15]=f,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(Kt),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,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=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]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=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 G;e[44]!==Q||e[45]!==q?(G=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,q]}),e[44]=Q,e[45]=q,e[46]=G):G=e[46];let V;e[47]!==H||e[48]!==G?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,G]}),e[47]=H,e[48]=G,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==X||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!f||!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(yt,{rawSeo:X,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{T(O),L(O)},onInnerChange:O=>{g(O),_(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):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(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=X,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,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 Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Xt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Xt as s,De as u,gt as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,m as d,j as f,fW as m}from"./index-
|
|
1
|
+
import{c as p,m as d,j as f,fW as m}from"./index-CM7QLcHH.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dV as o}from"./index-
|
|
1
|
+
import{dV as o}from"./index-CM7QLcHH.js";function s(r){return r.toLowerCase().trim().replace(/\//g,"-").replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function n(r){const t=r?.trim();if(!t)return null;try{const e=new URL(t);return e.protocol!=="http:"&&e.protocol!=="https:"?null:e.href}catch{return null}}function i(r){return n(r?.previewServerUrl)??n(r?.productionUrl)}function u(r){const t=r?.trim();if(!t)return null;const e=/^https?:\/\//i.test(t)?t:`https://${t}`;return n(e)}function p(r){const t=s(r??"");return t?u(`${t}.deco.site`):null}const d=["cms","sandbox"];function c(r){return r==="cms"||r==="sandbox"?r:null}function l(r){return!!i(r)&&(o(r)||r?.fastPreview===!0)}function a(r){return l(r)?"cms":"sandbox"}function m(r,t){return c(r?.runtime)??a(t)}export{d as T,m as a,u as b,p as c,a as d,s as e,c as p,i as r,n as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,j as o}from"./index-CM7QLcHH.js";import{V as a}from"./index-Cv1rMcuh.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 as u,j as i,eH as z,dY as R,aS as k,eI as B,eJ as D,b5 as E,d_ as H,dZ as O}from"./index-
|
|
1
|
+
import{c as n,m as u,j as i,eH as z,dY as R,aS as k,eI as B,eJ as D,b5 as E,d_ as H,dZ as O}from"./index-CM7QLcHH.js";function I(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(R,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}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(O,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("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(H,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function J(o){const e=n.c(29);let t,s,a,l,m,h,x;e[0]!==o?({className:s,children:t,side:m,size:h,hideCloseButton:x,container:a,...l}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=m,e[6]=h,e[7]=x):(t=e[1],s=e[2],a=e[3],l=e[4],m=e[5],h=e[6],x=e[7]);const d=m===void 0?"right":m,C=h===void 0?"sm":h,g=x===void 0?!1:x,N=a?"absolute":void 0;let r;e[8]!==N?(r=i.jsx(T,{className:N}),e[8]=N,e[9]=r):r=e[9];const j=a&&"absolute",v=d==="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",y=d==="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",S=(d==="left"||d==="right")&&(C==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),$=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",w=d==="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 c;e[10]!==s||e[11]!==$||e[12]!==w||e[13]!==j||e[14]!==v||e[15]!==y||e[16]!==S?(c=u("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",j,v,y,S,$,w,s),e[10]=s,e[11]=$,e[12]=w,e[13]=j,e[14]=v,e[15]=y,e[16]=S,e[17]=c):c=e[17];let f;e[18]!==g?(f=!g&&i.jsxs(D,{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(E,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[18]=g,e[19]=f):f=e[19];let p;e[20]!==t||e[21]!==l||e[22]!==c||e[23]!==f?(p=i.jsxs(k,{"data-slot":"sheet-content",className:c,...l,children:[t,f]}),e[20]=t,e[21]=l,e[22]=c,e[23]=f,e[24]=p):p=e[24];let b;return e[25]!==a||e[26]!==p||e[27]!==r?(b=i.jsxs(P,{container:a,children:[r,p]}),e[25]=a,e[26]=p,e[27]=r,e[28]=b):b=e[28],b}function Y(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=u("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 Z(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=u("mt-auto flex flex-col gap-2 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-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=u("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(z,{"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=u("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(B,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{_ as S,J as a,I as b,Y as c,q as d,Z as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,b as Q,e as Xe,j as n,B as F,t as We,o as gt,cr as pe,ah as zt,a as fe,M as cn,V as Ft,K as ht,cs as Bt,ct as Mt,av as Ze,m as bt,b8 as dn,C as kt,r as X,af as un,ag as ie,cu as mn,w as Kt,x as qt,v as Ht,D as Ut,d as Jt,a6 as jt,H as fn,T as Vt,i as et,E as xt,aW as Gt,cv as gn,cw as hn,b6 as Tt,J as pn,cx as yn,bD as bn,aU as xn,y as wn,cy as Sn,cz as jn,cA as vn,cB as kn,cC as Tn,a7 as Nn,u as Pn,a8 as _n,cD as In,cE as On,l as Wt,cF as Nt,cG as An,O as Cn,b1 as Pt,cH as En,a0 as $n}from"./index-_v_cX_Uz.js";import{t as Yt}from"./Globe04-DYHS72xm.js";import{i as Ln,s as se}from"./UserSquare-2uLtK5zL.js";import{u as Dn}from"./use-deployment-admin-DMzm770d.js";import{a as Rn}from"./admin-fetch-BhTJlAsX.js";import{$ as zn,z as yt,x as Fn,a0 as Bn,a1 as Mn,n as _t,h as Kn,a2 as qn,k as Hn,a3 as Un}from"./agent-icon-1xBXRQD0.js";import{s as Jn,d as Vn}from"./UserCheck01-BxAZblZb.js";import{s as Gn}from"./XClose-BKbw2IM5.js";import{l as Qt,i as Wn,c as Yn,b as Qn,a as Xn,w as Zn,O as es,j as ts,u as ns,k as ss,o as os}from"./use-org-notice-BmGI5AoV.js";import{u as is,a as as}from"./use-project-scope-BW5vvzIR.js";import{u as Xt,a as rs}from"./use-panel-navigate-BUxvnLXh.js";import{i as me}from"./CheckCircle-Cp5xjlw-.js";import{i as It}from"./Monitor01-D0Bxj-fe.js";import{i as Ve}from"./Zap-iZQqC26K.js";import{s as Ot}from"./Plus-DA5fCRCT.js";import{a as ls}from"./Tool01-x-P519mQ.js";import{e as Ge,b as oe,d as cs,a as ds,c as us,C as ms}from"./command-n87yBV6H.js";import{I as fs}from"./integration-icon-DMudGnaH.js";import{P as gs}from"./project-icon-m6Ad1m7q.js";import{a as hs}from"./use-navigate-to-agent-Blb_gT0Z.js";import{u as ps}from"./use-debounced-value-D0-3lKxq.js";import{a as ys,m as bs}from"./use-mcp-client--6E0VdQ1.js";import{a as xs}from"./new-project-dialog-BF76iYqU.js";import{u as ws,n as Ss}from"./new-project-store-DWxCJQOo.js";import{L as js}from"./legacy-admin-welcome-dialog-DR6IgoHi.js";import{R as vs}from"./required-auth-layout-AmJ1uTFt.js";import{t as ks,u as Ts,b as Ns,A as At}from"./use-view-draft-kind-Dog_0xGP.js";import{u as Ps,a as _s,c as Is,b as Os}from"./thread-route-DgTdTFs-.js";import{c as As,f as Cs}from"./thread-intent-AFleKGnm.js";import{u as Es}from"./use-blog-view-7SxY0DSD.js";import{u as $s}from"./use-org-sso-D0oSmb0Y.js";function Ls(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a||e[1]!==i?(c=async()=>{const I=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await I.json();if(!I.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=c):c=e[2];let f;e[3]!==a?(f=I=>{window.location.href=`/${I.slug??a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==i?(g=I=>{We.error(I instanceof Error?I.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h),u=Ds;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let y;e[14]!==o||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=y):y=e[16];let m;e[17]!==y?(m=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=m):m=e[18];let w;e[19]!==r||e[20]!==i?(w=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let j;e[22]!==w?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[22]=w,e[23]=j):j=e[23];let p;e[24]!==m||e[25]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[m,j]}),e[24]=m,e[25]=j,e[26]=p):p=e[26];let b;e[27]!==d?(b=()=>d.mutate(),e[27]=d,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(S=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=S):S=e[32];let x;e[33]!==d.isPending||e[34]!==b||e[35]!==S?(x=n.jsx(F,{onClick:b,disabled:d.isPending,children:S}),e[33]=d.isPending,e[34]=b,e[35]=S,e[36]=x):x=e[36];const k=d.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let v;e[39]!==d.isPending||e[40]!==T?(v=n.jsx(F,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=d.isPending,e[40]=T,e[41]=v):v=e[41];let P;e[42]!==x||e[43]!==v?(P=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,v]}),e[42]=x,e[43]=v,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==l?(_=n.jsxs(pe,{children:[l,p,P]}),e[45]=p,e[46]=P,e[47]=l,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function Ct(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=Q(),{isAdmin:c}=Dn(),f=Rs,g=r==="not-found",h=g?Ln:zt;let d;e[0]!==g||e[1]!==i?(d=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=d):d=e[2];const u=d;let l;e[3]!==g||e[4]!==s||e[5]!==o||e[6]!==i?(l=g?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const y=l;let m;e[8]!==h?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=m):m=e[9];let w;e[10]!==u?(w=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=w):w=e[11];let j;e[12]!==y?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=j):j=e[13];let p;e[14]!==w||e[15]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[w,j]}),e[14]=w,e[15]=j,e[16]=p):p=e[16];let b;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(b=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(zs,{orgId:a,orgSlug:o}),n.jsx(F,{variant:"ghost",onClick:f,children:i("common.goHome")})]}):n.jsx(F,{onClick:f,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==m||e[23]!==p||e[24]!==b?(S=n.jsxs(pe,{children:[m,p,b]}),e[22]=m,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function Rs(){window.location.href="/"}function zs(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=Q(),{data:r}=fe.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Rn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==a?(f=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==s?(g=w=>{We.error(w instanceof Error?w.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h);let u;e[11]!==d?(u=()=>d.mutate(),e[11]=d,e[12]=u):u=e[12];const l=!i||d.isPending;let y;e[13]!==d.isPending||e[14]!==s?(y=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=y):y=e[15];let m;return e[16]!==u||e[17]!==l||e[18]!==y?(m=n.jsx(F,{onClick:u,disabled:l,children:y}),e[16]=u,e[17]=l,e[18]=y,e[19]=m):m=e[19],m}function Fs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=Q();let c;e[0]!==o?(c=async()=>{const O=await fe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=c):c=e[1];let f;e[2]!==s?(f=()=>{cn(),window.location.href=`/${s}`},e[2]=s,e[3]=f):f=e[3];let g;e[4]!==i?(g=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==c||e[7]!==f||e[8]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[6]=c,e[7]=f,e[8]=g,e[9]=h):h=e[9];const d=Xe(h);let u;e[10]!==o?(u=async()=>{const O=await fe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=u):u=e[11];let l,y;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=y):(l=e[13],y=e[14]);let m;e[15]!==u||e[16]!==l||e[17]!==y?(m={mutationFn:u,onSuccess:l,onError:y},e[15]=u,e[16]=l,e[17]=y,e[18]=m):m=e[18];const w=Xe(m),j=d.isPending||w.isPending;let p;e[19]!==r||e[20]!==a?(p=r?n.jsx(gt,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(zn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let x;e[27]!==i?(x=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=x):x=e[28];let k;e[29]!==x?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[29]=x,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=n.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let v;e[34]!==d?(v=()=>d.mutate(),e[34]=d,e[35]=v):v=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 _;e[39]!==j||e[40]!==v||e[41]!==P?(_=n.jsx(F,{onClick:v,disabled:j,children:P}),e[39]=j,e[40]=v,e[41]=P,e[42]=_):_=e[42];let I;e[43]!==w?(I=()=>w.mutate(),e[43]=w,e[44]=I):I=e[44];let A;e[45]!==w.isPending||e[46]!==i?(A=w.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=w.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==j||e[49]!==I||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:I,disabled:j,children:A}),e[48]=j,e[49]=I,e[50]=A,e[51]=E):E=e[51];let $;e[52]!==_||e[53]!==E?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,E]}),e[52]=_,e[53]=E,e[54]=$):$=e[54];let L;return e[55]!==T||e[56]!==$||e[57]!==p?(L=n.jsxs(pe,{children:[p,T,$]}),e[55]=T,e[56]=$,e[57]=p,e[58]=L):L=e[58],L}function Bs(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=Q();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(gt,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let f;e[7]!==o||e[8]!==s?(f=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=f):f=e[9];let g;e[10]!==f?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[10]=f,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[c,g]}),e[12]=c,e[13]=g,e[14]=h):h=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx(F,{variant:"ghost",onClick:Ms,children:d}),e[17]=d,e[18]=u):u=e[18];let l;return e[19]!==r||e[20]!==h||e[21]!==u?(l=n.jsxs(pe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=l):l=e[22],l}function Ms(){window.location.href="/"}function Ks(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-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??"Failed to request access");return I},e[0]=a,e[1]=c):c=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=Hs,e[2]=f):f=e[2];let g;e[3]!==i?(g=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==c||e[6]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[5]=c,e[6]=g,e[7]=h):h=e[7];const d=Xe(h);let u;e[8]!==s||e[9]!==o?(u=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=u):u=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let y;e[14]!==l?(y=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r||e[17]!==i?(m=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=m):m=e[18];let w;e[19]!==m?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=w):w=e[20];let j;e[21]!==y||e[22]!==w?(j=n.jsxs("div",{className:"space-y-2",children:[y,w]}),e[21]=y,e[22]=w,e[23]=j):j=e[23];let p;e[24]!==d?(p=()=>d.mutate(),e[24]=d,e[25]=p):p=e[25];let b;e[26]!==d.isPending||e[27]!==i?(b=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==p||e[31]!==b?(S=n.jsx(F,{onClick:p,disabled:d.isPending,children:b}),e[29]=d.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const x=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==d.isPending||e[36]!==k?(T=n.jsx(F,{variant:"ghost",onClick:qs,disabled:x,children:k}),e[35]=d.isPending,e[36]=k,e[37]=T):T=e[37];let v;e[38]!==S||e[39]!==T?(v=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=v):v=e[40];let P;return e[41]!==j||e[42]!==v||e[43]!==u?(P=n.jsxs(pe,{children:[u,j,v]}),e[41]=j,e[42]=v,e[43]=u,e[44]=P):P=e[44],P}function qs(){window.location.href="/"}function Hs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Us(t){const e=R.c(7);let o;e[0]!==t?(o=ht.orgAccessStatus(t),e[0]=t,e[1]=o):o=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 s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],Ft(s)}function Js({orgSlug:t}){const{data:e}=Us(t);if(e.status!=="member"){const o=Bt()?.org===t;o&&Mt();const a=localStorage.getItem(Ze.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ze.lastOrgSlug()),(o||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Ct,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Bs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(Ct,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Zt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:f,footerLeading:g,actions:h,onDismiss:d,tone:u}=t,l=u===void 0?"neutral":u,y=g||h;let m;e[0]!==l?(m=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=m):m=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(Gn,{size:14}),e[2]=w):w=e[2];let j;e[3]!==a||e[4]!==d?(j=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:w}),e[3]=a,e[4]=d,e[5]=j):j=e[5];const p=c&&"flex items-start gap-3",b=f&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=bt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let x;e[9]!==c?(x=c&&n.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]=x):x=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let T;e[13]!==r?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let v;e[15]!==i?(v=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=v):v=e[16];let P;e[17]!==T||e[18]!==v||e[19]!==k?(P=n.jsxs("div",{children:[k,T,v]}),e[17]=T,e[18]=v,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==f?(_=f&&n.jsx("div",{className:"mt-3",children:f}),e[21]=f,e[22]=_):_=e[22];let I;e[23]!==P||e[24]!==_?(I=n.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=I):I=e[25];let A;e[26]!==I||e[27]!==S||e[28]!==x?(A=n.jsxs("div",{className:S,children:[x,I]}),e[26]=I,e[27]=S,e[28]=x,e[29]=A):A=e[29];let E;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==l?(E=y&&n.jsxs("div",{className:bt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=l,e[34]=E):E=e[34];let $;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==m||e[39]!==j||e[40]!==l?($=n.jsxs("div",{role:"dialog","aria-label":o,"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:[m,j,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=m,e[39]=j,e[40]=l,e[41]=$):$=e[41],$}const Vs=[{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 Gs(t){return Vs.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 Gs(e).map(o=>({element:Qt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const Ys=Qt("switcher"),Qs=30;function en(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Xs(t,e){return Ws(t,e).filter(o=>typeof o.element=="string"&&en(o.element))}function Zs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Qe=!1},steps:e}}let Qe=!1;async function eo(){return(await dn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function to(t,e){if(Qe)return;Qe=!0;let o=0;const a=()=>{if(!en(Ys)&&o++<Qs){requestAnimationFrame(a);return}const s=Xs(t,e);if(s.length===0){Qe=!1;return}eo().then(r=>{r(Zs(t,s)).drive()}).catch(()=>{Qe=!1})};a()}const tn=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:It,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:yt,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:Vn,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:kt,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:se,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:It,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:se,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:me,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:Ve,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:se,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:me,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:Ve,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:me,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:se,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:Ve,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:se,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:me,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:Ve,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:se,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:me,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:Ve,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:se,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:me,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:kt,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:Ve,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:me,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:se,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:se,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:Fn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ft="studio.release-feed.v1",wt=new Set;let ge="",he={},St=!1;function no(){if(St)return ge||"{}";try{return localStorage.getItem(ft)??"{}"}catch{return ge||"{}"}}function nn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Et(){const t=no();return t!==ge&&(ge=t,he=nn(t)),he}function so(t){wt.add(t);const e=o=>{if(!(o.key!==ft&&o.key!==null)){try{const a=localStorage.getItem(ft)??"{}",r={...nn(a),...he};he=r,ge=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{wt.delete(t),window.removeEventListener("storage",e)}}function oo(t){he=t,ge=JSON.stringify(t);try{localStorage.setItem(ft,ge),St=!1}catch{St=!0}wt.forEach(e=>e())}function io(){const t=R.c(7),e=X.useSyncExternalStore(so,Et,Et);let o;t[0]!==e?(o=f=>!!e[f],t[0]=e,t[1]=o):o=t[1];const a=o,s=ao;let r;t[2]!==e?(r=tn.reduce((f,g)=>e[g.id]?f:f+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:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function ao(t){he[t]||oo({...he,[t]:{seenAt:new Date().toISOString()}})}const $t=new Map;function sn(t){let e=$t.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},$t.set(t,e)),e}function ro(t,e){const o=sn(t);return o.subscribers.add(e),o.intervalId===null&&(o.intervalId=setInterval(()=>{o.now=Date.now();for(const a of o.subscribers)a()},t)),()=>{o.subscribers.delete(e),o.subscribers.size===0&&o.intervalId!==null&&(clearInterval(o.intervalId),o.intervalId=null)}}function lo(t){const e=R.c(4),o=t===void 0?6e4:t;let a;e[0]!==o?(a=()=>sn(o).now,e[0]=o,e[1]=a):a=e[1];const s=a;let r;return e[2]!==o?(r=i=>ro(o,i),e[2]=o,e[3]=r):r=e[3],X.useSyncExternalStore(r,s,s)}const co=720*60*60*1e3,uo=10080*60*1e3;function mo(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function fo(t){const e=tn[0];if(!e)return null;const o=mo(e.date),a=t-o;return a<0||a>co?null:e}function go(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 ho(t,e){const o=go(t);return o===null?!1:e-o>=uo}function po(){const t=R.c(46),e=Q(),o=is(),a=un(),s=Xt(),r=!!o,i=a===ie.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&Wn(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const f=c,{data:g}=fe.useSession(),{isSeen:h,markSeen:d}=io(),u=lo(6e4);let l,y,m;if(t[3]!==h||t[4]!==u||t[5]!==g?.user?.createdAt){m=Symbol.for("react.early_return_sentinel");e:{if(l=fo(u),!l){m=null;break e}if(!ho(g?.user?.createdAt,u)){m=null;break e}y=h(l.id)}t[3]=h,t[4]=u,t[5]=g?.user?.createdAt,t[6]=l,t[7]=y,t[8]=m}else l=t[6],y=t[7],m=t[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;if(y)return null;let w;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==f||t[14]!==e?(w=()=>{d(l.id),to(e,{onOrgHome:i,inProject:r,onSiteEditor:f})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=f,t[14]=e,t[15]=w):w=t[15];const j=w;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=l.eyebrow,x=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 T;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(T=l.learnMoreHref?n.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]=T):T=t[27];let v;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==j?(v=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:j,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=j,t[32]=v):v=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(yo),t[33]=l.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let I;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==v||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(I=n.jsx(Zt,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:x,onDismiss:k,footerLeading:T,actions:v,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=v,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=I):I=t[45],I}function yo(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function bo(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=Q();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Kt,{children:n.jsx(qt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:mn.map(xo)}),e[4]=c):c=e[4];let f;e[5]!==i?(f=n.jsxs(Ht,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=f):f=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==f?(g=n.jsx(Ut,{open:o,onOpenChange:a,children:f}),e[7]=a,e[8]=o,e[9]=f,e[10]=g):g=e[10],g}function xo(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(wo)})]},t.label)}function wo(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(So)})]},t.description)}function So(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Lt=8,Ye=["all","organizations","projects","chats","connections","actions"],jo=5;function Dt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function vo(t,e){const o=a=>{const s=e.indexOf(a);return s===-1?Number.POSITIVE_INFINITY:s};return[...t].sort((a,s)=>o(a.slug)-o(s.slug)||a.name.localeCompare(s.name))}function ko(t,e){const{org:o}=jt(),a=ys({connectionId:Vt,orgId:o.id,orgSlug:o.slug}),{data:s}=et({queryKey:ht.globalSearch(o.id,t,Lt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Lt}})).structuredContent?.items??[]}catch{return[]}}});return s??[]}function To(t){const e=R.c(213),{open:o,onOpenChange:a}=t,s=Q(),r=Jt(),{org:i}=jt(),{projects:c,hasProjects:f}=as(),{remember:g}=hs(i.slug),[h,d]=X.useState(""),[u,l]=X.useState("all");let y;e[0]!==u?(y=z=>u==="all"||u===z,e[0]=u,e[1]=y):y=e[1];const m=y,w=X.useDeferredValue(h),j=ko(w,m("chats")||m("connections")),p=Yn(),{data:b}=fn(),{recent:S}=Qn();let x;e[2]!==h?(x=h.trim(),e[2]=h,e[3]=x):x=e[3];const k=x,T=ps(k,150),{hits:v}=Xn(m("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==v||e[6]!==b||e[7]!==S){const z=vo(Zn(b??[],i),S);let U;e[10]!==v?(U=new Set(v.map(Io)),e[10]=v,e[11]=U):U=e[11],P=U,_=[...z,...v.filter(Ie=>!z.some(B=>B.id===Ie.id))],e[4]=i,e[5]=v,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const I=_;let A;e[12]!==I||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?I.filter(z=>z.slug!==i.slug).slice(0,jo):I,e[12]=I,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const E=A;let $;e[17]!==a?($=()=>{a(!1),d(""),l("all")},e[17]=a,e[18]=$):$=e[18];const L=$;let O;e[19]!==u?(O=z=>{const U=Ye.indexOf(u);l(Ye[(U+z+Ye.length)%Ye.length]??"all")},e[19]=u,e[20]=O):O=e[20];const M=O;let H;e[21]!==L?(H=(z,U)=>{xt("command_palette_used",{kind:U}),z(),L()},e[21]=L,e[22]=H):H=e[22];const D=H;let ae;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(ae=z=>{if(z.type==="connection"){if(!z.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:z.slug}});return}if(z.type==="task"){r({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const U=Gt(i.id).id;gn(r,hn({org:i.slug,agentId:z.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:z.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=ae):ae=e[26];const Z=ae;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const ne=ee;let te,J,V,q,G,W,Y,C,K,ye,be,re,le,ce,de,ue;if(e[29]!==L||e[30]!==M||e[31]!==D||e[32]!==f||e[33]!==j||e[34]!==r||e[35]!==a||e[36]!==o||e[37]!==Z||e[38]!==i.slug||e[39]!==E||e[40]!==c||e[41]!==g||e[42]!==ne||e[43]!==u||e[44]!==P||e[45]!==m||e[46]!==s||e[47]!==h||e[48]!==p){const z=j.filter(_o),U=j.filter(Po);let Ie;e[65]!==i.slug?(Ie={org:i.slug},e[65]=i.slug,e[66]=Ie):Ie=e[66];const B=Ie;let Oe;e[67]!==s?(Oe=s("sidebar.navDestinations.home"),e[67]=s,e[68]=Oe):Oe=e[68];let at;e[69]===Symbol.for("react.memo_cache_sentinel")?(at=n.jsx(Kn,{"aria-hidden":"true"}),e[69]=at):at=e[69];let Ae;e[70]!==B||e[71]!==Oe?(Ae={key:"home",label:Oe,icon:at,to:ie.home,params:B},e[70]=B,e[71]=Oe,e[72]=Ae):Ae=e[72];let Ce;e[73]!==s?(Ce=s("sidebar.navDestinations.reports"),e[73]=s,e[74]=Ce):Ce=e[74];let rt;e[75]===Symbol.for("react.memo_cache_sentinel")?(rt=n.jsx(qn,{"aria-hidden":"true"}),e[75]=rt):rt=e[75];let Ee;e[76]!==B||e[77]!==Ce?(Ee={key:"reports",label:Ce,icon:rt,to:ie.reports,params:B},e[76]=B,e[77]=Ce,e[78]=Ee):Ee=e[78];let $e;e[79]!==s?($e=s("sidebar.navDestinations.tasks"),e[79]=s,e[80]=$e):$e=e[80];let lt;e[81]===Symbol.for("react.memo_cache_sentinel")?(lt=n.jsx(_t,{"aria-hidden":"true"}),e[81]=lt):lt=e[81];let Le;e[82]!==i.slug?(Le={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=Le):Le=e[83];let De;e[84]!==$e||e[85]!==Le?(De={key:"tasks",label:$e,icon:lt,to:ie.tasks,params:Le},e[84]=$e,e[85]=Le,e[86]=De):De=e[86];let Re;e[87]!==s?(Re=s("sidebar.navDestinations.library"),e[87]=s,e[88]=Re):Re=e[88];let ct;e[89]===Symbol.for("react.memo_cache_sentinel")?(ct=n.jsx(Hn,{"aria-hidden":"true"}),e[89]=ct):ct=e[89];let ze;e[90]!==B||e[91]!==Re?(ze={key:"library",label:Re,icon:ct,to:ie.library,params:B},e[90]=B,e[91]=Re,e[92]=ze):ze=e[92];let Fe;e[93]!==s?(Fe=s("sidebar.navDestinations.discover"),e[93]=s,e[94]=Fe):Fe=e[94];let dt;e[95]===Symbol.for("react.memo_cache_sentinel")?(dt=n.jsx(Un,{"aria-hidden":"true"}),e[95]=dt):dt=e[95];let Be;e[96]!==B||e[97]!==Fe?(Be={key:"discover",label:Fe,icon:dt,to:ie.discover,params:B},e[96]=B,e[97]=Fe,e[98]=Be):Be=e[98];let ut;e[99]!==Ae||e[100]!==Ee||e[101]!==De||e[102]!==ze||e[103]!==Be?(ut=[Ae,Ee,De,ze,Be],e[99]=Ae,e[100]=Ee,e[101]=De,e[102]=ze,e[103]=Be,e[104]=ut):ut=e[104];const pt=ut;J=cs,be=o,e[105]!==L||e[106]!==a?(re=N=>N?a(!0):L(),e[105]=L,e[106]=a,e[107]=re):re=e[107],e[108]!==s?(le=s("commandPalette.title"),e[108]=s,e[109]=le):le=e[109],e[110]!==s?(ce=s("commandPalette.description"),e[110]=s,e[111]=ce):ce=e[111];let Me;e[112]!==u||e[113]!==s?(Me=u==="all"?s("commandPalette.placeholder"):s("commandPalette.placeholderScoped",{scope:s(Dt(u)).toLowerCase()}),e[112]=u,e[113]=s,e[114]=Me):Me=e[114];let Ke;e[115]!==s?(Ke=s("commandPalette.placeholder"),e[115]=s,e[116]=Ke):Ke=e[116];let qe;e[117]!==M||e[118]!==u||e[119]!==h?(qe=N=>{if(N.key==="Tab"){N.preventDefault(),M(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),l("all"))},e[117]=M,e[118]=u,e[119]=h,e[120]=qe):qe=e[120],e[121]!==Me||e[122]!==Ke||e[123]!==qe||e[124]!==h?(de=n.jsx(ds,{placeholder:Me,"aria-label":Ke,value:h,onValueChange:d,onKeyDown:qe}),e[121]=Me,e[122]=Ke,e[123]=qe,e[124]=h,e[125]=de):de=e[125];let He;e[126]!==s?(He=s("commandPalette.scope.label"),e[126]=s,e[127]=He):He=e[127];let Ue;e[128]!==u||e[129]!==s?(Ue=Ye.map(N=>n.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:No,onClick:()=>l(N),className:bt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:s(Dt(N))},N)),e[128]=u,e[129]=s,e[130]=Ue):Ue=e[130],e[131]!==He||e[132]!==Ue?(ue=n.jsx("div",{role:"radiogroup","aria-label":He,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ue}),e[131]=He,e[132]=Ue,e[133]=ue):ue=e[133],te=us,V="h-[min(420px,60vh)] max-h-none";let Je;e[134]!==s?(Je=s("commandPalette.empty"),e[134]=s,e[135]=Je):Je=e[135],e[136]!==Je?(q=n.jsx(ms,{children:Je}),e[136]=Je,e[137]=q):q=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==E||e[141]!==P||e[142]!==m||e[143]!==s||e[144]!==h||e[145]!==p?(G=m("organizations")&&E.length>0&&n.jsx(Ge,{heading:s("commandPalette.organizations"),children:E.map(N=>n.jsxs(oe,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[n.jsx(es,{org:N,size:"xs"}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&n.jsx("span",{className:"text-meta shrink-0",children:s("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=E,e[141]=P,e[142]=m,e[143]=s,e[144]=h,e[145]=p,e[146]=G):G=e[146],e[147]!==pt||e[148]!==D||e[149]!==r||e[150]!==m||e[151]!==s?(W=m("actions")&&n.jsx(Ge,{heading:s("commandPalette.goTo"),children:pt.map(N=>n.jsxs(oe,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,n.jsx("span",{children:N.label})]},N.key))}),e[147]=pt,e[148]=D,e[149]=r,e[150]=m,e[151]=s,e[152]=W):W=e[152],e[153]!==D||e[154]!==f||e[155]!==r||e[156]!==i.slug||e[157]!==c||e[158]!==g||e[159]!==m||e[160]!==s?(Y=m("projects")&&f&&n.jsx(Ge,{heading:s("commandPalette.projects"),children:c.map(N=>n.jsxs(oe,{value:`project ${N.title}`,onSelect:()=>D(()=>{g(N.id),r({to:ie.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[n.jsx(gs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),n.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=f,e[155]=r,e[156]=i.slug,e[157]=c,e[158]=g,e[159]=m,e[160]=s,e[161]=Y):Y=e[161],e[162]!==D||e[163]!==r||e[164]!==B||e[165]!==m||e[166]!==s?(C=m("actions")&&n.jsxs(Ge,{heading:s("commandPalette.actions"),children:[n.jsxs(oe,{value:s("commandPalette.newProject"),onSelect:()=>D(()=>r({to:ie.home,params:B}),"new_project"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.newProject")})]}),n.jsxs(oe,{value:s("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:B}),"invite"),children:[n.jsx(Bn,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.inviteTeammate")})]}),n.jsxs(oe,{value:s("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:B,search:{tab:"all"}}),"add_connection"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.addConnection")})]}),n.jsxs(oe,{value:s("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:B}),"settings"),children:[n.jsx(ls,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=B,e[165]=m,e[166]=s,e[167]=C):C=e[167],K=m("connections")&&z.length>0&&n.jsx(Ge,{heading:s("commandPalette.connections"),children:z.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),"connection"),children:[n.jsx(fs,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),ye=m("chats")&&U.length>0&&n.jsx(Ge,{heading:s("commandPalette.results"),children:U.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),N.type),children:[N.type==="thread"?n.jsx(Mn,{"aria-hidden":"true"}):n.jsx(_t,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=L,e[30]=M,e[31]=D,e[32]=f,e[33]=j,e[34]=r,e[35]=a,e[36]=o,e[37]=Z,e[38]=i.slug,e[39]=E,e[40]=c,e[41]=g,e[42]=ne,e[43]=u,e[44]=P,e[45]=m,e[46]=s,e[47]=h,e[48]=p,e[49]=te,e[50]=J,e[51]=V,e[52]=q,e[53]=G,e[54]=W,e[55]=Y,e[56]=C,e[57]=K,e[58]=ye,e[59]=be,e[60]=re,e[61]=le,e[62]=ce,e[63]=de,e[64]=ue}else te=e[49],J=e[50],V=e[51],q=e[52],G=e[53],W=e[54],Y=e[55],C=e[56],K=e[57],ye=e[58],be=e[59],re=e[60],le=e[61],ce=e[62],de=e[63],ue=e[64];let xe;e[168]!==te||e[169]!==V||e[170]!==q||e[171]!==G||e[172]!==W||e[173]!==Y||e[174]!==C||e[175]!==K||e[176]!==ye?(xe=n.jsxs(te,{className:V,children:[q,G,W,Y,C,K,ye]}),e[168]=te,e[169]=V,e[170]=q,e[171]=G,e[172]=W,e[173]=Y,e[174]=C,e[175]=K,e[176]=ye,e[177]=xe):xe=e[177];let tt;e[178]===Symbol.for("react.memo_cache_sentinel")?(tt=["↑","↓"],e[178]=tt):tt=e[178];let we;e[179]!==s?(we=s("commandPalette.hint.navigate"),e[179]=s,e[180]=we):we=e[180];let Se;e[181]!==we?(Se=n.jsx(mt,{keys:tt,label:we}),e[181]=we,e[182]=Se):Se=e[182];let nt;e[183]===Symbol.for("react.memo_cache_sentinel")?(nt=["↵"],e[183]=nt):nt=e[183];let je;e[184]!==s?(je=s("commandPalette.hint.open"),e[184]=s,e[185]=je):je=e[185];let ve;e[186]!==je?(ve=n.jsx(mt,{keys:nt,label:je}),e[186]=je,e[187]=ve):ve=e[187];let st;e[188]===Symbol.for("react.memo_cache_sentinel")?(st=["Tab"],e[188]=st):st=e[188];let ke;e[189]!==s?(ke=s("commandPalette.hint.filter"),e[189]=s,e[190]=ke):ke=e[190];let Te;e[191]!==ke?(Te=n.jsx(mt,{keys:st,label:ke}),e[191]=ke,e[192]=Te):Te=e[192];let ot;e[193]===Symbol.for("react.memo_cache_sentinel")?(ot=["Esc"],e[193]=ot):ot=e[193];let Ne;e[194]!==s?(Ne=s("commandPalette.hint.close"),e[194]=s,e[195]=Ne):Ne=e[195];let Pe;e[196]!==Ne?(Pe=n.jsx(mt,{keys:ot,label:Ne}),e[196]=Ne,e[197]=Pe):Pe=e[197];let _e;e[198]!==Se||e[199]!==ve||e[200]!==Te||e[201]!==Pe?(_e=n.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[Se,ve,Te,Pe]}),e[198]=Se,e[199]=ve,e[200]=Te,e[201]=Pe,e[202]=_e):_e=e[202];let it;return e[203]!==J||e[204]!==be||e[205]!==re||e[206]!==le||e[207]!==ce||e[208]!==de||e[209]!==ue||e[210]!==xe||e[211]!==_e?(it=n.jsxs(J,{open:be,onOpenChange:re,title:le,description:ce,children:[de,ue,xe,_e]}),e[203]=J,e[204]=be,e[205]=re,e[206]=le,e[207]=ce,e[208]=de,e[209]=ue,e[210]=xe,e[211]=_e,e[212]=it):it=e[212],it}function No(t){return t.preventDefault()}function Po(t){return t.type!=="connection"}function _o(t){return t.type==="connection"}function Io(t){return t.id}function mt(t){const e=R.c(7),{keys:o,label:a}=t;let s;e[0]!==o?(s=o.map(Oo),e[0]=o,e[1]=s):s=e[1];let r;e[2]!==s?(r=n.jsx("span",{className:"flex items-center gap-0.5",children:s}),e[2]=s,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=n.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Oo(t){return n.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const Ao=300*1e3,Co=2;function Eo(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function $o(t,e){return t.count>=Co&&t.version!==null&&t.version!==e}function Lo(){const t=R.c(31),e=Q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ht.appVersionCheck(),queryFn:Ro,refetchInterval:Ao,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=et(o),[r,i]=X.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[f,g]=X.useState(c);s!==r&&(i(s),g(v=>Eo(v,a,"4.589.0")));const[h,d]=X.useState(null);if(!$o(f,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let m;t[8]!==e?(m=e("announcements.version.title"),t[8]=e,t[9]=m):m=t[9];let w;t[10]!==e?(w=e("announcements.version.description"),t[10]=e,t[11]=w):w=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Tt,{size:16}),t[12]=j):j=t[12];let p;t[13]!==f.version?(p=()=>d(f.version),t[13]=f.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.589.0"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Tt,{size:14}),t[19]=x):x=t[19];let k;t[20]!==S?(k=n.jsxs(F,{size:"sm",onClick:Do,children:[S,x]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==l||t[25]!==y||t[26]!==m||t[27]!==w||t[28]!==p||t[29]!==b?(T=n.jsx(Zt,{ariaLabel:u,dismissLabel:l,eyebrow:y,title:m,description:w,icon:j,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=l,t[25]=y,t[26]=m,t[27]=w,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Do(){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 zo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Fo=Date.parse("2026-07-21T00:00:00Z"),Rt=t=>zo(Ze.ptBrAnnouncementSeen(t));function Bo(){const t=R.c(35),e=Q(),[o,a]=pn(),{data:s,isPending:r}=fe.useSession(),i=s?.user,c=i?.id,f=i?.createdAt,g=f!=null&&new Date(f).getTime()<Fo,h=yn()==="pt-BR",d=!r&&!!c&&g&&h&&o.language==="en"&&!Rt(c).has()&&!bn(),[u,l]=X.useState(!1),[y,m]=X.useState(!1);!u&&!r&&(l(!0),d&&c&&(Rt(c).mark(),a(Ko),m(!0),xt("pt_br_auto_switch_shown")));let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=D=>{xt("pt_br_auto_switch_closed",{action:D}),m(!1)},t[0]=w):w=t[0];const j=w;let p;t[1]!==a?(p=()=>{a(Mo),j("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&j("dismiss"),t[3]=S):S=t[3];let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=x):x=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=n.jsx(qt,{children:k}),t[7]=k,t[8]=T):T=t[8];let v;t[9]!==e?(v=e("announcements.ptBr.description"),t[9]=e,t[10]=v):v=t[10];let P;t[11]!==v?(P=n.jsx(xn,{children:v}),t[11]=v,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=n.jsxs(Kt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let I;t[16]!==e?(I=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=I):I=t[17];let A;t[18]!==b||t[19]!==I?(A=n.jsx(F,{variant:"outline",onClick:b,children:I}),t[18]=b,t[19]=I,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>j("ok"),t[21]=E):E=t[21];let $;t[22]!==e?($=e("announcements.ptBr.ok"),t[22]=e,t[23]=$):$=t[23];let L;t[24]!==$?(L=n.jsx(F,{onClick:E,children:$}),t[24]=$,t[25]=L):L=t[25];let O;t[26]!==A||t[27]!==L?(O=n.jsxs(wn,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=O):O=t[28];let M;t[29]!==O||t[30]!==_?(M=n.jsxs(Ht,{className:"sm:max-w-md",children:[x,_,O]}),t[29]=O,t[30]=_,t[31]=M):M=t[31];let H;return t[32]!==y||t[33]!==M?(H=n.jsx(Ut,{open:y,onOpenChange:S,children:M}),t[32]=y,t[33]=M,t[34]=H):H=t[34],H}function Mo(t){return{...t,language:"en"}}function Ko(t){return{...t,language:"pt-BR"}}function qo(t){const e=Sn(t);return typeof e=="string"?e:void 0}function Ho(){return qo("experiment-pipeline-check"),null}function Uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;jn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),vn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ho,{}),e[0]=a):a=e[0],a}function Jo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const f=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(o??f)!==f;let d,u;return r?.panel?u=r.panel:r?.newThread&&!h&&kn(e.tabId)?(u=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(u=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!h&&e.tabId&&!Tn(e.tabId)&&(u=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:ks(u,t.target,t.blogView),search:c}}const on="studio:thread-layout:v4",Vo=50;function an(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 Go(t,e,o,a=Vo){const s=t.filter(([r])=>r!==e);for(s.push([e,an(o)]);s.length>a;)s.shift();return s}function vt(){try{const t=sessionStorage.getItem(on);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function rn(t){try{sessionStorage.setItem(on,JSON.stringify(t))}catch{}}function Wo(t,e){t&&rn(Go(vt(),t,e))}function Yo(t){if(!t)return null;const e=vt().find(([o])=>o===t);return e?an(e[1]):null}function Mi(t){if(!t)return;const e=vt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&rn(o)}function ln(t){return{queryKey:ht.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 Ki(t){const e=R.c(10);let o;e[0]!==t?(o=ln(t),e[0]=t,e[1]=o):o=e[1];const a=et(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=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]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function Qo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=Q();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,f=Xo;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(zt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let d;e[5]!==h?(d=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==a||e[9]!==r?(u=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=u):u=e[10];let l;e[11]!==u?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=l):l=e[12];let y;e[13]!==d||e[14]!==l?(y=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r?(m=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=m):m=e[17];let w;e[18]!==c||e[19]!==m?(w=n.jsx(F,{onClick:c,children:m}),e[18]=c,e[19]=m,e[20]=w):w=e[20];let j;e[21]!==r?(j=r("common.goBack"),e[21]=r,e[22]=j):j=e[22];let p;e[23]!==j?(p=n.jsx(F,{variant:"ghost",onClick:f,children:j}),e[23]=j,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==w?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,p]}),e[25]=p,e[26]=w,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=n.jsxs(pe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function Xo(){window.location.href="/"}function Zo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=Q();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(Nn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let f;e[5]!==i||e[6]!==c?(f=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=f):f=e[7];let g;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(g=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let u;e[13]!==h||e[14]!==d?(u=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:h,children:d})}),e[13]=h,e[14]=d,e[15]=u):u=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let y;e[18]!==l?(y=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=y):y=e[19];let m;e[20]!==y||e[21]!==g||e[22]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,u,y]}),e[20]=y,e[21]=g,e[22]=u,e[23]=m):m=e[23];let w;return e[24]!==m||e[25]!==f?(w=n.jsxs(pe,{children:[r,f,m]}),e[24]=m,e[25]=f,e[26]=w):w=e[26],w}const ei="/settings/infra-billing";function ti(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ei)}function ni(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx($n,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function si(){const t=Jt(),e=As(),{org:o}=jt(),a=Pn({strict:!1}),s=Xt(),{openPanel:r,closePanel:i}=rs(),c=Ps(),f=_s(),g=Is(),h=Os(),d=Ts(),u=Es(),{data:l}=fe.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),m=()=>y(p=>({...p,sidepanel:!0})),w=(p,b,S)=>{const x=!!f&&f===p;f&&!x&&Wo(f,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=x?null:Yo(p),T=Gt(o.id).id;if(b===T&&!S?.panel)return h(p,()=>S?.autosend?{autosend:At}:{});const v=Jo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:At,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>v.search,{virtualMcpId:b,view:{tabId:v.tabId}})};return{openSidePanel:m,setTaskId:w,createNewTask:async(p,b,S)=>{const x=crypto.randomUUID(),k=p??g,T=d==="blog"&&k===g&&!S?.panel?Ns(b,Cs(l?.user)):null;try{await e?.create({id:x,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}w(x,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const oi=new Set(["/$org/","/$org/home"]);function ii(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ai},t[0]=e):e=t[0],Wt(e)}function ai(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&oi.has(e)}function ri(){const t=R.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=_n(e)?.params.org,[s,r]=X.useState(!1),[i,c]=ts(),[f,g]=ws(),h=In(),d=ii(),u=a??"";let l;t[1]!==u?(l=ln(u),t[1]=u,t[2]=l):l=t[2];const y=!!a&&d;let m;t[3]!==l||t[4]!==y?(m={...l,enabled:y},t[3]=l,t[4]=y,t[5]=m):m=t[5],et(m);const{data:w}=fe.useSession(),j=w?.user?.id;let p,b;t[6]!==h?(p=()=>{const C=K=>{if(Pt(K)&&K.code==="KeyK"){K.preventDefault(),os();return}if(K.key==="?"&&!En(K.target)){K.preventDefault(),r(!0);return}Pt(K)&&K.code==="BracketLeft"&&h.history.canGoBack()&&(K.preventDefault(),h.history.back())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),X.useEffect(p,b);let S;t[9]!==a||t[10]!==j?(S=On(a,j),t[9]=a,t[10]=j,t[11]=S):S=t[11];const{data:x}=Ft(S),k=x?.id,T=x?.slug,{data:v}=$s(k,T),P=!!v?.ssoRequired&&!v.authenticated,{data:_}=ns(T);let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I={select:li},t[12]=I):I=t[12];const A=Wt(I),E=_?.severity==="block"&&!ti(A),$=k??"",L=T??"";let O;t[13]!==L||t[14]!==$?(O=bs({connectionId:Vt,orgId:$,orgSlug:L}),t[13]=L,t[14]=$,t[15]=O):O=t[15];const M=!!k&&!!T;let H;if(t[16]!==O||t[17]!==M?(H={...O,enabled:M},t[16]=O,t[17]=M,t[18]=H):H=t[18],et(H),(!x||Nt(x)||P||E)&&ss(),!x){let C;return t[19]!==a?(C=n.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=C):C=t[20],C}if(Nt(x)){localStorage.getItem(Ze.lastOrgSlug())===a&&localStorage.removeItem(Ze.lastOrgSlug()),Bt()?.org===a&&Mt();let C;return t[21]!==x.name?(C=n.jsx(An,{orgName:x.name}),t[21]=x.name,t[22]=C):C=t[22],C}if(E&&_){let C;return t[23]!==x.slug||t[24]!==_?(C=n.jsx(Zo,{notice:_,orgSlug:x.slug}),t[23]=x.slug,t[24]=_,t[25]=C):C=t[25],C}if(P){let C;return t[26]!==x.id||t[27]!==x.name||t[28]!==x.slug||t[29]!==v.domain?(C=n.jsx(Qo,{orgId:x.id,orgSlug:x.slug,orgName:x.name,domain:v.domain}),t[26]=x.id,t[27]=x.name,t[28]=x.slug,t[29]=v.domain,t[30]=C):C=t[30],C}const ae=x.logo??null;let Z;t[31]!==x||t[32]!==ae?(Z={...x,logo:ae},t[31]=x,t[32]=ae,t[33]=Z):Z=t[33];let ee;t[34]!==x?(ee=n.jsx(Uo,{activeOrg:x}),t[34]=x,t[35]=ee):ee=t[35];let ne;t[36]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Cn,{}),t[36]=ne):ne=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(po,{}),n.jsx(Lo,{})]}),t[37]=te):te=t[37];let J;t[38]!==i||t[39]!==c?(J=i&&n.jsx(To,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=J):J=t[40];let V;t[41]!==f||t[42]!==g?(V=f&&n.jsx(xs,{open:!0,onOpenChange:g,source:Ss()}),t[41]=f,t[42]=g,t[43]=V):V=t[43];let q;t[44]!==s?(q=n.jsx(bo,{open:s,onOpenChange:r}),t[44]=s,t[45]=q):q=t[45];let G,W;t[46]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(Bo,{}),W=n.jsx(js,{}),t[46]=G,t[47]=W):(G=t[46],W=t[47]);let Y;return t[48]!==Z||t[49]!==ee||t[50]!==J||t[51]!==V||t[52]!==q?(Y=n.jsxs(ni,{org:Z,children:[ee,ne,te,J,V,q,G,W]}),t[48]=Z,t[49]=ee,t[50]=J,t[51]=V,t[52]=q,t[53]=Y):Y=t[53],Y}function li(t){return t.location.pathname}function ci(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(vs,{children:n.jsx(ri,{})}),t[0]=e):e=t[0],e}const qi=Object.freeze(Object.defineProperty({__proto__:null,default:ci,usePanelActions:si},Symbol.toStringTag,{value:"Module"}));export{lo as a,Ki as b,Mi as f,qi as s,si as u};
|
|
1
|
+
import{c as R,b as Q,e as Xe,j as n,B as F,t as We,o as gt,cr as pe,ah as zt,a as fe,M as cn,V as Ft,K as ht,cs as Bt,ct as Mt,av as Ze,m as bt,b8 as dn,C as kt,r as X,af as un,ag as ie,cu as mn,w as Kt,x as qt,v as Ht,D as Ut,d as Jt,a6 as jt,H as fn,T as Vt,i as et,E as xt,aW as Gt,cv as gn,cw as hn,b6 as Tt,J as pn,cx as yn,bD as bn,aU as xn,y as wn,cy as Sn,cz as jn,cA as vn,cB as kn,cC as Tn,a7 as Nn,u as Pn,a8 as _n,cD as In,cE as On,l as Wt,cF as Nt,cG as An,O as Cn,b1 as Pt,cH as En,a0 as $n}from"./index-CM7QLcHH.js";import{t as Yt}from"./Globe04-CMPPLcPg.js";import{i as Ln,s as se}from"./UserSquare-C9Yfn3z-.js";import{u as Dn}from"./use-deployment-admin-CZypPrVT.js";import{a as Rn}from"./admin-fetch-BhTJlAsX.js";import{$ as zn,z as yt,x as Fn,a0 as Bn,a1 as Mn,n as _t,h as Kn,a2 as qn,k as Hn,a3 as Un}from"./agent-icon-BsqGoLFA.js";import{s as Jn,d as Vn}from"./UserCheck01-UUUmyjQl.js";import{s as Gn}from"./XClose-2FBIsrt9.js";import{l as Qt,i as Wn,c as Yn,b as Qn,a as Xn,w as Zn,O as es,j as ts,u as ns,k as ss,o as os}from"./use-org-notice-CX9RQL9x.js";import{u as is,a as as}from"./use-project-scope-BUOLpI6_.js";import{u as Xt,a as rs}from"./use-panel-navigate-BxbJ8ZAZ.js";import{i as me}from"./CheckCircle-Bcn1SkPC.js";import{i as It}from"./Monitor01-D_volcqW.js";import{i as Ve}from"./Zap-CDm_Ehxw.js";import{s as Ot}from"./Plus-DPgqzlX_.js";import{a as ls}from"./Tool01-CAPkmPtU.js";import{e as Ge,b as oe,d as cs,a as ds,c as us,C as ms}from"./command-DVSq7p7n.js";import{I as fs}from"./integration-icon-DiYH80o3.js";import{P as gs}from"./project-icon-DbKP1qyo.js";import{a as hs}from"./use-navigate-to-agent-CSVf4amv.js";import{u as ps}from"./use-debounced-value-DfcYC5J6.js";import{a as ys,m as bs}from"./use-mcp-client-B64wHnuV.js";import{a as xs}from"./new-project-dialog-CLqrrOSd.js";import{u as ws,n as Ss}from"./new-project-store-BfCXIlUR.js";import{L as js}from"./legacy-admin-welcome-dialog-DFUf5Cdu.js";import{R as vs}from"./required-auth-layout-fGhNBti1.js";import{t as ks,u as Ts,b as Ns,A as At}from"./use-view-draft-kind-B8piuikE.js";import{u as Ps,a as _s,c as Is,b as Os}from"./thread-route-vX4Lb76a.js";import{c as As,f as Cs}from"./thread-intent-CXxEw9VY.js";import{u as Es}from"./use-blog-view-B86NPWtX.js";import{u as $s}from"./use-org-sso-DCPh9AmN.js";function Ls(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a||e[1]!==i?(c=async()=>{const I=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await I.json();if(!I.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=c):c=e[2];let f;e[3]!==a?(f=I=>{window.location.href=`/${I.slug??a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==i?(g=I=>{We.error(I instanceof Error?I.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h),u=Ds;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let y;e[14]!==o||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=y):y=e[16];let m;e[17]!==y?(m=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=m):m=e[18];let w;e[19]!==r||e[20]!==i?(w=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let j;e[22]!==w?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[22]=w,e[23]=j):j=e[23];let p;e[24]!==m||e[25]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[m,j]}),e[24]=m,e[25]=j,e[26]=p):p=e[26];let b;e[27]!==d?(b=()=>d.mutate(),e[27]=d,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(S=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=S):S=e[32];let x;e[33]!==d.isPending||e[34]!==b||e[35]!==S?(x=n.jsx(F,{onClick:b,disabled:d.isPending,children:S}),e[33]=d.isPending,e[34]=b,e[35]=S,e[36]=x):x=e[36];const k=d.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let v;e[39]!==d.isPending||e[40]!==T?(v=n.jsx(F,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=d.isPending,e[40]=T,e[41]=v):v=e[41];let P;e[42]!==x||e[43]!==v?(P=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,v]}),e[42]=x,e[43]=v,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==l?(_=n.jsxs(pe,{children:[l,p,P]}),e[45]=p,e[46]=P,e[47]=l,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function Ct(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=Q(),{isAdmin:c}=Dn(),f=Rs,g=r==="not-found",h=g?Ln:zt;let d;e[0]!==g||e[1]!==i?(d=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=d):d=e[2];const u=d;let l;e[3]!==g||e[4]!==s||e[5]!==o||e[6]!==i?(l=g?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const y=l;let m;e[8]!==h?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=m):m=e[9];let w;e[10]!==u?(w=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=w):w=e[11];let j;e[12]!==y?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=j):j=e[13];let p;e[14]!==w||e[15]!==j?(p=n.jsxs("div",{className:"space-y-2",children:[w,j]}),e[14]=w,e[15]=j,e[16]=p):p=e[16];let b;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(b=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(zs,{orgId:a,orgSlug:o}),n.jsx(F,{variant:"ghost",onClick:f,children:i("common.goHome")})]}):n.jsx(F,{onClick:f,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==m||e[23]!==p||e[24]!==b?(S=n.jsxs(pe,{children:[m,p,b]}),e[22]=m,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function Rs(){window.location.href="/"}function zs(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=Q(),{data:r}=fe.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Rn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==a?(f=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=f):f=e[4];let g;e[5]!==s?(g=w=>{We.error(w instanceof Error?w.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=g):g=e[6];let h;e[7]!==c||e[8]!==f||e[9]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[7]=c,e[8]=f,e[9]=g,e[10]=h):h=e[10];const d=Xe(h);let u;e[11]!==d?(u=()=>d.mutate(),e[11]=d,e[12]=u):u=e[12];const l=!i||d.isPending;let y;e[13]!==d.isPending||e[14]!==s?(y=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=y):y=e[15];let m;return e[16]!==u||e[17]!==l||e[18]!==y?(m=n.jsx(F,{onClick:u,disabled:l,children:y}),e[16]=u,e[17]=l,e[18]=y,e[19]=m):m=e[19],m}function Fs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=Q();let c;e[0]!==o?(c=async()=>{const O=await fe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=c):c=e[1];let f;e[2]!==s?(f=()=>{cn(),window.location.href=`/${s}`},e[2]=s,e[3]=f):f=e[3];let g;e[4]!==i?(g=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==c||e[7]!==f||e[8]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[6]=c,e[7]=f,e[8]=g,e[9]=h):h=e[9];const d=Xe(h);let u;e[10]!==o?(u=async()=>{const O=await fe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=u):u=e[11];let l,y;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=O=>{We.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=y):(l=e[13],y=e[14]);let m;e[15]!==u||e[16]!==l||e[17]!==y?(m={mutationFn:u,onSuccess:l,onError:y},e[15]=u,e[16]=l,e[17]=y,e[18]=m):m=e[18];const w=Xe(m),j=d.isPending||w.isPending;let p;e[19]!==r||e[20]!==a?(p=r?n.jsx(gt,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(zn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let x;e[27]!==i?(x=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=x):x=e[28];let k;e[29]!==x?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[29]=x,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=n.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let v;e[34]!==d?(v=()=>d.mutate(),e[34]=d,e[35]=v):v=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 _;e[39]!==j||e[40]!==v||e[41]!==P?(_=n.jsx(F,{onClick:v,disabled:j,children:P}),e[39]=j,e[40]=v,e[41]=P,e[42]=_):_=e[42];let I;e[43]!==w?(I=()=>w.mutate(),e[43]=w,e[44]=I):I=e[44];let A;e[45]!==w.isPending||e[46]!==i?(A=w.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=w.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==j||e[49]!==I||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:I,disabled:j,children:A}),e[48]=j,e[49]=I,e[50]=A,e[51]=E):E=e[51];let $;e[52]!==_||e[53]!==E?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,E]}),e[52]=_,e[53]=E,e[54]=$):$=e[54];let L;return e[55]!==T||e[56]!==$||e[57]!==p?(L=n.jsxs(pe,{children:[p,T,$]}),e[55]=T,e[56]=$,e[57]=p,e[58]=L):L=e[58],L}function Bs(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=Q();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(gt,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let f;e[7]!==o||e[8]!==s?(f=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=f):f=e[9];let g;e[10]!==f?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[10]=f,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[c,g]}),e[12]=c,e[13]=g,e[14]=h):h=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let u;e[17]!==d?(u=n.jsx(F,{variant:"ghost",onClick:Ms,children:d}),e[17]=d,e[18]=u):u=e[18];let l;return e[19]!==r||e[20]!==h||e[21]!==u?(l=n.jsxs(pe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=l):l=e[22],l}function Ms(){window.location.href="/"}function Ks(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=Q();let c;e[0]!==a?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-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??"Failed to request access");return I},e[0]=a,e[1]=c):c=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=Hs,e[2]=f):f=e[2];let g;e[3]!==i?(g=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==c||e[6]!==g?(h={mutationFn:c,onSuccess:f,onError:g},e[5]=c,e[6]=g,e[7]=h):h=e[7];const d=Xe(h);let u;e[8]!==s||e[9]!==o?(u=s?n.jsx(gt,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Yt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=u):u=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let y;e[14]!==l?(y=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r||e[17]!==i?(m=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=m):m=e[18];let w;e[19]!==m?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[19]=m,e[20]=w):w=e[20];let j;e[21]!==y||e[22]!==w?(j=n.jsxs("div",{className:"space-y-2",children:[y,w]}),e[21]=y,e[22]=w,e[23]=j):j=e[23];let p;e[24]!==d?(p=()=>d.mutate(),e[24]=d,e[25]=p):p=e[25];let b;e[26]!==d.isPending||e[27]!==i?(b=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==d.isPending||e[30]!==p||e[31]!==b?(S=n.jsx(F,{onClick:p,disabled:d.isPending,children:b}),e[29]=d.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const x=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==d.isPending||e[36]!==k?(T=n.jsx(F,{variant:"ghost",onClick:qs,disabled:x,children:k}),e[35]=d.isPending,e[36]=k,e[37]=T):T=e[37];let v;e[38]!==S||e[39]!==T?(v=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=v):v=e[40];let P;return e[41]!==j||e[42]!==v||e[43]!==u?(P=n.jsxs(pe,{children:[u,j,v]}),e[41]=j,e[42]=v,e[43]=u,e[44]=P):P=e[44],P}function qs(){window.location.href="/"}function Hs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Us(t){const e=R.c(7);let o;e[0]!==t?(o=ht.orgAccessStatus(t),e[0]=t,e[1]=o):o=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 s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],Ft(s)}function Js({orgSlug:t}){const{data:e}=Us(t);if(e.status!=="member"){const o=Bt()?.org===t;o&&Mt();const a=localStorage.getItem(Ze.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ze.lastOrgSlug()),(o||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(Ct,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Bs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(Ct,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Zt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:f,footerLeading:g,actions:h,onDismiss:d,tone:u}=t,l=u===void 0?"neutral":u,y=g||h;let m;e[0]!==l?(m=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=m):m=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(Gn,{size:14}),e[2]=w):w=e[2];let j;e[3]!==a||e[4]!==d?(j=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:w}),e[3]=a,e[4]=d,e[5]=j):j=e[5];const p=c&&"flex items-start gap-3",b=f&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=bt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let x;e[9]!==c?(x=c&&n.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]=x):x=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let T;e[13]!==r?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let v;e[15]!==i?(v=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=v):v=e[16];let P;e[17]!==T||e[18]!==v||e[19]!==k?(P=n.jsxs("div",{children:[k,T,v]}),e[17]=T,e[18]=v,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==f?(_=f&&n.jsx("div",{className:"mt-3",children:f}),e[21]=f,e[22]=_):_=e[22];let I;e[23]!==P||e[24]!==_?(I=n.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=I):I=e[25];let A;e[26]!==I||e[27]!==S||e[28]!==x?(A=n.jsxs("div",{className:S,children:[x,I]}),e[26]=I,e[27]=S,e[28]=x,e[29]=A):A=e[29];let E;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==l?(E=y&&n.jsxs("div",{className:bt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=l,e[34]=E):E=e[34];let $;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==m||e[39]!==j||e[40]!==l?($=n.jsxs("div",{role:"dialog","aria-label":o,"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:[m,j,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=m,e[39]=j,e[40]=l,e[41]=$):$=e[41],$}const Vs=[{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 Gs(t){return Vs.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 Gs(e).map(o=>({element:Qt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const Ys=Qt("switcher"),Qs=30;function en(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Xs(t,e){return Ws(t,e).filter(o=>typeof o.element=="string"&&en(o.element))}function Zs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Qe=!1},steps:e}}let Qe=!1;async function eo(){return(await dn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function to(t,e){if(Qe)return;Qe=!0;let o=0;const a=()=>{if(!en(Ys)&&o++<Qs){requestAnimationFrame(a);return}const s=Xs(t,e);if(s.length===0){Qe=!1;return}eo().then(r=>{r(Zs(t,s)).drive()}).catch(()=>{Qe=!1})};a()}const tn=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:It,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:yt,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:Vn,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:kt,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:se,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:It,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:se,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:me,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:Ve,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:se,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:me,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:Ve,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:me,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:se,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:Ve,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:se,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:me,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:Ve,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:se,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:me,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:Ve,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:se,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:yt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:me,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:kt,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:Ve,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:me,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:se,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:yt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:se,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:Fn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ft="studio.release-feed.v1",wt=new Set;let ge="",he={},St=!1;function no(){if(St)return ge||"{}";try{return localStorage.getItem(ft)??"{}"}catch{return ge||"{}"}}function nn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Et(){const t=no();return t!==ge&&(ge=t,he=nn(t)),he}function so(t){wt.add(t);const e=o=>{if(!(o.key!==ft&&o.key!==null)){try{const a=localStorage.getItem(ft)??"{}",r={...nn(a),...he};he=r,ge=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{wt.delete(t),window.removeEventListener("storage",e)}}function oo(t){he=t,ge=JSON.stringify(t);try{localStorage.setItem(ft,ge),St=!1}catch{St=!0}wt.forEach(e=>e())}function io(){const t=R.c(7),e=X.useSyncExternalStore(so,Et,Et);let o;t[0]!==e?(o=f=>!!e[f],t[0]=e,t[1]=o):o=t[1];const a=o,s=ao;let r;t[2]!==e?(r=tn.reduce((f,g)=>e[g.id]?f:f+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:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function ao(t){he[t]||oo({...he,[t]:{seenAt:new Date().toISOString()}})}const $t=new Map;function sn(t){let e=$t.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},$t.set(t,e)),e}function ro(t,e){const o=sn(t);return o.subscribers.add(e),o.intervalId===null&&(o.intervalId=setInterval(()=>{o.now=Date.now();for(const a of o.subscribers)a()},t)),()=>{o.subscribers.delete(e),o.subscribers.size===0&&o.intervalId!==null&&(clearInterval(o.intervalId),o.intervalId=null)}}function lo(t){const e=R.c(4),o=t===void 0?6e4:t;let a;e[0]!==o?(a=()=>sn(o).now,e[0]=o,e[1]=a):a=e[1];const s=a;let r;return e[2]!==o?(r=i=>ro(o,i),e[2]=o,e[3]=r):r=e[3],X.useSyncExternalStore(r,s,s)}const co=720*60*60*1e3,uo=10080*60*1e3;function mo(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function fo(t){const e=tn[0];if(!e)return null;const o=mo(e.date),a=t-o;return a<0||a>co?null:e}function go(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 ho(t,e){const o=go(t);return o===null?!1:e-o>=uo}function po(){const t=R.c(46),e=Q(),o=is(),a=un(),s=Xt(),r=!!o,i=a===ie.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&Wn(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const f=c,{data:g}=fe.useSession(),{isSeen:h,markSeen:d}=io(),u=lo(6e4);let l,y,m;if(t[3]!==h||t[4]!==u||t[5]!==g?.user?.createdAt){m=Symbol.for("react.early_return_sentinel");e:{if(l=fo(u),!l){m=null;break e}if(!ho(g?.user?.createdAt,u)){m=null;break e}y=h(l.id)}t[3]=h,t[4]=u,t[5]=g?.user?.createdAt,t[6]=l,t[7]=y,t[8]=m}else l=t[6],y=t[7],m=t[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;if(y)return null;let w;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==f||t[14]!==e?(w=()=>{d(l.id),to(e,{onOrgHome:i,inProject:r,onSiteEditor:f})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=f,t[14]=e,t[15]=w):w=t[15];const j=w;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=l.eyebrow,x=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 T;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(T=l.learnMoreHref?n.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]=T):T=t[27];let v;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==j?(v=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:j,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=j,t[32]=v):v=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(yo),t[33]=l.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let I;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==v||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(I=n.jsx(Zt,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:x,onDismiss:k,footerLeading:T,actions:v,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=v,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=I):I=t[45],I}function yo(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function bo(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=Q();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Kt,{children:n.jsx(qt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:mn.map(xo)}),e[4]=c):c=e[4];let f;e[5]!==i?(f=n.jsxs(Ht,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=f):f=e[6];let g;return e[7]!==a||e[8]!==o||e[9]!==f?(g=n.jsx(Ut,{open:o,onOpenChange:a,children:f}),e[7]=a,e[8]=o,e[9]=f,e[10]=g):g=e[10],g}function xo(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(wo)})]},t.label)}function wo(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(So)})]},t.description)}function So(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const Lt=8,Ye=["all","organizations","projects","chats","connections","actions"],jo=5;function Dt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function vo(t,e){const o=a=>{const s=e.indexOf(a);return s===-1?Number.POSITIVE_INFINITY:s};return[...t].sort((a,s)=>o(a.slug)-o(s.slug)||a.name.localeCompare(s.name))}function ko(t,e){const{org:o}=jt(),a=ys({connectionId:Vt,orgId:o.id,orgSlug:o.slug}),{data:s}=et({queryKey:ht.globalSearch(o.id,t,Lt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Lt}})).structuredContent?.items??[]}catch{return[]}}});return s??[]}function To(t){const e=R.c(213),{open:o,onOpenChange:a}=t,s=Q(),r=Jt(),{org:i}=jt(),{projects:c,hasProjects:f}=as(),{remember:g}=hs(i.slug),[h,d]=X.useState(""),[u,l]=X.useState("all");let y;e[0]!==u?(y=z=>u==="all"||u===z,e[0]=u,e[1]=y):y=e[1];const m=y,w=X.useDeferredValue(h),j=ko(w,m("chats")||m("connections")),p=Yn(),{data:b}=fn(),{recent:S}=Qn();let x;e[2]!==h?(x=h.trim(),e[2]=h,e[3]=x):x=e[3];const k=x,T=ps(k,150),{hits:v}=Xn(m("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==v||e[6]!==b||e[7]!==S){const z=vo(Zn(b??[],i),S);let U;e[10]!==v?(U=new Set(v.map(Io)),e[10]=v,e[11]=U):U=e[11],P=U,_=[...z,...v.filter(Ie=>!z.some(B=>B.id===Ie.id))],e[4]=i,e[5]=v,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const I=_;let A;e[12]!==I||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?I.filter(z=>z.slug!==i.slug).slice(0,jo):I,e[12]=I,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const E=A;let $;e[17]!==a?($=()=>{a(!1),d(""),l("all")},e[17]=a,e[18]=$):$=e[18];const L=$;let O;e[19]!==u?(O=z=>{const U=Ye.indexOf(u);l(Ye[(U+z+Ye.length)%Ye.length]??"all")},e[19]=u,e[20]=O):O=e[20];const M=O;let H;e[21]!==L?(H=(z,U)=>{xt("command_palette_used",{kind:U}),z(),L()},e[21]=L,e[22]=H):H=e[22];const D=H;let ae;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(ae=z=>{if(z.type==="connection"){if(!z.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:z.slug}});return}if(z.type==="task"){r({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const U=Gt(i.id).id;gn(r,hn({org:i.slug,agentId:z.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:z.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=ae):ae=e[26];const Z=ae;let ee;e[27]!==h?(ee=[h],e[27]=h,e[28]=ee):ee=e[28];const ne=ee;let te,J,V,q,G,W,Y,C,K,ye,be,re,le,ce,de,ue;if(e[29]!==L||e[30]!==M||e[31]!==D||e[32]!==f||e[33]!==j||e[34]!==r||e[35]!==a||e[36]!==o||e[37]!==Z||e[38]!==i.slug||e[39]!==E||e[40]!==c||e[41]!==g||e[42]!==ne||e[43]!==u||e[44]!==P||e[45]!==m||e[46]!==s||e[47]!==h||e[48]!==p){const z=j.filter(_o),U=j.filter(Po);let Ie;e[65]!==i.slug?(Ie={org:i.slug},e[65]=i.slug,e[66]=Ie):Ie=e[66];const B=Ie;let Oe;e[67]!==s?(Oe=s("sidebar.navDestinations.home"),e[67]=s,e[68]=Oe):Oe=e[68];let at;e[69]===Symbol.for("react.memo_cache_sentinel")?(at=n.jsx(Kn,{"aria-hidden":"true"}),e[69]=at):at=e[69];let Ae;e[70]!==B||e[71]!==Oe?(Ae={key:"home",label:Oe,icon:at,to:ie.home,params:B},e[70]=B,e[71]=Oe,e[72]=Ae):Ae=e[72];let Ce;e[73]!==s?(Ce=s("sidebar.navDestinations.reports"),e[73]=s,e[74]=Ce):Ce=e[74];let rt;e[75]===Symbol.for("react.memo_cache_sentinel")?(rt=n.jsx(qn,{"aria-hidden":"true"}),e[75]=rt):rt=e[75];let Ee;e[76]!==B||e[77]!==Ce?(Ee={key:"reports",label:Ce,icon:rt,to:ie.reports,params:B},e[76]=B,e[77]=Ce,e[78]=Ee):Ee=e[78];let $e;e[79]!==s?($e=s("sidebar.navDestinations.tasks"),e[79]=s,e[80]=$e):$e=e[80];let lt;e[81]===Symbol.for("react.memo_cache_sentinel")?(lt=n.jsx(_t,{"aria-hidden":"true"}),e[81]=lt):lt=e[81];let Le;e[82]!==i.slug?(Le={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=Le):Le=e[83];let De;e[84]!==$e||e[85]!==Le?(De={key:"tasks",label:$e,icon:lt,to:ie.tasks,params:Le},e[84]=$e,e[85]=Le,e[86]=De):De=e[86];let Re;e[87]!==s?(Re=s("sidebar.navDestinations.library"),e[87]=s,e[88]=Re):Re=e[88];let ct;e[89]===Symbol.for("react.memo_cache_sentinel")?(ct=n.jsx(Hn,{"aria-hidden":"true"}),e[89]=ct):ct=e[89];let ze;e[90]!==B||e[91]!==Re?(ze={key:"library",label:Re,icon:ct,to:ie.library,params:B},e[90]=B,e[91]=Re,e[92]=ze):ze=e[92];let Fe;e[93]!==s?(Fe=s("sidebar.navDestinations.discover"),e[93]=s,e[94]=Fe):Fe=e[94];let dt;e[95]===Symbol.for("react.memo_cache_sentinel")?(dt=n.jsx(Un,{"aria-hidden":"true"}),e[95]=dt):dt=e[95];let Be;e[96]!==B||e[97]!==Fe?(Be={key:"discover",label:Fe,icon:dt,to:ie.discover,params:B},e[96]=B,e[97]=Fe,e[98]=Be):Be=e[98];let ut;e[99]!==Ae||e[100]!==Ee||e[101]!==De||e[102]!==ze||e[103]!==Be?(ut=[Ae,Ee,De,ze,Be],e[99]=Ae,e[100]=Ee,e[101]=De,e[102]=ze,e[103]=Be,e[104]=ut):ut=e[104];const pt=ut;J=cs,be=o,e[105]!==L||e[106]!==a?(re=N=>N?a(!0):L(),e[105]=L,e[106]=a,e[107]=re):re=e[107],e[108]!==s?(le=s("commandPalette.title"),e[108]=s,e[109]=le):le=e[109],e[110]!==s?(ce=s("commandPalette.description"),e[110]=s,e[111]=ce):ce=e[111];let Me;e[112]!==u||e[113]!==s?(Me=u==="all"?s("commandPalette.placeholder"):s("commandPalette.placeholderScoped",{scope:s(Dt(u)).toLowerCase()}),e[112]=u,e[113]=s,e[114]=Me):Me=e[114];let Ke;e[115]!==s?(Ke=s("commandPalette.placeholder"),e[115]=s,e[116]=Ke):Ke=e[116];let qe;e[117]!==M||e[118]!==u||e[119]!==h?(qe=N=>{if(N.key==="Tab"){N.preventDefault(),M(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),l("all"))},e[117]=M,e[118]=u,e[119]=h,e[120]=qe):qe=e[120],e[121]!==Me||e[122]!==Ke||e[123]!==qe||e[124]!==h?(de=n.jsx(ds,{placeholder:Me,"aria-label":Ke,value:h,onValueChange:d,onKeyDown:qe}),e[121]=Me,e[122]=Ke,e[123]=qe,e[124]=h,e[125]=de):de=e[125];let He;e[126]!==s?(He=s("commandPalette.scope.label"),e[126]=s,e[127]=He):He=e[127];let Ue;e[128]!==u||e[129]!==s?(Ue=Ye.map(N=>n.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:No,onClick:()=>l(N),className:bt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:s(Dt(N))},N)),e[128]=u,e[129]=s,e[130]=Ue):Ue=e[130],e[131]!==He||e[132]!==Ue?(ue=n.jsx("div",{role:"radiogroup","aria-label":He,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ue}),e[131]=He,e[132]=Ue,e[133]=ue):ue=e[133],te=us,V="h-[min(420px,60vh)] max-h-none";let Je;e[134]!==s?(Je=s("commandPalette.empty"),e[134]=s,e[135]=Je):Je=e[135],e[136]!==Je?(q=n.jsx(ms,{children:Je}),e[136]=Je,e[137]=q):q=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==E||e[141]!==P||e[142]!==m||e[143]!==s||e[144]!==h||e[145]!==p?(G=m("organizations")&&E.length>0&&n.jsx(Ge,{heading:s("commandPalette.organizations"),children:E.map(N=>n.jsxs(oe,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[n.jsx(es,{org:N,size:"xs"}),n.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&n.jsx("span",{className:"text-meta shrink-0",children:s("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=E,e[141]=P,e[142]=m,e[143]=s,e[144]=h,e[145]=p,e[146]=G):G=e[146],e[147]!==pt||e[148]!==D||e[149]!==r||e[150]!==m||e[151]!==s?(W=m("actions")&&n.jsx(Ge,{heading:s("commandPalette.goTo"),children:pt.map(N=>n.jsxs(oe,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,n.jsx("span",{children:N.label})]},N.key))}),e[147]=pt,e[148]=D,e[149]=r,e[150]=m,e[151]=s,e[152]=W):W=e[152],e[153]!==D||e[154]!==f||e[155]!==r||e[156]!==i.slug||e[157]!==c||e[158]!==g||e[159]!==m||e[160]!==s?(Y=m("projects")&&f&&n.jsx(Ge,{heading:s("commandPalette.projects"),children:c.map(N=>n.jsxs(oe,{value:`project ${N.title}`,onSelect:()=>D(()=>{g(N.id),r({to:ie.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[n.jsx(gs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),n.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=f,e[155]=r,e[156]=i.slug,e[157]=c,e[158]=g,e[159]=m,e[160]=s,e[161]=Y):Y=e[161],e[162]!==D||e[163]!==r||e[164]!==B||e[165]!==m||e[166]!==s?(C=m("actions")&&n.jsxs(Ge,{heading:s("commandPalette.actions"),children:[n.jsxs(oe,{value:s("commandPalette.newProject"),onSelect:()=>D(()=>r({to:ie.home,params:B}),"new_project"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.newProject")})]}),n.jsxs(oe,{value:s("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:B}),"invite"),children:[n.jsx(Bn,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.inviteTeammate")})]}),n.jsxs(oe,{value:s("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:B,search:{tab:"all"}}),"add_connection"),children:[n.jsx(Ot,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.addConnection")})]}),n.jsxs(oe,{value:s("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:B}),"settings"),children:[n.jsx(ls,{"aria-hidden":"true"}),n.jsx("span",{children:s("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=B,e[165]=m,e[166]=s,e[167]=C):C=e[167],K=m("connections")&&z.length>0&&n.jsx(Ge,{heading:s("commandPalette.connections"),children:z.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),"connection"),children:[n.jsx(fs,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),ye=m("chats")&&U.length>0&&n.jsx(Ge,{heading:s("commandPalette.results"),children:U.map(N=>n.jsxs(oe,{value:`${N.title} ${N.id}`,keywords:ne,onSelect:()=>D(()=>Z(N),N.type),children:[N.type==="thread"?n.jsx(Mn,{"aria-hidden":"true"}):n.jsx(_t,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=L,e[30]=M,e[31]=D,e[32]=f,e[33]=j,e[34]=r,e[35]=a,e[36]=o,e[37]=Z,e[38]=i.slug,e[39]=E,e[40]=c,e[41]=g,e[42]=ne,e[43]=u,e[44]=P,e[45]=m,e[46]=s,e[47]=h,e[48]=p,e[49]=te,e[50]=J,e[51]=V,e[52]=q,e[53]=G,e[54]=W,e[55]=Y,e[56]=C,e[57]=K,e[58]=ye,e[59]=be,e[60]=re,e[61]=le,e[62]=ce,e[63]=de,e[64]=ue}else te=e[49],J=e[50],V=e[51],q=e[52],G=e[53],W=e[54],Y=e[55],C=e[56],K=e[57],ye=e[58],be=e[59],re=e[60],le=e[61],ce=e[62],de=e[63],ue=e[64];let xe;e[168]!==te||e[169]!==V||e[170]!==q||e[171]!==G||e[172]!==W||e[173]!==Y||e[174]!==C||e[175]!==K||e[176]!==ye?(xe=n.jsxs(te,{className:V,children:[q,G,W,Y,C,K,ye]}),e[168]=te,e[169]=V,e[170]=q,e[171]=G,e[172]=W,e[173]=Y,e[174]=C,e[175]=K,e[176]=ye,e[177]=xe):xe=e[177];let tt;e[178]===Symbol.for("react.memo_cache_sentinel")?(tt=["↑","↓"],e[178]=tt):tt=e[178];let we;e[179]!==s?(we=s("commandPalette.hint.navigate"),e[179]=s,e[180]=we):we=e[180];let Se;e[181]!==we?(Se=n.jsx(mt,{keys:tt,label:we}),e[181]=we,e[182]=Se):Se=e[182];let nt;e[183]===Symbol.for("react.memo_cache_sentinel")?(nt=["↵"],e[183]=nt):nt=e[183];let je;e[184]!==s?(je=s("commandPalette.hint.open"),e[184]=s,e[185]=je):je=e[185];let ve;e[186]!==je?(ve=n.jsx(mt,{keys:nt,label:je}),e[186]=je,e[187]=ve):ve=e[187];let st;e[188]===Symbol.for("react.memo_cache_sentinel")?(st=["Tab"],e[188]=st):st=e[188];let ke;e[189]!==s?(ke=s("commandPalette.hint.filter"),e[189]=s,e[190]=ke):ke=e[190];let Te;e[191]!==ke?(Te=n.jsx(mt,{keys:st,label:ke}),e[191]=ke,e[192]=Te):Te=e[192];let ot;e[193]===Symbol.for("react.memo_cache_sentinel")?(ot=["Esc"],e[193]=ot):ot=e[193];let Ne;e[194]!==s?(Ne=s("commandPalette.hint.close"),e[194]=s,e[195]=Ne):Ne=e[195];let Pe;e[196]!==Ne?(Pe=n.jsx(mt,{keys:ot,label:Ne}),e[196]=Ne,e[197]=Pe):Pe=e[197];let _e;e[198]!==Se||e[199]!==ve||e[200]!==Te||e[201]!==Pe?(_e=n.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[Se,ve,Te,Pe]}),e[198]=Se,e[199]=ve,e[200]=Te,e[201]=Pe,e[202]=_e):_e=e[202];let it;return e[203]!==J||e[204]!==be||e[205]!==re||e[206]!==le||e[207]!==ce||e[208]!==de||e[209]!==ue||e[210]!==xe||e[211]!==_e?(it=n.jsxs(J,{open:be,onOpenChange:re,title:le,description:ce,children:[de,ue,xe,_e]}),e[203]=J,e[204]=be,e[205]=re,e[206]=le,e[207]=ce,e[208]=de,e[209]=ue,e[210]=xe,e[211]=_e,e[212]=it):it=e[212],it}function No(t){return t.preventDefault()}function Po(t){return t.type!=="connection"}function _o(t){return t.type==="connection"}function Io(t){return t.id}function mt(t){const e=R.c(7),{keys:o,label:a}=t;let s;e[0]!==o?(s=o.map(Oo),e[0]=o,e[1]=s):s=e[1];let r;e[2]!==s?(r=n.jsx("span",{className:"flex items-center gap-0.5",children:s}),e[2]=s,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=n.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Oo(t){return n.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const Ao=300*1e3,Co=2;function Eo(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function $o(t,e){return t.count>=Co&&t.version!==null&&t.version!==e}function Lo(){const t=R.c(31),e=Q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:ht.appVersionCheck(),queryFn:Ro,refetchInterval:Ao,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=et(o),[r,i]=X.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[f,g]=X.useState(c);s!==r&&(i(s),g(v=>Eo(v,a,"4.589.1")));const[h,d]=X.useState(null);if(!$o(f,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let m;t[8]!==e?(m=e("announcements.version.title"),t[8]=e,t[9]=m):m=t[9];let w;t[10]!==e?(w=e("announcements.version.description"),t[10]=e,t[11]=w):w=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Tt,{size:16}),t[12]=j):j=t[12];let p;t[13]!==f.version?(p=()=>d(f.version),t[13]=f.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.589.1"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Tt,{size:14}),t[19]=x):x=t[19];let k;t[20]!==S?(k=n.jsxs(F,{size:"sm",onClick:Do,children:[S,x]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==l||t[25]!==y||t[26]!==m||t[27]!==w||t[28]!==p||t[29]!==b?(T=n.jsx(Zt,{ariaLabel:u,dismissLabel:l,eyebrow:y,title:m,description:w,icon:j,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=l,t[25]=y,t[26]=m,t[27]=w,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Do(){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 zo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Fo=Date.parse("2026-07-21T00:00:00Z"),Rt=t=>zo(Ze.ptBrAnnouncementSeen(t));function Bo(){const t=R.c(35),e=Q(),[o,a]=pn(),{data:s,isPending:r}=fe.useSession(),i=s?.user,c=i?.id,f=i?.createdAt,g=f!=null&&new Date(f).getTime()<Fo,h=yn()==="pt-BR",d=!r&&!!c&&g&&h&&o.language==="en"&&!Rt(c).has()&&!bn(),[u,l]=X.useState(!1),[y,m]=X.useState(!1);!u&&!r&&(l(!0),d&&c&&(Rt(c).mark(),a(Ko),m(!0),xt("pt_br_auto_switch_shown")));let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=D=>{xt("pt_br_auto_switch_closed",{action:D}),m(!1)},t[0]=w):w=t[0];const j=w;let p;t[1]!==a?(p=()=>{a(Mo),j("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&j("dismiss"),t[3]=S):S=t[3];let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=x):x=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=n.jsx(qt,{children:k}),t[7]=k,t[8]=T):T=t[8];let v;t[9]!==e?(v=e("announcements.ptBr.description"),t[9]=e,t[10]=v):v=t[10];let P;t[11]!==v?(P=n.jsx(xn,{children:v}),t[11]=v,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=n.jsxs(Kt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let I;t[16]!==e?(I=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=I):I=t[17];let A;t[18]!==b||t[19]!==I?(A=n.jsx(F,{variant:"outline",onClick:b,children:I}),t[18]=b,t[19]=I,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>j("ok"),t[21]=E):E=t[21];let $;t[22]!==e?($=e("announcements.ptBr.ok"),t[22]=e,t[23]=$):$=t[23];let L;t[24]!==$?(L=n.jsx(F,{onClick:E,children:$}),t[24]=$,t[25]=L):L=t[25];let O;t[26]!==A||t[27]!==L?(O=n.jsxs(wn,{children:[A,L]}),t[26]=A,t[27]=L,t[28]=O):O=t[28];let M;t[29]!==O||t[30]!==_?(M=n.jsxs(Ht,{className:"sm:max-w-md",children:[x,_,O]}),t[29]=O,t[30]=_,t[31]=M):M=t[31];let H;return t[32]!==y||t[33]!==M?(H=n.jsx(Ut,{open:y,onOpenChange:S,children:M}),t[32]=y,t[33]=M,t[34]=H):H=t[34],H}function Mo(t){return{...t,language:"en"}}function Ko(t){return{...t,language:"pt-BR"}}function qo(t){const e=Sn(t);return typeof e=="string"?e:void 0}function Ho(){return qo("experiment-pipeline-check"),null}function Uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;jn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),vn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ho,{}),e[0]=a):a=e[0],a}function Jo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const f=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(o??f)!==f;let d,u;return r?.panel?u=r.panel:r?.newThread&&!h&&kn(e.tabId)?(u=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(u=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!h&&e.tabId&&!Tn(e.tabId)&&(u=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:ks(u,t.target,t.blogView),search:c}}const on="studio:thread-layout:v4",Vo=50;function an(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 Go(t,e,o,a=Vo){const s=t.filter(([r])=>r!==e);for(s.push([e,an(o)]);s.length>a;)s.shift();return s}function vt(){try{const t=sessionStorage.getItem(on);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function rn(t){try{sessionStorage.setItem(on,JSON.stringify(t))}catch{}}function Wo(t,e){t&&rn(Go(vt(),t,e))}function Yo(t){if(!t)return null;const e=vt().find(([o])=>o===t);return e?an(e[1]):null}function Mi(t){if(!t)return;const e=vt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&rn(o)}function ln(t){return{queryKey:ht.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 Ki(t){const e=R.c(10);let o;e[0]!==t?(o=ln(t),e[0]=t,e[1]=o):o=e[1];const a=et(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=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]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function Qo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=Q();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,f=Xo;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(zt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let d;e[5]!==h?(d=n.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=d):d=e[6];let u;e[7]!==s||e[8]!==a||e[9]!==r?(u=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=u):u=e[10];let l;e[11]!==u?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=l):l=e[12];let y;e[13]!==d||e[14]!==l?(y=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=y):y=e[15];let m;e[16]!==r?(m=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=m):m=e[17];let w;e[18]!==c||e[19]!==m?(w=n.jsx(F,{onClick:c,children:m}),e[18]=c,e[19]=m,e[20]=w):w=e[20];let j;e[21]!==r?(j=r("common.goBack"),e[21]=r,e[22]=j):j=e[22];let p;e[23]!==j?(p=n.jsx(F,{variant:"ghost",onClick:f,children:j}),e[23]=j,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==w?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,p]}),e[25]=p,e[26]=w,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=n.jsxs(pe,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function Xo(){window.location.href="/"}function Zo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=Q();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(Nn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let f;e[5]!==i||e[6]!==c?(f=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=f):f=e[7];let g;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(g=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let u;e[13]!==h||e[14]!==d?(u=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:h,children:d})}),e[13]=h,e[14]=d,e[15]=u):u=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let y;e[18]!==l?(y=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=y):y=e[19];let m;e[20]!==y||e[21]!==g||e[22]!==u?(m=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,u,y]}),e[20]=y,e[21]=g,e[22]=u,e[23]=m):m=e[23];let w;return e[24]!==m||e[25]!==f?(w=n.jsxs(pe,{children:[r,f,m]}),e[24]=m,e[25]=f,e[26]=w):w=e[26],w}const ei="/settings/infra-billing";function ti(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(ei)}function ni(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx($n,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function si(){const t=Jt(),e=As(),{org:o}=jt(),a=Pn({strict:!1}),s=Xt(),{openPanel:r,closePanel:i}=rs(),c=Ps(),f=_s(),g=Is(),h=Os(),d=Ts(),u=Es(),{data:l}=fe.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),m=()=>y(p=>({...p,sidepanel:!0})),w=(p,b,S)=>{const x=!!f&&f===p;f&&!x&&Wo(f,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=x?null:Yo(p),T=Gt(o.id).id;if(b===T&&!S?.panel)return h(p,()=>S?.autosend?{autosend:At}:{});const v=Jo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:At,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>v.search,{virtualMcpId:b,view:{tabId:v.tabId}})};return{openSidePanel:m,setTaskId:w,createNewTask:async(p,b,S)=>{const x=crypto.randomUUID(),k=p??g,T=d==="blog"&&k===g&&!S?.panel?Ns(b,Cs(l?.user)):null;try{await e?.create({id:x,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}w(x,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const oi=new Set(["/$org/","/$org/home"]);function ii(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ai},t[0]=e):e=t[0],Wt(e)}function ai(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&oi.has(e)}function ri(){const t=R.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=_n(e)?.params.org,[s,r]=X.useState(!1),[i,c]=ts(),[f,g]=ws(),h=In(),d=ii(),u=a??"";let l;t[1]!==u?(l=ln(u),t[1]=u,t[2]=l):l=t[2];const y=!!a&&d;let m;t[3]!==l||t[4]!==y?(m={...l,enabled:y},t[3]=l,t[4]=y,t[5]=m):m=t[5],et(m);const{data:w}=fe.useSession(),j=w?.user?.id;let p,b;t[6]!==h?(p=()=>{const C=K=>{if(Pt(K)&&K.code==="KeyK"){K.preventDefault(),os();return}if(K.key==="?"&&!En(K.target)){K.preventDefault(),r(!0);return}Pt(K)&&K.code==="BracketLeft"&&h.history.canGoBack()&&(K.preventDefault(),h.history.back())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),X.useEffect(p,b);let S;t[9]!==a||t[10]!==j?(S=On(a,j),t[9]=a,t[10]=j,t[11]=S):S=t[11];const{data:x}=Ft(S),k=x?.id,T=x?.slug,{data:v}=$s(k,T),P=!!v?.ssoRequired&&!v.authenticated,{data:_}=ns(T);let I;t[12]===Symbol.for("react.memo_cache_sentinel")?(I={select:li},t[12]=I):I=t[12];const A=Wt(I),E=_?.severity==="block"&&!ti(A),$=k??"",L=T??"";let O;t[13]!==L||t[14]!==$?(O=bs({connectionId:Vt,orgId:$,orgSlug:L}),t[13]=L,t[14]=$,t[15]=O):O=t[15];const M=!!k&&!!T;let H;if(t[16]!==O||t[17]!==M?(H={...O,enabled:M},t[16]=O,t[17]=M,t[18]=H):H=t[18],et(H),(!x||Nt(x)||P||E)&&ss(),!x){let C;return t[19]!==a?(C=n.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=C):C=t[20],C}if(Nt(x)){localStorage.getItem(Ze.lastOrgSlug())===a&&localStorage.removeItem(Ze.lastOrgSlug()),Bt()?.org===a&&Mt();let C;return t[21]!==x.name?(C=n.jsx(An,{orgName:x.name}),t[21]=x.name,t[22]=C):C=t[22],C}if(E&&_){let C;return t[23]!==x.slug||t[24]!==_?(C=n.jsx(Zo,{notice:_,orgSlug:x.slug}),t[23]=x.slug,t[24]=_,t[25]=C):C=t[25],C}if(P){let C;return t[26]!==x.id||t[27]!==x.name||t[28]!==x.slug||t[29]!==v.domain?(C=n.jsx(Qo,{orgId:x.id,orgSlug:x.slug,orgName:x.name,domain:v.domain}),t[26]=x.id,t[27]=x.name,t[28]=x.slug,t[29]=v.domain,t[30]=C):C=t[30],C}const ae=x.logo??null;let Z;t[31]!==x||t[32]!==ae?(Z={...x,logo:ae},t[31]=x,t[32]=ae,t[33]=Z):Z=t[33];let ee;t[34]!==x?(ee=n.jsx(Uo,{activeOrg:x}),t[34]=x,t[35]=ee):ee=t[35];let ne;t[36]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Cn,{}),t[36]=ne):ne=t[36];let te;t[37]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(po,{}),n.jsx(Lo,{})]}),t[37]=te):te=t[37];let J;t[38]!==i||t[39]!==c?(J=i&&n.jsx(To,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=J):J=t[40];let V;t[41]!==f||t[42]!==g?(V=f&&n.jsx(xs,{open:!0,onOpenChange:g,source:Ss()}),t[41]=f,t[42]=g,t[43]=V):V=t[43];let q;t[44]!==s?(q=n.jsx(bo,{open:s,onOpenChange:r}),t[44]=s,t[45]=q):q=t[45];let G,W;t[46]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(Bo,{}),W=n.jsx(js,{}),t[46]=G,t[47]=W):(G=t[46],W=t[47]);let Y;return t[48]!==Z||t[49]!==ee||t[50]!==J||t[51]!==V||t[52]!==q?(Y=n.jsxs(ni,{org:Z,children:[ee,ne,te,J,V,q,G,W]}),t[48]=Z,t[49]=ee,t[50]=J,t[51]=V,t[52]=q,t[53]=Y):Y=t[53],Y}function li(t){return t.location.pathname}function ci(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(vs,{children:n.jsx(ri,{})}),t[0]=e):e=t[0],e}const qi=Object.freeze(Object.defineProperty({__proto__:null,default:ci,usePanelActions:si},Symbol.toStringTag,{value:"Module"}));export{lo as a,Ki as b,Mi as f,qi as s,si as u};
|