decocms 4.447.1 → 4.449.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-Dsxcywwk.js → AlertCircle-Bx6Xy-Kw.js} +1 -1
- package/dist/client/assets/{AreaChart-BzkZYIYf.js → AreaChart-DQ7VB4Rk.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CUAoXnBl.js → ArrowLeft-BBlLaPEb.js} +1 -1
- package/dist/client/assets/{ArrowUp-DvEWAQS1.js → ArrowUp-Dr4dZUTV.js} +1 -1
- package/dist/client/assets/{Building02-DQSa0aPk.js → Building02-qqUg_lk7.js} +1 -1
- package/dist/client/assets/{CartesianChart-C_rbOUc_.js → CartesianChart-2IJlIK54.js} +1 -1
- package/dist/client/assets/{Check-CzhgdtoZ.js → Check-BhHmW1CL.js} +1 -1
- package/dist/client/assets/{CheckCircle-48zzWb5o.js → CheckCircle-DQ_Iwx7G.js} +1 -1
- package/dist/client/assets/{ChevronUp-bPHHer4a.js → ChevronUp-C6nGgzcV.js} +1 -1
- package/dist/client/assets/{Copy01-DK-rveWk.js → Copy01-1J_cPh43.js} +1 -1
- package/dist/client/assets/{CreditCard01-Bv4apDUd.js → CreditCard01-CZJLSW5h.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cz9DnVkj.js → DotsVertical-DMzCTdNT.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CAdF3KX1.js → ErrorBarContext-BsMO1nqd.js} +1 -1
- package/dist/client/assets/{Image01-DkSAzjSu.js → Image01-VqGHD62D.js} +1 -1
- package/dist/client/assets/{Key01-2_VP-ymA.js → Key01-3kquwPFB.js} +1 -1
- package/dist/client/assets/{Line-BEPKdvRr.js → Line-C3wcRFDr.js} +1 -1
- package/dist/client/assets/{Link01-CBIFqZsw.js → Link01-ZJZ8YMCs.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CyPIuvAF.js → LinkBroken01-DLTNdGdq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D20IL3CN.js → LinkExternal01-ByTglQMD.js} +1 -1
- package/dist/client/assets/{Monitor01-WwJ1rHPk.js → Monitor01-CjCwBipo.js} +1 -1
- package/dist/client/assets/{Palette-jHJa2pFE.js → Palette-DItfN1RT.js} +1 -1
- package/dist/client/assets/{Plus-BvxsRY-0.js → Plus-jU4D0ULX.js} +1 -1
- package/dist/client/assets/{SearchMd-CHmk5GD6.js → SearchMd-yUpDH67q.js} +1 -1
- package/dist/client/assets/{Sector-BZGQzXCu.js → Sector-DADH10bp.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D0N-Vb4c.js → ShoppingBag01-BnqPHk8-.js} +1 -1
- package/dist/client/assets/{Sun-7ajd25ZV.js → Sun-G5YUTpKk.js} +1 -1
- package/dist/client/assets/{Tool01-DetpIMtk.js → Tool01-DQZj0rVc.js} +1 -1
- package/dist/client/assets/{Trash01-DKbCrUTj.js → Trash01-CfWaytgc.js} +1 -1
- package/dist/client/assets/{Upload01-BBKhvCnt.js → Upload01-ca0GgR0P.js} +1 -1
- package/dist/client/assets/{User01-D2Lmw0ef.js → User01-BJgSr0na.js} +1 -1
- package/dist/client/assets/{UserSquare-CuUPyuma.js → UserSquare-DubBIV3t.js} +1 -1
- package/dist/client/assets/{Users01-DsJzDkrr.js → Users01-BI4qzwEi.js} +1 -1
- package/dist/client/assets/{X-ateu7dRb.js → X-4SjHAUB6.js} +1 -1
- package/dist/client/assets/{XAxis-o5Dc22O9.js → XAxis-6QdhlFSd.js} +1 -1
- package/dist/client/assets/{XClose-Chbrrnow.js → XClose-B5gtMDn3.js} +1 -1
- package/dist/client/assets/{ZoomOut-Bt3p5CRf.js → ZoomOut-o5Bj_0k0.js} +1 -1
- package/dist/client/assets/{access-gate-Uqlikjgu.js → access-gate-CVOkVcAR.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-B0L-P2sh.js → add-connection-dialog-C9teNzj3.js} +1 -1
- package/dist/client/assets/{agent-analytics-BFb91OPU.js → agent-analytics-pnZ5kkw4.js} +1 -1
- package/dist/client/assets/agent-app-Bmq8mE4b.js +1 -0
- package/dist/client/assets/{agent-assets-CLxww7C0.js → agent-assets-CkTPoTPt.js} +1 -1
- package/dist/client/assets/{agent-automation-CIS8quGB.js → agent-automation-IkGTi12K.js} +3 -3
- package/dist/client/assets/agent-automations-CeOlf6kC.js +1 -0
- package/dist/client/assets/{agent-connect-sources-BwAWjblO.js → agent-connect-sources-CE8WWO21.js} +1 -1
- package/dist/client/assets/agent-deck-ChJEzNvh.js +1 -0
- package/dist/client/assets/{agent-e2e-BaIs1jb9.js → agent-e2e-CqzK8bNw.js} +1 -1
- package/dist/client/assets/{agent-experiments-1jqEeSlQ.js → agent-experiments-y5AB7gNs.js} +1 -1
- package/dist/client/assets/{agent-file-53hFn7yw.js → agent-file-CaQOAUU8.js} +1 -1
- package/dist/client/assets/{agent-git-CTTGxwmS.js → agent-git-B3hEpRLE.js} +1 -1
- package/dist/client/assets/{agent-hosting--ETESSTx.js → agent-hosting-k179Ejew.js} +1 -1
- package/dist/client/assets/{agent-icon-BRxvZRmN.js → agent-icon-Plx0vVQZ.js} +1 -1
- package/dist/client/assets/agent-library-DCzTnvza.js +1 -0
- package/dist/client/assets/agent-library-file-DtqKvoz2.js +1 -0
- package/dist/client/assets/{agent-monitor-BILhL5_y.js → agent-monitor-_UheQa-B.js} +1 -1
- package/dist/client/assets/{agent-overview-DZ3BLKKZ.js → agent-overview-bLRGU593.js} +1 -1
- package/dist/client/assets/agent-settings-BFm3cinJ.js +1 -0
- package/dist/client/assets/{agent-site-editor-BL5gelUr.js → agent-site-editor-DVenLdmy.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bux6lvrY.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-BopCmF1V.js → agent-site-editor-content-GMuyS7LS.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CvTzIzXq.js → agent-site-editor-preview-fQwmql9B.js} +3 -3
- package/dist/client/assets/agent-view-CLwrYt4k.js +1 -0
- package/dist/client/assets/{agent-view-guard-C9ItTzPi.js → agent-view-guard-BwrmGLlw.js} +1 -1
- package/dist/client/assets/{agents-list-COSLVvDS.js → agents-list-C3sXvejj.js} +1 -1
- package/dist/client/assets/{ai-providers-BCvug74N.js → ai-providers-CedLyqka.js} +1 -1
- package/dist/client/assets/{alert-DsodQpgY.js → alert-FpVcsSTC.js} +1 -1
- package/dist/client/assets/{alert-dialog-Dr37XaeA.js → alert-dialog-CRVM-23V.js} +1 -1
- package/dist/client/assets/{analytics-sections-DbtkycCZ.js → analytics-sections-rbnTnuvD.js} +1 -1
- package/dist/client/assets/api-keys-41OcNRfF.js +1 -0
- package/dist/client/assets/{api-keys-DAccLTlD.js → api-keys-COeksGyn.js} +1 -1
- package/dist/client/assets/app-editor-C0HEp9TR.js +1 -0
- package/dist/client/assets/{asset-utils-CEMW7jjJ.js → asset-utils-BZ8WEgo_.js} +1 -1
- package/dist/client/assets/{auth-qAvZ1LNt.js → auth-BhL4Ae7M.js} +1 -1
- package/dist/client/assets/{auth-catchall--nnHYbyR.js → auth-catchall-CwYBELfP.js} +1 -1
- package/dist/client/assets/{auth-entry-Dc4OnWLn.js → auth-entry-AWWhawM-.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Co7x06Lg.js → auth-split-layout-DKZlsvJh.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bm9fWsOa.js → authenticate-and-persist-oauth-CM_sd9mo.js} +1 -1
- package/dist/client/assets/{automation-list-row-CqDXRJhE.js → automation-list-row-BaZJos7Z.js} +1 -1
- package/dist/client/assets/{automation-runs-bvqul2ks.js → automation-runs-D8nbfNRi.js} +1 -1
- package/dist/client/assets/{automations-Jd1l1G4G.js → automations-CSz4StRo.js} +1 -1
- package/dist/client/assets/{autosend-BrczLssG.js → autosend-CtvAncuN.js} +1 -1
- package/dist/client/assets/{avatar-Be2YP03d.js → avatar-ZtrZA-xC.js} +1 -1
- package/dist/client/assets/{badge-BbkeIMgp.js → badge-B0eiYJhc.js} +1 -1
- package/dist/client/assets/{block-document-Df24gcAz.js → block-document-BceCRczU.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CeDfLC0U.js → blocks-preview-workspace-context-CHwgOgkC.js} +1 -1
- package/dist/client/assets/blog-schema-CswZLK88.js +1 -0
- package/dist/client/assets/{buckets-9WzbA5Lg.js → buckets-Gs1fVclo.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Cp9ERAt-.js → build-improve-prompt-doc-Cb05TlMk.js} +1 -1
- package/dist/client/assets/{calendar-B6jARNSc.js → calendar-Cwshzk8E.js} +1 -1
- package/dist/client/assets/{capability-load-error-DPnEcJx5.js → capability-load-error-CV82KOmw.js} +1 -1
- package/dist/client/assets/category-editor-BVh5TSwx.js +1 -0
- package/dist/client/assets/{chart-DQLuV_FI.js → chart-DQHWQ1kS.js} +1 -1
- package/dist/client/assets/{chat-context-Bf1EEUa_.js → chat-context-CW-2SJ9g.js} +1 -1
- package/dist/client/assets/{chat-draft-D0DwqSRP.js → chat-draft-CwKaZkWY.js} +1 -1
- package/dist/client/assets/{checkbox-GjKetutN.js → checkbox-Cs5VXlL7.js} +1 -1
- package/dist/client/assets/{choose-editor-CCuyU2RH.js → choose-editor-DYyB77HH.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-qcCOlkIz.js → claim-phase-copy-CLVpoo-M.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B9a1R8wa.js → cli-auth-success-QlGAkecU.js} +1 -1
- package/dist/client/assets/{client-icons-C4EJJI6g.js → client-icons-B_Vdp-aH.js} +1 -1
- package/dist/client/assets/{collapsible-C3DyD3IY.js → collapsible-taXF9Vin.js} +1 -1
- package/dist/client/assets/{collection-detail-4z7JbQw1.js → collection-detail-Dj6LHA84.js} +1 -1
- package/dist/client/assets/{collection-display-button-C0cLpFRb.js → collection-display-button-oMAXeg11.js} +1 -1
- package/dist/client/assets/{collection-search-qakQR89K.js → collection-search-De8chpSh.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-4oDVKFGl.js → collection-table-wrapper-yQxCbZDl.js} +1 -1
- package/dist/client/assets/{collection-tabs-CJy8rHXV.js → collection-tabs-2Nn5b0UJ.js} +1 -1
- package/dist/client/assets/{column-rules-DMmszLDK.js → column-rules-NVsxdRkm.js} +1 -1
- package/dist/client/assets/{combobox-CKdv5r-2.js → combobox-uWP-A1cr.js} +1 -1
- package/dist/client/assets/{command-CNDsxgwl.js → command-Dj5wxXJe.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-bUkIE-gG.js → companion-mcps-section-DGa0mzqM.js} +1 -1
- package/dist/client/assets/{config-BFtdxgOC.js → config-CNoTk6kM.js} +1 -1
- package/dist/client/assets/{connect-C_Bx49BR.js → connect-CnaN_058.js} +1 -1
- package/dist/client/assets/{connect-layout-clJE61fN.js → connect-layout-1nOF0djv.js} +1 -1
- package/dist/client/assets/{connection-KyEHQxp9.js → connection-DCZz5J1M.js} +1 -1
- package/dist/client/assets/{connection-card-XVRQmb88.js → connection-card-DaZTNpcS.js} +1 -1
- package/dist/client/assets/{connection-detail-qTgpDNX7.js → connection-detail-BZEZF1y2.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Bz949-9G.js → connection-form-helpers-Dyc97_iQ.js} +1 -1
- package/dist/client/assets/{connections-R5S4BIDs.js → connections-DwyQu0E5.js} +1 -1
- package/dist/client/assets/context-Hy9lD2FY.js +1 -0
- package/dist/client/assets/{context-menu-BElFzhuX.js → context-menu-D4sB9rRV.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DKdoNuXz.js → create-organization-dialog-BPk6MpO6.js} +1 -1
- package/dist/client/assets/daily-pulse-jC7QtChD.js +1 -0
- package/dist/client/assets/{decopilot-D0L_iZDN.js → decopilot-CcCmg-UE.js} +1 -1
- package/dist/client/assets/{device-hint-BHJC54cI.js → device-hint-DFIHePB4.js} +1 -1
- package/dist/client/assets/{dialog-CSMrPqBB.js → dialog-DUkVOZIE.js} +1 -1
- package/dist/client/assets/{discover-DDLMC3cx.js → discover-PHqRmlAb.js} +1 -1
- package/dist/client/assets/{domain-settings-Cr2aZAf_.js → domain-settings-DC07Bwzh.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DegRrl-D.js → download-app-dialog-VBK5SfsW.js} +1 -1
- package/dist/client/assets/{drawer-DamNEeFr.js → drawer-BE8-rjnv.js} +1 -1
- package/dist/client/assets/{editor-D-2XKeKJ.js → editor-Bicb4Bqw.js} +1 -1
- package/dist/client/assets/{empty-state-DfF0wZnW.js → empty-state-CGgBiEoz.js} +1 -1
- package/dist/client/assets/{empty-state-e8q1K35w.js → empty-state-Lw6BWO66.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Yv51Ip2F.js → extract-connection-data-BqvnWkg5.js} +1 -1
- package/dist/client/assets/{feature-gate-Dj2ZsmzR.js → feature-gate-BIe5gsHR.js} +1 -1
- package/dist/client/assets/{feature-paywall-DK7jIYwT.js → feature-paywall-DGxl3PI8.js} +1 -1
- package/dist/client/assets/{file-explorer-CfxW2_sL.js → file-explorer-DuE7CaLg.js} +1 -1
- package/dist/client/assets/{file-preview-ODrawZXt.js → file-preview-DwqtznxG.js} +1 -1
- package/dist/client/assets/{file-share-button-DT9bUw3x.js → file-share-button-CGad6pvg.js} +2 -2
- package/dist/client/assets/{file-type-icon-Bv7OJA49.js → file-type-icon-CideAigq.js} +1 -1
- package/dist/client/assets/flat-project-BXD7xaS4.js +1 -0
- package/dist/client/assets/{folder-icon-DGqv3QUB.js → folder-icon-C5v3kOW1.js} +1 -1
- package/dist/client/assets/{form-BJXkrxaF.js → form-esFIz8cn.js} +1 -1
- package/dist/client/assets/{gateway-client-9xfivYUp.js → gateway-client-DdEB-W_0.js} +1 -1
- package/dist/client/assets/{general-BP_QzpXy.js → general-C9QQwa7q.js} +1 -1
- package/dist/client/assets/home-DHdEzmGE.js +1 -0
- package/dist/client/assets/{icon-button-C4oA9vAv.js → icon-button-BpPbhU8u.js} +1 -1
- package/dist/client/assets/{index-DbabGxy6.js → index-B1zctMWM.js} +6 -6
- package/dist/client/assets/{index-rVMtfSUP.js → index-BP-g_hO2.js} +9 -9
- package/dist/client/assets/{index-CTYuweYZ.js → index-BtEM8a9F.js} +1 -1
- package/dist/client/assets/{index-CXm3YShm.js → index-CFflVJHI.js} +1 -1
- package/dist/client/assets/{index-Bj6rDen7.js → index-CKkIU_55.js} +1 -1
- package/dist/client/assets/{index-DNU42V4k.js → index-CazcJ_7a.js} +1 -1
- package/dist/client/assets/{index-Dy0RWBgm.js → index-Cbn4vfz_.js} +1 -1
- package/dist/client/assets/{index-C46RwiKZ.js → index-CfCqm3c8.js} +1 -1
- package/dist/client/assets/{index-CDt6WI9m.js → index-DCuYoDHT.js} +1 -1
- package/dist/client/assets/{index-Il2w9u7T.js → index-DD7q2zTd.js} +1 -1
- package/dist/client/assets/{index-CecxwC7F.js → index-De_dnJRN.js} +1 -1
- package/dist/client/assets/{index-DbpjHDZh.js → index-_Pfw1M40.js} +1 -1
- package/dist/client/assets/{index-CEGt2PRu.js → index-km7ID5lM.js} +1 -1
- package/dist/client/assets/{index-DK0Dq4zJ.js → index-pCZVwBrG.js} +1 -1
- package/dist/client/assets/{index-redirect-CsG08aDH.js → index-redirect-DJCpFh35.js} +1 -1
- package/dist/client/assets/{index-4hz_47mP.js → index-wBJ7lMpR.js} +5 -5
- package/dist/client/assets/{infiniteQueryObserver-yDX2PlMf.js → infiniteQueryObserver-BBgKyTli.js} +1 -1
- package/dist/client/assets/{infra-billing-CsnOWCZW.js → infra-billing-CT-SKwYV.js} +1 -1
- package/dist/client/assets/{input-DV9TXIhc.js → input-B3HVl7By.js} +1 -1
- package/dist/client/assets/{input-fdBI3UiD.js → input-D1BEXHTl.js} +1 -1
- package/dist/client/assets/{input-DGumA8Me.js → input-DsxQztmQ.js} +7 -7
- package/dist/client/assets/{integration-icon-CFV7KR9Q.js → integration-icon-B97YfXXZ.js} +1 -1
- package/dist/client/assets/{label-CaVwbUwP.js → label-Be_7Vms5.js} +1 -1
- package/dist/client/assets/{layout-Cn4gYBB0.js → layout-HR14oaFC.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CImQMpuD.js → legacy-agents-deep-Cg0ho0FK.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-pPc22tCf.js → legacy-main-redirect-B_6vW12N.js} +1 -1
- package/dist/client/assets/library-BbAPgXkD.js +1 -0
- package/dist/client/assets/{library-tab-DzLJVAy7.js → library-tab-tJXLlybm.js} +1 -1
- package/dist/client/assets/{login-9E08_289.js → login-DaVQiw7H.js} +1 -1
- package/dist/client/assets/{markdown-BFRBcVyc.js → markdown-BSYuVrvS.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-2vEnBSMK.js → mcp-app-renderer-BuJCA9WL.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DPBTzzM-.js → mcp-oauth-Dt9pIBq5.js} +1 -1
- package/dist/client/assets/{members-4taneDvj.js → members-CHSwnC7s.js} +1 -1
- package/dist/client/assets/{memory-ihVMY_AG.js → memory-y99QmzFe.js} +1 -1
- package/dist/client/assets/{message-templates-DZjeVSbL.js → message-templates-xF6Z-DZJ.js} +1 -1
- package/dist/client/assets/{mini-report-page-DtLYvRQ1.js → mini-report-page-CFRqMuFT.js} +1 -1
- package/dist/client/assets/{mock-board-CwpnFESF.js → mock-board-BD3qTGYo.js} +1 -1
- package/dist/client/assets/{monaco-editor-CTBaCfme.js → monaco-editor-BXK3f-Og.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BkHIbumL.js → monitoring-stats-row-IHl-mX1g.js} +1 -1
- package/dist/client/assets/{multi-select-Z8b5GDV-.js → multi-select-DGgRKpc4.js} +1 -1
- package/dist/client/assets/{mustache-B8Ea1V5C.js → mustache-Cgurdydm.js} +1 -1
- package/dist/client/assets/{new-project-dialog-B-Knb9QQ.js → new-project-dialog-BMehfxLv.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-aQAEhewW.js → oauth-callback-ai-provider-k4dNzBd0.js} +1 -1
- package/dist/client/assets/{oauth-callback-C8PRuTdi.js → oauth-callback-pqa-Hyt-.js} +1 -1
- package/dist/client/assets/{onboarding-CQwAJGam.js → onboarding-Dp8GO7az.js} +1 -1
- package/dist/client/assets/{openai-conversation-BieePbjd.js → openai-conversation-oneJt9QR.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BjQNVvvG.js → optimistic-project-sidebar-views-DDETX0mx.js} +1 -1
- package/dist/client/assets/{org-file-open-context-DOjVu33M.js → org-file-open-context-2kSVNzGe.js} +1 -1
- package/dist/client/assets/{organization-choice-DGHtNB__.js → organization-choice-Di3lf1DM.js} +1 -1
- package/dist/client/assets/{orgs-CrnZIBKQ.js → orgs-BXBqBecG.js} +1 -1
- package/dist/client/assets/{page-seo-form-Cz3um724.js → page-seo-form-B-vBxb4j.js} +1 -1
- package/dist/client/assets/{pair-28ek-gGQ.js → pair-bDKRTMqu.js} +7 -7
- package/dist/client/assets/{plan-ladder-CyI_9DNH.js → plan-ladder-CfA0FpAL.js} +1 -1
- package/dist/client/assets/{popover-DpWUGKUo.js → popover-DwQza7Ap.js} +1 -1
- package/dist/client/assets/{post-calendar-DeYBTRsx.js → post-calendar-CM-j2TVF.js} +1 -1
- package/dist/client/assets/post-editor-DzeGxIPl.js +2 -0
- package/dist/client/assets/{preview-content-CnVo4-8-.js → preview-content-b2Kfd0ih.js} +1 -1
- package/dist/client/assets/{preview-dialog-DIfOL8lf.js → preview-dialog-7_zN433M.js} +1 -1
- package/dist/client/assets/{profile-BHIo5II1.js → profile-DH3xvW4M.js} +1 -1
- package/dist/client/assets/{project-app-view-DSWQ2xlW.js → project-app-view-8XHhP-21.js} +1 -1
- package/dist/client/assets/{project-feed-BuwrAz5D.js → project-feed-C4R5QRpx.js} +1 -1
- package/dist/client/assets/{project-icon-B2QkPtkD.js → project-icon-0knrxIOw.js} +1 -1
- package/dist/client/assets/project-reports-BrIp72jF.js +1 -0
- package/dist/client/assets/project-tasks-DV-ii699.js +1 -0
- package/dist/client/assets/{projects-CeBBjzLS.js → projects-ZExDUw0W.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DqQWmR8c.js → projects-empty-state-BSpE0Riy.js} +1 -1
- package/dist/client/assets/{prompts-DMHqwjaa.js → prompts-BLBkOl8v.js} +1 -1
- package/dist/client/assets/record-editor-ziqyGjSB.js +1 -0
- package/dist/client/assets/{redirect-editor-VS53IAor.js → redirect-editor-BVFm9u4z.js} +1 -1
- package/dist/client/assets/reports-3EyuS8J8.js +1 -0
- package/dist/client/assets/{reports-CRnJns1V.js → reports-DSK9pInf.js} +1 -1
- package/dist/client/assets/{reports-onboarding-iY5NlXnv.js → reports-onboarding-BGpMVdJb.js} +1 -1
- package/dist/client/assets/{reports-tab-CjdgNBIh.js → reports-tab-DOaYQIgv.js} +2 -2
- package/dist/client/assets/{repositories-By85nJ-O.js → repositories-9mNfLfC6.js} +1 -1
- package/dist/client/assets/{repository-binding-DST5BjAq.js → repository-binding-DB3Rsfan.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Cefyzn5z.js → repository-import-picker-DyQqkMVo.js} +1 -1
- package/dist/client/assets/{repository-picker-DIYtkoGR.js → repository-picker-BhN42NYE.js} +1 -1
- package/dist/client/assets/{require-capability-Cgz4k3Fi.js → require-capability-T865QzND.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Sm_LEIrf.js → required-auth-layout-BhtMSUK8.js} +1 -1
- package/dist/client/assets/{reset-password-BwpS-xL5.js → reset-password-DknJZEoY.js} +1 -1
- package/dist/client/assets/{resizable-Dd8Oiyrn.js → resizable-Cl5uhslg.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-BJxTAEQQ.js +1 -0
- package/dist/client/assets/{review-settings-3T-TH-W9.js → review-settings-CMvo0pRC.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CO6qXsgG.js → rich-text-link-control-CzOQrdNt.js} +1 -1
- package/dist/client/assets/{roles-BxZ_96io.js → roles-Bvw2DL9o.js} +1 -1
- package/dist/client/assets/route-BRK2g0Ok.js +1 -0
- package/dist/client/assets/{route-BWoA72Ha.js → route-BqhdkgCD.js} +1 -1
- package/dist/client/assets/{route-MgE6XCPe.js → route-Dq4tC8Qc.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-0DsB0lC3.js → runnable-block-editor-CU4DL_Np.js} +4 -4
- package/dist/client/assets/{sandbox-lifecycle-context-ZoWZCIt3.js → sandbox-lifecycle-context-CCWi8UrE.js} +1 -1
- package/dist/client/assets/{schema-BD3Ue3jK.js → schema-CtVpxfN8.js} +1 -1
- package/dist/client/assets/{scroll-area-C1UEqWPg.js → scroll-area-DTVFcTe4.js} +1 -1
- package/dist/client/assets/{search-input-uE9X4-9v.js → search-input-B7esxZLr.js} +1 -1
- package/dist/client/assets/{search-toggle-BgK-oFXG.js → search-toggle-BmdAS9S4.js} +1 -1
- package/dist/client/assets/{secret-picker-DpiORdM4.js → secret-picker-BV1iDD76.js} +1 -1
- package/dist/client/assets/{secrets-CG0o7p-Z.js → secrets-D9_ygYCx.js} +1 -1
- package/dist/client/assets/{sections-editor-mB_t7BGu.js → sections-editor-BOruSM_E.js} +1 -1
- package/dist/client/assets/{select-DOq28vkW.js → select-CCPnfgQ9.js} +1 -1
- package/dist/client/assets/{select-model-BvwOHBLi.js → select-model-8KGpYG78.js} +1 -1
- package/dist/client/assets/{seo-editor-te_rCW-y.js → seo-editor-C0NKkdi0.js} +1 -1
- package/dist/client/assets/{separator-BQGbPFWO.js → separator-CWugGQbc.js} +1 -1
- package/dist/client/assets/{settings-tab-h8YLdZG4.js → settings-tab-DRo0WDQp.js} +1 -1
- package/dist/client/assets/{sheet-CAPBfpxY.js → sheet-BHMUXURV.js} +1 -1
- package/dist/client/assets/{shell-layout-D3hbXuJp.js → shell-layout-XTP1Kn60.js} +1 -1
- package/dist/client/assets/{skills-bn8hfZhY.js → skills-E3OyU2oM.js} +1 -1
- package/dist/client/assets/{sso-B2mfdHDN.js → sso-BZQj7YFV.js} +1 -1
- package/dist/client/assets/{suggestion-CxpxmxhU.js → suggestion-089nWMGT.js} +1 -1
- package/dist/client/assets/{switch-DobgoLr7.js → switch-Bj8bJ2hL.js} +1 -1
- package/dist/client/assets/{synced-repos-BkubYLAQ.js → synced-repos-CVHbttMo.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DTu4Vb5u.js → tab-icon-glyph-6vvl9RhU.js} +1 -1
- package/dist/client/assets/{table-B3glu4jC.js → table-vIpu14O-.js} +1 -1
- package/dist/client/assets/{tabs-tpTL3qIk.js → tabs-Cz37pyV6.js} +1 -1
- package/dist/client/assets/{task-board-DD4Wj2ht.js → task-board-BMQrxTue.js} +1 -1
- package/dist/client/assets/{task-route-DkYY7Jf8.js → task-route-BKWswtA1.js} +1 -1
- package/dist/client/assets/{task-status-DQDKjMn6.js → task-status-C1D3al28.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BqZn-lMy.js → taskboard-analytics-D2gsuZp2.js} +1 -1
- package/dist/client/assets/{tasks-DoHgB8D-.js → tasks-CuCPnKFB.js} +1 -1
- package/dist/client/assets/tasks-sv7N_jrP.js +1 -0
- package/dist/client/assets/{textarea-B-0phPFl.js → textarea-C-PwJiry.js} +1 -1
- package/dist/client/assets/{thread-analytics-BqmJENFM.js → thread-analytics-6Vi5UYyl.js} +1 -1
- package/dist/client/assets/{thread-button-B6AnS30f.js → thread-button-CBArUpXO.js} +1 -1
- package/dist/client/assets/{thread-intent-CgGr7s14.js → thread-intent-swCQbScV.js} +1 -1
- package/dist/client/assets/{thread-route-CYYizTAL.js → thread-route-CMTlmdB2.js} +1 -1
- package/dist/client/assets/{thread-route-DIGJI8Dr.js → thread-route-DTbwFwzB.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Ywa9zjyd.js → thread-sheet-body-BNWfu5MD.js} +1 -1
- package/dist/client/assets/{toggle-group-CHFxR7n1.js → toggle-group-CozxhBpA.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CLiPKHlm.js → toolbar-icon-button-BR_iVDC5.js} +1 -1
- package/dist/client/assets/{tooltip-wkfHPLLP.js → tooltip-CmsIn1_T.js} +1 -1
- package/dist/client/assets/{track-DHiW7Kzl.js → track-ISGFXwLG.js} +1 -1
- package/dist/client/assets/{types-D821jmOY.js → types-Dnj2Xk6p.js} +1 -1
- package/dist/client/assets/{usage-stats-dtNozGHE.js → usage-stats-CQr6G5Ur.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DAPxuNGR.js → use-ai-providers-DKY0H66j.js} +1 -1
- package/dist/client/assets/{use-automations-BSdsdElw.js → use-automations-CSJ606-d.js} +1 -1
- package/dist/client/assets/{use-autosave-Bb3SyJ6X.js → use-autosave-CnIoAHDs.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-DMEvvTdU.js → use-chat-layout-state-B1ZVGaLS.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CcZLWvhU.js → use-clock-tick-BsJNcY-e.js} +1 -1
- package/dist/client/assets/{use-connect-companion-bZE9oz5D.js → use-connect-companion-vcvy2-_E.js} +1 -1
- package/dist/client/assets/{use-connection-CbaLhExN.js → use-connection-o6IaHrCa.js} +1 -1
- package/dist/client/assets/{use-copy-ClIijIuF.js → use-copy-CbVFfAiy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Ct8X79Tz.js → use-create-virtual-mcp-B90oa05V.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Casbf2a3.js → use-date-fns-locale-DtLNXwQQ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BWu_uxAJ.js → use-debounced-autosave-C94tXEES.js} +1 -1
- package/dist/client/assets/{use-debounced-value-B8wDF2XE.js → use-debounced-value-BJOL8Gwj.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CV7jBFos.js → use-deco-credits-BTMj7mOL.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Ch1NmAx8.js → use-decopilot-events-B7N8IjI0.js} +1 -1
- package/dist/client/assets/{use-delete-connection-UsR0uNx4.js → use-delete-connection-CWCsmyea.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BF_f54Es.js → use-deployment-admin-C7HpswZD.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B2gvR8WR.js → use-fast-preview-draft-url-X9ccfQ1G.js} +1 -1
- package/dist/client/assets/{use-file-configs-DI1Gb-A6.js → use-file-configs-BJx6-ZW4.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cq0eGH_b.js → use-infinite-scroll-D564AByM.js} +1 -1
- package/dist/client/assets/{use-join-requests-CuAsvnrr.js → use-join-requests-DadESn-r.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DpHhPbO5.js → use-main-panel-tabs-CvkNpk_m.js} +1 -1
- package/dist/client/assets/use-mcp-auth-status-BPJMjKJu.js +1 -0
- package/dist/client/assets/{use-mcp-client-CfAhFfUQ.js → use-mcp-client-BCOmh6mH.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DUcMyHUY.js → use-mcp-prompts-DsQz4qyp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CzCYSnw_.js → use-mcp-tools-isgPo0N2.js} +1 -1
- package/dist/client/assets/{use-members-DgL3Nti4.js → use-members-B_fEZqvW.js} +1 -1
- package/dist/client/assets/{use-mobile-CRrGxASl.js → use-mobile-CUG36tjm.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BvvbqcqU.js → use-navigate-to-agent-Cv939dl9.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-CUI80h3P.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CeVw8-rB.js → use-open-billing-url-DBj1DYvR.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BdIkgk3C.js → use-org-auth-client-Cro1UGGf.js} +1 -1
- package/dist/client/assets/{use-org-fs-DnXImEGt.js → use-org-fs-CfcB8IFl.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CR1cxPeJ.js → use-org-repo-syncs-DVJH08hK.js} +1 -1
- package/dist/client/assets/{use-org-sso-BWqpxNPp.js → use-org-sso-554XjjGQ.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DeZ0GmYu.js → use-organization-roles-BTmd-L2w.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CAg22Y85.js → use-organization-settings-B-_PpufY.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-1U3BGwp7.js → use-panel-navigate-CuKDZSXf.js} +1 -1
- package/dist/client/assets/{use-project-scope-CAwN_j8n.js → use-project-scope-B1N6dPlK.js} +1 -1
- package/dist/client/assets/{use-releases-oNY9aclO.js → use-releases-BK-Rfz0E.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BERenbrG.js → use-reports-diagnostic-kNe2-1FK.js} +1 -1
- package/dist/client/assets/{use-secrets-DVp8iDqR.js → use-secrets-Bpfmfnyi.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-0SFqRDNJ.js → use-section-preview-base-DDylhaW1.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CYBHR_jn.js → use-session-runtime-CTR5dqXO.js} +1 -1
- package/dist/client/assets/{use-tags-BhYfCjoP.js → use-tags-CToQ_9AW.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-g2dJA7k7.js → use-task-board-analytics-BhmIKHN_.js} +1 -1
- package/dist/client/assets/{use-task-board-events-g4QVOfjw.js → use-task-board-events-B6plWEJr.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DyoW40DT.js → use-task-metadata-_V-lBt2X.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CqH2wFAc.js → use-thread-analytics-DJ0Oh091.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Dlae_WuT.js → use-thread-outputs-BH6QTvpP.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DRaKStQa.js +1 -0
- package/dist/client/assets/{useQueries-BrUezESb.js → useQueries-DHRnWhYf.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-WHFkobEh.js +1 -0
- package/dist/client/assets/{users-DLL0mxIn.js → users-UP11Y2d_.js} +1 -1
- package/dist/client/assets/{utils-CRUIllS1.js → utils-CSf7trYW.js} +1 -1
- package/dist/client/assets/variant-calendar-k_RwHcjk.js +1 -0
- package/dist/client/assets/{variant-matcher-override-QKsigM8f.js → variant-matcher-override-DEvkqGTd.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BP4sJ9Zb.js → view-mode-toggle-C7tIx4kb.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CU6lFPKs.js → virtual-mcp-BkcbnGY4.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Dz4q7M33.js +0 -1
- package/dist/client/assets/agent-automations-BFirWNhs.js +0 -1
- package/dist/client/assets/agent-deck-WsR4Kn9L.js +0 -1
- package/dist/client/assets/agent-library-BKKs17DG.js +0 -1
- package/dist/client/assets/agent-library-file-os4HTtuL.js +0 -1
- package/dist/client/assets/agent-settings-DkVBAYdv.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BhSQKIbt.js +0 -2
- package/dist/client/assets/agent-view-DHNwmHuh.js +0 -1
- package/dist/client/assets/api-keys-Cz0CzGuc.js +0 -1
- package/dist/client/assets/app-editor-JPlYmOB_.js +0 -1
- package/dist/client/assets/category-editor-By3O-w3E.js +0 -1
- package/dist/client/assets/context-BA5tBJat.js +0 -1
- package/dist/client/assets/daily-pulse-CKz-O4VD.js +0 -1
- package/dist/client/assets/flat-project-C-eO96A2.js +0 -1
- package/dist/client/assets/home-VShFyYWB.js +0 -1
- package/dist/client/assets/library-VxiqdGt5.js +0 -1
- package/dist/client/assets/post-editor-Vuu8KboN.js +0 -2
- package/dist/client/assets/project-reports-C2fGvQWV.js +0 -1
- package/dist/client/assets/project-tasks-CIHsh5h6.js +0 -1
- package/dist/client/assets/record-editor-tpiSv1vv.js +0 -1
- package/dist/client/assets/reports-Cjp1W3ep.js +0 -1
- package/dist/client/assets/resolve-tab-icon-BHe-FJLH.js +0 -1
- package/dist/client/assets/route-Cc-MOYOr.js +0 -1
- package/dist/client/assets/tasks-DARVJAgH.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-DL6cA7oB.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DMxJSTvk.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CCCPgG_d.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-VJgBO4F9.js +0 -1
- package/dist/client/assets/variant-calendar-B-KiE4--.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,X as g,a2 as y,K as P,m as _,l as h,j as d}from"./index-
|
|
1
|
+
import{c as f,X as g,a2 as y,K as P,m as _,l as h,j as d}from"./index-B1zctMWM.js";import{u as A}from"./use-decopilot-events-B7N8IjI0.js";function I(){const e=f.c(6),t=y(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=P.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],_(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const E=new Set(["custom","ai_service"]);function j(e){return!!e&&E.has(e)}const w="mailto:sales@deco.cx";function O(){const e=f.c(8),{org:t}=g(),a=y(),o=A();let n;e[0]!==t.id?(n=P.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(N)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],_(r)}function N(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function q(e){return b(e).color}function b(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:x,color:S}=b(a);n=x,s="0 0 16 16",r="true",c=h("size-8 shrink-0",S,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{F,K as P,w as S,I as a,q as b,v as f,j as i,R as p,O as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,bm as A,j as c,bo as O,bp as h,bt as _,br as G,bs as H,bn as L,bx as j,dc as E,bF as z,bA as K,bC as B,bG as U,bB as V,bD as W,bE as Z,bH as q,bI as J,bv as Q,c as C,l as X}from"./index-
|
|
1
|
+
import{r as i,bm as A,j as c,bo as O,bp as h,bt as _,br as G,bs as H,bn as L,bx as j,dc as E,bF as z,bA as K,bC as B,bG as U,bB as V,bD as W,bE as Z,bH as q,bI as J,bv as Q,c as C,l as X}from"./index-B1zctMWM.js";var m="Popover",[w]=z(m,[j]),x=j(),[Y,v]=w(m),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=x(e),d=i.useRef(null),[l,u]=i.useState(!1),[f,P]=G({prop:r,defaultProp:n??!1,onChange:s,caller:m});return c.jsx(H,{...p,children:c.jsx(Y,{scope:e,contentId:L(),triggerRef:d,open:f,onOpenChange:P,onOpenToggle:i.useCallback(()=>P(R=>!R),[P]),hasCustomAnchor:l,onCustomAnchorAdd:i.useCallback(()=>u(!0),[]),onCustomAnchorRemove:i.useCallback(()=>u(!1),[]),modal:a,children:o})})};N.displayName=m;var F="PopoverAnchor",S=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=v(F,o),s=x(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(_,{...s,...r,ref:e})});S.displayName=F;var y="PopoverTrigger",D=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=v(y,o),s=x(o),a=A(e,n.triggerRef),p=c.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":$(n.open),...r,ref:a,onClick:h(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(_,{asChild:!0,...s,children:p})});D.displayName=y;var b="PopoverPortal",[ee,oe]=w(b,{forceMount:void 0}),M=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=v(b,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(E,{present:o||s.open,children:c.jsx(Q,{asChild:!0,container:n,children:r})})})};M.displayName=b;var g="PopoverContent",I=i.forwardRef((t,e)=>{const o=oe(g,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=v(g,t.__scopePopover);return c.jsx(E,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});I.displayName=g;var te=U("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=v(g,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return K(a)},[]),c.jsx(B,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:h(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,d=p.button===0&&p.ctrlKey===!0,l=p.button===2||d;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:h(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=v(g,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:l,onInteractOutside:u,...f}=t,P=v(g,o),R=x(o);return V(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Z,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:l,onDismiss:()=>P.onOpenChange(!1),children:c.jsx(q,{"data-state":$(P.open),role:"dialog",id:P.contentId,...R,...f,ref:e,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=v(k,o);return c.jsx(O.button,{type:"button",...r,ref:e,onClick:h(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=x(o);return c.jsx(J,{...n,...r,ref:e})});ce.displayName=ae;function $(t){return t?"open":"closed"}var ie=N,pe=S,le=D,ue=M,de=I;function ve(t){const e=C.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=C.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=C.c(16);let o,r,n,s,a;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5]);const p=s===void 0?"center":s,d=a===void 0?4:a;let l;e[6]!==o?(l=X("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden border p-4 shadow-md outline-hidden",o),e[6]=o,e[7]=l):l=e[7];let u;e[8]!==p||e[9]!==n||e[10]!==d||e[11]!==l?(u=c.jsx(de,{"data-slot":"popover-content",align:p,sideOffset:d,translate:"no",className:l,...n}),e[8]=p,e[9]=n,e[10]=d,e[11]=l,e[12]=u):u=e[12];let f;return e[13]!==r||e[14]!==u?(f=c.jsx(ue,{container:r,children:u}),e[13]=r,e[14]=u,e[15]=f):f=e[15],f}function he(t){const e=C.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ve as P,Pe as a,ge as b,he as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as it,b as pt,r as mt,x as vt,j as e,l as et,B as tt,ak as Nt}from"./index-DbabGxy6.js";import{Y as Ct,y as kt}from"./agent-icon-BRxvZRmN.js";import{s as Dt}from"./Plus-BvxsRY-0.js";import{S as St}from"./scroll-area-C1UEqWPg.js";import{a9 as wt,l as zt,a4 as Tt,a5 as Et,aa as Pt,a3 as ct,a7 as dt}from"./agent-site-editor-content-BopCmF1V.js";import"./AlertCircle-Dsxcywwk.js";import"./Tool01-DetpIMtk.js";import"./ArrowUp-DvEWAQS1.js";import"./ArrowLeft-CUAoXnBl.js";import"./LinkBroken01-CyPIuvAF.js";import"./ShoppingBag01-D0N-Vb4c.js";import"./ZoomOut-Bt3p5CRf.js";import"./Building02-DQSa0aPk.js";import"./CheckCircle-48zzWb5o.js";import"./Check-CzhgdtoZ.js";import"./ChevronUp-bPHHer4a.js";import"./UserSquare-CuUPyuma.js";import"./Copy01-DK-rveWk.js";import"./CreditCard01-Bv4apDUd.js";import"./DotsVertical-Cz9DnVkj.js";import"./Image01-DkSAzjSu.js";import"./Palette-jHJa2pFE.js";import"./XClose-Chbrrnow.js";import"./Key01-2_VP-ymA.js";import"./Link01-CBIFqZsw.js";import"./LinkExternal01-D20IL3CN.js";import"./Monitor01-WwJ1rHPk.js";import"./Sun-7ajd25ZV.js";import"./SearchMd-CHmk5GD6.js";import"./Trash01-DKbCrUTj.js";import"./Upload01-BBKhvCnt.js";import"./User01-D2Lmw0ef.js";import"./Users01-DsJzDkrr.js";import"./X-ateu7dRb.js";import"./select-DOq28vkW.js";import"./index-DNU42V4k.js";import"./agent-view-guard-C9ItTzPi.js";import"./use-main-panel-tabs-DpHhPbO5.js";import"./use-chat-layout-state-DMEvvTdU.js";import"./use-file-configs-DI1Gb-A6.js";import"./use-organization-settings-CAg22Y85.js";import"./schema-BD3Ue3jK.js";import"./task-board-DD4Wj2ht.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CYYizTAL.js";import"./use-panel-navigate-1U3BGwp7.js";import"./use-project-scope-CAwN_j8n.js";import"./repository-binding-DST5BjAq.js";import"./use-mcp-client-CfAhFfUQ.js";import"./auth-qAvZ1LNt.js";import"./thread-intent-CgGr7s14.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-CbaLhExN.js";import"./use-mcp-tools-CzCYSnw_.js";import"./types-D821jmOY.js";import"./utils-CVEq3hMx.js";import"./index-Il2w9u7T.js";import"./chat-context-Bf1EEUa_.js";import"./autosend-BrczLssG.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-Ch1NmAx8.js";import"./use-ai-providers-DAPxuNGR.js";import"./location-DPIrGNp7.js";import"./gateway-client-9xfivYUp.js";import"./tooltip-wkfHPLLP.js";import"./dialog-CSMrPqBB.js";import"./drawer-DamNEeFr.js";import"./collection-search-qakQR89K.js";import"./use-mobile-CRrGxASl.js";import"./use-mcp-prompts-DUcMyHUY.js";import"./index-CecxwC7F.js";import"./form-BJXkrxaF.js";import"./label-CaVwbUwP.js";import"./input-DV9TXIhc.js";import"./org-file-open-context-DOjVu33M.js";import"./input-DGumA8Me.js";import"./shell-layout-D3hbXuJp.js";import"./avatar-Be2YP03d.js";import"./download-app-dialog-DegRrl-D.js";import"./use-clock-tick-CcZLWvhU.js";import"./command-CNDsxgwl.js";import"./index-Bj6rDen7.js";import"./integration-icon-CFV7KR9Q.js";import"./project-icon-B2QkPtkD.js";import"./new-project-dialog-B-Knb9QQ.js";import"./repository-import-picker-Cefyzn5z.js";import"./use-navigate-to-agent-BvvbqcqU.js";import"./repository-picker-DIYtkoGR.js";import"./useInfiniteQuery-CCCPgG_d.js";import"./infiniteQueryObserver-yDX2PlMf.js";import"./use-debounced-value-B8wDF2XE.js";import"./required-auth-layout-Sm_LEIrf.js";import"./use-org-sso-BWqpxNPp.js";import"./chat-draft-D0DwqSRP.js";import"./use-session-runtime-CYBHR_jn.js";import"./usage-stats-dtNozGHE.js";import"./use-copy-ClIijIuF.js";import"./markdown-BFRBcVyc.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-tpTL3qIk.js";import"./use-deco-credits-CV7jBFos.js";import"./toggle-group-CHFxR7n1.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-CeVw8-rB.js";import"./decopilot-D0L_iZDN.js";import"./checkbox-GjKetutN.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DpWUGKUo.js";import"./index-CXm3YShm.js";import"./input-fdBI3UiD.js";import"./suggestion-CxpxmxhU.js";import"./use-org-fs-DnXImEGt.js";import"./question-004-sINsf4GQ.js";import"./use-members-DgL3Nti4.js";import"./use-org-auth-client-BdIkgk3C.js";import"./feature-paywall-DK7jIYwT.js";import"./plan-ladder-CyI_9DNH.js";import"./add-connection-dialog-B0L-P2sh.js";import"./extract-connection-data-Yv51Ip2F.js";import"./metadata-D72DunRR.js";import"./connection-KyEHQxp9.js";import"./connection-card-XVRQmb88.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-B-0phPFl.js";import"./connection-form-helpers-Bz949-9G.js";import"./authenticate-and-persist-oauth-Bm9fWsOa.js";import"./mcp-oauth-DPBTzzM-.js";import"./collection-tabs-CJy8rHXV.js";import"./badge-BbkeIMgp.js";import"./use-infinite-scroll-Cq0eGH_b.js";import"./useSuspenseInfiniteQuery-VJgBO4F9.js";import"./use-task-board-events-g4QVOfjw.js";import"./pair-28ek-gGQ.js";import"./collapsible-C3DyD3IY.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-2vEnBSMK.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-CAPBfpxY.js";import"./use-thread-outputs-Dlae_WuT.js";import"./file-type-icon-Bv7OJA49.js";import"./sandbox-lifecycle-context-ZoWZCIt3.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./resolve-tab-icon-BHe-FJLH.js";import"./use-task-metadata-DyoW40DT.js";import"./virtual-mcp-CU6lFPKs.js";import"./feature-gate-Dj2ZsmzR.js";import"./alert-dialog-Dr37XaeA.js";import"./runnable-block-editor-0DsB0lC3.js";import"./claim-phase-copy-qcCOlkIz.js";import"./utils-CRUIllS1.js";import"./monaco-editor-CTBaCfme.js";import"./editor-D-2XKeKJ.js";import"./calendar-B6jARNSc.js";import"./use-new-blocks-editor-DMxJSTvk.js";import"./rich-text-link-control-CO6qXsgG.js";import"./switch-DobgoLr7.js";import"./combobox-CKdv5r-2.js";import"./search-input-uE9X4-9v.js";import"./asset-utils-CEMW7jjJ.js";import"./sandbox-git-api-B1R0585s.js";import"./mustache-B8Ea1V5C.js";import"./empty-state-e8q1K35w.js";import"./empty-state-DfF0wZnW.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Bo(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:l,onReschedule:i,isCreating:k}=h,s=k===void 0?!1:k,r=pt(),[v,N]=mt.useState(null),[rt]=vt(),[n,f]=mt.useState(It),p=rt.language;let C;t[0]!==n||t[1]!==p?(C=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=C):C=t[2];const y=C;let x,u,a,c,j,D,S,w,z,T;if(t[3]!==n||t[4]!==b||t[5]!==v||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==l||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=wt(zt(b)),st=Tt(n),bt=Et(new Date);u="flex h-full w-full flex-col";let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ct(new Date)),t[24]=G):G=t[24];let I;t[25]!==r?(I=r("sandbox.postCalendar.today"),t[25]=r,t[26]=I):I=t[26];let H;t[27]!==I?(H=e.jsx(tt,{variant:"outline",size:"sm",onClick:G,children:I}),t[27]=I,t[28]=H):H=t[28];let J;t[29]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(Mt),t[29]=J):J=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let Q;t[32]===Symbol.for("react.memo_cache_sentinel")?(Q=e.jsx(kt,{size:16}),t[32]=Q):Q=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:J,"aria-label":U,children:Q}),t[33]=U,t[34]=_):_=t[34];let V;t[35]===Symbol.for("react.memo_cache_sentinel")?(V=()=>f(Lt),t[35]=V):V=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let X;t[38]===Symbol.for("react.memo_cache_sentinel")?(X=e.jsx(Nt,{size:16}),t[38]=X):X=t[38];let O;t[39]!==$?(O=e.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:V,"aria-label":$,children:X}),t[39]=$,t[40]=O):O=t[40];let B;t[41]!==y?(B=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=B):B=t[42];let F;t[43]!==r?(F=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=F):F=t[44];let R;t[45]!==F?(R=e.jsx(lt,{className:ft,label:F}),t[45]=F,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(lt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==H||t[55]!==_||t[56]!==O||t[57]!==B||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,O,B,W]}),t[54]=H,t[55]=_,t[56]=O,t[57]=B,t[58]=W,t[59]=a):a=t[59],T="relative flex-1 min-h-0",x=St,z="h-full",S="flex min-w-[880px] gap-4 p-4";let Y;t[60]!==r?(Y=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=Y):Y=t[61];let Z;t[62]!==Y?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Y}),t[62]=Y,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(m=>e.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ut.format(m)},m.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(m=>{const yt=m.getMonth()===n.getMonth(),jt=ht.get(Pt(m))??[];return e.jsxs("div",{onDragOver:g=>{v&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");N(null),at&&i(at,m)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",v&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",m.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:m.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>l(m),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(m)}),children:e.jsx(Dt,{size:14})})]}),jt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:N},g.post.key))]},m.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",j=e.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),D=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Ct,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(m=>e.jsx(nt,{entry:m,active:m.post.key===d,draggable:!1,onSelect:o,onDragStateChange:N},m.post.key)),t[3]=n,t[4]=b,t[5]=v,t[6]=s,t[7]=p,t[8]=y,t[9]=l,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=j,t[19]=D,t[20]=S,t[21]=w,t[22]=z,t[23]=T}else x=t[14],u=t[15],a=t[16],c=t[17],j=t[18],D=t[19],S=t[20],w=t[21],z=t[22],T=t[23];let E;t[64]!==c||t[65]!==j||t[66]!==D?(E=e.jsxs("div",{className:c,children:[j,D]}),t[64]=c,t[65]=j,t[66]=D,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let L;t[72]!==x||t[73]!==P||t[74]!==z?(L=e.jsx(x,{className:z,children:P}),t[72]=x,t[73]=P,t[74]=z,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==T?(M=e.jsx("div",{className:T,children:L}),t[76]=L,t[77]=T,t[78]=M):M=t[78];let q;return t[79]!==u||t[80]!==a||t[81]!==M?(q=e.jsxs("div",{className:u,children:[a,M]}),t[79]=u,t[80]=a,t[81]=M,t[82]=q):q=t[82],q}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function It(){return ct(new Date)}function lt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let l;t[2]!==o?(l=e.jsx("span",{className:o}),t[2]=o,t[3]=l):l=t[3];let i;return t[4]!==d||t[5]!==l?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,d]}),t[4]=d,t[5]=l,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:l,onDragStateChange:i}=h,k=pt(),{post:s,scheduled:r}=b,v=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let N;t[0]!==k||t[1]!==v?(N=k(v),t[0]=k,t[1]=v,t[2]=N):N=t[2];const rt=N;let n;t[3]!==i||t[4]!==s.key?(n=j=>{j.dataTransfer.setData("text/plain",s.key),j.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==l||t[9]!==s.key?(p=()=>l(s.key),t[8]=l,t[9]=s.key,t[10]=p):p=t[10];const C=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==C?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:C,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=C,t[22]=c):c=t[22],c}export{Bo as PostCalendar};
|
|
1
|
+
import{c as it,b as pt,r as mt,x as vt,j as e,l as et,B as tt,ak as Nt}from"./index-B1zctMWM.js";import{Z as Ct,z as kt}from"./agent-icon-Plx0vVQZ.js";import{s as Dt}from"./Plus-jU4D0ULX.js";import{S as St}from"./scroll-area-DTVFcTe4.js";import{ab as wt,l as zt,a6 as Tt,a7 as Et,ac as Pt,a5 as ct,a9 as dt}from"./agent-site-editor-content-GMuyS7LS.js";import"./AlertCircle-Bx6Xy-Kw.js";import"./Tool01-DQZj0rVc.js";import"./ArrowUp-Dr4dZUTV.js";import"./ArrowLeft-BBlLaPEb.js";import"./LinkBroken01-DLTNdGdq.js";import"./ShoppingBag01-BnqPHk8-.js";import"./ZoomOut-o5Bj_0k0.js";import"./Building02-qqUg_lk7.js";import"./CheckCircle-DQ_Iwx7G.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";import"./UserSquare-DubBIV3t.js";import"./Copy01-1J_cPh43.js";import"./CreditCard01-CZJLSW5h.js";import"./DotsVertical-DMzCTdNT.js";import"./Image01-VqGHD62D.js";import"./Palette-DItfN1RT.js";import"./XClose-B5gtMDn3.js";import"./Key01-3kquwPFB.js";import"./Link01-ZJZ8YMCs.js";import"./LinkExternal01-ByTglQMD.js";import"./Monitor01-CjCwBipo.js";import"./Sun-G5YUTpKk.js";import"./SearchMd-yUpDH67q.js";import"./Trash01-CfWaytgc.js";import"./Upload01-ca0GgR0P.js";import"./User01-BJgSr0na.js";import"./Users01-BI4qzwEi.js";import"./X-4SjHAUB6.js";import"./select-CCPnfgQ9.js";import"./index-CazcJ_7a.js";import"./agent-view-guard-BwrmGLlw.js";import"./use-main-panel-tabs-CvkNpk_m.js";import"./use-chat-layout-state-B1ZVGaLS.js";import"./use-file-configs-BJx6-ZW4.js";import"./use-organization-settings-B-_PpufY.js";import"./schema-CtVpxfN8.js";import"./task-board-BMQrxTue.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CMTlmdB2.js";import"./use-panel-navigate-CuKDZSXf.js";import"./use-project-scope-B1N6dPlK.js";import"./repository-binding-DB3Rsfan.js";import"./use-mcp-client-BCOmh6mH.js";import"./auth-BhL4Ae7M.js";import"./thread-intent-swCQbScV.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-o6IaHrCa.js";import"./use-mcp-tools-isgPo0N2.js";import"./types-Dnj2Xk6p.js";import"./utils-CVEq3hMx.js";import"./index-DD7q2zTd.js";import"./chat-context-CW-2SJ9g.js";import"./autosend-CtvAncuN.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-B7N8IjI0.js";import"./use-ai-providers-DKY0H66j.js";import"./location-DPIrGNp7.js";import"./gateway-client-DdEB-W_0.js";import"./tooltip-CmsIn1_T.js";import"./dialog-DUkVOZIE.js";import"./drawer-BE8-rjnv.js";import"./collection-search-De8chpSh.js";import"./use-mobile-CUG36tjm.js";import"./use-mcp-prompts-DsQz4qyp.js";import"./index-De_dnJRN.js";import"./form-esFIz8cn.js";import"./label-Be_7Vms5.js";import"./input-B3HVl7By.js";import"./org-file-open-context-2kSVNzGe.js";import"./input-DsxQztmQ.js";import"./shell-layout-XTP1Kn60.js";import"./avatar-ZtrZA-xC.js";import"./download-app-dialog-VBK5SfsW.js";import"./use-clock-tick-BsJNcY-e.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./integration-icon-B97YfXXZ.js";import"./project-icon-0knrxIOw.js";import"./new-project-dialog-BMehfxLv.js";import"./repository-import-picker-DyQqkMVo.js";import"./use-navigate-to-agent-Cv939dl9.js";import"./repository-picker-BhN42NYE.js";import"./useInfiniteQuery-DRaKStQa.js";import"./infiniteQueryObserver-BBgKyTli.js";import"./use-debounced-value-BJOL8Gwj.js";import"./required-auth-layout-BhtMSUK8.js";import"./use-org-sso-554XjjGQ.js";import"./chat-draft-CwKaZkWY.js";import"./use-session-runtime-CTR5dqXO.js";import"./usage-stats-CQr6G5Ur.js";import"./use-copy-CbVFfAiy.js";import"./markdown-BSYuVrvS.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-Cz37pyV6.js";import"./use-deco-credits-BTMj7mOL.js";import"./toggle-group-CozxhBpA.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-DBj1DYvR.js";import"./decopilot-CcCmg-UE.js";import"./checkbox-Cs5VXlL7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DwQza7Ap.js";import"./index-CFflVJHI.js";import"./input-D1BEXHTl.js";import"./suggestion-089nWMGT.js";import"./use-org-fs-CfcB8IFl.js";import"./question-004-sINsf4GQ.js";import"./use-members-B_fEZqvW.js";import"./use-org-auth-client-Cro1UGGf.js";import"./feature-paywall-DGxl3PI8.js";import"./plan-ladder-CfA0FpAL.js";import"./add-connection-dialog-C9teNzj3.js";import"./extract-connection-data-BqvnWkg5.js";import"./metadata-D72DunRR.js";import"./connection-DCZz5J1M.js";import"./connection-card-DaZTNpcS.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-C-PwJiry.js";import"./connection-form-helpers-Dyc97_iQ.js";import"./authenticate-and-persist-oauth-CM_sd9mo.js";import"./mcp-oauth-Dt9pIBq5.js";import"./collection-tabs-2Nn5b0UJ.js";import"./badge-B0eiYJhc.js";import"./use-infinite-scroll-D564AByM.js";import"./useSuspenseInfiniteQuery-WHFkobEh.js";import"./use-task-board-events-B6plWEJr.js";import"./pair-bDKRTMqu.js";import"./collapsible-taXF9Vin.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BuJCA9WL.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-BHMUXURV.js";import"./use-thread-outputs-BH6QTvpP.js";import"./file-type-icon-CideAigq.js";import"./sandbox-lifecycle-context-CCWi8UrE.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./resolve-tab-icon-BJxTAEQQ.js";import"./use-task-metadata-_V-lBt2X.js";import"./virtual-mcp-BkcbnGY4.js";import"./feature-gate-BIe5gsHR.js";import"./alert-dialog-CRVM-23V.js";import"./runnable-block-editor-CU4DL_Np.js";import"./claim-phase-copy-CLVpoo-M.js";import"./utils-CSf7trYW.js";import"./monaco-editor-BXK3f-Og.js";import"./editor-Bicb4Bqw.js";import"./calendar-Cwshzk8E.js";import"./use-new-blocks-editor-CUI80h3P.js";import"./rich-text-link-control-CzOQrdNt.js";import"./switch-Bj8bJ2hL.js";import"./combobox-uWP-A1cr.js";import"./search-input-B7esxZLr.js";import"./asset-utils-BZ8WEgo_.js";import"./sandbox-git-api-B1R0585s.js";import"./mustache-Cgurdydm.js";import"./empty-state-Lw6BWO66.js";import"./empty-state-CGgBiEoz.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Bo(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:l,onReschedule:i,isCreating:k}=h,s=k===void 0?!1:k,r=pt(),[v,N]=mt.useState(null),[rt]=vt(),[n,f]=mt.useState(It),p=rt.language;let C;t[0]!==n||t[1]!==p?(C=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=C):C=t[2];const y=C;let x,u,a,c,j,D,S,w,z,T;if(t[3]!==n||t[4]!==b||t[5]!==v||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==l||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=wt(zt(b)),st=Tt(n),bt=Et(new Date);u="flex h-full w-full flex-col";let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ct(new Date)),t[24]=G):G=t[24];let I;t[25]!==r?(I=r("sandbox.postCalendar.today"),t[25]=r,t[26]=I):I=t[26];let H;t[27]!==I?(H=e.jsx(tt,{variant:"outline",size:"sm",onClick:G,children:I}),t[27]=I,t[28]=H):H=t[28];let J;t[29]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(Mt),t[29]=J):J=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let Q;t[32]===Symbol.for("react.memo_cache_sentinel")?(Q=e.jsx(kt,{size:16}),t[32]=Q):Q=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:J,"aria-label":U,children:Q}),t[33]=U,t[34]=_):_=t[34];let V;t[35]===Symbol.for("react.memo_cache_sentinel")?(V=()=>f(Lt),t[35]=V):V=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let X;t[38]===Symbol.for("react.memo_cache_sentinel")?(X=e.jsx(Nt,{size:16}),t[38]=X):X=t[38];let O;t[39]!==$?(O=e.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:V,"aria-label":$,children:X}),t[39]=$,t[40]=O):O=t[40];let B;t[41]!==y?(B=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=B):B=t[42];let F;t[43]!==r?(F=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=F):F=t[44];let R;t[45]!==F?(R=e.jsx(lt,{className:ft,label:F}),t[45]=F,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(lt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==H||t[55]!==_||t[56]!==O||t[57]!==B||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,O,B,W]}),t[54]=H,t[55]=_,t[56]=O,t[57]=B,t[58]=W,t[59]=a):a=t[59],T="relative flex-1 min-h-0",x=St,z="h-full",S="flex min-w-[880px] gap-4 p-4";let Z;t[60]!==r?(Z=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=Z):Z=t[61];let Y;t[62]!==Z?(Y=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Z}),t[62]=Z,t[63]=Y):Y=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(m=>e.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ut.format(m)},m.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(m=>{const yt=m.getMonth()===n.getMonth(),jt=ht.get(Pt(m))??[];return e.jsxs("div",{onDragOver:g=>{v&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");N(null),at&&i(at,m)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",v&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",m.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:m.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>l(m),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(m)}),children:e.jsx(Dt,{size:14})})]}),jt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:N},g.post.key))]},m.getTime())})}),Y]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",j=e.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),D=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Ct,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(m=>e.jsx(nt,{entry:m,active:m.post.key===d,draggable:!1,onSelect:o,onDragStateChange:N},m.post.key)),t[3]=n,t[4]=b,t[5]=v,t[6]=s,t[7]=p,t[8]=y,t[9]=l,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=j,t[19]=D,t[20]=S,t[21]=w,t[22]=z,t[23]=T}else x=t[14],u=t[15],a=t[16],c=t[17],j=t[18],D=t[19],S=t[20],w=t[21],z=t[22],T=t[23];let E;t[64]!==c||t[65]!==j||t[66]!==D?(E=e.jsxs("div",{className:c,children:[j,D]}),t[64]=c,t[65]=j,t[66]=D,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let L;t[72]!==x||t[73]!==P||t[74]!==z?(L=e.jsx(x,{className:z,children:P}),t[72]=x,t[73]=P,t[74]=z,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==T?(M=e.jsx("div",{className:T,children:L}),t[76]=L,t[77]=T,t[78]=M):M=t[78];let q;return t[79]!==u||t[80]!==a||t[81]!==M?(q=e.jsxs("div",{className:u,children:[a,M]}),t[79]=u,t[80]=a,t[81]=M,t[82]=q):q=t[82],q}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function It(){return ct(new Date)}function lt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let l;t[2]!==o?(l=e.jsx("span",{className:o}),t[2]=o,t[3]=l):l=t[3];let i;return t[4]!==d||t[5]!==l?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,d]}),t[4]=d,t[5]=l,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:l,onDragStateChange:i}=h,k=pt(),{post:s,scheduled:r}=b,v=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let N;t[0]!==k||t[1]!==v?(N=k(v),t[0]=k,t[1]=v,t[2]=N):N=t[2];const rt=N;let n;t[3]!==i||t[4]!==s.key?(n=j=>{j.dataTransfer.setData("text/plain",s.key),j.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==l||t[9]!==s.key?(p=()=>l(s.key),t[8]=l,t[9]=s.key,t[10]=p):p=t[10];const C=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==C?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:C,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=C,t[22]=c):c=t[22],c}export{Bo as PostCalendar};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as Z,a2 as tt,r as Q,j as t,B as Te,l as Ge,t as De,h as st,c as Be}from"./index-B1zctMWM.js";import{u as ot}from"./chat-context-CW-2SJ9g.js";import{i as $e}from"./AlertCircle-Bx6Xy-Kw.js";import{a3 as it,aq as lt,an as at,a6 as rt,_ as nt}from"./agent-icon-Plx0vVQZ.js";import{n as ct}from"./LinkExternal01-ByTglQMD.js";import{s as dt}from"./Trash01-CfWaytgc.js";import{s as pt}from"./XClose-B5gtMDn3.js";import{f as mt,e as ut,b as xt,A as ft,a as gt,d as ht,c as bt,g as jt}from"./alert-dialog-CRVM-23V.js";import{I as we}from"./input-B3HVl7By.js";import{L as J}from"./label-Be_7Vms5.js";import{M as vt}from"./multi-select-DGgRKpc4.js";import{b as yt,a as St,T as He,c as Ve}from"./tabs-Cz37pyV6.js";import{S as Et}from"./switch-Bj8bJ2hL.js";import{T as Ye}from"./textarea-C-PwJiry.js";import{u as Nt,aq as kt,ar as Ie,d as Ct,as as Pt,at as Tt}from"./runnable-block-editor-CU4DL_Np.js";import{f as Dt,a as Lt,b as wt,c as Ue,B as Bt,R as At}from"./block-document-BceCRczU.js";import{b as Ft,C as zt,K as It}from"./blog-schema-CswZLK88.js";import{b as $t,l as Rt,g as qt,a as Ot,s as _t,h as Mt,c as F,d as Ht,m as Vt,E as Ut,p as Ke,e as Wt,f as Qe,R as Gt,i as Yt,u as Kt,j as Qt,A as Jt,P as Xt,k as Zt}from"./agent-site-editor-content-GMuyS7LS.js";import{b as Re,T as qe,a as Oe}from"./tooltip-CmsIn1_T.js";import{i as es}from"./Check-BhHmW1CL.js";import{i as ts}from"./Link01-ZJZ8YMCs.js";import{D as ss,b as os,c as is,d as ls,h as as,e as rs}from"./dialog-DUkVOZIE.js";import{u as ns}from"./use-ai-providers-DKY0H66j.js";import{u as cs}from"./mustache-Cgurdydm.js";import{a as ds}from"./use-fast-preview-draft-url-X9ccfQ1G.js";import{u as ps}from"./use-autosave-CnIoAHDs.js";import"./use-panel-navigate-CuKDZSXf.js";import"./thread-route-CMTlmdB2.js";import"./use-project-scope-B1N6dPlK.js";import"./repository-binding-DB3Rsfan.js";import"./use-mcp-client-BCOmh6mH.js";import"./auth-BhL4Ae7M.js";import"./autosend-CtvAncuN.js";import"./thread-intent-swCQbScV.js";import"./backoff-8mStPHYB.js";import"./task-board-BMQrxTue.js";import"./schema-CtVpxfN8.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-B7N8IjI0.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-B-_PpufY.js";import"./Tool01-DQZj0rVc.js";import"./ArrowUp-Dr4dZUTV.js";import"./ArrowLeft-BBlLaPEb.js";import"./LinkBroken01-DLTNdGdq.js";import"./ShoppingBag01-BnqPHk8-.js";import"./ZoomOut-o5Bj_0k0.js";import"./Building02-qqUg_lk7.js";import"./CheckCircle-DQ_Iwx7G.js";import"./ChevronUp-C6nGgzcV.js";import"./UserSquare-DubBIV3t.js";import"./Copy01-1J_cPh43.js";import"./CreditCard01-CZJLSW5h.js";import"./DotsVertical-DMzCTdNT.js";import"./Image01-VqGHD62D.js";import"./Palette-DItfN1RT.js";import"./Key01-3kquwPFB.js";import"./Monitor01-CjCwBipo.js";import"./Sun-G5YUTpKk.js";import"./Plus-jU4D0ULX.js";import"./SearchMd-yUpDH67q.js";import"./Upload01-ca0GgR0P.js";import"./User01-BJgSr0na.js";import"./Users01-BI4qzwEi.js";import"./X-4SjHAUB6.js";import"./badge-B0eiYJhc.js";import"./checkbox-Cs5VXlL7.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./popover-DwQza7Ap.js";import"./use-session-runtime-CTR5dqXO.js";import"./claim-phase-copy-CLVpoo-M.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-bDKRTMqu.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-taXF9Vin.js";import"./use-copy-CbVFfAiy.js";import"./usage-stats-CQr6G5Ur.js";import"./markdown-BSYuVrvS.js";import"./org-file-open-context-2kSVNzGe.js";import"./use-mobile-CUG36tjm.js";import"./use-clock-tick-BsJNcY-e.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BuJCA9WL.js";import"./types-Dnj2Xk6p.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-DdEB-W_0.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-XTP1Kn60.js";import"./avatar-ZtrZA-xC.js";import"./download-app-dialog-VBK5SfsW.js";import"./integration-icon-B97YfXXZ.js";import"./project-icon-0knrxIOw.js";import"./new-project-dialog-BMehfxLv.js";import"./repository-import-picker-DyQqkMVo.js";import"./use-navigate-to-agent-Cv939dl9.js";import"./repository-picker-BhN42NYE.js";import"./useInfiniteQuery-DRaKStQa.js";import"./infiniteQueryObserver-BBgKyTli.js";import"./collection-search-De8chpSh.js";import"./use-debounced-value-BJOL8Gwj.js";import"./required-auth-layout-BhtMSUK8.js";import"./use-org-sso-554XjjGQ.js";import"./sheet-BHMUXURV.js";import"./use-connection-o6IaHrCa.js";import"./use-mcp-prompts-DsQz4qyp.js";import"./index-De_dnJRN.js";import"./form-esFIz8cn.js";import"./use-thread-outputs-BH6QTvpP.js";import"./file-type-icon-CideAigq.js";import"./utils-CSf7trYW.js";import"./scroll-area-DTVFcTe4.js";import"./select-CCPnfgQ9.js";import"./index-CazcJ_7a.js";import"./monaco-editor-BXK3f-Og.js";import"./editor-Bicb4Bqw.js";import"./calendar-Cwshzk8E.js";import"./use-new-blocks-editor-CUI80h3P.js";import"./rich-text-link-control-CzOQrdNt.js";import"./combobox-uWP-A1cr.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-B7esxZLr.js";import"./use-file-configs-BJx6-ZW4.js";import"./asset-utils-BZ8WEgo_.js";import"./use-chat-layout-state-B1ZVGaLS.js";import"./site-slug-DebpOoQq.js";import"./toggle-group-CozxhBpA.js";import"./sandbox-git-api-B1R0585s.js";import"./suggestion-089nWMGT.js";import"./section-preview-url-7zfngvgW.js";import"./index-CfCqm3c8.js";import"./agent-view-guard-BwrmGLlw.js";import"./use-main-panel-tabs-CvkNpk_m.js";import"./use-mcp-tools-isgPo0N2.js";import"./index-DD7q2zTd.js";import"./drawer-BE8-rjnv.js";import"./input-DsxQztmQ.js";import"./chat-draft-CwKaZkWY.js";import"./use-deco-credits-BTMj7mOL.js";import"./use-open-billing-url-DBj1DYvR.js";import"./decopilot-CcCmg-UE.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-CFflVJHI.js";import"./input-D1BEXHTl.js";import"./use-org-fs-CfcB8IFl.js";import"./question-004-sINsf4GQ.js";import"./use-members-B_fEZqvW.js";import"./use-org-auth-client-Cro1UGGf.js";import"./feature-paywall-DGxl3PI8.js";import"./plan-ladder-CfA0FpAL.js";import"./add-connection-dialog-C9teNzj3.js";import"./extract-connection-data-BqvnWkg5.js";import"./metadata-D72DunRR.js";import"./connection-DCZz5J1M.js";import"./connection-card-DaZTNpcS.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-Dyc97_iQ.js";import"./authenticate-and-persist-oauth-CM_sd9mo.js";import"./mcp-oauth-Dt9pIBq5.js";import"./collection-tabs-2Nn5b0UJ.js";import"./use-infinite-scroll-D564AByM.js";import"./useSuspenseInfiniteQuery-WHFkobEh.js";import"./use-task-board-events-B6plWEJr.js";import"./sandbox-lifecycle-context-CCWi8UrE.js";import"./resolve-tab-icon-BJxTAEQQ.js";import"./use-task-metadata-_V-lBt2X.js";import"./virtual-mcp-BkcbnGY4.js";import"./feature-gate-BIe5gsHR.js";import"./empty-state-Lw6BWO66.js";import"./empty-state-CGgBiEoz.js";const Le=n=>typeof n=="string"?n:"",ms={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'"};function Je(n){const e=[];let o=0,a=!1;for(;o<n.length;){if(n[o]==="<"){const m=n.indexOf(">",o);o=m<0?n.length:m+1;continue}let s=n[o]??"",l=o+1;if(n[o]==="&"){const m=n.indexOf(";",o);if(m>=0&&m-o<=10){const i=ms[n.slice(o,m+1).toLowerCase()];i!==void 0&&(s=i,l=m+1)}}const c=o;if(o=l,/\s/.test(s)){if(a){const m=e[e.length-1];m&&(m.end=l);continue}e.push({ch:" ",start:c,end:l}),a=!0}else e.push({ch:s,start:c,end:l}),a=!1}return{text:e.map(s=>s.ch).join(""),chars:e}}function us(n){return Je(n).text.trim()}function xs(n){const e=[];for(const o of n)switch($t(Le(o.__resolveType))){case"Paragraph":e.push(us(Le(o.html)));break;case"Heading":e.push(Le(o.text));break;case"Quote":e.push(Le(o.quote));break;case"List":e.push(Le(o.items));break}return e.filter(Boolean).join(`
|
|
2
|
+
`)}function fs(n){return n.replace(/&/g,"&").replace(/"/g,""")}function gs(n,e){const o=n.slice(0,e);return o.lastIndexOf("<a")>o.lastIndexOf("</a")}function hs(n,e,o){const a=e.trim();if(!a||!o)return{blocks:n,applied:!1};for(let s=0;s<n.length;s++){const l=n[s];if(!l||typeof l.html!="string")continue;const c=l.html,{text:m,chars:i}=Je(c);let d=m.indexOf(a);for(;d>=0;){const g=i[d],x=i[d+a.length-1];if(g&&x){const r=g.start,h=x.end,p=c.slice(r,h);if(!p.includes("<")&&!gs(c,r)){const b=c.slice(0,r)+`<a href="${fs(o)}">${p}</a>`+c.slice(h),f=n.slice();return f[s]={...l,html:b},{blocks:f,applied:!0}}}d=m.indexOf(a,d+1)}}return{blocks:n,applied:!1}}function bs(n,e){let o=n,a=0;for(const s of e){const l=hs(o,s.quote,s.href);l.applied&&(o=l.blocks,a++)}return{blocks:o,applied:a}}function js({decofile:n,sections:e,currentKey:o,hasAi:a,onApply:s}){const l=Z(),c=tt(),[m,i]=Q.useState(!1),[d,g]=Q.useState(!1),[x,r]=Q.useState([]),[h,p]=Q.useState(new Set),b=Dt(n),f=Rt(n).filter(u=>u.key!==o&&u.slug),E=async()=>{g(!0);try{const u=xs(e),k=await c.call("BLOG_LINK_SUGGEST",{body:u,posts:f.map(N=>({title:N.title,slug:N.slug}))}),y=[],T=new Set;for(const N of k.suggestions){const P=f.find(Y=>Y.slug===N.slug);if(!P||!b)continue;const D=Lt(b,{category:P.categorySlugs[0]??"",slug:P.slug});if(!D||!u.includes(N.quote))continue;const w=`${N.quote}→${P.slug}`;T.has(w)||(T.add(w),y.push({quote:N.quote,href:D,title:P.title}))}r(y),p(new Set(y.map((N,P)=>P))),i(!0),y.length===0&&De.info(l("sandbox.linkSuggest.none"))}catch(u){De.error(u instanceof Error?u.message:l("sandbox.linkSuggest.failed"))}finally{g(!1)}},C=u=>p(k=>{const y=new Set(k);return y.has(u)?y.delete(u):y.add(u),y}),v=()=>{const u=x.filter((T,N)=>h.has(N)).map(T=>({quote:T.quote,href:T.href})),{blocks:k,applied:y}=bs(e,u);s(k),i(!1),De.success(l("sandbox.linkSuggest.applied",{count:String(y)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:d||!a||f.length===0,title:a?f.length===0?l("sandbox.linkSuggest.noCandidates"):l("sandbox.linkSuggest.hint"):l("sandbox.autonomous.noAiProvider"),onClick:()=>{E()},children:[d?t.jsx(it,{size:14,className:"animate-spin"}):t.jsx(ts,{size:14}),l("sandbox.linkSuggest.button")]}),t.jsx(ss,{open:m,onOpenChange:i,children:t.jsxs(os,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(is,{children:[t.jsx(ls,{children:l("sandbox.linkSuggest.title")}),t.jsx(as,{children:l("sandbox.linkSuggest.description")})]}),x.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:l("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:x.map((u,k)=>{const y=h.has(k);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>C(k),"aria-pressed":y,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-muted/50",children:[t.jsx("span",{className:Ge("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",y?"border-primary bg-primary text-primary-foreground":"border-input"),children:y&&t.jsx(es,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",u.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",u.title]})]})]})},`${u.quote}-${u.href}`)})}),t.jsx(rs,{children:t.jsx(Te,{type:"button",disabled:h.size===0,onClick:v,children:l("sandbox.linkSuggest.apply",{count:String(h.size)})})})]})})]})}function vs(n){return Array.isArray(n)?n.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function Ol({orgSlug:n,virtualMcpId:e,branch:o,blockKey:a,block:s,decofile:l,meta:c,previewBaseUrl:m,move:i,onClose:d,expanded:g,onToggleExpand:x}){const r=Z(),h=ot()?.taskId??null,p=Nt({orgSlug:n,virtualMcpId:e,branch:o}),b=cs({orgSlug:n,virtualMcpId:e,branch:o}),f=ns().length>0,E=ds({orgSlug:n,virtualMcpId:e,branch:o}),C=qt(s,"posts"),[v,u,k,y]=ps(C,j=>{p.mutate({blockKey:a,data:Ot(a,_t(j))})},{isSaving:p.isPending}),[T,N]=Q.useState(a);T!==a&&(N(a),k(C));const P=j=>{k(v),i.apply(a,j,v)},D=(j,I)=>u({...v,[j]:I}),w=Ft("posts",c,It),Y=Ct((j,I)=>p.mutate({blockKey:j,data:I})),[$,R]=Q.useState(0),B=wt({decofile:l,post:v,previewBaseUrl:m,draftPointer:E}),q=Mt(l,"posts",a,F(v.title)),O=Ht(v),[_,z]=Q.useState(!1),V=async()=>{k(v);try{await b.mutateAsync({blockKey:a}),De.success(r("sandbox.postEditor.deletePostSuccess",{title:F(v.title)})),z(!1),d?.()}catch(j){De.error(j instanceof Error?j.message:r("sandbox.postEditor.deletePostFailed"))}},L=Vt(v),M=L.length>0,H=L.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):r("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(kt,{isPending:p.isPending||y,isError:p.isError}),M&&t.jsxs(Re,{children:[t.jsx(qe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx($e,{size:14}),L.length," ",L.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Oe,{side:"bottom",children:H})]})]}),(x||d)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[x&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:x,title:r(g?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:g?t.jsx(lt,{size:16}):t.jsx(at,{size:16})}),d&&t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:d,title:r("sandbox.postBoard.close"),children:t.jsx(pt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(Ut,{value:F(v.title),onChange:j=>D("title",j),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),q&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(yt,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(St,{children:[t.jsxs(He,{value:"content",children:[t.jsx(rt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(He,{value:"settings",children:[t.jsx(nt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[O&&t.jsxs(Re,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Te,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground hover:text-destructive","aria-label":r("sandbox.postEditor.deletePost"),onClick:()=>z(!0),children:t.jsx(dt,{size:14})})}),t.jsx(Oe,{side:"bottom",children:r("sandbox.postEditor.deletePost")})]}),t.jsx(js,{decofile:l,sections:Ue(v.sections),currentKey:a,hasAi:f,onApply:j=>{D("sections",j),R(I=>I+1)}}),t.jsxs(Te,{type:"button",variant:"outline",size:"sm",disabled:!B,title:r(B?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{B&&window.open(B,"_blank","noopener,noreferrer")},children:[t.jsx(ct,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(Ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(Bt,{value:Ue(v.sections),onChange:j=>D("sections",j),meta:c,decofile:l,sandboxRef:{orgSlug:n,virtualMcpId:e,branch:o,threadId:h},emptyMessage:r("sandbox.postEditor.noContentYet")},$)})}),t.jsx(Ve,{value:"settings",children:t.jsxs("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:[t.jsx(Ss,{post:v,decofile:l,onChange:D,blockKey:a,move:i,onMoveStatus:P}),t.jsx(zt,{schema:w,value:v,onChange:u,basePath:"post",meta:c,decofile:l,sandbox:{orgSlug:n,virtualMcpId:e,branch:o,threadId:h},onSaveReferencedBlock:Y})]})})]})]})}),t.jsx(mt,{open:_,onOpenChange:j=>{!j&&!b.isPending&&z(!1)},children:t.jsxs(ut,{children:[t.jsxs(xt,{children:[t.jsx(ft,{children:r("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(gt,{children:r("sandbox.postEditor.deletePostConfirmBody",{title:F(v.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(ht,{children:[t.jsx(bt,{disabled:b.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(jt,{onClick:j=>{j.preventDefault(),V()},disabled:b.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:b.isPending?t.jsxs(t.Fragment,{children:[t.jsx(st,{className:"size-3.5"}),r("sandbox.postEditor.deletingPost")]}):r("sandbox.postEditor.deletePost")})]})]})})]})}function ys(n){const e=Be.c(15),{blockKey:o,post:a,move:s,onMoveStatus:l}=n,c=Z();let m;e[0]!==a?(m=Ke(a),e[0]=a,e[1]=m):m=e[1];const i=m;let d,g;if(e[2]!==o||e[3]!==i||e[4]!==s||e[5]!==l||e[6]!==a||e[7]!==c){let r;e[10]!==i?(r=p=>p!=="generating"||i==="generating",e[10]=i,e[11]=r):r=e[11];const h=Xt.filter(r);d="flex flex-wrap gap-1.5",g=h.map(p=>{const b=p===i,f=b?null:s.refuse(o,p,a);return t.jsxs(Re,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!f,"aria-pressed":b,onClick:()=>l(p),className:Ge("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",b?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-muted",f&&"cursor-not-allowed opacity-50"),children:c(Zt[p])})})}),f&&t.jsx(Oe,{side:"bottom",children:s.reasonText(f)})]},p)}),e[2]=o,e[3]=i,e[4]=s,e[5]=l,e[6]=a,e[7]=c,e[8]=d,e[9]=g}else d=e[8],g=e[9];let x;return e[12]!==d||e[13]!==g?(x=t.jsx("div",{className:d,children:g}),e[12]=d,e[13]=g,e[14]=x):x=e[14],x}function Ss(n){const e=Be.c(166),{post:o,decofile:a,onChange:s,blockKey:l,move:c,onMoveStatus:m}=n,i=Z();let d;e[0]!==o?(d=Ke(o),e[0]=o,e[1]=d):d=e[1];const x=d==="scheduled";let r;e[2]!==o.slug?(r=F(o.slug),e[2]=o.slug,e[3]=r):r=e[3];const h=r,[p,b]=Q.useState(h),[f,E]=Q.useState(null),[C,v]=Q.useState(h);C!==h&&(v(h),b(h));let u;e[4]!==l||e[5]!==h||e[6]!==a||e[7]!==s||e[8]!==p||e[9]!==i?(u=()=>{const S=Yt(p);if(b(S),S===h)return;if(!S){E(null),s("slug","");return}const _e=Qe(a,"posts").filter(et=>et.key!==l).map(ks).filter(Boolean);if(!_e.includes(S)){E(null),s("slug",S);return}const ze=Kt(S,_e),Me=i("sandbox.postEditor.slugDeduped",{slug:ze});b(ze),E(Me),De.info(Me),s("slug",ze)},e[4]=l,e[5]=h,e[6]=a,e[7]=s,e[8]=p,e[9]=i,e[10]=u):u=e[10];const k=u;let y;e[11]!==i?(y=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=y):y=e[12];let T;e[13]!==y?(T=t.jsx(J,{children:y}),e[13]=y,e[14]=T):T=e[14];let N;e[15]!==l||e[16]!==c||e[17]!==m||e[18]!==o?(N=t.jsx(ys,{blockKey:l,post:o,move:c,onMoveStatus:m}),e[15]=l,e[16]=c,e[17]=m,e[18]=o,e[19]=N):N=e[19];let P;e[20]!==T||e[21]!==N?(P=t.jsxs("div",{className:"space-y-2",children:[T,N]}),e[20]=T,e[21]=N,e[22]=P):P=e[22];let D;e[23]!==x||e[24]!==s||e[25]!==o.scheduledDatetime||e[26]!==i?(D=x&&t.jsx(Ie,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:F(o.scheduledDatetime),onChange:S=>s("scheduledDatetime",S),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=x,e[24]=s,e[25]=o.scheduledDatetime,e[26]=i,e[27]=D):D=e[27];let w;e[28]!==P||e[29]!==D?(w=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[P,D]}),e[28]=P,e[29]=D,e[30]=w):w=e[30];let Y;e[31]!==i?(Y=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=Y):Y=e[32];let $;e[33]!==Y?($=t.jsx(J,{htmlFor:"post-excerpt",children:Y}),e[33]=Y,e[34]=$):$=e[34];let R;e[35]!==o.excerpt?(R=F(o.excerpt),e[35]=o.excerpt,e[36]=R):R=e[36];let B;e[37]!==s?(B=S=>s("excerpt",S.target.value),e[37]=s,e[38]=B):B=e[38];let q;e[39]!==R||e[40]!==B?(q=t.jsx(Ye,{id:"post-excerpt",value:R,onChange:B,rows:2}),e[39]=R,e[40]=B,e[41]=q):q=e[41];let O;e[42]!==$||e[43]!==q?(O=t.jsxs("div",{className:"space-y-2",children:[$,q]}),e[42]=$,e[43]=q,e[44]=O):O=e[44];let _;e[45]!==i?(_=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=_):_=e[46];let z;e[47]!==_?(z=t.jsx(J,{htmlFor:"post-slug",children:_}),e[47]=_,e[48]=z):z=e[48];let V;e[49]===Symbol.for("react.memo_cache_sentinel")?(V=S=>{E(null),b(Qt(S.target.value))},e[49]=V):V=e[49];let L;e[50]!==i?(L=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=L):L=e[51];let M;e[52]!==k||e[53]!==p||e[54]!==L?(M=t.jsx(we,{id:"post-slug",value:p,onChange:V,onBlur:k,placeholder:L,maxLength:80,className:"h-10"}),e[52]=k,e[53]=p,e[54]=L,e[55]=M):M=e[55];let H;e[56]!==f?(H=f&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx($e,{size:14,className:"mt-px shrink-0"}),f]}),e[56]=f,e[57]=H):H=e[57];let j;e[58]!==z||e[59]!==M||e[60]!==H?(j=t.jsxs("div",{className:"space-y-2",children:[z,M,H]}),e[58]=z,e[59]=M,e[60]=H,e[61]=j):j=e[61];let I;e[62]!==i?(I=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=I):I=e[63];let U;e[64]!==I?(U={type:"string",format:"date",title:I},e[64]=I,e[65]=U):U=e[65];let W;e[66]!==o.date?(W=F(o.date),e[66]=o.date,e[67]=W):W=e[67];let G;e[68]!==s?(G=S=>s("date",S),e[68]=s,e[69]=G):G=e[69];let K;e[70]!==i?(K=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=K):K=e[71];let A;e[72]!==U||e[73]!==W||e[74]!==G||e[75]!==K?(A=t.jsx(Ie,{schema:U,value:W,onChange:G,path:"post-date",label:K}),e[72]=U,e[73]=W,e[74]=G,e[75]=K,e[76]=A):A=e[76];let X;e[77]!==i?(X=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=X):X=e[78];let ee;e[79]!==X?(ee={type:"integer",title:X},e[79]=X,e[80]=ee):ee=e[80];const Fe=typeof o.readTime=="number"?o.readTime:void 0;let te;e[81]!==s?(te=S=>s("readTime",S),e[81]=s,e[82]=te):te=e[82];let se;e[83]!==i?(se=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=se):se=e[84];let oe;e[85]!==ee||e[86]!==Fe||e[87]!==te||e[88]!==se?(oe=t.jsx(Pt,{schema:ee,value:Fe,onChange:te,path:"post-read-time",label:se}),e[85]=ee,e[86]=Fe,e[87]=te,e[88]=se,e[89]=oe):oe=e[89];let ie;e[90]!==j||e[91]!==A||e[92]!==oe?(ie=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[j,A,oe]}),e[90]=j,e[91]=A,e[92]=oe,e[93]=ie):ie=e[93];const Xe=o.image,Ze=o.mobileImage;let le,ae;e[94]!==s?(le=S=>s("image",S),ae=S=>s("mobileImage",S),e[94]=s,e[95]=le,e[96]=ae):(le=e[95],ae=e[96]);let re;e[97]!==o.alt?(re=F(o.alt),e[97]=o.alt,e[98]=re):re=e[98];let ne;e[99]!==i?(ne=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=ne):ne=e[100];let ce;e[101]!==o.image||e[102]!==o.mobileImage||e[103]!==le||e[104]!==ae||e[105]!==re||e[106]!==ne?(ce=t.jsx(At,{value:Xe,mobileValue:Ze,onChange:le,onMobileChange:ae,alt:re,label:ne}),e[101]=o.image,e[102]=o.mobileImage,e[103]=le,e[104]=ae,e[105]=re,e[106]=ne,e[107]=ce):ce=e[107];let de;e[108]!==i?(de=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=de):de=e[109];let pe;e[110]!==i?(pe=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=pe):pe=e[111];let me;e[112]!==de||e[113]!==pe?(me={type:"string",title:de,description:pe},e[112]=de,e[113]=pe,e[114]=me):me=e[114];let ue;e[115]!==o.alt?(ue=F(o.alt),e[115]=o.alt,e[116]=ue):ue=e[116];let xe;e[117]!==s?(xe=S=>s("alt",S),e[117]=s,e[118]=xe):xe=e[118];let fe;e[119]!==i?(fe=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=fe):fe=e[120];let ge;e[121]!==me||e[122]!==ue||e[123]!==xe||e[124]!==fe?(ge=t.jsx(Ie,{schema:me,value:ue,onChange:xe,path:"post-alt",label:fe}),e[121]=me,e[122]=ue,e[123]=xe,e[124]=fe,e[125]=ge):ge=e[125];let he;e[126]!==ce||e[127]!==ge?(he=t.jsxs("div",{className:"space-y-2",children:[ce,ge]}),e[126]=ce,e[127]=ge,e[128]=he):he=e[128];let be;e[129]!==i?(be=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=be):be=e[130];let je;e[131]!==s?(je=S=>s("authors",S),e[131]=s,e[132]=je):je=e[132];let ve;e[133]!==a||e[134]!==o.authors||e[135]!==be||e[136]!==je?(ve=t.jsx(We,{label:be,decofile:a,kind:"authors",valueField:"email",toRef:Ns,selected:o.authors,onChange:je}),e[133]=a,e[134]=o.authors,e[135]=be,e[136]=je,e[137]=ve):ve=e[137];let ye;e[138]!==i?(ye=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=ye):ye=e[139];let Se;e[140]!==s?(Se=S=>s("categories",S),e[140]=s,e[141]=Se):Se=e[141];let Ee;e[142]!==a||e[143]!==o.categories||e[144]!==ye||e[145]!==Se?(Ee=t.jsx(We,{label:ye,decofile:a,kind:"categories",valueField:"slug",toRef:Es,selected:o.categories,onChange:Se}),e[142]=a,e[143]=o.categories,e[144]=ye,e[145]=Se,e[146]=Ee):Ee=e[146];let Ne;e[147]!==s?(Ne=S=>s("extraProps",S),e[147]=s,e[148]=Ne):Ne=e[148];let ke;e[149]!==o.extraProps||e[150]!==Ne?(ke=t.jsx(Ps,{value:o.extraProps,onChange:Ne}),e[149]=o.extraProps,e[150]=Ne,e[151]=ke):ke=e[151];let Ce;e[152]!==s?(Ce=S=>s("seo",S),e[152]=s,e[153]=Ce):Ce=e[153];let Pe;e[154]!==o.seo||e[155]!==Ce?(Pe=t.jsx(Cs,{value:o.seo,onChange:Ce}),e[154]=o.seo,e[155]=Ce,e[156]=Pe):Pe=e[156];let Ae;return e[157]!==O||e[158]!==ie||e[159]!==he||e[160]!==ve||e[161]!==Ee||e[162]!==ke||e[163]!==Pe||e[164]!==w?(Ae=t.jsxs("div",{className:"space-y-5",children:[w,O,ie,he,ve,Ee,ke,Pe]}),e[157]=O,e[158]=ie,e[159]=he,e[160]=ve,e[161]=Ee,e[162]=ke,e[163]=Pe,e[164]=w,e[165]=Ae):Ae=e[165],Ae}function Es(n){return{name:F(n.name),slug:F(n.slug)}}function Ns(n){return{...n}}function ks(n){return F(n.payload.slug)}function Cs(n){const e=Be.c(93),{value:o,onChange:a}=n,s=Z();let l;e[0]!==o?(l=o&&typeof o=="object"&&!Array.isArray(o)?o:{},e[0]=o,e[1]=l):l=e[1];const c=l;let m;e[2]!==a||e[3]!==c?(m=(A,X)=>a({...c,[A]:X}),e[2]=a,e[3]=c,e[4]=m):m=e[4];const i=m;let d;e[5]!==s?(d=s("sandbox.postEditor.seoSectionLabel"),e[5]=s,e[6]=d):d=e[6];let g;e[7]!==d?(g=t.jsx("p",{className:"text-sm font-medium",children:d}),e[7]=d,e[8]=g):g=e[8];let x;e[9]!==s?(x=s("sandbox.postEditor.seoSectionHint"),e[9]=s,e[10]=x):x=e[10];let r;e[11]!==x?(r=t.jsx("p",{className:"text-xs text-muted-foreground",children:x}),e[11]=x,e[12]=r):r=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsxs("div",{className:"space-y-1",children:[g,r]}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let p;e[16]!==s?(p=s("sandbox.postEditor.seoTitleLabel"),e[16]=s,e[17]=p):p=e[17];let b;e[18]!==p?(b=t.jsx(J,{htmlFor:"post-seo-title",children:p}),e[18]=p,e[19]=b):b=e[19];let f;e[20]!==c.title?(f=F(c.title),e[20]=c.title,e[21]=f):f=e[21];let E;e[22]!==i?(E=A=>i("title",A.target.value),e[22]=i,e[23]=E):E=e[23];let C;e[24]!==f||e[25]!==E?(C=t.jsx(we,{id:"post-seo-title",value:f,onChange:E,className:"h-10"}),e[24]=f,e[25]=E,e[26]=C):C=e[26];let v;e[27]!==C||e[28]!==b?(v=t.jsxs("div",{className:"space-y-2",children:[b,C]}),e[27]=C,e[28]=b,e[29]=v):v=e[29];let u;e[30]!==s?(u=s("sandbox.postEditor.seoDescriptionLabel"),e[30]=s,e[31]=u):u=e[31];let k;e[32]!==u?(k=t.jsx(J,{htmlFor:"post-seo-description",children:u}),e[32]=u,e[33]=k):k=e[33];let y;e[34]!==c.description?(y=F(c.description),e[34]=c.description,e[35]=y):y=e[35];let T;e[36]!==i?(T=A=>i("description",A.target.value),e[36]=i,e[37]=T):T=e[37];let N;e[38]!==y||e[39]!==T?(N=t.jsx(Ye,{id:"post-seo-description",value:y,onChange:T,rows:2}),e[38]=y,e[39]=T,e[40]=N):N=e[40];let P;e[41]!==k||e[42]!==N?(P=t.jsxs("div",{className:"space-y-2",children:[k,N]}),e[41]=k,e[42]=N,e[43]=P):P=e[43];let D;e[44]!==s?(D=s("sandbox.postEditor.seoImageLabel"),e[44]=s,e[45]=D):D=e[45];let w;e[46]!==D?(w={type:"string",format:"image-uri",title:D},e[46]=D,e[47]=w):w=e[47];const Y=c.image;let $;e[48]!==i?($=A=>i("image",A),e[48]=i,e[49]=$):$=e[49];let R;e[50]!==s?(R=s("sandbox.postEditor.seoImageLabel"),e[50]=s,e[51]=R):R=e[51];let B;e[52]!==c.image||e[53]!==w||e[54]!==$||e[55]!==R?(B=t.jsx(Tt,{schema:w,value:Y,onChange:$,path:"post-seo-image",label:R}),e[52]=c.image,e[53]=w,e[54]=$,e[55]=R,e[56]=B):B=e[56];let q;e[57]!==s?(q=s("sandbox.postEditor.seoCanonicalLabel"),e[57]=s,e[58]=q):q=e[58];let O;e[59]!==q?(O=t.jsx(J,{htmlFor:"post-seo-canonical",children:q}),e[59]=q,e[60]=O):O=e[60];let _;e[61]!==c.canonical?(_=F(c.canonical),e[61]=c.canonical,e[62]=_):_=e[62];let z;e[63]!==i?(z=A=>i("canonical",A.target.value),e[63]=i,e[64]=z):z=e[64];let V;e[65]!==s?(V=s("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=s,e[66]=V):V=e[66];let L;e[67]!==_||e[68]!==z||e[69]!==V?(L=t.jsx(we,{id:"post-seo-canonical",value:_,onChange:z,placeholder:V,className:"h-10"}),e[67]=_,e[68]=z,e[69]=V,e[70]=L):L=e[70];let M;e[71]!==O||e[72]!==L?(M=t.jsxs("div",{className:"space-y-2",children:[O,L]}),e[71]=O,e[72]=L,e[73]=M):M=e[73];let H;e[74]!==s?(H=s("sandbox.postEditor.seoNoIndexingLabel"),e[74]=s,e[75]=H):H=e[75];let j;e[76]!==H?(j=t.jsx(J,{htmlFor:"post-seo-no-indexing",children:H}),e[76]=H,e[77]=j):j=e[77];const I=c.noIndexing===!0;let U;e[78]!==i?(U=A=>i("noIndexing",A),e[78]=i,e[79]=U):U=e[79];let W;e[80]!==I||e[81]!==U?(W=t.jsx(Et,{id:"post-seo-no-indexing",checked:I,onCheckedChange:U}),e[80]=I,e[81]=U,e[82]=W):W=e[82];let G;e[83]!==j||e[84]!==W?(G=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[j,W]}),e[83]=j,e[84]=W,e[85]=G):G=e[85];let K;return e[86]!==v||e[87]!==P||e[88]!==B||e[89]!==M||e[90]!==G||e[91]!==h?(K=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[h,v,P,B,M,G]}),e[86]=v,e[87]=P,e[88]=B,e[89]=M,e[90]=G,e[91]=h,e[92]=K):K=e[92],K}function Ps(n){const e=Be.c(24),{value:o,onChange:a}=n,s=Z();let l,c,m,i;if(e[0]!==a||e[1]!==s||e[2]!==o){l=vs(o);const h=(b,f)=>a(l.map((E,C)=>C===b?{...E,...f}:E));c="space-y-2";let p;e[7]!==s?(p=s("sandbox.postEditor.extraPropsLabel"),e[7]=s,e[8]=p):p=e[8],e[9]!==p?(m=t.jsx(J,{children:p}),e[9]=p,e[10]=m):m=e[10],i=l.length>0&&t.jsx("ul",{className:"space-y-2",children:l.map((b,f)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(we,{value:b.key,onChange:E=>h(f,{key:E.target.value}),placeholder:s("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(we,{value:b.value,onChange:E=>h(f,{value:E.target.value}),placeholder:s("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(Gt,{label:s("sandbox.postEditor.removePropLabel"),onClick:()=>a(l.filter((E,C)=>C!==f))})]},f))}),e[0]=a,e[1]=s,e[2]=o,e[3]=l,e[4]=c,e[5]=m,e[6]=i}else l=e[3],c=e[4],m=e[5],i=e[6];let d;e[11]!==s?(d=s("sandbox.postEditor.addPropLabel"),e[11]=s,e[12]=d):d=e[12];let g;e[13]!==l||e[14]!==a?(g=()=>a([...l,{key:"",value:""}]),e[13]=l,e[14]=a,e[15]=g):g=e[15];let x;e[16]!==d||e[17]!==g?(x=t.jsx(Jt,{label:d,onClick:g}),e[16]=d,e[17]=g,e[18]=x):x=e[18];let r;return e[19]!==c||e[20]!==m||e[21]!==i||e[22]!==x?(r=t.jsxs("div",{className:c,children:[m,i,x]}),e[19]=c,e[20]=m,e[21]=i,e[22]=x,e[23]=r):r=e[23],r}function We(n){const e=Be.c(24),{label:o,decofile:a,kind:s,valueField:l,toRef:c,selected:m,onChange:i}=n,d=Z();let g;e[0]!==a||e[1]!==s||e[2]!==m||e[3]!==c||e[4]!==l?(g=Wt({records:Qe(a,s),selected:m,valueField:l,toRef:c}),e[0]=a,e[1]=s,e[2]=m,e[3]=c,e[4]=l,e[5]=g):g=e[5];const{options:x,selectedValues:r,refsForValues:h}=g;let p;e[6]!==s||e[7]!==d?(p=d(s==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=s,e[7]=d,e[8]=p):p=e[8];const b=p;let f;e[9]!==s||e[10]!==d?(f=d(s==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=s,e[10]=d,e[11]=f):f=e[11];const E=f;let C;e[12]!==o?(C=t.jsx(J,{children:o}),e[12]=o,e[13]=C):C=e[13];let v;e[14]!==b||e[15]!==i||e[16]!==x||e[17]!==h||e[18]!==E||e[19]!==r?(v=x.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:b}):t.jsx(vt,{options:x,defaultValue:r,onValueChange:k=>i(h(k)),placeholder:E,maxCount:4}),e[14]=b,e[15]=i,e[16]=x,e[17]=h,e[18]=E,e[19]=r,e[20]=v):v=e[20];let u;return e[21]!==C||e[22]!==v?(u=t.jsxs("div",{className:"space-y-2",children:[C,v]}),e[21]=C,e[22]=v,e[23]=u):u=e[23],u}export{Ol as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,b as K,d as Z,f as ee,a6 as te,j as t,B as L,l as se}from"./index-
|
|
1
|
+
import{c as J,b as K,d as Z,f as ee,a6 as te,j as t,B as L,l as se}from"./index-B1zctMWM.js";import{d as Q}from"./dialog-DUkVOZIE.js";import{b as A,T as q,a as G}from"./tooltip-CmsIn1_T.js";import{n as ie}from"./Image01-VqGHD62D.js";import{n as le}from"./LinkExternal01-ByTglQMD.js";import{s as re}from"./XClose-B5gtMDn3.js";import{h as ne}from"./agent-icon-Plx0vVQZ.js";import{f as oe,F as ae,a as ce}from"./file-preview-DwqtznxG.js";import{F as V,H as de}from"./file-share-button-CGad6pvg.js";import{F as W}from"./file-type-icon-CideAigq.js";import{u as fe,b as me,e as he}from"./use-org-fs-CfcB8IFl.js";import{p as xe,b as pe}from"./location-DPIrGNp7.js";function ue(u){const e=J.c(13),{previewPath:i}=u,a=K(),x=Z(),c=ee({strict:!1}).org??"";let o;e[0]!==i?(o=i.split("/").slice(0,-1).join("/"),e[0]=i,e[1]=o):o=e[1];const r=o;let d;e[2]!==x||e[3]!==c||e[4]!==r||e[5]!==i?(d=()=>{x({to:te.library,params:{org:c},search:{path:r||void 0,preview:i}})},e[2]=x,e[3]=c,e[4]=r,e[5]=i,e[6]=d):d=e[6];const S=d;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ne,{size:14}),e[7]=f):f=e[7];let n;e[8]!==a?(n=a("library.seeInLibrary.label"),e[8]=a,e[9]=n):n=e[9];let s;return e[10]!==S||e[11]!==n?(s=t.jsxs(L,{variant:"ghost",size:"sm",onClick:S,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[f,n]}),e[10]=S,e[11]=n,e[12]=s):s=e[12],s}const je=u=>/\.html?$/i.test(u);function X(u){const e=J.c(10),{onClose:i}=u,a=K();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(re,{size:14}),e[0]=x):x=e[0];let c;e[1]!==i?(c=t.jsx(q,{asChild:!0,children:t.jsx(L,{variant:"ghost",size:"icon",onClick:i,children:x})}),e[1]=i,e[2]=c):c=e[2];let o;e[3]!==a?(o=a("library.previewContent.close"),e[3]=a,e[4]=o):o=e[4];let r;e[5]!==o?(r=t.jsx(G,{side:"bottom",children:o}),e[5]=o,e[6]=r):r=e[6];let d;return e[7]!==c||e[8]!==r?(d=t.jsxs(A,{children:[c,r]}),e[7]=c,e[8]=r,e[9]=d):d=e[9],d}function Te(u){const e=J.c(67),{previewPath:i,onClose:a,showSeeInLibrary:x,variant:c}=u,o=x===void 0?!1:x,r=K();let d;e[0]!==i?(d=xe(i),e[0]=i,e[1]=d):d=e[1];const S=d,{volume:f,dirPath:n}=S,{data:s,isPending:M}=fe(f,n),$=me(f??"");let l,m,h,j,b,v,g,p,w;if(e[2]!==$||e[3]!==s||e[4]!==n||e[5]!==a||e[6]!==i||e[7]!==o||e[8]!==c||e[9]!==f){w=Symbol.for("react.early_return_sentinel");e:{m=pe(n),h=c==="dialog";let U;e[19]!==i||e[20]!==o?(U=o?t.jsx(ue,{previewPath:i}):null,e[19]=i,e[20]=o,e[21]=U):U=e[21];const B=U;if(l=s&&s.kind==="file"?{key:i,filename:m,size:s.size,downloadUrl:$(s.path)}:null,l&&s&&je(m)){const Y=l.downloadUrl;let _;e[22]!==s?(_=he(s),e[22]=s,e[23]=_):_=e[23];const E=f??"",O=s.shareMode??"private",H=s.effectivePublic??!1,R=window.location.origin+l.downloadUrl;let F;e[24]!==n||e[25]!==E||e[26]!==O||e[27]!==H||e[28]!==R?(F=t.jsx(V,{volume:E,path:n,shareMode:O,effectivePublic:H,url:R}),e[24]=n,e[25]=E,e[26]=O,e[27]=H,e[28]=R,e[29]=F):F=e[29];let z;e[30]!==h||e[31]!==a?(z=h?t.jsx("div",{className:"w-8 shrink-0"}):t.jsx(X,{onClose:a}),e[30]=h,e[31]=a,e[32]=z):z=e[32];let I;e[33]!==B||e[34]!==F||e[35]!==z?(I=t.jsxs(t.Fragment,{children:[F,B,z]}),e[33]=B,e[34]=F,e[35]=z,e[36]=I):I=e[36],w=t.jsxs(t.Fragment,{children:[h&&t.jsx(Q,{className:"sr-only",children:m}),t.jsx(de,{readUrl:Y,marker:_,title:m,savePath:f==="home"?n:void 0,trailing:I},i)]});break e}const D=h?"h-11 py-1 pr-12 pl-2":"h-9 px-2";e[37]!==D?(p=se("flex shrink-0 items-center gap-1 border-b border-border/60",D),e[37]=D,e[38]=p):p=e[38],j="flex min-w-0 flex-1 items-center gap-2 px-2",b=t.jsx(W,{filename:m,className:"h-4.5 w-3.5 shrink-0"}),v=h?t.jsx(Q,{className:"truncate text-xs font-medium text-foreground",children:m}):t.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:m}),g=l&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:oe(l.size)})}e[2]=$,e[3]=s,e[4]=n,e[5]=a,e[6]=i,e[7]=o,e[8]=c,e[9]=f,e[10]=l,e[11]=m,e[12]=h,e[13]=j,e[14]=b,e[15]=v,e[16]=g,e[17]=p,e[18]=w}else l=e[10],m=e[11],h=e[12],j=e[13],b=e[14],v=e[15],g=e[16],p=e[17],w=e[18];if(w!==Symbol.for("react.early_return_sentinel"))return w;let y;e[39]!==j||e[40]!==b||e[41]!==v||e[42]!==g?(y=t.jsxs("div",{className:j,children:[b,v,g]}),e[39]=j,e[40]=b,e[41]=v,e[42]=g,e[43]=y):y=e[43];let P;e[44]!==s?.effectivePublic||e[45]!==s?.shareMode||e[46]!==l||e[47]!==n||e[48]!==r||e[49]!==f?(P=l&&t.jsxs(t.Fragment,{children:[t.jsx(V,{volume:f??"",path:n,shareMode:s?.shareMode??"private",effectivePublic:s?.effectivePublic??!1,url:window.location.origin+l.downloadUrl}),t.jsxs(A,{children:[t.jsx(q,{asChild:!0,children:t.jsx(L,{variant:"ghost",size:"icon",asChild:!0,children:t.jsx("a",{href:l.downloadUrl,download:l.filename,children:t.jsx(ie,{size:14})})})}),t.jsx(G,{side:"bottom",children:r("library.previewContent.download")})]}),t.jsxs(A,{children:[t.jsx(q,{asChild:!0,children:t.jsx(L,{variant:"ghost",size:"icon",onClick:()=>window.open(l.downloadUrl,"_blank","noopener"),children:t.jsx(le,{size:14})})}),t.jsx(G,{side:"bottom",children:r("library.previewContent.openInNewTab")})]})]}),e[44]=s?.effectivePublic,e[45]=s?.shareMode,e[46]=l,e[47]=n,e[48]=r,e[49]=f,e[50]=P):P=e[50];let N;e[51]!==h||e[52]!==a?(N=!h&&t.jsx(X,{onClose:a}),e[51]=h,e[52]=a,e[53]=N):N=e[53];let k;e[54]!==P||e[55]!==N||e[56]!==p||e[57]!==y?(k=t.jsxs("div",{className:p,children:[y,P,N]}),e[54]=P,e[55]=N,e[56]=p,e[57]=y,e[58]=k):k=e[58];let C;e[59]!==l||e[60]!==m||e[61]!==M||e[62]!==r?(C=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:l?t.jsx(ae,{file:l}):M?t.jsx(ce,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(W,{filename:m,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:r("library.previewContent.fileNotAvailable")})]})}),e[59]=l,e[60]=m,e[61]=M,e[62]=r,e[63]=C):C=e[63];let T;return e[64]!==k||e[65]!==C?(T=t.jsxs(t.Fragment,{children:[k,C]}),e[64]=k,e[65]=C,e[66]=T):T=e[66],T}export{Te as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as n}from"./index-
|
|
1
|
+
import{c as p,j as n}from"./index-B1zctMWM.js";import{b as x,D as c}from"./dialog-DUkVOZIE.js";import{L as w}from"./preview-content-b2Kfd0ih.js";function g(m){const e=p.c(9),{previewPath:t,onClose:o,showSeeInLibrary:l}=m,a=l===void 0?!1:l;let i;e[0]!==o?(i=f=>{f||o()},e[0]=o,e[1]=i):i=e[1];let r;e[2]!==o||e[3]!==t||e[4]!==a?(r=n.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",children:n.jsx(w,{previewPath:t,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=t,e[4]=a,e[5]=r):r=e[5];let s;return e[6]!==i||e[7]!==r?(s=n.jsx(c,{open:!0,onOpenChange:i,children:r}),e[6]=i,e[7]=r,e[8]=s):s=e[8],s}export{g as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,b as De,o as Je,m as et,K as Ke,a as Ue,t as R,l as ze,j as s,r as I,B as Oe,h as tt,n as Ee,fn as st,at,aU as lt,x as it,q as M,ee as T,ec as Ye,ed as Xe}from"./index-DbabGxy6.js";import{A as nt}from"./avatar-Be2YP03d.js";import{D as rt,b as ot,c as ct,d as ft,h as dt,e as ut}from"./dialog-CSMrPqBB.js";import{T as pt,a as mt,R as gt,b as ht}from"./index-DK0Dq4zJ.js";import{s as xt}from"./Trash01-DKbCrUTj.js";import{i as vt}from"./Upload01-BBKhvCnt.js";import{S as Fe}from"./switch-DobgoLr7.js";import{d as qe,S as Be,c as $e,b as He}from"./select-DOq28vkW.js";import{T as Ie,a as bt}from"./toggle-group-CHFxR7n1.js";import{I as jt}from"./input-DV9TXIhc.js";import{i as yt}from"./Monitor01-WwJ1rHPk.js";import{n as wt,a as Nt,i as _t}from"./Sun-7ajd25ZV.js";import{u as St}from"./use-debounced-autosave-BWu_uxAJ.js";import{p as At,q as Ct}from"./question-004-sINsf4GQ.js";import"./User01-D2Lmw0ef.js";import"./X-ateu7dRb.js";import"./index-DNU42V4k.js";import"./Check-CzhgdtoZ.js";import"./ChevronUp-bPHHer4a.js";const kt=2*1024*1024,Ut=["image/png","image/jpeg","image/gif","image/webp"];async function Dt(e){try{return(await e.json()).error??""}catch{return""}}async function Me(e){if(!e.ok)throw new Error(await Dt(e));return e}function Pt(e){const t=O.c(3);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ke.userAvatars(),t[0]=l):l=t[0];let a;return t[1]!==e?(a={queryKey:l,enabled:e,queryFn:zt},t[1]=e,t[2]=a):a=t[2],et(a)}async function zt(){return(await(await Me(await fetch("/api/_users/avatars"))).json()).avatars}function Mt(){const e=O.c(22),t=De(),l=Je();let a;e[0]!==l?(a=async()=>{await Promise.all([l.invalidateQueries({queryKey:Ke.userAvatars()}),Ue.getSession({query:{disableCookieCache:!0}})])},e[0]=l,e[1]=a):a=e[1];const i=a;let o;e[2]!==i||e[3]!==t?(o=async(f,b)=>{try{return await f(),await i(),R.success(b),!0}catch(j){const x=j;return R.error(x instanceof Error&&x.message?x.message:t("settings.profile.avatarUploadError")),!1}},e[2]=i,e[3]=t,e[4]=o):o=e[4];const r=o;let p;e[5]!==t||e[6]!==r?(p=async f=>{let b=null;return await r(async()=>{b=(await(await Me(await fetch("/api/_users/avatar",{method:"POST",headers:{"content-type":f.type||"image/webp"},body:f}))).json()).url,await Ue.updateUser({image:b})},t("settings.profile.avatarUpdated"))?b:null},e[5]=t,e[6]=r,e[7]=p):p=e[7];const m=p;let h;e[8]!==t||e[9]!==r?(h=f=>r(async()=>{const b=await Me(await fetch("/api/_users/avatar/select",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:f})})),{url:j}=await b.json();await Ue.updateUser({image:j})},t("settings.profile.avatarUpdated")),e[8]=t,e[9]=r,e[10]=h):h=e[10];const d=h;let _;e[11]!==t||e[12]!==r?(_=f=>r(async()=>{await Me(await fetch(`/api/_users/avatar?path=${encodeURIComponent(f)}`,{method:"DELETE"}))},t("settings.profile.avatarDeleted")),e[11]=t,e[12]=r,e[13]=_):_=e[13];const g=_;let c;e[14]!==t||e[15]!==r?(c=()=>r(Tt,t("settings.profile.avatarRemoved")),e[14]=t,e[15]=r,e[16]=c):c=e[16];const v=c;let u;return e[17]!==g||e[18]!==v||e[19]!==d||e[20]!==m?(u={uploadAvatar:m,selectAvatar:d,deleteStoredAvatar:g,removeAvatar:v},e[17]=g,e[18]=v,e[19]=d,e[20]=m,e[21]=u):u=e[21],u}async function Tt(){await Ue.updateUser({image:null}),await Me(await fetch("/api/_users/avatar",{method:"DELETE"}))}function Rt(e){const t=O.c(26);let l,a,i,o,r,p;t[0]!==e?({className:l,defaultValue:a,value:p,min:o,max:r,...i}=e,t[0]=e,t[1]=l,t[2]=a,t[3]=i,t[4]=o,t[5]=r,t[6]=p):(l=t[1],a=t[2],i=t[3],o=t[4],r=t[5],p=t[6]);const m=o===void 0?0:o,h=r===void 0?100:r;let d;t[7]!==a||t[8]!==h||t[9]!==m||t[10]!==p?(d=Array.isArray(p)?p:Array.isArray(a)?a:[m,h],t[7]=a,t[8]=h,t[9]=m,t[10]=p,t[11]=d):d=t[11];const _=d;let g;t[12]!==l?(g=ze("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",l),t[12]=l,t[13]=g):g=t[13];let c;t[14]===Symbol.for("react.memo_cache_sentinel")?(c=ze("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),t[14]=c):c=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(pt,{"data-slot":"slider-track",className:c,children:s.jsx(mt,{"data-slot":"slider-range",className:ze("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),t[15]=v):v=t[15];let u;t[16]!==_.length?(u=Array.from({length:_.length},Et),t[16]=_.length,t[17]=u):u=t[17];let f;return t[18]!==a||t[19]!==h||t[20]!==m||t[21]!==i||t[22]!==g||t[23]!==u||t[24]!==p?(f=s.jsxs(gt,{"data-slot":"slider",defaultValue:a,value:p,min:m,max:h,className:g,...i,children:[v,u]}),t[18]=a,t[19]=h,t[20]=m,t[21]=i,t[22]=g,t[23]=u,t[24]=p,t[25]=f):f=t[25],f}function Et(e,t){return s.jsx(ht,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},t)}function Ve(e){return Math.max(e.viewport/e.imageWidth,e.viewport/e.imageHeight)}function Ot(e){const t=Ve(e)*e.zoom;return{x:Math.max(0,(e.imageWidth*t-e.viewport)/2),y:Math.max(0,(e.imageHeight*t-e.viewport)/2)}}function Qe(e){const t=Ot(e);return{x:Math.min(t.x,Math.max(-t.x,e.offset.x)),y:Math.min(t.y,Math.max(-t.y,e.offset.y))}}function Ft(e){const t=Ve(e)*e.zoom,l=Qe(e),a=e.viewport/t,i=e.imageWidth/2-a/2-l.x/t,o=e.imageHeight/2-a/2-l.y/t;return{sx:Math.min(Math.max(0,i),Math.max(0,e.imageWidth-a)),sy:Math.min(Math.max(0,o),Math.max(0,e.imageHeight-a)),size:a}}function It(e,t){return Math.max(1,Math.round(Math.min(t,e.size)))}const Le=288,Pe=1,We=4;function Lt(e){return new Promise((t,l)=>{const a=URL.createObjectURL(e),i=new Image;i.onload=()=>t({element:i,url:a,width:i.naturalWidth,height:i.naturalHeight}),i.onerror=()=>{URL.revokeObjectURL(a),l(new Error("decode failed"))},i.src=a})}function $t(e,t,l){const a=Ft(t),i=It(a,l),o=document.createElement("canvas");o.width=i,o.height=i;const r=o.getContext("2d");return r?(r.drawImage(e.element,a.sx,a.sy,a.size,a.size,0,0,i,i),new Promise(p=>{o.toBlob(m=>p(m),"image/webp",.92)})):Promise.resolve(null)}function Vt({open:e,onOpenChange:t,title:l,description:a,shape:i="circle",maxOutputSize:o=512,accept:r,maxBytes:p,onUpload:m,gallery:h}){const d=De(),_=I.useRef(null),g=I.useRef(null),[c,v]=I.useState(null),[u,f]=I.useState(Pe),[b,j]=I.useState({x:0,y:0}),[x,w]=I.useState(!1),A=i==="circle"?"rounded-full":"rounded-xl";function y(){c&&URL.revokeObjectURL(c.url),v(null),f(Pe),j({x:0,y:0})}function N(){y(),t(!1)}async function P(n){if(!r.includes(n.type)){R.error(d("imageUpload.unsupportedType"));return}if(n.size>p){R.error(d("imageUpload.tooLarge",{max:String(Math.round(p/(1024*1024)))}));return}try{y(),v(await Lt(n))}catch{R.error(d("imageUpload.decodeFailed"))}}const C=c&&{imageWidth:c.width,imageHeight:c.height,viewport:Le,zoom:u,offset:b},k=C?Qe(C):{x:0,y:0},U=C?Ve(C)*u:1;async function E(){if(!(!c||!C)){w(!0);try{const n=await $t(c,C,o);if(!n){R.error(d("imageUpload.encodeFailed"));return}await m(n)&&N()}finally{w(!1)}}}async function F(n){w(!0);try{await n}finally{w(!1)}}return s.jsx(rt,{open:e,onOpenChange:n=>n?t(!0):N(),children:s.jsxs(ot,{className:"sm:max-w-[26rem]",children:[s.jsxs(ct,{children:[s.jsx(ft,{children:l}),a?s.jsx(dt,{children:a}):null]}),c&&C?s.jsxs("div",{className:"flex flex-col items-center gap-4",children:[s.jsx("div",{className:ze("relative overflow-hidden bg-muted touch-none cursor-grab active:cursor-grabbing",A),style:{width:Le,height:Le},onPointerDown:n=>{g.current={x:n.clientX-k.x,y:n.clientY-k.y},n.currentTarget.setPointerCapture(n.pointerId)},onPointerMove:n=>{const D=g.current;D&&j({x:n.clientX-D.x,y:n.clientY-D.y})},onPointerUp:n=>{g.current=null,n.currentTarget.releasePointerCapture(n.pointerId)},onPointerCancel:()=>{g.current=null},onWheel:n=>{const D=u-n.deltaY*.002;f(Math.min(We,Math.max(Pe,D)))},children:s.jsx("img",{src:c.url,alt:"",draggable:!1,className:"absolute left-1/2 top-1/2 max-w-none select-none",style:{width:c.width*U,height:c.height*U,transform:`translate(calc(-50% + ${k.x}px), calc(-50% + ${k.y}px))`}})}),s.jsxs("div",{className:"flex w-full items-center gap-3 px-1",children:[s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:d("imageUpload.zoom")}),s.jsx(Rt,{value:[u],min:Pe,max:We,step:.01,onValueChange:([n])=>f(n??Pe),"aria-label":d("imageUpload.zoom")})]})]}):s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("button",{type:"button",onClick:()=>_.current?.click(),className:"flex flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-border py-10 text-sm text-muted-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[s.jsx(vt,{className:"size-5"}),d("imageUpload.choose")]}),h&&h.items.length>0?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:d("imageUpload.recent")}),s.jsx("div",{className:"flex flex-wrap gap-2",children:h.items.map(n=>s.jsxs("div",{className:"group relative",children:[s.jsx("button",{type:"button",disabled:x,onClick:()=>{F(h.onSelect(n.path)).then(N)},"aria-label":d("imageUpload.usePicture"),className:ze("size-14 overflow-hidden border transition-opacity hover:opacity-80 disabled:opacity-50",A,n.current?"border-primary ring-2 ring-primary/40":"border-border"),children:s.jsx("img",{src:n.url,alt:"",className:"size-full object-cover"})}),h.onDelete&&!n.current?s.jsx("button",{type:"button",disabled:x,onClick:()=>{F(h.onDelete(n.path))},"aria-label":d("imageUpload.deletePicture"),className:"absolute -right-1 -top-1 hidden rounded-lg bg-background p-1 text-muted-foreground shadow-sm hover:text-destructive group-hover:block",children:s.jsx(xt,{className:"size-3"})}):null]},n.path))})]}):null]}),s.jsx("input",{ref:_,type:"file",accept:r.join(","),className:"hidden",onChange:n=>{const D=n.target.files?.[0];n.target.value="",D&&P(D)}}),s.jsx(ut,{children:c?s.jsxs(s.Fragment,{children:[s.jsx(Oe,{variant:"ghost",onClick:y,disabled:x,children:d("imageUpload.back")}),s.jsxs(Oe,{onClick:()=>{E()},disabled:x,children:[x?s.jsx(tt,{size:"sm"}):null,d("imageUpload.save")]})]}):s.jsx(Oe,{variant:"ghost",onClick:N,children:d("imageUpload.cancel")})})]})})}const Ge=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function qt(e){const t=O.c(36),{url:l,fallback:a}=e,i=De(),[o,r]=I.useState(!1),{uploadAvatar:p,selectAvatar:m,deleteStoredAvatar:h,removeAvatar:d}=Mt(),_=Pt(o);let g;t[0]!==d||t[1]!==i||t[2]!==l?(g=l?s.jsx(Oe,{variant:"ghost",size:"sm",onClick:()=>{d()},children:i("settings.profile.avatarRemove")}):null,t[0]=d,t[1]=i,t[2]=l,t[3]=g):g=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(!0),t[4]=c):c=t[4];let v;t[5]!==i?(v=i("settings.profile.avatarUpload"),t[5]=i,t[6]=v):v=t[6];let u;t[7]!==i?(u=i("settings.profile.avatarUpload"),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==a||t[10]!==l?(f=s.jsx(nt,{url:l,fallback:a,shape:"circle",size:"base"}),t[9]=a,t[10]=l,t[11]=f):f=t[11];let b;t[12]!==v||t[13]!==u||t[14]!==f?(b=s.jsx("button",{type:"button",onClick:c,"aria-label":v,title:u,className:"rounded-full transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:f}),t[12]=v,t[13]=u,t[14]=f,t[15]=b):b=t[15];let j;t[16]!==i?(j=i("settings.profile.avatarDialogTitle"),t[16]=i,t[17]=j):j=t[17];let x;t[18]!==i?(x=i("settings.profile.avatarDialogDescription"),t[18]=i,t[19]=x):x=t[19];let w;t[20]!==_.data?(w=_.data??[],t[20]=_.data,t[21]=w):w=t[21];let A;t[22]!==h||t[23]!==m||t[24]!==w?(A={items:w,onSelect:m,onDelete:h},t[22]=h,t[23]=m,t[24]=w,t[25]=A):A=t[25];let y;t[26]!==o||t[27]!==A||t[28]!==j||t[29]!==x||t[30]!==p?(y=s.jsx(Vt,{open:o,onOpenChange:r,title:j,description:x,shape:"circle",accept:Ut,maxBytes:kt,onUpload:p,gallery:A}),t[26]=o,t[27]=A,t[28]=j,t[29]=x,t[30]=p,t[31]=y):y=t[31];let N;return t[32]!==g||t[33]!==y||t[34]!==b?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[g,b,y]}),t[32]=g,t[33]=y,t[34]=b,t[35]=N):N=t[35],N}function Bt(){const e=O.c(36),t=De(),{data:l,isPending:a}=Ue.useSession(),i=l?.user,o=i?.image,r=i?.name??"";let p;e[0]!==r?(p={values:{name:r}},e[0]=r,e[1]=p):p=e[1];const m=at(p);let h;e[2]!==m||e[3]!==t?(h={save:async()=>{const C=m.control._formState.dirtyFields;if(Object.keys(C).length===0)return;const k=m.getValues(),U=m.control._defaultValues;m.reset(k,{keepValues:!0});try{await Ue.updateUser({name:k.name}),M("profile_updated",{fields:["name"]}),R.success(t("settings.profile.updateSuccess"))}catch{m.reset(U,{keepValues:!0}),R.error(t("settings.profile.updateError"))}}},e[2]=m,e[3]=t,e[4]=h):h=e[4];const{schedule:d,flush:_}=St(h);if(a)return null;let g;e[5]!==t?(g=t("settings.profile.avatar"),e[5]=t,e[6]=g):g=e[6];const c=i?.name??"U";let v;e[7]!==c||e[8]!==o?(v=s.jsx(qt,{url:o,fallback:c}),e[7]=c,e[8]=o,e[9]=v):v=e[9];let u;e[10]!==g||e[11]!==v?(u=s.jsx(T,{title:g,action:v}),e[10]=g,e[11]=v,e[12]=u):u=e[12];let f;e[13]!==t?(f=t("settings.profile.displayName"),e[13]=t,e[14]=f):f=e[14];let b;e[15]!==_||e[16]!==d||e[17]!==t?(b=C=>{const{field:k}=C;return s.jsx(jt,{id:"display-name",...k,onChange:U=>{k.onChange(U),d()},onBlur:()=>{k.onBlur(),_()},onKeyDown:U=>{U.key==="Enter"&&_()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=_,e[16]=d,e[17]=t,e[18]=b):b=e[18];let j;e[19]!==m.control||e[20]!==b?(j=s.jsx(lt,{control:m.control,name:"name",render:b}),e[19]=m.control,e[20]=b,e[21]=j):j=e[21];let x;e[22]!==f||e[23]!==j?(x=s.jsx(T,{title:f,action:j}),e[22]=f,e[23]=j,e[24]=x):x=e[24];let w;e[25]!==t?(w=t("settings.profile.email"),e[25]=t,e[26]=w):w=e[26];const A=i?.email;let y;e[27]!==A?(y=s.jsx("span",{className:"text-sm text-muted-foreground",children:A}),e[27]=A,e[28]=y):y=e[28];let N;e[29]!==w||e[30]!==y?(N=s.jsx(T,{title:w,action:y}),e[29]=w,e[30]=y,e[31]=N):N=e[31];let P;return e[32]!==x||e[33]!==N||e[34]!==u?(P=s.jsx(Ye,{children:s.jsxs(Xe,{children:[u,x,N]})}),e[32]=x,e[33]=N,e[34]=u,e[35]=P):P=e[35],P}function Ht(){const e=O.c(180),t=De(),[l,a]=it();let i;e[0]!==a||e[1]!==t?(i=async S=>{if(S&&await Notification.requestPermission()!=="granted"){M("preferences_notifications_permission_denied"),R.error(t("settings.preferences.notificationsDenied")),a(Xt);return}M("preferences_notifications_toggled",{enabled:S}),a(z=>({...z,enableNotifications:S}))},e[0]=a,e[1]=t,e[2]=i):i=e[2];const o=i;let r;e[3]!==a?(r=S=>{M("preferences_project_first_nav_toggled",{enabled:S}),a(z=>({...z,projectFirstNav:S}))},e[3]=a,e[4]=r):r=e[4];const p=r;let m;e[5]!==t?(m=t("settings.preferences.title"),e[5]=t,e[6]=m):m=e[6];let h;e[7]!==t?(h=t("settings.preferences.theme"),e[7]=t,e[8]=h):h=e[8];let d;e[9]!==t?(d=t("settings.preferences.themeDescription"),e[9]=t,e[10]=d):d=e[10];const _=l.theme;let g;e[11]!==a?(g=S=>{S&&(M("preferences_theme_changed",{to_value:S}),a(z=>({...z,theme:S})))},e[11]=a,e[12]=g):g=e[12];let c;e[13]!==t?(c=t("settings.preferences.themeLight"),e[13]=t,e[14]=c):c=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(wt,{size:14}),e[15]=v):v=e[15];let u;e[16]!==c?(u=s.jsx(Ie,{value:"light",className:"rounded-lg data-[variant=outline]:border-l","aria-label":c,children:v}),e[16]=c,e[17]=u):u=e[17];let f;e[18]!==t?(f=t("settings.preferences.themeDark"),e[18]=t,e[19]=f):f=e[19];let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Nt,{size:14}),e[20]=b):b=e[20];let j;e[21]!==f?(j=s.jsx(Ie,{value:"dark",className:"rounded-lg data-[variant=outline]:border-l","aria-label":f,children:b}),e[21]=f,e[22]=j):j=e[22];let x;e[23]!==t?(x=t("settings.preferences.themeSystem"),e[23]=t,e[24]=x):x=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(yt,{size:14}),e[25]=w):w=e[25];let A;e[26]!==x?(A=s.jsx(Ie,{value:"system",className:"rounded-lg data-[variant=outline]:border-l","aria-label":x,children:w}),e[26]=x,e[27]=A):A=e[27];let y;e[28]!==l.theme||e[29]!==j||e[30]!==A||e[31]!==g||e[32]!==u?(y=s.jsxs(bt,{type:"single",size:"sm",variant:"outline",className:"gap-2 data-[variant=outline]:shadow-none",value:_,onValueChange:g,children:[u,j,A]}),e[28]=l.theme,e[29]=j,e[30]=A,e[31]=g,e[32]=u,e[33]=y):y=e[33];let N;e[34]!==y||e[35]!==h||e[36]!==d?(N=s.jsx(T,{title:h,description:d,action:y}),e[34]=y,e[35]=h,e[36]=d,e[37]=N):N=e[37];let P;e[38]!==t?(P=t("settings.preferences.language"),e[38]=t,e[39]=P):P=e[39];let C;e[40]!==t?(C=t("settings.preferences.languageDescription"),e[40]=t,e[41]=C):C=e[41];let k;e[42]!==a?(k=S=>{M("preferences_language_changed",{to_value:S}),a(z=>({...z,language:S}))},e[42]=a,e[43]=k):k=e[43];let U;e[44]!==l.language?(U=Ge.find(S=>S.value===l.language)?.label,e[44]=l.language,e[45]=U):U=e[45];let E;e[46]!==U?(E=s.jsx(He,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:U})}),e[46]=U,e[47]=E):E=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(qe,{children:Ge.map(Yt)}),e[48]=F):F=e[48];let n;e[49]!==l.language||e[50]!==k||e[51]!==E?(n=s.jsxs(Be,{value:l.language,onValueChange:k,children:[E,F]}),e[49]=l.language,e[50]=k,e[51]=E,e[52]=n):n=e[52];let D;e[53]!==P||e[54]!==C||e[55]!==n?(D=s.jsx(T,{title:P,description:C,action:n}),e[53]=P,e[54]=C,e[55]=n,e[56]=D):D=e[56];let L;e[57]!==t?(L=t("settings.preferences.notifications"),e[57]=t,e[58]=L):L=e[58];let $;e[59]!==t?($=t("settings.preferences.notificationsDescription"),e[59]=t,e[60]=$):$=e[60];let V;e[61]!==o||e[62]!==l.enableNotifications?(V=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[61]=o,e[62]=l.enableNotifications,e[63]=V):V=e[63];let q;e[64]!==o||e[65]!==l.enableNotifications?(q=s.jsx(Fe,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[64]=o,e[65]=l.enableNotifications,e[66]=q):q=e[66];let B;e[67]!==L||e[68]!==$||e[69]!==V||e[70]!==q?(B=s.jsx(T,{title:L,description:$,onClick:V,action:q}),e[67]=L,e[68]=$,e[69]=V,e[70]=q,e[71]=B):B=e[71];let H;e[72]!==t?(H=t("settings.preferences.sounds"),e[72]=t,e[73]=H):H=e[73];let W;e[74]!==t?(W=t("settings.preferences.soundsDescription"),e[74]=t,e[75]=W):W=e[75];let G;e[76]!==l.enableSounds||e[77]!==a?(G=()=>{M("preferences_sounds_toggled",{enabled:!l.enableSounds}),a(Kt)},e[76]=l.enableSounds,e[77]=a,e[78]=G):G=e[78];let K;e[79]!==t?(K=t("settings.preferences.soundsPreview"),e[79]=t,e[80]=K):K=e[80];let Te;e[81]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(_t,{size:11}),e[81]=Te):Te=e[81];let Y;e[82]!==K?(Y=s.jsx("button",{type:"button","aria-label":K,onClick:Wt,className:"size-6 flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer rounded-lg",children:Te}),e[82]=K,e[83]=Y):Y=e[83];let X;e[84]!==a?(X=S=>{M("preferences_sounds_toggled",{enabled:S}),a(z=>({...z,enableSounds:S}))},e[84]=a,e[85]=X):X=e[85];let Q;e[86]!==l.enableSounds||e[87]!==X?(Q=s.jsx(Fe,{checked:l.enableSounds,onCheckedChange:X}),e[86]=l.enableSounds,e[87]=X,e[88]=Q):Q=e[88];let Z;e[89]!==Y||e[90]!==Q?(Z=s.jsxs("div",{className:"flex items-center gap-2",children:[Y,Q]}),e[89]=Y,e[90]=Q,e[91]=Z):Z=e[91];let J;e[92]!==H||e[93]!==W||e[94]!==G||e[95]!==Z?(J=s.jsx(T,{title:H,description:W,onClick:G,action:Z}),e[92]=H,e[93]=W,e[94]=G,e[95]=Z,e[96]=J):J=e[96];let ee;e[97]!==t?(ee=t("settings.preferences.projectFirstNav"),e[97]=t,e[98]=ee):ee=e[98];let te;e[99]!==t?(te=t("settings.preferences.projectFirstNavDescription"),e[99]=t,e[100]=te):te=e[100];let se;e[101]!==p||e[102]!==l.projectFirstNav?(se=()=>p(!l.projectFirstNav),e[101]=p,e[102]=l.projectFirstNav,e[103]=se):se=e[103];let ae;e[104]!==t?(ae=t("settings.preferences.projectFirstNav"),e[104]=t,e[105]=ae):ae=e[105];let le;e[106]!==p||e[107]!==l.projectFirstNav||e[108]!==ae?(le=s.jsx(Fe,{"aria-label":ae,checked:l.projectFirstNav,onCheckedChange:p}),e[106]=p,e[107]=l.projectFirstNav,e[108]=ae,e[109]=le):le=e[109];let ie;e[110]!==ee||e[111]!==te||e[112]!==se||e[113]!==le?(ie=s.jsx(T,{title:ee,description:te,onClick:se,action:le}),e[110]=ee,e[111]=te,e[112]=se,e[113]=le,e[114]=ie):ie=e[114];let ne;e[115]!==t?(ne=t("settings.preferences.toolApproval"),e[115]=t,e[116]=ne):ne=e[116];let re;e[117]!==t?(re=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=re):re=e[118];const Ze=l.toolApprovalLevel;let oe;e[119]!==a?(oe=S=>{M("preferences_tool_approval_changed",{to_value:S}),a(z=>({...z,toolApprovalLevel:S}))},e[119]=a,e[120]=oe):oe=e[120];let ce;e[121]!==l.toolApprovalLevel||e[122]!==t?(ce={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ce):ce=e[123];let fe;e[124]!==ce?(fe=s.jsx(He,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ce})}),e[124]=ce,e[125]=fe):fe=e[125];let de;e[126]!==t?(de=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=de):de=e[127];let ue;e[128]!==t?(ue=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ue):ue=e[129];let pe;e[130]!==ue?(pe=s.jsx("span",{className:"font-medium",children:ue}),e[130]=ue,e[131]=pe):pe=e[131];let me;e[132]!==t?(me=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=me):me=e[133];let ge;e[134]!==me?(ge=s.jsx("span",{className:"text-xs text-muted-foreground",children:me}),e[134]=me,e[135]=ge):ge=e[135];let he;e[136]!==pe||e[137]!==ge?(he=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[pe,ge]}),e[136]=pe,e[137]=ge,e[138]=he):he=e[138];let xe;e[139]!==de||e[140]!==he?(xe=s.jsx($e,{value:"readonly",textValue:de,children:he}),e[139]=de,e[140]=he,e[141]=xe):xe=e[141];let ve;e[142]!==t?(ve=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ve):ve=e[143];let be;e[144]!==t?(be=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=be):be=e[145];let je;e[146]!==be?(je=s.jsx("span",{className:"font-medium",children:be}),e[146]=be,e[147]=je):je=e[147];let ye;e[148]!==t?(ye=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=ye):ye=e[149];let we;e[150]!==ye?(we=s.jsx("span",{className:"text-xs text-muted-foreground",children:ye}),e[150]=ye,e[151]=we):we=e[151];let Ne;e[152]!==je||e[153]!==we?(Ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[je,we]}),e[152]=je,e[153]=we,e[154]=Ne):Ne=e[154];let _e;e[155]!==ve||e[156]!==Ne?(_e=s.jsx($e,{value:"auto",textValue:ve,children:Ne}),e[155]=ve,e[156]=Ne,e[157]=_e):_e=e[157];let Se;e[158]!==xe||e[159]!==_e?(Se=s.jsxs(qe,{children:[xe,_e]}),e[158]=xe,e[159]=_e,e[160]=Se):Se=e[160];let Ae;e[161]!==l.toolApprovalLevel||e[162]!==oe||e[163]!==fe||e[164]!==Se?(Ae=s.jsxs(Be,{value:Ze,onValueChange:oe,children:[fe,Se]}),e[161]=l.toolApprovalLevel,e[162]=oe,e[163]=fe,e[164]=Se,e[165]=Ae):Ae=e[165];let Ce;e[166]!==ne||e[167]!==re||e[168]!==Ae?(Ce=s.jsx(T,{title:ne,description:re,action:Ae}),e[166]=ne,e[167]=re,e[168]=Ae,e[169]=Ce):Ce=e[169];let ke;e[170]!==N||e[171]!==D||e[172]!==B||e[173]!==J||e[174]!==ie||e[175]!==Ce?(ke=s.jsxs(Xe,{children:[N,D,B,J,ie,Ce]}),e[170]=N,e[171]=D,e[172]=B,e[173]=J,e[174]=ie,e[175]=Ce,e[176]=ke):ke=e[176];let Re;return e[177]!==m||e[178]!==ke?(Re=s.jsx(Ye,{title:m,children:ke}),e[177]=m,e[178]=ke,e[179]=Re):Re=e[179],Re}function Wt(){M("preferences_sounds_previewed"),At(Ct.dataUri).catch(Gt)}function Gt(){}function Kt(e){return{...e,enableSounds:!e.enableSounds}}function Yt(e){return s.jsx($e,{value:e.value,textValue:e.label,children:e.label},e.value)}function Xt(e){return{...e,enableNotifications:!1}}function Qt(){const e=O.c(8),t=De();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx(Ee.Title,{children:l}),e[2]=l,e[3]=a):a=e[3];let i,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Bt,{}),o=s.jsx(Ht,{}),e[4]=i,e[5]=o):(i=e[4],o=e[5]);let r;return e[6]!==a?(r=s.jsx(Ee,{children:s.jsx(Ee.Content,{children:s.jsx(Ee.Container,{children:s.jsxs(st,{children:[a,i,o]})})})}),e[6]=a,e[7]=r):r=e[7],r}function xs(){const e=O.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Qt,{}),e[0]=t):t=e[0],t}export{xs as default};
|
|
1
|
+
import{c as O,b as De,o as Je,m as et,K as Ke,a as Ue,t as R,l as ze,j as s,r as I,B as Oe,h as tt,n as Ee,fn as st,at,aU as lt,x as it,q as M,ee as T,ec as Ye,ed as Xe}from"./index-B1zctMWM.js";import{A as nt}from"./avatar-ZtrZA-xC.js";import{D as rt,b as ot,c as ct,d as ft,h as dt,e as ut}from"./dialog-DUkVOZIE.js";import{T as pt,a as mt,R as gt,b as ht}from"./index-pCZVwBrG.js";import{s as xt}from"./Trash01-CfWaytgc.js";import{i as vt}from"./Upload01-ca0GgR0P.js";import{S as Fe}from"./switch-Bj8bJ2hL.js";import{d as qe,S as Be,c as $e,b as He}from"./select-CCPnfgQ9.js";import{T as Ie,a as bt}from"./toggle-group-CozxhBpA.js";import{I as jt}from"./input-B3HVl7By.js";import{i as yt}from"./Monitor01-CjCwBipo.js";import{n as wt,a as Nt,i as _t}from"./Sun-G5YUTpKk.js";import{u as St}from"./use-debounced-autosave-C94tXEES.js";import{p as At,q as Ct}from"./question-004-sINsf4GQ.js";import"./User01-BJgSr0na.js";import"./X-4SjHAUB6.js";import"./index-CazcJ_7a.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";const kt=2*1024*1024,Ut=["image/png","image/jpeg","image/gif","image/webp"];async function Dt(e){try{return(await e.json()).error??""}catch{return""}}async function Me(e){if(!e.ok)throw new Error(await Dt(e));return e}function Pt(e){const t=O.c(3);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ke.userAvatars(),t[0]=l):l=t[0];let a;return t[1]!==e?(a={queryKey:l,enabled:e,queryFn:zt},t[1]=e,t[2]=a):a=t[2],et(a)}async function zt(){return(await(await Me(await fetch("/api/_users/avatars"))).json()).avatars}function Mt(){const e=O.c(22),t=De(),l=Je();let a;e[0]!==l?(a=async()=>{await Promise.all([l.invalidateQueries({queryKey:Ke.userAvatars()}),Ue.getSession({query:{disableCookieCache:!0}})])},e[0]=l,e[1]=a):a=e[1];const i=a;let o;e[2]!==i||e[3]!==t?(o=async(f,b)=>{try{return await f(),await i(),R.success(b),!0}catch(j){const x=j;return R.error(x instanceof Error&&x.message?x.message:t("settings.profile.avatarUploadError")),!1}},e[2]=i,e[3]=t,e[4]=o):o=e[4];const r=o;let p;e[5]!==t||e[6]!==r?(p=async f=>{let b=null;return await r(async()=>{b=(await(await Me(await fetch("/api/_users/avatar",{method:"POST",headers:{"content-type":f.type||"image/webp"},body:f}))).json()).url,await Ue.updateUser({image:b})},t("settings.profile.avatarUpdated"))?b:null},e[5]=t,e[6]=r,e[7]=p):p=e[7];const m=p;let h;e[8]!==t||e[9]!==r?(h=f=>r(async()=>{const b=await Me(await fetch("/api/_users/avatar/select",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:f})})),{url:j}=await b.json();await Ue.updateUser({image:j})},t("settings.profile.avatarUpdated")),e[8]=t,e[9]=r,e[10]=h):h=e[10];const d=h;let _;e[11]!==t||e[12]!==r?(_=f=>r(async()=>{await Me(await fetch(`/api/_users/avatar?path=${encodeURIComponent(f)}`,{method:"DELETE"}))},t("settings.profile.avatarDeleted")),e[11]=t,e[12]=r,e[13]=_):_=e[13];const g=_;let c;e[14]!==t||e[15]!==r?(c=()=>r(Tt,t("settings.profile.avatarRemoved")),e[14]=t,e[15]=r,e[16]=c):c=e[16];const v=c;let u;return e[17]!==g||e[18]!==v||e[19]!==d||e[20]!==m?(u={uploadAvatar:m,selectAvatar:d,deleteStoredAvatar:g,removeAvatar:v},e[17]=g,e[18]=v,e[19]=d,e[20]=m,e[21]=u):u=e[21],u}async function Tt(){await Ue.updateUser({image:null}),await Me(await fetch("/api/_users/avatar",{method:"DELETE"}))}function Rt(e){const t=O.c(26);let l,a,i,o,r,p;t[0]!==e?({className:l,defaultValue:a,value:p,min:o,max:r,...i}=e,t[0]=e,t[1]=l,t[2]=a,t[3]=i,t[4]=o,t[5]=r,t[6]=p):(l=t[1],a=t[2],i=t[3],o=t[4],r=t[5],p=t[6]);const m=o===void 0?0:o,h=r===void 0?100:r;let d;t[7]!==a||t[8]!==h||t[9]!==m||t[10]!==p?(d=Array.isArray(p)?p:Array.isArray(a)?a:[m,h],t[7]=a,t[8]=h,t[9]=m,t[10]=p,t[11]=d):d=t[11];const _=d;let g;t[12]!==l?(g=ze("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",l),t[12]=l,t[13]=g):g=t[13];let c;t[14]===Symbol.for("react.memo_cache_sentinel")?(c=ze("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),t[14]=c):c=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(pt,{"data-slot":"slider-track",className:c,children:s.jsx(mt,{"data-slot":"slider-range",className:ze("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),t[15]=v):v=t[15];let u;t[16]!==_.length?(u=Array.from({length:_.length},Et),t[16]=_.length,t[17]=u):u=t[17];let f;return t[18]!==a||t[19]!==h||t[20]!==m||t[21]!==i||t[22]!==g||t[23]!==u||t[24]!==p?(f=s.jsxs(gt,{"data-slot":"slider",defaultValue:a,value:p,min:m,max:h,className:g,...i,children:[v,u]}),t[18]=a,t[19]=h,t[20]=m,t[21]=i,t[22]=g,t[23]=u,t[24]=p,t[25]=f):f=t[25],f}function Et(e,t){return s.jsx(ht,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},t)}function Ve(e){return Math.max(e.viewport/e.imageWidth,e.viewport/e.imageHeight)}function Ot(e){const t=Ve(e)*e.zoom;return{x:Math.max(0,(e.imageWidth*t-e.viewport)/2),y:Math.max(0,(e.imageHeight*t-e.viewport)/2)}}function Qe(e){const t=Ot(e);return{x:Math.min(t.x,Math.max(-t.x,e.offset.x)),y:Math.min(t.y,Math.max(-t.y,e.offset.y))}}function Ft(e){const t=Ve(e)*e.zoom,l=Qe(e),a=e.viewport/t,i=e.imageWidth/2-a/2-l.x/t,o=e.imageHeight/2-a/2-l.y/t;return{sx:Math.min(Math.max(0,i),Math.max(0,e.imageWidth-a)),sy:Math.min(Math.max(0,o),Math.max(0,e.imageHeight-a)),size:a}}function It(e,t){return Math.max(1,Math.round(Math.min(t,e.size)))}const Le=288,Pe=1,We=4;function Lt(e){return new Promise((t,l)=>{const a=URL.createObjectURL(e),i=new Image;i.onload=()=>t({element:i,url:a,width:i.naturalWidth,height:i.naturalHeight}),i.onerror=()=>{URL.revokeObjectURL(a),l(new Error("decode failed"))},i.src=a})}function $t(e,t,l){const a=Ft(t),i=It(a,l),o=document.createElement("canvas");o.width=i,o.height=i;const r=o.getContext("2d");return r?(r.drawImage(e.element,a.sx,a.sy,a.size,a.size,0,0,i,i),new Promise(p=>{o.toBlob(m=>p(m),"image/webp",.92)})):Promise.resolve(null)}function Vt({open:e,onOpenChange:t,title:l,description:a,shape:i="circle",maxOutputSize:o=512,accept:r,maxBytes:p,onUpload:m,gallery:h}){const d=De(),_=I.useRef(null),g=I.useRef(null),[c,v]=I.useState(null),[u,f]=I.useState(Pe),[b,j]=I.useState({x:0,y:0}),[x,w]=I.useState(!1),A=i==="circle"?"rounded-full":"rounded-xl";function y(){c&&URL.revokeObjectURL(c.url),v(null),f(Pe),j({x:0,y:0})}function N(){y(),t(!1)}async function P(n){if(!r.includes(n.type)){R.error(d("imageUpload.unsupportedType"));return}if(n.size>p){R.error(d("imageUpload.tooLarge",{max:String(Math.round(p/(1024*1024)))}));return}try{y(),v(await Lt(n))}catch{R.error(d("imageUpload.decodeFailed"))}}const C=c&&{imageWidth:c.width,imageHeight:c.height,viewport:Le,zoom:u,offset:b},k=C?Qe(C):{x:0,y:0},U=C?Ve(C)*u:1;async function E(){if(!(!c||!C)){w(!0);try{const n=await $t(c,C,o);if(!n){R.error(d("imageUpload.encodeFailed"));return}await m(n)&&N()}finally{w(!1)}}}async function F(n){w(!0);try{await n}finally{w(!1)}}return s.jsx(rt,{open:e,onOpenChange:n=>n?t(!0):N(),children:s.jsxs(ot,{className:"sm:max-w-[26rem]",children:[s.jsxs(ct,{children:[s.jsx(ft,{children:l}),a?s.jsx(dt,{children:a}):null]}),c&&C?s.jsxs("div",{className:"flex flex-col items-center gap-4",children:[s.jsx("div",{className:ze("relative overflow-hidden bg-muted touch-none cursor-grab active:cursor-grabbing",A),style:{width:Le,height:Le},onPointerDown:n=>{g.current={x:n.clientX-k.x,y:n.clientY-k.y},n.currentTarget.setPointerCapture(n.pointerId)},onPointerMove:n=>{const D=g.current;D&&j({x:n.clientX-D.x,y:n.clientY-D.y})},onPointerUp:n=>{g.current=null,n.currentTarget.releasePointerCapture(n.pointerId)},onPointerCancel:()=>{g.current=null},onWheel:n=>{const D=u-n.deltaY*.002;f(Math.min(We,Math.max(Pe,D)))},children:s.jsx("img",{src:c.url,alt:"",draggable:!1,className:"absolute left-1/2 top-1/2 max-w-none select-none",style:{width:c.width*U,height:c.height*U,transform:`translate(calc(-50% + ${k.x}px), calc(-50% + ${k.y}px))`}})}),s.jsxs("div",{className:"flex w-full items-center gap-3 px-1",children:[s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:d("imageUpload.zoom")}),s.jsx(Rt,{value:[u],min:Pe,max:We,step:.01,onValueChange:([n])=>f(n??Pe),"aria-label":d("imageUpload.zoom")})]})]}):s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("button",{type:"button",onClick:()=>_.current?.click(),className:"flex flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-border py-10 text-sm text-muted-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[s.jsx(vt,{className:"size-5"}),d("imageUpload.choose")]}),h&&h.items.length>0?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:d("imageUpload.recent")}),s.jsx("div",{className:"flex flex-wrap gap-2",children:h.items.map(n=>s.jsxs("div",{className:"group relative",children:[s.jsx("button",{type:"button",disabled:x,onClick:()=>{F(h.onSelect(n.path)).then(N)},"aria-label":d("imageUpload.usePicture"),className:ze("size-14 overflow-hidden border transition-opacity hover:opacity-80 disabled:opacity-50",A,n.current?"border-primary ring-2 ring-primary/40":"border-border"),children:s.jsx("img",{src:n.url,alt:"",className:"size-full object-cover"})}),h.onDelete&&!n.current?s.jsx("button",{type:"button",disabled:x,onClick:()=>{F(h.onDelete(n.path))},"aria-label":d("imageUpload.deletePicture"),className:"absolute -right-1 -top-1 hidden rounded-lg bg-background p-1 text-muted-foreground shadow-sm hover:text-destructive group-hover:block",children:s.jsx(xt,{className:"size-3"})}):null]},n.path))})]}):null]}),s.jsx("input",{ref:_,type:"file",accept:r.join(","),className:"hidden",onChange:n=>{const D=n.target.files?.[0];n.target.value="",D&&P(D)}}),s.jsx(ut,{children:c?s.jsxs(s.Fragment,{children:[s.jsx(Oe,{variant:"ghost",onClick:y,disabled:x,children:d("imageUpload.back")}),s.jsxs(Oe,{onClick:()=>{E()},disabled:x,children:[x?s.jsx(tt,{size:"sm"}):null,d("imageUpload.save")]})]}):s.jsx(Oe,{variant:"ghost",onClick:N,children:d("imageUpload.cancel")})})]})})}const Ge=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function qt(e){const t=O.c(36),{url:l,fallback:a}=e,i=De(),[o,r]=I.useState(!1),{uploadAvatar:p,selectAvatar:m,deleteStoredAvatar:h,removeAvatar:d}=Mt(),_=Pt(o);let g;t[0]!==d||t[1]!==i||t[2]!==l?(g=l?s.jsx(Oe,{variant:"ghost",size:"sm",onClick:()=>{d()},children:i("settings.profile.avatarRemove")}):null,t[0]=d,t[1]=i,t[2]=l,t[3]=g):g=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(!0),t[4]=c):c=t[4];let v;t[5]!==i?(v=i("settings.profile.avatarUpload"),t[5]=i,t[6]=v):v=t[6];let u;t[7]!==i?(u=i("settings.profile.avatarUpload"),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==a||t[10]!==l?(f=s.jsx(nt,{url:l,fallback:a,shape:"circle",size:"base"}),t[9]=a,t[10]=l,t[11]=f):f=t[11];let b;t[12]!==v||t[13]!==u||t[14]!==f?(b=s.jsx("button",{type:"button",onClick:c,"aria-label":v,title:u,className:"rounded-full transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:f}),t[12]=v,t[13]=u,t[14]=f,t[15]=b):b=t[15];let j;t[16]!==i?(j=i("settings.profile.avatarDialogTitle"),t[16]=i,t[17]=j):j=t[17];let x;t[18]!==i?(x=i("settings.profile.avatarDialogDescription"),t[18]=i,t[19]=x):x=t[19];let w;t[20]!==_.data?(w=_.data??[],t[20]=_.data,t[21]=w):w=t[21];let A;t[22]!==h||t[23]!==m||t[24]!==w?(A={items:w,onSelect:m,onDelete:h},t[22]=h,t[23]=m,t[24]=w,t[25]=A):A=t[25];let y;t[26]!==o||t[27]!==A||t[28]!==j||t[29]!==x||t[30]!==p?(y=s.jsx(Vt,{open:o,onOpenChange:r,title:j,description:x,shape:"circle",accept:Ut,maxBytes:kt,onUpload:p,gallery:A}),t[26]=o,t[27]=A,t[28]=j,t[29]=x,t[30]=p,t[31]=y):y=t[31];let N;return t[32]!==g||t[33]!==y||t[34]!==b?(N=s.jsxs("div",{className:"flex items-center gap-2",children:[g,b,y]}),t[32]=g,t[33]=y,t[34]=b,t[35]=N):N=t[35],N}function Bt(){const e=O.c(36),t=De(),{data:l,isPending:a}=Ue.useSession(),i=l?.user,o=i?.image,r=i?.name??"";let p;e[0]!==r?(p={values:{name:r}},e[0]=r,e[1]=p):p=e[1];const m=at(p);let h;e[2]!==m||e[3]!==t?(h={save:async()=>{const C=m.control._formState.dirtyFields;if(Object.keys(C).length===0)return;const k=m.getValues(),U=m.control._defaultValues;m.reset(k,{keepValues:!0});try{await Ue.updateUser({name:k.name}),M("profile_updated",{fields:["name"]}),R.success(t("settings.profile.updateSuccess"))}catch{m.reset(U,{keepValues:!0}),R.error(t("settings.profile.updateError"))}}},e[2]=m,e[3]=t,e[4]=h):h=e[4];const{schedule:d,flush:_}=St(h);if(a)return null;let g;e[5]!==t?(g=t("settings.profile.avatar"),e[5]=t,e[6]=g):g=e[6];const c=i?.name??"U";let v;e[7]!==c||e[8]!==o?(v=s.jsx(qt,{url:o,fallback:c}),e[7]=c,e[8]=o,e[9]=v):v=e[9];let u;e[10]!==g||e[11]!==v?(u=s.jsx(T,{title:g,action:v}),e[10]=g,e[11]=v,e[12]=u):u=e[12];let f;e[13]!==t?(f=t("settings.profile.displayName"),e[13]=t,e[14]=f):f=e[14];let b;e[15]!==_||e[16]!==d||e[17]!==t?(b=C=>{const{field:k}=C;return s.jsx(jt,{id:"display-name",...k,onChange:U=>{k.onChange(U),d()},onBlur:()=>{k.onBlur(),_()},onKeyDown:U=>{U.key==="Enter"&&_()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=_,e[16]=d,e[17]=t,e[18]=b):b=e[18];let j;e[19]!==m.control||e[20]!==b?(j=s.jsx(lt,{control:m.control,name:"name",render:b}),e[19]=m.control,e[20]=b,e[21]=j):j=e[21];let x;e[22]!==f||e[23]!==j?(x=s.jsx(T,{title:f,action:j}),e[22]=f,e[23]=j,e[24]=x):x=e[24];let w;e[25]!==t?(w=t("settings.profile.email"),e[25]=t,e[26]=w):w=e[26];const A=i?.email;let y;e[27]!==A?(y=s.jsx("span",{className:"text-sm text-muted-foreground",children:A}),e[27]=A,e[28]=y):y=e[28];let N;e[29]!==w||e[30]!==y?(N=s.jsx(T,{title:w,action:y}),e[29]=w,e[30]=y,e[31]=N):N=e[31];let P;return e[32]!==x||e[33]!==N||e[34]!==u?(P=s.jsx(Ye,{children:s.jsxs(Xe,{children:[u,x,N]})}),e[32]=x,e[33]=N,e[34]=u,e[35]=P):P=e[35],P}function Ht(){const e=O.c(180),t=De(),[l,a]=it();let i;e[0]!==a||e[1]!==t?(i=async S=>{if(S&&await Notification.requestPermission()!=="granted"){M("preferences_notifications_permission_denied"),R.error(t("settings.preferences.notificationsDenied")),a(Xt);return}M("preferences_notifications_toggled",{enabled:S}),a(z=>({...z,enableNotifications:S}))},e[0]=a,e[1]=t,e[2]=i):i=e[2];const o=i;let r;e[3]!==a?(r=S=>{M("preferences_project_first_nav_toggled",{enabled:S}),a(z=>({...z,projectFirstNav:S}))},e[3]=a,e[4]=r):r=e[4];const p=r;let m;e[5]!==t?(m=t("settings.preferences.title"),e[5]=t,e[6]=m):m=e[6];let h;e[7]!==t?(h=t("settings.preferences.theme"),e[7]=t,e[8]=h):h=e[8];let d;e[9]!==t?(d=t("settings.preferences.themeDescription"),e[9]=t,e[10]=d):d=e[10];const _=l.theme;let g;e[11]!==a?(g=S=>{S&&(M("preferences_theme_changed",{to_value:S}),a(z=>({...z,theme:S})))},e[11]=a,e[12]=g):g=e[12];let c;e[13]!==t?(c=t("settings.preferences.themeLight"),e[13]=t,e[14]=c):c=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(wt,{size:14}),e[15]=v):v=e[15];let u;e[16]!==c?(u=s.jsx(Ie,{value:"light",className:"rounded-lg data-[variant=outline]:border-l","aria-label":c,children:v}),e[16]=c,e[17]=u):u=e[17];let f;e[18]!==t?(f=t("settings.preferences.themeDark"),e[18]=t,e[19]=f):f=e[19];let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Nt,{size:14}),e[20]=b):b=e[20];let j;e[21]!==f?(j=s.jsx(Ie,{value:"dark",className:"rounded-lg data-[variant=outline]:border-l","aria-label":f,children:b}),e[21]=f,e[22]=j):j=e[22];let x;e[23]!==t?(x=t("settings.preferences.themeSystem"),e[23]=t,e[24]=x):x=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(yt,{size:14}),e[25]=w):w=e[25];let A;e[26]!==x?(A=s.jsx(Ie,{value:"system",className:"rounded-lg data-[variant=outline]:border-l","aria-label":x,children:w}),e[26]=x,e[27]=A):A=e[27];let y;e[28]!==l.theme||e[29]!==j||e[30]!==A||e[31]!==g||e[32]!==u?(y=s.jsxs(bt,{type:"single",size:"sm",variant:"outline",className:"gap-2 data-[variant=outline]:shadow-none",value:_,onValueChange:g,children:[u,j,A]}),e[28]=l.theme,e[29]=j,e[30]=A,e[31]=g,e[32]=u,e[33]=y):y=e[33];let N;e[34]!==y||e[35]!==h||e[36]!==d?(N=s.jsx(T,{title:h,description:d,action:y}),e[34]=y,e[35]=h,e[36]=d,e[37]=N):N=e[37];let P;e[38]!==t?(P=t("settings.preferences.language"),e[38]=t,e[39]=P):P=e[39];let C;e[40]!==t?(C=t("settings.preferences.languageDescription"),e[40]=t,e[41]=C):C=e[41];let k;e[42]!==a?(k=S=>{M("preferences_language_changed",{to_value:S}),a(z=>({...z,language:S}))},e[42]=a,e[43]=k):k=e[43];let U;e[44]!==l.language?(U=Ge.find(S=>S.value===l.language)?.label,e[44]=l.language,e[45]=U):U=e[45];let E;e[46]!==U?(E=s.jsx(He,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:U})}),e[46]=U,e[47]=E):E=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(qe,{children:Ge.map(Yt)}),e[48]=F):F=e[48];let n;e[49]!==l.language||e[50]!==k||e[51]!==E?(n=s.jsxs(Be,{value:l.language,onValueChange:k,children:[E,F]}),e[49]=l.language,e[50]=k,e[51]=E,e[52]=n):n=e[52];let D;e[53]!==P||e[54]!==C||e[55]!==n?(D=s.jsx(T,{title:P,description:C,action:n}),e[53]=P,e[54]=C,e[55]=n,e[56]=D):D=e[56];let L;e[57]!==t?(L=t("settings.preferences.notifications"),e[57]=t,e[58]=L):L=e[58];let $;e[59]!==t?($=t("settings.preferences.notificationsDescription"),e[59]=t,e[60]=$):$=e[60];let V;e[61]!==o||e[62]!==l.enableNotifications?(V=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[61]=o,e[62]=l.enableNotifications,e[63]=V):V=e[63];let q;e[64]!==o||e[65]!==l.enableNotifications?(q=s.jsx(Fe,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[64]=o,e[65]=l.enableNotifications,e[66]=q):q=e[66];let B;e[67]!==L||e[68]!==$||e[69]!==V||e[70]!==q?(B=s.jsx(T,{title:L,description:$,onClick:V,action:q}),e[67]=L,e[68]=$,e[69]=V,e[70]=q,e[71]=B):B=e[71];let H;e[72]!==t?(H=t("settings.preferences.sounds"),e[72]=t,e[73]=H):H=e[73];let W;e[74]!==t?(W=t("settings.preferences.soundsDescription"),e[74]=t,e[75]=W):W=e[75];let G;e[76]!==l.enableSounds||e[77]!==a?(G=()=>{M("preferences_sounds_toggled",{enabled:!l.enableSounds}),a(Kt)},e[76]=l.enableSounds,e[77]=a,e[78]=G):G=e[78];let K;e[79]!==t?(K=t("settings.preferences.soundsPreview"),e[79]=t,e[80]=K):K=e[80];let Te;e[81]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(_t,{size:11}),e[81]=Te):Te=e[81];let Y;e[82]!==K?(Y=s.jsx("button",{type:"button","aria-label":K,onClick:Wt,className:"size-6 flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer rounded-lg",children:Te}),e[82]=K,e[83]=Y):Y=e[83];let X;e[84]!==a?(X=S=>{M("preferences_sounds_toggled",{enabled:S}),a(z=>({...z,enableSounds:S}))},e[84]=a,e[85]=X):X=e[85];let Q;e[86]!==l.enableSounds||e[87]!==X?(Q=s.jsx(Fe,{checked:l.enableSounds,onCheckedChange:X}),e[86]=l.enableSounds,e[87]=X,e[88]=Q):Q=e[88];let Z;e[89]!==Y||e[90]!==Q?(Z=s.jsxs("div",{className:"flex items-center gap-2",children:[Y,Q]}),e[89]=Y,e[90]=Q,e[91]=Z):Z=e[91];let J;e[92]!==H||e[93]!==W||e[94]!==G||e[95]!==Z?(J=s.jsx(T,{title:H,description:W,onClick:G,action:Z}),e[92]=H,e[93]=W,e[94]=G,e[95]=Z,e[96]=J):J=e[96];let ee;e[97]!==t?(ee=t("settings.preferences.projectFirstNav"),e[97]=t,e[98]=ee):ee=e[98];let te;e[99]!==t?(te=t("settings.preferences.projectFirstNavDescription"),e[99]=t,e[100]=te):te=e[100];let se;e[101]!==p||e[102]!==l.projectFirstNav?(se=()=>p(!l.projectFirstNav),e[101]=p,e[102]=l.projectFirstNav,e[103]=se):se=e[103];let ae;e[104]!==t?(ae=t("settings.preferences.projectFirstNav"),e[104]=t,e[105]=ae):ae=e[105];let le;e[106]!==p||e[107]!==l.projectFirstNav||e[108]!==ae?(le=s.jsx(Fe,{"aria-label":ae,checked:l.projectFirstNav,onCheckedChange:p}),e[106]=p,e[107]=l.projectFirstNav,e[108]=ae,e[109]=le):le=e[109];let ie;e[110]!==ee||e[111]!==te||e[112]!==se||e[113]!==le?(ie=s.jsx(T,{title:ee,description:te,onClick:se,action:le}),e[110]=ee,e[111]=te,e[112]=se,e[113]=le,e[114]=ie):ie=e[114];let ne;e[115]!==t?(ne=t("settings.preferences.toolApproval"),e[115]=t,e[116]=ne):ne=e[116];let re;e[117]!==t?(re=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=re):re=e[118];const Ze=l.toolApprovalLevel;let oe;e[119]!==a?(oe=S=>{M("preferences_tool_approval_changed",{to_value:S}),a(z=>({...z,toolApprovalLevel:S}))},e[119]=a,e[120]=oe):oe=e[120];let ce;e[121]!==l.toolApprovalLevel||e[122]!==t?(ce={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ce):ce=e[123];let fe;e[124]!==ce?(fe=s.jsx(He,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ce})}),e[124]=ce,e[125]=fe):fe=e[125];let de;e[126]!==t?(de=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=de):de=e[127];let ue;e[128]!==t?(ue=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ue):ue=e[129];let pe;e[130]!==ue?(pe=s.jsx("span",{className:"font-medium",children:ue}),e[130]=ue,e[131]=pe):pe=e[131];let me;e[132]!==t?(me=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=me):me=e[133];let ge;e[134]!==me?(ge=s.jsx("span",{className:"text-xs text-muted-foreground",children:me}),e[134]=me,e[135]=ge):ge=e[135];let he;e[136]!==pe||e[137]!==ge?(he=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[pe,ge]}),e[136]=pe,e[137]=ge,e[138]=he):he=e[138];let xe;e[139]!==de||e[140]!==he?(xe=s.jsx($e,{value:"readonly",textValue:de,children:he}),e[139]=de,e[140]=he,e[141]=xe):xe=e[141];let ve;e[142]!==t?(ve=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ve):ve=e[143];let be;e[144]!==t?(be=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=be):be=e[145];let je;e[146]!==be?(je=s.jsx("span",{className:"font-medium",children:be}),e[146]=be,e[147]=je):je=e[147];let ye;e[148]!==t?(ye=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=ye):ye=e[149];let we;e[150]!==ye?(we=s.jsx("span",{className:"text-xs text-muted-foreground",children:ye}),e[150]=ye,e[151]=we):we=e[151];let Ne;e[152]!==je||e[153]!==we?(Ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[je,we]}),e[152]=je,e[153]=we,e[154]=Ne):Ne=e[154];let _e;e[155]!==ve||e[156]!==Ne?(_e=s.jsx($e,{value:"auto",textValue:ve,children:Ne}),e[155]=ve,e[156]=Ne,e[157]=_e):_e=e[157];let Se;e[158]!==xe||e[159]!==_e?(Se=s.jsxs(qe,{children:[xe,_e]}),e[158]=xe,e[159]=_e,e[160]=Se):Se=e[160];let Ae;e[161]!==l.toolApprovalLevel||e[162]!==oe||e[163]!==fe||e[164]!==Se?(Ae=s.jsxs(Be,{value:Ze,onValueChange:oe,children:[fe,Se]}),e[161]=l.toolApprovalLevel,e[162]=oe,e[163]=fe,e[164]=Se,e[165]=Ae):Ae=e[165];let Ce;e[166]!==ne||e[167]!==re||e[168]!==Ae?(Ce=s.jsx(T,{title:ne,description:re,action:Ae}),e[166]=ne,e[167]=re,e[168]=Ae,e[169]=Ce):Ce=e[169];let ke;e[170]!==N||e[171]!==D||e[172]!==B||e[173]!==J||e[174]!==ie||e[175]!==Ce?(ke=s.jsxs(Xe,{children:[N,D,B,J,ie,Ce]}),e[170]=N,e[171]=D,e[172]=B,e[173]=J,e[174]=ie,e[175]=Ce,e[176]=ke):ke=e[176];let Re;return e[177]!==m||e[178]!==ke?(Re=s.jsx(Ye,{title:m,children:ke}),e[177]=m,e[178]=ke,e[179]=Re):Re=e[179],Re}function Wt(){M("preferences_sounds_previewed"),At(Ct.dataUri).catch(Gt)}function Gt(){}function Kt(e){return{...e,enableSounds:!e.enableSounds}}function Yt(e){return s.jsx($e,{value:e.value,textValue:e.label,children:e.label},e.value)}function Xt(e){return{...e,enableNotifications:!1}}function Qt(){const e=O.c(8),t=De();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx(Ee.Title,{children:l}),e[2]=l,e[3]=a):a=e[3];let i,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Bt,{}),o=s.jsx(Ht,{}),e[4]=i,e[5]=o):(i=e[4],o=e[5]);let r;return e[6]!==a?(r=s.jsx(Ee,{children:s.jsx(Ee.Content,{children:s.jsx(Ee.Container,{children:s.jsxs(st,{children:[a,i,o]})})})}),e[6]=a,e[7]=r):r=e[7],r}function xs(){const e=O.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Qt,{}),e[0]=t):t=e[0],t}export{xs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fp as Z,c as w,b as L,j as n,r as H,E as ee,X as q,W as te,z as oe,a as se,B as ie,h as ne,fq as le}from"./index-DbabGxy6.js";import{g as z,s as F}from"./gateway-client-9xfivYUp.js";import{s as re}from"./tool-namespace-DmnQIdtF.js";import{u as G}from"./use-mcp-client-CfAhFfUQ.js";import{a as ae,b as ce}from"./use-mcp-tools-CzCYSnw_.js";import{d as me}from"./sandbox-lifecycle-context-ZoWZCIt3.js";import{c as pe}from"./content-blocks-o63cs2vh.js";import{M as de}from"./mcp-app-renderer-2vEnBSMK.js";import{g as fe,M as Y}from"./types-D821jmOY.js";import{a as ue,c as ge}from"./chat-context-Bf1EEUa_.js";import{a as xe}from"./shell-layout-D3hbXuJp.js";import{m as he}from"./task-route-DkYY7Jf8.js";import{s as Ce}from"./site-url-en5df9c-.js";import{d as W,c as X,b as J,D as Q}from"./dialog-CSMrPqBB.js";import{I as Se}from"./integration-icon-CFV7KR9Q.js";import{c as je,u as Ie,a as be,P as Ne,d as ve,S as De}from"./use-connect-companion-bZE9oz5D.js";import{u as Te}from"./use-is-desktop-app-BNujXJc_.js";import"./auth-qAvZ1LNt.js";import"./use-session-runtime-CYBHR_jn.js";import"./thread-intent-CgGr7s14.js";import"./backoff-8mStPHYB.js";import"./task-board-DD4Wj2ht.js";import"./schema-BD3Ue3jK.js";import"./slugify-CEUa2lfQ.js";import"./repository-binding-DST5BjAq.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-panel-navigate-1U3BGwp7.js";import"./thread-route-CYYizTAL.js";import"./use-project-scope-CAwN_j8n.js";import"./autosend-BrczLssG.js";import"./use-decopilot-events-Ch1NmAx8.js";import"./use-ai-providers-DAPxuNGR.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-CAg22Y85.js";import"./avatar-Be2YP03d.js";import"./User01-D2Lmw0ef.js";import"./Building02-DQSa0aPk.js";import"./UserSquare-CuUPyuma.js";import"./agent-icon-BRxvZRmN.js";import"./AlertCircle-Dsxcywwk.js";import"./Tool01-DetpIMtk.js";import"./ArrowUp-DvEWAQS1.js";import"./ArrowLeft-CUAoXnBl.js";import"./LinkBroken01-CyPIuvAF.js";import"./ShoppingBag01-D0N-Vb4c.js";import"./ZoomOut-Bt3p5CRf.js";import"./CheckCircle-48zzWb5o.js";import"./Check-CzhgdtoZ.js";import"./ChevronUp-bPHHer4a.js";import"./Copy01-DK-rveWk.js";import"./CreditCard01-Bv4apDUd.js";import"./DotsVertical-Cz9DnVkj.js";import"./Image01-DkSAzjSu.js";import"./Palette-jHJa2pFE.js";import"./XClose-Chbrrnow.js";import"./Key01-2_VP-ymA.js";import"./Link01-CBIFqZsw.js";import"./LinkExternal01-D20IL3CN.js";import"./Monitor01-WwJ1rHPk.js";import"./Sun-7ajd25ZV.js";import"./Plus-BvxsRY-0.js";import"./SearchMd-CHmk5GD6.js";import"./Trash01-DKbCrUTj.js";import"./Upload01-BBKhvCnt.js";import"./Users01-DsJzDkrr.js";import"./X-ateu7dRb.js";import"./download-app-dialog-DegRrl-D.js";import"./use-clock-tick-CcZLWvhU.js";import"./command-CNDsxgwl.js";import"./index-Bj6rDen7.js";import"./project-icon-B2QkPtkD.js";import"./new-project-dialog-B-Knb9QQ.js";import"./input-DV9TXIhc.js";import"./label-CaVwbUwP.js";import"./repository-import-picker-Cefyzn5z.js";import"./use-navigate-to-agent-BvvbqcqU.js";import"./repository-picker-DIYtkoGR.js";import"./tooltip-wkfHPLLP.js";import"./index-DNU42V4k.js";import"./useInfiniteQuery-CCCPgG_d.js";import"./infiniteQueryObserver-yDX2PlMf.js";import"./collection-search-qakQR89K.js";import"./use-debounced-value-B8wDF2XE.js";import"./required-auth-layout-Sm_LEIrf.js";import"./use-org-sso-BWqpxNPp.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./form-BJXkrxaF.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-BrUezESb.js";import"./authenticate-and-persist-oauth-Bm9fWsOa.js";import"./mcp-oauth-DPBTzzM-.js";import"./track-DHiW7Kzl.js";import"./extract-connection-data-Yv51Ip2F.js";import"./connection-KyEHQxp9.js";const Me="studio://navigate",Re=new Set(["vtex","ga4","gsc","github"]);function _e(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null,s=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field"),s=r.get("task")}catch{}const t=o&&Z.has(o)?o:null;return{isNavigate:!0,tab:t,field:t==="connect-sources"&&i&&Re.has(i)?i:null,task:t==="board"&&s?he(s):null}}function B(N){const e=w.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let r;e[2]!==s?(r=s("reportsOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=r):r=e[3];let a;e[4]!==r?(a=n.jsx(X,{children:n.jsx(W,{children:r})}),e[4]=r,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==a?(d=n.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[a,i]}),e[6]=i,e[7]=a,e[8]=d):d=e[8];let l;return e[9]!==t||e[10]!==d?(l=n.jsx(Q,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=l):l=e[11],l}function K(N){const e=w.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ne,{className:"size-4"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,n.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function ye(N){const e=w.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>n.jsx(B,{onClose:i,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let r;e[3]!==s?(r=s("reportsOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=r):r=e[4];let a;e[5]!==r?(a=n.jsx(K,{label:r}),e[5]=r,e[6]=a):a=e[6];let d;e[7]!==i||e[8]!==a?(d=n.jsx(B,{onClose:i,children:a}),e[7]=i,e[8]=a,e[9]=d):d=e[9];let l;e[10]!==o||e[11]!==i?(l=n.jsx(Pe,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=l):l=e[12];let u;e[13]!==d||e[14]!==l?(u=n.jsx(H.Suspense,{fallback:d,children:l}),e[13]=d,e[14]=l,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=n.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Pe(N){const e=w.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=q();let r;e[0]!==t.id?(r=te.REPORTS(t.id),e[0]=t.id,e[1]=r):r=e[1];const a=r;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:oe,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const l=G(d),{data:u}=se.useSession(),g=u?.user?.id??"";let S;e[5]!==a||e[6]!==t||e[7]!==l?(S={selfClient:l,org:t,cdConnectionId:a},e[5]=a,e[6]=t,e[7]=l,e[8]=S):S=e[8];const c=je(S);let f;e[9]!==a||e[10]!==t||e[11]!==l||e[12]!==c?(f={selfClient:l,org:t,cdConnectionId:a,siteUrl:c},e[9]=a,e[10]=t,e[11]=l,e[12]=c,e[13]=f):f=e[13];const{cards:j}=Ie(f);let h;e[14]!==c?(h=Ce(c)??void 0,e[14]=c,e[15]=h):h=e[15];let b;e[16]!==a||e[17]!==t||e[18]!==l||e[19]!==c||e[20]!==h||e[21]!==g?(b={selfClient:l,org:t,userId:g,cdConnectionId:a,domain:h,siteUrl:c},e[16]=a,e[17]=t,e[18]=l,e[19]=c,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:v,connectingFieldKey:I,error:M}=be(b);let P;if(e[23]!==j||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],P=j.find(p),e[23]=j,e[24]=o,e[25]=P}else P=e[25];const m=P;if(!m){let p;e[28]!==s?(p=s("routes.reportsOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=n.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const O=Ne[m.bindingType];if(O&&m.boundVia!=="oauth"){let p;e[35]!==i?(p=D=>!D&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==m||e[38]!==v?(x=m.satisfied?void 0:()=>{v(m)},e[37]=m,e[38]=v,e[39]=x):x=e[39];let C;return e[40]!==m||e[41]!==t||e[42]!==O||e[43]!==l||e[44]!==c||e[45]!==p||e[46]!==x?(C=n.jsx(De,{card:m,provider:O,org:t,selfClient:l,siteUrl:c,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=m,e[41]=t,e[42]=O,e[43]=l,e[44]=c,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(m.satisfied&&m.linkedConnectionId){let p;e[48]!==s?(p=s("reportsOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=n.jsx(K,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=n.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let D;e[55]!==i?(D=E=>!E&&i(),e[55]=i,e[56]=D):D=e[56];let T;e[57]!==m||e[58]!==t||e[59]!==l||e[60]!==c||e[61]!==D?(T=n.jsx(ve,{card:m,org:t,selfClient:l,connectionId:m.linkedConnectionId,contextSiteUrl:c,open:!0,onOpenChange:D}),e[57]=m,e[58]=t,e[59]=l,e[60]=c,e[61]=D,e[62]=T):T=e[62];let _;return e[63]!==C||e[64]!==T?(_=n.jsx(H.Suspense,{fallback:C,children:T}),e[63]=C,e[64]=T,e[65]=_):_=e[65],_}const y=I===m.fieldKey;let R;e[66]!==m||e[67]!==v?(R=()=>{v(m)},e[66]=m,e[67]=v,e[68]=R):R=e[68];let A;return e[69]!==m||e[70]!==M||e[71]!==i||e[72]!==y||e[73]!==R?(A=n.jsx(Oe,{card:m,connecting:y,error:M,onConnect:R,onClose:i}),e[69]=m,e[70]=M,e[71]=i,e[72]=y,e[73]=R,e[74]=A):A=e[74],A}function Oe(N){const e=w.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:r}=N,a=L(),[d,l]=H.useState(!1);d||(l(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==r?(u=b=>{!b&&i||b||r()},e[0]=i,e[1]=r,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=n.jsx(Se,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let S;e[6]!==o.title?(S=n.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=S):S=e[7];let c;e[8]!==g||e[9]!==S?(c=n.jsxs(X,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,S]}),e[8]=g,e[9]=S,e[10]=c):c=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==a?(f=s?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),n.jsx(ie,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:a("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx(K,{label:a("reportsOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=a,e[15]=f):f=e[15];let j;e[16]!==c||e[17]!==f?(j=n.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[c,f]}),e[16]=c,e[17]=f,e[18]=j):j=e[18];let h;return e[19]!==u||e[20]!==j?(h=n.jsx(Q,{open:!0,onOpenChange:u,children:j}),e[19]=u,e[20]=j,e[21]=h):h=e[21],h}const Ae={};function Ee(N){const e=w.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:r,args:a}=N,{sendMessage:d}=ue(),{setAppContext:l,clearAppContext:u}=ge(),{openSidePanel:g,openTab:S,closeTab:c}=xe(),f=`${t}:${s.name}`,[j,h]=H.useState(null);let b;e[0]!==c?(b=k=>k==="inline"?(c(),"inline"):"fullscreen",e[0]=c,e[1]=b):b=e[1];const v=b,I=a??Ae;let M;e[2]!==o||e[3]!==s.name||e[4]!==I?(M={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=M):M=e[5];const{data:P}=ce(M);let m;if(e[6]!==s._meta||e[7]!==s.name){const k=z(s._meta);m=F(s.name,k),e[6]=s._meta,e[7]=s.name,e[8]=m}else m=e[8];const O=m;let y;e[9]!==s.inputSchema?(y=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=y):y=e[10];let R;e[11]!==O||e[12]!==y||e[13]!==s?(R={...s,name:O,inputSchema:y},e[11]=O,e[12]=y,e[13]=s,e[14]=R):R=e[14];const A=R;let p;e[15]!==g||e[16]!==S||e[17]!==d?(p=k=>{const U=_e(k.content);if(U.isNavigate){U.tab==="connect-sources"&&U.field?h(U.field):U.tab&&S(U.tab,U.task?{taskKey:U.task,replace:!1}:void 0);return}const V=pe(k.content);V.content.length>0&&(g(),d({tiptapDoc:V}))},e[15]=g,e[16]=S,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==A?(C={tool:A},e[19]=A,e[20]=C):C=e[20];let D;e[21]!==l||e[22]!==f?(D=k=>l(f,k),e[21]=l,e[22]=f,e[23]=D):D=e[23];let T;e[24]!==u||e[25]!==f?(T=()=>u(f),e[24]=u,e[25]=f,e[26]=T):T=e[26];let _;e[27]!==o||e[28]!==x||e[29]!==v||e[30]!==r||e[31]!==i||e[32]!==C||e[33]!==D||e[34]!==T||e[35]!==I||e[36]!==P?(_=n.jsx(de,{resourceURI:i,orgId:r,toolInfo:C,toolInput:I,toolResult:P,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:D,onTeardown:T,onRequestDisplayMode:v,className:"h-full"}),e[27]=o,e[28]=x,e[29]=v,e[30]=r,e[31]=i,e[32]=C,e[33]=D,e[34]=T,e[35]=I,e[36]=P,e[37]=_):_=e[37];let E;e[38]!==j?(E=j&&n.jsx(ye,{field:j,onClose:()=>h(null)}),e[38]=j,e[39]=E):E=e[39];let $;return e[40]!==_||e[41]!==E?($=n.jsxs(n.Fragment,{children:[_,E]}),e[40]=_,e[41]=E,e[42]=$):$=e[42],$}function Do(N){const e=w.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=q(),r=me(),a=Te();let d;e[0]!==o||e[1]!==a||e[2]!==r?(d=le(o)&&a?`${r.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=a,e[2]=r,e[3]=d):d=e[3];const l=d;let u;e[4]!==o||e[5]!==l||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:l},e[4]=o,e[5]=l,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=G(u);let S;e[9]!==g?(S={client:g},e[9]=g,e[10]=S):S=e[10];const{data:c}=ae(S);let f,j,h;e[11]!==i||e[12]!==c.tools?(f=re(decodeURIComponent(i)),h=c.tools.find(I=>I.name===f)??c.tools.find(I=>{const M=z(I._meta);if(!M)return!1;if(F(I.name,M)===f)return!0;const m=F(f,M);return m!==f&&I.name===m}),j=h?._meta?fe(h._meta):void 0,e[11]=i,e[12]=c.tools,e[13]=f,e[14]=j,e[15]=h):(f=e[13],j=e[14],h=e[15]);const b=j;if(!h||!b){let I;return e[16]!==f?(I=n.jsx("div",{className:"flex items-center justify-center h-full w-full",children:n.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let v;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(v=n.jsx(Ee,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=v):v=e[24],v}export{Do as AppViewContent};
|
|
1
|
+
import{fp as Z,c as w,b as L,j as n,r as H,E as ee,X as q,W as te,z as oe,a as se,B as ie,h as ne,fq as le}from"./index-B1zctMWM.js";import{g as z,s as F}from"./gateway-client-DdEB-W_0.js";import{s as re}from"./tool-namespace-DmnQIdtF.js";import{u as G}from"./use-mcp-client-BCOmh6mH.js";import{a as ae,b as ce}from"./use-mcp-tools-isgPo0N2.js";import{d as me}from"./sandbox-lifecycle-context-CCWi8UrE.js";import{c as pe}from"./content-blocks-o63cs2vh.js";import{M as de}from"./mcp-app-renderer-BuJCA9WL.js";import{g as fe,M as Y}from"./types-Dnj2Xk6p.js";import{a as ue,c as ge}from"./chat-context-CW-2SJ9g.js";import{a as xe}from"./shell-layout-XTP1Kn60.js";import{m as he}from"./task-route-BKWswtA1.js";import{s as Ce}from"./site-url-en5df9c-.js";import{d as W,c as X,b as J,D as Q}from"./dialog-DUkVOZIE.js";import{I as Se}from"./integration-icon-B97YfXXZ.js";import{c as je,u as Ie,a as be,P as Ne,d as ve,S as De}from"./use-connect-companion-vcvy2-_E.js";import{u as Te}from"./use-is-desktop-app-BNujXJc_.js";import"./auth-BhL4Ae7M.js";import"./use-session-runtime-CTR5dqXO.js";import"./thread-intent-swCQbScV.js";import"./backoff-8mStPHYB.js";import"./task-board-BMQrxTue.js";import"./schema-CtVpxfN8.js";import"./slugify-CEUa2lfQ.js";import"./repository-binding-DB3Rsfan.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-panel-navigate-CuKDZSXf.js";import"./thread-route-CMTlmdB2.js";import"./use-project-scope-B1N6dPlK.js";import"./autosend-CtvAncuN.js";import"./use-decopilot-events-B7N8IjI0.js";import"./use-ai-providers-DKY0H66j.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-B-_PpufY.js";import"./avatar-ZtrZA-xC.js";import"./User01-BJgSr0na.js";import"./Building02-qqUg_lk7.js";import"./UserSquare-DubBIV3t.js";import"./agent-icon-Plx0vVQZ.js";import"./AlertCircle-Bx6Xy-Kw.js";import"./Tool01-DQZj0rVc.js";import"./ArrowUp-Dr4dZUTV.js";import"./ArrowLeft-BBlLaPEb.js";import"./LinkBroken01-DLTNdGdq.js";import"./ShoppingBag01-BnqPHk8-.js";import"./ZoomOut-o5Bj_0k0.js";import"./CheckCircle-DQ_Iwx7G.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";import"./Copy01-1J_cPh43.js";import"./CreditCard01-CZJLSW5h.js";import"./DotsVertical-DMzCTdNT.js";import"./Image01-VqGHD62D.js";import"./Palette-DItfN1RT.js";import"./XClose-B5gtMDn3.js";import"./Key01-3kquwPFB.js";import"./Link01-ZJZ8YMCs.js";import"./LinkExternal01-ByTglQMD.js";import"./Monitor01-CjCwBipo.js";import"./Sun-G5YUTpKk.js";import"./Plus-jU4D0ULX.js";import"./SearchMd-yUpDH67q.js";import"./Trash01-CfWaytgc.js";import"./Upload01-ca0GgR0P.js";import"./Users01-BI4qzwEi.js";import"./X-4SjHAUB6.js";import"./download-app-dialog-VBK5SfsW.js";import"./use-clock-tick-BsJNcY-e.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./project-icon-0knrxIOw.js";import"./new-project-dialog-BMehfxLv.js";import"./input-B3HVl7By.js";import"./label-Be_7Vms5.js";import"./repository-import-picker-DyQqkMVo.js";import"./use-navigate-to-agent-Cv939dl9.js";import"./repository-picker-BhN42NYE.js";import"./tooltip-CmsIn1_T.js";import"./index-CazcJ_7a.js";import"./useInfiniteQuery-DRaKStQa.js";import"./infiniteQueryObserver-BBgKyTli.js";import"./collection-search-De8chpSh.js";import"./use-debounced-value-BJOL8Gwj.js";import"./required-auth-layout-BhtMSUK8.js";import"./use-org-sso-554XjjGQ.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./form-esFIz8cn.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-DHRnWhYf.js";import"./authenticate-and-persist-oauth-CM_sd9mo.js";import"./mcp-oauth-Dt9pIBq5.js";import"./track-ISGFXwLG.js";import"./extract-connection-data-BqvnWkg5.js";import"./connection-DCZz5J1M.js";const Me="studio://navigate",Re=new Set(["vtex","ga4","gsc","github"]);function _e(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null,s=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field"),s=r.get("task")}catch{}const t=o&&Z.has(o)?o:null;return{isNavigate:!0,tab:t,field:t==="connect-sources"&&i&&Re.has(i)?i:null,task:t==="board"&&s?he(s):null}}function B(N){const e=w.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let r;e[2]!==s?(r=s("reportsOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=r):r=e[3];let a;e[4]!==r?(a=n.jsx(X,{children:n.jsx(W,{children:r})}),e[4]=r,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==a?(d=n.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[a,i]}),e[6]=i,e[7]=a,e[8]=d):d=e[8];let l;return e[9]!==t||e[10]!==d?(l=n.jsx(Q,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=l):l=e[11],l}function K(N){const e=w.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ne,{className:"size-4"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,n.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function ye(N){const e=w.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>n.jsx(B,{onClose:i,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let r;e[3]!==s?(r=s("reportsOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=r):r=e[4];let a;e[5]!==r?(a=n.jsx(K,{label:r}),e[5]=r,e[6]=a):a=e[6];let d;e[7]!==i||e[8]!==a?(d=n.jsx(B,{onClose:i,children:a}),e[7]=i,e[8]=a,e[9]=d):d=e[9];let l;e[10]!==o||e[11]!==i?(l=n.jsx(Pe,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=l):l=e[12];let u;e[13]!==d||e[14]!==l?(u=n.jsx(H.Suspense,{fallback:d,children:l}),e[13]=d,e[14]=l,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=n.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Pe(N){const e=w.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=q();let r;e[0]!==t.id?(r=te.REPORTS(t.id),e[0]=t.id,e[1]=r):r=e[1];const a=r;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:oe,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const l=G(d),{data:u}=se.useSession(),g=u?.user?.id??"";let S;e[5]!==a||e[6]!==t||e[7]!==l?(S={selfClient:l,org:t,cdConnectionId:a},e[5]=a,e[6]=t,e[7]=l,e[8]=S):S=e[8];const c=je(S);let f;e[9]!==a||e[10]!==t||e[11]!==l||e[12]!==c?(f={selfClient:l,org:t,cdConnectionId:a,siteUrl:c},e[9]=a,e[10]=t,e[11]=l,e[12]=c,e[13]=f):f=e[13];const{cards:j}=Ie(f);let h;e[14]!==c?(h=Ce(c)??void 0,e[14]=c,e[15]=h):h=e[15];let b;e[16]!==a||e[17]!==t||e[18]!==l||e[19]!==c||e[20]!==h||e[21]!==g?(b={selfClient:l,org:t,userId:g,cdConnectionId:a,domain:h,siteUrl:c},e[16]=a,e[17]=t,e[18]=l,e[19]=c,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:v,connectingFieldKey:I,error:M}=be(b);let P;if(e[23]!==j||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],P=j.find(p),e[23]=j,e[24]=o,e[25]=P}else P=e[25];const m=P;if(!m){let p;e[28]!==s?(p=s("routes.reportsOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=n.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const O=Ne[m.bindingType];if(O&&m.boundVia!=="oauth"){let p;e[35]!==i?(p=D=>!D&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==m||e[38]!==v?(x=m.satisfied?void 0:()=>{v(m)},e[37]=m,e[38]=v,e[39]=x):x=e[39];let C;return e[40]!==m||e[41]!==t||e[42]!==O||e[43]!==l||e[44]!==c||e[45]!==p||e[46]!==x?(C=n.jsx(De,{card:m,provider:O,org:t,selfClient:l,siteUrl:c,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=m,e[41]=t,e[42]=O,e[43]=l,e[44]=c,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(m.satisfied&&m.linkedConnectionId){let p;e[48]!==s?(p=s("reportsOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=n.jsx(K,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=n.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let D;e[55]!==i?(D=E=>!E&&i(),e[55]=i,e[56]=D):D=e[56];let T;e[57]!==m||e[58]!==t||e[59]!==l||e[60]!==c||e[61]!==D?(T=n.jsx(ve,{card:m,org:t,selfClient:l,connectionId:m.linkedConnectionId,contextSiteUrl:c,open:!0,onOpenChange:D}),e[57]=m,e[58]=t,e[59]=l,e[60]=c,e[61]=D,e[62]=T):T=e[62];let _;return e[63]!==C||e[64]!==T?(_=n.jsx(H.Suspense,{fallback:C,children:T}),e[63]=C,e[64]=T,e[65]=_):_=e[65],_}const y=I===m.fieldKey;let R;e[66]!==m||e[67]!==v?(R=()=>{v(m)},e[66]=m,e[67]=v,e[68]=R):R=e[68];let A;return e[69]!==m||e[70]!==M||e[71]!==i||e[72]!==y||e[73]!==R?(A=n.jsx(Oe,{card:m,connecting:y,error:M,onConnect:R,onClose:i}),e[69]=m,e[70]=M,e[71]=i,e[72]=y,e[73]=R,e[74]=A):A=e[74],A}function Oe(N){const e=w.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:r}=N,a=L(),[d,l]=H.useState(!1);d||(l(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==r?(u=b=>{!b&&i||b||r()},e[0]=i,e[1]=r,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=n.jsx(Se,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let S;e[6]!==o.title?(S=n.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=S):S=e[7];let c;e[8]!==g||e[9]!==S?(c=n.jsxs(X,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,S]}),e[8]=g,e[9]=S,e[10]=c):c=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==a?(f=s?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),n.jsx(ie,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:a("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx(K,{label:a("reportsOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=a,e[15]=f):f=e[15];let j;e[16]!==c||e[17]!==f?(j=n.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[c,f]}),e[16]=c,e[17]=f,e[18]=j):j=e[18];let h;return e[19]!==u||e[20]!==j?(h=n.jsx(Q,{open:!0,onOpenChange:u,children:j}),e[19]=u,e[20]=j,e[21]=h):h=e[21],h}const Ae={};function Ee(N){const e=w.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:r,args:a}=N,{sendMessage:d}=ue(),{setAppContext:l,clearAppContext:u}=ge(),{openSidePanel:g,openTab:S,closeTab:c}=xe(),f=`${t}:${s.name}`,[j,h]=H.useState(null);let b;e[0]!==c?(b=k=>k==="inline"?(c(),"inline"):"fullscreen",e[0]=c,e[1]=b):b=e[1];const v=b,I=a??Ae;let M;e[2]!==o||e[3]!==s.name||e[4]!==I?(M={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=M):M=e[5];const{data:P}=ce(M);let m;if(e[6]!==s._meta||e[7]!==s.name){const k=z(s._meta);m=F(s.name,k),e[6]=s._meta,e[7]=s.name,e[8]=m}else m=e[8];const O=m;let y;e[9]!==s.inputSchema?(y=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=y):y=e[10];let R;e[11]!==O||e[12]!==y||e[13]!==s?(R={...s,name:O,inputSchema:y},e[11]=O,e[12]=y,e[13]=s,e[14]=R):R=e[14];const A=R;let p;e[15]!==g||e[16]!==S||e[17]!==d?(p=k=>{const U=_e(k.content);if(U.isNavigate){U.tab==="connect-sources"&&U.field?h(U.field):U.tab&&S(U.tab,U.task?{taskKey:U.task,replace:!1}:void 0);return}const V=pe(k.content);V.content.length>0&&(g(),d({tiptapDoc:V}))},e[15]=g,e[16]=S,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==A?(C={tool:A},e[19]=A,e[20]=C):C=e[20];let D;e[21]!==l||e[22]!==f?(D=k=>l(f,k),e[21]=l,e[22]=f,e[23]=D):D=e[23];let T;e[24]!==u||e[25]!==f?(T=()=>u(f),e[24]=u,e[25]=f,e[26]=T):T=e[26];let _;e[27]!==o||e[28]!==x||e[29]!==v||e[30]!==r||e[31]!==i||e[32]!==C||e[33]!==D||e[34]!==T||e[35]!==I||e[36]!==P?(_=n.jsx(de,{resourceURI:i,orgId:r,toolInfo:C,toolInput:I,toolResult:P,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:D,onTeardown:T,onRequestDisplayMode:v,className:"h-full"}),e[27]=o,e[28]=x,e[29]=v,e[30]=r,e[31]=i,e[32]=C,e[33]=D,e[34]=T,e[35]=I,e[36]=P,e[37]=_):_=e[37];let E;e[38]!==j?(E=j&&n.jsx(ye,{field:j,onClose:()=>h(null)}),e[38]=j,e[39]=E):E=e[39];let $;return e[40]!==_||e[41]!==E?($=n.jsxs(n.Fragment,{children:[_,E]}),e[40]=_,e[41]=E,e[42]=$):$=e[42],$}function Do(N){const e=w.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=q(),r=me(),a=Te();let d;e[0]!==o||e[1]!==a||e[2]!==r?(d=le(o)&&a?`${r.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=a,e[2]=r,e[3]=d):d=e[3];const l=d;let u;e[4]!==o||e[5]!==l||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:l},e[4]=o,e[5]=l,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=G(u);let S;e[9]!==g?(S={client:g},e[9]=g,e[10]=S):S=e[10];const{data:c}=ae(S);let f,j,h;e[11]!==i||e[12]!==c.tools?(f=re(decodeURIComponent(i)),h=c.tools.find(I=>I.name===f)??c.tools.find(I=>{const M=z(I._meta);if(!M)return!1;if(F(I.name,M)===f)return!0;const m=F(f,M);return m!==f&&I.name===m}),j=h?._meta?fe(h._meta):void 0,e[11]=i,e[12]=c.tools,e[13]=f,e[14]=j,e[15]=h):(f=e[13],j=e[14],h=e[15]);const b=j;if(!h||!b){let I;return e[16]!==f?(I=n.jsx("div",{className:"flex items-center justify-center h-full w-full",children:n.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let v;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(v=n.jsx(Ee,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=v):v=e[24],v}export{Do as AppViewContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,j as n,E as J,X as H,d as U,q as W,b as L,l as M,a2 as Z,D as ee,r as te,f as se,ae as ne,aF as Y,F as ae,B as le,H as re,aG as oe,I as ie}from"./index-DbabGxy6.js";import{i as ce}from"./LinkBroken01-CyPIuvAF.js";import{u as de,d as me,r as ue}from"./use-reports-diagnostic-BERenbrG.js";import{M as fe}from"./mini-report-page-DtLYvRQ1.js";import{z as pe}from"./agent-icon-BRxvZRmN.js";import{P as xe}from"./project-icon-B2QkPtkD.js";import{G as ge}from"./repository-picker-DIYtkoGR.js";import{L as he}from"./shell-layout-D3hbXuJp.js";import{S as be,u as je,t as Ne,l as ye,c as ve,d as ke}from"./config-BFtdxgOC.js";import{u as Ie}from"./use-navigate-to-agent-BvvbqcqU.js";import{e as Se,c as _e,b as Ce,t as Te,f as Q,a as Ae}from"./task-route-DkYY7Jf8.js";import{A as we}from"./avatar-Be2YP03d.js";import{g as Fe}from"./get-initials-D-f_fDFw.js";import{S as X,D as Re}from"./task-board-DD4Wj2ht.js";import{u as Pe}from"./use-members-DgL3Nti4.js";import{a as Ee}from"./format-time-CjIPQhCN.js";function ze(t){const e=T.c(48),{status:d,host:o,onOpen:r}=t,l=L(),a=d==="generating";let i,s,u,c,m,p,b,g,x,f;if(e[0]!==a||e[1]!==o||e[2]!==r||e[3]!==l){const A=o??l("reports.banner.storeDefault");b="button",g=r,e[14]===Symbol.for("react.memo_cache_sentinel")?(x=M("group relative block w-full cursor-pointer overflow-hidden rounded-2xl bg-card card-shadow text-left","transition-colors duration-300 hover:bg-accent/30","animate-in fade-in slide-in-from-bottom-2 duration-500"),e[14]=x):x=e[14];const _=a?"bg-warning/15":"bg-success/15";let k;e[15]!==_?(k=M("absolute -bottom-24 -left-10 size-64 rounded-full blur-3xl transition-colors duration-700",_),e[15]=_,e[16]=k):k=e[16],e[17]!==k?(f=n.jsx("div",{"aria-hidden":!0,className:k}),e[17]=k,e[18]=f):f=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=M("absolute -bottom-14 left-6 hidden h-48 w-36 -rotate-6 sm:block","transition-transform duration-500 ease-out group-hover:-translate-y-2 group-hover:-rotate-3"),e[19]=S):S=e[19],e[20]!==a?(s=n.jsx(fe,{generating:a,className:S}),e[20]=a,e[21]=s):s=e[21],p="relative flex min-h-28 items-center gap-4 px-5 py-5 sm:h-36 sm:gap-6 sm:pr-6 sm:pl-52",c="flex min-w-0 flex-1 flex-col gap-1";let I;e[22]!==a||e[23]!==l?(I=l(a?"reports.banner.generatingTitle":"reports.banner.readyTitle"),e[22]=a,e[23]=l,e[24]=I):I=e[24],e[25]!==I?(m=n.jsx("span",{className:"text-base font-medium leading-6 text-foreground sm:text-lg",children:I}),e[25]=I,e[26]=m):m=e[26],i="truncate text-sm text-muted-foreground",u=a?l("reports.banner.generatingSubtitle",{store:A}):l("reports.banner.readySubtitle",{store:A}),e[0]=a,e[1]=o,e[2]=r,e[3]=l,e[4]=i,e[5]=s,e[6]=u,e[7]=c,e[8]=m,e[9]=p,e[10]=b,e[11]=g,e[12]=x,e[13]=f}else i=e[4],s=e[5],u=e[6],c=e[7],m=e[8],p=e[9],b=e[10],g=e[11],x=e[12],f=e[13];let j;e[27]!==i||e[28]!==u?(j=n.jsx("span",{className:i,children:u}),e[27]=i,e[28]=u,e[29]=j):j=e[29];let h;e[30]!==j||e[31]!==c||e[32]!==m?(h=n.jsxs("div",{className:c,children:[m,j]}),e[30]=j,e[31]=c,e[32]=m,e[33]=h):h=e[33];let v;e[34]===Symbol.for("react.memo_cache_sentinel")?(v=M("flex size-11 shrink-0 items-center justify-center rounded-full border border-border bg-background","transition-transform duration-300 group-hover:translate-x-1"),e[34]=v):v=e[34];let N;e[35]!==a?(N=n.jsx("div",{className:v,children:a?n.jsxs("span",{className:"relative flex size-2.5",children:[n.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-warning opacity-60"}),n.jsx("span",{className:"relative inline-flex size-2.5 rounded-full bg-warning"})]}):n.jsx(ce,{size:18,className:"text-foreground","aria-hidden":!0})}),e[35]=a,e[36]=N):N=e[36];let y;e[37]!==h||e[38]!==N||e[39]!==p?(y=n.jsxs("div",{className:p,children:[h,N]}),e[37]=h,e[38]=N,e[39]=p,e[40]=y):y=e[40];let C;return e[41]!==s||e[42]!==y||e[43]!==b||e[44]!==g||e[45]!==x||e[46]!==f?(C=n.jsxs("button",{type:b,onClick:g,className:x,children:[f,s,y]}),e[41]=s,e[42]=y,e[43]=b,e[44]=g,e[45]=x,e[46]=f,e[47]=C):C=e[47],C}function Be(){const t=T.c(13),{org:e}=H(),d=U(),{diagnostic:o,isSuccess:r,host:l,connectionId:a}=de();let i;t[0]!==o||t[1]!==r?(i=r?me(o):"none",t[0]=o,t[1]=r,t[2]=i):i=t[2];const s=i;if(s==="none")return null;let u;t[3]!==a||t[4]!==l||t[5]!==d||t[6]!==e||t[7]!==s?(u=()=>{W("home_report_banner_clicked",{organization_id:e.id,status:s,domain:l??void 0}),d(ue(e,a))},t[3]=a,t[4]=l,t[5]=d,t[6]=e,t[7]=s,t[8]=u):u=t[8];const c=u;let m;return t[9]!==l||t[10]!==c||t[11]!==s?(m=n.jsx(ze,{status:s,host:l,onOpen:c}),t[9]=l,t[10]=c,t[11]=s,t[12]=m):m=t[12],m}function it(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(J,{fallback:null,children:n.jsx(Be,{})}),t[0]=e):e=t[0],e}function De(t){const e=T.c(10),{assigneeId:d,assignee:o,size:r,title:l,className:a}=t,i=r===void 0?20:r;if(!d)return null;let s;e[0]!==o||e[1]!==d||e[2]!==i?(s=d===X?n.jsx(be,{size:i}):o?n.jsx(we,{url:o.user?.image??void 0,fallback:Fe(o.user?.name),shape:"circle",size:"xs"}):null,e[0]=o,e[1]=d,e[2]=i,e[3]=s):s=e[3];const u=s;if(!u)return null;let c;e[4]!==a?(c=M("inline-flex shrink-0",a),e[4]=a,e[5]=c):c=e[5];let m;return e[6]!==u||e[7]!==c||e[8]!==l?(m=n.jsx("span",{className:c,title:l,children:u}),e[6]=u,e[7]=c,e[8]=l,e[9]=m):m=e[9],m}const Oe=20,$e=new Set(["high","urgent"]);function Ke(t,e,d){const o=d?Q(d,t):void 0,r=[];for(const l of e){if(l.status==="archived")continue;const a=Se(l,t);a&&(d&&a!==o||r.push({task:l,bucket:a,project:_e(l,t)}))}return r.sort((l,a)=>(a.task.updatedAt??"").localeCompare(l.task.updatedAt??"")).slice(0,Oe)}function Me(t){const e=T.c(25),{index:d,value:o,onChange:r}=t,l=L();let a;e[0]!==d||e[1]!==o?(a=o?Q(o,d):void 0,e[0]=d,e[1]=o,e[2]=a):a=e[2];const i=a;let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(pe,{size:14}),e[3]=s):s=e[3];let u;e[4]!==i||e[5]!==l?(u=i?i.title:l("home.projectFeed.filterAll"),e[4]=i,e[5]=l,e[6]=u):u=e[6];let c;e[7]!==u?(c=n.jsx(ae,{asChild:!0,children:n.jsxs(le,{size:"sm",variant:"outline",className:"gap-1.5",children:[s,u]})}),e[7]=u,e[8]=c):c=e[8];const m=o??"";let p;e[9]!==r?(p=h=>r(h||null),e[9]=r,e[10]=p):p=e[10];let b;e[11]!==l?(b=l("home.projectFeed.filterAll"),e[11]=l,e[12]=b):b=e[12];let g;e[13]!==b?(g=n.jsx(Y,{value:"",children:b}),e[13]=b,e[14]=g):g=e[14];let x;e[15]!==d.entries?(x=d.entries.map(Ge),e[15]=d.entries,e[16]=x):x=e[16];let f;e[17]!==m||e[18]!==p||e[19]!==g||e[20]!==x?(f=n.jsx(re,{align:"end",className:"w-56",children:n.jsxs(oe,{value:m,onValueChange:p,children:[g,x]})}),e[17]=m,e[18]=p,e[19]=g,e[20]=x,e[21]=f):f=e[21];let j;return e[22]!==f||e[23]!==c?(j=n.jsxs(ie,{children:[c,f]}),e[22]=f,e[23]=c,e[24]=j):j=e[24],j}function Ge(t){return n.jsx(Y,{value:t.id,children:n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"truncate",children:t.title}),t.projects.length>1&&n.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.projects.map(Le).join(", ")})]})},t.id)}function Le(t){return t.title}function q(t){const e=T.c(8),{icon:d,iconClassName:o,children:r}=t;let l;e[0]!==o?(l=M("size-3.5 shrink-0",o),e[0]=o,e[1]=l):l=e[1];let a;e[2]!==d||e[3]!==l?(a=n.jsx(d,{className:l}),e[2]=d,e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=n.jsxs("span",{className:"inline-flex h-6 items-center gap-1.5 rounded-full border-[length:var(--border-hairline)] border-border px-2 text-xs text-muted-foreground",children:[a,r]}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}function qe(t){const e=T.c(69),{entry:d,memberById:o}=t,r=L(),l=U(),a=Ie(),i=se({strict:!1}).org??"",{task:s,bucket:u,project:c}=d;let m;e[0]!==r||e[1]!==s.status?(m=ye(s.status,r),e[0]=r,e[1]=s.status,e[2]=m):m=e[2];const p=m,b=p.visual.icon,g=ve[s.priority],x=g.icon,f=ke[s.type??Re],j=f.icon;let h;e[3]!==i||e[4]!==s.keySeq?(h=Te(i,s.keySeq),e[3]=i,e[4]=s.keySeq,e[5]=h):h=e[5];const v=h;let N;e[6]!==o||e[7]!==s.assigneeId?(N=s.assigneeId?o.get(s.assigneeId):void 0,e[6]=o,e[7]=s.assigneeId,e[8]=N):N=e[8];const y=N;let C;e[9]!==y?.user?.name||e[10]!==r||e[11]!==s.assigneeId?(C=s.assigneeId===X?r("taskBoard.taskDialog.superAgentLabel"):y?.user?.name??void 0,e[9]=y?.user?.name,e[10]=r,e[11]=s.assigneeId,e[12]=C):C=e[12];const A=C;let _;e[13]!==u||e[14]!==a||e[15]!==c?(_=c?n.jsxs("button",{type:"button",onClick:()=>a(c.id,{panel:ne(c.metadata?.ui?.layout)}),className:"flex min-w-0 cursor-pointer items-center gap-2 rounded-lg text-left text-sm font-medium text-foreground transition-colors hover:text-primary",children:[n.jsx(xe,{icon:c.icon,name:c.title}),n.jsx("span",{className:"truncate",children:c.title})]}):n.jsxs("span",{className:"flex min-w-0 items-center gap-2 text-sm font-medium text-muted-foreground",children:[n.jsx(ge,{className:"size-4 shrink-0"}),n.jsx("span",{className:"truncate",children:u.title})]}),e[13]=u,e[14]=a,e[15]=c,e[16]=_):_=e[16];let k;e[17]!==v?(k=v&&n.jsx("span",{className:"shrink-0 rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=k):k=e[18];let S;e[19]!==s.updatedAt?(S=Ee(new Date(s.updatedAt)),e[19]=s.updatedAt,e[20]=S):S=e[20];let I;e[21]!==S?(I=n.jsx("span",{className:"ml-auto shrink-0 text-sm text-muted-foreground",children:S}),e[21]=S,e[22]=I):I=e[22];let w;e[23]!==y||e[24]!==A||e[25]!==s.assigneeId?(w=n.jsx(De,{assigneeId:s.assigneeId,assignee:y,title:A}),e[23]=y,e[24]=A,e[25]=s.assigneeId,e[26]=w):w=e[26];let F;e[27]!==_||e[28]!==k||e[29]!==I||e[30]!==w?(F=n.jsxs("div",{className:"flex items-center gap-2.5",children:[_,k,I,w]}),e[27]=_,e[28]=k,e[29]=I,e[30]=w,e[31]=F):F=e[31];let R;e[32]!==l||e[33]!==i||e[34]!==s?(R=()=>l({to:"/$org/tasks/{-$taskKey}",params:{org:i,taskKey:Ae(i,s)}}),e[32]=l,e[33]=i,e[34]=s,e[35]=R):R=e[35];let P;e[36]!==s.title?(P=n.jsx("span",{className:"text-lg leading-snug font-semibold text-foreground transition-colors hover:text-primary",children:s.title}),e[36]=s.title,e[37]=P):P=e[37];let E;e[38]!==b||e[39]!==p.label||e[40]!==p.visual.iconClassName?(E=n.jsx(q,{icon:b,iconClassName:p.visual.iconClassName,children:p.label}),e[38]=b,e[39]=p.label,e[40]=p.visual.iconClassName,e[41]=E):E=e[41];const V=f.iconClassName;let z;e[42]!==r||e[43]!==f.labelKey?(z=r(f.labelKey),e[42]=r,e[43]=f.labelKey,e[44]=z):z=e[44];let B;e[45]!==j||e[46]!==z||e[47]!==f.iconClassName?(B=n.jsx(q,{icon:j,iconClassName:V,children:z}),e[45]=j,e[46]=z,e[47]=f.iconClassName,e[48]=B):B=e[48];let D;e[49]!==x||e[50]!==g.iconClassName||e[51]!==g.labelKey||e[52]!==r||e[53]!==s.priority?(D=$e.has(s.priority)&&n.jsx(q,{icon:x,iconClassName:g.iconClassName,children:r(g.labelKey)}),e[49]=x,e[50]=g.iconClassName,e[51]=g.labelKey,e[52]=r,e[53]=s.priority,e[54]=D):D=e[54];let O;e[55]!==E||e[56]!==B||e[57]!==D?(O=n.jsxs("span",{className:"flex flex-wrap items-center gap-1.5",children:[E,B,D]}),e[55]=E,e[56]=B,e[57]=D,e[58]=O):O=e[58];let $;e[59]!==R||e[60]!==P||e[61]!==O?($=n.jsxs("button",{type:"button",onClick:R,className:"flex cursor-pointer flex-col items-start gap-2.5 text-left",children:[P,O]}),e[59]=R,e[60]=P,e[61]=O,e[62]=$):$=e[62];let K;e[63]!==s.description?(K=s.description&&n.jsx("p",{className:"line-clamp-3 text-sm leading-relaxed text-muted-foreground",children:s.description}),e[63]=s.description,e[64]=K):K=e[64];let G;return e[65]!==F||e[66]!==$||e[67]!==K?(G=n.jsxs("article",{className:"card-shadow flex flex-col gap-4 rounded-xl bg-card p-6",children:[F,$,K]}),e[65]=F,e[66]=$,e[67]=K,e[68]=G):G=e[68],G}function ct(){const t=T.c(3),{locator:e}=H(),d=Z();je();let o;t[0]!==e||t[1]!==d?(o=Ne(e,d),t[0]=e,t[1]=d,t[2]=o):o=t[2];const{data:r}=ee(o);return r.items}function dt(t){const e=T.c(12),{projects:d,tasks:o,showFilter:r}=t,l=r===void 0?!0:r,a=L(),[i,s]=te.useState(null),u=Ce(d),c=Ke(u,o,i),{data:m}=Pe();let p;e[0]!==m?.data?.members?(p=new Map((m?.data?.members??[]).map(He)),e[0]=m?.data?.members,e[1]=p):p=e[1];const b=p,g="flex flex-col gap-4";let x;e[2]!==a?(x=a("home.projectFeed.heading"),e[2]=a,e[3]=x):x=e[3];let f;e[4]!==x?(f=n.jsx("h2",{className:"text-lg font-medium text-foreground","data-tour":he.recentActivity,children:x}),e[4]=x,e[5]=f):f=e[5];const j=l&&n.jsx(Me,{index:u,value:i,onChange:s});let h;e[6]!==f||e[7]!==j?(h=n.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f,j]}),e[6]=f,e[7]=j,e[8]=h):h=e[8];const v=c.length===0?n.jsx("p",{className:"rounded-xl border border-dashed border-border p-12 text-center text-sm text-muted-foreground",children:a("home.projectFeed.empty")}):n.jsx("div",{className:"flex flex-col gap-4",children:c.map(y=>n.jsx(qe,{entry:y,memberById:b},y.task.id))});let N;return e[9]!==h||e[10]!==v?(N=n.jsxs("section",{className:g,children:[h,v]}),e[9]=h,e[10]=v,e[11]=N):N=e[11],N}function He(t){return[t.userId,t]}export{dt as P,it as R,Ke as b,ct as u};
|
|
1
|
+
import{c as T,j as n,E as J,X as H,d as U,q as W,b as L,l as M,a2 as Z,D as ee,r as te,f as se,ae as ne,aF as Y,F as ae,B as le,H as re,aG as oe,I as ie}from"./index-B1zctMWM.js";import{i as ce}from"./LinkBroken01-DLTNdGdq.js";import{u as de,d as me,r as ue}from"./use-reports-diagnostic-kNe2-1FK.js";import{M as fe}from"./mini-report-page-CFRqMuFT.js";import{B as pe}from"./agent-icon-Plx0vVQZ.js";import{P as xe}from"./project-icon-0knrxIOw.js";import{G as ge}from"./repository-picker-BhN42NYE.js";import{L as he}from"./shell-layout-XTP1Kn60.js";import{S as be,u as je,t as Ne,l as ye,c as ve,d as ke}from"./config-CNoTk6kM.js";import{u as Ie}from"./use-navigate-to-agent-Cv939dl9.js";import{e as Se,c as _e,b as Ce,t as Te,f as Q,a as Ae}from"./task-route-BKWswtA1.js";import{A as we}from"./avatar-ZtrZA-xC.js";import{g as Fe}from"./get-initials-D-f_fDFw.js";import{S as X,D as Re}from"./task-board-BMQrxTue.js";import{u as Pe}from"./use-members-B_fEZqvW.js";import{a as Be}from"./format-time-CjIPQhCN.js";function Ee(t){const e=T.c(48),{status:d,host:o,onOpen:r}=t,l=L(),a=d==="generating";let i,s,u,c,m,p,b,g,x,f;if(e[0]!==a||e[1]!==o||e[2]!==r||e[3]!==l){const A=o??l("reports.banner.storeDefault");b="button",g=r,e[14]===Symbol.for("react.memo_cache_sentinel")?(x=M("group relative block w-full cursor-pointer overflow-hidden rounded-2xl bg-card card-shadow text-left","transition-colors duration-300 hover:bg-accent/30","animate-in fade-in slide-in-from-bottom-2 duration-500"),e[14]=x):x=e[14];const _=a?"bg-warning/15":"bg-success/15";let k;e[15]!==_?(k=M("absolute -bottom-24 -left-10 size-64 rounded-full blur-3xl transition-colors duration-700",_),e[15]=_,e[16]=k):k=e[16],e[17]!==k?(f=n.jsx("div",{"aria-hidden":!0,className:k}),e[17]=k,e[18]=f):f=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=M("absolute -bottom-14 left-6 hidden h-48 w-36 -rotate-6 sm:block","transition-transform duration-500 ease-out group-hover:-translate-y-2 group-hover:-rotate-3"),e[19]=S):S=e[19],e[20]!==a?(s=n.jsx(fe,{generating:a,className:S}),e[20]=a,e[21]=s):s=e[21],p="relative flex min-h-28 items-center gap-4 px-5 py-5 sm:h-36 sm:gap-6 sm:pr-6 sm:pl-52",c="flex min-w-0 flex-1 flex-col gap-1";let I;e[22]!==a||e[23]!==l?(I=l(a?"reports.banner.generatingTitle":"reports.banner.readyTitle"),e[22]=a,e[23]=l,e[24]=I):I=e[24],e[25]!==I?(m=n.jsx("span",{className:"text-base font-medium leading-6 text-foreground sm:text-lg",children:I}),e[25]=I,e[26]=m):m=e[26],i="truncate text-sm text-muted-foreground",u=a?l("reports.banner.generatingSubtitle",{store:A}):l("reports.banner.readySubtitle",{store:A}),e[0]=a,e[1]=o,e[2]=r,e[3]=l,e[4]=i,e[5]=s,e[6]=u,e[7]=c,e[8]=m,e[9]=p,e[10]=b,e[11]=g,e[12]=x,e[13]=f}else i=e[4],s=e[5],u=e[6],c=e[7],m=e[8],p=e[9],b=e[10],g=e[11],x=e[12],f=e[13];let j;e[27]!==i||e[28]!==u?(j=n.jsx("span",{className:i,children:u}),e[27]=i,e[28]=u,e[29]=j):j=e[29];let h;e[30]!==j||e[31]!==c||e[32]!==m?(h=n.jsxs("div",{className:c,children:[m,j]}),e[30]=j,e[31]=c,e[32]=m,e[33]=h):h=e[33];let v;e[34]===Symbol.for("react.memo_cache_sentinel")?(v=M("flex size-11 shrink-0 items-center justify-center rounded-full border border-border bg-background","transition-transform duration-300 group-hover:translate-x-1"),e[34]=v):v=e[34];let N;e[35]!==a?(N=n.jsx("div",{className:v,children:a?n.jsxs("span",{className:"relative flex size-2.5",children:[n.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-warning opacity-60"}),n.jsx("span",{className:"relative inline-flex size-2.5 rounded-full bg-warning"})]}):n.jsx(ce,{size:18,className:"text-foreground","aria-hidden":!0})}),e[35]=a,e[36]=N):N=e[36];let y;e[37]!==h||e[38]!==N||e[39]!==p?(y=n.jsxs("div",{className:p,children:[h,N]}),e[37]=h,e[38]=N,e[39]=p,e[40]=y):y=e[40];let C;return e[41]!==s||e[42]!==y||e[43]!==b||e[44]!==g||e[45]!==x||e[46]!==f?(C=n.jsxs("button",{type:b,onClick:g,className:x,children:[f,s,y]}),e[41]=s,e[42]=y,e[43]=b,e[44]=g,e[45]=x,e[46]=f,e[47]=C):C=e[47],C}function De(){const t=T.c(13),{org:e}=H(),d=U(),{diagnostic:o,isSuccess:r,host:l,connectionId:a}=de();let i;t[0]!==o||t[1]!==r?(i=r?me(o):"none",t[0]=o,t[1]=r,t[2]=i):i=t[2];const s=i;if(s==="none")return null;let u;t[3]!==a||t[4]!==l||t[5]!==d||t[6]!==e||t[7]!==s?(u=()=>{W("home_report_banner_clicked",{organization_id:e.id,status:s,domain:l??void 0}),d(ue(e,a))},t[3]=a,t[4]=l,t[5]=d,t[6]=e,t[7]=s,t[8]=u):u=t[8];const c=u;let m;return t[9]!==l||t[10]!==c||t[11]!==s?(m=n.jsx(Ee,{status:s,host:l,onOpen:c}),t[9]=l,t[10]=c,t[11]=s,t[12]=m):m=t[12],m}function it(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(J,{fallback:null,children:n.jsx(De,{})}),t[0]=e):e=t[0],e}function ze(t){const e=T.c(10),{assigneeId:d,assignee:o,size:r,title:l,className:a}=t,i=r===void 0?20:r;if(!d)return null;let s;e[0]!==o||e[1]!==d||e[2]!==i?(s=d===X?n.jsx(be,{size:i}):o?n.jsx(we,{url:o.user?.image??void 0,fallback:Fe(o.user?.name),shape:"circle",size:"xs"}):null,e[0]=o,e[1]=d,e[2]=i,e[3]=s):s=e[3];const u=s;if(!u)return null;let c;e[4]!==a?(c=M("inline-flex shrink-0",a),e[4]=a,e[5]=c):c=e[5];let m;return e[6]!==u||e[7]!==c||e[8]!==l?(m=n.jsx("span",{className:c,title:l,children:u}),e[6]=u,e[7]=c,e[8]=l,e[9]=m):m=e[9],m}const Oe=20,$e=new Set(["high","urgent"]);function Ke(t,e,d){const o=d?Q(d,t):void 0,r=[];for(const l of e){if(l.status==="archived")continue;const a=Se(l,t);a&&(d&&a!==o||r.push({task:l,bucket:a,project:_e(l,t)}))}return r.sort((l,a)=>(a.task.updatedAt??"").localeCompare(l.task.updatedAt??"")).slice(0,Oe)}function Me(t){const e=T.c(25),{index:d,value:o,onChange:r}=t,l=L();let a;e[0]!==d||e[1]!==o?(a=o?Q(o,d):void 0,e[0]=d,e[1]=o,e[2]=a):a=e[2];const i=a;let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(pe,{size:14}),e[3]=s):s=e[3];let u;e[4]!==i||e[5]!==l?(u=i?i.title:l("home.projectFeed.filterAll"),e[4]=i,e[5]=l,e[6]=u):u=e[6];let c;e[7]!==u?(c=n.jsx(ae,{asChild:!0,children:n.jsxs(le,{size:"sm",variant:"outline",className:"gap-1.5",children:[s,u]})}),e[7]=u,e[8]=c):c=e[8];const m=o??"";let p;e[9]!==r?(p=h=>r(h||null),e[9]=r,e[10]=p):p=e[10];let b;e[11]!==l?(b=l("home.projectFeed.filterAll"),e[11]=l,e[12]=b):b=e[12];let g;e[13]!==b?(g=n.jsx(Y,{value:"",children:b}),e[13]=b,e[14]=g):g=e[14];let x;e[15]!==d.entries?(x=d.entries.map(Ge),e[15]=d.entries,e[16]=x):x=e[16];let f;e[17]!==m||e[18]!==p||e[19]!==g||e[20]!==x?(f=n.jsx(re,{align:"end",className:"w-56",children:n.jsxs(oe,{value:m,onValueChange:p,children:[g,x]})}),e[17]=m,e[18]=p,e[19]=g,e[20]=x,e[21]=f):f=e[21];let j;return e[22]!==f||e[23]!==c?(j=n.jsxs(ie,{children:[c,f]}),e[22]=f,e[23]=c,e[24]=j):j=e[24],j}function Ge(t){return n.jsx(Y,{value:t.id,children:n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"truncate",children:t.title}),t.projects.length>1&&n.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.projects.map(Le).join(", ")})]})},t.id)}function Le(t){return t.title}function q(t){const e=T.c(8),{icon:d,iconClassName:o,children:r}=t;let l;e[0]!==o?(l=M("size-3.5 shrink-0",o),e[0]=o,e[1]=l):l=e[1];let a;e[2]!==d||e[3]!==l?(a=n.jsx(d,{className:l}),e[2]=d,e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=n.jsxs("span",{className:"inline-flex h-6 items-center gap-1.5 rounded-full border-[length:var(--border-hairline)] border-border px-2 text-xs text-muted-foreground",children:[a,r]}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}function qe(t){const e=T.c(69),{entry:d,memberById:o}=t,r=L(),l=U(),a=Ie(),i=se({strict:!1}).org??"",{task:s,bucket:u,project:c}=d;let m;e[0]!==r||e[1]!==s.status?(m=ye(s.status,r),e[0]=r,e[1]=s.status,e[2]=m):m=e[2];const p=m,b=p.visual.icon,g=ve[s.priority],x=g.icon,f=ke[s.type??Re],j=f.icon;let h;e[3]!==i||e[4]!==s.keySeq?(h=Te(i,s.keySeq),e[3]=i,e[4]=s.keySeq,e[5]=h):h=e[5];const v=h;let N;e[6]!==o||e[7]!==s.assigneeId?(N=s.assigneeId?o.get(s.assigneeId):void 0,e[6]=o,e[7]=s.assigneeId,e[8]=N):N=e[8];const y=N;let C;e[9]!==y?.user?.name||e[10]!==r||e[11]!==s.assigneeId?(C=s.assigneeId===X?r("taskBoard.taskDialog.superAgentLabel"):y?.user?.name??void 0,e[9]=y?.user?.name,e[10]=r,e[11]=s.assigneeId,e[12]=C):C=e[12];const A=C;let _;e[13]!==u||e[14]!==a||e[15]!==c?(_=c?n.jsxs("button",{type:"button",onClick:()=>a(c.id,{panel:ne(c.metadata?.ui?.layout)}),className:"flex min-w-0 cursor-pointer items-center gap-2 rounded-lg text-left text-sm font-medium text-foreground transition-colors hover:text-primary",children:[n.jsx(xe,{icon:c.icon,name:c.title}),n.jsx("span",{className:"truncate",children:c.title})]}):n.jsxs("span",{className:"flex min-w-0 items-center gap-2 text-sm font-medium text-muted-foreground",children:[n.jsx(ge,{className:"size-4 shrink-0"}),n.jsx("span",{className:"truncate",children:u.title})]}),e[13]=u,e[14]=a,e[15]=c,e[16]=_):_=e[16];let k;e[17]!==v?(k=v&&n.jsx("span",{className:"shrink-0 rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=k):k=e[18];let S;e[19]!==s.updatedAt?(S=Be(new Date(s.updatedAt)),e[19]=s.updatedAt,e[20]=S):S=e[20];let I;e[21]!==S?(I=n.jsx("span",{className:"ml-auto shrink-0 text-sm text-muted-foreground",children:S}),e[21]=S,e[22]=I):I=e[22];let w;e[23]!==y||e[24]!==A||e[25]!==s.assigneeId?(w=n.jsx(ze,{assigneeId:s.assigneeId,assignee:y,title:A}),e[23]=y,e[24]=A,e[25]=s.assigneeId,e[26]=w):w=e[26];let F;e[27]!==_||e[28]!==k||e[29]!==I||e[30]!==w?(F=n.jsxs("div",{className:"flex items-center gap-2.5",children:[_,k,I,w]}),e[27]=_,e[28]=k,e[29]=I,e[30]=w,e[31]=F):F=e[31];let R;e[32]!==l||e[33]!==i||e[34]!==s?(R=()=>l({to:"/$org/tasks/{-$taskKey}",params:{org:i,taskKey:Ae(i,s)}}),e[32]=l,e[33]=i,e[34]=s,e[35]=R):R=e[35];let P;e[36]!==s.title?(P=n.jsx("span",{className:"text-lg leading-snug font-semibold text-foreground transition-colors hover:text-primary",children:s.title}),e[36]=s.title,e[37]=P):P=e[37];let B;e[38]!==b||e[39]!==p.label||e[40]!==p.visual.iconClassName?(B=n.jsx(q,{icon:b,iconClassName:p.visual.iconClassName,children:p.label}),e[38]=b,e[39]=p.label,e[40]=p.visual.iconClassName,e[41]=B):B=e[41];const V=f.iconClassName;let E;e[42]!==r||e[43]!==f.labelKey?(E=r(f.labelKey),e[42]=r,e[43]=f.labelKey,e[44]=E):E=e[44];let D;e[45]!==j||e[46]!==E||e[47]!==f.iconClassName?(D=n.jsx(q,{icon:j,iconClassName:V,children:E}),e[45]=j,e[46]=E,e[47]=f.iconClassName,e[48]=D):D=e[48];let z;e[49]!==x||e[50]!==g.iconClassName||e[51]!==g.labelKey||e[52]!==r||e[53]!==s.priority?(z=$e.has(s.priority)&&n.jsx(q,{icon:x,iconClassName:g.iconClassName,children:r(g.labelKey)}),e[49]=x,e[50]=g.iconClassName,e[51]=g.labelKey,e[52]=r,e[53]=s.priority,e[54]=z):z=e[54];let O;e[55]!==B||e[56]!==D||e[57]!==z?(O=n.jsxs("span",{className:"flex flex-wrap items-center gap-1.5",children:[B,D,z]}),e[55]=B,e[56]=D,e[57]=z,e[58]=O):O=e[58];let $;e[59]!==R||e[60]!==P||e[61]!==O?($=n.jsxs("button",{type:"button",onClick:R,className:"flex cursor-pointer flex-col items-start gap-2.5 text-left",children:[P,O]}),e[59]=R,e[60]=P,e[61]=O,e[62]=$):$=e[62];let K;e[63]!==s.description?(K=s.description&&n.jsx("p",{className:"line-clamp-3 text-sm leading-relaxed text-muted-foreground",children:s.description}),e[63]=s.description,e[64]=K):K=e[64];let G;return e[65]!==F||e[66]!==$||e[67]!==K?(G=n.jsxs("article",{className:"card-shadow flex flex-col gap-4 rounded-xl bg-card p-6",children:[F,$,K]}),e[65]=F,e[66]=$,e[67]=K,e[68]=G):G=e[68],G}function ct(){const t=T.c(3),{locator:e}=H(),d=Z();je();let o;t[0]!==e||t[1]!==d?(o=Ne(e,d),t[0]=e,t[1]=d,t[2]=o):o=t[2];const{data:r}=ee(o);return r.items}function dt(t){const e=T.c(12),{projects:d,tasks:o,showFilter:r}=t,l=r===void 0?!0:r,a=L(),[i,s]=te.useState(null),u=Ce(d),c=Ke(u,o,i),{data:m}=Pe();let p;e[0]!==m?.data?.members?(p=new Map((m?.data?.members??[]).map(He)),e[0]=m?.data?.members,e[1]=p):p=e[1];const b=p,g="flex flex-col gap-4";let x;e[2]!==a?(x=a("home.projectFeed.heading"),e[2]=a,e[3]=x):x=e[3];let f;e[4]!==x?(f=n.jsx("h2",{className:"text-lg font-medium text-foreground","data-tour":he.recentActivity,children:x}),e[4]=x,e[5]=f):f=e[5];const j=l&&n.jsx(Me,{index:u,value:i,onChange:s});let h;e[6]!==f||e[7]!==j?(h=n.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f,j]}),e[6]=f,e[7]=j,e[8]=h):h=e[8];const v=c.length===0?n.jsx("p",{className:"rounded-xl border border-dashed border-border p-12 text-center text-sm text-muted-foreground",children:a("home.projectFeed.empty")}):n.jsx("div",{className:"flex flex-col gap-4",children:c.map(y=>n.jsx(qe,{entry:y,memberById:b},y.task.id))});let N;return e[9]!==h||e[10]!==v?(N=n.jsxs("section",{className:g,children:[h,v]}),e[9]=h,e[10]=v,e[11]=N):N=e[11],N}function He(t){return[t.userId,t]}export{dt as P,it as R,Ke as b,ct as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,j as c}from"./index-
|
|
1
|
+
import{c as n,j as c}from"./index-B1zctMWM.js";import{A as i}from"./agent-icon-Plx0vVQZ.js";function p(r){const t=n.c(3),{icon:s,name:e}=r;let o;return t[0]!==s||t[1]!==e?(o=c.jsx(i,{icon:s,name:e,size:"2xs"}),t[0]=s,t[1]=e,t[2]=o):o=t[2],o}export{p as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m,j as r}from"./index-B1zctMWM.js";import{C as i}from"./index-_Pfw1M40.js";import{R as p}from"./reports-tab-DOaYQIgv.js";import"./use-mobile-CUG36tjm.js";import"./thread-button-CBArUpXO.js";import"./agent-icon-Plx0vVQZ.js";import"./AlertCircle-Bx6Xy-Kw.js";import"./Tool01-DQZj0rVc.js";import"./ArrowUp-Dr4dZUTV.js";import"./ArrowLeft-BBlLaPEb.js";import"./LinkBroken01-DLTNdGdq.js";import"./ShoppingBag01-BnqPHk8-.js";import"./ZoomOut-o5Bj_0k0.js";import"./Building02-qqUg_lk7.js";import"./CheckCircle-DQ_Iwx7G.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";import"./UserSquare-DubBIV3t.js";import"./Copy01-1J_cPh43.js";import"./CreditCard01-CZJLSW5h.js";import"./DotsVertical-DMzCTdNT.js";import"./Image01-VqGHD62D.js";import"./Palette-DItfN1RT.js";import"./XClose-B5gtMDn3.js";import"./Key01-3kquwPFB.js";import"./Link01-ZJZ8YMCs.js";import"./LinkExternal01-ByTglQMD.js";import"./Monitor01-CjCwBipo.js";import"./Sun-G5YUTpKk.js";import"./Plus-jU4D0ULX.js";import"./SearchMd-yUpDH67q.js";import"./Trash01-CfWaytgc.js";import"./Upload01-ca0GgR0P.js";import"./User01-BJgSr0na.js";import"./Users01-BI4qzwEi.js";import"./X-4SjHAUB6.js";import"./use-chat-layout-state-B1ZVGaLS.js";import"./use-file-configs-BJx6-ZW4.js";import"./use-organization-settings-B-_PpufY.js";import"./schema-CtVpxfN8.js";import"./task-board-BMQrxTue.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CMTlmdB2.js";import"./use-panel-navigate-CuKDZSXf.js";import"./use-project-scope-B1N6dPlK.js";import"./repository-binding-DB3Rsfan.js";import"./use-mcp-client-BCOmh6mH.js";import"./auth-BhL4Ae7M.js";import"./thread-intent-swCQbScV.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-BHMUXURV.js";import"./tooltip-CmsIn1_T.js";import"./index-CazcJ_7a.js";import"./toolbar-icon-button-BR_iVDC5.js";import"./shell-layout-XTP1Kn60.js";import"./avatar-ZtrZA-xC.js";import"./download-app-dialog-VBK5SfsW.js";import"./dialog-DUkVOZIE.js";import"./use-clock-tick-BsJNcY-e.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./integration-icon-B97YfXXZ.js";import"./project-icon-0knrxIOw.js";import"./new-project-dialog-BMehfxLv.js";import"./input-B3HVl7By.js";import"./label-Be_7Vms5.js";import"./repository-import-picker-DyQqkMVo.js";import"./use-navigate-to-agent-Cv939dl9.js";import"./repository-picker-BhN42NYE.js";import"./useInfiniteQuery-DRaKStQa.js";import"./infiniteQueryObserver-BBgKyTli.js";import"./collection-search-De8chpSh.js";import"./use-debounced-value-BJOL8Gwj.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BhtMSUK8.js";import"./autosend-CtvAncuN.js";import"./use-org-sso-554XjjGQ.js";import"./resizable-Cl5uhslg.js";import"./icon-button-BpPbhU8u.js";import"./site-url-en5df9c-.js";import"./use-reports-diagnostic-kNe2-1FK.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./mini-report-page-CFRqMuFT.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";import"./projects-empty-state-BSpE0Riy.js";import"./project-profile-Cc4MG3QN.js";function Jt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{Jt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,X as n,j as r,K as f}from"./index-B1zctMWM.js";import{C as d}from"./index-_Pfw1M40.js";import{T as u}from"./index-wBJ7lMpR.js";import{F as x}from"./feature-gate-BIe5gsHR.js";import{m as h,P as j}from"./mock-board-BD3qTGYo.js";import"./use-mobile-CUG36tjm.js";import"./thread-button-CBArUpXO.js";import"./agent-icon-Plx0vVQZ.js";import"./AlertCircle-Bx6Xy-Kw.js";import"./Tool01-DQZj0rVc.js";import"./ArrowUp-Dr4dZUTV.js";import"./ArrowLeft-BBlLaPEb.js";import"./LinkBroken01-DLTNdGdq.js";import"./ShoppingBag01-BnqPHk8-.js";import"./ZoomOut-o5Bj_0k0.js";import"./Building02-qqUg_lk7.js";import"./CheckCircle-DQ_Iwx7G.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";import"./UserSquare-DubBIV3t.js";import"./Copy01-1J_cPh43.js";import"./CreditCard01-CZJLSW5h.js";import"./DotsVertical-DMzCTdNT.js";import"./Image01-VqGHD62D.js";import"./Palette-DItfN1RT.js";import"./XClose-B5gtMDn3.js";import"./Key01-3kquwPFB.js";import"./Link01-ZJZ8YMCs.js";import"./LinkExternal01-ByTglQMD.js";import"./Monitor01-CjCwBipo.js";import"./Sun-G5YUTpKk.js";import"./Plus-jU4D0ULX.js";import"./SearchMd-yUpDH67q.js";import"./Trash01-CfWaytgc.js";import"./Upload01-ca0GgR0P.js";import"./User01-BJgSr0na.js";import"./Users01-BI4qzwEi.js";import"./X-4SjHAUB6.js";import"./use-chat-layout-state-B1ZVGaLS.js";import"./use-file-configs-BJx6-ZW4.js";import"./use-organization-settings-B-_PpufY.js";import"./schema-CtVpxfN8.js";import"./task-board-BMQrxTue.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CMTlmdB2.js";import"./use-panel-navigate-CuKDZSXf.js";import"./use-project-scope-B1N6dPlK.js";import"./repository-binding-DB3Rsfan.js";import"./use-mcp-client-BCOmh6mH.js";import"./auth-BhL4Ae7M.js";import"./thread-intent-swCQbScV.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-BHMUXURV.js";import"./tooltip-CmsIn1_T.js";import"./index-CazcJ_7a.js";import"./toolbar-icon-button-BR_iVDC5.js";import"./shell-layout-XTP1Kn60.js";import"./avatar-ZtrZA-xC.js";import"./download-app-dialog-VBK5SfsW.js";import"./dialog-DUkVOZIE.js";import"./use-clock-tick-BsJNcY-e.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./integration-icon-B97YfXXZ.js";import"./project-icon-0knrxIOw.js";import"./new-project-dialog-BMehfxLv.js";import"./input-B3HVl7By.js";import"./label-Be_7Vms5.js";import"./repository-import-picker-DyQqkMVo.js";import"./use-navigate-to-agent-Cv939dl9.js";import"./repository-picker-BhN42NYE.js";import"./useInfiniteQuery-DRaKStQa.js";import"./infiniteQueryObserver-BBgKyTli.js";import"./collection-search-De8chpSh.js";import"./use-debounced-value-BJOL8Gwj.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BhtMSUK8.js";import"./autosend-CtvAncuN.js";import"./use-org-sso-554XjjGQ.js";import"./resizable-Cl5uhslg.js";import"./icon-button-BpPbhU8u.js";import"./rich-text-link-control-CzOQrdNt.js";import"./use-task-board-analytics-BhmIKHN_.js";import"./combobox-uWP-A1cr.js";import"./popover-DwQza7Ap.js";import"./index-De_dnJRN.js";import"./gateway-client-DdEB-W_0.js";import"./form-esFIz8cn.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-2kSVNzGe.js";import"./suggestion-089nWMGT.js";import"./column-rules-NVsxdRkm.js";import"./badge-B0eiYJhc.js";import"./switch-Bj8bJ2hL.js";import"./textarea-C-PwJiry.js";import"./use-org-fs-CfcB8IFl.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-BmdAS9S4.js";import"./config-CNoTk6kM.js";import"./use-task-board-events-B6plWEJr.js";import"./use-decopilot-events-B7N8IjI0.js";import"./use-members-B_fEZqvW.js";import"./use-org-auth-client-Cro1UGGf.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-CToQ_9AW.js";import"./task-route-BKWswtA1.js";import"./calendar-Cwshzk8E.js";import"./alert-FpVcsSTC.js";import"./collapsible-taXF9Vin.js";import"./use-copy-CbVFfAiy.js";import"./markdown-BSYuVrvS.js";import"./location-DPIrGNp7.js";import"./index-BP-g_hO2.js";import"./index-CfCqm3c8.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-o6IaHrCa.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BNWfu5MD.js";import"./useSuspenseInfiniteQuery-WHFkobEh.js";import"./pair-bDKRTMqu.js";import"./usage-stats-CQr6G5Ur.js";import"./chat-context-CW-2SJ9g.js";import"./use-ai-providers-DKY0H66j.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BuJCA9WL.js";import"./types-Dnj2Xk6p.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-DsQz4qyp.js";import"./use-thread-outputs-BH6QTvpP.js";import"./file-type-icon-CideAigq.js";import"./use-infinite-scroll-D564AByM.js";import"./task-status-C1D3al28.js";import"./use-open-billing-url-DBj1DYvR.js";import"./chat-draft-CwKaZkWY.js";import"./separator-CWugGQbc.js";import"./feature-paywall-DGxl3PI8.js";import"./plan-ladder-CfA0FpAL.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function Vo(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{Vo as default};
|