decocms 4.386.0 → 4.387.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cwl0Vup2.js → AlertCircle-Da3tM0gY.js} +1 -1
- package/dist/client/assets/{AreaChart-B4QXNZyj.js → AreaChart-8pK8iMto.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BS1ddrpm.js → ArrowLeft-EJr-YqTg.js} +1 -1
- package/dist/client/assets/{ArrowRight-CCNkzW9Y.js → ArrowRight-CdK41xWy.js} +1 -1
- package/dist/client/assets/{ArrowUp-rfVFZ40K.js → ArrowUp-Cr0h1eUU.js} +1 -1
- package/dist/client/assets/{CartesianChart-CDsQOuRz.js → CartesianChart-Dk_Nu3H0.js} +1 -1
- package/dist/client/assets/{Check-Chl3DDqT.js → Check-BgFwywFf.js} +1 -1
- package/dist/client/assets/{CheckCircle-5QB6sfVV.js → CheckCircle-5We5Va5L.js} +1 -1
- package/dist/client/assets/{ChevronUp-BuAMP7GQ.js → ChevronUp-dgPQkcdv.js} +1 -1
- package/dist/client/assets/{Copy01-BwsqBYnE.js → Copy01-CMHlAzgS.js} +1 -1
- package/dist/client/assets/{CreditCard01-BPHmR5OY.js → CreditCard01-DCgVn3oV.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bv4-YScE.js → DotsVertical-C9TkkMfe.js} +1 -1
- package/dist/client/assets/{Download01-DyVswBhh.js → Download01-ChBwr6yr.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-L3hqxsjo.js → ErrorBarContext-Dx5toaO_.js} +1 -1
- package/dist/client/assets/{Eye-BGOdKOA7.js → Eye-D5VumA7M.js} +1 -1
- package/dist/client/assets/{Globe04-BkqSUJiA.js → Globe04-ClJkKQrs.js} +1 -1
- package/dist/client/assets/{Image01-DXUl1blo.js → Image01-BOrVV_OY.js} +1 -1
- package/dist/client/assets/{Key01-CTlB38YG.js → Key01-CyjVKKuN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BIWXERKW.js → LayoutLeft-C-Lx98x9.js} +1 -1
- package/dist/client/assets/{Line-zqIQ0PvH.js → Line-DESYdkiK.js} +1 -1
- package/dist/client/assets/{Link01-7UJLIg0N.js → Link01-C5bvI0ok.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DsBKvM3k.js → LinkExternal01-7ZLNL_9s.js} +1 -1
- package/dist/client/assets/{Monitor01-D3pXjo5b.js → Monitor01-CTvO6He0.js} +1 -1
- package/dist/client/assets/{Package-ImRUZcy3.js → Package-zC5cSGJD.js} +1 -1
- package/dist/client/assets/{Palette-B0nQwQuz.js → Palette-Hb6mROVB.js} +1 -1
- package/dist/client/assets/{Plus-DxM0fEC4.js → Plus-C6g4VoC2.js} +1 -1
- package/dist/client/assets/{SearchLg-DCjPeF5h.js → SearchLg-CF0JjYPh.js} +1 -1
- package/dist/client/assets/{SearchMd-tkECPV7l.js → SearchMd-BboWc_8K.js} +1 -1
- package/dist/client/assets/{Sector-BqmE_gpQ.js → Sector-C-8narGG.js} +1 -1
- package/dist/client/assets/{Share07-fkd7xmY6.js → Share07-CbepO2bZ.js} +1 -1
- package/dist/client/assets/{Stars01-BoztdLAd.js → Stars01-BSCYhMLo.js} +1 -1
- package/dist/client/assets/{Sun-CTx2w4hs.js → Sun--XqnAA9t.js} +1 -1
- package/dist/client/assets/{Tool01-DUJdCnDK.js → Tool01-CwUt8jvw.js} +1 -1
- package/dist/client/assets/{Trash01-B-_Oqcf7.js → Trash01-bzV9Pa75.js} +1 -1
- package/dist/client/assets/{Upload01-alz3omvs.js → Upload01-DKLqc8wc.js} +1 -1
- package/dist/client/assets/{User01-DwcV_kyF.js → User01-5UPFm-U6.js} +1 -1
- package/dist/client/assets/{UserSquare-CsgvAwaQ.js → UserSquare-C_2Z4y9_.js} +1 -1
- package/dist/client/assets/{Users01-DAeXmo2u.js → Users01-CBoZFJLg.js} +1 -1
- package/dist/client/assets/{X-BEAR-IcH.js → X-i7IpcK8C.js} +1 -1
- package/dist/client/assets/{XCircle-BBqXvE8C.js → XCircle-ClHynDO9.js} +1 -1
- package/dist/client/assets/{XClose-Ca9S5aZc.js → XClose-XZQSLHM2.js} +1 -1
- package/dist/client/assets/{Zap-thqSL15H.js → Zap-13Bw0A-o.js} +1 -1
- package/dist/client/assets/{ZoomOut-DnIqLBGF.js → ZoomOut-BJTVjnBu.js} +1 -1
- package/dist/client/assets/{access-gate-5gX8wxGV.js → access-gate-ZcxGf-TD.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BdL2dPAr.js → add-connection-dialog-BB4K9AtD.js} +1 -1
- package/dist/client/assets/{agent-analytics-BIxeEB_F.js → agent-analytics-Ba_H9uKD.js} +1 -1
- package/dist/client/assets/agent-app-B0yYw2Kn.js +1 -0
- package/dist/client/assets/{agent-assets-DdAbXfi1.js → agent-assets-CHstkwVO.js} +1 -1
- package/dist/client/assets/{agent-automation-Bef81mY6.js → agent-automation-fLrgKvmb.js} +1 -1
- package/dist/client/assets/{agent-automations-1PVmd792.js → agent-automations-x2k3Xyf9.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BisHTH6n.js → agent-connect-sources-CqfI5UWv.js} +1 -1
- package/dist/client/assets/agent-deck-BsRl1MeW.js +1 -0
- package/dist/client/assets/{agent-e2e-DTfzR2qE.js → agent-e2e-CXJJJ6Gw.js} +1 -1
- package/dist/client/assets/{agent-experiments-BHDRViXO.js → agent-experiments-BAAdxVE4.js} +1 -1
- package/dist/client/assets/agent-file-BPpuqCrP.js +1 -0
- package/dist/client/assets/{agent-git-DHxCuZd4.js → agent-git-CMvu2d7w.js} +1 -1
- package/dist/client/assets/{agent-hosting-Ckq3R_8_.js → agent-hosting-CvDl_6mC.js} +1 -1
- package/dist/client/assets/{agent-icon-CP0I3VVA.js → agent-icon-4F7jSNEB.js} +1 -1
- package/dist/client/assets/agent-library-file-WGFNhYmG.js +1 -0
- package/dist/client/assets/{agent-monitor-CYjn5ov-.js → agent-monitor-BkoB5cnN.js} +1 -1
- package/dist/client/assets/{agent-overview-CQfoY9eA.js → agent-overview-Ce_1EsV_.js} +1 -1
- package/dist/client/assets/agent-settings-DvcVBQPF.js +1 -0
- package/dist/client/assets/{agent-site-editor-CmVIWUTI.js → agent-site-editor-4I6oPW-3.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-P4w-qKSF.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-q6dSRjGp.js → agent-site-editor-content-DCyPeHZN.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-CYdEZwyJ.js → agent-site-editor-preview-CMlz0qAL.js} +3 -3
- package/dist/client/assets/agent-view-Cm9nHUf9.js +1 -0
- package/dist/client/assets/{agent-view-guard-DClgQS_E.js → agent-view-guard-DRtIvPWQ.js} +1 -1
- package/dist/client/assets/{agents-list-x9nDr_UM.js → agents-list-D460o79D.js} +1 -1
- package/dist/client/assets/{ai-providers-BLLOHjvZ.js → ai-providers-BP9IRbNu.js} +1 -1
- package/dist/client/assets/{alert-DWLTyUNd.js → alert-Dk_6vTVk.js} +1 -1
- package/dist/client/assets/{alert-dialog-BCnbMjLm.js → alert-dialog-DAmr19x7.js} +1 -1
- package/dist/client/assets/api-keys-BEQ_tuCQ.js +1 -0
- package/dist/client/assets/{api-keys-C8x1m95I.js → api-keys-bKyXvobb.js} +1 -1
- package/dist/client/assets/app-editor-BC02Q4FF.js +1 -0
- package/dist/client/assets/{asset-utils-CxMWm-Q0.js → asset-utils-DtY2LEWI.js} +1 -1
- package/dist/client/assets/{auth-fkwwQuGR.js → auth-BJh0XKDc.js} +1 -1
- package/dist/client/assets/{auth-catchall-zbWwf6nX.js → auth-catchall-BYXjG1QL.js} +1 -1
- package/dist/client/assets/{auth-entry-BnSKshlv.js → auth-entry-DVCgvwZe.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAvJosau.js → auth-split-layout-CXC2GWWn.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BogPKDev.js → authenticate-and-persist-oauth-DwKiV4n5.js} +1 -1
- package/dist/client/assets/{automation-list-row-BHuKh4jN.js → automation-list-row-CTdbLZEd.js} +1 -1
- package/dist/client/assets/{automation-runs-Cg4f9PTn.js → automation-runs-CnJ5aGhK.js} +1 -1
- package/dist/client/assets/{automations-Bly1_hA4.js → automations-Br3Jz1gr.js} +1 -1
- package/dist/client/assets/{autosend-Du7-oKR0.js → autosend-BhoAi_fW.js} +1 -1
- package/dist/client/assets/{avatar-DvLLRJ7_.js → avatar-SVBTSz6-.js} +1 -1
- package/dist/client/assets/{badge-jSVR8IKO.js → badge-Tw_0Gnfk.js} +1 -1
- package/dist/client/assets/{block-document-DDK0W4Gk.js → block-document-GOrRnpK9.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-wIvRUegF.js → blocks-preview-workspace-context-EH6speMF.js} +1 -1
- package/dist/client/assets/{breadcrumb-BcN7LEPN.js → breadcrumb-D4Wt1N2M.js} +1 -1
- package/dist/client/assets/{buckets-Cws0X-ao.js → buckets-tP0hGMmZ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CIZv76q4.js → build-improve-prompt-doc-DiHbbOvk.js} +1 -1
- package/dist/client/assets/{bulk-category-panel--mTH44nT.js → bulk-category-panel-BZ9sB0IZ.js} +1 -1
- package/dist/client/assets/{calendar-DL1g-R6I.js → calendar-PjjlUwcV.js} +1 -1
- package/dist/client/assets/{capability-load-error-O16y38Ak.js → capability-load-error-R2VQLYeI.js} +1 -1
- package/dist/client/assets/{category-editor-DeXj55lm.js → category-editor-CxqI2r6D.js} +1 -1
- package/dist/client/assets/{chart-XotQAjm8.js → chart-D8AtS0yx.js} +1 -1
- package/dist/client/assets/{chat-context-bQBeY2t1.js → chat-context-DUFRp2o5.js} +1 -1
- package/dist/client/assets/{chat-draft-Dw5lkxkv.js → chat-draft-NKFUt1rK.js} +1 -1
- package/dist/client/assets/{checkbox-C70qRnxL.js → checkbox-D0AAAikP.js} +1 -1
- package/dist/client/assets/{choose-editor-Bz0n65rr.js → choose-editor-B000DboW.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B6YdLpZk.js → cli-auth-success-AUJoXJI_.js} +1 -1
- package/dist/client/assets/{client-icons-Cz9Mab30.js → client-icons-DCYyFEeJ.js} +1 -1
- package/dist/client/assets/{collapsible-CBOJskaw.js → collapsible-BQcY6rPc.js} +1 -1
- package/dist/client/assets/{collection-detail-BcWKItse.js → collection-detail-DzOJuwuX.js} +1 -1
- package/dist/client/assets/{collection-display-button-D4M61Icm.js → collection-display-button-TL4JNINs.js} +1 -1
- package/dist/client/assets/{collection-search-CKFQt3zo.js → collection-search-Dz6UsoEM.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-nOJd7tk7.js → collection-table-wrapper-Dvc9tAft.js} +1 -1
- package/dist/client/assets/{collection-tabs-nLUzyG3L.js → collection-tabs-CstWw66H.js} +1 -1
- package/dist/client/assets/{combobox-D4piYhGL.js → combobox-Bt8qlvBP.js} +1 -1
- package/dist/client/assets/{command-SQ6iukKb.js → command-BMFq9nQJ.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-YzjKtKLp.js → companion-mcps-section-D1qbqBsw.js} +1 -1
- package/dist/client/assets/{connect-layout-CrrPleYY.js → connect-layout-ChbbJuCS.js} +1 -1
- package/dist/client/assets/{connect-BxPVUdhh.js → connect-uHFLnX_o.js} +1 -1
- package/dist/client/assets/{connection-DdQElG6t.js → connection-Bu_kYZuh.js} +1 -1
- package/dist/client/assets/{connection-card-BS_OpxON.js → connection-card-BR0rWuUi.js} +1 -1
- package/dist/client/assets/{connection-detail-DCDkcs1Y.js → connection-detail-CuqAdmCe.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DZC7DBzw.js → connection-form-helpers-glicOBfm.js} +1 -1
- package/dist/client/assets/{connections-DF9tLWxn.js → connections-DE0s5wKI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BuDkvaJX.js → create-organization-dialog-Btvjtxwc.js} +1 -1
- package/dist/client/assets/{decofile-api-DyGAd2r4.js → decofile-api-DgTLnV1u.js} +1 -1
- package/dist/client/assets/{decopilot-CYIi3WEs.js → decopilot-tLRiBCr4.js} +1 -1
- package/dist/client/assets/{dialog-RGKICG4s.js → dialog-MzmGuLy9.js} +1 -1
- package/dist/client/assets/{discover-DQgdsihh.js → discover-Vh8ajle8.js} +1 -1
- package/dist/client/assets/{domain-settings-DcP3rGWU.js → domain-settings-B0_s17em.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DPWfpRBg.js → download-app-dialog-CDDWmfdP.js} +1 -1
- package/dist/client/assets/{drawer-B4Z-ExBx.js → drawer-Cv924bvf.js} +1 -1
- package/dist/client/assets/{editor-Do7ruOhn.js → editor-zW3jvuax.js} +1 -1
- package/dist/client/assets/{empty-state-B7gXx_Yh.js → empty-state-BptHyu85.js} +1 -1
- package/dist/client/assets/{empty-state-BmmdOg75.js → empty-state-DTUS3HtE.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BZ3x_jRc.js → extract-connection-data-DNxvULAk.js} +1 -1
- package/dist/client/assets/{feature-gate-nddpwuFB.js → feature-gate-B9rqGCJb.js} +1 -1
- package/dist/client/assets/{feature-paywall-D-5vciMm.js → feature-paywall-CftG_N1J.js} +1 -1
- package/dist/client/assets/{file-explorer-CkwFRkGO.js → file-explorer-DpIL2rDI.js} +1 -1
- package/dist/client/assets/{file-preview-DOetwKct.js → file-preview-D8URAIQ-.js} +1 -1
- package/dist/client/assets/{file-share-button-D0sR8ZJX.js → file-share-button-CahJYVQ3.js} +1 -1
- package/dist/client/assets/{file-type-icon-DdSZ0ia4.js → file-type-icon-D1D8leoE.js} +1 -1
- package/dist/client/assets/{folder-icon-CKLDN3FF.js → folder-icon-BU_WAjfX.js} +1 -1
- package/dist/client/assets/{form-CNnZbB2s.js → form-C4j126KK.js} +1 -1
- package/dist/client/assets/{gateway-client-Bn4ALbwj.js → gateway-client-3gBYEcvM.js} +1 -1
- package/dist/client/assets/{general-CQLFQc2y.js → general-CJkAPcsm.js} +1 -1
- package/dist/client/assets/{github-icon-ZhItaKRN.js → github-icon-l7M1zEUL.js} +1 -1
- package/dist/client/assets/{home-BbJ11nz4.js → home-CsHK1Vud.js} +1 -1
- package/dist/client/assets/{hooks-CdPo1Znu.js → hooks-B23Jg659.js} +1 -1
- package/dist/client/assets/{hooks-DEf7SAIB.js → hooks-D2YeBh8J.js} +1 -1
- package/dist/client/assets/{icon-button-BBfdKkxm.js → icon-button-Du-P1XdE.js} +1 -1
- package/dist/client/assets/{index-Dbhl3fMQ.js → index-B9AVbFn1.js} +1 -1
- package/dist/client/assets/{index-0l2SUkGD.js → index-CAYWsHcv.js} +1 -1
- package/dist/client/assets/{index-B2xKtish.js → index-CHLOyz8f.js} +1 -1
- package/dist/client/assets/{index-DVjR6OZ0.js → index-CllSFgmg.js} +1 -1
- package/dist/client/assets/{index-B-yd3uye.js → index-Clt0_ml3.js} +1 -1
- package/dist/client/assets/{index-CFyHGgGO.js → index-Cm-Yn4q_.js} +2 -2
- package/dist/client/assets/{index-CJazvqGq.js → index-D4cAPfDs.js} +1 -1
- package/dist/client/assets/{index-Dk3gb-bB.js → index-D9u292hz.js} +1 -1
- package/dist/client/assets/{index-BkqcEh_k.js → index-DDt-mfSn.js} +1 -1
- package/dist/client/assets/{index-DrGKKl-C.js → index-DORz3VsI.js} +1 -1
- package/dist/client/assets/{index-CUVOFMQ0.js → index-Dd7WwYBf.js} +1 -1
- package/dist/client/assets/{index-CeM0-Jf1.js → index-Ddaygbdd.js} +1 -1
- package/dist/client/assets/{index-mOfnLvd1.js → index-DiJK2wHU.js} +1 -1
- package/dist/client/assets/{index-Dv6121Hz.js → index-G_4wgESR.js} +1 -1
- package/dist/client/assets/{index-redirect-BuCFkWnW.js → index-redirect-CSA_uYqe.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B4v_iRrA.js → infiniteQueryObserver-kZQR6QZi.js} +1 -1
- package/dist/client/assets/{infra-billing-B4de5HCu.js → infra-billing-CzqGCEh_.js} +1 -1
- package/dist/client/assets/{input-Cx-TB157.js → input-8i6Bk9mS.js} +1 -1
- package/dist/client/assets/{input-BXe2-JP2.js → input-BqjhD7MF.js} +1 -1
- package/dist/client/assets/{input-DWLaMaA_.js → input-IyrqyofH.js} +1 -1
- package/dist/client/assets/{integration-icon-DRK9pjva.js → integration-icon-BPXGYcG_.js} +1 -1
- package/dist/client/assets/{label-BKtkcOfE.js → label-Cq0XOqve.js} +1 -1
- package/dist/client/assets/{last-preview-page-Bg8E-AYl.js → last-preview-page-BiAM4n_B.js} +1 -1
- package/dist/client/assets/{layout-DZRZAwg6.js → layout-CE21QG_N.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BdEkG-e3.js → legacy-agents-deep-B_QAQTHc.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C-Ov90Nk.js → legacy-main-redirect-BKBPh_b_.js} +1 -1
- package/dist/client/assets/{library-B03FDNrJ.js → library-CCtDJiGL.js} +1 -1
- package/dist/client/assets/{login-Cfe6-PZw.js → login-TjjJ7hBC.js} +1 -1
- package/dist/client/assets/{markdown-B9hrSGqM.js → markdown-BXZJduYq.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-hpUMUqH2.js → mcp-app-renderer-znNhYyyo.js} +1 -1
- package/dist/client/assets/{mcp-oauth-wOINJv40.js → mcp-oauth-DpctXbyl.js} +1 -1
- package/dist/client/assets/{members-B06BrVk5.js → members-C22vh0zf.js} +1 -1
- package/dist/client/assets/{message-templates-DU9l-F4Q.js → message-templates-CJsxM1Aj.js} +1 -1
- package/dist/client/assets/{mini-report-page-rgtxxMJ3.js → mini-report-page-EjA-mPMg.js} +1 -1
- package/dist/client/assets/{mock-board-CKOC8D-U.js → mock-board-C7y8-NQY.js} +3 -3
- package/dist/client/assets/{monaco-editor-EmJk9YYb.js → monaco-editor-D1EuV3RH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D7CBnFwq.js → monitoring-stats-row-CtceWj8b.js} +1 -1
- package/dist/client/assets/{multi-select-C-ELmy86.js → multi-select-YAftz-Zw.js} +1 -1
- package/dist/client/assets/{mustache-DAjB40dp.js → mustache-LQdueZ7J.js} +1 -1
- package/dist/client/assets/{oauth-callback-BWXvJmGd.js → oauth-callback-CMV31h-n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BqevP8FM.js → oauth-callback-ai-provider-De2DItw8.js} +1 -1
- package/dist/client/assets/{onboarding-DJrrwT4H.js → onboarding-eH-IPrp7.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CwNqyPwJ.js → optimistic-project-sidebar-views-InMvM441.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CmQ30gJ0.js → org-file-open-context-lYlEwrS6.js} +1 -1
- package/dist/client/assets/{organization-choice-BGgXGTHR.js → organization-choice-FGe4nTR_.js} +1 -1
- package/dist/client/assets/{orgs-BU7FeLyY.js → orgs-DiYo2OSV.js} +1 -1
- package/dist/client/assets/{page-seo-form-DEYu0i8V.js → page-seo-form-Dwe3nGYW.js} +1 -1
- package/dist/client/assets/{pair-Cj72V51B.js → pair-BEtEaRoT.js} +1 -1
- package/dist/client/assets/{plan-ladder-D66BgqbO.js → plan-ladder-CuzeFHa4.js} +1 -1
- package/dist/client/assets/{popover-DcrAVb5K.js → popover-0yOMUN9V.js} +1 -1
- package/dist/client/assets/{post-calendar-DQJqqdYQ.js → post-calendar-BWXIOp26.js} +1 -1
- package/dist/client/assets/{post-editor-CnuSsn5o.js → post-editor--ZAMVoRu.js} +1 -1
- package/dist/client/assets/{preview-content-BkDU3n_6.js → preview-content-DryeENmS.js} +1 -1
- package/dist/client/assets/{preview-dialog-BEV5NAsU.js → preview-dialog-DA5gB4Zx.js} +1 -1
- package/dist/client/assets/{primitives-BKiteFSN.js → primitives-D1Uh-Z46.js} +1 -1
- package/dist/client/assets/{profile-DNhI3M1I.js → profile-CWTJPNwM.js} +1 -1
- package/dist/client/assets/{project-app-view-yhcKhzKq.js → project-app-view-BTrwboPy.js} +1 -1
- package/dist/client/assets/{project-feed-N5qYzpK3.js → project-feed-DwPbuz1r.js} +1 -1
- package/dist/client/assets/{project-icon-Bqg6xA8a.js → project-icon-7mHVCrAj.js} +1 -1
- package/dist/client/assets/project-reports-DOvb8BA4.js +1 -0
- package/dist/client/assets/project-tasks-C4121Jp_.js +1 -0
- package/dist/client/assets/{prompts-BHzDLPr-.js → prompts-JpOZz60E.js} +1 -1
- package/dist/client/assets/record-editor-DcMeB_oO.js +1 -0
- package/dist/client/assets/{redirect-editor-C3yLM9GS.js → redirect-editor-Dm1Lv4vd.js} +1 -1
- package/dist/client/assets/{reports-CZ22PHjO.js → reports-DKNNx4qg.js} +1 -1
- package/dist/client/assets/reports-JVS2p_sy.js +1 -0
- package/dist/client/assets/{reports-onboarding-O5OWivlS.js → reports-onboarding-B2DiJAba.js} +1 -1
- package/dist/client/assets/{reports-tab-D06j41C-.js → reports-tab-b7qGy0mk.js} +2 -2
- package/dist/client/assets/{repositories-DNHhpOIv.js → repositories-DD6Ukhrw.js} +1 -1
- package/dist/client/assets/{repository-import-picker-C-ngL2qG.js → repository-import-picker-fxShIRss.js} +1 -1
- package/dist/client/assets/{repository-picker-B8J8aCKh.js → repository-picker-df_kLebP.js} +1 -1
- package/dist/client/assets/{require-capability-B_Hqq5xX.js → require-capability-C5sz4l9u.js} +1 -1
- package/dist/client/assets/{required-auth-layout-kiGhn0Fl.js → required-auth-layout-Dx8h2y43.js} +1 -1
- package/dist/client/assets/{reset-password-CYenWslr.js → reset-password-Dee2FaRd.js} +1 -1
- package/dist/client/assets/{resizable-Bz43PogG.js → resizable-CKKKCPOb.js} +1 -1
- package/dist/client/assets/{review-settings-BH7SICgo.js → review-settings-AoqfsyyE.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BLDmy_gB.js → rich-text-link-control-B3amDY-g.js} +1 -1
- package/dist/client/assets/{roles-CwOV4v2C.js → roles-C_pvm_A3.js} +1 -1
- package/dist/client/assets/{route--7-PGBU_.js → route-B5aRnclN.js} +1 -1
- package/dist/client/assets/{route-CQHOnOna.js → route-BebMWENX.js} +1 -1
- package/dist/client/assets/{route-D0YaB0fj.js → route-DhqILjJn.js} +1 -1
- package/dist/client/assets/{route-page-header-BuGOTt8l.js → route-page-header-wQvHg13u.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CW2Atb2y.js → runnable-block-editor-CTtbEokq.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B1H1oa0w.js → sandbox-lifecycle-context-BfjBaS4k.js} +1 -1
- package/dist/client/assets/{schema-GryfzY0i.js → schema-CfWSVtg9.js} +1 -1
- package/dist/client/assets/{scroll-area-DzZiCQPZ.js → scroll-area-D5XoGWja.js} +1 -1
- package/dist/client/assets/{search-input-SHiTlnCE.js → search-input-oOSx8rAu.js} +1 -1
- package/dist/client/assets/{search-toggle-D4N3AzPW.js → search-toggle-CgpfZR25.js} +1 -1
- package/dist/client/assets/{secrets-Ctzc3HXv.js → secrets-C0jZB_x3.js} +1 -1
- package/dist/client/assets/{sections-editor-DXtafrXa.js → sections-editor-ILck9TBW.js} +1 -1
- package/dist/client/assets/{select-rL7p93dx.js → select-Dyq1d0JF.js} +1 -1
- package/dist/client/assets/{select-model-DHG0nuQY.js → select-model-BmMrWwNd.js} +1 -1
- package/dist/client/assets/{seo-editor-B7c6S06X.js → seo-editor-CzWbhfG4.js} +1 -1
- package/dist/client/assets/{separator-D8sL6zYz.js → separator-CeLCsnF4.js} +1 -1
- package/dist/client/assets/{settings-tab-Cn070EFz.js → settings-tab-D6snhK7R.js} +1 -1
- package/dist/client/assets/{sheet-Dq_EWs2W.js → sheet-4N_7bh_n.js} +1 -1
- package/dist/client/assets/{shell-layout-D1F8kHl9.js → shell-layout-mxurnlT8.js} +1 -1
- package/dist/client/assets/{sidebar-D43DhIwE.js → sidebar-C9HUL4Zk.js} +1 -1
- package/dist/client/assets/{skill-preview-B97-mTZP.js → skill-preview-uy28GPTb.js} +1 -1
- package/dist/client/assets/{skills-Cx3kWc9A.js → skills-BFXrBkuz.js} +1 -1
- package/dist/client/assets/{sso-BnGi7SX9.js → sso-BthNdlgS.js} +1 -1
- package/dist/client/assets/{switch-DLx_1rQF.js → switch-BJbkn4iq.js} +1 -1
- package/dist/client/assets/{synced-repos-B4EDqgTE.js → synced-repos-Bn3taHAf.js} +1 -1
- package/dist/client/assets/{table-wc_V6Osx.js → table-Cqt3fFs7.js} +1 -1
- package/dist/client/assets/{tabs-CQkW3bOH.js → tabs-DfTLJ-n_.js} +1 -1
- package/dist/client/assets/{task-board-BjqJ_zE6.js → task-board-D_YhOLZh.js} +1 -1
- package/dist/client/assets/{task-route-b5zDQpw0.js → task-route-CCsvGOiX.js} +1 -1
- package/dist/client/assets/{task-status-B7fE_9za.js → task-status-DpEZTwHj.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-K9sDH74m.js → taskboard-analytics-ewF7fNbV.js} +1 -1
- package/dist/client/assets/tasks-BiwI0Nwu.js +1 -0
- package/dist/client/assets/{tasks-B1yh0s0B.js → tasks-DH8JVPEr.js} +1 -1
- package/dist/client/assets/{textarea-BaPpC4Bd.js → textarea-DwEKjGZF.js} +1 -1
- package/dist/client/assets/{thread-button-Ch4zKk0N.js → thread-button-C_b8KN5j.js} +1 -1
- package/dist/client/assets/{thread-intent-XcHSP8zW.js → thread-intent-EyHIlLf5.js} +1 -1
- package/dist/client/assets/{thread-route-CGP_k3DO.js → thread-route-D8to8sA5.js} +1 -1
- package/dist/client/assets/{thread-route-C-J8Dvgz.js → thread-route-RnLVS5MF.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D8_23FE-.js → thread-sheet-body-CeCoa5Lv.js} +1 -1
- package/dist/client/assets/{toggle-group-D9KWjWLm.js → toggle-group-CHLe_ngX.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BB2_W4d6.js → toolbar-icon-button-CAkp1a-v.js} +1 -1
- package/dist/client/assets/{tooltip-DRlnzIQm.js → tooltip-Bja45eMa.js} +1 -1
- package/dist/client/assets/{track-CXrvs8hW.js → track-BKTYoAt0.js} +1 -1
- package/dist/client/assets/{types-D4W-t3kf.js → types-imD2hCXv.js} +1 -1
- package/dist/client/assets/{usage-stats-Fyuoa0E1.js → usage-stats-DL6Mxcqj.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C4dXO9Yz.js → use-ai-providers-VJDsVUMj.js} +1 -1
- package/dist/client/assets/{use-automations-9dsFC6Pt.js → use-automations-YsQ3mp7f.js} +1 -1
- package/dist/client/assets/{use-autosave-CriUkKcO.js → use-autosave-B4Sy5dKm.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DE-jLyCh.js → use-connect-companion-BaKonimr.js} +1 -1
- package/dist/client/assets/{use-connection-By40b12N.js → use-connection-BNw2MaMd.js} +1 -1
- package/dist/client/assets/{use-copy-BLJCJFHS.js → use-copy-CeHMXkmI.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D0AahD2t.js → use-create-virtual-mcp-DYSVpRcW.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CNRPcj9k.js → use-date-fns-locale-CRSpZTHr.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BzX7iQl5.js → use-debounced-autosave-Bkd-RMtF.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DQiu0Px1.js → use-debounced-value-CBSXKHwV.js} +1 -1
- package/dist/client/assets/{use-deco-credits-1r5nuYBd.js → use-deco-credits-C6itQLFB.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DwM9-jMb.js → use-decopilot-events-EQT-Ff7p.js} +1 -1
- package/dist/client/assets/{use-delete-connection-huvoW3MI.js → use-delete-connection-DpRl8Clh.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BZm5KCvv.js → use-deployment-admin-2vhBPVeg.js} +1 -1
- package/dist/client/assets/{use-entitlements-Bvz6_GHn.js → use-entitlements-CfU3YoB8.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-ITLFeGjr.js → use-fast-preview-draft-url-3apT4hX9.js} +1 -1
- package/dist/client/assets/{use-file-configs-Dc750_n6.js → use-file-configs-DV2TLqWx.js} +1 -1
- package/dist/client/assets/{use-in-settings-Nr5h58Dc.js → use-in-settings-CYLMPJdc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-5IN_AQUC.js → use-infinite-scroll-CcnUJvw1.js} +1 -1
- package/dist/client/assets/{use-join-requests-BUruBjE6.js → use-join-requests-CAJnDyFH.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CE7T9zOX.js → use-main-panel-tabs-T0Kvslcy.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DQ1IMcVT.js → use-mcp-auth-status-dN9WL_Cj.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cgrjx403.js → use-mcp-client-DAbHG4oK.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-PD_QSplo.js → use-mcp-prompts-Dqrno6f9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CbiwxQvl.js → use-mcp-tools-B9HxU8OQ.js} +1 -1
- package/dist/client/assets/{use-members-DXD-dNoi.js → use-members-CX4Ep53P.js} +1 -1
- package/dist/client/assets/{use-mobile-B90d5ZlF.js → use-mobile-BlhybxdO.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CUne0-cI.js → use-navigate-to-agent-UrDQ1j_Y.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-nDZTfkQK.js → use-open-billing-url-Clbiqv9s.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-PQEXc1yD.js → use-org-auth-client-0lE24BYR.js} +1 -1
- package/dist/client/assets/{use-org-fs-DeO5Vs7G.js → use-org-fs-Dm0MOI2N.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DF_-QyL3.js → use-org-repo-syncs-DtP2qP0h.js} +1 -1
- package/dist/client/assets/{use-org-sso-DXBbBboL.js → use-org-sso-CaeEbX_L.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CFSRd1jc.js → use-organization-roles-DoF8H4qR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-ALMIpIdG.js → use-organization-settings-aVVw0VfM.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BHrQSu9h.js → use-panel-navigate-BZ20L_1u.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Y2wkBJMs.js → use-project-native-view-presence-B8m71d1U.js} +1 -1
- package/dist/client/assets/{use-project-scope-FsdoI9gD.js → use-project-scope-DNhflWSF.js} +1 -1
- package/dist/client/assets/{use-releases-xo3RYWEP.js → use-releases-DGcFLhQX.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CtQFcqBI.js → use-reports-diagnostic-BFhpAlDR.js} +1 -1
- package/dist/client/assets/{use-route-default-main-BqmVu7AG.js → use-route-default-main-Cpujna-F.js} +1 -1
- package/dist/client/assets/{use-secrets-DxDq4D6_.js → use-secrets-BuzOki6X.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DaZur2dM.js → use-section-preview-base-DOg0m0Oe.js} +1 -1
- package/dist/client/assets/{use-session-runtime-C4wBDVOy.js → use-session-runtime-ttdCX595.js} +1 -1
- package/dist/client/assets/{use-tags-c1eddqqE.js → use-tags-COwpPGb0.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DJ3wBWjU.js → use-task-board-analytics-Dfcytd4V.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Bf-ipBBx.js → use-task-metadata-CIrvVpnI.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B5BUO9_U.js → use-thread-outputs-DFHmpQbO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DbjQS13M.js → use-virtual-mcp-joDFMrl3.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ApIt4V4o.js +1 -0
- package/dist/client/assets/{useQueries-QDBruPdh.js → useQueries-BoM9aW6V.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Vryw3RBz.js +1 -0
- package/dist/client/assets/{users-CvddDmkv.js → users-i9Zh69o3.js} +1 -1
- package/dist/client/assets/{utils-Do-NKG3l.js → utils-DjeQFU_k.js} +1 -1
- package/dist/client/assets/{variant-calendar-BkV-nx_1.js → variant-calendar-CmLSEJPW.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DGI26buK.js → variant-matcher-override-mXWxdv2F.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DsUGHBIV.js → view-mode-toggle-B2-sm_tc.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CPXCNlcx.js → virtual-mcp-C5gMOVS_.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +529 -529
- package/dist/server/server.js +367 -367
- package/package.json +1 -1
- package/dist/client/assets/agent-app-GfCF7MBj.js +0 -1
- package/dist/client/assets/agent-deck-DbiPFNhm.js +0 -1
- package/dist/client/assets/agent-file-BW6-wgKu.js +0 -1
- package/dist/client/assets/agent-library-file-ByVGh_GJ.js +0 -1
- package/dist/client/assets/agent-settings-alMz04MP.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D_3n5lRh.js +0 -2
- package/dist/client/assets/agent-view-B0WlAVRK.js +0 -1
- package/dist/client/assets/api-keys-BSvKgDby.js +0 -1
- package/dist/client/assets/app-editor-D0xnTpyR.js +0 -1
- package/dist/client/assets/project-reports-DWBu_Poi.js +0 -1
- package/dist/client/assets/project-tasks-C9ZL-q35.js +0 -1
- package/dist/client/assets/record-editor-3Mx7odY3.js +0 -1
- package/dist/client/assets/reports-9-hk10-8.js +0 -1
- package/dist/client/assets/tasks-DLhzd-p7.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C9Zty0xS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CaUQs7Ct.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a0 as S,K as y,m as $,o as T,e as K}from"./index-
|
|
1
|
+
import{c as p,a0 as S,K as y,m as $,o as T,e as K}from"./index-Cm-Yn4q_.js";function Y(s){return s.contentHash??`${s.size}-${s.updatedAt}`}function F(s,e,t,n){const i=new URLSearchParams(n).toString();return`/api/${encodeURIComponent(s)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function h(s,e,t){const n=await fetch(s,e);if(n.ok||t?.allow404&&n.status===404)return n;let i="";try{i=(await n.json()).error??""}catch{}throw new Error(i||`HTTP ${n.status}`)}function z(s,e){const t=p.c(15),{org:n}=S();let i;t[0]!==n.id||t[1]!==e||t[2]!==s?(i=y.orgFsList(n.id,s,e),t[0]=n.id,t[1]=e,t[2]=s,t[3]=i):i=t[3];let r;t[4]!==n.id||t[5]!==s?(r=(c,o)=>o?.queryKey[1]===n.id&&o.queryKey[2]===s?c:void 0,t[4]=n.id,t[5]=s,t[6]=r):r=t[6];let a;t[7]!==n.slug||t[8]!==e||t[9]!==s?(a=async()=>(await(await h(F(n.slug,s,"list",{path:e}))).json()).entries.toSorted(x),t[7]=n.slug,t[8]=e,t[9]=s,t[10]=a):a=t[10];let l;return t[11]!==i||t[12]!==r||t[13]!==a?(l={queryKey:i,placeholderData:r,queryFn:a},t[11]=i,t[12]=r,t[13]=a,t[14]=l):l=t[14],$(l)}function x(s,e){return s.kind!==e.kind?s.kind==="dir"?-1:1:s.path.localeCompare(e.path)}async function C(s,e,t){const n=await h(F(s,e,"stat",{path:t}),void 0,{allow404:!0});return n.status===404?null:(await n.json()).entry}function B(s,e,t){const n=p.c(15),{org:i}=S();let r;n[0]!==i.id||n[1]!==e||n[2]!==s?(r=y.orgFsStat(i.id,s??"",e),n[0]=i.id,n[1]=e,n[2]=s,n[3]=r):r=n[3];const a=s!==null;let l;n[4]!==t?(l=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,n[4]=t,n[5]=l):l=n[5];let c;n[6]!==i.slug||n[7]!==e||n[8]!==s?(c=()=>C(i.slug,s??"",e),n[6]=i.slug,n[7]=e,n[8]=s,n[9]=c):c=n[9];let o;return n[10]!==r||n[11]!==a||n[12]!==l||n[13]!==c?(o={queryKey:r,enabled:a,refetchInterval:l,queryFn:c},n[10]=r,n[11]=a,n[12]=l,n[13]=c,n[14]=o):o=n[14],$(o)}function J(s){const e=p.c(9),{org:t}=S();let n;e[0]!==t.id||e[1]!==s?(n=y.orgFsUsage(t.id,s),e[0]=t.id,e[1]=s,e[2]=n):n=e[2];let i;e[3]!==t.slug||e[4]!==s?(i=async()=>await(await h(F(t.slug,s,"usage"))).json(),e[3]=t.slug,e[4]=s,e[5]=i):i=e[5];let r;return e[6]!==n||e[7]!==i?(r={queryKey:n,queryFn:i},e[6]=n,e[7]=i,e[8]=r):r=e[8],$(r)}function V(s,e){const t=p.c(9),n=s===void 0?60:s,{org:i}=S();let r;t[0]!==i.id?(r=y.orgFsRecent(i.id),t[0]=i.id,t[1]=r):r=t[1];const a=e?.enabled;let l;t[2]!==n||t[3]!==i.slug?(l=async()=>(await(await h(`/api/${encodeURIComponent(i.slug)}/fs/recent?limit=${n}`)).json()).entries,t[2]=n,t[3]=i.slug,t[4]=l):l=t[4];let c;return t[5]!==r||t[6]!==a||t[7]!==l?(c={queryKey:r,enabled:a,queryFn:l},t[5]=r,t[6]=a,t[7]=l,t[8]=c):c=t[8],$(c)}const _=50;function G(s,e){const t=p.c(16),{org:n}=S();let i;t[0]!==n.id||t[1]!==s||t[2]!==e?.prefix||t[3]!==e?.volume?(i=y.orgFsSearch(n.id,s,e?.volume??"",e?.prefix??""),t[0]=n.id,t[1]=s,t[2]=e?.prefix,t[3]=e?.volume,t[4]=i):i=t[4];const r=s.length>0;let a;t[5]!==n.id?(a=(o,f)=>f?.queryKey[1]===n.id?o:void 0,t[5]=n.id,t[6]=a):a=t[6];let l;t[7]!==n.slug||t[8]!==s||t[9]!==e?(l=async()=>{const o=new URLSearchParams({q:s,limit:String(_)});return e&&(o.set("volume",e.volume),e.prefix&&o.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(n.slug)}/fs/search?${o}`)).json()).entries},t[7]=n.slug,t[8]=s,t[9]=e,t[10]=l):l=t[10];let c;return t[11]!==i||t[12]!==r||t[13]!==a||t[14]!==l?(c={queryKey:i,enabled:r,placeholderData:a,queryFn:l},t[11]=i,t[12]=r,t[13]=a,t[14]=l,t[15]=c):c=t[15],$(c)}function Z(s){const e=p.c(8),{org:t}=S();let n;e[0]!==t.id?(n=y.orgFsSkills(t.id),e[0]=t.id,e[1]=n):n=e[1];const i=s?.enabled;let r;e[2]!==t.slug?(r=async()=>{const l=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await l.json();return c.map(j)},e[2]=t.slug,e[3]=r):r=e[3];let a;return e[4]!==n||e[5]!==i||e[6]!==r?(a={queryKey:n,enabled:i,queryFn:r},e[4]=n,e[5]=i,e[6]=r,e[7]=a):a=e[7],$(a)}function j(s){return{volume:s.volume,path:s.path}}async function E(s){const e=await h(`/api/${encodeURIComponent(s)}/fs/skills`),{skills:t}=await e.json();return t}function v(){const s=p.c(7),{org:e}=S();let t;s[0]!==e.id?(t=y.slashSkills(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==e.slug?(n=()=>E(e.slug),s[2]=e.slug,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,queryFn:n,staleTime:6e4},s[4]=t,s[5]=n,s[6]=i):i=s[6],$(i)}async function R(s,e,t){return(await h(F(s,e,"read",{path:t}))).text()}function ee(s,e){const t=p.c(8);let n;t[0]!==s?(n=y.fileText(s),t[0]=s,t[1]=n):n=t[1];const i=e?.enabled!==!1&&s!=="";let r;t[2]!==s?(r=async()=>{const l=await fetch(s,{credentials:"include"});return l.ok?await l.text():null},t[2]=s,t[3]=r):r=t[3];let a;return t[4]!==n||t[5]!==i||t[6]!==r?(a={queryKey:n,enabled:i,staleTime:6e4,retry:!1,queryFn:r},t[4]=n,t[5]=i,t[6]=r,t[7]=a):a=t[7],$(a)}const U=new Set(["md","mdx","markdown","txt","text"]),Q=25,M=64*1024,A=256*1024,D=4;function N(s){const e=s.lastIndexOf(".");return e===-1?!1:U.has(s.slice(e+1).toLowerCase())}async function te(s,e,t){const n=t?`${t}/`:"",i=u=>u.startsWith(n)?u.slice(n.length):u,r=[],a=[],l=[{path:t,depth:0}];for(;l.length>0;){const u=l.shift();if(!u)break;let g;try{g=(await(await h(F(s,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((I,q)=>I.path.localeCompare(q.path))){if(d.kind==="dir"){u.depth<D&&l.push({path:d.path,depth:u.depth+1});continue}N(d.path)&&d.size<=M&&r.length<Q?r.push(d.path):a.push(i(d.path))}}const c=await Promise.all(r.map(u=>R(s,e,u).catch(()=>null))),o=[];let f=0;return r.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>A){a.push(i(u));return}f+=d.length,o.push({relPath:i(u),content:d})}),o.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:o,omittedPaths:a}}function se(){const s=p.c(7),{org:e}=S();let t;s[0]!==e.id?(t=y.orgFsPublicSets(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==e.slug?(n=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,s[2]=e.slug,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:3e5,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],$(i)}function ne(s){const e=p.c(3),{org:t}=S();let n;return e[0]!==t.slug||e[1]!==s?(n=i=>F(t.slug,s,"read",{path:i}),e[0]=t.slug,e[1]=s,e[2]=n):n=e[2],n}function ie(){const s=p.c(2),{org:e}=S();let t;return s[0]!==e.slug?(t=(n,i)=>F(e.slug,n,"read",{path:i}),s[0]=e.slug,s[1]=t):t=s[1],t}function re(s){const e=p.c(3),{org:t}=S();let n;return e[0]!==t||e[1]!==s?(n={mutationFn:async i=>(await(await h(F(t.slug,s,"file",{path:i.path}),{method:"PUT",headers:{"content-type":i.contentType??"text/html; charset=utf-8"},body:i.body})).json()).entry},e[0]=t,e[1]=s,e[2]=n):n=e[2],K(n)}function ae(s){const e=p.c(18),{org:t}=S(),n=T();let i;e[0]!==t||e[1]!==s?(i=async o=>(await(await h(F(t.slug,s,"public",{path:o.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:o.mode,password:o.password})})).json()).entry,e[0]=t,e[1]=s,e[2]=i):i=e[2];let r;e[3]!==t||e[4]!==n||e[5]!==s?(r=async o=>{const f=y.orgFsStat(t.id,s,o.path);await n.cancelQueries({queryKey:f});const u=n.getQueryData(f),g=o.mode!=="private";return n.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:o.mode}),{key:f,previous:u}},e[3]=t,e[4]=n,e[5]=s,e[6]=r):r=e[6];let a;e[7]!==n?(a=(o,f,u)=>{u&&n.setQueryData(u.key,u.previous)},e[7]=n,e[8]=a):a=e[8];let l;e[9]!==t||e[10]!==n||e[11]!==s?(l=(o,f,u)=>{n.invalidateQueries({queryKey:y.orgFsStat(t.id,s,u.path)}),n.invalidateQueries({queryKey:y.orgFsVolume(t.id,s)}),n.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=n,e[11]=s,e[12]=l):l=e[12];let c;return e[13]!==i||e[14]!==r||e[15]!==a||e[16]!==l?(c={mutationFn:i,onMutate:r,onError:a,onSettled:l},e[13]=i,e[14]=r,e[15]=a,e[16]=l,e[17]=c):c=e[17],K(c)}function le(s){const e=p.c(33),{org:t}=S(),n=T();let i;e[0]!==t||e[1]!==n||e[2]!==s?(i=()=>{n.invalidateQueries({queryKey:y.orgFsVolume(t.id,s)}),n.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=n,e[2]=s,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==s?(a=async w=>{const k=(await Promise.allSettled(w.files.map(O=>{const P=w.dir?`${w.dir}/${O.name}`:O.name;return h(F(t.slug,s,"file",{path:P}),{method:"PUT",headers:{"content-type":O.type||"application/octet-stream"},body:O})}))).find(X);if(k)throw k.reason},e[4]=t,e[5]=s,e[6]=a):a=e[6];let l;e[7]!==r||e[8]!==a?(l={mutationFn:a,onSettled:r},e[7]=r,e[8]=a,e[9]=l):l=e[9];const c=K(l);let o;e[10]!==t||e[11]!==s?(o=async w=>{await h(F(t.slug,s,"dir",{path:w}),{method:"POST"})},e[10]=t,e[11]=s,e[12]=o):o=e[12];let f;e[13]!==r||e[14]!==o?(f={mutationFn:o,onSuccess:r},e[13]=r,e[14]=o,e[15]=f):f=e[15];const u=K(f);let g;e[16]!==t||e[17]!==s?(g=async w=>{await h(F(t.slug,s,"file",{path:w}),{method:"DELETE"})},e[16]=t,e[17]=s,e[18]=g):g=e[18];let d;e[19]!==r||e[20]!==g?(d={mutationFn:g,onSuccess:r},e[19]=r,e[20]=g,e[21]=d):d=e[21];const I=K(d);let q;e[22]!==t||e[23]!==s?(q=async w=>{await h(F(t.slug,s,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(w)})},e[22]=t,e[23]=s,e[24]=q):q=e[24];let m;e[25]!==r||e[26]!==q?(m={mutationFn:q,onSuccess:r},e[25]=r,e[26]=q,e[27]=m):m=e[27];const b=K(m);let L;return e[28]!==u||e[29]!==b||e[30]!==I||e[31]!==c?(L={upload:c,mkdir:u,remove:I,move:b},e[28]=u,e[29]=b,e[30]=I,e[31]=c,e[32]=L):L=e[32],L}function X(s){return s.status==="rejected"}export{E as a,ne as b,ee as c,re as d,Y as e,te as f,ae as g,le as h,ie as i,V as j,Z as k,G as l,se as m,z as n,J as o,v as p,C as q,B as u};
|
package/dist/client/assets/{use-org-repo-syncs-DF_-QyL3.js → use-org-repo-syncs-DtP2qP0h.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as S,b as M,l as F,j as a,G as T,F as Y,B as H,H as V,I as Q,r as P,m as W,K as R,a0 as L,a6 as A,o as J,e as Z}from"./index-
|
|
1
|
+
import{c as S,b as M,l as F,j as a,G as T,F as Y,B as H,H as V,I as Q,r as P,m as W,K as R,a0 as L,a6 as A,o as J,e as Z}from"./index-Cm-Yn4q_.js";import{c as X}from"./use-org-fs-Dm0MOI2N.js";import{i as ee}from"./DotsVertical-C9TkkMfe.js";import{n as re}from"./Download01-ChBwr6yr.js";import{i as le,a as ie,b as oe}from"./Share07-CbepO2bZ.js";import{i as ae}from"./Key01-CyjVKKuN.js";import{a as ce}from"./Palette-Hb6mROVB.js";import{s as te}from"./Trash01-bzV9Pa75.js";import{i as fe}from"./Zap-13Bw0A-o.js";import{F as O,d as G}from"./file-type-icon-D1D8leoE.js";import{F as de}from"./folder-icon-BU_WAjfX.js";import{p as ue}from"./skill-md-ChfVs4uF.js";function me(t,e,s){return e?"color":s?"font":/^--brand-(text|fw|leading|tracking)/i.test(t)?"type":/^--brand-space/i.test(t)?"space":/^--brand-radius/i.test(t)?"radius":/^--brand-shadow/i.test(t)?"shadow":/^--brand-(duration|delay|ease)/i.test(t)?"motion":"other"}const pe=/^(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\(/i,xe=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,he=["svg","png","jpg","jpeg","webp","avif","gif"];function ge(t){return t.split(".").pop()?.toLowerCase()??""}function be(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(t){const e=t.trim();return xe.test(e)||pe.test(e)}function lt(t){const e=t.trim(),s=e.match(/^#([0-9a-f]{3})$/i);return s?.[1]?`#${[...s[1]].map(i=>i+i).join("")}`:e}function je(t){const e=[],s=new Map,i=/(--brand-[\w-]+)\s*:\s*([^;]+);/g;let n;for(;(n=i.exec(t))!==null;){const r=n[1],l=n[2].trim();s.has(r)||e.push(r),s.set(r,l)}return e.map(r=>{const l=s.get(r),c=ye(l),o=/^--brand-font/i.test(r);return{name:r,value:l,isColor:c,isFont:o,kind:me(r,c,o)}})}const K=["primary","secondary","accent","neutral","success","warning","error","info","bg","fg","border","ring"];function we(t){return t.match(/^--brand-([a-z]+)/i)?.[1]?.toLowerCase()??t}function it(t){const e=[],s=new Map;for(const n of t){if(n.kind!=="color")continue;const r=we(n.name);s.has(r)||(e.push(r),s.set(r,[])),s.get(r).push(n)}return e.map(n=>{const r=s.get(n);return{family:n,tokens:r,isRamp:r.filter(l=>/-\d+$/.test(l.name)).length>=5}}).sort((n,r)=>{const l=K.indexOf(n.family),c=K.indexOf(r.family);return l===-1&&c===-1?0:l===-1?1:c===-1?-1:l-c})}function ot(t,e,s){const i=new RegExp(`(${be(e)}\\s*:\\s*)[^;]+(;)`);if(i.test(t))return t.replace(i,(l,c,o)=>`${c}${s}${o}`);const n=t.search(/:root\s*\{/);if(n!==-1){const l=t.indexOf("{",n)+1;return`${t.slice(0,l)}
|
|
2
2
|
${e}: ${s};${t.slice(l)}`}const r=t.length>0&&!t.endsWith(`
|
|
3
3
|
`)?`
|
|
4
4
|
`:"";return`${t}${r}:root {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as S,o as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,m as S,o as r,e as y,K as c}from"./index-Cm-Yn4q_.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,h as d,m as u};
|
package/dist/client/assets/{use-organization-roles-CFSRd1jc.js → use-organization-roles-DoF8H4qR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-0lE24BYR.js";import{a0 as b,m as P,K as y}from"./index-Cm-Yn4q_.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y,c as r,aQ as x,a0 as E,m as C,aD as F,K as T,a6 as w,o as N,e as P}from"./index-
|
|
1
|
+
import{a as y,c as r,aQ as x,a0 as E,m as C,aD as F,K as T,a6 as w,o as N,e as P}from"./index-Cm-Yn4q_.js";import{D as z,o as D,a as R}from"./schema-CfWSVtg9.js";import{r as $}from"./task-board-D_YhOLZh.js";const A={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null},b={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function L(e,t){return{queryKey:T.organizationSettings(t),queryFn:async()=>{try{return await F(e,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...A,organizationId:t}}},staleTime:6e4}}function d(e){const t=r.c(6),{org:n}=E();let s;t[0]!==n.id||t[1]!==n.slug?(s=L(n.slug,n.id),t[0]=n.id,t[1]=n.slug,t[2]=s):s=t[2];const o=e;let a;return t[3]!==s||t[4]!==o?(a={...s,select:o},t[3]=s,t[4]=o,t[5]=a):a=t[5],C(a)}function h(){const e=r.c(9),{org:t}=E(),n=w(),s=N();let o;e[0]!==t||e[1]!==n?(o=async l=>{const u=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t.id,...l});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},e[0]=t,e[1]=n,e[2]=o):o=e[2];let a;e[3]!==t||e[4]!==s?(a=l=>{s.setQueryData(T.organizationSettings(t.id),u=>({...u??A,...l}))},e[3]=t,e[4]=s,e[5]=a):a=e[5];let i;return e[6]!==o||e[7]!==a?(i={mutationFn:o,onSuccess:a},e[6]=o,e[7]=a,e[8]=i):i=e[8],P(i)}function Q(e){return e?.tiers?{tiers:{fast:e.tiers.fast??null,smart:e.tiers.smart??null,thinking:e.tiers.thinking??null,image:e.tiers.image??null,web_search:e.tiers.web_search??null,deep_research:e.tiers.deep_research??null}}:b}function j(){const{data:e}=d(U);return e??b}function U(e){return Q(e.simple_mode)}function V(){const e=r.c(7),t=h();let n,s;e[0]!==t?(n=(a,i)=>t.mutate({simple_mode:a},i),s=(a,i)=>t.mutateAsync({simple_mode:a},i),e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==s?(o={...t,mutate:n,mutateAsync:s},e[3]=t,e[4]=n,e[5]=s,e[6]=o):o=e[6],o}function W(){return c("reports_only")}function c(e){const t=r.c(5);let n;t[0]!==e?(n=a=>D(a.flags,e),t[0]=e,t[1]=n):n=t[1];const{data:s}=d(n);let o;return t[2]!==s||t[3]!==e?(o=s??z.has(e),t[2]=s,t[3]=e,t[4]=o):o=t[4],o}function O(e){return!!e&&e.trim().toLowerCase().endsWith("@deco.cx")}function B(){const{data:e}=y.useSession();return O(e?.user?.email)}function H(){const e=r.c(9),{data:t}=y.useSession(),n=x();let s;e[0]!==n.auth.localMode||e[1]!==t?.user?.email?(s=n.auth.localMode===!0||O(t?.user?.email),e[0]=n.auth.localMode,e[1]=t?.user?.email,e[2]=s):s=e[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=c("hosting_enabled"),u=c("deco_analytics_enabled"),I=c("e2e_enabled"),G=c("monitor_enabled"),M=c("experiments_enabled"),f=o||a||l,g=o||a||u,_=o||a||I,p=o||i||G,S=o||a||M;let m;return e[3]!==f||e[4]!==g||e[5]!==_||e[6]!==p||e[7]!==S?(m={hosting:f,analytics:g,e2e:_,monitor:p,experiments:S},e[3]=f,e[4]=g,e[5]=_,e[6]=p,e[7]=S,e[8]=m):m=e[8],m}function J(){const{data:e}=d(v);return e??!1}function v(e){return R(e.flags)}function X(){const{data:e}=d(k);return e??!0}function k(e){return $(e.flags)}function ee(){const e=r.c(7),t=h();let n,s;e[0]!==t?(n=(a,i,l)=>t.mutate({flags:{[a]:i}},l),s=(a,i,l)=>t.mutateAsync({flags:{[a]:i}},l),e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let o;return e[3]!==t||e[4]!==n||e[5]!==s?(o={...t,mutate:n,mutateAsync:s},e[3]=t,e[4]=n,e[5]=s,e[6]=o):o=e[6],o}function te(){const e=r.c(2),{data:t}=d(q);let n;return e[0]!==t?(n=t??[],e[0]=t,e[1]=n):n=e[1],n}function q(e){return e.coding_agent_mcp_excluded}function ne(){const e=r.c(5),t=h();let n;e[0]!==t?(n=(o,a)=>t.mutate({coding_agent_mcp_excluded:o},a),e[0]=t,e[1]=n):n=e[1];let s;return e[2]!==t||e[3]!==n?(s={...t,mutate:n},e[2]=t,e[3]=n,e[4]=s):s=e[4],s}export{c as a,H as b,j as c,X as d,J as e,ee as f,te as g,ne as h,V as i,B as j,W as u};
|
package/dist/client/assets/{use-panel-navigate-BHrQSu9h.js → use-panel-navigate-BZ20L_1u.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,f as g,u as S,cZ as _,d as b,k,c_ as P,c$ as E}from"./index-
|
|
1
|
+
import{c as p,f as g,u as S,cZ as _,d as b,k,c_ as P,c$ as E}from"./index-Cm-Yn4q_.js";import{b as I}from"./thread-route-RnLVS5MF.js";import{a as R}from"./use-project-scope-DNhflWSF.js";function x(e){const t=e.destination==="agent",a={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(a):a,mainpanel:void 0}}function T(){const e=p.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:$},e[0]=t):t=e[0],k(t)}function $(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData;if(a?.mainView||a?.siteEditorView)return{mainView:a.mainView,siteEditorView:a.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function A(){const e=p.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=g(t);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const i=S(o),s={file:"file"in i&&typeof i.file=="string"?i.file:void 0,key:"key"in i&&typeof i.key=="string"?i.key:void 0,path:"path"in i&&typeof i.path=="string"?i.path:void 0},{mainView:r,siteEditorView:n}=T();return _({mainView:r,siteEditorView:n,params:a,search:s})}function D(){const e=p.c(11),t=b();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const o=g(a),i=I(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(u,d)=>{const h=P(u),v=d?.virtualmcpid!==void 0||s!==null?"project":"organization",V=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",w=y=>x({previous:y,destination:V?"organization":"agent",update:d?.search});E(t,{org:r,agentId:d?.virtualmcpid??i,tabId:u,destinationScope:v,search:w,replace:d?.replace??!0})},e[1]=t,e[2]=r,e[3]=i,e[4]=s,e[5]=n):n=e[5];const m=n;let c;e[6]!==t?(c=u=>t({to:".",search:j,replace:u?.replace??!0}),e[6]=t,e[7]=c):c=e[7];const f=c;let l;return e[8]!==f||e[9]!==m?(l={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=l):l=e[10],l}function j(e){return{...e,mainpanel:!1,sidepanel:!0}}export{D as a,x as r,A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,a0 as A,aQ as _,m as h,K as I}from"./index-
|
|
1
|
+
import{c as x,a0 as A,aQ as _,m as h,K as I}from"./index-Cm-Yn4q_.js";import{m as R}from"./match-site-slug-config-D3fUJ6vX.js";import{a as v}from"./use-file-configs-DV2TLqWx.js";import{b as C}from"./use-organization-settings-aVVw0VfM.js";import{r as D}from"./site-slug-uya6Wp4-.js";const a=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],O=["overview","reports","board","site-editor"],T=1,W=["assets","hosting","e2e","analytics","cdn","experiments"];function k(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function L(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function y(t,e){const s=new Set(t??[]);if(e!==T)for(const n of O)s.add(n);return a.filter(n=>s.has(n))}function J(t){return a.some(e=>e===t)}function N(t){return W.some(e=>e===t)}function U(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function Y(t,e,s){const n=U(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function z(t,e,s){const n=new Set(y(t,s));return a.filter(r=>e[r]&&n.has(r))}function G(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function H(t){return a.filter(e=>t[e])}function B(t,e,s){return!J(t)||e[t]?!1:N(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function X(t,e,s,n,r){return B(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&r&&!n.includes("code")}function Z(t,e,s,n){const r=new Set(y(t,n));return s?r.add(e):r.delete(e),a.filter(i=>r.has(i))}function M(t){const e=x.c(11),{org:s}=A(),n=_(),r=C(),i=v(),c=D(t),u=n.hostingEnabled===!0,V=n.monitorEnabled===!0||n.auth.localMode===!0,w=(u||V)&&!!c,E=h({queryKey:I.hostingAccess(s.slug,c??""),queryFn:async()=>{const j=await fetch(`/api/${s.slug}/hosting/${encodeURIComponent(c??"")}/access`);return j.ok?await j.json():{owned:!1,canWrite:!1}},enabled:w,staleTime:6e4}),d=E.data?.owned===!0,f=!!R(i.data?.configs??[],c),p=u&&d&&r.hosting,g=u&&d&&r.e2e,m=u&&d&&r.analytics,b=V&&d&&r.monitor;let o;e[0]!==r.experiments||e[1]!==f||e[2]!==p||e[3]!==g||e[4]!==m||e[5]!==b?(o={assets:f,hosting:p,e2e:g,analytics:m,cdn:b,experiments:r.experiments},e[0]=r.experiments,e[1]=f,e[2]=p,e[3]=g,e[4]=m,e[5]=b,e[6]=o):o=e[6];const P=!!c&&i.isPending,S=w&&E.isPending;let l;return e[7]!==o||e[8]!==P||e[9]!==S?(l={presence:o,assetsPending:P,siteAccessPending:S},e[7]=o,e[8]=P,e[9]=S,e[10]=l):l=e[10],l}export{W as P,T as a,k as b,Y as c,X as d,y as e,B as f,H as g,G as h,U as p,L as r,z as s,Z as t,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as A,f as y,u as R,d as T,aa as k,d0 as C,d1 as N,d2 as j,c$ as E,a9 as b}from"./index-
|
|
1
|
+
import{c as A,f as y,u as R,d as T,aa as k,d0 as C,d1 as N,d2 as j,c$ as E,a9 as b}from"./index-Cm-Yn4q_.js";import{e as w,d as D}from"./use-virtual-mcp-joDFMrl3.js";import{b as P,p as H}from"./github-repo-BknN0SVI.js";function F(t){if(typeof t!="object"||t===null)return!1;const s=t.githubRepo?.url;return typeof s=="string"&&s.length>0}function J(t){return P(t).status==="attached"}function K(t){const e=P(t).status;return e==="attached"||e==="detached"}function O(t){const e=new Set;for(const s of t??[]){const n=s.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(s.id)}return e}function L(t,e){if(!t)return null;const s=t.metadata?.liveAgentId;if(typeof s=="string"&&s)return(e??[]).find(a=>a.id===s)?{mode:"dev",targetId:s}:null;const n=(e??[]).find(o=>o.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}const G=1;function S(t){const e=t??[],s=O(e);return e.filter(n=>!s.has(n.id)&&!C(n.id)&&!N(n.id)&&!j(n.id))}function M(){const t=A.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const s=y(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[1]=n):n=t[1];const o=R(n);if(s.agentId)return s.agentId;let a;return t[2]!==o?(a="virtualmcpid"in o&&typeof o.virtualmcpid=="string"?o.virtualmcpid.trim():void 0,t[2]=o,t[3]=a):a=t[3],a||null}function U(){const t=A.c(16),e=T();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=y(s),o=k(),a=w(),c=S(a),i=M(),_=c.find(r=>r.id===i)??null;let l;t[1]!==a||t[2]!==i?(l=i&&a.length>0&&!a.some(r=>r.id===i)?i:null,t[1]=a,t[2]=i,t[3]=l):l=t[3];const I=D(l),d=_??S(I?[I]:[])[0]??null;let u;t[4]!==o||t[5]!==e||t[6]!==n||t[7]!==i?(u=r=>{if(r===i&&o!==void 0)return;const v=n.org??"",h=V;if(r){E(e,{org:v,agentId:r,tabId:o==="board"||o==="reports"?o:"overview",search:h,replace:!1});return}if(o==="board"){e({to:b.tasks,params:{org:v,taskKey:void 0},search:h});return}e({to:b.home,params:{org:v},search:h})},t[4]=o,t[5]=e,t[6]=n,t[7]=i,t[8]=u):u=t[8];const m=u,g=H(d),p=c.length>=G;let f;return t[9]!==d||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==g||t[14]!==p?(f={scopeId:i,project:d,repo:g,projects:c,hasProjects:p,setScope:m},t[9]=d,t[10]=c,t[11]=i,t[12]=m,t[13]=g,t[14]=p,t[15]=f):f=t[15],f}function V(t){return{...t,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{M as a,F as b,K as c,J as d,L as f,O as g,S as s,U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a0 as Q,o as k}from"./index-
|
|
1
|
+
import{c as N,a0 as Q,o as k}from"./index-Cm-Yn4q_.js";import{a as E,c as P}from"./use-virtual-mcp-joDFMrl3.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function B(t){return t?.name||t?.email?.split("@")[0]||void 0}function F(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function _(t,e,s){return t.map(o=>o.branch===e?{...o,name:s}:o)}const S=["orange","violet","blue","pink","amber","teal"];function K(t){return S[t%S.length]}function W(t,e){const s=`${e} `,o=t.reduce((u,n)=>{if(!n.name.startsWith(s))return u;const l=Number(n.name.slice(s.length));return Number.isInteger(l)&&l>u?l:u},0);return`${e} ${o+1}`}const j={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function G(t){return t&&j[t]||"bg-muted-foreground"}function H(t){const e=N.c(26),s=E(t),o=P(),{org:u}=Q(),n=k();let l;e[0]!==s?.metadata?.releases?(l=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=l):l=e[1];const f=l;let b;e[2]!==u||e[3]!==t?(b=a=>a[1]===u.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[2]=u,e[3]=t,e[4]=b):b=e[4];const m=b;let d;e[5]!==m||e[6]!==n||e[7]!==f?(d=()=>{for(const[,a]of n.getQueriesData({predicate:r=>m(r.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[5]=m,e[6]=n,e[7]=f,e[8]=d):d=e[8];const $=d;let p;e[9]!==o||e[10]!==m||e[11]!==n||e[12]!==$||e[13]!==t?(p=a=>z(`vm-releases:${t}`,async()=>{const r=$(),g=a(r);if(g!==r){n.setQueriesData({predicate:c=>m(c.queryKey)},c=>c?.item?{item:{...c.item,metadata:{...c.item.metadata,releases:g}}}:c);try{await o.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(c){const w=c;throw n.invalidateQueries({predicate:A=>m(A.queryKey)}),w}}}),e[9]=o,e[10]=m,e[11]=n,e[12]=$,e[13]=t,e[14]=p):p=e[14];const i=p;let R;e[15]!==i?(R=a=>i(r=>T(r,a)),e[15]=i,e[16]=R):R=e[16];const y=R;let h;e[17]!==i?(h=(a,r)=>i(g=>_(g,a,r)),e[17]=i,e[18]=h):h=e[18];const D=h;let C;e[19]!==i?(C=a=>i(r=>V(r,a)),e[19]=i,e[20]=C):C=e[20];const L=C;let x;return e[21]!==y||e[22]!==L||e[23]!==f||e[24]!==D?(x={releases:f,createRelease:y,renameRelease:D,deleteRelease:L},e[21]=y,e[22]=L,e[23]=f,e[24]=D,e[25]=x):x=e[25],x}export{W as a,B as b,F as g,K as n,G as r,H as u};
|
package/dist/client/assets/{use-reports-diagnostic-CtQFcqBI.js → use-reports-diagnostic-BFhpAlDR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a0 as Q,W as F,z as A,m as f,K as T,dM as L,J as K,C as M}from"./index-
|
|
1
|
+
import{c as N,a0 as Q,W as F,z as A,m as f,K as T,dM as L,J as K,C as M}from"./index-Cm-Yn4q_.js";import{m as O}from"./use-mcp-client-DAbHG4oK.js";import{u as h}from"./companions-core-BnuxEm_5.js";function D(n){return n?n.run_in_progress?"generating":n.scanned_at?"ready":"none":"none"}function U(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:L,arguments:{}});return h(R).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const _=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function z(n,e){return{to:K.app,params:{org:n.slug,agentId:M(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,z as r,j as u};
|
package/dist/client/assets/{use-route-default-main-BqmVu7AG.js → use-route-default-main-Cpujna-F.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,k as o}from"./index-
|
|
1
|
+
import{c as a,k as o}from"./index-Cm-Yn4q_.js";function c(){const e=a.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:r},e[0]=t):t=e[0],o(t)}function r(e){for(let t=e.matches.length-1;t>=0;t--){const n=e.matches[t]?.staticData.defaultMain;if(n)return n}return null}export{c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a0 as c,a6 as r,K as l,D as d,o as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a0 as c,a6 as r,K as l,D as d,o as f,e as S}from"./index-Cm-Yn4q_.js";function C(){const e=u.c(7),{org:i}=c(),o=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==o?(t=async()=>await o.call("SECRET_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=u.c(8),{org:i}=c(),o=r(),a=f();let t;e[0]!==o?(t=async y=>await o.call("SECRET_CREATE",{...y}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D,b as Q,r as g,j as r,Z,l as Y}from"./index-
|
|
1
|
+
import{c as D,b as Q,r as g,j as r,Z,l as Y}from"./index-Cm-Yn4q_.js";import{c as J}from"./UserSquare-C_2Z4y9_.js";import{z as K}from"./agent-icon-4F7jSNEB.js";import{i as ee}from"./SearchMd-BboWc_8K.js";import{D as te,b as re,d as se,c as le}from"./dialog-MzmGuLy9.js";import{I as oe}from"./input-BqjhD7MF.js";import{V as ie,k as ne,W as ce,G as ae}from"./claim-phase-copy-0btUuJoC.js";import{d as H,r as fe}from"./section-preview-url-Csj0_ZDg.js";import{u as ue}from"./use-session-runtime-ttdCX595.js";const de=12,z=new Set,q=new Set;function me(){for(const s of q)s()}function ve(s){return z.has(s)?!0:z.size>=de?!1:(z.add(s),!0)}function X(s){z.delete(s)&&me()}function pe(s){return q.add(s),()=>{q.delete(s)}}function xe(s,e){const t=g.useRef(!1),[m,i]=g.useState(!1),o=g.useRef(null),u=g.useRef(null),d=g.useRef(null),l=g.useRef(s);l.current=s;const[f]=g.useState(()=>{const c=()=>{d.current?.(),d.current=null},a=()=>t.current?!0:ve(e)?(t.current=!0,i(!0),c(),!0):!1;return n=>{if(u.current=n,o.current&&(o.current.disconnect(),o.current=null),c(),!n){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(u.current!==n)return;const h=new IntersectionObserver(v=>{if(v[0]?.isIntersecting??!1){!a()&&!d.current&&(d.current=pe(()=>{u.current===n&&a()}));return}c(),t.current&&(X(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});h.observe(n),o.current=h})}});return{ref:f,iframeActive:m}}function he(s){const e=D.c(9),{previewUrl:t,title:m,scrollRootRef:i,slotId:o}=s,{ref:u,iframeActive:d}=xe(i,o),[l,f]=g.useState(!1),c=Z()?J:K;let a;e[0]!==c||e[1]!==d||e[2]!==l||e[3]!==t||e[4]!==m?(a=d?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(c,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${m}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>f(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(c,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=d,e[2]=l,e[3]=t,e[4]=m,e[5]=a):a=e[5];let n;return e[6]!==u||e[7]!==a?(n=r.jsx("div",{ref:u,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:a}),e[6]=u,e[7]=a,e[8]=n):n=e[8],n}function we(s){const e=D.c(27),{entry:t,previewUrl:m,scrollRootRef:i,onSelect:o}=s,u=Z()?J:K,d=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let l;e[0]!==d?(l=Y("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",d),e[0]=d,e[1]=l):l=e[1];let f;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==m||e[5]!==i?(f=r.jsx(he,{previewUrl:m,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=m,e[5]=i,e[6]=f):f=e[6];let c;e[7]!==t.isSavedBlock?(c=t.isSavedBlock?{color:ae}:void 0,e[7]=t.isSavedBlock,e[8]=c):c=e[8];let a;e[9]!==u||e[10]!==c?(a=r.jsx(u,{className:"h-4 w-4 shrink-0",style:c}),e[9]=u,e[10]=c,e[11]=a):a=e[11];let n;e[12]!==t.title?(n=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[12]=t.title,e[13]=n):n=e[13];let h;e[14]!==t.description?(h=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[14]=t.description,e[15]=h):h=e[15];let v;e[16]!==n||e[17]!==h?(v=r.jsxs("div",{className:"min-w-0 flex-1",children:[n,h]}),e[16]=n,e[17]=h,e[18]=v):v=e[18];let p;e[19]!==a||e[20]!==v?(p=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[a,v]}),e[19]=a,e[20]=v,e[21]=p):p=e[21];let w;return e[22]!==o||e[23]!==l||e[24]!==f||e[25]!==p?(w=r.jsxs("button",{type:"button",onClick:o,className:l,children:[f,p]}),e[22]=o,e[23]=l,e[24]=f,e[25]=p,e[26]=w):w=e[26],w}function Ie(s){const e=D.c(51),{open:t,onOpenChange:m,meta:i,decofile:o,previewBaseUrl:u,onSelect:d}=s,l=Q(),[f,c]=g.useState(""),[a,n]=g.useState(t),h=g.useRef(null);t!==a&&(n(t),t&&c(""));let v,p,w,b,j,y,N,R,S,C,P;if(e[0]!==o||e[1]!==i||e[2]!==m||e[3]!==d||e[4]!==t||e[5]!==u||e[6]!==f||e[7]!==l){const W=t&&i&&o?ie(i,o):[],_=i?ne(i):"",F=o?ce(o):void 0,G=new Map;if(t&&_)for(const x of W)G.set(x.resolveType,H(u,_,x.previewBlock,F));const M=f.trim().toLowerCase(),V=M?W.filter(x=>x.title.toLowerCase().includes(M)||x.resolveType.toLowerCase().includes(M)||x.description?.toLowerCase().includes(M)):W;p=te,C=t,P=m,v=re,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=r.jsx(se,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(ee,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=x=>c(x.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==f||e[28]!==B?(k=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(oe,{value:f,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=f,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(S=r.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=S):S=e[32],j=h,y="min-h-0 flex-1 overflow-y-auto",w="p-4",b=V.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(x=>r.jsx(we,{entry:x,scrollRootRef:h,previewUrl:G.get(x.resolveType)??H(u,_,x.previewBlock,F),onSelect:()=>d(x)},x.resolveType))}),e[0]=o,e[1]=i,e[2]=m,e[3]=d,e[4]=t,e[5]=u,e[6]=f,e[7]=l,e[8]=v,e[9]=p,e[10]=w,e[11]=b,e[12]=j,e[13]=y,e[14]=N,e[15]=R,e[16]=S,e[17]=C,e[18]=P}else v=e[8],p=e[9],w=e[10],b=e[11],j=e[12],y=e[13],N=e[14],R=e[15],S=e[16],C=e[17],P=e[18];let I;e[33]!==w||e[34]!==b?(I=r.jsx("div",{className:w,children:b}),e[33]=w,e[34]=b,e[35]=I):I=e[35];let T;e[36]!==I||e[37]!==j||e[38]!==y?(T=r.jsx("div",{ref:j,className:y,children:I}),e[36]=I,e[37]=j,e[38]=y,e[39]=T):T=e[39];let L;e[40]!==v||e[41]!==T||e[42]!==N||e[43]!==R||e[44]!==S?(L=r.jsxs(v,{closeButtonClassName:N,className:R,children:[S,T]}),e[40]=v,e[41]=T,e[42]=N,e[43]=R,e[44]=S,e[45]=L):L=e[45];let E;return e[46]!==p||e[47]!==L||e[48]!==C||e[49]!==P?(E=r.jsx(p,{open:C,onOpenChange:P,children:L}),e[46]=p,e[47]=L,e[48]=C,e[49]=P,e[50]=E):E=e[50],E}function Te(s){const e=D.c(4),{previewServerUrl:t,runtime:m}=ue(s.virtualMcpId),i=m==="cms";let o;return e[0]!==i||e[1]!==s.sandboxUrl||e[2]!==t?(o=fe({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=s.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ie as A,Te as u};
|
package/dist/client/assets/{use-session-runtime-C4wBDVOy.js → use-session-runtime-ttdCX595.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./index-
|
|
1
|
+
import{c as h}from"./index-Cm-Yn4q_.js";import{r as R,d as T,a as k,p as S}from"./thread-intent-EyHIlLf5.js";import{u as j}from"./chat-context-DUFRp2o5.js";import{a as w}from"./use-virtual-mcp-joDFMrl3.js";function D(d){const t=h.c(14),u=w(d),p=j(),e=u?.metadata,o=p?.activeTask,m=o?.metadata?.runtime;let i;t[0]!==m?(i=S(m),t[0]=m,t[1]=i):i=t[1];const f=i,v=!!o&&!o.partial,l=o?.metadata;let a;t[2]!==e||t[3]!==l?(a=R(l,e),t[2]=e,t[3]=l,t[4]=a):a=t[4];const c=!!f||v&&!!u;let r;t[5]!==e?(r=T(e),t[5]=e,t[6]=r):r=t[6];let s;t[7]!==e?(s=k(e),t[7]=e,t[8]=s):s=t[8];let n;return t[9]!==a||t[10]!==c||t[11]!==r||t[12]!==s?(n={runtime:a,resolved:c,projectDefault:r,previewServerUrl:s},t[9]=a,t[10]=c,t[11]=r,t[12]=s,t[13]=n):n=t[13],n}export{D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a0 as f,a6 as y,m,o as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a0 as f,a6 as y,m,o as g,e as T,K as l,t as E}from"./index-Cm-Yn4q_.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,f as T,m as l,a0 as S,a6 as _,K as u,aD as O}from"./index-
|
|
1
|
+
import{c as i,f as T,m as l,a0 as S,a6 as _,K as u,aD as O}from"./index-Cm-Yn4q_.js";const R=["TASK_BOARD_DELIVERY","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_QUALITY","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function K(){const t=i.c(8),s=T({strict:!1}).org??"";let e;t[0]!==s?(e=u.taskBoardAdminOrgs(s),t[0]=s,t[1]=e):e=t[1];const n=!!s;let A;t[2]!==s?(A=()=>O(s,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=s,t[3]=A):A=t[3];let o;return t[4]!==e||t[5]!==n||t[6]!==A?(o={queryKey:e,enabled:n,queryFn:A,staleTime:3e5},t[4]=e,t[5]=n,t[6]=A,t[7]=o):o=t[7],l(o)}function a(t,s){const e=i.c(13),{locator:n}=S(),A=_();let o;e[0]!==n||e[1]!==s.from||e[2]!==s.org||e[3]!==s.to||e[4]!==t?(o=u.taskBoardAnalytics(n,t,s.org,s.from,s.to),e[0]=n,e[1]=s.from,e[2]=s.org,e[3]=s.to,e[4]=t,e[5]=o):o=e[5];let r;e[6]!==s||e[7]!==A||e[8]!==t?(r=()=>A.call(t,s),e[6]=s,e[7]=A,e[8]=t,e[9]=r):r=e[9];let c;return e[10]!==o||e[11]!==r?(c={queryKey:o,queryFn:r},e[10]=o,e[11]=r,e[12]=c):c=e[12],l(c)}export{R as A,a,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a0 as o,a6 as c,r as i,D as d,K as m}from"./index-
|
|
1
|
+
import{a0 as o,a6 as c,r as i,D as d,K as m}from"./index-Cm-Yn4q_.js";import{a as T}from"./hooks-D2YeBh8J.js";function h(e){const{org:n}=o(),r=c(),a=T(),s=i.useSyncExternalStore(a.threads.subscribe,a.threads.get),u=e===null?null:s.find(t=>t.id===e)??null,{data:l}=d({queryKey:m.ensureTask(n.id,e),queryFn:async()=>{if(e===null)return null;try{const{item:t}=await r.call("COLLECTION_THREADS_GET",{id:e});return t??null}catch{return null}},select:t=>t?.metadata??null,staleTime:3e4});return u?.metadata??l??null}export{h as u};
|
package/dist/client/assets/{use-thread-outputs-B5BUO9_U.js → use-thread-outputs-DFHmpQbO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a0 as i,m as l,K as p}from"./index-
|
|
1
|
+
import{c,a0 as i,m as l,K as p}from"./index-Cm-Yn4q_.js";import{f}from"./chat-context-DUFRp2o5.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,a0 as I,z as g,d4 as S,m,d5 as _,d6 as A,K as y,d7 as T,d8 as L,d9 as U}from"./index-
|
|
1
|
+
import{c as C,a0 as I,z as g,d4 as S,m,d5 as _,d6 as A,K as y,d7 as T,d8 as L,d9 as U}from"./index-Cm-Yn4q_.js";import{a as p,u as V,m as R}from"./use-mcp-client-DAbHG4oK.js";function $(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);return _(s.id,"VIRTUAL_MCP",l,n)}function h(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;return t[12]!==r?(a=r??[],t[12]=r,t[13]=a):a=t[13],a}function O(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=S(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let d;t[7]!==l||t[8]!==c?(d={...l,enabled:c},t[7]=l,t[8]=c,t[9]=d):d=t[9];const{data:u}=m(d);return u?.item??null}async function w(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function E(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;t[12]!==r?.items?(a=r?.items??[],t[12]=r?.items,t[13]=a):a=t[13];const P=r?.totalCount,M=r?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==M?(f={items:a,totalCount:P,hasMore:M},t[14]=a,t[15]=P,t[16]=M,t[17]=f):f=t[17],f}function k(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function v(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=y.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const d=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},M=new Map;for(const f of P.items)M.set(f.id,f);return M},t[8]=s,t[9]=i,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==d||t[13]!==u?(r={queryKey:l,enabled:d,staleTime:3e4,queryFn:u},t[11]=l,t[12]=d,t[13]=u,t[14]=r):r=t[14],c(r)}function x(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=V(e);return A(t.id,"VIRTUAL_MCP",n)}export{k as a,$ as b,x as c,O as d,h as e,w as f,v as g,E as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-kZQR6QZi.js";import{dG as i}from"./index-Cm-Yn4q_.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dl as Q,dm as y,dn as w,dp as S,dq as C,o as k,dr as x,ds as q,r as p,dt as M,du as H,dv as L,dw as P,dx as O,dy as B,dz as z}from"./index-
|
|
1
|
+
import{dl as Q,dm as y,dn as w,dp as S,dq as C,o as k,dr as x,ds as q,r as p,dt as M,du as H,dv as L,dw as P,dx as O,dy as B,dz as z}from"./index-Cm-Yn4q_.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function A(r,s,e){const t=r.slice(0);return t[s]=e,t}var T=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!w(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=S(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new C(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=A(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function U({queries:r,...s},e){const t=k(e),i=x(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new T(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((h,a)=>{const l=u[a];return l&&z({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-kZQR6QZi.js";import{dG as u,di as n}from"./index-Cm-Yn4q_.js";function i(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{i as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-Cm-Yn4q_.js";import{C as G}from"./collection-table-wrapper-Dvc9tAft.js";import{E as L}from"./empty-state-BptHyu85.js";import{S as H}from"./search-input-oOSx8rAu.js";import{A as X}from"./avatar-SVBTSz6-.js";import{B as D}from"./badge-Tw_0Gnfk.js";import{u as Z}from"./use-debounced-value-CBSXKHwV.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-Cqt3fFs7.js";import"./ArrowUp-Cr0h1eUU.js";import"./SearchMd-BboWc_8K.js";import"./User01-5UPFm-U6.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as W,s as E,i as w}from"./ZoomOut-
|
|
1
|
+
import{a as W,s as E,i as w}from"./ZoomOut-BJTVjnBu.js";import{a as j}from"./Image01-BOrVV_OY.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function G(e){return`.deco/blocks/${P(e)}.json`}const v=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function z(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function U(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function A(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function X(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:w,color:"#64748b"}:{Icon:w,color:T}}function K(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function V(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,k=s(l);let p=k.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),k.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function J(e){const t=[];for(const n of e.split(`
|
|
2
2
|
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Q(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const b=24;function Y(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>b,u=o?n.slice(s-b):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function Z(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function tt(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,G as a,L as b,v as c,C as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,am as ut}from"./index-CFyHGgGO.js";import{m as ht,Q as at,q as xt}from"./agent-icon-CP0I3VVA.js";import{L as gt}from"./label-BKtkcOfE.js";import{S as lt}from"./scroll-area-DzZiCQPZ.js";import{S as bt}from"./switch-DLx_1rQF.js";import{T as vt,c as yt,a as jt}from"./tooltip-DRlnzIQm.js";import{V as Tt}from"./view-mode-toggle-DsUGHBIV.js";import{M as ct,q as mt,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-q6dSRjGp.js";import"./AlertCircle-Cwl0Vup2.js";import"./Tool01-DUJdCnDK.js";import"./ArrowUp-rfVFZ40K.js";import"./ArrowLeft-BS1ddrpm.js";import"./ArrowRight-CCNkzW9Y.js";import"./XCircle-BBqXvE8C.js";import"./ZoomOut-DnIqLBGF.js";import"./Globe04-BkqSUJiA.js";import"./CheckCircle-5QB6sfVV.js";import"./Check-Chl3DDqT.js";import"./ChevronUp-BuAMP7GQ.js";import"./UserSquare-CsgvAwaQ.js";import"./Copy01-BwsqBYnE.js";import"./CreditCard01-BPHmR5OY.js";import"./DotsVertical-Bv4-YScE.js";import"./Download01-DyVswBhh.js";import"./Eye-BGOdKOA7.js";import"./Share07-fkd7xmY6.js";import"./XClose-Ca9S5aZc.js";import"./Image01-DXUl1blo.js";import"./Key01-CTlB38YG.js";import"./LayoutLeft-BIWXERKW.js";import"./Link01-7UJLIg0N.js";import"./LinkExternal01-DsBKvM3k.js";import"./Monitor01-D3pXjo5b.js";import"./Sun-CTx2w4hs.js";import"./Package-ImRUZcy3.js";import"./Palette-B0nQwQuz.js";import"./Plus-DxM0fEC4.js";import"./SearchLg-DCjPeF5h.js";import"./SearchMd-tkECPV7l.js";import"./Stars01-BoztdLAd.js";import"./Trash01-B-_Oqcf7.js";import"./Upload01-alz3omvs.js";import"./User01-DwcV_kyF.js";import"./Users01-DAeXmo2u.js";import"./X-BEAR-IcH.js";import"./Zap-thqSL15H.js";import"./select-rL7p93dx.js";import"./index-Dv6121Hz.js";import"./agent-view-guard-DClgQS_E.js";import"./use-main-panel-tabs-CE7T9zOX.js";import"./use-route-default-main-BqmVu7AG.js";import"./use-connection-By40b12N.js";import"./use-mcp-client-Cgrjx403.js";import"./auth-fkwwQuGR.js";import"./use-mcp-tools-CbiwxQvl.js";import"./use-virtual-mcp-DbjQS13M.js";import"./types-D4W-t3kf.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-FsdoI9gD.js";import"./github-repo-BknN0SVI.js";import"./index-CUVOFMQ0.js";import"./chat-context-bQBeY2t1.js";import"./use-panel-navigate-BHrQSu9h.js";import"./thread-route-C-J8Dvgz.js";import"./autosend-Du7-oKR0.js";import"./thread-intent-XcHSP8zW.js";import"./slugify-CEUa2lfQ.js";import"./hooks-DEf7SAIB.js";import"./backoff-8mStPHYB.js";import"./task-board-BjqJ_zE6.js";import"./schema-GryfzY0i.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Bvz6_GHn.js";import"./use-ai-providers-C4dXO9Yz.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DwM9-jMb.js";import"./use-organization-settings-ALMIpIdG.js";import"./gateway-client-Bn4ALbwj.js";import"./dialog-RGKICG4s.js";import"./drawer-B4Z-ExBx.js";import"./collection-search-CKFQt3zo.js";import"./use-mobile-B90d5ZlF.js";import"./use-mcp-prompts-PD_QSplo.js";import"./index-B-yd3uye.js";import"./form-CNnZbB2s.js";import"./input-BXe2-JP2.js";import"./org-file-open-context-CmQ30gJ0.js";import"./input-Cx-TB157.js";import"./shell-layout-D1F8kHl9.js";import"./avatar-DvLLRJ7_.js";import"./download-app-dialog-DPWfpRBg.js";import"./command-SQ6iukKb.js";import"./index-CJazvqGq.js";import"./integration-icon-DRK9pjva.js";import"./project-icon-Bqg6xA8a.js";import"./required-auth-layout-kiGhn0Fl.js";import"./use-org-sso-DXBbBboL.js";import"./chat-draft-Dw5lkxkv.js";import"./use-session-runtime-C4wBDVOy.js";import"./usage-stats-Fyuoa0E1.js";import"./use-copy-BLJCJFHS.js";import"./markdown-B9hrSGqM.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-CQkW3bOH.js";import"./use-deco-credits-1r5nuYBd.js";import"./toggle-group-D9KWjWLm.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-nDZTfkQK.js";import"./decopilot-CYIi3WEs.js";import"./checkbox-C70qRnxL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DcrAVb5K.js";import"./index-BkqcEh_k.js";import"./input-DWLaMaA_.js";import"./hooks-CdPo1Znu.js";import"./use-org-fs-DeO5Vs7G.js";import"./question-004-sINsf4GQ.js";import"./use-members-DXD-dNoi.js";import"./use-org-auth-client-PQEXc1yD.js";import"./feature-paywall-D-5vciMm.js";import"./plan-ladder-D66BgqbO.js";import"./add-connection-dialog-BdL2dPAr.js";import"./extract-connection-data-BZ3x_jRc.js";import"./metadata-D72DunRR.js";import"./connection-DdQElG6t.js";import"./connection-card-BS_OpxON.js";import"./useInfiniteQuery-C9Zty0xS.js";import"./infiniteQueryObserver-B4v_iRrA.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BaPpC4Bd.js";import"./connection-form-helpers-DZC7DBzw.js";import"./authenticate-and-persist-oauth-BogPKDev.js";import"./mcp-oauth-wOINJv40.js";import"./collection-tabs-nLUzyG3L.js";import"./badge-jSVR8IKO.js";import"./use-infinite-scroll-5IN_AQUC.js";import"./useSuspenseInfiniteQuery-CaUQs7Ct.js";import"./pair-Cj72V51B.js";import"./collapsible-CBOJskaw.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-hpUMUqH2.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-Dq_EWs2W.js";import"./use-navigate-to-agent-CUne0-cI.js";import"./use-thread-outputs-B5BUO9_U.js";import"./file-type-icon-DdSZ0ia4.js";import"./sandbox-lifecycle-context-B1H1oa0w.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-Bf-ipBBx.js";import"./use-project-native-view-presence-Y2wkBJMs.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-Dc750_n6.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-CPXCNlcx.js";import"./feature-gate-nddpwuFB.js";import"./alert-dialog-BCnbMjLm.js";import"./runnable-block-editor-CW2Atb2y.js";import"./decofile-api-DyGAd2r4.js";import"./utils-Do-NKG3l.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-EmJk9YYb.js";import"./editor-Do7ruOhn.js";import"./calendar-DL1g-R6I.js";import"./rich-text-link-control-BLDmy_gB.js";import"./search-input-SHiTlnCE.js";import"./use-debounced-value-DQiu0Px1.js";import"./asset-utils-CxMWm-Q0.js";import"./sandbox-git-api-B1R0585s.js";import"./mustache-DAjB40dp.js";import"./empty-state-B7gXx_Yh.js";import"./github-icon-ZhItaKRN.js";import"./repository-import-picker-C-ngL2qG.js";import"./repository-picker-B8J8aCKh.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Mt=new Date(-864e13),Ct=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Mt,a=s?new Date(r):Ct;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function J(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&J(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)J(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&J(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))J(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function bi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(ut,{size:16}),t[22]=M):M=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:M}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let w;t[28]!==L||t[29]!==C?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",C]}),t[28]=L,t[29]=C,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=i.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Qt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Qt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Jt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,M=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:M,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,Q),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:Q},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let M;t[13]!==x||t[14]!==u?(M=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=M):M=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==M||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,M,$]}),t[16]=k,t[17]=M,t[18]=$,t[19]=L):L=t[19];let C;return t[20]!==b||t[21]!==L?(C=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=C):C=t[22],C}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{bi as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,am as ut}from"./index-Cm-Yn4q_.js";import{m as ht,Q as at,q as xt}from"./agent-icon-4F7jSNEB.js";import{L as gt}from"./label-Cq0XOqve.js";import{S as lt}from"./scroll-area-D5XoGWja.js";import{S as bt}from"./switch-BJbkn4iq.js";import{T as vt,c as yt,a as jt}from"./tooltip-Bja45eMa.js";import{V as Tt}from"./view-mode-toggle-B2-sm_tc.js";import{M as ct,q as mt,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-DCyPeHZN.js";import"./AlertCircle-Da3tM0gY.js";import"./Tool01-CwUt8jvw.js";import"./ArrowUp-Cr0h1eUU.js";import"./ArrowLeft-EJr-YqTg.js";import"./ArrowRight-CdK41xWy.js";import"./XCircle-ClHynDO9.js";import"./ZoomOut-BJTVjnBu.js";import"./Globe04-ClJkKQrs.js";import"./CheckCircle-5We5Va5L.js";import"./Check-BgFwywFf.js";import"./ChevronUp-dgPQkcdv.js";import"./UserSquare-C_2Z4y9_.js";import"./Copy01-CMHlAzgS.js";import"./CreditCard01-DCgVn3oV.js";import"./DotsVertical-C9TkkMfe.js";import"./Download01-ChBwr6yr.js";import"./Eye-D5VumA7M.js";import"./Share07-CbepO2bZ.js";import"./XClose-XZQSLHM2.js";import"./Image01-BOrVV_OY.js";import"./Key01-CyjVKKuN.js";import"./LayoutLeft-C-Lx98x9.js";import"./Link01-C5bvI0ok.js";import"./LinkExternal01-7ZLNL_9s.js";import"./Monitor01-CTvO6He0.js";import"./Sun--XqnAA9t.js";import"./Package-zC5cSGJD.js";import"./Palette-Hb6mROVB.js";import"./Plus-C6g4VoC2.js";import"./SearchLg-CF0JjYPh.js";import"./SearchMd-BboWc_8K.js";import"./Stars01-BSCYhMLo.js";import"./Trash01-bzV9Pa75.js";import"./Upload01-DKLqc8wc.js";import"./User01-5UPFm-U6.js";import"./Users01-CBoZFJLg.js";import"./X-i7IpcK8C.js";import"./Zap-13Bw0A-o.js";import"./select-Dyq1d0JF.js";import"./index-G_4wgESR.js";import"./agent-view-guard-DRtIvPWQ.js";import"./use-main-panel-tabs-T0Kvslcy.js";import"./use-route-default-main-Cpujna-F.js";import"./use-connection-BNw2MaMd.js";import"./use-mcp-client-DAbHG4oK.js";import"./auth-BJh0XKDc.js";import"./use-mcp-tools-B9HxU8OQ.js";import"./use-virtual-mcp-joDFMrl3.js";import"./types-imD2hCXv.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-DNhflWSF.js";import"./github-repo-BknN0SVI.js";import"./index-Dd7WwYBf.js";import"./chat-context-DUFRp2o5.js";import"./use-panel-navigate-BZ20L_1u.js";import"./thread-route-RnLVS5MF.js";import"./autosend-BhoAi_fW.js";import"./thread-intent-EyHIlLf5.js";import"./slugify-CEUa2lfQ.js";import"./hooks-D2YeBh8J.js";import"./backoff-8mStPHYB.js";import"./task-board-D_YhOLZh.js";import"./schema-CfWSVtg9.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CfU3YoB8.js";import"./use-ai-providers-VJDsVUMj.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-EQT-Ff7p.js";import"./use-organization-settings-aVVw0VfM.js";import"./gateway-client-3gBYEcvM.js";import"./dialog-MzmGuLy9.js";import"./drawer-Cv924bvf.js";import"./collection-search-Dz6UsoEM.js";import"./use-mobile-BlhybxdO.js";import"./use-mcp-prompts-Dqrno6f9.js";import"./index-Clt0_ml3.js";import"./form-C4j126KK.js";import"./input-BqjhD7MF.js";import"./org-file-open-context-lYlEwrS6.js";import"./input-8i6Bk9mS.js";import"./shell-layout-mxurnlT8.js";import"./avatar-SVBTSz6-.js";import"./download-app-dialog-CDDWmfdP.js";import"./command-BMFq9nQJ.js";import"./index-D4cAPfDs.js";import"./integration-icon-BPXGYcG_.js";import"./project-icon-7mHVCrAj.js";import"./required-auth-layout-Dx8h2y43.js";import"./use-org-sso-CaeEbX_L.js";import"./chat-draft-NKFUt1rK.js";import"./use-session-runtime-ttdCX595.js";import"./usage-stats-DL6Mxcqj.js";import"./use-copy-CeHMXkmI.js";import"./markdown-BXZJduYq.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-DfTLJ-n_.js";import"./use-deco-credits-C6itQLFB.js";import"./toggle-group-CHLe_ngX.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-Clbiqv9s.js";import"./decopilot-tLRiBCr4.js";import"./checkbox-D0AAAikP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-0yOMUN9V.js";import"./index-DDt-mfSn.js";import"./input-IyrqyofH.js";import"./hooks-B23Jg659.js";import"./use-org-fs-Dm0MOI2N.js";import"./question-004-sINsf4GQ.js";import"./use-members-CX4Ep53P.js";import"./use-org-auth-client-0lE24BYR.js";import"./feature-paywall-CftG_N1J.js";import"./plan-ladder-CuzeFHa4.js";import"./add-connection-dialog-BB4K9AtD.js";import"./extract-connection-data-DNxvULAk.js";import"./metadata-D72DunRR.js";import"./connection-Bu_kYZuh.js";import"./connection-card-BR0rWuUi.js";import"./useInfiniteQuery-ApIt4V4o.js";import"./infiniteQueryObserver-kZQR6QZi.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DwEKjGZF.js";import"./connection-form-helpers-glicOBfm.js";import"./authenticate-and-persist-oauth-DwKiV4n5.js";import"./mcp-oauth-DpctXbyl.js";import"./collection-tabs-CstWw66H.js";import"./badge-Tw_0Gnfk.js";import"./use-infinite-scroll-CcnUJvw1.js";import"./useSuspenseInfiniteQuery-Vryw3RBz.js";import"./pair-BEtEaRoT.js";import"./collapsible-BQcY6rPc.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-znNhYyyo.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-4N_7bh_n.js";import"./use-navigate-to-agent-UrDQ1j_Y.js";import"./use-thread-outputs-DFHmpQbO.js";import"./file-type-icon-D1D8leoE.js";import"./sandbox-lifecycle-context-BfjBaS4k.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-CIrvVpnI.js";import"./use-project-native-view-presence-B8m71d1U.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DV2TLqWx.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-C5gMOVS_.js";import"./feature-gate-B9rqGCJb.js";import"./alert-dialog-DAmr19x7.js";import"./runnable-block-editor-CTtbEokq.js";import"./decofile-api-DgTLnV1u.js";import"./utils-DjeQFU_k.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-D1EuV3RH.js";import"./editor-zW3jvuax.js";import"./calendar-PjjlUwcV.js";import"./rich-text-link-control-B3amDY-g.js";import"./search-input-oOSx8rAu.js";import"./use-debounced-value-CBSXKHwV.js";import"./asset-utils-DtY2LEWI.js";import"./sandbox-git-api-B1R0585s.js";import"./mustache-LQdueZ7J.js";import"./empty-state-BptHyu85.js";import"./github-icon-l7M1zEUL.js";import"./repository-import-picker-fxShIRss.js";import"./repository-picker-df_kLebP.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Mt=new Date(-864e13),Ct=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Mt,a=s?new Date(r):Ct;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function J(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&J(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)J(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&J(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))J(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function bi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(ut,{size:16}),t[22]=M):M=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:M}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let w;t[28]!==L||t[29]!==C?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",C]}),t[28]=L,t[29]=C,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=i.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Qt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Qt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Jt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,M=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:M,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,Q),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:Q},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let M;t[13]!==x||t[14]!==u?(M=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=M):M=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==M||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,M,$]}),t[16]=k,t[17]=M,t[18]=$,t[19]=L):L=t[19];let C;return t[20]!==b||t[21]!==L?(C=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=C):C=t[22],C}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{bi as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as f,H as $}from"./runnable-block-editor-
|
|
1
|
+
import{G as f,H as $}from"./runnable-block-editor-CTtbEokq.js";const l="x-deco-matchers-override";function h({pageKey:a,prefix:r,variants:t,selectedIndex:n,decofile:i,meta:s}){if(!a||n<0||n>=t.length)return[];const o=[];for(let e=0;e<=n;e++){const u=t[e];if(!u)continue;const c=u.rule,v=e===n?"1":"0",d=(f(c,i,s)?$(c,i,s):null)??`${a}@${r}.${e}.rule`;o.push(`${d}=${v}`)}return o}function B(a,r,t,n){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:a,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:n})}function P({pageKey:a,page:r,sectionIndex:t,sectionLazy:n,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${n?".section":""}.variants`,v=Array.isArray(i.variants)?i.variants:[];return h({pageKey:a,prefix:c,variants:v,selectedIndex:s,decofile:o,meta:e})}function x(a,r){if(r.length===0)return a;try{const t=new URL(a,"http://local");t.searchParams.delete(l);for(const n of r)t.searchParams.append(l,n);return a.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return a}}export{P as a,B as b,x as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,r as T,l as d,j as i}from"./index-
|
|
1
|
+
import{c as $,r as T,l as d,j as i}from"./index-Cm-Yn4q_.js";import{c as k,T as I,a as P}from"./tooltip-Bja45eMa.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,b=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[f,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=d("relative flex gap-0 bg-muted classic:rounded-lg compact:rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:d("relative z-10 flex items-center justify-center gap-2 classic:rounded-lg compact:rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?d(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:d("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:d("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let c;t[14]!==w?(c=d("absolute z-0 bg-background classic:rounded-lg compact:rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=c):c=t[15];const W=`${f.left}px`,N=`${f.width}px`;let r;t[16]!==f.opacity||t[17]!==W||t[18]!==N?(r={left:W,width:N,opacity:f.opacity},t[16]=f.opacity,t[17]=W,t[18]=N,t[19]=r):r=t[19];let u;t[20]!==c||t[21]!==r?(u=i.jsx("div",{className:c,style:r}),t[20]=c,t[21]=r,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
|