decocms 4.463.4 → 4.464.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-C4DXnwFn.js → AlertCircle-DQV9Mc17.js} +1 -1
- package/dist/client/assets/{AreaChart-C4aYAk3M.js → AreaChart-CzwL_0OC.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CrkIBy0V.js → ArrowLeft-BIML-f0i.js} +1 -1
- package/dist/client/assets/{ArrowUp-BnfRDCtj.js → ArrowUp-CmgvSWvg.js} +1 -1
- package/dist/client/assets/{Building02-BPYbBF2i.js → Building02-DGed7X87.js} +1 -1
- package/dist/client/assets/{CartesianChart-CRugr-3S.js → CartesianChart-D2XReMlE.js} +1 -1
- package/dist/client/assets/{Check-C9M_J-LM.js → Check-DmssFQIB.js} +1 -1
- package/dist/client/assets/{CheckCircle-DQXE_7xq.js → CheckCircle-CGt4I_97.js} +1 -1
- package/dist/client/assets/{ChevronUp-CBkP5lJ3.js → ChevronUp-CVGAY_3s.js} +1 -1
- package/dist/client/assets/{Copy01-CKIM4Pkm.js → Copy01-Bv3jpVlA.js} +1 -1
- package/dist/client/assets/{CreditCard01-mihIPdMc.js → CreditCard01-CsLyF3kp.js} +1 -1
- package/dist/client/assets/{DotsVertical-MDoiMcyS.js → DotsVertical-CiM8md1y.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-YQZ6sHbN.js → ErrorBarContext-C-Br6GDZ.js} +1 -1
- package/dist/client/assets/{Globe04-BVo4VIK3.js → Globe04-5mRZfz3d.js} +1 -1
- package/dist/client/assets/{Image01-DAxDkgZe.js → Image01-DxzRuuii.js} +1 -1
- package/dist/client/assets/{Key01-BecEypam.js → Key01-4ZMPLPba.js} +1 -1
- package/dist/client/assets/{Line-CnwZfFbk.js → Line-CDL5qmk5.js} +1 -1
- package/dist/client/assets/{Link01-BaYhDh62.js → Link01-M6drdXoX.js} +1 -1
- package/dist/client/assets/{LinkBroken01-L4YdRGCB.js → LinkBroken01-W0guIiTp.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DxB383PE.js → LinkExternal01-ClcRo1x1.js} +1 -1
- package/dist/client/assets/{Monitor01-BZ4Tb3b1.js → Monitor01-Dk1HgiBj.js} +1 -1
- package/dist/client/assets/{Plus-Cs-2g2Qd.js → Plus-Bq5ZeuHM.js} +1 -1
- package/dist/client/assets/{SearchMd-5FUtMWhs.js → SearchMd-tAwrJP3u.js} +1 -1
- package/dist/client/assets/{Sector-BQIwpgQ2.js → Sector-JvAmi2ld.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BTLZ3hJs.js → ShoppingBag01-CQ0azIkw.js} +1 -1
- package/dist/client/assets/{Sun-DcYaxvKG.js → Sun-k0O1HcgT.js} +1 -1
- package/dist/client/assets/{Tool01-CNesLJor.js → Tool01-rcwjZJWt.js} +1 -1
- package/dist/client/assets/{Trash01-DE391E6L.js → Trash01-yUMH9377.js} +1 -1
- package/dist/client/assets/{Upload01-Bpw1Ptny.js → Upload01-BPuydd_6.js} +1 -1
- package/dist/client/assets/{User01-CALUsh4b.js → User01-9b4OuT4C.js} +1 -1
- package/dist/client/assets/{UserSquare-4sy2jBCi.js → UserSquare-weua4atg.js} +1 -1
- package/dist/client/assets/{Users01-0TYS4mlz.js → Users01-CldLEl2f.js} +1 -1
- package/dist/client/assets/{X-vN3laxlE.js → X-CSlg1sd1.js} +1 -1
- package/dist/client/assets/{XAxis-Cg3y9K45.js → XAxis-B6QoWNgI.js} +1 -1
- package/dist/client/assets/{XClose-B2A5kkkA.js → XClose-C0S6AMzF.js} +1 -1
- package/dist/client/assets/{ZoomOut-BDXMBoQj.js → ZoomOut-B5ON1ruo.js} +1 -1
- package/dist/client/assets/{access-gate-DaCns1ta.js → access-gate-wsITlSLv.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-C_DxcbJU.js → add-connection-dialog-DmB5Tp1t.js} +1 -1
- package/dist/client/assets/{agent-analytics-BA0230tU.js → agent-analytics-COWh3k0y.js} +1 -1
- package/dist/client/assets/agent-app-BMiZhYH8.js +1 -0
- package/dist/client/assets/{agent-assets-BmNu-rqc.js → agent-assets-vxaygUwM.js} +1 -1
- package/dist/client/assets/{agent-automation-Dp9VCXvd.js → agent-automation-Bql0c9tj.js} +1 -1
- package/dist/client/assets/{agent-automations-pzZlCv0K.js → agent-automations-_X1sp0GW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CWxuT9Ym.js → agent-connect-sources-CPv0fITp.js} +1 -1
- package/dist/client/assets/agent-deck-FGeLoxV6.js +1 -0
- package/dist/client/assets/{agent-e2e-DUEsXfL0.js → agent-e2e-CMHIR015.js} +1 -1
- package/dist/client/assets/{agent-experiments-e-uhjS-2.js → agent-experiments-CHj6csUz.js} +1 -1
- package/dist/client/assets/{agent-file-BLu5RCXn.js → agent-file-CxDhiG4P.js} +1 -1
- package/dist/client/assets/{agent-hosting-BEb4O812.js → agent-hosting-gFRKRolp.js} +1 -1
- package/dist/client/assets/{agent-icon-M8hOOBGO.js → agent-icon-D8yc3w6R.js} +1 -1
- package/dist/client/assets/agent-library-LrrHuS7D.js +1 -0
- package/dist/client/assets/agent-library-file-BLw9efSo.js +1 -0
- package/dist/client/assets/{agent-monitor-DhEGMHVd.js → agent-monitor-BjVDNyvC.js} +1 -1
- package/dist/client/assets/{agent-overview-BZMTPL9y.js → agent-overview-J7pfgPo-.js} +1 -1
- package/dist/client/assets/agent-settings-CDE-pry8.js +1 -0
- package/dist/client/assets/{agent-site-editor-wXWXEvau.js → agent-site-editor-BbsHETjh.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BcJo1Q0k.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-nNrgHJFZ.js → agent-site-editor-content-D4Uvng3A.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-DRNs2tRR.js → agent-site-editor-preview-DlXIF9M4.js} +3 -3
- package/dist/client/assets/agent-view-R-jvAhEj.js +1 -0
- package/dist/client/assets/{agent-view-guard-CuJWB1rc.js → agent-view-guard-TDUYhJq5.js} +1 -1
- package/dist/client/assets/{agents-list-B8PgWXTV.js → agents-list-C5OkLPTK.js} +1 -1
- package/dist/client/assets/ai-providers-Bacz0fJf.js +6 -0
- package/dist/client/assets/{alert-CNfOXZXm.js → alert-J_b2yVvo.js} +1 -1
- package/dist/client/assets/{alert-dialog-CD7bONGt.js → alert-dialog-CKYS0LsF.js} +1 -1
- package/dist/client/assets/{analytics-sections-B3KvVOzm.js → analytics-sections-ZsK7uq3f.js} +1 -1
- package/dist/client/assets/api-keys-BgBgaYGy.js +1 -0
- package/dist/client/assets/{api-keys-CvrvRwIy.js → api-keys-C431U9eo.js} +1 -1
- package/dist/client/assets/app-editor-DcmuCwYc.js +1 -0
- package/dist/client/assets/{asset-utils-BhBXVEWW.js → asset-utils-D5QKKx4Y.js} +1 -1
- package/dist/client/assets/{auth-BSrtHG_U.js → auth-X1Z9onOC.js} +1 -1
- package/dist/client/assets/{auth-catchall-B-AsjQQJ.js → auth-catchall-CR9-8FfT.js} +1 -1
- package/dist/client/assets/{auth-entry-DAP_uAT-.js → auth-entry-L4bAWuSf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dd9Sk0t6.js → auth-split-layout-_jdkkrAk.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-2jMjQnil.js → authenticate-and-persist-oauth-BcuXsDL9.js} +1 -1
- package/dist/client/assets/{automation-list-row-CMM007f8.js → automation-list-row-MuL7roXA.js} +1 -1
- package/dist/client/assets/{automation-runs-Daf8st2N.js → automation-runs-DwoUyiIm.js} +1 -1
- package/dist/client/assets/{automations-Bog_z4EB.js → automations-BbgH8-CD.js} +1 -1
- package/dist/client/assets/{autosend-XlMc1k2t.js → autosend-DkkevtpV.js} +1 -1
- package/dist/client/assets/{avatar-CnRwulV6.js → avatar-C9IBeU_l.js} +1 -1
- package/dist/client/assets/{badge-BdUUSOSl.js → badge-DnZUOPBJ.js} +1 -1
- package/dist/client/assets/{block-document-pc2wT72O.js → block-document-DF5TRNns.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BaEmHZHR.js → blocks-preview-workspace-context-CJJUwJec.js} +1 -1
- package/dist/client/assets/{blog-schema-CL1GKnSp.js → blog-schema-DWZAnIQ1.js} +1 -1
- package/dist/client/assets/{buckets-KxS-7OtP.js → buckets-Dl9hB7GO.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C2Fp9U8b.js → build-improve-prompt-doc-B9VDt7kz.js} +1 -1
- package/dist/client/assets/{calendar-Cijmm0eN.js → calendar-EePJktQb.js} +1 -1
- package/dist/client/assets/{capability-load-error-BZwFnQBq.js → capability-load-error-BXtQ4mcH.js} +1 -1
- package/dist/client/assets/{category-editor-DtPlLIY_.js → category-editor-B2ITIbFS.js} +1 -1
- package/dist/client/assets/{chart-DJqB9fzG.js → chart-C517W9OG.js} +1 -1
- package/dist/client/assets/{chat-context-CmUEyw_S.js → chat-context-BBq6hHFG.js} +1 -1
- package/dist/client/assets/{chat-draft-cWvyWURL.js → chat-draft-CKTALvc8.js} +1 -1
- package/dist/client/assets/{checkbox-DNDTd2PL.js → checkbox-BVp3RnTH.js} +1 -1
- package/dist/client/assets/{choose-editor-CKpM7oiY.js → choose-editor-D6RbpQUd.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-B2P2zW65.js → claim-phase-copy-kAK6lKjq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DpJGsn94.js → cli-auth-success-B6fw81Mk.js} +1 -1
- package/dist/client/assets/{client-icons-CFe1J8S6.js → client-icons-CZZeWA6p.js} +1 -1
- package/dist/client/assets/{collapsible-CVmupvCA.js → collapsible-A7bkzZzr.js} +1 -1
- package/dist/client/assets/{collection-detail-BlZcNZ2C.js → collection-detail-qwuQrEV2.js} +1 -1
- package/dist/client/assets/{collection-display-button-CxzEp_83.js → collection-display-button-CSj3XI8l.js} +1 -1
- package/dist/client/assets/{collection-search-CwnvK4XY.js → collection-search-B9IMZJsF.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CqZNwayf.js → collection-table-wrapper-pNeiHPqf.js} +1 -1
- package/dist/client/assets/{collection-tabs-BFd1UDzi.js → collection-tabs-BzgezmYW.js} +1 -1
- package/dist/client/assets/{column-rules-DeO1GQGi.js → column-rules-C9tvlrM1.js} +1 -1
- package/dist/client/assets/{combobox-D8LAHHQn.js → combobox-DegZE00E.js} +1 -1
- package/dist/client/assets/{command-Db_xDGOA.js → command-DePL1KHf.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Brye3YBv.js → companion-mcps-section-CN_sCpjp.js} +1 -1
- package/dist/client/assets/{config-BeqEvn5c.js → config-7uBrtNMv.js} +1 -1
- package/dist/client/assets/{connect-layout-BCuoMMK8.js → connect-layout-Cwjckis6.js} +1 -1
- package/dist/client/assets/{connect-BbNbISa1.js → connect-p0fOlsLZ.js} +1 -1
- package/dist/client/assets/{connection-DN7wKcUN.js → connection-DCVuC0Zx.js} +1 -1
- package/dist/client/assets/{connection-card-Dh0pA57A.js → connection-card-Btw9Ejzr.js} +1 -1
- package/dist/client/assets/{connection-detail-B8mScgEz.js → connection-detail-CF8jfL8Y.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DsyFIBZi.js → connection-form-helpers-BQlKyorY.js} +1 -1
- package/dist/client/assets/{connections-COZbDLgw.js → connections-CJy_kWpN.js} +1 -1
- package/dist/client/assets/{context-BtBMcyCO.js → context-ChwglEu1.js} +1 -1
- package/dist/client/assets/{context-menu-BDYBxqWz.js → context-menu-FQl0AMt3.js} +1 -1
- package/dist/client/assets/{core.esm-BqvPRiP4.js → core.esm-mpmypmP_.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-FTVVO_At.js → create-organization-dialog-gzutvP47.js} +1 -1
- package/dist/client/assets/{daily-pulse-DTuozo6P.js → daily-pulse-BDgY94Bx.js} +1 -1
- package/dist/client/assets/{decopilot-k0GhcGeT.js → decopilot-B7t1igaZ.js} +1 -1
- package/dist/client/assets/{device-hint-CUmrR_6F.js → device-hint-BSbproDJ.js} +1 -1
- package/dist/client/assets/{dialog-CO7_Aog-.js → dialog-l0pufTcv.js} +1 -1
- package/dist/client/assets/{discover-SPORwYNc.js → discover-D1melSDb.js} +1 -1
- package/dist/client/assets/{domain-settings-BMzJMRXq.js → domain-settings-BZjTA4JT.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DnwHS1PT.js → download-app-dialog-aNLwMPvt.js} +1 -1
- package/dist/client/assets/{drawer-oFC8StUp.js → drawer-O3qcVpDl.js} +1 -1
- package/dist/client/assets/{editor-BzFGeG3l.js → editor-BIWtbhSE.js} +1 -1
- package/dist/client/assets/{empty-state-D1CWJ8ql.js → empty-state-5G-3M3tz.js} +1 -1
- package/dist/client/assets/{empty-state-NGQMUmeG.js → empty-state-CnyX2qZd.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BgBd9DCF.js → extract-connection-data-Ou6b9boP.js} +1 -1
- package/dist/client/assets/{feature-gate-BRLcRTY8.js → feature-gate-0YtGKR_-.js} +1 -1
- package/dist/client/assets/{feature-paywall-DN29gnnp.js → feature-paywall-D8WPGLf9.js} +1 -1
- package/dist/client/assets/{file-explorer-BS5C5Qma.js → file-explorer-g9d9yH9T.js} +1 -1
- package/dist/client/assets/{file-preview-BaVjTppN.js → file-preview-DMt8pvXn.js} +1 -1
- package/dist/client/assets/{file-share-button-CHqbxQ2g.js → file-share-button-BVh37pd9.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dpv7TxDs.js → file-type-icon-hpzbwXLS.js} +1 -1
- package/dist/client/assets/flat-project-C5XVxOtg.js +1 -0
- package/dist/client/assets/{folder-icon-CeSOff0I.js → folder-icon-BDmQmtS4.js} +1 -1
- package/dist/client/assets/{form-DhLA4e9V.js → form-DWldHPd_.js} +1 -1
- package/dist/client/assets/{gateway-client-CfQ0xy5j.js → gateway-client-F47a4lAO.js} +1 -1
- package/dist/client/assets/{general-BIPOgqg4.js → general-D7v_Aq_7.js} +1 -1
- package/dist/client/assets/{home-H1MypeCx.js → home-BG1eZNoA.js} +1 -1
- package/dist/client/assets/{icon-button-DRmJWdFS.js → icon-button-DznlvwEZ.js} +1 -1
- package/dist/client/assets/{index-BkOteY4c.js → index-BKCduH1k.js} +1 -1
- package/dist/client/assets/{index-Cew4MYfd.js → index-BfpLxh6F.js} +1 -1
- package/dist/client/assets/{index-BAhcg2K-.js → index-C6yXfhc9.js} +4 -4
- package/dist/client/assets/{index-C4WmY2mf.js → index-C7rfJP0V.js} +1 -1
- package/dist/client/assets/{index-B81tZ0cc.js → index-CG2TCOgB.js} +1 -1
- package/dist/client/assets/{index-2NyPySDN.js → index-CbdGjCTT.js} +1 -1
- package/dist/client/assets/{index-4T-3pOoC.js → index-ConwWJ1X.js} +1 -1
- package/dist/client/assets/{index-MungJLiq.js → index-Cz35IBPv.js} +1 -1
- package/dist/client/assets/{index-DlA1sXNf.js → index-D8A1zhxX.js} +1 -1
- package/dist/client/assets/{index-DDjki-DS.js → index-DLbiJWsU.js} +1 -1
- package/dist/client/assets/{index-CDvvQ8mj.js → index-DPiOtvZ-.js} +3 -3
- package/dist/client/assets/{index-Cp_9VTvZ.js → index-DR_zH_im.js} +1 -1
- package/dist/client/assets/{index-CAuUMShE.js → index-Dncdnplw.js} +1 -1
- package/dist/client/assets/{index-BV9sT4Zt.js → index-Dv_pP_8t.js} +1 -1
- package/dist/client/assets/{index-By0hja7x.js → index-VNSzHC97.js} +1 -1
- package/dist/client/assets/{index-redirect-DCZ7y0Zv.js → index-redirect-D9moqplU.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Criet79k.js → infiniteQueryObserver-Bs8aLdDs.js} +1 -1
- package/dist/client/assets/{infra-billing-1jBUonK5.js → infra-billing-jIDwnAPk.js} +1 -1
- package/dist/client/assets/{input-CtT1bndp.js → input-6-0u-Xnr.js} +3 -3
- package/dist/client/assets/{input-BVnBMwgz.js → input-Dgrf_P4M.js} +1 -1
- package/dist/client/assets/{input--oqEkg4e.js → input-N6YgtZtv.js} +1 -1
- package/dist/client/assets/{integration-icon-C3Eb4y6v.js → integration-icon-BUQcDswF.js} +1 -1
- package/dist/client/assets/{label-DTHRCZU2.js → label-Ccn3ZfwY.js} +1 -1
- package/dist/client/assets/{layout-CIhgL_6i.js → layout-CA0vSGPy.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BVExVzvA.js → legacy-agents-deep-CMLX5lnO.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BOLfolkB.js → legacy-main-redirect-CD-VnYY1.js} +1 -1
- package/dist/client/assets/library-B0RdJJFZ.js +1 -0
- package/dist/client/assets/{library-tab-BDQZAjZl.js → library-tab-DBOv_vFI.js} +1 -1
- package/dist/client/assets/{login-D0gfA0n6.js → login--Au7Agvr.js} +1 -1
- package/dist/client/assets/{markdown-BImqcCfy.js → markdown-BX8FMyIV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Udj2fjiO.js → mcp-app-renderer-NdZTHRTE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BLd7mHPD.js → mcp-oauth-DmWr-lw_.js} +1 -1
- package/dist/client/assets/{members-FJEMo5iQ.js → members-BYrrt_AB.js} +1 -1
- package/dist/client/assets/{memory-BXgoZJ8S.js → memory-AEBksrRq.js} +1 -1
- package/dist/client/assets/{mini-report-page-BmXU622N.js → mini-report-page-B4q5NRJH.js} +1 -1
- package/dist/client/assets/{mock-board-BVYoej1h.js → mock-board-DLS6WsKv.js} +1 -1
- package/dist/client/assets/{monaco-editor-CmLSIzfu.js → monaco-editor-CL7Ar-yE.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CPIx5sjP.js → monitoring-stats-row-CGiwUMyi.js} +1 -1
- package/dist/client/assets/{multi-select-Tv0Y-nlA.js → multi-select-EdnQj9js.js} +1 -1
- package/dist/client/assets/{mustache-CE0WA6lU.js → mustache-BK4wbMc2.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Crf97C1d.js → new-project-dialog-Bk9ESA8g.js} +1 -1
- package/dist/client/assets/{oauth-callback-DGLdc_Gt.js → oauth-callback-DIwVH3Uw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BFSS179L.js → oauth-callback-ai-provider-CAoyiStn.js} +1 -1
- package/dist/client/assets/{onboarding-CQ8EldV7.js → onboarding-CQYgAqHT.js} +1 -1
- package/dist/client/assets/{openai-conversation-C_enqR7A.js → openai-conversation-iF2kou5K.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Cyqpnahl.js → optimistic-project-sidebar-views-C_sD1ykF.js} +1 -1
- package/dist/client/assets/{org-file-open-context-Dv3GKmEo.js → org-file-open-context-DcBRlv30.js} +1 -1
- package/dist/client/assets/{organization-choice-Dx6vK-tB.js → organization-choice-veZx-Rz4.js} +1 -1
- package/dist/client/assets/{orgs-BRfbfZqD.js → orgs-CIc9k45k.js} +1 -1
- package/dist/client/assets/{page-seo-form-CrMMgt7T.js → page-seo-form-CcIjbE82.js} +1 -1
- package/dist/client/assets/{pair-CROt8_FJ.js → pair-BBstx80k.js} +1 -1
- package/dist/client/assets/plan-ladder-DrvNerIK.js +1 -0
- package/dist/client/assets/{popover-DMbWhm29.js → popover-C8xX_Eza.js} +1 -1
- package/dist/client/assets/{post-calendar-C0eje06n.js → post-calendar-CRkqaAN3.js} +1 -1
- package/dist/client/assets/{post-editor-CKtjxE4V.js → post-editor-CLQnWrDH.js} +1 -1
- package/dist/client/assets/{preview-content-BZXctQxE.js → preview-content-CPvumstz.js} +1 -1
- package/dist/client/assets/{preview-dialog-BWOLrKwV.js → preview-dialog-B9j7S7qG.js} +1 -1
- package/dist/client/assets/{preview-panel-BnAE8y85.js → preview-panel-BaneJ62d.js} +1 -1
- package/dist/client/assets/{profile-DyQH_aNd.js → profile-DIopFBCc.js} +1 -1
- package/dist/client/assets/{project-app-view-CTiwNh-z.js → project-app-view-BriIYKSD.js} +1 -1
- package/dist/client/assets/{project-feed-Bvaou8kc.js → project-feed-D9n28Qy2.js} +1 -1
- package/dist/client/assets/{project-icon-YWrhQ2Db.js → project-icon-CrF2bM0B.js} +1 -1
- package/dist/client/assets/project-reports-CoPS9tDg.js +1 -0
- package/dist/client/assets/project-tasks-Ciblt931.js +1 -0
- package/dist/client/assets/{projects-Cz_obcPK.js → projects-CEsPC-Y6.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BscoRvNd.js → projects-empty-state-CHmHBILJ.js} +1 -1
- package/dist/client/assets/{prompts-DxBOW8-N.js → prompts-Nu6vt7bw.js} +1 -1
- package/dist/client/assets/record-editor-CE5H19k2.js +1 -0
- package/dist/client/assets/{redirect-editor-8k6qDFXn.js → redirect-editor-BQvtVD4Q.js} +1 -1
- package/dist/client/assets/reports-BBzfttIZ.js +1 -0
- package/dist/client/assets/{reports-DL-r5LZy.js → reports-BVes2qUT.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BkzJEYoO.js → reports-onboarding-CAdtQjSU.js} +1 -1
- package/dist/client/assets/{reports-tab-xSDSQUq-.js → reports-tab-CdXXfCkk.js} +2 -2
- package/dist/client/assets/{repositories-9gi_nAff.js → repositories-CeCe9l9R.js} +1 -1
- package/dist/client/assets/{repository-binding-Dvarn2QQ.js → repository-binding-DgXYHOdO.js} +1 -1
- package/dist/client/assets/{repository-import-picker-D6An77pP.js → repository-import-picker-BTlCavvI.js} +1 -1
- package/dist/client/assets/{repository-picker-CGsou9yY.js → repository-picker-DMsQBK4M.js} +1 -1
- package/dist/client/assets/{require-capability-T4uMBp9X.js → require-capability-UaYV_k-8.js} +1 -1
- package/dist/client/assets/{required-auth-layout-OTwiT8Ou.js → required-auth-layout-DG_ssul7.js} +1 -1
- package/dist/client/assets/{reset-password-D57jaJI7.js → reset-password-DGch1XH7.js} +1 -1
- package/dist/client/assets/{resizable-CoiWgWDL.js → resizable-B6j59zX8.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-iAO74BlB.js → resolve-tab-icon-_x8T2L6O.js} +1 -1
- package/dist/client/assets/{review-settings-D8o1AgpU.js → review-settings-CZ-nYFGq.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CnMnIlFy.js → rich-text-link-control-DV-QGhD4.js} +1 -1
- package/dist/client/assets/{roles-Cnz75rmE.js → roles-DcdB1xj5.js} +1 -1
- package/dist/client/assets/route-BaBwF0jd.js +1 -0
- package/dist/client/assets/{route-81TBsXsV.js → route-C5HVG4KP.js} +1 -1
- package/dist/client/assets/{route-B0j3BuC3.js → route-aAVGiY4i.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-DWI9hEay.js → runnable-block-editor-BHrs2bmd.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Ce_ER-vx.js → sandbox-lifecycle-context-B6h2V6qW.js} +1 -1
- package/dist/client/assets/{schema-BWozGVyy.js → schema-Dj8UASRG.js} +1 -1
- package/dist/client/assets/{scroll-area-CDjQxGxU.js → scroll-area-BOatS-pA.js} +1 -1
- package/dist/client/assets/{search-input-BP1ITVRE.js → search-input-DZS7SKx0.js} +1 -1
- package/dist/client/assets/{search-toggle-DREXsbsC.js → search-toggle-B4xKT69H.js} +1 -1
- package/dist/client/assets/{secret-picker-BygbS_Im.js → secret-picker-BLO3RbxE.js} +1 -1
- package/dist/client/assets/{secrets-CwmFXXVK.js → secrets-qfecTQ8U.js} +1 -1
- package/dist/client/assets/{sections-editor-B_-ExFTX.js → sections-editor-CI_9FmcP.js} +1 -1
- package/dist/client/assets/{select-DugEew9E.js → select-Bo2QWO2w.js} +1 -1
- package/dist/client/assets/{select-model-DWNaSKrk.js → select-model-BdLOITCD.js} +1 -1
- package/dist/client/assets/{seo-editor-DRWu0V_n.js → seo-editor-B4lNoeES.js} +1 -1
- package/dist/client/assets/{separator-CGBOq1fk.js → separator-FTvTuPez.js} +1 -1
- package/dist/client/assets/{settings-tab-S6-bKh7j.js → settings-tab-BHXpuYUk.js} +1 -1
- package/dist/client/assets/{sheet-CKDS5Xoz.js → sheet-DY1Ixr3e.js} +1 -1
- package/dist/client/assets/{shell-layout-B590ACBF.js → shell-layout-C91CLPqD.js} +1 -1
- package/dist/client/assets/{skills-BTYH3GVR.js → skills-1nbzg48p.js} +1 -1
- package/dist/client/assets/{sso-C71_cFUO.js → sso-D3CHVXy1.js} +1 -1
- package/dist/client/assets/{suggestion-DHWFYHdN.js → suggestion-CCY_KFRa.js} +1 -1
- package/dist/client/assets/{switch-B2MgHt30.js → switch-BcWYdoK-.js} +1 -1
- package/dist/client/assets/{synced-repos-QhdC2fuS.js → synced-repos-B686sh1O.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DCDLOv32.js → tab-icon-glyph-Bg6ILWDR.js} +1 -1
- package/dist/client/assets/{table-CUmKlTWK.js → table-3Ha7m5P3.js} +1 -1
- package/dist/client/assets/{tabs-B-P9k5cW.js → tabs-1jbcwYzu.js} +1 -1
- package/dist/client/assets/{task-board-ZQVJfgC6.js → task-board-zQvtvYuz.js} +1 -1
- package/dist/client/assets/{task-route-Dc2j9FAj.js → task-route-BRHRnN0K.js} +1 -1
- package/dist/client/assets/{task-status-Dh8XOg4W.js → task-status-kHPK4kaa.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DYtAUD1o.js → taskboard-analytics-B9W5oi66.js} +1 -1
- package/dist/client/assets/tasks-Bb13pLGm.js +1 -0
- package/dist/client/assets/{tasks-Dl1wpwQV.js → tasks-Dk0o5vCp.js} +1 -1
- package/dist/client/assets/{textarea-_bF5dcXL.js → textarea-BIXsIYxt.js} +1 -1
- package/dist/client/assets/{thread-analytics-pZgA9PKq.js → thread-analytics-C_2RxStk.js} +1 -1
- package/dist/client/assets/{thread-button-JC2S1tup.js → thread-button-6bHksN1n.js} +1 -1
- package/dist/client/assets/{thread-intent-DVUhGxKs.js → thread-intent-u_umdxEV.js} +1 -1
- package/dist/client/assets/{thread-route-CYefGjgy.js → thread-route-CcA9rsjD.js} +1 -1
- package/dist/client/assets/{thread-route-CChJ4SIt.js → thread-route-Yov0DB_e.js} +1 -1
- package/dist/client/assets/{thread-sheet-body--ZBnIe-c.js → thread-sheet-body-R93Orwrl.js} +1 -1
- package/dist/client/assets/{toggle-group-DbwDHQsp.js → toggle-group-Cn1yrmXY.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-_Xpiy5Mx.js → toolbar-icon-button-BqvnfOpl.js} +1 -1
- package/dist/client/assets/{tooltip-BtKdL9Sw.js → tooltip-C1UnC7LD.js} +1 -1
- package/dist/client/assets/{track-BOyqFhQG.js → track-CeJEG8Ne.js} +1 -1
- package/dist/client/assets/{types-D7c7j-nZ.js → types-BizZdPTP.js} +1 -1
- package/dist/client/assets/{usage-stats-BFH_VT4g.js → usage-stats-hxbQ0K96.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Bwpw-Apu.js → use-ai-providers-C6FUgl61.js} +1 -1
- package/dist/client/assets/{use-automations-DGPX0cJ9.js → use-automations-BpxeL2MI.js} +1 -1
- package/dist/client/assets/{use-autosave-CI3fM1LK.js → use-autosave-D--FTllc.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-JT4q9rDL.js → use-chat-layout-state-CWQdZ4Jo.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-eIpLZmGO.js → use-chat-navigation-BYGGlCTj.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BjEdUP2i.js → use-clock-tick-DFlnhXpf.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CVPZznHr.js → use-connect-companion-bsu4z5QT.js} +1 -1
- package/dist/client/assets/{use-connection-brKVr3Fw.js → use-connection-BF23bC-4.js} +1 -1
- package/dist/client/assets/{use-copy-UYJLbF9Z.js → use-copy-CRNOjveD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Djh9llK5.js → use-create-virtual-mcp-Xevf0e71.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DcFiK_Yg.js → use-date-fns-locale-BkK3C06N.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-uyQKmOKd.js → use-debounced-autosave-CBc2-HbA.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C6y6B5qv.js → use-debounced-value-BSX5d21S.js} +1 -1
- package/dist/client/assets/{use-deco-credits-jXdH-7Tu.js → use-deco-credits-D07bG0At.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B_T_2QPQ.js → use-decopilot-events-3jnJN_zB.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C2qwDp_a.js → use-delete-connection-DsQLhNm_.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Bxh-MFV9.js → use-deployment-admin-CCHBn7EG.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-C8H_bP_w.js → use-ensure-project-folder-C07lXmh3.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D4xlhBPD.js → use-fast-preview-draft-url-Dm9fycKD.js} +1 -1
- package/dist/client/assets/{use-file-configs-DbwKKD7f.js → use-file-configs-DfsKofS5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BJGILMKO.js → use-infinite-scroll-B5kOmcNg.js} +1 -1
- package/dist/client/assets/{use-join-requests-DzIL0Icd.js → use-join-requests-64HL1KDb.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-B6SU0VvF.js → use-main-panel-tabs-Bb-TGY0e.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-hcIHFlxg.js → use-mcp-auth-status-Cdslu5lD.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C80Rcg0W.js → use-mcp-client-BWdbS58t.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C68kWfXm.js → use-mcp-prompts-BkoAHxEV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Ctdc1xYy.js → use-mcp-tools-BPGCmIU7.js} +1 -1
- package/dist/client/assets/{use-members-BiHGI8XY.js → use-members-DhmaxjpN.js} +1 -1
- package/dist/client/assets/{use-mobile-BDecCscv.js → use-mobile-BptJ2ig7.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CUKUrqz8.js → use-navigate-to-agent-CWXwxagr.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-DD4ZkAQi.js +1 -0
- package/dist/client/assets/{use-open-billing-url-PixTYx32.js → use-open-billing-url-BI5VQ742.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B5FQgswR.js → use-org-auth-client-nzWS7Iq-.js} +1 -1
- package/dist/client/assets/{use-org-fs-CYmNAvQQ.js → use-org-fs-B22En0tH.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D09FLJNZ.js → use-org-repo-syncs-BwY7caQP.js} +1 -1
- package/dist/client/assets/{use-org-sso-DRLA8Vbf.js → use-org-sso-76vbZ6oa.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CVGE992M.js → use-organization-roles-dWcQZzgf.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D4Byt2gj.js → use-organization-settings-CAFBLWVk.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-N_ZLezId.js → use-panel-navigate-BM9PNlaW.js} +1 -1
- package/dist/client/assets/{use-project-scope-G-Gyk-m5.js → use-project-scope-CwEflcY9.js} +1 -1
- package/dist/client/assets/{use-releases-BBFqP8G2.js → use-releases-Q6IYliCz.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-D7aNY7lB.js → use-reports-diagnostic-BuSjsvMT.js} +1 -1
- package/dist/client/assets/{use-secrets-DelhSTS_.js → use-secrets-C-0e_lfK.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CLJqRVwo.js → use-section-preview-base-C_voPGNI.js} +1 -1
- package/dist/client/assets/{use-session-runtime-C6eyRsK9.js → use-session-runtime-D2A369zj.js} +1 -1
- package/dist/client/assets/{use-tags-CPeu6da4.js → use-tags-hn2eWZHG.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-gE47QEsU.js → use-task-board-analytics-DomsBO9-.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Cx17PZDn.js → use-task-board-events-C3xun5V7.js} +1 -1
- package/dist/client/assets/{use-task-metadata-C3lM4vdZ.js → use-task-metadata-BDjXNlZ6.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BxMnaIYh.js → use-thread-analytics-Cx9KlOv7.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Bma_v6QO.js → use-thread-outputs-BYXmN7CM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BIeREFXd.js +1 -0
- package/dist/client/assets/{useQueries-BlR_NaTj.js → useQueries-B13pACFJ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BWkrsDSs.js +1 -0
- package/dist/client/assets/{users-84mMEShN.js → users-CWOZu_g0.js} +1 -1
- package/dist/client/assets/{utils-YaXW9l1Q.js → utils-BNDdsgmu.js} +1 -1
- package/dist/client/assets/{variant-calendar-DYMSFNzX.js → variant-calendar-C9yanec4.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CfjwCSF5.js → variant-matcher-override-zadyshex.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D0hM0HXO.js → view-mode-toggle-DWieeNQo.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CcroxAhs.js → virtual-mcp-BRj1Z0ns.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BQQbKwQ3.js +0 -1
- package/dist/client/assets/agent-deck-kfV_Sekm.js +0 -1
- package/dist/client/assets/agent-library-file-PymEv3wg.js +0 -1
- package/dist/client/assets/agent-library-q7_BMuya.js +0 -1
- package/dist/client/assets/agent-settings-CIgSNyzG.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bi-NRJwq.js +0 -2
- package/dist/client/assets/agent-view-BfryexEv.js +0 -1
- package/dist/client/assets/ai-providers-CooNHK9c.js +0 -6
- package/dist/client/assets/api-keys-U338CYMg.js +0 -1
- package/dist/client/assets/app-editor-DG2e4wZO.js +0 -1
- package/dist/client/assets/flat-project-BJ7gmR72.js +0 -1
- package/dist/client/assets/library-CzbB-zjT.js +0 -1
- package/dist/client/assets/plan-ladder-DX67mjcp.js +0 -1
- package/dist/client/assets/project-reports-B8p6v-Rj.js +0 -1
- package/dist/client/assets/project-tasks-BUAL7eqS.js +0 -1
- package/dist/client/assets/record-editor-Bzuq8LjV.js +0 -1
- package/dist/client/assets/reports-DVBfYzhG.js +0 -1
- package/dist/client/assets/route-VTD663Jc.js +0 -1
- package/dist/client/assets/tasks-CEmX1CUM.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-Zj6wjfnw.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DXwFDh0j.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C-TN9JId.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,U as Z,V as ee,b as Y,X as te,Y as ne,k as se,j as s,L as ae,n as J,r as A,d as oe,ax as U,E as W,P as E,aM as ie,B as le}from"./index-BAhcg2K-.js";import{u as re}from"./use-mobile-BDecCscv.js";import{m as ce,a as ue,u as de,t as fe}from"./thread-button-JC2S1tup.js";import{a as X,R as he,b as me}from"./resizable-CoiWgWDL.js";import{f as pe,d as ge,m as xe}from"./use-chat-layout-state-JT4q9rDL.js";import{J as be,k as ye}from"./agent-icon-M8hOOBGO.js";import{s as je}from"./XClose-B2A5kkkA.js";import{I as Se}from"./icon-button-DRmJWdFS.js";import{b as ve,T as Ce,a as Te}from"./tooltip-BtKdL9Sw.js";import{T as q}from"./toolbar-icon-button-_Xpiy5Mx.js";import{a as Le}from"./use-project-scope-G-Gyk-m5.js";import{c as Ne}from"./repository-binding-Dvarn2QQ.js";function G(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=w.c(8);let i;a[0]!==e?(i=r=>G(r,e),a[0]=e,a[1]=i):i=a[1];const[n,o]=Z(l,i);let t;a[2]!==e||a[3]!==n?(t=G(n,e),a[2]=e,a[3]=n,a[4]=t):t=a[4];let u;return a[5]!==o||a[6]!==t?(u=[t,o],a[5]=o,a[6]=t,a[7]=u):u=a[7],u}const ze=33;function _e(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ee.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function we(l){const e=w.c(60),{actions:a,navigation:i}=l,n=Y(),{org:o}=te(),t=Le(),u=Ne(t),r=ce(),{toggleSidebar:d}=ue(),c=de(),f=Q(),h=ne();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={select:Ee},e[0]=m):m=e[0];const y=se(m),x=y?.mainView==="overview";let j;e[1]!==u?.title||e[2]!==n?(j=u?.title??n("common.loading"),e[1]=u?.title,e[2]=n,e[3]=j):j=e[3];const p=j;let _;e[4]!==x||e[5]!==y?.pageTitle||e[6]!==p||e[7]!==t||e[8]!==n?(_=x?t?p:n("sidebar.navDestinations.home"):n(y?.pageTitle??"page.view"),e[4]=x,e[5]=y?.pageTitle,e[6]=p,e[7]=t,e[8]=n,e[9]=_):_=e[9];const v=_;let C;e[10]!==o.slug||e[11]!==h||e[12]!==t?(C=h?{to:"/$org/projects",params:{org:o.slug},search:{project:t??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:t??""}},e[10]=o.slug,e[11]=h,e[12]=t,e[13]=C):C=e[13];const b=C;let S;if(e[14]!==r||e[15]!==x||e[16]!==o.slug||e[17]!==b||e[18]!==p||e[19]!==t||e[20]!==n||e[21]!==v){if(S=[],r){let N;e[23]!==n?(N=n("sidebar.navDestinations.settings"),e[23]=n,e[24]=N):N=e[24];let I;e[25]!==o.slug?(I={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=I):I=e[26];let D;e[27]!==N||e[28]!==I?(D={key:"settings",label:N,link:I},e[27]=N,e[28]=I,e[29]=D):D=e[29],S.push(D)}else if(t&&!x){let N;e[30]!==b||e[31]!==p?(N={key:"project",label:p,link:b},e[30]=b,e[31]=p,e[32]=N):N=e[32],S.push(N)}let $;e[33]!==v?($={key:"page",label:v},e[33]=v,e[34]=$):$=e[34],S.push($),e[14]=r,e[15]=x,e[16]=o.slug,e[17]=b,e[18]=p,e[19]=t,e[20]=n,e[21]=v,e[22]=S}else S=e[22];let g;e[35]!==b||e[36]!==t||e[37]!==n||e[38]!==c?(g=c&&t&&s.jsx(Se,{label:n("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...b,children:s.jsx(je,{size:16})})}),e[35]=b,e[36]=t,e[37]=n,e[38]=c,e[39]=g):g=e[39];const T=g;let P;e[40]!==f||e[41]!==n||e[42]!==c?(P=c&&f&&s.jsxs(ve,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(q,{"aria-label":n(f.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":f.threadOpen,active:f.threadOpen,onClick:f.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:n(f.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=f,e[41]=n,e[42]=c,e[43]=P):P=e[43];const L=P;let z;e[44]!==n?(z=n("layouts.shellControls.toggleSidebar"),e[44]=n,e[45]=z):z=e[45];let R;e[46]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ye,{size:16}),e[46]=R):R=e[46];let O;e[47]!==z||e[48]!==d?(O=s.jsx(q,{className:"md:hidden",onClick:d,"aria-label":z,children:R}),e[47]=z,e[48]=d,e[49]=O):O=e[49];let k;e[50]!==L||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,L]}),e[50]=L,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==S||e[55]!==T||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:S,scope:o.name,actions:a,trailingActions:T,navigation:i}),e[53]=a,e[54]=S,e[55]=T,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Ee(l){return l.matches.findLast(Oe)?.staticData}function Oe(l){return l.staticData.pageTitle}const M="chat-layout-thread",F="chat-layout-content",K=A.createContext(null);function ke(){return H()}function Q(){return A.use(K)}function H(){const l=A.use(K);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=w.c(25),{children:a,...i}=l,n=re(),o=oe(),t=A.useRef(null),[u,r]=_e(),{threadOpen:d,contentOpen:c}=i,f=pe(i),h=d&&c?u:f.side,m=100-h,y=g=>{const T=g.getLayout(),P=T[M],L=T[F];typeof P!="number"||typeof L!="number"||Math.abs(P-h)<.001&&Math.abs(L-m)<.001||g.setLayout({[M]:h,[F]:m})},x=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let j;e[0]!==n||e[1]!==i||e[2]!==x?(j={...i,isMobile:n,mobileSurface:x},e[0]=n,e[1]=i,e[2]=x,e[3]=j):j=e[3];const p=j,_=n?p.mobileSurface==="chat":d;let v;e[4]!==n||e[5]!==i||e[6]!==o||e[7]!==p?(v=()=>{n?o({to:".",search:g=>({...g,...xe(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()},e[4]=n,e[5]=i,e[6]=o,e[7]=p,e[8]=v):v=e[8];let C;e[9]!==_||e[10]!==v?(C=s.jsx(fe,{open:_,onToggle:v}),e[9]=_,e[10]=v,e[11]=C):C=e[11];let b;e[12]!==a||e[13]!==c||e[14]!==m||e[15]!==n||e[16]!==r||e[17]!==y||e[18]!==d||e[19]!==h?(b=n?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(he,{ref:g=>{if(t.current=g,!g)return;let T=!0;return queueMicrotask(()=>{T&&y(g)}),()=>{T=!1,t.current===g&&(t.current=null)}},defaultLayout:{[M]:h,[F]:m},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,T)=>{const{isUserInteraction:P}=T;if(!P){const z=t.current;z&&y(z);return}const L=g[M];d&&c&&typeof L=="number"&&L>0&&L<100&&r(L)},children:a}),e[12]=a,e[13]=c,e[14]=m,e[15]=n,e[16]=r,e[17]=y,e[18]=d,e[19]=h,e[20]=b):b=e[20];let S;return e[21]!==C||e[22]!==b||e[23]!==p?(S=s.jsxs(K,{value:p,children:[C,b]}),e[21]=C,e[22]=b,e[23]=p,e[24]=S):S=e[24],S}function Me(l){const e=w.c(16),{children:a,topbar:i}=l,n=H();if(n.isMobile){let f;return e[0]!==a||e[1]!==n.mobileSurface||e[2]!==i?(f=n.mobileSurface==="chat"?s.jsxs(E,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(E.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=n.mobileSurface,e[2]=i,e[3]=f):f=e[3],f}const o=n.threadOpen?"":void 0;let t;e[4]!==a||e[5]!==n.threadOpen||e[6]!==i?(t=n.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(E.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=n.threadOpen,e[6]=i,e[7]=t):t=e[7];let u;e[8]!==t?(u=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(E,{"data-testid":"side-panel",children:t})}),e[8]=t,e[9]=u):u=e[9];let r;e[10]!==o||e[11]!==u?(r=s.jsx(X,{id:M,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:u}),e[10]=o,e[11]=u,e[12]=r):r=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{className:"bg-sidebar"}),e[13]=d):d=e[13];let c;return e[14]!==r?(c=s.jsxs(s.Fragment,{children:[r,d]}),e[14]=r,e[15]=c):c=e[15],c}function Ae({children:l,routeId:e}){return l}function V(l){const e=w.c(26),{children:a,actions:i,drawer:n,aside:o}=l,t=H();if(t.isMobile&&t.mobileSurface!=="main")return null;const u=t.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==t.contentActions?(r=s.jsxs(s.Fragment,{children:[t.contentActions,i]}),e[0]=i,e[1]=t.contentActions,e[2]=r):r=e[2];let d;e[3]!==t.contentNavigation||e[4]!==r?(d=s.jsx(we,{navigation:t.contentNavigation,actions:r}),e[3]=t.contentNavigation,e[4]=r,e[5]=d):d=e[5];let c;e[6]!==a||e[7]!==t.contentKey?(c=s.jsx(U,{children:s.jsx(Ae,{routeId:t.contentKey,children:a})}),e[6]=a,e[7]=t.contentKey,e[8]=c):c=e[8];let f;e[9]!==t.contentKey||e[10]!==c?(f=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:c},t.contentKey)}),e[9]=t.contentKey,e[10]=c,e[11]=f):f=e[11];let h;e[12]!==n||e[13]!==f?(h=s.jsxs(E.Content,{children:[f,n]}),e[12]=n,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==d||e[16]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[d,h]}),e[15]=d,e[16]=h,e[17]=m):m=e[17];let y;e[18]!==u||e[19]!==m?(y=s.jsx(E,{"data-testid":"main-panel",variant:u,children:m}),e[18]=u,e[19]=m,e[20]=y):y=e[20];const x=y;let j;return e[21]!==o||e[22]!==t.contentOpen||e[23]!==t.isMobile||e[24]!==x?(j=t.isMobile?x:s.jsx(X,{id:F,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":t.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:x}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(E,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(U,{children:o})},A.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[21]=o,e[22]=t.contentOpen,e[23]=t.isMobile,e[24]=x,e[25]=j):j=e[25],j}function Re(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function Be(l){const e=w.c(18),{error:a,reset:i}=l,n=Y();let o;e[0]!==n?(o=n("common.errorBoundary.somethingWentWrong"),e[0]=n,e[1]=o):o=e[1];let t;e[2]!==o?(t=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=t):t=e[3];let u;e[4]!==a.message||e[5]!==n?(u=a.message||n("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=n,e[6]=u):u=e[6];let r;e[7]!==u?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:u}),e[7]=u,e[8]=r):r=e[8];let d;e[9]!==n?(d=n("common.errorBoundary.tryAgain"),e[9]=n,e[10]=d):d=e[10];let c;e[11]!==i||e[12]!==d?(c=s.jsx(le,{variant:"outline",onClick:i,children:d}),e[11]=i,e[12]=d,e[13]=c):c=e[13];let f;return e[14]!==t||e[15]!==r||e[16]!==c?(f=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[t,r,c]})}),e[14]=t,e[15]=r,e[16]=c,e[17]=f):f=e[17],f}const $e=Object.assign(Ie,{Thread:Me,Content:V}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:$e,ChatLayoutError:Be,ChatLayoutPending:Re,useChatLayout:ke,useOptionalChatLayout:Q},Symbol.toStringTag,{value:"Module"}));export{$e as C,we as R,Qe as i,ke as u};
|
|
1
|
+
import{c as w,U as Z,V as ee,b as Y,X as te,Y as ne,k as se,j as s,L as ae,n as J,r as A,d as oe,ax as U,E as W,P as E,aM as ie,B as le}from"./index-C6yXfhc9.js";import{u as re}from"./use-mobile-BptJ2ig7.js";import{m as ce,a as ue,u as de,t as fe}from"./thread-button-6bHksN1n.js";import{a as X,R as he,b as me}from"./resizable-B6j59zX8.js";import{f as pe,d as ge,m as xe}from"./use-chat-layout-state-CWQdZ4Jo.js";import{J as be,k as ye}from"./agent-icon-D8yc3w6R.js";import{s as je}from"./XClose-C0S6AMzF.js";import{I as Se}from"./icon-button-DznlvwEZ.js";import{b as ve,T as Ce,a as Te}from"./tooltip-C1UnC7LD.js";import{T as q}from"./toolbar-icon-button-BqvnfOpl.js";import{a as Le}from"./use-project-scope-CwEflcY9.js";import{c as Ne}from"./repository-binding-DgXYHOdO.js";function G(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=w.c(8);let i;a[0]!==e?(i=r=>G(r,e),a[0]=e,a[1]=i):i=a[1];const[n,o]=Z(l,i);let t;a[2]!==e||a[3]!==n?(t=G(n,e),a[2]=e,a[3]=n,a[4]=t):t=a[4];let u;return a[5]!==o||a[6]!==t?(u=[t,o],a[5]=o,a[6]=t,a[7]=u):u=a[7],u}const ze=33;function _e(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ee.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function we(l){const e=w.c(60),{actions:a,navigation:i}=l,n=Y(),{org:o}=te(),t=Le(),u=Ne(t),r=ce(),{toggleSidebar:d}=ue(),c=de(),f=Q(),h=ne();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={select:Ee},e[0]=m):m=e[0];const y=se(m),x=y?.mainView==="overview";let j;e[1]!==u?.title||e[2]!==n?(j=u?.title??n("common.loading"),e[1]=u?.title,e[2]=n,e[3]=j):j=e[3];const p=j;let _;e[4]!==x||e[5]!==y?.pageTitle||e[6]!==p||e[7]!==t||e[8]!==n?(_=x?t?p:n("sidebar.navDestinations.home"):n(y?.pageTitle??"page.view"),e[4]=x,e[5]=y?.pageTitle,e[6]=p,e[7]=t,e[8]=n,e[9]=_):_=e[9];const v=_;let C;e[10]!==o.slug||e[11]!==h||e[12]!==t?(C=h?{to:"/$org/projects",params:{org:o.slug},search:{project:t??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:t??""}},e[10]=o.slug,e[11]=h,e[12]=t,e[13]=C):C=e[13];const b=C;let S;if(e[14]!==r||e[15]!==x||e[16]!==o.slug||e[17]!==b||e[18]!==p||e[19]!==t||e[20]!==n||e[21]!==v){if(S=[],r){let N;e[23]!==n?(N=n("sidebar.navDestinations.settings"),e[23]=n,e[24]=N):N=e[24];let I;e[25]!==o.slug?(I={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=I):I=e[26];let D;e[27]!==N||e[28]!==I?(D={key:"settings",label:N,link:I},e[27]=N,e[28]=I,e[29]=D):D=e[29],S.push(D)}else if(t&&!x){let N;e[30]!==b||e[31]!==p?(N={key:"project",label:p,link:b},e[30]=b,e[31]=p,e[32]=N):N=e[32],S.push(N)}let $;e[33]!==v?($={key:"page",label:v},e[33]=v,e[34]=$):$=e[34],S.push($),e[14]=r,e[15]=x,e[16]=o.slug,e[17]=b,e[18]=p,e[19]=t,e[20]=n,e[21]=v,e[22]=S}else S=e[22];let g;e[35]!==b||e[36]!==t||e[37]!==n||e[38]!==c?(g=c&&t&&s.jsx(Se,{label:n("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...b,children:s.jsx(je,{size:16})})}),e[35]=b,e[36]=t,e[37]=n,e[38]=c,e[39]=g):g=e[39];const T=g;let P;e[40]!==f||e[41]!==n||e[42]!==c?(P=c&&f&&s.jsxs(ve,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(q,{"aria-label":n(f.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":f.threadOpen,active:f.threadOpen,onClick:f.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:n(f.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=f,e[41]=n,e[42]=c,e[43]=P):P=e[43];const L=P;let z;e[44]!==n?(z=n("layouts.shellControls.toggleSidebar"),e[44]=n,e[45]=z):z=e[45];let R;e[46]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ye,{size:16}),e[46]=R):R=e[46];let O;e[47]!==z||e[48]!==d?(O=s.jsx(q,{className:"md:hidden",onClick:d,"aria-label":z,children:R}),e[47]=z,e[48]=d,e[49]=O):O=e[49];let k;e[50]!==L||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,L]}),e[50]=L,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==S||e[55]!==T||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:S,scope:o.name,actions:a,trailingActions:T,navigation:i}),e[53]=a,e[54]=S,e[55]=T,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Ee(l){return l.matches.findLast(Oe)?.staticData}function Oe(l){return l.staticData.pageTitle}const M="chat-layout-thread",F="chat-layout-content",K=A.createContext(null);function ke(){return H()}function Q(){return A.use(K)}function H(){const l=A.use(K);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=w.c(25),{children:a,...i}=l,n=re(),o=oe(),t=A.useRef(null),[u,r]=_e(),{threadOpen:d,contentOpen:c}=i,f=pe(i),h=d&&c?u:f.side,m=100-h,y=g=>{const T=g.getLayout(),P=T[M],L=T[F];typeof P!="number"||typeof L!="number"||Math.abs(P-h)<.001&&Math.abs(L-m)<.001||g.setLayout({[M]:h,[F]:m})},x=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let j;e[0]!==n||e[1]!==i||e[2]!==x?(j={...i,isMobile:n,mobileSurface:x},e[0]=n,e[1]=i,e[2]=x,e[3]=j):j=e[3];const p=j,_=n?p.mobileSurface==="chat":d;let v;e[4]!==n||e[5]!==i||e[6]!==o||e[7]!==p?(v=()=>{n?o({to:".",search:g=>({...g,...xe(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()},e[4]=n,e[5]=i,e[6]=o,e[7]=p,e[8]=v):v=e[8];let C;e[9]!==_||e[10]!==v?(C=s.jsx(fe,{open:_,onToggle:v}),e[9]=_,e[10]=v,e[11]=C):C=e[11];let b;e[12]!==a||e[13]!==c||e[14]!==m||e[15]!==n||e[16]!==r||e[17]!==y||e[18]!==d||e[19]!==h?(b=n?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(he,{ref:g=>{if(t.current=g,!g)return;let T=!0;return queueMicrotask(()=>{T&&y(g)}),()=>{T=!1,t.current===g&&(t.current=null)}},defaultLayout:{[M]:h,[F]:m},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,T)=>{const{isUserInteraction:P}=T;if(!P){const z=t.current;z&&y(z);return}const L=g[M];d&&c&&typeof L=="number"&&L>0&&L<100&&r(L)},children:a}),e[12]=a,e[13]=c,e[14]=m,e[15]=n,e[16]=r,e[17]=y,e[18]=d,e[19]=h,e[20]=b):b=e[20];let S;return e[21]!==C||e[22]!==b||e[23]!==p?(S=s.jsxs(K,{value:p,children:[C,b]}),e[21]=C,e[22]=b,e[23]=p,e[24]=S):S=e[24],S}function Me(l){const e=w.c(16),{children:a,topbar:i}=l,n=H();if(n.isMobile){let f;return e[0]!==a||e[1]!==n.mobileSurface||e[2]!==i?(f=n.mobileSurface==="chat"?s.jsxs(E,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(E.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=n.mobileSurface,e[2]=i,e[3]=f):f=e[3],f}const o=n.threadOpen?"":void 0;let t;e[4]!==a||e[5]!==n.threadOpen||e[6]!==i?(t=n.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(E.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=n.threadOpen,e[6]=i,e[7]=t):t=e[7];let u;e[8]!==t?(u=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(E,{"data-testid":"side-panel",children:t})}),e[8]=t,e[9]=u):u=e[9];let r;e[10]!==o||e[11]!==u?(r=s.jsx(X,{id:M,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:u}),e[10]=o,e[11]=u,e[12]=r):r=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{className:"bg-sidebar"}),e[13]=d):d=e[13];let c;return e[14]!==r?(c=s.jsxs(s.Fragment,{children:[r,d]}),e[14]=r,e[15]=c):c=e[15],c}function Ae({children:l,routeId:e}){return l}function V(l){const e=w.c(26),{children:a,actions:i,drawer:n,aside:o}=l,t=H();if(t.isMobile&&t.mobileSurface!=="main")return null;const u=t.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==t.contentActions?(r=s.jsxs(s.Fragment,{children:[t.contentActions,i]}),e[0]=i,e[1]=t.contentActions,e[2]=r):r=e[2];let d;e[3]!==t.contentNavigation||e[4]!==r?(d=s.jsx(we,{navigation:t.contentNavigation,actions:r}),e[3]=t.contentNavigation,e[4]=r,e[5]=d):d=e[5];let c;e[6]!==a||e[7]!==t.contentKey?(c=s.jsx(U,{children:s.jsx(Ae,{routeId:t.contentKey,children:a})}),e[6]=a,e[7]=t.contentKey,e[8]=c):c=e[8];let f;e[9]!==t.contentKey||e[10]!==c?(f=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:c},t.contentKey)}),e[9]=t.contentKey,e[10]=c,e[11]=f):f=e[11];let h;e[12]!==n||e[13]!==f?(h=s.jsxs(E.Content,{children:[f,n]}),e[12]=n,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==d||e[16]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[d,h]}),e[15]=d,e[16]=h,e[17]=m):m=e[17];let y;e[18]!==u||e[19]!==m?(y=s.jsx(E,{"data-testid":"main-panel",variant:u,children:m}),e[18]=u,e[19]=m,e[20]=y):y=e[20];const x=y;let j;return e[21]!==o||e[22]!==t.contentOpen||e[23]!==t.isMobile||e[24]!==x?(j=t.isMobile?x:s.jsx(X,{id:F,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":t.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:x}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(E,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(U,{children:o})},A.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[21]=o,e[22]=t.contentOpen,e[23]=t.isMobile,e[24]=x,e[25]=j):j=e[25],j}function Re(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function Be(l){const e=w.c(18),{error:a,reset:i}=l,n=Y();let o;e[0]!==n?(o=n("common.errorBoundary.somethingWentWrong"),e[0]=n,e[1]=o):o=e[1];let t;e[2]!==o?(t=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=t):t=e[3];let u;e[4]!==a.message||e[5]!==n?(u=a.message||n("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=n,e[6]=u):u=e[6];let r;e[7]!==u?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:u}),e[7]=u,e[8]=r):r=e[8];let d;e[9]!==n?(d=n("common.errorBoundary.tryAgain"),e[9]=n,e[10]=d):d=e[10];let c;e[11]!==i||e[12]!==d?(c=s.jsx(le,{variant:"outline",onClick:i,children:d}),e[11]=i,e[12]=d,e[13]=c):c=e[13];let f;return e[14]!==t||e[15]!==r||e[16]!==c?(f=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[t,r,c]})}),e[14]=t,e[15]=r,e[16]=c,e[17]=f):f=e[17],f}const $e=Object.assign(Ie,{Thread:Me,Content:V}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:$e,ChatLayoutError:Be,ChatLayoutPending:Re,useChatLayout:ke,useOptionalChatLayout:Q},Symbol.toStringTag,{value:"Module"}));export{$e as C,we as R,Qe as i,ke as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cm as _}from"./index-
|
|
1
|
+
import{cm as _}from"./index-C6yXfhc9.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var p=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case p:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case m:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=p,r.ForwardRef=u,r.Fragment=o,r.Lazy=m,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===p},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===m},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as x,l as q,t as ue,X as Tt,m as vt,K as At,aR as Mt,h as Xe}from"./index-BAhcg2K-.js";import{a as St,E as ie,j as Ct,h as Je,S as Rt,r as P,t as Et,v as $t,w as Ye,x as N,y as Ee,z as _t,A as Lt,B as $e,C as It,G as K,N as D,m as H,H as Y,T as et,R as ke,I as be,J as zt,K as Pt,L as Ht,O as jt,s as Nt,Q as Ot,U as Bt,u as Dt,b as Ft}from"./index-CAuUMShE.js";import{T as _,n as qt,i as Wt,E as Ut}from"./rich-text-link-control-CnMnIlFy.js";import{a as Gt,e as tt,s as Zt,S as Kt}from"./suggestion-DHWFYHdN.js";import{B as Vt,c as Qt,t as Xt,C as nt,f as Jt,g as _e,s as Yt,m as Le,a as Ie,b as en,d as ze,e as tn,h as nn,i as rn,j as sn,k as an,l as on,n as ln}from"./index-Cp_9VTvZ.js";import{ad as cn,ae as un,ag as dn,I as hn,b7 as pn,aX as fn}from"./agent-icon-M8hOOBGO.js";import{i as gn}from"./XClose-B2A5kkkA.js";import{i as mn}from"./Check-C9M_J-LM.js";import{i as kn}from"./Link01-BaYhDh62.js";import{s as bn}from"./Trash01-DE391E6L.js";import{i as xn,b as wn}from"./use-org-fs-CYmNAvQQ.js";import{E as Pe,i as rt,b as yn,c as Tn,A as vn,d as An,m as Mn,e as Sn,f as Cn}from"./markdown-BImqcCfy.js";import{i as st}from"./X-vN3laxlE.js";import{A as Rn}from"./avatar-CnRwulV6.js";import{f as En,C as $n,c as _n,a as Ln,b as In}from"./command-Db_xDGOA.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-B5FQgswR.js";import{I as Hn}from"./icon-button-DRmJWdFS.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const d=c;let h;e[2]!==n||e[3]!==s?(h=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=h):h=e[4];const f=h;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=qt(a);if(M===""){g();return}if(!Wt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==d||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:d,label:w,onClick:f,children:y}),e[14]=d,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==d||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(mn,{size:14})}),d&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=d,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=St(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let d;e[8]!==o||e[9]!==u||e[10]!==c?(d={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=d):d=e[11];const h=d;let f;e[12]!==n||e[13]!==h||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Vt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(cn,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(hn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:h[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(gn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=h,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=rt(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Je("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Ct({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function de(t,e,n){return t.setMeta(ee,[e,n])}function Zn(t,e){return ee.getState(t)?.get(e)}function Kn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),d=()=>i.text(" "),h=l.isInline?[...c&&!/\s/.test(c)?[d()]:[],l,d()]:l,f=t.state.tr.replaceWith(e,e,h);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Rt.near(f.doc.resolve(k));o&&f.setSelection(y),s&&de(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=d=>{a.current+=d,i(a.current)},o=(d,h,f)=>{if(!t||h.length===0)return!1;l(h.length);const p=Symbol("upload");return d.dispatch(de(d.state.tr,p,f)),(async()=>{for(const g of h)try{const m=await r.current(g);if(!m||d.isDestroyed)continue;const k=rt(g);Kn(d,Zn(d.state,p)??d.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}d.isDestroyed||d.dispatch(de(d.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(d,h)=>{const f=Vn(h.clipboardData);return f.length===0?!1:(h.stopPropagation(),o(d,f,d.state.selection.to))},handleDrop:(d,h,f,p)=>{if(p)return!1;const g=Array.from(h.dataTransfer?.files??[]);if(g.length===0)return!1;const m=d.posAtCoords({left:h.clientX,top:h.clientY})?.pos;return m===void 0?!1:(h.stopPropagation(),o(d,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,V=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nr=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:V,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",V).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as x,l as q,t as ue,X as Tt,m as vt,K as At,aR as Mt,h as Xe}from"./index-C6yXfhc9.js";import{a as St,E as ie,j as Ct,h as Je,S as Rt,r as P,t as Et,v as $t,w as Ye,x as N,y as Ee,z as _t,A as Lt,B as $e,C as It,G as K,N as D,m as H,H as Y,T as et,R as ke,I as be,J as zt,K as Pt,L as Ht,O as jt,s as Nt,Q as Ot,U as Bt,u as Dt,b as Ft}from"./index-Dncdnplw.js";import{T as _,n as qt,i as Wt,E as Ut}from"./rich-text-link-control-DV-QGhD4.js";import{a as Gt,e as tt,s as Zt,S as Kt}from"./suggestion-CCY_KFRa.js";import{B as Vt,c as Qt,t as Xt,C as nt,f as Jt,g as _e,s as Yt,m as Le,a as Ie,b as en,d as ze,e as tn,h as nn,i as rn,j as sn,k as an,l as on,n as ln}from"./index-DR_zH_im.js";import{ad as cn,ae as un,ag as dn,I as hn,b7 as pn,aX as fn}from"./agent-icon-D8yc3w6R.js";import{i as gn}from"./XClose-C0S6AMzF.js";import{i as mn}from"./Check-DmssFQIB.js";import{i as kn}from"./Link01-M6drdXoX.js";import{s as bn}from"./Trash01-yUMH9377.js";import{i as xn,b as wn}from"./use-org-fs-B22En0tH.js";import{E as Pe,i as rt,b as yn,c as Tn,A as vn,d as An,m as Mn,e as Sn,f as Cn}from"./markdown-BX8FMyIV.js";import{i as st}from"./X-CSlg1sd1.js";import{A as Rn}from"./avatar-C9IBeU_l.js";import{f as En,C as $n,c as _n,a as Ln,b as In}from"./command-DePL1KHf.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-nzWS7Iq-.js";import{I as Hn}from"./icon-button-DznlvwEZ.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const d=c;let h;e[2]!==n||e[3]!==s?(h=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=h):h=e[4];const f=h;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=qt(a);if(M===""){g();return}if(!Wt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==d||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:d,label:w,onClick:f,children:y}),e[14]=d,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==d||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(mn,{size:14})}),d&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=d,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=St(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let d;e[8]!==o||e[9]!==u||e[10]!==c?(d={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=d):d=e[11];const h=d;let f;e[12]!==n||e[13]!==h||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Vt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(cn,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(hn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:h[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(gn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=h,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=rt(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Je("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Ct({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function de(t,e,n){return t.setMeta(ee,[e,n])}function Zn(t,e){return ee.getState(t)?.get(e)}function Kn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),d=()=>i.text(" "),h=l.isInline?[...c&&!/\s/.test(c)?[d()]:[],l,d()]:l,f=t.state.tr.replaceWith(e,e,h);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Rt.near(f.doc.resolve(k));o&&f.setSelection(y),s&&de(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=d=>{a.current+=d,i(a.current)},o=(d,h,f)=>{if(!t||h.length===0)return!1;l(h.length);const p=Symbol("upload");return d.dispatch(de(d.state.tr,p,f)),(async()=>{for(const g of h)try{const m=await r.current(g);if(!m||d.isDestroyed)continue;const k=rt(g);Kn(d,Zn(d.state,p)??d.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}d.isDestroyed||d.dispatch(de(d.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(d,h)=>{const f=Vn(h.clipboardData);return f.length===0?!1:(h.stopPropagation(),o(d,f,d.state.selection.to))},handleDrop:(d,h,f,p)=>{if(p)return!1;const g=Array.from(h.dataTransfer?.files??[]);if(g.length===0)return!1;const m=d.posAtCoords({left:h.clientX,top:h.clientY})?.pos;return m===void 0?!1:(h.stopPropagation(),o(d,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,V=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nr=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:V,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",V).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",V).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",lt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ut=/^( {2,}|\\)\n(?!\s*$)/,hr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,pr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),dt=/(?!~)[\p{P}\p{S}]/u,fr=/(?!~)[\s\p{P}\p{S}]/u,gr=/(?:[^\s\p{P}\p{S}]|~)/u,mr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ht=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=A(ht,"u").replace(/punct/g,W).getRegex(),br=A(ht,"u").replace(/punct/g,dt).getRegex(),pt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(pt,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),wr=A(pt,"gu").replace(/notPunctSpace/g,gr).replace(/punctSpace/g,fr).replace(/punct/g,dt).getRegex(),yr=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Tr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),vr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ar=A(vr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Mr=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Sr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cr=A(ve).replace("(?:-->|$)","-->").getRegex(),Rr=A("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Cr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Er=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),gt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),$r=A("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",gt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Mr,autolink:Sr,blockSkip:mr,br:ut,code:dr,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:kr,emStrongRDelimAst:xr,emStrongRDelimUnd:yr,escape:ur,link:Er,nolink:gt,punctuation:pr,reflink:ft,reflinkSearch:$r,tag:Rr,text:hr,url:O},_r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},he={...Se,emStrongRDelimAst:wr,emStrongLDelim:br,delLDelim:Tr,delRDelim:Ar,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ne).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ne).getRegex()},Lr={...he,br:A(ut).replace("{2,}","*").getRegex(),text:A(he.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:lr,pedantic:cr},U={normal:Se,gfm:he,breaks:Lr,pedantic:_r},Ir={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Ir[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function G(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function zr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Pr(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function Fe(t,e,n,r,s){let i=e.href,a=e.title||null,l=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function Hr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:G(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as r}from"./index-
|
|
1
|
+
import{c as s,j as r}from"./index-C6yXfhc9.js";import{D as n,b as c}from"./decopilot-B7t1igaZ.js";function d(l){const e=s.c(2),{onClose:o}=l;let t;return e[0]!==o?(t=r.jsx(c,{onClose:o}),e[0]=o,e[1]=t):t=e[1],t}function p(l){const e=s.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=r.jsx(n,{...o}),e[2]=o,e[3]=t):t=e[3],t}export{p as M,d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,X as h,e7 as d,j as g,N as m,a6 as p,M as j}from"./index-
|
|
1
|
+
import{c as f,X as h,e7 as d,j as g,N as m,a6 as p,M as j}from"./index-C6yXfhc9.js";import{L as v}from"./legacy-main-redirect-CD-VnYY1.js";import"./thread-route-CcA9rsjD.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:r}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==r.slug||e[2]!==l||e[3]!==o?(t=d({org:r.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=r.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let a;return e[5]!==s?(a=g.jsx(v,{target:s}),e[5]=s,e[6]=a):a=e[6],a}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==r.slug||e[10]!==u?(t={org:r.slug,agentId:u},e[9]=r.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let a;return e[14]!==t||e[15]!==s?(a=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=a):a=e[16],a}let c;return e[17]!==r.slug?(c=g.jsx(m,{to:p.home,params:{org:r.slug},search:N,hash:!0,replace:!0}),e[17]=r.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
|