decocms 4.579.0 → 4.579.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-GXBIxFcm.js → AlertCircle-zr0wX6rF.js} +1 -1
- package/dist/client/assets/{AreaChart-BliO7z1O.js → AreaChart-B2N9Bcti.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BbqwGy0e.js → ArrowLeft-Bl_oOK1R.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBkhb8Yz.js → ArrowUp-elivCbuw.js} +1 -1
- package/dist/client/assets/{BookOpen01-1fjc61Mm.js → BookOpen01-CQcU8DEw.js} +1 -1
- package/dist/client/assets/{CartesianChart-D_ikhSur.js → CartesianChart-GQIn_cdf.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DFr--lUX.js → CategoricalChart-CuZXhd65.js} +1 -1
- package/dist/client/assets/{CheckCircle-B_eEhqJR.js → CheckCircle-BQ_BsFXT.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D-7E5GYT.js → ChevronSelectorVertical-CWcLLogC.js} +1 -1
- package/dist/client/assets/{ChevronUp-FDrusEQ7.js → ChevronUp-DKklQ3bJ.js} +1 -1
- package/dist/client/assets/{CreditCard01-KjySk-5G.js → CreditCard01-5LLU-cS_.js} +1 -1
- package/dist/client/assets/{Globe04-CYg8V2eL.js → Globe04-C_iZve3L.js} +1 -1
- package/dist/client/assets/{Key01-DY2gyLvd.js → Key01-D0p4-oSK.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CzDrAWsX.js → LinkBroken01-BTepcmNH.js} +1 -1
- package/dist/client/assets/{Minus-CMxaDSgl.js → Minus-DWgslVyP.js} +1 -1
- package/dist/client/assets/{Monitor01-3IwLMf0Q.js → Monitor01-B2hjJJ-O.js} +1 -1
- package/dist/client/assets/{Play-BOARoASB.js → Play-DuBKbsmQ.js} +1 -1
- package/dist/client/assets/{Plus-D452i-ki.js → Plus-CRtXbDBy.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BCPouREj.js → ReferenceLine-BTwFdzkB.js} +1 -1
- package/dist/client/assets/{SearchMd-D9VvymBK.js → SearchMd-DDfy6PV0.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DrNjYHL1.js → ShoppingBag01-onaGPnUG.js} +1 -1
- package/dist/client/assets/{Sun-BvPiksd_.js → Sun-CEK9L4UW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BzX5npS9.js → SwitchHorizontal01-DzexFd3R.js} +1 -1
- package/dist/client/assets/{Tool01-DoE3EsIZ.js → Tool01-B0TI67n-.js} +1 -1
- package/dist/client/assets/{Tooltip-z7WiBKoc.js → Tooltip-2DMIJ5gg.js} +1 -1
- package/dist/client/assets/{Trash01-_1ewPMOO.js → Trash01-1vS11V6D.js} +1 -1
- package/dist/client/assets/{Upload01-D11ZXRKj.js → Upload01-B5OG3xe6.js} +1 -1
- package/dist/client/assets/{UserSquare-DHrzs2xN.js → UserSquare-BAJzbhuU.js} +1 -1
- package/dist/client/assets/{Users01-DdipP4E2.js → Users01-DaLahyDL.js} +1 -1
- package/dist/client/assets/{XClose-CR92HpkN.js → XClose-RigEwdbR.js} +1 -1
- package/dist/client/assets/{Zap-D5X_AlHR.js → Zap-D0gg60Xv.js} +1 -1
- package/dist/client/assets/{access-gate-CpF5setC.js → access-gate-DpTCyI4G.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DB2eDzSO.js → add-connection-dialog-BFjNmoUE.js} +1 -1
- package/dist/client/assets/agent-app-Bpqc5TKb.js +1 -0
- package/dist/client/assets/{agent-assets-CynthE6_.js → agent-assets-BZW4eVF1.js} +1 -1
- package/dist/client/assets/{agent-automation-1MlsXRHC.js → agent-automation-DeQnvGwK.js} +1 -1
- package/dist/client/assets/{agent-automations-Dol9sHiV.js → agent-automations-EY7zcVw5.js} +1 -1
- package/dist/client/assets/{agent-blog-Db3MOHTb.js → agent-blog-DB-VUOMq.js} +2 -2
- package/dist/client/assets/{agent-blog-post-BWxagJWC.js → agent-blog-post-C7YY31uh.js} +2 -2
- package/dist/client/assets/{agent-calendar-DgGhw5pC.js → agent-calendar-B8bUAVQB.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CtbwhlqH.js → agent-capabilities-DIA4hYXj.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-ByKpOl5Z.js → agent-connect-sources-D-xJzGQW.js} +1 -1
- package/dist/client/assets/agent-deck-Cf_ErplN.js +1 -0
- package/dist/client/assets/{agent-e2e-CmmnhpPI.js → agent-e2e-g0nOI_x-.js} +1 -1
- package/dist/client/assets/agent-experiments-B-8UgQO-.js +1 -0
- package/dist/client/assets/{agent-file-BwXd7p-8.js → agent-file-YPpATd9K.js} +1 -1
- package/dist/client/assets/{agent-hosting-FxuGCE-9.js → agent-hosting-CveWqfNK.js} +1 -1
- package/dist/client/assets/{agent-icon-DPgCnEV1.js → agent-icon-mmszwibp.js} +1 -1
- package/dist/client/assets/agent-library-Dlt2bvFQ.js +1 -0
- package/dist/client/assets/agent-library-file-B139Zw2D.js +1 -0
- package/dist/client/assets/agent-overview-_bAVR0wp.js +1 -0
- package/dist/client/assets/{agent-releases-CkbrqRyS.js → agent-releases-CJfKJEbr.js} +1 -1
- package/dist/client/assets/agent-settings-DOFZ9TlT.js +1 -0
- package/dist/client/assets/{agent-site-editor-ClFcVY3S.js → agent-site-editor-BGtiRMtL.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bk7jz-8p.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CNbkww_K.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BjbJovHJ.js +1 -0
- package/dist/client/assets/agent-view--Q6sRyG-.js +1 -0
- package/dist/client/assets/{agent-view-guard-BCiwIORn.js → agent-view-guard-D3OOa7MK.js} +1 -1
- package/dist/client/assets/{ai-providers-bDAV58Mn.js → ai-providers-B59fTAqi.js} +1 -1
- package/dist/client/assets/{alert-DXhGyLVy.js → alert-BIXfxm9q.js} +1 -1
- package/dist/client/assets/{analytics-sections-DBGqAepm.js → analytics-sections-BbaWW2MU.js} +1 -1
- package/dist/client/assets/{api-keys-BNfyNQ7I.js → api-keys-B-fVnLBR.js} +1 -1
- package/dist/client/assets/api-keys-B7T782Eb.js +1 -0
- package/dist/client/assets/{app-editor-BiIR6cEw.js → app-editor-DqTsVzBi.js} +1 -1
- package/dist/client/assets/{asset-utils-C4P9UMw5.js → asset-utils-drPwMw_i.js} +1 -1
- package/dist/client/assets/{auth-DET1t4rk.js → auth-Dpio94p4.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ds0jCVCs.js → auth-catchall-CFF3U0RI.js} +1 -1
- package/dist/client/assets/{auth-entry-CcoroHhc.js → auth-entry-LKpobRVJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyPur8S6.js → auth-split-layout-CAxtAhO0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BcQblp8z.js → authenticate-and-persist-oauth-uFSi1ddd.js} +1 -1
- package/dist/client/assets/{automation-list-row-CUs_NzLP.js → automation-list-row-i2iBmqhL.js} +1 -1
- package/dist/client/assets/{automation-runs-CwfQCxx5.js → automation-runs-M9kcTzv1.js} +1 -1
- package/dist/client/assets/{automations-aHGSwKcI.js → automations-DVuSVNP2.js} +1 -1
- package/dist/client/assets/{badge-CPdAi539.js → badge-DQH-sPh3.js} +1 -1
- package/dist/client/assets/{block-document-Bbw2FP3P.js → block-document-CLjK5rGg.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CZpRdqcZ.js → blocks-preview-workspace-context-D5d1lCvq.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-B3rnTo7L.js → blocks-tab-states-BWSDyN-L.js} +1 -1
- package/dist/client/assets/{blog-preview-url-D9nceA8-.js → blog-preview-url-DrIHzDC1.js} +1 -1
- package/dist/client/assets/{blog-schema-CxC8Q-yf.js → blog-schema-Dud6I1hB.js} +1 -1
- package/dist/client/assets/{blog-source-gate-SOnwSY-u.js → blog-source-gate-DgI6bq3U.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CbpRy_w3.js → blog-view-gate-B2-t_Jmu.js} +1 -1
- package/dist/client/assets/{buckets-sxg53sM-.js → buckets-BqsIwhzU.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D_rPYtI9.js → build-improve-prompt-doc-CxH_m3ql.js} +1 -1
- package/dist/client/assets/{calendar-HFJ5axO1.js → calendar-B5V9ahxZ.js} +1 -1
- package/dist/client/assets/{capability-load-error-BCoAaz36.js → capability-load-error-Cy1nsQed.js} +1 -1
- package/dist/client/assets/{category-editor-BIsXNtK9.js → category-editor-uRLzcWX7.js} +1 -1
- package/dist/client/assets/{category-tree-BwBGBNEZ.js → category-tree-DSMV8uvW.js} +1 -1
- package/dist/client/assets/{chart-_XV_ZGbS.js → chart-CxiHJ7Yx.js} +1 -1
- package/dist/client/assets/{chat-context-DmIaWG0i.js → chat-context-DdWQJl7N.js} +1 -1
- package/dist/client/assets/{chat-draft-D5guZJ-Z.js → chat-draft-CHOcPtOp.js} +1 -1
- package/dist/client/assets/{checkbox-C6L9-jtU.js → checkbox-CVml-3os.js} +1 -1
- package/dist/client/assets/{choose-editor-D-ClYTuz.js → choose-editor-CJgNaynn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CMqt_C6d.js → cli-auth-success-BSNEAo2d.js} +1 -1
- package/dist/client/assets/{client-icons-BrNyP8bx.js → client-icons-Cvv9MyID.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-Cm7lJgYR.js → cms-settings-editor-DOHwi8qO.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-CTNFCbln.js → cms-store-drafts-Co6hs1Gm.js} +1 -1
- package/dist/client/assets/{collapsible-SBMmc8E3.js → collapsible-ZjNF64KD.js} +1 -1
- package/dist/client/assets/{collection-detail-VM7vyobJ.js → collection-detail-CFrXFPV3.js} +1 -1
- package/dist/client/assets/{collection-display-button-DNT54OXz.js → collection-display-button-D7AaZ59Q.js} +1 -1
- package/dist/client/assets/{collection-search-DXnQxUGL.js → collection-search-DrspIufR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BtWWhOUa.js → collection-table-wrapper-BTpP_R57.js} +1 -1
- package/dist/client/assets/{collection-tabs-BPEGrrum.js → collection-tabs-2wU6BwIq.js} +1 -1
- package/dist/client/assets/{combobox-B8oSfLQg.js → combobox-BdUyw8jq.js} +1 -1
- package/dist/client/assets/{command-ARXYIBtk.js → command-ByEG2lpR.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CrDXFS6p.js → companion-mcps-section-BpRA6d5a.js} +1 -1
- package/dist/client/assets/{config-FNjB2KQg.js → config-ViHsIgIA.js} +1 -1
- package/dist/client/assets/{connect-D7SeHA4r.js → connect-Aly-0ASI.js} +1 -1
- package/dist/client/assets/{connect-layout-ByVGILi-.js → connect-layout-CbUmd0fU.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Di53RqvY.js → connect-source-dialog-BI_iSjsz.js} +1 -1
- package/dist/client/assets/{connection-BTlRsp1B.js → connection-Bmlh47OD.js} +1 -1
- package/dist/client/assets/{connection-card-DFMJTK3o.js → connection-card-IGbEiasZ.js} +1 -1
- package/dist/client/assets/{connection-detail-C-BChkKr.js → connection-detail-D7WtScT_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9Yi82ri.js → connection-form-helpers-CM8A7qxi.js} +1 -1
- package/dist/client/assets/{connection-slug-COimMHkq.js → connection-slug-rgdaPyVS.js} +1 -1
- package/dist/client/assets/{connections-fJDsaPLw.js → connections-8AsK7z6U.js} +1 -1
- package/dist/client/assets/{content-tab-BV39A4DC.js → content-tab-6WPOlhG9.js} +3 -3
- package/dist/client/assets/{context-DHTHUOqh.js → context-Dgx2LMji.js} +1 -1
- package/dist/client/assets/{context-menu-B-hlKiE1.js → context-menu-h4YtCxvM.js} +1 -1
- package/dist/client/assets/{context-shell-BGKkeMCB.js → context-shell-BbE88Tyf.js} +3 -3
- package/dist/client/assets/{core.esm-Hiw5xlkT.js → core.esm-BzH_Nko5.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-EtzNyw9E.js → create-organization-dialog-CnHhjS0p.js} +1 -1
- package/dist/client/assets/{delete-copy-Bt51Emir.js → delete-copy-pOul_Q0z.js} +1 -1
- package/dist/client/assets/{device-hint-DcULIlAN.js → device-hint-BQG6K9Hf.js} +1 -1
- package/dist/client/assets/{discover-B7EzX3Z4.js → discover-kJdAd045.js} +1 -1
- package/dist/client/assets/{domain-settings-CYdry1vA.js → domain-settings-Bs--YGSm.js} +1 -1
- package/dist/client/assets/{drawer-BUu3Urhv.js → drawer-D7zE3h2P.js} +1 -1
- package/dist/client/assets/{editor-Dc6skLlO.js → editor-B0kphvbT.js} +1 -1
- package/dist/client/assets/{editor-classes-BRb8pzNp.js → editor-classes-SfZ5uUGn.js} +1 -1
- package/dist/client/assets/{empty-message-uyJw_GDm.js → empty-message-DkX3rdbv.js} +1 -1
- package/dist/client/assets/{empty-state-CQ-naxDO.js → empty-state-DKuRC7c7.js} +1 -1
- package/dist/client/assets/{empty-state-yinauESn.js → empty-state-Deh8mRpo.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-n7UpEKSe.js → experiments-tab-choice-BBShWrmo.js} +1 -1
- package/dist/client/assets/{extract-connection-data-UTX_3j8w.js → extract-connection-data-BklHKw1M.js} +1 -1
- package/dist/client/assets/{feature-gate-Caiq88-a.js → feature-gate-BlKXdO61.js} +1 -1
- package/dist/client/assets/{feature-paywall-CgY8XcJe.js → feature-paywall-6uSnqIFO.js} +1 -1
- package/dist/client/assets/{file-explorer-Dt28l_Zt.js → file-explorer-CvkaKFET.js} +1 -1
- package/dist/client/assets/{file-preview-B_OweD07.js → file-preview-B39yfF4F.js} +1 -1
- package/dist/client/assets/{file-share-button-GtMerxGo.js → file-share-button-C2MhJgEK.js} +1 -1
- package/dist/client/assets/{file-type-icon-5sEsvuio.js → file-type-icon-DVZfJOKC.js} +1 -1
- package/dist/client/assets/{folder-icon-BkVkbSXN.js → folder-icon-Dtva_-KR.js} +1 -1
- package/dist/client/assets/{form-DQshgY6C.js → form-DnzJbdNw.js} +1 -1
- package/dist/client/assets/{frame-navigation-DCO55Sf7.js → frame-navigation-mE1IyLxt.js} +1 -1
- package/dist/client/assets/{general-BaBNqFUU.js → general-DUr6-t_c.js} +1 -1
- package/dist/client/assets/{github-icon-CsOyvsM3.js → github-icon-Cd5dQEKt.js} +1 -1
- package/dist/client/assets/{held-block-view-CZDHkd7I.js → held-block-view-HcOuBva8.js} +1 -1
- package/dist/client/assets/{home-Csg3jJI1.js → home-BcJ5qMwh.js} +1 -1
- package/dist/client/assets/{home-overview-BWPQ5B3f.js → home-overview-BEZlL4ib.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BVY_PuHB.js → hosted-reconcile-DSYVUxqr.js} +1 -1
- package/dist/client/assets/{icon-button-DTP_l7w5.js → icon-button-CR6dftyf.js} +1 -1
- package/dist/client/assets/{index-D8htcGU7.js → index-AyKz2l6b.js} +1 -1
- package/dist/client/assets/{index-CoDU2Q4W.js → index-B1RqPkvO.js} +1 -1
- package/dist/client/assets/{index--NX8xaba.js → index-BpJqVb3l.js} +1 -1
- package/dist/client/assets/{index-B_-7lo18.js → index-C5bUqIA_.js} +1 -1
- package/dist/client/assets/{index-D9OoYQHh.js → index-CBlU77jJ.js} +1 -1
- package/dist/client/assets/{index-BUzNTivf.js → index-CDiUvHd3.js} +1 -1
- package/dist/client/assets/{index-TayDSkqp.js → index-CU2-l5Z1.js} +1 -1
- package/dist/client/assets/{index-PfzOl7J6.js → index-D8HDDDUz.js} +5 -5
- package/dist/client/assets/{index-BtBKqC_9.js → index-DGscs1DX.js} +1 -1
- package/dist/client/assets/{index-BxZUC_i-.js → index-DOkOhXW8.js} +1 -1
- package/dist/client/assets/{index-Chdoy1DO.js → index-DaVJsKZ7.js} +1 -1
- package/dist/client/assets/{index-xX6vrZ6Z.js → index-De51YIVR.js} +1 -1
- package/dist/client/assets/{index-DpynbW7T.js → index-PstEiCy7.js} +1 -1
- package/dist/client/assets/{index-yk7iwtzd.js → index-b6QIszGC.js} +1 -1
- package/dist/client/assets/{index-Cwblfb1K.js → index-gXWGEUwJ.js} +1 -1
- package/dist/client/assets/{index-DThhcUFE.js → index-odrPj5u2.js} +1 -1
- package/dist/client/assets/{index-redirect-BkFuXXfk.js → index-redirect-Dj3mFirc.js} +1 -1
- package/dist/client/assets/{index-COp-j3NW.js → index-uoYFNgrb.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BSITs4kU.js → infiniteQueryObserver-C3DB8A3F.js} +1 -1
- package/dist/client/assets/{infra-billing-BoDxU99n.js → infra-billing-Dv0Y4nq2.js} +1 -1
- package/dist/client/assets/{input-D81euCkI.js → input-B9-LxoR8.js} +1 -1
- package/dist/client/assets/{input-CHXvb5rt.js → input-DCkWhN8u.js} +3 -3
- package/dist/client/assets/{integration-icon-Cypf7ART.js → integration-icon-D10Wu8in.js} +1 -1
- package/dist/client/assets/{item-actions-8EnEtcgh.js → item-actions-ChF-Wajz.js} +1 -1
- package/dist/client/assets/{jira-icon-QIwPAzLK.js → jira-icon-BTl7-hxa.js} +1 -1
- package/dist/client/assets/{label-C3bFtEDk.js → label-C6Eod_61.js} +1 -1
- package/dist/client/assets/{layout-BQNYAbQM.js → layout-KD23pdsL.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BndvejSa.js → legacy-admin-welcome-dialog-DY8Bixis.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dl3vADCo.js → legacy-agents-deep-DqEHBKxS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ChiwiSS2.js → legacy-main-redirect-xIr91LSW.js} +1 -1
- package/dist/client/assets/library-1Y_LcuJb.js +1 -0
- package/dist/client/assets/{library-tab-CrYnUaco.js → library-tab-C-gyz3ep.js} +1 -1
- package/dist/client/assets/{login-rcDgqa7Z.js → login-LU1xbL-m.js} +1 -1
- package/dist/client/assets/{markdown-sfCsYKJ3.js → markdown-xlCS0Umn.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D149puyc.js → mcp-app-renderer-P6d9M0PC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-jwlMSPw2.js → mcp-oauth-B7XWBzzN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CSBTsyXo.js → mcp-oauth-B_8eWy31.js} +1 -1
- package/dist/client/assets/{members-CelJ91W8.js → members-TkhB8ase.js} +1 -1
- package/dist/client/assets/{memory-78oDfUbY.js → memory-0HN4vn-X.js} +1 -1
- package/dist/client/assets/{mock-board-1wwE7bgl.js → mock-board-DEylkukw.js} +3 -3
- package/dist/client/assets/{monaco-editor-CdzTj7u7.js → monaco-editor-D37e6fWN.js} +1 -1
- package/dist/client/assets/{monitoring-CMxjfhWD.js → monitoring-CWDPvUi9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DQq79-Av.js → monitoring-stats-row-BaRGE1me.js} +1 -1
- package/dist/client/assets/{multi-select-DuhSvGkq.js → multi-select-jJMhnt_d.js} +1 -1
- package/dist/client/assets/{mustache-7iPTegv4.js → mustache-B5ZYo9QF.js} +1 -1
- package/dist/client/assets/{named-rule-step-osjl7ntJ.js → named-rule-step-DxjJGQ3W.js} +1 -1
- package/dist/client/assets/{named-rule-view-BLodRfDS.js → named-rule-view-UfrOXS5F.js} +1 -1
- package/dist/client/assets/{new-project-dialog-ddGWO7oU.js → new-project-dialog-Czv5HvtS.js} +1 -1
- package/dist/client/assets/{oauth-callback-O0HaoPhW.js → oauth-callback-PiEldV4w.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-lqjcXm4x.js → oauth-callback-ai-provider-DUkKBpBm.js} +1 -1
- package/dist/client/assets/{oauth-consent-N41ISlqj.js → oauth-consent-CKXF9rY9.js} +1 -1
- package/dist/client/assets/{onboarding-5wyvG1ND.js → onboarding-ACGqZ934.js} +1 -1
- package/dist/client/assets/{openai-conversation-CHwDAykX.js → openai-conversation-BrQdLDfo.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-1aPoGedf.js → optimistic-project-sidebar-views-wCpU8FHx.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BETRE7hY.js → order-monitor-day-az11vn38.js} +1 -1
- package/dist/client/assets/{organization-choice-xEY1ZwIn.js → organization-choice-B4DvsWTU.js} +1 -1
- package/dist/client/assets/{orgs-BV4-A9Pr.js → orgs-BcVTs2Na.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DY9RNK5U.js → own-accounts-section-C9C2gCIB.js} +1 -1
- package/dist/client/assets/{pair-4_jIXzEz.js → pair-CBh8Ssld.js} +1 -1
- package/dist/client/assets/{parse-sections-Crm8e-1O.js → parse-sections-HRX0mYs4.js} +2 -2
- package/dist/client/assets/{plan-TSt9lDnY.js → plan-D-fnFfEU.js} +1 -1
- package/dist/client/assets/{plan-ladder-6lanq0kZ.js → plan-ladder-B-kol46S.js} +1 -1
- package/dist/client/assets/{plan-usage-card-qPS6Eqeb.js → plan-usage-card-C1wYjY71.js} +1 -1
- package/dist/client/assets/{popover-BBhzRgR6.js → popover-BvzfBeCD.js} +1 -1
- package/dist/client/assets/{post-calendar-XeIGYeqg.js → post-calendar-DGT8MPVI.js} +1 -1
- package/dist/client/assets/{post-editor-Cuw86g74.js → post-editor-CJ6LWCYX.js} +1 -1
- package/dist/client/assets/{preview-content-CdaarV-M.js → preview-content-Dg6p6zYi.js} +1 -1
- package/dist/client/assets/{preview-dialog-eUjd7KAO.js → preview-dialog-C6UJFd8t.js} +1 -1
- package/dist/client/assets/{preview-panel-DOASEmB8.js → preview-panel-XviDcPal.js} +1 -1
- package/dist/client/assets/{preview-tab-DHUmCnt8.js → preview-tab-Bsa49d5X.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-z_7jLJp3.js → product-picker-dialog-YdUbY-7g.js} +1 -1
- package/dist/client/assets/{profile-Q_Uil_2O.js → profile-CePaZKJY.js} +1 -1
- package/dist/client/assets/{project-app-view-B_pnPMK9.js → project-app-view-DfiChkFV.js} +1 -1
- package/dist/client/assets/{project-apps-DOmYqPIW.js → project-apps-C9_2F9T-.js} +1 -1
- package/dist/client/assets/{project-icon-DdcX-1Cu.js → project-icon-CaBBGJPF.js} +1 -1
- package/dist/client/assets/{project-index-CvnWioTG.js → project-index-C7nzWFsU.js} +1 -1
- package/dist/client/assets/project-reports-CoqhcCxn.js +1 -0
- package/dist/client/assets/project-tasks-Seoutc84.js +1 -0
- package/dist/client/assets/{projects-BnupWVNC.js → projects-CO4WaEwj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BBAZx24q.js → projects-empty-state-C5B5zjIl.js} +1 -1
- package/dist/client/assets/{prompts-CtCcnkuf.js → prompts-BjcWFXkv.js} +1 -1
- package/dist/client/assets/{record-editor-kAlyd6wn.js → record-editor-CjT1Sg-6.js} +1 -1
- package/dist/client/assets/{redirect-editor-G5HzKFY7.js → redirect-editor-OA8-5zJv.js} +1 -1
- package/dist/client/assets/{reports-CCeLAtH1.js → reports-BQZNrA6z.js} +1 -1
- package/dist/client/assets/reports-CwkGwbxw.js +1 -0
- package/dist/client/assets/{reports-onboarding-CihuSs_4.js → reports-onboarding-Bo8neYb7.js} +1 -1
- package/dist/client/assets/{reports-tab-CxCo6ljz.js → reports-tab-DgZa_ici.js} +2 -2
- package/dist/client/assets/repositories-BD2JywIJ.js +1 -0
- package/dist/client/assets/{repositories-Cr0Vmqsy.js → repositories-aSnJEtAN.js} +1 -1
- package/dist/client/assets/{repository-binding-BjyWZpYn.js → repository-binding-Dv276sdb.js} +1 -1
- package/dist/client/assets/{repository-picker-BQKFq3La.js → repository-picker-QBlZoWDu.js} +1 -1
- package/dist/client/assets/{require-capability-Ca04y4iT.js → require-capability-DR0RkcLX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-rj346c5-.js → required-auth-layout-DQ6ys2Lb.js} +1 -1
- package/dist/client/assets/{reset-password-CJ8Ib39J.js → reset-password-Cey_yJ7E.js} +1 -1
- package/dist/client/assets/{resizable-BWGQtKDK.js → resizable-B8_D-RUQ.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon--gm9VDQf.js → resolve-tab-icon-BR3-CACo.js} +1 -1
- package/dist/client/assets/{review-settings-DKHV4WWw.js → review-settings-oSfLAO7Q.js} +1 -1
- package/dist/client/assets/{role-color-h7pbmUj8.js → role-color-BUSBfkmC.js} +1 -1
- package/dist/client/assets/{roles-33JtztJp.js → roles-CjDfMF0i.js} +1 -1
- package/dist/client/assets/{route-esSEnbHB.js → route-8L849BD5.js} +1 -1
- package/dist/client/assets/{route-B2mhSQ66.js → route-K2NA94TK.js} +1 -1
- package/dist/client/assets/route-hkkxUpPa.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-ciVvS_mf.js → sandbox-lifecycle-context-D0Fc_zJJ.js} +1 -1
- package/dist/client/assets/{save-status-YxsSW2Rs.js → save-status-1UoG7f0k.js} +1 -1
- package/dist/client/assets/{schema-CWJkmqKK.js → schema-CFwkIhKP.js} +1 -1
- package/dist/client/assets/{schema-MF7uKk3F.js → schema-gPek6tvx.js} +1 -1
- package/dist/client/assets/{scroll-area-D0b5TYGa.js → scroll-area-BhLv10mq.js} +1 -1
- package/dist/client/assets/{search-input-CfjxHAmm.js → search-input-CLSXdutD.js} +1 -1
- package/dist/client/assets/{search-toggle-CvrrivM1.js → search-toggle-DukKK1PI.js} +1 -1
- package/dist/client/assets/{secret-picker-Bh-9Okys.js → secret-picker-BF4D31uF.js} +1 -1
- package/dist/client/assets/{secrets-BpaSArcv.js → secrets-DZpaifDz.js} +1 -1
- package/dist/client/assets/{section-array-field-YpT7n9vG.js → section-array-field-BtcjWtvt.js} +1 -1
- package/dist/client/assets/{sections-BDOnV4mD.js → sections-DiXXDwzo.js} +1 -1
- package/dist/client/assets/{sections-editor-e-APM9PR.js → sections-editor-Nvt7HB4y.js} +1 -1
- package/dist/client/assets/{select-DbxUTGle.js → select-CpVl3_2f.js} +1 -1
- package/dist/client/assets/{select-model-B_SYZDlx.js → select-model-BMlbS-e4.js} +1 -1
- package/dist/client/assets/{seo-editor-BAb4_SVN.js → seo-editor-M_gwXcCt.js} +1 -1
- package/dist/client/assets/{separator-C0AfeS3O.js → separator-DGA-poR7.js} +1 -1
- package/dist/client/assets/settings-tab-BOF9Hfhu.js +1 -0
- package/dist/client/assets/{sheet-BeOc3FAs.js → sheet-C6rtTUBz.js} +1 -1
- package/dist/client/assets/{shell-layout-QlUCYlok.js → shell-layout-DWWwIk_z.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BsBc3-Kf.js → site-draft-actions-D5Biudjs.js} +1 -1
- package/dist/client/assets/{site-draft-view-B2Uxv1of.js → site-draft-view-NNy8S2-k.js} +1 -1
- package/dist/client/assets/site-editor-Du_VAI4F.js +1 -0
- package/dist/client/assets/{site-editor-toast-Bw0qMl-K.js → site-editor-toast-BEWqoKlP.js} +1 -1
- package/dist/client/assets/{skills-DK12dTU3.js → skills-zwuWEnTI.js} +1 -1
- package/dist/client/assets/{slider-DWOCTsGO.js → slider-CBof_Q_V.js} +1 -1
- package/dist/client/assets/{sortable.esm-Bcfqg7Xt.js → sortable.esm-Dy1h1l2l.js} +1 -1
- package/dist/client/assets/{sso-BK-CwpIa.js → sso-DA1qOy6T.js} +1 -1
- package/dist/client/assets/{suggestion-DpDJqics.js → suggestion-D56UF_pQ.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DSWf_C0v.js → super-agent-icon-CN88o8hG.js} +1 -1
- package/dist/client/assets/{switch-CdoFqihq.js → switch-CG9p29mC.js} +1 -1
- package/dist/client/assets/{synced-repos-BBp6YhqW.js → synced-repos-ClnsQNcV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BA-Ya2gQ.js → tab-icon-glyph-1_FRhmF-.js} +1 -1
- package/dist/client/assets/{table-DBeLX30i.js → table--WoW2Lor.js} +1 -1
- package/dist/client/assets/{tabs-BwIUi1Ro.js → tabs-CnNsL319.js} +1 -1
- package/dist/client/assets/{task-board-Dt94BxWj.js → task-board-DUfmZVQ7.js} +1 -1
- package/dist/client/assets/{task-route-BLTj-Kt_.js → task-route-BZiSHzMD.js} +1 -1
- package/dist/client/assets/{task-status-COZT_U35.js → task-status-DckguLMB.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DTwKCUBR.js → taskboard-analytics-EKZ_Hvd3.js} +1 -1
- package/dist/client/assets/tasks-B2EqX_zH.js +1 -0
- package/dist/client/assets/{tasks-BSIA3XNt.js → tasks-ChO6GiZ2.js} +1 -1
- package/dist/client/assets/{textarea-0zeG6rdh.js → textarea-Cgu68q3w.js} +1 -1
- package/dist/client/assets/{thread-analytics-e-DAlOc7.js → thread-analytics-D56cWHrl.js} +1 -1
- package/dist/client/assets/{thread-intent-k_EWWvIp.js → thread-intent-DFlRKb26.js} +1 -1
- package/dist/client/assets/{thread-route-bIv-22ov.js → thread-route-BRv2L7da.js} +1 -1
- package/dist/client/assets/{thread-route-T4ycKium.js → thread-route-CCB-rd-1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D5ENmZN2.js → thread-sheet-body-CLb6QMKy.js} +1 -1
- package/dist/client/assets/{time-range-picker-l-A1yfsB.js → time-range-picker-DJQsn3p1.js} +1 -1
- package/dist/client/assets/{toggle-group-BR3YjLpg.js → toggle-group-lGOrFANX.js} +1 -1
- package/dist/client/assets/{tool-namespace-nlvRAMHv.js → tool-namespace-cagFCGCV.js} +1 -1
- package/dist/client/assets/{tool-set-selector-iLTKI2dh.js → tool-set-selector-B71rNLSq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-C1sAn-5j.js → toolbar-icon-button-jXG-KQc2.js} +1 -1
- package/dist/client/assets/{tooltip-7oUFzrc9.js → tooltip-BZFegydB.js} +1 -1
- package/dist/client/assets/{tooltipContext-BnluVbPZ.js → tooltipContext-C1F2kuWH.js} +1 -1
- package/dist/client/assets/{track-ClTfqB2h.js → track-lfFXhuhn.js} +1 -1
- package/dist/client/assets/{types-CT2b_f_n.js → types-FZCQuIv_.js} +1 -1
- package/dist/client/assets/{url-slug-DlwXWMoY.js → url-slug-B9Zc1vGv.js} +1 -1
- package/dist/client/assets/{usage-stats-DXQh2ym6.js → usage-stats-CphPEBVe.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BV-M-wTR.js → use-ai-providers-xj5bugI1.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DVA8503u.js → use-apply-named-rule-BWoo6p5O.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Ckzzwqrc.js +1 -0
- package/dist/client/assets/{use-automations-CkOHisGI.js → use-automations-D1alWz_j.js} +1 -1
- package/dist/client/assets/{use-autosave-CMjKQ8gr.js → use-autosave-iBowYJcP.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DUspd_UU.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DYxnWGXI.js → use-chat-layout-state-DfKn-NxL.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BRuQD-xn.js → use-cms-publish-actions-3jMkJE3K.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Bz03TbqD.js → use-connect-companion-C_A5Vxk7.js} +1 -1
- package/dist/client/assets/{use-connection-b1ZFdIKu.js → use-connection-CU6X3Wkq.js} +1 -1
- package/dist/client/assets/{use-content-sync-J1DOMeIV.js → use-content-sync-DmmeRMs-.js} +1 -1
- package/dist/client/assets/{use-copy-MGOjhapZ.js → use-copy-Bn5xNYDY.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Db1-0fqy.js → use-date-fns-locale-BwLIR0jW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-0ckPn95E.js → use-debounced-autosave-CsKCSmG6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-L8Mvr3Qf.js → use-debounced-value-Bd_QEBiw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CXHEdY4g.js → use-deco-credits-C0pODutp.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CExfz_YN.js → use-decopilot-events-BEba0iFr.js} +1 -1
- package/dist/client/assets/{use-delete-block-C4Fd-0fO.js → use-delete-block-C2VDoxSY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CiHyt6_e.js → use-delete-connection-Dmwz6pLO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D6ysmdql.js → use-deployment-admin-DBDDA5Db.js} +1 -1
- package/dist/client/assets/{use-entitlements-DKzKnO7t.js → use-entitlements-D_NXTAyp.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Rhzecu_l.js → use-fast-preview-draft-url-DO0FxQgi.js} +1 -1
- package/dist/client/assets/{use-file-configs-FzJwNbFB.js → use-file-configs-Css7VrGO.js} +1 -1
- package/dist/client/assets/{use-id-selection-DV-7Zfn_.js → use-id-selection-tdP-DqUr.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-P-dmKrll.js → use-inbox-feed-gupZrbXm.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D4cD1T3_.js → use-infinite-scroll-BW-rJXd9.js} +1 -1
- package/dist/client/assets/{use-join-requests-BZyMQ0xJ.js → use-join-requests-B4rRAy5i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DTyQot8D.js → use-main-panel-tabs-1Vj7wm8E.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BzTNOh9a.js → use-mcp-auth-status-CCeGVwSv.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CVGnTbnR.js → use-mcp-client-CluVMhVq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C72FS5ih.js → use-mcp-prompts-YffkWL7I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DQ6qPp-q.js → use-mcp-tools-C1QW6bpR.js} +1 -1
- package/dist/client/assets/{use-mobile-Box5tF93.js → use-mobile-D2Sn1D9v.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D_Vs6N9H.js → use-move-blocks-CWhuO9hg.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BFXAaVqR.js → use-navigate-to-agent-DG4RRc2l.js} +1 -1
- package/dist/client/assets/{use-never-published-D5jr8ByQ.js → use-never-published-D8nGboC4.js} +1 -1
- package/dist/client/assets/{use-org-fs-DhEmmAqR.js → use-org-fs-BySi7x_E.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D4_eFcdp.js → use-org-repo-syncs-CR3rL8dY.js} +1 -1
- package/dist/client/assets/{use-org-sso-PK2UdKUD.js → use-org-sso-C1PNiOLX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-1gniuS7P.js → use-organization-settings-HcETy7Sy.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CWUPdvlx.js → use-project-native-view-presence-DwgE9Oo5.js} +1 -1
- package/dist/client/assets/{use-project-scope-RvpHL0s_.js → use-project-scope-C_D7G_Rp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B7zKTjxf.js → use-recent-apps-h9IShd63.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Df9ZgP2V.js → use-reports-diagnostic-CKOsUeqn.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BV2Y1Vu8.js → use-sandbox-events-BRyRagyy.js} +1 -1
- package/dist/client/assets/{use-secrets-DE7J5I_l.js → use-secrets-BDiRf3Zk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJE9UobB.js → use-section-preview-base-C9b4a3IM.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BFQg4qhu.js → use-sidebar-collapsed-I4_8P9uh.js} +1 -1
- package/dist/client/assets/{use-tags-CV-rF5OD.js → use-tags-BLAg8Bt6.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BFgtA0eR.js → use-task-board-analytics-fe_SM3oJ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DMey0obH.js → use-task-board-events-DLrBUovp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B52UpU_u.js → use-task-board-item-prs-CwDomqDS.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BxTPwb-L.js → use-task-board-items-Bm6zwfzn.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BRQWf9Pf.js → use-task-board-prompts-CjwAHKAM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CX5mjd3k.js → use-task-metadata-CM4snwYN.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-NzO2uf9T.js → use-thread-outputs-hVznlgM2.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Czb3VJ2z.js → use-view-draft-kind-Bb6178QK.js} +1 -1
- package/dist/client/assets/{use-voice-input-CJwxrnH4.js → use-voice-input-4p-Pv-qm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D3dviUwm.js +1 -0
- package/dist/client/assets/{useQueries-BTKHF006.js → useQueries-BDKcwXY5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CX7nH5DS.js +1 -0
- package/dist/client/assets/{users-C1cmyiHr.js → users-JZFItgDj.js} +1 -1
- package/dist/client/assets/{utils-dLgjLO-5.js → utils-Cjet4zZt.js} +1 -1
- package/dist/client/assets/{variant-calendar-BFvdqyOs.js → variant-calendar-D2b6pfPb.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-uOKZ9bIk.js → variant-matcher-override-CNk4J4xE.js} +1 -1
- package/dist/client/assets/{view-header-g_I-xUvY.js → view-header-DeTc05o9.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CIFm7Ktp.js → virtual-mcp-Dhzw4N7R.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cs81gduQ.js → watch-sse-pool-C_8RX2D3.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-FoPCQlJh.js +0 -1
- package/dist/client/assets/agent-deck-CYqAnEDO.js +0 -1
- package/dist/client/assets/agent-experiments-C0HV4Igp.js +0 -1
- package/dist/client/assets/agent-library-CZViQovH.js +0 -1
- package/dist/client/assets/agent-library-file-DC-34Ulj.js +0 -1
- package/dist/client/assets/agent-overview-DIMIEsnS.js +0 -1
- package/dist/client/assets/agent-settings-Ct-2qeci.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B_iiio_B.js +0 -2
- package/dist/client/assets/agent-site-editor-content-XnR2gN3f.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DuB0qtlm.js +0 -1
- package/dist/client/assets/agent-view-B8ACan0R.js +0 -1
- package/dist/client/assets/api-keys-BHoBmIeA.js +0 -1
- package/dist/client/assets/library-BRiige9x.js +0 -1
- package/dist/client/assets/project-reports-CjkBj3OZ.js +0 -1
- package/dist/client/assets/project-tasks-BR7DB76X.js +0 -1
- package/dist/client/assets/reports-BZMzVdGj.js +0 -1
- package/dist/client/assets/repositories-xVxXVGUl.js +0 -1
- package/dist/client/assets/route-L9WJSo8Z.js +0 -1
- package/dist/client/assets/settings-tab-BdJ07iEH.js +0 -1
- package/dist/client/assets/site-editor-CkLwv4jN.js +0 -1
- package/dist/client/assets/tasks-CbzokKrd.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BNelLcsB.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DwFetary.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BVraOGoC.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ta5X_y4e.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,as as Ae,B as Ie,h as Pe}from"./index-PfzOl7J6.js";import{a2 as we}from"./agent-icon-DPgCnEV1.js";import{S as Ee}from"./scroll-area-D0b5TYGa.js";import{X as Re,d as _e}from"./held-block-view-CZDHkd7I.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-B3rnTo7L.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-uyJw_GDm.js";import{L as Fe}from"./label-C3bFtEDk.js";import{S as Ce}from"./switch-CdoFqihq.js";import{a as Ze}from"./save-status-YxsSW2Rs.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-DbxUTGle.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-Bw0qMl-K.js";import{b as ct}from"./use-never-published-D5jr8ByQ.js";import{c as dt,u as ft}from"./hosted-reconcile-BVY_PuHB.js";import{b as Ke}from"./Tool01-DoE3EsIZ.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,as as Ae,B as Ie,h as Pe}from"./index-D8HDDDUz.js";import{a2 as we}from"./agent-icon-mmszwibp.js";import{S as Ee}from"./scroll-area-BhLv10mq.js";import{X as Re,d as _e}from"./held-block-view-HcOuBva8.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-BWSDyN-L.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-DkX3rdbv.js";import{L as Fe}from"./label-C6Eod_61.js";import{S as Ce}from"./switch-CG9p29mC.js";import{a as Ze}from"./save-status-1UoG7f0k.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-CpVl3_2f.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-BEWqoKlP.js";import{b as ct}from"./use-never-published-D8nGboC4.js";import{c as dt,u as ft}from"./hosted-reconcile-DSYVUxqr.js";import{b as Ke}from"./Tool01-B0TI67n-.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,fT as m}from"./index-
|
|
1
|
+
import{c as p,m as d,j as f,fT as m}from"./index-D8HDDDUz.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,j as o}from"./index-D8HDDDUz.js";import{V as a}from"./index-odrPj5u2.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m,j as i,eE as S,dU as $,aQ as w,eF as C,dV as z,eG as E,b2 as R,dW as k}from"./index-
|
|
1
|
+
import{c as n,m,j as i,eE as S,dU as $,aQ as w,eF as C,dV as z,eG as E,b2 as R,dW as k}from"./index-D8HDDDUz.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(k,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const d=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(D,{}),e[7]=u):u=e[7];const b=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",g=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",j=(d==="left"||d==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=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",y=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 r;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(r=m("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=r):r=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(E,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==r||e[20]!==c?(h=i.jsxs(B,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:r,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=r,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function G(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{F as S,T as a,P as b,_ as c,G as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,b as J,e as nt,j as o,B as z,t as Z,o as ot,co as xe,af as qt,a as se,M as Bt,V as Kt,K as Xe,cp as Ht,cq as Ut,at as he,m as wt,b4 as xn,C as Pt,r as G,ad as wn,ae as re,cr as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,cs as vn,ar as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aS as Xt,ct as kn,aY as Tn,b3 as _t,J as Nn,cu as Pn,bA as _n,aT as On,y as In,cv as An,cw as En,cx as Cn,cy as $n,cz as Ln,a5 as Rn,u as Dn,a6 as zn,cA as Mn,cB as Fn,l as Zt,cC as Ot,cD as qn,O as Bn,a_ as It,cE as Kn,a0 as Hn}from"./index-PfzOl7J6.js";import{t as en}from"./Globe04-CYg8V2eL.js";import{i as Un,s as ie}from"./UserSquare-DHrzs2xN.js";import{u as Gn}from"./use-deployment-admin-D6ysmdql.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ah as Vn,W as Wn,G as xt,ab as Yn,I as Qn,ai as Xn,aj as Zn,n as At,h as es,ak as ts,m as ns,al as ss}from"./agent-icon-DPgCnEV1.js";import{s as tn}from"./XClose-CR92HpkN.js";import{u as os,a as is}from"./use-project-scope-RvpHL0s_.js";import{u as nn,t as as,b as rs,a as ls,e as cs,c as ds,A as us}from"./use-view-draft-kind-Czb3VJ2z.js";import{i as ge}from"./CheckCircle-B_eEhqJR.js";import{i as Et}from"./Monitor01-3IwLMf0Q.js";import{i as Ye}from"./Zap-D5X_AlHR.js";import{s as Ct}from"./Plus-D452i-ki.js";import{a as ms}from"./Tool01-DoE3EsIZ.js";import{e as Qe,b as ae,d as fs,a as gs,c as hs,C as ps}from"./command-ARXYIBtk.js";import{I as ys}from"./integration-icon-Cypf7ART.js";import{P as bs}from"./project-icon-DdcX-1Cu.js";import{a as xs}from"./use-navigate-to-agent-BFXAaVqR.js";import{u as ws}from"./use-debounced-value-L8Mvr3Qf.js";import{a as Ss,m as vs}from"./use-mcp-client-CVGnTbnR.js";import{u as js,a as ks,n as Ts}from"./new-project-dialog-ddGWO7oU.js";import{S as Ns,u as Ps,h as _s}from"./thread-intent-k_EWWvIp.js";import{L as Os}from"./legacy-admin-welcome-dialog-BndvejSa.js";import{R as Is}from"./required-auth-layout-rj346c5-.js";import{u as As,a as Es,b as Cs,c as $s}from"./thread-route-T4ycKium.js";import{u as Ls}from"./use-org-sso-PK2UdKUD.js";function Rs(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h),u=Ds;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let g;e[17]!==y?(g=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=g):g=e[18];let x;e[19]!==r||e[20]!==i?(x=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=x):x=e[21];let v;e[22]!==x?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[22]=x,e[23]=v):v=e[23];let p;e[24]!==g||e[25]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[g,v]}),e[24]=g,e[25]=v,e[26]=p):p=e[26];let b;e[27]!==m?(b=()=>m.mutate(),e[27]=m,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==s||e[31]!==i?(S=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=m.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let w;e[33]!==m.isPending||e[34]!==b||e[35]!==S?(w=o.jsx(z,{onClick:b,disabled:m.isPending,children:S}),e[33]=m.isPending,e[34]=b,e[35]=S,e[36]=w):w=e[36];const k=m.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==m.isPending||e[40]!==T?(j=o.jsx(z,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=m.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,p,P]}),e[45]=p,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=zs,f=r==="not-found",h=f?Un:qt;let m;e[0]!==f||e[1]!==i?(m=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=m):m=e[2];const u=m;let c;e[3]!==f||e[4]!==n||e[5]!==s||e[6]!==i?(c=f?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let g;e[8]!==h?(g=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=g):g=e[9];let x;e[10]!==u?(x=o.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=x):x=e[11];let v;e[12]!==y?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=v):v=e[13];let p;e[14]!==x||e[15]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[x,v]}),e[14]=x,e[15]=v,e[16]=p):p=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Ms,{orgId:a,orgSlug:s}),o.jsx(z,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(z,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==g||e[23]!==p||e[24]!==b?(S=o.jsxs(xe,{children:[g,p,b]}),e[22]=g,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function zs(){window.location.href="/"}function Ms(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==n?(f=x=>{Z.error(x instanceof Error?x.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h);let u;e[11]!==m?(u=()=>m.mutate(),e[11]=m,e[12]=u):u=e[12];const c=!i||m.isPending;let y;e[13]!==m.isPending||e[14]!==n?(y=m.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=m.isPending,e[14]=n,e[15]=y):y=e[15];let g;return e[16]!==u||e[17]!==c||e[18]!==y?(g=o.jsx(z,{onClick:u,disabled:c,children:y}),e[16]=u,e[17]=c,e[18]=y,e[19]=g):g=e[19],g}function Fs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let f;e[4]!==i?(f=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[6]=l,e[7]=d,e[8]=f,e[9]=h):h=e[9];const m=nt(h);let u;e[10]!==s?(u=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=u):u=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let g;e[15]!==u||e[16]!==c||e[17]!==y?(g={mutationFn:u,onSuccess:c,onError:y},e[15]=u,e[16]=c,e[17]=y,e[18]=g):g=e[18];const x=nt(g),v=m.isPending||x.isPending;let p;e[19]!==r||e[20]!==a?(p=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{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=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=o.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let j;e[34]!==m?(j=()=>m.mutate(),e[34]=m,e[35]=j):j=e[35];let P;e[36]!==m.isPending||e[37]!==i?(P=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==v||e[40]!==j||e[41]!==P?(_=o.jsx(z,{onClick:j,disabled:v,children:P}),e[39]=v,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==x?(O=()=>x.mutate(),e[43]=x,e[44]=O):O=e[44];let A;e[45]!==x.isPending||e[46]!==i?(A=x.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=x.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==v||e[49]!==O||e[50]!==A?($=o.jsx(z,{variant:"ghost",onClick:O,disabled:v,children:A}),e[48]=v,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==p?(R=o.jsxs(xe,{children:[p,T,L]}),e[55]=T,e[56]=L,e[57]=p,e[58]=R):R=e[58],R}function qs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let h;e[12]!==l||e[13]!==f?(h=o.jsxs("div",{className:"space-y-2",children:[l,f]}),e[12]=l,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==n?(m=n("common.goHome"),e[15]=n,e[16]=m):m=e[16];let u;e[17]!==m?(u=o.jsx(z,{variant:"ghost",onClick:Bs,children:m}),e[17]=m,e[18]=u):u=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==u?(c=o.jsxs(xe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=c):c=e[22],c}function Bs(){window.location.href="/"}function Ks(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Us,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let h;e[5]!==l||e[6]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[5]=l,e[6]=f,e[7]=h):h=e[7];const m=nt(h);let u;e[8]!==n||e[9]!==s?(u=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=u):u=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=g):g=e[18];let x;e[19]!==g?(x=o.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=x):x=e[20];let v;e[21]!==y||e[22]!==x?(v=o.jsxs("div",{className:"space-y-2",children:[y,x]}),e[21]=y,e[22]=x,e[23]=v):v=e[23];let p;e[24]!==m?(p=()=>m.mutate(),e[24]=m,e[25]=p):p=e[25];let b;e[26]!==m.isPending||e[27]!==i?(b=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==p||e[31]!==b?(S=o.jsx(z,{onClick:p,disabled:m.isPending,children:b}),e[29]=m.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const w=m.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==m.isPending||e[36]!==k?(T=o.jsx(z,{variant:"ghost",onClick:Hs,disabled:w,children:k}),e[35]=m.isPending,e[36]=k,e[37]=T):T=e[37];let j;e[38]!==S||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==v||e[42]!==j||e[43]!==u?(P=o.jsxs(xe,{children:[u,v,j]}),e[41]=v,e[42]=j,e[43]=u,e[44]=P):P=e[44],P}function Hs(){window.location.href="/"}function Us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Gs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Js({orgSlug:t}){const{data:e}=Gs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(qs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:f,actions:h,onDismiss:m,tone:u}=t,c=u===void 0?"neutral":u,y=f||h;let g;e[0]!==c?(g=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(tn,{size:14}),e[2]=x):x=e[2];let v;e[3]!==a||e[4]!==m?(v=o.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:x}),e[3]=a,e[4]=m,e[5]=v):v=e[5];const p=l&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=wt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let k;e[11]!==n?(k=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=k):k=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==k?(P=o.jsxs("div",{children:[k,T,j]}),e[17]=T,e[18]=j,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==S||e[28]!==w?(A=o.jsxs("div",{className:S,children:[w,O]}),e[26]=O,e[27]=S,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==f||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=f,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==g||e[39]!==v||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,v,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=g,e[39]=v,e[40]=c,e[41]=L):L=e[41],L}const Vs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${Vs[t]}"]`}const Ws=[{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 Ys(t){return Ws.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Qs(t,e){return Ys(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Xs=on("switcher"),Zs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function eo(t,e){return Qs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function to(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function no(){return(await xn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function so(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Xs)&&s++<Zs){requestAnimationFrame(a);return}const n=eo(t,e);if(n.length===0){et=!1;return}no().then(r=>{r(to(t,n)).drive()}).catch(()=>{et=!1})};a()}function oo(t){return t!=="off"}function ea(t){if(!t.hasSource)return[];const e=["site-editor"];return oo(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ta(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:xt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ie,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Et,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,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:Ye,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:ie,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:ge,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:Ye,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:ge,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:ie,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:xt,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:ge,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ye,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:ge,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:ie,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:xt,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:ie,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:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",be={},jt=!1;function io(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=io();return t!==ye&&(ye=t,be=cn(t)),be}function ao(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...be};be=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function ro(t){be=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function lo(){const t=C.c(7),e=G.useSyncExternalStore(ao,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=co;let r;t[2]!==e?(r=ln.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function co(t){be[t]||ro({...be,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function uo(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function mo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>uo(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const fo=720*60*60*1e3,go=10080*60*1e3;function ho(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function po(t){const e=ln[0];if(!e)return null;const s=ho(e.date),a=t-s;return a<0||a>fo?null:e}function yo(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 bo(t,e){const s=yo(t);return s===null?!1:e-s>=go}function xo(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:f}=se.useSession(),{isSeen:h,markSeen:m}=lo(),u=mo(6e4);let c,y,g;if(t[3]!==h||t[4]!==u||t[5]!==f?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{if(c=po(u),!c){g=null;break e}if(!bo(f?.user?.createdAt,u)){g=null;break e}y=h(c.id)}t[3]=h,t[4]=u,t[5]=f?.user?.createdAt,t[6]=c,t[7]=y,t[8]=g}else c=t[6],y=t[7],g=t[8];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(y)return null;let x;t[9]!==c.id||t[10]!==r||t[11]!==m||t[12]!==i||t[13]!==d||t[14]!==e?(x=()=>{m(c.id),so(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=m,t[12]=i,t[13]=d,t[14]=e,t[15]=x):x=t[15];const v=x;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=c.eyebrow,w=c.title;let k;t[20]!==c.id||t[21]!==m?(k=()=>m(c.id),t[20]=c.id,t[21]=m,t[22]=k):k=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==m||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>m(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=m,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==m||t[31]!==v?(j=c.cta?"href"in c.cta?o.jsx(z,{asChild:!0,size:"sm",onClick:()=>m(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(z,{size:"sm",onClick:v,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=m,t[31]=v,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(wo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(O=o.jsx(sn,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:w,onDismiss:k,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=O):O=t[45],O}function wo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function So(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(vo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function vo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(jo)})]},t.label)}function jo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ko)})]},t.description)}function ko(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const To={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=To[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function na({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const f=await se.organization.acceptInvitation({invitationId:t.id});if(f.error){Z.error(f.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(z,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(z,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function No(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function Po(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async v=>{const{signal:p}=v,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:p});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const S=await b.json();if(!No(S))throw new Error("Invalid organization search response");return S},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:f,isFetching:h,isPlaceholderData:m,isError:u}=pe(d);let c;e[6]!==f?.items?(c=f?.items??[],e[6]=f?.items,e[7]=c):c=e[7];const y=r&&h,g=r&&m;let x;return e[8]!==u||e[9]!==c||e[10]!==y||e[11]!==g?(x={hits:c,isSearching:y,isStale:g,isError:u},e[8]=u,e[9]=c,e[10]=y,e[11]=g,e[12]=x):x=e[12],x}const _o=3,mn=10,Oo=440,Io=55;function sa(t){const e=Math.floor((t-Oo)/Io);return Math.min(mn,Math.max(_o,e))}function Ao(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Eo(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function oa(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const Dt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,Dt),n=Array.isArray(s)?s:Dt;let r;t[1]!==a?(r=(l,d)=>a(f=>Ao(Array.isArray(f)?f:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function Co(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ia(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function $o(t,e){return{...t,hidden:st(t.hidden,e)}}function aa(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function ra(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function la(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Lo(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(f=>$o(Co(f),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const zt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ro=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Do(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function zo(t,e){const{org:s}=Tt(),a=Ss({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,zt),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:zt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Mo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:f}=xs(i.slug),[h,m]=G.useState(""),[u,c]=G.useState("all");let y;e[0]!==u?(y=M=>u==="all"||u===M,e[0]=u,e[1]=y):y=e[1];const g=y,x=G.useDeferredValue(h),v=zo(x,g("chats")||g("connections")),p=Lo(),{data:b}=jn(),{recent:S}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const k=w,T=ws(k,150),{hits:j}=Po(g("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==S){const M=Do(Eo(b??[],i),S);let U;e[10]!==j?(U=new Set(j.map(Ko)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?O.filter(M=>M.slug!==i.slug).slice(0,Ro):O,e[12]=O,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),m(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==u?(I=M=>{const U=Ze.indexOf(u);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=u,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const D=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==D||e[32]!==d||e[33]!==v||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==f||e[42]!==oe||e[43]!==u||e[44]!==P||e[45]!==g||e[46]!==n||e[47]!==h||e[48]!==p){const M=v.filter(Bo),U=v.filter(qo);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let De;e[79]!==n?(De=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=De):De=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let ze;e[82]!==i.slug?(ze={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=ze):ze=e[83];let Me;e[84]!==De||e[85]!==ze?(Me={key:"tasks",label:De,icon:mt,to:re.tasks,params:ze},e[84]=De,e[85]=ze,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const bt=ht;V=fs,Se=s,e[105]!==R||e[106]!==a?(ce=N=>N?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==u||e[113]!==n?(He=u==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(u)).toLowerCase()}),e[112]=u,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==u||e[119]!==h?(Ge=N=>{if(N.key==="Tab"){N.preventDefault(),q(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),c("all"))},e[117]=q,e[118]=u,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(gs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:m,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==u||e[129]!==n?(Ve=Ze.map(N=>o.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:Fo,onClick:()=>c(N),className:wt("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:n(Mt(N))},N)),e[128]=u,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=hs,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ps,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==g||e[143]!==n||e[144]!==h||e[145]!==p?(Y=g("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(N=>o.jsxs(ae,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[o.jsx(un,{org:N,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=g,e[143]=n,e[144]=h,e[145]=p,e[146]=Y):Y=e[146],e[147]!==bt||e[148]!==D||e[149]!==r||e[150]!==g||e[151]!==n?(Q=g("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:bt.map(N=>o.jsxs(ae,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,o.jsx("span",{children:N.label})]},N.key))}),e[147]=bt,e[148]=D,e[149]=r,e[150]=g,e[151]=n,e[152]=Q):Q=e[152],e[153]!==D||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==f||e[159]!==g||e[160]!==n?(X=g("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(N=>o.jsxs(ae,{value:`project ${N.title}`,onSelect:()=>D(()=>{f(N.id),r({to:re.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[o.jsx(bs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),o.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=f,e[159]=g,e[160]=n,e[161]=X):X=e[161],e[162]!==D||e[163]!==r||e[164]!==F||e[165]!==g||e[166]!==n?(E=g("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>D(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ms,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=F,e[165]=g,e[166]=n,e[167]=E):E=e[167],B=g("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),"connection"),children:[o.jsx(ys,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),we=g("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),N.type),children:[N.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=R,e[30]=q,e[31]=D,e[32]=d,e[33]=v,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=f,e[42]=oe,e[43]=u,e[44]=P,e[45]=g,e[46]=n,e[47]=h,e[48]=p,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Fo(t){return t.preventDefault()}function qo(t){return t.type!=="connection"}function Bo(t){return t.type==="connection"}function Ko(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Ho),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Ho(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ns(!1);function Uo(){tt.set(!0)}function Go(){tt.set(!1)}function Jo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Vo=300*1e3,Wo=2;function Yo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Qo(t,e){return t.count>=Wo&&t.version!==null&&t.version!==e}function Xo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:ei,refetchInterval:Vo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,f]=G.useState(l);n!==r&&(i(n),f(j=>Yo(j,a,"4.579.0")));const[h,m]=G.useState(null);if(!Qo(d,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let x;t[10]!==e?(x=e("announcements.version.description"),t[10]=e,t[11]=x):x=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(_t,{size:16}),t[12]=v):v=t[12];let p;t[13]!==d.version?(p=()=>m(d.version),t[13]=d.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.579.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 w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let k;t[20]!==S?(k=o.jsxs(z,{size:"sm",onClick:Zo,children:[S,w]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==c||t[25]!==y||t[26]!==g||t[27]!==x||t[28]!==p||t[29]!==b?(T=o.jsx(sn,{ariaLabel:u,dismissLabel:c,eyebrow:y,title:g,description:x,icon:v,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=c,t[25]=y,t[26]=g,t[27]=x,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Zo(){return window.location.reload()}async function ei(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function ti(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ni=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>ti(he.ptBrAnnouncementSeen(t));function si(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<ni,h=Pn()==="pt-BR",m=!r&&!!l&&f&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[u,c]=G.useState(!1),[y,g]=G.useState(!1);!u&&!r&&(c(!0),m&&l&&(Ft(l).mark(),a(ii),g(!0),St("pt_br_auto_switch_shown")));let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=D=>{St("pt_br_auto_switch_closed",{action:D}),g(!1)},t[0]=x):x=t[0];const v=x;let p;t[1]!==a?(p=()=>{a(oi),v("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&&v("dismiss"),t[3]=S):S=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=o.jsx(Jt,{children:k}),t[7]=k,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(z,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>v("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(z,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:S,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function oi(t){return{...t,language:"en"}}function ii(t){return{...t,language:"pt-BR"}}function ai(t){const e=An(t);return typeof e=="string"?e:void 0}function ri(){return ai("experiment-pipeline-check"),null}function li(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ri,{}),e[0]=a):a=e[0],a}function ci(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let m,u;return r?.panel?u=r.panel:r?.newThread&&!h&&$n(e.tabId)?(u=e.tabId,l.mainpanel=e.mainpanel,m=e.sidepanel):n?(u=n.tab,n.sidepanel!==void 0&&(m=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(u=e.tabId),m!==void 0&&(l.sidepanel=m),r?.autosend&&(l.autosend=i),{tabId:as(u,t.target,t.blogView),search:l}}const hn="studio:thread-layout:v4",di=50;function pn(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ui(t,e,s,a=di){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function mi(t,e){t&&yn(ui(Nt(),t,e))}function fi(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ca(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function bn(t){return{queryKey:Xe.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function da(t){const e=C.c(10);let s;e[0]!==t?(s=bn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function gi(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=hi;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let m;e[5]!==h?(m=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=m):m=e[6];let u;e[7]!==n||e[8]!==a||e[9]!==r?(u=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=u):u=e[10];let c;e[11]!==u?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=c):c=e[12];let y;e[13]!==m||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r?(g=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=g):g=e[17];let x;e[18]!==l||e[19]!==g?(x=o.jsx(z,{onClick:l,children:g}),e[18]=l,e[19]=g,e[20]=x):x=e[20];let v;e[21]!==r?(v=r("common.goBack"),e[21]=r,e[22]=v):v=e[22];let p;e[23]!==v?(p=o.jsx(z,{variant:"ghost",onClick:d,children:v}),e[23]=v,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==x?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,p]}),e[25]=p,e[26]=x,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=o.jsxs(xe,{children:[f,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function hi(){window.location.href="/"}function pi(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?o.jsx(z,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=f):f=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let m;e[11]!==n?(m=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=m):m=e[12];let u;e[13]!==h||e[14]!==m?(u=o.jsx(z,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:m})}),e[13]=h,e[14]=m,e[15]=u):u=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(z,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let g;e[20]!==y||e[21]!==f||e[22]!==u?(g=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,u,y]}),e[20]=y,e[21]=f,e[22]=u,e[23]=g):g=e[23];let x;return e[24]!==g||e[25]!==d?(x=o.jsxs(xe,{children:[r,d,g]}),e[24]=g,e[25]=d,e[26]=x):x=e[26],x}function yi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const bi="/settings/infra-billing";function xi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bi)}function wi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function Si(){const t=kt(),e=Ps(),{org:s}=Tt(),a=Dn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=rs(),l=As(),d=Es(),f=Cs(),h=$s(),m=ls(),u=cs(),{data:c}=se.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),g=()=>y(p=>({...p,sidepanel:!0})),x=(p,b,S)=>{const w=!!d&&d===p;d&&!w&&mi(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=w?null:fi(p),T=Xt(s.id).id,j=ci({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:us,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>j.search,{virtualMcpId:b,view:{tabId:j.tabId}})};return{openSidePanel:g,setTaskId:x,createNewTask:async(p,b,S)=>{const w=crypto.randomUUID(),k=p??f,T=m==="blog"&&k===f&&!S?.panel?ds(b,_s(c?.user)):null;try{await e?.create({id:w,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}x(w,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const vi=new Set(["/$org/","/$org/home"]);function ji(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ki},t[0]=e):e=t[0],Zt(e)}function ki(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vi.has(e)}function Ti(){const t=C.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=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Jo(),[d,f]=js(),h=Mn(),m=ji(),u=a??"";let c;t[1]!==u?(c=bn(u),t[1]=u,t[2]=c):c=t[2];const y=!!a&&m;let g;t[3]!==c||t[4]!==y?(g={...c,enabled:y},t[3]=c,t[4]=y,t[5]=g):g=t[5],pe(g);const{data:x}=se.useSession(),v=x?.user?.id;let p,b;t[6]!==h?(p=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Uo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),G.useEffect(p,b);let S;t[9]!==a||t[10]!==v?(S=Fn(a,v),t[9]=a,t[10]=v,t[11]=S):S=t[11];const{data:w}=Kt(S),k=w?.id,T=w?.slug,{data:j}=Ls(k,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=yi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Ni},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!xi(A),L=k??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=vs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!k&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&Go(),!w){let E;return t[19]!==a?(E=o.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(pi,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(gi,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(li,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(xo,{}),o.jsx(Xo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Mo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==f?(W=d&&o.jsx(ks,{open:!0,onOpenChange:f,source:Ts()}),t[41]=d,t[42]=f,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(So,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(si,{}),Q=o.jsx(Os,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(wi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Ni(t){return t.location.pathname}function Pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Is,{children:o.jsx(Ti,{})}),t[0]=e):e=t[0],e}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,usePanelActions:Si},Symbol.toStringTag,{value:"Module"}));export{gn as E,na as I,Vs as L,un as O,Po as a,fn as b,Lo as c,oa as d,ra as e,sa as f,Si as g,ia as h,rn as i,mo as j,ca as k,oo as l,la as m,da as n,Uo as o,ea as p,ua as q,Co as r,ta as s,aa as t,yi as u,Eo as w};
|
|
1
|
+
import{c as C,b as J,e as nt,j as o,B as z,t as Z,o as ot,co as xe,af as qt,a as se,M as Bt,V as Kt,K as Xe,cp as Ht,cq as Ut,at as he,m as wt,b4 as xn,C as Pt,r as G,ad as wn,ae as re,cr as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,cs as vn,ar as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aS as Xt,ct as kn,aY as Tn,b3 as _t,J as Nn,cu as Pn,bA as _n,aT as On,y as In,cv as An,cw as En,cx as Cn,cy as $n,cz as Ln,a5 as Rn,u as Dn,a6 as zn,cA as Mn,cB as Fn,l as Zt,cC as Ot,cD as qn,O as Bn,a_ as It,cE as Kn,a0 as Hn}from"./index-D8HDDDUz.js";import{t as en}from"./Globe04-C_iZve3L.js";import{i as Un,s as ie}from"./UserSquare-BAJzbhuU.js";import{u as Gn}from"./use-deployment-admin-DBDDA5Db.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ah as Vn,W as Wn,G as xt,ab as Yn,I as Qn,ai as Xn,aj as Zn,n as At,h as es,ak as ts,m as ns,al as ss}from"./agent-icon-mmszwibp.js";import{s as tn}from"./XClose-RigEwdbR.js";import{u as os,a as is}from"./use-project-scope-C_D7G_Rp.js";import{u as nn,t as as,b as rs,a as ls,e as cs,c as ds,A as us}from"./use-view-draft-kind-Bb6178QK.js";import{i as ge}from"./CheckCircle-BQ_BsFXT.js";import{i as Et}from"./Monitor01-B2hjJJ-O.js";import{i as Ye}from"./Zap-D0gg60Xv.js";import{s as Ct}from"./Plus-CRtXbDBy.js";import{a as ms}from"./Tool01-B0TI67n-.js";import{e as Qe,b as ae,d as fs,a as gs,c as hs,C as ps}from"./command-ByEG2lpR.js";import{I as ys}from"./integration-icon-D10Wu8in.js";import{P as bs}from"./project-icon-CaBBGJPF.js";import{a as xs}from"./use-navigate-to-agent-DG4RRc2l.js";import{u as ws}from"./use-debounced-value-Bd_QEBiw.js";import{a as Ss,m as vs}from"./use-mcp-client-CluVMhVq.js";import{u as js,a as ks,n as Ts}from"./new-project-dialog-Czv5HvtS.js";import{S as Ns,u as Ps,h as _s}from"./thread-intent-DFlRKb26.js";import{L as Os}from"./legacy-admin-welcome-dialog-DY8Bixis.js";import{R as Is}from"./required-auth-layout-DQ6ys2Lb.js";import{u as As,a as Es,b as Cs,c as $s}from"./thread-route-CCB-rd-1.js";import{u as Ls}from"./use-org-sso-C1PNiOLX.js";function Rs(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h),u=Ds;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let g;e[17]!==y?(g=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=g):g=e[18];let x;e[19]!==r||e[20]!==i?(x=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=x):x=e[21];let v;e[22]!==x?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[22]=x,e[23]=v):v=e[23];let p;e[24]!==g||e[25]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[g,v]}),e[24]=g,e[25]=v,e[26]=p):p=e[26];let b;e[27]!==m?(b=()=>m.mutate(),e[27]=m,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==s||e[31]!==i?(S=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=m.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let w;e[33]!==m.isPending||e[34]!==b||e[35]!==S?(w=o.jsx(z,{onClick:b,disabled:m.isPending,children:S}),e[33]=m.isPending,e[34]=b,e[35]=S,e[36]=w):w=e[36];const k=m.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==m.isPending||e[40]!==T?(j=o.jsx(z,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=m.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,p,P]}),e[45]=p,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=zs,f=r==="not-found",h=f?Un:qt;let m;e[0]!==f||e[1]!==i?(m=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=m):m=e[2];const u=m;let c;e[3]!==f||e[4]!==n||e[5]!==s||e[6]!==i?(c=f?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let g;e[8]!==h?(g=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=g):g=e[9];let x;e[10]!==u?(x=o.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=x):x=e[11];let v;e[12]!==y?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=v):v=e[13];let p;e[14]!==x||e[15]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[x,v]}),e[14]=x,e[15]=v,e[16]=p):p=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Ms,{orgId:a,orgSlug:s}),o.jsx(z,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(z,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==g||e[23]!==p||e[24]!==b?(S=o.jsxs(xe,{children:[g,p,b]}),e[22]=g,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function zs(){window.location.href="/"}function Ms(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==n?(f=x=>{Z.error(x instanceof Error?x.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h);let u;e[11]!==m?(u=()=>m.mutate(),e[11]=m,e[12]=u):u=e[12];const c=!i||m.isPending;let y;e[13]!==m.isPending||e[14]!==n?(y=m.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=m.isPending,e[14]=n,e[15]=y):y=e[15];let g;return e[16]!==u||e[17]!==c||e[18]!==y?(g=o.jsx(z,{onClick:u,disabled:c,children:y}),e[16]=u,e[17]=c,e[18]=y,e[19]=g):g=e[19],g}function Fs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let f;e[4]!==i?(f=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[6]=l,e[7]=d,e[8]=f,e[9]=h):h=e[9];const m=nt(h);let u;e[10]!==s?(u=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=u):u=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let g;e[15]!==u||e[16]!==c||e[17]!==y?(g={mutationFn:u,onSuccess:c,onError:y},e[15]=u,e[16]=c,e[17]=y,e[18]=g):g=e[18];const x=nt(g),v=m.isPending||x.isPending;let p;e[19]!==r||e[20]!==a?(p=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{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=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=o.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let j;e[34]!==m?(j=()=>m.mutate(),e[34]=m,e[35]=j):j=e[35];let P;e[36]!==m.isPending||e[37]!==i?(P=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==v||e[40]!==j||e[41]!==P?(_=o.jsx(z,{onClick:j,disabled:v,children:P}),e[39]=v,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==x?(O=()=>x.mutate(),e[43]=x,e[44]=O):O=e[44];let A;e[45]!==x.isPending||e[46]!==i?(A=x.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=x.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==v||e[49]!==O||e[50]!==A?($=o.jsx(z,{variant:"ghost",onClick:O,disabled:v,children:A}),e[48]=v,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==p?(R=o.jsxs(xe,{children:[p,T,L]}),e[55]=T,e[56]=L,e[57]=p,e[58]=R):R=e[58],R}function qs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let h;e[12]!==l||e[13]!==f?(h=o.jsxs("div",{className:"space-y-2",children:[l,f]}),e[12]=l,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==n?(m=n("common.goHome"),e[15]=n,e[16]=m):m=e[16];let u;e[17]!==m?(u=o.jsx(z,{variant:"ghost",onClick:Bs,children:m}),e[17]=m,e[18]=u):u=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==u?(c=o.jsxs(xe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=c):c=e[22],c}function Bs(){window.location.href="/"}function Ks(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Us,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let h;e[5]!==l||e[6]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[5]=l,e[6]=f,e[7]=h):h=e[7];const m=nt(h);let u;e[8]!==n||e[9]!==s?(u=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=u):u=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=g):g=e[18];let x;e[19]!==g?(x=o.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=x):x=e[20];let v;e[21]!==y||e[22]!==x?(v=o.jsxs("div",{className:"space-y-2",children:[y,x]}),e[21]=y,e[22]=x,e[23]=v):v=e[23];let p;e[24]!==m?(p=()=>m.mutate(),e[24]=m,e[25]=p):p=e[25];let b;e[26]!==m.isPending||e[27]!==i?(b=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==p||e[31]!==b?(S=o.jsx(z,{onClick:p,disabled:m.isPending,children:b}),e[29]=m.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const w=m.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==m.isPending||e[36]!==k?(T=o.jsx(z,{variant:"ghost",onClick:Hs,disabled:w,children:k}),e[35]=m.isPending,e[36]=k,e[37]=T):T=e[37];let j;e[38]!==S||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==v||e[42]!==j||e[43]!==u?(P=o.jsxs(xe,{children:[u,v,j]}),e[41]=v,e[42]=j,e[43]=u,e[44]=P):P=e[44],P}function Hs(){window.location.href="/"}function Us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Gs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Js({orgSlug:t}){const{data:e}=Gs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(qs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:f,actions:h,onDismiss:m,tone:u}=t,c=u===void 0?"neutral":u,y=f||h;let g;e[0]!==c?(g=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(tn,{size:14}),e[2]=x):x=e[2];let v;e[3]!==a||e[4]!==m?(v=o.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:x}),e[3]=a,e[4]=m,e[5]=v):v=e[5];const p=l&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=wt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let k;e[11]!==n?(k=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=k):k=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==k?(P=o.jsxs("div",{children:[k,T,j]}),e[17]=T,e[18]=j,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==S||e[28]!==w?(A=o.jsxs("div",{className:S,children:[w,O]}),e[26]=O,e[27]=S,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==f||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=f,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==g||e[39]!==v||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,v,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=g,e[39]=v,e[40]=c,e[41]=L):L=e[41],L}const Vs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${Vs[t]}"]`}const Ws=[{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 Ys(t){return Ws.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Qs(t,e){return Ys(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Xs=on("switcher"),Zs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function eo(t,e){return Qs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function to(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function no(){return(await xn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function so(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Xs)&&s++<Zs){requestAnimationFrame(a);return}const n=eo(t,e);if(n.length===0){et=!1;return}no().then(r=>{r(to(t,n)).drive()}).catch(()=>{et=!1})};a()}function oo(t){return t!=="off"}function ea(t){if(!t.hasSource)return[];const e=["site-editor"];return oo(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ta(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:xt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ie,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Et,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,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:Ye,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:ie,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:ge,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:Ye,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:ge,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:ie,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:xt,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:ge,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ye,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:ge,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:ie,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:xt,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:ie,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:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",be={},jt=!1;function io(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=io();return t!==ye&&(ye=t,be=cn(t)),be}function ao(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...be};be=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function ro(t){be=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function lo(){const t=C.c(7),e=G.useSyncExternalStore(ao,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=co;let r;t[2]!==e?(r=ln.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function co(t){be[t]||ro({...be,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function uo(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function mo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>uo(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const fo=720*60*60*1e3,go=10080*60*1e3;function ho(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function po(t){const e=ln[0];if(!e)return null;const s=ho(e.date),a=t-s;return a<0||a>fo?null:e}function yo(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 bo(t,e){const s=yo(t);return s===null?!1:e-s>=go}function xo(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:f}=se.useSession(),{isSeen:h,markSeen:m}=lo(),u=mo(6e4);let c,y,g;if(t[3]!==h||t[4]!==u||t[5]!==f?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{if(c=po(u),!c){g=null;break e}if(!bo(f?.user?.createdAt,u)){g=null;break e}y=h(c.id)}t[3]=h,t[4]=u,t[5]=f?.user?.createdAt,t[6]=c,t[7]=y,t[8]=g}else c=t[6],y=t[7],g=t[8];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(y)return null;let x;t[9]!==c.id||t[10]!==r||t[11]!==m||t[12]!==i||t[13]!==d||t[14]!==e?(x=()=>{m(c.id),so(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=m,t[12]=i,t[13]=d,t[14]=e,t[15]=x):x=t[15];const v=x;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=c.eyebrow,w=c.title;let k;t[20]!==c.id||t[21]!==m?(k=()=>m(c.id),t[20]=c.id,t[21]=m,t[22]=k):k=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==m||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>m(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=m,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==m||t[31]!==v?(j=c.cta?"href"in c.cta?o.jsx(z,{asChild:!0,size:"sm",onClick:()=>m(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(z,{size:"sm",onClick:v,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=m,t[31]=v,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(wo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(O=o.jsx(sn,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:w,onDismiss:k,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=O):O=t[45],O}function wo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function So(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(vo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function vo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(jo)})]},t.label)}function jo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ko)})]},t.description)}function ko(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const To={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=To[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function na({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const f=await se.organization.acceptInvitation({invitationId:t.id});if(f.error){Z.error(f.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(z,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(z,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function No(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function Po(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async v=>{const{signal:p}=v,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:p});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const S=await b.json();if(!No(S))throw new Error("Invalid organization search response");return S},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:f,isFetching:h,isPlaceholderData:m,isError:u}=pe(d);let c;e[6]!==f?.items?(c=f?.items??[],e[6]=f?.items,e[7]=c):c=e[7];const y=r&&h,g=r&&m;let x;return e[8]!==u||e[9]!==c||e[10]!==y||e[11]!==g?(x={hits:c,isSearching:y,isStale:g,isError:u},e[8]=u,e[9]=c,e[10]=y,e[11]=g,e[12]=x):x=e[12],x}const _o=3,mn=10,Oo=440,Io=55;function sa(t){const e=Math.floor((t-Oo)/Io);return Math.min(mn,Math.max(_o,e))}function Ao(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Eo(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function oa(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const Dt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,Dt),n=Array.isArray(s)?s:Dt;let r;t[1]!==a?(r=(l,d)=>a(f=>Ao(Array.isArray(f)?f:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function Co(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ia(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function $o(t,e){return{...t,hidden:st(t.hidden,e)}}function aa(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function ra(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function la(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Lo(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(f=>$o(Co(f),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const zt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ro=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Do(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function zo(t,e){const{org:s}=Tt(),a=Ss({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,zt),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:zt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Mo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:f}=xs(i.slug),[h,m]=G.useState(""),[u,c]=G.useState("all");let y;e[0]!==u?(y=M=>u==="all"||u===M,e[0]=u,e[1]=y):y=e[1];const g=y,x=G.useDeferredValue(h),v=zo(x,g("chats")||g("connections")),p=Lo(),{data:b}=jn(),{recent:S}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const k=w,T=ws(k,150),{hits:j}=Po(g("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==S){const M=Do(Eo(b??[],i),S);let U;e[10]!==j?(U=new Set(j.map(Ko)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?O.filter(M=>M.slug!==i.slug).slice(0,Ro):O,e[12]=O,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),m(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==u?(I=M=>{const U=Ze.indexOf(u);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=u,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const D=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==D||e[32]!==d||e[33]!==v||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==f||e[42]!==oe||e[43]!==u||e[44]!==P||e[45]!==g||e[46]!==n||e[47]!==h||e[48]!==p){const M=v.filter(Bo),U=v.filter(qo);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let De;e[79]!==n?(De=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=De):De=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let ze;e[82]!==i.slug?(ze={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=ze):ze=e[83];let Me;e[84]!==De||e[85]!==ze?(Me={key:"tasks",label:De,icon:mt,to:re.tasks,params:ze},e[84]=De,e[85]=ze,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const bt=ht;V=fs,Se=s,e[105]!==R||e[106]!==a?(ce=N=>N?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==u||e[113]!==n?(He=u==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(u)).toLowerCase()}),e[112]=u,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==u||e[119]!==h?(Ge=N=>{if(N.key==="Tab"){N.preventDefault(),q(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),c("all"))},e[117]=q,e[118]=u,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(gs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:m,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==u||e[129]!==n?(Ve=Ze.map(N=>o.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:Fo,onClick:()=>c(N),className:wt("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:n(Mt(N))},N)),e[128]=u,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=hs,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ps,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==g||e[143]!==n||e[144]!==h||e[145]!==p?(Y=g("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(N=>o.jsxs(ae,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[o.jsx(un,{org:N,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=g,e[143]=n,e[144]=h,e[145]=p,e[146]=Y):Y=e[146],e[147]!==bt||e[148]!==D||e[149]!==r||e[150]!==g||e[151]!==n?(Q=g("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:bt.map(N=>o.jsxs(ae,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,o.jsx("span",{children:N.label})]},N.key))}),e[147]=bt,e[148]=D,e[149]=r,e[150]=g,e[151]=n,e[152]=Q):Q=e[152],e[153]!==D||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==f||e[159]!==g||e[160]!==n?(X=g("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(N=>o.jsxs(ae,{value:`project ${N.title}`,onSelect:()=>D(()=>{f(N.id),r({to:re.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[o.jsx(bs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),o.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=f,e[159]=g,e[160]=n,e[161]=X):X=e[161],e[162]!==D||e[163]!==r||e[164]!==F||e[165]!==g||e[166]!==n?(E=g("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>D(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ms,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=F,e[165]=g,e[166]=n,e[167]=E):E=e[167],B=g("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),"connection"),children:[o.jsx(ys,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),we=g("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),N.type),children:[N.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=R,e[30]=q,e[31]=D,e[32]=d,e[33]=v,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=f,e[42]=oe,e[43]=u,e[44]=P,e[45]=g,e[46]=n,e[47]=h,e[48]=p,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Fo(t){return t.preventDefault()}function qo(t){return t.type!=="connection"}function Bo(t){return t.type==="connection"}function Ko(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Ho),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Ho(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ns(!1);function Uo(){tt.set(!0)}function Go(){tt.set(!1)}function Jo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Vo=300*1e3,Wo=2;function Yo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Qo(t,e){return t.count>=Wo&&t.version!==null&&t.version!==e}function Xo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:ei,refetchInterval:Vo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,f]=G.useState(l);n!==r&&(i(n),f(j=>Yo(j,a,"4.579.1")));const[h,m]=G.useState(null);if(!Qo(d,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let x;t[10]!==e?(x=e("announcements.version.description"),t[10]=e,t[11]=x):x=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(_t,{size:16}),t[12]=v):v=t[12];let p;t[13]!==d.version?(p=()=>m(d.version),t[13]=d.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.579.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 w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let k;t[20]!==S?(k=o.jsxs(z,{size:"sm",onClick:Zo,children:[S,w]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==c||t[25]!==y||t[26]!==g||t[27]!==x||t[28]!==p||t[29]!==b?(T=o.jsx(sn,{ariaLabel:u,dismissLabel:c,eyebrow:y,title:g,description:x,icon:v,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=c,t[25]=y,t[26]=g,t[27]=x,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Zo(){return window.location.reload()}async function ei(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function ti(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ni=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>ti(he.ptBrAnnouncementSeen(t));function si(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<ni,h=Pn()==="pt-BR",m=!r&&!!l&&f&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[u,c]=G.useState(!1),[y,g]=G.useState(!1);!u&&!r&&(c(!0),m&&l&&(Ft(l).mark(),a(ii),g(!0),St("pt_br_auto_switch_shown")));let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=D=>{St("pt_br_auto_switch_closed",{action:D}),g(!1)},t[0]=x):x=t[0];const v=x;let p;t[1]!==a?(p=()=>{a(oi),v("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&&v("dismiss"),t[3]=S):S=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=o.jsx(Jt,{children:k}),t[7]=k,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(z,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>v("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(z,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:S,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function oi(t){return{...t,language:"en"}}function ii(t){return{...t,language:"pt-BR"}}function ai(t){const e=An(t);return typeof e=="string"?e:void 0}function ri(){return ai("experiment-pipeline-check"),null}function li(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ri,{}),e[0]=a):a=e[0],a}function ci(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let m,u;return r?.panel?u=r.panel:r?.newThread&&!h&&$n(e.tabId)?(u=e.tabId,l.mainpanel=e.mainpanel,m=e.sidepanel):n?(u=n.tab,n.sidepanel!==void 0&&(m=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(u=e.tabId),m!==void 0&&(l.sidepanel=m),r?.autosend&&(l.autosend=i),{tabId:as(u,t.target,t.blogView),search:l}}const hn="studio:thread-layout:v4",di=50;function pn(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ui(t,e,s,a=di){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function mi(t,e){t&&yn(ui(Nt(),t,e))}function fi(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ca(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function bn(t){return{queryKey:Xe.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function da(t){const e=C.c(10);let s;e[0]!==t?(s=bn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function gi(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=hi;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let m;e[5]!==h?(m=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=m):m=e[6];let u;e[7]!==n||e[8]!==a||e[9]!==r?(u=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=u):u=e[10];let c;e[11]!==u?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=c):c=e[12];let y;e[13]!==m||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r?(g=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=g):g=e[17];let x;e[18]!==l||e[19]!==g?(x=o.jsx(z,{onClick:l,children:g}),e[18]=l,e[19]=g,e[20]=x):x=e[20];let v;e[21]!==r?(v=r("common.goBack"),e[21]=r,e[22]=v):v=e[22];let p;e[23]!==v?(p=o.jsx(z,{variant:"ghost",onClick:d,children:v}),e[23]=v,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==x?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,p]}),e[25]=p,e[26]=x,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=o.jsxs(xe,{children:[f,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function hi(){window.location.href="/"}function pi(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?o.jsx(z,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=f):f=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let m;e[11]!==n?(m=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=m):m=e[12];let u;e[13]!==h||e[14]!==m?(u=o.jsx(z,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:m})}),e[13]=h,e[14]=m,e[15]=u):u=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(z,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let g;e[20]!==y||e[21]!==f||e[22]!==u?(g=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,u,y]}),e[20]=y,e[21]=f,e[22]=u,e[23]=g):g=e[23];let x;return e[24]!==g||e[25]!==d?(x=o.jsxs(xe,{children:[r,d,g]}),e[24]=g,e[25]=d,e[26]=x):x=e[26],x}function yi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const bi="/settings/infra-billing";function xi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bi)}function wi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function Si(){const t=kt(),e=Ps(),{org:s}=Tt(),a=Dn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=rs(),l=As(),d=Es(),f=Cs(),h=$s(),m=ls(),u=cs(),{data:c}=se.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),g=()=>y(p=>({...p,sidepanel:!0})),x=(p,b,S)=>{const w=!!d&&d===p;d&&!w&&mi(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=w?null:fi(p),T=Xt(s.id).id,j=ci({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:us,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>j.search,{virtualMcpId:b,view:{tabId:j.tabId}})};return{openSidePanel:g,setTaskId:x,createNewTask:async(p,b,S)=>{const w=crypto.randomUUID(),k=p??f,T=m==="blog"&&k===f&&!S?.panel?ds(b,_s(c?.user)):null;try{await e?.create({id:w,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}x(w,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const vi=new Set(["/$org/","/$org/home"]);function ji(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ki},t[0]=e):e=t[0],Zt(e)}function ki(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vi.has(e)}function Ti(){const t=C.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=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Jo(),[d,f]=js(),h=Mn(),m=ji(),u=a??"";let c;t[1]!==u?(c=bn(u),t[1]=u,t[2]=c):c=t[2];const y=!!a&&m;let g;t[3]!==c||t[4]!==y?(g={...c,enabled:y},t[3]=c,t[4]=y,t[5]=g):g=t[5],pe(g);const{data:x}=se.useSession(),v=x?.user?.id;let p,b;t[6]!==h?(p=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Uo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),G.useEffect(p,b);let S;t[9]!==a||t[10]!==v?(S=Fn(a,v),t[9]=a,t[10]=v,t[11]=S):S=t[11];const{data:w}=Kt(S),k=w?.id,T=w?.slug,{data:j}=Ls(k,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=yi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Ni},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!xi(A),L=k??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=vs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!k&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&Go(),!w){let E;return t[19]!==a?(E=o.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(pi,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(gi,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(li,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(xo,{}),o.jsx(Xo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Mo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==f?(W=d&&o.jsx(ks,{open:!0,onOpenChange:f,source:Ts()}),t[41]=d,t[42]=f,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(So,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(si,{}),Q=o.jsx(Os,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(wi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Ni(t){return t.location.pathname}function Pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Is,{children:o.jsx(Ti,{})}),t[0]=e):e=t[0],e}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,usePanelActions:Si},Symbol.toStringTag,{value:"Module"}));export{gn as E,na as I,Vs as L,un as O,Po as a,fn as b,Lo as c,oa as d,ra as e,sa as f,Si as g,ia as h,rn as i,mo as j,ca as k,oo as l,la as m,da as n,Uo as o,ea as p,ua as q,Co as r,ta as s,aa as t,yi as u,Eo as w};
|