decocms 4.576.5 → 4.577.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C4gtVV8B.js → AlertCircle-BdE1rZoJ.js} +1 -1
- package/dist/client/assets/{AreaChart-DoDuLI5t.js → AreaChart-D0m3b7qG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DpMV6ZsI.js → ArrowLeft-DIrnwv8l.js} +1 -1
- package/dist/client/assets/{ArrowUp-BZtzDI6h.js → ArrowUp-km-Xmh__.js} +1 -1
- package/dist/client/assets/BookOpen01-BneB1q9z.js +1 -0
- package/dist/client/assets/{CartesianChart-T_ULwjNy.js → CartesianChart-BwsWHEdb.js} +1 -1
- package/dist/client/assets/{CategoricalChart-ysoAqy8Y.js → CategoricalChart-Dxo_7xLg.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSJM5Ipe.js → CheckCircle-CiBUynzC.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Y1qRZSrs.js → ChevronSelectorVertical-CRWdnYCm.js} +1 -1
- package/dist/client/assets/{ChevronUp-DlMNWluH.js → ChevronUp-B7dgqvYM.js} +1 -1
- package/dist/client/assets/{CreditCard01-DDsAjKey.js → CreditCard01-CcIddg9s.js} +1 -1
- package/dist/client/assets/{Globe04-xh_ZOoQS.js → Globe04-DIBckqos.js} +1 -1
- package/dist/client/assets/{Key01-BnxP0_QL.js → Key01-BV5ckBOE.js} +1 -1
- package/dist/client/assets/{LinkBroken01-4XuFjBFS.js → LinkBroken01-Mv2kbzSM.js} +1 -1
- package/dist/client/assets/{Minus-D8UqNYy4.js → Minus-Bygm9L7w.js} +1 -1
- package/dist/client/assets/{Monitor01-CVDkBVET.js → Monitor01-HDGt-WwC.js} +1 -1
- package/dist/client/assets/{Play--aCtxlXx.js → Play-DROL2O51.js} +1 -1
- package/dist/client/assets/{Plus-DXpzgENj.js → Plus-C-Or0hIv.js} +1 -1
- package/dist/client/assets/ReferenceLine-BPmIH9b3.js +1 -0
- package/dist/client/assets/{SearchMd-CWmEKOOP.js → SearchMd-D88tiwag.js} +1 -1
- package/dist/client/assets/ShoppingBag01-Cdbqpanm.js +1 -0
- package/dist/client/assets/{Sun-wXzOhHYv.js → Sun-CgOyXDTW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C42vJfgE.js → SwitchHorizontal01-Dkkqg27i.js} +1 -1
- package/dist/client/assets/{Tool01-DB3xqZeL.js → Tool01-D4tVVqAj.js} +1 -1
- package/dist/client/assets/{Tooltip-Dz7b9lTi.js → Tooltip-cgLuNyXo.js} +1 -1
- package/dist/client/assets/{Trash01-BAWUFhrC.js → Trash01-Cqkcp6ky.js} +1 -1
- package/dist/client/assets/{Upload01-CMkGIZuR.js → Upload01-CsOcxm5q.js} +1 -1
- package/dist/client/assets/{UserSquare-NNxs0RWc.js → UserSquare-CK-bjijW.js} +1 -1
- package/dist/client/assets/{Users01-DIshv_Ib.js → Users01-BpEuprvx.js} +1 -1
- package/dist/client/assets/{XClose-E_Sbr7JC.js → XClose-D9taHFI1.js} +1 -1
- package/dist/client/assets/{Zap-BFWL2aD-.js → Zap-BhxT34oC.js} +1 -1
- package/dist/client/assets/{access-gate-H6si3iA0.js → access-gate-Bbt03qvc.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BCsDq0oB.js → add-connection-dialog-EzR6kkmo.js} +1 -1
- package/dist/client/assets/agent-app-xUigIkK8.js +1 -0
- package/dist/client/assets/agent-assets-DUoWUOFt.js +1 -0
- package/dist/client/assets/agent-automation-Cyb5qsWY.js +20 -0
- package/dist/client/assets/agent-automations-HcbM2XMD.js +1 -0
- package/dist/client/assets/agent-blog-BLi3oKLw.js +2 -0
- package/dist/client/assets/agent-blog-post-DXyE25Wg.js +2 -0
- package/dist/client/assets/agent-calendar-D7ih9de1.js +1 -0
- package/dist/client/assets/{agent-capabilities-C7nwtlfn.js → agent-capabilities-CrqOfLmC.js} +1 -1
- package/dist/client/assets/agent-connect-sources-DtVo8JXM.js +1 -0
- package/dist/client/assets/agent-deck-Cs__MOn_.js +1 -0
- package/dist/client/assets/agent-e2e-CBM_w3qk.js +1 -0
- package/dist/client/assets/agent-experiments-CR3rcuNZ.js +1 -0
- package/dist/client/assets/agent-file-DjiNMKB3.js +1 -0
- package/dist/client/assets/agent-hosting-C70MC-PA.js +1 -0
- package/dist/client/assets/agent-icon-bK3wLPrb.js +1 -0
- package/dist/client/assets/agent-library-CeznhRs4.js +1 -0
- package/dist/client/assets/agent-library-file-B-Sx2y3P.js +1 -0
- package/dist/client/assets/agent-overview-CFue46Ll.js +1 -0
- package/dist/client/assets/agent-releases-BlbJtMk9.js +2 -0
- package/dist/client/assets/agent-settings-BljPRjiA.js +1 -0
- package/dist/client/assets/{agent-site-editor-D7f7n9V8.js → agent-site-editor-BeTpu1p8.js} +9 -9
- package/dist/client/assets/agent-site-editor-code-BAiYvGFH.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bl3XwQ5q.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Cys48HaE.js +1 -0
- package/dist/client/assets/agent-view-DlR04ups.js +1 -0
- package/dist/client/assets/agent-view-guard-CruOWgYs.js +1 -0
- package/dist/client/assets/ai-providers-C2yFfgyi.js +1 -0
- package/dist/client/assets/{alert-gT8z0xwu.js → alert-jF8tTR34.js} +1 -1
- package/dist/client/assets/{analytics-sections-eEEKYoEI.js → analytics-sections-Qo8FMsPn.js} +1 -1
- package/dist/client/assets/{api-keys-DQU6MrN9.js → api-keys-15uqAkvj.js} +1 -1
- package/dist/client/assets/api-keys-BYU6jhvq.js +1 -0
- package/dist/client/assets/app-editor-B4pmL5qY.js +1 -0
- package/dist/client/assets/{asset-utils-ClCcVH6C.js → asset-utils-CwQVXoYw.js} +1 -1
- package/dist/client/assets/{auth-DzshLgt0.js → auth-YGSVzhUG.js} +1 -1
- package/dist/client/assets/{auth-catchall-knKXQdld.js → auth-catchall-hWKWJU80.js} +1 -1
- package/dist/client/assets/{auth-entry-CjhDapLF.js → auth-entry-DpL4vu4t.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Cs3K7qF9.js → auth-split-layout-BFmr3RnK.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DyNu9KE-.js → authenticate-and-persist-oauth-DHgqzdUM.js} +1 -1
- package/dist/client/assets/{automation-list-row-BIIymyig.js → automation-list-row-BAeLE453.js} +1 -1
- package/dist/client/assets/{automation-runs-BJn2B7cC.js → automation-runs-C7o6atC8.js} +1 -1
- package/dist/client/assets/automations-BvOuQD58.js +1 -0
- package/dist/client/assets/{badge-FhnYiqmQ.js → badge-D9oJO89f.js} +1 -1
- package/dist/client/assets/block-document-Phc0b_hv.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-DPP_AgWW.js → blocks-preview-workspace-context-XztheX0p.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DS5PjKyJ.js → blocks-tab-states-CPXZUbSV.js} +1 -1
- package/dist/client/assets/blog-preview-url-BlQDNdnl.js +1 -0
- package/dist/client/assets/blog-schema-BY4m7Viq.js +1 -0
- package/dist/client/assets/blog-source-gate-CiOBhTPt.js +1 -0
- package/dist/client/assets/blog-view-gate-CCZFjbaz.js +1 -0
- package/dist/client/assets/{buckets-Cm1lK-tx.js → buckets-BkOGaNvk.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CKmcH9eT.js → build-improve-prompt-doc-BvBG7PT7.js} +1 -1
- package/dist/client/assets/{calendar-Dj2F2D9c.js → calendar-CNAmcpRM.js} +1 -1
- package/dist/client/assets/{capability-load-error-YlZMyLIu.js → capability-load-error-BfsuWu82.js} +1 -1
- package/dist/client/assets/category-editor-DfKRUZ0M.js +1 -0
- package/dist/client/assets/category-tree-C0ZkCPxc.js +4 -0
- package/dist/client/assets/{chart-4euqV-4L.js → chart-CjhZfLhJ.js} +1 -1
- package/dist/client/assets/chat-context-BXBBnsXM.js +39 -0
- package/dist/client/assets/{chat-draft-B1Q_ptQ-.js → chat-draft-BiNhHFHP.js} +1 -1
- package/dist/client/assets/{checkbox-Bq5cgSkE.js → checkbox-BqeIWnOr.js} +1 -1
- package/dist/client/assets/choose-editor-C3lPTBrc.js +1 -0
- package/dist/client/assets/{cli-auth-success-C9VZDuEf.js → cli-auth-success-DXTy0zTr.js} +1 -1
- package/dist/client/assets/{client-icons-x0Kj4XXu.js → client-icons-bVQyh7Ui.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BGhvXRA5.js +1 -0
- package/dist/client/assets/cms-store-drafts-C_2pJAHv.js +1 -0
- package/dist/client/assets/collapsible-M6EMuds1.js +1 -0
- package/dist/client/assets/collection-detail-DtpW8ulK.js +1 -0
- package/dist/client/assets/{collection-display-button-B9tDNz3Q.js → collection-display-button-CLT_iQ9K.js} +1 -1
- package/dist/client/assets/{collection-search-o_TUN55Q.js → collection-search-d8_we7KS.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CovrSOmj.js → collection-table-wrapper-jjhzHxOC.js} +1 -1
- package/dist/client/assets/{collection-tabs-C-HhSJ3V.js → collection-tabs-CDEZauaw.js} +1 -1
- package/dist/client/assets/{combobox-N56ErTGA.js → combobox-eXr44O4N.js} +1 -1
- package/dist/client/assets/{command-C4A_k1m6.js → command-CL5fBjco.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BIgg4-5f.js → companion-mcps-section-ZhumvGkq.js} +1 -1
- package/dist/client/assets/config-DTkH3DlA.js +1 -0
- package/dist/client/assets/{connect-CAWALh6X.js → connect-DTRBNGAJ.js} +3 -3
- package/dist/client/assets/{connect-layout-BGSvt_fK.js → connect-layout-C9YZDE5a.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-zXoRskIf.js → connect-source-dialog-CtNzRZNm.js} +1 -1
- package/dist/client/assets/{connection-DWztoPJi.js → connection-DQRUSri4.js} +1 -1
- package/dist/client/assets/{connection-card-CWeiT8GU.js → connection-card-DiXDtKCD.js} +1 -1
- package/dist/client/assets/connection-detail-A1N-eCPy.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DvFcvjHg.js → connection-form-helpers-DbQ-1SYg.js} +1 -1
- package/dist/client/assets/{connection-slug-7qrL1eY0.js → connection-slug-eNvNu5ns.js} +1 -1
- package/dist/client/assets/connections-F6Cb4hev.js +1 -0
- package/dist/client/assets/content-tab-zWTaVHTI.js +19 -0
- package/dist/client/assets/context-jjXucCze.js +1 -0
- package/dist/client/assets/{context-menu-CzVow7cK.js → context-menu-C8EhSOHZ.js} +1 -1
- package/dist/client/assets/{context-shell-A1z9qMT_.js → context-shell-DAsZEr3G.js} +3 -3
- package/dist/client/assets/{core.esm-DbuDfvWF.js → core.esm-q-GZRseF.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-D6MpLXO5.js → create-organization-dialog-B0fwudcl.js} +1 -1
- package/dist/client/assets/delete-copy-DewsXC-x.js +4 -0
- package/dist/client/assets/{device-hint-DKfCoj9a.js → device-hint-DOHdIy74.js} +1 -1
- package/dist/client/assets/discover-Sgb2XR4X.js +1 -0
- package/dist/client/assets/{domain-settings-EcbckpYF.js → domain-settings-CzQKvon-.js} +1 -1
- package/dist/client/assets/{drawer-DO5xJQb9.js → drawer-CT21cqiT.js} +1 -1
- package/dist/client/assets/{editor-T1DFIh20.js → editor-DSTLBMSV.js} +2 -2
- package/dist/client/assets/{editor-classes-XhTpecj4.js → editor-classes-DNgU6VQ_.js} +1 -1
- package/dist/client/assets/empty-message-0iKzEZgc.js +15 -0
- package/dist/client/assets/{empty-state-DtO_Mv2g.js → empty-state-C7mAM8aV.js} +1 -1
- package/dist/client/assets/{empty-state-DPWCLNrd.js → empty-state-De0GyKdS.js} +1 -1
- package/dist/client/assets/experiments-tab-choice-DwnKczQ0.js +1 -0
- package/dist/client/assets/{extract-connection-data-DBROTNmw.js → extract-connection-data-C9uUQyrf.js} +1 -1
- package/dist/client/assets/feature-gate-BekWNhM3.js +1 -0
- package/dist/client/assets/{feature-paywall-jPIGYZOc.js → feature-paywall-CzMsGR-v.js} +1 -1
- package/dist/client/assets/file-explorer-BA6AotC6.js +2 -0
- package/dist/client/assets/{file-preview-D0iM2K-b.js → file-preview-CK5Pkylz.js} +1 -1
- package/dist/client/assets/{file-share-button-BsYWO9Hm.js → file-share-button-qjRy5kh1.js} +1 -1
- package/dist/client/assets/{file-type-icon-HeI2BZTs.js → file-type-icon-DI74_rhH.js} +1 -1
- package/dist/client/assets/{folder-icon-DTWsvVbL.js → folder-icon-RhxrL37z.js} +1 -1
- package/dist/client/assets/{form-BTSAyeiz.js → form-czY_WZeB.js} +1 -1
- package/dist/client/assets/frame-navigation-D3lcT6PQ.js +1 -0
- package/dist/client/assets/general-DyfkLFv0.js +1 -0
- package/dist/client/assets/{github-icon-B_en9n_0.js → github-icon-DbvGzNXg.js} +1 -1
- package/dist/client/assets/held-block-view-616AHRnA.js +3 -0
- package/dist/client/assets/home-CvjGQ8iY.js +1 -0
- package/dist/client/assets/{home-overview-BRS8Q3rl.js → home-overview-BspPD0Qy.js} +1 -1
- package/dist/client/assets/hosted-reconcile-gX34y3hJ.js +1 -0
- package/dist/client/assets/{icon-button-BMTp1-QM.js → icon-button-Bek6uWU8.js} +1 -1
- package/dist/client/assets/{index-DVvmeJMJ.js → index-5IFWC0PS.js} +47 -47
- package/dist/client/assets/index-BASUN16S.js +4 -0
- package/dist/client/assets/{index-laonBzOU.js → index-BFLUunGm.js} +1 -1
- package/dist/client/assets/index-BVaQtZpO.js +1 -0
- package/dist/client/assets/index-B_hHGrWo.js +1 -0
- package/dist/client/assets/{index-DyEEK3cc.js → index-BgGa_gEX.js} +1 -1
- package/dist/client/assets/{index-qsOMiawp.js → index-CJqO_lXj.js} +1 -1
- package/dist/client/assets/{index-dCHDMdOx.js → index-CLog75-o.js} +1 -1
- package/dist/client/assets/{index-CWuPd_va.js → index-CYAg_mZ5.js} +6 -6
- package/dist/client/assets/{index-DGy42Noz.js → index-Cb-PI-oM.js} +1 -1
- package/dist/client/assets/{index-DFaIOW9N.js → index-Cn4blTB2.js} +2 -2
- package/dist/client/assets/{index-DTVEZmhV.js → index-Co1pEKoz.js} +1 -1
- package/dist/client/assets/{index-D1ksSwz3.js → index-Cq3k2rBV.js} +1 -1
- package/dist/client/assets/index-D6lWWdm-.js +1 -0
- package/dist/client/assets/{index-DlxA0Tmo.js → index-DI1WEe1Y.js} +1 -1
- package/dist/client/assets/index-DYPWHH-M.css +1 -0
- package/dist/client/assets/{index-DlkOiyYS.js → index-ZpYsIOky.js} +2 -2
- package/dist/client/assets/{index-DwNl1Km0.js → index-e47kvUTQ.js} +1 -1
- package/dist/client/assets/{index-redirect-BEZcO3ft.js → index-redirect-B5LCK4UZ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Depn9DGH.js → infiniteQueryObserver-CgeE9MzI.js} +1 -1
- package/dist/client/assets/{infra-billing-BGMskgUq.js → infra-billing-D_NOfbaI.js} +1 -1
- package/dist/client/assets/{input-aWrDx9Iy.js → input-1bbcsHzM.js} +3 -3
- package/dist/client/assets/{input-D4HN-yNN.js → input-Cof38_0i.js} +1 -1
- package/dist/client/assets/{integration-icon-C9OIwyFH.js → integration-icon-ClorKiq5.js} +1 -1
- package/dist/client/assets/item-actions-pz3LKYdP.js +1 -0
- package/dist/client/assets/{jira-icon-CnIpLe3l.js → jira-icon-CSE5FXRa.js} +1 -1
- package/dist/client/assets/{label-DxsI69Ti.js → label-C1myK8cj.js} +1 -1
- package/dist/client/assets/{layout-m_pr21sI.js → layout-B4vND3NH.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DIDvLt4b.js → legacy-admin-welcome-dialog-DtBTs-JZ.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CK9Gbzky.js → legacy-agents-deep-wdUtLgZd.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Cep_68fb.js → legacy-main-redirect-D0dw61Zg.js} +1 -1
- package/dist/client/assets/library-DmRa8bBp.js +1 -0
- package/dist/client/assets/{library-tab-Dy0wbynU.js → library-tab-3lHWVZnM.js} +4 -4
- package/dist/client/assets/{login-FVvIKUmZ.js → login-OeBuTK5R.js} +1 -1
- package/dist/client/assets/{markdown-DY1gkJzE.js → markdown-BhnPL5Bs.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CbbHrG36.js → mcp-app-renderer-DeImvVKz.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B4bma3Oc.js → mcp-oauth-D2St0yzi.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dz6mx5UF.js → mcp-oauth-DAPLorIu.js} +1 -1
- package/dist/client/assets/{members-CoNUsoOs.js → members-CRV8r-1W.js} +1 -1
- package/dist/client/assets/{memory-CJmsq8GA.js → memory-C08OAgnC.js} +2 -2
- package/dist/client/assets/{mock-board-C-Bptu2a.js → mock-board-UupkdDTJ.js} +3 -3
- package/dist/client/assets/{monaco-editor-ChRuLOCA.js → monaco-editor-DgmLjwMj.js} +1 -1
- package/dist/client/assets/{monitoring-DOIwwqmT.js → monitoring-C2AkJ1E2.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-MlJzIKBz.js → monitoring-stats-row-BkupHr4w.js} +1 -1
- package/dist/client/assets/{multi-select-HzpZ3y0m.js → multi-select-D_-o3Z5k.js} +1 -1
- package/dist/client/assets/mustache-D-pZ4GVh.js +4 -0
- package/dist/client/assets/named-rule-step-BqRLfozU.js +1 -0
- package/dist/client/assets/named-rule-view-Cjao8aHC.js +1 -0
- package/dist/client/assets/{new-project-dialog-DNs6nXJU.js → new-project-dialog-ly3jlxrO.js} +1 -1
- package/dist/client/assets/{oauth-callback-DJ1LZft0.js → oauth-callback-DGsbFvpE.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DdjujeOM.js → oauth-callback-ai-provider-DH_kBA_S.js} +1 -1
- package/dist/client/assets/{oauth-consent-C7arrnjn.js → oauth-consent-DiV1G_a8.js} +1 -1
- package/dist/client/assets/{onboarding-DCEuM15Q.js → onboarding-wSysb6DG.js} +1 -1
- package/dist/client/assets/openai-conversation-BnmAjQv3.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-Bxu9JyYq.js → optimistic-project-sidebar-views-BddiZzQV.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BHRAsIfi.js → order-monitor-day-vJd_rbss.js} +1 -1
- package/dist/client/assets/{organization-choice-BLi_jfq-.js → organization-choice-B_C6gRzc.js} +1 -1
- package/dist/client/assets/{orgs-B0FFSMlY.js → orgs-Hd1POC7b.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BPiQsCnH.js → own-accounts-section-DRAcUJQm.js} +1 -1
- package/dist/client/assets/{pair-BefVcuJk.js → pair-DsQEIDjk.js} +7 -7
- package/dist/client/assets/parse-sections-DAMeYP46.js +4 -0
- package/dist/client/assets/plan-9F8q1LmB.js +1 -0
- package/dist/client/assets/{plan-ladder-BIrfRC9w.js → plan-ladder-BVTNP5Xz.js} +1 -1
- package/dist/client/assets/{plan-usage-card-9-4sECew.js → plan-usage-card-Du0lOF_J.js} +2 -2
- package/dist/client/assets/{popover-DVbSl4_S.js → popover-DP7XfF8t.js} +1 -1
- package/dist/client/assets/post-calendar-DDpUGeeB.js +1 -0
- package/dist/client/assets/post-editor-DtDeATFH.js +2 -0
- package/dist/client/assets/{preview-content-4sXQQAYj.js → preview-content-C5OVyGLr.js} +1 -1
- package/dist/client/assets/{preview-dialog-DdT5D37e.js → preview-dialog-DuuWqEir.js} +1 -1
- package/dist/client/assets/{preview-panel-08gBYjqh.js → preview-panel-BZ5HJll2.js} +1 -1
- package/dist/client/assets/preview-tab-P_107JPX.js +551 -0
- package/dist/client/assets/{product-picker-dialog-CK0DishF.js → product-picker-dialog-Dt7DCQ6n.js} +1 -1
- package/dist/client/assets/{profile-D-F6LVIp.js → profile-GhJox0Lx.js} +1 -1
- package/dist/client/assets/project-app-view-qeUPQ38h.js +1 -0
- package/dist/client/assets/project-apps-DfPcY68g.js +1 -0
- package/dist/client/assets/{project-icon-BfdBakvS.js → project-icon-B90806PF.js} +1 -1
- package/dist/client/assets/{project-index-CIwgcHHa.js → project-index-Do6iewlo.js} +1 -1
- package/dist/client/assets/project-reports-CidF3Xyg.js +1 -0
- package/dist/client/assets/project-tasks-BYy46ISP.js +1 -0
- package/dist/client/assets/projects-CymMldT7.js +1 -0
- package/dist/client/assets/{projects-empty-state-CNEfVw65.js → projects-empty-state-BTGd2cv1.js} +1 -1
- package/dist/client/assets/{prompts-xdLcYGyB.js → prompts-Cd0qPZsx.js} +1 -1
- package/dist/client/assets/record-editor-BH3fKYC8.js +1 -0
- package/dist/client/assets/redirect-editor-xZO49sls.js +1 -0
- package/dist/client/assets/{reports-BoYTb5US.js → reports-B9pEcRxn.js} +1 -1
- package/dist/client/assets/reports-DtEFVn9D.js +1 -0
- package/dist/client/assets/reports-onboarding-DxeuhIZr.js +1 -0
- package/dist/client/assets/reports-tab-YeP0tPeK.js +2 -0
- package/dist/client/assets/repositories-B0Temlg5.js +1 -0
- package/dist/client/assets/repositories-YEhOcvb2.js +1 -0
- package/dist/client/assets/{repository-binding-DJpVzzIq.js → repository-binding-L4ChVpPs.js} +1 -1
- package/dist/client/assets/repository-picker-CCYsOJZQ.js +1 -0
- package/dist/client/assets/{require-capability-BpMqCrIS.js → require-capability-Cm5TFoc0.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BIQCwVTO.js → required-auth-layout-BUx3f5eg.js} +1 -1
- package/dist/client/assets/{reset-password-BKzfgMBU.js → reset-password-DWi7rqRm.js} +1 -1
- package/dist/client/assets/{resizable-C9_scy3R.js → resizable-Biivyzu2.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-C_X-fR95.js +1 -0
- package/dist/client/assets/review-settings-DhlyLgn0.js +1 -0
- package/dist/client/assets/role-color-_0YSG8Dj.js +1 -0
- package/dist/client/assets/roles-akRjx2S4.js +1 -0
- package/dist/client/assets/route-CKHdrn7R.js +1 -0
- package/dist/client/assets/route-D1Gpwe4D.js +1 -0
- package/dist/client/assets/route-tQ0sT4aI.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-_uINbsP3.js → sandbox-lifecycle-context-BJx1JU2-.js} +1 -1
- package/dist/client/assets/save-status-T9dswXr1.js +1 -0
- package/dist/client/assets/{schema-CzuWRpLl.js → schema-Dc_MkHkp.js} +1 -1
- package/dist/client/assets/{schema-ChSE97DN.js → schema-DjfjCUhq.js} +1 -1
- package/dist/client/assets/{scroll-area-D1j-ZNOk.js → scroll-area-cgfYHO2J.js} +1 -1
- package/dist/client/assets/search-input-CgAhBcAm.js +1 -0
- package/dist/client/assets/{search-toggle-BSwOQVMD.js → search-toggle-BvL2EnQl.js} +1 -1
- package/dist/client/assets/{secret-picker-zgl1t1WE.js → secret-picker-pXy37N0W.js} +1 -1
- package/dist/client/assets/{secrets-Dvs-hzm1.js → secrets-DY2kpTfw.js} +1 -1
- package/dist/client/assets/section-array-field-Dqv2uZIX.js +1 -0
- package/dist/client/assets/{sections-COYsDPZ3.js → sections-BYpfTFZT.js} +1 -1
- package/dist/client/assets/sections-editor-D7uS2U4v.js +1 -0
- package/dist/client/assets/{select-CBAbBtbp.js → select-Dj8hBfnd.js} +1 -1
- package/dist/client/assets/{select-model-CScqhZ6D.js → select-model-BCp0KUZW.js} +1 -1
- package/dist/client/assets/seo-editor-C6gHCSwh.js +1 -0
- package/dist/client/assets/{separator-B-2WnIuS.js → separator-CD_4C4Y0.js} +1 -1
- package/dist/client/assets/settings-tab-DPVLqmJT.js +1 -0
- package/dist/client/assets/{sheet-BSTYuLMa.js → sheet-w42F36Fm.js} +1 -1
- package/dist/client/assets/shell-layout-SnEo2Z8s.js +1 -0
- package/dist/client/assets/site-draft-actions-X8qdJpR6.js +3 -0
- package/dist/client/assets/site-draft-view-DieOLT9Q.js +1 -0
- package/dist/client/assets/site-editor-D71enwO7.js +1 -0
- package/dist/client/assets/{site-editor-toast-Bz5hIXUq.js → site-editor-toast-CAmfWZOg.js} +1 -1
- package/dist/client/assets/skills-BPDMMsh1.js +1 -0
- package/dist/client/assets/{slider-B-4p3Nob.js → slider-BUH8Dwgf.js} +1 -1
- package/dist/client/assets/{sortable.esm-BMq0DSBR.js → sortable.esm-BwyBVE7G.js} +1 -1
- package/dist/client/assets/{sso-D7rzaxll.js → sso-Cf_QJD0l.js} +1 -1
- package/dist/client/assets/suggestion-EZp_1C2Z.js +2 -0
- package/dist/client/assets/{super-agent-icon-CSXn8PV0.js → super-agent-icon-Cuh3vhpx.js} +1 -1
- package/dist/client/assets/{switch-BoeP0_DT.js → switch-CcIiziq_.js} +1 -1
- package/dist/client/assets/synced-repos-Cnb_uqs2.js +1 -0
- package/dist/client/assets/{tab-icon-glyph-DWwnpbAG.js → tab-icon-glyph-DvOK9lLO.js} +1 -1
- package/dist/client/assets/{table-XIxdhyNo.js → table-CX_Xjv5_.js} +1 -1
- package/dist/client/assets/{tabs-B314G2il.js → tabs-BVFow_A3.js} +1 -1
- package/dist/client/assets/{task-board-D-pfBnAn.js → task-board-DVtARw_U.js} +1 -1
- package/dist/client/assets/{task-route-DrEh97G3.js → task-route-Ck3RXNt1.js} +1 -1
- package/dist/client/assets/{task-status-B5Pet88z.js → task-status-DFMg9mu2.js} +1 -1
- package/dist/client/assets/taskboard-analytics-BUGnnj7V.js +1 -0
- package/dist/client/assets/{tasks-D1UDrE84.js → tasks-B3OOn3U2.js} +3 -3
- package/dist/client/assets/tasks-DHWz5CTo.js +1 -0
- package/dist/client/assets/{textarea-yEyl1P1k.js → textarea-BxqysnAf.js} +1 -1
- package/dist/client/assets/thread-analytics-dnNDwV70.js +1 -0
- package/dist/client/assets/{thread-intent-BNVTtSHt.js → thread-intent-BujELieJ.js} +6 -6
- package/dist/client/assets/thread-route-BAkMWoFr.js +1 -0
- package/dist/client/assets/{thread-route-C8VqFbkH.js → thread-route-CG4NoBnV.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BPfgeSL4.js → thread-sheet-body-iPIMT5tX.js} +1 -1
- package/dist/client/assets/{time-range-picker-BvmuiVyh.js → time-range-picker-DXMtxhmu.js} +1 -1
- package/dist/client/assets/{toggle-group-pyWm-TzL.js → toggle-group-CFCrTuTF.js} +1 -1
- package/dist/client/assets/{tool-namespace-CtWbol20.js → tool-namespace-C9gQSjv3.js} +1 -1
- package/dist/client/assets/{tool-set-selector-o7QGolVt.js → tool-set-selector-Dpj_1lJt.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DJE3OEfz.js → toolbar-icon-button-Bk7F5Fex.js} +1 -1
- package/dist/client/assets/{tooltip-BVrosRIK.js → tooltip-Bj0ggRLV.js} +1 -1
- package/dist/client/assets/{tooltipContext-qYwD6VMh.js → tooltipContext-BSiIa8-6.js} +1 -1
- package/dist/client/assets/{track-CeXWn-zt.js → track-uewKzN4A.js} +1 -1
- package/dist/client/assets/{types-DDm1cJJv.js → types-BuSDoCm5.js} +3 -3
- package/dist/client/assets/{url-slug-W6aFEmJF.js → url-slug-BFZflu8h.js} +1 -1
- package/dist/client/assets/{usage-stats-Dhf-DrML.js → usage-stats-FTjlrZsR.js} +2 -2
- package/dist/client/assets/{use-ai-providers-Cq3xA9Zt.js → use-ai-providers-hOyNnU7s.js} +1 -1
- package/dist/client/assets/use-apply-named-rule-JRuS8Fqz.js +1 -0
- package/dist/client/assets/use-ask-in-chat-BkWoc5AG.js +1 -0
- package/dist/client/assets/{use-automations-BVThKMGQ.js → use-automations-BW9n1XZu.js} +1 -1
- package/dist/client/assets/use-autosave-CFQpxLa7.js +1 -0
- package/dist/client/assets/use-blocks-v8-project-B4vRqcEf.js +1 -0
- package/dist/client/assets/use-chat-layout-state-Bib3kRoh.js +1 -0
- package/dist/client/assets/{use-cms-publish-actions-C7zW1hZf.js → use-cms-publish-actions-BanOYWkB.js} +5 -5
- package/dist/client/assets/{use-connect-companion-B9VAml3x.js → use-connect-companion-hxxGTIoI.js} +1 -1
- package/dist/client/assets/use-connection-CKudd0UO.js +1 -0
- package/dist/client/assets/use-content-sync-DVFphaEf.js +1 -0
- package/dist/client/assets/{use-copy-DT5ZzrsX.js → use-copy-s7vshP5o.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Co74b8Ww.js → use-date-fns-locale-BcLGuFCX.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-4hpLvgm-.js → use-debounced-autosave-DF7xOcC9.js} +1 -1
- package/dist/client/assets/{use-debounced-value-jJnqowMI.js → use-debounced-value-B0C48w17.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BQqUH0BV.js → use-deco-credits-Cc7w_fUS.js} +1 -1
- package/dist/client/assets/use-decopilot-events-Ctfpdj_z.js +1 -0
- package/dist/client/assets/use-delete-block-CMQm89VB.js +1 -0
- package/dist/client/assets/use-delete-connection-BM0YKMsI.js +1 -0
- package/dist/client/assets/{use-deployment-admin-CDyLX01_.js → use-deployment-admin-CJOxofw6.js} +1 -1
- package/dist/client/assets/{use-entitlements-u-J4FrTi.js → use-entitlements-BPjzEs4p.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-BwHAw0OT.js +1 -0
- package/dist/client/assets/{use-file-configs-BbIIeRpu.js → use-file-configs-DA74H1hE.js} +1 -1
- package/dist/client/assets/{use-id-selection-CUD8oDcN.js → use-id-selection-CMNzhPoi.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CcPQJJTK.js → use-inbox-feed-C-HQ6EgP.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CfhQVaOS.js → use-infinite-scroll-M12K1Dpn.js} +1 -1
- package/dist/client/assets/{use-join-requests-CkLvGQO2.js → use-join-requests-ntiStw2Q.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-DLlaHA4v.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-KGdhyspi.js → use-mcp-auth-status-B2OMY_Tu.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Bh7kEUBS.js → use-mcp-client-D_jTz-1i.js} +10 -10
- package/dist/client/assets/{use-mcp-prompts-BvdRcLVu.js → use-mcp-prompts-CFPSpaeI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BXarw5nj.js → use-mcp-tools-BMGCtRJK.js} +1 -1
- package/dist/client/assets/{use-mobile-Dc6kWu8K.js → use-mobile-M7B5YJR_.js} +1 -1
- package/dist/client/assets/use-move-blocks-B5DoaBOm.js +1 -0
- package/dist/client/assets/use-navigate-to-agent-BoWId4qC.js +1 -0
- package/dist/client/assets/use-never-published-8p9ySrBa.js +1 -0
- package/dist/client/assets/{use-org-fs-DrGQDt6z.js → use-org-fs-Dpr5-hHp.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CJN2n862.js → use-org-repo-syncs-DOKrzBXU.js} +1 -1
- package/dist/client/assets/{use-org-sso-3rJKFGHZ.js → use-org-sso-zsNytoCe.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dw2wmQuO.js → use-organization-settings-CIEI8bNF.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-tu_PxC_K.js +1 -0
- package/dist/client/assets/use-project-scope-D1EeIJG0.js +1 -0
- package/dist/client/assets/use-recent-apps-DSYeKmJU.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-CnV_YMfp.js → use-reports-diagnostic-ChnnkK6V.js} +1 -1
- package/dist/client/assets/use-sandbox-events-bxyyBbR-.js +2 -0
- package/dist/client/assets/{use-secrets-CYyoVB7k.js → use-secrets-NY7H3OwI.js} +1 -1
- package/dist/client/assets/use-section-preview-base-Beu0iQz9.js +1 -0
- package/dist/client/assets/{use-sidebar-collapsed-CGsrtxLO.js → use-sidebar-collapsed-D0GS7hdN.js} +1 -1
- package/dist/client/assets/{use-tags-D570CleN.js → use-tags-NAzrZ60o.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DCDiNKaK.js → use-task-board-analytics-DdzuizDS.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DUIQmo3-.js → use-task-board-events-iA0mSg2Q.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CG0dFrGw.js → use-task-board-item-prs-Dw8_2urj.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BB9JhdmM.js → use-task-board-items-DQYVvsFC.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DTmkMV_c.js → use-task-board-prompts-DaZyR7M-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-qW9LtgU4.js → use-task-metadata-c0FPnJ80.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CtFiUcL7.js → use-thread-outputs-nmtU5Zq-.js} +1 -1
- package/dist/client/assets/use-view-draft-kind-Cu0aFeKZ.js +1 -0
- package/dist/client/assets/{use-voice-input-DyZTYy5g.js → use-voice-input-DPQbRCzt.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CfdlXnOy.js +1 -0
- package/dist/client/assets/{useQueries-1XxIGeEN.js → useQueries-BncTnCJs.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-QQvh5ycV.js +1 -0
- package/dist/client/assets/{users-I0fvIaz3.js → users-DnLbGcVd.js} +1 -1
- package/dist/client/assets/{utils-Pt7-9-Ev.js → utils-yu1cqe5g.js} +2 -2
- package/dist/client/assets/variant-calendar-B9yPwKNQ.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BZrGhjnT.js → variant-matcher-override-DUz7pA6N.js} +1 -1
- package/dist/client/assets/{view-header-D7Xjp31c.js → view-header-DYVjdF9_.js} +1 -1
- package/dist/client/assets/virtual-mcp-B46xFMzN.js +1 -0
- package/dist/client/assets/{watch-sse-pool-B9yUO9oy.js → watch-sse-pool-Cgkbp7EA.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +584 -584
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-CyROiAPM.js +0 -1
- package/dist/client/assets/ShoppingBag01-ClDrdJV2.js +0 -1
- package/dist/client/assets/agent-app-Bl_mPh_t.js +0 -1
- package/dist/client/assets/agent-assets-B5UWuXnl.js +0 -1
- package/dist/client/assets/agent-automation-C9PBjiVk.js +0 -20
- package/dist/client/assets/agent-automations-CMf5dE3K.js +0 -1
- package/dist/client/assets/agent-calendar-DfZ4ErN1.js +0 -1
- package/dist/client/assets/agent-connect-sources-DwgsD8vQ.js +0 -1
- package/dist/client/assets/agent-deck-DjXPR_Nl.js +0 -1
- package/dist/client/assets/agent-e2e-BRjoGfW2.js +0 -1
- package/dist/client/assets/agent-experiments-CA2mbR8k.js +0 -1
- package/dist/client/assets/agent-file-BQdiAqSO.js +0 -1
- package/dist/client/assets/agent-hosting-D5KChDQU.js +0 -1
- package/dist/client/assets/agent-icon-uDqFfzhf.js +0 -1
- package/dist/client/assets/agent-library-2kWug_zO.js +0 -1
- package/dist/client/assets/agent-library-file-DtPgl6Sc.js +0 -1
- package/dist/client/assets/agent-overview-CXQy1R3G.js +0 -1
- package/dist/client/assets/agent-releases-CaysxAFQ.js +0 -2
- package/dist/client/assets/agent-settings-Bt8gf0xs.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DfcTCTxX.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B47YLbhf.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Ci1e5zpi.js +0 -1
- package/dist/client/assets/agent-view-FTi4q4vz.js +0 -1
- package/dist/client/assets/agent-view-guard-BP5FCFpQ.js +0 -1
- package/dist/client/assets/ai-providers-CQ29Z6f1.js +0 -1
- package/dist/client/assets/api-keys-h9YcYrMI.js +0 -1
- package/dist/client/assets/app-editor-BSqFGCuO.js +0 -1
- package/dist/client/assets/automations-Xmpwvi6F.js +0 -1
- package/dist/client/assets/autosend-D-UTWUhf.js +0 -1
- package/dist/client/assets/block-document-0w5M-3LO.js +0 -3
- package/dist/client/assets/blog-schema-CYWT4exY.js +0 -1
- package/dist/client/assets/category-editor-BRFXJMj8.js +0 -1
- package/dist/client/assets/chat-context-bTdV0PQS.js +0 -39
- package/dist/client/assets/choose-editor-CKJ9YUAD.js +0 -1
- package/dist/client/assets/cms-settings-editor-Bl0s5YWk.js +0 -1
- package/dist/client/assets/cms-store-drafts-B8sdeq2z.js +0 -1
- package/dist/client/assets/collapsible-B2pXVUPn.js +0 -1
- package/dist/client/assets/collection-detail-D-ELQuvL.js +0 -1
- package/dist/client/assets/config-CaohtXWJ.js +0 -1
- package/dist/client/assets/connection-detail-CyQt5Knq.js +0 -1
- package/dist/client/assets/connections-Dfx8FH4D.js +0 -1
- package/dist/client/assets/content-tab-Bd4lKzez.js +0 -25
- package/dist/client/assets/context-DkOsTTFI.js +0 -1
- package/dist/client/assets/discover-Blhzpr1h.js +0 -1
- package/dist/client/assets/experiments-tab-choice-BKIwz3b9.js +0 -1
- package/dist/client/assets/feature-gate-B_FyKX76.js +0 -1
- package/dist/client/assets/file-explorer-mKoJ95H9.js +0 -2
- package/dist/client/assets/general-DQnQVbWU.js +0 -1
- package/dist/client/assets/home-CLDIpUPQ.js +0 -1
- package/dist/client/assets/hosted-reconcile-C7zHteUc.js +0 -1
- package/dist/client/assets/index-CnFz3TOs.js +0 -4
- package/dist/client/assets/index-DO-A5xCQ.css +0 -1
- package/dist/client/assets/index-DPvgRnv7.js +0 -1
- package/dist/client/assets/index-DisDzI9Z.js +0 -1
- package/dist/client/assets/index-MBimNXd5.js +0 -1
- package/dist/client/assets/library-CYKhZ1Xb.js +0 -1
- package/dist/client/assets/mustache-CtUZw69D.js +0 -4
- package/dist/client/assets/named-rule-view-CkgbSbSg.js +0 -1
- package/dist/client/assets/openai-conversation-D4xjY3_1.js +0 -3
- package/dist/client/assets/parse-sections-D2w3wSuP.js +0 -20
- package/dist/client/assets/plan-Da6szJuR.js +0 -1
- package/dist/client/assets/post-calendar-DEqb8d3G.js +0 -1
- package/dist/client/assets/post-editor-B-zzeLVe.js +0 -2
- package/dist/client/assets/preview-tab-DBOLhpj4.js +0 -551
- package/dist/client/assets/project-app-view-etnu6fhD.js +0 -1
- package/dist/client/assets/project-apps-D4MFXbKC.js +0 -1
- package/dist/client/assets/project-reports-B9YT4T_3.js +0 -1
- package/dist/client/assets/project-tasks-DhwbKHKQ.js +0 -1
- package/dist/client/assets/projects-DN5f4v6V.js +0 -1
- package/dist/client/assets/record-editor-DtXYbHpV.js +0 -1
- package/dist/client/assets/redirect-editor-BGoLXzQs.js +0 -1
- package/dist/client/assets/reports-BVe3MPdv.js +0 -1
- package/dist/client/assets/reports-onboarding-hafGLqtC.js +0 -1
- package/dist/client/assets/reports-tab-BGeZEsTL.js +0 -2
- package/dist/client/assets/repositories-B9hLcljS.js +0 -1
- package/dist/client/assets/repositories-DMPvx5Vv.js +0 -1
- package/dist/client/assets/repository-picker-8FkfYDdf.js +0 -1
- package/dist/client/assets/resolve-tab-icon-DO940wY_.js +0 -1
- package/dist/client/assets/review-settings-Bj89Yxea.js +0 -1
- package/dist/client/assets/role-color-Dy-P6oaY.js +0 -1
- package/dist/client/assets/roles-CvbfU6et.js +0 -1
- package/dist/client/assets/route-93-1A9vt.js +0 -1
- package/dist/client/assets/route-BdH_uLpp.js +0 -1
- package/dist/client/assets/route-y8ZhYa0n.js +0 -1
- package/dist/client/assets/search-input-Cvdta6ZJ.js +0 -1
- package/dist/client/assets/section-array-field-AXi3Vg_u.js +0 -1
- package/dist/client/assets/sections-editor-CyIATot1.js +0 -1
- package/dist/client/assets/seo-editor-C0rSQsv3.js +0 -1
- package/dist/client/assets/settings-tab-DFF8W9c5.js +0 -1
- package/dist/client/assets/shell-layout-CU0v0Q3J.js +0 -1
- package/dist/client/assets/site-draft-actions-D4mgl3Il.js +0 -3
- package/dist/client/assets/site-draft-view-BlOBzJMo.js +0 -1
- package/dist/client/assets/site-editor-BoWcMF8-.js +0 -1
- package/dist/client/assets/skills-CPsP4uSN.js +0 -1
- package/dist/client/assets/suggestion-UmoyYDA6.js +0 -2
- package/dist/client/assets/synced-repos-MPQrTxDL.js +0 -1
- package/dist/client/assets/taskboard-analytics-BCgYqiKL.js +0 -1
- package/dist/client/assets/tasks-D2QsX8U7.js +0 -1
- package/dist/client/assets/thread-analytics-DEw5nqD5.js +0 -1
- package/dist/client/assets/thread-route-0xQXgTvr.js +0 -1
- package/dist/client/assets/use-apply-named-rule-V-RgXu1D.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CIVcbye6.js +0 -1
- package/dist/client/assets/use-autosave-CCiDACSS.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Cbqo1QTy.js +0 -1
- package/dist/client/assets/use-chat-layout-state-CGYfM8sf.js +0 -1
- package/dist/client/assets/use-connection-DnLlCwu6.js +0 -1
- package/dist/client/assets/use-content-sync-D9eluVVW.js +0 -1
- package/dist/client/assets/use-decopilot-events-B2tjImS_.js +0 -1
- package/dist/client/assets/use-delete-connection-DpEMQiOo.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-BxKgK3r2.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-DyYS88nS.js +0 -1
- package/dist/client/assets/use-move-blocks-D35xWi_f.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-BNznjjAZ.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-BNwJJKFa.js +0 -1
- package/dist/client/assets/use-project-scope-BbUTPXSS.js +0 -1
- package/dist/client/assets/use-recent-apps-BkGr3MbC.js +0 -1
- package/dist/client/assets/use-sandbox-events-C8uDi6Yt.js +0 -2
- package/dist/client/assets/use-section-preview-base-DqcwcHAy.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BuWYzJlw.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BofrdpH6.js +0 -1
- package/dist/client/assets/variant-calendar-WNfoLO6H.js +0 -1
- package/dist/client/assets/virtual-mcp-CSkG36xb.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as oe,b as ae,a4 as de,q as re,
|
|
1
|
+
import{c as oe,b as ae,a4 as de,q as re,ak as ce,r as me,K as ie,i as ge,e as X,E as ue,t as N,j as s,gf as fe,B as te,I as xe,ge as Se,gT as je}from"./index-5IFWC0PS.js";import{B as ne}from"./badge-D9oJO89f.js";import{S as pe,b as he,a as Ne,d as ve,c as se}from"./select-Dj8hBfnd.js";function Me(e,t,o){switch(e){case"auto":return o("settings.domainSettings.joinModeHelpAuto",{domain:t});case"request":return o("settings.domainSettings.joinModeHelpRequest",{domain:t});default:return o("settings.domainSettings.joinModeHelpOff")}}function be(){const e=oe.c(101),t=ae(),{org:o}=de(),p=re(),i=ce(),[d,v]=me.useState("");let c;e[0]!==o.id?(c=ie.organizationDomains(o.id),e[0]=o.id,e[1]=c):c=e[1];let m;e[2]!==i?(m=()=>i.call("ORGANIZATION_DOMAIN_LIST",{}),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==c||e[5]!==m?(x={queryKey:c,queryFn:m},e[4]=c,e[5]=m,e[6]=x):x=e[6];const{data:h,isPending:M}=ge(x);let S;e[7]!==o.id||e[8]!==p?(S=()=>p.invalidateQueries({queryKey:ie.organizationDomains(o.id)}),e[7]=o.id,e[8]=p,e[9]=S):S=e[9];const a=S;let g;e[10]!==i?(g=n=>i.call("ORGANIZATION_DOMAIN_ADD",{domain:n}),e[10]=i,e[11]=g):g=e[11];let u;e[12]!==a||e[13]!==o.id||e[14]!==t?(u=()=>{ue("organization_domain_added",{organization_id:o.id}),v(""),a(),N.success(t("settings.domainSettings.domainAdded"))},e[12]=a,e[13]=o.id,e[14]=t,e[15]=u):u=e[15];let f;e[16]!==t?(f=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedAddDomain")),e[16]=t,e[17]=f):f=e[17];let j;e[18]!==g||e[19]!==u||e[20]!==f?(j={mutationFn:g,onSuccess:u,onError:f},e[18]=g,e[19]=u,e[20]=f,e[21]=j):j=e[21];const r=X(j);let I;e[22]!==i?(I=n=>{const{id:l,joinMode:D}=n;return i.call("ORGANIZATION_DOMAIN_UPDATE",{id:l,joinMode:D})},e[22]=i,e[23]=I):I=e[23];let A;e[24]!==a||e[25]!==t?(A=()=>{a(),N.success(t("settings.domainSettings.joinModeUpdated"))},e[24]=a,e[25]=t,e[26]=A):A=e[26];let O;e[27]!==t?(O=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedUpdate")),e[27]=t,e[28]=O):O=e[28];let U;e[29]!==O||e[30]!==I||e[31]!==A?(U={mutationFn:I,onSuccess:A,onError:O},e[29]=O,e[30]=I,e[31]=A,e[32]=U):U=e[32];const Q=X(U);let b;e[33]!==i?(b=n=>i.call("ORGANIZATION_DOMAIN_VERIFY",{id:n}),e[33]=i,e[34]=b):b=e[34];let y;e[35]!==a||e[36]!==t?(y=n=>{a(),n.verified?N.success(t("settings.domainSettings.domainVerified")):N.error(t("settings.domainSettings.txtRecordNotFound"))},e[35]=a,e[36]=t,e[37]=y):y=e[37];let E;e[38]!==t?(E=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedVerify")),e[38]=t,e[39]=E):E=e[39];let Y;e[40]!==b||e[41]!==y||e[42]!==E?(Y={mutationFn:b,onSuccess:y,onError:E},e[40]=b,e[41]=y,e[42]=E,e[43]=Y):Y=e[43];const R=X(Y);let C;e[44]!==i?(C=n=>i.call("ORGANIZATION_DOMAIN_REMOVE",{id:n}),e[44]=i,e[45]=C):C=e[45];let P;e[46]!==a||e[47]!==t?(P=()=>{a(),N.success(t("settings.domainSettings.domainRemoved"))},e[46]=a,e[47]=t,e[48]=P):P=e[48];let T;e[49]!==t?(T=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedRemove")),e[49]=t,e[50]=T):T=e[50];let $;e[51]!==C||e[52]!==P||e[53]!==T?($={mutationFn:C,onSuccess:P,onError:T},e[51]=C,e[52]=P,e[53]=T,e[54]=$):$=e[54];const _=X($);if(M)return null;let L;e[55]!==h?.domains?(L=h?.domains??[],e[55]=h?.domains,e[56]=L):L=e[56];const ee=L;let V;e[57]!==t?(V=t("settings.domainSettings.emailDomains"),e[57]=t,e[58]=V):V=e[58];let k;e[59]!==t?(k=t("settings.domainSettings.emailDomainsDescription"),e[59]=t,e[60]=k):k=e[60];let q;if(e[61]!==ee||e[62]!==_||e[63]!==t||e[64]!==Q||e[65]!==R){let n;e[67]!==_||e[68]!==t||e[69]!==Q||e[70]!==R?(n=l=>{const D=l.verificationStatus==="verified";return s.jsx(fe,{title:s.jsxs("span",{className:"flex items-center gap-2",children:[l.domain,D?s.jsx(ne,{variant:"secondary",children:t("settings.domainSettings.verified")}):s.jsx(ne,{variant:"outline",children:t("settings.domainSettings.pending")})]}),description:D?Me(l.joinMode,l.domain,t):t("settings.domainSettings.addDnsRecordInstruction"),action:s.jsxs("div",{className:"flex items-center gap-2",children:[D&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:t("settings.domainSettings.joinMode")}),s.jsxs(pe,{value:l.joinMode,onValueChange:le=>Q.mutate({id:l.id,joinMode:le}),children:[s.jsx(he,{className:"w-44",size:"sm",children:s.jsx(Ne,{})}),s.jsxs(ve,{children:[s.jsx(se,{value:"off",children:t("settings.domainSettings.joinModeOff")}),s.jsx(se,{value:"auto",children:t("settings.domainSettings.joinModeAuto")}),s.jsx(se,{value:"request",children:t("settings.domainSettings.joinModeRequest")})]})]})]}),!D&&s.jsx(te,{size:"sm",variant:"outline",onClick:()=>R.mutate(l.id),disabled:R.isPending,children:t("settings.domainSettings.verify")}),s.jsx(te,{size:"sm",variant:"ghost",onClick:()=>_.mutate(l.id),disabled:_.isPending,children:t("settings.domainSettings.remove")})]}),children:!D&&l.recordName&&l.recordValue&&s.jsx(Ie,{recordName:l.recordName,recordValue:l.recordValue})},l.id)},e[67]=_,e[68]=t,e[69]=Q,e[70]=R,e[71]=n):n=e[71],q=ee.map(n),e[61]=ee,e[62]=_,e[63]=t,e[64]=Q,e[65]=R,e[66]=q}else q=e[66];let J;e[72]===Symbol.for("react.memo_cache_sentinel")?(J=n=>v(n.target.value),e[72]=J):J=e[72];let z;e[73]!==t?(z=t("settings.domainSettings.domainPlaceholder"),e[73]=t,e[74]=z):z=e[74];let F;e[75]!==d||e[76]!==z?(F=s.jsx(xe,{value:d,onChange:J,placeholder:z,className:"max-w-xs"}),e[75]=d,e[76]=z,e[77]=F):F=e[77];let w;e[78]!==r||e[79]!==d?(w=()=>r.mutate(d.trim()),e[78]=r,e[79]=d,e[80]=w):w=e[80];let G;e[81]!==r.isPending||e[82]!==d?(G=!d.trim()||r.isPending,e[81]=r.isPending,e[82]=d,e[83]=G):G=e[83];let Z;e[84]!==r.isPending||e[85]!==t?(Z=r.isPending?t("settings.domainSettings.adding"):t("settings.domainSettings.addDomain"),e[84]=r.isPending,e[85]=t,e[86]=Z):Z=e[86];let B;e[87]!==w||e[88]!==G||e[89]!==Z?(B=s.jsx(te,{size:"sm",onClick:w,disabled:G,children:Z}),e[87]=w,e[88]=G,e[89]=Z,e[90]=B):B=e[90];let H;e[91]!==F||e[92]!==B?(H=s.jsxs("div",{className:"flex items-center gap-2 p-4",children:[F,B]}),e[91]=F,e[92]=B,e[93]=H):H=e[93];let K;e[94]!==q||e[95]!==H?(K=s.jsxs(Se,{children:[q,H]}),e[94]=q,e[95]=H,e[96]=K):K=e[96];let W;return e[97]!==V||e[98]!==k||e[99]!==K?(W=s.jsx(je,{title:V,description:k,children:K}),e[97]=V,e[98]=k,e[99]=K,e[100]=W):W=e[100],W}function Ie(e){const t=oe.c(34),{recordName:o,recordValue:p}=e,i=ae();let d;t[0]!==i?(d=I=>{navigator.clipboard?.writeText(I),N.success(i("settings.domainSettings.copied"))},t[0]=i,t[1]=d):d=t[1];const v=d;let c;t[2]!==i?(c=i("settings.domainSettings.dnsInstructions"),t[2]=i,t[3]=c):c=t[3];let m;t[4]!==c?(m=s.jsx("p",{className:"text-muted-foreground",children:c}),t[4]=c,t[5]=m):m=t[5];let x;t[6]!==v||t[7]!==o?(x=()=>v(o),t[6]=v,t[7]=o,t[8]=x):x=t[8];let h;t[9]!==i?(h=i("settings.domainSettings.txt"),t[9]=i,t[10]=h):h=t[10];let M;t[11]!==h?(M=s.jsxs("span",{className:"text-muted-foreground",children:[h," "]}),t[11]=h,t[12]=M):M=t[12];let S;t[13]!==o||t[14]!==x||t[15]!==M?(S=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:x,children:[M,o]}),t[13]=o,t[14]=x,t[15]=M,t[16]=S):S=t[16];let a;t[17]!==v||t[18]!==p?(a=()=>v(p),t[17]=v,t[18]=p,t[19]=a):a=t[19];let g;t[20]!==i?(g=i("settings.domainSettings.value"),t[20]=i,t[21]=g):g=t[21];let u;t[22]!==g?(u=s.jsxs("span",{className:"text-muted-foreground",children:[g," "]}),t[22]=g,t[23]=u):u=t[23];let f;t[24]!==p||t[25]!==u||t[26]!==a?(f=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:a,children:[u,p]}),t[24]=p,t[25]=u,t[26]=a,t[27]=f):f=t[27];let j;t[28]!==f||t[29]!==S?(j=s.jsxs("div",{className:"grid gap-1",children:[S,f]}),t[28]=f,t[29]=S,t[30]=j):j=t[30];let r;return t[31]!==j||t[32]!==m?(r=s.jsxs("div",{className:"mt-3 rounded-lg border border-border bg-muted/40 p-3 text-xs space-y-2",children:[m,j]}),t[31]=j,t[32]=m,t[33]=r):r=t[33],r}export{be as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as s,
|
|
1
|
+
import{c as d,j as s,bC as i,m as c}from"./index-5IFWC0PS.js";function x(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Root,{"data-slot":"drawer",...t}),e[2]=t,e[3]=a):a=e[3],a}function v(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Trigger,{"data-slot":"drawer-trigger",...t}),e[2]=t,e[3]=a):a=e[3],a}function m(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Portal,{"data-slot":"drawer-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function b(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Close,{"data-slot":"drawer-close",...t}),e[2]=t,e[3]=a):a=e[3],a}function w(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Overlay,{"data-slot":"drawer-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function g(l){const e=d.c(12);let t,a,r;e[0]!==l?({className:a,children:t,...r}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(w,{}),e[4]=o):o=e[4];let n;e[5]!==a?(n=c("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[95vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=n):n=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=f):f=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==n?(u=s.jsxs(m,{"data-slot":"drawer-portal",children:[o,s.jsxs(i.Content,{"data-slot":"drawer-content",className:n,...r,children:[f,t]})]}),e[8]=t,e[9]=r,e[10]=n,e[11]=u):u=e[11],u}function h(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("flex flex-col gap-1.5 px-4 py-2",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function j(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function D(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Title,{"data-slot":"drawer-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function N(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Description,{"data-slot":"drawer-description",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}export{x as D,g as a,D as b,N as c,v as d,h as e,b as f,j as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,
|
|
1
|
+
import{r as a,eQ as R}from"./index-5IFWC0PS.js";function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(e){if(Array.isArray(e))return e}function we(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function je(e,t){if(e==null)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pe(e,t){return be(e)||ye(e,t)||Re(e,t)||Oe()}function Ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Ee(e,"string");return typeof t=="symbol"?t:t+""}function Re(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function L(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function z(e){return{}.toString.call(e).includes("Object")}function Ce(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return z(t)||P("changeType"),Object.keys(t).some(function(r){return!Ae(e,r)})&&P("changeField"),t}function $e(e){D(e)||P("selectorType")}function De(e){D(e)||z(e)||P("handlerType"),z(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function Ve(e){e||P("initialIsRequired"),z(e)||P("initialType"),Ce(e)&&P("initialContent")}function xe(e,t){throw new Error(e[t]||e.default)}var Ne={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=L(xe)(Ne),U={changes:Le,selector:$e,handler:De,initial:Ve};function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U.initial(e),U.handler(t);var r={current:e},n=L(Fe)(r,t),o=L(ze)(r),i=L(U.changes)(e),c=L(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return U.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ue(ue({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var He={create:Ue},We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _e(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function ke(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ce("configIsRequired"),ke(e)||ce("configType"),e.urls?(Be(),{paths:{vs:e.urls.monacoBase}}):e}function Be(){console.warn(le.deprecation)}function Ge(e,t){throw new Error(e[t]||e.default)}var le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},ce=_e(Ge)(le),
|
|
11
|
+
`},ce=_e(Ge)(le),Qe={config:Ke},Ye=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,c){return c(i)},o)}};function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ie(ie({},e),t)}var Je={type:"cancelation",msg:"operation is manually canceled"};function J(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Je):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Xe=["monaco"],Ze=He.create({config:We,isInitialized:!1,resolve:null,reject:null,monaco:null}),fe=Pe(Ze,2),V=fe[0],F=fe[1];function et(e){var t=Qe.config(e),r=t.monaco,n=je(t,Xe);F(function(o){return{config:se(o.config,n),monaco:r}})}function tt(){var e=V(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(F({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),J(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),J(X);Ye(rt,ot)(it)}return J(X)}function rt(e){return document.body.appendChild(e)}function nt(e){var t=document.createElement("script");return e&&(t.src=e),t}function ot(e){var t=V(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=nt("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function it(){var e=V(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;de(n),e.resolve(n)},function(r){e.reject(r)})}function de(e){V().monaco||F({monaco:e})}function at(){return V(function(e){var t=e.monaco;return t})}var X=new Promise(function(e,t){return F({resolve:e,reject:t})}),ee={config:et,init:tt,__getMonacoInstance:at},ut={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Z=ut,ct={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},lt=ct;function st({children:e}){return R.createElement("div",{style:lt.container},e)}var ft=st,dt=ft;function pt({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:c}){return R.createElement("section",{style:{...Z.wrapper,width:e,height:t},...c},!r&&R.createElement(dt,null,n),R.createElement("div",{ref:o,style:{...Z.fullWidth,...!r&&Z.hide},className:i}))}var gt=pt,pe=a.memo(gt);function vt(e){a.useEffect(e,[])}var ge=vt;function ht(e,t,r=!0){let n=a.useRef(!0);a.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var y=ht;function $(){}function S(e,t,r,n){return mt(e,n)||bt(e,t,r,n)}function mt(e,t){return e.editor.getModel(ve(e,t))}function bt(e,t,r,n){return e.editor.createModel(t,r,n?ve(e,n):void 0)}function ve(e,t){return e.Uri.parse(t)}function wt({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:f=!1,theme:p="light",loading:j="Loading...",options:O={},height:H="100%",width:W="100%",className:_,wrapperProps:k={},beforeMount:K=$,onMount:B=$}){let[w,T]=a.useState(!1),[I,g]=a.useState(!0),v=a.useRef(null),d=a.useRef(null),C=a.useRef(null),m=a.useRef(B),u=a.useRef(K),E=a.useRef(!1);ge(()=>{let l=ee.init();return l.then(h=>(d.current=h)&&g(!1)).catch(h=>h?.type!=="cancelation"&&console.error("Monaco initialization: error:",h)),()=>v.current?A():l.cancel()}),y(()=>{if(v.current&&d.current){let l=v.current.getOriginalEditor(),h=S(d.current,e||"",n||r||"text",i||"");h!==l.getModel()&&l.setModel(h)}},[i],w),y(()=>{if(v.current&&d.current){let l=v.current.getModifiedEditor(),h=S(d.current,t||"",o||r||"text",c||"");h!==l.getModel()&&l.setModel(h)}},[c],w),y(()=>{let l=v.current.getModifiedEditor();l.getOption(d.current.editor.EditorOption.readOnly)?l.setValue(t||""):t!==l.getValue()&&(l.executeEdits("",[{range:l.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),l.pushUndoStop())},[t],w),y(()=>{v.current?.getModel()?.original.setValue(e||"")},[e],w),y(()=>{let{original:l,modified:h}=v.current.getModel();d.current.editor.setModelLanguage(l,n||r||"text"),d.current.editor.setModelLanguage(h,o||r||"text")},[r,n,o],w),y(()=>{d.current?.editor.setTheme(p)},[p],w),y(()=>{v.current?.updateOptions(O)},[O],w);let x=a.useCallback(()=>{if(!d.current)return;u.current(d.current);let l=S(d.current,e||"",n||r||"text",i||""),h=S(d.current,t||"",o||r||"text",c||"");v.current?.setModel({original:l,modified:h})},[r,t,o,e,n,i,c]),N=a.useCallback(()=>{!E.current&&C.current&&(v.current=d.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...O}),x(),d.current?.editor.setTheme(p),T(!0),E.current=!0)},[O,p,x]);a.useEffect(()=>{w&&m.current(v.current,d.current)},[w]),a.useEffect(()=>{!I&&!w&&N()},[I,w,N]);function A(){let l=v.current?.getModel();s||l?.original?.dispose(),f||l?.modified?.dispose(),v.current?.dispose()}return R.createElement(pe,{width:W,height:H,isEditorReady:w,loading:j,_ref:C,className:_,wrapperProps:k})}var yt=wt,At=a.memo(yt);function Ot(e){let t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}var jt=Ot,q=new Map;function Mt({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:s,loading:f="Loading...",options:p={},overrideServices:j={},saveViewState:O=!0,keepCurrentModel:H=!1,width:W="100%",height:_="100%",className:k,wrapperProps:K={},beforeMount:B=$,onMount:w=$,onChange:T,onValidate:I=$}){let[g,v]=a.useState(!1),[d,C]=a.useState(!0),m=a.useRef(null),u=a.useRef(null),E=a.useRef(null),x=a.useRef(w),N=a.useRef(B),A=a.useRef(),l=a.useRef(n),h=jt(i),te=a.useRef(!1),G=a.useRef(!1);ge(()=>{let b=ee.init();return b.then(M=>(m.current=M)&&C(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>u.current?me():b.cancel()}),y(()=>{let b=S(m.current,e||n||"",t||o||"",i||r||"");b!==u.current?.getModel()&&(O&&q.set(h,u.current?.saveViewState()),u.current?.setModel(b),O&&u.current?.restoreViewState(q.get(i)))},[i],g),y(()=>{u.current?.updateOptions(p)},[p],g),y(()=>{!u.current||n===void 0||(u.current.getOption(m.current.editor.EditorOption.readOnly)?u.current.setValue(n):n!==u.current.getValue()&&(G.current=!0,u.current.executeEdits("",[{range:u.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),u.current.pushUndoStop(),G.current=!1))},[n],g),y(()=>{let b=u.current?.getModel();b&&o&&m.current?.editor.setModelLanguage(b,o)},[o],g),y(()=>{s!==void 0&&u.current?.revealLine(s)},[s],g),y(()=>{m.current?.editor.setTheme(c)},[c],g);let re=a.useCallback(()=>{if(!(!E.current||!m.current)&&!te.current){N.current(m.current);let b=i||r,M=S(m.current,n||e||"",t||o||"",b||"");u.current=m.current?.editor.create(E.current,{model:M,automaticLayout:!0,...p},j),O&&u.current.restoreViewState(q.get(b)),m.current.editor.setTheme(c),s!==void 0&&u.current.revealLine(s),v(!0),te.current=!0}},[e,t,r,n,o,i,p,j,O,c,s]);a.useEffect(()=>{g&&x.current(u.current,m.current)},[g]),a.useEffect(()=>{!d&&!g&&re()},[d,g,re]),l.current=n,a.useEffect(()=>{g&&T&&(A.current?.dispose(),A.current=u.current?.onDidChangeModelContent(b=>{G.current||T(u.current.getValue(),b)}))},[g,T]),a.useEffect(()=>{if(g){let b=m.current.editor.onDidChangeMarkers(M=>{let Q=u.current.getModel()?.uri;if(Q&&M.find(Y=>Y.path===Q.path)){let Y=m.current.editor.getModelMarkers({resource:Q});I?.(Y)}});return()=>{b?.dispose()}}return()=>{}},[g,I]);function me(){A.current?.dispose(),H?O&&q.set(i,u.current.saveViewState()):u.current.getModel()?.dispose(),u.current.dispose()}return R.createElement(pe,{width:W,height:_,isEditorReady:g,loading:f,_ref:E,className:k,wrapperProps:K})}var Pt=Mt,Et=a.memo(Pt),Lt=Et;const St="0.52.0",Rt={version:St},he=`/monaco/${Rt.version}/vs`,Tt=`${he}/base/worker/workerMain.js`;function It(){ee.config({paths:{vs:he}});const e={...globalThis.MonacoEnvironment,getWorkerUrl:()=>Tt};globalThis.MonacoEnvironment=e}It();export{Lt as F,It as c,ee as l,At as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as y,m as h,b as X,r as x,j as a,bu as G}from"./index-5IFWC0PS.js";import{aX as F}from"./agent-icon-bK3wLPrb.js";import{s as J}from"./Trash01-Cqkcp6ky.js";const Q=new Set(["http:","https:","mailto:","tel:","ftp:"]);function V(s){if(s.startsWith("/")||s.startsWith(".")||s.startsWith("#"))return!0;try{const e=new URL(s,"https://placeholder.invalid");return Q.has(e.protocol)}catch{return!1}}function Y(s){const e=s.trim();return e?e.startsWith("/")||e.startsWith(".")||e.startsWith("#")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)?e:`https://${e}`:""}const ee="noopener noreferrer nofollow";function D(s){const e=y.c(8),{active:n,label:i,onClick:c,children:r}=s,l=n?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground";let t;e[0]!==l?(t=h("flex h-7 w-7 items-center justify-center rounded-[var(--studio-control-radius,var(--radius))] transition-colors cursor-pointer",l),e[0]=l,e[1]=t):t=e[1];let u;return e[2]!==n||e[3]!==r||e[4]!==i||e[5]!==c||e[6]!==t?(u=a.jsx("button",{type:"button","aria-label":i,"aria-pressed":n,onMouseDown:te,onClick:c,className:t,children:r}),e[2]=n,e[3]=r,e[4]=i,e[5]=c,e[6]=t,e[7]=u):u=e[7],u}function te(s){return s.preventDefault()}function K(s){const e=y.c(7),{active:n,label:i,onSelect:c}=s,r=n?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground";let l;e[0]!==r?(l=h("flex-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",r),e[0]=r,e[1]=l):l=e[1];let t;return e[2]!==n||e[3]!==i||e[4]!==c||e[5]!==l?(t=a.jsx("button",{type:"button","aria-pressed":n,onMouseDown:ne,onClick:c,className:l,children:i}),e[2]=n,e[3]=i,e[4]=c,e[5]=l,e[6]=t):t=e[6],t}function ne(s){return s.preventDefault()}function P(s){const e=y.c(8),{active:n,icon:i,label:c,onSelect:r}=s,l=n?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground";let t;e[0]!==l?(t=h("flex flex-1 items-center justify-center gap-1 rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs transition-colors cursor-pointer",l),e[0]=l,e[1]=t):t=e[1];let u;return e[2]!==n||e[3]!==i||e[4]!==c||e[5]!==r||e[6]!==t?(u=a.jsxs("button",{type:"button","aria-pressed":n,onMouseDown:re,onClick:r,className:t,children:[i,c]}),e[2]=n,e[3]=i,e[4]=c,e[5]=r,e[6]=t,e[7]=u):u=e[7],u}function re(s){return s.preventDefault()}function ie(s){const e=y.c(27),{editor:n,active:i,open:c,onOpenChange:r,sources:l}=s,t=X(),[u,z]=x.useState(""),[d,C]=x.useState(!0),[A,E]=x.useState(!1),[S,_]=x.useState("url");let m;e[0]!==i||e[1]!==n||e[2]!==r?(m=()=>{const o=n.getAttributes("link");z(typeof o.href=="string"?o.href:""),C(i?o.target==="_blank":!0),E(!1),_("url"),r(!0)},e[0]=i,e[1]=n,e[2]=r,e[3]=m):m=e[3];const Z=m;let v;e[4]!==n||e[5]!==r?(v=()=>{r(!1),n.chain().focus().run()},e[4]=n,e[5]=r,e[6]=v):v=e[6];const M=v;let b;e[7]!==n||e[8]!==d||e[9]!==r?(b=(o,B)=>{const U=B===void 0?!1:B,R=U?o.trim():Y(o);if(R===""){n.chain().focus().extendMarkRange("link").unsetLink().run(),r(!1);return}if(!U&&!V(R)){E(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:R,target:d?"_blank":null,rel:d?ee:null}).run(),r(!1)},e[7]=n,e[8]=d,e[9]=r,e[10]=b):b=e[10];const g=b;let k;e[11]!==g||e[12]!==u?(k=()=>g(u),e[11]=g,e[12]=u,e[13]=k):k=e[13];const W=k;let L;e[14]!==n||e[15]!==r?(L=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),r(!1)},e[14]=n,e[15]=r,e[16]=L):L=e[16];const q=L,I=!!l?.length,$=l?.find(o=>o.id===S),O=x.useRef(null),H="relative";let f;e[17]!==t?(f=t("sectionsEditor.richTextLinkControl.linkButtonLabel"),e[17]=t,e[18]=f):f=e[18];const w=c?M:Z;let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(F,{size:14}),e[19]=j):j=e[19];let p;e[20]!==i||e[21]!==f||e[22]!==w?(p=a.jsx(D,{active:i,label:f,onClick:w,children:j}),e[20]=i,e[21]=f,e[22]=w,e[23]=p):p=e[23];const N=c&&a.jsxs("div",{ref:O,className:h("absolute left-0 top-full z-20 mt-1.5 flex flex-col gap-1 rounded-[var(--studio-surface-radius,var(--radius-md))] bg-popover p-1 shadow-soft",I?"w-80":"w-64"),onBlur:()=>{requestAnimationFrame(()=>{O.current?.contains(document.activeElement)||r(!1)})},children:[I&&a.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[a.jsx(P,{active:S==="url",icon:a.jsx(F,{size:12}),label:t("sectionsEditor.richTextLinkControl.tabUrl"),onSelect:()=>_("url")}),l?.map(o=>a.jsx(P,{active:S===o.id,icon:o.icon,label:o.label,onSelect:()=>_(o.id)},o.id))]}),$?$.render(o=>g(o,!0)):a.jsxs("div",{className:"flex items-center gap-0.5",children:[a.jsx("input",{autoFocus:!0,type:"text","aria-label":t("sectionsEditor.richTextLinkControl.urlInputAriaLabel"),"aria-invalid":A,placeholder:t("sectionsEditor.richTextLinkControl.urlInputPlaceholder"),value:u,onChange:o=>{z(o.target.value),E(!1)},onKeyDown:o=>{o.key==="Enter"?(o.preventDefault(),W()):o.key==="Escape"&&(o.preventDefault(),M())},className:h("h-7 flex-1 rounded-[var(--studio-control-radius,var(--radius))] bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",A&&"text-destructive")}),a.jsx(D,{active:!1,label:t("sectionsEditor.richTextLinkControl.applyLinkLabel"),onClick:W,children:a.jsx(G,{size:14})}),i&&a.jsx(D,{active:!1,label:t("sectionsEditor.richTextLinkControl.removeLinkLabel"),onClick:q,children:a.jsx(J,{size:14})})]}),a.jsxs("div",{className:"flex items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 p-0.5",children:[a.jsx(K,{active:!d,label:t("sectionsEditor.richTextLinkControl.sameTabLabel"),onSelect:()=>C(!1)}),a.jsx(K,{active:d,label:t("sectionsEditor.richTextLinkControl.newTabLabel"),onSelect:()=>C(!0)})]})]});let T;return e[24]!==p||e[25]!==N?(T=a.jsxs("div",{className:H,children:[p,N]}),e[24]=p,e[25]=N,e[26]=T):T=e[26],T}const le="[&_a]:cursor-pointer [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/60 [&_a]:underline-offset-2 [&_a]:rounded-sm [&_a]:bg-primary/5 [&_a]:px-0.5";export{le as E,ie as R,D as T,V as i,Y as n};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{r as q,c as k,b as J,j as n,m as d,B as M,a5 as ce,b3 as ae,bk as Z,bz as U,by as fe}from"./index-5IFWC0PS.js";import{af as de}from"./agent-icon-bK3wLPrb.js";import{i as ue}from"./Play-DROL2O51.js";import{S as X}from"./sandbox-start-errors-BK_aDCyt.js";import{G as me}from"./pair-DsQEIDjk.js";import{C as pe}from"./section-array-field-Dqv2uZIX.js";import"./site-editor-toast-CAmfWZOg.js";import{a0 as xe,o as he,a1 as $,Y as ye,y as F,a2 as ge}from"./blocks-tab-states-CPXZUbSV.js";const Q=q.createContext(!1),nt=Q.Provider;function it(){return q.useContext(Q)}const ve={provision:0,cloning:1,install:2,dev:3};function _e(t){return ve[t.step]}const W=48,ee=28,te=3,be=(()=>{const t=[];let e=0;for(let s=0;s<W;s++)s===ee?t.push(null):(t.push(e/(W-1)*te),e++);return t})();function je(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Se(t,e,s){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?pe[e.kind].long:s[t.step]}const N="bg-foreground/[0.05]",j="bg-foreground/[0.09]",Ne=Array.from({length:35},()=>Math.random()*1.8),Te=Array.from({length:35},()=>Math.random()<.4);function ke(t){const e=k.c(31),{progress:s,claimPhase:o}=t,i=J();let r;e[0]!==s?(r=_e(s),e[0]=s,e[1]=r):r=e[1];const l=r;let c;e[2]!==o||e[3]!==s||e[4]!==i?(c=Se(s,o,je(i)),e[2]=o,e[3]=s,e[4]=i,e[5]=c):c=e[5];const a=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(me,{}),e[6]=p):p=e[6];const m=`${s.step}-${a}`;let u;e[7]!==a||e[8]!==m?(u=n.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[p,n.jsxs("span",{className:"animate-in fade-in text-sm font-medium text-foreground/85 duration-500",children:[a,"…"]},m)]}),e[7]=a,e[8]=m,e[9]=u):u=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Ee,{}),e[10]=v):v=e[10];let f;e[11]!==l?(f=n.jsx(L,{phase:0,current:l,children:v}),e[11]=l,e[12]=f):f=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Ce,{}),e[13]=y):y=e[13];let g;e[14]!==l?(g=n.jsx(L,{phase:1,current:l,children:y}),e[14]=l,e[15]=g):g=e[15];let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(we,{}),e[16]=x):x=e[16];let h;e[17]!==l?(h=n.jsx(L,{phase:2,current:l,children:x}),e[17]=l,e[18]=h):h=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Pe,{}),e[19]=S):S=e[19];let _;e[20]!==l?(_=n.jsx(L,{phase:3,current:l,children:S}),e[20]=l,e[21]=_):_=e[21];let b;e[22]!==h||e[23]!==_||e[24]!==f||e[25]!==g?(b=n.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[f,g,h,_]}),e[22]=h,e[23]=_,e[24]=f,e[25]=g,e[26]=b):b=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=n.jsx("style",{children:`
|
|
2
|
+
@keyframes vm-pulse-soft {
|
|
3
|
+
0%, 100% { opacity: 0.25; }
|
|
4
|
+
50% { opacity: 1; }
|
|
5
|
+
}
|
|
6
|
+
@keyframes vm-breathe {
|
|
7
|
+
0%, 100% { opacity: 0.5; }
|
|
8
|
+
50% { opacity: 1; }
|
|
9
|
+
}
|
|
10
|
+
@keyframes vm-rack-scan {
|
|
11
|
+
0%, 100% { opacity: 0; }
|
|
12
|
+
8% { opacity: 1; }
|
|
13
|
+
22% { opacity: 0; }
|
|
14
|
+
}
|
|
15
|
+
`}),e[27]=R):R=e[27];let T;return e[28]!==b||e[29]!==u?(T=n.jsxs("div",{className:"relative flex w-full flex-col items-center justify-center gap-12 select-none [clip-path:inset(-24px_0_-200px_0)]",children:[u,b,R]}),e[28]=b,e[29]=u,e[30]=T):T=e[30],T}function L(t){const e=k.c(10),{phase:s,current:o,children:i}=t,r=s-o,l=r<0,c=r===0,a=l?90:r*-22,p=l?.94:1-Math.max(r,0)*.04,m=l?0:c?1:r===1?.8:.55,u=l?10:30-r,v=!c;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=d("absolute inset-0 overflow-hidden rounded-xl border border-foreground/10 bg-background shadow-[0_20px_60px_-20px_rgb(0_0_0_/_0.35)] transition-all ease-[cubic-bezier(0.22,1,0.36,1)]"),e[0]=f):f=e[0];const y=`translateY(${a}px) scale(${p})`,g=c?"auto":"none";let x;e[1]!==m||e[2]!==y||e[3]!==g||e[4]!==u?(x={transform:y,opacity:m,zIndex:u,transitionDuration:"1000ms",pointerEvents:g},e[1]=m,e[2]=y,e[3]=g,e[4]=u,e[5]=x):x=e[5];let h;return e[6]!==i||e[7]!==v||e[8]!==x?(h=n.jsx("div",{"aria-hidden":v,className:f,style:x,children:i}),e[6]=i,e[7]=v,e[8]=x,e[9]=h):h=e[9],h}function B(t){const e=k.c(7),{showUrl:s}=t,o=s===void 0?!1:s;let i,r,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:d("size-2.5 rounded-full",j)}),r=n.jsx("div",{className:d("size-2.5 rounded-full",j)}),l=n.jsx("div",{className:d("size-2.5 rounded-full",j)}),e[0]=i,e[1]=r,e[2]=l):(i=e[0],r=e[1],l=e[2]);let c;e[3]!==o?(c=o&&n.jsx("div",{className:d("ml-3 h-3.5 max-w-[220px] flex-1 rounded-sm",N)}),e[3]=o,e[4]=c):c=e[4];let a;return e[5]!==c?(a=n.jsxs("div",{className:"flex h-7 shrink-0 items-center gap-1.5 px-3",children:[i,r,l,c]}),e[5]=c,e[6]=a):a=e[6],a}function Ee(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"flex flex-1 px-8 py-5",children:n.jsx("div",{className:"grid h-full w-full grid-cols-8 grid-rows-6 gap-2",children:be.map(Re)})})]}),t[1]=s):s=t[1],s}function Re(t,e){if(e===ee)return n.jsx("div",{className:"rounded-md bg-chart-1/[0.55]",style:{animation:"vm-breathe 2.4s ease-in-out infinite"}},e);const s=t;return n.jsx("div",{className:d("relative rounded-md",j),children:n.jsx("div",{className:"absolute inset-0 rounded-md bg-chart-1/40 opacity-0",style:{animation:`vm-rack-scan ${te}s ease-in-out infinite`,animationDelay:`${s}s`}})},e)}function Ce(){const t=k.c(5);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:d("w-[18%] rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out infinite"}}),t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"h-[42%] shrink-0 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.4s infinite"}}),t[2]=o):o=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"col-span-3 rounded-md bg-chart-3/[0.12]",style:{animation:"vm-breathe 3s ease-in-out 0.8s infinite"}}),t[3]=i):i=t[3];let r;return t[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1 gap-1.5 p-3",children:[s,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[o,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-1.5",children:[i,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-1.5",children:[n.jsx("div",{className:d("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.2s infinite"}}),n.jsx("div",{className:d("rounded-md",N),style:{animation:"vm-breathe 3s ease-in-out 1.6s infinite"}})]})]})]})]})]}),t[4]=r):r=t[4],r}function we(){const t=k.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsx("div",{className:"relative flex flex-1 items-center justify-center px-8 py-5",children:n.jsx("div",{className:"grid w-full gap-2",style:{gridTemplateColumns:"repeat(7, minmax(0, 1fr))"},children:Ne.map(De)})})]}),t[1]=s):s=t[1],s}function De(t,e){return n.jsx("div",{className:d("aspect-square rounded-md",Te[e]?"bg-chart-2/70":j),style:{animation:`vm-pulse-soft 2.2s ease-in-out ${t}s infinite`}},e)}function Pe(){const t=k.c(11);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{showUrl:!0}),t[0]=e):e=t[0];let s,o,i,r,l;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"mb-2 h-5 rounded-md bg-chart-1/[0.10]"}),o=n.jsx("div",{className:d("h-1.5 w-[70%] rounded-sm",j)}),i=n.jsx("div",{className:d("h-1.5 w-[55%] rounded-sm",j)}),r=n.jsx("div",{className:d("h-1.5 w-[80%] rounded-sm",j)}),l=n.jsx("div",{className:d("h-1.5 w-[50%] rounded-sm",j)}),t[1]=s,t[2]=o,t[3]=i,t[4]=r,t[5]=l):(s=t[1],o=t[2],i=t[3],r=t[4],l=t[5]);let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsxs("div",{className:"flex w-[18%] shrink-0 flex-col gap-1.5 bg-chart-1/[0.05] p-2.5",children:[s,o,i,r,l,n.jsx("div",{className:"mt-auto",children:n.jsx("div",{className:d("h-4 rounded-md",j)})})]}),t[6]=c):c=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"relative h-[42%] shrink-0 overflow-hidden bg-chart-1/[0.10]",children:n.jsxs("div",{className:"absolute right-3 bottom-3 left-3 space-y-1.5",children:[n.jsx("div",{className:"h-3 w-[35%] rounded-sm bg-chart-1/[0.15]"}),n.jsx("div",{className:d("h-1.5 w-[55%] rounded-sm",N)})]})}),t[7]=a):a=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs("div",{className:"flex shrink-0 gap-1.5",children:[n.jsx("div",{className:"h-4 w-12 rounded-full bg-chart-1/[0.12]"}),n.jsx("div",{className:d("h-4 w-10 rounded-full",N)}),n.jsx("div",{className:d("h-4 w-14 rounded-full",N)})]}),t[8]=p):p=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs("div",{className:d("col-span-3 flex flex-col justify-end gap-1 rounded-md p-2",N),children:[n.jsx("div",{className:d("h-1.5 w-[50%] rounded-sm",j)}),n.jsx("div",{className:d("h-1 w-[75%] rounded-sm",j)})]}),t[9]=m):m=t[9];let u;return t[10]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs("div",{className:"flex h-full flex-col",children:[e,n.jsxs("div",{className:"flex min-h-0 flex-1",children:[c,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[a,n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 p-3",children:[p,n.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-5 gap-2",children:[m,n.jsxs("div",{className:"col-span-2 grid grid-rows-2 gap-2",children:[n.jsx("div",{className:d("rounded-md",N)}),n.jsx("div",{className:d("rounded-md",N)})]})]})]})]})]})]}),t[10]=u):u=t[10],u}function ot(t){const e=k.c(52),s=J();if(t.kind==="starting"){let f;return e[0]!==t.claimPhase||e[1]!==t.progress?(f=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsx(ke,{progress:t.progress,claimPhase:t.claimPhase})}),e[0]=t.claimPhase,e[1]=t.progress,e[2]=f):f=e[2],f}if(t.kind==="errored"){const f=t.error.code===X.githubNotAuthenticated,y=t.error.code===X.githubConnectionMissing;let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ce,{className:"size-12 text-destructive"}),e[3]=g):g=e[3];let x;e[4]!==s?(x=s("sandbox.stateCard.erroredHeadline"),e[4]=s,e[5]=x):x=e[5];let h;e[6]!==x?(h=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[6]=x,e[7]=h):h=e[7];let S;e[8]!==y||e[9]!==f||e[10]!==t.error.message||e[11]!==s?(S=y?s("sandbox.stateCard.githubConnectionMissingMessage"):f?s("sandbox.stateCard.githubNotAuthenticatedMessage"):t.error.message,e[8]=y,e[9]=f,e[10]=t.error.message,e[11]=s,e[12]=S):S=e[12];let _;e[13]!==S?(_=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:S}),e[13]=S,e[14]=_):_=e[14];let b;e[15]!==y||e[16]!==f||e[17]!==t.connectionsHref||e[18]!==s?(b=(f||y)&&t.connectionsHref&&n.jsx(M,{asChild:!0,children:n.jsx("a",{href:t.connectionsHref,children:s(y?"sandbox.stateCard.linkRepoAgain":"sandbox.stateCard.reconnectGithub")})}),e[15]=y,e[16]=f,e[17]=t.connectionsHref,e[18]=s,e[19]=b):b=e[19];const R=t.onRetry;let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(ae,{className:"size-4"}),e[20]=T):T=e[20];let C;e[21]!==s?(C=s("sandbox.stateCard.retry"),e[21]=s,e[22]=C):C=e[22];let w;e[23]!==t.onRetry||e[24]!==C?(w=n.jsxs(M,{variant:"outline",onClick:R,children:[T," ",C]}),e[23]=t.onRetry,e[24]=C,e[25]=w):w=e[25];let D;e[26]!==b||e[27]!==w?(D=n.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[b,w]}),e[26]=b,e[27]=w,e[28]=D):D=e[28];let A;return e[29]!==D||e[30]!==h||e[31]!==_?(A=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[g,h,_,D]})}),e[29]=D,e[30]=h,e[31]=_,e[32]=A):A=e[32],A}let o;e[33]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(de,{className:"size-12 text-muted-foreground"}),e[33]=o):o=e[33];let i;e[34]!==s?(i=s("sandbox.stateCard.suspendedHeadline"),e[34]=s,e[35]=i):i=e[35];let r;e[36]!==i?(r=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[36]=i,e[37]=r):r=e[37];let l;e[38]!==s?(l=s("sandbox.stateCard.resumeToContinue"),e[38]=s,e[39]=l):l=e[39];let c;e[40]!==l?(c=n.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:l}),e[40]=l,e[41]=c):c=e[41];const a=t.onResume;let p;e[42]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(ue,{className:"size-4"}),e[42]=p):p=e[42];let m;e[43]!==s?(m=s("sandbox.stateCard.resume"),e[43]=s,e[44]=m):m=e[44];let u;e[45]!==t.onResume||e[46]!==m?(u=n.jsxs(M,{onClick:a,className:"mt-2",children:[p," ",m]}),e[45]=t.onResume,e[46]=m,e[47]=u):u=e[47];let v;return e[48]!==r||e[49]!==c||e[50]!==u?(v=n.jsx("div",{className:"flex h-full w-full items-center justify-center bg-background p-6",children:n.jsxs("div",{className:"flex w-full max-w-md flex-col items-center gap-4 text-center",children:[o,r,c,u]})}),e[48]=r,e[49]=c,e[50]=u,e[51]=v):v=e[51],v}function lt(t){switch(t.lifecycle.phase){case"cloning":case"checking-out":return{step:"cloning",status:"doing"};case"clone-failed":return{step:"cloning",status:"failed"};case"installing":return{step:"install",status:"doing"};case"install-failed":return{step:"install",status:"failed"};case"starting":return{step:"dev",status:"doing"};case"running":return{step:"dev",status:"done"};case"start-failed":return{step:"dev",status:"failed"};case"crashed":return{step:"dev",status:"failed"};case"idle":return t.claimPhase&&t.claimPhase.kind!=="ready"&&t.claimPhase.kind!=="failed"?{step:"provision",status:"doing"}:{step:"cloning",status:"doing"}}}const Oe="website/sections/Rendering/Lazy.tsx";function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Y(t){if(!I(t))return!1;const e=t.__resolveType;return typeof e=="string"&&Z(e)}function Ae(t){return t!=null}function V(t){if(t==null)return t;if(Y(t)){const e=t.section;return e==null?null:I(e)?e:{}}return I(t)?t:void 0}function Le(t,e){return t===null?null:Y(e)?{...e,section:t}:t}function rt(t){return{__resolveType:t}}function ct(t,e){if(!Ae(e))return null;if(t){const s=V(e)??{};return{__resolveType:Oe,section:s}}return Y(e)?V(e)??null:I(e)?e:null}const E="website/sections/Seo/SeoV2.tsx",Ie=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function P(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function $e(t,e){return typeof t.__resolveType=="string"&&O(t.__resolveType,e)?!0:Ie.some(s=>s in t)}function at(t,e){return Object.entries(t).filter(([s,o])=>{if(!P(o))return!1;const i=o.__resolveType;return he(s,o)||typeof i=="string"&&O(i,e)}).map(([s])=>s)}function Be(t,e){for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o,r=i.__resolveType;if(typeof r=="string"&&xe(r,e))continue;const l=i.seo;if(P(l)){const c=l;if($e(c,e))return{blockKey:s,kind:"nested",seoData:c,blockData:i,seoResolveType:e?Ye(e,i,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:E}}}for(const[s,o]of Object.entries(t)){if(!P(o)||U(o))continue;const i=o;if(typeof i.__resolveType=="string"&&O(i.__resolveType,e))return{blockKey:s,kind:"block",seoData:i,blockData:i,seoResolveType:i.__resolveType}}return null}function Ke(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function ft(t,e,s){if(e.kind==="site"){const a=Be(t,s);return a?{blockKey:a.blockKey,seoData:a.seoData,seoResolveType:a.seoResolveType,siteKind:a.kind,seoTypeOptions:s?oe(s,a.blockData):void 0,build:p=>Ke(a,p)}:null}const o=t[e.pageKey];if(!P(o))return null;const i=o,r=i.seo,l=V(r),c=l&&P(l)?l:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:s?Fe(s,c):typeof c?.__resolveType=="string"?c.__resolveType:E,seoTypeOptions:s?K(s):void 0,build:a=>({...i,seo:a===null?null:Le(a,r)})}}const Me="General";function H(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function O(t,e){return H(t)?!0:!e||!$(e)?!1:K(e).some(s=>s.resolveType===t)}function dt(t,e,s){const o=new Set;let i=t;for(let r=0;r<32;r++){if(o.has(i))return null;if(o.add(i),!Object.hasOwn(e,i))return F(i,s)?i:null;const l=e[i];if(!l||typeof l!="object"||Array.isArray(l))return null;const c=l.__resolveType;if(typeof c!="string"||!c)return null;i=c}return null}function se(t,e){return t===E?Me:e}function ne(t,e){const s=ge(t),o=$(e),i=new Set,r=[];for(const l of s){if(o){if(Z(l.resolveType))continue}else if(!H(l.resolveType))continue;fe(l.resolveType,e)||i.has(l.resolveType)||(i.add(l.resolveType),r.push({resolveType:l.resolveType,title:se(l.resolveType,l.title),description:l.description}))}return r}function K(t){const e=ye(t),s=F(e,t),o=ne(s?.properties?.seo,t);return o.length>0?o:$(t)?[]:ze(t)}function ze(t){const e=t.manifest?.blocks??{},s=[];for(const[o,i]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(i)){if(!H(r))continue;const l=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;s.push({resolveType:r,title:se(r,l)})}return s}function ie(t){const e=K(t),s=e.find(i=>i.resolveType===E);if(s)return s.resolveType;const o=$(t)?"":E;return e[0]?.resolveType??o}function oe(t,e){const s=e.__resolveType;if(typeof s=="string"){const o=F(s,t),i=ne(o?.properties?.seo,t);if(i.length>0)return i}return K(t)}function Ve(t,e){const s=oe(t,e),o=s.find(i=>i.resolveType===E);return o?o.resolveType:s[0]?.resolveType??ie(t)}function Fe(t,e){const s=e?.__resolveType;return typeof s=="string"&&s.length>0?s:ie(t)}function Ye(t,e,s){const o=s.__resolveType;return typeof o=="string"&&O(o,t)?o:Ve(t,e)}const G=["type","title","description","canonical","noIndexing","favicon","image","themeColor"],le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],re=["jsonLD","title","description","noIndexing","configJsonLD"];function He(t){return t===E||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":null}function Ge(t){const e=t.toLowerCase();return/pdp|product/.test(e)?"pdp":/plp|listing|categor|search/.test(e)?"plp":null}function z(t,e){const s=Object.keys(t.properties??{}).filter(o=>o!=="__resolveType");return s.length>0&&s.every(o=>e.includes(o))}function Ue(t,e,s=!1){const o=He(t);if(o)return o;if(!s||t.includes("/"))return"full";const i=Ge(t);return e?i==="pdp"&&z(e,le)?"pdp":i==="plp"&&z(e,re)?"plp":z(e,G)?"general":"full":i??"full"}function Xe(t){switch(t){case"general":return G;case"pdp":return le;case"plp":return re;default:return null}}function ut(t,e,s=!1){const o=Xe(Ue(e,t,s));if(!o||!t.properties)return t;const i={};for(const r of o){const l=t.properties[r];l&&(i[r]=l)}return{...t,properties:i}}function mt(){return G.filter(t=>t!=="type")}function pt(t){const e=k.c(10),{icon:s,title:o,description:i}=t;let r;e[0]!==s?(r=s&&n.jsx(s,{size:24,className:"text-muted-foreground/60"}),e[0]=s,e[1]=r):r=e[1];let l;e[2]!==o?(l=n.jsx("div",{children:o}),e[2]=o,e[3]=l):l=e[3];let c;e[4]!==i?(c=i&&n.jsx("div",{className:"text-xs text-muted-foreground/80 max-w-sm",children:i}),e[4]=i,e[5]=c):c=e[5];let a;return e[6]!==r||e[7]!==l||e[8]!==c?(a=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 p-6 text-center text-sm text-muted-foreground",children:[r,l,c]}),e[6]=r,e[7]=l,e[8]=c,e[9]=a):a=e[9],a}export{nt as B,E as D,pt as E,G,ot as S,ie as a,it as b,ut as c,lt as d,mt as e,Be as f,Ue as g,Y as h,Ae as i,rt as j,dt as k,ft as r,at as s,ct as t,V as u,Le as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,m as N,j as r,B as b,
|
|
1
|
+
import{c as z,m as N,j as r,B as b,bX as h}from"./index-5IFWC0PS.js";const E=h("flex flex-col items-center justify-center gap-4 text-center",{variants:{size:{page:"py-16",inline:"py-8"}},defaultVariants:{size:"page"}}),V=h("flex size-10 items-center justify-center rounded-xl [&_svg]:size-5 [&_svg]:stroke-[1.33]",{variants:{tone:{default:"bg-muted text-muted-foreground",error:"bg-destructive/10 text-destructive"}},defaultVariants:{tone:"default"}});function R(y){const e=z.c(23),{icon:o,illustration:x,title:f,description:c,buttonProps:m,buttonComponent:u,size:p,tone:g,className:v,children:j}=y;let t;e[0]!==v||e[1]!==p?(t=N(E({size:p}),v),e[0]=v,e[1]=p,e[2]=t):t=e[2];let s;e[3]!==o||e[4]!==x||e[5]!==g?(s=x??(o&&r.jsx("div",{className:V({tone:g}),children:o})),e[3]=o,e[4]=x,e[5]=g,e[6]=s):s=e[6];let i;e[7]!==f?(i=r.jsx("h3",{className:"text-foreground text-sm font-medium",children:f}),e[7]=f,e[8]=i):i=e[8];let n;e[9]!==c?(n=c&&r.jsx("div",{className:"text-muted-foreground text-sm",children:c}),e[9]=c,e[10]=n):n=e[10];let a;e[11]!==i||e[12]!==n?(a=r.jsxs("div",{className:"flex max-w-xs flex-col items-center gap-1",children:[i,n]}),e[11]=i,e[12]=n,e[13]=a):a=e[13];let l;e[14]!==u||e[15]!==m?(l=u??(m&&r.jsx(b,{size:"sm",...m})),e[14]=u,e[15]=m,e[16]=l):l=e[16];let d;return e[17]!==j||e[18]!==t||e[19]!==s||e[20]!==a||e[21]!==l?(d=r.jsxs("div",{className:t,children:[s,a,l,j]}),e[17]=j,e[18]=t,e[19]=s,e[20]=a,e[21]=l,e[22]=d):d=e[22],d}export{R as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,m as N,j as t}from"./index-
|
|
1
|
+
import{c as v,m as N,j as t}from"./index-5IFWC0PS.js";function y(){const x=v.c(1);let e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:336,height:320,"aria-hidden":"true"}),x[0]=e):e=x[0],e}function C(x){const e=v.c(24),{image:f,title:p,description:u,actions:o,className:h,descriptionClassName:j,actionsClassName:g}=x;let s;e[0]!==h?(s=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",h),e[0]=h,e[1]=s):s=e[1];let l;e[2]!==f?(l=f!==null&&t.jsx("div",{className:"flex items-center justify-center",children:f??t.jsx(y,{})}),e[2]=f,e[3]=l):l=e[3];let i;e[4]!==p?(i=t.jsx("h3",{className:"text-center text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=i):i=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let a;e[8]!==u||e[9]!==c?(a=t.jsx("div",{className:c,children:u}),e[8]=u,e[9]=c,e[10]=a):a=e[10];let n;e[11]!==i||e[12]!==a?(n=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i,a]}),e[11]=i,e[12]=a,e[13]=n):n=e[13];let r;e[14]!==o||e[15]!==g?(r=o&&t.jsx("div",{className:N("flex items-center gap-2",g),children:o}),e[14]=o,e[15]=g,e[16]=r):r=e[16];let m;e[17]!==n||e[18]!==r?(m=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[n,r]}),e[17]=n,e[18]=r,e[19]=m):m=e[19];let d;return e[20]!==s||e[21]!==l||e[22]!==m?(d=t.jsxs("div",{className:s,children:[l,m]}),e[20]=s,e[21]=l,e[22]=m,e[23]=d):d=e[23],d}export{C as E};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cA as Ee,r as ye,hE as Ke,hF as Ue,c as S,b as M,m as Q,j as n,u as Ge,d as qe,B as ie,L as de,n as B,F as he,$ as Re,dY as le,gD as Te,as as Je,a4 as Qe}from"./index-5IFWC0PS.js";import{q as ce}from"./agent-icon-bK3wLPrb.js";import{B as Ce}from"./badge-D9oJO89f.js";import{E as Se}from"./empty-state-C7mAM8aV.js";import{u as We}from"./chat-context-BXBBnsXM.js";import{n as Xe,p as Ye,a as Ze,N as De,u as et,b as tt,c as st,d as it,e as lt,f as nt,g as at,h as rt,i as ot}from"./named-rule-view-Cjao8aHC.js";import{S as fe,a as ve}from"./view-header-DYVjdF9_.js";import{S as $e,a as Le}from"./site-draft-view-DieOLT9Q.js";import{S as Oe,o as ct,s as ft}from"./named-rule-step-BqRLfozU.js";import{s as mt}from"./Plus-C-Or0hIv.js";import{c as dt,u as ut}from"./hosted-reconcile-gX34y3hJ.js";import{ae as xt,al as pt,aj as ht}from"./blocks-tab-states-CPXZUbSV.js";import{b as vt}from"./use-view-draft-kind-Cu0aFeKZ.js";function jt(i){const e=Ee(),t=ye.useRef(void 0);return Ke(e.stores.location,s=>{const f=s;if(e.options.defaultStructuralSharing){const l=Ue(t.current,f);return t.current=l,l}return f})}const we={running:0,everyone:1,off:2};function ue(i,e){const t=xt(i,"experiments");return t.kind==="conflict"?[]:Object.entries(t.values).map(([f,l],o)=>{const c=Xe(e,"experiments",f,l),a=c==="changed"?Ye(e,"experiments",f):void 0;return{order:o,row:{name:f,share:l,status:pt(l),entryState:c,...a!==void 0?{publishedShare:a}:{}}}}).sort((f,l)=>we[f.row.status]-we[l.row.status]||f.order-l.order).map(f=>f.row)}function ze(i,e){return Ze(i,e,"experiments")}function gt(i){return ue(i,i)}function bt(i,e){return e?ue(i,e).some(t=>t.entryState!=="published")||ze(i,e).length>0:!1}const Nt={running:"bg-success",everyone:"bg-primary",off:"bg-muted-foreground/50"};function je(i){const e=S.c(11),{status:t}=i,s=M();let f;e[0]!==t||e[1]!==s?(f=s(t==="running"?"experiments.v8.status.running":t==="everyone"?"experiments.v8.status.everyone":"experiments.v8.status.off"),e[0]=t,e[1]=s,e[2]=f):f=e[2];const l=f,o=Nt[t];let c;e[3]!==o?(c=Q("size-1.5 rounded-full",o),e[3]=o,e[4]=c):c=e[4];let a;e[5]!==c?(a=n.jsx("span",{className:c}),e[5]=c,e[6]=a):a=e[6];let r;return e[7]!==l||e[8]!==t||e[9]!==a?(r=n.jsxs(Ce,{variant:"secondary","data-status":t,children:[a,l]}),e[7]=l,e[8]=t,e[9]=a,e[10]=r):r=e[10],r}const _e="openedTest";function yt(){const i=S.c(13);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},i[0]=e):e=i[0];const t=Ge(e),s=qe(),f=Ee(),o=jt().state?.[_e],c="test"in t&&typeof t.test=="string"&&t.test?t.test:null;let a;i[1]!==s?(a=()=>{s({to:".",search:St,replace:!0})},i[1]=s,i[2]=a):a=i[2];const r=a;let d;i[3]!==r||i[4]!==c||i[5]!==s||i[6]!==o||i[7]!==f?(d=m=>{if(m===null){c!==null&&o===c?f.history.back():r();return}s({to:".",search:x=>({...x,test:m}),state:(x=>({...x,[_e]:m}))})},i[3]=r,i[4]=c,i[5]=s,i[6]=o,i[7]=f,i[8]=d):d=i[8];let u;return i[9]!==r||i[10]!==c||i[11]!==d?(u={name:c,clear:r,set:d},i[9]=r,i[10]=c,i[11]=d,i[12]=u):u=i[12],u}function St(i){return{...i,test:void 0}}function me(i,e,t){return{to:Re.experiments,params:{org:i,agentId:e},search:s=>({thread:s.thread,sidepanel:s.sidepanel,test:t})}}function kt(i,e){return{to:Re.monitoring,params:{org:i,agentId:e},search:t=>({thread:t.thread,sidepanel:t.sidepanel,view:"experiments"})}}function wt(i,e){const t=e?new Map(ue(e,i).map(s=>[s.name,s])):null;return gt(i).map(s=>({...s,draft:t?t.get(s.name)?.entryState??"removed":null}))}function Ie(i,e){return!i||ue(i,null).some(t=>t.name===e)}function _t(i){const e=S.c(22),{published:t,mode:s,openName:f}=i;if(t.state!=="ready"){let m;return e[0]!==i||e[1]!==t?(m=n.jsx(Et,{...i,read:t}),e[0]=i,e[1]=t,e[2]=m):m=e[2],m}let l,o,c,a;if(e[3]!==s||e[4]!==f||e[5]!==i||e[6]!==t.content){c=Symbol.for("react.early_return_sentinel");e:{if(l=wt(t.content,i.draft),s==="compact"){c=n.jsx(Lt,{...i,rows:l});break e}let m;e[11]!==i.draft||e[12]!==t.content?(m=i.draft?bt(i.draft,t.content):!1,e[11]=i.draft,e[12]=t.content,e[13]=m):m=e[13],a=m,o=l.find(x=>x.name===f)??null}e[3]=s,e[4]=f,e[5]=i,e[6]=t.content,e[7]=l,e[8]=o,e[9]=c,e[10]=a}else l=e[7],o=e[8],c=e[9],a=e[10];if(c!==Symbol.for("react.early_return_sentinel"))return c;const r=o;if(r){let m;return e[14]!==r||e[15]!==i?(m=n.jsx($t,{...i,row:r}),e[14]=r,e[15]=i,e[16]=m):m=e[16],m}const d=f??null;let u;return e[17]!==i||e[18]!==l||e[19]!==d||e[20]!==a?(u=n.jsx(Dt,{...i,rows:l,unpublished:a,notLive:d}),e[17]=i,e[18]=l,e[19]=d,e[20]=a,e[21]=u):u=e[21],u}function Et(i){const e=S.c(26),{mode:t,read:s}=i,f=M();if(s.state==="loading"){let p;return e[0]!==t?(p=t==="full"?n.jsx(Pe,{}):n.jsx(le,{className:"h-16 w-full","data-testid":"experiments-live-loading"}),e[0]=t,e[1]=p):p=e[1],p}let l;e[2]!==s.state||e[3]!==f?(l=s.state==="failed"?f("experiments.v8.loadFailed"):f("experiments.live.unknown.title"),e[2]=s.state,e[3]=f,e[4]=l):l=e[4];const o=l;let c;e[5]!==s.state||e[6]!==f?(c=s.state==="failed"?f("sectionsEditor.namedRules.unavailableHint"):f("experiments.live.unknown.desc"),e[5]=s.state,e[6]=f,e[7]=c):c=e[7];const a=c,r=s.state==="failed"?s.retry:null;if(t==="full"){let p;e[8]!==r||e[9]!==f?(p=r?{label:f("sectionsEditor.namedRules.tryAgain"),onClick:r}:void 0,e[8]=r,e[9]=f,e[10]=p):p=e[10];let h;return e[11]!==a||e[12]!==p||e[13]!==o?(h=n.jsx(Fe,{title:o,description:a,action:p}),e[11]=a,e[12]=p,e[13]=o,e[14]=h):h=e[14],h}let d;e[15]!==o?(d=n.jsx("span",{className:"font-medium text-foreground",children:o}),e[15]=o,e[16]=d):d=e[16];let u;e[17]!==a?(u=n.jsx("span",{children:a}),e[17]=a,e[18]=u):u=e[18];let m;e[19]!==r||e[20]!==f?(m=r&&n.jsx(ie,{size:"sm",variant:"ghost",onClick:r,children:f("sectionsEditor.namedRules.tryAgain")}),e[19]=r,e[20]=f,e[21]=m):m=e[21];let x;return e[22]!==d||e[23]!==u||e[24]!==m?(x=n.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 pt-2 text-xs text-muted-foreground","data-testid":"experiments-live-unavailable",role:"status",children:[d,u,m]}),e[22]=d,e[23]=u,e[24]=m,e[25]=x):x=e[25],x}function Pe(){const i=S.c(2);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=Q("flex flex-col gap-3",fe),i[0]=e):e=i[0];let t;return i[1]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(B,{children:n.jsx(B.Content,{children:n.jsxs("div",{className:e,"data-testid":"experiments-live-loading","aria-busy":"true",children:[n.jsx(le,{className:"h-6 w-40"}),n.jsx(le,{className:"h-16 w-full"}),n.jsx(le,{className:"h-16 w-full"})]})})}),i[1]=t):t=i[1],t}function Be(i){const e=S.c(10),{orgSlug:t,virtualMcpId:s,test:f}=i,l=M();let o;e[0]!==t||e[1]!==f||e[2]!==s?(o=me(t,s,f),e[0]=t,e[1]=f,e[2]=s,e[3]=o):o=e[3];let c;e[4]!==l?(c=l("experiments.live.edit"),e[4]=l,e[5]=c):c=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(he,{size:14}),e[6]=a):a=e[6];let r;return e[7]!==o||e[8]!==c?(r=n.jsx(ie,{asChild:!0,size:"sm",variant:"outline",children:n.jsxs(de,{...o,"data-testid":"experiments-live-edit",children:[c,a]})}),e[7]=o,e[8]=c,e[9]=r):r=e[9],r}const ke="inline-flex w-fit items-center gap-1 font-medium text-foreground underline-offset-2 hover:underline";function Ne(i){const e=S.c(7),{text:t,link:s,testId:f}=i,l=M();let o;e[0]!==s||e[1]!==l?(o=s&&n.jsxs(de,{...s,className:ke,children:[l("experiments.live.edit"),n.jsx(he,{size:12})]}),e[0]=s,e[1]=l,e[2]=o):o=e[2];let c;return e[3]!==o||e[4]!==f||e[5]!==t?(c=n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground","data-testid":f,children:[t,o]}),e[3]=o,e[4]=f,e[5]=t,e[6]=c):c=e[6],c}function Rt(i){const e=S.c(5),{share:t}=i,s=M(),f=String(t);let l;e[0]!==s||e[1]!==f?(l=s("sectionsEditor.namedRulePicker.shareOfVisitors",{share:f}),e[0]=s,e[1]=f,e[2]=l):l=e[2];let o;return e[3]!==l?(o=n.jsx("span",{className:"w-32 shrink-0 text-xs tabular-nums text-muted-foreground",children:l}),e[3]=l,e[4]=o):o=e[4],o}function Tt(i){const e=S.c(6),{draft:t}=i,s=M();if(t==="removed"){let l;e[0]!==s?(l=s("experiments.v8.removedTitle"),e[0]=s,e[1]=l):l=e[1];let o;return e[2]!==l?(o=n.jsx(Ce,{variant:"muted",children:l}),e[2]=l,e[3]=o):o=e[3],o}let f;return e[4]!==t?(f=n.jsx(De,{kind:"experiments",state:t}),e[4]=t,e[5]=f):f=e[5],f}function Ct(i){const e=S.c(29),{row:t,onOpen:s,edit:f}=i,l=M(),o=f!==void 0;let c;e[0]!==o||e[1]!==t.share?(c=o&&n.jsx("div",{"aria-hidden":"true",className:"shrink-0",children:n.jsx(ct,{arms:ft(t.share),size:28,thickness:5})}),e[0]=o,e[1]=t.share,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==s||e[5]!==t.name||e[6]!==l?(a=s?n.jsx("button",{type:"button",onClick:s,"aria-label":o?void 0:l("experiments.live.editRow",{name:t.name}),className:Q("min-w-0 flex-1 truncate text-left text-sm font-medium text-foreground","after:absolute after:inset-0 focus-visible:outline-none focus-visible:after:ring-2 focus-visible:after:ring-ring focus-visible:after:ring-inset"),children:t.name}):n.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-sm font-medium text-foreground",children:t.name}),e[3]=o,e[4]=s,e[5]=t.name,e[6]=l,e[7]=a):a=e[7];let r;e[8]!==t.share?(r=n.jsx(Rt,{share:t.share}),e[8]=t.share,e[9]=r):r=e[9];let d;e[10]!==t.draft?(d=n.jsx("div",{className:"hidden w-40 shrink-0 md:flex",children:n.jsx(Tt,{draft:t.draft})}),e[10]=t.draft,e[11]=d):d=e[11];let u;e[12]!==t.status?(u=n.jsx("div",{className:"flex w-24 shrink-0",children:n.jsx(je,{status:t.status})}),e[12]=t.status,e[13]=u):u=e[13];let m;e[14]!==f||e[15]!==t.name||e[16]!==l?(m=f&&n.jsxs(de,{...f,"aria-label":l("experiments.live.editNamed",{name:t.name}),className:Q(ke,"relative z-10 shrink-0 text-xs"),"data-testid":"experiment-live-row-edit",children:[l("experiments.live.editTest"),n.jsx(he,{size:12})]}),e[14]=f,e[15]=t.name,e[16]=l,e[17]=m):m=e[17];let x;e[18]!==o||e[19]!==s?(x=!o&&n.jsx(Je,{size:16,"aria-hidden":"true",className:Q("shrink-0 text-muted-foreground",!s&&"invisible")}),e[18]=o,e[19]=s,e[20]=x):x=e[20];let p;return e[21]!==c||e[22]!==a||e[23]!==r||e[24]!==d||e[25]!==u||e[26]!==m||e[27]!==x?(p=n.jsxs("div",{className:"group relative flex items-center gap-4 px-5 py-4 transition-colors hover:bg-muted/50","data-testid":"experiment-live-row",children:[c,a,r,d,u,m,x]}),e[21]=c,e[22]=a,e[23]=r,e[24]=d,e[25]=u,e[26]=m,e[27]=x,e[28]=p):p=e[28],p}function Me(i){const e=S.c(9),{rows:t,onOpen:s,edit:f}=i;let l;if(e[0]!==f||e[1]!==s||e[2]!==t){let c;e[4]!==f||e[5]!==s?(c=a=>n.jsx(Ct,{row:a,onOpen:s(a),edit:f?.(a)},a.name),e[4]=f,e[5]=s,e[6]=c):c=e[6],l=t.map(c),e[0]=f,e[1]=s,e[2]=t,e[3]=l}else l=e[3];let o;return e[7]!==l?(o=n.jsx(Te,{size:"flush",className:"gap-0 divide-y divide-border overflow-hidden","data-testid":"experiments-live-list",children:l}),e[7]=l,e[8]=o):o=e[8],o}function He(i){return i.draft==="removed"?void 0:i.name}function Dt(i){const e=S.c(33),{orgSlug:t,virtualMcpId:s,draft:f,onOpen:l,rows:o,unpublished:c,notLive:a}=i,r=M();let d;e[0]!==r?(d=r("experiments.live.intro"),e[0]=r,e[1]=d):d=e[1];let u;e[2]!==t||e[3]!==s?(u=n.jsx(Be,{orgSlug:t,virtualMcpId:s}),e[2]=t,e[3]=s,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=n.jsx(ve,{intro:d,actions:u}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=Q("flex flex-col gap-4",fe),e[8]=x):x=e[8];let p;e[9]!==f||e[10]!==a||e[11]!==t||e[12]!==r||e[13]!==s?(p=a!==null&&n.jsx(Ne,{testId:"experiments-live-not-live",text:r("experiments.live.notLive",{name:a}),link:me(t,s,Ie(f,a)?a:void 0)}),e[9]=f,e[10]=a,e[11]=t,e[12]=r,e[13]=s,e[14]=p):p=e[14];let h;e[15]!==t||e[16]!==r||e[17]!==c||e[18]!==s?(h=c&&n.jsx(Ne,{testId:"experiments-live-unpublished",text:r("experiments.live.unpublished"),link:me(t,s)}),e[15]=t,e[16]=r,e[17]=c,e[18]=s,e[19]=h):h=e[19];let v;e[20]!==l||e[21]!==t||e[22]!==o||e[23]!==r||e[24]!==s?(v=o.length===0?n.jsx(Se,{icon:n.jsx(ce,{size:28,className:"text-muted-foreground"}),title:r("experiments.live.empty.title"),description:r("experiments.live.empty.desc")}):n.jsx(Me,{rows:o,onOpen:N=>()=>l(N.name),edit:N=>me(t,s,He(N))}),e[20]=l,e[21]=t,e[22]=o,e[23]=r,e[24]=s,e[25]=v):v=e[25];let g;e[26]!==p||e[27]!==h||e[28]!==v?(g=n.jsx(B.Content,{children:n.jsxs("div",{className:x,"data-testid":"experiments-live",children:[p,h,v]})}),e[26]=p,e[27]=h,e[28]=v,e[29]=g):g=e[29];let j;return e[30]!==m||e[31]!==g?(j=n.jsxs(B,{children:[m,g]}),e[30]=m,e[31]=g,e[32]=j):j=e[32],j}function $t(i){const e=S.c(65),{orgSlug:t,virtualMcpId:s,onOpen:f,row:l}=i,o=M();let c;e[0]!==f?(c=()=>f(null),e[0]=f,e[1]=c):c=e[1];const a=c;let r;e[2]!==l.draft||e[3]!==o?(r=l.draft==="removed"?o("experiments.live.removedTest"):l.draft==="changed"||l.draft==="new"?o("experiments.live.unpublishedTest"):null,e[2]=l.draft,e[3]=o,e[4]=r):r=e[4];const d=r;let u;e[5]!==o?(u=o("experiments.title"),e[5]=o,e[6]=u):u=e[6];let m;e[7]!==a||e[8]!==u?(m={label:u,onSelect:a},e[7]=a,e[8]=u,e[9]=m):m=e[9];let x;e[10]!==l.name?(x=[{key:"experiment",label:l.name}],e[10]=l.name,e[11]=x):x=e[11];let p;e[12]!==m||e[13]!==x?(p=n.jsx(B.Breadcrumbs,{after:"page",parent:m,items:x}),e[12]=m,e[13]=x,e[14]=p):p=e[14];let h;e[15]!==o?(h=o("experiments.v8.allTests"),e[15]=o,e[16]=h):h=e[16];let v;e[17]!==a||e[18]!==h?(v={label:h,onClick:a},e[17]=a,e[18]=h,e[19]=v):v=e[19];let g;e[20]!==l?(g=He(l),e[20]=l,e[21]=g):g=e[21];let j;e[22]!==t||e[23]!==g||e[24]!==s?(j=n.jsx(Be,{orgSlug:t,virtualMcpId:s,test:g}),e[22]=t,e[23]=g,e[24]=s,e[25]=j):j=e[25];let N;e[26]!==j||e[27]!==v?(N=n.jsx(ve,{back:v,actions:j}),e[26]=j,e[27]=v,e[28]=N):N=e[28];let k;e[29]===Symbol.for("react.memo_cache_sentinel")?(k=Q("flex max-w-2xl flex-col gap-6",fe),e[29]=k):k=e[29];let w;e[30]!==l.name?(w=n.jsx("h2",{className:"truncate text-lg font-medium",children:l.name}),e[30]=l.name,e[31]=w):w=e[31];let D;e[32]!==l.status?(D=n.jsx(je,{status:l.status}),e[32]=l.status,e[33]=D):D=e[33];let $;e[34]!==w||e[35]!==D?($=n.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[w,D]}),e[34]=w,e[35]=D,e[36]=$):$=e[36];let I;e[37]!==o?(I=o("experiments.v8.shareTitle"),e[37]=o,e[38]=I):I=e[38];let H;e[39]!==I?(H=n.jsx("h3",{className:"text-sm font-medium",children:I}),e[39]=I,e[40]=H):H=e[40];const F=l.share;let _;e[41]!==o?(_=o("experiments.v8.split.inTest"),e[41]=o,e[42]=_):_=e[42];let L;e[43]!==o?(L=o("experiments.v8.split.rest"),e[43]=o,e[44]=L):L=e[44];let E;e[45]!==o?(E=o("experiments.v8.split.center"),e[45]=o,e[46]=E):E=e[46];let R;e[47]!==l.share||e[48]!==_||e[49]!==L||e[50]!==E?(R=n.jsx(Oe,{value:F,readOnly:!0,inTestLabel:_,restLabel:L,centerLabel:E}),e[47]=l.share,e[48]=_,e[49]=L,e[50]=E,e[51]=R):R=e[51];let T;e[52]!==H||e[53]!==R?(T=n.jsxs("section",{className:"flex flex-col gap-2",children:[H,R]}),e[52]=H,e[53]=R,e[54]=T):T=e[54];let O;e[55]!==d?(O=d&&n.jsx(Ne,{testId:"experiments-live-unpublished",text:d}),e[55]=d,e[56]=O):O=e[56];let P;e[57]!==$||e[58]!==T||e[59]!==O?(P=n.jsx(B.Content,{children:n.jsxs("div",{className:k,"data-testid":"experiment-live-detail",children:[$,T,O]})}),e[57]=$,e[58]=T,e[59]=O,e[60]=P):P=e[60];let z;return e[61]!==N||e[62]!==P||e[63]!==p?(z=n.jsxs(B,{children:[p,N,P]}),e[61]=N,e[62]=P,e[63]=p,e[64]=z):z=e[64],z}function Lt(i){const e=S.c(32),{orgSlug:t,virtualMcpId:s,draft:f,onOpen:l,rows:o}=i,c=M();let a;e[0]!==c?(a=c("experiments.live.title"),e[0]=c,e[1]=a):a=e[1];let r;e[2]!==a?(r=n.jsx("h2",{id:"experiments-live-title",className:"text-sm font-medium",children:a}),e[2]=a,e[3]=r):r=e[3];let d;e[4]!==c?(d=c("experiments.live.intro"),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==d?(u=n.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[6]=d,e[7]=u):u=e[7];let m;e[8]!==r||e[9]!==u?(m=n.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[r,u]}),e[8]=r,e[9]=u,e[10]=m):m=e[10];let x;e[11]!==t||e[12]!==s?(x=kt(t,s),e[11]=t,e[12]=s,e[13]=x):x=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=Q(ke,"text-xs"),e[14]=p):p=e[14];let h;e[15]!==c?(h=c("experiments.live.viewInMonitor"),e[15]=c,e[16]=h):h=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(he,{size:12}),e[17]=v):v=e[17];let g;e[18]!==x||e[19]!==h?(g=n.jsxs(de,{...x,className:p,"data-testid":"experiments-live-monitor",children:[h,v]}),e[18]=x,e[19]=h,e[20]=g):g=e[20];let j;e[21]!==g||e[22]!==m?(j=n.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-x-4 gap-y-1",children:[m,g]}),e[21]=g,e[22]=m,e[23]=j):j=e[23];let N;e[24]!==f||e[25]!==l||e[26]!==o||e[27]!==c?(N=o.length===0?n.jsx("p",{className:"text-xs text-muted-foreground",children:c("experiments.live.empty.title")}):n.jsx(Me,{rows:o,onOpen:w=>Ie(f,w.name)?()=>l(w.name):null}),e[24]=f,e[25]=l,e[26]=o,e[27]=c,e[28]=N):N=e[28];let k;return e[29]!==j||e[30]!==N?(k=n.jsxs("section",{className:"flex flex-col gap-2 pt-2","aria-labelledby":"experiments-live-title","data-testid":"experiments-live-compact",children:[j,N]}),e[29]=j,e[30]=N,e[31]=k):k=e[31],k}function Fe(i){const e=S.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(ce,{size:28,className:"text-muted-foreground"}),e[0]=t):t=e[0];let s;return e[1]!==i?(s=n.jsx($e,{icon:t,...i}),e[1]=i,e[2]=s):s=e[2],s}function ss(i){const e=S.c(20),{virtualMcpId:t}=i,s=M();if(!We()?.currentBranch){let x;return e[0]!==t?(x=n.jsx(zt,{virtualMcpId:t}),e[0]=t,e[1]=x):x=e[1],x}let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ce,{size:28,className:"text-muted-foreground"}),e[2]=l):l=e[2];let o;e[3]!==s?(o=s("experiments.live.noDraft.title"),e[3]=s,e[4]=o):o=e[4];let c;e[5]!==s?(c=s("experiments.live.noDraft.desc"),e[5]=s,e[6]=c):c=e[6];let a;e[7]!==s?(a=s("experiments.v8.loadFailed"),e[7]=s,e[8]=a):a=e[8];let r;e[9]!==s?(r=s("sectionsEditor.namedRules.unavailableHint"),e[9]=s,e[10]=r):r=e[10];let d;e[11]!==o||e[12]!==c||e[13]!==a||e[14]!==r?(d={noDraftTitle:o,noDraftDesc:c,loadFailed:a,loadFailedHint:r},e[11]=o,e[12]=c,e[13]=a,e[14]=r,e[15]=d):d=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Pe,{}),e[16]=u):u=e[16];let m;return e[17]!==d||e[18]!==t?(m=n.jsx(Le,{virtualMcpId:t,icon:l,copy:d,skeleton:u,children:Ot}),e[17]=d,e[18]=t,e[19]=m):m=e[19],m}function Ot(i){return n.jsx(It,{...i})}function zt(i){const e=S.c(17),{virtualMcpId:t}=i,s=M(),{org:f}=Qe();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ce,{size:28,className:"text-muted-foreground"}),e[0]=l):l=e[0];let o;e[1]!==s?(o=s("experiments.live.noDraft.title"),e[1]=s,e[2]=o):o=e[2];let c;e[3]!==s?(c=s("experiments.live.noDraft.desc"),e[3]=s,e[4]=c):c=e[4];let a;e[5]!==f.slug||e[6]!==t?(a=me(f.slug,t),e[5]=f.slug,e[6]=t,e[7]=a):a=e[7];let r;e[8]!==s?(r=s("experiments.live.noDraft.action"),e[8]=s,e[9]=r):r=e[9];let d;e[10]!==a||e[11]!==r?(d=n.jsx(ie,{asChild:!0,size:"sm",children:n.jsx(de,{...a,"data-testid":"experiments-live-pick-draft",children:r})}),e[10]=a,e[11]=r,e[12]=d):d=e[12];let u;return e[13]!==o||e[14]!==c||e[15]!==d?(u=n.jsx(B,{children:n.jsx(B.Content,{children:n.jsx(B.Container,{children:n.jsx(Se,{icon:l,title:o,description:c,buttonComponent:d})})})}),e[13]=o,e[14]=c,e[15]=d,e[16]=u):u=e[16],u}function It(i){const e=S.c(27),{orgSlug:t,virtualMcpId:s,branch:f,decofile:l,meta:o}=i,c=M(),a=yt();let r;e[0]!==f||e[1]!==l||e[2]!==t||e[3]!==s?(r={orgSlug:t,virtualMcpId:s,branch:f,decofile:l,blockKey:"experiments"},e[0]=f,e[1]=l,e[2]=t,e[3]=s,e[4]=r):r=e[4];const d=et(r);let u;e[5]!==d.content||e[6]!==d.state?(u=d.state==="ready"?d.content:{},e[5]=d.content,e[6]=d.state,e[7]=u):u=e[7];let m;e[8]!==o||e[9]!==u?(m=tt(u,o,"experiments"),e[8]=o,e[9]=u,e[10]=m):m=e[10];const x=m;if(x){const h=`experiments.v8.${x}.title`;let v;e[11]!==c||e[12]!==h?(v=c(h),e[11]=c,e[12]=h,e[13]=v):v=e[13];const g=`experiments.v8.${x}.desc`;let j;e[14]!==c||e[15]!==g?(j=c(g),e[14]=c,e[15]=g,e[16]=j):j=e[16];let N;return e[17]!==v||e[18]!==j?(N=n.jsx(Fe,{title:v,description:j}),e[17]=v,e[18]=j,e[19]=N):N=e[19],N}let p;return e[20]!==l||e[21]!==a.name||e[22]!==a.set||e[23]!==t||e[24]!==d||e[25]!==s?(p=n.jsx(_t,{orgSlug:t,virtualMcpId:s,published:d,draft:l,mode:"full",openName:a.name,onOpen:a.set}),e[20]=l,e[21]=a.name,e[22]=a.set,e[23]=t,e[24]=d,e[25]=s,e[26]=p):p=e[26],p}function Pt(){const i=S.c(2);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=Q("flex flex-col gap-3",fe),i[0]=e):e=i[0];let t;return i[1]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(B,{children:n.jsx(B.Content,{children:n.jsxs("div",{className:e,"data-testid":"experiments-skeleton","aria-busy":"true",children:[n.jsx(le,{className:"h-6 w-40"}),n.jsx(le,{className:"h-16 w-full"}),n.jsx(le,{className:"h-16 w-full"})]})})}),i[1]=t):t=i[1],t}function be(i){const e=S.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(ce,{size:28,className:"text-muted-foreground"}),e[0]=t):t=e[0];let s;return e[1]!==i?(s=n.jsx($e,{icon:t,...i}),e[1]=i,e[2]=s):s=e[2],s}function is(i){const e=S.c(22),{virtualMcpId:t,open:s,live:f}=i,l=M();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(ce,{size:28,className:"text-muted-foreground"}),e[0]=o):o=e[0];let c;e[1]!==l?(c=l("experiments.v8.noDraft.title"),e[1]=l,e[2]=c):c=e[2];let a;e[3]!==l?(a=l("experiments.v8.noDraft.desc"),e[3]=l,e[4]=a):a=e[4];let r;e[5]!==l?(r=l("experiments.v8.loadFailed"),e[5]=l,e[6]=r):r=e[6];let d;e[7]!==l?(d=l("sectionsEditor.namedRules.unavailableHint"),e[7]=l,e[8]=d):d=e[8];let u;e[9]!==c||e[10]!==a||e[11]!==r||e[12]!==d?(u={noDraftTitle:c,noDraftDesc:a,loadFailed:r,loadFailedHint:d},e[9]=c,e[10]=a,e[11]=r,e[12]=d,e[13]=u):u=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(Pt,{}),e[14]=m):m=e[14];let x;e[15]!==f||e[16]!==s?(x=h=>n.jsx(Bt,{...h,open:s,live:f}),e[15]=f,e[16]=s,e[17]=x):x=e[17];let p;return e[18]!==u||e[19]!==x||e[20]!==t?(p=n.jsx(Le,{virtualMcpId:t,icon:o,copy:u,skeleton:m,children:x}),e[18]=u,e[19]=x,e[20]=t,e[21]=p):p=e[21],p}function Bt(i){const e=S.c(92),{orgSlug:t,virtualMcpId:s,branch:f,decofile:l,meta:o,open:c,live:a}=i,r=M(),{openPanel:d}=vt();let u;e[0]!==f||e[1]!==l||e[2]!==o||e[3]!==c||e[4]!==t||e[5]!==s?(u={orgSlug:t,virtualMcpId:s,branch:f,decofile:l,meta:o,open:c},e[0]=f,e[1]=l,e[2]=o,e[3]=c,e[4]=t,e[5]=s,e[6]=u):u=e[6];const m=st("experiments",u);let x;e[7]!==f||e[8]!==t||e[9]!==s?(x=dt({orgSlug:t,virtualMcpId:s,branch:f}),e[7]=f,e[8]=t,e[9]=s,e[10]=x):x=e[10];const p=ut(x);let h;e[11]!==p?(h=p(pe),e[11]=p,e[12]=h):h=e[12];const v=h,g=ue(l,m.published),j=g.find(b=>b.name===m.openName)??null,N=!m.blocked&&m.openName!==null&&!j,k=c?.clear;let w,D;if(e[13]!==k||e[14]!==N?(w=()=>{N&&k?.()},D=[N,k],e[13]=k,e[14]=N,e[15]=w,e[16]=D):(w=e[15],D=e[16]),ye.useEffect(w,D),m.blocked==="missing"){let b;e[17]!==r?(b=r("experiments.v8.missing.title"),e[17]=r,e[18]=b):b=e[18];let y;e[19]!==r?(y=r("experiments.v8.missing.desc"),e[19]=r,e[20]=y):y=e[20];let C;return e[21]!==b||e[22]!==y?(C=n.jsx(be,{title:b,description:y}),e[21]=b,e[22]=y,e[23]=C):C=e[23],C}if(m.blocked==="replaced"){let b;e[24]!==r?(b=r("experiments.v8.replaced.title"),e[24]=r,e[25]=b):b=e[25];let y;e[26]!==r?(y=r("experiments.v8.replaced.desc"),e[26]=r,e[27]=y):y=e[27];let C;return e[28]!==b||e[29]!==y?(C=n.jsx(be,{title:b,description:y}),e[28]=b,e[29]=y,e[30]=C):C=e[30],C}if(m.blocked==="conflict"){let b;e[31]!==r?(b=r("experiments.v8.conflict.title"),e[31]=r,e[32]=b):b=e[32];let y;e[33]!==r?(y=r("experiments.v8.conflict.desc"),e[33]=r,e[34]=y):y=e[34];let C;e[35]!==r?(C=r("sectionsEditor.namedRules.openEditor"),e[35]=r,e[36]=C):C=e[36];let U;e[37]!==d?(U=()=>d("content"),e[37]=d,e[38]=U):U=e[38];let G;e[39]!==U||e[40]!==C?(G={label:C,onClick:U},e[39]=U,e[40]=C,e[41]=G):G=e[41];let J;return e[42]!==G||e[43]!==b||e[44]!==y?(J=n.jsx(be,{title:b,description:y,action:G}),e[42]=G,e[43]=b,e[44]=y,e[45]=J):J=e[45],J}let $;e[46]!==l||e[47]!==m.published?($=ze(l,m.published),e[46]=l,e[47]=m.published,e[48]=$):$=e[48];const I=$;if(j)return n.jsx(Ft,{...it(m,j,{decofile:l,meta:o})},`${j.name}:${v}`);const H=B;let F;e[49]!==r?(F=r("experiments.v8.intro"),e[49]=r,e[50]=F):F=e[50];let _;e[51]!==m?(_=()=>m.setCreating(!0),e[51]=m,e[52]=_):_=e[52];let L;e[53]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(mt,{size:16}),e[53]=L):L=e[53];let E;e[54]!==r?(E=r("experiments.v8.new"),e[54]=r,e[55]=E):E=e[55];let R;e[56]!==E||e[57]!==_?(R=n.jsxs(ie,{size:"sm",onClick:_,children:[L,E]}),e[56]=E,e[57]=_,e[58]=R):R=e[58];let T;e[59]!==R||e[60]!==F?(T=n.jsx(ve,{intro:F,actions:R}),e[59]=R,e[60]=F,e[61]=T):T=e[61];let O;e[62]===Symbol.for("react.memo_cache_sentinel")?(O=Q("flex flex-col gap-4",fe),e[62]=O):O=e[62];const P=g.length===0?n.jsx(Se,{title:r("experiments.v8.empty.title"),description:r("experiments.v8.empty.desc"),buttonProps:{children:r("experiments.v8.new"),onClick:()=>m.setCreating(!0)}}):n.jsx(Te,{size:"flush",className:"gap-0 divide-y divide-border overflow-hidden","data-testid":"experiments-v8-list",children:g.map(b=>n.jsx(Ht,{row:b,onOpen:()=>m.setOpenName(b.name)},b.name))});let z;e[63]!==I?(z=n.jsx(at,{kind:"experiments",removed:I}),e[63]=I,e[64]=z):z=e[64];let W;e[65]!==r?(W=r("experiments.v8.previewHint"),e[65]=r,e[66]=W):W=e[66];let V;e[67]!==W?(V=n.jsx("p",{className:"text-xs text-muted-foreground",children:W}),e[67]=W,e[68]=V):V=e[68];let A;e[69]!==l||e[70]!==a||e[71]!==t||e[72]!==m||e[73]!==s?(A=a?.({orgSlug:t,virtualMcpId:s,draft:l,published:m.live,openTest:b=>m.setOpenName(b)}),e[69]=l,e[70]=a,e[71]=t,e[72]=m,e[73]=s,e[74]=A):A=e[74];let K;e[75]!==P||e[76]!==z||e[77]!==V||e[78]!==A?(K=n.jsx(B.Content,{children:n.jsxs("div",{className:O,children:[P,z,V,A]})}),e[75]=P,e[76]=z,e[77]=V,e[78]=A,e[79]=K):K=e[79];const X=lt,ee="experiments",te=m.creating,se=m.setCreating,Y=g.map(Mt);let Z;e[80]!==X||e[81]!==Y||e[82]!==m.create||e[83]!==m.creating||e[84]!==m.isPending||e[85]!==m.setCreating?(Z=n.jsx(X,{kind:ee,open:te,onOpenChange:se,existingNames:Y,pending:m.isPending,onCreate:m.create}),e[80]=X,e[81]=Y,e[82]=m.create,e[83]=m.creating,e[84]=m.isPending,e[85]=m.setCreating,e[86]=Z):Z=e[86];let q;return e[87]!==H||e[88]!==T||e[89]!==K||e[90]!==Z?(q=n.jsxs(H,{children:[T,K,Z]}),e[87]=H,e[88]=T,e[89]=K,e[90]=Z,e[91]=q):q=e[91],q}function Mt(i){return i.name}function Ht(i){const e=S.c(17),{row:t,onOpen:s}=i,f=M();let l;e[0]!==s||e[1]!==t.name?(l=n.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:n.jsx("button",{type:"button",onClick:s,className:"truncate text-left text-sm font-medium text-foreground after:absolute after:inset-0 focus-visible:outline-none focus-visible:after:ring-2 focus-visible:after:ring-ring focus-visible:after:ring-inset",children:t.name})}),e[0]=s,e[1]=t.name,e[2]=l):l=e[2];const o=String(t.share);let c;e[3]!==f||e[4]!==o?(c=f("sectionsEditor.namedRulePicker.shareOfVisitors",{share:o}),e[3]=f,e[4]=o,e[5]=c):c=e[5];let a;e[6]!==c?(a=n.jsx("span",{className:"w-32 shrink-0 text-xs tabular-nums text-muted-foreground",children:c}),e[6]=c,e[7]=a):a=e[7];let r;e[8]!==t.entryState?(r=n.jsx("div",{className:"hidden w-40 shrink-0 md:flex",children:n.jsx(De,{kind:"experiments",state:t.entryState})}),e[8]=t.entryState,e[9]=r):r=e[9];let d;e[10]!==t.status?(d=n.jsx("div",{className:"flex w-24 shrink-0",children:n.jsx(je,{status:t.status})}),e[10]=t.status,e[11]=d):d=e[11];let u;return e[12]!==l||e[13]!==a||e[14]!==r||e[15]!==d?(u=n.jsxs("div",{className:"group relative flex items-center gap-4 px-5 py-4 transition-colors hover:bg-muted/50","data-testid":"experiment-v8-row",children:[l,a,r,d]}),e[12]=l,e[13]=a,e[14]=r,e[15]=d,e[16]=u):u=e[16],u}const pe=ht("experiments").blockKey;function Ft(i){const e=S.c(112),{row:t,decofile:s,pending:f,holdsCopy:l,onBack:o,onSave:c}=i,a=M(),[r,d]=ye.useState(null);let u;e[0]!==s?(u=ge=>d(oe=>({share:ge,basis:oe?oe.basis:s[pe]})),e[0]=s,e[1]=u):u=e[1];const m=u,x=r?.share??t.share,p=x!==t.share;let h;e[2]!==s||e[3]!==r||e[4]!==l||e[5]!==c||e[6]!==t.name?(h=ge=>{const oe=rt(s,"experiments",t.name,ge),Ve=r?r.basis:s[pe];c(oe&&l?{...oe,basis:{[pe]:Ve}}:oe).then(Ae=>Ae&&d(null))},e[2]=s,e[3]=r,e[4]=l,e[5]=c,e[6]=t.name,e[7]=h):h=e[7];const v=h;let g;e[8]!==a?(g=a("experiments.title"),e[8]=a,e[9]=g):g=e[9];let j;e[10]!==o||e[11]!==g?(j={label:g,onSelect:o},e[10]=o,e[11]=g,e[12]=j):j=e[12];let N;e[13]!==t.name?(N=[{key:"experiment",label:t.name}],e[13]=t.name,e[14]=N):N=e[14];let k;e[15]!==j||e[16]!==N?(k=n.jsx(B.Breadcrumbs,{after:"page",parent:j,items:N}),e[15]=j,e[16]=N,e[17]=k):k=e[17];let w;e[18]!==a?(w=a("experiments.v8.allTests"),e[18]=a,e[19]=w):w=e[19];let D;e[20]!==o||e[21]!==w?(D={label:w,onClick:o},e[20]=o,e[21]=w,e[22]=D):D=e[22];let $;e[23]!==i?($=n.jsx(ot,{kind:"experiments",detail:i}),e[23]=i,e[24]=$):$=e[24];let I;e[25]!==D||e[26]!==$?(I=n.jsx(ve,{back:D,actions:$}),e[25]=D,e[26]=$,e[27]=I):I=e[27];let H;e[28]===Symbol.for("react.memo_cache_sentinel")?(H=Q("flex max-w-2xl flex-col gap-6",fe),e[28]=H):H=e[28];let F;e[29]!==t.status?(F=n.jsx(je,{status:t.status}),e[29]=t.status,e[30]=F):F=e[30];let _;e[31]!==t.entryState||e[32]!==t.name||e[33]!==F?(_=n.jsx(nt,{kind:"experiments",name:t.name,status:F,entryState:t.entryState}),e[31]=t.entryState,e[32]=t.name,e[33]=F,e[34]=_):_=e[34];let L;e[35]!==a?(L=a("experiments.v8.shareTitle"),e[35]=a,e[36]=L):L=e[36];let E;e[37]!==L?(E=n.jsx("h3",{className:"text-sm font-medium",children:L}),e[37]=L,e[38]=E):E=e[38];let R;e[39]!==a?(R=a("experiments.v8.shareLabel"),e[39]=a,e[40]=R):R=e[40];let T;e[41]!==a?(T=a("experiments.v8.split.inTest"),e[41]=a,e[42]=T):T=e[42];let O;e[43]!==a?(O=a("experiments.v8.split.rest"),e[43]=a,e[44]=O):O=e[44];let P;e[45]!==a?(P=a("experiments.v8.split.center"),e[45]=a,e[46]=P):P=e[46];let z;e[47]!==f||e[48]!==m||e[49]!==x||e[50]!==R||e[51]!==T||e[52]!==O||e[53]!==P?(z=n.jsx(Oe,{value:x,onChange:m,sliderLabel:R,inTestLabel:T,restLabel:O,centerLabel:P,disabled:f}),e[47]=f,e[48]=m,e[49]=x,e[50]=R,e[51]=T,e[52]=O,e[53]=P,e[54]=z):z=e[54];const W=!p||f;let V;e[55]!==v||e[56]!==x?(V=()=>v(x),e[55]=v,e[56]=x,e[57]=V):V=e[57];let A;e[58]!==a?(A=a("experiments.v8.save"),e[58]=a,e[59]=A):A=e[59];let K;e[60]!==W||e[61]!==V||e[62]!==A?(K=n.jsx(ie,{size:"sm",disabled:W,onClick:V,children:A}),e[60]=W,e[61]=V,e[62]=A,e[63]=K):K=e[63];let X;e[64]!==f||e[65]!==t.share||e[66]!==p||e[67]!==a?(X=p&&n.jsx(ie,{size:"sm",variant:"ghost",disabled:f,onClick:()=>d(null),children:a("experiments.v8.split.reset",{share:String(t.share)})}),e[64]=f,e[65]=t.share,e[66]=p,e[67]=a,e[68]=X):X=e[68];let ee;e[69]!==K||e[70]!==X?(ee=n.jsxs("div",{className:"flex items-center gap-2",children:[K,X]}),e[69]=K,e[70]=X,e[71]=ee):ee=e[71];let te;e[72]!==a?(te=a("experiments.v8.shareHint"),e[72]=a,e[73]=te):te=e[73];let se;e[74]!==te?(se=n.jsx("p",{className:"text-xs text-muted-foreground",children:te}),e[74]=te,e[75]=se):se=e[75];let Y;e[76]!==t.publishedShare||e[77]!==a?(Y=t.publishedShare!==void 0&&n.jsx("p",{className:"text-xs text-muted-foreground",children:a("experiments.v8.publishedShare",{share:String(t.publishedShare)})}),e[76]=t.publishedShare,e[77]=a,e[78]=Y):Y=e[78];const Z=f||t.share===0;let q;e[79]!==v?(q=()=>v(0),e[79]=v,e[80]=q):q=e[80];let b;e[81]!==a?(b=a("experiments.v8.turnOff"),e[81]=a,e[82]=b):b=e[82];let y;e[83]!==Z||e[84]!==q||e[85]!==b?(y=n.jsx(ie,{size:"sm",variant:"outline",disabled:Z,onClick:q,children:b}),e[83]=Z,e[84]=q,e[85]=b,e[86]=y):y=e[86];const C=f||t.share===100;let U;e[87]!==v?(U=()=>v(100),e[87]=v,e[88]=U):U=e[88];let G;e[89]!==a?(G=a("experiments.v8.showEveryone"),e[89]=a,e[90]=G):G=e[90];let J;e[91]!==C||e[92]!==U||e[93]!==G?(J=n.jsx(ie,{size:"sm",variant:"outline",disabled:C,onClick:U,children:G}),e[91]=C,e[92]=U,e[93]=G,e[94]=J):J=e[94];let ne;e[95]!==y||e[96]!==J?(ne=n.jsxs("div",{className:"flex gap-2",children:[y,J]}),e[95]=y,e[96]=J,e[97]=ne):ne=e[97];let ae;e[98]!==E||e[99]!==z||e[100]!==ee||e[101]!==se||e[102]!==Y||e[103]!==ne?(ae=n.jsxs("section",{className:"flex flex-col gap-2",children:[E,z,ee,se,Y,ne]}),e[98]=E,e[99]=z,e[100]=ee,e[101]=se,e[102]=Y,e[103]=ne,e[104]=ae):ae=e[104];let re;e[105]!==_||e[106]!==ae?(re=n.jsx(B.Content,{children:n.jsxs("div",{className:H,children:[_,ae]})}),e[105]=_,e[106]=ae,e[107]=re):re=e[107];let xe;return e[108]!==re||e[109]!==k||e[110]!==I?(xe=n.jsxs(B,{children:[k,I,re]}),e[108]=re,e[109]=k,e[110]=I,e[111]=xe):xe=e[111],xe}function Vt(i,e){return i&&e!=="legacy"?"v2":"legacy"}function ls(i){return i.v8?"v8":Vt(i.flagEnabled,i.ui)}function ns(i,e){return i||e}function as(i){return i?"app":"monitor"}export{is as E,ss as P,_t as a,ns as b,as as e,ls as p,yt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-
|
|
1
|
+
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-DQRUSri4.js";const D={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function H(e){return e?D[e]??e.toUpperCase():null}let V="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E=(e=21)=>{let n="",s=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=V[s[e]&63];return n};function $(e){return`${e}_${E()}`}function L(e){const n=k(e._meta),s=e.id==="deco/github-mcp"?"mcp-github":e.server?.name;return n?.appName||s||null}function W(e){if(!e?.url)return"Unknown";try{return new URL(e.url).hostname}catch{return e.url}}function j(e){const n=e?.identifier||e?.name;return n?n.replace(/^@[^/]+\//,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):"Unknown"}function q(e,n,s,r){const t=e.server,o=k(e._meta),m=new Date().toISOString(),S=o?.friendlyName||o?.friendly_name||e.title||t?.title||t?.name||"Unnamed MCP Server",v=t?.description||null,N=t?.icons?.[0]?.src||O(t?.repository)||null,h=R.safeParse(o?.oauth_config),P=h.success?h.data:null,T=o?.configuration_state,C=o?.configuration_scopes,I=t?.repository?{url:t.repository.url,source:t.repository.source,subfolder:t.repository.subfolder}:null,p=t?.packages??[],d=t?.remotes??[],x=r?.packageIndex??0,w=r?.remoteIndex??0,_=p.length>0&&(r?.packageIndex!==void 0||d.length===0),a=_?p[x]:null,i=_?null:d[w];let l,u,b=null;if(a){const c=a.identifier||a.name;l="STDIO",u="";const f={};if(a.environmentVariables)for(const y of a.environmentVariables)y.name&&(f[y.name]="");b={command:"npx",args:c?["-y",c]:[],...Object.keys(f).length>0&&{envVars:f}}}else if(i){const c=H(i.type);l=c==="SSE"||c==="Websocket"?c:"HTTP",u=i.url||""}else l="HTTP",u="";const U=d.length>1,A=p.length>1;let g="";a&&A?g=` (${j(a)})`:i&&U&&(g=` (${W(i)})`);const M=S+g;return{id:$("conn"),title:M,description:v,icon:N,app_name:L(e),app_id:o?.id||e.id||null,connection_type:l,connection_url:u,connection_token:null,connection_headers:b,oauth_config:P,configuration_state:T??null,configuration_scopes:C??null,metadata:{source:"store",registry_item_id:e.id,verified:o?.verified??!1,scopeName:o?.scopeName??null,toolsCount:o?.tools?.length??0,publishedAt:o?.publishedAt??null,repository:I},created_at:m,updated_at:m,created_by:s,organization_id:n,tools:null,bindings:null,status:"inactive"}}export{L as a,q as e,$ as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as h,u as x,j as l,dY as m}from"./index-5IFWC0PS.js";import{F as j}from"./feature-paywall-CzMsGR-v.js";import{d as v,e as F}from"./use-entitlements-BPjzEs4p.js";import{b as S}from"./use-view-draft-kind-Cu0aFeKZ.js";function g(f){const e=h.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=S();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=x(r),d=v(a);if(!F()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(d)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,m as B,j as t,x as F,
|
|
1
|
+
import{c as $,m as B,j as t,x as F,aT as R,w as O,v as M,D as H,b as J,d as W,a4 as q,J as G,af as I,bu as K,B as U}from"./index-5IFWC0PS.js";import{u as Q,a as V,i as X,p as Y,b as Z,P as ee,f as te}from"./plan-ladder-BVTNP5Xz.js";import{a as se}from"./use-entitlements-BPjzEs4p.js";function le(N){const e=$.c(37),{open:a,onDismiss:n,accentClassName:i,icon:E,title:s,description:P,highlights:D,price:v,action:k,dismissAction:T}=N,A=a===void 0?!0:a,y=i??"text-muted-foreground";let l;e[0]!==n?(l=j=>!j&&n?.(),e[0]=n,e[1]=l):l=e[1];let c;e[2]!==y?(c=B("pointer-events-none",y),e[2]=y,e[3]=c):c=e[3];let h,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"absolute inset-x-0 top-0 h-60 opacity-60 dark:opacity-30",style:{background:"radial-gradient(ellipse 70% 100% at 50% 0%, currentColor 0%, transparent 72%)"}}),b=t.jsx("div",{className:"absolute inset-x-8 top-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-80 dark:opacity-60"}),e[4]=h,e[5]=b):(h=e[4],b=e[5]);let o;e[6]!==c?(o=t.jsxs("div",{"aria-hidden":"true",className:c,children:[h,b]}),e[6]=c,e[7]=o):o=e[7];let r;e[8]!==E?(r=t.jsx("div",{className:"mb-7",children:E}),e[8]=E,e[9]=r):r=e[9];let p;e[10]!==s?(p=t.jsx(F,{className:"text-2xl font-semibold leading-tight tracking-tight text-balance",children:s}),e[10]=s,e[11]=p):p=e[11];let d;e[12]!==P?(d=P&&t.jsx(R,{className:"mx-auto max-w-[32ch] text-sm leading-relaxed text-pretty",children:P}),e[12]=P,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==d?(m=t.jsxs(O,{className:"gap-2",children:[p,d]}),e[14]=p,e[15]=d,e[16]=m):m=e[16];let g;e[17]!==D?(g=D&&t.jsx("div",{className:"mt-6 w-fit",children:D}),e[17]=D,e[18]=g):g=e[18];let u;e[19]!==v?(u=v&&t.jsx("div",{className:"mt-7",children:v}),e[19]=v,e[20]=u):u=e[20];let x;e[21]!==k||e[22]!==T?(x=t.jsxs("div",{className:"mt-8 flex w-full flex-col items-center gap-2",children:[k,T]}),e[21]=k,e[22]=T,e[23]=x):x=e[23];let f;e[24]!==m||e[25]!==g||e[26]!==u||e[27]!==x||e[28]!==r?(f=t.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-8 text-center",children:[r,m,g,u,x]}),e[24]=m,e[25]=g,e[26]=u,e[27]=x,e[28]=r,e[29]=f):f=e[29];let w;e[30]!==f||e[31]!==o?(w=t.jsxs(M,{className:"gap-0 overflow-hidden p-0 sm:max-w-[480px]",onOpenAutoFocus:ae,children:[o,f]}),e[30]=f,e[31]=o,e[32]=w):w=e[32];let C;return e[33]!==A||e[34]!==w||e[35]!==l?(C=t.jsx(H,{open:A,onOpenChange:l,children:w}),e[33]=A,e[34]=w,e[35]=l,e[36]=C):C=e[36],C}function ae(N){return N.preventDefault()}function ne(N,e){if(!N||!e)return null;const a=N.findIndex(i=>i.id===e)+1,n=a>0?N[a]:void 0;return n?{plan:n,index:a}:null}const _={kanban:["settings.paywall.bullets.kanban.1","settings.paywall.bullets.kanban.2","settings.paywall.bullets.kanban.3"],cms:["settings.paywall.bullets.cms.1","settings.paywall.bullets.cms.2","settings.paywall.bullets.cms.3"],monitoring:["settings.paywall.bullets.monitoring.1","settings.paywall.bullets.monitoring.2","settings.paywall.bullets.monitoring.3"]},ie=["settings.paywall.bullets.allowance.1","settings.paywall.bullets.allowance.2","settings.paywall.bullets.allowance.3"];function pe(N){const e=$.c(45),{feature:a,copy:n,onDismiss:i,onSeePlans:E}=N,s=J(),P=W(),{org:D}=q(),{data:v}=Q(),{data:k}=se(),{data:T}=V(),[A]=G();let y,l,c,h,b,o,r,p;if(e[0]!==n||e[1]!==k?.plan.id||e[2]!==a||e[3]!==i||e[4]!==v||e[5]!==T||e[6]!==s){const C=s(`settings.planUsage.feature.${a}`),j=X(k?.plan.id)?null:n?ne(v,k?.plan.id):Y(v,a),z=j?Z(j.index):void 0;l=j?T?.[j.plan.id]:void 0;const L=n?ie:a in _?_[a]:null;y=le,c=i,h=z,b=j?t.jsx(ee,{index:j.index,className:"size-20"}):t.jsx(I,{className:"size-12 text-muted-foreground"}),o=n?.title??(j?s("settings.paywall.upgradeTitle",{plan:j.plan.name,feature:C}):C),r=n?.description??(L?void 0:j?s("settings.paywall.upgradeDescription"):s("settings.paywall.description",{feature:C})),p=L&&t.jsx("ul",{className:"flex flex-col gap-2.5 text-left",children:L.map(S=>t.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[t.jsx(K,{size:16,className:B("shrink-0",z)}),t.jsx("span",{children:s(S)})]},S))}),e[0]=n,e[1]=k?.plan.id,e[2]=a,e[3]=i,e[4]=v,e[5]=T,e[6]=s,e[7]=y,e[8]=l,e[9]=c,e[10]=h,e[11]=b,e[12]=o,e[13]=r,e[14]=p}else y=e[7],l=e[8],c=e[9],h=e[10],b=e[11],o=e[12],r=e[13],p=e[14];let d;e[15]!==A||e[16]!==l||e[17]!==s?(d=l!==void 0?t.jsxs("span",{className:"flex items-baseline justify-center gap-1.5",children:[t.jsx("span",{className:"text-2xl font-semibold tabular-nums tracking-tight",children:te(l,A.language)}),t.jsx("span",{className:"text-sm text-muted-foreground",children:s("settings.plans.perMonth")})]}):void 0,e[15]=A,e[16]=l,e[17]=s,e[18]=d):d=e[18];let m;e[19]!==P||e[20]!==i||e[21]!==E||e[22]!==D.slug?(m=()=>{P({to:"/$org/settings/ai-providers",params:{org:D.slug}}),(E??i)?.()},e[19]=P,e[20]=i,e[21]=E,e[22]=D.slug,e[23]=m):m=e[23];let g;e[24]!==s?(g=s("settings.paywall.seePlans"),e[24]=s,e[25]=g):g=e[25];let u;e[26]!==m||e[27]!==g?(u=t.jsx(U,{size:"lg",className:"w-full",onClick:m,children:g}),e[26]=m,e[27]=g,e[28]=u):u=e[28];let x;e[29]!==s?(x=s("settings.paywall.dismiss"),e[29]=s,e[30]=x):x=e[30];let f;e[31]!==i||e[32]!==x?(f=t.jsx(U,{variant:"ghost",size:"lg",className:"w-full",onClick:i,children:x}),e[31]=i,e[32]=x,e[33]=f):f=e[33];let w;return e[34]!==y||e[35]!==c||e[36]!==u||e[37]!==f||e[38]!==h||e[39]!==b||e[40]!==o||e[41]!==r||e[42]!==p||e[43]!==d?(w=t.jsx(y,{onDismiss:c,accentClassName:h,icon:b,title:o,description:r,highlights:p,price:d,action:u,dismissAction:f}),e[34]=y,e[35]=c,e[36]=u,e[37]=f,e[38]=h,e[39]=b,e[40]=o,e[41]=r,e[42]=p,e[43]=d,e[44]=w):w=e[44],w}export{pe as F};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as Se,b as ve,r as f,j as s,I as Ye,h as fe,x as It,aT as Gt,w as Vt,B as Ce,y as Bt,v as qt,D as Ht,aH as Wt,aI as Qt,aJ as Ut,aK as Jt,b5 as Xt,aL as Yt,aM as Zt,aN as _t,m as me,as as en,q as tn,t as ee,K as Ze}from"./index-5IFWC0PS.js";import{m as nn,K as rn,b$ as sn,c0 as ln}from"./agent-icon-bK3wLPrb.js";import{s as on}from"./XClose-D9taHFI1.js";import{S as an}from"./scroll-area-cgfYHO2J.js";import{c as _e,T as et,a as tt}from"./tooltip-Bj0ggRLV.js";import{b as cn}from"./chat-context-BXBBnsXM.js";import{F as dn}from"./editor-DSTLBMSV.js";import{g as fn}from"./shell-layout-SnEo2Z8s.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{s as nt,f as un}from"./sandbox-git-api-DcqI6XE4.js";import{f as xn,C as de,d as rt,g as mn,e as pn}from"./context-menu-C8EhSOHZ.js";import{t as hn}from"./ChevronUp-B7dgqvYM.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as yn,E as bn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Ke,m as De,g as Me,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as Tn,y as kn}from"./utils-yu1cqe5g.js";import"./AlertCircle-BdE1rZoJ.js";import"./Tool01-D4tVVqAj.js";import"./ArrowUp-km-Xmh__.js";import"./ArrowLeft-DIrnwv8l.js";import"./LinkBroken01-Mv2kbzSM.js";import"./BookOpen01-BneB1q9z.js";import"./Globe04-DIBckqos.js";import"./CheckCircle-CiBUynzC.js";import"./ChevronSelectorVertical-CRWdnYCm.js";import"./UserSquare-CK-bjijW.js";import"./CreditCard01-CcIddg9s.js";import"./SwitchHorizontal01-Dkkqg27i.js";import"./Key01-BV5ckBOE.js";import"./Minus-Bygm9L7w.js";import"./Monitor01-HDGt-WwC.js";import"./Sun-CgOyXDTW.js";import"./Play-DROL2O51.js";import"./Plus-C-Or0hIv.js";import"./SearchMd-D88tiwag.js";import"./ShoppingBag01-Cdbqpanm.js";import"./Trash01-Cqkcp6ky.js";import"./Upload01-CsOcxm5q.js";import"./Users01-BpEuprvx.js";import"./Zap-BhxT34oC.js";import"./index-BdQq_4o_.js";import"./index-e47kvUTQ.js";import"./use-view-draft-kind-Cu0aFeKZ.js";import"./thread-route-CG4NoBnV.js";import"./use-project-scope-D1EeIJG0.js";import"./repository-binding-L4ChVpPs.js";import"./use-mcp-client-D_jTz-1i.js";import"./auth-YGSVzhUG.js";import"./use-organization-settings-CIEI8bNF.js";import"./schema-Dc_MkHkp.js";import"./task-board-DVtARw_U.js";import"./thread-intent-BujELieJ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Cgkbp7EA.js";import"./use-entitlements-BPjzEs4p.js";import"./use-ai-providers-hOyNnU7s.js";import"./use-decopilot-events-Ctfpdj_z.js";import"./use-deployment-admin-CJOxofw6.js";import"./admin-fetch-BhTJlAsX.js";import"./command-CL5fBjco.js";import"./index-BgGa_gEX.js";import"./integration-icon-ClorKiq5.js";import"./project-icon-B90806PF.js";import"./use-navigate-to-agent-BoWId4qC.js";import"./use-debounced-value-B0C48w17.js";import"./new-project-dialog-ly3jlxrO.js";import"./label-C1myK8cj.js";import"./repository-picker-CCYsOJZQ.js";import"./github-icon-DbvGzNXg.js";import"./useInfiniteQuery-CfdlXnOy.js";import"./infiniteQueryObserver-CgeE9MzI.js";import"./collection-search-d8_we7KS.js";import"./legacy-admin-welcome-dialog-DtBTs-JZ.js";import"./drawer-CT21cqiT.js";import"./use-mobile-M7B5YJR_.js";import"./required-auth-layout-BUx3f5eg.js";import"./use-org-sso-zsNytoCe.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:x,mode:J,initialName:b,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=b===void 0?"":b,m=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[X,K]=f.useState(x),p=Rn[J];x!==X&&(K(x),x&&P(O));let c;e[0]!==m||e[1]!==w?(c=U=>{!U&&!m&&w(!1)},e[0]=m,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==m||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||m||await d(te)},e[3]=m,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==p.titleKey||e[8]!==a?(S=a(p.titleKey),e[7]=p.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(It,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==p.descriptionKey||e[13]!==a?(D=a(p.descriptionKey),e[12]=p.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(Gt,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(Vt,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(Ye,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let y;e[23]!==a?(y=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=y):y=e[24];let T;e[25]!==y?(T=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:y}),e[25]=y,e[26]=T):T=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==p.placeholderKey||e[29]!==a?($=a(p.placeholderKey),e[28]=p.placeholderKey,e[29]=a,e[30]=$):$=e[30];let Y;e[31]!==m||e[32]!==o||e[33]!==$?(Y=s.jsx(Ye,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:m}),e[31]=m,e[32]=o,e[33]=$,e[34]=Y):Y=e[34];let Z;e[35]!==T||e[36]!==Y?(Z=s.jsxs("div",{className:"space-y-1.5",children:[T,Y]}),e[35]=T,e[36]=Y,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let k;e[43]!==a?(k=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=k):k=e[44];let W;e[45]!==m||e[46]!==I||e[47]!==k?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:m,children:k}),e[45]=m,e[46]=I,e[47]=k,e[48]=W):W=e[48];let M;e[49]!==m||e[50]!==o?(M=!o.trim()||m,e[49]=m,e[50]=o,e[51]=M):M=e[51];let Q;e[52]!==p.submitKey||e[53]!==m||e[54]!==a?(Q=m?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(p.submitKey),e[52]=p.submitKey,e[53]=m,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==M||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:M,children:Q}),e[56]=M,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(Bt,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let V;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(V=s.jsx(qt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=V):V=e[66];let B;return e[67]!==C||e[68]!==x||e[69]!==V?(B=s.jsx(Ht,{open:x,onOpenChange:C,children:V}),e[67]=C,e[68]=x,e[69]=V,e[70]=B):B=e[70],B}function Pn(A){const e=Se.c(47),{deleteTarget:x,deleteDirtyPaths:J,fsActionPending:b,onOpenChange:N,onConfirm:L}=A,d=ve(),w=x?.kind==="directory",O=x!==null,m=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==m?(a=d(m),e[0]=d,e[1]=m,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(Wt,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const X=x?.name;let K;e[7]!==X?(K=s.jsx("span",{className:"font-mono",children:X}),e[7]=X,e[8]=K):K=e[8];let p;e[9]!==w||e[10]!==d?(p=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=p):p=e[11];let c;e[12]!==J.length||e[13]!==d?(c=J.length>0&&s.jsxs(s.Fragment,{children:[" ",J.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:J.length})]}),e[12]=J.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==K||e[17]!==p||e[18]!==c?(C=s.jsxs(Qt,{children:[P," ",K,p,c]}),e[15]=P,e[16]=K,e[17]=p,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(Ut,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==b||e[26]!==R?(S=s.jsx(Jt,{disabled:b,children:R}),e[25]=b,e[26]=R,e[27]=S):S=e[27];const v=b||!x;let D;e[28]!==x||e[29]!==L?(D=H=>{H.preventDefault(),x&&L(x)},e[28]=x,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(Xt,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(Yt,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let y;e[40]!==z||e[41]!==E?(y=s.jsxs(Zt,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=y):y=e[42];let T;return e[43]!==N||e[44]!==O||e[45]!==y?(T=s.jsx(_t,{open:O,onOpenChange:N,children:y}),e[43]=N,e[44]=O,e[45]=y,e[46]=T):T=e[46],T}const Kn="#d9a441";function Mn(A){const e=Se.c(63),{node:x,depth:J,isExpanded:b,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:m,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:X,onDelete:K}=A,p=L===void 0?!1:L,c=ve(),C=x.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=me("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-sm hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${J*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==b||e[11]!==p?(E=C?s.jsxs(s.Fragment,{children:[p?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):b?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(en,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(nn,{size:16,className:"shrink-0",style:{color:Kn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=b,e[11]=p,e[12]=E):E=e[12];let y;e[13]!==x.name?(y=s.jsx("span",{className:"truncate",children:x.name}),e[13]=x.name,e[14]=y):y=e[14];let T;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==y?(T=s.jsx(xn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,y]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=y,e[20]=T):T=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==m||e[24]!==H?($=s.jsx(de,{onSelect:m,children:H}),e[23]=m,e[24]=H,e[25]=$):$=e[25];let Y;e[26]!==c?(Y=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=Y):Y=e[27];let Z;e[28]!==a||e[29]!==Y?(Z=s.jsx(de,{onSelect:a,children:Y}),e[28]=a,e[29]=Y,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let k;e[34]!==o||e[35]!==I?(k=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=k):k=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let M;e[39]!==P||e[40]!==W?(M=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=M):M=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==X||e[46]!==G?(F=s.jsx(de,{onSelect:X,children:G}),e[45]=X,e[46]=G,e[47]=F):F=e[47];let V;e[48]!==c?(V=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=V):V=e[49];let B;e[50]!==K||e[51]!==V?(B=s.jsx(de,{variant:"destructive",onSelect:K,children:V}),e[50]=K,e[51]=V,e[52]=B):B=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==k||e[56]!==M||e[57]!==F||e[58]!==B?(U=s.jsxs(mn,{className:"w-52",children:[$,Z,_,k,M,Q,F,B]}),e[53]=$,e[54]=Z,e[55]=k,e[56]=M,e[57]=F,e[58]=B,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==T?(te=s.jsxs(pn,{children:[T,U]}),e[60]=U,e[61]=T,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:x,query:J}=A;let b,N,L;if(e[0]!==J||e[1]!==x){const{leadingEllipsis:w,segments:O}=En(x,J);b="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=J,e[1]=x,e[2]=b,e[3]=N,e[4]=L}else b=e[2],N=e[3],L=e[4];let d;return e[5]!==b||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:b,children:[N,L]}),e[5]=b,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function cs({orgSlug:A,virtualMcpId:e,branch:x,threadId:J,openPath:b}){const N={orgSlug:A,virtualMcpId:e,branch:x,threadId:J},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[m,a]=f.useState(new Set),[o,P]=f.useState(null),[X,K]=f.useState(null),[p,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,y]=f.useState(!1),[T,H]=f.useState(!1),[$,Y]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),k=f.useRef(0),W=f.useRef(null),M=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),V=f.useRef(null),B=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return M.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,pe]=f.useState(null),{sendMessage:lt}=cn(),{openSidePanel:ot}=fn(),he=tn(),[q,re]=f.useState(null),[Te,ke]=f.useState(null),[ge,ye]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function be(){he.invalidateQueries({queryKey:nt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=Tn(t);if(!n)return;const r=`${A}/${e}/${x}`;he.setQueryData(Ze.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Ze.liveMeta(A,e,x)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return p.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),K(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);K(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await be(),re(null),xe(r)}async function xt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await be(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),K({name:n,path:r,kind:"directory",children:[]})}async function mt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await be(),re(null)}async function pt(t,n){ye(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await be(),ke(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{ye(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}ye(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await xt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await mt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{ye(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,yt]=f.useState(null),h=ve();if(b&&b!==gt){yt(b);const t=b;queueMicrotask(()=>{yn(t)&&xe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,r){if(r!==k.current)return!1;let i=!1;return d(l=>{const u=n?kn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function bt(t){const n=Q.current.get(t);if(n)return n;const r=k.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Ve(l,!0,r);return!u&&r===k.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Be(t){if(!Oe(t,M.current))return!1;I(n=>new Set(n).add(t));try{return await bt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(M.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Be(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++k.current;V.current=null,B.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:bn});Ve(n,!1,t),Y(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),y(!1)}async function Nt(){const t=k.current,n=V.current;if(n&&n.generation===t)return n.files;const r=B.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return k.current===t&&(V.current={generation:t,files:l.files}),l.files})();B.current={generation:t,promise:i};try{return await i}finally{B.current?.generation===t&&(B.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),y((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),y(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),y(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;xe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:nt(N)});try{const r=await un(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function Tt(t){P(t),K({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),pe(null),p.includes(t)||c(n=>[...n,t]),qe(t)}function kt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,M.current))try{if(await Be(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),Tt(t)}function xe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Kt(){return X?.kind==="directory"?X.path:X?.kind==="file"?De(X.path):o?De(o):"/"}function Qe(t){const n=Kt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Mt=wn(w,O),Ue=jn(Mt,m),Le=R?.length??0,Je=Nn(v??[]),Xe=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=Te?dt(Te.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);pe({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Me(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
2
|
+
`)}]}),pe(null)}return T&&!$?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[s.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(rn,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{type:"text",value:C,onChange:t=>St(t.target.value),placeholder:h("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":h("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs placeholder:text-muted-foreground focus-ring"})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":h("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:s.jsx(sn,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFile")})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":h("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:s.jsx(ln,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFolder")})]})]}),s.jsx(an,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[!C&&Ue.map(t=>{const{node:n,depth:r}=t,i=n.kind==="directory",l=m.has(n.path),u=X?.path===n.path,le=Dn(n.path,n.kind),we=i&&_.has(n.path);return s.jsx(Mn,{node:n,depth:r,isExpanded:l,isSelected:u,isLoading:we,fileVisual:Ke(n.name),onSelect:()=>K(n),onOpen:()=>{i?Lt(n.path,l):xe(n.path)},onNewFile:()=>re({mode:"new-file",node:n,parentDir:le}),onNewFolder:()=>re({mode:"new-folder",node:n,parentDir:le}),onCopyPath:()=>$e(h,"Path",Ne(n.path)),onCopyRelativePath:()=>$e(h,"Relative path",ne(n.path)),onRename:()=>re({mode:"rename",node:n,parentDir:le}),onDelete:()=>ke(n)},n.path)}),!C&&$&&Ue.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFilesFound")}),C&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-2xs font-medium text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.files")}),Le>0&&s.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=it?"+":""]})]}),R!==null&&R.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFileNamesMatch")}),R?.map(t=>{const n=t.split("/").pop()??t,r=De(t),{Icon:i,color:l}=Ke(n),u=o===t;return s.jsxs("button",{type:"button",onClick:()=>xe(t),title:t,className:me("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",u&&"bg-accent"),children:[s.jsx(i,{size:14,className:me("shrink-0",l)}),s.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),r!=="/"&&s.jsx("span",{className:"truncate text-muted-foreground/60",children:r})]},t)})]}),C&&s.jsxs("div",{className:"mt-1 border-t pt-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-2xs font-medium text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.inFiles")}),Xe>0&&s.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Xe,E?"+":""]}),j&&s.jsx(fe,{className:"size-[10px]"})]}),!j&&v!==null&&Je.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noMatchesInFileContents")}),Je.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:r,color:i}=Ke(n);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[s.jsx(r,{size:14,className:me("shrink-0",i)}),s.jsx("span",{className:"truncate",children:n}),s.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(l=>s.jsxs("button",{type:"button",onClick:()=>vt(l),title:`${t.path}:${l.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[s.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:l.line}),s.jsx($n,{text:l.text,query:C})]},`${t.path}:${l.line}`))]},t.path)})]})]})})]}),s.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[p.length>0&&s.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:p.map(t=>{const n=oe.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,i=o===t,l=t.split("/").pop()??t;return s.jsxs("div",{className:me("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",i?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{P(t),qe(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":i,children:[s.jsx("span",{className:"truncate max-w-32",children:l}),r&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),s.jsx("button",{type:"button",className:"ml-1 p-0.5 hover:bg-accent-foreground/10 rounded-lg",onClick:u=>{u.stopPropagation(),kt(t)},children:s.jsx(on,{size:12})})]},t)})}),se&&s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:s.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl glass px-3 py-1.5",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&$t(r.value)},children:[s.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:h("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&pe(null)}}),s.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-foreground text-background transition-opacity",title:h("sandbox.fileExplorer.send"),children:s.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[s.jsx("title",{children:h("sandbox.fileExplorer.send")}),s.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),s.jsx("div",{className:"flex-1 overflow-hidden",children:o&&ce?.loaded?s.jsx(dn,{language:Me(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ce.editorValue,path:o,onChange:t=>{const n=o;n&&ae(r=>{const i=new Map(r),l=i.get(n);return l&&i.set(n,{...l,editorValue:t??""}),i})},onMount:zt,loading:s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!ce?.loaded?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:h("sandbox.fileExplorer.selectFileToEdit")})}),o&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-2xs text-muted-foreground shrink-0",children:[s.jsx("span",{className:"truncate",children:o}),s.jsxs("span",{children:[h(At?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Me(o)]})]})]}),s.jsx(Ln,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":ne(q.parentDir):void 0,isPending:ge,onSubmit:t=>ht(h,t),onOpenChange:t=>{!t&&!ge&&re(null)}}),s.jsx(Pn,{deleteTarget:Te,deleteDirtyPaths:Ot,fsActionPending:ge,onOpenChange:t=>{!t&&!ge&&ke(null)},onConfirm:t=>{pt(h,t)}})]})}export{cs as FileExplorer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,J as g,j as s,h as v,
|
|
1
|
+
import{c as x,J as g,j as s,h as v,dY as w,B as N}from"./index-5IFWC0PS.js";import{aN as y}from"./agent-icon-bK3wLPrb.js";import{h as S}from"./use-org-fs-Dpr5-hHp.js";import{g as b}from"./utils-yu1cqe5g.js";import{F as _}from"./editor-DSTLBMSV.js";import{F as k}from"./file-type-icon-DI74_rhH.js";import{M as z}from"./markdown-BhnPL5Bs.js";function U(n){const e=x.c(11),{value:l,filename:r}=n,[t]=g(),c=t.theme==="dark"||t.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==r?(o=b(r),e[0]=r,e[1]=o):o=e[1];const f=c?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(v,{className:"size-5 text-muted-foreground"})}),e[2]=a):a=e[2];let i,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={enabled:!1},d={top:12,bottom:12},e[3]=i,e[4]=d):(i=e[3],d=e[4]);let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:i,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=m):m=e[5];let u;return e[6]!==r||e[7]!==o||e[8]!==f||e[9]!==l?(u=s.jsx(_,{path:r,language:o,value:l,theme:f,loading:a,options:m},r),e[6]=r,e[7]=o,e[8]=f,e[9]=l,e[10]=u):u=e[10],u}function E(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const F=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),T=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),h=2*1024*1024;function $(n,e){const l=n.split(".").pop()?.toLowerCase()??"";return F.has(l)?"image":l==="pdf"?"pdf":l==="html"||l==="htm"?"html":l==="md"||l==="markdown"?e<=h?"markdown":"download":T.has(l)&&e<=h?"text":"download"}function M(){const n=x.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(w,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let l;return n[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(w,{className:"h-3 w-full"}),s.jsx(w,{className:"h-3 w-5/6"}),s.jsx(w,{className:"h-3 w-2/3"})]})]})}),n[1]=l):l=n[1],l}function j(n){const e=x.c(20),{file:l,note:r}=n;let t;e[0]!==l.filename?(t=s.jsx(k,{filename:l.filename,className:"h-12 w-10"}),e[0]=l.filename,e[1]=t):t=e[1];let c;e[2]!==l.filename?(c=s.jsx("span",{className:"text-sm font-medium text-foreground",children:l.filename}),e[2]=l.filename,e[3]=c):c=e[3];let o;e[4]!==l.size?(o=E(l.size),e[4]=l.size,e[5]=o):o=e[5];const f=r?` · ${r}`:"";let a;e[6]!==o||e[7]!==f?(a=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,f]}),e[6]=o,e[7]=f,e[8]=a):a=e[8];let i;e[9]!==c||e[10]!==a?(i=s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[c,a]}),e[9]=c,e[10]=a,e[11]=i):i=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(y,{size:14}),e[12]=d):d=e[12];let m;e[13]!==l.downloadUrl||e[14]!==l.filename?(m=s.jsx(N,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:l.downloadUrl,download:l.filename,children:[d,"Download"]})}),e[13]=l.downloadUrl,e[14]=l.filename,e[15]=m):m=e[15];let u;return e[16]!==t||e[17]!==i||e[18]!==m?(u=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 surface-inset px-10 py-8",children:[t,i,m]})}),e[16]=t,e[17]=i,e[18]=m,e[19]=u):u=e[19],u}function p(n){const e=x.c(9),{file:l,markdown:r}=n,{data:t,isPending:c,isError:o}=S(l.downloadUrl);if(c){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0],a}if(o||!t){let a;return e[1]!==l?(a=s.jsx(j,{file:l,note:"preview unavailable"}),e[1]=l,e[2]=a):a=e[2],a}if(r){const a=`file-preview-${l.key}`;let i;return e[3]!==t||e[4]!==a?(i=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(z,{id:a,text:t})})}),e[3]=t,e[4]=a,e[5]=i):i=e[5],i}let f;return e[6]!==t||e[7]!==l.filename?(f=s.jsx(U,{value:t,filename:l.filename}),e[6]=t,e[7]=l.filename,e[8]=f):f=e[8],f}function I(n){const e=x.c(15),{file:l}=n;switch($(l.filename,l.size)){case"image":{let t;return e[0]!==l.downloadUrl||e[1]!==l.filename?(t=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:l.downloadUrl,alt:l.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=l.downloadUrl,e[1]=l.filename,e[2]=t):t=e[2],t}case"pdf":{let t;return e[3]!==l.downloadUrl||e[4]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-same-origin allow-downloads",className:"block h-full w-full bg-white"}),e[3]=l.downloadUrl,e[4]=l.filename,e[5]=t):t=e[5],t}case"html":{let t;return e[6]!==l.downloadUrl||e[7]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=t):t=e[8],t}case"markdown":{let t;return e[9]!==l?(t=s.jsx(p,{file:l,markdown:!0}),e[9]=l,e[10]=t):t=e[10],t}case"text":{let t;return e[11]!==l?(t=s.jsx(p,{file:l,markdown:!1}),e[11]=l,e[12]=t):t=e[12],t}default:{let t;return e[13]!==l?(t=s.jsx(j,{file:l}),e[13]=l,e[14]=t):t=e[14],t}}}export{I as F,M as a,E as f};
|