decocms 4.507.3 → 4.507.4
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/{ActiveShapeUtils-xnsSL3sx.js → ActiveShapeUtils-BAL0Xqny.js} +1 -1
- package/dist/client/assets/{AlertCircle-CEZZLz38.js → AlertCircle-T1ZkrR0m.js} +1 -1
- package/dist/client/assets/{AreaChart-HN0fRlrS.js → AreaChart-Dvv3jub6.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DYDkRAue.js → ArrowLeft-CYKCt2D_.js} +1 -1
- package/dist/client/assets/{ArrowUp-BoSjhzDf.js → ArrowUp-CrfIcCHY.js} +1 -1
- package/dist/client/assets/{BarChart-48xiRldD.js → BarChart-Z1_46Epq.js} +1 -1
- package/dist/client/assets/{Building02-gxUxeRsd.js → Building02-BzqtLsiR.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DmP7gVQc.js → CategoricalChart-DSzs6PbU.js} +1 -1
- package/dist/client/assets/{CheckCircle-B20x4ndI.js → CheckCircle-Cyp8J2-O.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-9PUa7L-N.js → ChevronSelectorVertical-bMnA4IfS.js} +1 -1
- package/dist/client/assets/{ChevronUp-BvKleEa1.js → ChevronUp-DWP9CKrv.js} +1 -1
- package/dist/client/assets/{Copy01-DsiTYYU6.js → Copy01-4Op2Jutz.js} +1 -1
- package/dist/client/assets/{CreditCard01-kVpDY_m5.js → CreditCard01-8ijEtUnj.js} +1 -1
- package/dist/client/assets/{DotsVertical-C9QJiHpJ.js → DotsVertical-Ik04gU0Z.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-2zxIz6ZK.js → ErrorBarContext-1QYVhNWP.js} +1 -1
- package/dist/client/assets/{Globe04-OCDS2DtM.js → Globe04-DTYU91Z7.js} +1 -1
- package/dist/client/assets/{Image01-DQWVAHE7.js → Image01-BoNtuy7T.js} +1 -1
- package/dist/client/assets/{Key01-X1DrP0l3.js → Key01-DVtNzjvm.js} +1 -1
- package/dist/client/assets/{Link01-ByHkgEJr.js → Link01-COgU4X0d.js} +1 -1
- package/dist/client/assets/{LinkBroken01-C1K12OTL.js → LinkBroken01-1s3iBfyN.js} +1 -1
- package/dist/client/assets/{Monitor01-DRY8tI7i.js → Monitor01-BMmwz8er.js} +1 -1
- package/dist/client/assets/{Play-DgswSwWx.js → Play-C_Kc3qTH.js} +1 -1
- package/dist/client/assets/{Plus-CBBIyP6s.js → Plus-bl3Do1ab.js} +1 -1
- package/dist/client/assets/{SearchMd-cZPkobS8.js → SearchMd-CuIII2sM.js} +1 -1
- package/dist/client/assets/{Sector-EzyKalFj.js → Sector-Ca7XNqZx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Dne3aRqF.js → ShoppingBag01-CQamAcPv.js} +1 -1
- package/dist/client/assets/{Sun-CHpluZV5.js → Sun-CT-ZvHiv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BxVAqSEt.js → SwitchHorizontal01-BMvJE9CE.js} +1 -1
- package/dist/client/assets/{Tool01-BpE6Ocu5.js → Tool01-eRpAM_xP.js} +1 -1
- package/dist/client/assets/{Trash01-CWyW8AJH.js → Trash01-DtrweZMg.js} +1 -1
- package/dist/client/assets/{Upload01-Cx8wHc7w.js → Upload01-dCDZcDY3.js} +1 -1
- package/dist/client/assets/{User01-COA-WNQV.js → User01-N2rUxuZL.js} +1 -1
- package/dist/client/assets/{UserSquare-CySOTy0y.js → UserSquare-BPqJsNeY.js} +1 -1
- package/dist/client/assets/{Users01-Czgnm_XI.js → Users01--Pjgrl_5.js} +1 -1
- package/dist/client/assets/{XAxis-CGzEXMaM.js → XAxis-Bcjro0Ob.js} +1 -1
- package/dist/client/assets/{XClose-Qxrq0G_x.js → XClose-DBK6xbU_.js} +1 -1
- package/dist/client/assets/{ZoomOut-NpBIqZ1k.js → ZoomOut-BSgJ_qOu.js} +1 -1
- package/dist/client/assets/{access-gate-BKWaGhuR.js → access-gate-DSd_cW3Q.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BNedSJ6Y.js → add-connection-dialog-B2yW98GA.js} +1 -1
- package/dist/client/assets/{agent-analytics-EgytGSYW.js → agent-analytics-DAcM92Eu.js} +1 -1
- package/dist/client/assets/agent-app-DMpGNnPR.js +1 -0
- package/dist/client/assets/{agent-assets-Boz0X5Ki.js → agent-assets-CpU6grt8.js} +1 -1
- package/dist/client/assets/{agent-automation-Cjz3FKC_.js → agent-automation-B-gVk0Iu.js} +1 -1
- package/dist/client/assets/{agent-automations-Dn0LzzG7.js → agent-automations-Un1oiGTh.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-a_Oe6pMW.js → agent-connect-sources-D2iZNBca.js} +1 -1
- package/dist/client/assets/agent-deck-CZNDv1mI.js +1 -0
- package/dist/client/assets/{agent-e2e-ge69NZq7.js → agent-e2e-BU3R6DRe.js} +1 -1
- package/dist/client/assets/{agent-experiments-Cg0irecg.js → agent-experiments-De5Xjb8U.js} +1 -1
- package/dist/client/assets/{agent-file-DNlgdYja.js → agent-file-BUbOjh-I.js} +1 -1
- package/dist/client/assets/{agent-hosting--5LLQHqh.js → agent-hosting-DUYz3ME7.js} +1 -1
- package/dist/client/assets/{agent-icon-RCyVT7wo.js → agent-icon-u2ivNkJK.js} +1 -1
- package/dist/client/assets/agent-library-CRicVjHe.js +1 -0
- package/dist/client/assets/agent-library-file-5bEyOzlc.js +1 -0
- package/dist/client/assets/{agent-monitor-x7nRbONI.js → agent-monitor-6ujZcZJe.js} +1 -1
- package/dist/client/assets/{agent-overview-h2sT0vHf.js → agent-overview-Bxaa87a8.js} +1 -1
- package/dist/client/assets/{agent-releases-CCY6x1Zv.js → agent-releases-Bf8Vhnqt.js} +1 -1
- package/dist/client/assets/agent-settings-DoaEiYch.js +1 -0
- package/dist/client/assets/{agent-site-editor-InBJeC6D.js → agent-site-editor-B8Gy3O3j.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-nxeUtWd2.js +2 -0
- package/dist/client/assets/agent-site-editor-content-MjcMIMIi.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BgfVqf-n.js +1 -0
- package/dist/client/assets/agent-view-B1-PgHLK.js +1 -0
- package/dist/client/assets/{agent-view-guard-CQbpMBLl.js → agent-view-guard-D7Efz7aP.js} +1 -1
- package/dist/client/assets/{agents-list-CWBXnTS3.js → agents-list-CjgsD106.js} +1 -1
- package/dist/client/assets/{ai-providers-CqVdQTJJ.js → ai-providers-DYVp9dmp.js} +1 -1
- package/dist/client/assets/{alert-DtmiRNCs.js → alert-C4LKzrU_.js} +1 -1
- package/dist/client/assets/{alert-dialog-eYX_HG6w.js → alert-dialog-DiDDn4Bn.js} +1 -1
- package/dist/client/assets/{analytics-sections-D83BItUG.js → analytics-sections-BTuh0sxQ.js} +1 -1
- package/dist/client/assets/api-keys-CAj6rmix.js +1 -0
- package/dist/client/assets/{api-keys-CfeV-_9h.js → api-keys-DT2jF2YV.js} +1 -1
- package/dist/client/assets/{app-editor-CLUKjiV1.js → app-editor-2Z9PUdLT.js} +1 -1
- package/dist/client/assets/{asset-utils-BfYqMmJj.js → asset-utils-D_uCIG2N.js} +1 -1
- package/dist/client/assets/{auth-CAugv3bc.js → auth-CExazRf5.js} +1 -1
- package/dist/client/assets/{auth-catchall-BXWISMfs.js → auth-catchall-Bg4s733G.js} +1 -1
- package/dist/client/assets/{auth-entry-D3dpURJr.js → auth-entry-DklrAmyd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DLWrmJg2.js → auth-split-layout-yWRpLXbZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B4sOdDrI.js → authenticate-and-persist-oauth-B43eE55s.js} +1 -1
- package/dist/client/assets/{automation-list-row-C3iwYbyI.js → automation-list-row-rr5_wiXj.js} +1 -1
- package/dist/client/assets/{automation-runs-BbzFBQok.js → automation-runs-Dzy5TJhL.js} +1 -1
- package/dist/client/assets/{automations-DPaT9sIN.js → automations-D7-lperE.js} +1 -1
- package/dist/client/assets/{autosend-DSEyOhE7.js → autosend-CUxwH8aa.js} +1 -1
- package/dist/client/assets/{avatar-Vuppyn0R.js → avatar-k7zVZ1nb.js} +1 -1
- package/dist/client/assets/{badge-DCJU38ab.js → badge-BE7xUmDV.js} +1 -1
- package/dist/client/assets/{block-document-DdDh5C7y.js → block-document-BISmqkMT.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Zw7X8ZvT.js → blocks-preview-workspace-context-9rYmJjdK.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Z8p2MUXW.js → blocks-tab-states-B0RpWAaK.js} +3 -3
- package/dist/client/assets/{blog-schema-kNeCn8hc.js → blog-schema-CYYjVJrx.js} +1 -1
- package/dist/client/assets/{board-analytics-IgbW7H8y.js → board-analytics-BPcQpX0a.js} +1 -1
- package/dist/client/assets/{buckets-BJDs6pQ7.js → buckets-7sZ822gQ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DuUSRBYw.js → build-improve-prompt-doc-4hqh7aGt.js} +1 -1
- package/dist/client/assets/{calendar-BqBNvALs.js → calendar-C_cq2tGg.js} +1 -1
- package/dist/client/assets/{capability-load-error-Ct7gTlUl.js → capability-load-error-Dm_yuCkZ.js} +1 -1
- package/dist/client/assets/{category-editor-BcDXgxmT.js → category-editor-CQjH2oSA.js} +1 -1
- package/dist/client/assets/{chart-D7WURHEc.js → chart-B2lVx6UJ.js} +1 -1
- package/dist/client/assets/{chat-context-qaPvBrDR.js → chat-context-DL44ik-l.js} +1 -1
- package/dist/client/assets/{chat-draft-zaNEWXzo.js → chat-draft-BGj508pV.js} +1 -1
- package/dist/client/assets/{checkbox-Cu7Sq496.js → checkbox-CTOJeQYr.js} +1 -1
- package/dist/client/assets/{choose-editor-IaO1rmYe.js → choose-editor-BoM3oSha.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bat4qyJj.js → cli-auth-success-CmIjetif.js} +1 -1
- package/dist/client/assets/{client-icons-BrKH2PNf.js → client-icons-C4GjI8VB.js} +1 -1
- package/dist/client/assets/cms-settings-editor-bq02-RQH.js +1 -0
- package/dist/client/assets/{collapsible-7FtcEuA2.js → collapsible-DM3c5ETU.js} +1 -1
- package/dist/client/assets/{collection-detail-ALnK7pxW.js → collection-detail-D94lQ1Zc.js} +1 -1
- package/dist/client/assets/{collection-display-button-CCVpzOGT.js → collection-display-button-Dz_a8Rja.js} +1 -1
- package/dist/client/assets/{collection-search-DvXfIbCw.js → collection-search-BgZ6ncMc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B4V_gZlC.js → collection-table-wrapper-DYmuLoSL.js} +1 -1
- package/dist/client/assets/{collection-tabs-D3G56cwm.js → collection-tabs-C9sF3Ij7.js} +1 -1
- package/dist/client/assets/{column-rules-CmG06P_7.js → column-rules-DVJwf6Ig.js} +1 -1
- package/dist/client/assets/{combobox-DSlBd4Uo.js → combobox-CWvfr2Bd.js} +1 -1
- package/dist/client/assets/{command-DtJnVLn9.js → command-kL2BpXNu.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CiG0ujv0.js → companion-mcps-section-BWwhuQv7.js} +1 -1
- package/dist/client/assets/{config-BpRBB-kH.js → config-CmZDuh3u.js} +1 -1
- package/dist/client/assets/{connect-B-rLA-PL.js → connect-Cxk1UNDF.js} +1 -1
- package/dist/client/assets/{connect-layout-DnZ_SKor.js → connect-layout-CuQDm86w.js} +1 -1
- package/dist/client/assets/{connection-BiAy_e5E.js → connection-ClykfAAS.js} +1 -1
- package/dist/client/assets/{connection-card-BPU1-L2q.js → connection-card-CKRGS9aW.js} +1 -1
- package/dist/client/assets/{connection-detail-re-PCDvu.js → connection-detail-CIN8FXIj.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BX34BrYY.js → connection-form-helpers-DaJ65Rex.js} +1 -1
- package/dist/client/assets/{connections-CpI1FEJb.js → connections-q1djGcEd.js} +1 -1
- package/dist/client/assets/{content-tab-DcKfctGm.js → content-tab-Dvm-MV4U.js} +3 -3
- package/dist/client/assets/{context-9Kg2kcpD.js → context-BXY_cB7z.js} +1 -1
- package/dist/client/assets/{context-menu-evHCp9FV.js → context-menu-CJERsJPE.js} +1 -1
- package/dist/client/assets/{core.esm-1eSJsXtC.js → core.esm-BG0jKDkq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cimilr21.js → create-organization-dialog-qyMaxypW.js} +1 -1
- package/dist/client/assets/{daily-pulse-CoLeZob0.js → daily-pulse-DeWjd8Jy.js} +1 -1
- package/dist/client/assets/{discover-C547kJMw.js → discover-0qam8o_r.js} +1 -1
- package/dist/client/assets/{domain-settings-P5qccMb4.js → domain-settings-Ci1klqCY.js} +1 -1
- package/dist/client/assets/{drawer-CRbqujkT.js → drawer-NCwSL4IN.js} +1 -1
- package/dist/client/assets/{editor-RFaQaHms.js → editor-BAFV_HOz.js} +1 -1
- package/dist/client/assets/{editor-classes-DzSdR8sO.js → editor-classes-Bf1cMZ5c.js} +1 -1
- package/dist/client/assets/{empty-state-BkMrlKiw.js → empty-state-CazxAouP.js} +1 -1
- package/dist/client/assets/{empty-state-C4pckIIk.js → empty-state-CyvDawXM.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CC8UKBjD.js → extract-connection-data-Df_4NBNm.js} +1 -1
- package/dist/client/assets/{feature-gate-B-pMn93y.js → feature-gate-DKISz7u2.js} +1 -1
- package/dist/client/assets/{feature-paywall-DlBo4LL2.js → feature-paywall-BfJ3JcG2.js} +1 -1
- package/dist/client/assets/{file-explorer-DKN9shzl.js → file-explorer-DBf-vGM2.js} +1 -1
- package/dist/client/assets/{file-preview-BXp5QURM.js → file-preview-DG6sL6GL.js} +1 -1
- package/dist/client/assets/{file-share-button-02yJpkjE.js → file-share-button-v2uCK60u.js} +1 -1
- package/dist/client/assets/{file-type-icon-BEKg8VDa.js → file-type-icon-CnGkqsAH.js} +1 -1
- package/dist/client/assets/flat-project-DW1zMPL_.js +1 -0
- package/dist/client/assets/{folder-icon-unq375RQ.js → folder-icon-OnROrjIS.js} +1 -1
- package/dist/client/assets/{form-Cpn1fS0w.js → form-B0S4gwZl.js} +1 -1
- package/dist/client/assets/{general-BmnN3W6h.js → general-Bwo2AG61.js} +1 -1
- package/dist/client/assets/{home-CcAf30Bi.js → home-Pp3nSwfE.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-DkXb3WIe.js → hosted-publish-feedback-jZYaiFNy.js} +1 -1
- package/dist/client/assets/{icon-button-CFK3NQ6z.js → icon-button-BDgagVz4.js} +1 -1
- package/dist/client/assets/{index-gn-kXq4N.js → index-AXw2yr4_.js} +1 -1
- package/dist/client/assets/{index-BHRumIhC.js → index-B9UR2St-.js} +1 -1
- package/dist/client/assets/{index-D05mvej1.js → index-BUcAISa8.js} +2 -2
- package/dist/client/assets/{index-DNnzAgp6.js → index-Bfspj4xO.js} +1 -1
- package/dist/client/assets/{index-Wv6TNaI1.js → index-CvWx2Izz.js} +1 -1
- package/dist/client/assets/{index-C4JqPt-P.js → index-Dd00K3eL.js} +1 -1
- package/dist/client/assets/{index-BXnPeal1.js → index-JOJ7PVEg.js} +1 -1
- package/dist/client/assets/{index-DyNtXlZs.js → index-VMpHqTms.js} +1 -1
- package/dist/client/assets/{index-BstXDWDk.js → index-_4HSlqk7.js} +1 -1
- package/dist/client/assets/{index-B5P6mJ_-.js → index-awJH-yt2.js} +3 -3
- package/dist/client/assets/{index-DkiNTs6p.js → index-c-E5TfxF.js} +1 -1
- package/dist/client/assets/{index-BMxoxuSr.js → index-jyhHzpR3.js} +1 -1
- package/dist/client/assets/{index-BY_Bygen.js → index-qMd-hqZw.js} +1 -1
- package/dist/client/assets/{index-redirect-DWgCkH3j.js → index-redirect-BxHx01ue.js} +1 -1
- package/dist/client/assets/{index-BtcNxrFQ.js → index-rxNSDZLc.js} +1 -1
- package/dist/client/assets/{index-DdfVrq0H.js → index-xJOQw_q2.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Dqqye4fA.js → infiniteQueryObserver-DOzqu3CQ.js} +1 -1
- package/dist/client/assets/{infra-billing-C6VLY__1.js → infra-billing-D938gqE_.js} +1 -1
- package/dist/client/assets/{input-f3VIcDXD.js → input-B74-qJgM.js} +3 -3
- package/dist/client/assets/{input-BvNGJpgE.js → input-BZCpPpnc.js} +1 -1
- package/dist/client/assets/{integration-icon-CHEBfkGE.js → integration-icon-ChciBY2o.js} +1 -1
- package/dist/client/assets/{jira-icon-DN-RVD9t.js → jira-icon-B6QeGFuc.js} +1 -1
- package/dist/client/assets/{label-Byc0yEyf.js → label-eEmb1iBr.js} +1 -1
- package/dist/client/assets/{layout-B1lqiDjR.js → layout-0OB0eIys.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BtrtyYyj.js → legacy-agents-deep-1rcXPVaq.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-cEbXG2LF.js → legacy-main-redirect-C4cHO-CO.js} +1 -1
- package/dist/client/assets/library-4m0WPS60.js +1 -0
- package/dist/client/assets/{library-tab-BtmMRnLQ.js → library-tab-1vjc8QRq.js} +1 -1
- package/dist/client/assets/{login-B3nYLEGw.js → login-Cr9q8XjG.js} +1 -1
- package/dist/client/assets/{markdown-CzotQpcK.js → markdown-B_belhjs.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D1par7Q1.js → mcp-app-renderer-BTEXkB1o.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BvaFMPww.js → mcp-oauth-BjnYnOAT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-AbAsLX7c.js → mcp-oauth-Df_GM2_g.js} +1 -1
- package/dist/client/assets/{members-0EWINC3M.js → members-CQVWPaLO.js} +1 -1
- package/dist/client/assets/{memory-DeBKfL7w.js → memory-tRje6nGV.js} +1 -1
- package/dist/client/assets/{mini-report-page-Dq7zNRd2.js → mini-report-page-PBpsjjW-.js} +1 -1
- package/dist/client/assets/{mock-board-BZAoQJtk.js → mock-board-BMnnvW9l.js} +1 -1
- package/dist/client/assets/{monaco-editor-DGXE9Zzq.js → monaco-editor-D7Wz-MKW.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B43DV0_4.js → monitoring-stats-row-DsjQfEly.js} +1 -1
- package/dist/client/assets/{multi-select-CxesYEMo.js → multi-select-VdJ2yUcb.js} +1 -1
- package/dist/client/assets/{mustache-DrDpouee.js → mustache-BzIipqEK.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DSNw0Myy.js → new-project-dialog-4pgTOLZa.js} +1 -1
- package/dist/client/assets/{oauth-callback-BTWmNREt.js → oauth-callback-Cgt1SkEU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CiVltBb1.js → oauth-callback-ai-provider-CJw6k__Q.js} +1 -1
- package/dist/client/assets/{onboarding-bZ8kU41t.js → onboarding-HsEzs1cx.js} +1 -1
- package/dist/client/assets/{openai-conversation-CuaaGonx.js → openai-conversation-C9xs6L0k.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B1zKAGen.js → optimistic-project-sidebar-views-Dp6MX9Wo.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DezLRXC3.js → order-monitor-day-kvoSv5Oy.js} +1 -1
- package/dist/client/assets/{organization-choice-Db-HDg5l.js → organization-choice-Dx3Q-TEp.js} +1 -1
- package/dist/client/assets/{orgs-B-W3rGw3.js → orgs-BvIpo_CC.js} +1 -1
- package/dist/client/assets/{page-seo-form-6DuLnecK.js → page-seo-form-BRGFtgzV.js} +1 -1
- package/dist/client/assets/{pair-BLRClNAO.js → pair-DTCbqEJJ.js} +1 -1
- package/dist/client/assets/{plan-ladder-YN2QGUeX.js → plan-ladder-BosseGj-.js} +1 -1
- package/dist/client/assets/{popover-BRP0dGOy.js → popover-2LCOzLqM.js} +1 -1
- package/dist/client/assets/{post-calendar-DOJqkrJo.js → post-calendar-B-KeJmLM.js} +1 -1
- package/dist/client/assets/{post-editor-Bh9kQF0s.js → post-editor-BBwuotw_.js} +1 -1
- package/dist/client/assets/{preview-content-Ca7hetMx.js → preview-content-BrSgIQdx.js} +1 -1
- package/dist/client/assets/{preview-dialog-DAkeNZ-D.js → preview-dialog-DxCc_83x.js} +1 -1
- package/dist/client/assets/{preview-panel-CH-U1JQP.js → preview-panel-CEvLrF57.js} +1 -1
- package/dist/client/assets/{preview-tab-wUz9gFMu.js → preview-tab-EDXeaUjq.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BnlEUa12.js → product-picker-dialog-CJY03R9-.js} +1 -1
- package/dist/client/assets/{profile--86fFY_-.js → profile-ocYhDdf-.js} +1 -1
- package/dist/client/assets/{project-app-view-C4BR6Mmp.js → project-app-view-BIPtsxJX.js} +1 -1
- package/dist/client/assets/{project-feed-UeMqowpl.js → project-feed-2x8KDo1u.js} +1 -1
- package/dist/client/assets/{project-icon-CoMTGFyt.js → project-icon-BVi6jykh.js} +1 -1
- package/dist/client/assets/project-reports-CCEjXGH-.js +1 -0
- package/dist/client/assets/project-tasks-B_cB8jUa.js +1 -0
- package/dist/client/assets/{projects-DVDcAAbz.js → projects-B1gqzvaP.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BPJ64wXe.js → projects-empty-state-msmXPtF9.js} +1 -1
- package/dist/client/assets/{prompts-vZQv-E0a.js → prompts-DPI0Lbhi.js} +1 -1
- package/dist/client/assets/record-editor-C0cJzt3s.js +1 -0
- package/dist/client/assets/{redirect-editor-CWOGGd9X.js → redirect-editor-ClyrjULu.js} +1 -1
- package/dist/client/assets/reports-7MVtogQn.js +1 -0
- package/dist/client/assets/{reports-Ber8U8S_.js → reports-D0-3BDN9.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DWd9qnNo.js → reports-onboarding-D5Ohh65U.js} +1 -1
- package/dist/client/assets/{reports-tab-BjvOLVL2.js → reports-tab-CGM4OgZ-.js} +2 -2
- package/dist/client/assets/{repositories-Cdtpc8vK.js → repositories-BX0zzV9H.js} +1 -1
- package/dist/client/assets/{repository-binding-EXwhhepG.js → repository-binding-C4OsSA6m.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BJHLuYxy.js → repository-import-picker-B0pfCyxB.js} +1 -1
- package/dist/client/assets/{repository-picker-BVEKwcgd.js → repository-picker-BjLyF0UU.js} +1 -1
- package/dist/client/assets/{require-capability-CxYZgREN.js → require-capability-Sr5QmqkV.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DZ3djgK0.js → required-auth-layout-BcWyX0tN.js} +1 -1
- package/dist/client/assets/{reset-password-7FkpzK0V.js → reset-password-Dv7DePXr.js} +1 -1
- package/dist/client/assets/{resizable-DFRjhuA3.js → resizable-rQgJB4MP.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CIbcu6wD.js → resolve-tab-icon-CcwQIqdW.js} +1 -1
- package/dist/client/assets/{review-settings-DHsLGNnN.js → review-settings-DaCbRDPV.js} +1 -1
- package/dist/client/assets/{roles-Ce-B_VAm.js → roles-CMWEHao_.js} +1 -1
- package/dist/client/assets/{route-BMO8eHq2.js → route-BRpVGRtq.js} +1 -1
- package/dist/client/assets/route-Ch1P1tF0.js +1 -0
- package/dist/client/assets/{route-BSFeNlw2.js → route-CowAxBHf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-IFQ1Yk5o.js → sandbox-lifecycle-context-Cai1YOLP.js} +1 -1
- package/dist/client/assets/{schema-BfUoakNz.js → schema-Ctps-XT5.js} +1 -1
- package/dist/client/assets/{schema-CeF-A6L_.js → schema-DFwdEHXk.js} +1 -1
- package/dist/client/assets/{scroll-area-BuGk0_hc.js → scroll-area-BquREfD9.js} +1 -1
- package/dist/client/assets/{search-input-Cvascs0V.js → search-input-B3OlXYBk.js} +1 -1
- package/dist/client/assets/{search-toggle-8XoSHYon.js → search-toggle-DlbC-qm6.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-CL3ZJB5S.js → secret-ciphertext-DspRdh2f.js} +1 -1
- package/dist/client/assets/{secret-picker-Dytvhmin.js → secret-picker-QpjTt9i4.js} +1 -1
- package/dist/client/assets/{secrets-2XF20fZX.js → secrets-CweZX_-G.js} +1 -1
- package/dist/client/assets/{sections-editor-BGbg0MVG.js → sections-editor-tLPCjatE.js} +1 -1
- package/dist/client/assets/{select-BcxRUsT5.js → select-BZtkY-6Q.js} +1 -1
- package/dist/client/assets/{select-model-Cf5wadBJ.js → select-model-ypXtXaeM.js} +1 -1
- package/dist/client/assets/{seo-editor-BAc3X0rC.js → seo-editor-BThkwHKz.js} +1 -1
- package/dist/client/assets/{separator-CDdukvQ8.js → separator-WCuRepY7.js} +1 -1
- package/dist/client/assets/{settings-tab-CEr__nVA.js → settings-tab-B_OtBvtL.js} +1 -1
- package/dist/client/assets/{sheet-MLYvpvbU.js → sheet-wIGY1BhL.js} +1 -1
- package/dist/client/assets/{shell-layout-724i__Wv.js → shell-layout-C6in_tdZ.js} +1 -1
- package/dist/client/assets/site-editor-DN_jWyDx.js +1 -0
- package/dist/client/assets/{site-editor-toast-D5dcnvPF.js → site-editor-toast-DzpqzRIN.js} +1 -1
- package/dist/client/assets/{skills-DjYBgyTk.js → skills-CfpoVQzd.js} +1 -1
- package/dist/client/assets/{slider-DPrJ3-c2.js → slider-DlGWUSHl.js} +1 -1
- package/dist/client/assets/{sortable.esm-CB3TqmDh.js → sortable.esm-CX1GpTrE.js} +1 -1
- package/dist/client/assets/{sso-CHTZTnHu.js → sso-YsEFJ35H.js} +1 -1
- package/dist/client/assets/{suggestion-wjyEiM3d.js → suggestion-BDDkx8wt.js} +1 -1
- package/dist/client/assets/{switch-Bml_T3Qz.js → switch-ByNrRBdU.js} +1 -1
- package/dist/client/assets/{symbol-BI8lYa6g.js → symbol-BMdRj-zf.js} +1 -1
- package/dist/client/assets/{synced-repos-DPqC2Jws.js → synced-repos-CTcDXXZs.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-0QOKkYa2.js → tab-icon-glyph-DqaNYjGu.js} +1 -1
- package/dist/client/assets/{table-gj14KciX.js → table-BnEG4fsZ.js} +1 -1
- package/dist/client/assets/{tabs-BhOBQud_.js → tabs-CwSp61cB.js} +1 -1
- package/dist/client/assets/{task-board-BVpRfyhG.js → task-board-hdrVwFVS.js} +1 -1
- package/dist/client/assets/{task-route-BG6GqN_V.js → task-route-CxU8BSZk.js} +1 -1
- package/dist/client/assets/{task-status-45w0gLpN.js → task-status-DpKiRcZA.js} +1 -1
- package/dist/client/assets/taskboard-analytics-9U6nRSeM.js +1 -0
- package/dist/client/assets/tasks-9qvqdnze.js +1 -0
- package/dist/client/assets/{tasks-CLwTmsJ6.js → tasks-Ckh-cnxw.js} +1 -1
- package/dist/client/assets/{textarea-0AY2HDgW.js → textarea-CRyjwEqe.js} +1 -1
- package/dist/client/assets/{thread-analytics-DJsGipjG.js → thread-analytics-BFx9-ViN.js} +1 -1
- package/dist/client/assets/{thread-intent-oqwOpeN9.js → thread-intent-DhkLy13k.js} +1 -1
- package/dist/client/assets/{thread-route-l3Qo5S-E.js → thread-route-BzAkvXZO.js} +1 -1
- package/dist/client/assets/{thread-route-DHova7iz.js → thread-route-iBVNlpET.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BevXM8QK.js → thread-sheet-body-CCi8emNA.js} +1 -1
- package/dist/client/assets/{time-range-picker-DGZ1k38N.js → time-range-picker-BrfdBzqI.js} +1 -1
- package/dist/client/assets/{toggle-group-Dq44TMds.js → toggle-group-Cke1wKDH.js} +1 -1
- package/dist/client/assets/{tool-namespace-BrVPsXeX.js → tool-namespace-BXFHxu5_.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DL4Lx8lo.js → toolbar-icon-button-WOmWcuPV.js} +1 -1
- package/dist/client/assets/{tooltip-bUQOQa7V.js → tooltip-Npd1IBFB.js} +1 -1
- package/dist/client/assets/{tooltipContext-qP0WSM-N.js → tooltipContext-C_RxKwqR.js} +1 -1
- package/dist/client/assets/{track-fGt0oqX1.js → track-DWiQitlP.js} +1 -1
- package/dist/client/assets/{types-aDeKLUKc.js → types-JYftUHor.js} +1 -1
- package/dist/client/assets/{url-slug-BxPt7IKX.js → url-slug-psmAhJiF.js} +1 -1
- package/dist/client/assets/{usage-stats-DyepwXzI.js → usage-stats-DeKdK9SW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BWS-kzjG.js → use-ai-providers-CBBzjFhl.js} +1 -1
- package/dist/client/assets/{use-app-takeover-BeifZEUu.js → use-app-takeover-zY0NJ0sD.js} +1 -1
- package/dist/client/assets/{use-automations-CpqZoOF8.js → use-automations-CjaoEOVQ.js} +1 -1
- package/dist/client/assets/{use-autosave-Ch4IhRzV.js → use-autosave-C0hpkW37.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BxUcSwDs.js → use-chat-navigation-Cxan89R8.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DBHdRcgc.js → use-clock-tick-DDv64CjX.js} +1 -1
- package/dist/client/assets/{use-connect-companion-xpkpChp6.js → use-connect-companion-Cq1d8llk.js} +1 -1
- package/dist/client/assets/{use-connection-BThCD02o.js → use-connection-DD-60zit.js} +1 -1
- package/dist/client/assets/{use-content-sync-1a74Mfy8.js → use-content-sync-B6jQ4Cv-.js} +1 -1
- package/dist/client/assets/{use-copy-CIKivmGg.js → use-copy-D8rIRHRy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BSg6bI1H.js → use-create-virtual-mcp-C6rhnZK4.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CpOIvaKP.js → use-date-fns-locale-BHSKPU1I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-iZ-ciKPa.js → use-debounced-autosave-DlgW8h0y.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CBaPWhkT.js → use-debounced-value-DAimUErS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CeMi8OEE.js → use-deco-credits-g8JxcvuQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BRhYtpoz.js → use-decopilot-events-1Ue6t9uD.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cjxx4sX7.js → use-delete-connection-aWCoQCSI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B-HAzjo2.js → use-deployment-admin-C_cAoqcz.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-CaRRA2I7.js → use-ensure-project-folder-COMVsdzC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Dh7O6LMl.js → use-fast-preview-draft-url-CnqLh_PK.js} +1 -1
- package/dist/client/assets/{use-file-configs-BQC6XyYZ.js → use-file-configs-Yj2yOnDl.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BFH6ALbG.js → use-infinite-scroll-Dzt1HFZA.js} +1 -1
- package/dist/client/assets/{use-join-requests-CP2xJ3Ri.js → use-join-requests-Ca0-ZmOx.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CIP4ocar.js → use-main-panel-tabs-Dw0WqVQl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CYey3yvS.js → use-mcp-auth-status-Bkm1SdFb.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BBXqVg_9.js → use-mcp-client-CXzIAVI_.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cj-ktde6.js → use-mcp-prompts-B04lynbc.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-kJXySVJI.js → use-mcp-tools-DOnkoD66.js} +1 -1
- package/dist/client/assets/{use-members-CiZWIC0d.js → use-members-DOrbNcAJ.js} +1 -1
- package/dist/client/assets/{use-mobile-DJpnvK3z.js → use-mobile-DszEwU_T.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bl8cogEE.js → use-navigate-to-agent-BE6ZEPUi.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-XnMbaK0a.js → use-open-billing-url-DUKZxYlJ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CTNehkS3.js → use-org-auth-client-CpM0RfU1.js} +1 -1
- package/dist/client/assets/{use-org-fs-Dq13jVHU.js → use-org-fs-D7bxmks4.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CvLH4wbE.js → use-org-repo-syncs-DYJrqXto.js} +1 -1
- package/dist/client/assets/{use-org-sso-ChQNO61D.js → use-org-sso-Cmy5SNH_.js} +1 -1
- package/dist/client/assets/{use-organization-roles-RGMgKsJZ.js → use-organization-roles-Ch4iCVoq.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BPwGtPPE.js → use-organization-settings-DjWvQexi.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-qwoVIGbd.js → use-panel-navigate-CeDVVCkS.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DjwhxozD.js → use-project-native-view-presence-YWMyr72T.js} +1 -1
- package/dist/client/assets/{use-project-scope-BJnBJfVB.js → use-project-scope-5YpNgUL6.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B9OM3iYn.js → use-recent-apps-BY5qGNsG.js} +1 -1
- package/dist/client/assets/{use-releases-DLIUGm3k.js → use-releases-DNcZGEW5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CYeJxpI-.js → use-reports-diagnostic-CkT6fJ7D.js} +1 -1
- package/dist/client/assets/{use-secrets-9ixMQP9c.js → use-secrets-uk71zh7-.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Cmtd6ng9.js → use-section-preview-base-BYZiHlaA.js} +1 -1
- package/dist/client/assets/{use-tags-B0ggclX3.js → use-tags-CKSnijO-.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-B6E6Fkfq.js → use-task-board-analytics-q-mfDhSM.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CiIHX-ua.js → use-task-board-events-D29THDyx.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cb0mLe68.js → use-task-board-item-prs-C32PmmQm.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Ic-4hEeS.js → use-task-board-items-Cj9ZgoVC.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BjhVnC7Q.js → use-task-metadata-DnDtZNKw.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CHKh8wgx.js → use-thread-analytics-DqFvOcsE.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-V5U3Y6kh.js → use-thread-outputs-C6dqZco1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DRIZEKZQ.js +1 -0
- package/dist/client/assets/{useQueries-Cfhj2y2h.js → useQueries-Ds44Skcl.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DLwZomQy.js +1 -0
- package/dist/client/assets/{users-DSABHHiq.js → users-CuQ1a_93.js} +1 -1
- package/dist/client/assets/{utils-DX56o_OV.js → utils-B4VCCAxN.js} +1 -1
- package/dist/client/assets/{variant-calendar-CYqJUjai.js → variant-calendar-i6jj6ehs.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-lxnOTSSh.js → variant-draft-pointer-DOXokiAV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DgWgfxpg.js → view-mode-toggle-7-N5f6LY.js} +1 -1
- package/dist/client/assets/{virtual-mcp-QJZm8dxv.js → virtual-mcp-BT4ljKsC.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CYJqfo52.js → watch-sse-pool-CBn5OZ_Z.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +588 -588
- package/package.json +1 -1
- package/dist/client/assets/agent-app-D9eg50A5.js +0 -1
- package/dist/client/assets/agent-deck-1gupRcJZ.js +0 -1
- package/dist/client/assets/agent-library-CZsORtzd.js +0 -1
- package/dist/client/assets/agent-library-file-CqqayOGV.js +0 -1
- package/dist/client/assets/agent-settings-XcvMA_9D.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bh5sCFsy.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BtuYGgjS.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Cdx_zMGc.js +0 -1
- package/dist/client/assets/agent-view-UKvSEWLk.js +0 -1
- package/dist/client/assets/api-keys-eHR4JGKj.js +0 -1
- package/dist/client/assets/cms-settings-editor-CXWd5Zp3.js +0 -1
- package/dist/client/assets/flat-project-COP0FJZl.js +0 -1
- package/dist/client/assets/library-Dbl7_fbA.js +0 -1
- package/dist/client/assets/project-reports-Bqaec69c.js +0 -1
- package/dist/client/assets/project-tasks-89FCuOFj.js +0 -1
- package/dist/client/assets/record-editor-BO4FTIEZ.js +0 -1
- package/dist/client/assets/reports-CZIAXvrm.js +0 -1
- package/dist/client/assets/route-CFEus4jk.js +0 -1
- package/dist/client/assets/site-editor-E4EuEJwx.js +0 -1
- package/dist/client/assets/taskboard-analytics-DjdlsG9e.js +0 -1
- package/dist/client/assets/tasks-5Sm7zKel.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BzJxgycA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-dyLsyxo4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-D05mvej1.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DyepwXzI.js";import{T as _,n as Wt,i as Ut,E as Zt}from"./editor-classes-DzSdR8sO.js";import{a as Gt,e as nt,s as Vt,S as Kt}from"./suggestion-wjyEiM3d.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-BstXDWDk.js";import{ag as un,ah as hn,aj as dn,Z as pn,bd as fn,aV as gn}from"./agent-icon-RCyVT7wo.js";import{i as mn}from"./SwitchHorizontal01-BxVAqSEt.js";import{i as kn}from"./Link01-ByHkgEJr.js";import{s as bn}from"./Trash01-CWyW8AJH.js";import{i as xn,b as wn}from"./use-org-fs-Dq13jVHU.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-CzotQpcK.js";import{A as Rn}from"./avatar-Vuppyn0R.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-DtJnVLn9.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-CTNehkS3.js";import{I as Hn}from"./icon-button-CFK3NQ6z.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 h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{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]=d):d=e[4];const f=d;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=Wt(a);if(M===""){g();return}if(!Ut(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]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||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(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,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=Ct(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 h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{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(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{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(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[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(mn,{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(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,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=st(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 Ye("uploadSlots"),Zn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({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 he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Vn(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,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);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=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(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=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Gn(h.state,p)??h.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)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,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|$)|$)/,K=/^ {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",K).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:K,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",K).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",K).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",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-BUcAISa8.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DeKdK9SW.js";import{T as _,n as Wt,i as Ut,E as Zt}from"./editor-classes-Bf1cMZ5c.js";import{a as Gt,e as nt,s as Vt,S as Kt}from"./suggestion-BDDkx8wt.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-_4HSlqk7.js";import{ag as un,ah as hn,aj as dn,Z as pn,bd as fn,aV as gn}from"./agent-icon-u2ivNkJK.js";import{i as mn}from"./SwitchHorizontal01-BMvJE9CE.js";import{i as kn}from"./Link01-COgU4X0d.js";import{s as bn}from"./Trash01-DtrweZMg.js";import{i as xn,b as wn}from"./use-org-fs-D7bxmks4.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-B_belhjs.js";import{A as Rn}from"./avatar-k7zVZ1nb.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-kL2BpXNu.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-CpM0RfU1.js";import{I as Hn}from"./icon-button-BDgagVz4.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 h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{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]=d):d=e[4];const f=d;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=Wt(a);if(M===""){g();return}if(!Ut(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]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||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(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,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=Ct(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 h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{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(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{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(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[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(mn,{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(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,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=st(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 Ye("uploadSlots"),Zn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({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 he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Vn(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,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);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=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(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=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Gn(h.state,p)??h.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)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,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|$)|$)/,K=/^ {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",K).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:K,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",K).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",K).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",K).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=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ut=/^( {2,}|\\)\n(?!\s*$)/,dr=/^(`+|[^`])(?:(?= {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(),ht=/(?!~)[\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(),dt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=A(dt,"u").replace(/punct/g,W).getRegex(),br=A(dt,"u").replace(/punct/g,ht).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,ht).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:hr,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:dr,url:O},_r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...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={...de,br:A(ut).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:lr,pedantic:cr},U={normal:Se,gfm:de,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 Z(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:Z(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,at as Z,av as ee,b as Y,a2 as te,ab as ne,k as se,j as s,L as ae,n as J,r as M,d as oe,aK as W,H as q,P as _,a_ as ie,B as le}from"./index-D05mvej1.js";import{u as re}from"./use-mobile-DJpnvK3z.js";import{g as ce,u as ue,h as de,v as he}from"./use-app-takeover-BeifZEUu.js";import{a as Q,R as fe,b as me}from"./resizable-DFRjhuA3.js";import{g as pe,h as ge,m as xe}from"./use-project-native-view-presence-DjwhxozD.js";import{L as be,k as ye}from"./agent-icon-RCyVT7wo.js";import{s as je}from"./XClose-Qxrq0G_x.js";import{I as ve}from"./icon-button-CFK3NQ6z.js";import{c as Se,T as Ce,a as Te}from"./tooltip-bUQOQa7V.js";import{T as G}from"./toolbar-icon-button-DL4Lx8lo.js";import{a as Le}from"./use-project-scope-BJnBJfVB.js";import{c as Ne}from"./repository-binding-EXwhhepG.js";function U(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=P.c(8);let i;a[0]!==e?(i=r=>U(r,e),a[0]=e,a[1]=i):i=a[1];const[t,o]=Z(l,i);let n;a[2]!==e||a[3]!==t?(n=U(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==o||a[6]!==n?(d=[n,o],a[5]=o,a[6]=n,a[7]=d):d=a[7],d}const ze=33;function _e(){const l=P.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=P.c(60),{actions:a,navigation:i}=l,t=Y(),{org:o}=te(),n=Le(),d=Ne(n),r=ce(),{toggleSidebar:c}=ue(),u=de(),h=X(),m=ne();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:Oe},e[0]=x):x=e[0];const y=se(x),b=y?.mainView==="overview";let T;e[1]!==d?.title||e[2]!==t?(T=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=T):T=e[3];const g=T;let v;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==g||e[7]!==n||e[8]!==t?(v=b?n?g:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=g,e[7]=n,e[8]=t,e[9]=v):v=e[9];const j=v;let L;e[10]!==o.slug||e[11]!==m||e[12]!==n?(L=m?{to:"/$org/projects",params:{org:o.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:n??""}},e[10]=o.slug,e[11]=m,e[12]=n,e[13]=L):L=e[13];const f=L;let p;if(e[14]!==r||e[15]!==b||e[16]!==o.slug||e[17]!==f||e[18]!==g||e[19]!==n||e[20]!==t||e[21]!==j){if(p=[],r){let C;e[23]!==t?(C=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=C):C=e[24];let E;e[25]!==o.slug?(E={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=E):E=e[26];let A;e[27]!==C||e[28]!==E?(A={key:"settings",label:C,link:E},e[27]=C,e[28]=E,e[29]=A):A=e[29],p.push(A)}else if(n&&!b){let C;e[30]!==f||e[31]!==g?(C={key:"project",label:g,link:f},e[30]=f,e[31]=g,e[32]=C):C=e[32],p.push(C)}let $;e[33]!==j?($={key:"page",label:j},e[33]=j,e[34]=$):$=e[34],p.push($),e[14]=r,e[15]=b,e[16]=o.slug,e[17]=f,e[18]=g,e[19]=n,e[20]=t,e[21]=j,e[22]=p}else p=e[22];let N;e[35]!==f||e[36]!==n||e[37]!==t||e[38]!==u?(N=u&&n&&s.jsx(ve,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...f,children:s.jsx(je,{size:16})})}),e[35]=f,e[36]=n,e[37]=t,e[38]=u,e[39]=N):N=e[39];const S=N;let z;e[40]!==h||e[41]!==t||e[42]!==u?(z=u&&h&&!h.threadless&&s.jsxs(Se,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(G,{"aria-label":t(h.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":h.threadOpen,active:h.threadOpen,onClick:h.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(h.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=h,e[41]=t,e[42]=u,e[43]=z):z=e[43];const K=z;let w;e[44]!==t?(w=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=w):w=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]!==w||e[48]!==c?(O=s.jsx(G,{className:"md:hidden",onClick:c,"aria-label":w,children:R}),e[47]=w,e[48]=c,e[49]=O):O=e[49];let k;e[50]!==K||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,K]}),e[50]=K,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==p||e[55]!==S||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:p,scope:o.name,actions:a,trailingActions:S,navigation:i}),e[53]=a,e[54]=p,e[55]=S,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Oe(l){return l.matches.findLast(ke)?.staticData}function ke(l){return l.staticData.pageTitle}const I="chat-layout-thread",D="chat-layout-content",F=M.createContext(null);function Ee(){return H()}function X(){return M.use(F)}function H(){const l=M.use(F);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=P.c(23),{children:a,...i}=l,t=re(),o=oe(),n=M.useRef(null),[d,r]=_e(),{threadOpen:c,contentOpen:u}=i,h=pe(i),m=c&&u?d:h.side,x=100-m,y=f=>{const p=f.getLayout(),N=p[I],S=p[D];typeof N!="number"||typeof S!="number"||Math.abs(N-m)<.001&&Math.abs(S-x)<.001||f.setLayout({[I]:m,[D]:x})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let T;e[0]!==t||e[1]!==i||e[2]!==b?(T={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=T):T=e[3];const g=T;let v;e[4]!==t||e[5]!==i||e[6]!==o||e[7]!==c||e[8]!==g?(v=!i.threadless&&s.jsx(he,{open:t?g.mobileSurface==="chat":c,onToggle:()=>{t?o({to:".",search:f=>({...f,...xe(g.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()}}),e[4]=t,e[5]=i,e[6]=o,e[7]=c,e[8]=g,e[9]=v):v=e[9];let j;e[10]!==a||e[11]!==u||e[12]!==x||e[13]!==t||e[14]!==r||e[15]!==y||e[16]!==c||e[17]!==m?(j=t?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(fe,{ref:f=>{if(n.current=f,!f)return;let p=!0;return queueMicrotask(()=>{p&&y(f)}),()=>{p=!1,n.current===f&&(n.current=null)}},defaultLayout:{[I]:m,[D]:x},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:(f,p)=>{const{isUserInteraction:N}=p;if(!N){const z=n.current;z&&y(z);return}const S=f[I];c&&u&&typeof S=="number"&&S>0&&S<100&&r(S)},children:a}),e[10]=a,e[11]=u,e[12]=x,e[13]=t,e[14]=r,e[15]=y,e[16]=c,e[17]=m,e[18]=j):j=e[18];let L;return e[19]!==v||e[20]!==j||e[21]!==g?(L=s.jsxs(F,{value:g,children:[v,j]}),e[19]=v,e[20]=j,e[21]=g,e[22]=L):L=e[22],L}function Me(l){const e=P.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let h;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(h=t.mobileSurface==="chat"?s.jsxs(_,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=h):h=e[3],h}const o=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(_,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let r;e[10]!==o||e[11]!==d?(r=s.jsx(Q,{id:I,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=o,e[11]=d,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{className:"bg-sidebar"}),e[13]=c):c=e[13];let u;return e[14]!==r?(u=s.jsxs(s.Fragment,{children:[r,c]}),e[14]=r,e[15]=u):u=e[15],u}function Re({children:l,routeId:e}){return l}function V(l){const e=P.c(23),{children:a,actions:i,drawer:t,aside:o}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentNavigation?(r=s.jsx(we,{navigation:n.contentNavigation,actions:i}),e[0]=i,e[1]=n.contentNavigation,e[2]=r):r=e[2];let c;e[3]!==a||e[4]!==n.contentKey?(c=s.jsx(W,{children:s.jsx(Re,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=c):c=e[5];let u;e[6]!==n.contentKey||e[7]!==c?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(q,{children:c},n.contentKey)}),e[6]=n.contentKey,e[7]=c,e[8]=u):u=e[8];let h;e[9]!==t||e[10]!==u?(h=s.jsxs(_.Content,{children:[u,t]}),e[9]=t,e[10]=u,e[11]=h):h=e[11];let m;e[12]!==r||e[13]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[r,h]}),e[12]=r,e[13]=h,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(_,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const y=x;let b;return e[18]!==o||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==y?(b=n.isMobile?y:s.jsx(Q,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.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:y}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(_,{"data-testid":"aside-panel",children:s.jsx(q,{children:s.jsx(W,{children:o})},M.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[18]=o,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=y,e[22]=b):b=e[22],b}function Be(){const l=P.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 $e(l){const e=P.c(18),{error:a,reset:i}=l,t=Y();let o;e[0]!==t?(o=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let r;e[7]!==d?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=r):r=e[8];let c;e[9]!==t?(c=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=c):c=e[10];let u;e[11]!==i||e[12]!==c?(u=s.jsx(le,{variant:"outline",onClick:i,children:c}),e[11]=i,e[12]=c,e[13]=u):u=e[13];let h;return e[14]!==n||e[15]!==r||e[16]!==u?(h=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:[n,r,u]})}),e[14]=n,e[15]=r,e[16]=u,e[17]=h):h=e[17],h}const Ae=Object.assign(Ie,{Thread:Me,Content:V}),Xe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ae,ChatLayoutError:$e,ChatLayoutPending:Be,useChatLayout:Ee,useOptionalChatLayout:X},Symbol.toStringTag,{value:"Module"}));export{Ae as C,we as R,Xe as i,Ee as u};
|
|
1
|
+
import{c as P,at as Z,av as ee,b as Y,a2 as te,ab as ne,k as se,j as s,L as ae,n as J,r as M,d as oe,aK as W,H as q,P as _,a_ as ie,B as le}from"./index-BUcAISa8.js";import{u as re}from"./use-mobile-DszEwU_T.js";import{g as ce,u as ue,h as de,v as he}from"./use-app-takeover-zY0NJ0sD.js";import{a as Q,R as fe,b as me}from"./resizable-rQgJB4MP.js";import{g as pe,h as ge,m as xe}from"./use-project-native-view-presence-YWMyr72T.js";import{L as be,k as ye}from"./agent-icon-u2ivNkJK.js";import{s as je}from"./XClose-DBK6xbU_.js";import{I as ve}from"./icon-button-BDgagVz4.js";import{c as Se,T as Ce,a as Te}from"./tooltip-Npd1IBFB.js";import{T as G}from"./toolbar-icon-button-WOmWcuPV.js";import{a as Le}from"./use-project-scope-5YpNgUL6.js";import{c as Ne}from"./repository-binding-C4OsSA6m.js";function U(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=P.c(8);let i;a[0]!==e?(i=r=>U(r,e),a[0]=e,a[1]=i):i=a[1];const[t,o]=Z(l,i);let n;a[2]!==e||a[3]!==t?(n=U(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==o||a[6]!==n?(d=[n,o],a[5]=o,a[6]=n,a[7]=d):d=a[7],d}const ze=33;function _e(){const l=P.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=P.c(60),{actions:a,navigation:i}=l,t=Y(),{org:o}=te(),n=Le(),d=Ne(n),r=ce(),{toggleSidebar:c}=ue(),u=de(),h=X(),m=ne();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:Oe},e[0]=x):x=e[0];const y=se(x),b=y?.mainView==="overview";let T;e[1]!==d?.title||e[2]!==t?(T=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=T):T=e[3];const g=T;let v;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==g||e[7]!==n||e[8]!==t?(v=b?n?g:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=g,e[7]=n,e[8]=t,e[9]=v):v=e[9];const j=v;let L;e[10]!==o.slug||e[11]!==m||e[12]!==n?(L=m?{to:"/$org/projects",params:{org:o.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:n??""}},e[10]=o.slug,e[11]=m,e[12]=n,e[13]=L):L=e[13];const f=L;let p;if(e[14]!==r||e[15]!==b||e[16]!==o.slug||e[17]!==f||e[18]!==g||e[19]!==n||e[20]!==t||e[21]!==j){if(p=[],r){let C;e[23]!==t?(C=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=C):C=e[24];let E;e[25]!==o.slug?(E={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=E):E=e[26];let A;e[27]!==C||e[28]!==E?(A={key:"settings",label:C,link:E},e[27]=C,e[28]=E,e[29]=A):A=e[29],p.push(A)}else if(n&&!b){let C;e[30]!==f||e[31]!==g?(C={key:"project",label:g,link:f},e[30]=f,e[31]=g,e[32]=C):C=e[32],p.push(C)}let $;e[33]!==j?($={key:"page",label:j},e[33]=j,e[34]=$):$=e[34],p.push($),e[14]=r,e[15]=b,e[16]=o.slug,e[17]=f,e[18]=g,e[19]=n,e[20]=t,e[21]=j,e[22]=p}else p=e[22];let N;e[35]!==f||e[36]!==n||e[37]!==t||e[38]!==u?(N=u&&n&&s.jsx(ve,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...f,children:s.jsx(je,{size:16})})}),e[35]=f,e[36]=n,e[37]=t,e[38]=u,e[39]=N):N=e[39];const S=N;let z;e[40]!==h||e[41]!==t||e[42]!==u?(z=u&&h&&!h.threadless&&s.jsxs(Se,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(G,{"aria-label":t(h.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":h.threadOpen,active:h.threadOpen,onClick:h.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(h.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=h,e[41]=t,e[42]=u,e[43]=z):z=e[43];const K=z;let w;e[44]!==t?(w=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=w):w=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]!==w||e[48]!==c?(O=s.jsx(G,{className:"md:hidden",onClick:c,"aria-label":w,children:R}),e[47]=w,e[48]=c,e[49]=O):O=e[49];let k;e[50]!==K||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,K]}),e[50]=K,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==p||e[55]!==S||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:p,scope:o.name,actions:a,trailingActions:S,navigation:i}),e[53]=a,e[54]=p,e[55]=S,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Oe(l){return l.matches.findLast(ke)?.staticData}function ke(l){return l.staticData.pageTitle}const I="chat-layout-thread",D="chat-layout-content",F=M.createContext(null);function Ee(){return H()}function X(){return M.use(F)}function H(){const l=M.use(F);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=P.c(23),{children:a,...i}=l,t=re(),o=oe(),n=M.useRef(null),[d,r]=_e(),{threadOpen:c,contentOpen:u}=i,h=pe(i),m=c&&u?d:h.side,x=100-m,y=f=>{const p=f.getLayout(),N=p[I],S=p[D];typeof N!="number"||typeof S!="number"||Math.abs(N-m)<.001&&Math.abs(S-x)<.001||f.setLayout({[I]:m,[D]:x})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let T;e[0]!==t||e[1]!==i||e[2]!==b?(T={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=T):T=e[3];const g=T;let v;e[4]!==t||e[5]!==i||e[6]!==o||e[7]!==c||e[8]!==g?(v=!i.threadless&&s.jsx(he,{open:t?g.mobileSurface==="chat":c,onToggle:()=>{t?o({to:".",search:f=>({...f,...xe(g.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()}}),e[4]=t,e[5]=i,e[6]=o,e[7]=c,e[8]=g,e[9]=v):v=e[9];let j;e[10]!==a||e[11]!==u||e[12]!==x||e[13]!==t||e[14]!==r||e[15]!==y||e[16]!==c||e[17]!==m?(j=t?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(fe,{ref:f=>{if(n.current=f,!f)return;let p=!0;return queueMicrotask(()=>{p&&y(f)}),()=>{p=!1,n.current===f&&(n.current=null)}},defaultLayout:{[I]:m,[D]:x},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:(f,p)=>{const{isUserInteraction:N}=p;if(!N){const z=n.current;z&&y(z);return}const S=f[I];c&&u&&typeof S=="number"&&S>0&&S<100&&r(S)},children:a}),e[10]=a,e[11]=u,e[12]=x,e[13]=t,e[14]=r,e[15]=y,e[16]=c,e[17]=m,e[18]=j):j=e[18];let L;return e[19]!==v||e[20]!==j||e[21]!==g?(L=s.jsxs(F,{value:g,children:[v,j]}),e[19]=v,e[20]=j,e[21]=g,e[22]=L):L=e[22],L}function Me(l){const e=P.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let h;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(h=t.mobileSurface==="chat"?s.jsxs(_,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=h):h=e[3],h}const o=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(_,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let r;e[10]!==o||e[11]!==d?(r=s.jsx(Q,{id:I,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=o,e[11]=d,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{className:"bg-sidebar"}),e[13]=c):c=e[13];let u;return e[14]!==r?(u=s.jsxs(s.Fragment,{children:[r,c]}),e[14]=r,e[15]=u):u=e[15],u}function Re({children:l,routeId:e}){return l}function V(l){const e=P.c(23),{children:a,actions:i,drawer:t,aside:o}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentNavigation?(r=s.jsx(we,{navigation:n.contentNavigation,actions:i}),e[0]=i,e[1]=n.contentNavigation,e[2]=r):r=e[2];let c;e[3]!==a||e[4]!==n.contentKey?(c=s.jsx(W,{children:s.jsx(Re,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=c):c=e[5];let u;e[6]!==n.contentKey||e[7]!==c?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(q,{children:c},n.contentKey)}),e[6]=n.contentKey,e[7]=c,e[8]=u):u=e[8];let h;e[9]!==t||e[10]!==u?(h=s.jsxs(_.Content,{children:[u,t]}),e[9]=t,e[10]=u,e[11]=h):h=e[11];let m;e[12]!==r||e[13]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[r,h]}),e[12]=r,e[13]=h,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(_,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const y=x;let b;return e[18]!==o||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==y?(b=n.isMobile?y:s.jsx(Q,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.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:y}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(_,{"data-testid":"aside-panel",children:s.jsx(q,{children:s.jsx(W,{children:o})},M.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[18]=o,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=y,e[22]=b):b=e[22],b}function Be(){const l=P.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 $e(l){const e=P.c(18),{error:a,reset:i}=l,t=Y();let o;e[0]!==t?(o=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let r;e[7]!==d?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=r):r=e[8];let c;e[9]!==t?(c=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=c):c=e[10];let u;e[11]!==i||e[12]!==c?(u=s.jsx(le,{variant:"outline",onClick:i,children:c}),e[11]=i,e[12]=c,e[13]=u):u=e[13];let h;return e[14]!==n||e[15]!==r||e[16]!==u?(h=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:[n,r,u]})}),e[14]=n,e[15]=r,e[16]=u,e[17]=h):h=e[17],h}const Ae=Object.assign(Ie,{Thread:Me,Content:V}),Xe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ae,ChatLayoutError:$e,ChatLayoutPending:Be,useChatLayout:Ee,useOptionalChatLayout:X},Symbol.toStringTag,{value:"Module"}));export{Ae as C,we as R,Xe as i,Ee as u};
|