decocms 4.390.4 → 4.390.5
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-iVRTcaBg.js → AlertCircle-BXd3wmhE.js} +1 -1
- package/dist/client/assets/{AreaChart-vGEKzI4F.js → AreaChart-BurPFOEM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DfZNe3Vl.js → ArrowLeft-CtG_Sz3T.js} +1 -1
- package/dist/client/assets/{ArrowRight-CswoMXm3.js → ArrowRight-DGQoBfX2.js} +1 -1
- package/dist/client/assets/{ArrowUp-ZHCqKDUA.js → ArrowUp-BAzKSoqz.js} +1 -1
- package/dist/client/assets/{CartesianChart-_SxUX3gE.js → CartesianChart-BHBzHrfv.js} +1 -1
- package/dist/client/assets/{Check-ocmT1xhM.js → Check-D3UEH1bb.js} +1 -1
- package/dist/client/assets/{CheckCircle-BmHBdTYn.js → CheckCircle-BmoxvNcp.js} +1 -1
- package/dist/client/assets/{ChevronUp-BEGO8LAp.js → ChevronUp-DkDOUc-8.js} +1 -1
- package/dist/client/assets/{Copy01-Djl84HjT.js → Copy01-1VyfDicU.js} +1 -1
- package/dist/client/assets/{CreditCard01-DA21YZ9t.js → CreditCard01-CrYxi8Yw.js} +1 -1
- package/dist/client/assets/{DotsVertical-GP-H6-nS.js → DotsVertical-BVvaV8Wy.js} +1 -1
- package/dist/client/assets/{Download01-CQZ78LGI.js → Download01-CRbdo8yP.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CU0G222G.js → ErrorBarContext-Cq12nkBo.js} +1 -1
- package/dist/client/assets/{Eye-CNk4ml55.js → Eye-DnZDEgOn.js} +1 -1
- package/dist/client/assets/{Globe04-B3-IlgJ4.js → Globe04-Cfnfjo6J.js} +1 -1
- package/dist/client/assets/{Image01-zHW5odO5.js → Image01-ZQL1hr5Q.js} +1 -1
- package/dist/client/assets/{Key01-BCjLeK7M.js → Key01-HEuAw7Uw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-dzqHSKuH.js → LayoutLeft-Di6ed8JP.js} +1 -1
- package/dist/client/assets/{Line-BPNz1hy-.js → Line-D1DSosvE.js} +1 -1
- package/dist/client/assets/{Link01-CBc36KC8.js → Link01-CZiQuc44.js} +1 -1
- package/dist/client/assets/{LinkExternal01-JGUyp91x.js → LinkExternal01-BekDuv1R.js} +1 -1
- package/dist/client/assets/{Monitor01-DMBIX-hP.js → Monitor01-BLWTHtTp.js} +1 -1
- package/dist/client/assets/{Package-VT7-ZGoy.js → Package-tH33TvgC.js} +1 -1
- package/dist/client/assets/{Palette-CPW0a6wF.js → Palette-BagjpLZN.js} +1 -1
- package/dist/client/assets/{Plus-ojokEQ8x.js → Plus-Y-KvMcUC.js} +1 -1
- package/dist/client/assets/{SearchLg-C-i1c0zU.js → SearchLg-CL6esTtw.js} +1 -1
- package/dist/client/assets/{SearchMd-MG_xST09.js → SearchMd-CzE1IXtk.js} +1 -1
- package/dist/client/assets/{Sector-DLq_M76x.js → Sector-7uDV3O2e.js} +1 -1
- package/dist/client/assets/{Share07-uQomrLCR.js → Share07-DwVANqGN.js} +1 -1
- package/dist/client/assets/{Stars01-DxtRb5WZ.js → Stars01-BvtQBnED.js} +1 -1
- package/dist/client/assets/{Sun-BEdjuN6j.js → Sun-CPPd8cP7.js} +1 -1
- package/dist/client/assets/{Tool01-COB6rywP.js → Tool01-CeJWUTx4.js} +1 -1
- package/dist/client/assets/{Trash01-DTUu7NOU.js → Trash01-C6BZglNY.js} +1 -1
- package/dist/client/assets/{Upload01-Dty36l1w.js → Upload01-DBDdtdRw.js} +1 -1
- package/dist/client/assets/{User01-BSto60sn.js → User01-DhER-7M5.js} +1 -1
- package/dist/client/assets/{UserSquare-C8brDzYe.js → UserSquare-D9izLEMu.js} +1 -1
- package/dist/client/assets/{Users01-CxwIEg0g.js → Users01-CGh_okmA.js} +1 -1
- package/dist/client/assets/{X-B5gw2EHv.js → X-rZfX9y0d.js} +1 -1
- package/dist/client/assets/{XCircle-seVaST6e.js → XCircle-fYjVO-4e.js} +1 -1
- package/dist/client/assets/{XClose-B5O4OZct.js → XClose-Drgfi-MO.js} +1 -1
- package/dist/client/assets/{Zap-D7YN1rKW.js → Zap-DcWY_A2w.js} +1 -1
- package/dist/client/assets/{ZoomOut-qVaUZ9ca.js → ZoomOut-CmJNnQZa.js} +1 -1
- package/dist/client/assets/{access-gate-BIKeQRL_.js → access-gate-DrC617P9.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BCh8Kz04.js → add-connection-dialog-BrlUHuQ9.js} +1 -1
- package/dist/client/assets/{agent-analytics--KcDdN57.js → agent-analytics-Cw9tQISn.js} +1 -1
- package/dist/client/assets/agent-app-BE3kXNei.js +1 -0
- package/dist/client/assets/{agent-assets-CB6ZSzqA.js → agent-assets-NJjJRoAl.js} +1 -1
- package/dist/client/assets/{agent-automation-B57x68Um.js → agent-automation-C1ibaLXl.js} +1 -1
- package/dist/client/assets/{agent-automations-DsNAcyrP.js → agent-automations-DB1TbF54.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-D1XyNIWt.js → agent-connect-sources-Cvwx0aGv.js} +1 -1
- package/dist/client/assets/agent-deck-BjwXuCnI.js +1 -0
- package/dist/client/assets/{agent-e2e-DPPSPIQv.js → agent-e2e-Bm0ir2w1.js} +1 -1
- package/dist/client/assets/{agent-experiments-CMIDfL0o.js → agent-experiments-Bv3P9kPX.js} +1 -1
- package/dist/client/assets/agent-file-B5ULlTNv.js +1 -0
- package/dist/client/assets/{agent-git-BBWRyZCE.js → agent-git-B1sEUtW8.js} +1 -1
- package/dist/client/assets/{agent-hosting-BIMxJVDi.js → agent-hosting-DNw3gDr1.js} +1 -1
- package/dist/client/assets/{agent-icon-BsnTrJjJ.js → agent-icon-CUHwvCug.js} +1 -1
- package/dist/client/assets/agent-library-file-ys3FW6Ts.js +1 -0
- package/dist/client/assets/{agent-monitor-CbmXFCNk.js → agent-monitor-8Z9iofGU.js} +1 -1
- package/dist/client/assets/{agent-overview-BPW1OhWv.js → agent-overview-DV6D5mcW.js} +1 -1
- package/dist/client/assets/agent-settings-Do48sFtz.js +1 -0
- package/dist/client/assets/{agent-site-editor-m4t0aVDo.js → agent-site-editor-Bp9kex6E.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D6OZaku7.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Y18YyEWw.js → agent-site-editor-content-BnmxakX4.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-BOHOs4hS.js → agent-site-editor-preview-k6KOtKNv.js} +3 -3
- package/dist/client/assets/agent-view-BcTmq8aW.js +1 -0
- package/dist/client/assets/{agent-view-guard-DBlz_p2t.js → agent-view-guard-mWuQM6et.js} +1 -1
- package/dist/client/assets/{agents-list-7X7ucg0e.js → agents-list-CKVhVS_6.js} +1 -1
- package/dist/client/assets/{ai-providers-Bm2tLrMu.js → ai-providers-CZkq155K.js} +1 -1
- package/dist/client/assets/{alert-dialog-BhgAEu2i.js → alert-dialog-D0EwpcN4.js} +1 -1
- package/dist/client/assets/{alert-DslM1OpO.js → alert-tPvl5V7J.js} +1 -1
- package/dist/client/assets/{api-keys-Dq1Bnar4.js → api-keys-CiTZWPra.js} +1 -1
- package/dist/client/assets/api-keys-D0yLzADM.js +1 -0
- package/dist/client/assets/app-editor-CQk3gD21.js +1 -0
- package/dist/client/assets/{asset-utils-D3ZIfM_Z.js → asset-utils-tQ6o2CDF.js} +1 -1
- package/dist/client/assets/{auth-uih7AqvO.js → auth-6ek5T3GB.js} +1 -1
- package/dist/client/assets/{auth-catchall-pT36A0zr.js → auth-catchall-BTt0HN1L.js} +1 -1
- package/dist/client/assets/{auth-entry-2UXAVZ_y.js → auth-entry-Bq9TVm0P.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BjGbJo38.js → auth-split-layout-CNzOx79W.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B9I5UxEd.js → authenticate-and-persist-oauth-C0EgQu0P.js} +1 -1
- package/dist/client/assets/{automation-list-row-6I49gBmF.js → automation-list-row-BSZgMG8f.js} +1 -1
- package/dist/client/assets/{automation-runs-EAqUU_Ij.js → automation-runs-BMsBLMsg.js} +1 -1
- package/dist/client/assets/{automations-CQPehM0c.js → automations-Bdbn7Pu2.js} +1 -1
- package/dist/client/assets/{autosend-BJW1PfVQ.js → autosend-BNuK0erf.js} +1 -1
- package/dist/client/assets/{avatar-_8aGoMXJ.js → avatar-D0sKo5Ko.js} +1 -1
- package/dist/client/assets/{badge-DMewhq-R.js → badge-CFEM0raL.js} +1 -1
- package/dist/client/assets/{block-document-Dcc8Ersi.js → block-document-Chl-m90T.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BRSFaO-e.js → blocks-preview-workspace-context-DdPADfnI.js} +1 -1
- package/dist/client/assets/{breadcrumb-ClrBbM2y.js → breadcrumb-DGzJ2mi_.js} +1 -1
- package/dist/client/assets/{buckets-8W4ppyWH.js → buckets-W6OaopO-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CX4X_Kjx.js → build-improve-prompt-doc-DeW5gQgu.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DRm2c8X2.js → bulk-category-panel-Rf660pBu.js} +1 -1
- package/dist/client/assets/{calendar-B83nuFOI.js → calendar-BDrJCpVb.js} +1 -1
- package/dist/client/assets/{capability-load-error-BUHyT4vC.js → capability-load-error-CkdeSGfJ.js} +1 -1
- package/dist/client/assets/{category-editor-DmtS6BHb.js → category-editor-BjOOP9zk.js} +1 -1
- package/dist/client/assets/{chart-O1DWzSgB.js → chart-r_c7F5B8.js} +1 -1
- package/dist/client/assets/{chat-context-H6Zpj-Vd.js → chat-context-DfIPg4kF.js} +1 -1
- package/dist/client/assets/{chat-draft-BXT8ntBy.js → chat-draft-BqHnkSRF.js} +1 -1
- package/dist/client/assets/{checkbox-JC6LoT32.js → checkbox-Dr1iEjvP.js} +1 -1
- package/dist/client/assets/{choose-editor-D-IXY8oL.js → choose-editor-Dp7QkLDv.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CPiQ28RG.js → claim-phase-copy-CPp-hZ5n.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CQt2stGY.js → cli-auth-success-B3ECmgl-.js} +1 -1
- package/dist/client/assets/{client-icons-D5aE3fDf.js → client-icons-Ce5SmXFK.js} +1 -1
- package/dist/client/assets/{collapsible-B930Znij.js → collapsible-Ozwn48y1.js} +1 -1
- package/dist/client/assets/{collection-detail-DILC7xOI.js → collection-detail-DApKXcnj.js} +1 -1
- package/dist/client/assets/{collection-display-button-DKuiVs_e.js → collection-display-button-DM83AZTp.js} +1 -1
- package/dist/client/assets/{collection-search-DFVK1KQ8.js → collection-search-BRkIgroJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DvM7LDpZ.js → collection-table-wrapper-SNXCX7Mr.js} +1 -1
- package/dist/client/assets/{collection-tabs-DWdbo1Je.js → collection-tabs-BN1xWU9h.js} +1 -1
- package/dist/client/assets/{combobox-BoqrgDcx.js → combobox-Ct9LBV7p.js} +1 -1
- package/dist/client/assets/{command-C3KYPhtk.js → command-Das6UcyK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DhDS_06A.js → companion-mcps-section-B4IqxVxa.js} +1 -1
- package/dist/client/assets/{connect-Dyr51oJk.js → connect-DKxaqp8T.js} +1 -1
- package/dist/client/assets/{connect-layout-BNbZXyRv.js → connect-layout-GIo2P6vy.js} +1 -1
- package/dist/client/assets/{connection-D9jQPSCJ.js → connection-Vq7712iH.js} +1 -1
- package/dist/client/assets/{connection-card-D-LytxKQ.js → connection-card-DmSG--jc.js} +1 -1
- package/dist/client/assets/{connection-detail-CNt-Uyzd.js → connection-detail-DCIP_zf4.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DSpcP1Dc.js → connection-form-helpers-B1Gfuz6v.js} +1 -1
- package/dist/client/assets/{connections-C7W7axzQ.js → connections-BE_Q0OgI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DBxZ2XGo.js → create-organization-dialog-CNW2-tLc.js} +1 -1
- package/dist/client/assets/{decofile-api-CAHmkQlU.js → decofile-api-DvonsyVe.js} +1 -1
- package/dist/client/assets/{decopilot-BnOOn6v6.js → decopilot-_2aHa55x.js} +1 -1
- package/dist/client/assets/{dialog-BTnr_AVV.js → dialog-O_WsqGxK.js} +1 -1
- package/dist/client/assets/{discover-U5K5oM8Q.js → discover-DNKxCZwb.js} +1 -1
- package/dist/client/assets/{domain-settings-CzbkVMPe.js → domain-settings-9s0IWIG1.js} +1 -1
- package/dist/client/assets/{download-app-dialog-nvCUSnk2.js → download-app-dialog-DJrde0mx.js} +1 -1
- package/dist/client/assets/{drawer-D6LfOfIo.js → drawer-DmWpiePK.js} +1 -1
- package/dist/client/assets/{editor-BqmQJegj.js → editor-bajIdLtD.js} +1 -1
- package/dist/client/assets/{empty-state-DMmxHRTF.js → empty-state-Atjx1U2W.js} +1 -1
- package/dist/client/assets/{empty-state-DMiHCSxy.js → empty-state-DYH2UztF.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CZjdLMbg.js → extract-connection-data-C8tfLeRY.js} +1 -1
- package/dist/client/assets/{feature-gate-ByUUxxIv.js → feature-gate-C5gwa5Kb.js} +1 -1
- package/dist/client/assets/{feature-paywall-C9xFi1nx.js → feature-paywall-C7OuLsbm.js} +1 -1
- package/dist/client/assets/{file-explorer-DmorIYyd.js → file-explorer-6H1B3qt6.js} +1 -1
- package/dist/client/assets/{file-preview-DG6yyUI3.js → file-preview-BiHR6COU.js} +1 -1
- package/dist/client/assets/{file-share-button-B2dbicF1.js → file-share-button-C5XfrmpE.js} +1 -1
- package/dist/client/assets/{file-type-icon-BkowPfFv.js → file-type-icon-D6rUMGA4.js} +1 -1
- package/dist/client/assets/{folder-icon-D4_mI7nX.js → folder-icon-B_bfB1iq.js} +1 -1
- package/dist/client/assets/{form-Cs0YGgAz.js → form-Db0Tj8hF.js} +1 -1
- package/dist/client/assets/{gateway-client-D0N_12qS.js → gateway-client-pQEk_YWf.js} +1 -1
- package/dist/client/assets/{general-C7u2nzrT.js → general-BVSSoQ2s.js} +1 -1
- package/dist/client/assets/{github-icon-BuR6fL8l.js → github-icon-DO6paY-Y.js} +1 -1
- package/dist/client/assets/{home-DVyMZFQG.js → home-B5QgEHQi.js} +1 -1
- package/dist/client/assets/{hooks-CZw8Nj9H.js → hooks-D5xL0VD-.js} +1 -1
- package/dist/client/assets/{hooks-BIIUffrO.js → hooks-Dyt2S900.js} +1 -1
- package/dist/client/assets/{icon-button-ffXmg1OC.js → icon-button-bkQbZIJx.js} +1 -1
- package/dist/client/assets/{index-BYhU0OAw.js → index-3wu9QSuh.js} +1 -1
- package/dist/client/assets/{index-DbCXB6UC.js → index-B1H3xTcC.js} +1 -1
- package/dist/client/assets/{index-CJvGo7M-.js → index-B9KXIX84.js} +2 -2
- package/dist/client/assets/{index-IKyehAj0.js → index-BEBsD_Uj.js} +1 -1
- package/dist/client/assets/{index-CwPMc6DD.js → index-BFBOXOd5.js} +1 -1
- package/dist/client/assets/{index-DqJtHo4n.js → index-BMguGW4R.js} +1 -1
- package/dist/client/assets/{index-P6xk5T3b.js → index-CcCENa4K.js} +1 -1
- package/dist/client/assets/{index-cLR8hRUZ.js → index-CcStfLcS.js} +1 -1
- package/dist/client/assets/{index-R-0H4aXt.js → index-Cqfo3dLZ.js} +1 -1
- package/dist/client/assets/{index-CC4ky7Bt.js → index-D-HNn6NY.js} +1 -1
- package/dist/client/assets/{index-DnfITnHh.js → index-DTD6MU_-.js} +1 -1
- package/dist/client/assets/{index-BSqcExWu.js → index-DXPgJ5pN.js} +1 -1
- package/dist/client/assets/{index-Bo1CTi_x.js → index-TQAMEK3-.js} +1 -1
- package/dist/client/assets/{index-B0qiS0Xy.js → index-ew-hZs-T.js} +1 -1
- package/dist/client/assets/{index-redirect-UW05aF5k.js → index-redirect-DtXP9nXs.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Co_jht2h.js → infiniteQueryObserver-DrVVQrbK.js} +1 -1
- package/dist/client/assets/{infra-billing-BNNb1HUT.js → infra-billing-7wcYScSW.js} +1 -1
- package/dist/client/assets/{input-DmhYaSfN.js → input-ALPFLjGK.js} +1 -1
- package/dist/client/assets/{input-CW1e_IGW.js → input-BlBczlUj.js} +1 -1
- package/dist/client/assets/{input-ctnVSOTh.js → input-DLqUDU4v.js} +1 -1
- package/dist/client/assets/{integration-icon-DBmxvUTr.js → integration-icon-BDlRT6Oh.js} +1 -1
- package/dist/client/assets/{label-4VvccInH.js → label-CeYXCWIS.js} +1 -1
- package/dist/client/assets/{last-preview-page-CvHaNJZf.js → last-preview-page-Pa_m-NGp.js} +1 -1
- package/dist/client/assets/{layout-YtNzwgmw.js → layout-2OR9C3vu.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-D_WKz4Q4.js → legacy-agents-deep-BXlfHsnP.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Cuoc1Q6w.js → legacy-main-redirect-CXr4DIMg.js} +1 -1
- package/dist/client/assets/{library-C5hSt5jS.js → library-DC1sHBtK.js} +1 -1
- package/dist/client/assets/{login-BHMe1ZN5.js → login-ETcUXX8b.js} +1 -1
- package/dist/client/assets/{markdown-DgiLeH6x.js → markdown-BHnqyTep.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Dpmk1Vv4.js → mcp-app-renderer-CN7HJqgc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C2J7M1Qy.js → mcp-oauth-DBcvf4Gv.js} +1 -1
- package/dist/client/assets/{members-DZUeyWSF.js → members-CKovzLZm.js} +1 -1
- package/dist/client/assets/{message-templates-DEiaR-4t.js → message-templates-CVWApNdw.js} +1 -1
- package/dist/client/assets/{mini-report-page-DZ2brjJR.js → mini-report-page-D75y78PO.js} +1 -1
- package/dist/client/assets/{mock-board-C3-S11yK.js → mock-board-CKKlMTR7.js} +3 -3
- package/dist/client/assets/{monaco-editor-CWYBB1Jc.js → monaco-editor-sTKHVHs7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BIOo_dNd.js → monitoring-stats-row-CFvcs0FY.js} +1 -1
- package/dist/client/assets/{multi-select-CQmA6upg.js → multi-select-bTG-_3iX.js} +1 -1
- package/dist/client/assets/{mustache-CCIaSVE8.js → mustache-D5HgeK1D.js} +1 -1
- package/dist/client/assets/{oauth-callback-JKin_sKW.js → oauth-callback-BQGhxVdk.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CVBe8y5A.js → oauth-callback-ai-provider-9WlNwZ-4.js} +1 -1
- package/dist/client/assets/{onboarding-CiuzJ17Q.js → onboarding-TK-D_Eg-.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B1t6VhD_.js → optimistic-project-sidebar-views-BuKbcQgt.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BpKzz2X6.js → org-file-open-context-DNQMuR7f.js} +1 -1
- package/dist/client/assets/{organization-choice-DtGmLZl3.js → organization-choice-O0bt4mln.js} +1 -1
- package/dist/client/assets/{orgs-C7GJQT2F.js → orgs-Dv-imO9p.js} +1 -1
- package/dist/client/assets/{page-seo-form-CJEF56bx.js → page-seo-form-Biw0BL9j.js} +1 -1
- package/dist/client/assets/{pair-B42JzU0G.js → pair-B2IVuWLB.js} +1 -1
- package/dist/client/assets/{plan-ladder-DZj3EnLg.js → plan-ladder-CCULPA3j.js} +1 -1
- package/dist/client/assets/{popover-Dc6K6r1C.js → popover-Wvqr_2yR.js} +1 -1
- package/dist/client/assets/{post-calendar-CdMKYMS2.js → post-calendar-a5E2qOG-.js} +1 -1
- package/dist/client/assets/{post-editor-my4ezea6.js → post-editor-DFx-26e8.js} +1 -1
- package/dist/client/assets/{preview-content-CziYH8nP.js → preview-content-BCd4V54J.js} +1 -1
- package/dist/client/assets/{preview-dialog-DDwPGbj2.js → preview-dialog-ClD44N_y.js} +1 -1
- package/dist/client/assets/{primitives-BeUcpT_l.js → primitives-byxT-Ui7.js} +1 -1
- package/dist/client/assets/{profile-BOKysRT9.js → profile-9uJoAI6f.js} +1 -1
- package/dist/client/assets/{project-app-view-CRETWS5_.js → project-app-view-XjFGHkML.js} +1 -1
- package/dist/client/assets/{project-feed-DnXMTyTK.js → project-feed-B4oD-iPW.js} +1 -1
- package/dist/client/assets/{project-icon-CQHpgqjE.js → project-icon-BFHg-quI.js} +1 -1
- package/dist/client/assets/project-reports-zGc7Q3TI.js +1 -0
- package/dist/client/assets/project-tasks-DqoKheUq.js +1 -0
- package/dist/client/assets/{prompts-Buirx6sq.js → prompts-D6Qoh4zQ.js} +1 -1
- package/dist/client/assets/record-editor-jLe9lZIe.js +1 -0
- package/dist/client/assets/{redirect-editor-T_gO2ARt.js → redirect-editor-CnOUBdx5.js} +1 -1
- package/dist/client/assets/{reports-D29xfPX4.js → reports-D6i3xT-r.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Cd6ZQZfG.js → reports-onboarding-BJ3gF8Jt.js} +1 -1
- package/dist/client/assets/reports-r1Z-LWUs.js +1 -0
- package/dist/client/assets/{reports-tab-C8QCg1Zh.js → reports-tab-DXNb57Ao.js} +2 -2
- package/dist/client/assets/{repositories-eEvxM93v.js → repositories-BXIZ-orB.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CYhmnGT6.js → repository-import-picker-BomeZ4YD.js} +1 -1
- package/dist/client/assets/{repository-picker-CJrIw77i.js → repository-picker-Bpcr10QR.js} +1 -1
- package/dist/client/assets/{require-capability-CQeOwSD4.js → require-capability-B5vhBt9u.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CE8AnY1F.js → required-auth-layout-CyCpjrfs.js} +1 -1
- package/dist/client/assets/{reset-password-DFPIxqxe.js → reset-password-B2Z9lfbJ.js} +1 -1
- package/dist/client/assets/{resizable-C4Edp607.js → resizable-X9aB8eM5.js} +1 -1
- package/dist/client/assets/{review-settings-CbjseDbt.js → review-settings-c3E6ViNV.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-Do2n6JIO.js → rich-text-link-control-DLGtga8b.js} +1 -1
- package/dist/client/assets/{roles-CJoQe-iA.js → roles-DPfRfWCB.js} +1 -1
- package/dist/client/assets/{route-DFFPgrtv.js → route-Cvx3z9KR.js} +1 -1
- package/dist/client/assets/{route-euoZW6b2.js → route-DtNPEkNV.js} +1 -1
- package/dist/client/assets/{route-wRSR0-RQ.js → route-cbFwKoF4.js} +1 -1
- package/dist/client/assets/{route-page-header-CEYsqpu_.js → route-page-header-Dr10DLhY.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Bm9IpSRw.js → runnable-block-editor-Luwb6lXF.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CFfKpmMd.js → sandbox-lifecycle-context-CHjp6hDX.js} +1 -1
- package/dist/client/assets/{schema--090tLTs.js → schema-CdJJOHN7.js} +1 -1
- package/dist/client/assets/{scroll-area-DaAnCQrg.js → scroll-area-DiE2RXUS.js} +1 -1
- package/dist/client/assets/{search-input-Cq2H58ks.js → search-input-MsiE4xnC.js} +1 -1
- package/dist/client/assets/{search-toggle-BzE09wAY.js → search-toggle-BujrzbmS.js} +1 -1
- package/dist/client/assets/{secret-picker-FNqMA4b3.js → secret-picker-BOvhv2JQ.js} +1 -1
- package/dist/client/assets/{secrets-B79xiOvr.js → secrets-CpJVBw79.js} +1 -1
- package/dist/client/assets/{sections-editor-Bch82FO0.js → sections-editor-DDnlJ9KQ.js} +1 -1
- package/dist/client/assets/{select-_7jCWmPs.js → select-BmpMhuXU.js} +1 -1
- package/dist/client/assets/{select-model-C991WVaS.js → select-model-Cqn2WNWa.js} +1 -1
- package/dist/client/assets/{seo-editor-COzsrOm2.js → seo-editor-1A35EHVT.js} +1 -1
- package/dist/client/assets/{separator-CTDFfWkU.js → separator-Dl5b3JZz.js} +1 -1
- package/dist/client/assets/{settings-tab-OQmnW7Ut.js → settings-tab-CJkqi9sH.js} +1 -1
- package/dist/client/assets/{sheet-fXc9nA9M.js → sheet-B0Sr1nwg.js} +1 -1
- package/dist/client/assets/{shell-layout-CFgBlrHw.js → shell-layout-BA4WahT2.js} +1 -1
- package/dist/client/assets/{sidebar-CD_qlBS1.js → sidebar-DGGwKufn.js} +1 -1
- package/dist/client/assets/{skill-preview-iGSQpWTN.js → skill-preview-D99Hmxpn.js} +1 -1
- package/dist/client/assets/{skills-Bo3AuN87.js → skills-DusNUug_.js} +1 -1
- package/dist/client/assets/{sso-bCqIdarJ.js → sso-Q5OGwWHg.js} +1 -1
- package/dist/client/assets/{switch-_-H0ZzQ0.js → switch-CGGsZGg2.js} +1 -1
- package/dist/client/assets/{synced-repos-CJ3PDs71.js → synced-repos-disT4WD-.js} +1 -1
- package/dist/client/assets/{table-B0ylfHsr.js → table-p5K_r58-.js} +1 -1
- package/dist/client/assets/{tabs-CbBMI_3w.js → tabs-B2X-mfaO.js} +1 -1
- package/dist/client/assets/{task-board-BOtwbMNd.js → task-board-mTs0BkYi.js} +1 -1
- package/dist/client/assets/{task-route-ClDUjCmA.js → task-route-CGQF_N5D.js} +1 -1
- package/dist/client/assets/{task-status-DCDgnDj7.js → task-status-BfecW6Jc.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CiRR6YhP.js → taskboard-analytics-CtICaEUy.js} +1 -1
- package/dist/client/assets/{tasks-MLHolUxt.js → tasks-BAEY4_dG.js} +1 -1
- package/dist/client/assets/tasks-WvRRvqRc.js +1 -0
- package/dist/client/assets/{textarea-Pm894Vb7.js → textarea-BGjs-_ya.js} +1 -1
- package/dist/client/assets/{thread-button-0yNolO5U.js → thread-button-B_TrQG9B.js} +1 -1
- package/dist/client/assets/{thread-intent-CZ1rMWWZ.js → thread-intent-BHNHSQWV.js} +1 -1
- package/dist/client/assets/{thread-route-Cz0k6s-0.js → thread-route-C_KFFLE6.js} +1 -1
- package/dist/client/assets/{thread-route-DDyPLFny.js → thread-route-DNtSLAiW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CoOlYiyz.js → thread-sheet-body-C_nRrD8j.js} +1 -1
- package/dist/client/assets/{toggle-group-BCKZnr8W.js → toggle-group-C66gu9FY.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-SVo3Fo7H.js → toolbar-icon-button-ClGr1SmO.js} +1 -1
- package/dist/client/assets/{tooltip-ChaEDFwp.js → tooltip-C3KYJcjJ.js} +1 -1
- package/dist/client/assets/{track-CO4eg07r.js → track-D48SK3WP.js} +1 -1
- package/dist/client/assets/{types-DOMFbfVw.js → types-CsEtlQqb.js} +1 -1
- package/dist/client/assets/{usage-stats-rx7t_Nos.js → usage-stats-BWbFQ6nI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-8tdExCCT.js → use-ai-providers-CBInTetj.js} +1 -1
- package/dist/client/assets/{use-automations-C3DIh181.js → use-automations-DhqE5Iln.js} +1 -1
- package/dist/client/assets/{use-autosave-Bra0uvzP.js → use-autosave-BZ31lz42.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Bull_Zxw.js → use-connect-companion-Cgkf5QHC.js} +1 -1
- package/dist/client/assets/{use-connection-_01X3r9K.js → use-connection-DNwnGnCC.js} +1 -1
- package/dist/client/assets/{use-copy-DYjRVCxp.js → use-copy-BaRXHXi4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bj3aYXDp.js → use-create-virtual-mcp-CNiIu7cC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-yvDr0D7T.js → use-date-fns-locale-CIJdwgov.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DbVxH1pQ.js → use-debounced-autosave-CvGfYHrZ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BAx8VCR0.js → use-debounced-value-CkL-oBw0.js} +1 -1
- package/dist/client/assets/{use-deco-credits-yiRW4WkY.js → use-deco-credits-raOHBi_A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D9jYfL-F.js → use-decopilot-events-BBmla5vN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C_I3mgoO.js → use-delete-connection-BaUPu_7u.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-ByTSklJo.js → use-deployment-admin-ReJnLBFa.js} +1 -1
- package/dist/client/assets/{use-entitlements-C3RfsquV.js → use-entitlements-B9tTc-Ev.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D8zl5mEv.js → use-fast-preview-draft-url-CDhB1Fq2.js} +1 -1
- package/dist/client/assets/{use-file-configs-DOTdJIrl.js → use-file-configs-y5ZRqVAK.js} +1 -1
- package/dist/client/assets/{use-in-settings-C7yJRVKh.js → use-in-settings-pVGM4OYb.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D7ecDjvR.js → use-infinite-scroll-DTMvlJNU.js} +1 -1
- package/dist/client/assets/{use-join-requests-Ilb6bw8C.js → use-join-requests-Kpry70bT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CnSLB640.js → use-main-panel-tabs-4N3JxcLp.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BZ3hpP0X.js → use-mcp-auth-status-DKnE_dZf.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CNhRUvA5.js → use-mcp-client-DgXYHdq4.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-EbPPuTcd.js → use-mcp-prompts-BXGa38c2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BPf00IDz.js → use-mcp-tools-CVoDfjIr.js} +1 -1
- package/dist/client/assets/{use-members-B3lGJD1d.js → use-members-BBMuBGx7.js} +1 -1
- package/dist/client/assets/{use-mobile-DX7VP8iK.js → use-mobile-BYkN2CBV.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-g6nQp_q-.js → use-navigate-to-agent-fAaFURKA.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-UFHRZeDE.js → use-open-billing-url-D9101_ww.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DbfrlNFJ.js → use-org-auth-client-gMmPeQrf.js} +1 -1
- package/dist/client/assets/{use-org-fs-BJVySa9m.js → use-org-fs-FICli5P0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bu37nqQ2.js → use-org-repo-syncs-Be5dKRHy.js} +1 -1
- package/dist/client/assets/{use-org-sso-BlWvz-NF.js → use-org-sso-Dbq_Rnc1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DE7kCN9L.js → use-organization-roles-xXXb48cX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BLQ6mu_F.js → use-organization-settings-C_ZfDEow.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BsGJc9V3.js → use-panel-navigate-Wiv5HcS5.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-KEUHlmpo.js → use-project-native-view-presence-DON0VaEF.js} +1 -1
- package/dist/client/assets/{use-project-scope-BGBC-ayH.js → use-project-scope-bzqn-AFR.js} +1 -1
- package/dist/client/assets/{use-releases-CQr6l3Pj.js → use-releases-BfrGp9Ns.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CofOdWW9.js → use-reports-diagnostic-LvWG_eGZ.js} +1 -1
- package/dist/client/assets/{use-route-default-main-B3Le2s3e.js → use-route-default-main-BxMIgjib.js} +1 -1
- package/dist/client/assets/{use-secrets-C61EqNPY.js → use-secrets-CQXQ7e5K.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-lO8EHufR.js → use-section-preview-base-DRPQTFm9.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CJtUNfm9.js → use-session-runtime-QJbktQ89.js} +1 -1
- package/dist/client/assets/{use-tags-Cw8Tl4V2.js → use-tags-w04zmXlI.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-P3ACpavh.js → use-task-board-analytics-Da2cyRoo.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Bh8dwwJo.js → use-task-metadata-DiRAYc7A.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DWb5Ffwp.js → use-thread-outputs-BBHbLuqJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DYsZ_S7V.js → use-virtual-mcp-CijpHWeY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-yhr2eVB6.js +1 -0
- package/dist/client/assets/{useQueries-BkAl2Nho.js → useQueries-0w4KxC3A.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4wrf6ZX.js +1 -0
- package/dist/client/assets/{users-D9VRrUZq.js → users-6Ayldnit.js} +1 -1
- package/dist/client/assets/{utils-SncAWk77.js → utils-D_eBTbjc.js} +1 -1
- package/dist/client/assets/{variant-calendar-Bc7nrgXK.js → variant-calendar-C5cziu6r.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-B6vu1CuI.js → variant-matcher-override-GL2lvgp-.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BaA42o_l.js → view-mode-toggle-C2y3stN0.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C32FiGUT.js → virtual-mcp-BrketPQW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Br6aux_w.js +0 -1
- package/dist/client/assets/agent-deck-Vhc8akKy.js +0 -1
- package/dist/client/assets/agent-file-BJobJMYY.js +0 -1
- package/dist/client/assets/agent-library-file-SIskwRA5.js +0 -1
- package/dist/client/assets/agent-settings-CzdAFelD.js +0 -1
- package/dist/client/assets/agent-site-editor-code-tjytfPRA.js +0 -2
- package/dist/client/assets/agent-view-B0TeCTGP.js +0 -1
- package/dist/client/assets/api-keys-BdpkM46E.js +0 -1
- package/dist/client/assets/app-editor-C3rD0azc.js +0 -1
- package/dist/client/assets/project-reports-D_REhIUx.js +0 -1
- package/dist/client/assets/project-tasks-CCtFBWbk.js +0 -1
- package/dist/client/assets/record-editor-CvRbpNqI.js +0 -1
- package/dist/client/assets/reports-CyGj47MI.js +0 -1
- package/dist/client/assets/tasks-pXX1X4bj.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ChD58h72.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C9oYMcau.js +0 -1
package/dist/client/assets/{runnable-block-editor-Bm9IpSRw.js → runnable-block-editor-Luwb6lXF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as vr,c as B,o as En,m as Q0,K as Z9,b as m9,j as r,l as H,B as h9,T as wn,aG as br,e as An,r as F,t as A9,aO as jr,aP as a0,n as Sr,Z as T9,aM as Mn,F as ce,am as Le,G as N9,H as G9,I as H9,aQ as de,aL as Fe,aK as kr,h as x0,aR as Nr,E as Tr,aS as _r}from"./index-CJvGo7M-.js";import{u as Ke}from"./use-session-runtime-CJtUNfm9.js";import{u as Ge,g as Rn,A as D9,B as Pn,r as F9,D as Cr,b as j9,P as Q9,E as X9,N as I0,F as k9,L as Pt,H as u0,C as Er,I as In,l as Fn,J as It,K as wr,M as Ar,O as On,Q as _0,k as Mr,T as Rr,v as Pr,U as Ir,V as Fr,W as Or}from"./claim-phase-copy-CPiQ28RG.js";import{e as Dn}from"./backoff-8mStPHYB.js";import{X as Dr,Y as $r,Z as zr,_ as Br,$ as Vr,a0 as Ur,a1 as Kr,a2 as Gr,Q as Hr,a3 as $n,a4 as ue,o as qr,S as M0,O as Yr,m as Wr,a5 as Jr,z as zn,a6 as Ft,a7 as Zr,U as Qr,x as Xr,a8 as ei,a9 as ti}from"./agent-icon-BsnTrJjJ.js";import{i as Bn}from"./Sun-BEdjuN6j.js";import{S as Ot}from"./sandbox-start-errors-BK_aDCyt.js";import{G as ni}from"./pair-B42JzU0G.js";import{i as q9}from"./Check-ocmT1xhM.js";import{i as He,c as si,d as ri,e as ii,b as oi}from"./Tool01-COB6rywP.js";import{e as fe,C as me,b as K9,a as f0,c as pe,d as qe,f as ai}from"./command-C3KYPhtk.js";import{a as F0,b as O0,P as D0}from"./popover-Dc6K6r1C.js";import{s as li,a as ci,b as Li}from"./utils-SncAWk77.js";import{u as Vn}from"./chat-context-H6Zpj-Vd.js";import{n as Un}from"./LinkExternal01-JGUyp91x.js";import{i as Kn}from"./X-B5gw2EHv.js";import{S as Gn}from"./scroll-area-DaAnCQrg.js";import{T as _9,a as C9,c as E9}from"./tooltip-ChaEDFwp.js";import{a as Hn,d as di}from"./use-virtual-mcp-DYsZ_S7V.js";import{M as qn}from"./monaco-editor-CWYBB1Jc.js";import{C as ui}from"./calendar-B83nuFOI.js";import{I as M9}from"./input-DmhYaSfN.js";import{T as fi}from"./textarea-Pm894Vb7.js";import{L as $9}from"./label-4VvccInH.js";import{i as mi}from"./XClose-B5O4OZct.js";import{s as y0}from"./Plus-ojokEQ8x.js";import{E as n0,M as pi,m as hi,g as $0,u as gi,s as xi,a as yi,b as vi}from"./index-BYhU0OAw.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-_7jCWmPs.js";import{a as bi}from"./Palette-CPW0a6wF.js";import{T as R9,R as ji,u as Ye,C as We,a as Je,b as p0,s as Ze,K as Qe,P as Xe,D as et,c as tt,S as nt,v as st,d as rt,e as X0}from"./rich-text-link-control-Do2n6JIO.js";import{S as it}from"./switch-_-H0ZzQ0.js";import{a as ve}from"./Copy01-Djl84HjT.js";import{s as Si}from"./Eye-CNk4ml55.js";import{s as s0}from"./Trash01-DTUu7NOU.js";import{t as z0}from"./ChevronUp-BEGO8LAp.js";import{c as N0}from"./UserSquare-C8brDzYe.js";import{i as l0}from"./Share07-uQomrLCR.js";import{C as ki}from"./combobox-BoqrgDcx.js";import{s as Yn}from"./XCircle-seVaST6e.js";import{A as Ni,a as Ti,b as _i,c as Ci,g as Ei,d as wi,e as Ai,f as Mi}from"./alert-dialog-BhgAEu2i.js";import{d as ot,h as at,c as lt,e as Wn,b as ct,D as Lt}from"./dialog-BTnr_AVV.js";import{b as dt}from"./sandbox-url-D3mC8qhT.js";import{i as Oe}from"./ZoomOut-qVaUZ9ca.js";import{i as B0}from"./Upload01-Dty36l1w.js";import{i as Jn}from"./AlertCircle-iVRTcaBg.js";import{i as Zn}from"./DotsVertical-GP-H6-nS.js";import{a as h0}from"./Image01-zHW5odO5.js";import{S as Ri}from"./search-input-Cq2H58ks.js";import{T as Pi,a as Ii,c as Fi,b as Oi}from"./tabs-CbBMI_3w.js";import{u as Di}from"./use-debounced-value-BAx8VCR0.js";import{u as $i,a as Qn}from"./use-file-configs-DOTdJIrl.js";import{u as zi,a as ut,i as Xn,e as Bi,b as Dt,f as Vi}from"./asset-utils-D3ZIfM_Z.js";import{m as es}from"./match-site-slug-config-D3fUJ6vX.js";import{a as Ui,T as Ki}from"./toggle-group-BCKZnr8W.js";import{f as Gi,p as Hi,s as qi,t as Yi,a as $t}from"./decofile-api-CAHmkQlU.js";import{o as Wi}from"./sandbox-git-api-B1R0585s.js";const ft=vr("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"}]]);function mt(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function zt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function Ji(t,e){return dt(t,e)}function Zi(t,e){return dt(t,"preview-fetch",{path:e})}function Qi(t){return Ji(t,"preview-invoke")}function ts(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 Xi(){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&&ts(n))return n}return null}function ns(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Xi();return n&&ts(n)?new URL(e,n).toString():Zi(t,e)}function e1(t){return ns(t,"/.decofile")}function t1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Bt(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ss(t,e){const n=dt(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=t1(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(li(o.content))}}catch{return{kind:"unavailable"}}}async function n1(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 pt(t){return Hn(t)?.metadata?.runtime?.path??null}function rs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function C4(t,e){const n=B.c(16),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=t?rs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=pt(t?.virtualMcpId),c=Ke(t?.virtualMcpId).runtime==="cms",L=En(),d=Z9.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(i1),j=v?.ok?zt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return Gi(L,t);const p=()=>ss(t,mt(l,".deco/blocks.gen.json"));if(a){const v=await fetch(e1(t),{cache:"no-store"}).catch(r1);if(v?.ok){const x=zt(await v.text());if(x)return x}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Bt({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.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=Bt({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 Dn(5e3,1e3,t,2,0)}function r1(){return null}function i1(){return null}const o1=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function a1(t){return t.includes("matchers")||t.includes("Match")}function is(t,e){const n=t.__resolveType;return typeof n!="string"||!n||o1.has(n)?!1:e?Cr(e,n):a1(n)}function l1(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!D9(s)||Pn(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;is(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:is(i,n)}function c1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function os(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 as(t,e,n){const s=os(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function ht(t,e,n){if(t)return v0(t,e,n)?as(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 Rn(i,o)}return n(t)}function L1(t,e,n){return{__resolveType:t,...e,name:n}}function d1(t){return{__resolveType:t}}function u1(t,e,n){const s=os(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function f1(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 Z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function E4(t,e){const n=B.c(21),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=pt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=Ke(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}):Z9.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=g1,v=()=>d?n1(t):ss(t,mt(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:m1({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const x of j){if(x.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await h(x.baseUrl);if(b)return b}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:h1},n[15]=u,n[16]=f,n[17]=y,n[18]=m,n[19]=p,n[20]=g):g=n[20],Q0(g)}function h1(t){return Dn(5e3,1e3,t,2,0)}async function g1(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(x1);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function x1(){return null}function Ee(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 w4(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=j9(i);if(!o&&i!==""&&D9(i)&&i in e)return{index:s,resolveType:i,label:Ee(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===Q9||l===X9){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=j9(m);let g=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(g=h)}if(m===Q9||m===X9){const v=(Array.isArray(g.variants)?g.variants:[])[0]?.value?.__resolveType,j=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label:Ee(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?k9(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:Ee(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(c)||`Section ${s+1}`,isLazy:o}})}function ls(t){const e=t.__resolveType??"";return j9(e)?t.section??t:t}function ee(t){const i=(j9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==I0?null:i?.value??null}function A4(t){const e=ls(t);return{__resolveType:X9,variants:[{value:e,rule:{__resolveType:I0}}]}}function M4(t){const e=t.__resolveType??"";if(!e)return null;if(j9(e))return t.section??null;const n=ee(t);return n?j9(n.__resolveType??"")?n:{__resolveType:Pt,section:ls(n)}:{__resolveType:Pt,section:t}}function G0(t){const e=t.__resolveType??"";if(!e)return null;if(j9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function R4(t){const e=ee(t);if(e)return G0(e);if(j9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=ee(s);return G0(i||s)}return G0(t)}function P4(t){return ee(t)}const y1=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function gt(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:y1.includes(e)||e.includes("always")}function v1(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>gt(s.rule));return n!==-1?n:e.length-1}function I4(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=v1(n),o=s[i]?.value;if(!o)return null;const a=structuredClone(o);return e.isLazy?{...t,section:a}:a}function cs(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function F4(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 O4(t,e){const n=t.__resolveType??"";if(!n)return null;if(j9(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 b1(t,e){const n=t.__resolveType??"";return j9(n)?{...t,section:e}:e}function j1(t,e,n){return e.isLazy?{...t,section:n}:n}function D4(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:b1(o,n)},{...t,variants:s}}function $4(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function z4(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function B4(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 V4(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function De(t){return{rule:u0(),value:structuredClone(t)}}function Ls(t,e){return{...e,__resolveType:X9,variants:t}}function U4(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function S1(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=cs(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 k1(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=S1(t,e);if(!s)return null;const i=Ls([De(s),De(s)]);return e.isLazy?{...t,section:i}:i}function K4(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=cs(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const l=Ls([...o,De(a)],i);return{section:j1(t,e,l),newVariantIndex:o.length}}const s=k1(t,e);return s?{section:s,newVariantIndex:1}:null}function be(t){return t.anyOfRefs?.some(e=>e.resolveType!==Q9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function N1(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===X9&&Array.isArray(e.variants)}function te(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===Q9}function T1(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 _1(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 G4(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 H4(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 C1(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:Q9,variants:t}}function q4(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 Y4(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function W4(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function J4(t,e){if(e.length===0)return L0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!gt(s))return L0(e,t);if(Array.isArray(n?.value))return n.value}return L0(e,t)}function E1(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 Z4(t,e,n){if(!e)return 0;let s=0;return E1(t,e,i=>{i.__resolveType===e&&v0(i,t,n)&&s++}),s}const w1={provision:0,cloning:1,install:2,dev:3};function A1(t){return w1[t.step]}const Vt=48,ds=28,us=3,M1=(()=>{const t=[];let e=0;for(let n=0;n<Vt;n++)n===ds?t.push(null):(t.push(e/(Vt-1)*us),e++);return t})();function R1(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function P1(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Er[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",I1=Array.from({length:35},()=>Math.random()*1.8),F1=Array.from({length:35},()=>Math.random()<.4);function O1(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=m9();let o;e[0]!==n?(o=A1(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=P1(n,s,R1(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(ni,{}),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(D1,{}),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(z1,{}),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(B1,{}),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(U1,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==h||e[23]!==j||e[24]!==y||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,j]}),e[22]=h,e[23]=j,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{aN as vr,c as B,o as En,m as Q0,K as Z9,b as m9,j as r,l as H,B as h9,T as wn,aG as br,e as An,r as F,t as A9,aO as jr,aP as a0,n as Sr,Z as T9,aM as Mn,F as ce,am as Le,G as N9,H as G9,I as H9,aQ as de,aL as Fe,aK as kr,h as x0,aR as Nr,E as Tr,aS as _r}from"./index-B9KXIX84.js";import{u as Ke}from"./use-session-runtime-QJbktQ89.js";import{u as Ge,g as Rn,A as D9,B as Pn,r as F9,D as Cr,b as j9,P as Q9,E as X9,N as I0,F as k9,L as Pt,H as u0,C as Er,I as In,l as Fn,J as It,K as wr,M as Ar,O as On,Q as _0,k as Mr,T as Rr,v as Pr,U as Ir,V as Fr,W as Or}from"./claim-phase-copy-CPp-hZ5n.js";import{e as Dn}from"./backoff-8mStPHYB.js";import{X as Dr,Y as $r,Z as zr,_ as Br,$ as Vr,a0 as Ur,a1 as Kr,a2 as Gr,Q as Hr,a3 as $n,a4 as ue,o as qr,S as M0,O as Yr,m as Wr,a5 as Jr,z as zn,a6 as Ft,a7 as Zr,U as Qr,x as Xr,a8 as ei,a9 as ti}from"./agent-icon-CUHwvCug.js";import{i as Bn}from"./Sun-CPPd8cP7.js";import{S as Ot}from"./sandbox-start-errors-BK_aDCyt.js";import{G as ni}from"./pair-B2IVuWLB.js";import{i as q9}from"./Check-D3UEH1bb.js";import{i as He,c as si,d as ri,e as ii,b as oi}from"./Tool01-CeJWUTx4.js";import{e as fe,C as me,b as K9,a as f0,c as pe,d as qe,f as ai}from"./command-Das6UcyK.js";import{a as F0,b as O0,P as D0}from"./popover-Wvqr_2yR.js";import{s as li,a as ci,b as Li}from"./utils-D_eBTbjc.js";import{u as Vn}from"./chat-context-DfIPg4kF.js";import{n as Un}from"./LinkExternal01-BekDuv1R.js";import{i as Kn}from"./X-rZfX9y0d.js";import{S as Gn}from"./scroll-area-DiE2RXUS.js";import{T as _9,a as C9,c as E9}from"./tooltip-C3KYJcjJ.js";import{a as Hn,d as di}from"./use-virtual-mcp-CijpHWeY.js";import{M as qn}from"./monaco-editor-sTKHVHs7.js";import{C as ui}from"./calendar-BDrJCpVb.js";import{I as M9}from"./input-ALPFLjGK.js";import{T as fi}from"./textarea-BGjs-_ya.js";import{L as $9}from"./label-CeYXCWIS.js";import{i as mi}from"./XClose-Drgfi-MO.js";import{s as y0}from"./Plus-Y-KvMcUC.js";import{E as n0,M as pi,m as hi,g as $0,u as gi,s as xi,a as yi,b as vi}from"./index-3wu9QSuh.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-BmpMhuXU.js";import{a as bi}from"./Palette-BagjpLZN.js";import{T as R9,R as ji,u as Ye,C as We,a as Je,b as p0,s as Ze,K as Qe,P as Xe,D as et,c as tt,S as nt,v as st,d as rt,e as X0}from"./rich-text-link-control-DLGtga8b.js";import{S as it}from"./switch-CGGsZGg2.js";import{a as ve}from"./Copy01-1VyfDicU.js";import{s as Si}from"./Eye-DnZDEgOn.js";import{s as s0}from"./Trash01-C6BZglNY.js";import{t as z0}from"./ChevronUp-DkDOUc-8.js";import{c as N0}from"./UserSquare-D9izLEMu.js";import{i as l0}from"./Share07-DwVANqGN.js";import{C as ki}from"./combobox-Ct9LBV7p.js";import{s as Yn}from"./XCircle-fYjVO-4e.js";import{A as Ni,a as Ti,b as _i,c as Ci,g as Ei,d as wi,e as Ai,f as Mi}from"./alert-dialog-D0EwpcN4.js";import{d as ot,h as at,c as lt,e as Wn,b as ct,D as Lt}from"./dialog-O_WsqGxK.js";import{b as dt}from"./sandbox-url-D3mC8qhT.js";import{i as Oe}from"./ZoomOut-CmJNnQZa.js";import{i as B0}from"./Upload01-DBDdtdRw.js";import{i as Jn}from"./AlertCircle-BXd3wmhE.js";import{i as Zn}from"./DotsVertical-BVvaV8Wy.js";import{a as h0}from"./Image01-ZQL1hr5Q.js";import{S as Ri}from"./search-input-MsiE4xnC.js";import{T as Pi,a as Ii,c as Fi,b as Oi}from"./tabs-B2X-mfaO.js";import{u as Di}from"./use-debounced-value-CkL-oBw0.js";import{u as $i,a as Qn}from"./use-file-configs-y5ZRqVAK.js";import{u as zi,a as ut,i as Xn,e as Bi,b as Dt,f as Vi}from"./asset-utils-tQ6o2CDF.js";import{m as es}from"./match-site-slug-config-D3fUJ6vX.js";import{a as Ui,T as Ki}from"./toggle-group-C66gu9FY.js";import{f as Gi,p as Hi,s as qi,t as Yi,a as $t}from"./decofile-api-DvonsyVe.js";import{o as Wi}from"./sandbox-git-api-B1R0585s.js";const ft=vr("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"}]]);function mt(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function zt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function Ji(t,e){return dt(t,e)}function Zi(t,e){return dt(t,"preview-fetch",{path:e})}function Qi(t){return Ji(t,"preview-invoke")}function ts(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 Xi(){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&&ts(n))return n}return null}function ns(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Xi();return n&&ts(n)?new URL(e,n).toString():Zi(t,e)}function e1(t){return ns(t,"/.decofile")}function t1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Bt(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ss(t,e){const n=dt(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=t1(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(li(o.content))}}catch{return{kind:"unavailable"}}}async function n1(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 pt(t){return Hn(t)?.metadata?.runtime?.path??null}function rs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function C4(t,e){const n=B.c(16),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=t?rs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=pt(t?.virtualMcpId),c=Ke(t?.virtualMcpId).runtime==="cms",L=En(),d=Z9.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(i1),j=v?.ok?zt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return Gi(L,t);const p=()=>ss(t,mt(l,".deco/blocks.gen.json"));if(a){const v=await fetch(e1(t),{cache:"no-store"}).catch(r1);if(v?.ok){const x=zt(await v.text());if(x)return x}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Bt({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.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=Bt({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 Dn(5e3,1e3,t,2,0)}function r1(){return null}function i1(){return null}const o1=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function a1(t){return t.includes("matchers")||t.includes("Match")}function is(t,e){const n=t.__resolveType;return typeof n!="string"||!n||o1.has(n)?!1:e?Cr(e,n):a1(n)}function l1(t,e){const n=[];for(const[s,i]of Object.entries(e)){if(s.includes("/")||!D9(s)||Pn(s)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;is(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:is(i,n)}function c1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function os(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 as(t,e,n){const s=os(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function ht(t,e,n){if(t)return v0(t,e,n)?as(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 Rn(i,o)}return n(t)}function L1(t,e,n){return{__resolveType:t,...e,name:n}}function d1(t){return{__resolveType:t}}function u1(t,e,n){const s=os(t,e,n);return s?{resolveType:s.resolveType,formValue:s.data}:{resolveType:"",formValue:{}}}function f1(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 Z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function E4(t,e){const n=B.c(21),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=pt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=Ke(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}):Z9.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=g1,v=()=>d?n1(t):ss(t,mt(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:m1({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const x of j){if(x.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await h(x.baseUrl);if(b)return b}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:h1},n[15]=u,n[16]=f,n[17]=y,n[18]=m,n[19]=p,n[20]=g):g=n[20],Q0(g)}function h1(t){return Dn(5e3,1e3,t,2,0)}async function g1(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(x1);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function x1(){return null}function Ee(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 w4(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=j9(i);if(!o&&i!==""&&D9(i)&&i in e)return{index:s,resolveType:i,label:Ee(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===Q9||l===X9){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=j9(m);let g=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(g=h)}if(m===Q9||m===X9){const v=(Array.isArray(g.variants)?g.variants:[])[0]?.value?.__resolveType,j=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label:Ee(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const u=d[0]?.value?.__resolveType,f=u?k9(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:Ee(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(c)||`Section ${s+1}`,isLazy:o}})}function ls(t){const e=t.__resolveType??"";return j9(e)?t.section??t:t}function ee(t){const i=(j9(t.__resolveType??"")?t.section:t)?.variants?.[0];return i?.rule?.__resolveType!==I0?null:i?.value??null}function A4(t){const e=ls(t);return{__resolveType:X9,variants:[{value:e,rule:{__resolveType:I0}}]}}function M4(t){const e=t.__resolveType??"";if(!e)return null;if(j9(e))return t.section??null;const n=ee(t);return n?j9(n.__resolveType??"")?n:{__resolveType:Pt,section:ls(n)}:{__resolveType:Pt,section:t}}function G0(t){const e=t.__resolveType??"";if(!e)return null;if(j9(e)){const n=t.section,s=n?.__resolveType??"";return!s||!n?null:{resolveType:s,data:n}}return{resolveType:e,data:t}}function R4(t){const e=ee(t);if(e)return G0(e);if(j9(t.__resolveType??"")){const s=t.section;if(!s)return null;const i=ee(s);return G0(i||s)}return G0(t)}function P4(t){return ee(t)}const y1=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function gt(t){if(!t)return!1;const e=t.__resolveType??"";return e===""?Object.keys(t).length===0:y1.includes(e)||e.includes("always")}function v1(t){const e=t.variants??[];if(e.length===0)return-1;const n=e.findIndex(s=>gt(s.rule));return n!==-1?n:e.length-1}function I4(t,e,n){const s=n.variants??[];if(s.length===0)return null;const i=v1(n),o=s[i]?.value;if(!o)return null;const a=structuredClone(o);return e.isLazy?{...t,section:a}:a}function cs(t,e){return e.isMultivariate?e.isLazy?t.section??null:t:null}function F4(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 O4(t,e){const n=t.__resolveType??"";if(!n)return null;if(j9(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 b1(t,e){const n=t.__resolveType??"";return j9(n)?{...t,section:e}:e}function j1(t,e,n){return e.isLazy?{...t,section:n}:n}function D4(t,e,n){const s=[...t.variants??[]],i=s[e];if(!i)return t;const o=i.value??{};return s[e]={...i,value:b1(o,n)},{...t,variants:s}}function $4(t,e,n){const s=[...t.variants??[]];return s[e]?(s[e]={...s[e],rule:n},{...t,variants:s}):t}function z4(t,e){const n=[...t.variants??[]],s=n[e];return s?(n.splice(e+1,0,structuredClone(s)),{...t,variants:n}):t}function B4(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 V4(t,e){const n=[...t.variants??[]];return n.length<=1?null:(n.splice(e,1),{...t,variants:n})}function De(t){return{rule:u0(),value:structuredClone(t)}}function Ls(t,e){return{...e,__resolveType:X9,variants:t}}function U4(t){return t.isHidden!==!0&&t.isSavedBlock!==!0}function S1(t,e){if(e.isHidden)return null;if(e.isMultivariate){const s=cs(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 k1(t,e,n){if(e.isMultivariate||e.isHidden)return null;const s=S1(t,e);if(!s)return null;const i=Ls([De(s),De(s)]);return e.isLazy?{...t,section:i}:i}function K4(t,e,n){if(e.isHidden||e.isSavedBlock)return null;if(e.isMultivariate){const i=cs(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const l=Ls([...o,De(a)],i);return{section:j1(t,e,l),newVariantIndex:o.length}}const s=k1(t,e);return s?{section:s,newVariantIndex:1}:null}function be(t){return t.anyOfRefs?.some(e=>e.resolveType!==Q9?!1:e.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function N1(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t;return e.__resolveType===X9&&Array.isArray(e.variants)}function te(t){return!t||typeof t!="object"||Array.isArray(t)?!1:t.__resolveType===Q9}function T1(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 _1(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 G4(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 H4(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 C1(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:Q9,variants:t}}function q4(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 Y4(t){const e=t.variants;return Array.isArray(e)?e.length-1:1}function W4(t,e){const n=t[e];if(!n)return null;const s=[...t];return s.splice(e+1,0,structuredClone(n)),s}function J4(t,e){if(e.length===0)return L0([],t);if(e.length===1){const n=e[0],s=n?.rule;if(!gt(s))return L0(e,t);if(Array.isArray(n?.value))return n.value}return L0(e,t)}function E1(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 Z4(t,e,n){if(!e)return 0;let s=0;return E1(t,e,i=>{i.__resolveType===e&&v0(i,t,n)&&s++}),s}const w1={provision:0,cloning:1,install:2,dev:3};function A1(t){return w1[t.step]}const Vt=48,ds=28,us=3,M1=(()=>{const t=[];let e=0;for(let n=0;n<Vt;n++)n===ds?t.push(null):(t.push(e/(Vt-1)*us),e++);return t})();function R1(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function P1(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Er[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",I1=Array.from({length:35},()=>Math.random()*1.8),F1=Array.from({length:35},()=>Math.random()<.4);function O1(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=m9();let o;e[0]!==n?(o=A1(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=P1(n,s,R1(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(ni,{}),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(D1,{}),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(z1,{}),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(B1,{}),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(U1,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==h||e[23]!==j||e[24]!==y||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,j]}),e[22]=h,e[23]=j,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 G,r as o,dr as Ce,dp as De,c as Pe,e as Ae,dl as ee,a0 as Ee,j as ye,K as M,z as _e}from"./index-
|
|
1
|
+
import{o as G,r as o,dr as Ce,dp as De,c as Pe,e as Ae,dl as ee,a0 as Ee,j as ye,K as M,z as _e}from"./index-B9KXIX84.js";import{u as Le}from"./use-mcp-client-DgXYHdq4.js";import{u as Ue}from"./use-session-runtime-QJbktQ89.js";import{u as Re,b as Oe}from"./chat-context-DfIPg4kF.js";import{u as Be}from"./hooks-D5xL0VD-.js";import{e as ge}from"./backoff-8mStPHYB.js";import{b as Ne}from"./sandbox-url-D3mC8qhT.js";import{a as Fe}from"./use-virtual-mcp-CijpHWeY.js";import{d as $e}from"./sandbox-start-errors-BK_aDCyt.js";function Ke(e,t){const n=G(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=G(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=G();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 Ge{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 Xe=1e3,je=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}=Ee(),a=G(),V=Re()?.taskId??null,[X,E]=o.useState(null),[te,b]=o.useState({phase:"idle"}),[ne,U]=o.useState({state:"running"}),[re,y]=o.useState({kind:"unknown"}),[j,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 Ge,v.current.set(d,S)),S};o.useEffect(()=>{if(E(null),b({phase:"idle"}),U({state:"running"}),y({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);E(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),E(null),b({phase:"idle"}),U({state:"running"}),y({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;y(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(je,Xe,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:X,lifecycle:te,status:ne,branch:re,notFound:j,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 ye.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.hasActiveGithubRepo&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function wt(e){return e.threadLoaded&&e.isOwner&&e.hasActiveGithubRepo&&!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,hasActiveGithubRepo:u,vmEntry:c,threadId:a,children:V}){const{org:X}=Ee(),{setCurrentTaskBranch:E}=Oe(),te=Be(),b=de(),ne=G(),U=Ue(t),re=U.resolved?U.runtime:null,y=Re()?.taskId??null,j=Le({connectionId:_e,orgId:X.id,orgSlug:X.slug}),h=Ye(j,{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,hasActiveGithubRepo: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,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] auto-start failed:",r)}})},[g,T,n,t,y,k,E,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,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] self-heal failed:",r)}})},[A,m,t,n,y,k,E,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,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,setSeededPreviewUrl:R})},onError:r=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",r)}})},[p,I,t,n,y,k,E,R]);const B=()=>{if(!e||!t)return;const x=z(t,n,y);k(x,{onSuccess:r=>{Z({data:r,virtualMcpId:t,branch:n,setCurrentTaskBranch:E,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 j.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 ye.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{ap as n,bN as t,aq as e,bO as m,bP as p,bQ as d,bR as h}from"./index-
|
|
1
|
+
import{ap as n,bN as t,aq as e,bO as m,bP as p,bQ as d,bR as h}from"./index-B9KXIX84.js";const i=500;n({title:e().max(i),url:e().max(i),icon:e().max(i)});const s=n({keyId:e().max(i),modelId:e().max(i),title:e().max(i).optional()}).nullable();m(["fast","smart","thinking","image","web_search","deep_research"]);m(["fast","smart","thinking"]);const y=n({tiers:n({fast:s,smart:s,thinking:s,image:s,web_search:s,deep_research:s})});n({tiers:n({fast:s.optional(),smart:s.optional(),thinking:s.optional()})});const b=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;n({host:e().min(1).max(i).regex(b).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).max(i).describe("Vault secret id holding the PAT used to authenticate this host.")});n({ids:p(e().max(i)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const v=n({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 commerce (reports) 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 report 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)."),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."),cms_auto_fresh_branch:t().optional().describe("When a user opens the CMS on a branch whose last commit is older than the staleness window (2 days), move the session to a freshly minted branch cut from the default branch. The stale branch is left intact on GitHub. Off by default.")}),u=new Set(["reviewer_enabled","cheap_reviewer_model"]);function x(a,r){const c=a?.[r];return u.has(r)?c!==!1:c===!0}function w(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 O,y as S,w as a,b,x as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,bp as T,bw as ce,j as b,br as _,bI as ae,dm as O,bs as C,bB as P,bu as ie,c as F,l as $}from"./index-CJvGo7M-.js";import{e as de}from"./select-_7jCWmPs.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(B,{...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(B,{"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(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=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 V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,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,bp as T,bw as ce,j as b,br as _,bI as ae,dm as O,bs as C,bB as P,bu as ie,c as F,l as $}from"./index-B9KXIX84.js";import{e as de}from"./select-BmpMhuXU.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(B,{...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(B,{"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(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=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 V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,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-B9KXIX84.js";import{i as v}from"./SearchMd-CzE1IXtk.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-B9KXIX84.js";import{i as I}from"./SearchMd-CzE1IXtk.js";import{i as M}from"./X-rZfX9y0d.js";import{I as O}from"./icon-button-bkQbZIJx.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-B9KXIX84.js";import{s as j}from"./User01-DhER-7M5.js";import{t as E}from"./Users01-CGh_okmA.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 v,b as C,j as s,n as w,e$ as F,E as L,r as y,aR as O,Z as R,B as z,R as E,t as _}from"./index-
|
|
1
|
+
import{c as v,b as C,j as s,n as w,e$ as F,E as L,r as y,aR as O,Z as R,B as z,R as E,t as _}from"./index-B9KXIX84.js";import{i as B}from"./AlertCircle-BXd3wmhE.js";import{s as A}from"./Plus-Y-KvMcUC.js";import{s as I}from"./User01-DhER-7M5.js";import{t as q}from"./Users01-CGh_okmA.js";import{D as V,b as H,c as Z,d as G,h as J,e as K}from"./dialog-O_WsqGxK.js";import{I as P}from"./input-ALPFLjGK.js";import{L as D}from"./label-CeYXCWIS.js";import{S as M,b as Q,a as U,d as W,c as $}from"./select-BmpMhuXU.js";import{T as X}from"./textarea-BGjs-_ya.js";import{u as Y,a as ee}from"./use-secrets-CQXQ7e5K.js";import{R as te}from"./require-capability-B5vhBt9u.js";import"./X-rZfX9y0d.js";import"./index-CcCENa4K.js";import"./Check-D3UEH1bb.js";import"./ChevronUp-DkDOUc-8.js";import"./access-gate-DrC617P9.js";import"./capability-load-error-CkdeSGfJ.js";function se(t){const e=v.c(6),{error:r}=t,n=C();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(B,{size:16}),e[0]=c):c=e[0];let i;e[1]!==r.message||e[2]!==n?(i=n("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=n,e[3]=i):i=e[3];let l;return e[4]!==i?(l=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:i})]}),e[4]=i,e[5]=l):l=e[5],l}function re(t){const e=v.c(8),{scope:r}=t,n=C(),c=r==="user"?I:q;let i;e[0]!==r||e[1]!==n?(i=n(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=n,e[2]=i):i=e[2];const l=i;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let o;return e[5]!==l||e[6]!==a?(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:[a,l]}),e[5]=l,e[6]=a,e[7]=o):o=e[7],o}function T(t){const e=v.c(20),{secret:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=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]=n):n=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 i;e[3]!==r.scope?(i=s.jsx(re,{scope:r.scope}),e[3]=r.scope,e[4]=i):i=e[4];let l;e[5]!==c||e[6]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,i]}),e[5]=c,e[6]=i,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=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]=a):a=e[9];let o;e[10]!==l||e[11]!==a?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[n,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=o):o=e[12];let m;e[13]!==r.createdAt?(m=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=m):m=e[14];let d;e[15]!==m?(d=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:m}),e[15]=m,e[16]=d):d=e[16];let u;return e[17]!==o||e[18]!==d?(u=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,d]}),e[17]=o,e[18]=d,e[19]=u):u=e[19],u}function ne(t){const e=v.c(15),{action:r}=t,n=C();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 i;e[1]!==n?(i=n("settings.secrets.emptyTitle"),e[1]=n,e[2]=i):i=e[2];let l;e[3]!==i?(l=s.jsx("p",{className:"font-medium text-sm",children:i}),e[3]=i,e[4]=l):l=e[4];let a;e[5]!==n?(a=n("settings.secrets.emptyDescription"),e[5]=n,e[6]=a):a=e[6];let o;e[7]!==a?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:a}),e[7]=a,e[8]=o):o=e[8];let m;e[9]!==l||e[10]!==o?(m=s.jsxs("div",{children:[l,o]}),e[9]=l,e[10]=o,e[11]=m):m=e[11];let d;return e[12]!==r||e[13]!==m?(d=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,m,r]}),e[12]=r,e[13]=m,e[14]=d):d=e[14],d}function k({open:t,onOpenChange:e}){const r=C(),[n,c]=y.useState("organization"),[i,l]=y.useState(""),[a,o]=y.useState(""),[m,d]=y.useState(""),u=ee();function b(){c("organization"),l(""),o(""),d("")}function g(){b(),e(!1)}async function S(x){if(x.preventDefault(),!(!i.trim()||!a))try{await u.mutateAsync({scope:n,name:i.trim(),value:a,description:m.trim()||void 0}),_.success(r("settings.secrets.secretCreated",{name:i.trim()})),g()}catch(j){_.error(j instanceof Error?j.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(V,{open:t,onOpenChange:x=>{x?e(x):g()},children:s.jsxs(H,{className:"sm:max-w-lg",children:[s.jsxs(Z,{children:[s.jsx(G,{children:r("settings.secrets.newSecretTitle")}),s.jsx(J,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(M,{value:n,onValueChange:x=>c(x),children:[s.jsx(Q,{id:"secret-scope",children:s.jsx(U,{})}),s.jsxs(W,{children:[s.jsx($,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx($,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(P,{id:"secret-name",value:i,onChange:x=>l(x.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(D,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(P,{id:"secret-value",type:"password",value:a,onChange:x=>o(x.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(D,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(X,{id:"secret-description",value:m,onChange:x=>d(x.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(K,{children:[s.jsx(z,{type:"button",variant:"outline",onClick:g,disabled:u.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(z,{type:"submit",disabled:u.isPending||!i.trim()||!a,children:u.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=v.c(36),e=R(),r=C(),n=Y(),[c,i]=y.useState(!1);let l,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>i(!0),a=s.jsx(A,{size:14}),t[0]=l,t[1]=a):(l=t[0],a=t[1]);let o;t[2]!==r?(o=r("settings.secrets.newSecret"),t[2]=r,t[3]=o):o=t[3];let m;t[4]!==o?(m=s.jsx(w.Actions,{children:s.jsxs(z,{size:"sm",onClick:l,children:[a,o]})}),t[4]=o,t[5]=m):m=t[5];const d=m;if(n.length===0){const j=e&&d,N=!e&&d;let h;t[6]!==N?(h=s.jsx(ne,{action:N}),t[6]=N,t[7]=h):h=t[7];let f;t[8]!==c?(f=s.jsx(k,{open:c,onOpenChange:i}),t[8]=c,t[9]=f):f=t[9];let p;return t[10]!==j||t[11]!==h||t[12]!==f?(p=s.jsxs(s.Fragment,{children:[j,h,f]}),t[10]=j,t[11]=h,t[12]=f,t[13]=p):p=t[13],p}let u,b,g;if(t[14]!==d||t[15]!==n||t[16]!==r){const j=n.filter(oe),N=n.filter(ae),h=n.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let f;t[20]!==n.length||t[21]!==r||t[22]!==h?(f=r(h,{count:n.length}),t[20]=n.length,t[21]=r,t[22]=h,t[23]=f):f=t[23];let p;t[24]!==f?(p=s.jsx("p",{className:"text-sm text-muted-foreground",children:f}),t[24]=f,t[25]=p):p=t[25],t[26]!==d||t[27]!==p?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[p,d]}),t[26]=d,t[27]=p,t[28]=u):u=t[28],b=j.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:r("settings.secrets.sectionOrganization")}),s.jsx("div",{children:j.map(le)})]}):null,g=N.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:r("settings.secrets.sectionPrivate")}),s.jsx("div",{children:N.map(ce)})]}):null,t[14]=d,t[15]=n,t[16]=r,t[17]=u,t[18]=b,t[19]=g}else u=t[17],b=t[18],g=t[19];let S;t[29]!==c?(S=s.jsx(k,{open:c,onOpenChange:i}),t[29]=c,t[30]=S):S=t[30];let x;return t[31]!==u||t[32]!==b||t[33]!==g||t[34]!==S?(x=s.jsxs(s.Fragment,{children:[u,b,g,S]}),t[31]=u,t[32]=b,t[33]=g,t[34]=S,t[35]=x):x=t[35],x}function ce(t){return s.jsx(T,{secret:t},t.id)}function le(t){return s.jsx(T,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function de(){const t=v.c(7),e=C();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==r?(n=s.jsx(w.Title,{children:r}),t[2]=r,t[3]=n):n=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(L,{fallback:me,children:s.jsx(y.Suspense,{fallback:s.jsx(O,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),t[4]=c):c=t[4];let i;return t[5]!==n?(i=s.jsx(w,{children:s.jsx(w.Content,{children:s.jsx(w.Container,{children:s.jsxs(F,{children:[n,c]})})})}),t[5]=n,t[6]=i):i=t[6],i}function me(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function $e(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(de,{})}),t[0]=e):e=t[0],e}export{$e as default};
|