decocms 4.582.0 → 4.583.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-D-4TK36c.js → AlertCircle-BfuEGc37.js} +1 -1
- package/dist/client/assets/{AreaChart-CkFdSy1i.js → AreaChart-DR454FhG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B34wRVvp.js → ArrowLeft-Ccyza8AK.js} +1 -1
- package/dist/client/assets/ArrowRight-BfJPk4p9.js +1 -0
- package/dist/client/assets/{ArrowUp-Cf_Jm-4W.js → ArrowUp-Cfwuhrfj.js} +1 -1
- package/dist/client/assets/{BookOpen01-Cu2i97yZ.js → BookOpen01-vaPiqXWZ.js} +1 -1
- package/dist/client/assets/{CartesianChart-gyi9lPG0.js → CartesianChart-Vg3-F_Bi.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DplIvctj.js → CategoricalChart-gtbFaKuM.js} +1 -1
- package/dist/client/assets/{CheckCircle-D-W30b_A.js → CheckCircle-WpYwhp7A.js} +1 -1
- package/dist/client/assets/ChevronDown-Kpzb5_P-.js +1 -0
- package/dist/client/assets/{ChevronSelectorVertical-BORaKUYt.js → ChevronSelectorVertical-DNPn4Jhl.js} +1 -1
- package/dist/client/assets/ChevronUp-CwLphDxo.js +1 -0
- package/dist/client/assets/{CreditCard01-C2QL2326.js → CreditCard01-CDUEuZ6_.js} +1 -1
- package/dist/client/assets/Eye-BeTcpGN-.js +1 -0
- package/dist/client/assets/File02-D8jC2XAm.js +1 -0
- package/dist/client/assets/{Globe04-dU-sELuJ.js → Globe04-CM5K7y4B.js} +1 -1
- package/dist/client/assets/Image01-0Jwady1a.js +1 -0
- package/dist/client/assets/{Key01-zay6mYZz.js → Key01-Dqvoolzt.js} +1 -1
- package/dist/client/assets/LayoutLeft-Nn_BPz0l.js +1 -0
- package/dist/client/assets/LinkBroken01-6J7zZ1XX.js +1 -0
- package/dist/client/assets/Minimize01-Dylk6LHz.js +1 -0
- package/dist/client/assets/{Minus-BikCplhC.js → Minus-BFZz-RWg.js} +1 -1
- package/dist/client/assets/{Monitor01-DLndo6aP.js → Monitor01-ZIydqkip.js} +1 -1
- package/dist/client/assets/{Play-D_FIXuay.js → Play-CkrBckKV.js} +1 -1
- package/dist/client/assets/{Plus-D2V2-fTF.js → Plus-C8Idvwpa.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BHHh91iS.js → ReferenceLine-2ZGA3m5C.js} +1 -1
- package/dist/client/assets/{SearchMd-DUXCcvZJ.js → SearchMd-G9SUUXxg.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Dak2svm7.js → ShoppingBag01-sbzM0fY9.js} +1 -1
- package/dist/client/assets/{Sun-BFXO9tQN.js → Sun-Bvg5JrAI.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-2Pb5aRtq.js → SwitchHorizontal01-BbD-SqO6.js} +1 -1
- package/dist/client/assets/Tool01-DOjdBvJ6.js +1 -0
- package/dist/client/assets/{Tooltip-D91NYjQw.js → Tooltip-buu7_uLC.js} +1 -1
- package/dist/client/assets/{Trash01-Bu2u0WVA.js → Trash01-BRIjyxCC.js} +1 -1
- package/dist/client/assets/TrendUp01-DLgSqdSd.js +1 -0
- package/dist/client/assets/{Upload01-mgXAmijc.js → Upload01-Dd-OapHB.js} +1 -1
- package/dist/client/assets/UserCheck01-DVOI9Qq6.js +1 -0
- package/dist/client/assets/{UserSquare-DE5Uc7_R.js → UserSquare-CRBGeews.js} +1 -1
- package/dist/client/assets/{Users01-C3CmvyvK.js → Users01-bZ_S-kH7.js} +1 -1
- package/dist/client/assets/{XClose-l5OHkJlr.js → XClose-CWGS9q3D.js} +1 -1
- package/dist/client/assets/{Zap-DN6rNQ1C.js → Zap-BxaAY56U.js} +1 -1
- package/dist/client/assets/{access-gate-CLxhnjg9.js → access-gate-BpukTmFQ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-ZYFX175e.js → add-connection-dialog-BfsrivZp.js} +1 -1
- package/dist/client/assets/agent-app-ZmiqpLI8.js +1 -0
- package/dist/client/assets/agent-assets-CxDlSc-F.js +1 -0
- package/dist/client/assets/agent-automation-Cvq2MsBo.js +20 -0
- package/dist/client/assets/agent-automations-DqPMEPTu.js +1 -0
- package/dist/client/assets/agent-blog-CBUzxo-R.js +2 -0
- package/dist/client/assets/agent-blog-post-Bi0pzlIG.js +2 -0
- package/dist/client/assets/agent-calendar-D817wzif.js +1 -0
- package/dist/client/assets/{agent-capabilities-DWTuevMP.js → agent-capabilities-COfZW6Pr.js} +1 -1
- package/dist/client/assets/agent-connect-sources-DEAtqQDn.js +1 -0
- package/dist/client/assets/agent-deck-DLJ_JEHY.js +1 -0
- package/dist/client/assets/agent-e2e-B_mxpyua.js +1 -0
- package/dist/client/assets/agent-experiments-CC4vS2Ak.js +1 -0
- package/dist/client/assets/agent-file-DaY3pEIy.js +1 -0
- package/dist/client/assets/agent-hosting-CNynwqai.js +1 -0
- package/dist/client/assets/agent-icon-DE4TWlDl.js +1 -0
- package/dist/client/assets/agent-library-53yJ_N0C.js +1 -0
- package/dist/client/assets/agent-library-file-CmdRdcgJ.js +1 -0
- package/dist/client/assets/agent-overview-Bjahi54k.js +1 -0
- package/dist/client/assets/agent-releases-De-C-EMX.js +2 -0
- package/dist/client/assets/agent-settings-Bmfo6yEF.js +1 -0
- package/dist/client/assets/{agent-site-editor-LnCUJUlb.js → agent-site-editor-B5E5lU9u.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-BzQzaZAE.js +2 -0
- package/dist/client/assets/agent-site-editor-content-D03NaTwn.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-wStmeJD1.js +1 -0
- package/dist/client/assets/agent-view-Dh2W4gDj.js +1 -0
- package/dist/client/assets/agent-view-guard-25E2XJRr.js +1 -0
- package/dist/client/assets/ai-providers-E4UhWu6J.js +1 -0
- package/dist/client/assets/{alert-I1_CrCmh.js → alert-GV95Dsn9.js} +1 -1
- package/dist/client/assets/analytics-sections-C9-8NbQC.js +1 -0
- package/dist/client/assets/api-keys-BU9wHAPs.js +1 -0
- package/dist/client/assets/api-keys-C8ArQ5p_.js +1 -0
- package/dist/client/assets/app-editor-kEra9PRa.js +1 -0
- package/dist/client/assets/{asset-utils-B-KuVMuY.js → asset-utils-DWvcPbEZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-DXrxcWBf.js → auth-catchall-Dy37bIqg.js} +1 -1
- package/dist/client/assets/{auth-entry-NtnP78Ol.js → auth-entry-BHlmJEBv.js} +1 -1
- package/dist/client/assets/{auth-Dh-2aYdX.js → auth-gL3R1YGn.js} +1 -1
- package/dist/client/assets/{auth-split-layout-FNYje5VL.js → auth-split-layout-ckQyQHcL.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DOEkiQ_u.js → authenticate-and-persist-oauth-C7oT67KU.js} +1 -1
- package/dist/client/assets/automation-list-row-DriFJJzl.js +1 -0
- package/dist/client/assets/{automation-runs-C2quHBYd.js → automation-runs-C37do2Pw.js} +1 -1
- package/dist/client/assets/automations-tDs_UhVP.js +1 -0
- package/dist/client/assets/{badge-BGmWPELn.js → badge-BG-k6t3T.js} +1 -1
- package/dist/client/assets/{block-document-CuBMSVVn.js → block-document-pPtike34.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-MbfgZRXf.js → blocks-preview-workspace-context-BBjk2tme.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DdvH_zgH.js → blocks-tab-states-GP0NCNYs.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BoKhflQE.js → blog-preview-url-CwSXxQWr.js} +1 -1
- package/dist/client/assets/blog-schema-DOB707mb.js +1 -0
- package/dist/client/assets/{blog-source-gate-ChrbmkH2.js → blog-source-gate-3rG_0gJI.js} +1 -1
- package/dist/client/assets/blog-view-gate-Be4DtolQ.js +1 -0
- package/dist/client/assets/buckets-BZrhNTRn.js +1 -0
- package/dist/client/assets/{build-improve-prompt-doc-ZkNhFh73.js → build-improve-prompt-doc-DVbQXrhG.js} +1 -1
- package/dist/client/assets/calendar-CcuaFZRF.js +1 -0
- package/dist/client/assets/{capability-load-error-CmORVXZR.js → capability-load-error-Bcs21XUc.js} +1 -1
- package/dist/client/assets/category-editor-CnJqxifY.js +1 -0
- package/dist/client/assets/{category-tree-ArvPlYX5.js → category-tree-D2ejZxYL.js} +1 -1
- package/dist/client/assets/{chart-q3aX-DjJ.js → chart-B2B-jcI-.js} +1 -1
- package/dist/client/assets/chat-context-CiT7AzBS.js +43 -0
- package/dist/client/assets/{chat-draft-BsgbOfj3.js → chat-draft-BNZV2YjB.js} +1 -1
- package/dist/client/assets/{checkbox-JFndFNuZ.js → checkbox-DSC8VbDf.js} +1 -1
- package/dist/client/assets/choose-editor-uAW7DjQg.js +1 -0
- package/dist/client/assets/{cli-auth-success-CTMmXIbK.js → cli-auth-success-B897Xynp.js} +1 -1
- package/dist/client/assets/cms-settings-editor-B4pAxgqZ.js +1 -0
- package/dist/client/assets/{cms-store-drafts-Cp0f_S-1.js → cms-store-drafts-CtClpzKs.js} +1 -1
- package/dist/client/assets/{collapsible-B4lmmxiu.js → collapsible-DrV9qsGN.js} +1 -1
- package/dist/client/assets/collection-detail-DucMHrT0.js +1 -0
- package/dist/client/assets/{collection-display-button-L-gJFCO8.js → collection-display-button-BHyM7wC2.js} +1 -1
- package/dist/client/assets/{collection-search-j-a5PWZI.js → collection-search-BbCHAL7t.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BbdjpVWW.js → collection-table-wrapper-BlLHObjj.js} +1 -1
- package/dist/client/assets/{collection-tabs-DHj6Urx3.js → collection-tabs-BXeEDC1Y.js} +1 -1
- package/dist/client/assets/{combobox-CBPCAqF_.js → combobox-DugO3-8Q.js} +1 -1
- package/dist/client/assets/{command-DCUf4RGf.js → command-Bo6EGcaE.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C-0h9QLB.js → companion-mcps-section-CsXLIG2Z.js} +1 -1
- package/dist/client/assets/config-CdVwRL_a.js +1 -0
- package/dist/client/assets/{client-icons-CvP_xTjP.js → connect-key--cfk-fLm.js} +1 -1
- package/dist/client/assets/{connect-layout-BiGf7x_Q.js → connect-layout-BPppRISp.js} +1 -1
- package/dist/client/assets/connect-lufub1FU.js +9 -0
- package/dist/client/assets/{connect-source-dialog-C9cU78Fo.js → connect-source-dialog-CfsFTEbG.js} +1 -1
- package/dist/client/assets/{connection-CG7u8AbM.js → connection-BLQs5hMz.js} +1 -1
- package/dist/client/assets/{connection-card-C5XxA3Cv.js → connection-card-vLs08dR6.js} +1 -1
- package/dist/client/assets/connection-detail-CLkPYY1x.js +1 -0
- package/dist/client/assets/{connection-form-helpers-B2Vjms_B.js → connection-form-helpers-BSIh8Ep0.js} +1 -1
- package/dist/client/assets/connection-slug-CmPPcsjf.js +1 -0
- package/dist/client/assets/connections-C4ZbA0RY.js +1 -0
- package/dist/client/assets/{content-tab-Ct80gvFF.js → content-tab-C-pzFX10.js} +4 -4
- package/dist/client/assets/context-3bSluoDN.js +1 -0
- package/dist/client/assets/{context-menu-B7ywEyjT.js → context-menu-CzIORBDb.js} +1 -1
- package/dist/client/assets/{context-shell-C6vXZZrB.js → context-shell-3lL8N_R5.js} +4 -4
- package/dist/client/assets/{create-organization-dialog-CfD4gWck.js → create-organization-dialog-k086v-9Q.js} +1 -1
- package/dist/client/assets/daily-pulse-P6H0d8QI.js +1 -0
- package/dist/client/assets/{delete-copy-CPJVDDbB.js → delete-copy-BQaedVkX.js} +1 -1
- package/dist/client/assets/{device-hint-CwVsFX34.js → device-hint-CvnqGHIy.js} +1 -1
- package/dist/client/assets/discover-qzwfuJLu.js +1 -0
- package/dist/client/assets/{domain-settings-Dgpsy8Ru.js → domain-settings-y3u2iu2W.js} +1 -1
- package/dist/client/assets/{drawer-DRyRdlMw.js → drawer-CarQd6Jb.js} +1 -1
- package/dist/client/assets/{editor-FceeQfS7.js → editor-DYk_2MJQ.js} +1 -1
- package/dist/client/assets/{editor-classes-D9FopdtJ.js → editor-classes-DVIoQu74.js} +1 -1
- package/dist/client/assets/{empty-message-ILKuHEfQ.js → empty-message-C90DlePv.js} +1 -1
- package/dist/client/assets/{empty-state-BmCMJHsS.js → empty-state-B67nwURy.js} +1 -1
- package/dist/client/assets/{empty-state-GIO1CyUk.js → empty-state-XAK3RjVy.js} +1 -1
- package/dist/client/assets/experiments-tab-choice-D8ZqCESL.js +1 -0
- package/dist/client/assets/{extract-connection-data-BKW6jN3t.js → extract-connection-data-D6CjTXbp.js} +1 -1
- package/dist/client/assets/feature-gate-CCvZeJRu.js +1 -0
- package/dist/client/assets/{feature-paywall-DrXSdvNQ.js → feature-paywall-DzmzZ5s3.js} +1 -1
- package/dist/client/assets/file-explorer-BqxAkXtr.js +2 -0
- package/dist/client/assets/{file-preview-mmsBTOqH.js → file-preview-C0yEEExh.js} +1 -1
- package/dist/client/assets/file-share-button-CowSSkLB.js +3 -0
- package/dist/client/assets/{file-type-icon-CLz3IVP9.js → file-type-icon-CEP8k4gh.js} +1 -1
- package/dist/client/assets/folder-icon-CmtFeppJ.js +1 -0
- package/dist/client/assets/{form-B_7ux469.js → form-8GAe5FIZ.js} +1 -1
- package/dist/client/assets/{frame-navigation-BFx5wDUC.js → frame-navigation-BpI5RQJq.js} +1 -1
- package/dist/client/assets/gateway-client-BqPME1T5.js +1 -0
- package/dist/client/assets/general-DbhKzHt5.js +1 -0
- package/dist/client/assets/{github-icon-1x8ZI6aO.js → github-icon-BH4kK9If.js} +1 -1
- package/dist/client/assets/{held-block-view-CwWI05W1.js → held-block-view-MI6LUwjK.js} +3 -3
- package/dist/client/assets/home-_NmLJi-9.js +1 -0
- package/dist/client/assets/home-overview-CTEEkh3w.js +1 -0
- package/dist/client/assets/{hosted-reconcile-J9x487tr.js → hosted-reconcile-BbIfIwl1.js} +1 -1
- package/dist/client/assets/{icon-button-DoWTRkdN.js → icon-button-Dd8gTd4-.js} +1 -1
- package/dist/client/assets/index-B-OtHlgY.js +4 -0
- package/dist/client/assets/{index-CITQS6NN.js → index-BRHz7VD8.js} +1 -1
- package/dist/client/assets/{index-BWer9hfc.js → index-BY10zRfl.js} +1 -1
- package/dist/client/assets/index-B_-z8Lrt.js +1 -0
- package/dist/client/assets/{index-CFoO-AVG.js → index-C17JTAPe.js} +2 -2
- package/dist/client/assets/{index-249EXZ6B.js → index-CADsC-mK.js} +2 -2
- package/dist/client/assets/{index-rmNLmONI.js → index-CYjM_f4V.js} +1 -1
- package/dist/client/assets/{index-BcW9W_hK.js → index-CZQ-Wgjf.js} +1 -1
- package/dist/client/assets/{index-D9wygnbU.js → index-CwntHk8S.js} +13 -13
- package/dist/client/assets/index-DClpdtOI.js +1 -0
- package/dist/client/assets/{index-3FmhyOXc.js → index-DEOQXzn-.js} +1 -1
- package/dist/client/assets/{index-BW4kEj0q.js → index-DIHnNoyA.js} +1 -1
- package/dist/client/assets/{index-DpIy5MwJ.js → index-DPCC7KEx.js} +1 -1
- package/dist/client/assets/{index-OqiiY1Yn.js → index-Dez-6rcd.js} +1 -1
- package/dist/client/assets/index-Dkr4Q9bE.js +1 -0
- package/dist/client/assets/{index-mxlRzmxc.js → index-Do3hK3is.js} +1 -1
- package/dist/client/assets/{index-B-Ig6PCZ.js → index-km18CQ4q.js} +1 -1
- package/dist/client/assets/index-pbgcO64n.css +1 -0
- package/dist/client/assets/{index-redirect-CJIC9mkE.js → index-redirect-CTR6WNPG.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-oJohchTM.js → infiniteQueryObserver-DdeQTeaz.js} +1 -1
- package/dist/client/assets/infra-billing-tXzfTwHJ.js +1 -0
- package/dist/client/assets/input-CxFJosPu.js +17 -0
- package/dist/client/assets/{input-BKW9wk8M.js → input-DXyNd1dE.js} +1 -1
- package/dist/client/assets/{integration-icon-BPaLmZuD.js → integration-icon-BCAGJ22m.js} +1 -1
- package/dist/client/assets/item-actions-B4f3ZYnI.js +1 -0
- package/dist/client/assets/{jira-icon-DjiAFXC-.js → jira-icon-B0PrtQPW.js} +1 -1
- package/dist/client/assets/{label-CzgbmbQw.js → label-BFX3DXnu.js} +1 -1
- package/dist/client/assets/{layout-CUqOdrCT.js → layout-GEd6141D.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-D_Hj5ND0.js → legacy-admin-welcome-dialog-CjbAHNU0.js} +1 -1
- package/dist/client/assets/legacy-agents-deep-BRMRDtxS.js +1 -0
- package/dist/client/assets/{legacy-main-redirect-DS2vLtmG.js → legacy-main-redirect-Cpcnm12P.js} +1 -1
- package/dist/client/assets/library-GlSV21no.js +1 -0
- package/dist/client/assets/{library-tab-CH65a0_i.js → library-tab-DiZQg1qQ.js} +2 -2
- package/dist/client/assets/{login-BB30sN9A.js → login-DUNIcOhP.js} +1 -1
- package/dist/client/assets/{markdown-Ck8Lzm4U.js → markdown-sWsq0zMA.js} +5 -5
- package/dist/client/assets/{mcp-app-renderer-Bo8RWBFo.js → mcp-app-renderer-DSMzeo3v.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D2OwpRg0.js → mcp-oauth-Cal4irlG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3agwb6e9.js → mcp-oauth-DFWIYz5V.js} +1 -1
- package/dist/client/assets/members-D9DcuyAK.js +1 -0
- package/dist/client/assets/memory-DYN3365K.js +7 -0
- package/dist/client/assets/mock-board-llSJ1DSL.js +10 -0
- package/dist/client/assets/{monaco-editor-Dfffv6IO.js → monaco-editor-4_N5zBDQ.js} +1 -1
- package/dist/client/assets/{monitoring-CHShsrek.js → monitoring-5YgUKCBd.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-D7LX-cE_.js → monitoring-stats-row-BCaHkQz9.js} +1 -1
- package/dist/client/assets/multi-select-B4K-daTY.js +1 -0
- package/dist/client/assets/{mustache-DTIKPLCX.js → mustache-B8t03rZ4.js} +1 -1
- package/dist/client/assets/{named-rule-step-DvAWHM_a.js → named-rule-step-P0BFUtVs.js} +1 -1
- package/dist/client/assets/named-rule-view-CvRYAekO.js +1 -0
- package/dist/client/assets/new-project-dialog-DI67z-Vr.js +1 -0
- package/dist/client/assets/new-project-store-DoliA5Iq.js +1 -0
- package/dist/client/assets/{oauth-callback-BAHxkyHL.js → oauth-callback-DtdbhW3N.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-0HSc9az8.js → oauth-callback-ai-provider-iNwVQAC1.js} +1 -1
- package/dist/client/assets/{oauth-consent-B6XJ_dp8.js → oauth-consent-Co0jE424.js} +1 -1
- package/dist/client/assets/{onboarding-CpC02gHH.js → onboarding-Dn4ndntc.js} +1 -1
- package/dist/client/assets/openai-conversation-D43N7JcR.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-DEmaeFuw.js → optimistic-project-sidebar-views-PUKP14F8.js} +1 -1
- package/dist/client/assets/order-monitor-day-fHekYy64.js +1 -0
- package/dist/client/assets/{organization-choice-DJG3VWvN.js → organization-choice-Ctd80SL2.js} +1 -1
- package/dist/client/assets/orgs-BQeWnD4l.js +1 -0
- package/dist/client/assets/own-accounts-section-CwzdBIu0.js +1 -0
- package/dist/client/assets/pair-Du2wOAPA.js +48 -0
- package/dist/client/assets/{parse-sections-C45nXdFm.js → parse-sections-DUEfhNb0.js} +4 -4
- package/dist/client/assets/plan-BDh0er6r.js +1 -0
- package/dist/client/assets/{plan-ladder-ClYEg_1y.js → plan-ladder-cJHOFEt_.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DmepxGNe.js → plan-usage-card-DnCWaNBs.js} +1 -1
- package/dist/client/assets/{popover-DbdL41A-.js → popover-XZWwzjJe.js} +1 -1
- package/dist/client/assets/post-calendar-Cq2VElZ4.js +1 -0
- package/dist/client/assets/{post-editor-CVR7WxMp.js → post-editor-ChZHYnmE.js} +2 -2
- package/dist/client/assets/preview-content-Ct9U0F_F.js +1 -0
- package/dist/client/assets/{preview-dialog-CAVf21hW.js → preview-dialog-BlN_MeAY.js} +1 -1
- package/dist/client/assets/{preview-panel-DcRdLvZD.js → preview-panel-CMaIBxrS.js} +1 -1
- package/dist/client/assets/preview-tab-rp6yyGU1.js +557 -0
- package/dist/client/assets/product-picker-dialog-Cp5iroCv.js +1 -0
- package/dist/client/assets/profile-BvhSJiAV.js +1 -0
- package/dist/client/assets/project-app-view-BPtWGCfo.js +1 -0
- package/dist/client/assets/project-apps-CDSLxQ6C.js +1 -0
- package/dist/client/assets/{project-icon-D3VravgB.js → project-icon-C_Qws_Ah.js} +1 -1
- package/dist/client/assets/{project-index-CZL_Bcej.js → project-index-dmu51Z_5.js} +1 -1
- package/dist/client/assets/project-reports-BVUPVqwF.js +1 -0
- package/dist/client/assets/project-tasks-i5QwXcB1.js +1 -0
- package/dist/client/assets/projects-9cB_xTYP.js +1 -0
- package/dist/client/assets/{projects-empty-state-ChOzUybQ.js → projects-empty-state-ZoaV8gjs.js} +1 -1
- package/dist/client/assets/{prompts-Cs8yzamL.js → prompts-DfPwtsSz.js} +1 -1
- package/dist/client/assets/record-editor-BQX3fl3B.js +1 -0
- package/dist/client/assets/redirect-editor-DmgDoBZW.js +1 -0
- package/dist/client/assets/{reports-DDPJwQn7.js → reports-B7Mq5ojT.js} +1 -1
- package/dist/client/assets/reports-Dmcxcdt8.js +1 -0
- package/dist/client/assets/reports-onboarding-DnVjGniS.js +1 -0
- package/dist/client/assets/reports-tab-D7WrLBuD.js +2 -0
- package/dist/client/assets/repositories-B6qJORdw.js +1 -0
- package/dist/client/assets/repositories-CKo-J8oc.js +1 -0
- package/dist/client/assets/{repository-binding-C2KfYomQ.js → repository-binding-Cqb4hBI0.js} +1 -1
- package/dist/client/assets/{repository-picker-BQc3OAcG.js → repository-picker-B967M4cj.js} +1 -1
- package/dist/client/assets/{require-capability-BQcAZUwY.js → require-capability-CnRgBqvn.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BszE36jh.js → required-auth-layout-DwZV69de.js} +1 -1
- package/dist/client/assets/{reset-password-BVb2l5We.js → reset-password-DBlLRH7P.js} +1 -1
- package/dist/client/assets/resizable-Ddu9Pik_.js +1 -0
- package/dist/client/assets/resolve-tab-icon-C5v6XuFJ.js +1 -0
- package/dist/client/assets/{review-settings-BacW9etz.js → review-settings-_NtVHX9D.js} +1 -1
- package/dist/client/assets/{role-color-DUV_b0hq.js → role-color-CYCY1ZHM.js} +1 -1
- package/dist/client/assets/roles-BOIysbZW.js +1 -0
- package/dist/client/assets/route-B2eUAr3E.js +1 -0
- package/dist/client/assets/route-DjNFlT9m.js +1 -0
- package/dist/client/assets/route-l3dfZAcw.js +1 -0
- package/dist/client/assets/route-page-header-x4fiBRQK.js +1 -0
- package/dist/client/assets/{sandbox-git-api-Bxa573Th.js → sandbox-git-api-CX3IYPAX.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-oW4CAFSP.js → sandbox-lifecycle-context-CsmYXarj.js} +1 -1
- package/dist/client/assets/save-status-DM-afM9Q.js +1 -0
- package/dist/client/assets/{schema-gnANfn26.js → schema-Bh0CFZUA.js} +1 -1
- package/dist/client/assets/{schema-DqcJORUD.js → schema-CsGAsuNy.js} +1 -1
- package/dist/client/assets/{scroll-area-mLdPDQZk.js → scroll-area-DkuLv9J_.js} +1 -1
- package/dist/client/assets/{search-input-DbkaTSNM.js → search-input-Yj0UUhbr.js} +1 -1
- package/dist/client/assets/{search-toggle-yUKGBwRs.js → search-toggle-CTqn74j5.js} +1 -1
- package/dist/client/assets/{secret-picker-C8Xe_qFX.js → secret-picker-FNSDTzDT.js} +1 -1
- package/dist/client/assets/secrets-DnkJAwly.js +1 -0
- package/dist/client/assets/{section-array-field-ah4STHLi.js → section-array-field-DbmoEjb3.js} +1 -1
- package/dist/client/assets/sections-Bk5O8laV.js +1 -0
- package/dist/client/assets/sections-editor-BYa3JqlT.js +1 -0
- package/dist/client/assets/select-DqZVtjvu.js +1 -0
- package/dist/client/assets/{select-model-CfeDs1cS.js → select-model-D_3F7ch9.js} +1 -1
- package/dist/client/assets/{seo-editor-BtwYLJ0f.js → seo-editor-alLFkZ3V.js} +1 -1
- package/dist/client/assets/{separator-D7JbMKRF.js → separator-DOH2DVT3.js} +1 -1
- package/dist/client/assets/session-runtime-DaEm9VzJ.js +1 -0
- package/dist/client/assets/settings-tab-Dnn9Ngte.js +1 -0
- package/dist/client/assets/{sheet-mGT77pmX.js → sheet-B3BCtfXu.js} +1 -1
- package/dist/client/assets/shell-layout-BMy93BCc.js +1 -0
- package/dist/client/assets/{site-draft-actions-BWcvrVJJ.js → site-draft-actions-C2zLtAMz.js} +5 -5
- package/dist/client/assets/site-draft-view-ikG8CMuB.js +1 -0
- package/dist/client/assets/site-editor-B8VlT5Kv.js +1 -0
- package/dist/client/assets/site-editor-toast-GAJZE2A0.js +1 -0
- package/dist/client/assets/skills-dIhMA0Ze.js +1 -0
- package/dist/client/assets/{slider-_L8nnrvM.js → slider-DirLi5JL.js} +1 -1
- package/dist/client/assets/{sortable.esm-Dw4xFH50.js → sortable.esm-B3zbNG6q.js} +1 -1
- package/dist/client/assets/sso-tZNmyRgp.js +1 -0
- package/dist/client/assets/{suggestion-CV5YiylC.js → suggestion-bCd1m59t.js} +1 -1
- package/dist/client/assets/{super-agent-icon-tF39Whlb.js → super-agent-icon-AJ6ZRe5V.js} +1 -1
- package/dist/client/assets/{switch-B0tv99B3.js → switch-BviC1co2.js} +1 -1
- package/dist/client/assets/{synced-repos-BOeEsDnA.js → synced-repos-DsEdkMaA.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BgVegBho.js → tab-icon-glyph-DkjrfS6l.js} +1 -1
- package/dist/client/assets/{table-CV4RoALe.js → table-DX15DDx1.js} +1 -1
- package/dist/client/assets/{tabs-DgvT8Pj5.js → tabs-BiFBpWbA.js} +1 -1
- package/dist/client/assets/task-board-DD2iUGL4.js +1 -0
- package/dist/client/assets/{core.esm-B-QMfivo.js → task-key-DP7js_2-.js} +2 -2
- package/dist/client/assets/task-route-Bfb6XWlb.js +1 -0
- package/dist/client/assets/{task-status-B4zkOwKe.js → task-status-CBWakThc.js} +1 -1
- package/dist/client/assets/taskboard-analytics-B5XiM0gZ.js +1 -0
- package/dist/client/assets/{tasks-B0KKqEdX.js → tasks-BPwrQv5-.js} +3 -3
- package/dist/client/assets/tasks-ip1BqsyR.js +1 -0
- package/dist/client/assets/{textarea-DM0e8Qi7.js → textarea-BoSVR1xB.js} +1 -1
- package/dist/client/assets/thread-analytics-B3wSdPFK.js +1 -0
- package/dist/client/assets/thread-button-CIHD7120.js +1 -0
- package/dist/client/assets/{thread-intent-CaGJ1BhS.js → thread-intent-DpzwhK2y.js} +6 -6
- package/dist/client/assets/thread-route-Bdw4g7Hg.js +1 -0
- package/dist/client/assets/thread-route-D4mea9ep.js +1 -0
- package/dist/client/assets/thread-sheet-body-C1_HCALD.js +1 -0
- package/dist/client/assets/time-range-picker-B9_5lQqT.js +1 -0
- package/dist/client/assets/{toggle-group-Cu1mfNzX.js → toggle-group-l7lV2Oqp.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CKA5xrb6.js → tool-set-selector-BQISxiF9.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-VHIAKSnc.js → toolbar-icon-button-CflJ2Qid.js} +1 -1
- package/dist/client/assets/{tooltip-CVxFMGcO.js → tooltip-BTd3W-2Z.js} +1 -1
- package/dist/client/assets/{tooltipContext-BptH8Zj7.js → tooltipContext-De8eALzu.js} +1 -1
- package/dist/client/assets/{track-vSgJeDn7.js → track-BBHYiJkY.js} +1 -1
- package/dist/client/assets/{types-Bz47I97G.js → types-C8b3acwX.js} +1 -1
- package/dist/client/assets/{url-slug-BR0vmMxN.js → url-slug-gNlq1cKV.js} +1 -1
- package/dist/client/assets/{usage-stats-Dr1e2NVB.js → usage-stats-Bk_1jh1-.js} +2 -2
- package/dist/client/assets/{use-ai-providers-DTX4zdTq.js → use-ai-providers-Cya2RotC.js} +1 -1
- package/dist/client/assets/use-api-keys-BdlPKuv4.js +1 -0
- package/dist/client/assets/use-apply-named-rule-CcoLpt-_.js +1 -0
- package/dist/client/assets/use-ask-in-chat-B_ARVX9A.js +1 -0
- package/dist/client/assets/{use-automations-8WbgZhli.js → use-automations-CerQ9Qaj.js} +1 -1
- package/dist/client/assets/{use-autosave-rNMlQ4zg.js → use-autosave-CQa7WbXM.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BedqZgtc.js +1 -0
- package/dist/client/assets/use-blog-view-9s3Vkx1q.js +1 -0
- package/dist/client/assets/use-chat-layout-state-CWt5k1nY.js +1 -0
- package/dist/client/assets/{use-cms-publish-actions-B-aKIQS2.js → use-cms-publish-actions-7QluCfa8.js} +4 -4
- package/dist/client/assets/use-connect-companion-B8Oqj7MQ.js +1 -0
- package/dist/client/assets/{use-connection-Lv1GX4XO.js → use-connection-2s3z_IKD.js} +1 -1
- package/dist/client/assets/{use-content-sync-CSFDJJ2I.js → use-content-sync-DxzP8nN9.js} +1 -1
- package/dist/client/assets/{use-copy-B2pKd0TM.js → use-copy-sOY8Yuot.js} +1 -1
- package/dist/client/assets/use-current-view-EjRzX02x.js +1 -0
- package/dist/client/assets/{use-date-fns-locale-D1sid-Du.js → use-date-fns-locale-DjDbgiCF.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-yF8PgiVs.js → use-debounced-autosave--lHIRoNY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BAQPYGcf.js → use-debounced-value-RJW46-1q.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DHv1UkQ9.js → use-deco-credits-d4Nbb0l0.js} +1 -1
- package/dist/client/assets/use-decopilot-events-BGpwG8Pb.js +1 -0
- package/dist/client/assets/use-delete-block-BR5smTsV.js +1 -0
- package/dist/client/assets/{use-delete-connection-TX_vnMiY.js → use-delete-connection-DHkW3H9t.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BTOwWmd_.js → use-deployment-admin-j92yIioi.js} +1 -1
- package/dist/client/assets/{use-entitlements-DpylFAUx.js → use-entitlements-DtyegfyM.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-B4HFa9pK.js +1 -0
- package/dist/client/assets/{use-file-configs-CG-6B_hv.js → use-file-configs-CzyibAGV.js} +1 -1
- package/dist/client/assets/{use-id-selection-DufR_IM-.js → use-id-selection-DSQKok9P.js} +1 -1
- package/dist/client/assets/use-in-settings-DLJEfljS.js +1 -0
- package/dist/client/assets/{use-inbox-feed-C9Mwe9dc.js → use-inbox-feed-BNnBKFlA.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-uPmbLXy7.js → use-infinite-scroll-D1tYrKq7.js} +1 -1
- package/dist/client/assets/{use-join-requests-C9270cag.js → use-join-requests-CSjMfH5p.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CllMGKzI.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-DS0pbV57.js +1 -0
- package/dist/client/assets/{use-mcp-client-BZnIK-Y4.js → use-mcp-client-Cvc3WWPF.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-Dtbvjt4h.js → use-mcp-prompts-Ck1uv43A.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-ubXBMl6b.js → use-mcp-tools-BIzewITl.js} +1 -1
- package/dist/client/assets/{use-mobile-C5u1Qie9.js → use-mobile-CG2XwDbe.js} +1 -1
- package/dist/client/assets/{use-move-blocks-FpNNMdYb.js → use-move-blocks-Dv6zyDyx.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DtRhmnlg.js → use-navigate-to-agent-BFBISUMc.js} +1 -1
- package/dist/client/assets/use-never-published-D3zJmakm.js +1 -0
- package/dist/client/assets/{use-org-fs-Cd0Vep23.js → use-org-fs-BfE7L8cf.js} +1 -1
- package/dist/client/assets/use-org-notice-DghJzmC_.js +1 -0
- package/dist/client/assets/{use-org-repo-syncs-SJRy46mf.js → use-org-repo-syncs-CU3MGWk9.js} +1 -1
- package/dist/client/assets/{use-org-sso-COBiertF.js → use-org-sso-C8BMUr72.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CRwm0586.js → use-organization-settings-Ddjh427l.js} +1 -1
- package/dist/client/assets/use-panel-navigate-V2MXWXLu.js +1 -0
- package/dist/client/assets/use-project-native-view-presence-EdJBeOw9.js +1 -0
- package/dist/client/assets/use-project-scope-COzEo5Zz.js +1 -0
- package/dist/client/assets/use-recent-apps-BpR_nbgz.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-DgRjbmEf.js → use-reports-diagnostic-DYf7sFCj.js} +1 -1
- package/dist/client/assets/use-sandbox-events-cbWqZuIm.js +2 -0
- package/dist/client/assets/{use-secrets-jhGB5cvg.js → use-secrets-BamKWPUs.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CxqwLEJO.js → use-section-preview-base-Cy_X_Jjl.js} +1 -1
- package/dist/client/assets/use-sidebar-collapsed-CGkkkrTj.js +1 -0
- package/dist/client/assets/{use-tags-CBIw_9wj.js → use-tags-staoqXQp.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DVdYIVtB.js → use-task-board-analytics-C5Dsg-uV.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-KjQVKJGy.js → use-task-board-item-prs-DsFjq28v.js} +1 -1
- package/dist/client/assets/use-task-board-items-OgSDu-ag.js +1 -0
- package/dist/client/assets/{use-task-board-prompts-5OmBV-BO.js → use-task-board-prompts-Bn4-yS6Z.js} +1 -1
- package/dist/client/assets/{use-task-metadata-xW_FzRqh.js → use-task-metadata-Bc8o5Sts.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CN7E968n.js → use-thread-outputs-Co5bznxQ.js} +1 -1
- package/dist/client/assets/use-view-draft-kind-BdwsMdex.js +1 -0
- package/dist/client/assets/use-voice-input-CwLNuWlo.js +1 -0
- package/dist/client/assets/useInfiniteQuery-BagPKS5m.js +1 -0
- package/dist/client/assets/{useQueries-BruvTC1j.js → useQueries-BjVZ4kPO.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BUmkwIx5.js +1 -0
- package/dist/client/assets/{users-ByNwcAJI.js → users-CPRHIyd2.js} +1 -1
- package/dist/client/assets/utils-DPEBLDgi.js +4 -0
- package/dist/client/assets/variant-calendar-Dlw46bNO.js +1 -0
- package/dist/client/assets/{variant-matcher-override-CbZkMadE.js → variant-matcher-override-ChW3ijK5.js} +1 -1
- package/dist/client/assets/{view-header-tBobsCC8.js → view-header-D4oknAV1.js} +1 -1
- package/dist/client/assets/virtual-mcp-nhrh3mtw.js +1 -0
- package/dist/client/assets/{watch-sse-pool-HKLsGoUY.js → watch-sse-pool-CTgVk3NA.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ChevronUp-s7k4XU_p.js +0 -1
- package/dist/client/assets/LinkBroken01-D4Fzd5qu.js +0 -1
- package/dist/client/assets/Tool01-s83oNDoy.js +0 -1
- package/dist/client/assets/agent-app-Cimvv1NW.js +0 -1
- package/dist/client/assets/agent-assets-CXtexOn6.js +0 -1
- package/dist/client/assets/agent-automation-DnUzn_Xt.js +0 -20
- package/dist/client/assets/agent-automations-D4hO7Hf6.js +0 -1
- package/dist/client/assets/agent-blog-C6-P3uCx.js +0 -2
- package/dist/client/assets/agent-blog-post-tCR4iQAk.js +0 -2
- package/dist/client/assets/agent-calendar-DqwMJ6TI.js +0 -1
- package/dist/client/assets/agent-connect-sources-CQDMgwdR.js +0 -1
- package/dist/client/assets/agent-deck-CTEHtbNm.js +0 -1
- package/dist/client/assets/agent-e2e-CgIk5HXH.js +0 -1
- package/dist/client/assets/agent-experiments-DWa03yYa.js +0 -1
- package/dist/client/assets/agent-file-C8OplG41.js +0 -1
- package/dist/client/assets/agent-hosting-DZwc-hYc.js +0 -1
- package/dist/client/assets/agent-icon-DHk7TnW1.js +0 -1
- package/dist/client/assets/agent-library-Bhlc7QbZ.js +0 -1
- package/dist/client/assets/agent-library-file-NZe3W-xa.js +0 -1
- package/dist/client/assets/agent-overview-BjxnoHtS.js +0 -1
- package/dist/client/assets/agent-releases-DJXEsnr4.js +0 -2
- package/dist/client/assets/agent-settings-IyhNx_G4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B371nTRh.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B6-iieBO.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Dt3bOYz8.js +0 -1
- package/dist/client/assets/agent-view-BIybMP8S.js +0 -1
- package/dist/client/assets/agent-view-guard-BkBbWqXx.js +0 -1
- package/dist/client/assets/ai-providers-CPyrRCb2.js +0 -1
- package/dist/client/assets/analytics-sections-BrNKTJt8.js +0 -1
- package/dist/client/assets/api-keys-BFjbEQH6.js +0 -1
- package/dist/client/assets/api-keys-CQiDxx3i.js +0 -1
- package/dist/client/assets/app-editor-Bu-6D-sg.js +0 -1
- package/dist/client/assets/automation-list-row-CE7SXhaQ.js +0 -1
- package/dist/client/assets/automations-DPaT01e7.js +0 -1
- package/dist/client/assets/blog-schema-EWcl-SDU.js +0 -1
- package/dist/client/assets/blog-view-gate-BPhH6bKz.js +0 -1
- package/dist/client/assets/buckets-lH8mvjw2.js +0 -1
- package/dist/client/assets/calendar-DD1b_D7F.js +0 -1
- package/dist/client/assets/category-editor-CIxCWDky.js +0 -1
- package/dist/client/assets/chat-context-B9rZ1ojJ.js +0 -39
- package/dist/client/assets/choose-editor-DvmC-iMO.js +0 -1
- package/dist/client/assets/cms-settings-editor-9nWJpKcE.js +0 -1
- package/dist/client/assets/collection-detail-DLSsSNsw.js +0 -1
- package/dist/client/assets/config-gK1vyYpA.js +0 -1
- package/dist/client/assets/connect-BjmhjHJY.js +0 -9
- package/dist/client/assets/connection-detail-DpiK53yx.js +0 -1
- package/dist/client/assets/connection-slug-C9_jBSFl.js +0 -1
- package/dist/client/assets/connections-COV9Ow5m.js +0 -1
- package/dist/client/assets/context-BvzzvYU9.js +0 -1
- package/dist/client/assets/discover-BoR_YGj-.js +0 -1
- package/dist/client/assets/experiments-tab-choice-CAU_bLj1.js +0 -1
- package/dist/client/assets/feature-gate-2lTAc4xs.js +0 -1
- package/dist/client/assets/file-explorer-SB0BRdQa.js +0 -2
- package/dist/client/assets/file-share-button-BmXIU90b.js +0 -3
- package/dist/client/assets/folder-icon-DczOK4X3.js +0 -1
- package/dist/client/assets/general-CPM5iXZa.js +0 -1
- package/dist/client/assets/home-CYIjoH-m.js +0 -1
- package/dist/client/assets/home-overview-BvhVg2vV.js +0 -1
- package/dist/client/assets/index-BtRGS8vq.css +0 -1
- package/dist/client/assets/index-CFMb9ZoK.js +0 -4
- package/dist/client/assets/index-D-5KT7YJ.js +0 -1
- package/dist/client/assets/index-D4fWOfQV.js +0 -1
- package/dist/client/assets/index-DT6cEtD6.js +0 -1
- package/dist/client/assets/infra-billing-BmRwy4ol.js +0 -1
- package/dist/client/assets/input-8RS_xi7t.js +0 -17
- package/dist/client/assets/item-actions-1298TOwC.js +0 -1
- package/dist/client/assets/legacy-agents-deep-CzKSWS31.js +0 -1
- package/dist/client/assets/library-Brt6n-TA.js +0 -1
- package/dist/client/assets/members-ChISvAMj.js +0 -1
- package/dist/client/assets/memory-C27haG4J.js +0 -7
- package/dist/client/assets/mock-board-BywyOk2L.js +0 -10
- package/dist/client/assets/multi-select-B4TjM0bb.js +0 -1
- package/dist/client/assets/named-rule-view-BNe6XoGj.js +0 -1
- package/dist/client/assets/new-project-dialog-MxeroDTr.js +0 -1
- package/dist/client/assets/openai-conversation-PDrYjlY3.js +0 -3
- package/dist/client/assets/order-monitor-day-CWMt_zZN.js +0 -1
- package/dist/client/assets/orgs-Dk0Ii4jK.js +0 -1
- package/dist/client/assets/own-accounts-section-h1niaKS8.js +0 -1
- package/dist/client/assets/pair-Cd8NH003.js +0 -48
- package/dist/client/assets/plan-D9R1-AZQ.js +0 -1
- package/dist/client/assets/post-calendar-BodpNGCL.js +0 -1
- package/dist/client/assets/preview-content-CAIaH_bT.js +0 -1
- package/dist/client/assets/preview-tab-Da5MFmuu.js +0 -557
- package/dist/client/assets/product-picker-dialog-n0_PqHbz.js +0 -1
- package/dist/client/assets/profile-C2zVoVuX.js +0 -1
- package/dist/client/assets/project-app-view-DL5XMDyp.js +0 -1
- package/dist/client/assets/project-apps-Oyn1Gnz0.js +0 -1
- package/dist/client/assets/project-reports-CC7ptk4l.js +0 -1
- package/dist/client/assets/project-tasks-DMyDSLCM.js +0 -1
- package/dist/client/assets/projects-3knV1Wr_.js +0 -1
- package/dist/client/assets/record-editor-CkMBdekB.js +0 -1
- package/dist/client/assets/redirect-editor-DhGl9GBV.js +0 -1
- package/dist/client/assets/reports-onboarding-DMi5ETfa.js +0 -1
- package/dist/client/assets/reports-tab-tHGof2FW.js +0 -2
- package/dist/client/assets/reports-x6uGEsmu.js +0 -1
- package/dist/client/assets/repositories-BTQbxkj9.js +0 -1
- package/dist/client/assets/repositories-W2INiIpb.js +0 -1
- package/dist/client/assets/resizable-B34lmUXk.js +0 -1
- package/dist/client/assets/resolve-tab-icon-DGM8yJyS.js +0 -1
- package/dist/client/assets/roles-Ce95RFET.js +0 -1
- package/dist/client/assets/route-ByQoYEQ1.js +0 -1
- package/dist/client/assets/route-CZrJA2Du.js +0 -1
- package/dist/client/assets/route-DwOjJhPU.js +0 -1
- package/dist/client/assets/save-status-Cf9701GC.js +0 -1
- package/dist/client/assets/secrets-7vsHBI_C.js +0 -1
- package/dist/client/assets/sections-DwAaRTqc.js +0 -1
- package/dist/client/assets/sections-editor-Cw7rVBET.js +0 -1
- package/dist/client/assets/select-C2TZ6w0T.js +0 -1
- package/dist/client/assets/settings-tab-Bt6v_h7A.js +0 -1
- package/dist/client/assets/shell-layout-DElHwXzP.js +0 -1
- package/dist/client/assets/site-draft-view-BYRbX7hq.js +0 -1
- package/dist/client/assets/site-editor-DtYKhDUe.js +0 -1
- package/dist/client/assets/site-editor-toast-fJQVfqa6.js +0 -1
- package/dist/client/assets/skills-BVBJsFpt.js +0 -1
- package/dist/client/assets/sso-jLEvOfRs.js +0 -1
- package/dist/client/assets/task-board-DvkfyL0D.js +0 -1
- package/dist/client/assets/task-key-BCHdFiOO.js +0 -1
- package/dist/client/assets/task-route-DvThF15k.js +0 -1
- package/dist/client/assets/taskboard-analytics-wmnzdjd1.js +0 -1
- package/dist/client/assets/tasks-x5QR56dC.js +0 -1
- package/dist/client/assets/thread-analytics-BhQM5Fjz.js +0 -1
- package/dist/client/assets/thread-route-B-GLI-gf.js +0 -1
- package/dist/client/assets/thread-route-DgzeVZc_.js +0 -1
- package/dist/client/assets/thread-sheet-body-CtA9qKg3.js +0 -1
- package/dist/client/assets/time-range-picker-CngcAO-k.js +0 -1
- package/dist/client/assets/tool-namespace-DBtCIV7f.js +0 -1
- package/dist/client/assets/use-apply-named-rule-OLP0GHWV.js +0 -1
- package/dist/client/assets/use-ask-in-chat-Dom4oae3.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Ol6SuT-M.js +0 -1
- package/dist/client/assets/use-chat-layout-state-DM5US5qS.js +0 -1
- package/dist/client/assets/use-connect-companion-BcVm5W-r.js +0 -1
- package/dist/client/assets/use-decopilot-events-DGoOKMj0.js +0 -1
- package/dist/client/assets/use-delete-block-y2vOypSK.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-OHnSoOh2.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-DUVnwi3u.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-DENAEdO_.js +0 -1
- package/dist/client/assets/use-never-published-CqQvHtX-.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-BnSN9oER.js +0 -1
- package/dist/client/assets/use-project-scope-lI2ukIh1.js +0 -1
- package/dist/client/assets/use-recent-apps-CnCq1w_A.js +0 -1
- package/dist/client/assets/use-sandbox-events-BZs_wcMW.js +0 -2
- package/dist/client/assets/use-sidebar-collapsed-BWtKakyD.js +0 -1
- package/dist/client/assets/use-task-board-events-n_cm8Gyp.js +0 -1
- package/dist/client/assets/use-task-board-items-gM-MOBw8.js +0 -1
- package/dist/client/assets/use-view-draft-kind-BsykP2yK.js +0 -1
- package/dist/client/assets/use-voice-input-seZQKt1s.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bz8irSN1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DKXKbUjm.js +0 -1
- package/dist/client/assets/utils-BoDmGD4u.js +0 -4
- package/dist/client/assets/variant-calendar-BsyPkd78.js +0 -1
- package/dist/client/assets/virtual-mcp-BJ1dRL5Y.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,b as J,e as nt,j as o,B as z,t as Z,o as ot,cp as xe,af as qt,a as se,M as Bt,V as Kt,K as Xe,cq as Ht,cr as Ut,at as he,m as wt,b4 as xn,C as Pt,r as G,ad as wn,ae as re,cs as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,ct as vn,ar as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aS as Xt,cu as kn,aY as Tn,b3 as _t,J as Nn,cv as Pn,bB as _n,aT as On,y as In,cw as An,cx as En,cy as Cn,cz as $n,cA as Ln,a5 as Rn,u as Dn,a6 as zn,cB as Fn,cC as Mn,l as Zt,cD as Ot,cE as qn,O as Bn,a_ as It,cF as Kn,a0 as Hn}from"./index-D9wygnbU.js";import{t as en}from"./Globe04-dU-sELuJ.js";import{i as Un,s as ie}from"./UserSquare-DE5Uc7_R.js";import{u as Gn}from"./use-deployment-admin-BTOwWmd_.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ah as Vn,W as Wn,G as xt,ab as Yn,I as Qn,ai as Xn,aj as Zn,n as At,h as es,ak as ts,m as ns,al as ss}from"./agent-icon-DHk7TnW1.js";import{s as tn}from"./XClose-l5OHkJlr.js";import{u as os,a as is}from"./use-project-scope-lI2ukIh1.js";import{u as nn,t as as,b as rs,a as ls,e as cs,c as ds,A as us}from"./use-view-draft-kind-BsykP2yK.js";import{i as ge}from"./CheckCircle-D-W30b_A.js";import{i as Et}from"./Monitor01-DLndo6aP.js";import{i as Ye}from"./Zap-DN6rNQ1C.js";import{s as Ct}from"./Plus-D2V2-fTF.js";import{a as ms}from"./Tool01-s83oNDoy.js";import{e as Qe,b as ae,d as fs,a as gs,c as hs,C as ps}from"./command-DCUf4RGf.js";import{I as ys}from"./integration-icon-BPaLmZuD.js";import{P as bs}from"./project-icon-D3VravgB.js";import{a as xs}from"./use-navigate-to-agent-DtRhmnlg.js";import{u as ws}from"./use-debounced-value-BAQPYGcf.js";import{a as Ss,m as vs}from"./use-mcp-client-BZnIK-Y4.js";import{u as js,a as ks,n as Ts}from"./new-project-dialog-MxeroDTr.js";import{S as Ns,u as Ps,h as _s}from"./thread-intent-CaGJ1BhS.js";import{L as Os}from"./legacy-admin-welcome-dialog-D_Hj5ND0.js";import{R as Is}from"./required-auth-layout-BszE36jh.js";import{u as As,a as Es,b as Cs,c as $s}from"./thread-route-B-GLI-gf.js";import{u as Ls}from"./use-org-sso-COBiertF.js";function Rs(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h),u=Ds;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let g;e[17]!==y?(g=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=g):g=e[18];let x;e[19]!==r||e[20]!==i?(x=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=x):x=e[21];let v;e[22]!==x?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[22]=x,e[23]=v):v=e[23];let p;e[24]!==g||e[25]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[g,v]}),e[24]=g,e[25]=v,e[26]=p):p=e[26];let b;e[27]!==m?(b=()=>m.mutate(),e[27]=m,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==s||e[31]!==i?(S=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=m.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let w;e[33]!==m.isPending||e[34]!==b||e[35]!==S?(w=o.jsx(z,{onClick:b,disabled:m.isPending,children:S}),e[33]=m.isPending,e[34]=b,e[35]=S,e[36]=w):w=e[36];const k=m.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==m.isPending||e[40]!==T?(j=o.jsx(z,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=m.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,p,P]}),e[45]=p,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=zs,f=r==="not-found",h=f?Un:qt;let m;e[0]!==f||e[1]!==i?(m=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=m):m=e[2];const u=m;let c;e[3]!==f||e[4]!==n||e[5]!==s||e[6]!==i?(c=f?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let g;e[8]!==h?(g=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=g):g=e[9];let x;e[10]!==u?(x=o.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=x):x=e[11];let v;e[12]!==y?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=v):v=e[13];let p;e[14]!==x||e[15]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[x,v]}),e[14]=x,e[15]=v,e[16]=p):p=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Fs,{orgId:a,orgSlug:s}),o.jsx(z,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(z,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==g||e[23]!==p||e[24]!==b?(S=o.jsxs(xe,{children:[g,p,b]}),e[22]=g,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function zs(){window.location.href="/"}function Fs(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==n?(f=x=>{Z.error(x instanceof Error?x.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h);let u;e[11]!==m?(u=()=>m.mutate(),e[11]=m,e[12]=u):u=e[12];const c=!i||m.isPending;let y;e[13]!==m.isPending||e[14]!==n?(y=m.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=m.isPending,e[14]=n,e[15]=y):y=e[15];let g;return e[16]!==u||e[17]!==c||e[18]!==y?(g=o.jsx(z,{onClick:u,disabled:c,children:y}),e[16]=u,e[17]=c,e[18]=y,e[19]=g):g=e[19],g}function Ms(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let f;e[4]!==i?(f=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[6]=l,e[7]=d,e[8]=f,e[9]=h):h=e[9];const m=nt(h);let u;e[10]!==s?(u=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=u):u=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let g;e[15]!==u||e[16]!==c||e[17]!==y?(g={mutationFn:u,onSuccess:c,onError:y},e[15]=u,e[16]=c,e[17]=y,e[18]=g):g=e[18];const x=nt(g),v=m.isPending||x.isPending;let p;e[19]!==r||e[20]!==a?(p=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=o.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let j;e[34]!==m?(j=()=>m.mutate(),e[34]=m,e[35]=j):j=e[35];let P;e[36]!==m.isPending||e[37]!==i?(P=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==v||e[40]!==j||e[41]!==P?(_=o.jsx(z,{onClick:j,disabled:v,children:P}),e[39]=v,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==x?(O=()=>x.mutate(),e[43]=x,e[44]=O):O=e[44];let A;e[45]!==x.isPending||e[46]!==i?(A=x.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=x.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==v||e[49]!==O||e[50]!==A?($=o.jsx(z,{variant:"ghost",onClick:O,disabled:v,children:A}),e[48]=v,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==p?(R=o.jsxs(xe,{children:[p,T,L]}),e[55]=T,e[56]=L,e[57]=p,e[58]=R):R=e[58],R}function qs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let h;e[12]!==l||e[13]!==f?(h=o.jsxs("div",{className:"space-y-2",children:[l,f]}),e[12]=l,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==n?(m=n("common.goHome"),e[15]=n,e[16]=m):m=e[16];let u;e[17]!==m?(u=o.jsx(z,{variant:"ghost",onClick:Bs,children:m}),e[17]=m,e[18]=u):u=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==u?(c=o.jsxs(xe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=c):c=e[22],c}function Bs(){window.location.href="/"}function Ks(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Us,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let h;e[5]!==l||e[6]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[5]=l,e[6]=f,e[7]=h):h=e[7];const m=nt(h);let u;e[8]!==n||e[9]!==s?(u=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=u):u=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=g):g=e[18];let x;e[19]!==g?(x=o.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=x):x=e[20];let v;e[21]!==y||e[22]!==x?(v=o.jsxs("div",{className:"space-y-2",children:[y,x]}),e[21]=y,e[22]=x,e[23]=v):v=e[23];let p;e[24]!==m?(p=()=>m.mutate(),e[24]=m,e[25]=p):p=e[25];let b;e[26]!==m.isPending||e[27]!==i?(b=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==p||e[31]!==b?(S=o.jsx(z,{onClick:p,disabled:m.isPending,children:b}),e[29]=m.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const w=m.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==m.isPending||e[36]!==k?(T=o.jsx(z,{variant:"ghost",onClick:Hs,disabled:w,children:k}),e[35]=m.isPending,e[36]=k,e[37]=T):T=e[37];let j;e[38]!==S||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==v||e[42]!==j||e[43]!==u?(P=o.jsxs(xe,{children:[u,v,j]}),e[41]=v,e[42]=j,e[43]=u,e[44]=P):P=e[44],P}function Hs(){window.location.href="/"}function Us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Gs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Js({orgSlug:t}){const{data:e}=Gs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Ms,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(qs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:f,actions:h,onDismiss:m,tone:u}=t,c=u===void 0?"neutral":u,y=f||h;let g;e[0]!==c?(g=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(tn,{size:14}),e[2]=x):x=e[2];let v;e[3]!==a||e[4]!==m?(v=o.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:x}),e[3]=a,e[4]=m,e[5]=v):v=e[5];const p=l&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=wt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let k;e[11]!==n?(k=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=k):k=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==k?(P=o.jsxs("div",{children:[k,T,j]}),e[17]=T,e[18]=j,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==S||e[28]!==w?(A=o.jsxs("div",{className:S,children:[w,O]}),e[26]=O,e[27]=S,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==f||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=f,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==g||e[39]!==v||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,v,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=g,e[39]=v,e[40]=c,e[41]=L):L=e[41],L}const Vs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${Vs[t]}"]`}const Ws=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Ys(t){return Ws.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Qs(t,e){return Ys(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Xs=on("switcher"),Zs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function eo(t,e){return Qs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function to(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function no(){return(await xn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function so(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Xs)&&s++<Zs){requestAnimationFrame(a);return}const n=eo(t,e);if(n.length===0){et=!1;return}no().then(r=>{r(to(t,n)).drive()}).catch(()=>{et=!1})};a()}function oo(t){return t!=="off"}function ea(t){if(!t.hasSource)return[];const e=["site-editor"];return oo(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ta(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:xt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ie,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Et,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Ye,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ie,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ge,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Ye,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ge,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ie,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Ye,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ie,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ge,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ie,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ge,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ie,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:xt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ge,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ye,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ge,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ie,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:xt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ie,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",be={},jt=!1;function io(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=io();return t!==ye&&(ye=t,be=cn(t)),be}function ao(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...be};be=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function ro(t){be=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function lo(){const t=C.c(7),e=G.useSyncExternalStore(ao,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=co;let r;t[2]!==e?(r=ln.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function co(t){be[t]||ro({...be,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function uo(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function mo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>uo(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const fo=720*60*60*1e3,go=10080*60*1e3;function ho(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function po(t){const e=ln[0];if(!e)return null;const s=ho(e.date),a=t-s;return a<0||a>fo?null:e}function yo(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function bo(t,e){const s=yo(t);return s===null?!1:e-s>=go}function xo(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:f}=se.useSession(),{isSeen:h,markSeen:m}=lo(),u=mo(6e4);let c,y,g;if(t[3]!==h||t[4]!==u||t[5]!==f?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{if(c=po(u),!c){g=null;break e}if(!bo(f?.user?.createdAt,u)){g=null;break e}y=h(c.id)}t[3]=h,t[4]=u,t[5]=f?.user?.createdAt,t[6]=c,t[7]=y,t[8]=g}else c=t[6],y=t[7],g=t[8];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(y)return null;let x;t[9]!==c.id||t[10]!==r||t[11]!==m||t[12]!==i||t[13]!==d||t[14]!==e?(x=()=>{m(c.id),so(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=m,t[12]=i,t[13]=d,t[14]=e,t[15]=x):x=t[15];const v=x;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=c.eyebrow,w=c.title;let k;t[20]!==c.id||t[21]!==m?(k=()=>m(c.id),t[20]=c.id,t[21]=m,t[22]=k):k=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==m||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>m(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=m,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==m||t[31]!==v?(j=c.cta?"href"in c.cta?o.jsx(z,{asChild:!0,size:"sm",onClick:()=>m(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(z,{size:"sm",onClick:v,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=m,t[31]=v,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(wo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(O=o.jsx(sn,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:w,onDismiss:k,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=O):O=t[45],O}function wo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function So(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(vo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function vo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(jo)})]},t.label)}function jo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ko)})]},t.description)}function ko(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const To={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=To[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function na({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const f=await se.organization.acceptInvitation({invitationId:t.id});if(f.error){Z.error(f.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(z,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(z,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function No(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function Po(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async v=>{const{signal:p}=v,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:p});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const S=await b.json();if(!No(S))throw new Error("Invalid organization search response");return S},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:f,isFetching:h,isPlaceholderData:m,isError:u}=pe(d);let c;e[6]!==f?.items?(c=f?.items??[],e[6]=f?.items,e[7]=c):c=e[7];const y=r&&h,g=r&&m;let x;return e[8]!==u||e[9]!==c||e[10]!==y||e[11]!==g?(x={hits:c,isSearching:y,isStale:g,isError:u},e[8]=u,e[9]=c,e[10]=y,e[11]=g,e[12]=x):x=e[12],x}const _o=3,mn=10,Oo=440,Io=55;function sa(t){const e=Math.floor((t-Oo)/Io);return Math.min(mn,Math.max(_o,e))}function Ao(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Eo(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function oa(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const Dt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,Dt),n=Array.isArray(s)?s:Dt;let r;t[1]!==a?(r=(l,d)=>a(f=>Ao(Array.isArray(f)?f:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function Co(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ia(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function $o(t,e){return{...t,hidden:st(t.hidden,e)}}function aa(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function ra(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function la(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Lo(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(f=>$o(Co(f),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const zt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ro=5;function Ft(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Do(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function zo(t,e){const{org:s}=Tt(),a=Ss({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,zt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:zt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Fo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:f}=xs(i.slug),[h,m]=G.useState(""),[u,c]=G.useState("all");let y;e[0]!==u?(y=F=>u==="all"||u===F,e[0]=u,e[1]=y):y=e[1];const g=y,x=G.useDeferredValue(h),v=zo(x,g("chats")||g("connections")),p=Lo(),{data:b}=jn(),{recent:S}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const k=w,T=ws(k,150),{hits:j}=Po(g("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==S){const F=Do(Eo(b??[],i),S);let U;e[10]!==j?(U=new Set(j.map(Ko)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...F,...j.filter(Ee=>!F.some(M=>M.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?O.filter(F=>F.slug!==i.slug).slice(0,Ro):O,e[12]=O,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),m(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==u?(I=F=>{const U=Ze.indexOf(u);c(Ze[(U+F+Ze.length)%Ze.length]??"all")},e[19]=u,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(F,U)=>{St("command_palette_used",{kind:U}),F(),R()},e[21]=R,e[22]=H):H=e[22];const D=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=F=>{if(F.type==="connection"){if(!F.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:F.slug}});return}if(F.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:F.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:F.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:F.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==D||e[32]!==d||e[33]!==v||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==f||e[42]!==oe||e[43]!==u||e[44]!==P||e[45]!==g||e[46]!==n||e[47]!==h||e[48]!==p){const F=v.filter(Bo),U=v.filter(qo);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const M=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==M||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:M},e[70]=M,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==M||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:M},e[76]=M,e[77]=Le,e[78]=Re):Re=e[78];let De;e[79]!==n?(De=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=De):De=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let ze;e[82]!==i.slug?(ze={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=ze):ze=e[83];let Fe;e[84]!==De||e[85]!==ze?(Fe={key:"tasks",label:De,icon:mt,to:re.tasks,params:ze},e[84]=De,e[85]=ze,e[86]=Fe):Fe=e[86];let Me;e[87]!==n?(Me=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Me):Me=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==M||e[91]!==Me?(qe={key:"library",label:Me,icon:ft,to:re.library,params:M},e[90]=M,e[91]=Me,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==M||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:M},e[96]=M,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Fe||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Fe,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Fe,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const bt=ht;V=fs,Se=s,e[105]!==R||e[106]!==a?(ce=N=>N?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==u||e[113]!==n?(He=u==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Ft(u)).toLowerCase()}),e[112]=u,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==u||e[119]!==h?(Ge=N=>{if(N.key==="Tab"){N.preventDefault(),q(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),c("all"))},e[117]=q,e[118]=u,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(gs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:m,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==u||e[129]!==n?(Ve=Ze.map(N=>o.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:Mo,onClick:()=>c(N),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Ft(N))},N)),e[128]=u,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=hs,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ps,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==g||e[143]!==n||e[144]!==h||e[145]!==p?(Y=g("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(N=>o.jsxs(ae,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[o.jsx(un,{org:N,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=g,e[143]=n,e[144]=h,e[145]=p,e[146]=Y):Y=e[146],e[147]!==bt||e[148]!==D||e[149]!==r||e[150]!==g||e[151]!==n?(Q=g("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:bt.map(N=>o.jsxs(ae,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,o.jsx("span",{children:N.label})]},N.key))}),e[147]=bt,e[148]=D,e[149]=r,e[150]=g,e[151]=n,e[152]=Q):Q=e[152],e[153]!==D||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==f||e[159]!==g||e[160]!==n?(X=g("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(N=>o.jsxs(ae,{value:`project ${N.title}`,onSelect:()=>D(()=>{f(N.id),r({to:re.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[o.jsx(bs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),o.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=f,e[159]=g,e[160]=n,e[161]=X):X=e[161],e[162]!==D||e[163]!==r||e[164]!==M||e[165]!==g||e[166]!==n?(E=g("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>D(()=>r({to:re.home,params:M}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:M}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:M,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:M}),"settings"),children:[o.jsx(ms,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=M,e[165]=g,e[166]=n,e[167]=E):E=e[167],B=g("connections")&&F.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:F.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),"connection"),children:[o.jsx(ys,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),we=g("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),N.type),children:[N.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=R,e[30]=q,e[31]=D,e[32]=d,e[33]=v,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=f,e[42]=oe,e[43]=u,e[44]=P,e[45]=g,e[46]=n,e[47]=h,e[48]=p,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Mo(t){return t.preventDefault()}function qo(t){return t.type!=="connection"}function Bo(t){return t.type==="connection"}function Ko(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Ho),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Ho(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ns(!1);function Uo(){tt.set(!0)}function Go(){tt.set(!1)}function Jo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Vo=300*1e3,Wo=2;function Yo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Qo(t,e){return t.count>=Wo&&t.version!==null&&t.version!==e}function Xo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:ei,refetchInterval:Vo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,f]=G.useState(l);n!==r&&(i(n),f(j=>Yo(j,a,"4.582.0")));const[h,m]=G.useState(null);if(!Qo(d,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let x;t[10]!==e?(x=e("announcements.version.description"),t[10]=e,t[11]=x):x=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(_t,{size:16}),t[12]=v):v=t[12];let p;t[13]!==d.version?(p=()=>m(d.version),t[13]=d.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.582.0"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let k;t[20]!==S?(k=o.jsxs(z,{size:"sm",onClick:Zo,children:[S,w]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==c||t[25]!==y||t[26]!==g||t[27]!==x||t[28]!==p||t[29]!==b?(T=o.jsx(sn,{ariaLabel:u,dismissLabel:c,eyebrow:y,title:g,description:x,icon:v,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=c,t[25]=y,t[26]=g,t[27]=x,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Zo(){return window.location.reload()}async function ei(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function ti(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ni=Date.parse("2026-07-21T00:00:00Z"),Mt=t=>ti(he.ptBrAnnouncementSeen(t));function si(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<ni,h=Pn()==="pt-BR",m=!r&&!!l&&f&&h&&s.language==="en"&&!Mt(l).has()&&!_n(),[u,c]=G.useState(!1),[y,g]=G.useState(!1);!u&&!r&&(c(!0),m&&l&&(Mt(l).mark(),a(ii),g(!0),St("pt_br_auto_switch_shown")));let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=D=>{St("pt_br_auto_switch_closed",{action:D}),g(!1)},t[0]=x):x=t[0];const v=x;let p;t[1]!==a?(p=()=>{a(oi),v("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&v("dismiss"),t[3]=S):S=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let T;t[7]!==k?(T=o.jsx(Jt,{children:k}),t[7]=k,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(z,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>v("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(z,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:S,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function oi(t){return{...t,language:"en"}}function ii(t){return{...t,language:"pt-BR"}}function ai(t){const e=An(t);return typeof e=="string"?e:void 0}function ri(){return ai("experiment-pipeline-check"),null}function li(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ri,{}),e[0]=a):a=e[0],a}function ci(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let m,u;return r?.panel?u=r.panel:r?.newThread&&!h&&$n(e.tabId)?(u=e.tabId,l.mainpanel=e.mainpanel,m=e.sidepanel):n?(u=n.tab,n.sidepanel!==void 0&&(m=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(u=e.tabId),m!==void 0&&(l.sidepanel=m),r?.autosend&&(l.autosend=i),{tabId:as(u,t.target,t.blogView),search:l}}const hn="studio:thread-layout:v4",di=50;function pn(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ui(t,e,s,a=di){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function mi(t,e){t&&yn(ui(Nt(),t,e))}function fi(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ca(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function bn(t){return{queryKey:Xe.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function da(t){const e=C.c(10);let s;e[0]!==t?(s=bn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function gi(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=hi;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let m;e[5]!==h?(m=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=m):m=e[6];let u;e[7]!==n||e[8]!==a||e[9]!==r?(u=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=u):u=e[10];let c;e[11]!==u?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=c):c=e[12];let y;e[13]!==m||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r?(g=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=g):g=e[17];let x;e[18]!==l||e[19]!==g?(x=o.jsx(z,{onClick:l,children:g}),e[18]=l,e[19]=g,e[20]=x):x=e[20];let v;e[21]!==r?(v=r("common.goBack"),e[21]=r,e[22]=v):v=e[22];let p;e[23]!==v?(p=o.jsx(z,{variant:"ghost",onClick:d,children:v}),e[23]=v,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==x?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,p]}),e[25]=p,e[26]=x,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=o.jsxs(xe,{children:[f,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function hi(){window.location.href="/"}function pi(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?o.jsx(z,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=f):f=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let m;e[11]!==n?(m=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=m):m=e[12];let u;e[13]!==h||e[14]!==m?(u=o.jsx(z,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:m})}),e[13]=h,e[14]=m,e[15]=u):u=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(z,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let g;e[20]!==y||e[21]!==f||e[22]!==u?(g=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,u,y]}),e[20]=y,e[21]=f,e[22]=u,e[23]=g):g=e[23];let x;return e[24]!==g||e[25]!==d?(x=o.jsxs(xe,{children:[r,d,g]}),e[24]=g,e[25]=d,e[26]=x):x=e[26],x}function yi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const bi="/settings/infra-billing";function xi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bi)}function wi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function Si(){const t=kt(),e=Ps(),{org:s}=Tt(),a=Dn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=rs(),l=As(),d=Es(),f=Cs(),h=$s(),m=ls(),u=cs(),{data:c}=se.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),g=()=>y(p=>({...p,sidepanel:!0})),x=(p,b,S)=>{const w=!!d&&d===p;d&&!w&&mi(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=w?null:fi(p),T=Xt(s.id).id,j=ci({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:us,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>j.search,{virtualMcpId:b,view:{tabId:j.tabId}})};return{openSidePanel:g,setTaskId:x,createNewTask:async(p,b,S)=>{const w=crypto.randomUUID(),k=p??f,T=m==="blog"&&k===f&&!S?.panel?ds(b,_s(c?.user)):null;try{await e?.create({id:w,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}x(w,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const vi=new Set(["/$org/","/$org/home"]);function ji(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ki},t[0]=e):e=t[0],Zt(e)}function ki(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vi.has(e)}function Ti(){const t=C.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Jo(),[d,f]=js(),h=Fn(),m=ji(),u=a??"";let c;t[1]!==u?(c=bn(u),t[1]=u,t[2]=c):c=t[2];const y=!!a&&m;let g;t[3]!==c||t[4]!==y?(g={...c,enabled:y},t[3]=c,t[4]=y,t[5]=g):g=t[5],pe(g);const{data:x}=se.useSession(),v=x?.user?.id;let p,b;t[6]!==h?(p=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Uo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),G.useEffect(p,b);let S;t[9]!==a||t[10]!==v?(S=Mn(a,v),t[9]=a,t[10]=v,t[11]=S):S=t[11];const{data:w}=Kt(S),k=w?.id,T=w?.slug,{data:j}=Ls(k,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=yi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Ni},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!xi(A),L=k??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=vs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!k&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&Go(),!w){let E;return t[19]!==a?(E=o.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(pi,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(gi,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(li,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(xo,{}),o.jsx(Xo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Fo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==f?(W=d&&o.jsx(ks,{open:!0,onOpenChange:f,source:Ts()}),t[41]=d,t[42]=f,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(So,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(si,{}),Q=o.jsx(Os,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(wi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Ni(t){return t.location.pathname}function Pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Is,{children:o.jsx(Ti,{})}),t[0]=e):e=t[0],e}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,usePanelActions:Si},Symbol.toStringTag,{value:"Module"}));export{gn as E,na as I,Vs as L,un as O,Po as a,fn as b,Lo as c,oa as d,ra as e,sa as f,Si as g,ia as h,rn as i,mo as j,ca as k,oo as l,la as m,da as n,Uo as o,ea as p,ua as q,Co as r,ta as s,aa as t,yi as u,Eo as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as I,j as r,n as v,b as M,a4 as P,bd as R}from"./index-D9wygnbU.js";import{E as T}from"./empty-state-BmCMJHsS.js";import{u as w}from"./chat-context-B9rZ1ojJ.js";import{u as B,j as L,k as _}from"./site-editor-toast-fJQVfqa6.js";import{i as $,u as A,j as Q,S as U}from"./blocks-tab-states-DdvH_zgH.js";import{b as G}from"./use-view-draft-kind-BsykP2yK.js";function H(C){const e=I.c(7),{icon:l,title:i,description:t,action:n}=C;let a;e[0]!==n?(a=n?{children:n.label,onClick:n.onClick,disabled:n.disabled}:void 0,e[0]=n,e[1]=a):a=e[1];let o;return e[2]!==t||e[3]!==l||e[4]!==a||e[5]!==i?(o=r.jsx(v,{children:r.jsx(v.Content,{children:r.jsx(v.Container,{children:r.jsx(T,{icon:l,title:i,description:t,buttonProps:a})})})}),e[2]=t,e[3]=l,e[4]=a,e[5]=i,e[6]=o):o=e[6],o}function Y(C){const e=I.c(33),{virtualMcpId:l,icon:i,copy:t,skeleton:n,children:a}=C,o=M(),{org:p}=P(),k=w(),u=k?.currentBranch??null,g=B(l,u);R(g.kind==="protocol"&&g.source==="github");const{openPanel:b}=G();if(!u){const s=t.noDraftTitle,D=t.noDraftDesc;let d;e[0]!==o?(d=o("sectionsEditor.namedRules.openEditor"),e[0]=o,e[1]=d):d=e[1];let f;e[2]!==b?(f=()=>b("content"),e[2]=b,e[3]=f):f=e[3];let m;e[4]!==d||e[5]!==f?(m={label:d,onClick:f},e[4]=d,e[5]=f,e[6]=m):m=e[6];let x;return e[7]!==t.noDraftDesc||e[8]!==t.noDraftTitle||e[9]!==i||e[10]!==m?(x=r.jsx(H,{icon:i,title:s,description:D,action:m}),e[7]=t.noDraftDesc,e[8]=t.noDraftTitle,e[9]=i,e[10]=m,e[11]=x):x=e[11],x}if($(g)){let s;return e[12]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(U,{}),e[12]=s):s=e[12],s}if(g.kind==="pending"){let s;return e[13]!==n?(s=r.jsx(r.Fragment,{children:n}),e[13]=n,e[14]=s):s=e[14],s}if(g.kind!=="protocol"){let s;return e[15]!==t.loadFailed||e[16]!==t.loadFailedHint||e[17]!==i?(s=r.jsx(H,{icon:i,title:t.loadFailed,description:t.loadFailedHint}),e[15]=t.loadFailed,e[16]=t.loadFailedHint,e[17]=i,e[18]=s):s=e[18],s}let c;e[19]!==u||e[20]!==p.slug||e[21]!==l?(c=JSON.stringify([p.slug,l,u]),e[19]=u,e[20]=p.slug,e[21]=l,e[22]=c):c=e[22];const h=k?.taskId??null;let j;return e[23]!==u||e[24]!==a||e[25]!==t||e[26]!==i||e[27]!==p.slug||e[28]!==n||e[29]!==c||e[30]!==h||e[31]!==l?(j=r.jsx(J,{orgSlug:p.slug,virtualMcpId:l,branch:u,threadId:h,icon:i,copy:t,skeleton:n,children:a},c),e[23]=u,e[24]=a,e[25]=t,e[26]=i,e[27]=p.slug,e[28]=n,e[29]=c,e[30]=h,e[31]=l,e[32]=j):j=e[32],j}function J(C){const e=I.c(35),{orgSlug:l,virtualMcpId:i,branch:t,threadId:n,icon:a,copy:o,skeleton:p,children:k}=C,u=M();let g;e[0]!==t||e[1]!==l||e[2]!==n||e[3]!==i?(g={orgSlug:l,virtualMcpId:i,branch:t,threadId:n,previewUrl:null},e[0]=t,e[1]=l,e[2]=n,e[3]=i,e[4]=g):g=e[4];const b=g,c=L(b),h=A(b),j=c.data,s=h.data;let D;e[5]!==t||e[6]!==l||e[7]!==i?(D={orgSlug:l,virtualMcpId:i,branch:t},e[5]=t,e[6]=l,e[7]=i,e[8]=D):D=e[8];const d=_(D,Q);if(!j||!s||!d.ready){if(c.isError||h.isError||d.failed){const N=o.loadFailed,O=o.loadFailedHint;let F;e[9]!==u?(F=u("sectionsEditor.namedRules.tryAgain"),e[9]=u,e[10]=F):F=e[10];let E;e[11]!==c||e[12]!==d||e[13]!==h?(E=()=>{c.isError&&c.refetch(),h.isError&&h.refetch(),d.failed&&d.retry()},e[11]=c,e[12]=d,e[13]=h,e[14]=E):E=e[14];let S;e[15]!==F||e[16]!==E?(S={label:F,onClick:E},e[15]=F,e[16]=E,e[17]=S):S=e[17];let y;return e[18]!==o.loadFailed||e[19]!==o.loadFailedHint||e[20]!==a||e[21]!==S?(y=r.jsx(H,{icon:a,title:N,description:O,action:S}),e[18]=o.loadFailed,e[19]=o.loadFailedHint,e[20]=a,e[21]=S,e[22]=y):y=e[22],y}let x;return e[23]!==p?(x=r.jsx(r.Fragment,{children:p}),e[23]=p,e[24]=x):x=e[24],x}let f;e[25]!==t||e[26]!==k||e[27]!==j||e[28]!==s||e[29]!==l||e[30]!==n||e[31]!==i?(f=k({orgSlug:l,virtualMcpId:i,branch:t,threadId:n,decofile:j,meta:s}),e[25]=t,e[26]=k,e[27]=j,e[28]=s,e[29]=l,e[30]=n,e[31]=i,e[32]=f):f=e[32];let m;return e[33]!==f?(m=r.jsx(r.Fragment,{children:f}),e[33]=f,e[34]=m):m=e[34],m}export{H as S,Y as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,J as G,a0 as F,a as E,l as O,b as P,n as y,L as H}from"./index-D9wygnbU.js";import{C as M}from"./chat-context-B9rZ1ojJ.js";import{C as x}from"./index-D-5KT7YJ.js";import{L}from"./index-DT6cEtD6.js";import{B as V}from"./blocks-preview-workspace-context-MbfgZRXf.js";import{e as T,p as J,s as K,a as W,r as U,T as $,u as R,b as z}from"./site-editor-toast-fJQVfqa6.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-Da5MFmuu.js";import{C as Y}from"./content-tab-Ct80gvFF.js";import{T as Z}from"./tab-icon-glyph-BgVegBho.js";import{r as tt}from"./resolve-tab-icon-DGM8yJyS.js";import ot from"./agent-site-editor-LnCUJUlb.js";import"./use-view-draft-kind-BsykP2yK.js";import"./thread-route-B-GLI-gf.js";import"./use-project-scope-lI2ukIh1.js";import"./repository-binding-C2KfYomQ.js";import"./use-mcp-client-BZnIK-Y4.js";import"./auth-Dh-2aYdX.js";import"./use-organization-settings-CRwm0586.js";import"./schema-DqcJORUD.js";import"./task-board-DvkfyL0D.js";import"./thread-intent-CaGJ1BhS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HKLsGoUY.js";import"./use-entitlements-DpylFAUx.js";import"./use-ai-providers-DTX4zdTq.js";import"./use-decopilot-events-DGoOKMj0.js";import"./use-mobile-C5u1Qie9.js";import"./use-sidebar-collapsed-BWtKakyD.js";import"./use-chat-layout-state-DM5US5qS.js";import"./agent-icon-DHk7TnW1.js";import"./AlertCircle-D-4TK36c.js";import"./Tool01-s83oNDoy.js";import"./ArrowUp-Cf_Jm-4W.js";import"./ArrowLeft-B34wRVvp.js";import"./LinkBroken01-D4Fzd5qu.js";import"./BookOpen01-Cu2i97yZ.js";import"./Globe04-dU-sELuJ.js";import"./CheckCircle-D-W30b_A.js";import"./ChevronUp-s7k4XU_p.js";import"./ChevronSelectorVertical-BORaKUYt.js";import"./UserSquare-DE5Uc7_R.js";import"./CreditCard01-C2QL2326.js";import"./SwitchHorizontal01-2Pb5aRtq.js";import"./Key01-zay6mYZz.js";import"./Minus-BikCplhC.js";import"./Monitor01-DLndo6aP.js";import"./Sun-BFXO9tQN.js";import"./Play-D_FIXuay.js";import"./Plus-D2V2-fTF.js";import"./SearchMd-DUXCcvZJ.js";import"./ShoppingBag01-Dak2svm7.js";import"./Trash01-Bu2u0WVA.js";import"./Upload01-mgXAmijc.js";import"./Users01-C3CmvyvK.js";import"./XClose-l5OHkJlr.js";import"./Zap-DN6rNQ1C.js";import"./tooltip-CVxFMGcO.js";import"./index-3FmhyOXc.js";import"./toolbar-icon-button-VHIAKSnc.js";import"./shell-layout-DElHwXzP.js";import"./use-deployment-admin-BTOwWmd_.js";import"./admin-fetch-BhTJlAsX.js";import"./command-DCUf4RGf.js";import"./index-mxlRzmxc.js";import"./integration-icon-BPaLmZuD.js";import"./project-icon-D3VravgB.js";import"./use-navigate-to-agent-DtRhmnlg.js";import"./use-debounced-value-BAQPYGcf.js";import"./new-project-dialog-MxeroDTr.js";import"./label-CzgbmbQw.js";import"./repository-picker-BQc3OAcG.js";import"./github-icon-1x8ZI6aO.js";import"./useInfiniteQuery-Bz8irSN1.js";import"./infiniteQueryObserver-oJohchTM.js";import"./collection-search-j-a5PWZI.js";import"./legacy-admin-welcome-dialog-D_Hj5ND0.js";import"./drawer-DRyRdlMw.js";import"./required-auth-layout-BszE36jh.js";import"./use-org-sso-COBiertF.js";import"./sheet-mGT77pmX.js";import"./resizable-B34lmUXk.js";import"./core.esm-B-QMfivo.js";import"./sortable.esm-Dw4xFH50.js";import"./context-menu-B7ywEyjT.js";import"./create-organization-dialog-CfD4gWck.js";import"./form-B_7ux469.js";import"./project-apps-Oyn1Gnz0.js";import"./use-recent-apps-CnCq1w_A.js";import"./feedback-BqoIMOg7.js";import"./textarea-DM0e8Qi7.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-BZs_wcMW.js";import"./use-blocks-v8-project-Ol6SuT-M.js";import"./use-voice-input-seZQKt1s.js";import"./popover-DbdL41A-.js";import"./index-CFoO-AVG.js";import"./checkbox-JFndFNuZ.js";import"./select-C2TZ6w0T.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-BoDmGD4u.js";import"./sandbox-git-api-Bxa573Th.js";import"./save-status-Cf9701GC.js";import"./use-never-published-CqQvHtX-.js";import"./hosted-reconcile-J9x487tr.js";import"./blocks-tab-states-DdvH_zgH.js";import"./empty-state-GIO1CyUk.js";import"./search-input-DbkaTSNM.js";import"./tabs-DgvT8Pj5.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-CG-6B_hv.js";import"./asset-utils-B-KuVMuY.js";import"./usage-stats-Dr1e2NVB.js";import"./tool-namespace-DBtCIV7f.js";import"./utils-CVEq3hMx.js";import"./markdown-Ck8Lzm4U.js";import"./use-copy-B2pKd0TM.js";import"./switch-B0tv99B3.js";import"./toggle-group-Cu1mfNzX.js";import"./match-site-slug-config-B47_xZCi.js";import"./sandbox-lifecycle-context-oW4CAFSP.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./frame-navigation-BFx5wDUC.js";import"./variant-matcher-override-CbZkMadE.js";import"./section-array-field-ah4STHLi.js";import"./use-fast-preview-draft-url-OHnSoOh2.js";import"./parse-sections-C45nXdFm.js";import"./held-block-view-CwWI05W1.js";import"./calendar-DD1b_D7F.js";import"./editor-classes-D9FopdtJ.js";import"./empty-message-ILKuHEfQ.js";import"./pair-Cd8NH003.js";import"./collapsible-B4lmmxiu.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Bo8RWBFo.js";import"./types-Bz47I97G.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-connection-Lv1GX4XO.js";import"./use-mcp-prompts-Dtbvjt4h.js";import"./use-thread-outputs-CN7E968n.js";import"./file-type-icon-CLz3IVP9.js";import"./named-rule-step-DvAWHM_a.js";import"./slider-_L8nnrvM.js";import"./index-B-Ig6PCZ.js";import"./tooltipContext-BptH8Zj7.js";import"./CategoricalChart-DplIvctj.js";import"./index-BW4kEj0q.js";import"./combobox-CBPCAqF_.js";import"./scroll-area-mLdPDQZk.js";import"./monaco-editor-Dfffv6IO.js";import"./editor-FceeQfS7.js";import"./useQueries-BruvTC1j.js";import"./device-hint-CwVsFX34.js";import"./alert-I1_CrCmh.js";import"./virtual-mcp-BJ1dRL5Y.js";import"./url-slug-BR0vmMxN.js";import"./app-preview-url-9Od4s8Sz.js";import"./agent-capabilities-DWTuevMP.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-xW_FzRqh.js";import"./delete-copy-CPJVDDbB.js";import"./category-tree-ArvPlYX5.js";import"./use-move-blocks-FpNNMdYb.js";import"./index-rmNLmONI.js";import"./view-header-tBobsCC8.js";import"./use-cms-publish-actions-B-aKIQS2.js";import"./use-content-sync-CSFDJJ2I.js";import"./use-delete-block-y2vOypSK.js";import"./item-actions-1298TOwC.js";import"./date-utils-CrvIKg-s.js";import"./badge-BGmWPELn.js";import"./empty-state-BmCMJHsS.js";import"./mustache-DTIKPLCX.js";import"./collection-table-wrapper-BbdjpVWW.js";import"./table-CV4RoALe.js";import"./site-draft-actions-BWcvrVJJ.js";import"./separator-D7JbMKRF.js";import"./cms-store-drafts-Cp0f_S-1.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-D4fWOfQV.js";import"./input-8RS_xi7t.js";import"./icon-button-DoWTRkdN.js";import"./chat-draft-BsgbOfj3.js";import"./use-deco-credits-DHv1UkQ9.js";import"./input-BKW9wk8M.js";import"./suggestion-CV5YiylC.js";import"./use-org-fs-Cd0Vep23.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DrXSdvNQ.js";import"./plan-ladder-ClYEg_1y.js";import"./add-connection-dialog-ZYFX175e.js";import"./extract-connection-data-BKW6jN3t.js";import"./metadata-D72DunRR.js";import"./connection-CG7u8AbM.js";import"./connection-card-C5XxA3Cv.js";import"./connection-slug-C9_jBSFl.js";import"./schema-gnANfn26.js";import"./connection-form-helpers-B2Vjms_B.js";import"./authenticate-and-persist-oauth-DOEkiQ_u.js";import"./mcp-oauth-D2OwpRg0.js";import"./mcp-oauth-3agwb6e9.js";import"./collection-tabs-DHj6Urx3.js";import"./use-infinite-scroll-uPmbLXy7.js";import"./useSuspenseInfiniteQuery-DKXKbUjm.js";import"./use-task-board-events-n_cm8Gyp.js";import"./save-changes-debug-nBi-n9eV.js";import"./site-draft-view-BYRbX7hq.js";import"./blog-view-gate-BPhH6bKz.js";function I(o){return o.kind==="unavailable"&&o.source==="local"&&(o.problem?.reason??"not-answering")==="not-answering"}const et=o=>o;function it(o){const t=u.c(10),{candidates:e,invalidLink:c,shell:m,editor:i}=o,r=c===void 0?!1:c,s=m===void 0?et: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]!==e||t[5]!==r?(a=n.jsx(rt,{candidates:e,invalidLink:r,onConnect:l}),t[4]=e,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 rt(o){const t=u.c(17),{candidates:e,invalidLink:c,onConnect:m}=o,i=c===void 0?!1:c,[r]=G(),{language:s}=r;let p;t[0]!==m?(p=N=>m({endpoint:N}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==e||t[3]!==p?(l={candidates:e,onFound:p},t[2]=e,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==e||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(e.map(T)),t[5]=e,t[6]=s,t[7]=k):k=t[7];const C=k;let S;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(S=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]=S):S=t[12];const _=S;let j;return t[13]!==C||t[14]!==i||t[15]!==_?(j=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=j):j=t[16],j}const v="deco-serve",w="working-tree",nt={id:"",slug:"",name:"",logo:null},st={id:v,slug:v},mt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function pt(){const o=window.location.hash,t=new URLSearchParams(o.replace(/^#/,"")).has("endpoint"),e=t?J(o):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),e&&K(e),{candidates:W(e,U()),invalidLink:t&&!e}}const at=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function ct(){const o=u.c(6),t=P();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:lt},o[0]=e):e=o[0];const c=O(e);let m;o[1]!==t||o[2]!==c?(m=at.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(H,{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(Z,{icon:tt({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),o[1]=t,o[2]=c,o[3]=m):m=o[3];let i;return o[4]!==m?(i=n.jsx(y.Tabs,{children:m}),o[4]=m,o[5]=i):i=o[5],i}function lt(o){return o.matches.at(-1)?.staticData.siteEditorView}function A(o){const t=u.c(14),{children:e}=o,c=P(),{connection:m}=z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==e||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=e;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]=e,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 dt(o){const t=u.c(6),{onLost:e}=o,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]!==e?(r=()=>{i&&e()},s=[i,e],t[2]=i,t[3]=e,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const D={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ut(){const o=u.c(11),{data:t}=E.useSession();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ft},o[0]=e):e=o[0];const c=O(e),m=!!t?.user;let i;o[1]!==m?(i={rail:m},o[1]=m,o[2]=i):i=o[2];const r=c??"preview";let s,p,l;o[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(ct,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),o[3]=s,o[4]=p,o[5]=l):(s=o[3],p=o[4],l=o[5]);let a;o[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...D,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),o[6]=r,o[7]=a):a=o[7];let d;return o[8]!==i||o[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),o[8]=i,o[9]=a,o[10]=d):d=o[10],d}function ft(o){return o.matches.at(-1)?.staticData.siteEditorView}function ht(o){const t=u.c(8),{children:e}=o,{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]!==e?(s=n.jsx(L.Content,{children:n.jsxs(x,{...D,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:e})]})}),t[3]=e,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=()=>{},vt={connection:null,set:b,clear:b};function fr(){const o=u.c(3),[t]=g.useState(pt);let e;return o[0]!==t.candidates||o[1]!==t.invalidLink?(e=n.jsx(F,{org:nt,project:st,children:n.jsx(it,{candidates:t.candidates,invalidLink:t.invalidLink,shell:kt,editor:xt})}),o[0]=t.candidates,o[1]=t.invalidLink,o[2]=e):e=o[2],e}function xt(o,t){return n.jsxs($.Provider,{value:{connection:o,set:b,clear:b},children:[n.jsx(dt,{onLost:t}),n.jsx(M,{value:mt,children:n.jsx(V,{children:n.jsx(ut,{})})})]})}function kt(o){return n.jsx($.Provider,{value:vt,children:n.jsx(ht,{children:o})})}function hr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(A,{children:n.jsx(Q,{virtualMcpId:v})}),o[0]=t):t=o[0],t}function vr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(A,{children:n.jsx(Y,{virtualMcpId:v})}),o[0]=t):t=o[0],t}export{vr as SiteEditorContent,hr as SiteEditorPreview,fr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,q as G,i as C,K as g,es as Qe,ct as Bn,aF as Lt,aG as K,bl as Ce,bu as Fn,dB as Ie,dz as Vn,et as Se,eu as Hn,ev as Jn,r as L,ew as Wn,ex as Y,ey as Z,bA as Gn,a as Yn,at as Te,a4 as zn,bw as Ut,ez as Xn,eA as Qt,ar as Zn,bp as B,eb as Ct,eB as qn,eC as Kn,eD as eo,t as ne,j as X}from"./index-D9wygnbU.js";import{u as Be}from"./repository-binding-C2KfYomQ.js";import{e as Bt}from"./backoff-CrEUbyZT.js";import{b as ye}from"./sandbox-url-D3mC8qhT.js";import{u as to}from"./chat-context-B9rZ1ojJ.js";import{i as no,u as oo}from"./use-sandbox-events-BZs_wcMW.js";import{u as Fe}from"./use-blocks-v8-project-Ol6SuT-M.js";import{u as Ft}from"./use-voice-input-seZQKt1s.js";import{s as ft}from"./thread-intent-CaGJ1BhS.js";import{s as so}from"./utils-BoDmGD4u.js";import{a as ro}from"./sandbox-git-api-Bxa573Th.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 S 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 S(t.code,t.message,t.data)}}const te="deco-content",Re={major:1},Vt=1;async function io(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 xe={major:Re.major,minor:Vt},Ht=`the endpoint speaks an older ${te} than this client needs (${xe.major}.${xe.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function ae(e,t,n){const o={reason:t,required:{...xe}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const s=n.server;typeof s?.name=="string"&&typeof s.version=="string"&&(o.server={name:s.name,version:s.version})}return new S(w.Unsupported,e,o)}function Jt(e){const t=e??{},{protocol:n,version:o}=t;if(n!==te)throw ae(`the endpoint speaks ${JSON.stringify(n)}, not ${te}`,"protocol",t);if(o?.major!==Re.major)throw ae(`the endpoint speaks ${te} ${String(o?.major)}.x; this client speaks ${Re.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<Vt)throw ae(Ht,"outdated",t);return e}function dt(e,t){return t.code===w.MethodNotFound&&e.startsWith("changes.")?ae(Ht,"outdated"):S.from(t)}function Ve(e){const t=e.fetch??(r=>fetch(r));let n=1;async function o(r){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(r)}));let c;try{c=await io(a)}catch{throw new S(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?S.from(l):new S(w.Unavailable,`the endpoint answered HTTP ${a.status}`)}return c}const s=async(r,i)=>{const a=n++,c=await o({jsonrpc:"2.0",id:a,method:r,params:i??{}});if(c.error)throw dt(r,c.error);return c.result};return{call:s,describe:async()=>Jt(await s("describe")),schemaGet:r=>s("schema.get",r),blocksList:r=>s("blocks.list",r),blocksApply:r=>s("blocks.apply",r),changesList:r=>s("changes.list",r),changesGet:r=>s("changes.get",r),changesDiscard:r=>s("changes.discard",r),async batch(r){const i=r.map(()=>n++),a=await o(r.map((l,u)=>({jsonrpc:"2.0",id:i[u],method:l.method,params:l.params??{}}))),c=new Map(a.map(l=>[l.id,l]));return i.map((l,u)=>{const d=c.get(l);return d?d.error?{ok:!1,error:dt(r[u].method,d.error)}:{ok:!0,result:d.result}:{ok:!1,error:new S(w.InternalError,"no response for this call")}})}}}function He(e){return e&&!e.edited?{ifNoneMatch:e.revision}:{}}const ht=20,gt=5,vt=500;function Je(e){return e instanceof S?e.code===w.MethodNotFound?!0:e.code===w.Unsupported&&e.data?.reason==="outdated":!1}function de(e,t,n=e){return n&&n!==e?n:t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function ao(e,t,n){const o=g.contentChanges(n),s=e.getQueryData(o),r=await t.changesList(He(s)),i=de(s,r,e.getQueryData(o));if(i)return i;const a=await t.changesList({}),c=de(void 0,a,e.getQueryData(o));if(!c)throw new S(w.InternalError,"changes.list returned notModified without a cached list");return c}async function Wt(e,t){const n=[];for(let r=0;r<t.length;r+=ht)n.push(t.slice(r,r+ht));const o=Object.create(null),s=[];for(let r=0;r<n.length;r+=gt){const i=await e.batch(n.slice(r,r+gt).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),s.push(...c.diagnostics)}}return{entries:o,diagnostics:s}}async function Ar(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=vt){const s=t.slice(o,o+vt),r=await e.changesDiscard({names:s.map(i=>i.name),ifMatch:Object.fromEntries(s.map(i=>[i.name,i.version]))});n={revision:r.revision,versions:{...n.versions,...r.versions}}}return n}function Mr(e){return e instanceof S&&e.code===w.Conflict}function We(e){return e?.kind==="protocol"?e:null}function Lr(e,t,n){const o=N.c(14);let s;o[0]!==n?(s={},o[0]=n,o[1]=s):s=o[1];const r=s,i=G();let a;o[2]!==e?(a=We(e),o[2]=e,o[3]=a):a=o[3];const c=a,l=!!c&&!!t&&r.enabled!==!1;let u;o[4]!==t?(u=g.contentChanges(t??""),o[4]=t,o[5]=u):u=o[5];let d;o[6]!==t||o[7]!==l||o[8]!==c||o[9]!==i?(d=l?()=>ao(i,c.client,t):Qe,o[6]=t,o[7]=l,o[8]=c,o[9]=i,o[10]=d):d=o[10];let f;return o[11]!==u||o[12]!==d?(f={queryKey:u,queryFn:d,staleTime:0},o[11]=u,o[12]=d,o[13]=f):f=o[13],C(f)}function co(e){if(!e)return"";const t=Object.entries(e.changes).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>[n,o.kind,o.version,o.baseVersion]);return JSON.stringify([e.revision,e.base.revision,e.base.resolvedRef,t])}function Ur(e,t,n){const o=N.c(14);let s;o[0]!==e?(s=We(e),o[0]=e,o[1]=s):s=o[1];const r=s;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,c=!!r&&!!t&&!!n&&a.length>0;let l;o[4]!==t||o[5]!==n?(l=g.contentChangeSides(t??"",co(n)),o[4]=t,o[5]=n,o[6]=l):l=o[6];let u;o[7]!==c||o[8]!==a||o[9]!==r?(u=c?()=>Wt(r.client,a):Qe,o[7]=c,o[8]=a,o[9]=r,o[10]=u):u=o[10];let d;return o[11]!==l||o[12]!==u?(d={queryKey:l,queryFn:u,staleTime:Number.POSITIVE_INFINITY},o[11]=l,o[12]=u,o[13]=d):d=o[13],C(d)}function Qr(e,t,n){const o=N.c(16);let s;o[0]!==e?(s=We(e),o[0]=e,o[1]=s):s=o[1];const r=s;let i,a,c,l;if(o[2]!==t||o[3]!==n?.changes||o[4]!==r){const f=Object.entries(n?.changes??{}).filter(go).map(ho).sort(fo);a=f.map(uo);const h=JSON.stringify(f.map(lo));i=!!r&&!!t&&a.length>0,l=C,c=g.contentDeletedCopies(t??"",h),o[2]=t,o[3]=n?.changes,o[4]=r,o[5]=i,o[6]=a,o[7]=c,o[8]=l}else i=o[5],a=o[6],c=o[7],l=o[8];let u;o[9]!==i||o[10]!==a||o[11]!==r?(u=i?async()=>{const f=await Wt(r.client,a),h=Object.create(null);for(const[v,b]of Object.entries(f.entries))h[v]=b.before&&typeof b.before=="object"?b.before:null;return h}:Qe,o[9]=i,o[10]=a,o[11]=r,o[12]=u):u=o[12];let d;return o[13]!==c||o[14]!==u?(d={queryKey:c,queryFn:u,staleTime:Number.POSITIVE_INFINITY,placeholderData:Bn},o[13]=c,o[14]=u,o[15]=d):d=o[15],l(d)}function lo(e){return[e.name,e.base]}function uo(e){return e.name}function fo(e,t){return e.name<t.name?-1:e.name>t.name?1:0}function ho(e){const[t,n]=e;return{name:t,base:n.baseVersion??""}}function go(e){const[,t]=e;return t.kind==="delete"}function Gt(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 he(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 Yt=Lt({endpoint:K().max(2048).refine(e=>Gt(e)&&new URL(e).pathname==="/rpc").transform(he)});function Cr(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=Yt.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function zt(e){const t=Yt.safeParse(e);return t.success?t.data:null}const Xt="studio:deco-serve-last";function Br(e){try{localStorage.setItem(Xt,JSON.stringify(e))}catch{}}function Fr(){try{const e=localStorage.getItem(Xt);return e?zt(JSON.parse(e)):null}catch{return null}}function Vr(e){try{return new URL(he(e)).host}catch{return e}}function vo(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const bo="http://localhost:4545/rpc";class Ge extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function po(e){if(e instanceof Ge)return{reason:"not-deco-serve"};if(!(e instanceof S))return{reason:"not-answering"};switch(e.code){case w.Unauthorized:case w.MethodNotFound:return{reason:"outdated"};case w.Unsupported:return Je(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 Hr(e,t){if(e)return[he(e.endpoint)];const n=[t?.endpoint,bo].filter(o=>!!o).map(he);return[...new Set(n)]}const mo=Lt({blocks:Ie(K(),Ie(K(),Vn()).refine(Ce)),versions:Ie(K(),K().min(1)),missing:Fn(K())});function wo(e,t){const n=mo.parse(e),o=Object.keys(n.blocks),s=Object.keys(n.versions),r=[...o,...n.missing],i=new Set(t);if(s.length!==o.length||o.some(a=>!Object.hasOwn(n.versions,a))||r.length!==i.size||new Set(r).size!==r.length||r.some(a=>!i.has(a)))throw new Error("The CMS block response did not account for the requested names");return n}function oe(e,t){const n=e.index?.entries[t];return!!n&&Ce(e.blocks[t])&&e.versions[t]===n.version}function So(e,t,n){const o=new Map;let s=!1;for(const[r,i]of Object.entries(n.blocks)){const a=t.index?.entries[r];if(a){if(n.versions[r]!==a.version){s||=a.version===e.index?.entries[r]?.version;continue}t.blocks[r]!==e.blocks[r]||t.versions[r]!==e.versions[r]||o.set(r,i)}}return s||=n.missing.some(r=>!!t.index?.entries[r]),{blocks:o.size?{...t.blocks,...Object.fromEntries(o)}:t.blocks,versions:o.size?{...t.versions,...Object.fromEntries([...o.keys()].map(r=>[r,n.versions[r]]))}:t.versions,refreshIndex:s}}function yo(e,t,n){return!!e.index&&t.every(o=>e.index?.entries[o]?oe(e,o)&&(!n||n[o]===e.blocks[o]):!n||n[o]===void 0)}const bt=50,pt=10;function ko(e,t=n=>fetch(n)){let n=1;return{async batch(o){const s=o.map(()=>n++),r=await t(new Request(e,{method:"POST",headers:{"content-type":"application/json"},credentials:"include",signal:Se(),body:JSON.stringify(o.map((c,l)=>({jsonrpc:"2.0",id:s[l],method:c.method,params:c.params??{}})))}));if(!r.ok)throw new S(w.Unavailable,`the hosted CMS answered ${r.status}`);const i=await r.json(),a=new Map((Array.isArray(i)?i:[]).map(c=>[c.id,c]));return s.map(c=>{const l=a.get(c);return l?l.error?{ok:!1,error:S.from(l.error)}:{ok:!0,result:l.result}:{ok:!1,error:new S(w.InternalError,"no response for this call")}})}}}function Oo(e,t){if(!e)return t??{};const n={};for(const[o,s]of Object.entries(e.entries)){if(t&&Object.hasOwn(t,o)){n[o]=t[o];continue}n[o]={[Jn]:!0,...s.meta?.type?{__resolveType:s.meta.type}:{},...s.meta?.path!==void 0?{path:s.meta.path}:{},...s.meta?.refs?.length?{[Hn]:s.meta.refs}:{}}}for(const[o,s]of Object.entries(t??{}))Object.hasOwn(n,o)||(n[o]=s);return n}function Eo(e,t){return e?.entries[t]?.meta?.refs??[]}function Do(e,t){return Object.hasOwn(e.draft,t)?e.draft[t]?.version??null:null}function Ye(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Pe(e,t){if(Array.isArray(e)){for(const n of e)Pe(n,t);return}if(Ye(e))for(const[n,o]of Object.entries(e))n==="__resolveType"&&typeof o=="string"?t.add(o):Pe(o,t)}function Zt(e,t){if(!Ye(e))return;const n={};typeof e.__resolveType=="string"&&(n.type=e.__resolveType),typeof e.path=="string"&&(n.path=e.path);const o=new Set;Pe(e,o);const s=[...o].filter(r=>t.has(r)).sort();return s.length>0&&(n.refs=s),Object.keys(n).length>0?n:void 0}function qt(e,t,n,o){Y(e),e.setQueryData(g.contentIndex(t),s=>{if(!s)return s;const r={...s.entries},i={...s.draft},a=new Set([...Object.keys(r),...Object.keys(o)]);for(const[c,l]of Object.entries(n)){const u=i[c]?.editor??null;if(l===null||l===Z){delete r[c],i[c]={operation:"delete",version:Z,editor:u};continue}const d=Zt(o[c],a);r[c]={version:l,...d?{meta:d}:{}},i[c]={operation:"set",version:l,editor:u}}return{...s,entries:r,draft:i}})}function Io(e,t,n,o){e.setQueryData(g.contentIndex(t),s=>{if(!s)return s;const r={...s.draft},i={...s.entries};if(o===null)delete r[n];else if(r[n]={operation:o.block===null?"delete":"set",version:o.version,editor:r[n]?.editor??null},o.block===null)delete i[n];else{const a=new Set([...Object.keys(i),n]),c=Zt(o.block,a);i[n]={version:o.version,...c?{meta:c}:{}}}return{...s,entries:i,draft:r}})}const mt=new WeakMap;async function ze(e,t,n,o,s=new Set){const r=e.getQueryData(g.contentIndex(n));if(!r)throw new S(w.Unavailable,"The CMS index is not loaded yet");let i=mt.get(e);i||(i=new Map,mt.set(e,i));const a=e.getQueryData(g.decofile(n))??{},c=e.getQueryData(g.contentVersions(n))??{},l=[],u=[];for(const f of new Set(o)){const h=r.entries[f];if(!h||s.has(f)||Ce(a[f])&&c[f]===h.version)continue;const v=i.get(`${n}\0${f}`);v?l.push(v):u.push(f)}if(u.length>0){const f=To(e,t,n,u);for(const h of u){const v=`${n}\0${h}`;i.set(v,f),f.catch(()=>{}).finally(()=>{i.get(v)===f&&i.delete(v)})}l.push(f)}await Promise.all(l);const d=ge(e,n);if(o.some(f=>d.index?.entries[f]&&!s.has(f)&&!oe(d,f)))throw new S(w.Unavailable,"A CMS block changed while loading; try again")}async function _o(e,t,n,o,s){if(!t){const i=o?.[s];return Ye(i)&&!Gn(i)?i:void 0}await ze(e,t,n,[s]);const r=ge(e,n);return r.index?.entries[s]&&oe(r,s)?r.blocks[s]:void 0}function ge(e,t){return{index:e.getQueryData(g.contentIndex(t)),blocks:e.getQueryData(g.decofile(t))??{},versions:e.getQueryData(g.contentVersions(t))??{}}}async function To(e,t,n,o){const s=ge(e,n),r=[];for(let i=0;i<o.length;i+=bt)r.push(o.slice(i,i+bt));for(let i=0;i<r.length;i+=pt){const a=r.slice(i,i+pt),c=await t.batch(a.map(l=>({method:"cms.blocks",params:{names:l}})));if(c.length!==a.length)throw new S(w.InternalError,"Incomplete CMS batch response");for(const[l,u]of c.entries()){if(!u.ok)throw u.error;const d=wo(u.result,a[l]),f=ge(e,n),h=So(s,f,d);if(Y(e),h.blocks!==f.blocks&&e.setQueryData(g.decofile(n),h.blocks),h.versions!==f.versions&&e.setQueryData(g.contentVersions(n),h.versions),h.refreshIndex)throw e.invalidateQueries({queryKey:g.decofile(n),exact:!0},{cancelRefetch:!1}),new S(w.Unavailable,"The CMS index changed while loading blocks; try again")}}}function Xe(e){const t=N.c(4);let n;t[0]!==e?(n=g.contentIndex(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Ro,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s}async function Ro(){throw new Error("the content index is set by the poll")}function wt(e,t){const n=N.c(8);let o;n[0]!==t?(o=Wn(t),n[0]=t,n[1]=o):o=n[1];const s=o;let r;n[2]!==e||n[3]!==s?(r=a=>e.getQueryCache().subscribe(c=>{c.query.queryHash===s&&a()}),n[2]=e,n[3]=s,n[4]=r):r=n[4];let i;return n[5]!==e||n[6]!==t?(i=()=>e.getQueryData(t),n[5]=e,n[6]=t,n[7]=i):i=n[7],L.useSyncExternalStore(r,i)}const St=3e4;function xo(e){if(!(e instanceof S))return;const t=e.data?.retryAfterMs;return typeof t=="number"&&t>0?t:void 0}function Po(e,t,n,o){const s=N.c(15),r=G(),i=Xe(t);let a;s[0]!==t?(a=g.decofile(t),s[0]=t,s[1]=a):a=s[1];const c=wt(r,a);let l;s[2]!==t?(l=g.contentVersions(t),s[2]=t,s[3]=l):l=s[3];const u=wt(r,l),d=o?.withRefs??!1,f=new Set(n);if(d)for(const m of n)for(const E of Eo(i,m))f.add(E);const h=[...f].filter(m=>!!i?.entries[m]).sort(),v={index:i,blocks:c??{},versions:u??{}},b=h.some(m=>!oe(v,m)),p=JSON.stringify(h.map(m=>[m,i?.entries[m]?.version,oe(v,m)])),[R,k]=L.useState(null),[$,I]=L.useState(0),_=R?.key===p?R:null;L.useEffect(()=>{if(!e||!p)return;let m=!0;const E=JSON.parse(p).map($o);return ze(r,e,t,E).then(()=>{m&&k(j=>j?.key===p?null:j)},j=>{m&&k(U=>({key:p,count:(U?.key===p?U.count:0)+1,retryAfterMs:xo(j)}))}),()=>{m=!1}},[e,r,t,p,$]);let T;s[4]!==_||s[5]!==I?(T=()=>{if(!_)return;const m=Math.min(St,_.retryAfterMs??Bt(St,1e3,_.count-1,2,.5)),E=setTimeout(()=>I(jo),m);return()=>clearTimeout(E)},s[4]=_,s[5]=I,s[6]=T):T=s[6];let y;s[7]!==_?(y=[_],s[7]=_,s[8]=y):y=s[8],L.useEffect(T,y);const O=!e||yo(v,[...f],o?.listing),D=!!e&&b&&_!==null;let x;s[9]!==I?(x=()=>I(No),s[9]=I,s[10]=x):x=s[10];let A;return s[11]!==O||s[12]!==D||s[13]!==x?(A={ready:O,failed:D,retry:x},s[11]=O,s[12]=D,s[13]=x,s[14]=A):A=s[14],A}function No(e){return e+1}function jo(e){return e+1}function $o(e){const[t]=e;return t}const Kt=L.createContext(null);function Ao(e){const t=N.c(24),n=L.useContext(Kt),o=Fe(n?null:e),{data:s}=Yn.useSession(),r=s?.user?.id??"",i=!!e&&!!r;let a;t[0]!==i||t[1]!==r||t[2]!==e?(a=i?Te.decoServeConnection(r,e):null,t[0]=i,t[1]=r,t[2]=e,t[3]=a):a=t[3];const[c,l]=kt(a);let u;t[4]!==i||t[5]!==r||t[6]!==e?(u=i?Te.decoServeEndpoint(r,e):null,t[4]=i,t[5]=r,t[6]=e,t[7]=u):u=t[7];const[d,f]=kt(u);if(n)return n;let h;t[8]!==c||t[9]!==i||t[10]!==o?(h=i&&o?zt(c):null,t[8]=c,t[9]=i,t[10]=o,t[11]=h):h=t[11];const v=h,b=i&&o&&typeof d=="string"?d:null;let p;t[12]!==f||t[13]!==l||t[14]!==i?(p=$=>{i&&(l($),f($.endpoint))},t[12]=f,t[13]=l,t[14]=i,t[15]=p):p=t[15];let R;t[16]!==l||t[17]!==i?(R=()=>{i&&l(null)},t[16]=l,t[17]=i,t[18]=R):R=t[18];let k;return t[19]!==v||t[20]!==b||t[21]!==p||t[22]!==R?(k={connection:v,lastEndpoint:b,set:p,clear:R},t[19]=v,t[20]=b,t[21]=p,t[22]=R,t[23]=k):k=t[23],k}function yt(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function kt(e){const t=N.c(17),n=G(),o=e??"";let s;t[0]!==o?(s=["localStorage",o],t[0]=o,t[1]=s):s=t[1];const r=s;let i,a;t[2]!==e?(i=()=>e?yt(e):null,a=()=>e?yt(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const c=!!e;let l;t[5]!==r||t[6]!==i||t[7]!==a||t[8]!==c?(l={queryKey:r,queryFn:i,initialData:a,enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=r,t[6]=i,t[7]=a,t[8]=c,t[9]=l):l=t[9];const{data:u}=C(l);let d;t[10]!==e||t[11]!==n||t[12]!==r?(d=b=>{if(e){try{b===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(b))}catch{}n.setQueryData(r,b)}},t[10]=e,t[11]=n,t[12]=r,t[13]=d):d=t[13];const f=d,h=e?u??null:null;let v;return t[14]!==f||t[15]!==h?(v=[h,f],t[14]=f,t[15]=h,t[16]=v):v=t[16],v}function en(e,t=""){return{source:e,cacheKeySuffix:e==="github"?"":e==="sandbox"?":sandbox":`:serve:${t}`}}function Mo(e){return JSON.stringify([e.kind==="legacy"?"legacy":"protocol",e.source,e.cacheKeySuffix])}function Jr(e){return e.kind==="protocol"||e.kind==="unavailable"}function Wr(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n===null||n==="legacy"?t:!0}function Gr(e,t,n){return t!=="github"||!n?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function Yr(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&Gt(t)?t:null}function zr(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function tn(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function Lo(e){if(!e.hasProject)return"legacy";const t=tn(e);if(t==="local")return"protocol-local";if(!e.v8)return"legacy";if(t==="sandbox"){const o=e.sandboxSite;return o==="ready"?"protocol-sandbox":o==="error"?"retrying-sandbox":"pending"}const n=e.githubSite;return n==="ready"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":"pending"}function Uo(e){return{github:e.v8&&e.mode==="github",sandbox:e.v8&&e.mode==="sandbox"&&e.workingTreeReady}}function Ot(e){return e.isError||e.errorUpdateCount>0}function Qo(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const s of n)Object.hasOwn(t,s)?o[s]=t[s]:delete o[s];return o}function Co(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}const nn="__noSchema";function on(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[nn]:!0}}function Xr(e){return!!e&&e[nn]===!0}function Ze(e){if(!e.ok)return e.error.code===w.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function Bo(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const Fo=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function Zr(e){const t=new Map;for(const[n,o]of Object.entries(e)){const s=o&&typeof o=="object"&&!Array.isArray(o)?o:{},r=typeof s.__resolveType=="string"?s.__resolveType:null,i=t.get(r)??[];i.push({key:n,label:Bo(n,s)}),t.set(r,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(Fo)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:Et(n.resolveType).localeCompare(Et(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function Et(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function Dt(e,t,n){if(t.length===0)return n;const[o,...s]=t;if(Array.isArray(e)&&typeof o=="number"){const r=e.slice();return r[o]=Dt(e[o],s,n),r}if(e&&typeof e=="object"&&typeof o=="string"){const r=e,i={};for(const a of Object.keys(r))i[a]=a===o?Dt(r[a],s,n):r[a];return i}return e}function qr(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class It extends Error{}const qe="site-not-owned";async function Vo(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function Ho(e,t=n=>fetch(n)){const n=Ve({endpoint:e,fetch:async o=>{const s=await t(new Request(o,{signal:Se(o.signal)}));if(await Vo(s))throw new It;return s}});try{return await et(n)}catch(o){if(o instanceof It)return qe;throw o}}async function Jo(e,t,n){await t();const o=await Ho(e,n);return o===qe?o:{...o,hosted:ko(e,n)}}const Ke=5e3;function Wo(e){if(!e.site)throw new Error("this project names no site");return Xn(e.site,e.branch)}function Go(e){return new URL(ye(e,"rpc"),window.location.origin).href}async function et(e){const[t,n]=await e.batch([{method:"describe"},{method:"schema.get"}]);if(!t?.ok)throw t?.error??new Error("no describe");if(t.result?.protocol!==te)throw new Ge;const s=Jt(t.result);if(!n)throw new Error("no schema.get");if(Ze(n))return{client:e,describe:s,hasSchema:!1};if(n.ok)return{client:e,describe:s,hasSchema:!0};throw n.error}function Yo(e,t=n=>fetch(n)){return et(Ve({endpoint:e,fetch:n=>t(new Request(n,{signal:Se(n.signal)}))}))}function re(e,t){const n=N.c(40),{org:o}=zn(),{connection:s}=Ao(e),{runtime:r}=Ft(e),i=L.useContext(Kt),a=Fe(e),c=Ut(Be(e)?.metadata),l=tn({hasServeConnection:!!s,runtime:r}),u=en(l,s?.endpoint??""),d=to()?.taskId??null,f=no(oo().lifecycle.phase),h=G(),v=Uo({mode:l,v8:a,workingTreeReady:f}),b=v.github&&!!o.slug&&!!e&&!!t,p=C({queryKey:g.contentBackend(o.slug,e??"",t??"","github"),queryFn:()=>Jo(Wo({orgSlug:o.slug,site:c,branch:t}),()=>Qt(c,t)),enabled:b,staleTime:Number.POSITIVE_INFINITY,..._t}),R=v.sandbox&&!!o.slug&&!!e&&!!t;let k;n[0]!==t||n[1]!==o.slug||n[2]!==d||n[3]!==e?(k=()=>Yo(Go({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:d})),n[0]=t,n[1]=o.slug,n[2]=d,n[3]=e,n[4]=k):k=n[4];const $=C({queryKey:g.contentBackend(o.slug,e??"",t??"","sandbox",d??""),queryFn:k,enabled:R,staleTime:Number.POSITIVE_INFINITY,..._t}),I=!!s;let _;n[5]!==s?.endpoint||n[6]!==o.slug||n[7]!==e?(_=g.contentBackend(o.slug,e??"","local",s?.endpoint??""),n[5]=s?.endpoint,n[6]=o.slug,n[7]=e,n[8]=_):_=n[8];let T;n[9]!==s?(T=()=>ts(s.endpoint),n[9]=s,n[10]=T):T=n[10];let y;n[11]!==I||n[12]!==_||n[13]!==T?(y={queryKey:_,queryFn:T,enabled:I,staleTime:Number.POSITIVE_INFINITY,retry:Zo,retryDelay:Xo,refetchInterval:zo},n[11]=I,n[12]=_,n[13]=T,n[14]=y):y=n[14];const O=C(y);let D;n[15]!==s?.endpoint||n[16]!==o.slug||n[17]!==e?(D=g.contentBackend(o.slug,e??"","local",s?.endpoint??""),n[15]=s?.endpoint,n[16]=o.slug,n[17]=e,n[18]=D):D=n[18];const x=D;let A;n[19]!==s?.endpoint||n[20]!==o.slug||n[21]!==e?(A=g.contentBackend(o.slug,e??"","local-describe",s?.endpoint??""),n[19]=s?.endpoint,n[20]=o.slug,n[21]=e,n[22]=A):A=n[22];let m;n[23]!==O.data||n[24]!==x||n[25]!==h?(m=async()=>{try{return await O.data.client.describe()}catch(q){const Cn=q;throw h.invalidateQueries({queryKey:x,exact:!0},{cancelRefetch:!1}),Cn}},n[23]=O.data,n[24]=x,n[25]=h,n[26]=m):m=n[26];const E=!!O.data&&!i;let j;n[27]!==A||n[28]!==m||n[29]!==E?(j={queryKey:A,queryFn:m,enabled:E,refetchInterval:Ke,retry:!1},n[27]=A,n[28]=m,n[29]=E,n[30]=j):j=n[30];const M=C(j).data??O.data?.describe,Q=Lo({hasProject:!!e,hasServeConnection:!!s,runtime:r,v8:a,githubSite:p.data===qe?"not-owned":p.data?"ready":Ot(p)?"error":"loading",sandboxSite:qo({data:$.data,isError:Ot($),workingTreeReady:f})});if(Q==="pending")return{kind:"pending",...u};if(Q==="retrying-sandbox")return{kind:"pending",retrying:"sandbox",...u};if(Q==="legacy")return{kind:"legacy"};if(Q==="protocol-github")return{...Ne(u,p.data),site:c};if(Q==="site-not-owned-github")return{kind:"unavailable",...u,siteNotOwned:!0};if(Q==="protocol-sandbox")return Ne(u,$.data);if(Q==="unavailable-github"){let q;return n[31]!==u?(q={kind:"unavailable",...u},n[31]=u,n[32]=q):q=n[32],q}const P=O.error??O.failureReason,H=s?.endpoint??"";let J;return n[33]!==M||n[34]!==O.data||n[35]!==O.failureCount||n[36]!==O.isError||n[37]!==H||n[38]!==P?(J=es({probed:O.data,isError:O.isError,failureCount:O.failureCount,failure:P,describe:M,endpoint:H}),n[33]=M,n[34]=O.data,n[35]=O.failureCount,n[36]=O.isError,n[37]=H,n[38]=P,n[39]=J):J=n[39],J}function zo(e){return e.state.status==="error"||e.state.data?.hasSchema===!1?Ke:!1}function Xo(e){return vo(e+1)}function Zo(e,t){return!(t instanceof S)&&!(t instanceof Ge)}function qo(e){return e.data!==void 0?"ready":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const Ko=3;function es(e){const t=en("local",e.endpoint),n=e.probed?Ne(t,{...e.probed,describe:e.describe??e.probed.describe}):null;return e.isError||e.failureCount>0?n?.kind==="protocol"&&!e.isError&&e.failureCount<Ko?n:{kind:"unavailable",...t,problem:po(e.failure)}:n??{kind:"pending",...t}}const _t={retry:2,refetchInterval:e=>e.state.status==="error"?Ke:!1};function Ne(e,t){return{kind:"protocol",...e,client:t.client,describe:t.describe,hasSchema:t.hasSchema,...t.hosted?{hosted:t.hosted}:{}}}function ts(e,t){return et(Ve({endpoint:e,fetch:n=>fetch(n,{signal:Se(t?AbortSignal.any([t,n.signal]):n.signal)})}))}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 ns(e,t){return je({...e,protocolSuffix:t.cacheKeySuffix})}function os(e,t,n){return e?t==="pending"?{ready:!1,failed:!1}:t==="unavailable"?{ready:!1,failed:!0}:n:{ready:!0,failed:!1}}function ss(e,t){return JSON.stringify([e?.orgSlug,e?.virtualMcpId,e?.branch,Mo(t)])}function rs(e,t,n){const o=N.c(21),s=G(),r=re(e?.virtualMcpId,e?.branch),i=e&&r.kind==="protocol"&&r.hosted?r:null;let a;o[0]!==i||o[1]!==e?(a=i&&e?ns(e,i):"",o[0]=i,o[1]=e,o[2]=a):a=o[2];const c=Po(i?.hosted,a,t,n),l=e!==null;let u;o[3]!==r.kind||o[4]!==c||o[5]!==l?(u=os(l,r.kind,c),o[3]=r.kind,o[4]=c,o[5]=l,o[6]=u):u=o[6];const d=u,f=r.kind!=="legacy";let h;o[7]!==r||o[8]!==e?(h=ss(e,r),o[7]=r,o[8]=e,o[9]=h):h=o[9];let v;o[10]!==r.kind||o[11]!==r.source||o[12]!==c||o[13]!==s||o[14]!==e?(v=()=>{if(c.retry(),!e||r.kind!=="unavailable")return;const p=r.source;s.resetQueries({queryKey:g.contentBackend(e.orgSlug,e.virtualMcpId,...p==="local"?["local"]:[e.branch,p])})},o[10]=r.kind,o[11]=r.source,o[12]=c,o[13]=s,o[14]=e,o[15]=v):v=o[15];let b;return o[16]!==d||o[17]!==f||o[18]!==h||o[19]!==v?(b={...d,v8:f,scopeKey:h,retry:v},o[16]=d,o[17]=f,o[18]=h,o[19]=v,o[20]=b):b=o[20],b}function sn(e){const t=N.c(12);let n;t[0]!==e?(n=Te.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[s,r]=Zn(o,null),i=Fe(e);let a;t[2]!==s||t[3]!==e?(a=e?ft(s):null,t[2]=s,t[3]=e,t[4]=a):a=t[4];const l=i?null:a;let u,d;t[5]!==r?(u=h=>r(ft(h)),d=()=>r(null),t[5]=r,t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f;return t[8]!==l||t[9]!==u||t[10]!==d?(f={url:l,setUrl:u,clear:d},t[8]=l,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}const Tt=6e4,is=2147483647;function as(e,t){if(e===null||e.trim()==="")return Tt;const n=e.trim(),o=/^\d+(?:\.\d+)?$/.test(n)?Number(n)*1e3:/^[A-Za-z]{3}, /.test(n)?Math.max(0,Date.parse(n)-t):Number.NaN;return Number.isFinite(o)&&o>=0&&o<=is?o:Tt}class rn extends Error{constructor(t,n,o,s=Date.now()){super(t),this.status=n,this.name="ContentResponseError",this.retryAt=n===429?s+as(o,s):null}status;retryAt}function cs(e,t,n=Date.now()){const o=Bt(5e3,1e3,e,2,0);return t instanceof rn&&t.retryAt!==null?Math.max(o,t.retryAt-n):o}async function tt(e,t){const n=await e.json().catch(()=>null),o=n!==null&&typeof n=="object"&&"error"in n&&typeof n.error=="string"?n.error:`${t} failed (${e.status})`;throw new rn(o,e.status,e.headers.get("retry-after"))}function ls(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function Rt(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}function ke(e,t,n){return["decofile-write",e,t,n]}function us(e,t,n){return{id:ke(e,t,n).join(":")}}class nt extends Error{constructor(t,n,o=[],s=!1){super(n),this.blocks=t,this.fields=o,this.carriedStored=s,this.name="BlockConflictError"}blocks;fields;carriedStored}function ot(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function st(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function fs(e,t){return tt(e,t)}function ds(e,t,n){e.setQueryData(g.decofileDraft(ot(t)),n)}function hs(e,t){return e.getQueryData(g.decofileDraft(ot(t)))??null}async function gs(e,t){return(await fetch(st(e),{cache:"no-store",headers:{"if-none-match":`"${t}"`}}).catch(()=>null))?.status===200}function Kr(e){const t=N.c(4);let n;t[0]!==e?(n=g.decofileDraft(e?ot(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:vs,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s??null}async function vs(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function bs(e,t){const n=await fetch(st(t),{cache:"no-store"});if(!n.ok)return tt(n,"Read decofile");const o=await n.json();return o.token&&ds(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function ei(e,t){const n=await fetch(st(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const s=await n.json().catch(()=>({}));throw s.code==="block-conflict"?new nt(s.blocks??[],s.error??"Block changed"):new Error(s.error??`Save failed (${n.status})`)}if(!n.ok)return fs(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const an=3e3,ps=15e3,ms=2*6e4,cn={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function ws(e){return e<ms?an:ps}function Ss(e,t=cn){const n=t.now();let o=!1,s=!1,r=null;const i=()=>{o||(r=t.setTimeout(a,ws(t.now()-n)))},a=()=>{if(r=null,o)return;const{read:c,skip:l}=e();if(s||t.hidden()||l?.()){i();return}s=!0;let u;try{u=c()}catch{u=void 0}Promise.resolve(u).catch(()=>{}).finally(()=>{s=!1}),i()};return i(),()=>{o=!0,r!==null&&t.clearTimeout(r)}}const xt=()=>0;function ys(e,t,n=cn){const o=L.useRef(t);o.current=t;const[s]=L.useState(()=>({polling:()=>Ss(()=>o.current,n),idle:()=>()=>{}}));L.useSyncExternalStore(e?s.polling:s.idle,xt,xt)}function ln(e,t){return ye(e,t)}function ks(e,t){return ye(e,"preview-fetch",{path:t})}function ti(e){return ln(e,"preview-invoke")}function ni(e){return ln(e,"catalog-invoke")}function un(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 Os(){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&&un(n))return n}return null}function Es(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??Os();return n&&un(n)?new URL(t,n).toString():ks(e,t)}function Ds(e){return Es(e,"/.decofile")}function Is(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function Pt(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function _s(e,t){const n=ye(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),s=Is(o.status);if(s==="absent")return{kind:"absent"};if(s==="unavailable")return{kind:"unavailable"};if(s==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const r=await o.json();return typeof r.content!="string"?{kind:"unavailable"}:{kind:"data",data:so(r.content)}}async function Ts(e,t){const n=await _s(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function oi(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)return tt(n,"Read committed meta");try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function Rs(e){return Be(e)?.metadata?.runtime?.path??null}function $e(e,t,n,o){const s=B(e),r=Object.keys(n?.changes??{}).find(a=>B(a)===s);if(r!==void 0&&n)return n.changes[r].baseVersion;const i=Object.keys(t?.draft??{}).some(a=>B(a)===s);if(t&&!i){const a=Object.keys(t.entries).find(c=>B(c)===s);return a===void 0?null:t.entries[a].version}return o?.[e]??null}class fn extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function si(e){return e instanceof S&&e.code===w.Conflict}function dn(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}class rt extends Error{constructor(){super("The draft's changes couldn't be read"),this.name="HostedDraftUnreadError"}}class it extends Error{constructor(){super("The blocks kept changing while the change was saved"),this.name="HostedKeptChangingError"}}function ri(e,t){return(t instanceof rt||t instanceof it)&&(t.message=hn(e,t,"github")),t}function hn(e,t,n){if(t instanceof rt)return e("siteEditor.save.draftUnread");if(t instanceof it)return e("siteEditor.save.keptChanging");if(t instanceof nt)return t.message;if(n==="local")return Ps(e,t);if(t instanceof S)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 xs(e,t){if(t==="local"||e instanceof nt||e instanceof rt||e instanceof it)return null;if(e instanceof S){const n=e.code===w.InvalidBlock||e.code===w.InvalidParams?dn(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function Ps(e,t){if(t instanceof fn)return e("decoServe.save.serverGone");if(t instanceof S)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:dn(t)});case w.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function Ns(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function js(e,t){const[n,o]=L.useState(e),s=L.useRef(null);return e&&!n&&o(!0),L.useEffect(()=>{if(e){s.current??=Date.now();return}if(!n)return;const r=()=>{s.current=null,o(!1)},i=Ns(s.current,Date.now(),t);if(i===0){r();return}const a=setTimeout(r,i);return()=>clearTimeout(a)},[e,n,t]),n}const $s="decocms:content-writes",Ae=new Set;let z;function gn(){if(z!==void 0)return z;z=null;try{typeof BroadcastChannel=="function"&&(z=new BroadcastChannel($s),z.addEventListener("message",e=>{const t=e.data?.cacheKey;if(typeof t=="string")for(const n of[...Ae])n(t)}))}catch{z=null}return z}function As(e){try{gn()?.postMessage({cacheKey:e})}catch{}}function Ms(e){return gn(),Ae.add(e),()=>{Ae.delete(e)}}const vn="__at=",bn="__test=",Ls=/^[0-9a-f]{12}-[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;function Us(e){return e.at!==void 0||Object.keys(e.tests??{}).length>0}function ee(e){return typeof e=="string"&&Ls.test(e)}function Nt(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function Qs(e){const t=e.tests??{};return[...e.at!==void 0?[vn+Nt(e.at)]:[],...Object.keys(t).map(n=>bn+Nt(`${n}=${t[n]?"on":"off"}`))]}function jt(e,t){const o=[...e.split("&").filter(s=>s&&!s.startsWith(vn)&&!s.startsWith(bn)),...t];return o.length>0?`?${o.join("&")}`:""}function ve(e,t){const n=Qs(t),o=e.indexOf("?"),s=o===-1?e:e.slice(0,o);if(ee(s))return s+jt(o===-1?"":e.slice(o+1),n);const r=e.lastIndexOf("@");if(r<=0)return e;const i=e.slice(0,r),a=i.indexOf("?"),c=a===-1?i:i.slice(0,a),l=a===-1?"":i.slice(a+1);return`${c}${jt(l,n)}${e.slice(r)}`}function ii(e,t,n){if(!Us(t))return e;try{const o=new URL(e),s=o.searchParams.get("__draft");return s&&s!=="off"?(o.searchParams.set("__draft",ve(s,t)),o.toString()):ee(n)?(o.searchParams.set("__draft",ve(n,t)),o.toString()):e}catch{return e}}function ai(e,t,n="/"){if(!e||!ee(t))return null;try{const o=new URL(n,e);return o.searchParams.set("__draft",t),o.toString()}catch{return null}}function pn(e){return btoa(encodeURIComponent(e))}function ci(e,t,n){const o=Cs(e,t,n);return o.searchParams.set("__cb",crypto.randomUUID()),o.toString()}function Cs(e,t,n){const o=new URL(e).origin,s=new URL(`/live/previews/${encodeURIComponent(t)}`,o);return s.searchParams.set("path","/"),s.searchParams.set("pathTemplate","/"),s.searchParams.set("props",pn(JSON.stringify({path:"/",sections:[{__resolveType:n}]}))),s}const Bs="__draft";function li(e){return`${`${e.apiHost}/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}?token=${e.token}`}@${e.version}`}const Fs="off";function Vs(e,t){if(!t)return e;const n=new URL(e);return n.searchParams.set(Bs,t),n.toString()}function ui(e){const t=e.pageBlock.__resolveType;if(typeof t!="string"||!t)return null;const n=new URL(e.previewBaseUrl).origin,o=new URL(`/live/previews/${encodeURIComponent(t)}`,n);o.searchParams.set("__decoFBT","0"),o.searchParams.set("__d",""),o.searchParams.set("path",e.path),o.searchParams.set("pathTemplate",e.pathTemplate);const{__resolveType:s,...r}=e.pageBlock,i=JSON.stringify({__props:r,__decofile:e.decofile});return{src:o.toString(),body:i}}function fi(e,t,n,o){const s=new URL(e).origin,r=new URL(`/live/previews/${encodeURIComponent(t)}`,s);r.searchParams.set("__d","");const i=[{__resolveType:"preview",block:n}];return o&&i.push(o),r.searchParams.set("props",pn(JSON.stringify({sections:i}))),r.toString()}function di(e){return e.fastPreviewActive&&e.previewServerUrl?e.previewServerUrl:e.sandboxUrl??null}const $t="__variant=";function mn(e,t,n){return`${e}@${t}=${n}`}function hi(e,t){return!e||!t.multivariate||t.variants.length<=1?[]:t.index<0||t.index>=t.variants.length?[]:[mn(e,"sections",t.index)]}function gi(e){const t=Array.isArray(e.mvObj.variants)?e.mvObj.variants:[];if(!e.pageKey||e.sectionIndex<0)return[];if(e.selectedVariantIndex<0||e.selectedVariantIndex>=t.length)return[];const o=`${e.page.multivariate?`sections.variants.${e.page.index}.value${e.page.lazyValues?".value":""}`:"sections"}.${e.sectionIndex}${e.sectionLazy?".section":""}`;return[mn(e.pageKey,o,e.selectedVariantIndex)]}function vi(e,t){return[...t,...e]}function Hs(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function at(e,t){const n=e.lastIndexOf("@");if(n<=0)return e;const o=e.slice(0,n),s=o.indexOf("?"),r=s===-1?o:o.slice(0,s),a=[...s===-1?[]:o.slice(s+1).split("&").filter(l=>l&&!l.startsWith($t)),...t.map(l=>$t+Hs(l))],c=a.length>0?`?${a.join("&")}`:"";return`${r}${c}${e.slice(n)}`}function bi(e,t,n=!1){if(t.length===0&&!n)return null;try{const o=new URL(e),s=o.hostname==="[::1]"?`localhost${o.port?`:${o.port}`:""}`:o.host;return at(`${s}${o.pathname}@local`,t)}catch{return null}}function pi(e,t){if(t.length===0)return e;try{const n=new URL(e),o=n.searchParams.get("__draft");return!o||o==="off"?e:(n.searchParams.set("__draft",at(o,t)),n.toString())}catch{return e}}function Js(e){const{pointer:t}=e;if(!t||t===Fs)return null;const n=t.indexOf("?");return ee(n===-1?t:t.slice(0,n))||t.lastIndexOf("@")<=0?null:ee(e.heldRevision)&&e.forcedVariants.length===0?ve(e.heldRevision,e.previewOptions):ve(at(t,e.forcedVariants),e.previewOptions)}function Ws(e,t){if(!e||!t)return null;try{return Vs(e,t)}catch{return null}}function mi(e,t,n){if(!e||!n)return null;try{return Ws(new URL(t,e).toString(),n)}catch{return null}}const be={forcedVariants:[],previewOptions:{}},ce=new Map,le=new Map,Me=new Map;function wn(e){for(const t of Me.get(e)??[])t()}function Sn(e,t){const n=ee(t)?t:null;(le.get(e)??null)!==n&&(n?le.set(e,n):le.delete(e),wn(e))}function Gs(e){return le.get(e)??null}function Ys(e,t){return JSON.stringify(e)===JSON.stringify(t)}function wi(e,t){const n=ce.get(e)??be,o=t??be;Ys(n,o)||(t?ce.set(e,o):ce.delete(e),wn(e))}function zs(e){return ce.get(e)??be}function yn(e,t){let n=Me.get(e);return n||(n=new Set,Me.set(e,n)),n.add(t),()=>{n.delete(t)}}function Xs(e){const t=N.c(3);let n,o;return t[0]!==e?(n=s=>yn(e,s),o=()=>zs(e),t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,Zs)}function Zs(){return be}function qs(e){const t=N.c(3);let n,o;return t[0]!==e?(n=s=>e?yn(e,s):er,o=()=>e?Gs(e):null,t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,Ks)}function Ks(){return null}function er(){}function Si(e,t){const n=N.c(4),o=Xs(e),s=qs(e);let r;return n[0]!==o||n[1]!==s||n[2]!==t?(r=Js({pointer:t,heldRevision:s,...o}),n[0]=o,n[1]=s,n[2]=t,n[3]=r):r=n[3],r}const kn={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},tr=15e3,pe=new Map;function W(e,t){return`${e}/${t}`}function V(e){let t=pe.get(e);return t||(t={state:kn,listeners:new Set,previews:0,timer:null,discardListeners:new Set},pe.set(e,t)),t}function F(e,t){const n=V(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function Oe(e){e.timer&&clearTimeout(e.timer),e.timer=null}function me(e){return pe.get(e)?.state??kn}function nr(e,t){const n=V(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function yi(e){const t=V(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(Oe(t),F(e,{phase:"idle"}))}}function ki(e){const t=pe.get(e);!t||t.state.phase!=="reloading"||(Oe(t),F(e,{phase:"idle"}))}function On(e){const t=V(e);Oe(t),F(e,{phase:"saving",inFlight:t.state.inFlight+1})}function ue(e,t){const n=V(e),o=Math.max(0,n.state.inFlight-1);if(o>0){F(e,{inFlight:o});return}if(!t.ok||n.previews===0){F(e,{phase:"idle",inFlight:o});return}En(e,t.navigates,o)}function En(e,t,n=0){const o=V(e);Oe(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&F(e,{phase:"idle"})},tr),F(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function or(e){return e?.kind==="protocol"&&e.source==="github"}async function fe(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:s,branch:r,backend:i,cacheKey:a}=e,c=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:g.hostedReleases(o,s)}):null;if(i?.kind!=="protocol"){const v=a&&t.reread?n.invalidateQueries({queryKey:g.decofile(a)}):null;if(await Promise.all([c,v]),v&&t.kind!=="edit"){const b=W(o,s);F(b,{epoch:me(b).epoch+1})}return{navigates:!1}}const l=r?g.protocolDraftRead(o,s,r):null,u=l?JSON.stringify(n.getQueryData(l)??null):null,d=c?[c]:[];if(a&&t.reread&&d.push(n.invalidateQueries({queryKey:g.decofile(a)})),a&&!t.adopted&&d.push(n.invalidateQueries({queryKey:g.contentChanges(a)})),r&&i.source==="sandbox"&&d.push(n.invalidateQueries({queryKey:ro(o,s,r)})),or(i)&&l&&!t.adopted&&d.push(n.invalidateQueries({queryKey:l})),await Promise.all(d),t.kind!=="edit"){const v=W(o,s);F(v,{epoch:me(v).epoch+1})}const f=l?JSON.stringify(n.getQueryData(l)??null):null,h=u!==f;return h&&await new Promise(v=>Ct.schedule(v)),{navigates:h}}async function sr(e,t){return On(W(e.orgSlug,e.virtualMcpId)),Dn(e,t)}function At(e){return e.branch?JSON.stringify(e.queryClient.getQueryData(g.protocolDraftRead(e.orgSlug,e.virtualMcpId,e.branch))??null):null}async function Dn(e,t){const n=W(e.orgSlug,e.virtualMcpId),o=t.adopted?At(e):null;let s;try{s=await t.write()}catch(i){throw ue(n,{ok:!1,navigates:!1}),t.refreshOnError&&fe(e,{kind:t.kind,reread:!0}).catch(()=>{}),i}if(e.backend?.kind==="protocol"&&e.cacheKey&&As(e.cacheKey),Sn(n,t.shownRevision?.(s)??null),t.adopted){const i=At(e)!==o;return i&&await new Promise(a=>Ct.schedule(a)),ue(n,{ok:!0,navigates:i}),t.reread&&fe(e,t).catch(()=>{}),s}let r=!1;try{({navigates:r}=await fe(e,t))}catch{}finally{ue(n,{ok:!0,navigates:r})}return s}function Oi(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:s,branch:r}=e,i=W(o,s),a=new Set(t.blockKeys);for(const u of[...V(i).discardListeners])u(a);On(i);let c=!1;const l=()=>(c=!0,Dn(e,{kind:"discard",reread:!0,write:t.write}));return r?n.getMutationCache().build(n,{mutationKey:ke(o,s,r),scope:us(o,s,r),mutationFn:l}).execute(void 0).catch(u=>{throw c||ue(i,{ok:!1,navigates:!1}),u}):l()}function Ei(e,t,n){const o=N.c(8);let s;o[0]!==e||o[1]!==t?(s=W(e,t),o[0]=e,o[1]=t,o[2]=s):s=o[2];const r=s;let i;o[3]!==n||o[4]!==r?(i=()=>{const c=V(r).discardListeners;return c.add(n),()=>{c.delete(n)}},o[3]=n,o[4]=r,o[5]=i):i=o[5];let a;o[6]!==r?(a=[r],o[6]=r,o[7]=a):a=o[7],L.useEffect(i,a)}function In(e){const t=W(e.orgSlug,e.virtualMcpId);me(t).inFlight>0||(Sn(t,null),fe(e,{kind:"external"}).then(({navigates:n})=>{const o=V(t);o.previews>0&&o.state.inFlight===0&&En(t,n)}).catch(()=>{}))}function rr(e,t){const n=N.c(7);let o;n[0]!==e||n[1]!==t?(o=W(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const s=o;let r;n[3]!==s?(r=l=>nr(s,l),n[3]=s,n[4]=r):r=n[4];const i=r;let a;n[5]!==s?(a=()=>me(s),n[5]=s,n[6]=a):a=n[6];const c=a;return L.useSyncExternalStore(i,c,c)}const ir=500;function Di(e,t){const{phase:n}=rr(e,t);return js(n!=="idle",ir)}function ar(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function _n(e,t){return g.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function Ii(e,t,n,o){if(o?.source==="github"){const i=e.getQueryData(g.contentIndex(t));return i?Do(i,n):cr(e,t,n)}const s=e.getQueryData(g.contentVersions(t));if(!s)return;if(Object.hasOwn(s,n))return s[n];const r=e.getQueryData(g.decofile(t));return r&&Object.hasOwn(r,n)?void 0:null}function Tn(e,t){if(Object.hasOwn(e.changes,t))return e.changes[t];const n=B(t),o=Object.keys(e.changes).find(s=>B(s)===n);return o===void 0?void 0:e.changes[o]}function cr(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(o)return Rn(o,Ee(e,t),n)}function Rn(e,t,n){const o=Tn(e,n);return o?.kind==="delete"?o.version??Z:o?o.version:t.has(B(n))?Z:null}function _i(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(!o)return!1;const s=Tn(o,n);return s?s.kind==="set"&&s.baseVersion===null:Ee(e,t).has(B(n))}function Ti(e,t){const n=e.getQueryData(g.decofile(t)),o=e.getQueryData(g.contentChanges(t));if(!n||!o)return null;const s=Ee(e,t);return{blocks:n,versionOf:r=>Rn(o,s,r)}}function Ee(e,t){return new Set(e.getQueryData(g.contentDraftTombstones(t)))}function we(e,t,n,o){const s=B(n),r=Ee(e,t);r.has(s)!==o&&(o?r.add(s):r.delete(s),Y(e),e.setQueryData(g.contentDraftTombstones(t),[...r]))}function xn(e,t,n,o){const s=o.revision,r=e.getQueryData(g.contentVersions(n)),i=Object.entries(o.versions??{}).map(([f,h])=>[f,h===Z?null:h]),a=e.getQueryData(g.contentChanges(n)),c=e.getQueryData(g.contentIndex(n)),l=new Set(i.flatMap(([f])=>$e(f,c,a,r)===null?[f]:[])),u=new Set(i.flatMap(([f,h])=>h===null?[]:[B(f)]));e.setQueryData(g.contentChanges(n),f=>{if(!f)return f;const h={...f.changes};for(const[v,b]of i){const p=$e(v,c,f,r);b!==null?h[v]={kind:"set",version:b,baseVersion:p}:p!==null?h[v]={kind:"delete",version:null,baseVersion:p}:delete h[v]}return{...f,changes:h,edited:!0}});for(const[f,h]of i)h!==null?we(e,n,f,!1):!u.has(B(f))&&l.has(f)&&we(e,n,f,!0);const d=o.revision;return d&&d!=="none"&&e.setQueryData(g.protocolDraftRead(t.orgSlug,t.virtualMcpId,t.branch),f=>f&&{...f,version:d}),s}function De(e,t,n){Y(e),e.setQueryData(g.contentVersions(t),o=>{const s={...o};for(const[r,i]of Object.entries(n))i===null?delete s[r]:s[r]=i;return s})}function Pn(e,t){const n=e.getMutationCache().findAll({mutationKey:ke(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>Co(o.state.variables)))}function Le(e,t){e.resetQueries({queryKey:g.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function se(e,t,n,o){try{return await o()}catch(s){const r=!(s instanceof S);throw t.source==="local"&&r?(Le(e,n),new fn(s)):(t.source==="local"&&Je(s)&&Le(e,n),s)}}const Mt=new WeakMap;function ct(e){let t=Mt.get(e);return t||(t={inFlight:new Map,rereading:new Set},Mt.set(e,t)),t}function Nn(e,t,n,o){const{inFlight:s}=ct(e),r=s.get(o);if(r)return r;const i=lt(e,t,n,o,!0);return s.set(o,i),i.finally(()=>{s.get(o)===i&&s.delete(o)})}function lr(e,t,n){const o=N.c(8),s=G(),r=t?.orgSlug,i=t?.virtualMcpId,a=t?.branch;let c,l;o[0]!==e||o[1]!==a||o[2]!==n||o[3]!==r||o[4]!==s||o[5]!==i?(c=()=>{if(!e||!r||!i||!a)return;const u={orgSlug:r,virtualMcpId:i,branch:a},{rereading:d}=ct(s);return Ms(f=>{f===n&&(d.has(n)||(d.add(n),fr(s,e,u,n).catch(ur).finally(()=>d.delete(n))))})},l=[s,e,r,i,a,n],o[0]=e,o[1]=a,o[2]=n,o[3]=r,o[4]=s,o[5]=i,o[6]=c,o[7]=l):(c=o[6],l=o[7]),L.useEffect(c,l)}function ur(){}async function fr(e,t,n,o){const s=ct(e).inFlight.get(o);return s&&await s.catch(()=>{}),Nn(e,t,n,o)}async function lt(e,t,n,o,s){Y(e);const r=g.decofile(o),i=_n(n,t),a=g.contentRevision(o),c=g.contentVersions(o),l=e.getQueryData(r),u=e.getQueryData(c),f=e.getQueryData(i),h=e.getQueryData(a)??void 0,v=s&&l&&u?h?.revision:void 0,b=s&&f?h?.schemaVersion:void 0,p=g.contentChanges(o),R=e.getQueryData(p);if(t.source==="github"&&t.hosted)return dr(e,t,t.hosted,n,o,{conditional:s,seen:h,currentMeta:f,schemaIfNoneMatch:b,seenChanges:R});const[k,$,I]=await se(e,t,n,()=>t.client.batch([{method:"blocks.list",params:v?{ifNoneMatch:v}:{}},{method:"schema.get",params:b?{ifNoneMatch:b}:{}},{method:"changes.list",params:He(R)}])),_=e.getQueryData(a)?.revision,T=_!==void 0&&_!==h?.revision;if(I?.ok){const E=T?null:de(R,I.result);E&&e.setQueryData(p,E)}else I&&t.source==="local"&&Je(I.error)&&Le(e,n);if(!k?.ok)throw k?.error??new Error("no blocks.list");if(!$)throw new Error("no schema.get");const y=k.result,O=Ze($),D=$.ok&&!O?$.result:null;if(y.notModified&&(!l||!u)||D?.notModified&&!f)return lt(e,t,n,o,!1);const x=y.notModified?new Set:Pn(e,n),A=y.notModified?l:Qo(y.blocks,l,x),m=O?on():D?D.notModified?f:D.schema:$.error;if(e.setQueryData(a,{revision:T?_:y.notModified?h?.revision:y.revision,schemaVersion:D?D.notModified?h?.schemaVersion:D.version??void 0:void 0}),e.setQueryData(r,A),!y.notModified){const E=e.getQueryData(c),j={...y.versions};for(const U of x){const M=E?.[U];M!==void 0?j[U]=M:delete j[U]}e.setQueryData(c,j)}return m instanceof S||e.setQueryData(i,m),!T&&!y.notModified&&l&&h?.revision&&y.revision!==h.revision&&In({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:A,meta:m}}async function dr(e,t,n,o,s,r){const i=g.decofile(s),a=g.contentIndex(s),c=g.contentRevision(s),l=g.contentVersions(s),u=_n(o,t),d=g.contentChanges(s),f=e.getQueryData(a),h=r.conditional&&f?r.seen?.revision:void 0,[v,b,p]=await se(e,t,o,()=>n.batch([{method:"cms.index",params:h?{ifNoneMatch:h}:{}},{method:"schema.get",params:r.schemaIfNoneMatch?{ifNoneMatch:r.schemaIfNoneMatch}:{}},{method:"changes.list",params:He(r.seenChanges)}])),R=e.getQueryData(a)??f,k=e.getQueryData(c)?.revision,$=k!==void 0&&k!==r.seen?.revision;if(p?.ok&&!$){const P=de(r.seenChanges,p.result);P&&e.setQueryData(d,P)}if(!v?.ok)throw v?.error??new Error("no cms.index");if(!b)throw new Error("no schema.get");const I=v.result,_=Ze(b),T=b.ok&&!_?b.result:null;if(I.notModified&&!f||T?.notModified&&!r.currentMeta)return lt(e,t,o,s,!1);const y=_?on():T?T.notModified?r.currentMeta:T.schema:b.error;y instanceof S||e.setQueryData(u,y);const O=T?T.notModified?r.seen?.schemaVersion:T.version??void 0:void 0,D=e.getQueryData(i)??{};if(I.notModified||$)return e.setQueryData(c,{revision:$?k:r.seen?.revision,schemaVersion:O}),e.setQueryData(i,D),{blocks:D,meta:y};const x={revision:I.revision,resolvedRef:I.resolvedRef,sequence:I.sequence,entries:I.entries,draft:I.draft};e.setQueryData(a,x);const A=!!r.seen?.revision&&x.revision!==r.seen.revision&&(!r.seen.revision.startsWith("s-")||!!f&&jn(f.draft,x.draft));A&&e.setQueryData(g.protocolDraftRead(o.orgSlug,o.virtualMcpId,o.branch),P=>P&&{...P,version:x.revision}),e.setQueryData(c,{revision:x.revision,schemaVersion:O});const m=Pn(e,o),E=e.getQueryData(l)??{},j={},U={},M=[];for(const[P,H]of Object.entries(D)){const J=x.entries[P];!J&&!m.has(P)||(j[P]=H,E[P]!==void 0&&(U[P]=E[P]),J&&!m.has(P)&&E[P]!==J.version&&M.push(P))}return e.setQueryData(i,j),e.setQueryData(l,U),M.length>0&&await ze(e,n,s,M,m),R&&A&&hr(R,x)&&In({queryClient:e,orgSlug:o.orgSlug,virtualMcpId:o.virtualMcpId,branch:o.branch,backend:t,cacheKey:s}),{blocks:e.getQueryData(i)??j,meta:y}}function hr(e,t){if(jn(e.draft,t.draft))return!0;const n=Object.keys(t.entries);return n.length!==Object.keys(e.entries).length?!0:n.some(o=>!Object.hasOwn(e.entries,o)||e.entries[o]?.version!==t.entries[o]?.version)}function jn(e,t){const n=Object.keys(t);return n.length!==Object.keys(e).length?!0:n.some(o=>!Object.hasOwn(e,o)||e[o]?.version!==t[o]?.version)}function gr(e,t){const n=[...Object.keys(t.set??{}),...t.delete??[]];return Object.fromEntries(n.filter(o=>Object.hasOwn(e,o)).map(o=>[o,e[o]]))}function _e(e){if(!(e instanceof S)||e.code!==w.Unavailable)return;const t=e.data?.landed;if(!(!t||typeof t!="object"||Array.isArray(t)))return Object.fromEntries(Object.entries(t).filter(n=>typeof n[1]=="string"))}async function vr(e,t){if(!(e instanceof S)||e.code!==w.Conflict)return;const n=e.data?.entries;if(!n||typeof n!="object")return;const o=Object.entries(n);if(o.length===0)return;const s=t.set??{},r=new Set(t.delete??[]),i={};for(const[a,c]of o){const l=c?.actual;if(typeof l!="string"||(Object.hasOwn(s,a)?await eo(s[a]):r.has(a)?Z:void 0)!==l)return;i[a]=l}return i}function br(e,t){const n=Object.fromEntries(Object.entries(e.set??{}).filter(([s])=>!Object.hasOwn(t,s))),o=(e.delete??[]).filter(s=>!Object.hasOwn(t,s));return{...Object.keys(n).length>0?{set:n}:{},...o.length>0?{delete:o}:{}}}function ie(e,t,n,o,s){Y(e),xn(e,t,n,{revision:e.getQueryData(g.contentRevision(n))?.revision??"",versions:s}),De(e,n,Object.fromEntries(Object.entries(s).map(([r,i])=>[r,i===Z?null:i]))),qt(e,n,s,o.set??{})}async function Ri(e,t,n,o,s,r){if(t.source==="github"){const a=[...Object.keys(s.set??{}),...s.delete??[]].filter(l=>!r||!Object.hasOwn(r,l));if(a.length>0)throw new Error(`A hosted save needs a precondition for every block it touches (missing: ${a.join(", ")})`);const c=qn(s.set);if(c.length>0)throw new Error(`A hosted save can't write a block that isn't loaded (${c.join(", ")})`)}return sr({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",adopted:t.source==="github",write:async()=>{const i=(u,d=r)=>se(e,t,n,()=>t.client.blocksApply({set:u.set,delete:u.delete,...d?{ifMatch:gr(d,u)}:{}}));let a;try{a=await i(s)}catch(u){const d=t.source==="github"?_e(u):void 0;if(!d)throw u;const f=br(s,d);Object.keys(d).length>0&&ie(e,n,o,s,d);let h;try{h=await i(f)}catch(v){const b=_e(v);b&&Object.keys(b).length>0&&ie(e,n,o,f,b);const p=await vr(v,f);if(!p)throw v;ie(e,n,o,f,p);try{h=await i(f,{...r,...p})}catch(R){const k=_e(R);throw k&&Object.keys(k).length>0&&ie(e,n,o,f,k),R}}a={...h,versions:{...d,...h.versions}}}Y(e);const c=t.source==="github"?xn(e,n,o,a):a.revision;t.source==="github"&&qt(e,o,a.versions??{},s.set??{}),e.setQueryData(g.contentRevision(o),u=>({...u,revision:c}));const l=a.versions??{};return De(e,o,l),{revision:c,versions:l}}})}function $n(e,t){if(!(e instanceof S))return;const n=e.data?.draft;if(!n||typeof n!="object"||!Object.hasOwn(n,t))return;const o=n[t];return o&&typeof o.version=="string"?o:void 0}function An(e,t,n){if(!(n instanceof S))return;const o=n.data?.draft;if(!(!o||typeof o!="object"))for(const[s,r]of Object.entries(o))r===null&&we(e,t,s,!1)}function Mn(e,t,n,o){Y(e),Kn(e,n,o);const s=o.block===null,r=e.getQueryData(g.contentVersions(t)),i=e.getQueryData(g.contentChanges(t)),a=$e(n,e.getQueryData(g.contentIndex(t)),i,r);if(i){const c=B(n),l=Object.fromEntries(Object.entries(i.changes).filter(([u])=>B(u)!==c));s?a!==null&&(l[n]={kind:"delete",version:null,baseVersion:a}):l[n]={kind:"set",version:o.version,baseVersion:a},e.setQueryData(g.contentChanges(t),{...i,changes:l,edited:!0})}we(e,t,n,s&&a===null),e.setQueryData(g.decofile(t),c=>{const l={...c};return s?delete l[n]:l[n]=o.block,l}),De(e,t,{[n]:s?null:o.version}),Io(e,t,n,o)}function xi(e,t,n,o){if(t.source!=="github"||!(o instanceof S))return!1;An(e,n,o);const s=o.data?.draft;if(!s||typeof s!="object")return!1;const r=Object.keys(s),i=r.map(a=>$n(o,a));return r.length===0||i.some(a=>a===void 0)?!1:(e.cancelQueries({queryKey:g.decofile(n)}),r.forEach((a,c)=>{Mn(e,n,a,i[c])}),!0)}async function Pi(e,t,n,o,s,r){t.source==="github"&&An(e,o,r);const i=t.source==="github"?$n(r,s):void 0;if(i)return e.cancelQueries({queryKey:g.decofile(o)}),Mn(e,o,s,i),!0;await e.invalidateQueries({queryKey:g.decofile(o)});let a;try{const l=(await se(e,t,n,()=>t.client.changesGet({names:[s]}))).entries[s];if(l&&l.after===null&&l.version!==null)return!1;a={value:l?.after??null,version:l?.version??null},t.source==="github"&&e.setQueryData(g.contentChanges(o),u=>{if(!u)return u;const d={...u.changes};return l?.kind?d[s]={kind:l.kind,version:l.version,baseVersion:l.baseVersion}:delete d[s],{...u,changes:d,edited:!0}})}catch{const c=await se(e,t,n,()=>t.client.blocksList({}));if(c.notModified)return!1;a={value:c.blocks[s]??null,version:c.versions[s]??null}}return e.setQueryData(g.decofile(o),c=>{const l={...c};return a.value===null?delete l[s]:l[s]=a.value,l}),De(e,o,{[s]:a.version}),!1}function pr(e){const t=N.c(17),n=Be(e?.virtualMcpId)?.metadata;let o;t[0]!==n?(o=Ut(n),t[0]=n,t[1]=o):o=t[1];const s=o;let r;t[2]!==e?.branch||t[3]!==e?.orgSlug||t[4]!==e?.virtualMcpId?(r=g.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[2]=e?.branch,t[3]=e?.orgSlug,t[4]=e?.virtualMcpId,t[5]=r):r=t[5];let i;t[6]!==e||t[7]!==s?(i=async()=>{const b=await Qt(s,e.branch),p=b.pointer?.lastIndexOf("@")??-1;return{draft:b.pointer&&p>0?b.pointer.slice(0,p):null,version:b.pointer&&p>0?b.pointer.slice(p+1):b.etag}},t[6]=e,t[7]=s,t[8]=i):i=t[8];const a=!!e&&!!s;let c;t[9]!==r||t[10]!==i||t[11]!==a?(c={queryKey:r,queryFn:i,enabled:a,staleTime:Number.POSITIVE_INFINITY},t[9]=r,t[10]=i,t[11]=a,t[12]=c):c=t[12];const{data:l,isPending:u,isError:d}=C(c),f=!!e&&!!s&&u&&!d;if(!e||!l?.draft||!l.version){let b;return t[13]!==f?(b={pointer:null,pending:f},t[13]=f,t[14]=b):b=t[14],b}const h=`${l.draft}@${l.version}`;let v;return t[15]!==h?(v={pointer:h,pending:!1},t[15]=h,t[16]=v):v=t[16],v}function Ni(e){return pr(e).pointer}function ji(e){const t=N.c(4);let n;t[0]!==e?(n=g.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:mr,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s?.revision}async function mr(){throw new Error("content revisions are set by reads and writes")}function ut(e,t){const n=N.c(6),{url:o}=sn(e?.virtualMcpId),s=re(e?.virtualMcpId,e?.branch);if(!e)return"";let r;return n[0]!==s.cacheKeySuffix||n[1]!==s.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(r=s.kind!=="legacy"&&s.cacheKeySuffix!==void 0?je({...e,protocolSuffix:s.cacheKeySuffix}):je({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=s.cacheKeySuffix,n[1]=s.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=r):r=n[5],r}function $i(e,t){const n=N.c(46),{url:o}=sn(e?.virtualMcpId),s=!!o,r=re(e?.virtualMcpId,e?.branch),i=r.kind==="protocol"?r:null,a=ut(e),c=t?.fetchEnabled??!0,l=Rs(e?.virtualMcpId),u=Ft(e?.virtualMcpId).runtime==="cms",d=G();let f;n[0]!==a?(f=g.decofile(a),n[0]=a,n[1]=f):f=n[1];const h=f;lr(i,i&&e?e:null,a);let v;n[2]!==e||n[3]!==d||n[4]!==h?(v=()=>{if(!e||d.isMutating({mutationKey:ke(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const E=d.getQueryState(h);return E?.fetchStatus==="fetching"||Date.now()-(E?.dataUpdatedAt??0)<an/2},n[2]=e,n[3]=d,n[4]=h,n[5]=v):v=n[5];let b;n[6]!==u||n[7]!==s||n[8]!==e||n[9]!==i||n[10]!==d||n[11]!==h?(b=async()=>{if(e){if(!i&&u&&!s){const E=hs(d,e)?.version;if(E&&!await gs(e,E))return}await d.refetchQueries({queryKey:h,exact:!0},{cancelRefetch:!1})}},n[6]=u,n[7]=s,n[8]=e,n[9]=i,n[10]=d,n[11]=h,n[12]=b):b=n[12];let p;n[13]!==v||n[14]!==b?(p={skip:v,read:b},n[13]=v,n[14]=b,n[15]=p):p=n[15],ys(!!t?.pollWhile&&!!e,p);const R=Xe(i?.hosted?a:"");let k;n[16]!==r.kind||n[17]!==u||n[18]!==c||n[19]!==a||n[20]!==s||n[21]!==o||n[22]!==l||n[23]!==e||n[24]!==i||n[25]!==d?(k=async()=>{if(i)return(await Nn(d,i,e,a)).blocks;if(r.kind==="unavailable")throw ar("decofile");if(s){const M=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(Sr),Q=M?.ok?Rt(await M.text()):null;if(Q)return Q;const P=new Error("decofile unavailable (local tunnel unreachable)");throw P.status=502,P}if(u)return bs(d,e);const E=()=>Ts(e,ls(l,".deco/blocks.gen.json"));if(c){const M=await fetch(Ds(e),{cache:"no-store"}).catch(wr);if(M?.ok){const H=Rt(await M.text());if(H)return H}const Q=await E();if(Q.kind==="data")return Q.data;const P=new Error(`Failed to fetch decofile: ${M?.status??"network error"}`);throw P.status=Pt({liveOk:!!M?.ok,liveStatus:M?.status,committedAbsent:Q.kind==="absent"}),P}const j=await E();if(j.kind==="data")return j.data;const U=new Error("decofile unavailable (preview down, no committed snapshot)");throw U.status=Pt({liveOk:!1,committedAbsent:j.kind==="absent"}),U},n[16]=r.kind,n[17]=u,n[18]=c,n[19]=a,n[20]=s,n[21]=o,n[22]=l,n[23]=e,n[24]=i,n[25]=d,n[26]=k):k=n[26];const $=!!e&&r.kind!=="pending",I=i?0:3e4,_=i?.describe.pollIntervalMs,T=i?"always":void 0;let y;n[27]!==u||n[28]!==s||n[29]!==i?(y=(E,j)=>{if(i||u||s)return E<3;const U=j.status;return U!==502&&U!==404&&E<2},n[27]=u,n[28]=s,n[29]=i,n[30]=y):y=n[30];let O;n[31]!==h||n[32]!==k||n[33]!==$||n[34]!==I||n[35]!==_||n[36]!==T||n[37]!==y?(O={queryKey:h,queryFn:k,enabled:$,staleTime:I,refetchInterval:_,refetchIntervalInBackground:!1,refetchOnWindowFocus:T,retry:y,retryDelay:cs},n[31]=h,n[32]=k,n[33]=$,n[34]=I,n[35]=_,n[36]=T,n[37]=y,n[38]=O):O=n[38];const D=C(O);let x;n[39]!==R||n[40]!==D?(x=R&&D.data?Oo(R,D.data):void 0,n[39]=R,n[40]=D,n[41]=x):x=n[41];const A=x;let m;return n[42]!==A||n[43]!==i?.hosted||n[44]!==D?(m=i?.hosted&&A?{...D,data:A}:D,n[42]=A,n[43]=i?.hosted,n[44]=D,n[45]=m):m=n[45],m}function wr(){return null}function Sr(){return null}function Ai(e,t,n){return rs(e,t,n)}function Mi(e){const t=N.c(4),n=G(),o=re(e?.virtualMcpId,e?.branch),s=ut(e),r=o.kind==="protocol"?o.hosted:void 0;let i;return t[0]!==s||t[1]!==n||t[2]!==r?(i=(a,c)=>_o(n,r,s,a,c),t[0]=s,t[1]=n,t[2]=r,t[3]=i):i=t[3],i}function Li(e,t){const n=N.c(3),o=re(e?.virtualMcpId,e?.branch),s=ut(e),r=Xe(o.kind==="protocol"&&o.hosted?s:"");let i;return n[0]!==r?.entries||n[1]!==t?(i=Object.entries(r?.entries??{}).filter(a=>{const[,c]=a;return t(c.meta?.type??"")}).map(yr),n[0]=r?.entries,n[1]=t,n[2]=i):i=n[2],i}function yr(e){const[t]=e;return t}const kr="site-editor-save",Ln={id:kr,description:void 0,action:void 0,cancel:void 0},Ui="site-editor-undo",Ue="site-editor-publish";function Or(e){const t=N.c(7),{label:n,detail:o}=e;let s;t[0]!==n?(s=X.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=s):s=t[1];let r;t[2]!==o?(r=X.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=r):r=t[3];let i;return t[4]!==s||t[5]!==r?(i=X.jsxs("details",{className:"mt-1 text-xs",children:[s,r]}),t[4]=s,t[5]=r,t[6]=i):i=t[6],i}function Un(e,t){return t?X.jsx(Or,{label:e("siteEditor.details"),detail:t}):void 0}function Qi(e,t,n){ne.error(hn(e,t,n),{...Ln,description:Un(e,xs(t,n))})}function Ci(e,t,n=!1){ne.info(e(t?"sectionsEditor.reconcile.leftDeleted":"sectionsEditor.reconcile.keptTheirs"),{...Ln,description:e(t?n?"sectionsEditor.reconcile.leftDeletedNeverPublishedHint":"sectionsEditor.reconcile.leftDeletedHint":"sectionsEditor.reconcile.keptTheirsHint")})}const Qn={action:void 0,duration:void 0};function Bi(e,t){ne.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...Qn,id:Ue,description:void 0})}function Fi(e,{headline:t,body:n,detail:o,retry:s,pending:r,tone:i="error"}){const a=Un(e,o??null);ne[i](t,{id:Ue,description:n&&a?X.jsxs(X.Fragment,{children:[X.jsx("p",{children:n}),a]}):n??a,action:s?{label:e("siteEditor.tryAgain"),onClick:c=>{c.preventDefault(),ne.loading(r??e("thread.publishPopover.publishing"),{...Qn,id:Ue,description:void 0}),s()}}:void 0,duration:s?Number.POSITIVE_INFINITY:void 0})}function Vi(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{fs as $,Ws as A,Us as B,Ts as C,tn as D,di as E,Gr as F,pr as G,W as H,qs as I,wi as J,bi as K,ve as L,Fs as M,Vs as N,ii as O,pi as P,ci as Q,ki as R,yi as S,Kt as T,rr as U,ji as V,ui as W,us as X,ke as Y,sr as Z,_s as _,Hr as a,fi as a$,Mo as a0,ns as a1,Lr as a2,Qr as a3,Zr as a4,Et as a5,Dt as a6,qr as a7,Wr as a8,zr as a9,nt as aA,si as aB,fr as aC,rt as aD,Ri as aE,Pi as aF,Qi as aG,Ii as aH,ds as aI,ei as aJ,Ei as aK,Ti as aL,it as aM,Kr as aN,Ni as aO,li as aP,xi as aQ,ee as aR,ai as aS,Fi as aT,Ui as aU,Ln as aV,S as aW,w as aX,ze as aY,Pn as aZ,Oo as a_,bo as aa,Un as ab,Vi as ac,Cs as ad,Ur as ae,_n as af,ao as ag,Or as ah,Si as ai,mi as aj,rs as ak,Es as al,Nn as am,ar as an,cs as ao,oi as ap,Ue as aq,Qn as ar,Bi as as,Oi as at,Ar as au,Mr as av,Je as aw,Ci as ax,_i as ay,ri as az,Ao as b,ni as b0,hi as b1,gi as b2,vi as b3,sn as c,Mi as d,Vr as e,Li as f,Di as g,Yr as h,Jr as i,$i as j,Ai as k,vo as l,po as m,Gt as n,ts as o,Cr as p,ti as q,Fr as r,Br as s,ks as t,re as u,ut as v,Xr as w,Rs as x,ls as y,Js as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as ee,a4 as te,q as ne,r as E,j as t,B as Q,n as F,dZ as ae,a5 as ce,aN as me,aM as pe,aJ as de,aH as ue,aI as ge,aL as fe,aK as he,b5 as xe,t as C,dM as je,c as se,m as ke,_ as ve,X as ye,Z as Se,Y as be,K as H,gE as Ce}from"./index-D9wygnbU.js";import{a as De}from"./SwitchHorizontal01-2Pb5aRtq.js";import{N as we}from"./agent-icon-DHk7TnW1.js";import{s as Ne}from"./Trash01-Bu2u0WVA.js";import{i as Pe}from"./Upload01-mgXAmijc.js";import{i as ie}from"./Zap-DN6rNQ1C.js";import{S as Ae}from"./search-toggle-yUKGBwRs.js";import{E as W}from"./empty-state-GIO1CyUk.js";import{C as Ee}from"./collection-tabs-DHj6Urx3.js";import{S as Me,F as Oe}from"./folder-icon-DczOK4X3.js";import{j as Te,k as Ie,n as Re}from"./use-org-fs-Cd0Vep23.js";import{a7 as ze,R as Y,Z as $e}from"./chat-context-B9rZ1ojJ.js";import{c as _e}from"./context-shell-C6vXZZrB.js";import"./AlertCircle-D-4TK36c.js";import"./Tool01-s83oNDoy.js";import"./ArrowUp-Cf_Jm-4W.js";import"./ArrowLeft-B34wRVvp.js";import"./LinkBroken01-D4Fzd5qu.js";import"./BookOpen01-Cu2i97yZ.js";import"./Globe04-dU-sELuJ.js";import"./CheckCircle-D-W30b_A.js";import"./ChevronUp-s7k4XU_p.js";import"./ChevronSelectorVertical-BORaKUYt.js";import"./UserSquare-DE5Uc7_R.js";import"./CreditCard01-C2QL2326.js";import"./Key01-zay6mYZz.js";import"./Minus-BikCplhC.js";import"./Monitor01-DLndo6aP.js";import"./Sun-BFXO9tQN.js";import"./Play-D_FIXuay.js";import"./Plus-D2V2-fTF.js";import"./SearchMd-DUXCcvZJ.js";import"./ShoppingBag01-Dak2svm7.js";import"./Users01-C3CmvyvK.js";import"./XClose-l5OHkJlr.js";import"./icon-button-DoWTRkdN.js";import"./tooltip-CVxFMGcO.js";import"./index-3FmhyOXc.js";import"./badge-BGmWPELn.js";import"./markdown-Ck8Lzm4U.js";import"./use-copy-B2pKd0TM.js";import"./use-mobile-C5u1Qie9.js";import"./use-view-draft-kind-BsykP2yK.js";import"./thread-route-B-GLI-gf.js";import"./use-project-scope-lI2ukIh1.js";import"./repository-binding-C2KfYomQ.js";import"./use-mcp-client-BZnIK-Y4.js";import"./auth-Dh-2aYdX.js";import"./use-organization-settings-CRwm0586.js";import"./schema-DqcJORUD.js";import"./task-board-DvkfyL0D.js";import"./thread-intent-CaGJ1BhS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HKLsGoUY.js";import"./file-preview-mmsBTOqH.js";import"./utils-BoDmGD4u.js";import"./editor-FceeQfS7.js";import"./file-type-icon-CLz3IVP9.js";import"./useInfiniteQuery-Bz8irSN1.js";import"./infiniteQueryObserver-oJohchTM.js";import"./use-entitlements-DpylFAUx.js";import"./use-ai-providers-DTX4zdTq.js";import"./use-decopilot-events-DGoOKMj0.js";import"./require-capability-BQcAZUwY.js";import"./access-gate-CLxhnjg9.js";import"./capability-load-error-CmORVXZR.js";import"./sections-DwAaRTqc.js";import"./textarea-DM0e8Qi7.js";import"./use-ask-in-chat-Dom4oae3.js";import"./shell-layout-DElHwXzP.js";import"./use-deployment-admin-BTOwWmd_.js";import"./admin-fetch-BhTJlAsX.js";import"./command-DCUf4RGf.js";import"./index-mxlRzmxc.js";import"./integration-icon-BPaLmZuD.js";import"./project-icon-D3VravgB.js";import"./use-navigate-to-agent-DtRhmnlg.js";import"./use-debounced-value-BAQPYGcf.js";import"./new-project-dialog-MxeroDTr.js";import"./label-CzgbmbQw.js";import"./repository-picker-BQc3OAcG.js";import"./github-icon-1x8ZI6aO.js";import"./collection-search-j-a5PWZI.js";import"./legacy-admin-welcome-dialog-D_Hj5ND0.js";import"./drawer-DRyRdlMw.js";import"./required-auth-layout-BszE36jh.js";import"./use-org-sso-COBiertF.js";const J=200,Fe=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Fe.has(e))}function Be(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Ke(s,e){const i=new Map;for(const o of s){const c=G(o).split("/");c.pop();const a=["skills",e,...c].join("/");i.set(a,[...i.get(a)??[],o])}return i}async function qe(s,e){const o=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(o)throw o.reason}function He(s,e){const i=_e(e),o=`skills/${s}`;return{id:`home/${o}`,name:i.name??s,description:i.description,disableModelInvocation:i.disableModelInvocation,source:"home",volume:Y,path:o,sandboxPath:`${ze}/${Y}/${o}`}}const L="*";function B(s){return s.volume==="home"}function re(s,e){const i=s.indexOf(":");return i===-1?{label:e,glyph:ie}:{label:s.slice(i+1),glyph:s.startsWith("repo:")?je:we}}function Qe(s){const e=se.c(48),{entry:i,pending:o,onOpen:c,onDelete:a}=s,n=ee(),{org:g}=te();let M;e[0]!==i.source||e[1]!==g.name?(M=re(i.source,g.name),e[0]=i.source,e[1]=g.name,e[2]=M):M=e[2];const{label:O,glyph:I}=M;let D;e[3]!==i?(D=B(i),e[3]=i,e[4]=D):D=e[4];const R=D,w=o?"opacity-60":"hover:bg-accent";let f;e[5]!==w?(f=ke("relative transition-colors group overflow-hidden flex flex-col h-full",w),e[5]=w,e[6]=f):f=e[6];let m;e[7]!==i.name||e[8]!==c||e[9]!==o?(m=!o&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=c,e[9]=o,e[10]=m):m=e[10];const N=R?"default":"system",z=!R;let h;e[11]!==I||e[12]!==N||e[13]!==z?(h=t.jsx(Oe,{glyph:I,tone:N,readOnly:z,className:"size-8 shrink-0"}),e[11]=I,e[12]=N,e[13]=z,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==n?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ve,{children:[t.jsx(ye,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"icon",children:t.jsx(De,{size:16})})}),t.jsx(Se,{align:"end",children:t.jsxs(be,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(Ne,{size:16}),n("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=n,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==i.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=b):b=e[22];let k;e[23]!==i.description||e[24]!==n?(k=i.description||n("settings.skills.noDescription"),e[23]=i.description,e[24]=n,e[25]=k):k=e[25];let p;e[26]!==k?(p=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=p):p=e[27];let v;e[28]!==b||e[29]!==p?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,p]}),e[28]=b,e[29]=p,e[30]=v):v=e[30];let d;e[31]!==j||e[32]!==v?(d=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=d):d=e[33];let y;e[34]!==O||e[35]!==o||e[36]!==n?(y=o?n("settings.skills.importing"):O,e[34]=O,e[35]=o,e[36]=n,e[37]=y):y=e[37];let u;e[38]!==y?(u=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=u):u=e[39];let S;e[40]!==d||e[41]!==u?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[d,u]}),e[40]=d,e[41]=u,e[42]=S):S=e[42];let T;return e[43]!==o||e[44]!==S||e[45]!==f||e[46]!==m?(T=t.jsxs(Ce,{size:"flush","aria-busy":o,className:f,children:[m,S]}),e[43]=o,e[44]=S,e[45]=f,e[46]=m,e[47]=T):T=e[47],T}function V(s){const e=se.c(2),{children:i}=s;let o;return e[0]!==i?(o=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=o):o=e[1],o}function ws(){const s=ee(),{org:e}=te(),i=Te(),{remove:o,upload:c}=Ie("home"),a=ne(),n=E.useRef(null),[g,M]=E.useState(""),[O,I]=E.useState(L),[D,R]=E.useState(!1),[w,f]=E.useState(null),[m,N]=E.useState(null),[z,h]=E.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=r=>a.setQueryData(H.slashSkills(e.id),l=>r(l??[]));async function b(r){const l=[...r??[]];if(n.current&&(n.current.value=""),l.length===0)return;const P=l[0]?.webkitRelativePath??"";if(!P){C.error(s("settings.skills.importNeedsFolder"));return}const q=P.split("/")[0]??"",_=l.filter(Le),U=_.find(A=>G(A)==="SKILL.md");if(!U){C.error(s("settings.skills.importMissingSkillMd"));return}if(_.length>J){C.error(s("settings.skills.importTooManyFiles",{count:String(_.length),max:String(J)}));return}const $=Be(q),X=`skills/${$}`;let Z=!1;R(!0);try{if(await Re(e.slug,"home",X)){C.error(s("settings.skills.importSlugTaken",{slug:$}));return}Z=!0;const A=He($,await U.text());j(le=>[A,...le]),h(A.id),await qe(Ke(_,$),c.mutateAsync),C.success(s("settings.skills.importSuccess",{name:$}))}catch(A){Z&&await o.mutateAsync(X).catch(()=>{}),C.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),R(!1)}}const k=g.toLowerCase(),p=(i.data??[]).filter(r=>r.name.toLowerCase().includes(k)||(r.description??"").toLowerCase().includes(k)).sort((r,l)=>Number(B(l))-Number(B(r))||r.name.localeCompare(l.name)),v=new Set((i.data??[]).map(r=>r.source)),d=new Map;for(const r of p)d.set(r.source,(d.get(r.source)??0)+1);const y=[{id:L,label:s("settings.skills.filterAll"),count:p.length},...[...v].map(r=>({id:r,label:re(r,e.name).label,count:d.get(r)??0}))],u=v.has(O)?O:L,S=u===L?p:p.filter(r=>r.source===u),T=r=>f($e(r.volume,r.path)),K=async()=>{if(!m)return;const{id:r,path:l}=m;N(null),j(P=>P.filter(q=>q.id!==r));try{await o.mutateAsync(l),C.success(s("settings.skills.deleteSuccess"))}catch(P){C.error(P instanceof Error?P.message:s("settings.skills.deleteError"))}finally{x()}},oe=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>n.current?.click(),children:[t.jsx(Pe,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(F,{children:[t.jsx(F.Content,{children:t.jsx(F.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(F.Actions,{secondary:t.jsx(Ae,{value:g,onChange:M,label:s("library.context.search"),placeholder:s("settings.skills.searchPlaceholder"),clearLabel:s("library.library.clearSearch")}),children:oe}),t.jsx("input",{ref:n,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:r=>{b(r.target.files)}}),y.length>2&&t.jsx(Ee,{placement:"page",tabs:y,activeTab:u,onTabChange:I}),i.isPending?t.jsx("div",{className:"@container",children:t.jsx(V,{children:Array.from({length:8},(r,l)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},l))})}):i.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(W,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:i.error instanceof Error?i.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{i.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(W,{image:t.jsx(ie,{size:48,className:"text-muted-foreground"}),title:s(g?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:g?s("settings.skills.noResultsDescription",{search:g}):s("settings.skills.emptyDescription"),actions:!1})}):t.jsx("div",{className:"@container",children:t.jsx(V,{children:S.map(r=>{const l=r.id===z;return t.jsx(Qe,{entry:r,pending:l,onOpen:()=>T(r),onDelete:B(r)&&!l?()=>N(r):void 0},r.id)})})})]})})}),w&&t.jsx(Me,{skillPath:w,onClose:()=>f(null)},w),t.jsx(me,{open:m!==null,onOpenChange:r=>!r&&N(null),children:t.jsxs(pe,{children:[t.jsxs(de,{children:[t.jsx(ue,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(ge,{children:s("settings.skills.deleteDialogDescription",{name:m?.name??""})})]}),t.jsxs(fe,{children:[t.jsx(he,{children:s("settings.skills.cancel")}),t.jsx(xe,{onClick:K,variant:"destructive",children:s("settings.skills.deleteButton")})]})]})})]})}export{ws as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as A,a4 as B,r as v,j as e,n as x,hr as k,gT as b,gf as y,gg as a,i7 as D,B as m,I as g,aN as z,aM as T,aJ as O,aH as R,aL as F,aK as M,b5 as q,E as C,t as c,c as U}from"./index-D9wygnbU.js";import{D as H}from"./domain-settings-Dgpsy8Ru.js";import{S as $}from"./switch-B0tv99B3.js";import{a as J,b as K,c as G,d as Q}from"./use-org-sso-COBiertF.js";import{s as V}from"./Trash01-Bu2u0WVA.js";import{R as W}from"./require-capability-BQcAZUwY.js";import"./badge-BGmWPELn.js";import"./select-C2TZ6w0T.js";import"./index-BdQq_4o_.js";import"./index-3FmhyOXc.js";import"./ChevronUp-s7k4XU_p.js";import"./access-gate-CLxhnjg9.js";import"./capability-load-error-CmORVXZR.js";function X(){const s=A(),{org:o}=B(),{data:h,isLoading:I}=J(o.id,o.slug),f=K(o.id,o.slug),S=G(o.id,o.slug),E=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[d,p]=v.useState(!1),[P,j]=v.useState(!1),u=h?.configured&&h.config,n=h?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await f.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},L=async t=>{try{await E.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(H,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!d&&e.jsx(b,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:L,disabled:E.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||d)&&e.jsx(b,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(g,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(g,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:d&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(g,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(g,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(g,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(g,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[d&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:f.isPending,size:"sm",children:f.isPending?s("settings.orgSso.savingButton"):s(d?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(z,{open:P,onOpenChange:j,children:e.jsxs(T,{children:[e.jsx(O,{children:e.jsx(R,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(F,{children:[e.jsx(M,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(q,{onClick:w,disabled:S.isPending,variant:"destructive",children:s("settings.orgSso.removeButton")})]})]})})]})}function de(){const s=U.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{de as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as s}from"./schema-DqcJORUD.js";import{co as n}from"./index-D9wygnbU.js";n(["claude-code","codex"]);const u="super-agent",r=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],o=r[0];function R(e){return r[e%r.length]??o}function l(e){return e.createdBy==="system"}const S="chore",_=["reviewer"],E={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function f(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const i=["triage","todo","in_progress","in_review","qa","customer_approval","ready_for_deployment","post_deploy_validation","done","archived"];i.map((e,a)=>({key:e,title:e,position:a}));function T(e,a){return e?[E[a],...d].some(t=>e.startsWith(`${t}:`)):!1}function D(e){return e.reviewerEnabled||!e.hasPullRequest?!1:!e.threadTitles.some(a=>_.some(t=>T(a,t)))}const p="task-board.item.updated",v="task-board.rules.updated",b="task-board.sprints.updated",m="task-board.item.deleted",L="task-board.item.prs.updated",N=4e3;export{i as C,o as D,_ as R,u as S,p as T,m as a,L as b,v as c,b as d,S as e,T as f,D as g,N as h,l as i,R as n,f as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n="TASK";function r(e){return e.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,4)||n}function a(e,t){return t==null?null:`${r(e)}-${String(t).padStart(2,"0")}`}const s=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function i(e){const t=s.exec(e.trim())?.[1];return t===void 0?null:Number(t)}export{i as p,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as o,t as c}from"./task-key-BCHdFiOO.js";import{t as d}from"./project-index-CZL_Bcej.js";import"./core.esm-B-QMfivo.js";import{S as f}from"./task-board-DvkfyL0D.js";const k="__unassigned__",i="__backlog__",h={assignee:null,priority:null,due:null,tags:[],project:null,sprint:null,search:""},g=864e5;function p(t,e){const n=new Date(t),s=new Date(e);return n.getFullYear()===s.getFullYear()&&n.getMonth()===s.getMonth()&&n.getDate()===s.getDate()}function u(t,e){const n=t.trim();return n===""?!1:e!=null&&o(n)===e}function D(t,e){return t.assigneeId===e?!0:t.assigneeId===f&&t.assignedBy===e}function R(t,e,n){const s=e.search.trim().toLowerCase();if(s!==""&&!`${t.title} ${t.description??""}`.toLowerCase().includes(s)&&!u(s,t.keySeq))return!1;if(e.assignee!==null){if(e.assignee===k){if(t.assigneeId!==null)return!1}else if(!D(t,e.assignee))return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const r=new Date(t.dueDate).getTime(),a=Date.now();if(e.due==="overdue"&&r>=a||e.due==="today"&&!p(r,a)||e.due==="week"&&(r<a||r>a+7*g))return!1}if(e.tags.length>0){const r=t.tags.map(a=>a.id);if(!e.tags.some(a=>r.includes(a)))return!1}if(!d(t,e.project,n))return!1;if(e.sprint!==null){const r=e.sprint===i?null:e.sprint;if((t.sprintId??null)!==r)return!1}return!0}function w(t,e){return t===null||t===i||e.some(n=>n.id===t)?t:null}const l={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"},L=Object.keys(l);function m(t){return l[t]}function _(t,e){return c(t,e.keySeq)??e.id}function B(t,e,n){const s=encodeURIComponent(t),r=encodeURIComponent(_(t,e));return n?`/${s}/projects/${encodeURIComponent(n)}/tasks/${r}`:`/${s}/tasks/${r}`}function N(t,e){const n=e?.trim();if(n)return t.find(s=>u(n,s.keySeq))??t.find(s=>s.id===n)}const y=/^board_[\w-]+$/,S=64;function A(t){const e=t.trim();return e.length>S?null:o(e)!==null||y.test(e)?e:null}export{i as B,L as D,h as E,k as U,B as a,R as b,m as d,N as f,A as p,w as r,_ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,b as G,r as B,j as s,n as Q,m as J,f as X}from"./index-D9wygnbU.js";import{C as Z}from"./index-D-5KT7YJ.js";import{C as ee}from"./collection-tabs-DHj6Urx3.js";import{A as M,a as te,b as se,u as ae}from"./use-task-board-analytics-DVdYIVtB.js";import{T as ie,e as W}from"./time-range-picker-CngcAO-k.js";import{S as le,d as oe,c as re,a as ne,b as me}from"./sheet-mGT77pmX.js";import{S as ce,s as pe,D as de}from"./analytics-sections-BrNKTJt8.js";import{a as fe}from"./task-route-DvThF15k.js";import{C as ge}from"./combobox-CBPCAqF_.js";import"./use-mobile-C5u1Qie9.js";import"./use-sidebar-collapsed-BWtKakyD.js";import"./use-chat-layout-state-DM5US5qS.js";import"./thread-route-B-GLI-gf.js";import"./use-view-draft-kind-BsykP2yK.js";import"./use-project-scope-lI2ukIh1.js";import"./repository-binding-C2KfYomQ.js";import"./use-mcp-client-BZnIK-Y4.js";import"./auth-Dh-2aYdX.js";import"./use-organization-settings-CRwm0586.js";import"./schema-DqcJORUD.js";import"./task-board-DvkfyL0D.js";import"./thread-intent-CaGJ1BhS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HKLsGoUY.js";import"./agent-icon-DHk7TnW1.js";import"./AlertCircle-D-4TK36c.js";import"./Tool01-s83oNDoy.js";import"./ArrowUp-Cf_Jm-4W.js";import"./ArrowLeft-B34wRVvp.js";import"./LinkBroken01-D4Fzd5qu.js";import"./BookOpen01-Cu2i97yZ.js";import"./Globe04-dU-sELuJ.js";import"./CheckCircle-D-W30b_A.js";import"./ChevronUp-s7k4XU_p.js";import"./ChevronSelectorVertical-BORaKUYt.js";import"./UserSquare-DE5Uc7_R.js";import"./CreditCard01-C2QL2326.js";import"./SwitchHorizontal01-2Pb5aRtq.js";import"./Key01-zay6mYZz.js";import"./Minus-BikCplhC.js";import"./Monitor01-DLndo6aP.js";import"./Sun-BFXO9tQN.js";import"./Play-D_FIXuay.js";import"./Plus-D2V2-fTF.js";import"./SearchMd-DUXCcvZJ.js";import"./ShoppingBag01-Dak2svm7.js";import"./Trash01-Bu2u0WVA.js";import"./Upload01-mgXAmijc.js";import"./Users01-C3CmvyvK.js";import"./XClose-l5OHkJlr.js";import"./Zap-DN6rNQ1C.js";import"./tooltip-CVxFMGcO.js";import"./index-3FmhyOXc.js";import"./toolbar-icon-button-VHIAKSnc.js";import"./shell-layout-DElHwXzP.js";import"./use-deployment-admin-BTOwWmd_.js";import"./admin-fetch-BhTJlAsX.js";import"./command-DCUf4RGf.js";import"./index-mxlRzmxc.js";import"./integration-icon-BPaLmZuD.js";import"./project-icon-D3VravgB.js";import"./use-navigate-to-agent-DtRhmnlg.js";import"./use-debounced-value-BAQPYGcf.js";import"./new-project-dialog-MxeroDTr.js";import"./label-CzgbmbQw.js";import"./repository-picker-BQc3OAcG.js";import"./github-icon-1x8ZI6aO.js";import"./useInfiniteQuery-Bz8irSN1.js";import"./infiniteQueryObserver-oJohchTM.js";import"./collection-search-j-a5PWZI.js";import"./legacy-admin-welcome-dialog-D_Hj5ND0.js";import"./drawer-DRyRdlMw.js";import"./required-auth-layout-BszE36jh.js";import"./use-org-sso-COBiertF.js";import"./resizable-B34lmUXk.js";import"./badge-BGmWPELn.js";import"./popover-DbdL41A-.js";import"./scroll-area-mLdPDQZk.js";import"./index-BdQq_4o_.js";import"./calendar-DD1b_D7F.js";import"./chart-q3aX-DjJ.js";import"./CategoricalChart-DplIvctj.js";import"./index-BW4kEj0q.js";import"./tooltipContext-BptH8Zj7.js";import"./CartesianChart-gyi9lPG0.js";import"./table-CV4RoALe.js";import"./toggle-group-Cu1mfNzX.js";import"./active-indicator-CCMhAsc_.js";import"./config-gK1vyYpA.js";import"./core.esm-B-QMfivo.js";import"./AreaChart-CkFdSy1i.js";import"./task-key-BCHdFiOO.js";import"./project-index-CZL_Bcej.js";const ue={TASK_BOARD_OPERATION:"taskBoard.analytics.tabOperation",TASK_BOARD_REWORK:"taskBoard.analytics.tabRework",TASK_BOARD_DELIVERY:"taskBoard.analytics.tabDelivery",TASK_BOARD_SPRINTS:"taskBoard.analytics.tabSprints",TASK_BOARD_STUCK:"taskBoard.analytics.tabStuck",TASK_BOARD_COST:"taskBoard.analytics.tabCost",TASK_BOARD_ERRORS:"taskBoard.analytics.tabErrors",TASK_BOARD_TENANTS:"taskBoard.analytics.tabTenants"};function F(t){const e=new Date;return{from:(W(t.from).date??e).toISOString(),to:(W(t.to).date??e).toISOString()}}function z(t){const e=q.c(6),{className:p}=t;let r;e[0]!==p?(r=J("surface flex flex-col gap-6 p-4",p),e[0]=p,e[1]=r):r=e[1];let i,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-5 w-24 animate-pulse rounded bg-muted"}),s.jsx("div",{className:"h-10 w-16 animate-pulse rounded bg-muted"})]}),d=s.jsx("div",{className:"h-[140px] w-full animate-pulse rounded bg-muted/60"}),e[2]=i,e[3]=d):(i=e[2],d=e[3]);let n;return e[4]!==r?(n=s.jsxs("div",{className:r,children:[i,d]}),e[4]=r,e[5]=n):n=e[5],n}function xe(){const t=q.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-4",children:[0,1,2,3].map(he)}),t[0]=e):e=t[0];let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("div",{className:"flex flex-col gap-4","aria-busy":!0,children:[e,s.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[s.jsx(z,{}),s.jsx(z,{})]}),s.jsx(z,{})]}),t[1]=p):p=t[1],p}function he(t){return s.jsxs("div",{className:"surface flex flex-col gap-1 p-4",children:[s.jsx("div",{className:"h-5 w-24 animate-pulse rounded bg-muted"}),s.jsx("div",{className:"h-10 w-16 animate-pulse rounded bg-muted"})]},t)}function Se(t){const e=q.c(27),{target:p,open:r,onOpenChange:i,params:d,taskHref:n}=t,j=G(),{data:l,isLoading:a,error:y}=se(d,r?p?.drill??null:null);let u;e[0]!==l?.sections?(u=l?.sections.find(ke),e[0]=l?.sections,e[1]=u):u=e[1];const m=u,T=m?.rows.length??0,b=p?.label;let x;e[2]!==b?(x=s.jsx(le,{children:b}),e[2]=b,e[3]=x):x=e[3];let h;e[4]!==T||e[5]!==j||e[6]!==m?(h=m?j(T===1?"taskBoard.analytics.drillCountOne":"taskBoard.analytics.drillCount",{n:String(T)}):" ",e[4]=T,e[5]=j,e[6]=m,e[7]=h):h=e[7];let f;e[8]!==h?(f=s.jsx(oe,{children:h}),e[8]=h,e[9]=f):f=e[9];let g;e[10]!==x||e[11]!==f?(g=s.jsxs(re,{children:[x,f]}),e[10]=x,e[11]=f,e[12]=g):g=e[12];let k;e[13]!==y||e[14]!==a||e[15]!==n||e[16]!==m?(k=a?s.jsx("div",{className:"flex flex-col gap-2 p-2","aria-busy":!0,children:[0,1,2,3,4].map(be)}):y?s.jsx("p",{className:"p-2 text-sm text-destructive",children:y.message}):m?.kind==="table"&&s.jsx(de,{section:m,taskHref:n}),e[13]=y,e[14]=a,e[15]=n,e[16]=m,e[17]=k):k=e[17];let o;e[18]!==k?(o=s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 pb-4",children:k}),e[18]=k,e[19]=o):o=e[19];let c;e[20]!==g||e[21]!==o?(c=s.jsxs(ne,{side:"right",size:"lg",children:[g,o]}),e[20]=g,e[21]=o,e[22]=c):c=e[22];let S;return e[23]!==i||e[24]!==r||e[25]!==c?(S=s.jsx(me,{open:r,onOpenChange:i,children:c}),e[23]=i,e[24]=r,e[25]=c,e[26]=S):S=e[26],S}function be(t){return s.jsx("div",{className:"h-11 animate-pulse rounded bg-muted"},t)}function ke(t){return t.kind==="table"}function je(t){const e=q.c(26),{tool:p,org:r,project:i,range:d,taskHref:n}=t;let j;e[0]!==r||e[1]!==i||e[2]!==d?(j={org:r,project:i,...d},e[0]=r,e[1]=i,e[2]=d,e[3]=j):j=e[3];const l=j,{data:a,isPending:y,error:u}=te(p,l),[m,T]=B.useState(null),[b,x]=B.useState(!1);if(u){let o;return e[4]!==u.message?(o=s.jsx("div",{className:"surface p-8 text-center text-sm text-destructive",children:u.message}),e[4]=u.message,e[5]=o):o=e[5],o}if(y||!a){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(xe,{}),e[6]=o):o=e[6],o}let h;if(e[7]!==a.range||e[8]!==a.sections||e[9]!==r||e[10]!==n){let o;e[12]!==a.range||e[13]!==r||e[14]!==n?(o=c=>s.jsx("div",{className:J("min-w-0",pe(c)==="full"&&"md:col-span-2",c.kind==="table"&&"mt-6"),children:s.jsx(ce,{section:c,threadLinks:!0,showOrg:r==="all",taskHref:n,range:a.range,onDrill:S=>{T(S),x(!0)}})},c.title),e[12]=a.range,e[13]=r,e[14]=n,e[15]=o):o=e[15],h=a.sections.map(o),e[7]=a.range,e[8]=a.sections,e[9]=r,e[10]=n,e[11]=h}else h=e[11];let f;e[16]!==h?(f=s.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:h}),e[16]=h,e[17]=f):f=e[17];let g;e[18]!==m||e[19]!==b||e[20]!==l||e[21]!==n?(g=s.jsx(Se,{target:m,open:b,onOpenChange:x,params:l,taskHref:n}),e[18]=m,e[19]=b,e[20]=l,e[21]=n,e[22]=g):g=e[22];let k;return e[23]!==f||e[24]!==g?(k=s.jsxs("div",{className:"flex flex-col gap-4",children:[f,g]}),e[23]=f,e[24]=g,e[25]=k):k=e[25],k}function Te(t){const e=q.c(64),{org:p,project:r,taskHref:i,actions:d,notice:n,showTenants:j}=t,l=G(),[a,y]=B.useState("TASK_BOARD_OPERATION");let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"now-30d",to:"now"},e[0]=u):u=e[0];const[m,T]=B.useState(u);let b;e[1]!==m?(b=()=>F(m),e[1]=m,e[2]=b):b=e[2];const[x,h]=B.useState(b);let f;if(e[3]!==j||e[4]!==l){let R;e[6]!==j?(R=Y=>Y!=="TASK_BOARD_TENANTS"||j,e[6]=j,e[7]=R):R=e[7];let O;e[8]!==l?(O=Y=>({id:Y,label:l(ue[Y])}),e[8]=l,e[9]=O):O=e[9],f=M.filter(R).map(O),e[3]=j,e[4]=l,e[5]=f}else f=e[5];const g=f;let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=R=>{T(R),h(F(R))},e[10]=k):k=e[10];let o;e[11]!==l?(o=l("monitoring.timeRangePicker.absoluteTimeRange"),e[11]=l,e[12]=o):o=e[12];let c;e[13]!==l?(c=l("monitoring.timeRangePicker.from"),e[13]=l,e[14]=c):c=e[14];let S;e[15]!==l?(S=l("monitoring.timeRangePicker.to"),e[15]=l,e[16]=S):S=e[16];let _;e[17]!==l?(_=l("monitoring.timeRangePicker.applyTimeRange"),e[17]=l,e[18]=_):_=e[18];let v;e[19]!==o||e[20]!==c||e[21]!==S||e[22]!==_?(v={absoluteTimeRange:o,from:c,to:S,applyTimeRange:_},e[19]=o,e[20]=c,e[21]=S,e[22]=_,e[23]=v):v=e[23];let A;e[24]!==l?(A=l("monitoring.timeRangePicker.last7Days"),e[24]=l,e[25]=A):A=e[25];let N;e[26]!==A?(N={label:A,from:"now-7d",to:"now",value:"7d"},e[26]=A,e[27]=N):N=e[27];let w;e[28]!==l?(w=l("monitoring.timeRangePicker.last30Days"),e[28]=l,e[29]=w):w=e[29];let D;e[30]!==w?(D={label:w,from:"now-30d",to:"now",value:"30d"},e[30]=w,e[31]=D):D=e[31];let C;e[32]!==l?(C=l("monitoring.timeRangePicker.last90Days"),e[32]=l,e[33]=C):C=e[33];let P;e[34]!==C?(P={label:C,from:"now-90d",to:"now",value:"90d"},e[34]=C,e[35]=P):P=e[35];let E;e[36]!==N||e[37]!==D||e[38]!==P?(E=[N,D,P],e[36]=N,e[37]=D,e[38]=P,e[39]=E):E=e[39];let K;e[40]!==m||e[41]!==E||e[42]!==v?(K=s.jsx(ie,{value:m,onChange:k,labels:v,quickRanges:E}),e[40]=m,e[41]=E,e[42]=v,e[43]=K):K=e[43];let L;e[44]!==d||e[45]!==K?(L=s.jsxs(Q.Actions,{children:[d,K]}),e[44]=d,e[45]=K,e[46]=L):L=e[46];let U;e[47]===Symbol.for("react.memo_cache_sentinel")?(U=R=>{const O=M.find(Y=>Y===R);O&&y(O)},e[47]=U):U=e[47];let $;e[48]!==a||e[49]!==g?($=s.jsx(ee,{placement:"page",tabs:g,activeTab:a,onTabChange:U}),e[48]=a,e[49]=g,e[50]=$):$=e[50];let I;e[51]!==p||e[52]!==r||e[53]!==x||e[54]!==a||e[55]!==i?(I=s.jsx(je,{tool:a,org:p,project:r,range:x,taskHref:i},a),e[51]=p,e[52]=r,e[53]=x,e[54]=a,e[55]=i,e[56]=I):I=e[56];let H;e[57]!==n||e[58]!==I?(H=s.jsxs("div",{className:"mx-auto flex w-full max-w-[1200px] flex-col gap-4 px-4 pt-6 pb-10 md:px-10",children:[n,I]}),e[57]=n,e[58]=I,e[59]=H):H=e[59];let V;return e[60]!==L||e[61]!==$||e[62]!==H?(V=s.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:[L,$,H]}),e[60]=L,e[61]=$,e[62]=H,e[63]=V):V=e[63],V}function cs(){const t=q.c(37),e=G();let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={strict:!1},t[0]=p):p=t[0];const r=X(p),i=r.org??"",d=r.agentId,n=ae(),[j,l]=B.useState(i),[a,y]=B.useState(i);i!==j&&(l(i),y(i));const u=!d&&(n.data?.isTaskBoardAdmin??!1);let m;t[1]!==e?(m=e("taskBoard.analytics.orgCurrent"),t[1]=e,t[2]=m):m=t[2];let T;t[3]!==i||t[4]!==m?(T={value:i,label:m},t[3]=i,t[4]=m,t[5]=T):T=t[5];let b;t[6]!==e?(b=e("taskBoard.analytics.orgAll"),t[6]=e,t[7]=b):b=t[7];let x;t[8]!==b?(x={value:"all",label:b},t[8]=b,t[9]=x):x=t[9];let h;if(t[10]!==n.data?.orgs||t[11]!==i||t[12]!==T||t[13]!==x){let v;t[15]!==i?(v=A=>A.slug!==i,t[15]=i,t[16]=v):v=t[16],h=[T,x,...(n.data?.orgs??[]).filter(v).map(ve)],t[10]=n.data?.orgs,t[11]=i,t[12]=T,t[13]=x,t[14]=h}else h=t[14];const f=h;let g;t[17]!==a||t[18]!==i||t[19]!==d?(g=v=>fe(i,{id:v,keySeq:null},d)+(a===i?"":`?boardOrg=${encodeURIComponent(a)}`),t[17]=a,t[18]=i,t[19]=d,t[20]=g):g=t[20];const o=a==="all"?void 0:g;let c;t[21]!==u||t[22]!==a||t[23]!==f||t[24]!==e?(c=u&&s.jsx(ge,{options:f,value:a,onChange:y,width:"w-[220px]",searchPlaceholder:e("taskBoard.analytics.orgSearch"),emptyMessage:e("taskBoard.analytics.orgEmpty")}),t[21]=u,t[22]=a,t[23]=f,t[24]=e,t[25]=c):c=t[25];let S;t[26]!==a||t[27]!==i||t[28]!==e?(S=a!==i&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:a==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:a})}),t[26]=a,t[27]=i,t[28]=e,t[29]=S):S=t[29];let _;return t[30]!==u||t[31]!==a||t[32]!==d||t[33]!==o||t[34]!==c||t[35]!==S?(_=s.jsx(Z.Content,{children:s.jsx(Te,{org:a,project:d,taskHref:o,showTenants:u,actions:c,notice:S},a)}),t[30]=u,t[31]=a,t[32]=d,t[33]=o,t[34]=c,t[35]=S,t[36]=_):_=t[36],_}function ve(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}export{cs as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a4 as n,j as r,K as f}from"./index-D9wygnbU.js";import{C as d}from"./index-D-5KT7YJ.js";import{m as u,P as x,T as h}from"./mock-board-BywyOk2L.js";import{F as j}from"./feature-gate-2lTAc4xs.js";import"./use-mobile-C5u1Qie9.js";import"./use-sidebar-collapsed-BWtKakyD.js";import"./use-chat-layout-state-DM5US5qS.js";import"./thread-route-B-GLI-gf.js";import"./use-view-draft-kind-BsykP2yK.js";import"./use-project-scope-lI2ukIh1.js";import"./repository-binding-C2KfYomQ.js";import"./use-mcp-client-BZnIK-Y4.js";import"./auth-Dh-2aYdX.js";import"./use-organization-settings-CRwm0586.js";import"./schema-DqcJORUD.js";import"./task-board-DvkfyL0D.js";import"./thread-intent-CaGJ1BhS.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HKLsGoUY.js";import"./agent-icon-DHk7TnW1.js";import"./AlertCircle-D-4TK36c.js";import"./Tool01-s83oNDoy.js";import"./ArrowUp-Cf_Jm-4W.js";import"./ArrowLeft-B34wRVvp.js";import"./LinkBroken01-D4Fzd5qu.js";import"./BookOpen01-Cu2i97yZ.js";import"./Globe04-dU-sELuJ.js";import"./CheckCircle-D-W30b_A.js";import"./ChevronUp-s7k4XU_p.js";import"./ChevronSelectorVertical-BORaKUYt.js";import"./UserSquare-DE5Uc7_R.js";import"./CreditCard01-C2QL2326.js";import"./SwitchHorizontal01-2Pb5aRtq.js";import"./Key01-zay6mYZz.js";import"./Minus-BikCplhC.js";import"./Monitor01-DLndo6aP.js";import"./Sun-BFXO9tQN.js";import"./Play-D_FIXuay.js";import"./Plus-D2V2-fTF.js";import"./SearchMd-DUXCcvZJ.js";import"./ShoppingBag01-Dak2svm7.js";import"./Trash01-Bu2u0WVA.js";import"./Upload01-mgXAmijc.js";import"./Users01-C3CmvyvK.js";import"./XClose-l5OHkJlr.js";import"./Zap-DN6rNQ1C.js";import"./tooltip-CVxFMGcO.js";import"./index-3FmhyOXc.js";import"./toolbar-icon-button-VHIAKSnc.js";import"./shell-layout-DElHwXzP.js";import"./use-deployment-admin-BTOwWmd_.js";import"./admin-fetch-BhTJlAsX.js";import"./command-DCUf4RGf.js";import"./index-mxlRzmxc.js";import"./integration-icon-BPaLmZuD.js";import"./project-icon-D3VravgB.js";import"./use-navigate-to-agent-DtRhmnlg.js";import"./use-debounced-value-BAQPYGcf.js";import"./new-project-dialog-MxeroDTr.js";import"./label-CzgbmbQw.js";import"./repository-picker-BQc3OAcG.js";import"./github-icon-1x8ZI6aO.js";import"./useInfiniteQuery-Bz8irSN1.js";import"./infiniteQueryObserver-oJohchTM.js";import"./collection-search-j-a5PWZI.js";import"./legacy-admin-welcome-dialog-D_Hj5ND0.js";import"./drawer-DRyRdlMw.js";import"./required-auth-layout-BszE36jh.js";import"./use-org-sso-COBiertF.js";import"./sheet-mGT77pmX.js";import"./resizable-B34lmUXk.js";import"./core.esm-B-QMfivo.js";import"./sortable.esm-Dw4xFH50.js";import"./use-task-board-analytics-DVdYIVtB.js";import"./combobox-CBPCAqF_.js";import"./popover-DbdL41A-.js";import"./use-task-board-prompts-5OmBV-BO.js";import"./badge-BGmWPELn.js";import"./icon-button-DoWTRkdN.js";import"./use-org-fs-Cd0Vep23.js";import"./use-automations-8WbgZhli.js";import"./search-toggle-yUKGBwRs.js";import"./context-menu-B7ywEyjT.js";import"./super-agent-icon-tF39Whlb.js";import"./use-task-board-items-gM-MOBw8.js";import"./config-gK1vyYpA.js";import"./use-task-board-events-n_cm8Gyp.js";import"./use-decopilot-events-DGoOKMj0.js";import"./sprints-C1z9xhcL.js";import"./select-C2TZ6w0T.js";import"./index-BdQq_4o_.js";import"./task-route-DvThF15k.js";import"./task-key-BCHdFiOO.js";import"./project-index-CZL_Bcej.js";import"./use-tags-CBIw_9wj.js";import"./feedback-BqoIMOg7.js";import"./calendar-DD1b_D7F.js";import"./alert-I1_CrCmh.js";import"./collapsible-B4lmmxiu.js";import"./use-copy-B2pKd0TM.js";import"./markdown-Ck8Lzm4U.js";import"./chat-context-B9rZ1ojJ.js";import"./use-entitlements-DpylFAUx.js";import"./use-ai-providers-DTX4zdTq.js";import"./index-OqiiY1Yn.js";import"./usage-stats-Dr1e2NVB.js";import"./tool-namespace-DBtCIV7f.js";import"./form-B_7ux469.js";import"./utils-CVEq3hMx.js";import"./editor-classes-D9FopdtJ.js";import"./suggestion-CV5YiylC.js";import"./index-DpIy5MwJ.js";import"./index-rmNLmONI.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-KjQVKJGy.js";import"./use-connection-Lv1GX4XO.js";import"./github-repo-scope-C58hYmYC.js";import"./thread-sheet-body-CtA9qKg3.js";import"./useSuspenseInfiniteQuery-DKXKbUjm.js";import"./pair-Cd8NH003.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Bo8RWBFo.js";import"./types-Bz47I97G.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-mcp-prompts-Dtbvjt4h.js";import"./use-thread-outputs-CN7E968n.js";import"./file-type-icon-CLz3IVP9.js";import"./use-infinite-scroll-uPmbLXy7.js";import"./task-status-B4zkOwKe.js";import"./separator-D7JbMKRF.js";import"./chat-draft-BsgbOfj3.js";import"./feature-paywall-DrXSdvNQ.js";import"./plan-ladder-ClYEg_1y.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(h,{})}),t[0]=o):o=t[0],o}function Ho(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=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]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Ho as default};
|