decocms 4.504.6 → 4.505.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/{ActiveShapeUtils-CW3GN5MF.js → ActiveShapeUtils-CPJ1MgDb.js} +1 -1
- package/dist/client/assets/{AlertCircle-Dyzt7ROa.js → AlertCircle-DqeQeZIo.js} +1 -1
- package/dist/client/assets/{AreaChart-QVjqELIr.js → AreaChart-C-18l_uG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CSHSzn3p.js → ArrowLeft-DPGP5g4O.js} +1 -1
- package/dist/client/assets/{ArrowUp-CtyeX35T.js → ArrowUp-CDNiJQ3Z.js} +1 -1
- package/dist/client/assets/{BarChart-DrdN4reU.js → BarChart-CU_yn9c-.js} +1 -1
- package/dist/client/assets/{Building02-DHk48jC7.js → Building02-Bn3V8SyT.js} +1 -1
- package/dist/client/assets/{CategoricalChart-nGEQlenm.js → CategoricalChart-Ds9PuWui.js} +1 -1
- package/dist/client/assets/{CheckCircle-COGqVxnk.js → CheckCircle-BxjjIHP3.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CLfFYLAx.js → ChevronSelectorVertical-DhsMteL_.js} +1 -1
- package/dist/client/assets/{ChevronUp-iwpcZ6ZJ.js → ChevronUp-mM4k2SNd.js} +1 -1
- package/dist/client/assets/{Copy01-C5MyX131.js → Copy01-CE54Zkyb.js} +1 -1
- package/dist/client/assets/{CreditCard01-DbksZbCa.js → CreditCard01-DH-01CEi.js} +1 -1
- package/dist/client/assets/{DotsVertical-t_p3uDnk.js → DotsVertical-judgrIje.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BPe_Kua_.js → ErrorBarContext-BOF7UG7D.js} +1 -1
- package/dist/client/assets/{Globe04-CEKxgW4I.js → Globe04-ZYzvP_wb.js} +1 -1
- package/dist/client/assets/{Image01-BmWIcz9g.js → Image01-DrTbYVVK.js} +1 -1
- package/dist/client/assets/{Key01-flR1Rk0k.js → Key01-osOREfQl.js} +1 -1
- package/dist/client/assets/{Link01-NVZrbJ2z.js → Link01-B9G68hNn.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CTkWPKKA.js → LinkBroken01-DmEX13WI.js} +1 -1
- package/dist/client/assets/{Monitor01-C_fHpJXT.js → Monitor01-NkP5UQNs.js} +1 -1
- package/dist/client/assets/{Play-CYHvnoi_.js → Play-B47awNwY.js} +1 -1
- package/dist/client/assets/{Plus-D-0eKLeG.js → Plus-DcfUNR2f.js} +1 -1
- package/dist/client/assets/{SearchMd-BZnFITM5.js → SearchMd-C9-YwsK0.js} +1 -1
- package/dist/client/assets/{Sector-DBqK3_lW.js → Sector-B_DvrPH2.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-_i_0EGH-.js → ShoppingBag01-ujP3y_qp.js} +1 -1
- package/dist/client/assets/{Sun-g_4y19bS.js → Sun-DrT0hU0Y.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-I9orqnhT.js → SwitchHorizontal01-DA5rnPNX.js} +1 -1
- package/dist/client/assets/{Tool01-CtZDIoke.js → Tool01-C4R3ZOr4.js} +1 -1
- package/dist/client/assets/{Trash01-DXu_ke97.js → Trash01-Kje2UjpJ.js} +1 -1
- package/dist/client/assets/{Upload01-Cuxcfzt0.js → Upload01-ClskmS1t.js} +1 -1
- package/dist/client/assets/{User01-CpQvYpgF.js → User01-BnkZxOFX.js} +1 -1
- package/dist/client/assets/{UserSquare-C0oVj3jP.js → UserSquare-Sii9PRmG.js} +1 -1
- package/dist/client/assets/{Users01-BOA9J6qJ.js → Users01-CwARyXl9.js} +1 -1
- package/dist/client/assets/{XAxis-hQX8cIum.js → XAxis-C5ouXN9R.js} +1 -1
- package/dist/client/assets/{XClose-DFzCGpgs.js → XClose-BjuY3nsh.js} +1 -1
- package/dist/client/assets/{ZoomOut-Cg2E6Hn7.js → ZoomOut-DwuOJSek.js} +1 -1
- package/dist/client/assets/{access-gate-BdfGulzU.js → access-gate-Ckw1tvkz.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-wdvNwZIH.js → add-connection-dialog-CRR0P53q.js} +1 -1
- package/dist/client/assets/{agent-analytics-DT97hAtN.js → agent-analytics-Bb_fc8YJ.js} +1 -1
- package/dist/client/assets/agent-app-CJyWV08D.js +1 -0
- package/dist/client/assets/{agent-assets-ggCXUSLU.js → agent-assets-D1Z85b_F.js} +1 -1
- package/dist/client/assets/{agent-automation-jg9w8oDf.js → agent-automation-BFysez0o.js} +1 -1
- package/dist/client/assets/{agent-automations-BbqOgRf8.js → agent-automations-DDVixO3t.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B-BhlRsz.js → agent-connect-sources-K-A5r1fP.js} +1 -1
- package/dist/client/assets/agent-deck-DNTuOGup.js +1 -0
- package/dist/client/assets/{agent-e2e-DhwM3X4d.js → agent-e2e-BPrY52Ep.js} +1 -1
- package/dist/client/assets/{agent-experiments-IcLKZZjx.js → agent-experiments-ihc1Pcv7.js} +1 -1
- package/dist/client/assets/{agent-file-kyFcKASQ.js → agent-file-DVlNnuKt.js} +1 -1
- package/dist/client/assets/{agent-hosting-CxMTs6IB.js → agent-hosting-CDAmKMBw.js} +1 -1
- package/dist/client/assets/{agent-icon-7ADgtWCH.js → agent-icon-DgBki_YS.js} +1 -1
- package/dist/client/assets/agent-library-B617uDLH.js +1 -0
- package/dist/client/assets/agent-library-file-C4eL1Ooi.js +1 -0
- package/dist/client/assets/{agent-monitor-B7DjpRxz.js → agent-monitor-CzKIw_tz.js} +1 -1
- package/dist/client/assets/{agent-overview-DUpu1AIo.js → agent-overview-rk6Sm92U.js} +1 -1
- package/dist/client/assets/agent-releases-D4BE1wNR.js +2 -0
- package/dist/client/assets/agent-settings-Bm6FSi9f.js +1 -0
- package/dist/client/assets/{agent-site-editor-pGrUAJRT.js → agent-site-editor-CrwVyv-3.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-IDf-3duF.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CqEytc-s.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CCUzETFG.js +1 -0
- package/dist/client/assets/agent-view-D2tPWwzu.js +1 -0
- package/dist/client/assets/{agent-view-guard-CQuxRYsf.js → agent-view-guard-CXKYvvbm.js} +1 -1
- package/dist/client/assets/{agents-list-Bwjs1oK_.js → agents-list-CoPS1QbO.js} +1 -1
- package/dist/client/assets/{ai-providers-C_UqBqak.js → ai-providers-BcJpLDbU.js} +1 -1
- package/dist/client/assets/{alert-BVmkZ-E2.js → alert-DfAkUZEI.js} +1 -1
- package/dist/client/assets/{alert-dialog-_s7hqvJ_.js → alert-dialog-DaNO60rY.js} +1 -1
- package/dist/client/assets/{analytics-sections-DCG-GatN.js → analytics-sections-CTPHY4dx.js} +1 -1
- package/dist/client/assets/api-keys-CiPUhdGB.js +1 -0
- package/dist/client/assets/{api-keys-Ce-PoFp-.js → api-keys-DKiBsp1M.js} +1 -1
- package/dist/client/assets/app-editor-D2opLmgN.js +1 -0
- package/dist/client/assets/{asset-utils-gDGUDBoj.js → asset-utils-d4oNaz_A.js} +1 -1
- package/dist/client/assets/{auth-B_TJXS0n.js → auth-CUB1QFat.js} +1 -1
- package/dist/client/assets/{auth-catchall-Du_2OuHw.js → auth-catchall-DSz5u8HT.js} +1 -1
- package/dist/client/assets/{auth-entry-8OMdbE1b.js → auth-entry-DvLTlbUA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-yfv6lu-x.js → auth-split-layout-BnWB2obZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-UdSc08ls.js → authenticate-and-persist-oauth-B5SszYN9.js} +1 -1
- package/dist/client/assets/{automation-list-row-t-1BGVUO.js → automation-list-row-MXx8TYwq.js} +1 -1
- package/dist/client/assets/{automation-runs-DiFW9DBp.js → automation-runs-CO9plUCm.js} +1 -1
- package/dist/client/assets/{automations-CZYikobS.js → automations-B7PntWfd.js} +1 -1
- package/dist/client/assets/{autosend-D3NSq3DM.js → autosend-BpLsiV89.js} +1 -1
- package/dist/client/assets/{avatar-D7EA7cl6.js → avatar-Dpt3gCAd.js} +1 -1
- package/dist/client/assets/{badge-C0x7-j94.js → badge-CUAHXmJu.js} +1 -1
- package/dist/client/assets/{block-document-CsUHPLPU.js → block-document-m88Js_78.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Bglfht36.js → blocks-preview-workspace-context-CHPTPxQM.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DWDFGWKG.js → blocks-tab-states-B0NemDn-.js} +3 -3
- package/dist/client/assets/{blog-schema-S-2nmh-l.js → blog-schema-DDHXkyX9.js} +1 -1
- package/dist/client/assets/{board-analytics-DsiHTlst.js → board-analytics-D6tmbt7p.js} +1 -1
- package/dist/client/assets/{buckets-ZVFPDJmV.js → buckets-DZtZImlO.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CFy-LfRO.js → build-improve-prompt-doc-z2YVmdXu.js} +1 -1
- package/dist/client/assets/{calendar-DppMF-oc.js → calendar-BagLrzzB.js} +1 -1
- package/dist/client/assets/{capability-load-error-yU5Nl2wO.js → capability-load-error-Bno41Mdy.js} +1 -1
- package/dist/client/assets/category-editor-DPncph6G.js +1 -0
- package/dist/client/assets/{chart-CUIMWuO7.js → chart-BSLITNsB.js} +1 -1
- package/dist/client/assets/{chat-context-Dn145aEn.js → chat-context-4taVXd9k.js} +1 -1
- package/dist/client/assets/{chat-draft-B11vfGsb.js → chat-draft-C77P_ztf.js} +1 -1
- package/dist/client/assets/{checkbox-DEL-ITP4.js → checkbox-5y3yRheb.js} +1 -1
- package/dist/client/assets/{choose-editor-DyoYtDXd.js → choose-editor-pulsD9GR.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DaX0zDX3.js → cli-auth-success-KQCGj7Au.js} +1 -1
- package/dist/client/assets/{client-icons-cgSe2W1K.js → client-icons-CAIFNaE6.js} +1 -1
- package/dist/client/assets/cms-settings-editor-bF-YNU5u.js +1 -0
- package/dist/client/assets/{collapsible-2qINC-s6.js → collapsible-kDOQ8vBg.js} +1 -1
- package/dist/client/assets/{collection-detail-Ipzh1PCz.js → collection-detail-DWwDhlsT.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dwavqzm0.js → collection-display-button-COz9Csh1.js} +1 -1
- package/dist/client/assets/{collection-search-BtAaADUJ.js → collection-search-Crc9IxG5.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cw5Kjque.js → collection-table-wrapper-Brz0spkb.js} +1 -1
- package/dist/client/assets/{collection-tabs-BPMM9JU6.js → collection-tabs-JUBQ_0wY.js} +1 -1
- package/dist/client/assets/{column-rules-C7I4Rr8f.js → column-rules-Dz-6M0_6.js} +2 -2
- package/dist/client/assets/{combobox-B-I_TDnB.js → combobox-wz8LJZD2.js} +1 -1
- package/dist/client/assets/{command-fxFZFBik.js → command-DC0_Z4MO.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-L_q5tP4z.js → companion-mcps-section-fCNgFv-6.js} +1 -1
- package/dist/client/assets/{config-HMBw-xwR.js → config-B7GxzysW.js} +1 -1
- package/dist/client/assets/{connect-Rp8OEWff.js → connect-CsnMjaAH.js} +3 -3
- package/dist/client/assets/{connect-layout-DoWxI4NV.js → connect-layout-CS-qUAl1.js} +1 -1
- package/dist/client/assets/{connection-Bm1YN2Qv.js → connection-CWuCG2aS.js} +1 -1
- package/dist/client/assets/{connection-card-VZyTjeL7.js → connection-card-D8GQ1QiI.js} +1 -1
- package/dist/client/assets/{connection-detail-DG52jxSu.js → connection-detail-BSjzEMSz.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B8gc-NIa.js → connection-form-helpers-DDccjG4q.js} +1 -1
- package/dist/client/assets/{connections-CVtafCDp.js → connections-yjmgtiRD.js} +1 -1
- package/dist/client/assets/content-tab-CJsLui7I.js +22 -0
- package/dist/client/assets/context-BHC2FGlS.js +1 -0
- package/dist/client/assets/{context-menu-BhQBRl1n.js → context-menu-1K85jwpY.js} +1 -1
- package/dist/client/assets/{core.esm-BWusCVk-.js → core.esm-DApLsxsY.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-CpW4B8uH.js → create-organization-dialog-DdAGsC_j.js} +1 -1
- package/dist/client/assets/{daily-pulse-ClsKmu3h.js → daily-pulse-BSzPNBRW.js} +1 -1
- package/dist/client/assets/{discover-Dhk360ek.js → discover-DLa_piaB.js} +1 -1
- package/dist/client/assets/{domain-settings-B9aADrGh.js → domain-settings-Dy4AbnYn.js} +1 -1
- package/dist/client/assets/{drawer-Pd2bkZwX.js → drawer-BbUlpUCW.js} +1 -1
- package/dist/client/assets/{editor-fmwfQ_5F.js → editor-C-OgXNhB.js} +1 -1
- package/dist/client/assets/{editor-classes-N-pDaC7c.js → editor-classes-Dc2W7nDk.js} +1 -1
- package/dist/client/assets/{empty-state-BKri0rqp.js → empty-state-CSKwPEsv.js} +1 -1
- package/dist/client/assets/{empty-state-BSt_DXl_.js → empty-state-DZKVrCuI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-47aQZG-0.js → extract-connection-data-DFUDKHm9.js} +1 -1
- package/dist/client/assets/{feature-gate-BIEh1WBJ.js → feature-gate-BD1b5v86.js} +1 -1
- package/dist/client/assets/{feature-paywall-BUvad-6w.js → feature-paywall-BICO-vth.js} +1 -1
- package/dist/client/assets/{file-explorer-DFktYjgR.js → file-explorer-DNkagk5u.js} +1 -1
- package/dist/client/assets/{file-preview-BaOgZ1H-.js → file-preview-CfdQRxcT.js} +1 -1
- package/dist/client/assets/{file-share-button-BbbT8rSV.js → file-share-button-G-_PwGQA.js} +1 -1
- package/dist/client/assets/{file-type-icon-C3Wvkdfs.js → file-type-icon-VpQt0U2l.js} +1 -1
- package/dist/client/assets/flat-project-Bq221olc.js +1 -0
- package/dist/client/assets/{folder-icon-BMfJIGr7.js → folder-icon-CsTHd67Z.js} +2 -2
- package/dist/client/assets/{form-DmfVlpti.js → form-Ccs7r35I.js} +1 -1
- package/dist/client/assets/{general-BuvZjhT0.js → general-CW8PZIFH.js} +1 -1
- package/dist/client/assets/{home-DaaiJums.js → home-B7ZUJZwU.js} +1 -1
- package/dist/client/assets/hosted-publish-feedback-BKP6B_BC.js +1 -0
- package/dist/client/assets/{icon-button-gjWtlNIn.js → icon-button-B70HUI29.js} +1 -1
- package/dist/client/assets/{index-CuAR9UE_.js → index-1iomk3-f.js} +1 -1
- package/dist/client/assets/{index-q27NKfUU.js → index-B5qumCT5.js} +1 -1
- package/dist/client/assets/{index-D39-8oMP.js → index-BK0oWzQv.js} +1 -1
- package/dist/client/assets/{index-D8ycvvq3.js → index-BW7my073.js} +6 -6
- package/dist/client/assets/{index-Dtd9p8uT.js → index-BkyXbFPG.js} +1 -1
- package/dist/client/assets/{index-CIf6SjuC.js → index-C4rMNEe_.js} +1 -1
- package/dist/client/assets/{index-reKUfr7F.js → index-CO1YjQbJ.js} +1 -1
- package/dist/client/assets/{index-B6Pl30Jv.js → index-CTbRlsHm.js} +1 -1
- package/dist/client/assets/{index-g1MruvLu.js → index-Ck67Gekc.js} +3 -3
- package/dist/client/assets/{index-C1k6bl66.js → index-D2Gob1Gb.js} +1 -1
- package/dist/client/assets/{index-Kv7T-lWA.js → index-D2jzeqMs.js} +1 -1
- package/dist/client/assets/{index-D8OSGl2O.js → index-D2sT3et4.js} +1 -1
- package/dist/client/assets/{index-Bu_NA65U.js → index-D3hogDX7.js} +1 -1
- package/dist/client/assets/{index-Ok_Gmm6y.js → index-D_r171PN.js} +1 -1
- package/dist/client/assets/{index-BnmQwDAi.js → index-P_lVMWb7.js} +3 -3
- package/dist/client/assets/{index-redirect-B4PueQ6K.js → index-redirect-Yg4URS2R.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DgfIuRy-.js → infiniteQueryObserver-4_03tcmw.js} +1 -1
- package/dist/client/assets/{infra-billing-B1dsz6li.js → infra-billing-BUPMegJK.js} +1 -1
- package/dist/client/assets/{input-DrsB_G6y.js → input-4Rq6XFEH.js} +1 -1
- package/dist/client/assets/{input-CNWKZHOn.js → input-Bv3xUnbf.js} +3 -3
- package/dist/client/assets/{integration-icon-Ch0O_HoU.js → integration-icon-ZpA1aS5H.js} +1 -1
- package/dist/client/assets/{jira-icon-D7ylX1np.js → jira-icon-J9FhJ7li.js} +1 -1
- package/dist/client/assets/{label-Des1dBAA.js → label-CKxoomj_.js} +1 -1
- package/dist/client/assets/{layout-DkKJYazw.js → layout-f0wIUbsA.js} +1 -1
- package/dist/client/assets/legacy-agents-deep-C51dCIBr.js +1 -0
- package/dist/client/assets/{legacy-main-redirect-CJTWKYZn.js → legacy-main-redirect-BGGStzw2.js} +1 -1
- package/dist/client/assets/library-YgWnAca2.js +1 -0
- package/dist/client/assets/{library-tab-mqVKltv-.js → library-tab-BQafg70w.js} +4 -4
- package/dist/client/assets/{login-DrcAeeSr.js → login-BFqeypRc.js} +1 -1
- package/dist/client/assets/{markdown-Cy5TyQD8.js → markdown-J9r3yqs2.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DYh0AbHr.js → mcp-app-renderer-CACkKi_k.js} +2 -2
- package/dist/client/assets/{mcp-oauth-C7679P97.js → mcp-oauth-CxXOlOKx.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CEdQ8awJ.js → mcp-oauth-DujtvQuP.js} +1 -1
- package/dist/client/assets/{members-DDjc7w-O.js → members-CDFEF1pK.js} +1 -1
- package/dist/client/assets/{memory-CSj344HL.js → memory-T0C48v-f.js} +2 -2
- package/dist/client/assets/{mini-report-page-DUlnJW7Q.js → mini-report-page-B35BDvvI.js} +1 -1
- package/dist/client/assets/{mock-board-DPnDRGqb.js → mock-board-Dirj3Gja.js} +1 -1
- package/dist/client/assets/{monaco-editor-BOWGtFnb.js → monaco-editor-GQLZ51K4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-4uIjPelM.js → monitoring-stats-row-qdxP_Wd2.js} +1 -1
- package/dist/client/assets/{multi-select-N6zgROA9.js → multi-select-CX9fw6H9.js} +1 -1
- package/dist/client/assets/{mustache-DF__kc82.js → mustache-B4L349mf.js} +1 -1
- package/dist/client/assets/{new-project-dialog-D7zn8TAV.js → new-project-dialog-Dyv4E8A7.js} +1 -1
- package/dist/client/assets/{oauth-callback-DoU1w-9q.js → oauth-callback-D_DR_zkb.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CXx2xYDK.js → oauth-callback-ai-provider-BG7RRBHB.js} +1 -1
- package/dist/client/assets/{onboarding-xvYBaoIw.js → onboarding-wAaszeRs.js} +1 -1
- package/dist/client/assets/{openai-conversation-IQSb25ld.js → openai-conversation-Bng7y8SC.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DwYPMdgG.js → optimistic-project-sidebar-views-ChS4G4R2.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CK15UV86.js → order-monitor-day-BTZBXgfe.js} +1 -1
- package/dist/client/assets/{organization-choice-MLbDtnt-.js → organization-choice-B_fTehRJ.js} +1 -1
- package/dist/client/assets/{orgs-CIIb6obg.js → orgs-B5G1g_8m.js} +1 -1
- package/dist/client/assets/{page-seo-form-C47J61Bn.js → page-seo-form-CVaY5siA.js} +1 -1
- package/dist/client/assets/{pair-B9FUGmMH.js → pair-DnuFgiBk.js} +1 -1
- package/dist/client/assets/{plan-ladder-i59Z6bnV.js → plan-ladder-Dj01rq7g.js} +1 -1
- package/dist/client/assets/{popover-B5_Kaf1b.js → popover-DEOhusl7.js} +1 -1
- package/dist/client/assets/post-calendar-BObVF6RC.js +1 -0
- package/dist/client/assets/{post-editor-CH9Jjuyr.js → post-editor-C96fan-2.js} +2 -2
- package/dist/client/assets/{preview-content-DTbY8ytS.js → preview-content-Bfx_-yIq.js} +1 -1
- package/dist/client/assets/{preview-dialog-BmWuRDjW.js → preview-dialog-5cvahUdT.js} +1 -1
- package/dist/client/assets/{preview-panel-BYEouSOL.js → preview-panel-CguVsO17.js} +1 -1
- package/dist/client/assets/{preview-tab-Dh2QFgKr.js → preview-tab-CALmFMCp.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Dbk5Wmp-.js → product-picker-dialog-B_dFoug-.js} +1 -1
- package/dist/client/assets/{profile-7rQCa4Wi.js → profile-Ct0YCzPs.js} +1 -1
- package/dist/client/assets/{project-app-view-c4nto0xL.js → project-app-view-CC-jqHFi.js} +1 -1
- package/dist/client/assets/{project-feed-BU9q0zlr.js → project-feed-DwuLAv8n.js} +1 -1
- package/dist/client/assets/{project-icon-DDejaJkU.js → project-icon-Cx5wvhJp.js} +1 -1
- package/dist/client/assets/project-reports-BhfZrHoF.js +1 -0
- package/dist/client/assets/project-tasks-BmBM_2h9.js +1 -0
- package/dist/client/assets/{projects-DD3HxQ_p.js → projects-DECrXLzg.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DdEbQ2Es.js → projects-empty-state-Blr-_CSK.js} +1 -1
- package/dist/client/assets/{prompts-DiMTPjpn.js → prompts-DXRKuRun.js} +1 -1
- package/dist/client/assets/record-editor-Conv1zKH.js +1 -0
- package/dist/client/assets/redirect-editor-D0sMpbPJ.js +1 -0
- package/dist/client/assets/{reports-CjTyv_Ip.js → reports-CqSc92eL.js} +1 -1
- package/dist/client/assets/reports-D7CsNPgk.js +1 -0
- package/dist/client/assets/{reports-onboarding-2A0HPLFQ.js → reports-onboarding-Z0Af4wWJ.js} +1 -1
- package/dist/client/assets/{reports-tab-D4aJXf2q.js → reports-tab-D2wHi3J4.js} +2 -2
- package/dist/client/assets/{repositories-d6XMtt37.js → repositories-BXEg38wk.js} +1 -1
- package/dist/client/assets/{repository-binding-qFnOG9Kf.js → repository-binding-Br5D6iZ4.js} +1 -1
- package/dist/client/assets/{repository-import-picker-XvHhr-YM.js → repository-import-picker-39r_1yMe.js} +1 -1
- package/dist/client/assets/{repository-picker-CDMQ-67j.js → repository-picker-CVdPaFjE.js} +1 -1
- package/dist/client/assets/{require-capability-CWRAPfGe.js → require-capability-AMKHJ_cQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BJdpNUyb.js → required-auth-layout-82S74c2p.js} +1 -1
- package/dist/client/assets/{reset-password-DFDQ9gzR.js → reset-password-BqW9I62A.js} +1 -1
- package/dist/client/assets/{resizable-CKPf2Yhz.js → resizable-R1DYYRbo.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DP8Ea0aD.js → resolve-tab-icon-CbG7Itnv.js} +1 -1
- package/dist/client/assets/{review-settings-DS8U5jLO.js → review-settings-CPwMmlOA.js} +1 -1
- package/dist/client/assets/{roles-JBoQ-0nm.js → roles-CZCPyobB.js} +1 -1
- package/dist/client/assets/{route-B3AqIjWV.js → route-6Vq3OdbS.js} +1 -1
- package/dist/client/assets/{route-DixAWiUV.js → route-DrVQj73j.js} +1 -1
- package/dist/client/assets/route-MfH6OHjo.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-qVQZp0bf.js → sandbox-lifecycle-context-DMrwC3Vb.js} +1 -1
- package/dist/client/assets/{schema-CB0y_kWu.js → schema-BFC2i8Ph.js} +1 -1
- package/dist/client/assets/{schema-pZcdx7db.js → schema-DSE_jEQa.js} +1 -1
- package/dist/client/assets/{scroll-area-tjZ1v8uh.js → scroll-area-BkDSkTWr.js} +1 -1
- package/dist/client/assets/{search-input-iNzELQG5.js → search-input-BIROh4Hl.js} +1 -1
- package/dist/client/assets/{search-toggle-DIkKdgX4.js → search-toggle-DfQFz--4.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-BAOlyGdC.js → secret-ciphertext-Cl-rP9st.js} +1 -1
- package/dist/client/assets/{secret-picker-fRrNeBFc.js → secret-picker--j_T0tgi.js} +1 -1
- package/dist/client/assets/{secrets-DtzMzBkb.js → secrets-DjUcCXn5.js} +1 -1
- package/dist/client/assets/{sections-editor-30xstIGx.js → sections-editor-DEiO3_fB.js} +2 -2
- package/dist/client/assets/{select-CsN8wWwy.js → select-BhjOZlg8.js} +1 -1
- package/dist/client/assets/{select-model-C9K6RX7a.js → select-model-bltZeKaZ.js} +1 -1
- package/dist/client/assets/{seo-editor-DqzBrnHi.js → seo-editor-CWK6ROUZ.js} +1 -1
- package/dist/client/assets/{separator-Dc8FPAxr.js → separator-Bpma_IKl.js} +1 -1
- package/dist/client/assets/{settings-tab-D23NDFeU.js → settings-tab-CqGe95B8.js} +1 -1
- package/dist/client/assets/{sheet-C8W18YeS.js → sheet-EMAUBGeL.js} +1 -1
- package/dist/client/assets/shell-layout-CA9NkQMC.js +1 -0
- package/dist/client/assets/site-editor-DicIkKzK.js +1 -0
- package/dist/client/assets/site-editor-toast-ChWi-qye.js +1 -0
- package/dist/client/assets/{skills-DCH1Oq34.js → skills-CffM1-dc.js} +1 -1
- package/dist/client/assets/{slider-BDjlsfbY.js → slider-BaOeotxA.js} +1 -1
- package/dist/client/assets/{sortable.esm-DR9w0kC7.js → sortable.esm-DNm_8QhY.js} +1 -1
- package/dist/client/assets/{sso-ChB3UIi5.js → sso-DYW6pcdA.js} +1 -1
- package/dist/client/assets/{suggestion-DD-4qLns.js → suggestion-BYDMpEKS.js} +1 -1
- package/dist/client/assets/{switch-Dw8QMOfK.js → switch-BHJedeJ7.js} +1 -1
- package/dist/client/assets/{symbol-tqxB57V8.js → symbol-CbhZsT2O.js} +1 -1
- package/dist/client/assets/{synced-repos-BS5CIvkT.js → synced-repos-DxrDIyAz.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DosnEK5E.js → tab-icon-glyph-DH0XjtgN.js} +1 -1
- package/dist/client/assets/{table-BdBcVCQf.js → table-RzFYa6QY.js} +1 -1
- package/dist/client/assets/{tabs-DpA6UCpp.js → tabs-Bsw9oeKO.js} +1 -1
- package/dist/client/assets/{task-board-Cfi5K-5Q.js → task-board-CILWAO9J.js} +1 -1
- package/dist/client/assets/{task-route-BkEWCnOY.js → task-route-B-8mckrS.js} +1 -1
- package/dist/client/assets/{task-status-ttzVi7uo.js → task-status-DiYjmDMM.js} +1 -1
- package/dist/client/assets/taskboard-analytics-BQfMWpPx.js +1 -0
- package/dist/client/assets/tasks-CxhFIm2w.js +1 -0
- package/dist/client/assets/{tasks-B0eo6Df4.js → tasks-DD0n0w1a.js} +3 -3
- package/dist/client/assets/{textarea-CilvBHk6.js → textarea-DTnTc1B6.js} +1 -1
- package/dist/client/assets/{thread-analytics-C2ozIuOR.js → thread-analytics-BiM8dsgQ.js} +1 -1
- package/dist/client/assets/{thread-intent-4EhNPevS.js → thread-intent-DVQUGbJp.js} +1 -1
- package/dist/client/assets/{thread-route-Cn1zYPdb.js → thread-route-CPJ43sWw.js} +1 -1
- package/dist/client/assets/{thread-route-BD60Whh-.js → thread-route-CY9KSYYk.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-xUmXvet8.js → thread-sheet-body-2nqdwz29.js} +1 -1
- package/dist/client/assets/{time-range-picker-Ce2u-LAU.js → time-range-picker-BBdfacFe.js} +1 -1
- package/dist/client/assets/{toggle-group-CehyBfy_.js → toggle-group-B2-S3DWB.js} +1 -1
- package/dist/client/assets/{tool-namespace-B7nVIU6I.js → tool-namespace-C0BJvxK3.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CNY-x8q8.js → toolbar-icon-button-tGQlTkgW.js} +1 -1
- package/dist/client/assets/{tooltip-DTDDImYK.js → tooltip-DjtuBfP1.js} +1 -1
- package/dist/client/assets/{tooltipContext-BwZiIrKr.js → tooltipContext-BhlbMZ3N.js} +1 -1
- package/dist/client/assets/{track-5NpwdaIS.js → track-CnFYb-pv.js} +1 -1
- package/dist/client/assets/{types-BRbHCiMu.js → types-BzYUug-M.js} +3 -3
- package/dist/client/assets/{url-slug-CvdbhkuL.js → url-slug-CtiYvkEm.js} +1 -1
- package/dist/client/assets/{usage-stats-CPLYge0E.js → usage-stats-CDJp6v2e.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Ba6tq6Kh.js → use-ai-providers-BhDXpjgz.js} +1 -1
- package/dist/client/assets/{use-app-takeover-CUfPdIQ-.js → use-app-takeover-Delvb7wx.js} +1 -1
- package/dist/client/assets/{use-automations-7PDgmLlN.js → use-automations-BCX0KxqO.js} +1 -1
- package/dist/client/assets/{use-autosave-DfbYhr8K.js → use-autosave-BV0jiw5O.js} +1 -1
- package/dist/client/assets/use-chat-navigation-BmUqvOFh.js +1 -0
- package/dist/client/assets/{use-clock-tick-Df5id_iA.js → use-clock-tick-TF0Wf2j3.js} +1 -1
- package/dist/client/assets/{use-connect-companion-C_3XBAd5.js → use-connect-companion-BLmeBGFg.js} +1 -1
- package/dist/client/assets/{use-connection-CxkpvOSK.js → use-connection-SqoLkv0s.js} +1 -1
- package/dist/client/assets/use-content-sync-BQX2Pcu9.js +1 -0
- package/dist/client/assets/{use-copy-CG9UgrVq.js → use-copy-BgIuhAow.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-q0hdVqnC.js → use-create-virtual-mcp-B6zN0Gxf.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-K9LPWyZ4.js → use-date-fns-locale-Cnl0faOK.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CnS4HqJg.js → use-debounced-autosave-CH7ETKkX.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BvQkjiEp.js → use-debounced-value-BcR6Dex1.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CiBA1j3q.js → use-deco-credits-BInQHzU9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKkpfC9u.js → use-decopilot-events-ByNj6G_f.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CeRm9JkZ.js → use-delete-connection-C75DG-6h.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DEWW82RL.js → use-deployment-admin-CC6hRfFJ.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-oIa3kJmD.js → use-ensure-project-folder-B1XXe3-5.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C5DoEojx.js → use-fast-preview-draft-url-GDccyDV7.js} +1 -1
- package/dist/client/assets/{use-file-configs-DtML887y.js → use-file-configs-BGcR08Xf.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C7WJc185.js → use-infinite-scroll-Bx5l0Vtt.js} +1 -1
- package/dist/client/assets/{use-join-requests-HcTpy17R.js → use-join-requests-CdXgkoRz.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DaDhJKK0.js → use-main-panel-tabs-DbM884FF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BJnGMUes.js → use-mcp-auth-status-DkTPBg_u.js} +1 -1
- package/dist/client/assets/{use-mcp-client-dq6ZHYKa.js → use-mcp-client-CSqf234U.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-U8IanBaN.js → use-mcp-prompts-CWOUKYTJ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-oQbYU8bf.js → use-mcp-tools-Bm3f2TR4.js} +1 -1
- package/dist/client/assets/{use-members-nS--Jb3J.js → use-members-Cl38_Hd4.js} +1 -1
- package/dist/client/assets/{use-mobile-Dchzsgrl.js → use-mobile-COJ6n1bn.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CCmZPom4.js → use-navigate-to-agent-KL7kZGo6.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-CmAAUi88.js → use-open-billing-url-BcIBpyZG.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BV-99AzQ.js → use-org-auth-client-C9-MA1oE.js} +1 -1
- package/dist/client/assets/{use-org-fs-C6PMtaVD.js → use-org-fs-CswcDdS6.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CF3ztKJh.js → use-org-repo-syncs-B-uHZEPd.js} +1 -1
- package/dist/client/assets/{use-org-sso-B0RTHGdW.js → use-org-sso-Dxa5UggE.js} +1 -1
- package/dist/client/assets/{use-organization-roles-aR5DwibA.js → use-organization-roles-D-phQHoQ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-ClryD4Tz.js → use-organization-settings-De2KUfve.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BWVfSYSA.js → use-panel-navigate-BJ7GO0A8.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BbquxO36.js → use-project-native-view-presence-zlL4ok9D.js} +1 -1
- package/dist/client/assets/{use-project-scope-0YD7Iyyr.js → use-project-scope-BWBWngye.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BrEq5yj7.js → use-recent-apps-25u5qe8z.js} +1 -1
- package/dist/client/assets/{use-releases-B_cwVxMv.js → use-releases-T-pjzJdi.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-hozbefRw.js → use-reports-diagnostic-tSBLtmIE.js} +1 -1
- package/dist/client/assets/{use-secrets-DxFdhVup.js → use-secrets-CzaDdvQG.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-B-qW8soa.js → use-section-preview-base-CDGxe86A.js} +1 -1
- package/dist/client/assets/{use-tags-Bh7-4eYV.js → use-tags-6FNfIPTx.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DEcMU_Uq.js → use-task-board-analytics-gOQo_K0X.js} +1 -1
- package/dist/client/assets/{use-task-board-events-IdeSpBWq.js → use-task-board-events-Cn-eMkHZ.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-7lDD4r45.js → use-task-board-item-prs-Cnwm21X1.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DLL3oK5h.js → use-task-board-items-hVW51ztR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-4a2jZXOn.js → use-task-metadata-CXdy1IkW.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-C1nRJ4EI.js → use-thread-analytics-BmiN2rOT.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-C13KsPaH.js → use-thread-outputs-CgUm6KdM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BZ3w6M2f.js +1 -0
- package/dist/client/assets/{useQueries-DNFMK_6M.js → useQueries-Bh2Kfq3r.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ce3yOBcb.js +1 -0
- package/dist/client/assets/{users-KlA2DUFu.js → users-Bk7mZ56d.js} +1 -1
- package/dist/client/assets/{utils-B6dBwzj-.js → utils-DTwti_Jm.js} +1 -1
- package/dist/client/assets/variant-calendar-Y3euxv7N.js +1 -0
- package/dist/client/assets/{variant-draft-pointer-BmoZUVqO.js → variant-draft-pointer-CCQ84S6v.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-xYGlwauP.js → view-mode-toggle-BWGY1kw5.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dhi5oDvB.js → virtual-mcp-tPJmsSdD.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DtrLPzBE.js → watch-sse-pool-DpRXmjtA.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +463 -463
- package/package.json +1 -1
- package/dist/client/assets/agent-app-zAU3Co2r.js +0 -1
- package/dist/client/assets/agent-deck-DdU9L82R.js +0 -1
- package/dist/client/assets/agent-library-BR00hcFP.js +0 -1
- package/dist/client/assets/agent-library-file-CUexFajI.js +0 -1
- package/dist/client/assets/agent-releases-DYvRn0eB.js +0 -2
- package/dist/client/assets/agent-settings-DDyY7MbQ.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Lw7w3f8Y.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Dg7hjpdV.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BHjasf53.js +0 -1
- package/dist/client/assets/agent-view-EDL__-N0.js +0 -1
- package/dist/client/assets/api-keys-aEwnAq3H.js +0 -1
- package/dist/client/assets/app-editor-U-4iefn4.js +0 -1
- package/dist/client/assets/category-editor--faU6WfH.js +0 -1
- package/dist/client/assets/cms-settings-editor-Dwz8Stp_.js +0 -1
- package/dist/client/assets/content-tab-uMsNTE0j.js +0 -8
- package/dist/client/assets/context-CJfdLxip.js +0 -1
- package/dist/client/assets/flat-project-PEQru-sb.js +0 -1
- package/dist/client/assets/hosted-publish-feedback-BZI_hNNY.js +0 -1
- package/dist/client/assets/legacy-agents-deep-DN-1otlm.js +0 -1
- package/dist/client/assets/library-CmuzUleE.js +0 -1
- package/dist/client/assets/post-calendar-DV4-vSzZ.js +0 -1
- package/dist/client/assets/project-reports-CHzFGKyp.js +0 -1
- package/dist/client/assets/project-tasks-CqQT2RhG.js +0 -1
- package/dist/client/assets/record-editor-16UYlnOr.js +0 -1
- package/dist/client/assets/redirect-editor-BhRvTbDn.js +0 -1
- package/dist/client/assets/reports-DT0c0wfO.js +0 -1
- package/dist/client/assets/route-CCUEaB5L.js +0 -1
- package/dist/client/assets/shell-layout-C8-H8Sys.js +0 -1
- package/dist/client/assets/site-editor-BARGvRbI.js +0 -1
- package/dist/client/assets/site-editor-toast-Gyi24WTd.js +0 -1
- package/dist/client/assets/taskboard-analytics-CAY7J6r5.js +0 -1
- package/dist/client/assets/tasks-DkLS_xbK.js +0 -1
- package/dist/client/assets/use-chat-navigation-qWQesS8S.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DvCuWsJ6.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-7ax8yx2o.js +0 -1
- package/dist/client/assets/variant-calendar-CLyD8A12.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,b as J,e as st,j as n,B as F,t as We,bX as fe,af as Tt,a as Be,G as Vt,R as Nt,K as Ue,bY as Wt,bZ as Yt,av as Ke,l as ht,aZ as Qt,x as gt,r as se,ac as Xt,ae as re,s as _t,v as Pt,q as At,D as Ct,d as Et,a2 as mt,J as Ot,m as He,y as ct,aL as It,b_ as Zt,aR as en,aW as pt,F as tn,b$ as nn,aM as sn,w as on,c0 as an,c1 as rn,c2 as ln,c3 as cn,a3 as dn,u as un,a4 as mn,c4 as fn,c5 as hn,k as $t,c6 as rt,c7 as gn,c8 as pn,O as yn,_ as bn}from"./index-D8ycvvq3.js";import{A as it}from"./avatar-D7EA7cl6.js";import{t as Lt}from"./Building02-DHk48jC7.js";import{i as xn,s as ae}from"./UserSquare-C0oVj3jP.js";import{az as Sn,N as wn,E as lt,a8 as vn,H as jn,aA as kn,n as yt,g as Tn,m as Nn,h as _n,aB as Pn,j as An}from"./agent-icon-7ADgtWCH.js";import{s as Cn}from"./XClose-DFzCGpgs.js";import{a as En,u as On}from"./use-project-scope-0YD7Iyyr.js";import{u as Dt,a as In}from"./use-panel-navigate-BWVfSYSA.js";import{i as de}from"./CheckCircle-COGqVxnk.js";import{i as bt}from"./Monitor01-C_fHpJXT.js";import{i as qe}from"./ZoomOut-Cg2E6Hn7.js";import{u as $n}from"./use-clock-tick-Df5id_iA.js";import{s as xt}from"./Plus-D-0eKLeG.js";import{a as Ln}from"./Tool01-CtZDIoke.js";import{b as le,a as Je,f as Dn,e as Rn,c as Fn,C as Mn}from"./command-fxFZFBik.js";import{I as zn}from"./integration-icon-Ch0O_HoU.js";import{P as qn}from"./project-icon-DDejaJkU.js";import{a as Kn,m as Bn}from"./use-mcp-client-dq6ZHYKa.js";import{u as Hn,a as Un,n as Gn}from"./new-project-dialog-D7zn8TAV.js";import{S as Jn,u as Vn}from"./thread-intent-4EhNPevS.js";import{R as Wn}from"./required-auth-layout-BJdpNUyb.js";import{A as Yn}from"./autosend-D3NSq3DM.js";import{u as Qn,a as Xn,b as Zn,c as es}from"./thread-route-BD60Whh-.js";import{u as ts}from"./use-org-sso-B0RTHGdW.js";function ns(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r||e[1]!==i?(c=async()=>{const p=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await p.json();if(!p.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=p=>{window.location.href=`/${p.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=p=>{We.error(p instanceof Error?p.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let w;e[7]!==c||e[8]!==m||e[9]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=w):w=e[10];const u=st(w),y=ss;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(it,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let b;e[24]!==f||e[25]!==x?(b=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==u?(S=()=>u.mutate(),e[27]=u,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(j=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let P;e[33]!==u.isPending||e[34]!==S||e[35]!==j?(P=n.jsx(F,{onClick:S,disabled:u.isPending,children:j}),e[33]=u.isPending,e[34]=S,e[35]=j,e[36]=P):P=e[36];const k=u.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let T;e[39]!==u.isPending||e[40]!==v?(T=n.jsx(F,{variant:"ghost",onClick:y,disabled:k,children:v}),e[39]=u.isPending,e[40]=v,e[41]=T):T=e[41];let N;e[42]!==P||e[43]!==T?(N=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[P,T]}),e[42]=P,e[43]=T,e[44]=N):N=e[44];let _;return e[45]!==b||e[46]!==N||e[47]!==l?(_=n.jsxs(fe,{children:[l,b,N]}),e[45]=b,e[46]=N,e[47]=l,e[48]=_):_=e[48],_}function ss(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=os,c=s==="not-found",m=c?xn:Tt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const w=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const y=u;let l;e[8]!==m?(l=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=l):l=e[9];let g;e[10]!==w?(g=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=g):g=e[11];let f;e[12]!==y?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.goHome"),e[17]=a,e[18]=x):x=e[18];let b;e[19]!==x?(b=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=b):b=e[20];let S;return e[21]!==l||e[22]!==d||e[23]!==b?(S=n.jsxs(fe,{children:[l,d,b]}),e[21]=l,e[22]=d,e[23]=b,e[24]=S):S=e[24],S}function os(){window.location.href="/"}function is(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let c;e[0]!==o?(c=async()=>{const C=await Be.organization.acceptInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Vt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let w;e[6]!==c||e[7]!==m||e[8]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=w):w=e[9];const u=st(w);let y;e[10]!==o?(y=async()=>{const C=await Be.organization.rejectInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[10]=o,e[11]=y):y=e[11];let l,g;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==y||e[16]!==l||e[17]!==g?(f={mutationFn:y,onSuccess:l,onError:g},e[15]=y,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=st(f),x=u.isPending||d.isPending;let b;e[19]!==a||e[20]!==r?(b=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=b):b=e[21];let S;e[22]!==r||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=S):S=e[24];let j;e[25]!==S?(j=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=j):j=e[26];let P;e[27]!==i?(P=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=P):P=e[28];let k;e[29]!==P?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:P}),e[29]=P,e[30]=k):k=e[30];let v;e[31]!==j||e[32]!==k?(v=n.jsxs("div",{className:"space-y-2",children:[j,k]}),e[31]=j,e[32]=k,e[33]=v):v=e[33];let T;e[34]!==u?(T=()=>u.mutate(),e[34]=u,e[35]=T):T=e[35];let N;e[36]!==u.isPending||e[37]!==i?(N=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=N):N=e[38];let _;e[39]!==x||e[40]!==T||e[41]!==N?(_=n.jsx(F,{onClick:T,disabled:x,children:N}),e[39]=x,e[40]=T,e[41]=N,e[42]=_):_=e[42];let p;e[43]!==d?(p=()=>d.mutate(),e[43]=d,e[44]=p):p=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==x||e[49]!==p||e[50]!==A?($=n.jsx(F,{variant:"ghost",onClick:p,disabled:x,children:A}),e[48]=x,e[49]=p,e[50]=A,e[51]=$):$=e[51];let I;e[52]!==_||e[53]!==$?(I=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=I):I=e[54];let D;return e[55]!==v||e[56]!==I||e[57]!==b?(D=n.jsxs(fe,{children:[b,v,I]}),e[55]=v,e[56]=I,e[57]=b,e[58]=D):D=e[58],D}function as(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(it,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let w;e[12]!==c||e[13]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=w):w=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let y;e[17]!==u?(y=n.jsx(F,{variant:"ghost",onClick:rs,children:u}),e[17]=u,e[18]=y):y=e[18];let l;return e[19]!==a||e[20]!==w||e[21]!==y?(l=n.jsxs(fe,{children:[a,w,y]}),e[19]=a,e[20]=w,e[21]=y,e[22]=l):l=e[22],l}function rs(){window.location.href="/"}function ls(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),p=await _.json();if(!_.ok||!p.success)throw new Error(p.error??"Failed to request access");return p},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=ds,e[2]=m):m=e[2];let h;e[3]!==i?(h=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let w;e[5]!==c||e[6]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=w):w=e[7];const u=st(w);let y;e[8]!==s||e[9]!==o?(y=s?n.jsx(it,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=y):y=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==g||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=x):x=e[23];let b;e[24]!==u?(b=()=>u.mutate(),e[24]=u,e[25]=b):b=e[25];let S;e[26]!==u.isPending||e[27]!==i?(S=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==b||e[31]!==S?(j=n.jsx(F,{onClick:b,disabled:u.isPending,children:S}),e[29]=u.isPending,e[30]=b,e[31]=S,e[32]=j):j=e[32];const P=u.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let v;e[35]!==u.isPending||e[36]!==k?(v=n.jsx(F,{variant:"ghost",onClick:cs,disabled:P,children:k}),e[35]=u.isPending,e[36]=k,e[37]=v):v=e[37];let T;e[38]!==j||e[39]!==v?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=T):T=e[40];let N;return e[41]!==x||e[42]!==T||e[43]!==y?(N=n.jsxs(fe,{children:[y,x,T]}),e[41]=x,e[42]=T,e[43]=y,e[44]=N):N=e[44],N}function cs(){window.location.href="/"}function ds(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function us(t){const e=R.c(7);let o;e[0]!==t?(o=Ue.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],Nt(s)}function ms({orgSlug:t}){const{data:e}=us(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const o=localStorage.getItem(Ke.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ke.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(is,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ns,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(ls,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(as,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:w,onDismiss:u,tone:y}=t,l=y===void 0?"neutral":y,g=h||w;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(Cn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==u?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=x):x=e[5];const b=c&&"flex items-start gap-3",S=m&&"pb-3";let j;e[6]!==b||e[7]!==S?(j=ht("p-4 pr-11",b,S),e[6]=b,e[7]=S,e[8]=j):j=e[8];let P;e[9]!==c?(P=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=P):P=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let v;e[13]!==a?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=v):v=e[14];let T;e[15]!==i?(T=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let N;e[17]!==v||e[18]!==T||e[19]!==k?(N=n.jsxs("div",{children:[k,v,T]}),e[17]=v,e[18]=T,e[19]=k,e[20]=N):N=e[20];let _;e[21]!==m?(_=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=_):_=e[22];let p;e[23]!==N||e[24]!==_?(p=n.jsxs("div",{className:"min-w-0 flex-1",children:[N,_]}),e[23]=N,e[24]=_,e[25]=p):p=e[25];let A;e[26]!==p||e[27]!==j||e[28]!==P?(A=n.jsxs("div",{className:j,children:[P,p]}),e[26]=p,e[27]=j,e[28]=P,e[29]=A):A=e[29];let $;e[30]!==w||e[31]!==h||e[32]!==g||e[33]!==l?($=g&&n.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:w})]}),e[30]=w,e[31]=h,e[32]=g,e[33]=l,e[34]=$):$=e[34];let I;return e[35]!==o||e[36]!==A||e[37]!==$||e[38]!==f||e[39]!==x||e[40]!==l?(I=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,$]}),e[35]=o,e[36]=A,e[37]=$,e[38]=f,e[39]=x,e[40]=l,e[41]=I):I=e[41],I}const fs={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 Ft(t){return`[data-tour="${fs[t]}"]`}const hs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function gs(t){return hs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ps(t,e){return gs(e).map(o=>({element:Ft(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const ys=Ft("switcher"),bs=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function xs(t,e){return ps(t,e).filter(o=>typeof o.element=="string"&&Mt(o.element))}function Ss(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Ve=!1},steps:e}}let Ve=!1;async function ws(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function vs(t,e){if(Ve)return;Ve=!0;let o=0;const r=()=>{if(!Mt(ys)&&o++<bs){requestAnimationFrame(r);return}const s=xs(t,e);if(s.length===0){Ve=!1;return}ws().then(a=>{a(Ss(t,s)).drive()}).catch(()=>{Ve=!1})};r()}function js(t){return t!=="off"}function ni(t){if(!t.hasSource)return[];const e=["site-editor"];return js(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function si(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:lt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:gt,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:ae,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:bt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ae,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:de,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:qe,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:ae,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:de,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:qe,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:de,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:ae,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:qe,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:ae,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:de,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:qe,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:ae,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:de,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:qe,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:ae,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:lt,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:de,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:gt,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:qe,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:de,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:ae,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:lt,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:ae,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:jn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ot="studio.release-feed.v1",dt=new Set;let ue="",me={},ut=!1;function ks(){if(ut)return ue||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return ue||"{}"}}function Kt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==ue&&(ue=t,me=Kt(t)),me}function Ts(t){dt.add(t);const e=o=>{if(!(o.key!==ot&&o.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Kt(r),...me};me=a,ue=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function Ns(t){me=t,ue=JSON.stringify(t);try{localStorage.setItem(ot,ue),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function _s(){const t=R.c(7),e=se.useSyncExternalStore(Ts,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ps;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function Ps(t){me[t]||Ns({...me,[t]:{seenAt:new Date().toISOString()}})}const As=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const o=Es(e.date),r=t-o;return r<0||r>As?null:e}function Is(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 $s(t,e){const o=Is(t);return o===null?!1:e-o>=Cs}function Ls(){const t=R.c(46),e=J(),o=En(),r=Xt(),s=Dt(),a=!!o,i=r===re.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Be.useSession(),{isSeen:w,markSeen:u}=_s(),y=$n(6e4);let l,g,f;if(t[3]!==w||t[4]!==y||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Os(y),!l){f=null;break e}if(!$s(h?.user?.createdAt,y)){f=null;break e}g=w(l.id)}t[3]=w,t[4]=y,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),vs(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const x=d;let b;t[16]!==e?(b=e("announcements.release.ariaLabel"),t[16]=e,t[17]=b):b=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const j=l.eyebrow,P=l.title;let k;t[20]!==l.id||t[21]!==u?(k=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=k):k=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=u,t[26]=e,t[27]=v):v=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==x?(T=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:x,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=x,t[32]=T):T=t[32];let N;t[33]!==l.bullets?(N=l.bullets.map(Ds),t[33]=l.bullets,t[34]=N):N=t[34];let _;t[35]!==N?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[35]=N,t[36]=_):_=t[36];let p;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==_||t[41]!==b||t[42]!==S||t[43]!==k||t[44]!==v?(p=n.jsx(Rt,{ariaLabel:b,dismissLabel:S,eyebrow:j,title:P,onDismiss:k,footerLeading:v,actions:T,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=_,t[41]=b,t[42]=S,t[43]=k,t[44]=v,t[45]=p):p=t[45],p}function Ds(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Bt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Bt?"⌘":"Ctrl",G={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Rs=[{label:"General",shortcuts:[G.commandPalette,G.keyboardShortcuts,G.back,G.newTask,G.toggleDaemon]},{label:"Editor",shortcuts:[G.saveAndFormat]},{label:"Chat",shortcuts:[G.focusChatInput,G.togglePlanMode,G.sendMessage,G.newLine]},{label:"Questions",shortcuts:[G.selectOption]},{label:"Monitoring",shortcuts:[G.applyFilter]}];function vt(t){return Bt?t.metaKey:t.ctrlKey}function Fs(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Ms(t){const e=R.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(_t,{children:n.jsx(Pt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(At,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ct,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ks)})]},t.description)}function Ks(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Bs(t){const{org:e}=mt(),o=Kn({connectionId:Ot,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=J(),a=Et(),{org:i}=mt(),{projects:c,hasProjects:m}=On(),[h,w]=se.useState(""),u=se.useDeferredValue(h),y=Bs(u);let l;e[0]!==r?(l=()=>{r(!1),w("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(q,W)=>{ct("command_palette_used",{kind:W}),q(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){a({to:re.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const W=It(i.id).id;Zt(a,en({org:i.slug,agentId:q.virtual_mcp_id??W,superAgentId:W}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const b=x;let S;e[8]!==h?(S=[h],e[8]=h,e[9]=S):S=e[9];const j=S;let P,k,v,T,N,_,p,A,$,I,D,C,M;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==y||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==b||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==h){const q=y.filter(Gs),W=y.filter(Us);let Y;e[36]!==i.slug?(Y={org:i.slug},e[36]=i.slug,e[37]=Y):Y=e[37];const L=Y;let Q;e[38]!==s?(Q=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Q):Q=e[39];let Ge;e[40]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(Tn,{"aria-hidden":"true"}),e[40]=Ge):Ge=e[40];let oe;e[41]!==L||e[42]!==Q?(oe={key:"home",label:Q,icon:Ge,to:re.home,params:L},e[41]=L,e[42]=Q,e[43]=oe):oe=e[43];let B;e[44]!==s?(B=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=B):B=e[45];let X;e[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Nn,{"aria-hidden":"true"}),e[46]=X):X=e[46];let Z;e[47]!==L||e[48]!==B?(Z={key:"reports",label:B,icon:X,to:re.reports,params:L},e[47]=L,e[48]=B,e[49]=Z):Z=e[49];let ee;e[50]!==s?(ee=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=ee):ee=e[51];let te;e[52]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(yt,{"aria-hidden":"true"}),e[52]=te):te=e[52];let H;e[53]!==i.slug?(H={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=H):H=e[54];let U;e[55]!==ee||e[56]!==H?(U={key:"tasks",label:ee,icon:te,to:re.tasks,params:H},e[55]=ee,e[56]=H,e[57]=U):U=e[57];let ne;e[58]!==s?(ne=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ne):ne=e[59];let ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(_n,{"aria-hidden":"true"}),e[60]=ie):ie=e[60];let E;e[61]!==L||e[62]!==ne?(E={key:"library",label:ne,icon:ie,to:re.library,params:L},e[61]=L,e[62]=ne,e[63]=E):E=e[63];let z;e[64]!==s?(z=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=z):z=e[65];let Qe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Pn,{"aria-hidden":"true"}),e[66]=Qe):Qe=e[66];let he;e[67]!==L||e[68]!==z?(he={key:"discover",label:z,icon:Qe,to:re.discover,params:L},e[67]=L,e[68]=z,e[69]=he):he=e[69];let Xe;e[70]!==oe||e[71]!==Z||e[72]!==U||e[73]!==E||e[74]!==he?(Xe=[oe,Z,U,E,he],e[70]=oe,e[71]=Z,e[72]=U,e[73]=E,e[74]=he,e[75]=Xe):Xe=e[75];const at=Xe;k=Dn,T=o,e[76]!==g||e[77]!==r?(N=O=>O?r(!0):g(),e[76]=g,e[77]=r,e[78]=N):N=e[78],e[79]!==s?(_=s("commandPalette.title"),e[79]=s,e[80]=_):_=e[80],e[81]!==s?(p=s("commandPalette.description"),e[81]=s,e[82]=p):p=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84];let pe;e[85]!==s?(pe=s("commandPalette.placeholder"),e[85]=s,e[86]=pe):pe=e[86],e[87]!==ge||e[88]!==pe||e[89]!==h?(A=n.jsx(Rn,{placeholder:ge,"aria-label":pe,value:h,onValueChange:w}),e[87]=ge,e[88]=pe,e[89]=h,e[90]=A):A=e[90],P=Fn;let ye;e[91]!==s?(ye=s("commandPalette.empty"),e[91]=s,e[92]=ye):ye=e[92],e[93]!==ye?($=n.jsx(Mn,{children:ye}),e[93]=ye,e[94]=$):$=e[94];let be;e[95]!==s?(be=s("commandPalette.goTo"),e[95]=s,e[96]=be):be=e[96];let xe;e[97]!==at||e[98]!==d||e[99]!==a?(xe=at.map(O=>n.jsxs(le,{onSelect:()=>d(()=>a({to:O.to,params:O.params}),"destination"),children:[O.icon,n.jsx("span",{children:O.label})]},O.key)),e[97]=at,e[98]=d,e[99]=a,e[100]=xe):xe=e[100],e[101]!==be||e[102]!==xe?(I=n.jsx(Je,{heading:be,children:xe}),e[101]=be,e[102]=xe,e[103]=I):I=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Je,{heading:s("commandPalette.projects"),children:c.map(O=>n.jsxs(le,{value:`project ${O.title}`,onSelect:()=>d(()=>a({to:re.projects,params:{org:i.slug,agentId:O.id}}),"project"),children:[n.jsx(qn,{icon:O.icon,name:O.title,"aria-hidden":"true"}),n.jsx("span",{children:O.title})]},O.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let Se;e[111]!==s?(Se=s("commandPalette.actions"),e[111]=s,e[112]=Se):Se=e[112];let we;e[113]!==s?(we=s("commandPalette.newProject"),e[113]=s,e[114]=we):we=e[114];let ve;e[115]!==d||e[116]!==a||e[117]!==L?(ve=()=>d(()=>a({to:re.home,params:L}),"new_project"),e[115]=d,e[116]=a,e[117]=L,e[118]=ve):ve=e[118];let Ze;e[119]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(xt,{"aria-hidden":"true"}),e[119]=Ze):Ze=e[119];let je;e[120]!==s?(je=s("commandPalette.newProject"),e[120]=s,e[121]=je):je=e[121];let ke;e[122]!==je?(ke=n.jsx("span",{children:je}),e[122]=je,e[123]=ke):ke=e[123];let Te;e[124]!==we||e[125]!==ve||e[126]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[124]=we,e[125]=ve,e[126]=ke,e[127]=Te):Te=e[127];let Ne;e[128]!==s?(Ne=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=Ne):Ne=e[129];let _e;e[130]!==d||e[131]!==a||e[132]!==L?(_e=()=>d(()=>a({to:"/$org/settings/members",params:L}),"invite"),e[130]=d,e[131]=a,e[132]=L,e[133]=_e):_e=e[133];let et;e[134]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(An,{"aria-hidden":"true"}),e[134]=et):et=e[134];let Pe;e[135]!==s?(Pe=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Pe):Pe=e[136];let Ae;e[137]!==Pe?(Ae=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ae):Ae=e[138];let Ce;e[139]!==Ne||e[140]!==_e||e[141]!==Ae?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Ae]}),e[139]=Ne,e[140]=_e,e[141]=Ae,e[142]=Ce):Ce=e[142];let Ee;e[143]!==s?(Ee=s("commandPalette.addConnection"),e[143]=s,e[144]=Ee):Ee=e[144];let Oe;e[145]!==d||e[146]!==a||e[147]!==L?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:L,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=L,e[148]=Oe):Oe=e[148];let tt;e[149]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=tt):tt=e[149];let Ie;e[150]!==s?(Ie=s("commandPalette.addConnection"),e[150]=s,e[151]=Ie):Ie=e[151];let $e;e[152]!==Ie?($e=n.jsx("span",{children:Ie}),e[152]=Ie,e[153]=$e):$e=e[153];let Le;e[154]!==Ee||e[155]!==Oe||e[156]!==$e?(Le=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,$e]}),e[154]=Ee,e[155]=Oe,e[156]=$e,e[157]=Le):Le=e[157];let De;e[158]!==s?(De=s("commandPalette.settings"),e[158]=s,e[159]=De):De=e[159];let Re;e[160]!==d||e[161]!==a||e[162]!==L?(Re=()=>d(()=>a({to:"/$org/settings/general",params:L}),"settings"),e[160]=d,e[161]=a,e[162]=L,e[163]=Re):Re=e[163];let nt;e[164]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Ln,{"aria-hidden":"true"}),e[164]=nt):nt=e[164];let Fe;e[165]!==s?(Fe=s("commandPalette.settings"),e[165]=s,e[166]=Fe):Fe=e[166];let Me;e[167]!==Fe?(Me=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=Me):Me=e[168];let ze;e[169]!==De||e[170]!==Re||e[171]!==Me?(ze=n.jsxs(le,{value:De,onSelect:Re,children:[nt,Me]}),e[169]=De,e[170]=Re,e[171]=Me,e[172]=ze):ze=e[172],e[173]!==Se||e[174]!==Te||e[175]!==Ce||e[176]!==Le||e[177]!==ze?(C=n.jsxs(Je,{heading:Se,children:[Te,Ce,Le,ze]}),e[173]=Se,e[174]=Te,e[175]=Ce,e[176]=Le,e[177]=ze,e[178]=C):C=e[178],M=q.length>0&&n.jsx(Je,{heading:s("commandPalette.connections"),children:q.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),"connection"),children:[n.jsx(zn,{icon:O.icon,name:O.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title})]},`connection:${O.id}`))}),v=W.length>0&&n.jsx(Je,{heading:s("commandPalette.results"),children:W.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),O.type),children:[O.type==="thread"?n.jsx(kn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title}),O.type==="task"&&O.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:O.key})]},`${O.type}:${O.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=y,e[14]=a,e[15]=r,e[16]=o,e[17]=b,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=h,e[23]=P,e[24]=k,e[25]=v,e[26]=T,e[27]=N,e[28]=_,e[29]=p,e[30]=A,e[31]=$,e[32]=I,e[33]=D,e[34]=C,e[35]=M}else P=e[23],k=e[24],v=e[25],T=e[26],N=e[27],_=e[28],p=e[29],A=e[30],$=e[31],I=e[32],D=e[33],C=e[34],M=e[35];let K;e[179]!==P||e[180]!==v||e[181]!==$||e[182]!==I||e[183]!==D||e[184]!==C||e[185]!==M?(K=n.jsxs(P,{children:[$,I,D,C,M,v]}),e[179]=P,e[180]=v,e[181]=$,e[182]=I,e[183]=D,e[184]=C,e[185]=M,e[186]=K):K=e[186];let V;return e[187]!==k||e[188]!==T||e[189]!==N||e[190]!==_||e[191]!==p||e[192]!==A||e[193]!==K?(V=n.jsxs(k,{open:T,onOpenChange:N,title:_,description:p,children:[A,K]}),e[187]=k,e[188]=T,e[189]=N,e[190]=_,e[191]=p,e[192]=A,e[193]=K,e[194]=V):V=e[194],V}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const Ye=new Jn(!1);function Js(){Ye.set(!0)}function Vs(){Ye.set(!1)}function Ws(){const t=R.c(2),e=se.useSyncExternalStore(Ye.subscribe,Ye.get);let o;return t[0]!==e?(o=[e,Ye.set],t[0]=e,t[1]=o):o=t[1],o}const Ys=300*1e3,Qs=2;function Xs(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ue.appVersionCheck(),queryFn:no,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=He(o),[a,i]=se.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=se.useState(c);s!==a&&(i(s),h(T=>Xs(T,r,"4.504.6")));const[w,u]=se.useState(null);if(!Zs(m,w))return null;let y;t[2]!==e?(y=e("announcements.version.ariaLabel"),t[2]=e,t[3]=y):y=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(pt,{size:16}),t[12]=x):x=t[12];let b;t[13]!==m.version?(b=()=>u(m.version),t[13]=m.version,t[14]=b):b=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.504.6"}),t[15]=e,t[16]=S):S=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let P;t[19]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(pt,{size:14}),t[19]=P):P=t[19];let k;t[20]!==j?(k=n.jsxs(F,{size:"sm",onClick:to,children:[j,P]}),t[20]=j,t[21]=k):k=t[21];let v;return t[22]!==k||t[23]!==y||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==b||t[29]!==S?(v=n.jsx(Rt,{ariaLabel:y,dismissLabel:l,eyebrow:g,title:f,description:d,icon:x,tone:"system",onDismiss:b,footerLeading:S,actions:k}),t[22]=k,t[23]=y,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=b,t[29]=S,t[30]=v):v=t[30],v}function to(){return window.location.reload()}async function no(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),kt=t=>so(Ke.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=J(),[o,r]=tn(),{data:s,isPending:a}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<oo,w=nn()==="pt-BR",u=!a&&!!c&&h&&w&&o.language==="en"&&!kt(c).has(),[y,l]=se.useState(!1),[g,f]=se.useState(!1);!y&&!a&&(l(!0),u&&c&&(kt(c).mark(),r(ro),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=V=>{ct("pt_br_auto_switch_closed",{action:V}),f(!1)},t[0]=d):d=t[0];const x=d;let b;t[1]!==r?(b=()=>{r(ao),x("switch-back")},t[1]=r,t[2]=b):b=t[2];const S=b;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=V=>!V&&x("dismiss"),t[3]=j):j=t[3];let P;t[4]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=P):P=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let v;t[7]!==k?(v=n.jsx(Pt,{children:k}),t[7]=k,t[8]=v):v=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let N;t[11]!==T?(N=n.jsx(sn,{children:T}),t[11]=T,t[12]=N):N=t[12];let _;t[13]!==v||t[14]!==N?(_=n.jsxs(_t,{children:[v,N]}),t[13]=v,t[14]=N,t[15]=_):_=t[15];let p;t[16]!==e?(p=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=p):p=t[17];let A;t[18]!==S||t[19]!==p?(A=n.jsx(F,{variant:"outline",onClick:S,children:p}),t[18]=S,t[19]=p,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>x("ok"),t[21]=$):$=t[21];let I;t[22]!==e?(I=e("announcements.ptBr.ok"),t[22]=e,t[23]=I):I=t[23];let D;t[24]!==I?(D=n.jsx(F,{onClick:$,children:I}),t[24]=I,t[25]=D):D=t[25];let C;t[26]!==A||t[27]!==D?(C=n.jsxs(on,{children:[A,D]}),t[26]=A,t[27]=D,t[28]=C):C=t[28];let M;t[29]!==C||t[30]!==_?(M=n.jsxs(At,{className:"sm:max-w-md",children:[P,_,C]}),t[29]=C,t[30]=_,t[31]=M):M=t[31];let K;return t[32]!==g||t[33]!==M?(K=n.jsx(Ct,{open:g,onOpenChange:j,children:M}),t[32]=g,t[33]=M,t[34]=K):K=t[34],K}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=an(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;rn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),ln();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(co,{}),e[0]=r):r=e[0],r}function mo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,w=(o??m)!==m;let u,y;return a?.panel?y=a.panel:s?(y=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!w&&e.tabId&&!cn(e.tabId)&&(y=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:y,search:c}}const Ht="studio:thread-layout:v4",fo=50;function Ut(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 ho(t,e,o,r=fo){const s=t.filter(([a])=>a!==e);for(s.push([e,Ut(o)]);s.length>r;)s.shift();return s}function ft(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function go(t,e){t&&Gt(ho(ft(),t,e))}function po(t){if(!t)return null;const e=ft().find(([o])=>o===t);return e?Ut(e[1]):null}function oi(t){if(!t)return;const e=ft(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Gt(o)}function Jt(t){return{queryKey:Ue.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 ii(t){const e=R.c(10);let o;e[0]!==t?(o=Jt(t),e[0]=t,e[1]=o):o=e[1];const r=He(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=bo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let w;e[3]!==a?(w=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=w):w=e[4];let u;e[5]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=u):u=e[6];let y;e[7]!==s||e[8]!==r||e[9]!==a?(y=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=y):y=e[10];let l;e[11]!==y?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==c||e[19]!==f?(d=n.jsx(F,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.goBack"),e[21]=a,e[22]=x):x=e[22];let b;e[23]!==x?(b=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=b):b=e[24];let S;e[25]!==b||e[26]!==d?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,b]}),e[25]=b,e[26]=d,e[27]=S):S=e[27];let j;return e[28]!==S||e[29]!==g?(j=n.jsxs(fe,{children:[h,g,S]}),e[28]=S,e[29]=g,e[30]=j):j=e[30],j}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:o,orgSlug:r}=t,s=J();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(dn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const w=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let y;e[13]!==w||e[14]!==u?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:w,children:u})}),e[13]=w,e[14]=u,e[15]=y):y=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==y?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y,g]}),e[20]=g,e[21]=h,e[22]=y,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(fe,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function So(t){const e=R.c(8);let o;e[0]!==t?(o=Ue.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],He(a)}const wo="/settings/infra-billing";function vo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function jo(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(bn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function ko(){const t=Et(),e=Vn(),{org:o}=mt(),r=un({strict:!1}),s=Dt(),{openPanel:a,closePanel:i}=In(),c=Qn(),m=Xn(),h=Zn(),w=es(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),y=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,x)=>{const b=!!m&&m===f;m&&!b&&go(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const S=b?null:po(f),j=It(o.id).id,P=mo({prev:{virtualmcpid:c,tabId:s},virtualMcpId:d,decopilotId:j,savedLayout:S,opts:x,autosendValue:Yn});return w(f,()=>P.search,{virtualMcpId:d,view:{tabId:P.tabId}})};return{openSidePanel:y,setTaskId:l,createNewTask:async(f,d,x)=>{const b=crypto.randomUUID(),S=f??h;try{await e?.create({id:b,virtual_mcp_id:S,...d?{branch:d}:{}})}catch{}l(b,S,x)},openTab:a,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],$t(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Po(){const t=R.c(63);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=mn(e)?.params.org,[s,a]=se.useState(!1),[i,c]=Ws(),[m,h]=Hn(),w=fn(),u=No(),y=r??"";let l;t[1]!==y?(l=Jt(y),t[1]=y,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],He(f);const{data:d}=Be.useSession(),x=d?.user?.id;let b;t[6]!==r||t[7]!==x?(b=r&&x?hn(x,r):null,t[6]=r,t[7]=x,t[8]=b):b=t[8];const S=b;let j,P;t[9]!==w?(j=()=>{const E=z=>{if(vt(z)&&z.code==="KeyK"){z.preventDefault(),Js();return}if(z.key==="?"&&!Fs(z.target)){z.preventDefault(),a(!0);return}vt(z)&&z.code==="BracketLeft"&&w.history.canGoBack()&&(z.preventDefault(),w.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},P=[w],t[9]=w,t[10]=j,t[11]=P):(j=t[10],P=t[11]),se.useEffect(j,P);let k;t[12]!==r?(k=Ue.activeOrganization(r),t[12]=r,t[13]=k):k=t[13];let v;t[14]!==r||t[15]!==x?(v=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Be.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Co),z=rt(E);return E&&!z&&localStorage.setItem(Ke.lastOrgSlug(),r),x&&E&&pn(x,r,E),E},t[14]=r,t[15]=x,t[16]=v):v=t[16];const T=S?S.data:void 0,N=S?.updatedAt;let _;t[17]!==T||t[18]!==N||t[19]!==k||t[20]!==v?(_={queryKey:k,queryFn:v,initialData:T,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=T,t[18]=N,t[19]=k,t[20]=v,t[21]=_):_=t[21];const{data:p}=Nt(_),A=p?.id,$=p?.slug,{data:I}=ts(A,$),D=!!I?.ssoRequired&&!I.authenticated,{data:C}=So($);let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M={select:Ao},t[22]=M):M=t[22];const K=$t(M),V=C?.severity==="block"&&!vo(K),q=A??"",W=$??"";let Y;t[23]!==q||t[24]!==W?(Y=Bn({connectionId:Ot,orgId:q,orgSlug:W}),t[23]=q,t[24]=W,t[25]=Y):Y=t[25];const L=!!A&&!!$;let Q;if(t[26]!==Y||t[27]!==L?(Q={...Y,enabled:L},t[26]=Y,t[27]=L,t[28]=Q):Q=t[28],He(Q),(!p||rt(p)||D||V)&&Vs(),!p){let E;return t[29]!==r?(E=n.jsx(ms,{orgSlug:r}),t[29]=r,t[30]=E):E=t[30],E}if(rt(p)){localStorage.getItem(Ke.lastOrgSlug())===r&&localStorage.removeItem(Ke.lastOrgSlug());let E;return t[31]!==p.name?(E=n.jsx(gn,{orgName:p.name}),t[31]=p.name,t[32]=E):E=t[32],E}if(V&&C){let E;return t[33]!==p.slug||t[34]!==C?(E=n.jsx(xo,{notice:C,orgSlug:p.slug}),t[33]=p.slug,t[34]=C,t[35]=E):E=t[35],E}if(D){let E;return t[36]!==p.id||t[37]!==p.name||t[38]!==p.slug||t[39]!==I.domain?(E=n.jsx(yo,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:I.domain}),t[36]=p.id,t[37]=p.name,t[38]=p.slug,t[39]=I.domain,t[40]=E):E=t[40],E}const oe=p.logo??null;let B;t[41]!==p||t[42]!==oe?(B={...p,logo:oe},t[41]=p,t[42]=oe,t[43]=B):B=t[43];let X;t[44]!==p?(X=n.jsx(uo,{activeOrg:p}),t[44]=p,t[45]=X):X=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(yn,{}),t[46]=Z):Z=t[46];let ee;t[47]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Ls,{}),n.jsx(eo,{})]}),t[47]=ee):ee=t[47];let te;t[48]!==i||t[49]!==c?(te=i&&n.jsx(Hs,{open:i,onOpenChange:c}),t[48]=i,t[49]=c,t[50]=te):te=t[50];let H;t[51]!==m||t[52]!==h?(H=m&&n.jsx(Un,{open:!0,onOpenChange:h,source:Gn()}),t[51]=m,t[52]=h,t[53]=H):H=t[53];let U;t[54]!==s?(U=n.jsx(Ms,{open:s,onOpenChange:a}),t[54]=s,t[55]=U):U=t[55];let ne;t[56]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(io,{}),t[56]=ne):ne=t[56];let ie;return t[57]!==B||t[58]!==X||t[59]!==te||t[60]!==H||t[61]!==U?(ie=n.jsxs(jo,{org:B,children:[X,Z,ee,te,H,U,ne]}),t[57]=B,t[58]=X,t[59]=te,t[60]=H,t[61]=U,t[62]=ie):ie=t[62],ie}function Ao(t){return t.location.pathname}function Co(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Eo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Wn,{children:n.jsx(Po,{})}),t[0]=e):e=t[0],e}const ai=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{G as K,fs as L,ko as a,vt as b,js as c,Fs as d,ii as e,oi as f,ai as g,zt as i,Js as o,ni as r,si as s,So as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,F,Z as G,_ as H,a as E,k as P,b as O,n as y,L as M}from"./index-D8ycvvq3.js";import{C as V}from"./chat-context-Dn145aEn.js";import{C as x}from"./index-Bu_NA65U.js";import{L}from"./index-reKUfr7F.js";import{B as K}from"./blocks-preview-workspace-context-Bglfht36.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as Z}from"./site-editor-toast-Gyi24WTd.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-Dh2QFgKr.js";import{C as Y}from"./content-tab-uMsNTE0j.js";import{T as tt}from"./tab-icon-glyph-DosnEK5E.js";import{r as et}from"./resolve-tab-icon-DP8Ea0aD.js";import ot from"./agent-site-editor-pGrUAJRT.js";import"./use-panel-navigate-BWVfSYSA.js";import"./thread-route-BD60Whh-.js";import"./use-project-scope-0YD7Iyyr.js";import"./repository-binding-qFnOG9Kf.js";import"./use-mcp-client-dq6ZHYKa.js";import"./auth-B_TJXS0n.js";import"./autosend-D3NSq3DM.js";import"./thread-intent-4EhNPevS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DtrLPzBE.js";import"./task-board-Cfi5K-5Q.js";import"./schema-pZcdx7db.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CKkpfC9u.js";import"./use-ai-providers-Ba6tq6Kh.js";import"./use-chat-navigation-qWQesS8S.js";import"./location-BjlyegC2.js";import"./use-organization-settings-ClryD4Tz.js";import"./use-mobile-Dchzsgrl.js";import"./use-app-takeover-CUfPdIQ-.js";import"./sheet-C8W18YeS.js";import"./tooltip-DTDDImYK.js";import"./index-B6Pl30Jv.js";import"./use-project-native-view-presence-BbquxO36.js";import"./use-file-configs-DtML887y.js";import"./site-slug-DebpOoQq.js";import"./agent-icon-7ADgtWCH.js";import"./AlertCircle-Dyzt7ROa.js";import"./Tool01-CtZDIoke.js";import"./ArrowUp-CtyeX35T.js";import"./ArrowLeft-CSHSzn3p.js";import"./LinkBroken01-CTkWPKKA.js";import"./ShoppingBag01-_i_0EGH-.js";import"./ZoomOut-Cg2E6Hn7.js";import"./Building02-DHk48jC7.js";import"./CheckCircle-COGqVxnk.js";import"./ChevronUp-iwpcZ6ZJ.js";import"./ChevronSelectorVertical-CLfFYLAx.js";import"./UserSquare-C0oVj3jP.js";import"./Copy01-C5MyX131.js";import"./CreditCard01-DbksZbCa.js";import"./DotsVertical-t_p3uDnk.js";import"./Image01-BmWIcz9g.js";import"./Globe04-CEKxgW4I.js";import"./SwitchHorizontal01-I9orqnhT.js";import"./Key01-flR1Rk0k.js";import"./Link01-NVZrbJ2z.js";import"./Monitor01-C_fHpJXT.js";import"./Sun-g_4y19bS.js";import"./Play-CYHvnoi_.js";import"./Plus-D-0eKLeG.js";import"./SearchMd-BZnFITM5.js";import"./Trash01-DXu_ke97.js";import"./Upload01-Cuxcfzt0.js";import"./User01-CpQvYpgF.js";import"./Users01-BOA9J6qJ.js";import"./XClose-DFzCGpgs.js";import"./toolbar-icon-button-CNY-x8q8.js";import"./shell-layout-C8-H8Sys.js";import"./avatar-D7EA7cl6.js";import"./use-clock-tick-Df5id_iA.js";import"./command-fxFZFBik.js";import"./index-C1k6bl66.js";import"./integration-icon-Ch0O_HoU.js";import"./project-icon-DDejaJkU.js";import"./new-project-dialog-D7zn8TAV.js";import"./label-Des1dBAA.js";import"./repository-import-picker-XvHhr-YM.js";import"./use-navigate-to-agent-CCmZPom4.js";import"./repository-picker-CDMQ-67j.js";import"./useInfiniteQuery-DvCuWsJ6.js";import"./infiniteQueryObserver-DgfIuRy-.js";import"./collection-search-BtAaADUJ.js";import"./use-debounced-value-BvQkjiEp.js";import"./required-auth-layout-BJdpNUyb.js";import"./use-org-sso-B0RTHGdW.js";import"./resizable-CKPf2Yhz.js";import"./icon-button-gjWtlNIn.js";import"./core.esm-BWusCVk-.js";import"./sortable.esm-DR9w0kC7.js";import"./context-menu-BhQBRl1n.js";import"./create-organization-dialog-CpW4B8uH.js";import"./alert-dialog-_s7hqvJ_.js";import"./form-DmfVlpti.js";import"./use-recent-apps-BrEq5yj7.js";import"./input-CNWKZHOn.js";import"./usage-stats-CPLYge0E.js";import"./tool-namespace-B7nVIU6I.js";import"./utils-CVEq3hMx.js";import"./markdown-Cy5TyQD8.js";import"./use-copy-CG9UgrVq.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./file-type-icon-C3Wvkdfs.js";import"./chat-draft-B11vfGsb.js";import"./select-CsN8wWwy.js";import"./index-BdQq_4o_.js";import"./tabs-DpA6UCpp.js";import"./use-deco-credits-CiBA1j3q.js";import"./toggle-group-CehyBfy_.js";import"./use-open-billing-url-CmAAUi88.js";import"./index-CuAR9UE_.js";import"./checkbox-DEL-ITP4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-B5_Kaf1b.js";import"./drawer-Pd2bkZwX.js";import"./input-DrsB_G6y.js";import"./suggestion-DD-4qLns.js";import"./use-mcp-prompts-U8IanBaN.js";import"./use-org-fs-C6PMtaVD.js";import"./question-004-sINsf4GQ.js";import"./use-members-nS--Jb3J.js";import"./use-org-auth-client-BV-99AzQ.js";import"./feature-paywall-BUvad-6w.js";import"./plan-ladder-i59Z6bnV.js";import"./add-connection-dialog-wdvNwZIH.js";import"./extract-connection-data-47aQZG-0.js";import"./metadata-D72DunRR.js";import"./connection-Bm1YN2Qv.js";import"./url-slug-CvdbhkuL.js";import"./connection-card-VZyTjeL7.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CilvBHk6.js";import"./use-connection-CxkpvOSK.js";import"./schema-CB0y_kWu.js";import"./connection-form-helpers-B8gc-NIa.js";import"./authenticate-and-persist-oauth-UdSc08ls.js";import"./mcp-oauth-CEdQ8awJ.js";import"./mcp-oauth-C7679P97.js";import"./collection-tabs-BPMM9JU6.js";import"./badge-C0x7-j94.js";import"./use-infinite-scroll-C7WJc185.js";import"./useSuspenseInfiniteQuery-7ax8yx2o.js";import"./use-task-board-events-IdeSpBWq.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-B6dBwzj-.js";import"./index-Kv7T-lWA.js";import"./pair-B9FUGmMH.js";import"./collapsible-2qINC-s6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DYh0AbHr.js";import"./types-BRbHCiMu.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-C13KsPaH.js";import"./sandbox-git-api-CRxdlhrN.js";import"./blocks-tab-states-DWDFGWKG.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./secret-ciphertext-BAOlyGdC.js";import"./alert-BVmkZ-E2.js";import"./switch-Dw8QMOfK.js";import"./scroll-area-tjZ1v8uh.js";import"./monaco-editor-BOWGtFnb.js";import"./editor-fmwfQ_5F.js";import"./calendar-DppMF-oc.js";import"./editor-classes-N-pDaC7c.js";import"./view-mode-toggle-xYGlwauP.js";import"./combobox-B-I_TDnB.js";import"./search-input-iNzELQG5.js";import"./asset-utils-gDGUDBoj.js";import"./empty-state-BSt_DXl_.js";import"./sandbox-lifecycle-context-qVQZp0bf.js";import"./variant-draft-pointer-BmoZUVqO.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-C5DoEojx.js";import"./useQueries-DNFMK_6M.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-Dhi5oDvB.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-4a2jZXOn.js";import"./mustache-DF__kc82.js";import"./empty-state-BKri0rqp.js";import"./separator-Dc8FPAxr.js";import"./use-releases-B_cwVxMv.js";import"./serial-task-queue-CGOeQgpr.js";import"./hosted-publish-feedback-BZI_hNNY.js";import"./save-changes-debug-nBi-n9eV.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=Z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(X,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function Ui(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function zi(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Q,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function Zi(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Y,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{Zi as SiteEditorContent,zi as SiteEditorPreview,Ui as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,o as q,m as F,K as m,aV as Ye,aF as Nt,aG as _t,r as U,a as Dt,av as ce,a2 as Rt,at as xt,b7 as Pt,t as z,j as V}from"./index-D8ycvvq3.js";import{a as We}from"./input-CNWKZHOn.js";import{k as $t,M as At,l as le,s as xe}from"./thread-intent-4EhNPevS.js";import{c as we,j as Lt}from"./use-project-native-view-presence-BbquxO36.js";import{b as te}from"./sandbox-url-D3mC8qhT.js";import{s as Ft}from"./utils-B6dBwzj-.js";import{a as Ut}from"./repository-binding-qFnOG9Kf.js";import{u as Mt}from"./chat-context-Dn145aEn.js";import{i as jt,u as Bt}from"./index-Kv7T-lWA.js";import{v as Qt}from"./sandbox-git-api-CRxdlhrN.js";import{e as Vt}from"./backoff-CrEUbyZT.js";const w={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class T extends Error{code;data;constructor(t,n,o){super(n),this.name="ContentProtocolError",this.code=t,this.data=o}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(t){return new T(t.code,t.message,t.data)}}const K="deco-content",ue={major:1},ze=1;async function Ht(e){let t=new Uint8Array(await e.arrayBuffer());if(t[0]===31&&t[1]===139){const n=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));t=new Uint8Array(await new Response(n).arrayBuffer())}return JSON.parse(new TextDecoder().decode(t))}const de={major:ue.major,minor:ze},Xe=`the endpoint speaks an older ${K} than this client needs (${de.major}.${de.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function W(e,t,n){const o={reason:t,required:{...de}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const r=n.server;typeof r?.name=="string"&&typeof r.version=="string"&&(o.server={name:r.name,version:r.version})}return new T(w.Unsupported,e,o)}function Ze(e){const t=e??{},{protocol:n,version:o}=t;if(n!==K)throw W(`the endpoint speaks ${JSON.stringify(n)}, not ${K}`,"protocol",t);if(o?.major!==ue.major)throw W(`the endpoint speaks ${K} ${String(o?.major)}.x; this client speaks ${ue.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<ze)throw W(Xe,"outdated",t);return e}function Pe(e,t){return t.code===w.MethodNotFound&&e.startsWith("changes.")?W(Xe,"outdated"):T.from(t)}function ye(e){const t=e.fetch??(s=>fetch(s));let n=1;async function o(s){const i={"content-type":"application/json",accept:"application/json",...e.headers},a=await t(new Request(e.endpoint,{method:"POST",headers:i,body:JSON.stringify(s)}));let c;try{c=await Ht(a)}catch{throw new T(w.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(c)&&c?.id===null){const l=c?.error;throw l?T.from(l):new T(w.Unavailable,`the endpoint answered HTTP ${a.status}`)}return c}const r=async(s,i)=>{const a=n++,c=await o({jsonrpc:"2.0",id:a,method:s,params:i??{}});if(c.error)throw Pe(s,c.error);return c.result};return{call:r,describe:async()=>Ze(await r("describe")),schemaGet:s=>r("schema.get",s),blocksList:s=>r("blocks.list",s),blocksApply:s=>r("blocks.apply",s),changesList:s=>r("changes.list",s),changesGet:s=>r("changes.get",s),changesDiscard:s=>r("changes.discard",s),async batch(s){const i=s.map(()=>n++),a=await o(s.map((l,d)=>({jsonrpc:"2.0",id:i[d],method:l.method,params:l.params??{}}))),c=new Map(a.map(l=>[l.id,l]));return i.map((l,d)=>{const u=c.get(l);return u?u.error?{ok:!1,error:Pe(s[d].method,u.error)}:{ok:!0,result:u.result}:{ok:!1,error:new T(w.InternalError,"no response for this call")}})}}}const fe=".json";[...Array.from({length:9},(e,t)=>`COM${t+1}`),...Array.from({length:9},(e,t)=>`LPT${t+1}`)];new TextEncoder;function Gt(e){return`${encodeURIComponent(e)}${fe}`}function et(e){return e.endsWith(fe)?e.slice(0,-fe.length):e}function So(e){const t=et(e);try{return decodeURIComponent(t)}catch{return t}}function Kt(e){let t=et(e),n=0;for(;t.includes("%");){let o;try{o=decodeURIComponent(t)}catch{break}if(o===t)break;t=o,n++}return{name:t,passes:n}}function Eo(e){return Kt(Gt(e)).name}const $e=20,Ae=5,Le=500;function Se(e){return e instanceof T?e.code===w.MethodNotFound?!0:e.code===w.Unsupported&&e.data?.reason==="outdated":!1}function he(e,t){return t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function qt(e,t,n){const o=m.contentChanges(n),r=e.getQueryData(o),s=await t.changesList(r?{ifNoneMatch:r.revision}:{}),i=he(r,s);if(i)return i;const a=await t.changesList({});return he(void 0,a)}async function Jt(e,t){const n=[];for(let s=0;s<t.length;s+=$e)n.push(t.slice(s,s+$e));const o=Object.create(null),r=[];for(let s=0;s<n.length;s+=Ae){const i=await e.batch(n.slice(s,s+Ae).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const c=a.result;Object.assign(o,c.entries),r.push(...c.diagnostics)}}return{entries:o,diagnostics:r}}async function ko(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=Le){const r=t.slice(o,o+Le),s=await e.changesDiscard({names:r.map(i=>i.name),ifMatch:Object.fromEntries(r.map(i=>[i.name,i.version]))});n={revision:s.revision,versions:{...n.versions,...s.versions}}}return n}function Co(e){return e instanceof T&&e.code===w.Conflict}function tt(e){return e?.kind==="protocol"?e:null}function Io(e,t,n){const o=P.c(14);let r;o[0]!==n?(r={},o[0]=n,o[1]=r):r=o[1];const s=r,i=q();let a;o[2]!==e?(a=tt(e),o[2]=e,o[3]=a):a=o[3];const c=a,l=!!c&&!!t&&s.enabled!==!1;let d;o[4]!==t?(d=m.contentChanges(t??""),o[4]=t,o[5]=d):d=o[5];let u;o[6]!==t||o[7]!==l||o[8]!==c||o[9]!==i?(u=l?()=>qt(i,c.client,t):Ye,o[6]=t,o[7]=l,o[8]=c,o[9]=i,o[10]=u):u=o[10];let h;return o[11]!==d||o[12]!==u?(h={queryKey:d,queryFn:u,staleTime:0},o[11]=d,o[12]=u,o[13]=h):h=o[13],F(h)}function Oo(e,t,n){const o=P.c(14);let r;o[0]!==e?(r=tt(e),o[0]=e,o[1]=r):r=o[1];const s=r;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,c=!!s&&!!t&&!!n&&a.length>0;let l;o[4]!==t||o[5]!==n?.revision?(l=m.contentChangeSides(t??"",n?.revision??""),o[4]=t,o[5]=n?.revision,o[6]=l):l=o[6];let d;o[7]!==c||o[8]!==a||o[9]!==s?(d=c?()=>Jt(s.client,a):Ye,o[7]=c,o[8]=a,o[9]=s,o[10]=d):d=o[10];let u;return o[11]!==l||o[12]!==d?(u={queryKey:l,queryFn:d,staleTime:Number.POSITIVE_INFINITY},o[11]=l,o[12]=d,o[13]=u):u=o[13],F(u)}function nt(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const n=t.hostname.toLowerCase();return n==="127.0.0.1"||n==="[::1]"||n==="localhost"}catch{return!1}}function X(e){try{const t=new URL(e);return(t.hostname==="127.0.0.1"||t.hostname==="[::1]")&&(t.hostname="localhost"),t.href}catch{return e}}const ot=Nt({endpoint:_t().max(2048).refine(e=>nt(e)&&new URL(e).pathname==="/rpc").transform(X)});function To(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=ot.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function rt(e){const t=ot.safeParse(e);return t.success?t.data:null}const st="studio:deco-serve-last";function No(e){try{localStorage.setItem(st,JSON.stringify(e))}catch{}}function _o(){try{const e=localStorage.getItem(st);return e?rt(JSON.parse(e)):null}catch{return null}}function Do(e){try{return new URL(X(e)).host}catch{return e}}function Yt(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const Wt="http://localhost:4545/rpc",Ro="npx @decocms/blocks serve",xo="npx @decocms/blocks schema";class Ee extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function zt(e){if(e instanceof Ee)return{reason:"not-deco-serve"};if(!(e instanceof T))return{reason:"not-answering"};switch(e.code){case w.Unauthorized:case w.MethodNotFound:return{reason:"outdated"};case w.Unsupported:return Se(e)?{reason:"outdated"}:{reason:"version-mismatch"};case w.Unavailable:return/^the endpoint answered HTTP/.test(e.message)?{reason:"not-deco-serve"}:{reason:"error",detail:e.message};default:return{reason:"error",detail:e.message}}}function Po(e,t){if(e)return[X(e.endpoint)];const n=[t?.endpoint,Wt].filter(o=>!!o).map(X);return[...new Set(n)]}const it=U.createContext(null);function Xt(e){const t=P.c(27),n=U.useContext(it),o=we(n?null:e),{data:r}=Dt.useSession(),s=r?.user?.id??"",i=!!e&&!!s;let a;t[0]!==i||t[1]!==s||t[2]!==e?(a=i?ce.decoServeConnection(s,e):null,t[0]=i,t[1]=s,t[2]=e,t[3]=a):a=t[3];const[c,l]=Ue(a);let d;t[4]!==i||t[5]!==s||t[6]!==e?(d=i?ce.decoServeEndpoint(s,e):null,t[4]=i,t[5]=s,t[6]=e,t[7]=d):d=t[7];const[u,h]=Ue(d);if(n)return n;let b;t[8]!==c||t[9]!==i?(b=i?rt(c):null,t[8]=c,t[9]=i,t[10]=b):b=t[10];const g=b,k=!!g;let C;t[11]!==o||t[12]!==k?(C=Zt(o,k),t[11]=o,t[12]=k,t[13]=C):C=t[13];const{applies:R,undecided:N}=C,_=R?g:null,I=i&&o==="v8"&&typeof u=="string"?u:null;let O;t[14]!==h||t[15]!==l||t[16]!==i?(O=S=>{i&&(l(S),h(S.endpoint))},t[14]=h,t[15]=l,t[16]=i,t[17]=O):O=t[17];let p;t[18]!==l||t[19]!==i?(p=()=>{i&&l(null)},t[18]=l,t[19]=i,t[20]=p):p=t[20];let y;return t[21]!==_||t[22]!==I||t[23]!==O||t[24]!==p||t[25]!==N?(y={connection:_,undecided:N,lastEndpoint:I,set:O,clear:p},t[21]=_,t[22]=I,t[23]=O,t[24]=p,t[25]=N,t[26]=y):y=t[26],y}function Zt(e,t){return t?e==="loading"?{applies:!1,undecided:!0}:{applies:e==="v8"||e==="error",undecided:!1}:{applies:!1,undecided:!1}}function Fe(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function Ue(e){const t=P.c(17),n=q(),o=e??"";let r;t[0]!==o?(r=["localStorage",o],t[0]=o,t[1]=r):r=t[1];const s=r;let i,a;t[2]!==e?(i=()=>e?Fe(e):null,a=()=>e?Fe(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const c=!!e;let l;t[5]!==s||t[6]!==i||t[7]!==a||t[8]!==c?(l={queryKey:s,queryFn:i,initialData:a,enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=s,t[6]=i,t[7]=a,t[8]=c,t[9]=l):l=t[9];const{data:d}=F(l);let u;t[10]!==e||t[11]!==n||t[12]!==s?(u=k=>{if(e){try{k===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(k))}catch{}n.setQueryData(s,k)}},t[10]=e,t[11]=n,t[12]=s,t[13]=u):u=t[13];const h=u,b=e?d??null:null;let g;return t[14]!==h||t[15]!==b?(g=[b,h],t[14]=h,t[15]=b,t[16]=g):g=t[16],g}function $o(e){return e.kind==="protocol"||e.kind==="unavailable"}function Ao(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n==="protocol"||n==="unavailable"?!0:n==="pending"?t===!0?!0:void 0:t}function Lo(e,t,n){return t!=="github"||n!=="v8"?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function Fo(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&nt(t)?t:null}function Uo(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function at(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function en(e){if(!e.hasProject)return"legacy";const t=at(e);if(t==="local")return"protocol-local";if(e.serveConnectionUndecided)return"pending";if(t==="sandbox"){const o=e.sandboxSite;return o==="v8"?"protocol-sandbox":o==="v7"?"legacy":o==="error"?e.markedV8?"retrying-sandbox":"legacy":"pending"}if(e.mainSchema==="loading")return"pending";if(e.mainSchema==="error")return"retrying-github";if(e.mainSchema==="v7")return"legacy";const n=e.githubSite;return n==="v8"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":n==="v7"?"legacy":"pending"}function tn(e){return{github:e.mode==="github"&&e.mainSchema==="v8",sandbox:e.mode==="sandbox"&&e.workingTreeReady}}function Me(e){return e.isError||e.errorUpdateCount>0}function nn(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const r of n)Object.hasOwn(t,r)?o[r]=t[r]:delete o[r];return o}function on(e){if(!e||typeof e!="object")return[];const t=e,n=[];return typeof t.blockKey=="string"&&n.push(t.blockKey),t.writes&&typeof t.writes=="object"&&n.push(...Object.keys(t.writes)),Array.isArray(t.deletes)&&n.push(...t.deletes.filter(o=>typeof o=="string")),n}function ne(e){return{[$t]:e}}class ke extends Error{status=409;constructor(){super("main's schema changed")}}async function Ce(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code===At}function Ie(e,t,n){e.resetQueries({predicate:o=>{const r=o.queryKey;return r[1]!==t||r[2]!==n?!1:r[0]===m.mainSchemaV8(t,n)[0]||r[0]===m.contentBackend()[0]&&r[4]==="github"}})}function ct(e,t,n){return e.getQueryData(m.mainSchemaV8(t,n))}const lt="__noSchema";function rn(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[lt]:!0}}function Mo(e){return!!e&&e[lt]===!0}function ut(e){if(!e.ok)return e.error.code===w.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function sn(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const an=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function jo(e){const t=new Map;for(const[n,o]of Object.entries(e)){const r=o&&typeof o=="object"&&!Array.isArray(o)?o:{},s=typeof r.__resolveType=="string"?r.__resolveType:null,i=t.get(s)??[];i.push({key:n,label:sn(n,r)}),t.set(s,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(an)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:je(n.resolveType).localeCompare(je(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function je(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function Be(e,t,n){if(t.length===0)return n;const[o,...r]=t;if(Array.isArray(e)&&typeof o=="number"){const s=e.slice();return s[o]=Be(e[o],r,n),s}if(e&&typeof e=="object"&&typeof o=="string"){const s=e,i={};for(const a of Object.keys(s))i[a]=a===o?Be(s[a],r,n):s[a];return i}return e}function Bo(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class Qe extends Error{}class Ve extends Error{}const dt="site-not-owned";async function cn(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function ln(e,t=r=>fetch(r),n,o){const r=ye({endpoint:e,fetch:async s=>{const i=new Request(s);for(const[c,l]of Object.entries(ne("v8")))i.headers.set(c,l);const a=await t(i);if(await cn(a))throw new Ve;if(await Ce(a))throw n?.(),new ke;return a}});try{const s=await Te(r,le(o)?{schema:o}:void 0);return s.v8Schema?s:null}catch(s){if(s instanceof Ve)return dt;throw s}}const Oe=5e3;function un(e){return new URL(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/rpc`,window.location.origin).href}function dn(e){return new URL(te(e,"rpc"),window.location.origin).href}async function Te(e,t){const[n,o]=await e.batch(t?[{method:"describe"}]:[{method:"describe"},{method:"schema.get"}]);if(!n?.ok)throw n?.error??new Error("no describe");if(n.result?.protocol!==K)throw new Ee;const s=Ze(n.result);if(t)return{client:e,describe:s,hasSchema:t.schema!=null,v8Schema:le(t.schema)};if(!o)throw new Error("no schema.get");if(ut(o))return{client:e,describe:s,hasSchema:!1,v8Schema:!1};if(o.ok){const i=o.result;return{client:e,describe:s,hasSchema:!0,v8Schema:le(i?.schema)}}throw o.error}async function fn(e,t=n=>fetch(n)){const n=ye({endpoint:e,fetch:async o=>{const r=await t(o);if(r.status===404)throw new Qe;return r}});try{const o=await Te(n);return o.v8Schema?o:null}catch(o){if(o instanceof Qe)return null;throw o}}function ft(e,t){const n=P.c(53),{org:o}=Rt(),{connection:r,undecided:s}=Xt(e),{runtime:i}=We(e),a=U.useContext(it),c=we(a?null:e),l=Lt(e),d=at({hasServeConnection:!!r,runtime:i}),u=Mt()?.taskId??null,h=jt(Bt().lifecycle.phase),b=q(),g=tn({mode:d,mainSchema:c,workingTreeReady:h}),k=g.github&&!!o.slug&&!!e&&!!t;let C;n[0]!==t||n[1]!==o.slug||n[2]!==b||n[3]!==e?(C=()=>ln(un({orgSlug:o.slug,virtualMcpId:e,branch:t}),void 0,()=>Ie(b,o.slug,e),ct(b,o.slug,e)?.schema),n[0]=t,n[1]=o.slug,n[2]=b,n[3]=e,n[4]=C):C=n[4];const R=F({queryKey:m.contentBackend(o.slug,e??"",t??"","github"),queryFn:C,enabled:k,staleTime:Number.POSITIVE_INFINITY,...He}),N=g.sandbox&&!!o.slug&&!!e&&!!t;let _;n[5]!==t||n[6]!==o.slug||n[7]!==u||n[8]!==e?(_=async()=>fn(dn({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:u})),n[5]=t,n[6]=o.slug,n[7]=u,n[8]=e,n[9]=_):_=n[9];const I=F({queryKey:m.contentBackend(o.slug,e??"",t??"","sandbox",u??""),queryFn:_,enabled:N,staleTime:Number.POSITIVE_INFINITY,...He}),O=!!r;let p;n[10]!==r?.endpoint||n[11]!==o.slug||n[12]!==e?(p=m.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[10]=r?.endpoint,n[11]=o.slug,n[12]=e,n[13]=p):p=n[13];let y;n[14]!==r?(y=()=>Te(ye({endpoint:r.endpoint})),n[14]=r,n[15]=y):y=n[15];let S;n[16]!==O||n[17]!==p||n[18]!==y?(S={queryKey:p,queryFn:y,enabled:O,staleTime:Number.POSITIVE_INFINITY,retry:mn,retryDelay:gn,refetchInterval:hn},n[16]=O,n[17]=p,n[18]=y,n[19]=S):S=n[19];const v=F(S);let $;n[20]!==r?.endpoint||n[21]!==o.slug||n[22]!==e?($=m.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[20]=r?.endpoint,n[21]=o.slug,n[22]=e,n[23]=$):$=n[23];const A=$;let E;n[24]!==r?.endpoint||n[25]!==o.slug||n[26]!==e?(E=m.contentBackend(o.slug,e??"","local-describe",r?.endpoint??""),n[24]=r?.endpoint,n[25]=o.slug,n[26]=e,n[27]=E):E=n[27];let D;n[28]!==v.data||n[29]!==A||n[30]!==b?(D=async()=>{try{return await v.data.client.describe()}catch(f){const G=f;throw b.invalidateQueries({queryKey:A,exact:!0},{cancelRefetch:!1}),G}},n[28]=v.data,n[29]=A,n[30]=b,n[31]=D):D=n[31];const x=!!v.data&&!a;let M;n[32]!==E||n[33]!==D||n[34]!==x?(M={queryKey:E,queryFn:D,enabled:x,refetchInterval:Oe,retry:!1},n[32]=E,n[33]=D,n[34]=x,n[35]=M):M=n[35];const Q=F(M).data??v.data?.describe,L=en({hasProject:!!e,hasServeConnection:!!r,serveConnectionUndecided:s,runtime:i,mainSchema:c,githubSite:R.data===dt?"not-owned":R.data?"v8":R.data===null?"v7":Me(R)?"error":"loading",sandboxSite:vn({data:I.data,isError:Me(I),workingTreeReady:h}),markedV8:l});if(L==="pending"){let f;return n[36]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending"},n[36]=f):f=n[36],f}if(L==="retrying-github"){let f;return n[37]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending",retrying:"github"},n[37]=f):f=n[37],f}if(L==="retrying-sandbox"){let f;return n[38]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"pending",retrying:"sandbox"},n[38]=f):f=n[38],f}if(L==="legacy"){let f;return n[39]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"legacy"},n[39]=f):f=n[39],f}if(L==="protocol-github"){const f=R.data;let G;return n[40]!==f?(G=ge("github",f,""),n[40]=f,n[41]=G):G=n[41],G}if(L==="site-not-owned-github"){let f;return n[42]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"unavailable",source:"github",siteNotOwned:!0},n[42]=f):f=n[42],f}if(L==="protocol-sandbox"){let f;return n[43]!==I.data?(f=ge("sandbox",I.data,":sandbox"),n[43]=I.data,n[44]=f):f=n[44],f}if(L==="unavailable-github"){let f;return n[45]===Symbol.for("react.memo_cache_sentinel")?(f={kind:"unavailable",source:"github"},n[45]=f):f=n[45],f}const se=v.error??v.failureReason,ie=r?.endpoint??"";let Y;return n[46]!==Q||n[47]!==v.data||n[48]!==v.failureCount||n[49]!==v.isError||n[50]!==se||n[51]!==ie?(Y=pn({probed:v.data,isError:v.isError,failureCount:v.failureCount,failure:se,describe:Q,endpoint:ie}),n[46]=Q,n[47]=v.data,n[48]=v.failureCount,n[49]=v.isError,n[50]=se,n[51]=ie,n[52]=Y):Y=n[52],Y}function hn(e){return e.state.status==="error"||e.state.data?.v8Schema===!1?Oe:!1}function gn(e){return Yt(e+1)}function mn(e,t){return!(t instanceof T)&&!(t instanceof Ee)}function vn(e){return e.data!==void 0?e.data?"v8":"v7":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const bn=3;function pn(e){if(e.probed?.hasSchema&&!e.probed.v8Schema)return{kind:"unavailable",source:"local",problem:{reason:"not-v8"}};const t=e.probed?ge("local",{...e.probed,describe:e.describe??e.probed.describe},`:serve:${e.endpoint}`):null;return e.isError||e.failureCount>0?t?.kind==="protocol"&&!e.isError&&e.failureCount<bn?t:{kind:"unavailable",source:"local",problem:zt(e.failure)}:t??{kind:"pending"}}const He={retry:2,refetchInterval:e=>e.state.status==="error"?Oe:!1};function ge(e,t,n){return{kind:"protocol",source:e,client:t.client,describe:t.describe,cacheKeySuffix:n,hasSchema:t.hasSchema}}function ht(e){const t=P.c(13);let n;t[0]!==e?(n=ce.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[r,s]=xt(o,null),i=we(e);let a;if(t[2]!==i||t[3]!==r||t[4]!==e){const h=e?xe(r):null;a=wn({saved:h,main:i}),t[2]=i,t[3]=r,t[4]=e,t[5]=a}else a=t[5];const c=a;let l,d;t[6]!==s?(l=h=>s(xe(h)),d=()=>s(null),t[6]=s,t[7]=l,t[8]=d):(l=t[7],d=t[8]);let u;return t[9]!==c||t[10]!==l||t[11]!==d?(u={...c,setUrl:l,clear:d},t[9]=c,t[10]=l,t[11]=d,t[12]=u):u=t[12],u}function wn(e){return e.saved?e.main==="v7"?{url:e.saved,undecided:!1}:e.main==="v8"?{url:null,undecided:!1}:{url:null,undecided:!0}:{url:null,undecided:!1}}function yn(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function Ge(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}class Ne extends Error{constructor(t,n,o=[]){super(n),this.blocks=t,this.fields=o,this.name="BlockConflictError"}blocks;fields}function _e(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function oe(e,t,n){return["decofile-write",e,t,n]}function Sn(e,t,n){return{id:oe(e,t,n).join(":")}}function De(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function En(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function kn(e,t,n){e.setQueryData(m.decofileDraft(_e(t)),n)}function Cn(e,t){return e.getQueryData(m.decofileDraft(_e(t)))??null}async function In(e,t){const n=await fetch(De(e),{cache:"no-store",headers:{...ne("v7"),"if-none-match":`"${t}"`}}).catch(()=>null);return n?.status===200||n?.status===409}function Qo(e){const t=P.c(4);let n;t[0]!==e?(n=m.decofileDraft(e?_e(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:On,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r??null}async function On(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Tn(e,t){const n=await fetch(De(t),{cache:"no-store",headers:ne("v7")});if(await Ce(n))throw Ie(e,t.orgSlug,t.virtualMcpId),new ke;if(!n.ok){const r=new Error(`Failed to fetch decofile: ${n.status}`);throw r.status=n.status,r}const o=await n.json();return o.token&&kn(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function Vo(e,t){const n=await fetch(De(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const r=await n.json().catch(()=>({}));throw r.code==="block-conflict"?new Ne(r.blocks??[],r.error??"Block changed"):new Error(r.error??`Save failed (${n.status})`)}if(!n.ok)return En(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const gt=3e3,Nn=15e3,_n=2*6e4,mt={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function Dn(e){return e<_n?gt:Nn}function Rn(e,t=mt){const n=t.now();let o=!1,r=!1,s=null;const i=()=>{o||(s=t.setTimeout(a,Dn(t.now()-n)))},a=()=>{if(s=null,o)return;const{read:c,skip:l}=e();if(r||t.hidden()||l?.()){i();return}r=!0;let d;try{d=c()}catch{d=void 0}Promise.resolve(d).catch(()=>{}).finally(()=>{r=!1}),i()};return i(),()=>{o=!0,s!==null&&t.clearTimeout(s)}}const Ke=()=>0;function xn(e,t,n=mt){const o=U.useRef(t);o.current=t;const[r]=U.useState(()=>({polling:()=>Rn(()=>o.current,n),idle:()=>()=>{}}));U.useSyncExternalStore(e?r.polling:r.idle,Ke,Ke)}function vt(e,t){return te(e,t)}function Pn(e,t){return te(e,"preview-fetch",{path:t})}function Ho(e){return vt(e,"preview-invoke")}function Go(e){return vt(e,"catalog-invoke")}function bt(e){try{const{hostname:t}=new URL(e);return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}function $n(){if(typeof document>"u")return null;const e=Array.from(document.querySelectorAll("iframe"));for(const t of e){const n=t.getAttribute("src");if(n&&bt(n))return n}return null}function An(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??$n();return n&&bt(n)?new URL(t,n).toString():Pn(e,t)}function Ln(e){return An(e,"/.decofile")}function Fn(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function qe(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function Un(e,t){const n=te(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),r=Fn(o.status);if(r==="absent")return{kind:"absent"};if(r==="unavailable")return{kind:"unavailable"};if(r==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const s=await o.json();if(typeof s.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Ft(s.content))}}catch{return{kind:"unavailable"}}}async function Ko(e){const t=`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/meta`,n=await fetch(t,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const o=new Error(`Failed to read committed meta: ${n.status}`);throw o.status=n.status,o}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function Mn(e){return Ut(e)?.metadata?.runtime?.path??null}class pt extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function qo(e){return e instanceof T&&e.code===w.Conflict}function wt(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}function jn(e,t,n){if(t instanceof Ne)return t.message;if(n==="local")return Qn(e,t);if(t instanceof T)switch(t.code){case w.Conflict:return e("siteEditor.save.conflict");case w.ReadOnly:return e("siteEditor.save.readOnly");case w.InvalidBlock:case w.InvalidParams:return e("siteEditor.save.invalid");case w.LimitExceeded:return e("siteEditor.save.tooLarge")}return e("siteEditor.save.failed")}function Bn(e,t){if(t==="local"||e instanceof Ne)return null;if(e instanceof T){const n=e.code===w.InvalidBlock||e.code===w.InvalidParams?wt(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function Qn(e,t){if(t instanceof pt)return e("decoServe.save.serverGone");if(t instanceof T)switch(t.code){case w.Conflict:return e("decoServe.save.conflict");case w.ReadOnly:return e("decoServe.save.readOnly");case w.InvalidBlock:case w.InvalidParams:return e("decoServe.save.invalid",{detail:wt(t)});case w.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function Vn(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function Hn(e,t){const[n,o]=U.useState(e),r=U.useRef(null);return e&&!n&&o(!0),U.useEffect(()=>{if(e){r.current??=Date.now();return}if(!n)return;const s=()=>{r.current=null,o(!1)},i=Vn(r.current,Date.now(),t);if(i===0){s();return}const a=setTimeout(s,i);return()=>clearTimeout(a)},[e,n,t]),n}const yt={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},Gn=15e3,Z=new Map;function H(e,t){return`${e}/${t}`}function j(e){let t=Z.get(e);return t||(t={state:yt,listeners:new Set,previews:0,timer:null,discardListeners:new Set},Z.set(e,t)),t}function B(e,t){const n=j(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function re(e){e.timer&&clearTimeout(e.timer),e.timer=null}function Re(e){return Z.get(e)?.state??yt}function Kn(e,t){const n=j(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function Jo(e){const t=j(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(re(t),B(e,{phase:"idle"}))}}function Yo(e){const t=Z.get(e);!t||t.state.phase!=="reloading"||(re(t),B(e,{phase:"idle"}))}function St(e){const t=j(e);re(t),B(e,{phase:"saving",inFlight:t.state.inFlight+1})}function me(e,t){const n=j(e),o=Math.max(0,n.state.inFlight-1);if(o>0){B(e,{inFlight:o});return}if(!t.ok||n.previews===0){B(e,{phase:"idle",inFlight:o});return}Et(e,t.navigates,o)}function Et(e,t,n=0){const o=j(e);re(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&B(e,{phase:"idle"})},Gn),B(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function qn(e){return e?.kind==="protocol"&&e.source==="github"}async function ve(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:a}=e,c=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:m.hostedReleases(o,r)}):null;if(i?.kind!=="protocol")return await c,{navigates:!1};const l=s?m.protocolDraftRead(o,r,s):null,d=l?JSON.stringify(n.getQueryData(l)??null):null,u=c?[c]:[];if(a&&t.reread&&u.push(n.invalidateQueries({queryKey:m.decofile(a)})),a&&u.push(n.invalidateQueries({queryKey:m.contentChanges(a)})),s&&i.source==="sandbox"&&u.push(n.invalidateQueries({queryKey:Qt(o,r,s)})),qn(i)&&l&&u.push(n.invalidateQueries({queryKey:l})),await Promise.all(u),t.kind!=="edit"){const g=H(o,r);B(g,{epoch:Re(g).epoch+1})}const h=l?JSON.stringify(n.getQueryData(l)??null):null,b=d!==h;return b&&await new Promise(g=>Pt.schedule(g)),{navigates:b}}async function Jn(e,t){return St(H(e.orgSlug,e.virtualMcpId)),kt(e,t)}async function kt(e,t){const n=H(e.orgSlug,e.virtualMcpId);let o;try{o=await t.write()}catch(s){throw me(n,{ok:!1,navigates:!1}),t.refreshOnError&&ve(e,{kind:t.kind,reread:!0}).catch(()=>{}),s}let r=!1;try{({navigates:r}=await ve(e,t))}catch{}finally{me(n,{ok:!0,navigates:r})}return o}function Wo(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s}=e,i=H(o,r),a=new Set(t.blockKeys);for(const d of[...j(i).discardListeners])d(a);St(i);let c=!1;const l=()=>(c=!0,kt(e,{kind:"discard",reread:!0,write:t.write}));return s?n.getMutationCache().build(n,{mutationKey:oe(o,r,s),scope:Sn(o,r,s),mutationFn:l}).execute(void 0).catch(d=>{throw c||me(i,{ok:!1,navigates:!1}),d}):l()}function zo(e,t,n){const o=P.c(8);let r;o[0]!==e||o[1]!==t?(r=H(e,t),o[0]=e,o[1]=t,o[2]=r):r=o[2];const s=r;let i;o[3]!==n||o[4]!==s?(i=()=>{const c=j(s).discardListeners;return c.add(n),()=>{c.delete(n)}},o[3]=n,o[4]=s,o[5]=i):i=o[5];let a;o[6]!==s?(a=[s],o[6]=s,o[7]=a):a=o[7],U.useEffect(i,a)}function Yn(e){const t=H(e.orgSlug,e.virtualMcpId);Re(t).inFlight>0||ve(e,{kind:"external"}).then(({navigates:n})=>{const o=j(t);o.previews>0&&o.state.inFlight===0&&Et(t,n)}).catch(()=>{})}function Wn(e,t){const n=P.c(7);let o;n[0]!==e||n[1]!==t?(o=H(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const r=o;let s;n[3]!==r?(s=l=>Kn(r,l),n[3]=r,n[4]=s):s=n[4];const i=s;let a;n[5]!==r?(a=()=>Re(r),n[5]=r,n[6]=a):a=n[6];const c=a;return U.useSyncExternalStore(i,c,c)}const zn=500;function Xo(e,t){const{phase:n}=Wn(e,t);return Hn(n!=="idle",zn)}function Xn(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function Zn(e,t){return m.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function Zo(e,t,n){const o=e.getQueryData(m.contentVersions(t));if(!o)return;if(Object.hasOwn(o,n))return o[n];const r=e.getQueryData(m.decofile(t));return r&&Object.hasOwn(r,n)?void 0:null}function Ct(e,t,n){e.setQueryData(m.contentVersions(t),o=>{const r={...o};for(const[s,i]of Object.entries(n))i===null?delete r[s]:r[s]=i;return r})}function eo(e,t){const n=e.getMutationCache().findAll({mutationKey:oe(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>on(o.state.variables)))}function be(e,t){e.resetQueries({queryKey:m.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function ee(e,t,n,o){try{return await o()}catch(r){const s=!(r instanceof T);throw t.source==="local"&&s?(be(e,n),new pt(r)):(t.source==="local"&&Se(r)&&be(e,n),r)}}const ae=new Map;function to(e,t,n,o){const r=ae.get(o);if(r)return r;const s=It(e,t,n,o,!0);return ae.set(o,s),s.finally(()=>ae.delete(o))}async function It(e,t,n,o,r){const s=m.decofile(o),i=Zn(n,t),a=m.contentRevision(o),c=e.getQueryData(s),l=e.getQueryData(i),d=e.getQueryData(a)??void 0,u=t.source==="github"&&!l?ct(e,n.orgSlug,n.virtualMcpId):void 0,h=u?.isV8&&u.schema&&u.version?u:void 0,b=l??h?.schema,g=h?{...d,schemaVersion:h.version}:d,k=r&&c?g?.revision:void 0,C=r&&b?g?.schemaVersion:void 0,R=m.contentChanges(o),N=e.getQueryData(R),[_,I,O]=await ee(e,t,n,()=>t.client.batch([{method:"blocks.list",params:k?{ifNoneMatch:k}:{}},{method:"schema.get",params:C?{ifNoneMatch:C}:{}},{method:"changes.list",params:N?{ifNoneMatch:N.revision}:{}}]));if(O?.ok){const x=he(N,O.result);x&&e.setQueryData(R,x)}else O&&t.source==="local"&&Se(O.error)&&be(e,n);if(!_?.ok)throw _?.error??new Error("no blocks.list");if(!I)throw new Error("no schema.get");const p=_.result,y=ut(I),S=I.ok&&!y?I.result:null;if(p.notModified&&!c||S?.notModified&&!b)return It(e,t,n,o,!1);const v=p.notModified?new Set:eo(e,n),$=p.notModified?c:nn(p.blocks,c,v),A=y?rn():S?S.notModified?b:S.schema:I.error,E=e.getQueryData(a)?.revision,D=E!==void 0&&E!==g?.revision;if(e.setQueryData(a,{revision:D?E:p.notModified?g?.revision:p.revision,schemaVersion:S?S.notModified?g?.schemaVersion:S.version??void 0:void 0}),e.setQueryData(s,$),!p.notModified){const x=m.contentVersions(o),M=e.getQueryData(x),J={...p.versions};for(const Q of v){const L=M?.[Q];L!==void 0?J[Q]=L:delete J[Q]}e.setQueryData(x,J)}return A instanceof T||e.setQueryData(i,A),!D&&!p.notModified&&c&&g?.revision&&p.revision!==g.revision&&Yn({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:$,meta:A}}async function er(e,t,n,o,r,s){return Jn({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",write:async()=>{const i=await ee(e,t,n,()=>t.client.blocksApply({set:r.set,delete:r.delete,...s?{ifMatch:s}:{}}));e.setQueryData(m.contentRevision(o),c=>({...c,revision:i.revision}));const a=i.versions??{};return Ct(e,o,a),{revision:i.revision,versions:a}}})}async function tr(e,t,n,o,r){await e.invalidateQueries({queryKey:m.decofile(o)});let s;try{const a=(await ee(e,t,n,()=>t.client.changesGet({names:[r]}))).entries[r];if(a&&a.after===null&&a.version!==null)return;s={value:a?.after??null,version:a?.version??null}}catch{const i=await ee(e,t,n,()=>t.client.blocksList({}));if(i.notModified)return;s={value:i.blocks[r]??null,version:i.versions[r]??null}}e.setQueryData(m.decofile(o),i=>{const a={...i};return s.value===null?delete a[r]:a[r]=s.value,a}),Ct(e,o,{[r]:s.version})}function nr(e){const t=P.c(11),n=q();let o;t[0]!==e?.branch||t[1]!==e?.orgSlug||t[2]!==e?.virtualMcpId?(o=m.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[0]=e?.branch,t[1]=e?.orgSlug,t[2]=e?.virtualMcpId,t[3]=o):o=t[3];let r;t[4]!==e||t[5]!==n?(r=async()=>{const c=await fetch(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`,{cache:"no-store",headers:ne("v8")});if(await Ce(c))throw Ie(n,e.orgSlug,e.virtualMcpId),new ke;if(!c.ok)throw new Error(`draft pointer read failed: ${c.status}`);return await c.json()},t[4]=e,t[5]=n,t[6]=r):r=t[6];const s=!!e;let i;t[7]!==o||t[8]!==r||t[9]!==s?(i={queryKey:o,queryFn:r,enabled:s,staleTime:Number.POSITIVE_INFINITY},t[7]=o,t[8]=r,t[9]=s,t[10]=i):i=t[10];const{data:a}=F(i);return!e||!a?.draft||!a.version?null:`${a.draft}@${a.version}`}function or(e){const t=P.c(4);let n;t[0]!==e?(n=m.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:no,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r?.revision}async function no(){throw new Error("content revisions are set by reads and writes")}function Je(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function oo(e,t){const n=P.c(6),{url:o}=ht(e?.virtualMcpId),r=ft(e?.virtualMcpId,e?.branch);if(!e)return"";let s;return n[0]!==r.cacheKeySuffix||n[1]!==r.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(s=r.kind==="protocol"?Je({...e,protocolSuffix:r.cacheKeySuffix}):Je({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=r.cacheKeySuffix,n[1]=r.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=s):s=n[5],s}function rr(e,t){const n=P.c(39),{url:o,undecided:r}=ht(e?.virtualMcpId),s=!!o,i=ft(e?.virtualMcpId,e?.branch),a=i.kind==="protocol"?i:null,c=oo(e),l=t?.fetchEnabled??!0,d=Mn(e?.virtualMcpId),u=We(e?.virtualMcpId).runtime==="cms",h=q();let b;n[0]!==c?(b=m.decofile(c),n[0]=c,n[1]=b):b=n[1];const g=b;let k;n[2]!==e||n[3]!==h||n[4]!==g?(k=()=>{if(!e||h.isMutating({mutationKey:oe(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const v=h.getQueryState(g);return v?.fetchStatus==="fetching"||Date.now()-(v?.dataUpdatedAt??0)<gt/2},n[2]=e,n[3]=h,n[4]=g,n[5]=k):k=n[5];let C;n[6]!==u||n[7]!==s||n[8]!==e||n[9]!==a||n[10]!==h||n[11]!==g?(C=async()=>{if(e){if(!a&&u&&!s){const v=Cn(h,e)?.version;if(v&&!await In(e,v))return}await h.refetchQueries({queryKey:g,exact:!0},{cancelRefetch:!1})}},n[6]=u,n[7]=s,n[8]=e,n[9]=a,n[10]=h,n[11]=g,n[12]=C):C=n[12];let R;n[13]!==k||n[14]!==C?(R={skip:k,read:C},n[13]=k,n[14]=C,n[15]=R):R=n[15],xn(!!t?.pollWhile&&!!e,R);let N;n[16]!==i.kind||n[17]!==u||n[18]!==l||n[19]!==c||n[20]!==s||n[21]!==o||n[22]!==d||n[23]!==e||n[24]!==a||n[25]!==h?(N=async()=>{if(a)return(await to(h,a,e,c)).blocks;if(i.kind==="unavailable")throw Xn("decofile");if(s){const E=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(io),D=E?.ok?Ge(await E.text()):null;if(D)return D;const x=new Error("decofile unavailable (local tunnel unreachable)");throw x.status=502,x}if(u)return Tn(h,e);const v=()=>Un(e,yn(d,".deco/blocks.gen.json"));if(l){const E=await fetch(Ln(e),{cache:"no-store"}).catch(so);if(E?.ok){const M=Ge(await E.text());if(M)return M}const D=await v();if(D.kind==="data")return D.data;const x=new Error(`Failed to fetch decofile: ${E?.status??"network error"}`);throw x.status=qe({liveOk:!!E?.ok,liveStatus:E?.status,committedAbsent:D.kind==="absent"}),x}const $=await v();if($.kind==="data")return $.data;const A=new Error("decofile unavailable (preview down, no committed snapshot)");throw A.status=qe({liveOk:!1,committedAbsent:$.kind==="absent"}),A},n[16]=i.kind,n[17]=u,n[18]=l,n[19]=c,n[20]=s,n[21]=o,n[22]=d,n[23]=e,n[24]=a,n[25]=h,n[26]=N):N=n[26];const _=!!e&&i.kind!=="pending"&&!r,I=a?0:3e4,O=a?.describe.pollIntervalMs,p=a?"always":void 0;let y;n[27]!==u||n[28]!==s||n[29]!==a?(y=(v,$)=>{if(a||u||s)return v<3;const A=$.status;return A!==502&&A!==404&&v<2},n[27]=u,n[28]=s,n[29]=a,n[30]=y):y=n[30];let S;return n[31]!==g||n[32]!==N||n[33]!==_||n[34]!==I||n[35]!==O||n[36]!==p||n[37]!==y?(S={queryKey:g,queryFn:N,enabled:_,staleTime:I,refetchInterval:O,refetchIntervalInBackground:!1,refetchOnWindowFocus:p,retry:y,retryDelay:ro},n[31]=g,n[32]=N,n[33]=_,n[34]=I,n[35]=O,n[36]=p,n[37]=y,n[38]=S):S=n[38],F(S)}function ro(e){return Vt(5e3,1e3,e,2,0)}function so(){return null}function io(){return null}const ao="site-editor-save",pe="site-editor-publish";function co(e){const t=P.c(7),{label:n,detail:o}=e;let r;t[0]!==n?(r=V.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=r):r=t[1];let s;t[2]!==o?(s=V.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=s):s=t[3];let i;return t[4]!==r||t[5]!==s?(i=V.jsxs("details",{className:"mt-1 text-xs",children:[r,s]}),t[4]=r,t[5]=s,t[6]=i):i=t[6],i}function Ot(e,t){return t?V.jsx(co,{label:e("siteEditor.details"),detail:t}):void 0}function sr(e,t,n){z.error(jn(e,t,n),{id:ao,description:Ot(e,Bn(t,n))})}const Tt={action:void 0,duration:void 0};function ir(e,t){z.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...Tt,id:pe,description:void 0})}function ar(e,{headline:t,body:n,detail:o,retry:r,pending:s,tone:i="error"}){const a=Ot(e,o??null);z[i](t,{id:pe,description:n&&a?V.jsxs(V.Fragment,{children:[V.jsx("p",{children:n}),a]}):n??a,action:r?{label:e("siteEditor.tryAgain"),onClick:c=>{c.preventDefault(),z.loading(s??e("thread.publishPopover.publishing"),{...Tt,id:pe,description:void 0}),r()}}:void 0,duration:r?Number.POSITIVE_INFINITY:void 0})}function cr(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{oe as $,Yt as A,zt as B,nt as C,Wt as D,co as E,Te as F,ye as G,Ho as H,Pn as I,rr as J,$o as K,Mo as L,Mn as M,yn as N,at as O,Fo as P,Lo as Q,H as R,Ro as S,it as T,Jo as U,Yo as V,or as W,Sn as X,Vo as Y,kn as Z,En as _,Po as a,er as a0,Zn as a1,to as a2,Xn as a3,Ko as a4,Un as a5,Ne as a6,qo as a7,tr as a8,sr as a9,zo as aa,Ao as ab,jo as ac,je as ad,Be as ae,Bo as af,xo as ag,An as ah,Uo as ai,Qo as aj,nr as ak,ne as al,pe as am,Tt as an,ar as ao,Go as ap,Zo as aq,Xt as b,ht as c,Ot as d,Do as e,cr as f,Eo as g,So as h,Gt as i,Jn as j,Ie as k,Wo as l,ko as m,Co as n,Se as o,To as p,Oo as q,_o as r,No as s,ir as t,ft as u,qt as v,oo as w,Wn as x,Io as y,Xo as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,b as w,f as T,r as v,j as y}from"./index-D8ycvvq3.js";import{C as E}from"./index-Bu_NA65U.js";import{B as P}from"./board-analytics-DsiHTlst.js";import{g as R}from"./task-route-BkEWCnOY.js";import{u as $}from"./use-task-board-analytics-DEcMU_Uq.js";import{C as H}from"./combobox-B-I_TDnB.js";import"./use-mobile-Dchzsgrl.js";import"./use-app-takeover-CUfPdIQ-.js";import"./sheet-C8W18YeS.js";import"./tooltip-DTDDImYK.js";import"./index-B6Pl30Jv.js";import"./use-project-native-view-presence-BbquxO36.js";import"./thread-route-BD60Whh-.js";import"./use-panel-navigate-BWVfSYSA.js";import"./use-project-scope-0YD7Iyyr.js";import"./repository-binding-qFnOG9Kf.js";import"./use-mcp-client-dq6ZHYKa.js";import"./auth-B_TJXS0n.js";import"./thread-intent-4EhNPevS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DtrLPzBE.js";import"./task-board-Cfi5K-5Q.js";import"./schema-pZcdx7db.js";import"./slugify-CEUa2lfQ.js";import"./use-file-configs-DtML887y.js";import"./use-organization-settings-ClryD4Tz.js";import"./site-slug-DebpOoQq.js";import"./agent-icon-7ADgtWCH.js";import"./AlertCircle-Dyzt7ROa.js";import"./Tool01-CtZDIoke.js";import"./ArrowUp-CtyeX35T.js";import"./ArrowLeft-CSHSzn3p.js";import"./LinkBroken01-CTkWPKKA.js";import"./ShoppingBag01-_i_0EGH-.js";import"./ZoomOut-Cg2E6Hn7.js";import"./Building02-DHk48jC7.js";import"./CheckCircle-COGqVxnk.js";import"./ChevronUp-iwpcZ6ZJ.js";import"./ChevronSelectorVertical-CLfFYLAx.js";import"./UserSquare-C0oVj3jP.js";import"./Copy01-C5MyX131.js";import"./CreditCard01-DbksZbCa.js";import"./DotsVertical-t_p3uDnk.js";import"./Image01-BmWIcz9g.js";import"./Globe04-CEKxgW4I.js";import"./SwitchHorizontal01-I9orqnhT.js";import"./Key01-flR1Rk0k.js";import"./Link01-NVZrbJ2z.js";import"./Monitor01-C_fHpJXT.js";import"./Sun-g_4y19bS.js";import"./Play-CYHvnoi_.js";import"./Plus-D-0eKLeG.js";import"./SearchMd-BZnFITM5.js";import"./Trash01-DXu_ke97.js";import"./Upload01-Cuxcfzt0.js";import"./User01-CpQvYpgF.js";import"./Users01-BOA9J6qJ.js";import"./XClose-DFzCGpgs.js";import"./toolbar-icon-button-CNY-x8q8.js";import"./shell-layout-C8-H8Sys.js";import"./avatar-D7EA7cl6.js";import"./use-clock-tick-Df5id_iA.js";import"./command-fxFZFBik.js";import"./index-C1k6bl66.js";import"./integration-icon-Ch0O_HoU.js";import"./project-icon-DDejaJkU.js";import"./new-project-dialog-D7zn8TAV.js";import"./label-Des1dBAA.js";import"./repository-import-picker-XvHhr-YM.js";import"./use-navigate-to-agent-CCmZPom4.js";import"./repository-picker-CDMQ-67j.js";import"./useInfiniteQuery-DvCuWsJ6.js";import"./infiniteQueryObserver-DgfIuRy-.js";import"./collection-search-BtAaADUJ.js";import"./use-debounced-value-BvQkjiEp.js";import"./required-auth-layout-BJdpNUyb.js";import"./autosend-D3NSq3DM.js";import"./use-org-sso-B0RTHGdW.js";import"./resizable-CKPf2Yhz.js";import"./icon-button-gjWtlNIn.js";import"./collection-tabs-BPMM9JU6.js";import"./badge-C0x7-j94.js";import"./time-range-picker-Ce2u-LAU.js";import"./popover-B5_Kaf1b.js";import"./scroll-area-tjZ1v8uh.js";import"./index-BdQq_4o_.js";import"./calendar-DppMF-oc.js";import"./analytics-sections-DCG-GatN.js";import"./chart-CUIMWuO7.js";import"./index-D8OSGl2O.js";import"./symbol-tqxB57V8.js";import"./CategoricalChart-nGEQlenm.js";import"./table-BdBcVCQf.js";import"./view-mode-toggle-xYGlwauP.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./config-HMBw-xwR.js";import"./core.esm-BWusCVk-.js";import"./BarChart-DrdN4reU.js";import"./tooltipContext-BwZiIrKr.js";import"./ActiveShapeUtils-CW3GN5MF.js";import"./Sector-DBqK3_lW.js";import"./ErrorBarContext-BPe_Kua_.js";import"./AreaChart-QVjqELIr.js";import"./XAxis-hQX8cIum.js";import"./task-key-BCHdFiOO.js";function qr(){const t=O.c(37),i=w();let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g={strict:!1},t[0]=g):g=t[0];const B=T(g),r=B.org??"",m=B.agentId,f=$(),[C,j]=v.useState(r),[o,S]=v.useState(r);r!==C&&(j(r),S(r));const p=!m&&(f.data?.isTaskBoardAdmin??!1);let e;t[1]!==i?(e=i("taskBoard.analytics.orgCurrent"),t[1]=i,t[2]=e):e=t[2];let a;t[3]!==r||t[4]!==e?(a={value:r,label:e},t[3]=r,t[4]=e,t[5]=a):a=t[5];let s;t[6]!==i?(s=i("taskBoard.analytics.orgAll"),t[6]=i,t[7]=s):s=t[7];let l;t[8]!==s?(l={value:"all",label:s},t[8]=s,t[9]=l):l=t[9];let u;if(t[10]!==f.data?.orgs||t[11]!==r||t[12]!==a||t[13]!==l){let d;t[15]!==r?(d=A=>A.slug!==r,t[15]=r,t[16]=d):d=t[16],u=[a,l,...(f.data?.orgs??[]).filter(d).map(I)],t[10]=f.data?.orgs,t[11]=r,t[12]=a,t[13]=l,t[14]=u}else u=t[14];const h=u;let k;t[17]!==o||t[18]!==r||t[19]!==m?(k=d=>R(r,{id:d,keySeq:null},m)+(o===r?"":`?boardOrg=${encodeURIComponent(o)}`),t[17]=o,t[18]=r,t[19]=m,t[20]=k):k=t[20];const b=o==="all"?void 0:k;let n;t[21]!==p||t[22]!==o||t[23]!==h||t[24]!==i?(n=p&&y.jsx(H,{options:h,value:o,onChange:S,width:"w-[220px]",searchPlaceholder:i("taskBoard.analytics.orgSearch"),emptyMessage:i("taskBoard.analytics.orgEmpty")}),t[21]=p,t[22]=o,t[23]=h,t[24]=i,t[25]=n):n=t[25];let c;t[26]!==o||t[27]!==r||t[28]!==i?(c=o!==r&&y.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:o==="all"?i("taskBoard.analytics.bannerAll"):i("taskBoard.analytics.bannerOrg",{org:o})}),t[26]=o,t[27]=r,t[28]=i,t[29]=c):c=t[29];let x;return t[30]!==p||t[31]!==o||t[32]!==m||t[33]!==b||t[34]!==n||t[35]!==c?(x=y.jsx(E.Content,{children:y.jsx(P,{org:o,project:m,taskHref:b,showTenants:p,actions:n,notice:c},o)}),t[30]=p,t[31]=o,t[32]=m,t[33]=b,t[34]=n,t[35]=c,t[36]=x):x=t[36],x}function I(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}export{qr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a2 as n,j as r,K as f}from"./index-D8ycvvq3.js";import{C as d}from"./index-Bu_NA65U.js";import{T as u}from"./index-BnmQwDAi.js";import{F as x}from"./feature-gate-BIEh1WBJ.js";import{m as h,P as j}from"./mock-board-DPnDRGqb.js";import"./use-mobile-Dchzsgrl.js";import"./use-app-takeover-CUfPdIQ-.js";import"./sheet-C8W18YeS.js";import"./tooltip-DTDDImYK.js";import"./index-B6Pl30Jv.js";import"./use-project-native-view-presence-BbquxO36.js";import"./thread-route-BD60Whh-.js";import"./use-panel-navigate-BWVfSYSA.js";import"./use-project-scope-0YD7Iyyr.js";import"./repository-binding-qFnOG9Kf.js";import"./use-mcp-client-dq6ZHYKa.js";import"./auth-B_TJXS0n.js";import"./thread-intent-4EhNPevS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DtrLPzBE.js";import"./task-board-Cfi5K-5Q.js";import"./schema-pZcdx7db.js";import"./slugify-CEUa2lfQ.js";import"./use-file-configs-DtML887y.js";import"./use-organization-settings-ClryD4Tz.js";import"./site-slug-DebpOoQq.js";import"./agent-icon-7ADgtWCH.js";import"./AlertCircle-Dyzt7ROa.js";import"./Tool01-CtZDIoke.js";import"./ArrowUp-CtyeX35T.js";import"./ArrowLeft-CSHSzn3p.js";import"./LinkBroken01-CTkWPKKA.js";import"./ShoppingBag01-_i_0EGH-.js";import"./ZoomOut-Cg2E6Hn7.js";import"./Building02-DHk48jC7.js";import"./CheckCircle-COGqVxnk.js";import"./ChevronUp-iwpcZ6ZJ.js";import"./ChevronSelectorVertical-CLfFYLAx.js";import"./UserSquare-C0oVj3jP.js";import"./Copy01-C5MyX131.js";import"./CreditCard01-DbksZbCa.js";import"./DotsVertical-t_p3uDnk.js";import"./Image01-BmWIcz9g.js";import"./Globe04-CEKxgW4I.js";import"./SwitchHorizontal01-I9orqnhT.js";import"./Key01-flR1Rk0k.js";import"./Link01-NVZrbJ2z.js";import"./Monitor01-C_fHpJXT.js";import"./Sun-g_4y19bS.js";import"./Play-CYHvnoi_.js";import"./Plus-D-0eKLeG.js";import"./SearchMd-BZnFITM5.js";import"./Trash01-DXu_ke97.js";import"./Upload01-Cuxcfzt0.js";import"./User01-CpQvYpgF.js";import"./Users01-BOA9J6qJ.js";import"./XClose-DFzCGpgs.js";import"./toolbar-icon-button-CNY-x8q8.js";import"./shell-layout-C8-H8Sys.js";import"./avatar-D7EA7cl6.js";import"./use-clock-tick-Df5id_iA.js";import"./command-fxFZFBik.js";import"./index-C1k6bl66.js";import"./integration-icon-Ch0O_HoU.js";import"./project-icon-DDejaJkU.js";import"./new-project-dialog-D7zn8TAV.js";import"./label-Des1dBAA.js";import"./repository-import-picker-XvHhr-YM.js";import"./use-navigate-to-agent-CCmZPom4.js";import"./repository-picker-CDMQ-67j.js";import"./useInfiniteQuery-DvCuWsJ6.js";import"./infiniteQueryObserver-DgfIuRy-.js";import"./collection-search-BtAaADUJ.js";import"./use-debounced-value-BvQkjiEp.js";import"./required-auth-layout-BJdpNUyb.js";import"./autosend-D3NSq3DM.js";import"./use-org-sso-B0RTHGdW.js";import"./resizable-CKPf2Yhz.js";import"./icon-button-gjWtlNIn.js";import"./core.esm-BWusCVk-.js";import"./sortable.esm-DR9w0kC7.js";import"./use-task-board-analytics-DEcMU_Uq.js";import"./combobox-B-I_TDnB.js";import"./popover-B5_Kaf1b.js";import"./usage-stats-CPLYge0E.js";import"./tool-namespace-B7nVIU6I.js";import"./form-DmfVlpti.js";import"./utils-CVEq3hMx.js";import"./markdown-Cy5TyQD8.js";import"./use-copy-CG9UgrVq.js";import"./location-BjlyegC2.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-CKkpfC9u.js";import"./chat-context-Dn145aEn.js";import"./use-ai-providers-Ba6tq6Kh.js";import"./use-chat-navigation-qWQesS8S.js";import"./suggestion-DD-4qLns.js";import"./column-rules-C7I4Rr8f.js";import"./badge-C0x7-j94.js";import"./switch-Dw8QMOfK.js";import"./textarea-CilvBHk6.js";import"./use-org-fs-C6PMtaVD.js";import"./use-automations-7PDgmLlN.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-DIkKdgX4.js";import"./use-task-board-items-DLL3oK5h.js";import"./use-task-board-events-IdeSpBWq.js";import"./use-members-nS--Jb3J.js";import"./use-org-auth-client-BV-99AzQ.js";import"./select-CsN8wWwy.js";import"./index-BdQq_4o_.js";import"./task-route-BkEWCnOY.js";import"./task-key-BCHdFiOO.js";import"./config-HMBw-xwR.js";import"./use-tags-Bh7-4eYV.js";import"./calendar-DppMF-oc.js";import"./alert-BVmkZ-E2.js";import"./collapsible-2qINC-s6.js";import"./index-Dtd9p8uT.js";import"./editor-classes-N-pDaC7c.js";import"./index-q27NKfUU.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-7lDD4r45.js";import"./use-connection-CxkpvOSK.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-xUmXvet8.js";import"./useSuspenseInfiniteQuery-7ax8yx2o.js";import"./pair-B9FUGmMH.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DYh0AbHr.js";import"./types-BRbHCiMu.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-U8IanBaN.js";import"./use-thread-outputs-C13KsPaH.js";import"./file-type-icon-C3Wvkdfs.js";import"./use-infinite-scroll-C7WJc185.js";import"./task-status-ttzVi7uo.js";import"./use-open-billing-url-CmAAUi88.js";import"./chat-draft-B11vfGsb.js";import"./separator-Dc8FPAxr.js";import"./feature-paywall-BUvad-6w.js";import"./plan-ladder-i59Z6bnV.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function or(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{or as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as R,a2 as A,r as w,dV as D,c as M,d as P,c3 as V,aL as _,d5 as T,aR as $,b_ as C}from"./index-D8ycvvq3.js";import{a as y,b as F,u as N}from"./thread-route-BD60Whh-.js";import{u as E}from"./use-panel-navigate-BWVfSYSA.js";import{A as h}from"./autosend-D3NSq3DM.js";let c=null;const b=new Set;function O(e){return b.add(e),()=>{b.delete(e)}}function S(e){if(c!==e){c=e;for(const s of b)s()}}function W(){S(null)}function Y(){const e=R({strict:!1}),s=E(),{org:o}=A(),r=y(),t=w.useSyncExternalStore(O,()=>c,()=>c),n=D(s)?.path??e.preview??e.skill??e.brand??null;if(!n)return c=null,null;const a=`${o.id}:${r??""}:${n}`;return a===t?null:{path:n,dismiss:()=>S(a)}}function q(){const e=M.c(12),s=P(),{org:o}=A(),r=y(),t=F(),n=N(),a=E();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={strict:!1},e[0]=d):d=e[0];const l=R(d);let u;e[1]!==a||e[2]!==s||e[3]!==o||e[4]!==n||e[5]!==l||e[6]!==t?(u=(v,g)=>{const i=a&&!V(a)?a:void 0,m=g?.virtualMcpId??t,I=_(o.id).id;if(m===I&&n===void 0&&i&&T(i).kind==="org-destination"){s({to:".",search:L=>({...L,thread:v,mainpanel:void 0,autosend:g?.autosend?h:void 0})});return}const k=m===t&&i&&T(i).kind!=="org-destination"?i:"overview",x=$({org:o.slug,agentId:m,superAgentId:I,tabId:k});C(s,x,{search:()=>({thread:v,...typeof l.sidepanel=="boolean"?{sidepanel:l.sidepanel}:{},...g?.autosend?{autosend:h}:{}}),replace:!1})},e[1]=a,e[2]=s,e[3]=o,e[4]=n,e[5]=l,e[6]=t,e[7]=u):u=e[7];const p=u;let f;return e[8]!==p||e[9]!==r||e[10]!==t?(f={virtualMcpId:t,taskId:r,navigateToTask:p},e[8]=p,e[9]=r,e[10]=t,e[11]=f):f=e[11],f}export{Y as a,W as c,q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DgfIuRy-.js";import{dp as i}from"./index-D8ycvvq3.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DgfIuRy-.js";import{dp as u,dD as n}from"./index-D8ycvvq3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as n,l as rt,B as tt,au as ut}from"./index-D8ycvvq3.js";import{D as ht,a2 as at,G as xt}from"./agent-icon-7ADgtWCH.js";import{L as gt}from"./label-Des1dBAA.js";import{S as lt}from"./scroll-area-tjZ1v8uh.js";import{S as bt}from"./switch-Dw8QMOfK.js";import{T as vt,c as yt,a as jt}from"./tooltip-DTDDImYK.js";import{V as Tt}from"./view-mode-toggle-xYGlwauP.js";import{aC as ct,aD as mt,aE as Nt,aF as _t,aG as kt,aH as U,aI as wt}from"./content-tab-uMsNTE0j.js";import"./AlertCircle-Dyzt7ROa.js";import"./Tool01-CtZDIoke.js";import"./ArrowUp-CtyeX35T.js";import"./ArrowLeft-CSHSzn3p.js";import"./LinkBroken01-CTkWPKKA.js";import"./ShoppingBag01-_i_0EGH-.js";import"./ZoomOut-Cg2E6Hn7.js";import"./Building02-DHk48jC7.js";import"./CheckCircle-COGqVxnk.js";import"./ChevronUp-iwpcZ6ZJ.js";import"./ChevronSelectorVertical-CLfFYLAx.js";import"./UserSquare-C0oVj3jP.js";import"./Copy01-C5MyX131.js";import"./CreditCard01-DbksZbCa.js";import"./DotsVertical-t_p3uDnk.js";import"./Image01-BmWIcz9g.js";import"./Globe04-CEKxgW4I.js";import"./SwitchHorizontal01-I9orqnhT.js";import"./Key01-flR1Rk0k.js";import"./Link01-NVZrbJ2z.js";import"./Monitor01-C_fHpJXT.js";import"./Sun-g_4y19bS.js";import"./Play-CYHvnoi_.js";import"./Plus-D-0eKLeG.js";import"./SearchMd-BZnFITM5.js";import"./Trash01-DXu_ke97.js";import"./Upload01-Cuxcfzt0.js";import"./User01-CpQvYpgF.js";import"./Users01-BOA9J6qJ.js";import"./XClose-DFzCGpgs.js";import"./index-BdQq_4o_.js";import"./index-B6Pl30Jv.js";import"./use-organization-settings-ClryD4Tz.js";import"./schema-pZcdx7db.js";import"./task-board-Cfi5K-5Q.js";import"./chat-context-Dn145aEn.js";import"./use-panel-navigate-BWVfSYSA.js";import"./thread-route-BD60Whh-.js";import"./use-project-scope-0YD7Iyyr.js";import"./repository-binding-qFnOG9Kf.js";import"./use-mcp-client-dq6ZHYKa.js";import"./auth-B_TJXS0n.js";import"./autosend-D3NSq3DM.js";import"./thread-intent-4EhNPevS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DtrLPzBE.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CKkpfC9u.js";import"./use-ai-providers-Ba6tq6Kh.js";import"./use-chat-navigation-qWQesS8S.js";import"./location-BjlyegC2.js";import"./alert-dialog-_s7hqvJ_.js";import"./site-editor-toast-Gyi24WTd.js";import"./input-CNWKZHOn.js";import"./usage-stats-CPLYge0E.js";import"./tool-namespace-B7nVIU6I.js";import"./form-DmfVlpti.js";import"./utils-CVEq3hMx.js";import"./markdown-Cy5TyQD8.js";import"./use-copy-CG9UgrVq.js";import"./use-mobile-Dchzsgrl.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./icon-button-gjWtlNIn.js";import"./file-type-icon-C3Wvkdfs.js";import"./shell-layout-C8-H8Sys.js";import"./avatar-D7EA7cl6.js";import"./use-clock-tick-Df5id_iA.js";import"./command-fxFZFBik.js";import"./index-C1k6bl66.js";import"./integration-icon-Ch0O_HoU.js";import"./project-icon-DDejaJkU.js";import"./new-project-dialog-D7zn8TAV.js";import"./repository-import-picker-XvHhr-YM.js";import"./use-navigate-to-agent-CCmZPom4.js";import"./repository-picker-CDMQ-67j.js";import"./useInfiniteQuery-DvCuWsJ6.js";import"./infiniteQueryObserver-DgfIuRy-.js";import"./collection-search-BtAaADUJ.js";import"./use-debounced-value-BvQkjiEp.js";import"./required-auth-layout-BJdpNUyb.js";import"./use-org-sso-B0RTHGdW.js";import"./chat-draft-B11vfGsb.js";import"./select-CsN8wWwy.js";import"./tabs-DpA6UCpp.js";import"./use-deco-credits-CiBA1j3q.js";import"./toggle-group-CehyBfy_.js";import"./use-open-billing-url-CmAAUi88.js";import"./index-CuAR9UE_.js";import"./checkbox-DEL-ITP4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-B5_Kaf1b.js";import"./drawer-Pd2bkZwX.js";import"./input-DrsB_G6y.js";import"./suggestion-DD-4qLns.js";import"./use-project-native-view-presence-BbquxO36.js";import"./use-file-configs-DtML887y.js";import"./site-slug-DebpOoQq.js";import"./use-mcp-prompts-U8IanBaN.js";import"./use-org-fs-C6PMtaVD.js";import"./question-004-sINsf4GQ.js";import"./use-members-nS--Jb3J.js";import"./use-org-auth-client-BV-99AzQ.js";import"./feature-paywall-BUvad-6w.js";import"./plan-ladder-i59Z6bnV.js";import"./add-connection-dialog-wdvNwZIH.js";import"./extract-connection-data-47aQZG-0.js";import"./metadata-D72DunRR.js";import"./connection-Bm1YN2Qv.js";import"./url-slug-CvdbhkuL.js";import"./connection-card-VZyTjeL7.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CilvBHk6.js";import"./use-connection-CxkpvOSK.js";import"./schema-CB0y_kWu.js";import"./connection-form-helpers-B8gc-NIa.js";import"./authenticate-and-persist-oauth-UdSc08ls.js";import"./mcp-oauth-CEdQ8awJ.js";import"./mcp-oauth-C7679P97.js";import"./collection-tabs-BPMM9JU6.js";import"./badge-C0x7-j94.js";import"./use-infinite-scroll-C7WJc185.js";import"./useSuspenseInfiniteQuery-7ax8yx2o.js";import"./use-task-board-events-IdeSpBWq.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-B6dBwzj-.js";import"./index-Kv7T-lWA.js";import"./pair-B9FUGmMH.js";import"./collapsible-2qINC-s6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DYh0AbHr.js";import"./types-BRbHCiMu.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-C8W18YeS.js";import"./use-thread-outputs-C13KsPaH.js";import"./sandbox-git-api-CRxdlhrN.js";import"./blocks-tab-states-DWDFGWKG.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./secret-ciphertext-BAOlyGdC.js";import"./alert-BVmkZ-E2.js";import"./monaco-editor-BOWGtFnb.js";import"./editor-fmwfQ_5F.js";import"./calendar-DppMF-oc.js";import"./editor-classes-N-pDaC7c.js";import"./core.esm-BWusCVk-.js";import"./sortable.esm-DR9w0kC7.js";import"./combobox-B-I_TDnB.js";import"./search-input-iNzELQG5.js";import"./asset-utils-gDGUDBoj.js";import"./empty-state-BSt_DXl_.js";import"./mustache-DF__kc82.js";import"./sandbox-lifecycle-context-qVQZp0bf.js";import"./empty-state-BKri0rqp.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Dt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Lt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Lt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Rt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Rt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Dt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(jt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(vt,{asChild:!0,children:n.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function sn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=n.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const D=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==D||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[D," ",M]}),t[28]=D,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let L;t[36]!==p||t[37]!==l||t[38]!==o?(L=p>0&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=L):L=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(xt,{}),t[45]=F):F=t[45];let R;t[46]!==o?(R=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=R):R=t[47];let O;t[48]!==R?(O={value:"timeline",icon:F,label:R},t[48]=R,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==L||t[57]!==H?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[L,H]}),t[56]=L,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=n.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+it)+8;return n.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return n.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:n.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=n.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=n.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=n.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&n.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:n.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,L]=w,B=dt(s,j),V=L[0]?.blockLabel??j;return n.jsxs("div",{children:[n.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),L.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const R=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=R)return null;const P=h(new Date(R)),H=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let D;t[16]!==k||t[17]!==C||t[18]!==$?(D=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=D):D=t[19];let M;return t[20]!==b||t[21]!==D?(M=n.jsx(b,{className:E,children:D}),t[20]=b,t[21]=D,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{sn as VariantCalendar};
|