decocms 4.520.0 → 4.521.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-a2DoNLsg.js → ActiveShapeUtils-NiXAWNnI.js} +1 -1
- package/dist/client/assets/{AlertCircle-CePpxiVL.js → AlertCircle-DGVmeswV.js} +1 -1
- package/dist/client/assets/{AreaChart-futTS77r.js → AreaChart-DL7RX4W6.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DPa6sZRI.js → ArrowLeft-DDWHto_R.js} +1 -1
- package/dist/client/assets/{ArrowUp-Bc6Es12Z.js → ArrowUp-bm_9Fp5i.js} +1 -1
- package/dist/client/assets/{BarChart-CJBobvga.js → BarChart-DmTON82J.js} +1 -1
- package/dist/client/assets/{Building02-BbEppJaI.js → Building02-p3_mZ-E2.js} +1 -1
- package/dist/client/assets/{CartesianChart-D2mofn_H.js → CartesianChart-oH_IqMjj.js} +1 -1
- package/dist/client/assets/{CategoricalChart-1f5JjzPP.js → CategoricalChart-Dy74bBD9.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dlz5XR1a.js → CheckCircle-Bx5iI6Lz.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BjvpkKQW.js → ChevronSelectorVertical-CtVpNCaH.js} +1 -1
- package/dist/client/assets/{ChevronUp-CHckv_8T.js → ChevronUp-ojSOtVX2.js} +1 -1
- package/dist/client/assets/{Copy01-ynYolVGY.js → Copy01-CixCoZek.js} +1 -1
- package/dist/client/assets/{CreditCard01-CJRwgkVP.js → CreditCard01-D0K-VlXU.js} +1 -1
- package/dist/client/assets/{DotsVertical-xGYJd_oZ.js → DotsVertical-DzE0Ijkk.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Bu4h-9ud.js → ErrorBarContext-DRS3e7xk.js} +1 -1
- package/dist/client/assets/{Globe04-rKrlqbJ3.js → Globe04-CE15ScrO.js} +1 -1
- package/dist/client/assets/{Image01-J72Rm0Yr.js → Image01-Bks737AT.js} +1 -1
- package/dist/client/assets/{Key01-GACmaKDe.js → Key01-CxbATohw.js} +1 -1
- package/dist/client/assets/{Link01-Dy_bSHLe.js → Link01-DCdDhO7H.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Dbb_PbFz.js → LinkBroken01-ZF7OlrXq.js} +1 -1
- package/dist/client/assets/{Minus-cuNEQYA9.js → Minus-DqMKpYLh.js} +1 -1
- package/dist/client/assets/{Monitor01-CW3G0lSo.js → Monitor01-B-_Pl3qs.js} +1 -1
- package/dist/client/assets/{Play-RPF1C2F0.js → Play-B6eaz3Uv.js} +1 -1
- package/dist/client/assets/{Plus-DXIMcQkQ.js → Plus-B28tKNm1.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CYgqeMqY.js → ReferenceLine-C5aqWs1r.js} +1 -1
- package/dist/client/assets/{SearchMd-DQ6xirDN.js → SearchMd-OCyidoZI.js} +1 -1
- package/dist/client/assets/{Sector-fbb2Py22.js → Sector-CtNXSnWN.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-B81IcYcu.js → ShoppingBag01-DHyiQNjO.js} +1 -1
- package/dist/client/assets/{Sun-Bd7hlMAK.js → Sun-BUl5hUgs.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-QjLd4gai.js → SwitchHorizontal01-BKu4aB4V.js} +1 -1
- package/dist/client/assets/{Tool01-D7eccoeh.js → Tool01-CnZckhqi.js} +1 -1
- package/dist/client/assets/{Trash01-CTrNlbT8.js → Trash01-C34kFeWG.js} +1 -1
- package/dist/client/assets/{Upload01-B9oMCz-6.js → Upload01-sDXthFWJ.js} +1 -1
- package/dist/client/assets/{User01-BgWUolo8.js → User01-2Hx1yZRb.js} +1 -1
- package/dist/client/assets/UserSquare-UeuSXkL4.js +1 -0
- package/dist/client/assets/{Users01-B7zAiC4m.js → Users01-D78JG135.js} +1 -1
- package/dist/client/assets/{XClose-C9XzQkao.js → XClose-BbuvN9Qp.js} +1 -1
- package/dist/client/assets/{ZoomOut-DKNOmfuK.js → ZoomOut-DnRMz8gp.js} +1 -1
- package/dist/client/assets/{access-gate-BBEga0hz.js → access-gate-B-XccyUi.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-ldH4ynvN.js → add-connection-dialog-3BCYyOlq.js} +1 -1
- package/dist/client/assets/agent-analytics-CwuUduKr.js +1 -0
- package/dist/client/assets/agent-app-Dd83t7Jr.js +1 -0
- package/dist/client/assets/{agent-assets-BTuYhb0x.js → agent-assets-BX70IHOT.js} +1 -1
- package/dist/client/assets/{agent-automation-CPVX6Ssc.js → agent-automation-DSOT91yw.js} +1 -1
- package/dist/client/assets/{agent-automations-Depk4_IZ.js → agent-automations-DELrtNmQ.js} +1 -1
- package/dist/client/assets/agent-calendar-DAFHiZ7t.js +1 -0
- package/dist/client/assets/{agent-connect-sources-B_w_bZyW.js → agent-connect-sources-EYRSBit6.js} +1 -1
- package/dist/client/assets/agent-deck-19EIpeOv.js +1 -0
- package/dist/client/assets/agent-e2e-DgDrdrOU.js +1 -0
- package/dist/client/assets/agent-experiments-CDIR-vBl.js +1 -0
- package/dist/client/assets/agent-file-Crkwe1n0.js +1 -0
- package/dist/client/assets/agent-hosting-COv9KqxJ.js +1 -0
- package/dist/client/assets/agent-icon-2Sd6TPJR.js +1 -0
- package/dist/client/assets/agent-library-6vXi0pmB.js +1 -0
- package/dist/client/assets/agent-library-file-D_31XTpy.js +1 -0
- package/dist/client/assets/agent-monitor-DZGhzZ5b.js +1 -0
- package/dist/client/assets/{agent-overview-D3DqJ6Lq.js → agent-overview-jQR56ImR.js} +1 -1
- package/dist/client/assets/{agent-releases-JCAWDH6g.js → agent-releases-1LcFLBWb.js} +1 -1
- package/dist/client/assets/agent-settings-BJW57Xya.js +1 -0
- package/dist/client/assets/{agent-site-editor-DmMopyU6.js → agent-site-editor-FH5rkph4.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Dp5l17ta.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BIwmC0as.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DJt8FppE.js +1 -0
- package/dist/client/assets/agent-view-DuXo8UyN.js +1 -0
- package/dist/client/assets/{agent-view-guard-MrJ6Jxxx.js → agent-view-guard-BtSTYr3f.js} +1 -1
- package/dist/client/assets/{agents-list-6A96PYcg.js → agents-list-BciltAjT.js} +1 -1
- package/dist/client/assets/{ai-providers-DLOQtpHm.js → ai-providers-1_g2-YFO.js} +1 -1
- package/dist/client/assets/{alert-BEazQOeN.js → alert-B6jt7ehz.js} +1 -1
- package/dist/client/assets/{alert-dialog-DdGCb0IF.js → alert-dialog-C6IuYhIc.js} +1 -1
- package/dist/client/assets/{analytics-sections-BO4YnAjA.js → analytics-sections-CMbHJdjJ.js} +1 -1
- package/dist/client/assets/{analytics-tab-DaOlRgMk.js → analytics-tab-BptBREH9.js} +1 -1
- package/dist/client/assets/{api-keys-BJgy-lS2.js → api-keys-DNoVGHBL.js} +1 -1
- package/dist/client/assets/api-keys-YdF23sAO.js +1 -0
- package/dist/client/assets/{app-editor-DLE8thcF.js → app-editor-DIGpXnGi.js} +1 -1
- package/dist/client/assets/app-preview-url-DmK5uokM.js +1 -0
- package/dist/client/assets/{asset-utils-BCgXGBCC.js → asset-utils-BaoKrfcS.js} +1 -1
- package/dist/client/assets/{auth-D6exVMlw.js → auth-MbbNpK0f.js} +1 -1
- package/dist/client/assets/{auth-catchall-DvDQWdKb.js → auth-catchall-CQhqMFI7.js} +1 -1
- package/dist/client/assets/{auth-entry-C86oFADV.js → auth-entry-BytQWBJH.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyRJlWjB.js → auth-split-layout-BLy72f6M.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ByNJ3IhY.js → authenticate-and-persist-oauth-ChOS0TQ8.js} +1 -1
- package/dist/client/assets/{automation-list-row-CX5dszCC.js → automation-list-row-CDTQ4wXs.js} +1 -1
- package/dist/client/assets/{automation-runs-CHeG76Ew.js → automation-runs-uGIsi6Hf.js} +1 -1
- package/dist/client/assets/{automations-BpcPPmZL.js → automations-CYPV9xM6.js} +1 -1
- package/dist/client/assets/{autosend-DJIOdR-h.js → autosend-nr-hPbHj.js} +1 -1
- package/dist/client/assets/{avatar-49aPXdv7.js → avatar-DarGMVT9.js} +1 -1
- package/dist/client/assets/{badge-Xi0bu-aJ.js → badge-7nY_ai7T.js} +1 -1
- package/dist/client/assets/{block-document-Cn8tlonv.js → block-document-BFjSBfhL.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-QgOcURJH.js → blocks-preview-workspace-context-CPEN608S.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BG-MFk9Q.js → blocks-tab-states-DEKXC5rW.js} +1 -1
- package/dist/client/assets/{blog-schema-BO9IdDkD.js → blog-schema-DXeDEF-x.js} +1 -1
- package/dist/client/assets/{buckets-xqarwZ-o.js → buckets-Fnw-QnpR.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D7Pi_LQA.js → build-improve-prompt-doc-BNyp6j2d.js} +1 -1
- package/dist/client/assets/{calendar-HcE4WZuE.js → calendar-D8eqk8F_.js} +1 -1
- package/dist/client/assets/{campaigns-view-BLsQazTL.js → campaigns-view-DwenRJ4m.js} +1 -1
- package/dist/client/assets/{capability-load-error-BzCsh693.js → capability-load-error-DK8yJwbi.js} +1 -1
- package/dist/client/assets/{category-editor-Cwe6Gn4P.js → category-editor-CvvoknG-.js} +1 -1
- package/dist/client/assets/{cdn-tab-tnk9RtCD.js → cdn-tab-DGngqFre.js} +1 -1
- package/dist/client/assets/{chart-BKCzQrbM.js → chart-BVOKVwol.js} +1 -1
- package/dist/client/assets/{chat-context-CwxNIspy.js → chat-context-4LDKQ9-8.js} +1 -1
- package/dist/client/assets/{chat-draft-Czzd6Fgc.js → chat-draft-DtnFj70R.js} +1 -1
- package/dist/client/assets/{checkbox-IscGSBh9.js → checkbox--QGg9JL6.js} +1 -1
- package/dist/client/assets/{choose-editor-uAgHg51i.js → choose-editor-Co3gZPYu.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BhFG_H4z.js → cli-auth-success-PhyGH5OW.js} +1 -1
- package/dist/client/assets/{client-icons-CZ-ZSlxS.js → client-icons-C_ct3pd0.js} +1 -1
- package/dist/client/assets/cms-settings-editor-VrhsAjtC.js +1 -0
- package/dist/client/assets/{collapsible-D314pUSB.js → collapsible-DGVOZrNj.js} +1 -1
- package/dist/client/assets/{collection-detail-CuIOpuSM.js → collection-detail-BAmfEJxU.js} +1 -1
- package/dist/client/assets/{collection-display-button-kbHHi0Kq.js → collection-display-button-ClKK9pYP.js} +1 -1
- package/dist/client/assets/{collection-search-DCYm5aP4.js → collection-search-DRo1WmLT.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DDG00R7J.js → collection-table-wrapper-Dgqpnsq8.js} +1 -1
- package/dist/client/assets/{collection-tabs-CpRvK4aY.js → collection-tabs-Dc2dImyc.js} +1 -1
- package/dist/client/assets/{column-rules-yLNPamrN.js → column-rules-DiqfCnEN.js} +1 -1
- package/dist/client/assets/{combobox-uDe7w0z0.js → combobox-DZgmK343.js} +1 -1
- package/dist/client/assets/{command-DcKOVszs.js → command-CPx9UwtG.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DZ2ioXzY.js → companion-mcps-section-CLb76BIo.js} +1 -1
- package/dist/client/assets/{config-DlkgY7Jy.js → config-CxVvKo3A.js} +1 -1
- package/dist/client/assets/{connect-wFJx1iR7.js → connect-A3Avs8Pl.js} +1 -1
- package/dist/client/assets/{connect-layout-DU417orE.js → connect-layout-BksXTmdN.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-B6k_6_M9.js → connect-source-dialog-DSaPW3-r.js} +1 -1
- package/dist/client/assets/{connection-CLuVf0UF.js → connection-GML1C2tu.js} +1 -1
- package/dist/client/assets/{connection-card-BaWG41H0.js → connection-card-ZvVd_UVc.js} +1 -1
- package/dist/client/assets/{connection-detail-B8vzaLYN.js → connection-detail-DtbzbTIM.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BWk506qj.js → connection-form-helpers-CGyT85pi.js} +1 -1
- package/dist/client/assets/{connections-ajPWQmhT.js → connections-D4x-lAFA.js} +1 -1
- package/dist/client/assets/{content-tab-C9mWHRiZ.js → content-tab-DgdEt3c6.js} +3 -3
- package/dist/client/assets/{context-BZM48LEC.js → context-BcuOiE0n.js} +1 -1
- package/dist/client/assets/{context-menu-DuBXLH-0.js → context-menu-BPat3chT.js} +1 -1
- package/dist/client/assets/{context-shell-DBFau4jR.js → context-shell-BpD_TiZV.js} +3 -3
- package/dist/client/assets/{core.esm-r_1fOlla.js → core.esm-CumN7OYl.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-DinRNNUe.js → create-organization-dialog-C7cTp33N.js} +1 -1
- package/dist/client/assets/{daily-pulse-DIrHsqZA.js → daily-pulse-DIdfLtIG.js} +1 -1
- package/dist/client/assets/{discover-fUj70D62.js → discover-CG4C5Odc.js} +1 -1
- package/dist/client/assets/{domain-settings-CLujyp1m.js → domain-settings-DkAHUlQw.js} +1 -1
- package/dist/client/assets/{drawer-CyiQimHr.js → drawer-Bp7WNOCz.js} +1 -1
- package/dist/client/assets/{editor-BpL3QDOn.js → editor-CmZJbc4Z.js} +1 -1
- package/dist/client/assets/{editor-classes-DA3QHiC-.js → editor-classes-DYddjmhz.js} +1 -1
- package/dist/client/assets/{empty-state-Bw4axBb5.js → empty-state-DBHadTD8.js} +1 -1
- package/dist/client/assets/{empty-state-B0G_CGwR.js → empty-state-vh9cmtA2.js} +1 -1
- package/dist/client/assets/{experiments-tab-BkzMMdcP.js → experiments-tab-BaB_Zi0V.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BYO4Dw1S.js → experiments-tab-choice-p3E1pILX.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CwDf8Ns1.js → extract-connection-data-C2lA8ZOm.js} +1 -1
- package/dist/client/assets/{feature-gate-BxG3yqt8.js → feature-gate-D8HHU_kV.js} +1 -1
- package/dist/client/assets/{feature-paywall-BHK5XVuW.js → feature-paywall-CRRIPYfS.js} +1 -1
- package/dist/client/assets/{file-explorer-CPGV5tot.js → file-explorer-BTIbvupP.js} +1 -1
- package/dist/client/assets/{file-preview-BdEwMhOt.js → file-preview-CsDpTAv6.js} +1 -1
- package/dist/client/assets/{file-share-button-C4MFpt4s.js → file-share-button-BmWv4msr.js} +1 -1
- package/dist/client/assets/{file-type-icon-BnEUVv2h.js → file-type-icon-Ixvc6_bA.js} +1 -1
- package/dist/client/assets/{folder-icon-DOB3P9Vd.js → folder-icon-ByIjnQde.js} +1 -1
- package/dist/client/assets/{form-CpnGThcL.js → form-CIAWZjuP.js} +1 -1
- package/dist/client/assets/{general-7WS5B97k.js → general-DEusZ5JT.js} +1 -1
- package/dist/client/assets/{home-CfcdGSri.js → home-B9bSA6tC.js} +1 -1
- package/dist/client/assets/{icon-button-B1pb2_kW.js → icon-button-7F5Toil2.js} +1 -1
- package/dist/client/assets/{index-Okf21u4l.js → index-4NUDq9UX.js} +1 -1
- package/dist/client/assets/{index-CXV4VJ6T.js → index-B0ZOlWzX.js} +1 -1
- package/dist/client/assets/{index-CMr2QK3C.js → index-B1T14RYF.js} +1 -1
- package/dist/client/assets/{index-P7t2U4iN.js → index-BEqT-aNW.js} +1 -1
- package/dist/client/assets/index-BQfNeaI1.css +1 -0
- package/dist/client/assets/{index-B6fYZNK2.js → index-BZ3kN-UW.js} +1 -1
- package/dist/client/assets/{index-DwGMmQy3.js → index-CRYNJjMc.js} +1 -1
- package/dist/client/assets/{index-BlsmUzy2.js → index-CYGV5ggz.js} +1 -1
- package/dist/client/assets/{index-tbca9DY7.js → index-CblLVDuN.js} +1 -1
- package/dist/client/assets/{index-B-nEUC-m.js → index-CfHLnaAs.js} +1 -1
- package/dist/client/assets/{index-CMKEBGKX.js → index-DJCD1T3p.js} +7 -7
- package/dist/client/assets/{index-CDmfe_Ze.js → index-DiKBQ93t.js} +1 -1
- package/dist/client/assets/index-DrxFcbdt.js +4 -0
- package/dist/client/assets/{index-C_uum72U.js → index-DxIuEmxM.js} +1 -1
- package/dist/client/assets/{index-CZWqOlKo.js → index-MrGr5MGL.js} +1 -1
- package/dist/client/assets/{index-redirect-B2074CyX.js → index-redirect-BSxSh5S-.js} +1 -1
- package/dist/client/assets/{index-D2b1OQG0.js → index-xD4K2nG7.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-sZS50x9h.js → infiniteQueryObserver-5dM4o4Hf.js} +1 -1
- package/dist/client/assets/{infra-billing-Cf1YDWV8.js → infra-billing-BW0f21OW.js} +1 -1
- package/dist/client/assets/{input-qA_oxMGt.js → input-2QjNp7qX.js} +1 -1
- package/dist/client/assets/{input-DlOSVkNE.js → input-Di5PUIe8.js} +3 -3
- package/dist/client/assets/{integration-icon-mkTLlJYZ.js → integration-icon-CMGBZM9F.js} +1 -1
- package/dist/client/assets/{jira-icon-C5lcBXYi.js → jira-icon-DZrAPkCR.js} +1 -1
- package/dist/client/assets/{label-8_hsm0_y.js → label-CBlQ82Fk.js} +1 -1
- package/dist/client/assets/{layout-C4N_3p9u.js → layout-jno9iSY1.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Zsw21wnc.js → legacy-agents-deep-C-JHuDVd.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-RzdE-Ynb.js → legacy-main-redirect-BjKbMolf.js} +1 -1
- package/dist/client/assets/library-DC_yyIum.js +1 -0
- package/dist/client/assets/{login-B439_6KR.js → login-DrbMDqlp.js} +1 -1
- package/dist/client/assets/{markdown-yQLRhm2z.js → markdown-BU6g98sq.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-gJ1lyd1u.js → mcp-app-renderer-B6MBkXrw.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B64tInkO.js → mcp-oauth-CFQzR34b.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BFUDXDf6.js → mcp-oauth-DHXkg8Ce.js} +1 -1
- package/dist/client/assets/{members-Beq92g_c.js → members-D1907SI-.js} +1 -1
- package/dist/client/assets/{memory-BkOPkUkc.js → memory-CaQIwNtK.js} +1 -1
- package/dist/client/assets/{mini-report-page-BWPJGpfB.js → mini-report-page-5Lry2_1Y.js} +1 -1
- package/dist/client/assets/{mock-board-qTnFSOlt.js → mock-board-Dfc7Zn2k.js} +3 -3
- package/dist/client/assets/{monaco-editor-C2ej8TCv.js → monaco-editor-D1yDvJd3.js} +1 -1
- package/dist/client/assets/{monitoring-BdT45NJd.js → monitoring-CvGmGp-w.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-QRt_yzIW.js → monitoring-stats-row-C-A-doof.js} +1 -1
- package/dist/client/assets/{multi-select-D4sL81eP.js → multi-select-BNUkLp8H.js} +1 -1
- package/dist/client/assets/{mustache-3jnCJNSv.js → mustache-CksHv2Dr.js} +1 -1
- package/dist/client/assets/{named-rule-uses-u1am7LRC.js → named-rule-uses-BBl065fe.js} +1 -1
- package/dist/client/assets/{named-rule-view-B49ZuZC_.js → named-rule-view-BXK5sJ8X.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DCNrhfVx.js → new-project-dialog-CYkF5k4O.js} +1 -1
- package/dist/client/assets/{oauth-callback-D1lTLeuO.js → oauth-callback-BPlDpCVw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-uHk7H4_s.js → oauth-callback-ai-provider-C-kNRGr2.js} +1 -1
- package/dist/client/assets/{onboarding-Cqmu7Q1I.js → onboarding-81KXiaqI.js} +1 -1
- package/dist/client/assets/{openai-conversation-D9oaPp7I.js → openai-conversation-Bi9e1sKc.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-C2xkkt2n.js → optimistic-project-sidebar-views-CVVwXn2X.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Bn2RftCy.js → order-monitor-day-BVSLADXz.js} +1 -1
- package/dist/client/assets/{organization-choice-DbSR_Tq1.js → organization-choice-DmteYBAc.js} +1 -1
- package/dist/client/assets/{orgs-Dv6ZMLaR.js → orgs-BFPSbb2q.js} +1 -1
- package/dist/client/assets/{page-seo-form-CYdB-eYU.js → page-seo-form-VA7wIeJU.js} +1 -1
- package/dist/client/assets/{pair-DIRyClgs.js → pair-Cjnol9_x.js} +1 -1
- package/dist/client/assets/{parse-sections-CvCJ7mYl.js → parse-sections-7Tm_vjpy.js} +1 -1
- package/dist/client/assets/{plan-bTtLskYs.js → plan-KARVWZDV.js} +1 -1
- package/dist/client/assets/{plan-ladder-DNfn-N6n.js → plan-ladder-C-o1aFSi.js} +1 -1
- package/dist/client/assets/{popover-n_tcLsd5.js → popover-BsX8gIsV.js} +1 -1
- package/dist/client/assets/{post-calendar-DnSIZDH2.js → post-calendar-B6fP7Sp3.js} +1 -1
- package/dist/client/assets/{post-editor-Ds8VBbi2.js → post-editor-B530kxYZ.js} +1 -1
- package/dist/client/assets/{preview-content-YpNvTcZt.js → preview-content-IEhLMW40.js} +1 -1
- package/dist/client/assets/{preview-dialog-DJ8srmsM.js → preview-dialog-B8MUF8yg.js} +1 -1
- package/dist/client/assets/{preview-panel-C7cA2AYG.js → preview-panel-C3yGSsCn.js} +1 -1
- package/dist/client/assets/preview-tab-DZ2jzEbi.js +551 -0
- package/dist/client/assets/{product-picker-dialog-BQZeexho.js → product-picker-dialog-Duu5EFXJ.js} +1 -1
- package/dist/client/assets/{profile-D9pE1ZCt.js → profile-SgKnnlOX.js} +1 -1
- package/dist/client/assets/{project-app-view-BJMSCiLQ.js → project-app-view-69GUddZy.js} +1 -1
- package/dist/client/assets/{project-apps-CKpWGbT4.js → project-apps-DxvrGikA.js} +1 -1
- package/dist/client/assets/{project-feed-BFyTaEPY.js → project-feed-Dkn186cj.js} +1 -1
- package/dist/client/assets/{project-icon-BozuiJlT.js → project-icon-DozUqz8V.js} +1 -1
- package/dist/client/assets/project-reports-6uzfgJoN.js +1 -0
- package/dist/client/assets/project-tasks-BLcB7Cwc.js +1 -0
- package/dist/client/assets/{projects-Bj8bu01s.js → projects-BvtnS4il.js} +1 -1
- package/dist/client/assets/{projects-empty-state-Co0D5JhR.js → projects-empty-state-Bd8sqs2o.js} +1 -1
- package/dist/client/assets/{prompts-CUYrqR6B.js → prompts-CfiuzCI2.js} +1 -1
- package/dist/client/assets/record-editor-DD-1yqpv.js +1 -0
- package/dist/client/assets/{redirect-editor-tsiTjzIT.js → redirect-editor-Cq58-dw7.js} +1 -1
- package/dist/client/assets/{releases-api-DuhgreiH.js → releases-api-toiaosbq.js} +1 -1
- package/dist/client/assets/reports-VJqlTUDX.js +1 -0
- package/dist/client/assets/{reports-BG2If9Qe.js → reports-X-r24zwl.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DMCkOYqe.js → reports-onboarding-B1eQP37P.js} +1 -1
- package/dist/client/assets/{reports-tab-LnruJoPA.js → reports-tab-BqceAQel.js} +2 -2
- package/dist/client/assets/{repositories-D-cEWI3N.js → repositories-CkzQSY8F.js} +1 -1
- package/dist/client/assets/repositories-DRGtDHym.js +1 -0
- package/dist/client/assets/{repository-binding-BBtZf2zz.js → repository-binding-CiDG0Cr0.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Dm0ES3Rv.js → repository-import-picker-TlIvK00I.js} +1 -1
- package/dist/client/assets/{repository-picker-CPuj3bZ1.js → repository-picker-BrjMgENb.js} +1 -1
- package/dist/client/assets/{require-capability-C24QIC4M.js → require-capability-D5vaDJ6i.js} +1 -1
- package/dist/client/assets/{required-auth-layout-PhuA3Ewp.js → required-auth-layout-CLsGddT6.js} +1 -1
- package/dist/client/assets/{reset-password-C8SdUbOh.js → reset-password-BDTPUkZZ.js} +1 -1
- package/dist/client/assets/{resizable-miZzhQuc.js → resizable-LNv9WlFU.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CpfXvomr.js → resolve-tab-icon-DDEl8WpS.js} +1 -1
- package/dist/client/assets/review-settings-CR1udLwz.js +1 -0
- package/dist/client/assets/{roles-BlQqDK5V.js → roles-DIBxviRh.js} +1 -1
- package/dist/client/assets/route-CMp29IPi.js +1 -0
- package/dist/client/assets/{route-C1AFWDaT.js → route-CwE5K4wd.js} +1 -1
- package/dist/client/assets/{route-fvDFg13s.js → route-DiDqKVTg.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Bn4b767r.js → runnable-block-editor-D9HAcpIU.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-DR0GTBJX.js → sandbox-lifecycle-context-BKUYq7kP.js} +1 -1
- package/dist/client/assets/{schema-BRZOWw0d.js → schema-6JU3flf4.js} +1 -1
- package/dist/client/assets/{schema-CylodOUQ.js → schema-BbiQjr1e.js} +1 -1
- package/dist/client/assets/{scroll-area-BH2Oy8PV.js → scroll-area-CCVLtkoB.js} +1 -1
- package/dist/client/assets/{search-input-RbNJNFgo.js → search-input-43leKkGn.js} +1 -1
- package/dist/client/assets/{search-toggle-BKYod6Wy.js → search-toggle-Ds25LhLA.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-IJ4Mey7K.js → secret-ciphertext-BrIiDgyd.js} +1 -1
- package/dist/client/assets/{secret-picker-C-cbBnBP.js → secret-picker-aJPnp_F5.js} +1 -1
- package/dist/client/assets/{secrets-BvD9KlhJ.js → secrets-CfWgVKjc.js} +1 -1
- package/dist/client/assets/{sections-C2rk7uX1.js → sections-Dvgo02ra.js} +1 -1
- package/dist/client/assets/{sections-editor-DTbMqnxy.js → sections-editor-BSfFPyUU.js} +1 -1
- package/dist/client/assets/{select-B-vRTlp8.js → select-CHmq3OGd.js} +1 -1
- package/dist/client/assets/{select-model-jzXUtlUA.js → select-model-CvpLn49w.js} +1 -1
- package/dist/client/assets/{seo-editor-BqtZxWFt.js → seo-editor-BQ3pdKQv.js} +1 -1
- package/dist/client/assets/{separator-DQdTCaJ6.js → separator-vkFvxZ8m.js} +1 -1
- package/dist/client/assets/settings-tab-B_bx6QgP.js +1 -0
- package/dist/client/assets/{sheet-DIT9lGlU.js → sheet-C_qetF7d.js} +1 -1
- package/dist/client/assets/{shell-layout-NV-fbXIm.js → shell-layout-Bb-Bk8Da.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DpuJ9efE.js → site-draft-actions-GBt56z1o.js} +1 -1
- package/dist/client/assets/site-draft-view-CZq-6QXP.js +2 -0
- package/dist/client/assets/site-editor-Dw86EYnX.js +1 -0
- package/dist/client/assets/{site-editor-toast-hxv14akZ.js → site-editor-toast-Dvaha1qd.js} +1 -1
- package/dist/client/assets/{skills-Dmur65NR.js → skills-CNP2yKUA.js} +1 -1
- package/dist/client/assets/{slider-DL5ZrKD2.js → slider-Dt2pZuy0.js} +1 -1
- package/dist/client/assets/{sortable.esm-CmQjLRc-.js → sortable.esm-Dgy_5_Gq.js} +1 -1
- package/dist/client/assets/{sso-DJaANv0k.js → sso-BwMXXLZ-.js} +1 -1
- package/dist/client/assets/{suggestion-Dp-vLwaS.js → suggestion-DUWht7S9.js} +1 -1
- package/dist/client/assets/{switch-CWqn4x2S.js → switch-BKqScyl8.js} +1 -1
- package/dist/client/assets/{symbol-9K-WFQbg.js → symbol-Bw5pneOj.js} +1 -1
- package/dist/client/assets/{synced-repos-C6pBMypP.js → synced-repos-DhRHDr6D.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CM3k-yhU.js → tab-icon-glyph-ALHCeulj.js} +1 -1
- package/dist/client/assets/{table-Clkje7xI.js → table-DSiO4Kq6.js} +1 -1
- package/dist/client/assets/{tabs-SpJ7v19a.js → tabs-BcHqdI-j.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-D7x8Ztl2.js → task-assignee-avatar-CwyY8xOb.js} +1 -1
- package/dist/client/assets/{task-board-CEgpYip9.js → task-board-ICmHlMKj.js} +1 -1
- package/dist/client/assets/{task-route-0IGfE2Sp.js → task-route-SvQTR3TJ.js} +1 -1
- package/dist/client/assets/{task-status-DxuW2r4d.js → task-status-Dk0B9E0G.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D5efiDoG.js → taskboard-analytics-vr9mjCEM.js} +1 -1
- package/dist/client/assets/{tasks-BOOTk53y.js → tasks-DUtkLCHD.js} +1 -1
- package/dist/client/assets/tasks-DzLAZqT6.js +1 -0
- package/dist/client/assets/{textarea-DhtVYf8e.js → textarea-CTbC00Fo.js} +1 -1
- package/dist/client/assets/{thread-analytics-WxV3T9V2.js → thread-analytics-CYtiXz-Q.js} +1 -1
- package/dist/client/assets/{thread-intent-BS7K-UuZ.js → thread-intent-DcKV1aEK.js} +1 -1
- package/dist/client/assets/{thread-route-BkotEDA1.js → thread-route-D05ck8nv.js} +1 -1
- package/dist/client/assets/{thread-route-BZhEwUGV.js → thread-route-DlbP9X8e.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-F9Cd7VsI.js → thread-sheet-body-DXSUCFvU.js} +1 -1
- package/dist/client/assets/{time-range-picker-DgOYXLpU.js → time-range-picker-cljXExVl.js} +1 -1
- package/dist/client/assets/{toggle-group-errY3aOY.js → toggle-group-cK7x-LaG.js} +1 -1
- package/dist/client/assets/{tool-namespace-BVXAR9Sk.js → tool-namespace-CFMdc33T.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cq4ZT7sJ.js → toolbar-icon-button-AJC8O64v.js} +1 -1
- package/dist/client/assets/{tooltip-WTx8RFDb.js → tooltip-oRr5C_aw.js} +1 -1
- package/dist/client/assets/{tooltipContext-Ccm0pmDN.js → tooltipContext-DBLuHkF3.js} +1 -1
- package/dist/client/assets/{track-DGHY3NJe.js → track-D3xYnfew.js} +1 -1
- package/dist/client/assets/{types-C2kyJgqF.js → types-BnGn2ply.js} +1 -1
- package/dist/client/assets/{url-slug-eBdSwuRg.js → url-slug-CiQKnf5R.js} +1 -1
- package/dist/client/assets/{usage-stats-BCvxtMFR.js → usage-stats-BFNP5B9b.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BUYCLrsq.js → use-ai-providers-DB7Q0SBY.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-D8uSRmIc.js → use-apply-named-rule-DW6Wbxy3.js} +1 -1
- package/dist/client/assets/{use-automations-BKnx1LOU.js → use-automations-BXbY6ysU.js} +1 -1
- package/dist/client/assets/{use-autosave-C0kQXP3a.js → use-autosave-BB3cf8aT.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CoSgX-8p.js → use-chat-layout-state-KA32sUXt.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BVcS6c_m.js → use-clock-tick-CmSlUOB2.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Dfch6Pn5.js → use-connect-companion-Dzb46un3.js} +1 -1
- package/dist/client/assets/{use-connection-C2QTK4P4.js → use-connection-PJ_l98GU.js} +1 -1
- package/dist/client/assets/{use-content-sync-cSja7hdH.js → use-content-sync-9tvG-lut.js} +1 -1
- package/dist/client/assets/{use-copy-DedJIHzN.js → use-copy-D4R9cJ_t.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-JDXemb5m.js → use-create-virtual-mcp-cYnUmw5j.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-ByEf5sEV.js → use-date-fns-locale-BgdR-wYC.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C_RB3agc.js → use-debounced-autosave-CL6P-Lri.js} +1 -1
- package/dist/client/assets/{use-debounced-value-ELHlrW87.js → use-debounced-value-BdOjhsVi.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D6gi2fbm.js → use-deco-credits-DHNd5iXt.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CwR46UgN.js → use-decopilot-events-CDLwP1Su.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BTgka6iQ.js → use-delete-connection-CkSINryc.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BCN-ylik.js → use-deployment-admin-BZATCf2q.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CVZxF7Um.js → use-fast-preview-draft-url-CGwz_fku.js} +1 -1
- package/dist/client/assets/{use-file-configs-Br5njpmm.js → use-file-configs-nRV9S9D0.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-Dz2zKYVV.js → use-inbox-feed-CMEIMGZ6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C3u8iypP.js → use-infinite-scroll-CNz9_Nor.js} +1 -1
- package/dist/client/assets/{use-join-requests-D2Wm3dTe.js → use-join-requests-oCznfTNy.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CTK-I6l5.js → use-main-panel-tabs-BKmILeUa.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BPhXIpD4.js → use-mcp-auth-status-BlkUCjXO.js} +1 -1
- package/dist/client/assets/{use-mcp-client-COM3gP2O.js → use-mcp-client-DKIfKwpJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-1pj8Mn9o.js → use-mcp-prompts-MhXPkujh.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DVMy4xzU.js → use-mcp-tools-CTl2xkGk.js} +1 -1
- package/dist/client/assets/{use-members-BXYZ5GWT.js → use-members-BiXVclqd.js} +1 -1
- package/dist/client/assets/{use-mobile-Bq3CXRKG.js → use-mobile-CCkX9zL-.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BrZbG7eM.js → use-move-blocks-C6LWTkiD.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-F9oDR6Aw.js → use-navigate-to-agent-CEb5-IwU.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-D4P9ija_.js → use-open-billing-url-D-NQ16Mb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C3gy1liR.js → use-org-auth-client-xXOFDOL1.js} +1 -1
- package/dist/client/assets/{use-org-fs-BRfBBlvJ.js → use-org-fs-DRaVeNa6.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-IArfEyUi.js → use-org-repo-syncs-LHzk4Keo.js} +1 -1
- package/dist/client/assets/{use-org-sso-ChkTjfH5.js → use-org-sso-Bx0Susbk.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dx88n2m6.js → use-organization-roles-CbO1bQ_O.js} +1 -1
- package/dist/client/assets/{use-organization-settings-dAOl4U_-.js → use-organization-settings-Bf2WDJz9.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CW6DUzf9.js → use-panel-navigate-CYYYdsdC.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CTc7wMZF.js → use-project-native-view-presence-B2rH_d27.js} +1 -1
- package/dist/client/assets/{use-project-scope-BFye4eeg.js → use-project-scope-C66L_LKx.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BU79Go-x.js → use-recent-apps-DaFNVa3y.js} +1 -1
- package/dist/client/assets/{use-releases-CfZAXBwl.js → use-releases-DwpIDRIp.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CJiI0aEe.js → use-reports-diagnostic-DnLCgooz.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Bryc2tH_.js → use-sandbox-events-CioHBl5Q.js} +1 -1
- package/dist/client/assets/{use-secrets-BBwZJiLY.js → use-secrets-BrDaOgAh.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-B5gtsawP.js → use-section-preview-base-DxyD_MVI.js} +1 -1
- package/dist/client/assets/{use-session-runtime-C6i7UtWU.js → use-session-runtime-DgSb1tZ1.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CKSL9ORL.js → use-sidebar-collapsed-Lbn9i3wJ.js} +1 -1
- package/dist/client/assets/{use-tags-C7NcCL7l.js → use-tags-DxXXXYXQ.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CmTEpb8g.js → use-task-board-analytics-B_lpE6sk.js} +1 -1
- package/dist/client/assets/{use-task-board-events-bChrXXDv.js → use-task-board-events-Ciu9fgM5.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B5n2Imtn.js → use-task-board-item-prs-BXiZI60U.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CyLevNIC.js → use-task-metadata-DXSFycil.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BdSD31wi.js → use-thread-analytics-BBBfMO-x.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-COl9UfXy.js → use-thread-outputs-Be0M4DCF.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C9OOM3iT.js +1 -0
- package/dist/client/assets/{useQueries-Dgo1k5er.js → useQueries-CjLpsE8j.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DC4aZJSW.js +1 -0
- package/dist/client/assets/{users-BOMrf4Fo.js → users-DhWYm0Ur.js} +1 -1
- package/dist/client/assets/{utils-fsgeKe9W.js → utils-BlqF72Vj.js} +1 -1
- package/dist/client/assets/{variant-calendar-CGX7TiEA.js → variant-calendar-Z__DuHea.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-D3H0IPwr.js → variant-matcher-override-BcEAaLIA.js} +1 -1
- package/dist/client/assets/virtual-mcp-DQmDpfRM.js +1 -0
- package/dist/client/assets/{watch-sse-pool-9c6_Ze8B.js → watch-sse-pool-9GQSHr-W.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +510 -510
- package/package.json +1 -1
- package/dist/client/assets/UserSquare-CZXKi88L.js +0 -1
- package/dist/client/assets/agent-analytics-CAeIvLpw.js +0 -1
- package/dist/client/assets/agent-app-BIZw6O6x.js +0 -1
- package/dist/client/assets/agent-calendar-rSYcBUhL.js +0 -1
- package/dist/client/assets/agent-deck-BdTe1uEF.js +0 -1
- package/dist/client/assets/agent-e2e-BUjIk9_k.js +0 -1
- package/dist/client/assets/agent-experiments-C9MFznl7.js +0 -1
- package/dist/client/assets/agent-file-CD0Yoa7I.js +0 -1
- package/dist/client/assets/agent-hosting-DZFLF8mA.js +0 -1
- package/dist/client/assets/agent-icon-DtT3h4UX.js +0 -1
- package/dist/client/assets/agent-library-ClrTwj50.js +0 -1
- package/dist/client/assets/agent-library-file-CAlMp336.js +0 -1
- package/dist/client/assets/agent-monitor-Bn4RTzzk.js +0 -1
- package/dist/client/assets/agent-settings-DUBumxG4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CXdBuByv.js +0 -2
- package/dist/client/assets/agent-site-editor-content-xxngWBr2.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DBUt1iNd.js +0 -1
- package/dist/client/assets/agent-view-BiUQ1gj5.js +0 -1
- package/dist/client/assets/api-keys-bhSN63jL.js +0 -1
- package/dist/client/assets/cms-settings-editor-DVlUigtK.js +0 -1
- package/dist/client/assets/index-MPdUOMBb.css +0 -1
- package/dist/client/assets/index-uNmIis3_.js +0 -4
- package/dist/client/assets/library-CKihNjtp.js +0 -1
- package/dist/client/assets/preview-tab-lR6Zy9Kz.js +0 -551
- package/dist/client/assets/project-reports-B6AQHucI.js +0 -1
- package/dist/client/assets/project-tasks-DFBfLTNl.js +0 -1
- package/dist/client/assets/record-editor-Dq4w4KU3.js +0 -1
- package/dist/client/assets/reports-DhdnjILE.js +0 -1
- package/dist/client/assets/repositories-CBH2GIms.js +0 -1
- package/dist/client/assets/review-settings-BrKUWarQ.js +0 -1
- package/dist/client/assets/route-DSfRBjPS.js +0 -1
- package/dist/client/assets/settings-tab-CPth5xHx.js +0 -1
- package/dist/client/assets/site-draft-view-D6YYVH6j.js +0 -2
- package/dist/client/assets/site-editor-CpNSE9w9.js +0 -1
- package/dist/client/assets/tasks-DBKhuSFQ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-EcJS-_aQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XLLgwpcB.js +0 -1
- package/dist/client/assets/virtual-mcp-th0bGjq5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-
|
|
1
|
+
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-DJCD1T3p.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,T]=W(M),J=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:b=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),w=r==="horizontal"?ge:ve,[S=[],I]=ce({prop:h,defaultProp:b,onChange:x=>{[...m.current][f.current]?.focus(),i(x)}}),V=l.useRef(S);function j(x){const y=ye(S,x);K(x,y)}function se(x){K(x,f.current)}function ae(){const x=V.current[f.current];S[f.current]!==x&&d(S)}function K(x,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((x-n)/c)*c+n,U),A=Y(z,[n,s]);I((E=[])=>{const P=xe(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(V.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:j,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&K(n,0,{commit:!0}),onEndKeyDown:()=>!a&&K(s,S.length-1,{commit:!0}),onStepKeyDown:({event:x,direction:y})=>{if(!a){const z=$.includes(x.key)||x.shiftKey&&X.includes(x.key)?10:1,A=f.current,E=S[A],P=c*z*y;K(E+P,A,{commit:!0})}}})})})})});J.displayName=M;var[Q,q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:b,...h}=e,[i,d]=l.useState(null),v=C(t,w=>d(w)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(w){const S=R.current||i.getBoundingClientRect(),I=[0,S.width],j=O(I,f?[o,n]:[n,o]);return R.current=S,j(w-S.left)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=D(w.clientX);r?.(S)},onSlideMove:w=>{const S=D(w.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:w=>{const I=G[f?"from-left":"from-right"].includes(w.key);b?.({event:w,direction:I?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...b}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],w=O(f,v?[n,o]:[o,n]);return d.current=m,w(g-m.top)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...b,ref:i,style:{...b.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...b}=e,h=T(M,o);return p.jsx(B.span,{...b,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(ee,o);return p.jsx(B.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(N,o),c=q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,b=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...b):0,i=100-Math.max(...b);return p.jsx(B.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(be,{...e,ref:c,index:r})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=T(L,o),a=q(L,o),[u,b]=l.useState(null),h=C(t,D=>b(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(B.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var we="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(B.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=we;function xe(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ke=J,Ae=te,Be=ne,Te=oe;export{Be as R,Ae as T,Ke as a,Te as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,bD as o}from"./index-
|
|
1
|
+
import{r as i,j as t,bD as o}from"./index-DJCD1T3p.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-CMKEBGKX.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-BCvxtMFR.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-DA3QHiC-.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-Dp-vLwaS.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-CMr2QK3C.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-DtT3h4UX.js";import{i as kn}from"./SwitchHorizontal01-QjLd4gai.js";import{i as xn}from"./Link01-Dy_bSHLe.js";import{s as bn}from"./Trash01-CTrNlbT8.js";import{i as wn,b as yn}from"./use-org-fs-BRfBBlvJ.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-yQLRhm2z.js";import{A as Rn}from"./avatar-49aPXdv7.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-DcKOVszs.js";import{u as zn}from"./use-org-auth-client-C3gy1liR.js";import{I as Pn}from"./icon-button-B1pb2_kW.js";function Hn(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=Ut(a);if(M===""){g();return}if(!Gt(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=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.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 x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.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")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.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]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,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=b.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=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(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&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{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=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(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"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({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 Zn(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,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+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=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),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);Zn(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=Vn(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 be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(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 Qn=(()=>{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)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {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+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).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(),tr=A(lt).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]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=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]*?(?:-->|$))/,ir=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(),ut=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(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},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(),or={...Ae,lheading:tr,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()},lr={...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 b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-DJCD1T3p.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-BFNP5B9b.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-DYddjmhz.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-DUWht7S9.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-B1T14RYF.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-2Sd6TPJR.js";import{i as kn}from"./SwitchHorizontal01-BKu4aB4V.js";import{i as xn}from"./Link01-DCdDhO7H.js";import{s as bn}from"./Trash01-C34kFeWG.js";import{i as wn,b as yn}from"./use-org-fs-DRaVeNa6.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-BU6g98sq.js";import{A as Rn}from"./avatar-DarGMVT9.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-CPx9UwtG.js";import{u as zn}from"./use-org-auth-client-xXOFDOL1.js";import{I as Pn}from"./icon-button-7F5Toil2.js";function Hn(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=Ut(a);if(M===""){g();return}if(!Gt(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=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.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 x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.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")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.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]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,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=b.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=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(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&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{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=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(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"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({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 Zn(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,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+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=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),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);Zn(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=Vn(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 be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(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 Qn=(()=>{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)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {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+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).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(),tr=A(lt).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]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=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]*?(?:-->|$))/,ir=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(),ut=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(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},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(),or={...Ae,lheading:tr,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()},lr={...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",ct).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ur=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ht=/^( {2,}|\\)\n(?!\s*$)/,hr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,dr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),dt=/(?!~)[\p{P}\p{S}]/u,pr=/(?!~)[\s\p{P}\p{S}]/u,fr=/(?:[^\s\p{P}\p{S}]|~)/u,gr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Qn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mr=A(pt,"u").replace(/punct/g,W).getRegex(),kr=A(pt,"u").replace(/punct/g,dt).getRegex(),ft="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(ft,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),br=A(ft,"gu").replace(/notPunctSpace/g,fr).replace(/punctSpace/g,pr).replace(/punct/g,dt).getRegex(),wr=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(),yr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),Tr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vr=A(Tr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Ar=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Mr=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(),Sr=A(ve).replace("(?:-->|$)","-->").getRegex(),Cr=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",Sr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gt=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),mt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),Er=A("reflink|nolink(?!\\()","g").replace("reflink",gt).replace("nolink",mt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Ar,autolink:Mr,blockSkip:gr,br:ht,code:ur,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:mr,emStrongRDelimAst:xr,emStrongRDelimUnd:wr,escape:cr,link:Rr,nolink:mt,punctuation:dr,reflink:gt,reflinkSearch:Er,tag:Cr,text:hr,url:O},$r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:br,emStrongLDelim:kr,delLDelim:yr,delRDelim:vr,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()},_r={...de,br:A(ht).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:or,pedantic:lr},U={normal:Se,gfm:de,breaks:_r,pedantic:$r},Lr={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Lr[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function G(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function Ir(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 zr(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 Pr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:G(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a2 as h,fi as d,j as g,N as m,ac as p,a0 as j}from"./index-
|
|
1
|
+
import{c as f,a2 as h,fi as d,j as g,N as m,ac as p,a0 as j}from"./index-DJCD1T3p.js";import{L as v}from"./legacy-main-redirect-BjKbMolf.js";import"./thread-route-D05ck8nv.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let n;t[7]!==o?(n=o?.trim()||null,t[7]=o,t[8]=n):n=t[8];const c=n;if(c){let e;t[9]!==a.slug||t[10]!==c?(e={org:a.slug,agentId:c},t[9]=a.slug,t[10]=c,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let u;return t[17]!==a.slug?(u=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=u):u=t[18],u}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-CMKEBGKX.js";import{u as de}from"./use-mobile-Bq3CXRKG.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-CKSL9ORL.js";import{a as Z,R as pe,b as ge}from"./resizable-miZzhQuc.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-CoSgX-8p.js";import{O as je,m as q}from"./agent-icon-DtT3h4UX.js";import{c as G,T as U,a as Y}from"./tooltip-WTx8RFDb.js";import{T as A}from"./toolbar-icon-button-Cq4ZT7sJ.js";import{a as Se}from"./use-project-scope-BFye4eeg.js";import{c as ve}from"./repository-binding-BBtZf2zz.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=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(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]: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:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,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(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,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:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,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 c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
1
|
+
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-DJCD1T3p.js";import{u as de}from"./use-mobile-CCkX9zL-.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-Lbn9i3wJ.js";import{a as Z,R as pe,b as ge}from"./resizable-LNv9WlFU.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-KA32sUXt.js";import{O as je,m as q}from"./agent-icon-2Sd6TPJR.js";import{c as G,T as U,a as Y}from"./tooltip-oRr5C_aw.js";import{T as A}from"./toolbar-icon-button-AJC8O64v.js";import{a as Se}from"./use-project-scope-C66L_LKx.js";import{c as ve}from"./repository-binding-CiDG0Cr0.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=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(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]: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:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,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(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,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:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,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 c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|