decocms 4.430.5 → 4.430.6
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-WLxFsPUO.js → AlertCircle-BDgHvDzg.js} +1 -1
- package/dist/client/assets/{AreaChart--D8Etw1a.js → AreaChart-OTk9spDm.js} +1 -1
- package/dist/client/assets/{ArrowLeft--IiDjeRQ.js → ArrowLeft-DNPP9N52.js} +1 -1
- package/dist/client/assets/{ArrowUp-DyexQMNT.js → ArrowUp-D7thXyIV.js} +1 -1
- package/dist/client/assets/{CartesianChart-C7g2OfrW.js → CartesianChart-DuXd-FRt.js} +1 -1
- package/dist/client/assets/{Check-C8H6RsUT.js → Check-BavARqDA.js} +1 -1
- package/dist/client/assets/{CheckCircle-D9yWSnv6.js → CheckCircle-DJBhrWSH.js} +1 -1
- package/dist/client/assets/{ChevronUp-De-wvREd.js → ChevronUp-CSBHGgRT.js} +1 -1
- package/dist/client/assets/{Copy01-DaCIS5JS.js → Copy01-B6wvf2QH.js} +1 -1
- package/dist/client/assets/{CreditCard01-CjiAW23X.js → CreditCard01-B_XBiUkV.js} +1 -1
- package/dist/client/assets/{DotsVertical-XmmfpeZC.js → DotsVertical-BRQkLHwe.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-8mtV6fxg.js → ErrorBarContext-B_YVxVAk.js} +1 -1
- package/dist/client/assets/{Image01-CT3C1PUW.js → Image01-Dpr7e8vY.js} +1 -1
- package/dist/client/assets/{Key01-CVFz3mk1.js → Key01-Criyhav4.js} +1 -1
- package/dist/client/assets/{Line-wD5y9drA.js → Line-JkBJkt5u.js} +1 -1
- package/dist/client/assets/{Link01-B9uS_5f2.js → Link01-Dg7lfJaF.js} +1 -1
- package/dist/client/assets/{LinkBroken01-C7qZ6vR4.js → LinkBroken01-BHGNsSIt.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B8ya1ky1.js → LinkExternal01-DU9hmOmn.js} +1 -1
- package/dist/client/assets/{Monitor01-BHzmUmna.js → Monitor01-CoUN5nyT.js} +1 -1
- package/dist/client/assets/{Palette-C2tCru1B.js → Palette-CC3m4Vos.js} +1 -1
- package/dist/client/assets/{Plus-AxoD3wpH.js → Plus-fY-TSUlu.js} +1 -1
- package/dist/client/assets/{SearchMd-0c2pE6Z1.js → SearchMd-DBQ497ay.js} +1 -1
- package/dist/client/assets/{Sector-CpmpCXpD.js → Sector-YDwiyxBb.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DOfYKc3D.js → ShoppingBag01-Bt3jD6tD.js} +1 -1
- package/dist/client/assets/{Sun-Dwu2HrsO.js → Sun-Bk7N-nhk.js} +1 -1
- package/dist/client/assets/{Tool01-Dd7zzL8J.js → Tool01-A1I2zFy_.js} +1 -1
- package/dist/client/assets/{Trash01-D8AFvOkW.js → Trash01-BIJWcAi4.js} +1 -1
- package/dist/client/assets/{Upload01-CbDAup9j.js → Upload01-Bgo6KIQe.js} +1 -1
- package/dist/client/assets/{User01-Cnla5SNY.js → User01-B4wSaSqx.js} +1 -1
- package/dist/client/assets/{UserSquare-M5VH4tSp.js → UserSquare-CLutcjcP.js} +1 -1
- package/dist/client/assets/{Users01-BI20EsBd.js → Users01-XHIuh6fL.js} +1 -1
- package/dist/client/assets/{X-B15qp-bM.js → X-Dwd6uRpX.js} +1 -1
- package/dist/client/assets/{XAxis-BLXjR-U_.js → XAxis-n7sZyRNG.js} +1 -1
- package/dist/client/assets/{XClose-TnHFIPTu.js → XClose-Bhefv4tI.js} +1 -1
- package/dist/client/assets/{ZoomOut-B1C_SBzw.js → ZoomOut-B83Ybo5t.js} +1 -1
- package/dist/client/assets/{access-gate-ByTQzyMn.js → access-gate-TM0vttR2.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-LLl0ktXA.js → add-connection-dialog-D2EUMfbr.js} +1 -1
- package/dist/client/assets/{agent-analytics-DCo1R0HM.js → agent-analytics-AZtgztQU.js} +1 -1
- package/dist/client/assets/agent-app-BdrFEuam.js +1 -0
- package/dist/client/assets/{agent-assets-umJ3_vfL.js → agent-assets-BzR037Ll.js} +1 -1
- package/dist/client/assets/{agent-automation-B74tMsN9.js → agent-automation-CkDabidq.js} +1 -1
- package/dist/client/assets/{agent-automations-xy6SgMXv.js → agent-automations-DrNnbPR_.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-3JeDLscz.js → agent-connect-sources-B8rsqWXJ.js} +1 -1
- package/dist/client/assets/agent-deck-D-JOGGc2.js +1 -0
- package/dist/client/assets/{agent-e2e-xfHLkKsk.js → agent-e2e-B-kJwrAi.js} +1 -1
- package/dist/client/assets/{agent-experiments-CB4wxnh6.js → agent-experiments-B4LaDrCa.js} +1 -1
- package/dist/client/assets/{agent-file-CCFMIogg.js → agent-file-DkodpLYj.js} +1 -1
- package/dist/client/assets/{agent-git-BVT30B1g.js → agent-git-C40hXJUP.js} +1 -1
- package/dist/client/assets/{agent-hosting-llmJRChY.js → agent-hosting-BwAHI552.js} +1 -1
- package/dist/client/assets/{agent-icon-BMysTzji.js → agent-icon-8wKWfWsW.js} +1 -1
- package/dist/client/assets/agent-library-B1ZavamR.js +1 -0
- package/dist/client/assets/agent-library-file-FFLnpEVP.js +1 -0
- package/dist/client/assets/{agent-monitor-CB57wFAR.js → agent-monitor-CRLu--Uo.js} +1 -1
- package/dist/client/assets/{agent-overview-BsvpPsRP.js → agent-overview-CfA4oobZ.js} +1 -1
- package/dist/client/assets/agent-settings-6S44gIKg.js +1 -0
- package/dist/client/assets/{agent-site-editor-BMV7WxCX.js → agent-site-editor-CXbXp_TE.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CxcMG3bv.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-uB8vYsIn.js → agent-site-editor-content-STk23p1X.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-BVVYbDa4.js → agent-site-editor-preview-Bao6FykW.js} +3 -3
- package/dist/client/assets/agent-view-DoI4YNyE.js +1 -0
- package/dist/client/assets/{agent-view-guard-CWXAJsbn.js → agent-view-guard-Cv8MXF0l.js} +1 -1
- package/dist/client/assets/{agents-list-EhBiJtlv.js → agents-list-DBHo1sA-.js} +1 -1
- package/dist/client/assets/{ai-providers-CtVkGFzC.js → ai-providers-CdOVLPSv.js} +1 -1
- package/dist/client/assets/{alert-BeBEHYJk.js → alert-D_aHO8-u.js} +1 -1
- package/dist/client/assets/{alert-dialog-nBJyBHds.js → alert-dialog-DByGIuYP.js} +1 -1
- package/dist/client/assets/{analytics-sections-RS80Z8-V.js → analytics-sections-DBtMIoh4.js} +1 -1
- package/dist/client/assets/api-keys-B3OJ7KAK.js +1 -0
- package/dist/client/assets/{api-keys-DbM0bLP0.js → api-keys-DR7QP3ZY.js} +1 -1
- package/dist/client/assets/{app-editor-B670M4yO.js → app-editor-C3tpFGVS.js} +1 -1
- package/dist/client/assets/{asset-utils-DSArnKfh.js → asset-utils-DTTy3VQk.js} +1 -1
- package/dist/client/assets/{auth-CWswsGiH.js → auth-C5ssAciX.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cy7kwpXa.js → auth-catchall-B95wrsZd.js} +1 -1
- package/dist/client/assets/{auth-entry-B4802ma_.js → auth-entry-BTxDS7sX.js} +1 -1
- package/dist/client/assets/{auth-split-layout-T940L9t4.js → auth-split-layout-DOD4En0B.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B0taRWcH.js → authenticate-and-persist-oauth-XmB5ogP1.js} +1 -1
- package/dist/client/assets/{automation-list-row-CjQDd0-N.js → automation-list-row-58ZWRlQu.js} +1 -1
- package/dist/client/assets/{automation-runs-ChXMz0wM.js → automation-runs-DHA6--0n.js} +1 -1
- package/dist/client/assets/{automations-BBpJcSRm.js → automations-BGozOuUr.js} +1 -1
- package/dist/client/assets/{autosend-Cug5UcAG.js → autosend-BkngUOp9.js} +1 -1
- package/dist/client/assets/{avatar-DnKecRy_.js → avatar-DJGBw17b.js} +1 -1
- package/dist/client/assets/{badge-DF-uKzDf.js → badge-CHdoknJ9.js} +1 -1
- package/dist/client/assets/{block-document-DjumIRbz.js → block-document-CoCOA623.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-pYUqG2-U.js → blocks-preview-workspace-context-BfYB9NmF.js} +1 -1
- package/dist/client/assets/{buckets-ozF-HZ00.js → buckets-CRglanMO.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DWFuUMwK.js → build-improve-prompt-doc-CT4JwrDX.js} +1 -1
- package/dist/client/assets/{calendar-BQ508qAz.js → calendar-BwfArti1.js} +1 -1
- package/dist/client/assets/{capability-load-error-DmYrAVD2.js → capability-load-error-DK-CBBvl.js} +1 -1
- package/dist/client/assets/{category-editor-CtM5WVOp.js → category-editor-CYHnG7wh.js} +1 -1
- package/dist/client/assets/{chart-Dejzw-su.js → chart-3eklFA23.js} +1 -1
- package/dist/client/assets/{chat-context-xHKVtyN-.js → chat-context-B3iAEN-8.js} +1 -1
- package/dist/client/assets/{chat-draft-C1bYDzvj.js → chat-draft-BZJX6O_c.js} +1 -1
- package/dist/client/assets/{checkbox-BjooxGp3.js → checkbox-ChbnbRlq.js} +1 -1
- package/dist/client/assets/{choose-editor-90XcSzYk.js → choose-editor-DSw0vBkz.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-Bgjc6xSz.js → claim-phase-copy-BrUfyVbw.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CCizWZS5.js → cli-auth-success-CLEE6ffo.js} +1 -1
- package/dist/client/assets/{client-icons-DaW0Wcvj.js → client-icons-CpW87Bi-.js} +1 -1
- package/dist/client/assets/{collapsible-DV1EDtbS.js → collapsible-CNIXGm_G.js} +1 -1
- package/dist/client/assets/{collection-detail-CMV4I9dQ.js → collection-detail-CqvbwZNO.js} +1 -1
- package/dist/client/assets/{collection-display-button-B97AVV9X.js → collection-display-button-B8ELDUgG.js} +1 -1
- package/dist/client/assets/{collection-search-Bh3F5RPz.js → collection-search-CXvcqMWI.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-_8Pwav8V.js → collection-table-wrapper-jlWf-gQ1.js} +1 -1
- package/dist/client/assets/{collection-tabs-DLJfCnrp.js → collection-tabs-PRRbM1T1.js} +1 -1
- package/dist/client/assets/{combobox-CAXLOj1d.js → combobox-B3TKqXMB.js} +1 -1
- package/dist/client/assets/{command-CudACRXo.js → command-BYozFtpn.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-8n5YEZFA.js → companion-mcps-section-Be2MpS10.js} +1 -1
- package/dist/client/assets/{config-D1ZVWBQo.js → config-DodXu8Xs.js} +1 -1
- package/dist/client/assets/{connect-GLZzswuR.js → connect-B3yiVaM0.js} +1 -1
- package/dist/client/assets/{connect-layout-BP5-vJqY.js → connect-layout-tpHK5aL7.js} +1 -1
- package/dist/client/assets/{connection-DwkVdt15.js → connection-_qWeFCgs.js} +1 -1
- package/dist/client/assets/{connection-card-Bs97wA-l.js → connection-card-Bm0KGJd8.js} +1 -1
- package/dist/client/assets/{connection-detail-B76dERNo.js → connection-detail-C-9MXZ2A.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-w_2ctJEy.js → connection-form-helpers-DtfTdeqk.js} +1 -1
- package/dist/client/assets/{connections-CaEYaok3.js → connections-Bitq_gjD.js} +1 -1
- package/dist/client/assets/{context-BO_EXJqM.js → context-CIftA-46.js} +1 -1
- package/dist/client/assets/{context-menu-CJNqQEux.js → context-menu-DP17uWpu.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DJSybkYD.js → create-organization-dialog-7htqQEzA.js} +1 -1
- package/dist/client/assets/{daily-pulse-CfzreI9t.js → daily-pulse-CjX_B0yN.js} +1 -1
- package/dist/client/assets/{decopilot-BmiZ0Fnk.js → decopilot-R5a8a9vQ.js} +1 -1
- package/dist/client/assets/{dialog-Db-BbIhU.js → dialog-QCXlZZ0d.js} +1 -1
- package/dist/client/assets/{discover-CGAPeF1u.js → discover-OT_EhGdl.js} +1 -1
- package/dist/client/assets/{domain-settings-Cg69tE_8.js → domain-settings-DZu694Ta.js} +1 -1
- package/dist/client/assets/{download-app-dialog-nnWuI7Eh.js → download-app-dialog-Cgv2TVkw.js} +1 -1
- package/dist/client/assets/{drawer-C7syE5kg.js → drawer-DFa2n0XW.js} +1 -1
- package/dist/client/assets/{editor-B0Rr3ukS.js → editor-CXl3sED6.js} +1 -1
- package/dist/client/assets/{empty-state-DcImyzrl.js → empty-state-BIc2GiqL.js} +1 -1
- package/dist/client/assets/{empty-state-D6ap844s.js → empty-state-DO6cimsY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DKcRckgJ.js → extract-connection-data-DSKF7wVq.js} +1 -1
- package/dist/client/assets/{feature-gate-DKYkoUj2.js → feature-gate-CzPRGpxK.js} +1 -1
- package/dist/client/assets/{feature-paywall-Bmomxs7Q.js → feature-paywall-CmaH3z73.js} +1 -1
- package/dist/client/assets/{file-explorer-Bhdgl50s.js → file-explorer-MwMbgRV-.js} +1 -1
- package/dist/client/assets/{file-preview-YcHV20aa.js → file-preview-DEtp5sp7.js} +1 -1
- package/dist/client/assets/{file-share-button-CmpLdY-P.js → file-share-button-COyS5czs.js} +1 -1
- package/dist/client/assets/{file-type-icon-CsXrBdTe.js → file-type-icon-C9u2dOg0.js} +1 -1
- package/dist/client/assets/flat-project-DqZviQv-.js +1 -0
- package/dist/client/assets/{folder-icon-B7gwN6G4.js → folder-icon-VlnN9DYl.js} +1 -1
- package/dist/client/assets/{form-BOBrTN-0.js → form-Dny40JzX.js} +1 -1
- package/dist/client/assets/{gateway-client-CGRW3HTq.js → gateway-client-B9Gy7x8V.js} +1 -1
- package/dist/client/assets/{general-C4wpnuyr.js → general-KRo742Cf.js} +1 -1
- package/dist/client/assets/{home-Bb7syzWP.js → home-DYNJBCJg.js} +1 -1
- package/dist/client/assets/{icon-button-CDXCBLQO.js → icon-button-Cas6DlvI.js} +1 -1
- package/dist/client/assets/{index-BvlAnYL2.js → index-BES8lruF.js} +1 -1
- package/dist/client/assets/{index-BamBadr7.js → index-BFVaL5ja.js} +1 -1
- package/dist/client/assets/{index-CE9eX6nX.js → index-BIiswjoP.js} +1 -1
- package/dist/client/assets/{index-BsanfpEx.js → index-Bj4od5Fy.js} +1 -1
- package/dist/client/assets/{index-BU0YPvws.js → index-BqKcbgIx.js} +3 -3
- package/dist/client/assets/{index-XXUtK007.js → index-CF3_5JdG.js} +1 -1
- package/dist/client/assets/{index-BrdF7pRc.js → index-D6aXqoC4.js} +1 -1
- package/dist/client/assets/{index-DDvaqPn3.js → index-DD4thvUt.js} +1 -1
- package/dist/client/assets/{index-CH2RthXl.js → index-DUp_XUtW.js} +1 -1
- package/dist/client/assets/{index-BGzaTa4k.js → index-DdlgwhU7.js} +1 -1
- package/dist/client/assets/{index-BGUie4gU.js → index-Dvc60aqd.js} +1 -1
- package/dist/client/assets/{index-B0GDWzWh.js → index-DwmcqzsQ.js} +1 -1
- package/dist/client/assets/{index-B9rJKida.js → index-RTehtMUS.js} +1 -1
- package/dist/client/assets/{index-CV85Y2XM.js → index-U5TtTLeN.js} +2 -2
- package/dist/client/assets/{index-qxpB62Am.js → index-kUz4HvJ9.js} +1 -1
- package/dist/client/assets/{index-redirect-CQkk1KpK.js → index-redirect-BMmzWuVJ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-v5Zrgt9-.js → infiniteQueryObserver-BTjpWJ6R.js} +1 -1
- package/dist/client/assets/{infra-billing-Bu7guqgE.js → infra-billing-Cb4hsNoi.js} +1 -1
- package/dist/client/assets/{input-C7ONRzFu.js → input-CPho9AMQ.js} +3 -3
- package/dist/client/assets/{input-DqXgFVy1.js → input-DV_aGTD9.js} +1 -1
- package/dist/client/assets/{input-_mDnXdD8.js → input-f7pY7igy.js} +1 -1
- package/dist/client/assets/{integration-icon-D4VKL0LK.js → integration-icon-BFyploY_.js} +1 -1
- package/dist/client/assets/{label-DiCFPBA-.js → label-BrWNNvqx.js} +1 -1
- package/dist/client/assets/{last-preview-page-CccqUYQq.js → last-preview-page-CSjlTjmX.js} +1 -1
- package/dist/client/assets/{layout-D9dB_LXJ.js → layout-BMbvb-Jc.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep--oayPP8a.js → legacy-agents-deep-8HFfvCFY.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Bwbw-hDH.js → legacy-main-redirect-2KiqXJbz.js} +1 -1
- package/dist/client/assets/library-C72P0G1X.js +1 -0
- package/dist/client/assets/{library-tab-CdMZwb2x.js → library-tab-Cl2dYsx6.js} +1 -1
- package/dist/client/assets/{login-DcNL4yCu.js → login-xvmsyR6N.js} +1 -1
- package/dist/client/assets/{markdown-CWuXbNsx.js → markdown-DHdTo3-x.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D9UNItgG.js → mcp-app-renderer-B0eu_Xxq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3_hO5LUo.js → mcp-oauth-CC4wr0mo.js} +1 -1
- package/dist/client/assets/{members-CvgVk7OX.js → members-u4GIih77.js} +1 -1
- package/dist/client/assets/{message-templates-CsLovcTY.js → message-templates-C8V-5Kb4.js} +1 -1
- package/dist/client/assets/{mini-report-page-Fldt4EjU.js → mini-report-page--6xfqqrd.js} +1 -1
- package/dist/client/assets/{mock-board-Df_pngVT.js → mock-board-BotGTkgt.js} +1 -1
- package/dist/client/assets/{monaco-editor-DLtqDmvE.js → monaco-editor-RpyuXb5X.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DOugYBis.js → monitoring-stats-row-BjXSm4Wh.js} +1 -1
- package/dist/client/assets/{multi-select-CT3nDg7D.js → multi-select-BhslsIEl.js} +1 -1
- package/dist/client/assets/{mustache-CAYV_Rk2.js → mustache-DuFSgnoh.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Rt1lcM4R.js → new-project-dialog-v86MMpK8.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CaZCAZFj.js → oauth-callback-ai-provider-ClVZgFd-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ChrjHHvy.js → oauth-callback-oGsgFcVP.js} +1 -1
- package/dist/client/assets/{onboarding-DGpiONrc.js → onboarding-iuYh30YN.js} +1 -1
- package/dist/client/assets/{openai-conversation-NSaNo_51.js → openai-conversation-B2-LdsGi.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BUEIT26T.js → optimistic-project-sidebar-views-K2ud8FOS.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CxihjbMd.js → org-file-open-context-BAklPYkq.js} +1 -1
- package/dist/client/assets/{organization-choice-Dq-PIX65.js → organization-choice-NFUeJr95.js} +1 -1
- package/dist/client/assets/{orgs-DdtbEufV.js → orgs-B-P2GAwg.js} +1 -1
- package/dist/client/assets/{page-seo-form-BH-UCA3J.js → page-seo-form-CH4Odu0l.js} +1 -1
- package/dist/client/assets/{pair-BVFDYVJv.js → pair-DctSWO4u.js} +1 -1
- package/dist/client/assets/{plan-ladder-BnEex4av.js → plan-ladder-DzvDHMGa.js} +1 -1
- package/dist/client/assets/{popover-CyFcUzzH.js → popover-BYtVhvff.js} +1 -1
- package/dist/client/assets/{post-calendar-0GqL5zVI.js → post-calendar-SEsdoiLV.js} +1 -1
- package/dist/client/assets/{post-editor-DdzucB6K.js → post-editor-BW74YAeJ.js} +1 -1
- package/dist/client/assets/{preview-content-sRZyTUNd.js → preview-content-CN1-47Jp.js} +1 -1
- package/dist/client/assets/{preview-dialog-E5h_wZPR.js → preview-dialog-ASX4uv_T.js} +1 -1
- package/dist/client/assets/{profile-BYAG5CpN.js → profile-DU9JJcPy.js} +1 -1
- package/dist/client/assets/{project-app-view-10a2rfpj.js → project-app-view-ZLRnJXx8.js} +1 -1
- package/dist/client/assets/{project-feed-CoRwnWtA.js → project-feed-Dv3j2fQy.js} +1 -1
- package/dist/client/assets/{project-icon-mbRzYBtQ.js → project-icon-BlISzkWs.js} +1 -1
- package/dist/client/assets/project-reports-kmYI5V1q.js +1 -0
- package/dist/client/assets/project-tasks-D7Q5PaaU.js +1 -0
- package/dist/client/assets/{projects-BQNCKI6n.js → projects-BNOkXPTI.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CjAy4-Cc.js → projects-empty-state-Cu9qaW4o.js} +1 -1
- package/dist/client/assets/{prompts-D6aw4LWo.js → prompts-D8Ih3VC5.js} +1 -1
- package/dist/client/assets/record-editor-Bj5wIkFV.js +1 -0
- package/dist/client/assets/{redirect-editor-Bs7jivX4.js → redirect-editor-Db1HkxqA.js} +1 -1
- package/dist/client/assets/{reports-E6SmxjCB.js → reports-BBZBXZki.js} +1 -1
- package/dist/client/assets/reports-BY6fEkde.js +1 -0
- package/dist/client/assets/{reports-onboarding-D6Z8mNRA.js → reports-onboarding-Cxo3PpJS.js} +1 -1
- package/dist/client/assets/{reports-tab-Dn4Z0Yeb.js → reports-tab-CkNqQRnj.js} +2 -2
- package/dist/client/assets/{repositories-1703BnqO.js → repositories-BoqlF85f.js} +1 -1
- package/dist/client/assets/{repository-binding-BWijY7NW.js → repository-binding-LVr_cuv1.js} +1 -1
- package/dist/client/assets/{repository-import-picker-ELDNrT1x.js → repository-import-picker-iQbkAxof.js} +1 -1
- package/dist/client/assets/{repository-picker-RVl-Syi-.js → repository-picker-D6uXeNu6.js} +1 -1
- package/dist/client/assets/{require-capability-DN6yXLut.js → require-capability-Bes9gDiX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Z8G_S8XS.js → required-auth-layout-BlV9RnwV.js} +1 -1
- package/dist/client/assets/{reset-password-CAcKkj9Q.js → reset-password-DQ-6Twwf.js} +1 -1
- package/dist/client/assets/{resizable-HBUTB7QF.js → resizable-DqOflcb4.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-5h2GTVPm.js → resolve-tab-icon-Baffpnyi.js} +1 -1
- package/dist/client/assets/{review-settings-BUGpaeFV.js → review-settings-CyO9vt46.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CO1bHqXz.js → rich-text-link-control-DKBBw3vp.js} +1 -1
- package/dist/client/assets/{roles-BEjZ-BnM.js → roles-B3bl2yps.js} +1 -1
- package/dist/client/assets/route-Bu5mjNqR.js +1 -0
- package/dist/client/assets/{route-BjxqG7SJ.js → route-U8xz05sB.js} +1 -1
- package/dist/client/assets/{route-gcOOIFk_.js → route-yLQIYdyn.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Eba3o4zN.js → runnable-block-editor-DRRj70r-.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CH9zUzJE.js → sandbox-lifecycle-context-CtoGji_k.js} +1 -1
- package/dist/client/assets/{schema-C6dCdUBm.js → schema-Dnvw54dU.js} +1 -1
- package/dist/client/assets/{scroll-area-Pc4Af9OF.js → scroll-area-CP2varDw.js} +1 -1
- package/dist/client/assets/{search-input-Dtmmcv4x.js → search-input-Co0Ce_Vc.js} +1 -1
- package/dist/client/assets/{search-toggle-Cb9svwR8.js → search-toggle-CuZWJMno.js} +1 -1
- package/dist/client/assets/{secret-picker-DdQBOzBU.js → secret-picker-DoXzPx94.js} +1 -1
- package/dist/client/assets/{secrets-C3UpEp5E.js → secrets-D0qhgyUL.js} +1 -1
- package/dist/client/assets/{sections-editor-BR6xJDnG.js → sections-editor-BGhM307d.js} +1 -1
- package/dist/client/assets/{select-Dii9mPM0.js → select-Ct3YcjAx.js} +1 -1
- package/dist/client/assets/{select-model-Dm1i3PhZ.js → select-model-CPqDDB4Z.js} +1 -1
- package/dist/client/assets/{seo-editor-B1YLfub1.js → seo-editor-C8zPdZPD.js} +1 -1
- package/dist/client/assets/{separator-ShAvxXhB.js → separator-Cqa9NVxH.js} +1 -1
- package/dist/client/assets/{settings-tab-DGmFP7Wk.js → settings-tab-BLTKR9Va.js} +1 -1
- package/dist/client/assets/{sheet-BnXM6fyy.js → sheet-4ujukDLZ.js} +1 -1
- package/dist/client/assets/{shell-layout-CmS4DZYD.js → shell-layout-LBiS8CpN.js} +1 -1
- package/dist/client/assets/{skills-8o4phi13.js → skills-D29TNMKo.js} +1 -1
- package/dist/client/assets/{sso-DPdHcMGv.js → sso-BZ1HbRM2.js} +1 -1
- package/dist/client/assets/{suggestion-D0AD7w3J.js → suggestion-BdWBKCfr.js} +1 -1
- package/dist/client/assets/{switch-GtIfSYWT.js → switch-BTpXf8wW.js} +1 -1
- package/dist/client/assets/{synced-repos-Cnb9AwJE.js → synced-repos-CXh9JA3T.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Cfm260qY.js → tab-icon-glyph-DbetJmR4.js} +1 -1
- package/dist/client/assets/{table-Bo-wyW-P.js → table-DfWUkK2i.js} +1 -1
- package/dist/client/assets/{tabs-CeCmBjnr.js → tabs-Dcjc3ucj.js} +1 -1
- package/dist/client/assets/{task-board-_kAc-wMt.js → task-board-AK1BugnO.js} +1 -1
- package/dist/client/assets/{task-route-BZiA7JPU.js → task-route-CmXeUruT.js} +1 -1
- package/dist/client/assets/{task-status-BX-vgrDG.js → task-status-7MSdu5FW.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-jMTi3c9b.js → taskboard-analytics-evMaKT3m.js} +1 -1
- package/dist/client/assets/{tasks-C8FMXxSK.js → tasks-CYV93S-d.js} +1 -1
- package/dist/client/assets/tasks-DWWCwl49.js +1 -0
- package/dist/client/assets/{textarea-Cd4ptS1s.js → textarea-CJDsPwx4.js} +1 -1
- package/dist/client/assets/{thread-analytics-B1HdCTPx.js → thread-analytics-C3HkVV_6.js} +1 -1
- package/dist/client/assets/{thread-button-CsT-43YQ.js → thread-button-DtnSSpeA.js} +1 -1
- package/dist/client/assets/{thread-intent-D6aMrS60.js → thread-intent-CiAvd8JH.js} +1 -1
- package/dist/client/assets/{thread-route-CsYLLAoP.js → thread-route-DQND3c4X.js} +1 -1
- package/dist/client/assets/{thread-route-B6WibnEH.js → thread-route-s8_7v05c.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-_3qaX19F.js → thread-sheet-body-B2OZen-B.js} +1 -1
- package/dist/client/assets/{toggle-group-PyZOG6oH.js → toggle-group-DADuZMpw.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BYswEjAl.js → toolbar-icon-button-CyRoNacf.js} +1 -1
- package/dist/client/assets/{tooltip-2Mis4-mn.js → tooltip-KyO7mRaO.js} +1 -1
- package/dist/client/assets/{track-CDgEtSNH.js → track-CO1HNga9.js} +1 -1
- package/dist/client/assets/{types-DPxZePFt.js → types-CodnBhOK.js} +1 -1
- package/dist/client/assets/{usage-stats-Biy2gvbw.js → usage-stats-BmDtcdGy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BBHi9AQy.js → use-ai-providers-Tf37ItfB.js} +1 -1
- package/dist/client/assets/{use-automations-G8xg559v.js → use-automations-0AQ6hdDt.js} +1 -1
- package/dist/client/assets/{use-autosave-BRoqt6xF.js → use-autosave-DqG3kDz3.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C7XIqhuU.js → use-chat-layout-state-57nzQyUd.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ZG_7cqQW.js → use-connect-companion-VWO9aQTH.js} +1 -1
- package/dist/client/assets/{use-connection-CAn-wBc7.js → use-connection-tqa6M1_v.js} +1 -1
- package/dist/client/assets/{use-copy-CDISD_Cn.js → use-copy-BQUqrybj.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DzXUoDyZ.js → use-create-virtual-mcp-bB42y8np.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Bld-n1X6.js → use-date-fns-locale-BM5z_PRS.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CXAXYImX.js → use-debounced-autosave-DReV6THw.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CV3Ep6BT.js → use-debounced-value-1I73e198.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Dz2HCHA2.js → use-deco-credits-DW1XighC.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D8h5gkis.js → use-decopilot-events-BIJEoT3z.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DaegBLdg.js → use-delete-connection-93p5rhoE.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B9QkF1Ox.js → use-deployment-admin-6AMadOrr.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-jEP00IuF.js → use-fast-preview-draft-url-B6XBGwZr.js} +1 -1
- package/dist/client/assets/{use-file-configs-Dmtun3Wo.js → use-file-configs-BTTPyhwv.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cjyk2u2D.js → use-infinite-scroll-O4TLQNnm.js} +1 -1
- package/dist/client/assets/{use-join-requests-U4zAOlUa.js → use-join-requests-B2Yxvjh8.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-B-iIK_jM.js → use-main-panel-tabs-D5aSf_sr.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C-8L1BqA.js → use-mcp-auth-status-oSHf7C6A.js} +1 -1
- package/dist/client/assets/{use-mcp-client-UiIjSIBc.js → use-mcp-client-Mg2gC6q2.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BhACKWq-.js → use-mcp-prompts-BJYlShPC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BgF96mfK.js → use-mcp-tools-PbJSPRbz.js} +1 -1
- package/dist/client/assets/{use-members-Bsz-vH-M.js → use-members-BAmRP4gs.js} +1 -1
- package/dist/client/assets/{use-mobile-XmlWJh6S.js → use-mobile-CF08TC-9.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Ci7w5Usg.js → use-navigate-to-agent-DMJ7ofeG.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-CCIaXCvV.js +1 -0
- package/dist/client/assets/{use-open-billing-url-PitcPqtb.js → use-open-billing-url-wLvIcikQ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C45ZGBI4.js → use-org-auth-client-VKf_-sQ4.js} +1 -1
- package/dist/client/assets/{use-org-fs-MgvrAEn7.js → use-org-fs-B00GZw4f.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bnu8VQB1.js → use-org-repo-syncs-CP3if3Yx.js} +1 -1
- package/dist/client/assets/{use-org-sso-Fm8qJ2dW.js → use-org-sso-B7lqA-Dz.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dr2Y1hEv.js → use-organization-roles-CjDOIwp9.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DOdiJKE8.js → use-organization-settings-5AOahYYt.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CU5ZlNjq.js → use-panel-navigate-C9wQ4cxo.js} +1 -1
- package/dist/client/assets/{use-project-scope-BWDwVZ12.js → use-project-scope-BuwWFYCH.js} +1 -1
- package/dist/client/assets/{use-releases-C--FpfUR.js → use-releases-CEnmdqnh.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BqjBJq5N.js → use-reports-diagnostic-Bhaf5weG.js} +1 -1
- package/dist/client/assets/{use-secrets-FBdGNnOk.js → use-secrets-DsN-qa_k.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Cb-3hrPh.js → use-section-preview-base-Clf3_WkE.js} +1 -1
- package/dist/client/assets/{use-session-runtime-Tvw9QxV7.js → use-session-runtime-26ZrGLgp.js} +1 -1
- package/dist/client/assets/{use-tags-DtL-I2wT.js → use-tags-Cihc9kAN.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DbJYJ8wd.js → use-task-board-analytics-BYUrmA7c.js} +1 -1
- package/dist/client/assets/{use-task-board-events-0AnOqP4C.js → use-task-board-events-BBWL0pz6.js} +1 -1
- package/dist/client/assets/{use-task-metadata-yigCh_Y9.js → use-task-metadata-DljgO8ZE.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Pe6SV-ya.js → use-thread-analytics-Cm3x3qUw.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D-n4EdKX.js → use-thread-outputs-Dh8QRvCe.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B7CvTTcs.js +1 -0
- package/dist/client/assets/{useQueries-CPyfKiBS.js → useQueries-pk9l4ySi.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DP-pZbMc.js +1 -0
- package/dist/client/assets/{users-DcPyASc9.js → users-D2zK75Wt.js} +1 -1
- package/dist/client/assets/{utils-BVV4M1LY.js → utils-uxaQ4_uA.js} +1 -1
- package/dist/client/assets/{variant-calendar-DP695EDJ.js → variant-calendar--8wxKmf4.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-hqS5w6J5.js → variant-matcher-override-ByzuEPWZ.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DOl0QhV6.js → view-mode-toggle-YoQBA5-S.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DoLpz_f7.js → virtual-mcp-DJexPaXo.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Bh4bYk9J.js +0 -1
- package/dist/client/assets/agent-deck-C1SCbCV1.js +0 -1
- package/dist/client/assets/agent-library-D35Q7pg6.js +0 -1
- package/dist/client/assets/agent-library-file-BT3eWwb7.js +0 -1
- package/dist/client/assets/agent-settings-BluMQs_j.js +0 -1
- package/dist/client/assets/agent-site-editor-code-x4i25AJC.js +0 -2
- package/dist/client/assets/agent-view-BPZavg4Q.js +0 -1
- package/dist/client/assets/api-keys-DSTN6Iz7.js +0 -1
- package/dist/client/assets/flat-project-mzdE0YRI.js +0 -1
- package/dist/client/assets/library-CgTKfi82.js +0 -1
- package/dist/client/assets/project-reports-CUvFnx9k.js +0 -1
- package/dist/client/assets/project-tasks-DsRYJjPI.js +0 -1
- package/dist/client/assets/record-editor-DRqAh0kh.js +0 -1
- package/dist/client/assets/reports-D1jw7EIr.js +0 -1
- package/dist/client/assets/route-D5-9YfGo.js +0 -1
- package/dist/client/assets/tasks-Dj3mJjNe.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-BEZpkjeC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CETKh6Bc.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BBTL5NsS.js +0 -1
package/dist/client/assets/{runnable-block-editor-Eba3o4zN.js → runnable-block-editor-DRRj70r-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as Er,c as B,o as Pn,m as Q0,K as Q9,b as u9,j as r,l as H,B as h9,Z as In,aJ as wr,e as Fn,r as I,t as A9,aP as Ar,aQ as J9,n as Rr,ag as On,F as ce,ak as Le,G as N9,H as G9,I as H9,aR as de,al as Oe,aN as Mr,h as x0,aS as Pr,E as Ir,aT as Fr,au as Or,av as Dr}from"./index-CV85Y2XM.js";import{u as Ye}from"./use-session-runtime-Tvw9QxV7.js";import{u as We,H as $r,g as Dn,I as D9,J as $n,r as F9,K as zr,b as b9,P as X9,L as e0,N as I0,M as S9,O as zt,Q as u0,C as Br,w as Vr,x as Ur,y as Kr,t as Gr,l as Hr,T as zn,m as Bn,U as Bt,V as qr,W as Yr,X as Vn,Y as Wr,Z as _0,k as Jr,_ as Zr,v as Qr,$ as Xr,a0 as ei,a1 as ti}from"./claim-phase-copy-Bgjc6xSz.js";import{e as Un}from"./backoff-8mStPHYB.js";import{a9 as ni,aa as si,ab as ri,ac as ii,ad as oi,ae as ai,af as li,ag as ci,Z as Li,ah as Kn,ai as ue,y as di,aj as Gn,a4 as A0,X as ui,x as fi,b as l0,ak as mi,al as Vt,am as pi,a8 as hi,G as gi,an as xi,ao as yi}from"./agent-icon-BMysTzji.js";import{i as Hn}from"./Sun-Dwu2HrsO.js";import{S as Ut}from"./sandbox-start-errors-BK_aDCyt.js";import{G as vi}from"./pair-BVFDYVJv.js";import{i as q9}from"./Check-C8H6RsUT.js";import{i as Je,d as bi,e as ji,b as Si,c as ki}from"./Tool01-Dd7zzL8J.js";import{C as fe,a as me,b as K9,e as f0,c as pe,f as Ze,d as Ni}from"./command-CudACRXo.js";import{a as F0,b as O0,P as D0}from"./popover-CyFcUzzH.js";import{s as Ti,a as _i,b as Ci}from"./utils-BVV4M1LY.js";import{u as qn}from"./chat-context-xHKVtyN-.js";import{n as Yn}from"./LinkExternal01-B8ya1ky1.js";import{i as Wn}from"./X-B15qp-bM.js";import{S as Jn}from"./scroll-area-Pc4Af9OF.js";import{T as _9,a as C9,b as E9}from"./tooltip-2Mis4-mn.js";import{a as Qe,f as Ei}from"./repository-binding-BWijY7NW.js";import{M as Zn}from"./monaco-editor-DLtqDmvE.js";import{C as wi}from"./calendar-BQ508qAz.js";import{I as R9}from"./input-_mDnXdD8.js";import{T as Ai}from"./textarea-Cd4ptS1s.js";import{L as $9}from"./label-DiCFPBA-.js";import{u as T9}from"./use-new-blocks-editor-BEZpkjeC.js";import{i as Ri}from"./XClose-TnHFIPTu.js";import{s as y0}from"./Plus-AxoD3wpH.js";import{E as s0,M as Mi,m as Pi,g as $0,u as Ii,s as Fi,a as Oi,b as Di}from"./index-CH2RthXl.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-Dii9mPM0.js";import{b as $i}from"./Palette-C2tCru1B.js";import{T as M9,E as zi,R as Bi,u as Xe,C as et,a as tt,b as p0,s as nt,K as st,P as rt,D as it,c as ot,S as at,v as lt,d as ct,e as X0}from"./rich-text-link-control-CO1bHqXz.js";import{S as Lt}from"./switch-GtIfSYWT.js";import{a as ve}from"./Copy01-DaCIS5JS.js";import{s as Vi,a as h0}from"./Image01-CT3C1PUW.js";import{s as r0}from"./Trash01-D8AFvOkW.js";import{t as z0}from"./ChevronUp-De-wvREd.js";import{d as N0,a as Qn}from"./UserSquare-M5VH4tSp.js";import{C as Ui}from"./combobox-CAXLOj1d.js";import{A as Ki,a as Gi,b as Hi,c as qi,g as Yi,d as Wi,e as Ji,f as Zi}from"./alert-dialog-nBJyBHds.js";import{d as dt,h as ut,c as ft,e as Xn,b as mt,D as pt}from"./dialog-Db-BbIhU.js";import{b as be}from"./sandbox-url-D3mC8qhT.js";import{b as De}from"./ZoomOut-B1C_SBzw.js";import{i as B0}from"./Upload01-CbDAup9j.js";import{i as es}from"./AlertCircle-WLxFsPUO.js";import{i as ts}from"./DotsVertical-XmmfpeZC.js";import{S as Qi}from"./search-input-Dtmmcv4x.js";import{T as Xi,a as e1,c as t1,b as n1}from"./tabs-CeCmBjnr.js";import{u as s1}from"./use-debounced-value-CV3Ep6BT.js";import{u as r1,a as ns}from"./use-file-configs-Dmtun3Wo.js";import{u as i1,a as ht,i as ss,e as o1,b as Kt,f as a1}from"./asset-utils-DSArnKfh.js";import{b as rs}from"./use-chat-layout-state-C7XIqhuU.js";import{a as l1,T as c1}from"./toggle-group-PyZOG6oH.js";import{h as L1,g as d1}from"./thread-intent-D6aMrS60.js";import{o as u1}from"./sandbox-git-api-B1R0585s.js";const gt=Er("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),f1="website/loaders/secret.ts",m1=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],p1=/^(?:[0-9a-f]{2})*$/i;function R0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function xt(t){return typeof t=="string"&&p1.test(t)}class h1 extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function $e(t,e=""){if(Array.isArray(t))return t.map((s,i)=>$e(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(R0(t)){const s=t.encrypted;if(s!==void 0&&!xt(s))throw new h1(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,$e(i,`${e}/${s}`)]))}function yt(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Gt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function is(t,e){return be(t,e)}function g1(t,e){return be(t,"preview-fetch",{path:e})}function x1(t){return is(t,"preview-invoke")}function Z4(t){return is(t,"catalog-invoke")}function os(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function y1(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&os(n))return n}return null}function as(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??y1();return n&&os(n)?new URL(e,n).toString():g1(t,e)}function v1(t){return as(t,"/.decofile")}function b1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ht(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ls(t,e){const n=be(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=b1(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Ti(o.content))}}catch{return{kind:"unavailable"}}}async function j1(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function vt(t){return Qe(t)?.metadata?.runtime?.path??null}function cs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function Q4(t,e){const n=B.c(16),{url:s}=We(t?.virtualMcpId),i=!!s,o=t?cs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=vt(t?.virtualMcpId),c=Ye(t?.virtualMcpId).runtime==="cms",L=Pn(),d=Q9.decofile(o);let u;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(u=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(N1),b=v?.ok?Gt(await v.text()):null;if(b)return b;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>ls(t,yt(l,".deco/blocks.gen.json"));if(a){const v=await fetch(v1(t),{cache:"no-store"}).catch(k1);if(v?.ok){const x=Gt(await v.text());if(x)return x}const b=await p();if(b.kind==="data")return b.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ht({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:b.kind==="absent"}),S}const g=await p();if(g.kind==="data")return g.data;const h=new Error("decofile unavailable (preview down, no committed snapshot)");throw h.status=Ht({liveOk:!1,committedAbsent:g.kind==="absent"}),h},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=u):u=n[7];const f=!!t;let y;n[8]!==c||n[9]!==i?(y=(p,g)=>{if(c||i)return p<3;const h=g.status;return h!==502&&h!==404&&p<2},n[8]=c,n[9]=i,n[10]=y):y=n[10];let m;return n[11]!==d||n[12]!==u||n[13]!==f||n[14]!==y?(m={queryKey:d,queryFn:u,enabled:f,staleTime:3e4,retry:y,retryDelay:S1},n[11]=d,n[12]=u,n[13]=f,n[14]=y,n[15]=m):m=n[15],Q0(m)}function S1(t){return Un(5e3,1e3,t,2,0)}function k1(){return null}function N1(){return null}const T1=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function _1(t){return t.includes("matchers")||t.includes("Match")}function Ls(t,e){const n=t.__resolveType;return typeof n!="string"||!n||T1.has(n)?!1:e?zr(e,n):_1(n)}function C1(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!D9(s)||$n(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;Ls(o,t)&&n.push({blockKey:s,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((s,i)=>(s.name??s.blockKey).localeCompare(i.name??i.blockKey))}function v0(t,e,n){if(!t)return!1;const s=t.__resolveType;if(typeof s!="string"||!D9(s)||!Object.hasOwn(e,s))return!1;const i=e[s];return!i||typeof i!="object"||Array.isArray(i)?!1:Ls(i,n)}function E1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function ds(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(v0(t,e,n)){const a=e[s]??{},l=a.__resolveType??s,{__resolveType:c,name:L,...d}=a;return{resolveType:l,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function us(t,e,n){const s=ds(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function bt(t,e,n){if(t)return v0(t,e,n)?us(t,e,n):t}function T0(t,e,n,s){if(!t)return"Default";if(v0(t,e,s)){const i=t.__resolveType??"",o=e[i];return Dn(i,o)}return n(t)}function w1(t,e,n){return{__resolveType:t,...e,name:n}}function fs(t){return{__resolveType:t}}function A1(t,e,n){const s=ds(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function R1(t,e){const n={__resolveType:t};if(!t||!e)return n;const s=F9(t,e),i=s?.type==="inline-union"?s.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function M1(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function P1(t){return Q9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function X4(t,e){const n=B.c(21),{url:s}=We(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=vt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=Ye(t?.virtualMcpId),d=!i&&L==="cms";let u;n[0]!==t||n[1]!==a||n[2]!==c?(u=t?P1({...t,previewUrl:a,productionUrl:c}):Q9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=u):u=n[3];let f;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(f=async()=>{const h=F1,v=()=>d?j1(t):ls(t,yt(l,".deco/meta.gen.json")),b=i&&a?[{kind:"live",baseUrl:a}]:M1({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const x of b){if(x.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const j=await h(x.baseUrl);if(j)return j}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=f):f=n[11];const y=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(h,v)=>(d||i||v.status!==502)&&h<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let g;return n[15]!==u||n[16]!==f||n[17]!==y||n[18]!==m||n[19]!==p?(g={queryKey:u,queryFn:f,enabled:y,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:I1},n[15]=u,n[16]=f,n[17]=y,n[18]=m,n[19]=p,n[20]=g):g=n[20],Q0(g)}function I1(t){return Un(5e3,1e3,t,2,0)}async function F1(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(O1);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function O1(){return null}function we(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function e5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=b9(i);if(!o&&i!==""&&D9(i)&&i in e)return{index:s,resolveType:i,label:we(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===X9||l===e0){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===I0){const y=d[0]?.value??{};let m=y.__resolveType??"";const p=b9(m);let g=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(g=h)}if(m===X9||m===e0){const v=(Array.isArray(g.variants)?g.variants:[])[0]?.value?.__resolveType,b=v?S9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${b}`,variantOf:b,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label:we(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:S9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?S9(u):"Section";return{index:s,resolveType:i,label:`Variants of ${f}`,variantOf:f,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&D9(c)&&c in e?{index:s,resolveType:i,label:we(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:S9(c)||`Section ${s+1}`,isLazy:o}})}function ms(t){const e=t.__resolveType??"";return b9(e)?t.section??t:t}function ee(t){const i=(b9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==I0?null:i?.value??null}function t5(t){const e=ms(t);return{__resolveType:e0,variants:[{value:e,rule:{__resolveType:I0}}]}}function n5(t){const e=t.__resolveType??"";if(!e)return null;if(b9(e))return t.section??null;const n=ee(t);return n?b9(n.__resolveType??"")?n:{__resolveType:zt,section:ms(n)}:{__resolveType:zt,section:t}}function G0(t){const e=t.__resolveType??"";if(!e)return null;if(b9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function s5(t){const e=ee(t);if(e)return G0(e);if(b9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=ee(s);return G0(i||s)}return G0(t)}function r5(t){return ee(t)}const D1=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function jt(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:D1.includes(e)||e.includes("always")}function $1(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>jt(s.rule));return n!==-1?n:e.length-1}function i5(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=$1(n),o=s[i]?.value;if(!o)return null;const a=structuredClone(o);return e.isLazy?{...t,section:a}:a}function ps(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function o5(t,e){return Array.isArray(t.variants)?t.variants.map((n,s)=>({label:e(n.rule)||`Variant ${s+1}`,value:n.value??{},rule:n.rule})):[]}function a5(t,e){const n=t.__resolveType??"";if(!n)return null;if(b9(n)){const s=t.section??t,i=s.__resolveType??n;if(!i.includes("/")&&i in e){const o=e[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...s},resolveType:i}}if(!n.includes("/")&&n in e){const s=e[n]??{};return{data:{...s},resolveType:s.__resolveType??n}}return{data:{...t},resolveType:n}}function z1(t,e){const n=t.__resolveType??"";return b9(n)?{...t,section:e}:e}function B1(t,e,n){return e.isLazy?{...t,section:n}:n}function l5(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:z1(o,n)},{...t,variants:s}}function c5(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function L5(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function d5(t,e,n){const s=[...t.variants??[]];if(e===n||e<0||n<0||e>=s.length||n>=s.length)return t;const[i]=s.splice(e,1);return i?(s.splice(n,0,i),{...t,variants:s}):t}function u5(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function ze(t){return{rule:u0(),value:structuredClone(t)}}function hs(t,e){return{...e,__resolveType:e0,variants:t}}function f5(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function V1(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=ps(t,e)?.variants??[],i=s[s.length-1]?.value;return i?structuredClone(i):null}if(e.isLazy){const n=t.section;return n?structuredClone(n):null}return structuredClone(t)}function U1(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=V1(t,e);if(!s)return null;const i=hs([ze(s),ze(s)]);return e.isLazy?{...t,section:i}:i}function m5(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=ps(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const l=hs([...o,ze(a)],i);return{section:B1(t,e,l),newVariantIndex:o.length}}const s=U1(t,e);return s?{section:s,newVariantIndex:1}:null}function je(t){return t.anyOfRefs?.some(e=>e.resolveType!==X9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function K1(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===e0&&Array.isArray(e.variants)}function te(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===X9}function G1(t){if(!te(t))return null;const e=t.variants;if(!Array.isArray(e))return null;const n=e[0]?.value;return Array.isArray(n)?n:null}function H1(t,e){if(!te(t))return e;const n=structuredClone(t),s=[...n.variants??[]];return s.length===0?s.push({rule:u0(),value:e}):s[0]={...s[0],value:e},{...n,variants:s}}function p5(t,e){const s=t[e]?.sections;if(!s||Array.isArray(s))return 1;const i=s;return Array.isArray(i.variants)?i.variants.length:1}function h5(t,e,n){const i=t[e]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const a=o[n];return Array.isArray(a?.value)?a.value:[]}}return[]}function q1(t,e,n){if(Array.isArray(t))return[{label:"Default",sections:t}];if(t&&typeof t=="object"){const s=t;if(Array.isArray(s.variants)){const i=s.variants,o=i.map(c=>T0(c.rule,e,n)),a=o.reduce((c,L)=>(c[L]=(c[L]??0)+1,c),{}),l={};return i.map((c,L)=>{const d=o[L]??`Variant ${L+1}`,u=a[d]??1;let f=d;return u>1&&(l[d]=(l[d]??0)+1,f=`${d} ${l[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(c.value)?c.value:[],rule:c.rule}})}}return[]}function k0(t){return{rule:u0(),value:t}}function L0(t,e){return{...e,__resolveType:X9,variants:t}}function g5(t,e){const n=structuredClone(e);if(Array.isArray(t))return L0([k0(t),k0(n)]);if(t&&typeof t=="object"){const s=t;return Array.isArray(s.variants)?L0([...s.variants,k0(n)],s):null}return L0([k0([]),k0(n)])}function x5(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function y5(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function v5(t,e){if(e.length===0)return L0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!jt(s))return L0(e,t);if(Array.isArray(n?.value))return n.value}return L0(e,t)}function Y1(t,e,n){const s=[];for(const[o,a]of Object.entries(t))o!==e&&s.push(a);const i=new Set;for(;s.length>0;){const o=s.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const a of o)s.push(a);continue}n(o);for(const a of Object.values(o))s.push(a)}}}function b5(t,e,n){if(!e)return 0;let s=0;return Y1(t,e,i=>{i.__resolveType===e&&v0(i,t,n)&&s++}),s}const W1={provision:0,cloning:1,install:2,dev:3};function J1(t){return W1[t.step]}const qt=48,gs=28,xs=3,Z1=(()=>{const t=[];let e=0;for(let n=0;n<qt;n++)n===gs?t.push(null):(t.push(e/(qt-1)*xs),e++);return t})();function Q1(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function X1(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Br[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",eo=Array.from({length:35},()=>Math.random()*1.8),to=Array.from({length:35},()=>Math.random()<.4);function no(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=u9();let o;e[0]!==n?(o=J1(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=X1(n,s,Q1(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(vi,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let u;e[7]!==c||e[8]!==d?(u=r.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:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=u):u=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(so,{}),e[10]=f):f=e[10];let y;e[11]!==a?(y=r.jsx(H0,{phase:0,current:a,children:f}),e[11]=a,e[12]=y):y=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(io,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(H0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsx(oo,{}),e[16]=g):g=e[16];let h;e[17]!==a?(h=r.jsx(H0,{phase:2,current:a,children:g}),e[17]=a,e[18]=h):h=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(lo,{}),e[19]=v):v=e[19];let b;e[20]!==a?(b=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=b):b=e[21];let S;e[22]!==h||e[23]!==b||e[24]!==y||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,b]}),e[22]=h,e[23]=b,e[24]=y,e[25]=p,e[26]=S):S=e[26];let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("style",{children:`
|
|
1
|
+
import{aO as Er,c as B,o as Pn,m as Q0,K as Q9,b as u9,j as r,l as H,B as h9,Z as In,aJ as wr,e as Fn,r as I,t as A9,aP as Ar,aQ as J9,n as Rr,ag as On,F as ce,ak as Le,G as N9,H as G9,I as H9,aR as de,al as Oe,aN as Mr,h as x0,aS as Pr,E as Ir,aT as Fr,au as Or,av as Dr}from"./index-U5TtTLeN.js";import{u as Ye}from"./use-session-runtime-26ZrGLgp.js";import{u as We,H as $r,g as Dn,I as D9,J as $n,r as F9,K as zr,b as b9,P as X9,L as e0,N as I0,M as S9,O as zt,Q as u0,C as Br,w as Vr,x as Ur,y as Kr,t as Gr,l as Hr,T as zn,m as Bn,U as Bt,V as qr,W as Yr,X as Vn,Y as Wr,Z as _0,k as Jr,_ as Zr,v as Qr,$ as Xr,a0 as ei,a1 as ti}from"./claim-phase-copy-BrUfyVbw.js";import{e as Un}from"./backoff-8mStPHYB.js";import{a9 as ni,aa as si,ab as ri,ac as ii,ad as oi,ae as ai,af as li,ag as ci,Z as Li,ah as Kn,ai as ue,y as di,aj as Gn,a4 as A0,X as ui,x as fi,b as l0,ak as mi,al as Vt,am as pi,a8 as hi,G as gi,an as xi,ao as yi}from"./agent-icon-8wKWfWsW.js";import{i as Hn}from"./Sun-Bk7N-nhk.js";import{S as Ut}from"./sandbox-start-errors-BK_aDCyt.js";import{G as vi}from"./pair-DctSWO4u.js";import{i as q9}from"./Check-BavARqDA.js";import{i as Je,d as bi,e as ji,b as Si,c as ki}from"./Tool01-A1I2zFy_.js";import{C as fe,a as me,b as K9,e as f0,c as pe,f as Ze,d as Ni}from"./command-BYozFtpn.js";import{a as F0,b as O0,P as D0}from"./popover-BYtVhvff.js";import{s as Ti,a as _i,b as Ci}from"./utils-uxaQ4_uA.js";import{u as qn}from"./chat-context-B3iAEN-8.js";import{n as Yn}from"./LinkExternal01-DU9hmOmn.js";import{i as Wn}from"./X-Dwd6uRpX.js";import{S as Jn}from"./scroll-area-CP2varDw.js";import{T as _9,a as C9,b as E9}from"./tooltip-KyO7mRaO.js";import{a as Qe,f as Ei}from"./repository-binding-LVr_cuv1.js";import{M as Zn}from"./monaco-editor-RpyuXb5X.js";import{C as wi}from"./calendar-BwfArti1.js";import{I as R9}from"./input-f7pY7igy.js";import{T as Ai}from"./textarea-CJDsPwx4.js";import{L as $9}from"./label-BrWNNvqx.js";import{u as T9}from"./use-new-blocks-editor-CCIaXCvV.js";import{i as Ri}from"./XClose-Bhefv4tI.js";import{s as y0}from"./Plus-fY-TSUlu.js";import{E as s0,M as Mi,m as Pi,g as $0,u as Ii,s as Fi,a as Oi,b as Di}from"./index-DUp_XUtW.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-Ct3YcjAx.js";import{b as $i}from"./Palette-CC3m4Vos.js";import{T as M9,E as zi,R as Bi,u as Xe,C as et,a as tt,b as p0,s as nt,K as st,P as rt,D as it,c as ot,S as at,v as lt,d as ct,e as X0}from"./rich-text-link-control-DKBBw3vp.js";import{S as Lt}from"./switch-BTpXf8wW.js";import{a as ve}from"./Copy01-B6wvf2QH.js";import{s as Vi,a as h0}from"./Image01-Dpr7e8vY.js";import{s as r0}from"./Trash01-BIJWcAi4.js";import{t as z0}from"./ChevronUp-CSBHGgRT.js";import{d as N0,a as Qn}from"./UserSquare-CLutcjcP.js";import{C as Ui}from"./combobox-B3TKqXMB.js";import{A as Ki,a as Gi,b as Hi,c as qi,g as Yi,d as Wi,e as Ji,f as Zi}from"./alert-dialog-DByGIuYP.js";import{d as dt,h as ut,c as ft,e as Xn,b as mt,D as pt}from"./dialog-QCXlZZ0d.js";import{b as be}from"./sandbox-url-D3mC8qhT.js";import{b as De}from"./ZoomOut-B83Ybo5t.js";import{i as B0}from"./Upload01-Bgo6KIQe.js";import{i as es}from"./AlertCircle-BDgHvDzg.js";import{i as ts}from"./DotsVertical-BRQkLHwe.js";import{S as Qi}from"./search-input-Co0Ce_Vc.js";import{T as Xi,a as e1,c as t1,b as n1}from"./tabs-Dcjc3ucj.js";import{u as s1}from"./use-debounced-value-1I73e198.js";import{u as r1,a as ns}from"./use-file-configs-BTTPyhwv.js";import{u as i1,a as ht,i as ss,e as o1,b as Kt,f as a1}from"./asset-utils-DTTy3VQk.js";import{b as rs}from"./use-chat-layout-state-57nzQyUd.js";import{a as l1,T as c1}from"./toggle-group-DADuZMpw.js";import{h as L1,g as d1}from"./thread-intent-CiAvd8JH.js";import{o as u1}from"./sandbox-git-api-B1R0585s.js";const gt=Er("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),f1="website/loaders/secret.ts",m1=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],p1=/^(?:[0-9a-f]{2})*$/i;function R0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function xt(t){return typeof t=="string"&&p1.test(t)}class h1 extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function $e(t,e=""){if(Array.isArray(t))return t.map((s,i)=>$e(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(R0(t)){const s=t.encrypted;if(s!==void 0&&!xt(s))throw new h1(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,$e(i,`${e}/${s}`)]))}function yt(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Gt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function is(t,e){return be(t,e)}function g1(t,e){return be(t,"preview-fetch",{path:e})}function x1(t){return is(t,"preview-invoke")}function Z4(t){return is(t,"catalog-invoke")}function os(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function y1(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&os(n))return n}return null}function as(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??y1();return n&&os(n)?new URL(e,n).toString():g1(t,e)}function v1(t){return as(t,"/.decofile")}function b1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ht(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ls(t,e){const n=be(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=b1(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Ti(o.content))}}catch{return{kind:"unavailable"}}}async function j1(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function vt(t){return Qe(t)?.metadata?.runtime?.path??null}function cs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function Q4(t,e){const n=B.c(16),{url:s}=We(t?.virtualMcpId),i=!!s,o=t?cs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=vt(t?.virtualMcpId),c=Ye(t?.virtualMcpId).runtime==="cms",L=Pn(),d=Q9.decofile(o);let u;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(u=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(N1),b=v?.ok?Gt(await v.text()):null;if(b)return b;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>ls(t,yt(l,".deco/blocks.gen.json"));if(a){const v=await fetch(v1(t),{cache:"no-store"}).catch(k1);if(v?.ok){const x=Gt(await v.text());if(x)return x}const b=await p();if(b.kind==="data")return b.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ht({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:b.kind==="absent"}),S}const g=await p();if(g.kind==="data")return g.data;const h=new Error("decofile unavailable (preview down, no committed snapshot)");throw h.status=Ht({liveOk:!1,committedAbsent:g.kind==="absent"}),h},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=u):u=n[7];const f=!!t;let y;n[8]!==c||n[9]!==i?(y=(p,g)=>{if(c||i)return p<3;const h=g.status;return h!==502&&h!==404&&p<2},n[8]=c,n[9]=i,n[10]=y):y=n[10];let m;return n[11]!==d||n[12]!==u||n[13]!==f||n[14]!==y?(m={queryKey:d,queryFn:u,enabled:f,staleTime:3e4,retry:y,retryDelay:S1},n[11]=d,n[12]=u,n[13]=f,n[14]=y,n[15]=m):m=n[15],Q0(m)}function S1(t){return Un(5e3,1e3,t,2,0)}function k1(){return null}function N1(){return null}const T1=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function _1(t){return t.includes("matchers")||t.includes("Match")}function Ls(t,e){const n=t.__resolveType;return typeof n!="string"||!n||T1.has(n)?!1:e?zr(e,n):_1(n)}function C1(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!D9(s)||$n(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;Ls(o,t)&&n.push({blockKey:s,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((s,i)=>(s.name??s.blockKey).localeCompare(i.name??i.blockKey))}function v0(t,e,n){if(!t)return!1;const s=t.__resolveType;if(typeof s!="string"||!D9(s)||!Object.hasOwn(e,s))return!1;const i=e[s];return!i||typeof i!="object"||Array.isArray(i)?!1:Ls(i,n)}function E1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function ds(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(v0(t,e,n)){const a=e[s]??{},l=a.__resolveType??s,{__resolveType:c,name:L,...d}=a;return{resolveType:l,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function us(t,e,n){const s=ds(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function bt(t,e,n){if(t)return v0(t,e,n)?us(t,e,n):t}function T0(t,e,n,s){if(!t)return"Default";if(v0(t,e,s)){const i=t.__resolveType??"",o=e[i];return Dn(i,o)}return n(t)}function w1(t,e,n){return{__resolveType:t,...e,name:n}}function fs(t){return{__resolveType:t}}function A1(t,e,n){const s=ds(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function R1(t,e){const n={__resolveType:t};if(!t||!e)return n;const s=F9(t,e),i=s?.type==="inline-union"?s.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function M1(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function P1(t){return Q9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function X4(t,e){const n=B.c(21),{url:s}=We(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=vt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=Ye(t?.virtualMcpId),d=!i&&L==="cms";let u;n[0]!==t||n[1]!==a||n[2]!==c?(u=t?P1({...t,previewUrl:a,productionUrl:c}):Q9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=u):u=n[3];let f;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(f=async()=>{const h=F1,v=()=>d?j1(t):ls(t,yt(l,".deco/meta.gen.json")),b=i&&a?[{kind:"live",baseUrl:a}]:M1({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const x of b){if(x.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const j=await h(x.baseUrl);if(j)return j}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=f):f=n[11];const y=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(h,v)=>(d||i||v.status!==502)&&h<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let g;return n[15]!==u||n[16]!==f||n[17]!==y||n[18]!==m||n[19]!==p?(g={queryKey:u,queryFn:f,enabled:y,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:I1},n[15]=u,n[16]=f,n[17]=y,n[18]=m,n[19]=p,n[20]=g):g=n[20],Q0(g)}function I1(t){return Un(5e3,1e3,t,2,0)}async function F1(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(O1);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function O1(){return null}function we(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function e5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=b9(i);if(!o&&i!==""&&D9(i)&&i in e)return{index:s,resolveType:i,label:we(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===X9||l===e0){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===I0){const y=d[0]?.value??{};let m=y.__resolveType??"";const p=b9(m);let g=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(g=h)}if(m===X9||m===e0){const v=(Array.isArray(g.variants)?g.variants:[])[0]?.value?.__resolveType,b=v?S9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${b}`,variantOf:b,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label:we(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:S9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?S9(u):"Section";return{index:s,resolveType:i,label:`Variants of ${f}`,variantOf:f,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&D9(c)&&c in e?{index:s,resolveType:i,label:we(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:S9(c)||`Section ${s+1}`,isLazy:o}})}function ms(t){const e=t.__resolveType??"";return b9(e)?t.section??t:t}function ee(t){const i=(b9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==I0?null:i?.value??null}function t5(t){const e=ms(t);return{__resolveType:e0,variants:[{value:e,rule:{__resolveType:I0}}]}}function n5(t){const e=t.__resolveType??"";if(!e)return null;if(b9(e))return t.section??null;const n=ee(t);return n?b9(n.__resolveType??"")?n:{__resolveType:zt,section:ms(n)}:{__resolveType:zt,section:t}}function G0(t){const e=t.__resolveType??"";if(!e)return null;if(b9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function s5(t){const e=ee(t);if(e)return G0(e);if(b9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=ee(s);return G0(i||s)}return G0(t)}function r5(t){return ee(t)}const D1=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function jt(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:D1.includes(e)||e.includes("always")}function $1(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>jt(s.rule));return n!==-1?n:e.length-1}function i5(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=$1(n),o=s[i]?.value;if(!o)return null;const a=structuredClone(o);return e.isLazy?{...t,section:a}:a}function ps(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function o5(t,e){return Array.isArray(t.variants)?t.variants.map((n,s)=>({label:e(n.rule)||`Variant ${s+1}`,value:n.value??{},rule:n.rule})):[]}function a5(t,e){const n=t.__resolveType??"";if(!n)return null;if(b9(n)){const s=t.section??t,i=s.__resolveType??n;if(!i.includes("/")&&i in e){const o=e[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...s},resolveType:i}}if(!n.includes("/")&&n in e){const s=e[n]??{};return{data:{...s},resolveType:s.__resolveType??n}}return{data:{...t},resolveType:n}}function z1(t,e){const n=t.__resolveType??"";return b9(n)?{...t,section:e}:e}function B1(t,e,n){return e.isLazy?{...t,section:n}:n}function l5(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:z1(o,n)},{...t,variants:s}}function c5(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function L5(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function d5(t,e,n){const s=[...t.variants??[]];if(e===n||e<0||n<0||e>=s.length||n>=s.length)return t;const[i]=s.splice(e,1);return i?(s.splice(n,0,i),{...t,variants:s}):t}function u5(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function ze(t){return{rule:u0(),value:structuredClone(t)}}function hs(t,e){return{...e,__resolveType:e0,variants:t}}function f5(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function V1(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=ps(t,e)?.variants??[],i=s[s.length-1]?.value;return i?structuredClone(i):null}if(e.isLazy){const n=t.section;return n?structuredClone(n):null}return structuredClone(t)}function U1(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=V1(t,e);if(!s)return null;const i=hs([ze(s),ze(s)]);return e.isLazy?{...t,section:i}:i}function m5(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=ps(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const l=hs([...o,ze(a)],i);return{section:B1(t,e,l),newVariantIndex:o.length}}const s=U1(t,e);return s?{section:s,newVariantIndex:1}:null}function je(t){return t.anyOfRefs?.some(e=>e.resolveType!==X9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function K1(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===e0&&Array.isArray(e.variants)}function te(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===X9}function G1(t){if(!te(t))return null;const e=t.variants;if(!Array.isArray(e))return null;const n=e[0]?.value;return Array.isArray(n)?n:null}function H1(t,e){if(!te(t))return e;const n=structuredClone(t),s=[...n.variants??[]];return s.length===0?s.push({rule:u0(),value:e}):s[0]={...s[0],value:e},{...n,variants:s}}function p5(t,e){const s=t[e]?.sections;if(!s||Array.isArray(s))return 1;const i=s;return Array.isArray(i.variants)?i.variants.length:1}function h5(t,e,n){const i=t[e]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const a=o[n];return Array.isArray(a?.value)?a.value:[]}}return[]}function q1(t,e,n){if(Array.isArray(t))return[{label:"Default",sections:t}];if(t&&typeof t=="object"){const s=t;if(Array.isArray(s.variants)){const i=s.variants,o=i.map(c=>T0(c.rule,e,n)),a=o.reduce((c,L)=>(c[L]=(c[L]??0)+1,c),{}),l={};return i.map((c,L)=>{const d=o[L]??`Variant ${L+1}`,u=a[d]??1;let f=d;return u>1&&(l[d]=(l[d]??0)+1,f=`${d} ${l[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(c.value)?c.value:[],rule:c.rule}})}}return[]}function k0(t){return{rule:u0(),value:t}}function L0(t,e){return{...e,__resolveType:X9,variants:t}}function g5(t,e){const n=structuredClone(e);if(Array.isArray(t))return L0([k0(t),k0(n)]);if(t&&typeof t=="object"){const s=t;return Array.isArray(s.variants)?L0([...s.variants,k0(n)],s):null}return L0([k0([]),k0(n)])}function x5(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function y5(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function v5(t,e){if(e.length===0)return L0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!jt(s))return L0(e,t);if(Array.isArray(n?.value))return n.value}return L0(e,t)}function Y1(t,e,n){const s=[];for(const[o,a]of Object.entries(t))o!==e&&s.push(a);const i=new Set;for(;s.length>0;){const o=s.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const a of o)s.push(a);continue}n(o);for(const a of Object.values(o))s.push(a)}}}function b5(t,e,n){if(!e)return 0;let s=0;return Y1(t,e,i=>{i.__resolveType===e&&v0(i,t,n)&&s++}),s}const W1={provision:0,cloning:1,install:2,dev:3};function J1(t){return W1[t.step]}const qt=48,gs=28,xs=3,Z1=(()=>{const t=[];let e=0;for(let n=0;n<qt;n++)n===gs?t.push(null):(t.push(e/(qt-1)*xs),e++);return t})();function Q1(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function X1(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Br[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",eo=Array.from({length:35},()=>Math.random()*1.8),to=Array.from({length:35},()=>Math.random()<.4);function no(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=u9();let o;e[0]!==n?(o=J1(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=X1(n,s,Q1(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(vi,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let u;e[7]!==c||e[8]!==d?(u=r.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:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=u):u=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(so,{}),e[10]=f):f=e[10];let y;e[11]!==a?(y=r.jsx(H0,{phase:0,current:a,children:f}),e[11]=a,e[12]=y):y=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(io,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(H0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsx(oo,{}),e[16]=g):g=e[16];let h;e[17]!==a?(h=r.jsx(H0,{phase:2,current:a,children:g}),e[17]=a,e[18]=h):h=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(lo,{}),e[19]=v):v=e[19];let b;e[20]!==a?(b=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=b):b=e[21];let S;e[22]!==h||e[23]!==b||e[24]!==y||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,b]}),e[22]=h,e[23]=b,e[24]=y,e[25]=p,e[26]=S):S=e[26];let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx("style",{children:`
|
|
2
2
|
@keyframes vm-pulse-soft {
|
|
3
3
|
0%, 100% { opacity: 0.25; }
|
|
4
4
|
50% { opacity: 1; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as X,r as o,ds as Ce,dq as De,c as Pe,e as Ae,d3 as ee,X as ye,j as Ee,K as M,z as _e}from"./index-
|
|
1
|
+
import{o as X,r as o,ds as Ce,dq as De,c as Pe,e as Ae,d3 as ee,X as ye,j as Ee,K as M,z as _e}from"./index-U5TtTLeN.js";import{u as Le}from"./use-mcp-client-Mg2gC6q2.js";import{u as Ue}from"./use-session-runtime-26ZrGLgp.js";import{u as Re,b as Oe}from"./chat-context-B3iAEN-8.js";import{u as Be}from"./thread-intent-CiAvd8JH.js";import{e as ge}from"./backoff-8mStPHYB.js";import{b as Ne}from"./sandbox-url-D3mC8qhT.js";import{a as Fe}from"./repository-binding-LVr_cuv1.js";import{d as $e}from"./sandbox-start-errors-BK_aDCyt.js";function Ke(e,t){const n=X(t);return Ve({filters:{...e,status:"pending"}},n).length}function fe(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Ve(e={},t){const n=X(t).getMutationCache(),s=o.useRef(e),u=o.useRef(null);return u.current===null&&(u.current=fe(n,e)),o.useEffect(()=>{s.current=e}),o.useSyncExternalStore(o.useCallback(c=>n.subscribe(()=>{const a=Ce(u.current,fe(n,s.current));u.current!==a&&(u.current=a,De.schedule(c))}),[n]),()=>u.current,()=>u.current)}async function qe(e,t,n){const s=await e.callTool({name:t,arguments:n});if(s.isError){const u=s.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(u)}return s}const be=["SANDBOX_START"],W=new Map,He=e=>`${e.virtualMcpId}::${e.branch??""}`,Qe=e=>e.message.includes("retry shortly"),ie=new Set,le={mark:(e,t)=>ie.add(`${e}::${t}`),clear:(e,t)=>ie.delete(`${e}::${t}`),isStopped:(e,t)=>ie.has(`${e}::${t}`)};function Ye(e,t){const n=X();return Ae({mutationKey:be,retry:(s,u)=>Qe(u)&&s<6,retryDelay:s=>ge(5e3,500,s,2,0),mutationFn:async s=>{s.branch&&le.clear(s.virtualMcpId,s.branch);const u=He(s),c=W.get(u);if(c)return c;const a=(async()=>(await qe(e,"SANDBOX_START",s)).structuredContent)();W.set(u,a);try{return await a}finally{W.get(u)===a&&W.delete(u)}},onSuccess:()=>{ee(n),t?.onStarted?.()}})}function Rt(e,t){const n=Pe.c(3);let s;return n[0]!==t||n[1]!==e?(s={mutationKey:be,predicate:c=>{if(!e)return!1;const a=c.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=s):s=n[2],Ke(s)>0}function Se(e){return e==="installing"||e==="install-failed"||e==="starting"||e==="start-failed"||e==="running"||e==="crashed"}const Me={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},ve=o.createContext(Me),me=16384;class Xe{data="";append(t){this.data+=t,this.data.length>me&&(this.data=this.data.slice(this.data.length-me))}get(){return this.data}clear(){this.data=""}}const je=1e3,Ge=3e4,Ie=3e3,he=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],pe="log";function Je(e){if(!e)return null;try{return new URL("/_sandbox/events",e).href}catch{return null}}function We(e){return e===404}async function ze(e){try{const t=await fetch(e,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Ie)});return await t.body?.cancel().catch(()=>{}),We(t.status)}catch{return!1}}function gt({virtualMcpId:e,branch:t,previewUrl:n=null,enabled:s=!0,children:u}){const{org:c}=ye(),a=X(),V=Re()?.taskId??null,[j,y]=o.useState(null),[te,b]=o.useState({phase:"idle"}),[ne,U]=o.useState({state:"running"}),[re,E]=o.useState({kind:"unknown"}),[G,h]=o.useState(!1),[k,q]=o.useState([]),[se,R]=o.useState([]),[,H]=o.useState(0),v=o.useRef(new Map),O=o.useRef(new Set),w=o.useRef(new Set),C=o.useRef(null),p=Je(n),Q=Fe(e)?.metadata?.runtime?.selected==="deno",_=d=>{let S=v.current.get(d);return S||(S=new Xe,v.current.set(d,S)),S};o.useEffect(()=>{if(y(null),b({phase:"idle"}),U({state:"running"}),E({kind:"unknown"}),C.current=null,h(!1),q([]),R([]),v.current.clear(),!e||!t||!s)return;const d=Ne({orgSlug:c.slug,virtualMcpId:e,branch:t,threadId:V??null},"events");let S=!1,D=0,L=null,T=null,P=null,g=null,m=null,A=null;const I=r=>{try{const i=JSON.parse(r.data);y(i),i.kind!=="failed"&&(h(!1),D=0),i.kind==="ready"&&ae()}catch(i){console.warn("[vm-events] bad phase payload",i)}},B=()=>{h(!0),y(null),b({phase:"idle"}),U({state:"running"}),E({kind:"unknown"}),q([]),R([]),v.current.clear()},Y=r=>{try{const i=JSON.parse(r.data);if(typeof i.data!="string")return;D=0;const f=i.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);_(i.source).append(f);for(const l of O.current)try{l(i.source,f)}catch{}H(l=>l+1)}catch{}},J=r=>{const i=r.type;try{const f=JSON.parse(r.data);switch(D=0,i){case"lifecycle":{const l=f;b(l.state);const F=`${c.slug}/${e}/${t}`;if(Se(l.state.phase)&&!(A&&Se(A))){ee(a,c.id);const K=M.decofile(F);a.getQueryData(K)===void 0&&a.invalidateQueries({queryKey:K})}l.state.phase==="running"&&A!=="running"&&(ee(a,c.id),a.invalidateQueries({queryKey:M.decofile(F)}),a.invalidateQueries({queryKey:M.liveMeta(c.slug,e,t)})),A=l.state.phase;const $=l.state.phase==="running"?l.state.port:null,ce=C.current;if(C.current=$,ce!==null&&$!==null&&ce!==$)for(const K of w.current)try{K()}catch{}return}case"status":U(f);return;case"tasks":{const F=f.active.map($=>$.logName??"").filter(Boolean);R(F);return}case"scripts":q(f.scripts);return;case"branch":{const l=f.meta;E(l);return}case"reload":for(const l of w.current)try{l()}catch{}return;case"file-changed":{const{path:l}=f,F=`${c.slug}/${e}/${t}`;if(l.startsWith(".deco/")||l.includes("/.deco/")){if(!(A==="running"))return;P&&clearTimeout(P),P=setTimeout(()=>{if(P=null,a.invalidateQueries({queryKey:M.decofile(F)}),Q)for(const K of w.current)try{K()}catch{}},500)}else T&&clearTimeout(T),T=setTimeout(()=>{T=null,a.invalidateQueries({queryKey:M.liveMeta(c.slug,e,t)})},1e3);return}}}catch{}};function N(){if(S)return;const r=new EventSource(d);g=r,r.onopen=()=>{},r.onerror=()=>{g===r&&r.readyState===EventSource.CLOSED&&x("studio")},r.addEventListener("phase",I),r.addEventListener("gone",B),r.addEventListener(pe,Y);for(const i of he)r.addEventListener(i,J)}function ae(){if(S||!p||m)return;const r=new EventSource(p);m=r;let i=!1;r.onopen=()=>{if(S||m!==r)return;i=!0,D=0;const f=g;g=null,f?.close()},r.onerror=()=>{m===r&&r.readyState===EventSource.CLOSED&&ue(r,i)},r.addEventListener(pe,Y);for(const f of he)r.addEventListener(f,J)}async function ue(r,i){const f=p?await ze(p):!1;if(!(S||m!==r)){if(r.close(),m=null,f){B(),g||N();return}i&&x("direct")}}function x(r){if(S||L)return;const i=ge(Ge,je,D,2,0);D++,L=setTimeout(()=>{if(L=null,!S){if(r==="direct"){m?.close(),m=null,ae();return}g?.close(),g=null,N()}},i)}return N(),()=>{S=!0,g?.close(),m?.close(),L&&clearTimeout(L),T&&clearTimeout(T),P&&clearTimeout(P)}},[e,t,c.slug,c.id,s,V,p,a,Q]);const oe={phase:j,lifecycle:te,status:ne,branch:re,notFound:G,scripts:k,activeProcesses:se,getBuffer:d=>v.current.get(d)?.get()??"",hasData:d=>(v.current.get(d)?.get().length??0)>0,subscribeChunks:d=>(O.current.add(d),()=>{O.current.delete(d)}),subscribeReload:d=>(w.current.add(d),()=>{w.current.delete(d)})};return Ee.jsx(ve,{value:oe,children:u})}function de(){return o.use(ve)}function bt(e){const{subscribeChunks:t}=de(),n=o.useRef(e);n.current=e,o.useEffect(()=>t((c,a)=>{n.current?.(c,a)}),[t])}function vt(e){const{subscribeReload:t}=de(),n=o.useRef(e);n.current=e,o.useEffect(()=>t(()=>{n.current?.()}),[t])}function Ze(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function et(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function wt(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function tt(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function Tt(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:s,branch:u}=e,c=e.ownerId??s;if(!s||!c||!u)return t;const a=n?.[c]?.[u];return a?{...t??{},[s]:{...t?.[s]??{},[u]:a}}:t}function z(e,t,n){const s={virtualMcpId:e};return t&&(s.branch=t),n&&(s.threadId=n),s}const we=2,nt=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function Te(e){return nt.has(e)}function rt(e){return e.executionEnabled&&e.failedReason!==null&&Te(e.failedReason)&&e.attempts<we&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const st={branch:null,count:0,handled:!1};function ot(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function at(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function ut(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function xe(e,t){return`${e??""}::${t??""}`}function ct(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function Z(e){const{data:t,virtualMcpId:n,branch:s}=e;t?.branch&&!s&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:xe(n,t.branch??s),url:t.previewUrl})}const it={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},ke=o.createContext(it);function xt(){return o.use(ke)}function kt({executionEnabled:e,virtualMcpId:t,branch:n,userId:s,hasActiveRepository:u,vmEntry:c,threadId:a,children:V}){const{org:j}=ye(),{setCurrentTaskBranch:y}=Oe(),te=Be(),b=de(),ne=X(),U=Ue(t),re=U.resolved?U.runtime:null,E=Re()?.taskId??null,G=Le({connectionId:_e,orgId:j.id,orgSlug:j.slug}),h=Ye(G,{onStarted:()=>{a&&te?.refreshThreadMetadata(a)}}),{mutate:k,reset:q}=h,[se,R]=o.useState(null),H=o.useRef(new Set),v=o.useRef(null),[O,w]=o.useState(st),C=ot(O,n);C!==O&&w(C);const p=b.phase?.kind==="failed"?b.phase:null,Q=ct({vmEntry:c,seeded:p?null:se,key:xe(t,n)}),_=!!t&&!!n&&le.isStopped(t,n),oe=b.status.state==="paused",d=!p||!Te(p.reason)||C.count>=we,S=at({mutationError:h.isError&&h.error?$e(h.error.message):null,phase:b.phase,startPending:h.isPending,claimRetryExhausted:d}),D=Ze({previewUrl:Q,appPaused:oe,userStopped:_,startError:S}),L=ut(D),T=n??"",P=H.current.has(T),g=et({executionEnabled:e,hasActiveRepository:u,userId:s,branch:n,vmEntry:c,userStopped:_,isPending:h.isPending,attempted:P,sessionRuntime:re});o.useEffect(()=>{if(!g||!t)return;H.current.add(T);const x=z(t,n,E);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:y,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] auto-start failed:",r)}})},[g,T,n,t,E,k,y,R]);const m=b.notFound?c?.sandboxHandle??null:null,A=tt({executionEnabled:e,notFound:b.notFound,deadVmId:m,lastDeadVmId:v.current,isPending:h.isPending,userStopped:_});o.useEffect(()=>{if(!A||!m||!t)return;v.current=m;const x=z(t,n,E);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:y,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] self-heal failed:",r)}})},[A,m,t,n,E,k,y,R]);const I=rt({executionEnabled:e,failedReason:p?.reason??null,attempts:C.count,isPending:h.isPending,userStopped:_,alreadyHandled:C.handled});o.useEffect(()=>{if(!p){w(r=>r.handled?{...r,handled:!1}:r);return}if(!I||!t)return;w(r=>({...r,handled:!0,count:r.count+1}));const x=z(t,n,E);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:y,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",r)}})},[p,I,t,n,E,k,y,R]);const B=()=>{if(!e||!t)return;const x=z(t,n,E);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:y,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] user start failed:",r)}})},Y=async()=>{if(!(!e||!t||!n)&&c){le.mark(t,n);try{await G.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}ee(ne)}},J=async()=>{await Y(),B()},N=()=>{H.current=new Set,v.current=null,w({branch:n,count:0,handled:!1}),q(),B()},ue={branch:n,previewState:D,status:L,vmEntry:c,previewUrl:Q,userStopped:_,start:B,stop:Y,restart:J,retry:N,resume:N};return Ee.jsx(ke,{value:ue,children:V})}export{gt as S,kt as a,Ye as b,de as c,xt as d,bt as e,vt as f,Ke as g,Tt as o,wt as s,Rt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{au as n,bK as t,av as e,bL as m,bM as p,bN as d,bO as h}from"./index-
|
|
1
|
+
import{au as n,bK as t,av as e,bL as m,bM as p,bN as d,bO as h}from"./index-U5TtTLeN.js";const s=500;n({title:e().max(s),url:e().max(s),icon:e().max(s)});const i=n({keyId:e().max(s),modelId:e().max(s),title:e().max(s).optional()}).nullable();m(["fast","smart","thinking","image","web_search","deep_research"]);m(["fast","smart","thinking"]);const y=n({tiers:n({fast:i,smart:i,thinking:i,image:i,web_search:i,deep_research:i})});n({tiers:n({fast:i.optional(),smart:i.optional(),thinking:i.optional()})});const v=50,b=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;n({host:e().min(1).max(s).regex(b).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).max(s).describe("Vault secret id holding the PAT used to authenticate this host.")});n({ids:p(e().max(s)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const x=n({voice_mode:t().optional(),home_task_intake_enabled:t().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:t().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:t().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:t().optional().describe("Run the Reviewer on a task's pull request once it's In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:t().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:t().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:t().optional().describe("When the Reviewer approves a task's pull request, merge it automatically instead of leaving the merge to a human."),auto_resolve_conflicts:t().optional().describe("When an approved pull request can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:t().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:t().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow task-run surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:t().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),auto_assign_report_tasks_to_super_agent:t().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:t().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:t().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:t().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:t().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),monitor_enabled:t().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:t().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),delivery_lanes_enabled:t().optional().describe("Board lanes for shipping: Approved, Merged and Post-deploy Validation sit between In Review and Done, and a merged pull request lands on Merged instead of Done. For teams whose release process continues after the merge. Off by default — with it off the board and the state machine behave exactly as if the lanes did not exist."),new_blocks_editor:t().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in.")}),u=new Set(["reviewer_enabled","cheap_reviewer_model"]);function w(a,r){const c=a?.[r];return u.has(r)?c!==!1:c===!0}function A(a){const r=a?.auto_resolve_conflicts;return typeof r=="boolean"?r:a?.auto_merge===!0}const l=256*1024,f=50,o=500,g=5e3;n({id:e().describe("Brand context ID"),name:e().max(o).describe("Company name"),domain:e().max(o).describe("Company domain (e.g. example.com)"),overview:e().max(g).describe("Company overview / description"),logo:e().max(o).nullable().optional().describe("Logo URL"),favicon:e().max(o).nullable().optional().describe("Favicon URL"),ogImage:e().max(o).nullable().optional().describe("OG image URL"),fonts:n({heading:e().max(o).optional().describe("Font family for headings"),body:e().max(o).optional().describe("Font family for body text"),code:e().max(o).optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:n({primary:e().max(o).optional().describe("Primary brand color (hex)"),secondary:e().max(o).optional().describe("Secondary brand color (hex)"),accent:e().max(o).optional().describe("Accent / highlight color (hex)"),background:e().max(o).optional().describe("Background color (hex)"),foreground:e().max(o).optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:p(d(e(),h())).max(f).nullable().optional().refine(a=>a==null||JSON.stringify(a).length<=l,{message:`images must serialize to at most ${l} bytes`}).describe("Brand images"),metadata:d(e(),h()).nullable().optional().refine(a=>a==null||JSON.stringify(a).length<=l,{message:`metadata must serialize to at most ${l} bytes`}).describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:e().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:t().optional().describe("Whether this is the default brand for the organization")});export{u as D,v as G,x as O,y as S,A as a,b,w as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,bm as T,bq as ce,j as b,bo as _,bF as ae,dc as O,bp as C,bz as P,bu as ie,c as F,l as $}from"./index-CV85Y2XM.js";import{e as de}from"./select-Dii9mPM0.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),v=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,A]=d.useState(null),Y=T(e,v=>A(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(v))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,bm as T,bq as ce,j as b,bo as _,bF as ae,dc as O,bp as C,bz as P,bu as ie,c as F,l as $}from"./index-U5TtTLeN.js";import{e as de}from"./select-Ct3YcjAx.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),v=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(V,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,A]=d.useState(null),Y=T(e,v=>A(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(v))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as w,j as a,h as j}from"./index-
|
|
1
|
+
import{c as b,l as w,j as a,h as j}from"./index-U5TtTLeN.js";import{i as v}from"./SearchMd-DBQ497ay.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,l as B,j as a}from"./index-
|
|
1
|
+
import{c as K,r as C,l as B,j as a}from"./index-U5TtTLeN.js";import{i as I}from"./SearchMd-DBQ497ay.js";import{i as M}from"./X-Dwd6uRpX.js";import{I as O}from"./icon-button-Cas6DlvI.js";function H(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(I,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>z(!0),e[10]=h):h=e[10];let i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=B("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==i||e[19]!==c||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{H as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,b as d,j as l}from"./index-
|
|
1
|
+
import{c as x,b as d,j as l}from"./index-U5TtTLeN.js";import{s as j}from"./User01-B4wSaSqx.js";import{t as E}from"./Users01-XHIuh6fL.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as y,j as s,n as C,fn as $,E as F,r as N,aS as L,B as D,a6 as E,t as _}from"./index-
|
|
1
|
+
import{c as j,b as y,j as s,n as C,fn as $,E as F,r as N,aS as L,B as D,a6 as E,t as _}from"./index-U5TtTLeN.js";import{i as O}from"./AlertCircle-BDgHvDzg.js";import{s as B}from"./Plus-fY-TSUlu.js";import{s as A}from"./User01-B4wSaSqx.js";import{t as R}from"./Users01-XHIuh6fL.js";import{D as I,b as q,c as V,d as H,h as G,e as J}from"./dialog-QCXlZZ0d.js";import{I as z}from"./input-f7pY7igy.js";import{L as w}from"./label-BrWNNvqx.js";import{S as K,b as M,a as Q,d as U,c as P}from"./select-Ct3YcjAx.js";import{T as W}from"./textarea-CJDsPwx4.js";import{u as X,a as Y}from"./use-secrets-DsN-qa_k.js";import{R as Z}from"./require-capability-Bes9gDiX.js";import"./X-Dwd6uRpX.js";import"./index-BIiswjoP.js";import"./Check-BavARqDA.js";import"./ChevronUp-CSBHGgRT.js";import"./access-gate-TM0vttR2.js";import"./capability-load-error-DK-CBBvl.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(O,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?A:R;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function T(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(E,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(E,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),_.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){_.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(I,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(q,{className:"sm:max-w-lg",children:[s.jsxs(V,{children:[s.jsx(H,{children:r("settings.secrets.newSecretTitle")}),s.jsx(G,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(K,{value:i,onValueChange:u=>c(u),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(z,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(z,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(J,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(B,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx(T,{secret:t},t.id)}function ie(t){return s.jsx(T,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs($,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function ze(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{ze as default};
|