decocms 4.541.0 → 4.542.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-HI4PJ-HL.js → ActiveShapeUtils-CTNIR1uo.js} +1 -1
- package/dist/client/assets/{AlertCircle-Pu-QR8hS.js → AlertCircle-Hdww5hle.js} +1 -1
- package/dist/client/assets/{AreaChart-DJ3vI97z.js → AreaChart-C_-vf7HG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CiCYDVFq.js → ArrowLeft-BdhX_ELF.js} +1 -1
- package/dist/client/assets/{ArrowUp-bMBjrwqG.js → ArrowUp-B0V8Iire.js} +1 -1
- package/dist/client/assets/{BarChart-DW5fB9sQ.js → BarChart-CGQa-jmR.js} +1 -1
- package/dist/client/assets/{Building02-BejNykWR.js → Building02-CIOqUK8u.js} +1 -1
- package/dist/client/assets/{CartesianChart-BfqGbR2p.js → CartesianChart-CJ4c9OjY.js} +1 -1
- package/dist/client/assets/{CategoricalChart-1g-OhB34.js → CategoricalChart-B7pVoKsa.js} +1 -1
- package/dist/client/assets/{CheckCircle-CiBrtkwP.js → CheckCircle-Oy-r5wrn.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Bb_Zani-.js → ChevronSelectorVertical-4o-RZGZG.js} +1 -1
- package/dist/client/assets/{ChevronUp-D3pnxmNi.js → ChevronUp-yEhXqYsc.js} +1 -1
- package/dist/client/assets/{Copy01-BEOZtg79.js → Copy01-DZu9JdFR.js} +1 -1
- package/dist/client/assets/{CreditCard01-C2H6wRye.js → CreditCard01-e2iuA4b6.js} +1 -1
- package/dist/client/assets/{DotsVertical-DddKhPwC.js → DotsVertical-2jz8M_Ab.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CUSRsGW6.js → ErrorBarContext-pdbVvNIr.js} +1 -1
- package/dist/client/assets/{Globe04-CR7aWwIq.js → Globe04-Dv-Q1UFe.js} +1 -1
- package/dist/client/assets/{Image01-D9f6XNAl.js → Image01-Csw8Eb7F.js} +1 -1
- package/dist/client/assets/{Key01-BGQzZTLx.js → Key01-nj-094nh.js} +1 -1
- package/dist/client/assets/{Link01-_AjEk0aG.js → Link01-DIQIHWyZ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BeLPonYT.js → LinkBroken01-DiqXlFxy.js} +1 -1
- package/dist/client/assets/{Minus-DRtjDVr0.js → Minus-DGpW2R_Y.js} +1 -1
- package/dist/client/assets/{Monitor01-CMcPb3p-.js → Monitor01-6lmVgqwN.js} +1 -1
- package/dist/client/assets/{Play-Bon9Nn-R.js → Play-Bw1hrhzw.js} +1 -1
- package/dist/client/assets/{Plus-DZ8OV5bq.js → Plus-BQ-ZwSoF.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CduNCTtx.js → ReferenceLine-D96IaFnI.js} +1 -1
- package/dist/client/assets/{SearchMd-Coxjt-Zl.js → SearchMd-CcFldd9q.js} +1 -1
- package/dist/client/assets/{Sector-CNB3zVjr.js → Sector-Lv3mbSoh.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CeVNpa4z.js → ShoppingBag01-Dt2W1jQn.js} +1 -1
- package/dist/client/assets/{Sun-E-EbUc0n.js → Sun-BCEy54hJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B8-pBEhT.js → SwitchHorizontal01-ZVZ1PW_K.js} +1 -1
- package/dist/client/assets/{Tool01-CkZTily1.js → Tool01-DamUcObd.js} +1 -1
- package/dist/client/assets/{Trash01-C8OxhBl3.js → Trash01-CA_m_Fs0.js} +1 -1
- package/dist/client/assets/{Upload01-Bt37Plwz.js → Upload01-COlXo8Rs.js} +1 -1
- package/dist/client/assets/{UserSquare-D7fSnIn3.js → UserSquare-TWw3zsr7.js} +1 -1
- package/dist/client/assets/{Users01-DVEy527M.js → Users01-CqKKJKeH.js} +1 -1
- package/dist/client/assets/{XClose-Bvl4KGPV.js → XClose-BLrzcEcC.js} +1 -1
- package/dist/client/assets/Zap-CbyRjfWs.js +1 -0
- package/dist/client/assets/{ZoomOut-9x8WuC5l.js → ZoomOut-C8TxwIPG.js} +1 -1
- package/dist/client/assets/{access-gate-DaxHYIBB.js → access-gate-RZ9GSyUJ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CjJZP05X.js → add-connection-dialog-BVaDiahz.js} +1 -1
- package/dist/client/assets/agent-analytics-Cdw0YBIV.js +2 -0
- package/dist/client/assets/agent-app-CgNxZEzb.js +1 -0
- package/dist/client/assets/agent-assets-C6qXUWEv.js +1 -0
- package/dist/client/assets/{agent-automation-CI0Nub-n.js → agent-automation-N0vyewKq.js} +2 -2
- package/dist/client/assets/agent-automations-U4KLp_Jm.js +1 -0
- package/dist/client/assets/agent-calendar-VlbI2j-J.js +1 -0
- package/dist/client/assets/agent-connect-sources-DzR95Lay.js +1 -0
- package/dist/client/assets/agent-deck-SnZhc8k8.js +1 -0
- package/dist/client/assets/agent-e2e-7b8bEJgs.js +1 -0
- package/dist/client/assets/agent-experiments-DqhQbvgt.js +1 -0
- package/dist/client/assets/agent-file-qAGeJ5wq.js +1 -0
- package/dist/client/assets/agent-hosting-ZktfT8aB.js +1 -0
- package/dist/client/assets/agent-icon-rBB7-3Iv.js +1 -0
- package/dist/client/assets/agent-library-5yOHhp5F.js +1 -0
- package/dist/client/assets/agent-library-file-Cj3Cwkh2.js +1 -0
- package/dist/client/assets/agent-monitor-Bywg_SMe.js +1 -0
- package/dist/client/assets/agent-overview-C1fHYueD.js +1 -0
- package/dist/client/assets/{agent-releases-CEzBKX-V.js → agent-releases-BUlnts0m.js} +2 -2
- package/dist/client/assets/agent-settings-CQR-A0mU.js +1 -0
- package/dist/client/assets/{agent-site-editor-Du4tKYJz.js → agent-site-editor-BxGyQ1GG.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-lC9bSMmG.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bshm0mLR.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DnlcRwFX.js +1 -0
- package/dist/client/assets/agent-view-DbVFezEQ.js +1 -0
- package/dist/client/assets/{agent-view-guard-B04R8Znt.js → agent-view-guard-CrSlBYGa.js} +1 -1
- package/dist/client/assets/agents-list-DQMpcCgV.js +1 -0
- package/dist/client/assets/{ai-providers-aETP-f64.js → ai-providers-DmJhCIXK.js} +1 -1
- package/dist/client/assets/{alert-BF8n9shl.js → alert-Bg73iQHm.js} +1 -1
- package/dist/client/assets/{analytics-sections-SZXfO52-.js → analytics-sections-COL0BtKA.js} +1 -1
- package/dist/client/assets/api-keys-l4aX0wsP.js +1 -0
- package/dist/client/assets/{api-keys-CiBjRrwV.js → api-keys-yf9_DOP2.js} +1 -1
- package/dist/client/assets/app-editor-BoAUsCRl.js +1 -0
- package/dist/client/assets/{asset-utils-7zQmpZtP.js → asset-utils-BrDvPrYv.js} +1 -1
- package/dist/client/assets/{auth-Dt9DGFhA.js → auth-DPUc_dnx.js} +1 -1
- package/dist/client/assets/{auth-catchall-APuNzDqf.js → auth-catchall-3vQklB_P.js} +1 -1
- package/dist/client/assets/{auth-entry-Dt8D4c49.js → auth-entry-DzHbwDpa.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DKGBUJmn.js → auth-split-layout-CrNUjCQ4.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CzFtziag.js → authenticate-and-persist-oauth-RWTag1bK.js} +1 -1
- package/dist/client/assets/automation-list-row-DJWeWPbv.js +1 -0
- package/dist/client/assets/{automation-runs-rp2R5GSb.js → automation-runs-C9XEPlIV.js} +1 -1
- package/dist/client/assets/automations-Dhk5JOxd.js +1 -0
- package/dist/client/assets/{autosend-BYljpA5c.js → autosend-Bw00xJf9.js} +1 -1
- package/dist/client/assets/{badge-CMgWUKiX.js → badge-BWAFo8iB.js} +1 -1
- package/dist/client/assets/{block-document-ClAOKgf4.js → block-document-D_ARyc6Z.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-DQj4RBd8.js → blocks-preview-workspace-context-Bhzld3G9.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-CQydf1x6.js → blocks-tab-states-Bujj2Oag.js} +1 -1
- package/dist/client/assets/{blog-schema-BOqVZaeF.js → blog-schema-B3FO_Ydd.js} +1 -1
- package/dist/client/assets/{buckets-qwGMsdZj.js → buckets-D-TerXqE.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B2MxMIfa.js → build-improve-prompt-doc-D_iuDFLq.js} +1 -1
- package/dist/client/assets/{calendar-gk2fXc2c.js → calendar-BRFOK1aQ.js} +1 -1
- package/dist/client/assets/{capability-load-error-D2UF4Aw2.js → capability-load-error-BNI4R8XO.js} +1 -1
- package/dist/client/assets/category-editor-bZgzbes6.js +1 -0
- package/dist/client/assets/{cdn-tab-BJ_vvsuv.js → cdn-tab-BqJVJvQQ.js} +1 -1
- package/dist/client/assets/{chart-orNTiDQv.js → chart-Q09A7KSZ.js} +1 -1
- package/dist/client/assets/{chat-context-Cbn1d2gD.js → chat-context-DR3uLV2w.js} +1 -1
- package/dist/client/assets/{chat-draft-Dz-8ZkTL.js → chat-draft-CKNXk7gm.js} +1 -1
- package/dist/client/assets/{checkbox-CA6aWe75.js → checkbox-b8t24adl.js} +1 -1
- package/dist/client/assets/choose-editor-TtuwIl9O.js +1 -0
- package/dist/client/assets/{cli-auth-success-BwZvMY9K.js → cli-auth-success-Dt-ivrkY.js} +1 -1
- package/dist/client/assets/{client-icons-BokFUC05.js → client-icons-3S2BKupf.js} +1 -1
- package/dist/client/assets/cms-settings-editor-CoL1CtIi.js +1 -0
- package/dist/client/assets/{collapsible-DMa5aTxw.js → collapsible-BHetx99z.js} +1 -1
- package/dist/client/assets/collection-detail-C551YHre.js +1 -0
- package/dist/client/assets/{collection-display-button-CO0G5HBN.js → collection-display-button-BjEhoX6t.js} +1 -1
- package/dist/client/assets/{collection-search-BtpA2Lei.js → collection-search-2lwiZ_Gf.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-zNmZhsyo.js → collection-table-wrapper-TIbTouTp.js} +1 -1
- package/dist/client/assets/{collection-tabs-CSXR7UYb.js → collection-tabs-DNvFQjqm.js} +1 -1
- package/dist/client/assets/{combobox-BwKhFDqj.js → combobox-CMpxb7Mm.js} +1 -1
- package/dist/client/assets/{command-lP5P8rqX.js → command-CermhoTd.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CvFB8u3v.js → companion-mcps-section-CM4OIzwX.js} +1 -1
- package/dist/client/assets/{companions-core-DzyeM-yJ.js → companions-core-PpXpxfgQ.js} +1 -1
- package/dist/client/assets/{config-B8-1YX-t.js → config-VQsUFgqz.js} +1 -1
- package/dist/client/assets/{connect-D2iiXOSY.js → connect-BfWqzz_9.js} +1 -1
- package/dist/client/assets/{connect-layout-HGVTLejY.js → connect-layout-F601-RNu.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DXGOBfjT.js → connect-source-dialog-CBx-6nzq.js} +1 -1
- package/dist/client/assets/{connection-Cn9FrEsZ.js → connection-DrOf5a8e.js} +1 -1
- package/dist/client/assets/{connection-card-DlWLwRKA.js → connection-card-CZBuUPP_.js} +1 -1
- package/dist/client/assets/connection-detail-DPF8YmLk.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DdDJu97E.js → connection-form-helpers-D3sfjZA_.js} +1 -1
- package/dist/client/assets/connections-lrErrE5H.js +1 -0
- package/dist/client/assets/{content-tab-B-LNJbd9.js → content-tab-DruH5Km_.js} +8 -8
- package/dist/client/assets/context-DmRBBX5q.js +1 -0
- package/dist/client/assets/{context-menu-gvTbM_VP.js → context-menu-Biz9RPI-.js} +1 -1
- package/dist/client/assets/{context-shell-BdVWw-gN.js → context-shell-CnZGomwI.js} +3 -3
- package/dist/client/assets/{core.esm-M1IJOkIH.js → core.esm-Dennsttt.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DNvzT5i-.js → create-organization-dialog-wSFwPaJG.js} +1 -1
- package/dist/client/assets/{daily-pulse-DOHhxMy1.js → daily-pulse-A6f95wwZ.js} +1 -1
- package/dist/client/assets/discover-DU-Rzely.js +1 -0
- package/dist/client/assets/{domain-settings-DRphZ3mS.js → domain-settings-Bnb_ZtIt.js} +1 -1
- package/dist/client/assets/{drawer-Bsnw19SA.js → drawer-CuUzaTfw.js} +1 -1
- package/dist/client/assets/{editor-Z7h3tdjo.js → editor-CJ37wKUc.js} +1 -1
- package/dist/client/assets/{editor-classes-CIysMLqw.js → editor-classes-yEQ_KPvG.js} +1 -1
- package/dist/client/assets/{empty-state-EpAwETL4.js → empty-state-DXBACaDC.js} +1 -1
- package/dist/client/assets/{empty-state-CEJi6IVu.js → empty-state-DhRsvQHO.js} +1 -1
- package/dist/client/assets/{experiments-tab-BKBmpbQS.js → experiments-tab-Bx6GaOJU.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-EKyQNqty.js → experiments-tab-choice-B1sDnY5T.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CGOVIYLF.js → extract-connection-data-DOpfeyzI.js} +1 -1
- package/dist/client/assets/{feature-gate-DXCleAqA.js → feature-gate-FbVbvaij.js} +1 -1
- package/dist/client/assets/{feature-paywall-4QJAn2z5.js → feature-paywall-CdkGt72v.js} +1 -1
- package/dist/client/assets/file-explorer-BfjvwZGe.js +2 -0
- package/dist/client/assets/{file-preview-CCmllyvi.js → file-preview-CpUVcTEC.js} +1 -1
- package/dist/client/assets/{file-share-button-DbPRyXAD.js → file-share-button-BFGgw9L9.js} +1 -1
- package/dist/client/assets/{file-type-icon-CiMMiUYO.js → file-type-icon-BkRHeWVz.js} +1 -1
- package/dist/client/assets/folder-icon-CEWb3RvH.js +1 -0
- package/dist/client/assets/{form-Bk9ymCIS.js → form-RFg7ydwN.js} +1 -1
- package/dist/client/assets/{general-Cr_ASK52.js → general-CCnErHaD.js} +1 -1
- package/dist/client/assets/{github-icon-EmEurWMX.js → github-icon-CfOxQ_kk.js} +1 -1
- package/dist/client/assets/github-repo-scope-CiKlF-H0.js +1 -0
- package/dist/client/assets/{held-block-view-BDu8bj-6.js → held-block-view-B1ZTgtaf.js} +3 -3
- package/dist/client/assets/home-d4IkLgAU.js +1 -0
- package/dist/client/assets/{hosted-publish-feedback-C3S_f767.js → hosted-publish-feedback-CaaC9Yio.js} +1 -1
- package/dist/client/assets/{icon-button-CcHZO8e6.js → icon-button-DUX8uev-.js} +1 -1
- package/dist/client/assets/{index-Bek871Hp.js → index-AhdOdumU.js} +1 -1
- package/dist/client/assets/{index-DGAfs5q1.js → index-BN1wxwBE.js} +1 -1
- package/dist/client/assets/{index-DvPTtoj9.js → index-BU3lM1Xe.js} +1 -1
- package/dist/client/assets/{index-CcyUawfW.js → index-CYvmYTza.js} +1 -1
- package/dist/client/assets/{index-CRt26OMk.js → index-CaPLCDO_.js} +1 -1
- package/dist/client/assets/{index-Bd1JsEWx.js → index-CuP8z21G.js} +1 -1
- package/dist/client/assets/{index-LISCRMKT.js → index-Cw6ilRLN.js} +5 -5
- package/dist/client/assets/{index-D_GgrLpt.js → index-DF_kVaV9.js} +1 -1
- package/dist/client/assets/{index-DMN6-ViK.js → index-DiHVaqTW.js} +2 -2
- package/dist/client/assets/{index-BaOc9Ezz.js → index-DiqyTQYB.js} +1 -1
- package/dist/client/assets/{index-BGKyyvyC.js → index-DnZM2vOx.js} +1 -1
- package/dist/client/assets/{index-DMJwbqhe.js → index-GbZ7cHim.js} +1 -1
- package/dist/client/assets/{index-KxuowPl9.js → index-KnmovUVi.js} +1 -1
- package/dist/client/assets/{index-Rjs_bdr_.js → index-ZjFFuBzo.js} +1 -1
- package/dist/client/assets/index-_wqQ3Hkr.css +1 -0
- package/dist/client/assets/{index-KpWMq2p9.js → index-nea5NUvS.js} +1 -1
- package/dist/client/assets/{index-redirect-C_c-8-0u.js → index-redirect-D8gnMr4D.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DGdbL4U6.js → infiniteQueryObserver-r2g3Rufl.js} +1 -1
- package/dist/client/assets/{infra-billing-CkpqPi0H.js → infra-billing-xKdFu2DK.js} +1 -1
- package/dist/client/assets/{input-BhbajINs.js → input-B3t37gB5.js} +1 -1
- package/dist/client/assets/{input-Cgw3HqQu.js → input-BiNlRIkN.js} +3 -3
- package/dist/client/assets/{integration-icon-msZhQ6E3.js → integration-icon-BvuUEHwl.js} +1 -1
- package/dist/client/assets/{jira-icon-C8kN-yG2.js → jira-icon-C17_Jc2B.js} +1 -1
- package/dist/client/assets/{label-BfYbFBpZ.js → label-DvonkoXD.js} +1 -1
- package/dist/client/assets/{layout-DFaNAdKK.js → layout-BiaPlBt-.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BQflSkhZ.js → legacy-agents-deep-DV5Zxfa8.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DaGWGhtf.js → legacy-main-redirect-3QdAqV_c.js} +1 -1
- package/dist/client/assets/library-DNyXivcG.js +1 -0
- package/dist/client/assets/{library-tab-4UasD5Mp.js → library-tab-Nfz-0YaQ.js} +3 -3
- package/dist/client/assets/{login-DtccMmUF.js → login-bITsid_u.js} +1 -1
- package/dist/client/assets/{markdown-CGLGjJUn.js → markdown-Bnq_rauO.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BmH0oH65.js → mcp-app-renderer-D9bP7Uyj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D5bTwzBt.js → mcp-oauth-B1sQYgh4.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CDHHl2AY.js → mcp-oauth-zW9MaFGn.js} +1 -1
- package/dist/client/assets/{members-CqaIW0DL.js → members-CXI65xvm.js} +1 -1
- package/dist/client/assets/{memory-DoZ_Hb59.js → memory-C-guhabj.js} +1 -1
- package/dist/client/assets/{mini-report-page-CWBsLXpy.js → mini-report-page-C9o2eyOe.js} +1 -1
- package/dist/client/assets/mock-board-BShoWwXR.js +81 -0
- package/dist/client/assets/{monaco-editor-B_hB8uvI.js → monaco-editor-DP1-rJ0v.js} +1 -1
- package/dist/client/assets/monitoring-CqLCuFHk.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-va93h-kh.js → monitoring-stats-row-BRnhkE0A.js} +1 -1
- package/dist/client/assets/{multi-select-DqoGBuJR.js → multi-select-ID8vWjv8.js} +1 -1
- package/dist/client/assets/{mustache-YJnhKKzZ.js → mustache-nJjvu1VV.js} +1 -1
- package/dist/client/assets/{named-rule-uses-B5UiiWoJ.js → named-rule-uses-BHC4DlIQ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BrtI6GgZ.js → new-project-dialog-4twV8Y4C.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-IxBLpV6t.js → oauth-callback-ai-provider-Da3_ca8D.js} +1 -1
- package/dist/client/assets/{oauth-callback-DvCUGRkg.js → oauth-callback-h0NUpdOX.js} +1 -1
- package/dist/client/assets/{onboarding-CqirqsHd.js → onboarding-CvFXVvAB.js} +1 -1
- package/dist/client/assets/openai-conversation-9-S9iWS8.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-CPWt9LH6.js → optimistic-project-sidebar-views-B65im_4W.js} +1 -1
- package/dist/client/assets/{order-monitor-day-or-R9J0S.js → order-monitor-day-GXa0K2fU.js} +1 -1
- package/dist/client/assets/{organization-choice-CeZ3suN4.js → organization-choice-DKpl7kTn.js} +1 -1
- package/dist/client/assets/{orgs-iTHfKpGx.js → orgs-Dt-LNqWF.js} +1 -1
- package/dist/client/assets/{page-seo-form-CdFLhDD2.js → page-seo-form-DzjOyYJI.js} +1 -1
- package/dist/client/assets/{pair-B_hske_9.js → pair-BwKW0A4I.js} +1 -1
- package/dist/client/assets/{parse-sections-rTJ9Vxva.js → parse-sections-C3Hmwt0I.js} +1 -1
- package/dist/client/assets/plan-BJIbgrS0.js +1 -0
- package/dist/client/assets/{plan-ladder-ROI7a8rc.js → plan-ladder-DIPGMFy3.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DmpNxqNF.js → plan-usage-card-OrJ6ndWB.js} +1 -1
- package/dist/client/assets/{popover-D6dCz_8d.js → popover-N-Tbv2Q_.js} +1 -1
- package/dist/client/assets/post-calendar-BN2880sO.js +1 -0
- package/dist/client/assets/{post-editor-C9guOY0S.js → post-editor-SZ0T52l-.js} +2 -2
- package/dist/client/assets/{preview-content-DFI0aQf4.js → preview-content-BrY4N22Q.js} +1 -1
- package/dist/client/assets/{preview-dialog-D2HjzZ1B.js → preview-dialog-DNkXNQe2.js} +1 -1
- package/dist/client/assets/{preview-panel-0VJe1FDB.js → preview-panel-BeRdNuZC.js} +1 -1
- package/dist/client/assets/{preview-tab-CpG9tuu6.js → preview-tab-EJWXb_JS.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-CFjl9WR-.js → product-picker-dialog-DJW0OQ7t.js} +1 -1
- package/dist/client/assets/{profile-CY0p7UGQ.js → profile-p2CkJE0T.js} +1 -1
- package/dist/client/assets/project-app-view-C_EMPbo0.js +1 -0
- package/dist/client/assets/project-apps-CbCNo3Qh.js +1 -0
- package/dist/client/assets/{project-feed-Cqb3oD2R.js → project-feed-BOoFoesM.js} +1 -1
- package/dist/client/assets/{project-icon-As9MoCET.js → project-icon-BRvDYuEF.js} +1 -1
- package/dist/client/assets/project-reports-Ckw4gPRj.js +1 -0
- package/dist/client/assets/project-tasks-DIs0LJKu.js +1 -0
- package/dist/client/assets/projects-DxaWyr4c.js +1 -0
- package/dist/client/assets/{projects-empty-state-B4wHwi2Z.js → projects-empty-state-q_kUg5xI.js} +1 -1
- package/dist/client/assets/{prompts-f4GajLV5.js → prompts-ORkU8nSR.js} +1 -1
- package/dist/client/assets/{provision-repo-scoped-github-connection-lckxpDHD.js → provision-repo-scoped-github-connection-DoOuHltS.js} +1 -1
- package/dist/client/assets/record-editor-C9Hk9gzX.js +1 -0
- package/dist/client/assets/redirect-editor-DTFg1kOc.js +1 -0
- package/dist/client/assets/{releases-api-kH_Ed6eO.js → releases-api-MmQe-HE4.js} +1 -1
- package/dist/client/assets/{reports-D2UCpDap.js → reports-C3nGzDLE.js} +1 -1
- package/dist/client/assets/reports-DpW566Gg.js +1 -0
- package/dist/client/assets/reports-onboarding-D8qOl7n6.js +1 -0
- package/dist/client/assets/reports-tab-BRsFQ8_g.js +2 -0
- package/dist/client/assets/{repositories-DzOMkV9O.js → repositories-DWS1FNsz.js} +1 -1
- package/dist/client/assets/repositories-rpqjpzkl.js +1 -0
- package/dist/client/assets/{repository-binding-N72ZtnJ7.js → repository-binding-PeMGXqSl.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CNVRTxph.js → repository-import-picker-BMJ3biNs.js} +1 -1
- package/dist/client/assets/{repository-picker-CW0SaV-m.js → repository-picker-XiErYA7B.js} +1 -1
- package/dist/client/assets/{require-capability-C2GXhzLq.js → require-capability-42JNP4Dw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BwkU_8aI.js → required-auth-layout-DsfiOlyN.js} +1 -1
- package/dist/client/assets/{reset-password-gBMO6F0r.js → reset-password-CsAEO5bw.js} +1 -1
- package/dist/client/assets/{resizable-WR3fdR8J.js → resizable-XQP8BK4_.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DS-pAijm.js → resolve-tab-icon-CguQjH43.js} +1 -1
- package/dist/client/assets/{review-settings-DcaJvbTX.js → review-settings-U2xSoSbC.js} +1 -1
- package/dist/client/assets/roles-DZFrq3cC.js +1 -0
- package/dist/client/assets/route-BeAt5Jxq.js +1 -0
- package/dist/client/assets/route-C-GIqs4Z.js +1 -0
- package/dist/client/assets/route-DKXnO--k.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-BBDd5Vd6.js → sandbox-lifecycle-context-DB7MI-hA.js} +1 -1
- package/dist/client/assets/{schema-C2dfCTpF.js → schema-CB30E7Gi.js} +1 -1
- package/dist/client/assets/{schema-cjQbFYEA.js → schema-DGh8triY.js} +1 -1
- package/dist/client/assets/{scroll-area-DYvdRQ3X.js → scroll-area-BhjyScQp.js} +1 -1
- package/dist/client/assets/{search-input-DfJJHgak.js → search-input-CnMfC6Ib.js} +1 -1
- package/dist/client/assets/{search-toggle-K39LDgc3.js → search-toggle-BsT7rhT7.js} +1 -1
- package/dist/client/assets/{secret-picker-COEpc_Br.js → secret-picker-DRe1iXLV.js} +1 -1
- package/dist/client/assets/{secrets-DpnxLirI.js → secrets-Cm-nUiVG.js} +1 -1
- package/dist/client/assets/{section-array-field-cPwKvhUj.js → section-array-field-CowajgIO.js} +1 -1
- package/dist/client/assets/{sections-DQYOsFQr.js → sections-DN1XjEty.js} +1 -1
- package/dist/client/assets/sections-editor-KyiXwNg4.js +1 -0
- package/dist/client/assets/{select-Ce8n-RXJ.js → select-IRnWfSEI.js} +1 -1
- package/dist/client/assets/{select-model-DrlCeL1J.js → select-model-_tURUtw8.js} +1 -1
- package/dist/client/assets/seo-editor-DQuBtXMq.js +1 -0
- package/dist/client/assets/{separator-CMPRlDqA.js → separator-AD4s_4vt.js} +1 -1
- package/dist/client/assets/settings-tab-Cyi9Dt5w.js +1 -0
- package/dist/client/assets/{sheet-C1Iz_daC.js → sheet-CLT2kz10.js} +1 -1
- package/dist/client/assets/shell-layout-CdKs-SVX.js +1 -0
- package/dist/client/assets/{site-draft-actions-Cwq-m4rQ.js → site-draft-actions-K5CCMVX6.js} +1 -1
- package/dist/client/assets/{site-draft-view-BGk8W1nm.js → site-draft-view-Dzca4Bar.js} +2 -2
- package/dist/client/assets/site-editor-B1tNbOKR.js +1 -0
- package/dist/client/assets/{site-editor-toast-BZwEeugO.js → site-editor-toast-MdEv_oKc.js} +1 -1
- package/dist/client/assets/skills-DIJP95gf.js +1 -0
- package/dist/client/assets/{slider-BRlhk1I_.js → slider-BOLJxYF2.js} +1 -1
- package/dist/client/assets/{sortable.esm-DfWQuMf-.js → sortable.esm-CIFqofWL.js} +1 -1
- package/dist/client/assets/{sso-Bl0_X14P.js → sso-DqMDaenE.js} +1 -1
- package/dist/client/assets/{suggestion-C79o6bsf.js → suggestion-tz-f65fQ.js} +1 -1
- package/dist/client/assets/{switch-B5fLkk4G.js → switch-D45dHrK3.js} +1 -1
- package/dist/client/assets/{symbol-AaQxOm0Y.js → symbol-Femlxd_m.js} +1 -1
- package/dist/client/assets/{synced-repos-Bes2Akem.js → synced-repos-45QejDcI.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-X9RKDulT.js → tab-icon-glyph-pt4s2Grb.js} +1 -1
- package/dist/client/assets/{table-CR0vxly9.js → table-Daq1_j7m.js} +1 -1
- package/dist/client/assets/{tabs-BeQ3GpBj.js → tabs-DBG72Yee.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-BxtkZ6j_.js → task-assignee-avatar-DrrfJr__.js} +1 -1
- package/dist/client/assets/{task-board-DfACAZyY.js → task-board-DSKYQnUa.js} +1 -1
- package/dist/client/assets/{task-route-CEMyrZwM.js → task-route-D46EYWzc.js} +1 -1
- package/dist/client/assets/{task-status-CwtxChqi.js → task-status-CJpXljEZ.js} +1 -1
- package/dist/client/assets/taskboard-analytics-COtnoUXH.js +1 -0
- package/dist/client/assets/{tasks-5giK8VZS.js → tasks-D5O8k4au.js} +3 -3
- package/dist/client/assets/tasks-Dkj9k49d.js +1 -0
- package/dist/client/assets/{textarea-1B6eWYpg.js → textarea-B3VJ1IVc.js} +1 -1
- package/dist/client/assets/thread-analytics-yTtiboMK.js +1 -0
- package/dist/client/assets/{thread-intent-ptqgtSKo.js → thread-intent-CAWCzeoG.js} +1 -1
- package/dist/client/assets/{thread-route-CCN9I68_.js → thread-route-BZQyZ1gL.js} +1 -1
- package/dist/client/assets/thread-route-C3He_naw.js +1 -0
- package/dist/client/assets/{thread-sheet-body-Opalk3rB.js → thread-sheet-body-vk26kAGI.js} +1 -1
- package/dist/client/assets/{time-range-picker-D-3pTVaL.js → time-range-picker-Dwtk68FK.js} +1 -1
- package/dist/client/assets/{toggle-group-DhjHoFhg.js → toggle-group-BtOmVjMF.js} +1 -1
- package/dist/client/assets/{tool-namespace-EPn7Kyb1.js → tool-namespace-COirY7s5.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DOtu5VNi.js → toolbar-icon-button-as98rium.js} +1 -1
- package/dist/client/assets/{tooltip-DiW2ytsS.js → tooltip-g1j6c67B.js} +1 -1
- package/dist/client/assets/{tooltipContext-Boh-kskS.js → tooltipContext-CLvPoHx0.js} +1 -1
- package/dist/client/assets/{track-DDsr4-8X.js → track-CbG7q0Jx.js} +1 -1
- package/dist/client/assets/{types-CAqly_33.js → types-C_kLVB_R.js} +1 -1
- package/dist/client/assets/{url-slug-BimzZyel.js → url-slug-DFbBJdJJ.js} +1 -1
- package/dist/client/assets/{usage-stats-DyqnqVDM.js → usage-stats-CO_PzmjR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DGRaKYBP.js → use-ai-providers-UYArMe6s.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-TltIMgYp.js → use-apply-named-rule-DjUylbM_.js} +1 -1
- package/dist/client/assets/{use-automations-DcNzV0FS.js → use-automations-fhgNtkrI.js} +1 -1
- package/dist/client/assets/{use-autosave-DQJxV1eg.js → use-autosave-VNB60wel.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-lg3L3DSm.js → use-chat-layout-state-uzyWoT7E.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BXkjZk4h.js → use-clock-tick-Bbl4jizB.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Cg-2YJOJ.js → use-cms-publish-actions-Oa0EZQ0t.js} +1 -1
- package/dist/client/assets/{use-connect-companion-FMSyv7iG.js → use-connect-companion-BinIX0nI.js} +1 -1
- package/dist/client/assets/{use-connection-DZPkoV0a.js → use-connection-BeEdNRHa.js} +1 -1
- package/dist/client/assets/{use-copy-Bb3ge3Jw.js → use-copy-Dk3cEiBB.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CFxxMtOW.js → use-create-virtual-mcp-CcnOX0WT.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DTg1snyT.js → use-date-fns-locale-CpjJIfQT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DKsafE_B.js → use-debounced-autosave-QN0_xGaq.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DBl2u8Ax.js → use-debounced-value-Cg3pn3hJ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CHyZsaQg.js → use-deco-credits-C5r8tKZH.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-ChnGZu8F.js → use-decopilot-events-D7GIEyuu.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Txpqn3lI.js → use-delete-connection-Cx5vGSZR.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Do6VU3ed.js → use-deployment-admin-DVUkJw7-.js} +1 -1
- package/dist/client/assets/{use-entitlements-9vbVfq68.js → use-entitlements-C4tNpLNZ.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CXQ7cT85.js → use-fast-preview-draft-url-C2yv-JdA.js} +1 -1
- package/dist/client/assets/{use-file-configs-Dn7YLM4Z.js → use-file-configs-C8WLQuJ_.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BZyJNQXN.js → use-inbox-feed-CmYEHjcJ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CB0WyAlc.js → use-infinite-scroll-dtUi5Sm6.js} +1 -1
- package/dist/client/assets/{use-join-requests-CW_FogGu.js → use-join-requests-CACMdSxj.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BtH_KnVM.js → use-main-panel-tabs-6UM-eEDy.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CKDFCOAa.js → use-mcp-auth-status-nCZ8OnbU.js} +1 -1
- package/dist/client/assets/{use-mcp-client-0e8NRgfT.js → use-mcp-client-CvhC1TIJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B2c7TGKV.js → use-mcp-prompts-BWsIl6wX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BWk4AICK.js → use-mcp-tools-I_UsR8Xf.js} +1 -1
- package/dist/client/assets/{use-mobile-BJBInbLU.js → use-mobile-CKqq0hw6.js} +1 -1
- package/dist/client/assets/{use-move-blocks-sjThA1Ew.js → use-move-blocks-D5l0lx5X.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CpRnIp1k.js → use-navigate-to-agent-X54xBbs-.js} +1 -1
- package/dist/client/assets/{use-org-fs-B8r-1D4b.js → use-org-fs-wk2PRaOo.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dq0Qf-et.js → use-org-repo-syncs-ON_B-I08.js} +1 -1
- package/dist/client/assets/{use-org-sso-DVHlBcmx.js → use-org-sso-1YltyqLi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYmDerrq.js → use-organization-roles-CxgWGtCR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CK8r9oqu.js → use-organization-settings-BFBXS4UG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CnrhnUVG.js → use-panel-navigate-DzWclIwL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DnAEbSTa.js → use-project-native-view-presence-B8VDwbCS.js} +1 -1
- package/dist/client/assets/{use-project-scope-LiKIXaiK.js → use-project-scope-Bq5GrrDd.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Dbpw5TB5.js → use-recent-apps-DBlZNiUD.js} +1 -1
- package/dist/client/assets/{use-releases-ClTQL_RZ.js → use-releases-Dth9LHEU.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DVwMPgD_.js → use-reports-diagnostic-Do0xVL-L.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BAik2LAS.js → use-sandbox-events-vz4ehPML.js} +1 -1
- package/dist/client/assets/{use-secrets-ZlehcjzW.js → use-secrets-Byq7_LZ0.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CLumQxEU.js → use-section-preview-base-Bi-N531T.js} +1 -1
- package/dist/client/assets/{use-session-runtime-PX0UU1rX.js → use-session-runtime-C29BLCO5.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-ByUss2bb.js → use-sidebar-collapsed-CC40xbK2.js} +1 -1
- package/dist/client/assets/{use-tags-CeuMPNMY.js → use-tags-DsgZua5i.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DzVWF5Q4.js → use-task-board-analytics-BTfxOx5Z.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Cuq4HTGo.js → use-task-board-events-BQ73Mjf5.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BZA4s0mM.js → use-task-board-item-prs-D1aN1p6d.js} +1 -1
- package/dist/client/assets/use-task-board-prompts-CaMiqHjx.js +1 -0
- package/dist/client/assets/{use-task-metadata-De52Dfmg.js → use-task-metadata-RAKFvADU.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-HQsRrHEt.js → use-thread-analytics-UYwynn2f.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BT4PyLKe.js → use-thread-outputs-DsSeydeQ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-qZeYk4so.js +1 -0
- package/dist/client/assets/{useQueries-nk-gppMK.js → useQueries-BxilFdP8.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CTPa_bH3.js +1 -0
- package/dist/client/assets/{users-CLgvJMnS.js → users-CfzZpC_f.js} +1 -1
- package/dist/client/assets/{utils-BDRBqTP5.js → utils-CFwQd3Dj.js} +1 -1
- package/dist/client/assets/variant-calendar-DAzhjaCK.js +1 -0
- package/dist/client/assets/{variant-matcher-override-D6IszGLS.js → variant-matcher-override-KA8G6wne.js} +1 -1
- package/dist/client/assets/{view-header-Ce7a2voT.js → view-header-D4T3g6Y4.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C5JzNRIg.js → virtual-mcp-CJAqxDe2.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CBQ2__fw.js → watch-sse-pool-BxinXtVa.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-BEKl1X8N.js +0 -2
- package/dist/client/assets/agent-app-8j-E-hT5.js +0 -1
- package/dist/client/assets/agent-assets-DQ6hVD8p.js +0 -1
- package/dist/client/assets/agent-automations-DzkmpBZa.js +0 -1
- package/dist/client/assets/agent-calendar-BC2tVvZL.js +0 -1
- package/dist/client/assets/agent-connect-sources-Dh7wTbNs.js +0 -1
- package/dist/client/assets/agent-deck-07no_3NQ.js +0 -1
- package/dist/client/assets/agent-e2e-Ds3Fe2AE.js +0 -1
- package/dist/client/assets/agent-experiments-DofmmJcd.js +0 -1
- package/dist/client/assets/agent-file-6W_Gnaal.js +0 -1
- package/dist/client/assets/agent-hosting-vZ66b5t2.js +0 -1
- package/dist/client/assets/agent-icon-Co7E9kYl.js +0 -1
- package/dist/client/assets/agent-library-R2xLquH1.js +0 -1
- package/dist/client/assets/agent-library-file-BXlKOL8M.js +0 -1
- package/dist/client/assets/agent-monitor-BoyNxcz1.js +0 -1
- package/dist/client/assets/agent-overview-CSwJW27z.js +0 -1
- package/dist/client/assets/agent-settings-BGDVCihC.js +0 -1
- package/dist/client/assets/agent-site-editor-code-FDZ6QYUh.js +0 -2
- package/dist/client/assets/agent-site-editor-content-kP1qC2rB.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DmkFZKpC.js +0 -1
- package/dist/client/assets/agent-view-CH596Gq0.js +0 -1
- package/dist/client/assets/agents-list-CBfEPAhK.js +0 -1
- package/dist/client/assets/api-keys-9pHr3QlX.js +0 -1
- package/dist/client/assets/app-editor-BVC0eWvP.js +0 -1
- package/dist/client/assets/automation-list-row-BvcdSOir.js +0 -1
- package/dist/client/assets/automations-C2DGayAE.js +0 -1
- package/dist/client/assets/category-editor-BaE2uAd6.js +0 -1
- package/dist/client/assets/choose-editor-C2L8nFMF.js +0 -1
- package/dist/client/assets/cms-settings-editor-DTAdiNDN.js +0 -1
- package/dist/client/assets/collection-detail-tC_GRfYF.js +0 -1
- package/dist/client/assets/column-rules-C63NCpq3.js +0 -3
- package/dist/client/assets/connection-detail-C98bDTVH.js +0 -1
- package/dist/client/assets/connections-C6M8AgjO.js +0 -1
- package/dist/client/assets/context-CPd4zSV0.js +0 -1
- package/dist/client/assets/discover-COhVLrYW.js +0 -1
- package/dist/client/assets/file-explorer-Bd3gIXGV.js +0 -2
- package/dist/client/assets/folder-icon-rxpoDvAE.js +0 -1
- package/dist/client/assets/github-repo-scope-ByTYKy_L.js +0 -1
- package/dist/client/assets/home-DGMtvNuq.js +0 -1
- package/dist/client/assets/index-By_-wb1N.css +0 -1
- package/dist/client/assets/library-CdfdY0qf.js +0 -1
- package/dist/client/assets/mock-board-piOcYIBD.js +0 -81
- package/dist/client/assets/monitoring-3dbLT4OM.js +0 -1
- package/dist/client/assets/openai-conversation-DGR8tfoH.js +0 -3
- package/dist/client/assets/plan-CKUD-2iO.js +0 -1
- package/dist/client/assets/post-calendar-DkrNCJu_.js +0 -1
- package/dist/client/assets/project-app-view-Cf1gd22p.js +0 -1
- package/dist/client/assets/project-apps-X2VfH52k.js +0 -1
- package/dist/client/assets/project-reports-BVlytfOe.js +0 -1
- package/dist/client/assets/project-tasks-BGW3O_F5.js +0 -1
- package/dist/client/assets/projects-oKJE7kAY.js +0 -1
- package/dist/client/assets/record-editor-BOGjSPiY.js +0 -1
- package/dist/client/assets/redirect-editor-DxMUngFX.js +0 -1
- package/dist/client/assets/reports-N81wb4Wq.js +0 -1
- package/dist/client/assets/reports-onboarding-CljQnv9P.js +0 -1
- package/dist/client/assets/reports-tab-CSx5fOj6.js +0 -2
- package/dist/client/assets/repositories-DL-11--e.js +0 -1
- package/dist/client/assets/roles-Brhhqsw3.js +0 -1
- package/dist/client/assets/route-BmSXOav-.js +0 -1
- package/dist/client/assets/route-C51vZk3q.js +0 -1
- package/dist/client/assets/route-D_u0Bw_R.js +0 -1
- package/dist/client/assets/sections-editor-p5iYgj5l.js +0 -1
- package/dist/client/assets/seo-editor-BtHI4gWU.js +0 -1
- package/dist/client/assets/settings-tab-qkoZ5Hhk.js +0 -1
- package/dist/client/assets/shell-layout-DUwEP5qi.js +0 -1
- package/dist/client/assets/site-editor-DBH3tuRQ.js +0 -1
- package/dist/client/assets/skills-CmU0q2d6.js +0 -1
- package/dist/client/assets/taskboard-analytics-nTEghmrx.js +0 -1
- package/dist/client/assets/tasks-sE4UNYKk.js +0 -1
- package/dist/client/assets/thread-analytics-DRVZv6bu.js +0 -1
- package/dist/client/assets/thread-route-BnB8pcK6.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ChletbBT.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BJjYTjXx.js +0 -1
- package/dist/client/assets/variant-calendar-DOQE-pkF.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{hN as Ho,bh as Wo,c as jn,b as Rn,r as S,l as ae,j as r,bQ as qo,bd as Vs,hO as Ra,B as Ut,X as rn,az as Go,Z as Uo,bg as Yo,Y as Zo,q as Jo,hm as Qo,hP as Xo,hQ as ei,bp as xn,h as ti,bi as Rt,hR as st,hS as Wr,hT as gs,hU as ni,hV as qr,hW as si,bw as ri,hX as ai,hY as Gr,hZ as oi,t as q,bZ as Ur,h_ as ii,h$ as Kt,i0 as li,i1 as ci,i2 as ui,bY as Yr,i3 as vs,i4 as di,i5 as fi,i6 as mi,bW as pi,bx as hi,i7 as gi,i8 as vi,bT as Si,f7 as yi,K as bi,bu as Zr,i9 as Jr,ia as xi,ib as _i,ic as ki,id as Ss,ie as wi,ig as ji,ih as Ri,ii as Ei,bR as Qr,ij as Vi,ik as Ti,il as Xr,im as Ai,bV as Ni}from"./index-LISCRMKT.js";import{u as Ci}from"./chat-context-Cbn1d2gD.js";import{a2 as Pi,K as Qn,a3 as Ki,a4 as Mi,a5 as Bi,a6 as Di,a7 as Fi,a8 as Ii,a9 as ea,aa as Li,ab as Oi,z as Un,x as Yn,d as zi,u as $i,ac as ta,i as Hi,ad as Wi,k as qi,h as Gi,ae as Ea,af as Ui,ag as Yi,v as na,ah as Zi,ai as Ji,aj as Wn,ak as sa,al as ra,am as aa,an as ys,ao as Qi,D as Xi,ap as el,y as tl,aq as oa,ar as nl,as as ia,at as la,au as ca,M as sl,av as ua,a as rl,aw as an,ax as al,ay as ol,t as qn,az as _n}from"./held-block-view-BDu8bj-6.js";import{c as il}from"./repository-binding-N72ZtnJ7.js";import{n as ll,t as cl}from"./ChevronUp-D3pnxmNi.js";import{a9 as Va,b as Jn,ao as ul,H as dl,a3 as da,$ as fa}from"./agent-icon-Co7E9kYl.js";import{S as on}from"./scroll-area-DYvdRQ3X.js";import{c as Et,T as Vt,a as Tt}from"./tooltip-DiW2ytsS.js";import{l as fl,u as ml,m as pl,D as hl,a1 as gl,B as vl,ac as Mt,ad as Bt,N as Sl,ay as ma,Q as yl,Z as bl}from"./site-editor-toast-BZwEeugO.js";import{u as xl,X as _l,E as bs,Y as pa,A as kl,Z as wl}from"./blocks-tab-states-CQydf1x6.js";import{m as jl,u as Rl,P as El}from"./mustache-YJnhKKzZ.js";import{a0 as Gt,T as ks,az as ws,a1 as Dt,U as ln,e as Vl,c as Tl,w as Al,k as Gn,p as wn,a4 as Nl,_ as qt,V as xs,Z as bt,Y as kn,F as Cl,a2 as ha,$ as Pl,ai as Kl,ak as Ml,aA as Bl,aB as Dl,aC as Fl}from"./parse-sections-rTJ9Vxva.js";import{a as Il}from"./Copy01-BEOZtg79.js";import{a as js,e as Ta}from"./UserSquare-D7fSnIn3.js";import{i as ga}from"./Tool01-CkZTily1.js";import{s as va}from"./Image01-D9f6XNAl.js";import{s as Ll}from"./Plus-DZ8OV5bq.js";import{s as Ol}from"./Trash01-C8OxhBl3.js";import{i as Rs}from"./ZoomOut-9x8WuC5l.js";import{u as zl,a as Sa,K as $l,P as Hl,b as Wl,C as ql,D as Gl,c as Ul}from"./core.esm-M1IJOkIH.js";import{u as Yl,s as Zl,a as Zn,S as Jl,v as Ql}from"./sortable.esm-DfWQuMf-.js";import{s as Xl,g as ec,u as tc,A as nc}from"./use-section-preview-base-CLumQxEU.js";import{a as sc,P as ya,w as rc,b as ac}from"./page-seo-form-CdFLhDD2.js";import{u as oc}from"./use-apply-named-rule-TltIMgYp.js";import{b as ba,a as ic}from"./variant-matcher-override-D6IszGLS.js";import{c as xa,d as lc,e as cc}from"./variant-draft-pointer-BeAKcq_c.js";import"./use-panel-navigate-CnrhnUVG.js";import"./thread-route-CCN9I68_.js";import"./use-project-scope-LiKIXaiK.js";import"./autosend-BYljpA5c.js";import"./thread-intent-ptqgtSKo.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBQ2__fw.js";import"./task-board-DfACAZyY.js";import"./schema-C2dfCTpF.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-9vbVfq68.js";import"./use-ai-providers-DGRaKYBP.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-ChnGZu8F.js";import"./use-organization-settings-CK8r9oqu.js";import"./utils-BDRBqTP5.js";import"./Play-Bon9Nn-R.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-B_hske_9.js";import"./LinkBroken01-BeLPonYT.js";import"./collapsible-DMa5aTxw.js";import"./use-copy-Bb3ge3Jw.js";import"./usage-stats-DyqnqVDM.js";import"./tool-namespace-EPn7Kyb1.js";import"./form-Bk9ymCIS.js";import"./label-BfYbFBpZ.js";import"./utils-CVEq3hMx.js";import"./markdown-CGLGjJUn.js";import"./use-mobile-BJBInbLU.js";import"./use-clock-tick-BXkjZk4h.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BmH0oH65.js";import"./types-CAqly_33.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./AlertCircle-Pu-QR8hS.js";import"./XClose-Bvl4KGPV.js";import"./ShoppingBag01-CeVNpa4z.js";import"./SearchMd-Coxjt-Zl.js";import"./shell-layout-DUwEP5qi.js";import"./Building02-BejNykWR.js";import"./use-deployment-admin-Do6VU3ed.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-CiBrtkwP.js";import"./Monitor01-CMcPb3p-.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./integration-icon-msZhQ6E3.js";import"./project-icon-As9MoCET.js";import"./new-project-dialog-BrtI6GgZ.js";import"./ArrowLeft-CiCYDVFq.js";import"./repository-import-picker-CNVRTxph.js";import"./use-navigate-to-agent-CpRnIp1k.js";import"./repository-picker-CW0SaV-m.js";import"./github-icon-EmEurWMX.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";import"./collection-search-BtpA2Lei.js";import"./use-debounced-value-DBl2u8Ax.js";import"./required-auth-layout-BwkU_8aI.js";import"./use-org-sso-DVHlBcmx.js";import"./sheet-C1Iz_daC.js";import"./use-connection-DZPkoV0a.js";import"./Link01-_AjEk0aG.js";import"./use-mcp-prompts-B2c7TGKV.js";import"./use-thread-outputs-BT4PyLKe.js";import"./file-type-icon-CiMMiUYO.js";import"./section-array-field-cPwKvhUj.js";import"./alert-BF8n9shl.js";import"./switch-B5fLkk4G.js";import"./textarea-1B6eWYpg.js";import"./ChevronSelectorVertical-Bb_Zani-.js";import"./popover-D6dCz_8d.js";import"./monaco-editor-B_hB8uvI.js";import"./editor-Z7h3tdjo.js";import"./calendar-gk2fXc2c.js";import"./SwitchHorizontal01-B8-pBEhT.js";import"./Minus-DRtjDVr0.js";import"./select-Ce8n-RXJ.js";import"./index-BdQq_4o_.js";import"./index-KpWMq2p9.js";import"./editor-classes-CIysMLqw.js";import"./toggle-group-DhjHoFhg.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BwKhFDqj.js";import"./Upload01-Bt37Plwz.js";import"./DotsVertical-DddKhPwC.js";import"./search-input-DfJJHgak.js";import"./tabs-BeQ3GpBj.js";import"./use-file-configs-Dn7YLM4Z.js";import"./asset-utils-7zQmpZtP.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-session-runtime-PX0UU1rX.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./ArrowUp-bMBjrwqG.js";import"./CreditCard01-C2H6wRye.js";import"./Globe04-CR7aWwIq.js";import"./Key01-BGQzZTLx.js";import"./Sun-E-EbUc0n.js";import"./Users01-DVEy527M.js";import"./experiments-tab-choice-EKyQNqty.js";import"./use-sandbox-events-BAik2LAS.js";import"./slider-BRlhk1I_.js";import"./index-Bd1JsEWx.js";import"./tooltipContext-Boh-kskS.js";import"./CategoricalChart-1g-OhB34.js";import"./index-DMJwbqhe.js";import"./ActiveShapeUtils-HI4PJ-HL.js";import"./Sector-CNB3zVjr.js";import"./symbol-AaQxOm0Y.js";import"./empty-state-CEJi6IVu.js";import"./section-preview-url-7zfngvgW.js";import"./use-move-blocks-sjThA1Ew.js";const uc={escape:Pi};function dc(v,e){for(const p of Xl(v,e)){const y=typeof p.title=="string"?p.title:void 0;if(y?.includes("{{"))return y}}function fc(v,e){if(!e)return;const p=Ho(v,Wo(e));if(p)try{const y=dc(p.resolveType,e);return y&&jl.render(y,p.data,{},uc).trim()||void 0}catch{return}}function mc(v){const e=jn.c(13),{icon:p,label:y,className:b}=v;let V;e[0]!==b?(V=ae("size-3.5",b),e[0]=b,e[1]=V):V=e[1];let B;e[2]!==p||e[3]!==V?(B=r.jsx(p,{className:V}),e[2]=p,e[3]=V,e[4]=B):B=e[4];let w;e[5]!==y||e[6]!==B?(w=r.jsx(Vt,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":y,className:"shrink-0 cursor-help",children:B})}),e[5]=y,e[6]=B,e[7]=w):w=e[7];let K;e[8]!==y?(K=r.jsx(Tt,{className:"max-w-56",children:y}),e[8]=y,e[9]=K):K=e[9];let k;return e[10]!==w||e[11]!==K?(k=r.jsxs(Et,{children:[w,K]}),e[10]=w,e[11]=K,e[12]=k):k=e[12],k}const pc="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function _a(v){return Array.from({length:v},(e,p)=>({id:crypto.randomUUID(),index:p}))}function Aa(v){return v.map((e,p)=>({...e,index:p}))}function hc(v,e){if(e===v.length)return v;if(e<v.length)return Aa(v.slice(0,e));const p=Array.from({length:e-v.length},(y,b)=>({id:crypto.randomUUID(),index:v.length+b}));return[...v,...p]}function Na(v){const e=jn.c(44),{section:p,raw:y,meta:b,decofile:V}=v,B=Rn(),w=Qn(),K=p.isSavedBlock===!0,k=p.isMultivariate===!0;let Q;e[0]!==b||e[1]!==y?(Q=y&&b?ec(y,b):void 0,e[0]=b,e[1]=y,e[2]=Q):Q=e[2];const ge=Q;let Ue;e[3]!==b||e[4]!==k||e[5]!==y||e[6]!==K?(Ue=y&&b&&!K&&!k?fc(y,b):void 0,e[3]=b,e[4]=k,e[5]=y,e[6]=K,e[7]=Ue):Ue=e[7];const Oe=Ue;let Ne;e[8]!==V||e[9]!==b||e[10]!==y||e[11]!==p?(Ne=Ii(y,p,V,b),e[8]=V,e[9]=b,e[10]=y,e[11]=p,e[12]=Ne):Ne=e[12];const oe=Ne;let R;e[13]!==k||e[14]!==y?.__resolveType?(R=!k&&Vs(y?.__resolveType??""),e[13]=k,e[14]=y?.__resolveType,e[15]=R):R=e[15];const c=R,xe=K?Jn:k?Va:Ta;let U;e[16]!==k||e[17]!==K?(U=K?{color:Yo}:k?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=k,e[17]=K,e[18]=U):U=e[18];const _e=U;let F;e[19]!==xe||e[20]!==w?(F=w?r.jsxs("span",{className:"relative size-4 shrink-0",children:[r.jsx(xe,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),r.jsx(Oi,{"aria-hidden":!0,className:"absolute inset-0 size-4 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"})]}):r.jsx(ul,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=xe,e[20]=w,e[21]=F):F=e[21];let ke;e[22]!==ge?(ke=ge&&r.jsx("img",{src:ge,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=ge,e[23]=ke):ke=e[23];let f;e[24]!==w||e[25]!==_e?(f=!w&&r.jsx(js,{className:"h-4 w-4 shrink-0",style:_e}),e[24]=w,e[25]=_e,e[26]=f):f=e[26];const ze=w?"shrink":"flex-1",u=p.isHidden&&"line-through opacity-50";let Re;e[27]!==u||e[28]!==ze?(Re=ae("min-w-0 truncate text-sm font-medium",ze,u),e[27]=u,e[28]=ze,e[29]=Re):Re=e[29];const X=Oe??p.label;let $e;e[30]!==Re||e[31]!==X?($e=r.jsx("span",{className:Re,children:X}),e[30]=Re,e[31]=X,e[32]=$e):$e=e[32];let rt;e[33]!==c||e[34]!==w||e[35]!==oe||e[36]!==B?(rt=w?r.jsxs(r.Fragment,{children:[c&&r.jsx(mc,{icon:Rs,label:B("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),oe&&r.jsx(ea,{}),r.jsx("span",{className:"min-w-0 flex-1"})]}):oe&&r.jsx(ea,{className:"absolute -right-0.5 -top-0.5"}),e[33]=c,e[34]=w,e[35]=oe,e[36]=B,e[37]=rt):rt=e[37];let Ce;return e[38]!==$e||e[39]!==rt||e[40]!==F||e[41]!==ke||e[42]!==f?(Ce=r.jsxs(r.Fragment,{children:[F,ke,f,$e,rt]}),e[38]=$e,e[39]=rt,e[40]=F,e[41]=ke,e[42]=f,e[43]=Ce):Ce=e[43],Ce}const gc="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",vc="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]";function Ca(v,e,p){if(p)return Li({selected:e});const y=v.isSavedBlock===!0,b=v.isMultivariate===!0;return ae("group relative flex select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5",e?"bg-accent text-accent-foreground":y?gc:b?vc:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function _s(v,e){return ae("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":v?"w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100":"w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]")}function Sc(v){const e=jn.c(90),{section:p,raw:y,meta:b,decofile:V,sortableId:B,selected:w,onSelect:K,onDelete:k,onDuplicate:Q,onMakeReusable:ge,onToggleHidden:Ue,onToggleLazy:Oe,onAddVariant:Ne,onDetach:oe}=v,R=Rn(),c=Qn(),xe=y?Vs(y.__resolveType??""):!1,U=p.isHidden===!0,_e=xe||U;let F;e[0]!==p?(F=Ra(p),e[0]=p,e[1]=F):F=e[1];const ke=F,f=!!Oe&&!p.isMultivariate;let ze;e[2]!==B?(ze={id:B,animateLayoutChanges:xc},e[2]=B,e[3]=ze):ze=e[3];const{attributes:u,listeners:Re,setNodeRef:X,transform:$e,isDragging:rt}=Yl(ze);let Ce;e[4]!==$e?(Ce=ql.Transform.toString($e?{...$e,x:0}:null),e[4]=$e,e[5]=Ce):Ce=e[5];const at=rt?0:void 0;let Pe;e[6]!==Ce||e[7]!==at?(Pe={transform:Ce,opacity:at},e[6]=Ce,e[7]=at,e[8]=Pe):Pe=e[8];const _=Pe;let we;e[9]!==p?(we=Mi(p),e[9]=p,e[10]=we):we=e[10];const ot=we,it="button",m=0;let L;e[11]!==K?(L=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),K())},e[11]=K,e[12]=L):L=e[12];const et=rt?"cursor-grabbing":"cursor-pointer";let A;e[13]!==c||e[14]!==p||e[15]!==w||e[16]!==et?(A=ae("touch-none transition-colors",et,Ca(p,w,c)),e[13]=c,e[14]=p,e[15]=w,e[16]=et,e[17]=A):A=e[17];let Ye;e[18]!==V||e[19]!==b||e[20]!==y||e[21]!==p?(Ye=r.jsx(Na,{section:p,raw:y,meta:b,decofile:V}),e[18]=V,e[19]=b,e[20]=y,e[21]=p,e[22]=Ye):Ye=e[22];const W=!c&&f&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon","aria-label":R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:ae(_s(_e,xe)),onClick:T=>{T.stopPropagation(),Oe?.()},onPointerDown:bc,children:r.jsx(Rs,{className:ae("h-3.5 w-3.5",xe&&"text-warning")})})}),r.jsx(Tt,{side:"bottom",children:R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),lt=c?r.jsx(Bi,{label:R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:U,onToggle:Ue,children:U?r.jsx(ga,{className:"h-3.5 w-3.5"}):r.jsx(va,{className:"h-3.5 w-3.5"})}):r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon","aria-label":R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:ae(_s(_e,U)),onClick:T=>{T.stopPropagation(),Ue()},onPointerDown:yc,children:U?r.jsx(ga,{className:"h-3.5 w-3.5"}):r.jsx(va,{className:"h-3.5 w-3.5"})})}),r.jsx(Tt,{side:"bottom",children:R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),fe=Uo,Ze=Di;let ve;e[23]!==R?(ve=R("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=R,e[24]=ve):ve=e[24];const ct=ae(_s(_e,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let He;e[25]!==Ze||e[26]!==ve||e[27]!==ct?(He=r.jsx(Ze,{label:ve,classicClassName:ct}),e[25]=Ze,e[26]=ve,e[27]=ct,e[28]=He):He=e[28];let Ee;e[29]!==c||e[30]!==f||e[31]!==xe||e[32]!==Oe||e[33]!==R?(Ee=c&&f&&r.jsxs(r.Fragment,{children:[r.jsxs(rn,{onClick:T=>{T.stopPropagation(),Oe?.()},children:[r.jsx(Rs,{className:"h-4 w-4"}),R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),r.jsx(Go,{})]}),e[29]=c,e[30]=f,e[31]=xe,e[32]=Oe,e[33]=R,e[34]=Ee):Ee=e[34];let Ke;e[35]!==Q?(Ke=T=>{T.stopPropagation(),Q()},e[35]=Q,e[36]=Ke):Ke=e[36];let tt;e[37]===Symbol.for("react.memo_cache_sentinel")?(tt=r.jsx(Il,{className:"h-4 w-4"}),e[37]=tt):tt=e[37];let Me;e[38]!==R?(Me=R("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=R,e[39]=Me):Me=e[39];let Be;e[40]!==Ke||e[41]!==Me?(Be=r.jsxs(rn,{onClick:Ke,children:[tt,Me]}),e[40]=Ke,e[41]=Me,e[42]=Be):Be=e[42];let De;e[43]!==c||e[44]!==ke||e[45]!==Ne||e[46]!==R?(De=ke&&r.jsxs(rn,{className:ae(!c&&Fi),onClick:T=>{T.stopPropagation(),Ne()},children:[r.jsx(Va,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=c,e[44]=ke,e[45]=Ne,e[46]=R,e[47]=De):De=e[47];let Y;e[48]!==c||e[49]!==ot||e[50]!==ge||e[51]!==R?(Y=ot&&r.jsxs(rn,{className:ae(!c&&pc),onClick:T=>{T.stopPropagation(),ge()},children:[c?r.jsx(Jn,{className:"h-4 w-4"}):r.jsx(js,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[48]=c,e[49]=ot,e[50]=ge,e[51]=R,e[52]=Y):Y=e[52];let Z;e[53]!==c||e[54]!==oe||e[55]!==p.isMultivariate||e[56]!==p.isSavedBlock||e[57]!==R?(Z=p.isSavedBlock===!0&&!p.isMultivariate&&r.jsxs(rn,{onClick:T=>{T.stopPropagation(),oe()},children:[c?r.jsx(Ta,{className:"h-4 w-4"}):r.jsx(js,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=c,e[54]=oe,e[55]=p.isMultivariate,e[56]=p.isSavedBlock,e[57]=R,e[58]=Z):Z=e[58];let ee;e[59]!==k?(ee=T=>{T.stopPropagation(),k()},e[59]=k,e[60]=ee):ee=e[60];let O;e[61]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(Ol,{className:"h-4 w-4"}),e[61]=O):O=e[61];let N;e[62]!==R?(N=R("sectionsEditor.sectionList.deleteMenuItem"),e[62]=R,e[63]=N):N=e[63];let me;e[64]!==ee||e[65]!==N?(me=r.jsxs(rn,{variant:"destructive",onClick:ee,children:[O,N]}),e[64]=ee,e[65]=N,e[66]=me):me=e[66];let We;e[67]!==Ee||e[68]!==Be||e[69]!==De||e[70]!==Y||e[71]!==Z||e[72]!==me?(We=r.jsxs(Zo,{align:"end",className:"w-44",children:[Ee,Be,De,Y,Z,me]}),e[67]=Ee,e[68]=Be,e[69]=De,e[70]=Y,e[71]=Z,e[72]=me,e[73]=We):We=e[73];let qe;e[74]!==fe||e[75]!==He||e[76]!==We?(qe=r.jsxs(fe,{children:[He,We]}),e[74]=fe,e[75]=He,e[76]=We,e[77]=qe):qe=e[77];let Je;return e[78]!==u||e[79]!==Re||e[80]!==K||e[81]!==X||e[82]!==_||e[83]!==A||e[84]!==Ye||e[85]!==W||e[86]!==lt||e[87]!==qe||e[88]!==L?(Je=r.jsxs("div",{ref:X,style:_,...u,...Re,role:it,tabIndex:m,onClick:K,onKeyDown:L,className:A,children:[Ye,W,lt,qe]}),e[78]=u,e[79]=Re,e[80]=K,e[81]=X,e[82]=_,e[83]=A,e[84]=Ye,e[85]=W,e[86]=lt,e[87]=qe,e[88]=L,e[89]=Je):Je=e[89],Je}function yc(v){return v.stopPropagation()}function bc(v){return v.stopPropagation()}function xc(){return!1}function Es(v){const e=jn.c(11),{canAddSection:p,onAddSection:y,className:b,size:V}=v,B=Rn();let w;e[0]!==b?(w=ae("w-full",b),e[0]=b,e[1]=w):w=e[1];const K=!p;let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Ll,{size:14}),e[2]=k):k=e[2];let Q;e[3]!==B?(Q=B("sectionsEditor.sectionList.addSectionButton"),e[3]=B,e[4]=Q):Q=e[4];let ge;return e[5]!==y||e[6]!==V||e[7]!==w||e[8]!==K||e[9]!==Q?(ge=r.jsxs(Ut,{type:"button",variant:"outline",size:V,className:w,disabled:K,onClick:y,children:[k,Q]}),e[5]=y,e[6]=V,e[7]=w,e[8]=K,e[9]=Q,e[10]=ge):ge=e[10],ge}function _c(v){const e=jn.c(101),{listKey:p,rawSections:y,sections:b,meta:V,decofile:B,selectedIndex:w,onSelect:K,onReorder:k,onDelete:Q,onDuplicate:ge,onMakeReusable:Ue,onToggleHidden:Oe,onToggleLazy:Ne,onAddVariant:oe,onDetach:R,onAddSection:c,canAddSection:xe}=v,U=xe===void 0?!0:xe,_e=Rn(),F=Qn();let ke;e[0]!==b.length?(ke=()=>_a(b.length),e[0]=b.length,e[1]=ke):ke=e[1];const[f,ze]=S.useState(ke),[u,Re]=S.useState(null),[X,$e]=S.useState(p),[rt,Ce]=S.useState(b.length),at=S.useRef(!1);X!==p?($e(p),Ce(b.length),ze(_a(b.length))):rt!==b.length&&(Ce(b.length),ze(Fe=>hc(Fe,b.length)));let Pe;e[2]===Symbol.for("react.memo_cache_sentinel")?(Pe={activationConstraint:{distance:8}},e[2]=Pe):Pe=e[2];let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_={coordinateGetter:Zl},e[3]=_):_=e[3];const we=zl(Sa(Hl,Pe),Sa($l,_));let ot;e[4]!==f?(ot=f.map(kc),e[4]=f,e[5]=ot):ot=e[5];const it=ot;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=Fe=>{Re(String(Fe.active.id))},e[6]=m):m=e[6];const L=m;let et;e[7]!==it||e[8]!==k?(et=Fe=>{Re(null);const{active:G,over:ie}=Fe;if(!ie||G.id===ie.id)return;const Ve=it.indexOf(String(G.id)),Qe=it.indexOf(String(ie.id));Ve===-1||Qe===-1||(ze(nt=>Aa(Zn([...nt],Ve,Qe))),at.current=!0,requestAnimationFrame(()=>{at.current=!1}),k?.(Ve,Qe))},e[7]=it,e[8]=k,e[9]=et):et=e[9];const A=et;let Ye;e[10]===Symbol.for("react.memo_cache_sentinel")?(Ye=()=>{Re(null)},e[10]=Ye):Ye=e[10];const W=Ye;let lt,fe,Ze,ve,ct,He,Ee,Ke,tt,Me,Be,De,Y,Z,ee;if(e[11]!==u||e[12]!==U||e[13]!==F||e[14]!==B||e[15]!==f||e[16]!==it||e[17]!==A||e[18]!==V||e[19]!==c||e[20]!==oe||e[21]!==Q||e[22]!==R||e[23]!==ge||e[24]!==Ue||e[25]!==K||e[26]!==Oe||e[27]!==Ne||e[28]!==y||e[29]!==b||e[30]!==w||e[31]!==we||e[32]!==_e){Z=Symbol.for("react.early_return_sentinel");e:{const Fe=G=>{at.current||K(G)};if(e[48]!==u||e[49]!==U||e[50]!==F||e[51]!==f||e[52]!==c||e[53]!==y||e[54]!==b||e[55]!==_e){const G=u?f.find(ie=>ie.id===u):null;if(ve=G!=null?b[G.index]:null,Ze=G!=null?y[G.index]:void 0,f.length===0){let ie;e[59]!==_e?(ie=_e("sectionsEditor.sectionList.noSections"),e[59]=_e,e[60]=ie):ie=e[60];let Ve;e[61]!==ie?(Ve=r.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:ie}),e[61]=ie,e[62]=Ve):Ve=e[62];const Qe=Ve;let nt;e[63]!==U||e[64]!==F||e[65]!==Qe||e[66]!==c?(nt=F?Qe:r.jsxs("div",{className:"space-y-2",children:[Qe,r.jsx(Es,{canAddSection:U,onAddSection:c,size:"sm"})]}),e[63]=U,e[64]=F,e[65]=Qe,e[66]=c,e[67]=nt):nt=e[67],Z=nt;break e}Y=ae(G&&"cursor-grabbing"),e[48]=u,e[49]=U,e[50]=F,e[51]=f,e[52]=c,e[53]=y,e[54]=b,e[55]=_e,e[56]=Ze,e[57]=ve,e[58]=Y}else Ze=e[56],ve=e[57],Y=e[58];fe=Gl,Ke=we,tt=Ul,Me=L,Be=A,De=W,lt=Jl,He=it,Ee=Ql,ee="space-y-1",ct=f.map(G=>{const ie=b[G.index];return ie?r.jsx(Sc,{sortableId:G.id,section:ie,raw:y[G.index],meta:V,decofile:B,selected:w===G.index,onSelect:()=>Fe(G.index),onDelete:()=>Q(G.index),onDuplicate:()=>ge(G.index),onMakeReusable:()=>Ue(G.index),onToggleHidden:()=>Oe(G.index),onToggleLazy:Ne?()=>Ne(G.index):void 0,onAddVariant:()=>oe(G.index),onDetach:()=>R(G.index)},G.id):null})}e[11]=u,e[12]=U,e[13]=F,e[14]=B,e[15]=f,e[16]=it,e[17]=A,e[18]=V,e[19]=c,e[20]=oe,e[21]=Q,e[22]=R,e[23]=ge,e[24]=Ue,e[25]=K,e[26]=Oe,e[27]=Ne,e[28]=y,e[29]=b,e[30]=w,e[31]=we,e[32]=_e,e[33]=lt,e[34]=fe,e[35]=Ze,e[36]=ve,e[37]=ct,e[38]=He,e[39]=Ee,e[40]=Ke,e[41]=tt,e[42]=Me,e[43]=Be,e[44]=De,e[45]=Y,e[46]=Z,e[47]=ee}else lt=e[33],fe=e[34],Ze=e[35],ve=e[36],ct=e[37],He=e[38],Ee=e[39],Ke=e[40],tt=e[41],Me=e[42],Be=e[43],De=e[44],Y=e[45],Z=e[46],ee=e[47];if(Z!==Symbol.for("react.early_return_sentinel"))return Z;let O;e[68]!==ct||e[69]!==ee?(O=r.jsx("div",{className:ee,children:ct}),e[68]=ct,e[69]=ee,e[70]=O):O=e[70];let N;e[71]!==lt||e[72]!==He||e[73]!==Ee||e[74]!==O?(N=r.jsx(lt,{items:He,strategy:Ee,children:O}),e[71]=lt,e[72]=He,e[73]=Ee,e[74]=O,e[75]=N):N=e[75];let me;e[76]!==Ze||e[77]!==ve||e[78]!==F||e[79]!==B||e[80]!==V?(me=ve?r.jsx("div",{className:ae("cursor-grabbing shadow-lift",Ca(ve,!1,F)),children:r.jsx(Na,{section:ve,raw:Ze,meta:V,decofile:B})}):null,e[76]=Ze,e[77]=ve,e[78]=F,e[79]=B,e[80]=V,e[81]=me):me=e[81];let We;e[82]!==me?(We=qo.createPortal(r.jsx(Wl,{dropAnimation:Ki,children:me}),document.body),e[82]=me,e[83]=We):We=e[83];let qe;e[84]!==fe||e[85]!==Ke||e[86]!==tt||e[87]!==Me||e[88]!==Be||e[89]!==De||e[90]!==N||e[91]!==We?(qe=r.jsxs(fe,{sensors:Ke,collisionDetection:tt,onDragStart:Me,onDragEnd:Be,onDragCancel:De,children:[N,We]}),e[84]=fe,e[85]=Ke,e[86]=tt,e[87]=Me,e[88]=Be,e[89]=De,e[90]=N,e[91]=We,e[92]=qe):qe=e[92];let Je;e[93]!==U||e[94]!==F||e[95]!==c?(Je=!F&&r.jsx(Es,{canAddSection:U,onAddSection:c,size:"sm",className:"mt-2"}),e[93]=U,e[94]=F,e[95]=c,e[96]=Je):Je=e[96];let T;return e[97]!==Y||e[98]!==qe||e[99]!==Je?(T=r.jsxs("div",{className:Y,children:[qe,Je]}),e[97]=Y,e[98]=qe,e[99]=Je,e[100]=T):T=e[100],T}function kc(v){return v.id}function wc(v,e,p,y){if(!v||typeof v!="object")return{kind:"error",reason:"no-matcher-rule"};const b=e.trim();if(!b)return Gt(v,p,y)?{kind:"inline",blockKey:v.__resolveType??"",inlinedRule:ks(v,p,y)}:{kind:"noop"};const V=ws(v,p,y);if(!V)return{kind:"error",reason:"unreadable-rule"};if(V.blockKey)return{kind:"updateBlock",blockKey:V.blockKey,blockData:Dt(V.resolveType,V.data,b)};const B=Un(b),w=Yn(B,p);return w?{kind:"error",reason:"invalid-block-id",message:w}:{kind:"createBlock",blockId:B,blockData:Dt(V.resolveType,V.data,b),reference:ln(B)}}const ka="section-form-stale-save",jc=3;function wa(v,e,p){const y=e.global&&e.pageKey?[{label:"Default",sections:[{__resolveType:e.pageKey}]}]:Ea(e.pageKey?v[e.pageKey]?.sections:void 0,v,p),b=Math.max(0,Math.min(e.pageVariantIndex,y.length-1)),V=y[b]?.sections??[];return{pageVariants:y,variantIndex:b,rawSections:V,parsedSections:wn(V,v,p)}}const ja=new WeakMap;let Rc=0;function Ec(v){let e=ja.get(v);return e===void 0&&(e=++Rc,ja.set(v,e)),e}function ff({orgSlug:v,virtualMcpId:e,branch:p,previewReady:y=!0,previewUrl:b,currentPath:V,activePageBlockKey:B=null,activeGlobalBlockKey:w=null,externalSelection:K,onSaved:k,initialEditSeo:Q=!1,onExitSeo:ge,onSelectRoot:Ue,onViewJsonFile:Oe,onFocusedBlockChange:Ne,onVariantPreviewOverride:oe,focusVariant:R}){const c=Rn(),xe=Ci(),U=xe?.taskId??null,_e=y?{orgSlug:v,virtualMcpId:e,branch:p,threadId:U,previewUrl:b}:null,[F,ke]=S.useState([]),{data:f,isLoading:ze}=fl(_e,{pollWhile:F.length>0}),{data:u,isLoading:Re}=xl(_e),X=Qn(),$e=xe?.virtualMcpId,Ce=il($e===e?e:null)?.metadata?.siteSlug??null,at=tc({virtualMcpId:e,branch:p,sandboxUrl:b}),Pe=ml(e,p),_=pl(Pe),we=Si(_),ot=!_,it=!!at||_,[m,L]=S.useState(null),[et,A]=S.useState(null),[Ye,W]=S.useState(null),[lt,fe]=S.useState(0),[Ze,ve]=S.useState(void 0),[ct,He]=S.useState(null),[Ee,Ke]=S.useState(null);R&&R.seq!==ct&&(He(R.seq),Ke(R));const[tt,Me]=S.useState(null),Be={index:tt,remember:Me},[De,Y]=S.useState(null),[Z,ee]=S.useState(null),[O,N]=S.useState([]),me=S.useRef(null),[We,qe]=S.useState(O.length);We!==O.length&&(qe(O.length),requestAnimationFrame(()=>{me.current&&(me.current.scrollTop=0)}));const[Je,T]=S.useState(0),[Fe,G]=S.useState(null),[ie,Ve]=S.useState(null),[Qe,nt]=S.useState(null),[Pa,Yt]=S.useState(!1),[Ts,Xn]=S.useState(!1),En=S.useRef(null),[Vn,Ka]=S.useState(!0),[Zt,Tn]=S.useState(!1),[Ft,An]=S.useState(!1),[Te,cn]=S.useState(Q),[As,Ns]=S.useState(Q);Q&&!As&&(Ns(!0),cn(!0),L(null),A(null),W(null),N([])),!Q&&As&&Ns(!1);const[Ma,un]=S.useState(null),[Cs,Nn]=S.useState(void 0),[Ps,It]=S.useState([]),[Ks,Jt]=S.useState(0),[Ie,ut]=S.useState(0),[Ba,Le]=S.useState(null),[Qt,Ge]=S.useState(null),[Ms,Bs]=S.useState(null),Ds=Jo(),Fs=hl({orgSlug:v,virtualMcpId:e,branch:p},{tunnel:!1}),dn=zi({orgSlug:v,virtualMcpId:e,branch:p}),[Da,Fa]=S.useState(V),[Ia,La]=S.useState(B),[Oa,za]=S.useState(w);(Da!==V||Ia!==B||Oa!==w)&&(queueMicrotask(()=>dn.flush()),Fa(V),La(B),za(w),L(null),A(null),W(null),fe(0),Y(null),ee(null),ut(0),Le(null),Ge(null),N([]),T(t=>t+1),cn(!1),un(null),Nn(void 0),It([]),Jt(t=>t+1));const D=$i({orgSlug:v,virtualMcpId:e,branch:p}),fn=rl((t,n)=>{D.mutate({blockKey:t,data:n},{onSuccess:()=>k?.(),onError:D.reportError})}),Cn=Rl({orgSlug:v,virtualMcpId:e,branch:p}),Is=oc({orgSlug:v,virtualMcpId:e,branch:p}),[Xt,en]=S.useState(!1),C=S.useRef(null),wt=S.useRef(null),gt=S.useRef(null),vt=S.useRef(null),Pn=S.useRef({}),Lt=S.useRef(null),mn=S.useRef(!1),pn=S.useRef(!1),Se=S.useRef(new Map),tn=S.useRef(!1),xt=S.useRef([]),es=S.useRef(new WeakSet);gl(v,e,t=>{const{activePageKey:n,rawSections:s,parsedSections:a,selectedSectionIndex:o}=ne.current,i=new Set;n&&i.add(n);for(const l of[wt.current?.sectionIndex,o]){const d=l==null?void 0:s[l],E=l==null?void 0:a[l],h=d&&E?.isSavedBlock?Ss(d,E):null;h&&i.add(h)}if([...i].some(l=>t.has(l))){for(const l of[C,gt,vt])l.current&&clearTimeout(l.current),l.current=null;wt.current=null,Se.current.clear(),n&&t.has(n)&&(Pn.current={})}});const ne=S.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[Ls,Os]=S.useState(0),[$a,Ha]=S.useState(0),zs=Qo(Pe,{orgSlug:v,virtualMcpId:e,branch:p}),$s=Xo(zs,F[0]?.blockKey??null,F[0]?ei(xn(F[0].plan.theirs)):null),[Wa,qa]=S.useState(null),ts=vl(v,e).epoch,[Ga,Ua]=S.useState(ts);if(!y||ze||Re)return r.jsx("div",{className:"h-full w-full flex items-center justify-center",children:r.jsx(ti,{className:"size-5 text-muted-foreground"})});if(!f||!u)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Ya=Vl(f,u),$=!!w,se=$?null:Tl(Ya,V,B),g=$?w:se?.key??null,Kn=$&&w?f[w]:void 0,Hs=$&&w&&Kn?Al(w,Kn):$&&w?w:"",Ot=!$&&g&&f[g]?f[g]:null,ns=Te&&f&&u&&g&&se?ta(f,{kind:"page",pageKey:g,pageName:String(se.name??""),path:String(se.path??"")},u):null,Za=Te?Ot?.seo:void 0,Mn=Cs!==void 0?Cs:Za,Ja=Te?Hi(Mn):void 0,Ws=ns?.seoTypeOptions??[],qs=Te&&u?Wi(u):"",ss=Ma??Ja??{},Bn=Te&&ns?sc(ss,ns):null,Gs=Te&&Bn&&qi(Mn)?Gn(Bn,u):null,Us=Te?Gi(f,u)?.seoData:void 0,le=$?[{label:"Default",sections:[{__resolveType:w}]}]:Ea(Ot?.sections,f??{},_),St=le.length>1,J=Math.min(lt,le.length-1),ye=le[J],M=ye?.sections??[],ce=wn(M,f,_),Dn=!$&&Nl(Ot?.sections,_);if($&&w&&Ms!==w){Bs(w);const t=M[0],n=ce[0];if(t&&n){L(0),ut(0),N([]);const s=Rt(t,n,f,_);s&&(A(s.data),W(s.resolveType),Ge(null),Le(null))}}!$&&Ms!==null&&Bs(null),ne.current={rawSections:M,parsedSections:ce,decofile:f??{},activePageKey:g,pageVariants:le,variantIndex:J,sectionVariantIndex:Ie,selectedSectionIndex:m};const Qa=()=>({multivariate:Dn,index:J,variants:le.map(t=>({rule:t.rule})),lazyValues:_&&Dn&&yi(Ot?.sections?.variants?.[J]?.value)}),rs=(t,n)=>{if(!oe)return;if(!g||!Dn||t.length<=1){oe(null);return}const s={multivariate:!0,index:n,variants:t},a=_?xa(g,s):ba(g,s,f,u);oe(a.length>0?a:null)},as=oe&&g&&Dn&&St&&!ze&&!Re?g:null;if(as!==Wa&&(qa(as),as)){const t=le.map(s=>({rule:s.rule})),n=J;queueMicrotask(()=>rs(t,n))}const zt=(t,n,s)=>{if(!oe)return;if(!g){oe(null);return}const a=Qa(),o=_?xa(g,a):ba(g,a,f,u);if(!t||n<0){oe(o.length>0?o:null);return}const i={pageKey:g,page:a,sectionIndex:n,sectionLazy:ce[n]?.isLazy??!1,mvObj:t,selectedVariantIndex:s},l=_?lc(i):ic({...i,decofile:f,meta:u}),d=_?cc(o,l):[...o,...l];oe(d.length>0?d:null)},_t=(t,n,s,a=m??-1,o=!1)=>{const i=st(t,n);if(!i){A(null),W(null),Ge(null),Le(null),o&&zt(null,a,s);return}const d=qr(i,we)[s];if(!d){A(null),W(null),Ge(null),Le(null),o&&zt(null,a,s);return}const E=ai(d.value,f);A(E?.data??null),W(E?.resolveType??null);const{resolveType:h,formValue:x}=qt(d.rule,f,u??void 0);Ge(h),Le(x),o&&zt(i,a,s)},hn=t=>{Ve(null),fe(t),L(null),A(null),W(null),N([]);const n=le[t]?.rule,{resolveType:s,formValue:a}=qt(n,f??{},u??void 0);ee(s),Y(a),rs(le.map(o=>({rule:o.rule})),t)},Ys=(t,n)=>{const s=M[t],a=ce[t];if(!s||!a)return!1;const o=a.isMultivariate?st(s,a)?.variants?.length??0:0,i=n<o?n:0;if(L(t),ut(i),N([]),T(l=>l+1),a.isMultivariate)_t(s,a,i,t);else{const l=Rt(s,a,f,_);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),Ge(null),Le(null)}return!0},Zs=K?.index;if(K!==void 0&&(K?.seq??null)!==Ze&&(ve(K?.seq??null),typeof Zs=="number"&&Ys(Zs,0)),Ee&&($?Kn:Ot)){const t=Ee.pageVariant,n=!$&&t!==void 0&&t<le.length;if(n&&t!==J)hn(t);else{Ke(null);const{section:s,variant:a}=Ee;if($)a!==void 0&&(Me(a),N([]),T(o=>o+1));else if(s!==void 0&&Ys(s,a??0)){const o=M[s],i=ce[s],l=i.isMultivariate?st(o,i):null;l&&a!==void 0&&queueMicrotask(()=>zt(l,s,a))}else n&&hn(t)}}if(ts!==Ga){Ua(ts);const t=C.current!==null||Se.current.size>0||vt.current!==null||gt.current!==null||D.isPending||dn.isPending||F.length>0,n=m!==null&&Wr(me.current,document.activeElement);if(!t&&n&&(tn.current=!0),!t&&!n&&m!==null){const s=M[m],a=ce[m];if(N([]),T(o=>o+1),!s||!a)L(null),A(null),W(null);else if(a.isMultivariate)_t(s,a,Ie,m);else{const o=Rt(s,a,f,_);A(o?.data??null),W(o?.resolveType??null)}}!t&&Te&&(un(null),Nn(void 0),Jt(s=>s+1))}if(Ls!==$a){Ha(Ls);const t=m!==null?M[m]:null,n=m!==null?ce[m]:null;if(t&&n&&m!==null)if(N([]),T(s=>s+1),n.isMultivariate)_t(t,n,Ie,m);else{const s=Rt(t,n,f,_);A(s?.data??null),W(s?.resolveType??null)}}const dt=F[0];if(dt){const{formBase:t,target:n}=dt,s=wa(f,n,_),a=t.sectionIndex,o=s.rawSections.length===t.sectionCount?gs(s.rawSections[a],s.parsedSections[a],n.sectionVariantIndex,f,_):null,i=ni(dt,o,l=>Gr(t,l));if(i){const d=[{...dt,...i,changedAgain:!0},...F.slice(1)];xt.current=d,ke(d)}}const gn={orgSlug:v,virtualMcpId:e,branch:p,threadId:U,previewUrl:_?void 0:b??void 0,siteSlug:Ce},Fn=Ye&&u?Gn(Ye,u):null,ft=(t,n)=>{if(!g)return;C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear(),vt.current&&(clearTimeout(vt.current),vt.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null);const s=an(f,g,t,J,le);D.mutate({blockKey:g,data:s},{onSuccess:()=>n?.onSuccess?.()??k?.(),onError:a=>{n?.onError?.(),D.reportError(a)}})},$t=()=>{Ne?.(null),L(null),An(!1),A(null),W(null),ut(0),Le(null),Ge(null),N([]),T(t=>t+1)},Js=()=>Wr(me.current,document.activeElement),os=(t=c("sectionsEditor.sectionsEditor.blockChangedElsewhere"))=>{if(C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear(),wt.current=null,q.error(t,{id:ka}),Js()){tn.current=!0;return}Os(n=>n+1)},Qs=()=>{!tn.current||Js()||xt.current.length>0||C.current!==null||mn.current||pn.current||Se.current.size>0||(tn.current=!1,Os(t=>t+1))},Xs=()=>{tn.current&&setTimeout(Qs,0)},er=t=>bl(Ds,Fs,t,Pe.kind==="protocol"?Pe:null),tr=t=>{Se.current.size!==0&&setTimeout(()=>{if(mn.current||pn.current)return;const n=[...Se.current.values()];Se.current.clear();for(const s of n)s()},t)},Xa=t=>{const{activePageKey:n,variantIndex:s,sectionVariantIndex:a}=ne.current,o=Lt.current;return{formBase:o?.sectionIndex===t&&o.variantIndex===a?o:null,pageKey:n,global:$,pageVariantIndex:s,sectionVariantIndex:a,schema:Fn}},vn=t=>{xt.current=t,ke(t)},eo=t=>{const n=xt.current,s=n.findIndex(i=>i.formBase===t.formBase),a=s>=0?n[s]:void 0,o=a?n.with(s,{...t,choices:Jr(a.plan,a.choices,t.plan),fresh:Vi(a.plan,t.plan,a.fresh),changedAgain:a.changedAgain||xn(a.plan.theirs)!==xn(t.plan.theirs)}):[...n,{...t,changedAgain:es.current.has(t.formBase)}];vn(o)},nr=(t,n)=>{const s=xt.current,a=s.findIndex(l=>l.formBase===t),o=s[a];if(!o)return!1;if(xn(o.plan.mine)===xn(n))return!0;const i=Zr({...o.plan,mine:n});if(i.pointers.length===0){const l=s.filter(d=>d!==o);return vn(l),!1}return vn(s.with(a,{...o,plan:i,choices:Jr(o.plan,o.choices,i)})),!0},to=t=>{const n=ne.current;return n.selectedSectionIndex===t.formBase.sectionIndex&&n.activePageKey===t.target.pageKey&&n.variantIndex===t.target.pageVariantIndex&&n.sectionVariantIndex===t.target.sectionVariantIndex},no=()=>{const t=xt.current[0];if(!t)return null;const{formBase:n,target:s}=t;C.current&&wt.current?.sectionIndex===n.sectionIndex&&wt.current.sectionVariantIndex===s.sectionVariantIndex&&(clearTimeout(C.current),C.current=null,wt.current=null),Se.current.delete(`${s.pageKey}:${n.sectionIndex}:${s.sectionVariantIndex}`);const a=n.emitted;return a&&typeof a=="object"&&!nr(n,a)&&Sn(a,n.sectionIndex,0,s),xt.current[0]??null},so=()=>{const t=xt.current[0],n=no();if(!n||!t||n.formBase!==t.formBase||n.plan.pointers.some(i=>!t.plan.pointers.includes(i)))return;const s=hi(n.plan,n.choices);Pe.kind==="protocol"&&Pe.source==="github"&&gi(n.plan,n.choices)&&Sl(c,!1),vn(xt.current.slice(1));const{formBase:a,target:o}=n;a.base=n.plan.theirs,a.version=void 0,a.emitted=s,es.current.add(a),(Lt.current===a||to(n))&&(Lt.current=a,A(s),T(i=>i+1)),Sn(s,a.sectionIndex,0,o)},ro=t=>{const[n,...s]=xt.current;n&&vn([{...n,choices:t},...s])},Sn=(t,n,s=0,a,o=!1)=>{const i=a??Xa(n),l=i.sectionVariantIndex,d=i.formBase,E=wt.current;C.current&&(clearTimeout(C.current),C.current=null,E&&(E.sectionIndex!==n||E.sectionVariantIndex!==l)&&E.write());const h=`${i.pageKey}:${n}:${l}`,x=()=>{if(mn.current||pn.current){Se.current.set(h,x);return}const j=typeof t=="function"?t():t;if(d&&nr(d,j))return;const I=ne.current.decofile,{rawSections:P,parsedSections:pe,pageVariants:ue,variantIndex:be}=wa(I,i,_),z=i.pageKey,H=P[n];if(!H)return;const re=pe[n];if(!re)return;const he=d?.base,Ae=gs(H,re,l,I,_),sn=!!he&&!!Ae&&xi(he,Ae)&&!(d&&Gr(d,Ae));if(sn&&he&&Ae){if(_i(he,Ae)){os(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}const te=re.isSavedBlock?"here":ki(he,P.map((de,ht)=>gs(de,pe[ht],l,I,_)),n,d?.sectionCount??P.length);if(te==="unknown"){os(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}if(typeof te=="number"&&d){d.sectionCount=P.length,d.sectionIndex=te,Lt.current===d&&L(te),Sn(j,te,s,i);return}}const pt=sn&&he&&Ae?Zr({ancestor:he,mine:j,theirs:Ae}):null;if(pt&&pt.pointers.length>0&&d){d.sectionCount=P.length,eo({plan:pt,formBase:d,target:i,sectionIndex:n,choices:wi(pt),changedAgain:!1,blockKey:re.isSavedBlock?Ss(H,re):z,fresh:{}});return}const Xe=pt?pt.merged:null,Pt=Xe??j,zr=ji({merged:!!Xe,tracked:d,current:Lt.current,saved:j});Xe&&q.info(c("sectionsEditor.sectionsEditor.blockMergedWithOthers"),{id:ka}),zr&&d&&(d.emitted=Xe,A(Xe));const hs=zr||!Xe?Pt:j;d&&(d.base=hs,d.sectionCount=P.length,Ri(d,hs));const $r={onSuccess:()=>{d&&es.current.delete(d),k?.()},onError:te=>{if(d?.base===hs&&he&&(d.base=he),te instanceof yl){if(d&&(d.version=void 0),s<jc){Se.current.delete(h),pn.current=!0;const de=Ti(s,te.carriedStored);setTimeout(()=>{pn.current=!1,Sn(()=>{const ht=d?.emitted;return ht&&typeof ht=="object"?ht:j},n,s+1,i,de.immediate),Se.current.delete(h),tr(_n)},de.delay)}else os();return}D.reportError(te)}},Hr=te=>{mn.current=!0;let de=!1;D.mutateAsync(te).then(()=>$r.onSuccess(),ht=>{de=!0,$r.onError(ht)}).finally(()=>{mn.current=!1,tr(de?_n:0),Qs()})};if(re.isSavedBlock){const te=Ss(H,re);if(!te)return;Hr({blockKey:te,data:Pt,...he?{base:{value:Xe?Ae:he}}:{},rebaseOnConflict:!1,guard:Xr({formBase:d,rebased:!!Xe,versionOf:er})});return}if(!z)return;const Hn={...I[z]},Wt=[...P];if(re.isMultivariate){const te=st(H,re);if(!te||!z)return;const de=Ei(te,l,Pt);Wt[n]=Kt(H,re,de)}else if(re.isHidden){const te=Vs(H.__resolveType),de=te?{...H.section}:{...H},ht=Array.isArray(de.variants)?[...de.variants]:[];ht[0]&&(ht[0]=Qr(de.__resolveType,ht[0],Pt)),de.variants=ht,te?Wt[n]={...H,section:de}:Wt[n]=de}else re.isLazy?Wt[n]={...H,section:Pt}:Wt[n]=Pt;if(ue.length>1){const te=Hn.sections,de=[...te?.variants??[]];de[be]&&(de[be]=Qr(te?.__resolveType,de[be],Wt)),Hn.sections={...te,variants:de}}else Hn.sections=Wt;Hr({blockKey:z,data:Hn,rebaseOnConflict:!1,guard:Xr({formBase:null,rebased:!1,versionOf:er})})};if(wt.current={sectionIndex:n,sectionVariantIndex:l,write:x},o){wt.current=null,x();return}C.current=setTimeout(()=>{C.current=null,x()},_n)},ao=t=>{tn.current=!1,L(t),ut(0),N([]),T(o=>o+1);const n=M[t],s=ce[t];if(Ne?.(s?.isSavedBlock?s.resolveType??null:null),!n||!s)return;if(s.isMultivariate){_t(n,s,0,t);return}const a=Rt(n,s,f,_);if(!a){A(null),W(null),Ge(null),Le(null),zt(null,t,0);return}A(a.data),W(a.resolveType),Ge(null),Le(null),zt(null,t,0)},sr=t=>{const n=t;m!==null&&(Lt.current=vi(Lt.current,{sectionIndex:m,variantIndex:ne.current.sectionVariantIndex,shown:et,next:n,sectionCount:ne.current.rawSections.length})),A(n),m!==null&&Sn(n,m)},is=t=>{if(!g||!f||!u||!se)return;const n={kind:"page",pageKey:g,pageName:String(se.name??""),path:String(se.path??"")},s=ta(f,n,u);s&&dn.save(g,()=>{const a=Ds.getQueryData(bi.decofile(Fs))?.[g];if(!a||typeof a!="object"||a===null||Array.isArray(a))return null;const o={...a,...Pn.current};return Pn.current={},t?.raw!==void 0?rc(o,t.raw,u):t?.inner!==void 0?ac(n,s,o,t.inner):o})},rr=(t,n)=>{g&&(Pn.current[t]=n,is())},oo=(t,n)=>{if(!g)return;const s=Zn([...M],t,n);m!==null&&(m===t?L(n):t<m&&n>=m?L(m-1):t>m&&n<=m&&L(m+1)),ft(s)},io=t=>{if(!g)return;const n=M.filter((s,a)=>a!==t);m===t?$t():m!==null&&m>t&&L(m-1),ft(n)},lo=t=>{if(!g)return;const n=M[t];if(!n)return;const s=[...M];s.splice(t+1,0,al(n)),m!==null&&m>t&&L(m+1),ft(s)},co=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s)return;const a=s.isHidden?fi(n,_):mi(n,u);if(!a)return;const o=[...M];o[t]=a,m===t&&$t(),ft(o)},uo=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s||s.isMultivariate)return;const a=di(n);if(!a)return;const o=[...M];o[t]=a,m===t&&$t(),ft(o)},fo=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s?.isSavedBlock)return;const a=Rt(n,s,f,_);if(!a?.data)return;const{name:o,...i}=a.data,l=[...M];s.isLazy?l[t]={...n,section:i}:l[t]=i,m===t&&$t(),ft(l)},mo=t=>{if(!g)return;const n=[...M,{__resolveType:t.resolveType}],s=n.length-1;ft(n,{onError:()=>{ne.current.selectedSectionIndex===s&&$t()}}),Yt(!1),L(s),ut(0),N([]),T(l=>l+1);const a=n[s],o=wn(n,f,_)[s];if(!a||!o)return;if(o.isMultivariate){_t(a,o,0);return}const i=Rt(a,o,f,_);if(!i){A(null),W(null),Ge(null),Le(null);return}A(i.data),W(i.resolveType),Ge(null),Le(null)},ar=t=>{En.current=t.append,Yt(!0)},po=t=>{const n=En.current;if(!n){mo(t);return}n({__resolveType:t.resolveType}),Yt(!1),En.current=null},or=t=>{if(m===null)return;const n=M[m],s=ce[m];!n||!s?.isMultivariate||(ut(t),N([]),T(a=>a+1),_t(n,s,t,m,!0))},ho=t=>{if(m===null||!g)return;const n=M[m],s=ce[m];if(!n||!s?.isMultivariate)return;const a=st(n,s);if(!a)return;const o=ci(a,t);if(!o){q.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const i=[...M];i[m]=Kt(n,s,o);const l=o.variants;let d=Ie;t===Ie?d=Math.min(t,l.length-1):t<Ie&&(d=Ie-1),ut(d),N([]),T(E=>E+1),_t(i[m],s,d),ft(i)},go=t=>{if(m===null||!g)return;const n=M[m],s=ce[m];if(!n||!s?.isMultivariate)return;const a=st(n,s);if(!a)return;const o=ui(a,t,_),i=[...M];i[m]=Kt(n,s,o);const l=Yr(a.variants??[],t,_);ut(l),N([]),T(d=>d+1),_t(i[m],s,l,m,_),ft(i)},vo=(t,n)=>{if(m===null||!g||t===n)return;const s=M[m],a=ce[m];if(!s||!a?.isMultivariate)return;const o=st(s,a);if(!o)return;const i=ii(o,t,n),l=[...M];l[m]=Kt(s,a,i);let d=Ie;Ie===t?d=n:t<Ie&&n>=Ie?d=Ie-1:t>Ie&&n<=Ie&&(d=Ie+1),ut(d),_t(l[m],a,d,m,_),ft(l)},yn=t=>{const n=t??m;if(n===null||!g)return;const s=M[n],a=ce[n];if(!s||!a)return;const o=oi(s,a,void 0,u,_);if(!o){q.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const i=[...M];i[n]=o.section;const l=wn(i,f,_)[n];if(!l?.isMultivariate){q.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}L(n),ut(o.newVariantIndex),N([]),T(d=>d+1),_t(o.section,l,o.newVariantIndex,n,_),ft(i)},ir=()=>{if(m===null||!g)return;const t=M[m],n=ce[m];if(!t||!n?.isMultivariate)return;const s=st(t,n);if(!s)return;const a=li(t,n,s);if(!a){q.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const o=[...M];o[m]=a;const i=wn(o,f,_)[m];if(!i)return;ut(0),Ge(null),Le(null),N([]),T(d=>d+1);const l=Rt(a,i,f,_);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),zt(null,m,0),ft(o)},So=async t=>{if(Fe===null||!g)return;const n=Yn(t,f,u);if(n){q.error(n);return}const s=M[Fe],a=ce[Fe];if(!s||!a)return;const o=Rt(s,a,f,_);if(!o){q.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const i={...o.data,name:t};try{const l=await D.mutateAsync({blockKey:t,data:i,create:!0}),d=[...M];d[Fe]={__resolveType:t},await D.mutateAsync({blockKey:g,data:an(f,g,d,J,le)}),m===Fe&&$t(),G(null),qn(l)||q.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),k?.()}catch(l){q.error(c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"),{description:Mt(c,Bt(l))})}},lr=ye?.rule;if(St&&m===null&&Z===null&&lr){const{resolveType:t,formValue:n}=qt(lr,f??{},u??void 0);ee(t),Y(n)}const nn=u?Ui(u):[],ls=u&&f?Yi(u,f):[],Ht=_&&u&&f?_l(u,f):[],cs=(t,n)=>{if(Ht.length===0)return;const s=Pl(t);return{kinds:Ht,selected:s,campaignPrefill:kl(t),onPick:n}},cr=!$&&!!(it&&u&&f),ur=Z&&u?Gn(Z,u):null,yt=()=>{gt.current&&(clearTimeout(gt.current),gt.current=null),vt.current&&(clearTimeout(vt.current),vt.current=null)},kt=async(t,n)=>{if(!(Dl(n,t,u)>0))try{await Cn.mutateAsync({blockKey:t})}catch(s){q.error(c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"),{description:Mt(c,Bt(s))})}},dr=t=>{gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;const o={...s[n]},i={...o.sections},l=[...i.variants??[]],d=l[a],E=d?.rule;if(Gt(E,s,u)){const h=E?.__resolveType??"",x=s[h],j=typeof x?.name=="string"?x.name:h,{__resolveType:I,...P}=t;D.mutate({blockKey:h,data:Dt(I??"",P,j)},{onSuccess:()=>k?.(),onError:D.reportError});return}d&&(l[a]={...d,rule:t}),o.sections={...i,variants:l},D.mutate({blockKey:n,data:o},{onSuccess:()=>k?.(),onError:D.reportError})},_n)},fr=t=>{ee(t);const n=t?ha(t,u):{__resolveType:Ur(u)};Y(t?n:{}),dr(n)},mr=t=>{const n=t;Y(n);const s=Z?{__resolveType:Z,...n}:{...n};dr(s)},In=async(t,n,s)=>{const a=wl(n,t);if(!a.ok)return a.reason==="conflict"&&q.info(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.conflictTests"):c("sectionsEditor.namedRulePicker.conflictCampaigns"),ma),null;const o={};if(s){const i=s(a.rule);if(!i)return null;o[i.blockKey]=i.data}return a.blockWrite&&(o[a.blockWrite.blockKey]=a.blockWrite.block),Object.keys(o).length>0&&!(await Is.apply({writes:o})).ok?null:(a.blockWrite&&q.success(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.createdTest",{name:t.name.trim()}):c("sectionsEditor.namedRulePicker.createdCampaign",{name:t.name.trim()}),{...ma,description:c("sectionsEditor.namedRulePicker.createdHint")}),{rule:a.rule,projected:{...n,...o}})},pr=Ht.length>0?{kinds:Ht,prepare:async t=>(await In(t,ne.current.decofile,void 0))?.rule??null,ensureBlock:async t=>{const n=Kl(ne.current.decofile,t);return n.kind==="saved"?!0:n.kind==="conflict"?!1:(await Is.apply({writes:{[Ml(t).blockKey]:n.block}})).ok}}:null,hr=async t=>{yt();const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;let o=null;const i=await In(t,s,E=>{const h=s[n],x=h?.sections;if(!x||typeof x!="object"||Array.isArray(x))return null;const j=x;if(!Array.isArray(j.variants))return null;const I=[...j.variants],P=I[a];return P?(o=bt(P.rule,s,u),I[a]={...P,rule:E},{blockKey:n,data:{...h,sections:{...j,variants:I}}}):null});if(!i)return;const{resolveType:l,formValue:d}=qt(i.rule,i.projected,u??void 0);ee(l),Y(d),o&&await kt(o,i.projected),k?.()},gr=async t=>{yt();const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;const o=s[n],i=o?.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const d=[...l.variants],E=d[a];if(!E)return;const h=bt(E.rule,s,u),x=ln(t);d[a]={...E,rule:x};const j={...s,[n]:{...o,sections:{...l,variants:d}}},{resolveType:I,formValue:P}=qt(x,j,u??void 0);ee(I),Y(P);try{await D.mutateAsync({blockKey:n,data:j[n]}),h&&h!==t&&await kt(h,j),k?.()}catch(pe){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(pe))})}},vr=t=>{vt.current&&clearTimeout(vt.current);const{selectedSectionIndex:n,sectionVariantIndex:s}=ne.current;n!==null&&(vt.current=setTimeout(()=>{const{rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(!l)return;const h=a[n],x=o[n];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const P=(j.variants??[])[s]?.rule;if(Gt(P,i,u)){const z=P?.__resolveType??"",H=i[z],re=typeof H?.name=="string"?H.name:z,{__resolveType:he,...Ae}=t;D.mutate({blockKey:z,data:Dt(he??"",Ae,re)},{onSuccess:()=>k?.(),onError:D.reportError});return}const pe=vs(j,s,t),ue=[...a];ue[n]=Kt(h,x,pe);const be=an(i,l,ue,E,d);D.mutate({blockKey:l,data:be},{onSuccess:()=>k?.(),onError:D.reportError})},_n))},yo=t=>{Ge(t);const n=t?ha(t,u):{__resolveType:Ur(u)};Le(t?n:{}),vr(n)},bo=t=>{const n=t;Le(n);const s=Qt?{__resolveType:Qt,...n}:{...n};vr(s)},xo=async t=>{yt();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(n===null||!l)return;let h=null;const x=await In(t,i,P=>{const pe=a[n],ue=o[n];if(!pe||!ue?.isMultivariate)return null;const be=st(pe,ue);if(!be)return null;const z=be.variants??[];h=bt(z[s]?.rule,i,u);const H=[...a];return H[n]=Kt(pe,ue,vs(be,s,P)),{blockKey:l,data:an(i,l,H,E,d)}});if(!x)return;const{resolveType:j,formValue:I}=qt(x.rule,x.projected,u??void 0);Ge(j),Le(I),h&&await kt(h,x.projected),k?.()},_o=async t=>{yt();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(n===null||!l)return;const h=a[n],x=o[n];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const I=j.variants??[],P=bt(I[s]?.rule,i,u),pe=ln(t),ue=vs(j,s,pe),be=[...a];be[n]=Kt(h,x,ue);const z=an(i,l,be,E,d),H={...i,[l]:z},{resolveType:re,formValue:he}=qt(pe,H,u??void 0);Ge(re),Le(he);try{await D.mutateAsync({blockKey:l,data:z}),P&&P!==t&&await kt(P,H),k?.()}catch(Ae){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(Ae))})}};if(!$&&!se)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:V})});if($&&!Kn)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const je=m!==null?ce[m]??null:null,Sr=m!==null?M[m]:null,yr=Sr&&je?.isMultivariate?st(Sr,je):null,At=yr?qr(yr,we):[],Ln=Math.min(Ie,Math.max(At.length-1,0)),jt=At[Ln]??null,Nt=je?.isMultivariate===!0,us=m!==null&&je!==null,Ct=us&&(Nt||!!(Fn&&et)),ko=Ct&&!$&&je?.isSavedBlock===!0,mt=$||ko,br=$?Hs:je?.label??"",wo=Qt&&u?Gn(Qt,u):null,xr=(t,n)=>n&&X?`${t} · ${n}`:t,_r=je?je.variantOf??je.label:"",jo=(()=>{const t=Nt&&jt?jt.label:null;return t?X?[xr(_r,t)]:[je.label,t]:[je?.label??""]})(),ds=xr(se?.name??"",St?ye?.label:null),On=Ct&&(!$||O.length>0)?$?[Hs,...O]:[ds,...jo,...O]:[],kr=Te&&se?[se.name,"SEO",...Ps]:[],wr=c("sectionsEditor.pageVariantTabs.variantsLabel"),jr=Zt&&se?[se.name,wr]:Ft&&se&&je?[ds,_r,wr]:[],zn=jr.length>0?jr:kr.length>0?kr:mt?On.length>0?On:[br]:On.length>0?On:[ds],Rr=us&&!Nt&&!je?.isHidden&&!!g,Ro=mt||!$&&St&&!!ye||Rr,Eo=us&&!Nt&&!$&&O.length===0&&!!je&&Ra(je)&&!!g,Vo=X&&Ct&&!Ft&&Nt&&O.length===0&&!!jt,Er=X&&O.length>0?na(O[O.length-1]):null,To=O.length>1?na(O[O.length-2]):null,Vr=mt?br:Ct?je?.label??"":se?.name??"",Ao=Zt||Ft?c("sectionsEditor.pageVariantTabs.variantsLabel"):Te?c("sectionsEditor.panelSections.seo"):Er??Vr,Tr=Ft?je?.variantOf??je?.label??"":Zt||Te?se?.name??"":Er?To??Vr:mt?c("sectionsEditor.sectionsEditor.globalSectionSubtitle"):Ct?se?.name??"":se?.path??"",fs=!Zt&&!Ft&&!Te&&!Ct&&!mt,No=!X&&!Te&&!$&&Nt&&O.length===0,bn=()=>{if(!g)return;yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const t=f[g],n=Cl(t.sections,M,u,_);if(!n)return;const{sections:s,newVariantIndex:a}=n;D.mutate({blockKey:g,data:{...t,sections:s}},{onSuccess:()=>{fe(a),L(null),A(null),W(null),N([]),Y(null),ee(null)},onError:D.reportError})},$n=(t,n,s)=>{if(!g)return;yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const a=f[g],o=a.sections;if(!o||typeof o!="object"||Array.isArray(o))return;const i=o;if(!Array.isArray(i.variants))return;const l=t([...i.variants]);if(!l)return;const d=Bl(i,l),E={...f,[g]:{...a,sections:d}};D.mutate({blockKey:g,data:E[g]},{onSuccess:()=>{n?.();const h=typeof s=="string"?[s]:s??[];(async()=>{for(const x of h)await kt(x,E)})()},onError:D.reportError})},Ar=(t,n)=>{if(t===n)return;let s=J;J===t?s=n:t<J&&n>=J?s=J-1:t>J&&n<=J&&(s=J+1),fe(s);const a=Zn(le.map(o=>({rule:o.rule})),t,n);rs(a,s),$n(o=>Zn(o,t,n))},Nr=t=>{const n=le[t]?.rule,s=bt(n,f??{},u??void 0);$n(a=>a.length<=1?null:(a.splice(t,1),a),()=>{le.length-1===1?fe(0):t<J?fe(J-1):t===J&&fe(Math.max(0,t-1)),L(null),A(null),W(null),N([]),Y(null),ee(null)},s)},Co=()=>{const t=le.map((n,s)=>({variant:n,index:s})).filter(({variant:n})=>!pi(n.rule)).map(({variant:n})=>bt(n.rule,f??{},u??void 0)).filter(n=>!!n);$n(n=>{const s=Ai({variants:n}),a=n[s];return a?[{...a,rule:Ni(u)}]:null},()=>{fe(0),L(null),A(null),W(null),N([]),Y(null),ee(null),Tn(!1)},t)},Cr=t=>{let n=t+1;$n(s=>(n=Yr(s,t,_),Fl(s,t,_)),()=>{fe(n),L(null),A(null),W(null),N([]),Y(null),ee(null)})},Po=async(t,n)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const s=ne.current.activePageKey,a=ne.current.decofile;if(!s)return;const o=a[s],i=o.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const d=[...l.variants],E=d[t];if(!E?.rule||typeof E.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const h=E.rule,x=n.trim();en(!0);try{if(!x){if(!Gt(h,a,u)){Ve(null);return}const z=h.__resolveType??"";d[t]={...E,rule:ks(h,a,u)};const H={...a,[s]:{...o,sections:{...l,variants:d}}};await D.mutateAsync({blockKey:s,data:H[s]}),await kt(z,H),Ve(null),k?.();return}const j=ws(h,a,u);if(!j){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(j.blockKey){await D.mutateAsync({blockKey:j.blockKey,data:Dt(j.resolveType,j.data,x)}),Ve(null),k?.();return}const I=Un(x),P=Yn(I,a,u);if(P){q.error(P);return}const pe=Dt(j.resolveType,j.data,x);let ue=null,be=!1;try{const z=await D.mutateAsync({blockKey:I,data:pe,create:!0});be=qn(z),ue=be?null:I,d[t]={...E,rule:ln(I)},await D.mutateAsync({blockKey:s,data:{...o,sections:{...l,variants:d}}}),ue=null}catch(z){throw ue&&await Cn.mutateAsync({blockKey:ue}).catch(()=>{}),z}Ve(null),be||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:x})),k?.()}catch(j){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(j))})}finally{en(!1)}},Ko=async(t,n)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{selectedSectionIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(s===null||!l)return;const h=a[s],x=o[s];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const I=j.variants??[],P=I[t];if(!P?.rule||typeof P.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const pe=P.rule,ue=n.trim();en(!0);const be=async z=>{const H={...j,variants:z},re=[...a];re[s]=Kt(h,x,H);const he=an(i,l,re,E,d);return await D.mutateAsync({blockKey:l,data:he}),{...i,[l]:he}};try{if(!ue){if(!Gt(pe,i,u)){nt(null);return}const pt=pe.__resolveType??"",Xe=[...I];Xe[t]={...P,rule:ks(pe,i,u)};const Pt=await be(Xe);await kt(pt,Pt),nt(null),k?.();return}const z=ws(pe,i,u);if(!z){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(z.blockKey){await D.mutateAsync({blockKey:z.blockKey,data:Dt(z.resolveType,z.data,ue)}),nt(null),k?.();return}const H=Un(ue),re=Yn(H,i,u);if(re){q.error(re);return}const he=Dt(z.resolveType,z.data,ue);let Ae=null,sn=!1;try{const pt=await D.mutateAsync({blockKey:H,data:he,create:!0});sn=qn(pt),Ae=sn?null:H;const Xe=[...I];Xe[t]={...P,rule:ln(H)},await be(Xe),Ae=null}catch(pt){throw Ae&&await Cn.mutateAsync({blockKey:Ae}).catch(()=>{}),pt}nt(null),sn||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:ue})),k?.()}catch(z){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(z))})}finally{en(!1)}},Pr=async(t,n,s)=>{A(s);try{await D.mutateAsync({blockKey:t,data:s})}catch(a){throw A(o=>o===s?n:o),a}},Mo={rename:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n],d=l?.rule&&typeof l.rule=="object"?l.rule:void 0,E=async x=>{const j={...t,variants:x};return await Pr(a,t,j),{...o,[a]:j}},h=wc(d,s,o,u);if(h.kind!=="noop"){if(h.kind==="error"){q.error(h.reason==="no-matcher-rule"?c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"):h.reason==="unreadable-rule"?c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"):h.message??c("sectionsEditor.sectionsEditor.failedToRenameVariant"));return}en(!0);try{if(h.kind==="inline"){const I=[...i];I[n]={...l,rule:h.inlinedRule};const P=await E(I);await kt(h.blockKey,P),k?.();return}if(h.kind==="updateBlock"){await D.mutateAsync({blockKey:h.blockKey,data:h.blockData}),k?.();return}let x=null,j=!1;try{const I=await D.mutateAsync({blockKey:h.blockId,data:h.blockData,create:!0});j=qn(I),x=j?null:h.blockId;const P=[...i];P[n]={...l,rule:h.reference},await E(P),x=null}catch(I){throw x&&await Cn.mutateAsync({blockKey:x}).catch(()=>{}),I}j||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:s.trim()})),k?.()}catch(x){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(x))})}finally{en(!1)}}},selectGlobal:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n];if(!l)return;const d=bt(l.rule,o,u);i[n]={...l,rule:ln(s)};const E={...t,variants:i},h={...o,[a]:E};try{await Pr(a,t,E),d&&d!==s&&await kt(d,h),k?.()}catch(x){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(x))})}},selectNamedRule:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;let i=null,l=null;const d=await In(s,o,E=>{const h=Array.isArray(t.variants)?[...t.variants]:[],x=h[n];return x?(i=bt(x.rule,o,u),h[n]={...x,rule:E},l={...t,variants:h},{blockKey:a,data:l}):null});!d||!l||(A(l),i&&await kt(i,d.projected),k?.())}},Kr=()=>{$t()},Mr=t=>{un(t),is({inner:t})},Br=t=>{Nn(t),is({raw:t})},Dr=()=>{un(null),It([])},Fr=()=>Jt(t=>t+1),Ir=()=>{dn.flush(),cn(!1),un(null),Nn(void 0),It([]),Jt(t=>t+1),ge?.()},Bo=()=>{Tn(!1),An(!1),L(null),cn(!0)},Do=()=>{Te&&Ir(),L(null),Tn(!0)},Fo=()=>An(!0),ms=t=>{if(Zt&&t===0){Tn(!1);return}if(Ft&&t<2){An(!1),t===0&&L(null);return}if(Te){if(t===0){Ir();return}if(t===1){It([]),Jt(s=>s+1);return}It(Ps.slice(0,t-1)),Jt(s=>s+1);return}if($){N(O.slice(0,t)),T(s=>s+1);return}if(t===0){Kr();return}if(t===1){N([]),T(s=>s+1);return}const n=!X&&Nt&&jt?1:0;if(n===1&&t===2){N([]),T(s=>s+1);return}N(O.slice(0,t-1-n))},ps=zn.length>1?r.jsx("button",{type:"button",onClick:()=>ms(ol(zn.length,{isMultivariateSectionTop:No})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:ae("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",mt?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:r.jsx(dl,{className:"size-4"})}):null,Io=mt||Ct||Te?Ro&&r.jsxs("div",{className:ae("border-b px-3 py-2.5",mt&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[r.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!$&&St&&ye&&r.jsxs("button",{type:"button",onClick:Kr,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:ye.label}),className:ae("shrink-0 inline-flex items-center gap-1 rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",Ji),children:[r.jsx(Zi,{rule:xs(ye.rule,f??{},u??void 0),matchers:nn}),r.jsx("span",{className:"max-w-[160px] truncate",children:ye.label})]}),r.jsx("div",{className:"flex-1"}),mt&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Jn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Rr&&r.jsx(Wn,{onClick:()=>yn()})]}),mt&&r.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):r.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx(sa,{pageKey:g,initialName:se.name,initialPath:se.path,onFieldChange:rr,variant:"header"})}),r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:()=>cn(!0),children:r.jsx(da,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Oe&&g?Oe():Xn(!0),children:r.jsx(fa,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),r.jsx(Wn,{onClick:bn})]}),Lo=r.jsxs(r.Fragment,{children:[St&&g&&r.jsx(ra,{listKey:g,variants:le,activeIndex:J,decofile:f??{},meta:u,matchers:nn,onSelect:hn,onReorder:Ar,onRename:Ve,onDuplicate:Cr,onDelete:Nr,onAdd:bn}),St&&Z!==null&&r.jsx(aa,{className:"mt-3",children:r.jsx("div",{className:ae("space-y-3",Xt&&"pointer-events-none opacity-50"),children:r.jsx(ys,{currentRt:Z,currentLabel:kn(ye?.rule,f??{},we,u??void 0),currentGlobalKey:bt(ye?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:fr,onSelectGlobal:gr,named:cs(ye?.rule,hr),namedRow:bs(ye?.rule,Ht),rule:ye?.rule,schema:ur,formValue:De,onChange:mr,formKey:`${J}:${Z??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})})]}),Lr=r.jsxs(r.Fragment,{children:[r.jsx(Qi,{listKey:`${g??""}:${m??""}`,variants:At.map((t,n)=>({index:n,label:t.label})),selectedIndex:Ln,onSelect:or,onRename:nt,onDuplicate:go,onDelete:ho,onRemoveAll:ir,onReorder:vo,onAdd:()=>yn()}),r.jsx(aa,{children:r.jsx(ys,{currentRt:Qt??"",currentLabel:kn(jt?.rule,f??{},we,u??void 0),currentGlobalKey:bt(jt?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:yo,onSelectGlobal:_o,named:cs(jt?.rule,xo),namedRow:bs(jt?.rule,Ht),rule:jt?.rule,schema:wo,formValue:Ba,onChange:bo,formKey:`${m??"none"}:${Ln}:${Qt??""}`,formWrapperClassName:"pt-1",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})]}),Or=r.jsx("div",{className:ae(X?"px-2":"p-2 pt-3"),children:r.jsx(_c,{listKey:`${g??""}-${J}`,rawSections:M,sections:ce,meta:u,decofile:f,selectedIndex:m,onSelect:ao,onReorder:oo,onDelete:io,onDuplicate:lo,onMakeReusable:G,onToggleHidden:co,onToggleLazy:ot?uo:void 0,onAddVariant:yn,onDetach:fo,onAddSection:()=>Yt(!0),canAddSection:cr})}),Oo=r.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[g&&se&&r.jsx(sa,{pageKey:g,initialName:se.name,initialPath:se.path,onFieldChange:rr}),Ot&&g?r.jsx(ya,{rawSeo:Mn,innerSeo:ss,defaultResolveType:qs,seoTypesLoading:_&&!u,seoSchema:Gs,activeResolveType:Bn,seoTypeOptions:Ws,formResetKey:Ks,siteDefaultSeo:Us,onBreadcrumbChange:It,onPersistRaw:Br,onInnerChange:Mr,onClearForm:Dr,onBumpFormKey:Fr,asyncRenderAvailable:ot}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),zo=r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:r.jsx("div",{className:"mx-auto max-w-2xl",children:Ot&&g?r.jsx(ya,{rawSeo:Mn,innerSeo:ss,defaultResolveType:qs,seoTypesLoading:_&&!u,seoSchema:Gs,activeResolveType:Bn,seoTypeOptions:Ws,formResetKey:Ks,siteDefaultSeo:Us,onBreadcrumbChange:It,onPersistRaw:Br,onInnerChange:Mr,onClearForm:Dr,onBumpFormKey:Fr,asyncRenderAvailable:ot}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),$o=r.jsxs(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[St&&g&&r.jsx(ra,{listKey:g,variants:le,activeIndex:J,decofile:f??{},meta:u,matchers:nn,onSelect:hn,onReorder:Ar,onRename:Ve,onDuplicate:Cr,onDelete:Nr,onAdd:bn}),St&&Z!==null&&r.jsxs("div",{className:ae("px-3 border-b",Vn?"pt-3 pb-5 space-y-3":"py-2"),children:[r.jsxs("button",{type:"button",onClick:()=>Ka(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-[var(--studio-control-radius,var(--radius-sm))] py-0.5 hover:bg-accent","aria-expanded":Vn,children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),Vn?r.jsx(ll,{className:"size-3.5 shrink-0 text-muted-foreground"}):r.jsx(cl,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),Vn&&r.jsx("div",{className:ae("space-y-3",Xt&&"pointer-events-none opacity-50"),children:r.jsx(ys,{currentRt:Z,currentLabel:kn(ye?.rule,f??{},we,u??void 0),currentGlobalKey:bt(ye?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:fr,onSelectGlobal:gr,named:cs(ye?.rule,hr),namedRow:bs(ye?.rule,Ht),rule:ye?.rule,schema:ur,formValue:De,onChange:mr,formKey:`${J}:${Z??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})]}),Or]},"editor-section-list");return r.jsx(Xi,{value:_,children:r.jsx(el,{children:r.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[!X&&ps&&r.jsx("div",{className:"flex min-w-0 shrink-0 items-center gap-2 px-3 py-2",children:ps}),(X||zn.length>1)&&r.jsx(tl,{crumbs:zn,onSelect:ms,onSelectRoot:()=>{dn.flush(),Ue?Ue():ms(0)}}),r.jsx("div",{className:"shrink-0",children:X?r.jsxs("div",{className:ae("flex items-center gap-2 border-b px-3 py-2.5",mt&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[X&&ps,mt&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Jn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),r.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[r.jsx("span",{className:"truncate text-sm font-semibold",children:Ao}),Tr&&r.jsx("span",{className:"truncate text-xs text-muted-foreground",children:Tr})]}),fs&&St&&ye&&r.jsx(oa,{variants:le,activeIndex:J,onSelect:hn,onManage:Do,onRemoveAll:Co}),Vo&&r.jsx(oa,{variants:At,activeIndex:Ln,onSelect:or,onManage:Fo,onRemoveAll:ir}),fs&&!St&&r.jsx(Wn,{onClick:bn}),Eo&&r.jsx(Wn,{onClick:()=>yn()}),r.jsx(nl,{}),fs&&r.jsxs(r.Fragment,{children:[r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:Bo,children:r.jsx(da,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),!Oe&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Xn(!0),children:r.jsx(fa,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):Io}),dt&&r.jsx(si,{open:!0,fields:ri(dt.plan,dt.target.schema),choices:dt.choices,changedAgain:dt.changedAgain,author:$s??null,authorPending:$s===void 0,fieldsAsLabeled:zs!==null,fresh:dt.fresh,onChoose:(t,n)=>ro({...dt.choices,[t]:n}),onApply:so},Ec(dt.formBase)),Ft?r.jsx(ia,{onAdd:()=>yn(),children:Lr},"editor-section-variants"):Ct?r.jsxs(on,{viewportRef:me,onBlur:Xs,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!X&&Nt&&At.length>0&&O.length===0&&Lr,r.jsx(pa,{value:pr,children:r.jsx(la,{value:$&&_?Be:null,children:r.jsx(ca,{activeSchema:Fn,formValue:et,formResetKey:Je,onFormChange:sr,onBreadcrumbChange:N,breadcrumbPath:O,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:u,decofile:f,onSaveReferencedBlock:fn,sandbox:gn,previewBaseUrl:at,onRequestAddSection:ar,onVariantMatcherOp:$?Mo:void 0})})})]},"editor-section-form"):$?r.jsx(on,{viewportRef:me,onBlur:Xs,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx(pa,{value:pr,children:r.jsx(la,{value:$&&_?Be:null,children:r.jsx(ca,{activeSchema:Fn,formValue:et,formResetKey:Je,onFormChange:sr,onBreadcrumbChange:N,breadcrumbPath:O,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:u,decofile:f,onSaveReferencedBlock:fn,sandbox:gn,previewBaseUrl:at,onRequestAddSection:ar})})})},"editor-global-block"):Te?X?r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"p-3",children:Oo})},"editor-seo"):zo:Zt?r.jsx(ia,{onAdd:bn,children:Lo},"editor-variants"):X?r.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"py-2",children:Or})}),r.jsx("div",{className:"shrink-0 border-t p-2",children:r.jsx(Es,{canAddSection:cr,onAddSection:()=>Yt(!0)})})]},"editor-section-list"):$o,r.jsx(sl,{open:Fe!==null,onOpenChange:t=>{t||G(null)},defaultBlockId:Fe!==null?Un(ce[Fe]?.label??""):"",isPending:D.isPending,onSubmit:So}),it&&r.jsx(nc,{open:Pa,onOpenChange:t=>{Yt(t),t||(En.current=null)},meta:u,decofile:f,previewBaseUrl:at,onSelect:po}),Ts&&g&&f&&r.jsx(El,{open:Ts,onOpenChange:Xn,pageKey:g,decofile:f}),ie!==null&&r.jsx(ua,{open:!0,initialName:Gt(le[ie]?.rule,f??{},u??void 0)?kn(le[ie]?.rule,f??{},we,u??void 0):"",autoLabel:we(xs(le[ie]?.rule,f??{},u??void 0)),isPending:Xt,onSubmit:async t=>{await Po(ie,t)},onOpenChange:t=>{!t&&!Xt&&Ve(null)}}),Qe!==null&&r.jsx(ua,{open:!0,initialName:Gt(At[Qe]?.rule,f??{},u??void 0)?kn(At[Qe]?.rule,f??{},we,u??void 0):"",autoLabel:we(xs(At[Qe]?.rule,f??{},u??void 0)),isPending:Xt,onSubmit:async t=>{await Ko(Qe,t)},onOpenChange:t=>{!t&&!Xt&&nt(null)}})]})})})}export{ff as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,b as Se,j as o,r as M,ax as Te,B as Ce,h as Re}from"./index-LISCRMKT.js";import{a3 as ye}from"./agent-icon-Co7E9kYl.js";import{S as ge}from"./scroll-area-DYvdRQ3X.js";import{I as be,ac as Fe,i as Ke,k as ze,ad as De,h as $e,aE as Ie}from"./held-block-view-BDu8bj-6.js";import{k as Be}from"./parse-sections-rTJ9Vxva.js";import{u as Le,a as Oe,P as Ue}from"./page-seo-form-CdFLhDD2.js";import{c as Ae,b as Me}from"./blocks-tab-states-CQydf1x6.js";import{a as ke}from"./Image01-D9f6XNAl.js";import{u as Ge,m as He}from"./site-editor-toast-BZwEeugO.js";import"./AlertCircle-Pu-QR8hS.js";import"./Tool01-CkZTily1.js";import"./ArrowUp-bMBjrwqG.js";import"./ArrowLeft-CiCYDVFq.js";import"./LinkBroken01-BeLPonYT.js";import"./ShoppingBag01-CeVNpa4z.js";import"./ZoomOut-9x8WuC5l.js";import"./Building02-BejNykWR.js";import"./CheckCircle-CiBrtkwP.js";import"./ChevronUp-D3pnxmNi.js";import"./ChevronSelectorVertical-Bb_Zani-.js";import"./UserSquare-D7fSnIn3.js";import"./Copy01-BEOZtg79.js";import"./CreditCard01-C2H6wRye.js";import"./DotsVertical-DddKhPwC.js";import"./Globe04-CR7aWwIq.js";import"./SwitchHorizontal01-B8-pBEhT.js";import"./Key01-BGQzZTLx.js";import"./Link01-_AjEk0aG.js";import"./Minus-DRtjDVr0.js";import"./Monitor01-CMcPb3p-.js";import"./Sun-E-EbUc0n.js";import"./Play-Bon9Nn-R.js";import"./Plus-DZ8OV5bq.js";import"./SearchMd-Coxjt-Zl.js";import"./Trash01-C8OxhBl3.js";import"./Upload01-Bt37Plwz.js";import"./Users01-DVEy527M.js";import"./XClose-Bvl4KGPV.js";import"./index-BdQq_4o_.js";import"./utils-BDRBqTP5.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-B_hske_9.js";import"./collapsible-DMa5aTxw.js";import"./use-copy-Bb3ge3Jw.js";import"./usage-stats-DyqnqVDM.js";import"./tool-namespace-EPn7Kyb1.js";import"./form-Bk9ymCIS.js";import"./label-BfYbFBpZ.js";import"./utils-CVEq3hMx.js";import"./markdown-CGLGjJUn.js";import"./location-V0VwTJTt.js";import"./use-mobile-BJBInbLU.js";import"./use-panel-navigate-CnrhnUVG.js";import"./thread-route-CCN9I68_.js";import"./use-project-scope-LiKIXaiK.js";import"./repository-binding-N72ZtnJ7.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./tooltip-DiW2ytsS.js";import"./index-KpWMq2p9.js";import"./use-entitlements-9vbVfq68.js";import"./chat-context-Cbn1d2gD.js";import"./autosend-BYljpA5c.js";import"./thread-intent-ptqgtSKo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBQ2__fw.js";import"./task-board-DfACAZyY.js";import"./schema-C2dfCTpF.js";import"./slugify-CEUa2lfQ.js";import"./use-ai-providers-DGRaKYBP.js";import"./use-decopilot-events-ChnGZu8F.js";import"./use-organization-settings-CK8r9oqu.js";import"./use-clock-tick-BXkjZk4h.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BmH0oH65.js";import"./types-CAqly_33.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DUwEP5qi.js";import"./use-deployment-admin-Do6VU3ed.js";import"./admin-fetch-BhTJlAsX.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./integration-icon-msZhQ6E3.js";import"./project-icon-As9MoCET.js";import"./new-project-dialog-BrtI6GgZ.js";import"./repository-import-picker-CNVRTxph.js";import"./use-navigate-to-agent-CpRnIp1k.js";import"./repository-picker-CW0SaV-m.js";import"./github-icon-EmEurWMX.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";import"./collection-search-BtpA2Lei.js";import"./use-debounced-value-DBl2u8Ax.js";import"./required-auth-layout-BwkU_8aI.js";import"./use-org-sso-DVHlBcmx.js";import"./sheet-C1Iz_daC.js";import"./use-connection-DZPkoV0a.js";import"./use-mcp-prompts-B2c7TGKV.js";import"./use-thread-outputs-BT4PyLKe.js";import"./file-type-icon-CiMMiUYO.js";import"./section-array-field-cPwKvhUj.js";import"./alert-BF8n9shl.js";import"./switch-B5fLkk4G.js";import"./textarea-1B6eWYpg.js";import"./popover-D6dCz_8d.js";import"./monaco-editor-B_hB8uvI.js";import"./editor-Z7h3tdjo.js";import"./calendar-gk2fXc2c.js";import"./select-Ce8n-RXJ.js";import"./editor-classes-CIysMLqw.js";import"./core.esm-M1IJOkIH.js";import"./sortable.esm-DfWQuMf-.js";import"./toggle-group-DhjHoFhg.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BwKhFDqj.js";import"./search-input-DfJJHgak.js";import"./tabs-BeQ3GpBj.js";import"./use-file-configs-Dn7YLM4Z.js";import"./asset-utils-7zQmpZtP.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-session-runtime-PX0UU1rX.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./slider-BRlhk1I_.js";import"./index-Bd1JsEWx.js";import"./tooltipContext-Boh-kskS.js";import"./CategoricalChart-1g-OhB34.js";import"./index-DMJwbqhe.js";import"./ActiveShapeUtils-HI4PJ-HL.js";import"./Sector-CNB3zVjr.js";import"./symbol-AaQxOm0Y.js";import"./empty-state-CEJi6IVu.js";import"./experiments-tab-choice-EKyQNqty.js";import"./use-sandbox-events-BAik2LAS.js";function G(d){return typeof d=="string"&&d.trim()?d:void 0}function je(d,e){if(d){if(e)try{const t=new URL(d,e).href;return be(t)}catch{return}return be(d)}}function Ve(d){if(!d)return{};const e=G(d.title),t=G(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:G(d.description),image:G(d.image),favicon:G(d.favicon)}}function We(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const qe=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function he(d){const e=T.c(10),{src:t,className:r,iconSize:x}=d,a=x===void 0?20:x;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==a?(i=o.jsx(ke,{size:a}),e[5]=a,e[6]=i):i=e[6];let n;return e[7]!==r||e[8]!==i?(n=o.jsx("div",{className:r,style:s,children:i}),e[7]=r,e[8]=i,e[9]=n):n=e[9],n}function Je(d){const e=T.c(33),{seo:t,host:r,path:x,t:a}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let n;e[2]!==t.favicon?(n=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=n):n=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==r?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:r}),e[5]=r,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==r||e[9]!==x?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[r,x]}),e[8]=r,e[9]=x,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==n||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[n,c]}),e[14]=n,e[15]=c,e[16]=h):h=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#1a0dab"},e[17]=u):u=e[17];let v;e[18]!==t.title||e[19]!==a?(v=t.title??a("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=a,e[20]=v):v=e[20];let y;e[21]!==v?(y=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:u,children:v}),e[21]=v,e[22]=y):y=e[22];let b;e[23]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#4d5156"},e[23]=b):b=e[23];let S;e[24]!==t.description||e[25]!==a?(S=t.description??a("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=a,e[26]=S):S=e[26];let j;e[27]!==S?(j=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:b,children:S}),e[27]=S,e[28]=j):j=e[28];let k;return e[29]!==y||e[30]!==j||e[31]!==h?(k=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,y,j]}),e[29]=y,e[30]=j,e[31]=h,e[32]=k):k=e[32],k}function Qe(d){const e=T.c(26),{seo:t,host:r,t:x}=d;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #e2e8f0"},e[0]=a):a=e[0];let s;e[1]!==t.image?(s=o.jsx(he,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==r?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==x?(f=t.title??x("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=x,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==x?(h=t.description??x("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=x,e[16]=h):h=e[16];let u;e[17]!==h?(u=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=u):u=e[18];let v;e[19]!==u||e[20]!==m||e[21]!==l?(v=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,u]}),e[19]=u,e[20]=m,e[21]=l,e[22]=v):v=e[22];let y;return e[23]!==v||e[24]!==s?(y=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:a,children:[s,v]}),e[23]=v,e[24]=s,e[25]=y):y=e[25],y}function Xe(d){const e=T.c(36),{seo:t,host:r,accent:x,t:a}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let n;e[2]!==a?(n=a("sectionsEditor.seoPreview.chatCardHint"),e[2]=a,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,e[5]=m):m=e[5];const p=`3px solid ${x}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(he,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==a?(h=t.title??a("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=a,e[13]=h):h=e[13];let u;e[14]!==h?(u=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=u):u=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v={color:"#60666c"},e[16]=v):v=e[16];let y;e[17]!==t.description||e[18]!==a?(y=t.description??a("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=a,e[19]=y):y=e[19];let b;e[20]!==y?(b=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:v,children:y}),e[20]=y,e[21]=b):b=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#8a9099"},e[22]=S):S=e[22];let j;e[23]!==r?(j=o.jsx("div",{className:"mt-0.5 text-[10px]",style:S,children:r}),e[23]=r,e[24]=j):j=e[24];let k;e[25]!==u||e[26]!==b||e[27]!==j?(k=o.jsxs("div",{className:"px-2.5 py-1.5",children:[u,b,j]}),e[25]=u,e[26]=b,e[27]=j,e[28]=k):k=e[28];let g;e[29]!==k||e[30]!==f||e[31]!==l?(g=o.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:f,children:[l,k]}),e[29]=k,e[30]=f,e[31]=l,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,g]}),e[33]=g,e[34]=m,e[35]=N):N=e[35],N}function Ye(d){const e=T.c(39),{seo:t,host:r,accent:x,dark:a,t:s}=d,i=a?"#2b2d31":"#fff",n=a?"#00a8fc":"#1264a3",m=a?"#dbdee1":"#3b4045",p=a?"#949ba4":"#8a9099",f=a?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${x}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let u;e[5]!==p?(u={color:p},e[5]=p,e[6]=u):u=e[6];let v;e[7]!==r||e[8]!==u?(v=o.jsx("div",{className:"text-[10px]",style:u,children:r}),e[7]=r,e[8]=u,e[9]=v):v=e[9];let y;e[10]!==n?(y={color:n},e[10]=n,e[11]=y):y=e[11];let b;e[12]!==t.title||e[13]!==s?(b=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=b):b=e[14];let S;e[15]!==y||e[16]!==b?(S=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:y,children:b}),e[15]=y,e[16]=b,e[17]=S):S=e[17];let j;e[18]!==m?(j={color:m},e[18]=m,e[19]=j):j=e[19];let k;e[20]!==t.description||e[21]!==s?(k=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=k):k=e[22];let g;e[23]!==j||e[24]!==k?(g=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:j,children:k}),e[23]=j,e[24]=k,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==v||e[28]!==S?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[v,S,g]}),e[26]=g,e[27]=v,e[28]=S,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(he,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let _;return e[36]!==E||e[37]!==l?(_=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:E}),e[36]=E,e[37]=l,e[38]=_):_=e[38],_}function Ze(d){const e=T.c(21),{platform:t,seo:r,host:x,path:a,t:s}=d;let i;e[0]!==x||e[1]!==a||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==r||e[6]!==s?(i=t.layout==="search"?o.jsx(Je,{seo:r,host:x,path:a,t:s}):t.layout==="card"?o.jsx(Qe,{seo:r,host:x,path:a,t:s}):t.layout==="chat"?o.jsx(Xe,{seo:r,host:x,path:a,accent:t.color,t:s}):o.jsx(Ye,{seo:r,host:x,path:a,accent:t.color,dark:t.id==="discord",t:s}),e[0]=x,e[1]=a,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=r,e[6]=s,e[7]=i):i=e[7];const n=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==n||e[19]!==l?(c=o.jsxs("div",{children:[l,n]}),e[18]=n,e[19]=l,e[20]=c):c=e[20],c}function et(d){const e=T.c(18),{seo:t,url:r,path:x}=d,a=x===void 0?"/":x,s=Se();let i,n,m;if(e[0]!==t||e[1]!==r){const y=Ve(t);i=y,n=je(y.image,r),m=je(y.favicon,r),e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let p;e[5]!==i||e[6]!==n||e[7]!==m?(p={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==r?(l=We(r),e[9]=r,e[10]=l):l=e[10];const c=l,h=a==="/"?"":a;let u;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(u=qe.map(y=>o.jsx(Ze,{platform:y,seo:f,host:c,path:h,t:s},y.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=u):u=e[15];let v;return e[16]!==u?(v=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:u}),e[16]=u,e[17]=v):v=e[17],v}function Ki(d){const e=T.c(77),{orgSlug:t,virtualMcpId:r,branch:x,decofile:a,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=Se(),c=Fe(a,i,s),h=Ge(r,x);let u;e[0]!==h?(u=He(h),e[0]=h,e[1]=u):u=e[1];const v=!u,y=c?.seoData,b=i.kind==="site"?"site":i.pageKey,[S,j]=M.useState(b),[k,g]=M.useState(null),[N,w]=M.useState(0),[E,_]=M.useState(void 0),{persistSeo:K,persistRawSeo:ie,flush:se,isPending:le,hold:Ne}=Le({orgSlug:t,virtualMcpId:r,branch:x,target:i,resolved:c,meta:s,onSaved:m});let H;e[2]!==x||e[3]!==t||e[4]!==r?(H=Ae({orgSlug:t,virtualMcpId:r,branch:x}),e[2]=x,e[3]=t,e[4]=r,e[5]=H):H=e[5];const re=Me(H)(c?.blockKey??""),[we,Ee]=M.useState(re);(S!==b||we!==re)&&(c&&Ne(c.blockKey),j(b),Ee(re),g(null),_(void 0),w(ot));const V=i.kind==="page",_e=V?c?.rawSeoData:void 0,A=E!==void 0?E:_e,Pe=V?Ke(A)??void 0:void 0,P=k??Pe??y??{},C=c?Oe(P,c):null,z=C&&(!V||ze(A))?Be(C,s):null;let W;e[6]!==s?(W=De(s),e[6]=s,e[7]=W):W=e[7];const ce=W;let R,q;e[8]!==a||e[9]!==P||e[10]!==s||e[11]!==i.kind?(R=i.kind==="page"?$e(a,s)?.seoData??{}:{},q=i.kind==="page"?st(R,P):P,e[8]=a,e[9]=P,e[10]=s,e[11]=i.kind,e[12]=R,e[13]=q):(R=e[12],q=e[13]);const ae=q;let J;e[14]!==K||e[15]!==c||e[16]!==g?(J=F=>{if(!c)return;const ve=F;g(ve),K(ve)},e[14]=K,e[15]=c,e[16]=g,e[17]=J):J=e[17];const ne=J;let Q;e[18]!==g?(Q=()=>g(null),e[18]=g,e[19]=Q):Q=e[19];const me=Q;let X;e[20]!==w?(X=()=>w(tt),e[20]=w,e[21]=X):X=e[21];const de=X;let Y;e[22]!==se||e[23]!==f?(Y=()=>{se(),f?.()},e[22]=se,e[23]=f,e[24]=Y):Y=e[24];const pe=Y,D=i.kind==="page"?i.path:"/";let Z;e[25]!==D||e[26]!==n||e[27]!==i.kind?(Z=i.kind==="page"&&n?it(D,n):n??null,e[25]=D,e[26]=n,e[27]=i.kind,e[28]=Z):Z=e[28];const fe=Z;let ee;e[29]!==c||e[30]!==l||e[31]!==i.kind?(ee=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=c,e[30]=l,e[31]=i.kind,e[32]=ee):ee=e[32];const ue=ee,te=V&&c,xe=i.kind==="site"&&c&&z;let $;e[33]!==pe||e[34]!==l||e[35]!==i.kind||e[36]!==i.pageName?($=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:pe,title:i.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(Te,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(ye,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=pe,e[34]=l,e[35]=i.kind,e[36]=i.pageName,e[37]=$):$=e[37];let I;e[38]!==le?(I=le&&o.jsx(Re,{className:"size-3.5 text-muted-foreground"}),e[38]=le,e[39]=I):I=e[39];let B;e[40]!==p||e[41]!==l||e[42]!==i.kind?(B=i.kind==="page"&&p&&o.jsxs(Ce,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(ye,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=p,e[41]=l,e[42]=i.kind,e[43]=B):B=e[43];let L;e[44]!==I||e[45]!==B?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[I,B]}),e[44]=I,e[45]=B,e[46]=L):L=e[46];let O;e[47]!==$||e[48]!==L?(O=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[$,L]}),e[47]=$,e[48]=L,e[49]=O):O=e[49];let U;e[50]!==C||e[51]!==v||e[52]!==de||e[53]!==me||e[54]!==ce||e[55]!==A||e[56]!==P||e[57]!==ue||e[58]!==N||e[59]!==ne||e[60]!==D||e[61]!==ie||e[62]!==K||e[63]!==ae||e[64]!==fe||e[65]!==c||e[66]!==z||e[67]!==g||e[68]!==_||e[69]!==te||e[70]!==xe||e[71]!==R||e[72]!==l?(U=!c||!te&&!xe?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ue}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(ge,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:te?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Ue,{rawSeo:A,innerSeo:P,defaultResolveType:ce,seoSchema:z,activeResolveType:C,seoTypeOptions:c.seoTypeOptions,formResetKey:N,siteDefaultSeo:R,onPersistRaw:F=>{_(F),ie(F)},onInnerChange:F=>{g(F),K(F)},onClearForm:me,onBumpFormKey:de,asyncRenderAvailable:v})]}):z&&C&&o.jsx(Ie,{schema:z,resolveType:C,value:P,formResetKey:N,onChange:ne})})}),o.jsx(ge,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(et,{seo:ae,url:fe,path:D})})})]}),e[50]=C,e[51]=v,e[52]=de,e[53]=me,e[54]=ce,e[55]=A,e[56]=P,e[57]=ue,e[58]=N,e[59]=ne,e[60]=D,e[61]=ie,e[62]=K,e[63]=ae,e[64]=fe,e[65]=c,e[66]=z,e[67]=g,e[68]=_,e[69]=te,e[70]=xe,e[71]=R,e[72]=l,e[73]=U):U=e[73];let oe;return e[74]!==O||e[75]!==U?(oe=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[O,U]}),e[74]=O,e[75]=U,e[76]=oe):oe=e[76],oe}function tt(d){return d+1}function ot(d){return d+1}function it(d,e){try{return new URL(d,e).href}catch{return e}}function st(d,e){const t=e.__resolveType,r=d.__resolveType;if(typeof t=="string"&&typeof r=="string"&&t!==r)return{...e};const x={...d};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(x[a]=s));return x}export{Ki as SeoEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,j as o}from"./index-LISCRMKT.js";import{V as a}from"./index-Bek871Hp.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,b as J,e as Je,j as n,B as z,t as qe,o as st,cV as ae,ag as vt,a as Be,J as Ut,U as kt,K as Ve,cW as Jt,cX as Gt,ay as Ge,l as ut,be as Vt,z as mt,r as Q,ae as Wt,af as te,cY as Yt,w as Tt,x as Nt,v as _t,D as Pt,d as At,a4 as ct,R as Ct,m as Me,C as at,aX as Et,cZ as Qt,b1 as Xt,b8 as ft,H as Zt,c_ as en,aY as tn,y as nn,c$ as sn,d0 as on,d1 as an,d2 as rn,d3 as ln,a5 as cn,u as dn,a6 as un,d4 as mn,d5 as fn,k as Ot,d6 as ht,d7 as hn,O as gn,b3 as gt,d8 as pn,a0 as yn}from"./index-LISCRMKT.js";import{t as It}from"./Building02-BejNykWR.js";import{i as bn,s as ee}from"./UserSquare-D7fSnIn3.js";import{u as xn}from"./use-deployment-admin-Do6VU3ed.js";import{a as Sn}from"./admin-fetch-BhTJlAsX.js";import{ay as wn,V as jn,I as it,a9 as vn,K as kn,az as Tn,n as pt,g as Nn,q as _n,l as Pn,aA as An,m as Cn}from"./agent-icon-Co7E9kYl.js";import{s as En}from"./XClose-Bvl4KGPV.js";import{a as On,u as In}from"./use-project-scope-LiKIXaiK.js";import{u as $t,a as $n}from"./use-panel-navigate-CnrhnUVG.js";import{i as se}from"./CheckCircle-CiBrtkwP.js";import{i as yt}from"./Monitor01-CMcPb3p-.js";import{i as Fe}from"./ZoomOut-9x8WuC5l.js";import{u as Ln}from"./use-clock-tick-BXkjZk4h.js";import{s as bt}from"./Plus-DZ8OV5bq.js";import{a as Dn}from"./Tool01-CkZTily1.js";import{b as ne,a as Ke,f as Rn,e as zn,c as Fn,C as qn}from"./command-lP5P8rqX.js";import{I as Bn}from"./integration-icon-msZhQ6E3.js";import{P as Mn}from"./project-icon-As9MoCET.js";import{a as Kn,m as Hn}from"./use-mcp-client-0e8NRgfT.js";import{u as Un,a as Jn,n as Gn}from"./new-project-dialog-BrtI6GgZ.js";import{S as Vn,u as Wn}from"./thread-intent-ptqgtSKo.js";import{R as Yn}from"./required-auth-layout-BwkU_8aI.js";import{A as Qn}from"./autosend-BYljpA5c.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-CCN9I68_.js";import{u as ns}from"./use-org-sso-DVHlBcmx.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const P=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),C=await P.json();if(!P.ok||!C.success)throw new Error(C.error??i("common.autoDomainJoinScreen.joinError"));return C},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=P=>{window.location.href=`/${P.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=P=>{qe.error(P instanceof Error?P.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S),g=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let p;e[14]!==o||e[15]!==i?(p=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=p):p=e[16];let h;e[17]!==p?(h=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[17]=p,e[18]=h):h=e[18];let u;e[19]!==r||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=u):u=e[21];let w;e[22]!==u?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=w):w=e[23];let y;e[24]!==h||e[25]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[h,w]}),e[24]=h,e[25]=w,e[26]=y):y=e[26];let x;e[27]!==d?(x=()=>d.mutate(),e[27]=d,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(j=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let b;e[33]!==d.isPending||e[34]!==x||e[35]!==j?(b=n.jsx(z,{onClick:x,disabled:d.isPending,children:j}),e[33]=d.isPending,e[34]=x,e[35]=j,e[36]=b):b=e[36];const T=d.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let k;e[39]!==d.isPending||e[40]!==v?(k=n.jsx(z,{variant:"ghost",onClick:g,disabled:T,children:v}),e[39]=d.isPending,e[40]=v,e[41]=k):k=e[41];let _;e[42]!==b||e[43]!==k?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[b,k]}),e[42]=b,e[43]=k,e[44]=_):_=e[44];let N;return e[45]!==y||e[46]!==_||e[47]!==l?(N=n.jsxs(ae,{children:[l,y,_]}),e[45]=y,e[46]=_,e[47]=l,e[48]=N):N=e[48],N}function os(){window.location.href="/"}function xt(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=J(),{isAdmin:c}=xn(),m=is,f=r==="not-found",S=f?bn:vt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const g=d;let l;e[3]!==f||e[4]!==s||e[5]!==o||e[6]!==i?(l=f?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const p=l;let h;e[8]!==S?(h=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(S,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=S,e[9]=h):h=e[9];let u;e[10]!==g?(u=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[10]=g,e[11]=u):u=e[11];let w;e[12]!==p?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=w):w=e[13];let y;e[14]!==u||e[15]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[u,w]}),e[14]=u,e[15]=w,e[16]=y):y=e[16];let x;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(x=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(as,{orgId:a,orgSlug:o}),n.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):n.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=x):x=e[21];let j;return e[22]!==h||e[23]!==y||e[24]!==x?(j=n.jsxs(ae,{children:[h,y,x]}),e[22]=h,e[23]=y,e[24]=x,e[25]=j):j=e[25],j}function is(){window.location.href="/"}function as(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=J(),{data:r}=Be.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Sn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==s?(f=u=>{qe.error(u instanceof Error?u.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S);let g;e[11]!==d?(g=()=>d.mutate(),e[11]=d,e[12]=g):g=e[12];const l=!i||d.isPending;let p;e[13]!==d.isPending||e[14]!==s?(p=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=p):p=e[15];let h;return e[16]!==g||e[17]!==l||e[18]!==p?(h=n.jsx(z,{onClick:g,disabled:l,children:p}),e[16]=g,e[17]=l,e[18]=p,e[19]=h):h=e[19],h}function rs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=J();let c;e[0]!==o?(c=async()=>{const A=await Be.organization.acceptInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Ut(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let S;e[6]!==c||e[7]!==m||e[8]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=S):S=e[9];const d=Je(S);let g;e[10]!==o?(g=async()=>{const A=await Be.organization.rejectInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[10]=o,e[11]=g):g=e[11];let l,p;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},p=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=p):(l=e[13],p=e[14]);let h;e[15]!==g||e[16]!==l||e[17]!==p?(h={mutationFn:g,onSuccess:l,onError:p},e[15]=g,e[16]=l,e[17]=p,e[18]=h):h=e[18];const u=Je(h),w=d.isPending||u.isPending;let y;e[19]!==r||e[20]!==a?(y=r?n.jsx(st,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=y):y=e[21];let x;e[22]!==a||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=x):x=e[24];let j;e[25]!==x?(j=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=j):j=e[26];let b;e[27]!==i?(b=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=b):b=e[28];let T;e[29]!==b?(T=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[29]=b,e[30]=T):T=e[30];let v;e[31]!==j||e[32]!==T?(v=n.jsxs("div",{className:"space-y-2",children:[j,T]}),e[31]=j,e[32]=T,e[33]=v):v=e[33];let k;e[34]!==d?(k=()=>d.mutate(),e[34]=d,e[35]=k):k=e[35];let _;e[36]!==d.isPending||e[37]!==i?(_=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=_):_=e[38];let N;e[39]!==w||e[40]!==k||e[41]!==_?(N=n.jsx(z,{onClick:k,disabled:w,children:_}),e[39]=w,e[40]=k,e[41]=_,e[42]=N):N=e[42];let P;e[43]!==u?(P=()=>u.mutate(),e[43]=u,e[44]=P):P=e[44];let C;e[45]!==u.isPending||e[46]!==i?(C=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=C):C=e[47];let I;e[48]!==w||e[49]!==P||e[50]!==C?(I=n.jsx(z,{variant:"ghost",onClick:P,disabled:w,children:C}),e[48]=w,e[49]=P,e[50]=C,e[51]=I):I=e[51];let O;e[52]!==N||e[53]!==I?(O=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,I]}),e[52]=N,e[53]=I,e[54]=O):O=e[54];let D;return e[55]!==v||e[56]!==O||e[57]!==y?(D=n.jsxs(ae,{children:[y,v,O]}),e[55]=v,e[56]=O,e[57]=y,e[58]=D):D=e[58],D}function ls(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=J();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(st,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let f;e[10]!==m?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let S;e[12]!==c||e[13]!==f?(S=n.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=S):S=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let g;e[17]!==d?(g=n.jsx(z,{variant:"ghost",onClick:cs,children:d}),e[17]=d,e[18]=g):g=e[18];let l;return e[19]!==r||e[20]!==S||e[21]!==g?(l=n.jsxs(ae,{children:[r,S,g]}),e[19]=r,e[20]=S,e[21]=g,e[22]=l):l=e[22],l}function cs(){window.location.href="/"}function ds(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),P=await N.json();if(!N.ok||!P.success)throw new Error(P.error??"Failed to request access");return P},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=ms,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let S;e[5]!==c||e[6]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=S):S=e[7];const d=Je(S);let g;e[8]!==s||e[9]!==o?(g=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=g):g=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let p;e[14]!==l?(p=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let u;e[19]!==h?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=u):u=e[20];let w;e[21]!==p||e[22]!==u?(w=n.jsxs("div",{className:"space-y-2",children:[p,u]}),e[21]=p,e[22]=u,e[23]=w):w=e[23];let y;e[24]!==d?(y=()=>d.mutate(),e[24]=d,e[25]=y):y=e[25];let x;e[26]!==d.isPending||e[27]!==i?(x=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==y||e[31]!==x?(j=n.jsx(z,{onClick:y,disabled:d.isPending,children:x}),e[29]=d.isPending,e[30]=y,e[31]=x,e[32]=j):j=e[32];const b=d.isPending;let T;e[33]!==i?(T=i("common.goHome"),e[33]=i,e[34]=T):T=e[34];let v;e[35]!==d.isPending||e[36]!==T?(v=n.jsx(z,{variant:"ghost",onClick:us,disabled:b,children:T}),e[35]=d.isPending,e[36]=T,e[37]=v):v=e[37];let k;e[38]!==j||e[39]!==v?(k=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=k):k=e[40];let _;return e[41]!==w||e[42]!==k||e[43]!==g?(_=n.jsxs(ae,{children:[g,w,k]}),e[41]=w,e[42]=k,e[43]=g,e[44]=_):_=e[44],_}function us(){window.location.href="/"}function ms(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function fs(t){const e=R.c(7);let o;e[0]!==t?(o=Ve.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],kt(s)}function hs({orgSlug:t}){const{data:e}=fs(t);if(e.status!=="member"){Jt()?.org===t&&Gt();const o=localStorage.getItem(Ge.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ge.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(rs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(ds,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ls,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:m,footerLeading:f,actions:S,onDismiss:d,tone:g}=t,l=g===void 0?"neutral":g,p=f||S;let h;e[0]!==l?(h=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=h):h=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(En,{size:14}),e[2]=u):u=e[2];let w;e[3]!==a||e[4]!==d?(w=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:u}),e[3]=a,e[4]=d,e[5]=w):w=e[5];const y=c&&"flex items-start gap-3",x=m&&"pb-3";let j;e[6]!==y||e[7]!==x?(j=ut("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=j):j=e[8];let b;e[9]!==c?(b=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=b):b=e[10];let T;e[11]!==s?(T=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=T):T=e[12];let v;e[13]!==r?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=v):v=e[14];let k;e[15]!==i?(k=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=k):k=e[16];let _;e[17]!==v||e[18]!==k||e[19]!==T?(_=n.jsxs("div",{children:[T,v,k]}),e[17]=v,e[18]=k,e[19]=T,e[20]=_):_=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let P;e[23]!==_||e[24]!==N?(P=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,N]}),e[23]=_,e[24]=N,e[25]=P):P=e[25];let C;e[26]!==P||e[27]!==j||e[28]!==b?(C=n.jsxs("div",{className:j,children:[b,P]}),e[26]=P,e[27]=j,e[28]=b,e[29]=C):C=e[29];let I;e[30]!==S||e[31]!==f||e[32]!==p||e[33]!==l?(I=p&&n.jsxs("div",{className:ut("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=f,e[32]=p,e[33]=l,e[34]=I):I=e[34];let O;return e[35]!==o||e[36]!==C||e[37]!==I||e[38]!==h||e[39]!==w||e[40]!==l?(O=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,w,C,I]}),e[35]=o,e[36]=C,e[37]=I,e[38]=h,e[39]=w,e[40]=l,e[41]=O):O=e[41],O}const gs={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 Dt(t){return`[data-tour="${gs[t]}"]`}const ps=[{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 ps.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function bs(t,e){return ys(e).map(o=>({element:Dt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const xs=Dt("switcher"),Ss=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ws(t,e){return bs(t,e).filter(o=>typeof o.element=="string"&&Rt(o.element))}function js(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function vs(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ks(t,e){if(He)return;He=!0;let o=0;const a=()=>{if(!Rt(xs)&&o++<Ss){requestAnimationFrame(a);return}const s=ws(t,e);if(s.length===0){He=!1;return}vs().then(r=>{r(js(t,s)).drive()}).catch(()=>{He=!1})};a()}function Ts(t){return t!=="off"}function ni(t){if(!t.hasSource)return[];const e=["site-editor"];return Ts(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function si(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const Ft=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:yt,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:it,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,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:ee,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:yt,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:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Fe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Fe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Fe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:se,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:se,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,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:it,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:se,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:mt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Fe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:se,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,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:it,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:ee,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],nt="studio.release-feed.v1",rt=new Set;let oe="",ie={},lt=!1;function Ns(){if(lt)return oe||"{}";try{return localStorage.getItem(nt)??"{}"}catch{return oe||"{}"}}function qt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ns();return t!==oe&&(oe=t,ie=qt(t)),ie}function _s(t){rt.add(t);const e=o=>{if(!(o.key!==nt&&o.key!==null)){try{const a=localStorage.getItem(nt)??"{}",r={...qt(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function Ps(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(nt,oe),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function As(){const t=R.c(7),e=Q.useSyncExternalStore(_s,St,St);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const a=o,s=Cs;let r;t[2]!==e?(r=Ft.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Cs(t){ie[t]||Ps({...ie,[t]:{seenAt:new Date().toISOString()}})}const Es=720*60*60*1e3,Os=10080*60*1e3;function Is(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function $s(t){const e=Ft[0];if(!e)return null;const o=Is(e.date),a=t-o;return a<0||a>Es?null:e}function Ls(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 Ds(t,e){const o=Ls(t);return o===null?!1:e-o>=Os}function Rs(){const t=R.c(46),e=J(),o=On(),a=Wt(),s=$t(),r=!!o,i=a===te.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&zt(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Be.useSession(),{isSeen:S,markSeen:d}=As(),g=Ln(6e4);let l,p,h;if(t[3]!==S||t[4]!==g||t[5]!==f?.user?.createdAt){h=Symbol.for("react.early_return_sentinel");e:{if(l=$s(g),!l){h=null;break e}if(!Ds(f?.user?.createdAt,g)){h=null;break e}p=S(l.id)}t[3]=S,t[4]=g,t[5]=f?.user?.createdAt,t[6]=l,t[7]=p,t[8]=h}else l=t[6],p=t[7],h=t[8];if(h!==Symbol.for("react.early_return_sentinel"))return h;if(p)return null;let u;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(u=()=>{d(l.id),ks(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=u):u=t[15];const w=u;let y;t[16]!==e?(y=e("announcements.release.ariaLabel"),t[16]=e,t[17]=y):y=t[17];let x;t[18]!==e?(x=e("announcements.release.dismiss"),t[18]=e,t[19]=x):x=t[19];const j=l.eyebrow,b=l.title;let T;t[20]!==l.id||t[21]!==d?(T=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=T):T=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=v):v=t[27];let k;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==w?(k=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(z,{size:"sm",onClick:w,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=w,t[32]=k):k=t[32];let _;t[33]!==l.bullets?(_=l.bullets.map(zs),t[33]=l.bullets,t[34]=_):_=t[34];let N;t[35]!==_?(N=n.jsx("ul",{className:"flex flex-col gap-3",children:_}),t[35]=_,t[36]=N):N=t[36];let P;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==k||t[40]!==N||t[41]!==y||t[42]!==x||t[43]!==T||t[44]!==v?(P=n.jsx(Lt,{ariaLabel:y,dismissLabel:x,eyebrow:j,title:b,onDismiss:T,footerLeading:v,actions:k,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=k,t[40]=N,t[41]=y,t[42]=x,t[43]=T,t[44]=v,t[45]=P):P=t[45],P}function zs(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Fs(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=J();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Tt,{children:n.jsx(Nt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Yt.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(_t,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==o||e[9]!==m?(f=n.jsx(Pt,{open:o,onOpenChange:a,children:m}),e[7]=a,e[8]=o,e[9]=m,e[10]=f):f=e[10],f}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bs)})]},t.label)}function Bs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const wt=8;function Ks(t){const{org:e}=ct(),o=Kn({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:a}=Me({queryKey:Ve.globalSearch(e.id,t,wt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:wt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Hs(t){const e=R.c(195),{open:o,onOpenChange:a}=t,s=J(),r=At(),{org:i}=ct(),{projects:c,hasProjects:m}=In(),[f,S]=Q.useState(""),d=Q.useDeferredValue(f),g=Ks(d);let l;e[0]!==a?(l=()=>{a(!1),S("")},e[0]=a,e[1]=l):l=e[1];const p=l;let h;e[2]!==p?(h=(B,M)=>{at("command_palette_used",{kind:M}),B(),p()},e[2]=p,e[3]=h):h=e[3];const u=h;let w;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(w=B=>{if(B.type==="connection"){if(!B.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:B.slug}});return}if(B.type==="task"){r({to:te.tasks,params:{org:i.slug,taskKey:B.key??void 0}});return}const M=Et(i.id).id;Qt(r,Xt({org:i.slug,agentId:B.virtual_mcp_id??M,superAgentId:M}),{search:()=>({thread:B.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=w):w=e[7];const y=w;let x;e[8]!==f?(x=[f],e[8]=f,e[9]=x):x=e[9];const j=x;let b,T,v,k,_,N,P,C,I,O,D,A,F;if(e[10]!==p||e[11]!==u||e[12]!==m||e[13]!==g||e[14]!==r||e[15]!==a||e[16]!==o||e[17]!==y||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==f){const B=g.filter(Js),M=g.filter(Us);let G;e[36]!==i.slug?(G={org:i.slug},e[36]=i.slug,e[37]=G):G=e[37];const $=G;let V;e[38]!==s?(V=s("sidebar.navDestinations.home"),e[38]=s,e[39]=V):V=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=W):W=e[40];let H;e[41]!==$||e[42]!==V?(H={key:"home",label:V,icon:W,to:te.home,params:$},e[41]=$,e[42]=V,e[43]=H):H=e[43];let U;e[44]!==s?(U=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=U):U=e[45];let Z;e[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(_n,{"aria-hidden":"true"}),e[46]=Z):Z=e[46];let Y;e[47]!==$||e[48]!==U?(Y={key:"reports",label:U,icon:Z,to:te.reports,params:$},e[47]=$,e[48]=U,e[49]=Y):Y=e[49];let L;e[50]!==s?(L=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=L):L=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(pt,{"aria-hidden":"true"}),e[52]=K):K=e[52];let re;e[53]!==i.slug?(re={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=re):re=e[54];let le;e[55]!==L||e[56]!==re?(le={key:"tasks",label:L,icon:K,to:te.tasks,params:re},e[55]=L,e[56]=re,e[57]=le):le=e[57];let ce;e[58]!==s?(ce=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ce):ce=e[59];let We;e[60]===Symbol.for("react.memo_cache_sentinel")?(We=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=We):We=e[60];let de;e[61]!==$||e[62]!==ce?(de={key:"library",label:ce,icon:We,to:te.library,params:$},e[61]=$,e[62]=ce,e[63]=de):de=e[63];let ue;e[64]!==s?(ue=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=ue):ue=e[65];let Ye;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(An,{"aria-hidden":"true"}),e[66]=Ye):Ye=e[66];let me;e[67]!==$||e[68]!==ue?(me={key:"discover",label:ue,icon:Ye,to:te.discover,params:$},e[67]=$,e[68]=ue,e[69]=me):me=e[69];let Qe;e[70]!==H||e[71]!==Y||e[72]!==le||e[73]!==de||e[74]!==me?(Qe=[H,Y,le,de,me],e[70]=H,e[71]=Y,e[72]=le,e[73]=de,e[74]=me,e[75]=Qe):Qe=e[75];const ot=Qe;T=Rn,k=o,e[76]!==p||e[77]!==a?(_=E=>E?a(!0):p(),e[76]=p,e[77]=a,e[78]=_):_=e[78],e[79]!==s?(N=s("commandPalette.title"),e[79]=s,e[80]=N):N=e[80],e[81]!==s?(P=s("commandPalette.description"),e[81]=s,e[82]=P):P=e[82];let fe;e[83]!==s?(fe=s("commandPalette.placeholder"),e[83]=s,e[84]=fe):fe=e[84];let he;e[85]!==s?(he=s("commandPalette.placeholder"),e[85]=s,e[86]=he):he=e[86],e[87]!==fe||e[88]!==he||e[89]!==f?(C=n.jsx(zn,{placeholder:fe,"aria-label":he,value:f,onValueChange:S}),e[87]=fe,e[88]=he,e[89]=f,e[90]=C):C=e[90],b=Fn;let ge;e[91]!==s?(ge=s("commandPalette.empty"),e[91]=s,e[92]=ge):ge=e[92],e[93]!==ge?(I=n.jsx(qn,{children:ge}),e[93]=ge,e[94]=I):I=e[94];let pe;e[95]!==s?(pe=s("commandPalette.goTo"),e[95]=s,e[96]=pe):pe=e[96];let ye;e[97]!==ot||e[98]!==u||e[99]!==r?(ye=ot.map(E=>n.jsxs(ne,{onSelect:()=>u(()=>r({to:E.to,params:E.params}),"destination"),children:[E.icon,n.jsx("span",{children:E.label})]},E.key)),e[97]=ot,e[98]=u,e[99]=r,e[100]=ye):ye=e[100],e[101]!==pe||e[102]!==ye?(O=n.jsx(Ke,{heading:pe,children:ye}),e[101]=pe,e[102]=ye,e[103]=O):O=e[103],e[104]!==u||e[105]!==m||e[106]!==r||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Ke,{heading:s("commandPalette.projects"),children:c.map(E=>n.jsxs(ne,{value:`project ${E.title}`,onSelect:()=>u(()=>r({to:te.projects,params:{org:i.slug,agentId:E.id}}),"project"),children:[n.jsx(Mn,{icon:E.icon,name:E.title,"aria-hidden":"true"}),n.jsx("span",{children:E.title})]},E.id))}),e[104]=u,e[105]=m,e[106]=r,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let be;e[111]!==s?(be=s("commandPalette.actions"),e[111]=s,e[112]=be):be=e[112];let xe;e[113]!==s?(xe=s("commandPalette.newProject"),e[113]=s,e[114]=xe):xe=e[114];let Se;e[115]!==u||e[116]!==r||e[117]!==$?(Se=()=>u(()=>r({to:te.home,params:$}),"new_project"),e[115]=u,e[116]=r,e[117]=$,e[118]=Se):Se=e[118];let Xe;e[119]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(bt,{"aria-hidden":"true"}),e[119]=Xe):Xe=e[119];let we;e[120]!==s?(we=s("commandPalette.newProject"),e[120]=s,e[121]=we):we=e[121];let je;e[122]!==we?(je=n.jsx("span",{children:we}),e[122]=we,e[123]=je):je=e[123];let ve;e[124]!==xe||e[125]!==Se||e[126]!==je?(ve=n.jsxs(ne,{value:xe,onSelect:Se,children:[Xe,je]}),e[124]=xe,e[125]=Se,e[126]=je,e[127]=ve):ve=e[127];let ke;e[128]!==s?(ke=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=ke):ke=e[129];let Te;e[130]!==u||e[131]!==r||e[132]!==$?(Te=()=>u(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[130]=u,e[131]=r,e[132]=$,e[133]=Te):Te=e[133];let Ze;e[134]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=Ze):Ze=e[134];let Ne;e[135]!==s?(Ne=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Ne):Ne=e[136];let _e;e[137]!==Ne?(_e=n.jsx("span",{children:Ne}),e[137]=Ne,e[138]=_e):_e=e[138];let Pe;e[139]!==ke||e[140]!==Te||e[141]!==_e?(Pe=n.jsxs(ne,{value:ke,onSelect:Te,children:[Ze,_e]}),e[139]=ke,e[140]=Te,e[141]=_e,e[142]=Pe):Pe=e[142];let Ae;e[143]!==s?(Ae=s("commandPalette.addConnection"),e[143]=s,e[144]=Ae):Ae=e[144];let Ce;e[145]!==u||e[146]!==r||e[147]!==$?(Ce=()=>u(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=r,e[147]=$,e[148]=Ce):Ce=e[148];let et;e[149]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(bt,{"aria-hidden":"true"}),e[149]=et):et=e[149];let Ee;e[150]!==s?(Ee=s("commandPalette.addConnection"),e[150]=s,e[151]=Ee):Ee=e[151];let Oe;e[152]!==Ee?(Oe=n.jsx("span",{children:Ee}),e[152]=Ee,e[153]=Oe):Oe=e[153];let Ie;e[154]!==Ae||e[155]!==Ce||e[156]!==Oe?(Ie=n.jsxs(ne,{value:Ae,onSelect:Ce,children:[et,Oe]}),e[154]=Ae,e[155]=Ce,e[156]=Oe,e[157]=Ie):Ie=e[157];let $e;e[158]!==s?($e=s("commandPalette.settings"),e[158]=s,e[159]=$e):$e=e[159];let Le;e[160]!==u||e[161]!==r||e[162]!==$?(Le=()=>u(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[160]=u,e[161]=r,e[162]=$,e[163]=Le):Le=e[163];let tt;e[164]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=tt):tt=e[164];let De;e[165]!==s?(De=s("commandPalette.settings"),e[165]=s,e[166]=De):De=e[166];let Re;e[167]!==De?(Re=n.jsx("span",{children:De}),e[167]=De,e[168]=Re):Re=e[168];let ze;e[169]!==$e||e[170]!==Le||e[171]!==Re?(ze=n.jsxs(ne,{value:$e,onSelect:Le,children:[tt,Re]}),e[169]=$e,e[170]=Le,e[171]=Re,e[172]=ze):ze=e[172],e[173]!==be||e[174]!==ve||e[175]!==Pe||e[176]!==Ie||e[177]!==ze?(A=n.jsxs(Ke,{heading:be,children:[ve,Pe,Ie,ze]}),e[173]=be,e[174]=ve,e[175]=Pe,e[176]=Ie,e[177]=ze,e[178]=A):A=e[178],F=B.length>0&&n.jsx(Ke,{heading:s("commandPalette.connections"),children:B.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),"connection"),children:[n.jsx(Bn,{icon:E.icon,name:E.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title})]},`connection:${E.id}`))}),v=M.length>0&&n.jsx(Ke,{heading:s("commandPalette.results"),children:M.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),E.type),children:[E.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(pt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title}),E.type==="task"&&E.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:E.key})]},`${E.type}:${E.id}`))}),e[10]=p,e[11]=u,e[12]=m,e[13]=g,e[14]=r,e[15]=a,e[16]=o,e[17]=y,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=f,e[23]=b,e[24]=T,e[25]=v,e[26]=k,e[27]=_,e[28]=N,e[29]=P,e[30]=C,e[31]=I,e[32]=O,e[33]=D,e[34]=A,e[35]=F}else b=e[23],T=e[24],v=e[25],k=e[26],_=e[27],N=e[28],P=e[29],C=e[30],I=e[31],O=e[32],D=e[33],A=e[34],F=e[35];let q;e[179]!==b||e[180]!==v||e[181]!==I||e[182]!==O||e[183]!==D||e[184]!==A||e[185]!==F?(q=n.jsxs(b,{children:[I,O,D,A,F,v]}),e[179]=b,e[180]=v,e[181]=I,e[182]=O,e[183]=D,e[184]=A,e[185]=F,e[186]=q):q=e[186];let X;return e[187]!==T||e[188]!==k||e[189]!==_||e[190]!==N||e[191]!==P||e[192]!==C||e[193]!==q?(X=n.jsxs(T,{open:k,onOpenChange:_,title:N,description:P,children:[C,q]}),e[187]=T,e[188]=k,e[189]=_,e[190]=N,e[191]=P,e[192]=C,e[193]=q,e[194]=X):X=e[194],X}function Us(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ue=new Vn(!1);function Gs(){Ue.set(!0)}function Vs(){Ue.set(!1)}function Ws(){const t=R.c(2),e=Q.useSyncExternalStore(Ue.subscribe,Ue.get);let o;return t[0]!==e?(o=[e,Ue.set],t[0]=e,t[1]=o):o=t[1],o}const Ys=300*1e3,Qs=2;function Xs(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ve.appVersionCheck(),queryFn:no,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=Me(o),[r,i]=Q.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=Q.useState(c);s!==r&&(i(s),f(k=>Xs(k,a,"4.541.0")));const[S,d]=Q.useState(null);if(!Zs(m,S))return null;let g;t[2]!==e?(g=e("announcements.version.ariaLabel"),t[2]=e,t[3]=g):g=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let p;t[6]!==e?(p=e("announcements.version.eyebrow"),t[6]=e,t[7]=p):p=t[7];let h;t[8]!==e?(h=e("announcements.version.title"),t[8]=e,t[9]=h):h=t[9];let u;t[10]!==e?(u=e("announcements.version.description"),t[10]=e,t[11]=u):u=t[11];let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(ft,{size:16}),t[12]=w):w=t[12];let y;t[13]!==m.version?(y=()=>d(m.version),t[13]=m.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.541.0"}),t[15]=e,t[16]=x):x=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let b;t[19]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ft,{size:14}),t[19]=b):b=t[19];let T;t[20]!==j?(T=n.jsxs(z,{size:"sm",onClick:to,children:[j,b]}),t[20]=j,t[21]=T):T=t[21];let v;return t[22]!==T||t[23]!==g||t[24]!==l||t[25]!==p||t[26]!==h||t[27]!==u||t[28]!==y||t[29]!==x?(v=n.jsx(Lt,{ariaLabel:g,dismissLabel:l,eyebrow:p,title:h,description:u,icon:w,tone:"system",onDismiss:y,footerLeading:x,actions:T}),t[22]=T,t[23]=g,t[24]=l,t[25]=p,t[26]=h,t[27]=u,t[28]=y,t[29]=x,t[30]=v):v=t[30],v}function to(){return window.location.reload()}async function no(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>so(Ge.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=J(),[o,a]=Zt(),{data:s,isPending:r}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<oo,S=en()==="pt-BR",d=!r&&!!c&&f&&S&&o.language==="en"&&!jt(c).has(),[g,l]=Q.useState(!1),[p,h]=Q.useState(!1);!g&&!r&&(l(!0),d&&c&&(jt(c).mark(),a(ro),h(!0),at("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=X=>{at("pt_br_auto_switch_closed",{action:X}),h(!1)},t[0]=u):u=t[0];const w=u;let y;t[1]!==a?(y=()=>{a(ao),w("switch-back")},t[1]=a,t[2]=y):y=t[2];const x=y;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=X=>!X&&w("dismiss"),t[3]=j):j=t[3];let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=b):b=t[4];let T;t[5]!==e?(T=e("announcements.ptBr.title"),t[5]=e,t[6]=T):T=t[6];let v;t[7]!==T?(v=n.jsx(Nt,{children:T}),t[7]=T,t[8]=v):v=t[8];let k;t[9]!==e?(k=e("announcements.ptBr.description"),t[9]=e,t[10]=k):k=t[10];let _;t[11]!==k?(_=n.jsx(tn,{children:k}),t[11]=k,t[12]=_):_=t[12];let N;t[13]!==v||t[14]!==_?(N=n.jsxs(Tt,{children:[v,_]}),t[13]=v,t[14]=_,t[15]=N):N=t[15];let P;t[16]!==e?(P=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=P):P=t[17];let C;t[18]!==x||t[19]!==P?(C=n.jsx(z,{variant:"outline",onClick:x,children:P}),t[18]=x,t[19]=P,t[20]=C):C=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>w("ok"),t[21]=I):I=t[21];let O;t[22]!==e?(O=e("announcements.ptBr.ok"),t[22]=e,t[23]=O):O=t[23];let D;t[24]!==O?(D=n.jsx(z,{onClick:I,children:O}),t[24]=O,t[25]=D):D=t[25];let A;t[26]!==C||t[27]!==D?(A=n.jsxs(nn,{children:[C,D]}),t[26]=C,t[27]=D,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=n.jsxs(_t,{className:"sm:max-w-md",children:[b,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let q;return t[32]!==p||t[33]!==F?(q=n.jsx(Pt,{open:p,onOpenChange:j,children:F}),t[32]=p,t[33]=F,t[34]=q):q=t[34],q}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=sn(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;on(o.id,{name:o.name??void 0,slug:o.slug??void 0}),an();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(co,{}),e[0]=a):a=e[0],a}function mo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(o??m)!==m;let d,g;return r?.panel?g=r.panel:r?.newThread&&!S&&rn(e.tabId)?(g=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(g=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!S&&e.tabId&&!ln(e.tabId)&&(g=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:g,search:c}}const Bt="studio:thread-layout:v4",fo=50;function Mt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ho(t,e,o,a=fo){const s=t.filter(([r])=>r!==e);for(s.push([e,Mt(o)]);s.length>a;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(Bt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Kt(t){try{sessionStorage.setItem(Bt,JSON.stringify(t))}catch{}}function go(t,e){t&&Kt(ho(dt(),t,e))}function po(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Mt(e[1]):null}function oi(t){if(!t)return;const e=dt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&Kt(o)}function Ht(t){return{queryKey:Ve.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ii(t){const e=R.c(10);let o;e[0]!==t?(o=Ht(t),e[0]=t,e[1]=o):o=e[1];const a=Me(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=bo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let S;e[3]!==r?(S=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=S):S=e[4];let d;e[5]!==S?(d=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=d):d=e[6];let g;e[7]!==s||e[8]!==a||e[9]!==r?(g=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=g):g=e[10];let l;e[11]!==g?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[11]=g,e[12]=l):l=e[12];let p;e[13]!==d||e[14]!==l?(p=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let u;e[18]!==c||e[19]!==h?(u=n.jsx(z,{onClick:c,children:h}),e[18]=c,e[19]=h,e[20]=u):u=e[20];let w;e[21]!==r?(w=r("common.goBack"),e[21]=r,e[22]=w):w=e[22];let y;e[23]!==w?(y=n.jsx(z,{variant:"ghost",onClick:m,children:w}),e[23]=w,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==u?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,y]}),e[25]=y,e[26]=u,e[27]=x):x=e[27];let j;return e[28]!==x||e[29]!==p?(j=n.jsxs(ae,{children:[f,p,x]}),e[28]=x,e[29]=p,e[30]=j):j=e[30],j}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(f=o.ctaUrl&&o.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=f):f=e[10];const S=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let g;e[13]!==S||e[14]!==d?(g=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:d})}),e[13]=S,e[14]=d,e[15]=g):g=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let p;e[18]!==l?(p=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=p):p=e[19];let h;e[20]!==p||e[21]!==f||e[22]!==g?(h=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,g,p]}),e[20]=p,e[21]=f,e[22]=g,e[23]=h):h=e[23];let u;return e[24]!==h||e[25]!==m?(u=n.jsxs(ae,{children:[r,m,h]}),e[24]=h,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let o;e[0]!==t?(o=Ve.orgNotice(t??""),e[0]=t,e[1]=o):o=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 s=!!t;let r;return e[4]!==o||e[5]!==a||e[6]!==s?(r={queryKey:o,queryFn:a,enabled:s,staleTime:6e4},e[4]=o,e[5]=a,e[6]=s,e[7]=r):r=e[7],Me(r)}const wo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function vo(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx(yn,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function ko(){const t=At(),e=Wn(),{org:o}=ct(),a=dn({strict:!1}),s=$t(),{openPanel:r,closePanel:i}=$n(),c=Xn(),m=Zn(),f=es(),S=ts(),d=(h,u=!0)=>t({to:".",search:h,replace:u}),g=()=>d(h=>({...h,sidepanel:!0})),l=(h,u,w)=>{const y=!!m&&m===h;m&&!y&&go(m,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const x=y?null:po(h),j=Et(o.id).id,b=mo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:u,decopilotId:j,savedLayout:x,opts:w,autosendValue:Qn});return S(h,()=>b.search,{virtualMcpId:u,view:{tabId:b.tabId}})};return{openSidePanel:g,setTaskId:l,createNewTask:async(h,u,w)=>{const y=crypto.randomUUID(),x=h??f;try{await e?.create({id:y,virtual_mcp_id:x,...u?{branch:u}:{}})}catch{}l(y,x,{...w,newThread:!0})},openTab:r,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ot(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Po(){const t=R.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=un(e)?.params.org,[s,r]=Q.useState(!1),[i,c]=Ws(),[m,f]=Un(),S=mn(),d=No(),g=a??"";let l;t[1]!==g?(l=Ht(g),t[1]=g,t[2]=l):l=t[2];const p=!!a&&d;let h;t[3]!==l||t[4]!==p?(h={...l,enabled:p},t[3]=l,t[4]=p,t[5]=h):h=t[5],Me(h);const{data:u}=Be.useSession(),w=u?.user?.id;let y,x;t[6]!==S?(y=()=>{const L=K=>{if(gt(K)&&K.code==="KeyK"){K.preventDefault(),Gs();return}if(K.key==="?"&&!pn(K.target)){K.preventDefault(),r(!0);return}gt(K)&&K.code==="BracketLeft"&&S.history.canGoBack()&&(K.preventDefault(),S.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[S],t[6]=S,t[7]=y,t[8]=x):(y=t[7],x=t[8]),Q.useEffect(y,x);let j;t[9]!==a||t[10]!==w?(j=fn(a,w),t[9]=a,t[10]=w,t[11]=j):j=t[11];const{data:b}=kt(j),T=b?.id,v=b?.slug,{data:k}=ns(T,v),_=!!k?.ssoRequired&&!k.authenticated,{data:N}=So(v);let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P={select:Ao},t[12]=P):P=t[12];const C=Ot(P),I=N?.severity==="block"&&!jo(C),O=T??"",D=v??"";let A;t[13]!==D||t[14]!==O?(A=Hn({connectionId:Ct,orgId:O,orgSlug:D}),t[13]=D,t[14]=O,t[15]=A):A=t[15];const F=!!T&&!!v;let q;if(t[16]!==A||t[17]!==F?(q={...A,enabled:F},t[16]=A,t[17]=F,t[18]=q):q=t[18],Me(q),(!b||ht(b)||_||I)&&Vs(),!b){let L;return t[19]!==a?(L=n.jsx(hs,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(ht(b)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug());let L;return t[21]!==b.name?(L=n.jsx(hn,{orgName:b.name}),t[21]=b.name,t[22]=L):L=t[22],L}if(I&&N){let L;return t[23]!==b.slug||t[24]!==N?(L=n.jsx(xo,{notice:N,orgSlug:b.slug}),t[23]=b.slug,t[24]=N,t[25]=L):L=t[25],L}if(_){let L;return t[26]!==b.id||t[27]!==b.name||t[28]!==b.slug||t[29]!==k.domain?(L=n.jsx(yo,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:k.domain}),t[26]=b.id,t[27]=b.name,t[28]=b.slug,t[29]=k.domain,t[30]=L):L=t[30],L}const B=b.logo??null;let M;t[31]!==b||t[32]!==B?(M={...b,logo:B},t[31]=b,t[32]=B,t[33]=M):M=t[33];let G;t[34]!==b?(G=n.jsx(uo,{activeOrg:b}),t[34]=b,t[35]=G):G=t[35];let $;t[36]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(gn,{}),t[36]=$):$=t[36];let V;t[37]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Rs,{}),n.jsx(eo,{})]}),t[37]=V):V=t[37];let W;t[38]!==i||t[39]!==c?(W=i&&n.jsx(Hs,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=W):W=t[40];let H;t[41]!==m||t[42]!==f?(H=m&&n.jsx(Jn,{open:!0,onOpenChange:f,source:Gn()}),t[41]=m,t[42]=f,t[43]=H):H=t[43];let U;t[44]!==s?(U=n.jsx(Fs,{open:s,onOpenChange:r}),t[44]=s,t[45]=U):U=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(io,{}),t[46]=Z):Z=t[46];let Y;return t[47]!==M||t[48]!==G||t[49]!==W||t[50]!==H||t[51]!==U?(Y=n.jsxs(vo,{org:M,children:[G,$,V,W,H,U,Z]}),t[47]=M,t[48]=G,t[49]=W,t[50]=H,t[51]=U,t[52]=Y):Y=t[52],Y}function Ao(t){return t.location.pathname}function Co(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Po,{})}),t[0]=e):e=t[0],e}const ai=Object.freeze(Object.defineProperty({__proto__:null,default:Co,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{gs as L,ko as a,Ts as b,ii as c,ai as d,oi as f,zt as i,Gs as o,ni as r,si as s,So as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,H as F,$ as G,a0 as H,a as E,k as P,b as O,n as y,L as M}from"./index-LISCRMKT.js";import{C as V}from"./chat-context-Cbn1d2gD.js";import{C as x}from"./index-Rjs_bdr_.js";import{L}from"./index-KxuowPl9.js";import{B as K}from"./blocks-preview-workspace-context-DQj4RBd8.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as q}from"./site-editor-toast-BZwEeugO.js";import{u as Q,L as B,P as X,S as Y}from"./preview-tab-CpG9tuu6.js";import{C as Z}from"./content-tab-B-LNJbd9.js";import{T as tt}from"./tab-icon-glyph-X9RKDulT.js";import{r as ot}from"./resolve-tab-icon-DS-pAijm.js";import et from"./agent-site-editor-Du4tKYJz.js";import"./use-panel-navigate-CnrhnUVG.js";import"./thread-route-CCN9I68_.js";import"./use-project-scope-LiKIXaiK.js";import"./repository-binding-N72ZtnJ7.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./autosend-BYljpA5c.js";import"./thread-intent-ptqgtSKo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBQ2__fw.js";import"./task-board-DfACAZyY.js";import"./schema-C2dfCTpF.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-9vbVfq68.js";import"./use-ai-providers-DGRaKYBP.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-ChnGZu8F.js";import"./use-organization-settings-CK8r9oqu.js";import"./use-mobile-BJBInbLU.js";import"./use-sidebar-collapsed-ByUss2bb.js";import"./use-chat-layout-state-lg3L3DSm.js";import"./agent-icon-Co7E9kYl.js";import"./AlertCircle-Pu-QR8hS.js";import"./Tool01-CkZTily1.js";import"./ArrowUp-bMBjrwqG.js";import"./ArrowLeft-CiCYDVFq.js";import"./LinkBroken01-BeLPonYT.js";import"./ShoppingBag01-CeVNpa4z.js";import"./ZoomOut-9x8WuC5l.js";import"./Building02-BejNykWR.js";import"./CheckCircle-CiBrtkwP.js";import"./ChevronUp-D3pnxmNi.js";import"./ChevronSelectorVertical-Bb_Zani-.js";import"./UserSquare-D7fSnIn3.js";import"./Copy01-BEOZtg79.js";import"./CreditCard01-C2H6wRye.js";import"./DotsVertical-DddKhPwC.js";import"./Image01-D9f6XNAl.js";import"./Globe04-CR7aWwIq.js";import"./SwitchHorizontal01-B8-pBEhT.js";import"./Key01-BGQzZTLx.js";import"./Link01-_AjEk0aG.js";import"./Minus-DRtjDVr0.js";import"./Monitor01-CMcPb3p-.js";import"./Sun-E-EbUc0n.js";import"./Play-Bon9Nn-R.js";import"./Plus-DZ8OV5bq.js";import"./SearchMd-Coxjt-Zl.js";import"./Trash01-C8OxhBl3.js";import"./Upload01-Bt37Plwz.js";import"./Users01-DVEy527M.js";import"./XClose-Bvl4KGPV.js";import"./tooltip-DiW2ytsS.js";import"./index-KpWMq2p9.js";import"./toolbar-icon-button-DOtu5VNi.js";import"./shell-layout-DUwEP5qi.js";import"./use-deployment-admin-Do6VU3ed.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-BXkjZk4h.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./integration-icon-msZhQ6E3.js";import"./project-icon-As9MoCET.js";import"./new-project-dialog-BrtI6GgZ.js";import"./label-BfYbFBpZ.js";import"./repository-import-picker-CNVRTxph.js";import"./use-navigate-to-agent-CpRnIp1k.js";import"./repository-picker-CW0SaV-m.js";import"./github-icon-EmEurWMX.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";import"./collection-search-BtpA2Lei.js";import"./use-debounced-value-DBl2u8Ax.js";import"./required-auth-layout-BwkU_8aI.js";import"./use-org-sso-DVHlBcmx.js";import"./sheet-C1Iz_daC.js";import"./resizable-WR3fdR8J.js";import"./core.esm-M1IJOkIH.js";import"./sortable.esm-DfWQuMf-.js";import"./context-menu-gvTbM_VP.js";import"./create-organization-dialog-DNvzT5i-.js";import"./form-Bk9ymCIS.js";import"./project-apps-X2VfH52k.js";import"./use-recent-apps-Dbpw5TB5.js";import"./use-session-runtime-PX0UU1rX.js";import"./experiments-tab-choice-EKyQNqty.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-BDRBqTP5.js";import"./use-sandbox-events-BAik2LAS.js";import"./sandbox-git-api-DcqI6XE4.js";import"./held-block-view-BDu8bj-6.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-B_hske_9.js";import"./collapsible-DMa5aTxw.js";import"./use-copy-Bb3ge3Jw.js";import"./usage-stats-DyqnqVDM.js";import"./tool-namespace-EPn7Kyb1.js";import"./utils-CVEq3hMx.js";import"./markdown-CGLGjJUn.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BmH0oH65.js";import"./types-CAqly_33.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-DZPkoV0a.js";import"./use-mcp-prompts-B2c7TGKV.js";import"./use-thread-outputs-BT4PyLKe.js";import"./file-type-icon-CiMMiUYO.js";import"./section-array-field-cPwKvhUj.js";import"./alert-BF8n9shl.js";import"./parse-sections-rTJ9Vxva.js";import"./blocks-tab-states-CQydf1x6.js";import"./slider-BRlhk1I_.js";import"./index-Bd1JsEWx.js";import"./index-BdQq_4o_.js";import"./tooltipContext-Boh-kskS.js";import"./CategoricalChart-1g-OhB34.js";import"./index-DMJwbqhe.js";import"./ActiveShapeUtils-HI4PJ-HL.js";import"./Sector-CNB3zVjr.js";import"./symbol-AaQxOm0Y.js";import"./empty-state-CEJi6IVu.js";import"./switch-B5fLkk4G.js";import"./textarea-1B6eWYpg.js";import"./popover-D6dCz_8d.js";import"./scroll-area-DYvdRQ3X.js";import"./monaco-editor-B_hB8uvI.js";import"./editor-Z7h3tdjo.js";import"./calendar-gk2fXc2c.js";import"./select-Ce8n-RXJ.js";import"./editor-classes-CIysMLqw.js";import"./toggle-group-DhjHoFhg.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BwKhFDqj.js";import"./search-input-DfJJHgak.js";import"./tabs-BeQ3GpBj.js";import"./use-file-configs-Dn7YLM4Z.js";import"./asset-utils-7zQmpZtP.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-BBDd5Vd6.js";import"./variant-matcher-override-D6IszGLS.js";import"./variant-draft-pointer-BeAKcq_c.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-CXQ7cT85.js";import"./preview-link-C762yHOt.js";import"./useQueries-nk-gppMK.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-C5JzNRIg.js";import"./url-slug-BimzZyel.js";import"./app-preview-url-9Od4s8Sz.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-De52Dfmg.js";import"./view-header-Ce7a2voT.js";import"./use-cms-publish-actions-Cg-2YJOJ.js";import"./hosted-publish-feedback-C3S_f767.js";import"./mustache-YJnhKKzZ.js";import"./checkbox-CA6aWe75.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-sjThA1Ew.js";import"./badge-CMgWUKiX.js";import"./empty-state-EpAwETL4.js";import"./collection-table-wrapper-zNmZhsyo.js";import"./table-CR0vxly9.js";import"./site-draft-actions-Cwq-m4rQ.js";import"./separator-CMPRlDqA.js";import"./use-releases-ClTQL_RZ.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-CRt26OMk.js";import"./drawer-Bsnw19SA.js";import"./input-Cgw3HqQu.js";import"./icon-button-CcHZO8e6.js";import"./chat-draft-Dz-8ZkTL.js";import"./use-deco-credits-CHyZsaQg.js";import"./index-D_GgrLpt.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-BhbajINs.js";import"./suggestion-C79o6bsf.js";import"./use-org-fs-B8r-1D4b.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-4QJAn2z5.js";import"./plan-ladder-ROI7a8rc.js";import"./add-connection-dialog-CjJZP05X.js";import"./extract-connection-data-CGOVIYLF.js";import"./metadata-D72DunRR.js";import"./connection-Cn9FrEsZ.js";import"./connection-card-DlWLwRKA.js";import"./connection-slug-CITJ0kGN.js";import"./schema-cjQbFYEA.js";import"./connection-form-helpers-DdDJu97E.js";import"./authenticate-and-persist-oauth-CzFtziag.js";import"./mcp-oauth-D5bTwzBt.js";import"./mcp-oauth-CDHHl2AY.js";import"./collection-tabs-CSXR7UYb.js";import"./use-infinite-scroll-CB0WyAlc.js";import"./useSuspenseInfiniteQuery-BJjYTjXx.js";import"./use-task-board-events-Cuq4HTGo.js";import"./named-rule-uses-B5UiiWoJ.js";import"./save-changes-debug-nBi-n9eV.js";import"./releases-api-kH_Ed6eO.js";function I(o){return o.kind==="unavailable"&&o.source==="local"&&(o.problem?.reason??"not-answering")==="not-answering"}const it=o=>o;function rt(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?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==e||t[5]!==r?(a=n.jsx(nt,{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 nt(o){const t=u.c(17),{candidates:e,invalidLink:c,onConnect:m}=o,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==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 j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const o=window.location.hash,t=new URLSearchParams(o.replace(/^#/,"")).has("endpoint"),e=t?W(o):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),e&&J(e),{candidates:U(e,z()),invalidLink:t&&!e}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const o=u.c(6),t=O();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:dt},o[0]=e):e=o[0];const c=P(e);let m;o[1]!==t||o[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:ot({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 dt(o){return o.matches.at(-1)?.staticData.siteEditorView}function N(o){const t=u.c(14),{children:e}=o,c=O(),{connection:m}=q(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(Y,{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 ut(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 A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const o=u.c(11),{data:t}=E.useSession();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ht},o[0]=e):e=o[0];const c=P(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(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(et,{}),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,{...A,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 ht(o){return o.matches.at(-1)?.staticData.siteEditorView}function vt(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,{...A,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=()=>{},xt={connection:null,set:b,clear:b};function hr(){const o=u.c(3),[t]=g.useState(at);let e;return o[0]!==t.candidates||o[1]!==t.invalidLink?(e=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),o[0]=t.candidates,o[1]=t.invalidLink,o[2]=e):e=o[2],e}function kt(o,t){return n.jsxs($.Provider,{value:{connection:o,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(o){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:o})})}function vr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(X,{virtualMcpId:v})}),o[0]=t):t=o[0],t}function xr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Z,{virtualMcpId:v})}),o[0]=t):t=o[0],t}export{xr as SiteEditorContent,vr as SiteEditorPreview,hr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as te,a4 as se,q as ae,r as M,ad as ce,j as t,B as H,n as $,bB as de,a5 as me,aS as ue,aR as pe,aO as ge,aM as fe,aN as he,aQ as xe,aP as je,bm as ke,t as D,aD as ve,c as ie,l as ye,Z as Se,V as be,Y as we,X as Ce,K as q,gm as De}from"./index-LISCRMKT.js";import{i as Ne}from"./DotsVertical-DddKhPwC.js";import{i as le,a as Pe}from"./ZoomOut-9x8WuC5l.js";import{s as Ae}from"./Trash01-C8OxhBl3.js";import{i as Ee}from"./Upload01-Bt37Plwz.js";import{S as Me}from"./search-input-DfJJHgak.js";import{S as Te}from"./search-toggle-K39LDgc3.js";import{E as V}from"./empty-state-CEJi6IVu.js";import{C as Oe}from"./collection-tabs-CSXR7UYb.js";import{S as Ie,F as Re}from"./folder-icon-rxpoDvAE.js";import{i as ze,j as Fe,m as $e}from"./use-org-fs-B8r-1D4b.js";import{S as _e,H as Z,f as Le}from"./location-V0VwTJTt.js";import{p as Be}from"./skill-md-ChfVs4uF.js";import"./SearchMd-Coxjt-Zl.js";import"./icon-button-CcHZO8e6.js";import"./tooltip-DiW2ytsS.js";import"./index-KpWMq2p9.js";import"./badge-CMgWUKiX.js";import"./markdown-CGLGjJUn.js";import"./use-copy-Bb3ge3Jw.js";import"./Copy01-BEOZtg79.js";import"./use-mobile-BJBInbLU.js";import"./use-panel-navigate-CnrhnUVG.js";import"./thread-route-CCN9I68_.js";import"./use-project-scope-LiKIXaiK.js";import"./repository-binding-N72ZtnJ7.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./file-preview-CCmllyvi.js";import"./utils-BDRBqTP5.js";import"./Image01-D9f6XNAl.js";import"./editor-Z7h3tdjo.js";import"./file-type-icon-CiMMiUYO.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";const J=200,Ke=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Qe(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Ke.has(e))}function qe(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ge(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function Ue(s,e){const l=Be(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,disableModelInvocation:l.disableModelInvocation,source:"home",volume:Z,path:r,sandboxPath:`${_e}/${Z}/${r}`}}const L="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?ve:Pe}}function Xe(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:m}=se();let S;e[0]!==l.source||e[1]!==m.name?(S=re(l.source,m.name),e[0]=l.source,e[1]=m.name,e[2]=S):S=e[2];const{label:T,glyph:O}=S;let I;e[3]!==l?(I=B(l),e[3]=l,e[4]=I):I=e[4];const z=I,R=r?"opacity-60":"hover:bg-accent";let u;e[5]!==R?(u=ye("relative transition-colors group overflow-hidden flex flex-col h-full",R),e[5]=R,e[6]=u):u=e[6];let f;e[7]!==l.name||e[8]!==c||e[9]!==r?(f=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=f):f=e[10];const b=z?"default":"system",N=!z;let w;e[11]!==O||e[12]!==b||e[13]!==N?(w=t.jsx(Re,{glyph:O,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=O,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==a||e[16]!==o?(h=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(Se,{children:[t.jsx(be,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",children:t.jsx(Ne,{size:16})})}),t.jsx(we,{align:"end",children:t.jsxs(Ce,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(Ae,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==l.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=j):j=e[22];let C;e[23]!==l.description||e[24]!==o?(C=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let p;e[34]!==T||e[35]!==r||e[36]!==o?(p=r?o("settings.skills.importing"):T,e[34]=T,e[35]=r,e[36]=o,e[37]=p):p=e[37];let y;e[38]!==p?(y=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:p})})}),e[38]=p,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==r||e[44]!==g||e[45]!==u||e[46]!==f?(P=t.jsxs(De,{size:"flush","aria-busy":r,className:u,children:[f,g]}),e[43]=r,e[44]=g,e[45]=u,e[46]=f,e[47]=P):P=e[47],P}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function Et(){const s=te(),{org:e}=se(),l=ze(),{remove:r,upload:c}=Fe("home"),a=ae(),o=M.useRef(null),[m,S]=M.useState(""),T=ce(),[O,I]=M.useState(L),[z,R]=M.useState(!1),[u,f]=M.useState(null),[b,N]=M.useState(null),[w,h]=M.useState(null),x=()=>{a.invalidateQueries({queryKey:q.slashSkills(e.id)}),a.invalidateQueries({queryKey:q.orgFsSkills(e.id)})},j=i=>a.setQueryData(q.slashSkills(e.id),n=>i(n??[]));async function C(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const A=n[0]?.webkitRelativePath??"";if(!A){D.error(s("settings.skills.importNeedsFolder"));return}const Q=A.split("/")[0]??"",_=n.filter(Qe),X=_.find(E=>G(E)==="SKILL.md");if(!X){D.error(s("settings.skills.importMissingSkillMd"));return}if(_.length>J){D.error(s("settings.skills.importTooManyFiles",{count:String(_.length),max:String(J)}));return}const F=qe(Q),W=`skills/${F}`;let Y=!1;R(!0);try{if(await $e(e.slug,"home",W)){D.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const E=Ue(F,await X.text());j(oe=>[E,...oe]),h(E.id),await Ge(He(_,F),c.mutateAsync),D.success(s("settings.skills.importSuccess",{name:F}))}catch(E){Y&&await r.mutateAsync(W).catch(()=>{}),D.error(E instanceof Error?E.message:s("settings.skills.importError"))}finally{h(null),x(),R(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of d)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:L,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(O)?O:L,P=g===L?d:d.filter(i=>i.source===g),K=i=>f(Le(i.volume,i.path)),ne=async()=>{if(!b)return;const{id:i,path:n}=b;N(null),j(A=>A.filter(Q=>Q.id!==i));try{await r.mutateAsync(n),D.success(s("settings.skills.deleteSuccess"))}catch(A){D.error(A instanceof Error?A.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(H,{size:"sm",disabled:z,onClick:()=>o.current?.click(),children:[t.jsx(Ee,{size:14}),s(z?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs($,{children:[t.jsx($.Content,{children:t.jsx($.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[T?t.jsx($.Actions,{secondary:t.jsx(Te,{value:m,onChange:S,label:s("library.context.search"),placeholder:s("settings.skills.searchPlaceholder"),clearLabel:s("library.library.clearSearch")}),children:U}):t.jsx($.Title,{actions:U,children:s("settings.skills.pageTitle")}),t.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3 empty:hidden",children:!T&&t.jsx(Me,{value:m,onChange:S,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(S(""),i.target.blur())}})}),t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{C(i.target.files)}}),y.length>2&&t.jsx(Oe,{placement:"page",tabs:y,activeTab:g,onTabChange:I}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(de,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(V,{image:t.jsx(me,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(H,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(V,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?s("settings.skills.noResultsDescription",{search:m}):s("settings.skills.emptyDescription"),actions:!1})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(i=>{const n=i.id===w;return t.jsx(Xe,{entry:i,pending:n,onOpen:()=>K(i),onDelete:B(i)&&!n?()=>N(i):void 0},i.id)})})})]})})}),u&&t.jsx(Ie,{skillPath:u,onClose:()=>f(null)},u),t.jsx(ue,{open:b!==null,onOpenChange:i=>!i&&N(null),children:t.jsxs(pe,{children:[t.jsxs(ge,{children:[t.jsx(fe,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(he,{children:s("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(xe,{children:[t.jsx(je,{children:s("settings.skills.cancel")}),t.jsx(ke,{onClick:ne,variant:"destructive",children:s("settings.skills.deleteButton")})]})]})})]})}export{Et as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,b as G,r as B,j as s,n as Q,l as J,f as X}from"./index-LISCRMKT.js";import{C as Z}from"./index-Rjs_bdr_.js";import{C as ee}from"./collection-tabs-CSXR7UYb.js";import{A as M,a as te,b as se,u as ie}from"./use-task-board-analytics-DzVWF5Q4.js";import{T as ae,e as W}from"./time-range-picker-D-3pTVaL.js";import{S as oe,d as re,c as le,a as ne,b as me}from"./sheet-C1Iz_daC.js";import{S as ce,s as pe,D as de}from"./analytics-sections-SZXfO52-.js";import{f as fe}from"./task-route-CEMyrZwM.js";import{C as ge}from"./combobox-BwKhFDqj.js";import"./use-mobile-BJBInbLU.js";import"./use-sidebar-collapsed-ByUss2bb.js";import"./use-chat-layout-state-lg3L3DSm.js";import"./thread-route-CCN9I68_.js";import"./use-panel-navigate-CnrhnUVG.js";import"./use-project-scope-LiKIXaiK.js";import"./repository-binding-N72ZtnJ7.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./thread-intent-ptqgtSKo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBQ2__fw.js";import"./task-board-DfACAZyY.js";import"./schema-C2dfCTpF.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-Co7E9kYl.js";import"./AlertCircle-Pu-QR8hS.js";import"./Tool01-CkZTily1.js";import"./ArrowUp-bMBjrwqG.js";import"./ArrowLeft-CiCYDVFq.js";import"./LinkBroken01-BeLPonYT.js";import"./ShoppingBag01-CeVNpa4z.js";import"./ZoomOut-9x8WuC5l.js";import"./Building02-BejNykWR.js";import"./CheckCircle-CiBrtkwP.js";import"./ChevronUp-D3pnxmNi.js";import"./ChevronSelectorVertical-Bb_Zani-.js";import"./UserSquare-D7fSnIn3.js";import"./Copy01-BEOZtg79.js";import"./CreditCard01-C2H6wRye.js";import"./DotsVertical-DddKhPwC.js";import"./Image01-D9f6XNAl.js";import"./Globe04-CR7aWwIq.js";import"./SwitchHorizontal01-B8-pBEhT.js";import"./Key01-BGQzZTLx.js";import"./Link01-_AjEk0aG.js";import"./Minus-DRtjDVr0.js";import"./Monitor01-CMcPb3p-.js";import"./Sun-E-EbUc0n.js";import"./Play-Bon9Nn-R.js";import"./Plus-DZ8OV5bq.js";import"./SearchMd-Coxjt-Zl.js";import"./Trash01-C8OxhBl3.js";import"./Upload01-Bt37Plwz.js";import"./Users01-DVEy527M.js";import"./XClose-Bvl4KGPV.js";import"./tooltip-DiW2ytsS.js";import"./index-KpWMq2p9.js";import"./toolbar-icon-button-DOtu5VNi.js";import"./shell-layout-DUwEP5qi.js";import"./use-deployment-admin-Do6VU3ed.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-BXkjZk4h.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./integration-icon-msZhQ6E3.js";import"./project-icon-As9MoCET.js";import"./new-project-dialog-BrtI6GgZ.js";import"./label-BfYbFBpZ.js";import"./repository-import-picker-CNVRTxph.js";import"./use-navigate-to-agent-CpRnIp1k.js";import"./repository-picker-CW0SaV-m.js";import"./github-icon-EmEurWMX.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";import"./collection-search-BtpA2Lei.js";import"./use-debounced-value-DBl2u8Ax.js";import"./use-organization-settings-CK8r9oqu.js";import"./required-auth-layout-BwkU_8aI.js";import"./autosend-BYljpA5c.js";import"./use-org-sso-DVHlBcmx.js";import"./resizable-WR3fdR8J.js";import"./badge-CMgWUKiX.js";import"./popover-D6dCz_8d.js";import"./scroll-area-DYvdRQ3X.js";import"./index-BdQq_4o_.js";import"./calendar-gk2fXc2c.js";import"./chart-orNTiDQv.js";import"./index-DMJwbqhe.js";import"./symbol-AaQxOm0Y.js";import"./CategoricalChart-1g-OhB34.js";import"./table-CR0vxly9.js";import"./toggle-group-DhjHoFhg.js";import"./active-indicator-CCMhAsc_.js";import"./config-B8-1YX-t.js";import"./core.esm-M1IJOkIH.js";import"./BarChart-DW5fB9sQ.js";import"./tooltipContext-Boh-kskS.js";import"./ActiveShapeUtils-HI4PJ-HL.js";import"./Sector-CNB3zVjr.js";import"./ErrorBarContext-CUSRsGW6.js";import"./CartesianChart-BfqGbR2p.js";import"./AreaChart-DJ3vI97z.js";import"./task-key-BCHdFiOO.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 l;e[0]!==p?(l=J("surface flex flex-col gap-6 p-4",p),e[0]=p,e[1]=l):l=e[1];let a,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=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]=a,e[3]=d):(a=e[2],d=e[3]);let n;return e[4]!==l?(n=s.jsxs("div",{className:l,children:[a,d]}),e[4]=l,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:l,onOpenChange:a,params:d,taskHref:n}=t,j=G(),{data:o,isLoading:i,error:y}=se(d,l?p?.drill??null:null);let u;e[0]!==o?.sections?(u=o?.sections.find(ke),e[0]=o?.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(oe,{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(re,{children:h}),e[8]=h,e[9]=f):f=e[9];let g;e[10]!==x||e[11]!==f?(g=s.jsxs(le,{children:[x,f]}),e[10]=x,e[11]=f,e[12]=g):g=e[12];let k;e[13]!==y||e[14]!==i||e[15]!==n||e[16]!==m?(k=i?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]=i,e[15]=n,e[16]=m,e[17]=k):k=e[17];let r;e[18]!==k?(r=s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 pb-4",children:k}),e[18]=k,e[19]=r):r=e[19];let c;e[20]!==g||e[21]!==r?(c=s.jsxs(ne,{side:"right",size:"lg",children:[g,r]}),e[20]=g,e[21]=r,e[22]=c):c=e[22];let S;return e[23]!==a||e[24]!==l||e[25]!==c?(S=s.jsx(me,{open:l,onOpenChange:a,children:c}),e[23]=a,e[24]=l,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:l,project:a,range:d,taskHref:n}=t;let j;e[0]!==l||e[1]!==a||e[2]!==d?(j={org:l,project:a,...d},e[0]=l,e[1]=a,e[2]=d,e[3]=j):j=e[3];const o=j,{data:i,isPending:y,error:u}=te(p,o),[m,T]=B.useState(null),[b,x]=B.useState(!1);if(u){let r;return e[4]!==u.message?(r=s.jsx("div",{className:"surface p-8 text-center text-sm text-destructive",children:u.message}),e[4]=u.message,e[5]=r):r=e[5],r}if(y||!i){let r;return e[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(xe,{}),e[6]=r):r=e[6],r}let h;if(e[7]!==i.range||e[8]!==i.sections||e[9]!==l||e[10]!==n){let r;e[12]!==i.range||e[13]!==l||e[14]!==n?(r=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:l==="all",taskHref:n,range:i.range,onDrill:S=>{T(S),x(!0)}})},c.title),e[12]=i.range,e[13]=l,e[14]=n,e[15]=r):r=e[15],h=i.sections.map(r),e[7]=i.range,e[8]=i.sections,e[9]=l,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]!==o||e[21]!==n?(g=s.jsx(Se,{target:m,open:b,onOpenChange:x,params:o,taskHref:n}),e[18]=m,e[19]=b,e[20]=o,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:l,taskHref:a,actions:d,notice:n,showTenants:j}=t,o=G(),[i,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]!==o){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]!==o?(O=Y=>({id:Y,label:o(ue[Y])}),e[8]=o,e[9]=O):O=e[9],f=M.filter(R).map(O),e[3]=j,e[4]=o,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 r;e[11]!==o?(r=o("monitoring.timeRangePicker.absoluteTimeRange"),e[11]=o,e[12]=r):r=e[12];let c;e[13]!==o?(c=o("monitoring.timeRangePicker.from"),e[13]=o,e[14]=c):c=e[14];let S;e[15]!==o?(S=o("monitoring.timeRangePicker.to"),e[15]=o,e[16]=S):S=e[16];let _;e[17]!==o?(_=o("monitoring.timeRangePicker.applyTimeRange"),e[17]=o,e[18]=_):_=e[18];let v;e[19]!==r||e[20]!==c||e[21]!==S||e[22]!==_?(v={absoluteTimeRange:r,from:c,to:S,applyTimeRange:_},e[19]=r,e[20]=c,e[21]=S,e[22]=_,e[23]=v):v=e[23];let A;e[24]!==o?(A=o("monitoring.timeRangePicker.last7Days"),e[24]=o,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]!==o?(w=o("monitoring.timeRangePicker.last30Days"),e[28]=o,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]!==o?(C=o("monitoring.timeRangePicker.last90Days"),e[32]=o,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(ae,{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]!==i||e[49]!==g?($=s.jsx(ee,{placement:"page",tabs:g,activeTab:i,onTabChange:U}),e[48]=i,e[49]=g,e[50]=$):$=e[50];let I;e[51]!==p||e[52]!==l||e[53]!==x||e[54]!==i||e[55]!==a?(I=s.jsx(je,{tool:i,org:p,project:l,range:x,taskHref:a},i),e[51]=p,e[52]=l,e[53]=x,e[54]=i,e[55]=a,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 ks(){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 l=X(p),a=l.org??"",d=l.agentId,n=ie(),[j,o]=B.useState(a),[i,y]=B.useState(a);a!==j&&(o(a),y(a));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]!==a||t[4]!==m?(T={value:a,label:m},t[3]=a,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]!==a||t[12]!==T||t[13]!==x){let v;t[15]!==a?(v=A=>A.slug!==a,t[15]=a,t[16]=v):v=t[16],h=[T,x,...(n.data?.orgs??[]).filter(v).map(ve)],t[10]=n.data?.orgs,t[11]=a,t[12]=T,t[13]=x,t[14]=h}else h=t[14];const f=h;let g;t[17]!==i||t[18]!==a||t[19]!==d?(g=v=>fe(a,{id:v,keySeq:null},d)+(i===a?"":`?boardOrg=${encodeURIComponent(i)}`),t[17]=i,t[18]=a,t[19]=d,t[20]=g):g=t[20];const r=i==="all"?void 0:g;let c;t[21]!==u||t[22]!==i||t[23]!==f||t[24]!==e?(c=u&&s.jsx(ge,{options:f,value:i,onChange:y,width:"w-[220px]",searchPlaceholder:e("taskBoard.analytics.orgSearch"),emptyMessage:e("taskBoard.analytics.orgEmpty")}),t[21]=u,t[22]=i,t[23]=f,t[24]=e,t[25]=c):c=t[25];let S;t[26]!==i||t[27]!==a||t[28]!==e?(S=i!==a&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:i==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:i})}),t[26]=i,t[27]=a,t[28]=e,t[29]=S):S=t[29];let _;return t[30]!==u||t[31]!==i||t[32]!==d||t[33]!==r||t[34]!==c||t[35]!==S?(_=s.jsx(Z.Content,{children:s.jsx(Te,{org:i,project:d,taskHref:r,showTenants:u,actions:c,notice:S},i)}),t[30]=u,t[31]=i,t[32]=d,t[33]=r,t[34]=c,t[35]=S,t[36]=_):_=t[36],_}function ve(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}export{ks as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a4 as n,j as r,K as f}from"./index-LISCRMKT.js";import{C as d}from"./index-Rjs_bdr_.js";import{m as u,P as x,T as h}from"./mock-board-piOcYIBD.js";import{F as j}from"./feature-gate-DXCleAqA.js";import"./use-mobile-BJBInbLU.js";import"./use-sidebar-collapsed-ByUss2bb.js";import"./use-chat-layout-state-lg3L3DSm.js";import"./thread-route-CCN9I68_.js";import"./use-panel-navigate-CnrhnUVG.js";import"./use-project-scope-LiKIXaiK.js";import"./repository-binding-N72ZtnJ7.js";import"./use-mcp-client-0e8NRgfT.js";import"./auth-Dt9DGFhA.js";import"./thread-intent-ptqgtSKo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBQ2__fw.js";import"./task-board-DfACAZyY.js";import"./schema-C2dfCTpF.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-Co7E9kYl.js";import"./AlertCircle-Pu-QR8hS.js";import"./Tool01-CkZTily1.js";import"./ArrowUp-bMBjrwqG.js";import"./ArrowLeft-CiCYDVFq.js";import"./LinkBroken01-BeLPonYT.js";import"./ShoppingBag01-CeVNpa4z.js";import"./ZoomOut-9x8WuC5l.js";import"./Building02-BejNykWR.js";import"./CheckCircle-CiBrtkwP.js";import"./ChevronUp-D3pnxmNi.js";import"./ChevronSelectorVertical-Bb_Zani-.js";import"./UserSquare-D7fSnIn3.js";import"./Copy01-BEOZtg79.js";import"./CreditCard01-C2H6wRye.js";import"./DotsVertical-DddKhPwC.js";import"./Image01-D9f6XNAl.js";import"./Globe04-CR7aWwIq.js";import"./SwitchHorizontal01-B8-pBEhT.js";import"./Key01-BGQzZTLx.js";import"./Link01-_AjEk0aG.js";import"./Minus-DRtjDVr0.js";import"./Monitor01-CMcPb3p-.js";import"./Sun-E-EbUc0n.js";import"./Play-Bon9Nn-R.js";import"./Plus-DZ8OV5bq.js";import"./SearchMd-Coxjt-Zl.js";import"./Trash01-C8OxhBl3.js";import"./Upload01-Bt37Plwz.js";import"./Users01-DVEy527M.js";import"./XClose-Bvl4KGPV.js";import"./tooltip-DiW2ytsS.js";import"./index-KpWMq2p9.js";import"./toolbar-icon-button-DOtu5VNi.js";import"./shell-layout-DUwEP5qi.js";import"./use-deployment-admin-Do6VU3ed.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-BXkjZk4h.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./integration-icon-msZhQ6E3.js";import"./project-icon-As9MoCET.js";import"./new-project-dialog-BrtI6GgZ.js";import"./label-BfYbFBpZ.js";import"./repository-import-picker-CNVRTxph.js";import"./use-navigate-to-agent-CpRnIp1k.js";import"./repository-picker-CW0SaV-m.js";import"./github-icon-EmEurWMX.js";import"./useInfiniteQuery-ChletbBT.js";import"./infiniteQueryObserver-DGdbL4U6.js";import"./collection-search-BtpA2Lei.js";import"./use-debounced-value-DBl2u8Ax.js";import"./use-organization-settings-CK8r9oqu.js";import"./required-auth-layout-BwkU_8aI.js";import"./autosend-BYljpA5c.js";import"./use-org-sso-DVHlBcmx.js";import"./sheet-C1Iz_daC.js";import"./resizable-WR3fdR8J.js";import"./core.esm-M1IJOkIH.js";import"./sortable.esm-DfWQuMf-.js";import"./use-task-board-analytics-DzVWF5Q4.js";import"./combobox-BwKhFDqj.js";import"./popover-D6dCz_8d.js";import"./usage-stats-DyqnqVDM.js";import"./tool-namespace-EPn7Kyb1.js";import"./form-Bk9ymCIS.js";import"./utils-CVEq3hMx.js";import"./markdown-CGLGjJUn.js";import"./use-copy-Bb3ge3Jw.js";import"./location-V0VwTJTt.js";import"./use-entitlements-9vbVfq68.js";import"./chat-context-Cbn1d2gD.js";import"./use-ai-providers-DGRaKYBP.js";import"./use-decopilot-events-ChnGZu8F.js";import"./suggestion-C79o6bsf.js";import"./column-rules-C63NCpq3.js";import"./badge-CMgWUKiX.js";import"./icon-button-CcHZO8e6.js";import"./switch-B5fLkk4G.js";import"./textarea-1B6eWYpg.js";import"./use-org-fs-B8r-1D4b.js";import"./use-automations-DcNzV0FS.js";import"./search-toggle-K39LDgc3.js";import"./context-menu-gvTbM_VP.js";import"./daily-pulse-DOHhxMy1.js";import"./use-task-board-events-Cuq4HTGo.js";import"./config-B8-1YX-t.js";import"./sprints-C1z9xhcL.js";import"./select-Ce8n-RXJ.js";import"./index-BdQq_4o_.js";import"./task-route-CEMyrZwM.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-BxtkZ6j_.js";import"./use-tags-CeuMPNMY.js";import"./calendar-gk2fXc2c.js";import"./alert-BF8n9shl.js";import"./collapsible-DMa5aTxw.js";import"./index-DvPTtoj9.js";import"./editor-classes-CIysMLqw.js";import"./index-DGAfs5q1.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-BZA4s0mM.js";import"./use-connection-DZPkoV0a.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-Opalk3rB.js";import"./useSuspenseInfiniteQuery-BJjYTjXx.js";import"./pair-B_hske_9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BmH0oH65.js";import"./types-CAqly_33.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-B2c7TGKV.js";import"./use-thread-outputs-BT4PyLKe.js";import"./file-type-icon-CiMMiUYO.js";import"./use-infinite-scroll-CB0WyAlc.js";import"./task-status-CwtxChqi.js";import"./separator-CMPRlDqA.js";import"./chat-draft-Dz-8ZkTL.js";import"./feature-paywall-4QJAn2z5.js";import"./plan-ladder-ROI7a8rc.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 Wo(){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{Wo as default};
|