decocms 4.390.0 → 4.390.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/dist/client/assets/{AlertCircle-DIleECAO.js → AlertCircle-DwWykm2P.js} +1 -1
- package/dist/client/assets/{AreaChart-Dcvvxh7Y.js → AreaChart-BzeWK3V3.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BQdhx2Mc.js → ArrowLeft-BxHsRCwk.js} +1 -1
- package/dist/client/assets/{ArrowRight-C0GCvnPO.js → ArrowRight-BnzvbEuF.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMtV26Mz.js → ArrowUp-DDqi7ql9.js} +1 -1
- package/dist/client/assets/{CartesianChart-fEiWB8Dp.js → CartesianChart-BW5Dxx5r.js} +1 -1
- package/dist/client/assets/{Check-DRrZD4Sq.js → Check-CIMlt5yD.js} +1 -1
- package/dist/client/assets/{CheckCircle-Bo8c4lL0.js → CheckCircle-C5TWg2ER.js} +1 -1
- package/dist/client/assets/{ChevronUp-BN0TeZdP.js → ChevronUp-B_Tqb1cB.js} +1 -1
- package/dist/client/assets/{Copy01-BT6z7ZQQ.js → Copy01-CRXzkM5j.js} +1 -1
- package/dist/client/assets/{CreditCard01-DVV_ZsCa.js → CreditCard01-B54BFhvt.js} +1 -1
- package/dist/client/assets/{DotsVertical-DfMw3lkW.js → DotsVertical-2QzdH24M.js} +1 -1
- package/dist/client/assets/{Download01-BmFUB2xE.js → Download01-QITXwMAm.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DMVbXYkP.js → ErrorBarContext-BoQTNKI4.js} +1 -1
- package/dist/client/assets/{Eye-DXw_s1Cm.js → Eye-BotGq2TH.js} +1 -1
- package/dist/client/assets/{Globe04-ugZLbuIE.js → Globe04-BeMI3xYx.js} +1 -1
- package/dist/client/assets/{Image01-DDFibjE3.js → Image01-BIjfDO9e.js} +1 -1
- package/dist/client/assets/{Key01-BPjkSgKb.js → Key01-CoxIIqnZ.js} +1 -1
- package/dist/client/assets/{LayoutLeft-B94Wve5b.js → LayoutLeft-BLwohUDY.js} +1 -1
- package/dist/client/assets/{Line-C_3dc8Fz.js → Line-Bev08MzU.js} +1 -1
- package/dist/client/assets/{Link01-O7jcIMgL.js → Link01-C2AlN_jr.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B1unTZnq.js → LinkExternal01-BNnz43uc.js} +1 -1
- package/dist/client/assets/{Monitor01-a2J2JKd5.js → Monitor01-B7evlQ46.js} +1 -1
- package/dist/client/assets/{Package-CdoCtMvg.js → Package-CgrOJpT4.js} +1 -1
- package/dist/client/assets/{Palette-CycMgJho.js → Palette-4mYdSWAU.js} +1 -1
- package/dist/client/assets/{Plus-D1cZZn8U.js → Plus-CFsPNuUG.js} +1 -1
- package/dist/client/assets/{SearchLg-O_9EykPH.js → SearchLg-CLn096pb.js} +1 -1
- package/dist/client/assets/{SearchMd-DrIRniNc.js → SearchMd-CNBp7i5k.js} +1 -1
- package/dist/client/assets/{Sector-T4EO3BRZ.js → Sector-CRk9OjuQ.js} +1 -1
- package/dist/client/assets/{Share07-CveFLZ1M.js → Share07-CzEa2ZUn.js} +1 -1
- package/dist/client/assets/{Stars01-Did1svMN.js → Stars01-CiIy_JRL.js} +1 -1
- package/dist/client/assets/{Sun-32REGP_l.js → Sun-CRWzc28u.js} +1 -1
- package/dist/client/assets/{Tool01-CfuRDLuO.js → Tool01-CPAauxlm.js} +1 -1
- package/dist/client/assets/{Trash01-UuilHlOp.js → Trash01-DzFKBZ4_.js} +1 -1
- package/dist/client/assets/{Upload01-DWdtMUnK.js → Upload01-BjY312vE.js} +1 -1
- package/dist/client/assets/{User01-BH-9UAFf.js → User01-e--cfvyW.js} +1 -1
- package/dist/client/assets/{UserSquare-DNofESoQ.js → UserSquare-CMKBpHrm.js} +1 -1
- package/dist/client/assets/{Users01-88zgeg9Z.js → Users01-Bt5MQr6c.js} +1 -1
- package/dist/client/assets/{X-B9qowSuy.js → X-C6e-ZD-F.js} +1 -1
- package/dist/client/assets/{XCircle-BaLe-WrJ.js → XCircle-DaMrjmtF.js} +1 -1
- package/dist/client/assets/{XClose-CZ8QMEvw.js → XClose-DfPPOpke.js} +1 -1
- package/dist/client/assets/{Zap-B_Jp5KVu.js → Zap-DQfbSE9r.js} +1 -1
- package/dist/client/assets/{ZoomOut-B1ZE8qec.js → ZoomOut-muefhyRW.js} +1 -1
- package/dist/client/assets/{access-gate-DscR-bsQ.js → access-gate-DjhZZFTH.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-QXnYSLA7.js → add-connection-dialog-B6ySQC9L.js} +1 -1
- package/dist/client/assets/{agent-analytics-Dzc2ZAZd.js → agent-analytics-_V2ybJMM.js} +1 -1
- package/dist/client/assets/agent-app-CaxmXR0Y.js +1 -0
- package/dist/client/assets/{agent-assets-B6nLETiH.js → agent-assets-Cl6V2BUq.js} +1 -1
- package/dist/client/assets/{agent-automation-Cn5vrcNs.js → agent-automation-Cd9ldGZF.js} +1 -1
- package/dist/client/assets/{agent-automations-CgWEH9q3.js → agent-automations-Cd2bXmtw.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BLb45__q.js → agent-connect-sources-CH8W4ikL.js} +1 -1
- package/dist/client/assets/agent-deck-CxQUzUvL.js +1 -0
- package/dist/client/assets/{agent-e2e-TmVf9IYe.js → agent-e2e-C8xQz8kE.js} +1 -1
- package/dist/client/assets/{agent-experiments-Liv-zbXM.js → agent-experiments-BaDznidL.js} +1 -1
- package/dist/client/assets/agent-file-DWiPuqDF.js +1 -0
- package/dist/client/assets/{agent-git-C2HJviFO.js → agent-git-B6nV3n7p.js} +1 -1
- package/dist/client/assets/{agent-hosting-Bg_TtJeb.js → agent-hosting-Bxgf-qDl.js} +1 -1
- package/dist/client/assets/{agent-icon-BXDfHtVM.js → agent-icon-C-OHbV1P.js} +1 -1
- package/dist/client/assets/agent-library-file-BnC3pzU6.js +1 -0
- package/dist/client/assets/{agent-monitor-qJHIu9n-.js → agent-monitor-SfIXraw0.js} +1 -1
- package/dist/client/assets/{agent-overview-Dd76Hmnc.js → agent-overview-BdRmwgvz.js} +1 -1
- package/dist/client/assets/agent-settings-BxwaMgVN.js +1 -0
- package/dist/client/assets/{agent-site-editor-9Y3R_xpF.js → agent-site-editor-BSedgMdy.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-HNXnBPVl.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DpMCNbyj.js → agent-site-editor-content-DUSwA5mr.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-CmLpHkzD.js → agent-site-editor-preview-CgaOisth.js} +3 -3
- package/dist/client/assets/agent-view-DXPmjNG2.js +1 -0
- package/dist/client/assets/{agent-view-guard-B4f7H4-v.js → agent-view-guard-DAgPuihh.js} +1 -1
- package/dist/client/assets/{agents-list-Cr-Kq4ri.js → agents-list-Dr-eHln2.js} +1 -1
- package/dist/client/assets/{ai-providers-w2Ei6Gov.js → ai-providers-BTlMwG0s.js} +1 -1
- package/dist/client/assets/{alert-CAeIKgsg.js → alert-BP_TqHFS.js} +1 -1
- package/dist/client/assets/{alert-dialog-BQ7YDqVG.js → alert-dialog-CE6-qfYI.js} +1 -1
- package/dist/client/assets/{api-keys-BvXXeUsu.js → api-keys-BrVknMOR.js} +1 -1
- package/dist/client/assets/api-keys-CYfq8A01.js +1 -0
- package/dist/client/assets/app-editor-CZJzPUDG.js +1 -0
- package/dist/client/assets/{asset-utils-C9X-Z7A6.js → asset-utils--fSXMiUb.js} +1 -1
- package/dist/client/assets/{auth-BnlPL6eu.js → auth-DfljSIUn.js} +1 -1
- package/dist/client/assets/{auth-catchall-C-aCQhS4.js → auth-catchall-DL3n6tWd.js} +1 -1
- package/dist/client/assets/{auth-entry-D9wUFcoV.js → auth-entry-DtemlB94.js} +1 -1
- package/dist/client/assets/{auth-split-layout-WiP6i-LQ.js → auth-split-layout-R8qghrmR.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-iiuO4guj.js → authenticate-and-persist-oauth-CP_aSuOD.js} +1 -1
- package/dist/client/assets/{automation-list-row-C-XwD7WY.js → automation-list-row-BjuzAOLi.js} +1 -1
- package/dist/client/assets/{automation-runs-2c2OE9Nu.js → automation-runs-B4MSMkoU.js} +1 -1
- package/dist/client/assets/{automations-EdtP3Z09.js → automations-BRPfC3Hi.js} +1 -1
- package/dist/client/assets/{autosend-Cg2v6B4Z.js → autosend-Pn3F93vv.js} +1 -1
- package/dist/client/assets/{avatar-BQNxscJa.js → avatar-BVbgteb1.js} +1 -1
- package/dist/client/assets/{badge-BwVbjdvl.js → badge-EIQpQVRn.js} +1 -1
- package/dist/client/assets/{block-document-DCky20wU.js → block-document-DWMXEnBq.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-B2yuR6jc.js → blocks-preview-workspace-context-C3pxbXd5.js} +1 -1
- package/dist/client/assets/{breadcrumb-NkW-PGNe.js → breadcrumb-FukF3cuV.js} +1 -1
- package/dist/client/assets/{buckets-_QRhoG0L.js → buckets-DLTQJ-nQ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Bl7SRn0M.js → build-improve-prompt-doc-CwBh48l-.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-COyTAhey.js → bulk-category-panel-CpoSqKjj.js} +1 -1
- package/dist/client/assets/{calendar-CB1zm3q3.js → calendar-484mv_eH.js} +1 -1
- package/dist/client/assets/{capability-load-error-a5Vi87rX.js → capability-load-error-DC5qcvXt.js} +1 -1
- package/dist/client/assets/{category-editor-DuIz6r3J.js → category-editor-BWiNXamp.js} +1 -1
- package/dist/client/assets/{chart-C00MAPcg.js → chart-BE6_obNX.js} +1 -1
- package/dist/client/assets/{chat-context-BCloL478.js → chat-context-CZ2fVZl0.js} +1 -1
- package/dist/client/assets/{chat-draft-D4RLSZai.js → chat-draft-B6Eyb9KA.js} +1 -1
- package/dist/client/assets/{checkbox-C6TuRBhm.js → checkbox-D5QL2tG-.js} +1 -1
- package/dist/client/assets/{choose-editor-DoxQsH9F.js → choose-editor-wLQ5qd3q.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BrfTfUkY.js → claim-phase-copy-B9wFFvmn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CbhZdN7_.js → cli-auth-success-eEPN0tLk.js} +1 -1
- package/dist/client/assets/{client-icons-C_XzNrl0.js → client-icons-0qZqVK8i.js} +1 -1
- package/dist/client/assets/{collapsible-fDF6O7Qh.js → collapsible-D355qBFc.js} +1 -1
- package/dist/client/assets/{collection-detail-DFwFjmQm.js → collection-detail-Bec-Rnrh.js} +1 -1
- package/dist/client/assets/{collection-display-button-UjSGWnur.js → collection-display-button-yBAYUqF6.js} +1 -1
- package/dist/client/assets/{collection-search-BBLgZGH_.js → collection-search-DFGY9Lq-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DuiXZpDA.js → collection-table-wrapper-FyH2uMbl.js} +1 -1
- package/dist/client/assets/{collection-tabs-CDbg0gxV.js → collection-tabs-Dkl0nFAs.js} +1 -1
- package/dist/client/assets/{combobox-DrG06POx.js → combobox-C9pGHQ9b.js} +1 -1
- package/dist/client/assets/{command-DbXMp-zX.js → command-DViMFfxS.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DjhCGdN7.js → companion-mcps-section-jOBcgYSh.js} +1 -1
- package/dist/client/assets/{connect-CS03cs0S.js → connect-BALsP4xC.js} +1 -1
- package/dist/client/assets/{connect-layout-DrxsZ_Kp.js → connect-layout-BV5eKO3Y.js} +1 -1
- package/dist/client/assets/{connection-Bh_KNjcC.js → connection-CGpSLVLf.js} +1 -1
- package/dist/client/assets/{connection-card-D4W0euzL.js → connection-card-C9c8DSn-.js} +1 -1
- package/dist/client/assets/{connection-detail-DQLpxW1H.js → connection-detail-DsCeBYdy.js} +1 -1
- package/dist/client/assets/{connection-form-helpers--Om_HgOd.js → connection-form-helpers-u8BxCGD1.js} +1 -1
- package/dist/client/assets/{connections-CRYBNaFW.js → connections-BaX2-QEf.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BNFSXECP.js → create-organization-dialog-DfGL5Z4-.js} +1 -1
- package/dist/client/assets/{decofile-api-DjA_ep2W.js → decofile-api-CV6EtIBm.js} +1 -1
- package/dist/client/assets/{decopilot-CFOirYff.js → decopilot-Bgi7iXFS.js} +1 -1
- package/dist/client/assets/{dialog-CoPZcZvZ.js → dialog-znzgLO8O.js} +1 -1
- package/dist/client/assets/{discover-Dp0lLVuP.js → discover-B1ZpG41M.js} +1 -1
- package/dist/client/assets/{domain-settings-Dk6tS1Ge.js → domain-settings-Do_ZTlSJ.js} +1 -1
- package/dist/client/assets/{download-app-dialog-ASxiCVBK.js → download-app-dialog-Dd5Khbkx.js} +1 -1
- package/dist/client/assets/{drawer-yj-3Wmq7.js → drawer-Ck_sFIKg.js} +1 -1
- package/dist/client/assets/{editor-HOIPs2p0.js → editor-Brj3yYUa.js} +1 -1
- package/dist/client/assets/{empty-state-BLD4BbT5.js → empty-state-ClnfT3ej.js} +1 -1
- package/dist/client/assets/{empty-state-B-udIfuU.js → empty-state-JJyJZqug.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BzpEGbr4.js → extract-connection-data-BuMo8Edu.js} +1 -1
- package/dist/client/assets/{feature-gate-BakylUBw.js → feature-gate-CnAd9PWC.js} +1 -1
- package/dist/client/assets/{feature-paywall-CXCuIyTC.js → feature-paywall-DCGBT6jd.js} +1 -1
- package/dist/client/assets/{file-explorer-25MWkjJR.js → file-explorer-BPDgoRI3.js} +1 -1
- package/dist/client/assets/{file-preview-Bm_PoMVX.js → file-preview-B0IIQxDJ.js} +1 -1
- package/dist/client/assets/{file-share-button-C6jErFPW.js → file-share-button-7GMKsF9H.js} +1 -1
- package/dist/client/assets/{file-type-icon-CbcYnV8z.js → file-type-icon-C1TR6S4u.js} +1 -1
- package/dist/client/assets/{folder-icon-CRvZWqsn.js → folder-icon-B3AlFzYr.js} +1 -1
- package/dist/client/assets/{form-BDgKH2cq.js → form-Dxo4jHp1.js} +1 -1
- package/dist/client/assets/{gateway-client-WQKWr_oj.js → gateway-client-DHtmHdRH.js} +1 -1
- package/dist/client/assets/{general-C2eNiDBv.js → general-DloomKus.js} +1 -1
- package/dist/client/assets/{github-icon-DGq1LUIO.js → github-icon-BY1ri41Y.js} +1 -1
- package/dist/client/assets/{home-C4n_K9Tw.js → home-BBdJXnlp.js} +1 -1
- package/dist/client/assets/{hooks-D6Fhyr-1.js → hooks-BD9P2LBy.js} +1 -1
- package/dist/client/assets/{hooks-BEvLe8iO.js → hooks-BvGcIVbq.js} +1 -1
- package/dist/client/assets/{icon-button-ByKq6hZV.js → icon-button-UJlB2UIC.js} +1 -1
- package/dist/client/assets/{index-BU8SPACW.js → index-61PlkY-8.js} +1 -1
- package/dist/client/assets/{index-C6QhwzBW.js → index-BPZ2pPw5.js} +1 -1
- package/dist/client/assets/{index-BrgfjVMm.js → index-Bx8XYjKw.js} +2 -2
- package/dist/client/assets/{index-FY1Y-vNV.js → index-CIuaOLf3.js} +1 -1
- package/dist/client/assets/{index-CQlW-Wjq.js → index-CQMIJcbV.js} +1 -1
- package/dist/client/assets/{index-CBwF-MmM.js → index-CSdZkCS_.js} +1 -1
- package/dist/client/assets/{index--lqKO6Xr.js → index-CdLgqUvd.js} +1 -1
- package/dist/client/assets/{index-k01YNVxK.js → index-D37QtvDV.js} +1 -1
- package/dist/client/assets/{index-BlyOa4OJ.js → index-DOSwlnIg.js} +1 -1
- package/dist/client/assets/{index-BVKEwYqd.js → index-DT4vNrln.js} +1 -1
- package/dist/client/assets/{index-plsXo8Nf.js → index-DkKv3dJZ.js} +1 -1
- package/dist/client/assets/{index-DAOhRawo.js → index-Dzurn4XW.js} +1 -1
- package/dist/client/assets/{index-DHKUv2tb.js → index-LT5r88hS.js} +1 -1
- package/dist/client/assets/{index-bKUiQGmM.js → index-MKwgxY-y.js} +1 -1
- package/dist/client/assets/{index-redirect-B-719u6E.js → index-redirect-jOsT0S4q.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CxlBrBav.js → infiniteQueryObserver-BHs7m-b1.js} +1 -1
- package/dist/client/assets/{infra-billing-CjRSOrP0.js → infra-billing-j2pFfhoG.js} +1 -1
- package/dist/client/assets/{input-B7CzAD4A.js → input-ByBaigp1.js} +1 -1
- package/dist/client/assets/{input-BBx6QcTy.js → input-CsbLEaKr.js} +1 -1
- package/dist/client/assets/{input-DoDcn4Oa.js → input-XJ6-XDYn.js} +1 -1
- package/dist/client/assets/{integration-icon-EpYn4ywU.js → integration-icon-Dj3_ZUI5.js} +1 -1
- package/dist/client/assets/{label-oKE-JKCp.js → label-Bfcl00-r.js} +1 -1
- package/dist/client/assets/{last-preview-page-Cc4Ym6RB.js → last-preview-page-DT7XkHIb.js} +1 -1
- package/dist/client/assets/{layout-CuwYS5iG.js → layout-Bp6EKPVM.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-W4CULte7.js → legacy-agents-deep-Ccrm-WfS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DvOkkI-9.js → legacy-main-redirect-C-ORmalg.js} +1 -1
- package/dist/client/assets/{library-Du7aP9ab.js → library-Dg3ztoE5.js} +1 -1
- package/dist/client/assets/{login-C6o8E5Gx.js → login-CO7oN3xq.js} +1 -1
- package/dist/client/assets/{markdown-CMmcIMuG.js → markdown-BBCGXuXk.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CSgBYpWQ.js → mcp-app-renderer-2ni-kAIU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Ck4K80JQ.js → mcp-oauth-54pacpvj.js} +1 -1
- package/dist/client/assets/{members-BXYPHyZl.js → members-DFyncble.js} +1 -1
- package/dist/client/assets/{message-templates-CofSWui8.js → message-templates-6hzSkVcQ.js} +1 -1
- package/dist/client/assets/{mini-report-page-DA_m7gUn.js → mini-report-page-UFhPeA6F.js} +1 -1
- package/dist/client/assets/{mock-board-CIhU-pLr.js → mock-board-4XJR6SXj.js} +3 -3
- package/dist/client/assets/{monaco-editor-COmvGX00.js → monaco-editor-B_9rPDeH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-zGcKxoaO.js → monitoring-stats-row-B69PwDDO.js} +1 -1
- package/dist/client/assets/{multi-select-Cjbu02fk.js → multi-select-Cr2-iyPs.js} +1 -1
- package/dist/client/assets/{mustache-AusOr2G7.js → mustache-LAM8BFVo.js} +1 -1
- package/dist/client/assets/{oauth-callback-YbJ6w3tz.js → oauth-callback-DDJTdRjr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bh5e0eL5.js → oauth-callback-ai-provider-DakBPtYp.js} +1 -1
- package/dist/client/assets/{onboarding-DeIWJUIk.js → onboarding-bZFM3Y1v.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CSpV1PYs.js → optimistic-project-sidebar-views-y_kSq1XS.js} +1 -1
- package/dist/client/assets/{org-file-open-context-DtguTW2M.js → org-file-open-context-WxpSKuMN.js} +1 -1
- package/dist/client/assets/{organization-choice-3GQF-2Bb.js → organization-choice-BHm512MQ.js} +1 -1
- package/dist/client/assets/{orgs-C_tHFmcZ.js → orgs-Dy1bnCKZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-C3J0sk3-.js → page-seo-form-C5zPxyRV.js} +1 -1
- package/dist/client/assets/{pair-B_E-hb3r.js → pair-3eMEB5_o.js} +1 -1
- package/dist/client/assets/{plan-ladder-Bszl-ys6.js → plan-ladder-DMCXB0Tc.js} +1 -1
- package/dist/client/assets/{popover-Cwq-F3vl.js → popover-BmdAlr6C.js} +1 -1
- package/dist/client/assets/{post-calendar-DQYHE3Nh.js → post-calendar-Byo5XKzn.js} +1 -1
- package/dist/client/assets/{post-editor-DnkSlyHR.js → post-editor-CpkzqTtC.js} +1 -1
- package/dist/client/assets/{preview-content-BoYJe_7h.js → preview-content-BgaoU85v.js} +1 -1
- package/dist/client/assets/{preview-dialog-z6N6ouNl.js → preview-dialog-CSswm99D.js} +1 -1
- package/dist/client/assets/{primitives-t91zENNC.js → primitives-CcTyQgnl.js} +1 -1
- package/dist/client/assets/{profile-eImNDdTy.js → profile-BRdqUzxo.js} +1 -1
- package/dist/client/assets/{project-app-view-BYJkyb_c.js → project-app-view-BCyNlkLp.js} +1 -1
- package/dist/client/assets/{project-feed-B-I0fPIu.js → project-feed-E7BPxsNa.js} +1 -1
- package/dist/client/assets/{project-icon-C2OHTgfV.js → project-icon-ShbsTYHh.js} +1 -1
- package/dist/client/assets/project-reports-LGn9QTTt.js +1 -0
- package/dist/client/assets/project-tasks-2CZw4zCa.js +1 -0
- package/dist/client/assets/{prompts-CWvC6THk.js → prompts-BzkT8b53.js} +1 -1
- package/dist/client/assets/record-editor-pCkw2VXy.js +1 -0
- package/dist/client/assets/{redirect-editor-BF7iTO_7.js → redirect-editor-C052l2kn.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DvV1L9mk.js → reports-onboarding-drizHs3x.js} +1 -1
- package/dist/client/assets/{reports-tab-VlkWO_eI.js → reports-tab-B4makjUF.js} +2 -2
- package/dist/client/assets/{reports-OiTIgU_P.js → reports-uxTGhIH2.js} +1 -1
- package/dist/client/assets/reports-zjOP_pyb.js +1 -0
- package/dist/client/assets/{repositories-Ds-D0ZV_.js → repositories-vp7XOP-c.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Bb-cM2jZ.js → repository-import-picker-Ccxz6mh-.js} +1 -1
- package/dist/client/assets/{repository-picker-Bnx8U6PV.js → repository-picker-DP5XG6JA.js} +1 -1
- package/dist/client/assets/{require-capability-DW8CuaB_.js → require-capability-VC6wDNWG.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BskWaDcO.js → required-auth-layout-nwklnOpP.js} +1 -1
- package/dist/client/assets/{reset-password-CfSOYcZN.js → reset-password-Djk76uJH.js} +1 -1
- package/dist/client/assets/{resizable-u5ZPWzxP.js → resizable-D0KUBG-M.js} +1 -1
- package/dist/client/assets/{review-settings-B1Xgo_eg.js → review-settings-BowbnFFi.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CDOF3pGO.js → rich-text-link-control-DySw6rgm.js} +1 -1
- package/dist/client/assets/{roles-BNtiAGZJ.js → roles-TJh8PrjV.js} +1 -1
- package/dist/client/assets/{route-yVxRc46E.js → route-BEndut48.js} +1 -1
- package/dist/client/assets/{route-BwMVq_-V.js → route-BLPxf-Ef.js} +1 -1
- package/dist/client/assets/{route-DF9rTtAl.js → route-DiAES2mt.js} +1 -1
- package/dist/client/assets/{route-page-header-BUANMI6P.js → route-page-header-DZx_dDTL.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-BnvgMObN.js → runnable-block-editor-BXkHcJ5p.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DjYBSKDf.js → sandbox-lifecycle-context-C91i-cvf.js} +1 -1
- package/dist/client/assets/{schema--qI-6j1O.js → schema-Cx2tPE7u.js} +1 -1
- package/dist/client/assets/{scroll-area-DuY7fxFW.js → scroll-area-Sl2AbWUG.js} +1 -1
- package/dist/client/assets/{search-input-CBCVX3eV.js → search-input-BwlRTTJa.js} +1 -1
- package/dist/client/assets/{search-toggle-Cw4tE4HV.js → search-toggle-CVvPydCA.js} +1 -1
- package/dist/client/assets/{secret-picker-CUPNAGhK.js → secret-picker-ixQ9FjTF.js} +1 -1
- package/dist/client/assets/{secrets-Bf7-cFVq.js → secrets-Bs0Xa35E.js} +1 -1
- package/dist/client/assets/{sections-editor-Dqex_kiD.js → sections-editor-tI0AHd2W.js} +1 -1
- package/dist/client/assets/{select-BAj8GDmF.js → select-ChVrs-cn.js} +1 -1
- package/dist/client/assets/{select-model-BKT2mXow.js → select-model-B65Z2Xr-.js} +1 -1
- package/dist/client/assets/{seo-editor--WzhnEwD.js → seo-editor-CJsE6c_J.js} +1 -1
- package/dist/client/assets/{separator-DVzSnA7b.js → separator-D-xZ5aMa.js} +1 -1
- package/dist/client/assets/{settings-tab-RuDovaRa.js → settings-tab-B8ZoaJvc.js} +1 -1
- package/dist/client/assets/{sheet-SUCO-1Zs.js → sheet-D9WVJraO.js} +1 -1
- package/dist/client/assets/{shell-layout-DQ3b0lWe.js → shell-layout-DfO4RPGJ.js} +1 -1
- package/dist/client/assets/{sidebar-DVrzkoEH.js → sidebar-CE2h3Ke4.js} +1 -1
- package/dist/client/assets/{skill-preview-CFM4rZU7.js → skill-preview-CNs6ghDT.js} +1 -1
- package/dist/client/assets/{skills-Cm46QsJv.js → skills-D1i4VPF1.js} +1 -1
- package/dist/client/assets/{sso-8oyCIxbf.js → sso-D6HQ1hvX.js} +1 -1
- package/dist/client/assets/{switch-D2AGp3q0.js → switch-BWQ9Ofa0.js} +1 -1
- package/dist/client/assets/{synced-repos-CD_WTV4s.js → synced-repos-C6ewxs72.js} +1 -1
- package/dist/client/assets/{table-WeehGDhl.js → table-DJODw91M.js} +1 -1
- package/dist/client/assets/{tabs-5x2EsLv4.js → tabs-Dd3q_T1f.js} +1 -1
- package/dist/client/assets/{task-board-C50ImE2y.js → task-board-Q8PclXG7.js} +1 -1
- package/dist/client/assets/{task-route-CkyJIDOx.js → task-route-DtC5ivHn.js} +1 -1
- package/dist/client/assets/{task-status-UHslF33v.js → task-status-BP1gIoy0.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DSSLMdFb.js → taskboard-analytics-C1Q5NmME.js} +1 -1
- package/dist/client/assets/tasks-BkBncMVO.js +1 -0
- package/dist/client/assets/{tasks-DHYecYax.js → tasks-Do8_O_eF.js} +1 -1
- package/dist/client/assets/{textarea-BnU6QmoE.js → textarea-C3Jno_U3.js} +1 -1
- package/dist/client/assets/{thread-button-B3xx0VtU.js → thread-button-CSHoKcTO.js} +1 -1
- package/dist/client/assets/{thread-intent-C6XSh_D3.js → thread-intent-0Xgy72Y6.js} +1 -1
- package/dist/client/assets/{thread-route-BmzRXaVx.js → thread-route-BTHv47Ca.js} +1 -1
- package/dist/client/assets/{thread-route-CJrLA-ee.js → thread-route-DA9Wf_L4.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D0E1gQpO.js → thread-sheet-body-Cqx3whem.js} +1 -1
- package/dist/client/assets/{toggle-group-JO1JgH5a.js → toggle-group-Ch372Q2O.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DXNOeW_z.js → toolbar-icon-button-CmVGRV_6.js} +1 -1
- package/dist/client/assets/{tooltip-WzWLbyZq.js → tooltip-BWegP45A.js} +1 -1
- package/dist/client/assets/{track-D7IKOGBR.js → track-5Fm9TT9c.js} +1 -1
- package/dist/client/assets/{types-RaQT_IEX.js → types-CWBJOj41.js} +1 -1
- package/dist/client/assets/{usage-stats-BaxngK_D.js → usage-stats-Iv4CttPs.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dq0Ep_3l.js → use-ai-providers-DtPClA6h.js} +1 -1
- package/dist/client/assets/{use-automations-COX0fcgz.js → use-automations-CpE_JO46.js} +1 -1
- package/dist/client/assets/{use-autosave-BERNHhO9.js → use-autosave-DZG7bhhz.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D_BJZumX.js → use-connect-companion-BhPgt2YX.js} +1 -1
- package/dist/client/assets/{use-connection-B11x8Y5V.js → use-connection-t0OvVnHZ.js} +1 -1
- package/dist/client/assets/{use-copy-DwTK-qVh.js → use-copy-BJ4ZFkjo.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BRTcRrPf.js → use-create-virtual-mcp-CH8aEBtj.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-nt6p03GG.js → use-date-fns-locale-D70SwwRs.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BpSPbeao.js → use-debounced-autosave-3QO3cnae.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CjsHq8Vl.js → use-debounced-value-CUTXzn4X.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DXfzxvoO.js → use-deco-credits-CY4wVrR9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-64DqQFG6.js → use-decopilot-events-Bf3flbL0.js} +1 -1
- package/dist/client/assets/{use-delete-connection-8S4pYk4a.js → use-delete-connection-C17VIv7X.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CCJWqCfM.js → use-deployment-admin-BIliD52s.js} +1 -1
- package/dist/client/assets/{use-entitlements-g7KOEkrp.js → use-entitlements-DSB-xK0b.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DCCeUHpe.js → use-fast-preview-draft-url-D4Y6IvE4.js} +1 -1
- package/dist/client/assets/{use-file-configs-BD0IRTDw.js → use-file-configs-CXnDXTXE.js} +1 -1
- package/dist/client/assets/{use-in-settings-GUedr1XF.js → use-in-settings-CWLjj7oX.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-vxoiRb7T.js → use-infinite-scroll-B7fl81-a.js} +1 -1
- package/dist/client/assets/{use-join-requests-BuoeDzuz.js → use-join-requests-B-Qf_8X3.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BQ8rOQGV.js → use-main-panel-tabs-Be6SURLZ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-8HzRdmmW.js → use-mcp-auth-status-BJZj-qHq.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Db5zI8Z3.js → use-mcp-client-D4zsXsEF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CqP9Y1Vz.js → use-mcp-prompts-BHDD-wgg.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BdsJuvQS.js → use-mcp-tools-CMQAzLHQ.js} +1 -1
- package/dist/client/assets/{use-members-xI_s8ZPd.js → use-members-DK5WPA_T.js} +1 -1
- package/dist/client/assets/{use-mobile-COTn4qeO.js → use-mobile-DXijbExe.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Hc1nbYTr.js → use-navigate-to-agent-DlMrZCh3.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BkxX6uwx.js → use-open-billing-url-DpKNWl5M.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BiZspqgA.js → use-org-auth-client-DcVWEXGK.js} +1 -1
- package/dist/client/assets/{use-org-fs-Di8X4LFM.js → use-org-fs-CESMOj3S.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-RBKt533u.js → use-org-repo-syncs-Blma8TBU.js} +1 -1
- package/dist/client/assets/{use-org-sso-BotkztEO.js → use-org-sso-KpSHnZxg.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CTBz_OMd.js → use-organization-roles-lcaW2YxK.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DeroNipc.js → use-organization-settings-CLwoatoy.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CHXWRsa2.js → use-panel-navigate-0hFM_LWC.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-B42AMjjw.js → use-project-native-view-presence-CodvRRUv.js} +1 -1
- package/dist/client/assets/{use-project-scope-Cboqds94.js → use-project-scope-DPhZIS0b.js} +1 -1
- package/dist/client/assets/{use-releases-yOjVhqYk.js → use-releases-B54_LIa5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-ChAtElJm.js → use-reports-diagnostic-Du2-nJX7.js} +1 -1
- package/dist/client/assets/{use-route-default-main-kOms9vXt.js → use-route-default-main-BhK4SDCy.js} +1 -1
- package/dist/client/assets/{use-secrets-C5liL9o_.js → use-secrets-DbWvlDQT.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BA6oFsyg.js → use-section-preview-base-CMy6yNiX.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DCYLvb6V.js → use-session-runtime-GBLRytSG.js} +1 -1
- package/dist/client/assets/{use-tags-CgoYqsxT.js → use-tags-BY2GCex1.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-D9300BWY.js → use-task-board-analytics-DYLNDMRR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BYwpD1kd.js → use-task-metadata-DgBVDKtC.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BpKQ7Zo1.js → use-thread-outputs-DB3b9QtI.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dtuvom2e.js → use-virtual-mcp-Cp1Lv8jT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cf0pcLI9.js +1 -0
- package/dist/client/assets/{useQueries-BnlFxjw5.js → useQueries-CSwrF8AW.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B7PRelga.js +1 -0
- package/dist/client/assets/{users-Du6MU5ru.js → users-LmtpxQEv.js} +1 -1
- package/dist/client/assets/{utils-DsrrQ-SY.js → utils-DxQKsL0y.js} +1 -1
- package/dist/client/assets/{variant-calendar-DAhQEdUF.js → variant-calendar-CT0JB2a-.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DA3Efdln.js → variant-matcher-override-Dh7eJvdV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-1hCOtltg.js → view-mode-toggle-B97Uyxwd.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BTvprhOr.js → virtual-mcp-CKxE0-no.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Ce-w0zKY.js +0 -1
- package/dist/client/assets/agent-deck-DLPNS7GA.js +0 -1
- package/dist/client/assets/agent-file-D6Zh386o.js +0 -1
- package/dist/client/assets/agent-library-file-CH6771FT.js +0 -1
- package/dist/client/assets/agent-settings-CRbKxksO.js +0 -1
- package/dist/client/assets/agent-site-editor-code-_YVH4S1b.js +0 -2
- package/dist/client/assets/agent-view-Do6pchh4.js +0 -1
- package/dist/client/assets/api-keys-DHEfnLkb.js +0 -1
- package/dist/client/assets/app-editor-BXR-njir.js +0 -1
- package/dist/client/assets/project-reports-Dy4BB8vp.js +0 -1
- package/dist/client/assets/project-tasks-B-UjiYHE.js +0 -1
- package/dist/client/assets/record-editor-Cs7FEG1a.js +0 -1
- package/dist/client/assets/reports-D-OGcMpS.js +0 -1
- package/dist/client/assets/tasks-DjWeZ1IA.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D679Q3IA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-zdGPgEpV.js +0 -1
package/dist/client/assets/{runnable-block-editor-BnvgMObN.js → runnable-block-editor-BXkHcJ5p.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as yr,c as V,o as En,m as Q0,K as Z9,b as m9,j as r,l as q,B as h9,T as wn,aG as vr,e as An,r as O,t as A9,aO as br,aP as a0,n as jr,Z as E9,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 Sr,h as x0,aR as kr,E as Nr,aS as Tr}from"./index-BrgfjVMm.js";import{u as Ke}from"./use-session-runtime-DCYLvb6V.js";import{u as Ge,g as Rn,A as D9,B as Pn,r as F9,D as _r,b as j9,P as Q9,E as X9,N as I0,F as k9,L as Pt,H as u0,C as Cr,I as In,l as Fn,J as It,K as Er,M as wr,O as On,Q as _0,k as Ar,T as Mr,v as Rr,U as Pr,V as Ir,W as Fr}from"./claim-phase-copy-BrfTfUkY.js";import{e as Dn}from"./backoff-8mStPHYB.js";import{X as Or,Y as Dr,Z as $r,_ as zr,$ as Br,a0 as Vr,a1 as Ur,a2 as Kr,Q as Gr,a3 as $n,a4 as ue,o as Hr,S as M0,O as qr,m as Yr,a5 as Wr,z as zn,a6 as Ft,a7 as Jr,U as Zr,x as Qr,a8 as Xr,a9 as ei}from"./agent-icon-BXDfHtVM.js";import{i as Bn}from"./Sun-32REGP_l.js";import{S as Ot}from"./sandbox-start-errors-BK_aDCyt.js";import{G as ti}from"./pair-B_E-hb3r.js";import{i as q9}from"./Check-DRrZD4Sq.js";import{i as He,c as ni,d as si,e as ri,b as ii}from"./Tool01-CfuRDLuO.js";import{e as fe,C as me,b as K9,a as f0,c as pe,d as qe,f as oi}from"./command-DbXMp-zX.js";import{a as F0,b as O0,P as D0}from"./popover-Cwq-F3vl.js";import{s as ai,a as li,b as ci}from"./utils-DsrrQ-SY.js";import{u as Vn}from"./chat-context-BCloL478.js";import{n as Un}from"./LinkExternal01-B1unTZnq.js";import{i as Kn}from"./X-B9qowSuy.js";import{S as Gn}from"./scroll-area-DuY7fxFW.js";import{T as T9,a as _9,c as C9}from"./tooltip-WzWLbyZq.js";import{a as Hn,d as Li}from"./use-virtual-mcp-Dtuvom2e.js";import{M as qn}from"./monaco-editor-COmvGX00.js";import{C as di}from"./calendar-CB1zm3q3.js";import{I as M9}from"./input-B7CzAD4A.js";import{T as ui}from"./textarea-BnU6QmoE.js";import{L as $9}from"./label-oKE-JKCp.js";import{i as fi}from"./XClose-CZ8QMEvw.js";import{s as y0}from"./Plus-D1cZZn8U.js";import{E as n0,M as mi,m as pi,g as $0,u as hi,s as gi,a as xi,b as yi}from"./index-BU8SPACW.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-BAj8GDmF.js";import{a as vi}from"./Palette-CycMgJho.js";import{T as R9,R as bi,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-CDOF3pGO.js";import{S as it}from"./switch-D2AGp3q0.js";import{a as ve}from"./Copy01-BT6z7ZQQ.js";import{s as ji}from"./Eye-DXw_s1Cm.js";import{s as s0}from"./Trash01-UuilHlOp.js";import{t as z0}from"./ChevronUp-BN0TeZdP.js";import{c as N0}from"./UserSquare-DNofESoQ.js";import{i as l0}from"./Share07-CveFLZ1M.js";import{C as Si}from"./combobox-DrG06POx.js";import{s as ki}from"./XCircle-BaLe-WrJ.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-BQ7YDqVG.js";import{d as ot,h as at,c as lt,e as Yn,b as ct,D as Lt}from"./dialog-CoPZcZvZ.js";import{b as dt}from"./sandbox-url-D3mC8qhT.js";import{i as Oe}from"./ZoomOut-B1ZE8qec.js";import{i as B0}from"./Upload01-DWdtMUnK.js";import{i as Wn}from"./AlertCircle-DIleECAO.js";import{i as Jn}from"./DotsVertical-DfMw3lkW.js";import{a as h0}from"./Image01-DDFibjE3.js";import{S as Ri}from"./search-input-CBCVX3eV.js";import{T as Pi,a as Ii,c as Fi,b as Oi}from"./tabs-5x2EsLv4.js";import{u as Di}from"./use-debounced-value-CjsHq8Vl.js";import{u as $i,a as Zn}from"./use-file-configs-BD0IRTDw.js";import{u as zi,a as ut,i as Qn,e as Bi,b as Dt,f as Vi}from"./asset-utils-C9X-Z7A6.js";import{m as Xn}from"./match-site-slug-config-D3fUJ6vX.js";import{a as Ui,T as Ki}from"./toggle-group-JO1JgH5a.js";import{f as Gi,p as Hi,s as qi,t as Yi,a as $t}from"./decofile-api-DjA_ep2W.js";import{o as Wi}from"./sandbox-git-api-B1R0585s.js";const ft=yr("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 es(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&&es(n))return n}return null}function ts(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Xi();return n&&es(n)?new URL(e,n).toString():Zi(t,e)}function e1(t){return ts(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 ns(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(ai(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 ss(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function C4(t,e){const n=V.c(16),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=t?ss({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,c=pt(t?.virtualMcpId),l=Ke(t?.virtualMcpId).runtime==="cms",L=En(),d=Z9.decofile(o);let u;n[0]!==l||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==c||n[5]!==t||n[6]!==L?(u=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(i1),b=v?.ok?zt(await v.text()):null;if(b)return b;const j=new Error("decofile unavailable (local tunnel unreachable)");throw j.status=502,j}if(l)return Gi(L,t);const p=()=>ns(t,mt(c,".deco/blocks.gen.json"));if(a){const v=await fetch(e1(t),{cache:"no-store"}).catch(r1);if(v?.ok){const g=zt(await v.text());if(g)return g}const b=await p();if(b.kind==="data")return b.data;const j=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw j.status=Bt({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:b.kind==="absent"}),j}const x=await p();if(x.kind==="data")return x.data;const h=new Error("decofile unavailable (preview down, no committed snapshot)");throw h.status=Bt({liveOk:!1,committedAbsent:x.kind==="absent"}),h},n[0]=l,n[1]=a,n[2]=i,n[3]=s,n[4]=c,n[5]=t,n[6]=L,n[7]=u):u=n[7];const f=!!t;let y;n[8]!==l||n[9]!==i?(y=(p,x)=>{if(l||i)return p<3;const h=x.status;return h!==502&&h!==404&&p<2},n[8]=l,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 rs(t,e){const n=t.__resolveType;return typeof n!="string"||!n||o1.has(n)?!1:e?_r(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;rs(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:rs(i,n)}function c1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function is(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(v0(t,e,n)){const a=e[s]??{},c=a.__resolveType??s,{__resolveType:l,name:L,...d}=a;return{resolveType:c,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function os(t,e,n){const s=is(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function ht(t,e,n){if(t)return v0(t,e,n)?os(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=is(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=V.c(21),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,c=pt(t?.virtualMcpId),{previewServerUrl:l,runtime:L}=Ke(t?.virtualMcpId),d=!i&&L==="cms";let u;n[0]!==t||n[1]!==a||n[2]!==l?(u=t?p1({...t,previewUrl:a,productionUrl:l}):Z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=l,n[3]=u):u=n[3];let f;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==c||n[8]!==t||n[9]!==a||n[10]!==l?(f=async()=>{const h=g1,v=()=>d?n1(t):ns(t,mt(c,".deco/meta.gen.json")),b=i&&a?[{kind:"live",baseUrl:a}]:m1({fetchEnabled:o,previewUrl:a,productionUrl:l,fastPreviewActive:d});for(const g of b){if(g.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const S=await h(g.baseUrl);if(S)return S}const j=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw j.status=502,j},n[4]=d,n[5]=o,n[6]=i,n[7]=c,n[8]=t,n[9]=a,n[10]=l,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 x;return n[15]!==u||n[16]!==f||n[17]!==y||n[18]!==m||n[19]!==p?(x={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]=x):x=n[20],Q0(x)}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,c=o?a?.__resolveType??"":i;if(c===Q9||c===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 x=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(x=h)}if(m===Q9||m===X9){const v=(Array.isArray(x.variants)?x.variants:[])[0]?.value?.__resolveType,b=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${b}`,variantOf:b,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label: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 l=o?n.section?.__resolveType??i:i;return o&&l!==""&&D9(l)&&l in e?{index:s,resolveType:i,label:Ee(l,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(l)||`Section ${s+1}`,isLazy:o}})}function as(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=as(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:as(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 ls(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 cs(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=ls(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=cs([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=ls(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const c=cs([...o,De(a)],i);return{section:j1(t,e,c),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(l=>T0(l.rule,e,n)),a=o.reduce((l,L)=>(l[L]=(l[L]??0)+1,l),{}),c={};return i.map((l,L)=>{const d=o[L]??`Variant ${L+1}`,u=a[d]??1;let f=d;return u>1&&(c[d]=(c[d]??0)+1,f=`${d} ${c[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(l.value)?l.value:[],rule:l.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,Ls=28,ds=3,M1=(()=>{const t=[];let e=0;for(let n=0;n<Vt;n++)n===Ls?t.push(null):(t.push(e/(Vt-1)*ds),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"?Cr[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=V.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 c;e[2]!==s||e[3]!==n||e[4]!==i?(c=P1(n,s,R1(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=c):c=e[5];const l=c;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(ti,{}),e[6]=L):L=e[6];const d=`${n.step}-${l}`;let u;e[7]!==l||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:[l,"…"]},d)]}),e[7]=l,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 x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(B1,{}),e[16]=x):x=e[16];let h;e[17]!==a?(h=r.jsx(H0,{phase:2,current:a,children:x}),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 b;e[20]!==a?(b=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=b):b=e[21];let j;e[22]!==h||e[23]!==b||e[24]!==y||e[25]!==p?(j=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,b]}),e[22]=h,e[23]=b,e[24]=y,e[25]=p,e[26]=j):j=e[26];let g;e[27]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsx("style",{children:`
|
|
1
|
+
import{aN as yr,c as V,o as En,m as Q0,K as Z9,b as m9,j as r,l as q,B as h9,T as wn,aG as vr,e as An,r as O,t as A9,aO as br,aP as a0,n as jr,Z as E9,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 Sr,h as x0,aR as kr,E as Nr,aS as Tr}from"./index-Bx8XYjKw.js";import{u as Ke}from"./use-session-runtime-GBLRytSG.js";import{u as Ge,g as Rn,A as D9,B as Pn,r as F9,D as _r,b as j9,P as Q9,E as X9,N as I0,F as k9,L as Pt,H as u0,C as Cr,I as In,l as Fn,J as It,K as Er,M as wr,O as On,Q as _0,k as Ar,T as Mr,v as Rr,U as Pr,V as Ir,W as Fr}from"./claim-phase-copy-B9wFFvmn.js";import{e as Dn}from"./backoff-8mStPHYB.js";import{X as Or,Y as Dr,Z as $r,_ as zr,$ as Br,a0 as Vr,a1 as Ur,a2 as Kr,Q as Gr,a3 as $n,a4 as ue,o as Hr,S as M0,O as qr,m as Yr,a5 as Wr,z as zn,a6 as Ft,a7 as Jr,U as Zr,x as Qr,a8 as Xr,a9 as ei}from"./agent-icon-C-OHbV1P.js";import{i as Bn}from"./Sun-CRWzc28u.js";import{S as Ot}from"./sandbox-start-errors-BK_aDCyt.js";import{G as ti}from"./pair-3eMEB5_o.js";import{i as q9}from"./Check-CIMlt5yD.js";import{i as He,c as ni,d as si,e as ri,b as ii}from"./Tool01-CPAauxlm.js";import{e as fe,C as me,b as K9,a as f0,c as pe,d as qe,f as oi}from"./command-DViMFfxS.js";import{a as F0,b as O0,P as D0}from"./popover-BmdAlr6C.js";import{s as ai,a as li,b as ci}from"./utils-DxQKsL0y.js";import{u as Vn}from"./chat-context-CZ2fVZl0.js";import{n as Un}from"./LinkExternal01-BNnz43uc.js";import{i as Kn}from"./X-C6e-ZD-F.js";import{S as Gn}from"./scroll-area-Sl2AbWUG.js";import{T as T9,a as _9,c as C9}from"./tooltip-BWegP45A.js";import{a as Hn,d as Li}from"./use-virtual-mcp-Cp1Lv8jT.js";import{M as qn}from"./monaco-editor-B_9rPDeH.js";import{C as di}from"./calendar-484mv_eH.js";import{I as M9}from"./input-ByBaigp1.js";import{T as ui}from"./textarea-C3Jno_U3.js";import{L as $9}from"./label-Bfcl00-r.js";import{i as fi}from"./XClose-DfPPOpke.js";import{s as y0}from"./Plus-CFsPNuUG.js";import{E as n0,M as mi,m as pi,g as $0,u as hi,s as gi,a as xi,b as yi}from"./index-61PlkY-8.js";import{S as he,b as ge,a as xe,d as ye,c as m0}from"./select-ChVrs-cn.js";import{a as vi}from"./Palette-4mYdSWAU.js";import{T as R9,R as bi,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-DySw6rgm.js";import{S as it}from"./switch-BWQ9Ofa0.js";import{a as ve}from"./Copy01-CRXzkM5j.js";import{s as ji}from"./Eye-BotGq2TH.js";import{s as s0}from"./Trash01-DzFKBZ4_.js";import{t as z0}from"./ChevronUp-B_Tqb1cB.js";import{c as N0}from"./UserSquare-CMKBpHrm.js";import{i as l0}from"./Share07-CzEa2ZUn.js";import{C as Si}from"./combobox-C9pGHQ9b.js";import{s as ki}from"./XCircle-DaMrjmtF.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-CE6-qfYI.js";import{d as ot,h as at,c as lt,e as Yn,b as ct,D as Lt}from"./dialog-znzgLO8O.js";import{b as dt}from"./sandbox-url-D3mC8qhT.js";import{i as Oe}from"./ZoomOut-muefhyRW.js";import{i as B0}from"./Upload01-BjY312vE.js";import{i as Wn}from"./AlertCircle-DwWykm2P.js";import{i as Jn}from"./DotsVertical-2QzdH24M.js";import{a as h0}from"./Image01-BIjfDO9e.js";import{S as Ri}from"./search-input-BwlRTTJa.js";import{T as Pi,a as Ii,c as Fi,b as Oi}from"./tabs-Dd3q_T1f.js";import{u as Di}from"./use-debounced-value-CUTXzn4X.js";import{u as $i,a as Zn}from"./use-file-configs-CXnDXTXE.js";import{u as zi,a as ut,i as Qn,e as Bi,b as Dt,f as Vi}from"./asset-utils--fSXMiUb.js";import{m as Xn}from"./match-site-slug-config-D3fUJ6vX.js";import{a as Ui,T as Ki}from"./toggle-group-Ch372Q2O.js";import{f as Gi,p as Hi,s as qi,t as Yi,a as $t}from"./decofile-api-CV6EtIBm.js";import{o as Wi}from"./sandbox-git-api-B1R0585s.js";const ft=yr("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 es(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&&es(n))return n}return null}function ts(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Xi();return n&&es(n)?new URL(e,n).toString():Zi(t,e)}function e1(t){return ts(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 ns(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(ai(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 ss(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function C4(t,e){const n=V.c(16),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=t?ss({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,c=pt(t?.virtualMcpId),l=Ke(t?.virtualMcpId).runtime==="cms",L=En(),d=Z9.decofile(o);let u;n[0]!==l||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==c||n[5]!==t||n[6]!==L?(u=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(i1),b=v?.ok?zt(await v.text()):null;if(b)return b;const j=new Error("decofile unavailable (local tunnel unreachable)");throw j.status=502,j}if(l)return Gi(L,t);const p=()=>ns(t,mt(c,".deco/blocks.gen.json"));if(a){const v=await fetch(e1(t),{cache:"no-store"}).catch(r1);if(v?.ok){const g=zt(await v.text());if(g)return g}const b=await p();if(b.kind==="data")return b.data;const j=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw j.status=Bt({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:b.kind==="absent"}),j}const x=await p();if(x.kind==="data")return x.data;const h=new Error("decofile unavailable (preview down, no committed snapshot)");throw h.status=Bt({liveOk:!1,committedAbsent:x.kind==="absent"}),h},n[0]=l,n[1]=a,n[2]=i,n[3]=s,n[4]=c,n[5]=t,n[6]=L,n[7]=u):u=n[7];const f=!!t;let y;n[8]!==l||n[9]!==i?(y=(p,x)=>{if(l||i)return p<3;const h=x.status;return h!==502&&h!==404&&p<2},n[8]=l,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 rs(t,e){const n=t.__resolveType;return typeof n!="string"||!n||o1.has(n)?!1:e?_r(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;rs(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:rs(i,n)}function c1(t,e,n){return v0(t,e,n)?t?.__resolveType??null:null}function is(t,e,n){if(!t)return null;const s=t.__resolveType??"";if(!s)return null;if(v0(t,e,n)){const a=e[s]??{},c=a.__resolveType??s,{__resolveType:l,name:L,...d}=a;return{resolveType:c,data:d,blockKey:s}}const{__resolveType:i,...o}=t;return{resolveType:s,data:o}}function os(t,e,n){const s=is(t,e,n);return s?{__resolveType:s.resolveType,...s.data}:{__resolveType:""}}function ht(t,e,n){if(t)return v0(t,e,n)?os(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=is(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=V.c(21),{url:s}=Ge(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,c=pt(t?.virtualMcpId),{previewServerUrl:l,runtime:L}=Ke(t?.virtualMcpId),d=!i&&L==="cms";let u;n[0]!==t||n[1]!==a||n[2]!==l?(u=t?p1({...t,previewUrl:a,productionUrl:l}):Z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=l,n[3]=u):u=n[3];let f;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==c||n[8]!==t||n[9]!==a||n[10]!==l?(f=async()=>{const h=g1,v=()=>d?n1(t):ns(t,mt(c,".deco/meta.gen.json")),b=i&&a?[{kind:"live",baseUrl:a}]:m1({fetchEnabled:o,previewUrl:a,productionUrl:l,fastPreviewActive:d});for(const g of b){if(g.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const S=await h(g.baseUrl);if(S)return S}const j=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw j.status=502,j},n[4]=d,n[5]=o,n[6]=i,n[7]=c,n[8]=t,n[9]=a,n[10]=l,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 x;return n[15]!==u||n[16]!==f||n[17]!==y||n[18]!==m||n[19]!==p?(x={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]=x):x=n[20],Q0(x)}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,c=o?a?.__resolveType??"":i;if(c===Q9||c===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 x=y;if(p){const h=y.section;m=h?.__resolveType??m,h&&(x=h)}if(m===Q9||m===X9){const v=(Array.isArray(x.variants)?x.variants:[])[0]?.value?.__resolveType,b=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${b}`,variantOf:b,isHidden:!0,isLazy:p}}return m!==""&&D9(m)&&m in e?{index:s,resolveType:i,label: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 l=o?n.section?.__resolveType??i:i;return o&&l!==""&&D9(l)&&l in e?{index:s,resolveType:i,label:Ee(l,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(l)||`Section ${s+1}`,isLazy:o}})}function as(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=as(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:as(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 ls(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 cs(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=ls(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=cs([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=ls(t,e);if(!i)return null;const o=i.variants??[],a=o[o.length-1]?.value;if(!a)return null;const c=cs([...o,De(a)],i);return{section:j1(t,e,c),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(l=>T0(l.rule,e,n)),a=o.reduce((l,L)=>(l[L]=(l[L]??0)+1,l),{}),c={};return i.map((l,L)=>{const d=o[L]??`Variant ${L+1}`,u=a[d]??1;let f=d;return u>1&&(c[d]=(c[d]??0)+1,f=`${d} ${c[d]}`),{label:f||`Variant ${L+1}`,sections:Array.isArray(l.value)?l.value:[],rule:l.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,Ls=28,ds=3,M1=(()=>{const t=[];let e=0;for(let n=0;n<Vt;n++)n===Ls?t.push(null):(t.push(e/(Vt-1)*ds),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"?Cr[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=V.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 c;e[2]!==s||e[3]!==n||e[4]!==i?(c=P1(n,s,R1(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=c):c=e[5];const l=c;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(ti,{}),e[6]=L):L=e[6];const d=`${n.step}-${l}`;let u;e[7]!==l||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:[l,"…"]},d)]}),e[7]=l,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 x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(B1,{}),e[16]=x):x=e[16];let h;e[17]!==a?(h=r.jsx(H0,{phase:2,current:a,children:x}),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 b;e[20]!==a?(b=r.jsx(H0,{phase:3,current:a,children:v}),e[20]=a,e[21]=b):b=e[21];let j;e[22]!==h||e[23]!==b||e[24]!==y||e[25]!==p?(j=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[y,p,h,b]}),e[22]=h,e[23]=b,e[24]=y,e[25]=p,e[26]=j):j=e[26];let g;e[27]===Symbol.for("react.memo_cache_sentinel")?(g=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-Bx8XYjKw.js";import{u as Le}from"./use-mcp-client-D4zsXsEF.js";import{u as Ue}from"./use-session-runtime-GBLRytSG.js";import{u as Re,b as Oe}from"./chat-context-CZ2fVZl0.js";import{u as Be}from"./hooks-BD9P2LBy.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-Cp1Lv8jT.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-Bx8XYjKw.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-BrgfjVMm.js";import{e as de}from"./select-BAj8GDmF.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-Bx8XYjKw.js";import{e as de}from"./select-ChVrs-cn.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-Bx8XYjKw.js";import{i as v}from"./SearchMd-CNBp7i5k.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-Bx8XYjKw.js";import{i as I}from"./SearchMd-CNBp7i5k.js";import{i as M}from"./X-C6e-ZD-F.js";import{I as O}from"./icon-button-UJlB2UIC.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-Bx8XYjKw.js";import{s as j}from"./User01-e--cfvyW.js";import{t as E}from"./Users01-Bt5MQr6c.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-Bx8XYjKw.js";import{i as B}from"./AlertCircle-DwWykm2P.js";import{s as A}from"./Plus-CFsPNuUG.js";import{s as I}from"./User01-e--cfvyW.js";import{t as q}from"./Users01-Bt5MQr6c.js";import{D as V,b as H,c as Z,d as G,h as J,e as K}from"./dialog-znzgLO8O.js";import{I as P}from"./input-ByBaigp1.js";import{L as D}from"./label-Bfcl00-r.js";import{S as M,b as Q,a as U,d as W,c as $}from"./select-ChVrs-cn.js";import{T as X}from"./textarea-C3Jno_U3.js";import{u as Y,a as ee}from"./use-secrets-DbWvlDQT.js";import{R as te}from"./require-capability-VC6wDNWG.js";import"./X-C6e-ZD-F.js";import"./index-CSdZkCS_.js";import"./Check-CIMlt5yD.js";import"./ChevronUp-B_Tqb1cB.js";import"./access-gate-DjhZZFTH.js";import"./capability-load-error-DC5qcvXt.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};
|