decocms 4.576.4 → 4.576.5

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.
Files changed (389) hide show
  1. package/dist/client/assets/{AlertCircle-CsPTcN_S.js → AlertCircle-C4gtVV8B.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CPcUCL9A.js → AreaChart-DoDuLI5t.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BYhfnAa5.js → ArrowLeft-DpMV6ZsI.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Cv1SmuzD.js → ArrowUp-BZtzDI6h.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-1SsRQdZi.js → CartesianChart-T_ULwjNy.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-B9nv4p9e.js → CategoricalChart-ysoAqy8Y.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-LO8Q7KlB.js → CheckCircle-DSJM5Ipe.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-Bo1EsiyQ.js → ChevronSelectorVertical-Y1qRZSrs.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Dh24Sq_k.js → ChevronUp-DlMNWluH.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-B0xYA-L3.js → CreditCard01-DDsAjKey.js} +1 -1
  11. package/dist/client/assets/{Globe04-ceJSWDa3.js → Globe04-xh_ZOoQS.js} +1 -1
  12. package/dist/client/assets/{Key01-D9P3FMiY.js → Key01-BnxP0_QL.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-B3rPhu7D.js → LinkBroken01-4XuFjBFS.js} +1 -1
  14. package/dist/client/assets/{Minus-BP4M5eUu.js → Minus-D8UqNYy4.js} +1 -1
  15. package/dist/client/assets/{Monitor01-BIy7Jnq0.js → Monitor01-CVDkBVET.js} +1 -1
  16. package/dist/client/assets/{Play-C4cdDhC3.js → Play--aCtxlXx.js} +1 -1
  17. package/dist/client/assets/{Plus-Bcl7avNA.js → Plus-DXpzgENj.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-CZfceFos.js → ReferenceLine-CyROiAPM.js} +1 -1
  19. package/dist/client/assets/{SearchMd-DRs-Ld4Z.js → SearchMd-CWmEKOOP.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-BcBJW8Ry.js → ShoppingBag01-ClDrdJV2.js} +1 -1
  21. package/dist/client/assets/{Sun-oVWnfq_E.js → Sun-wXzOhHYv.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-BTdsV_bI.js → SwitchHorizontal01-C42vJfgE.js} +1 -1
  23. package/dist/client/assets/{Tool01-BWMOxR8v.js → Tool01-DB3xqZeL.js} +1 -1
  24. package/dist/client/assets/{Tooltip-DHjHeuys.js → Tooltip-Dz7b9lTi.js} +1 -1
  25. package/dist/client/assets/{Trash01-CgWosjFE.js → Trash01-BAWUFhrC.js} +1 -1
  26. package/dist/client/assets/{Upload01-DAMBCMxP.js → Upload01-CMkGIZuR.js} +1 -1
  27. package/dist/client/assets/{UserSquare-BjqAifU8.js → UserSquare-NNxs0RWc.js} +1 -1
  28. package/dist/client/assets/{Users01-Bt0rcyOL.js → Users01-DIshv_Ib.js} +1 -1
  29. package/dist/client/assets/{XClose-TMdj_yIm.js → XClose-E_Sbr7JC.js} +1 -1
  30. package/dist/client/assets/{Zap-BJ5eCR1y.js → Zap-BFWL2aD-.js} +1 -1
  31. package/dist/client/assets/{access-gate-DbqD_EAv.js → access-gate-H6si3iA0.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-DigMA6Jw.js → add-connection-dialog-BCsDq0oB.js} +1 -1
  33. package/dist/client/assets/agent-app-Bl_mPh_t.js +1 -0
  34. package/dist/client/assets/{agent-assets-B50PlEch.js → agent-assets-B5UWuXnl.js} +1 -1
  35. package/dist/client/assets/{agent-automation-ZC5pUe0X.js → agent-automation-C9PBjiVk.js} +1 -1
  36. package/dist/client/assets/{agent-automations-BqJwcAQY.js → agent-automations-CMf5dE3K.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-6cFcqsTq.js → agent-calendar-DfZ4ErN1.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-DODsAfWG.js → agent-capabilities-C7nwtlfn.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-BMcGkScg.js → agent-connect-sources-DwgsD8vQ.js} +1 -1
  40. package/dist/client/assets/agent-deck-DjXPR_Nl.js +1 -0
  41. package/dist/client/assets/{agent-e2e-qon8RqKT.js → agent-e2e-BRjoGfW2.js} +1 -1
  42. package/dist/client/assets/agent-experiments-CA2mbR8k.js +1 -0
  43. package/dist/client/assets/{agent-file-BDrgchCG.js → agent-file-BQdiAqSO.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-lyen0G2R.js → agent-hosting-D5KChDQU.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CMiKlX_f.js → agent-icon-uDqFfzhf.js} +1 -1
  46. package/dist/client/assets/agent-library-2kWug_zO.js +1 -0
  47. package/dist/client/assets/agent-library-file-DtPgl6Sc.js +1 -0
  48. package/dist/client/assets/agent-overview-CXQy1R3G.js +1 -0
  49. package/dist/client/assets/{agent-releases-CDlgQRKx.js → agent-releases-CaysxAFQ.js} +1 -1
  50. package/dist/client/assets/agent-settings-Bt8gf0xs.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-Z6rBuS35.js → agent-site-editor-D7f7n9V8.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-DfcTCTxX.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-B47YLbhf.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-Ci1e5zpi.js +1 -0
  55. package/dist/client/assets/agent-view-FTi4q4vz.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-DGsM3j-h.js → agent-view-guard-BP5FCFpQ.js} +1 -1
  57. package/dist/client/assets/{ai-providers-CAe-vRzr.js → ai-providers-CQ29Z6f1.js} +1 -1
  58. package/dist/client/assets/{alert-TFdEDT2O.js → alert-gT8z0xwu.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-CopwZcAF.js → analytics-sections-eEEKYoEI.js} +1 -1
  60. package/dist/client/assets/{api-keys-BRzjuZvx.js → api-keys-DQU6MrN9.js} +1 -1
  61. package/dist/client/assets/api-keys-h9YcYrMI.js +1 -0
  62. package/dist/client/assets/{app-editor-CUySEecw.js → app-editor-BSqFGCuO.js} +1 -1
  63. package/dist/client/assets/{asset-utils-B4QYhZxH.js → asset-utils-ClCcVH6C.js} +1 -1
  64. package/dist/client/assets/{auth-TL5_hJeY.js → auth-DzshLgt0.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-na7siRgx.js → auth-catchall-knKXQdld.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BGo8_cbu.js → auth-entry-CjhDapLF.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-BISVCxy2.js → auth-split-layout-Cs3K7qF9.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-CUE7ik09.js → authenticate-and-persist-oauth-DyNu9KE-.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-DpSl9UM5.js → automation-list-row-BIIymyig.js} +1 -1
  70. package/dist/client/assets/{automation-runs-BfKHSay9.js → automation-runs-BJn2B7cC.js} +1 -1
  71. package/dist/client/assets/{automations-Dg2lSOc5.js → automations-Xmpwvi6F.js} +1 -1
  72. package/dist/client/assets/{autosend-CGJPJD3U.js → autosend-D-UTWUhf.js} +1 -1
  73. package/dist/client/assets/{badge-D7MkXlu5.js → badge-FhnYiqmQ.js} +1 -1
  74. package/dist/client/assets/{block-document-BAvIRwEs.js → block-document-0w5M-3LO.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-DFEoJmhw.js → blocks-preview-workspace-context-DPP_AgWW.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-DASlUdvo.js → blocks-tab-states-DS5PjKyJ.js} +1 -1
  77. package/dist/client/assets/{blog-schema-D7LUSvhR.js → blog-schema-CYWT4exY.js} +1 -1
  78. package/dist/client/assets/{buckets-DWZ0uMIH.js → buckets-Cm1lK-tx.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-Cp4dU57k.js → build-improve-prompt-doc-CKmcH9eT.js} +1 -1
  80. package/dist/client/assets/{calendar-J9rCuEM0.js → calendar-Dj2F2D9c.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-cDMC87PI.js → capability-load-error-YlZMyLIu.js} +1 -1
  82. package/dist/client/assets/{category-editor-B6mXBz4W.js → category-editor-BRFXJMj8.js} +1 -1
  83. package/dist/client/assets/{chart-sO-wf7w_.js → chart-4euqV-4L.js} +1 -1
  84. package/dist/client/assets/{chat-context-DgCR75CY.js → chat-context-bTdV0PQS.js} +1 -1
  85. package/dist/client/assets/{chat-draft-B_pQlOo7.js → chat-draft-B1Q_ptQ-.js} +1 -1
  86. package/dist/client/assets/{checkbox-CDdGUfxj.js → checkbox-Bq5cgSkE.js} +1 -1
  87. package/dist/client/assets/{choose-editor-DOwdvoLE.js → choose-editor-CKJ9YUAD.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-BAsObd7a.js → cli-auth-success-C9VZDuEf.js} +1 -1
  89. package/dist/client/assets/{client-icons-Bp0n81sC.js → client-icons-x0Kj4XXu.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-B6ALhYaf.js → cms-settings-editor-Bl0s5YWk.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-CZfXb7jx.js → cms-store-drafts-B8sdeq2z.js} +1 -1
  92. package/dist/client/assets/{collapsible-BF7fiKEY.js → collapsible-B2pXVUPn.js} +1 -1
  93. package/dist/client/assets/{collection-detail-DHIJx408.js → collection-detail-D-ELQuvL.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-D3cSy-rU.js → collection-display-button-B9tDNz3Q.js} +1 -1
  95. package/dist/client/assets/{collection-search-DmyrNuWr.js → collection-search-o_TUN55Q.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-BVBFYCyq.js → collection-table-wrapper-CovrSOmj.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-CzJgsFmP.js → collection-tabs-C-HhSJ3V.js} +1 -1
  98. package/dist/client/assets/{combobox-Cy1ac_Va.js → combobox-N56ErTGA.js} +1 -1
  99. package/dist/client/assets/{command-Bh995x5J.js → command-C4A_k1m6.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-DHnNnyh5.js → companion-mcps-section-BIgg4-5f.js} +1 -1
  101. package/dist/client/assets/{config-C1KKnNPa.js → config-CaohtXWJ.js} +1 -1
  102. package/dist/client/assets/{connect-DN6GB1WI.js → connect-CAWALh6X.js} +1 -1
  103. package/dist/client/assets/{connect-layout-DllpY2qm.js → connect-layout-BGSvt_fK.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-C4jdSJZP.js → connect-source-dialog-zXoRskIf.js} +1 -1
  105. package/dist/client/assets/{connection-S1Y-z6Ze.js → connection-DWztoPJi.js} +1 -1
  106. package/dist/client/assets/{connection-card-GbDbFKHX.js → connection-card-CWeiT8GU.js} +1 -1
  107. package/dist/client/assets/{connection-detail-Bt9fqrdv.js → connection-detail-CyQt5Knq.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-DwQM2AXJ.js → connection-form-helpers-DvFcvjHg.js} +1 -1
  109. package/dist/client/assets/{connection-slug-CQeaB-ii.js → connection-slug-7qrL1eY0.js} +1 -1
  110. package/dist/client/assets/{connections-023t3K8C.js → connections-Dfx8FH4D.js} +1 -1
  111. package/dist/client/assets/{content-tab-DnZUk0R_.js → content-tab-Bd4lKzez.js} +3 -3
  112. package/dist/client/assets/{context-BviRKxpu.js → context-DkOsTTFI.js} +1 -1
  113. package/dist/client/assets/{context-menu-_4SjkJP2.js → context-menu-CzVow7cK.js} +1 -1
  114. package/dist/client/assets/{context-shell-2FHUOtQh.js → context-shell-A1z9qMT_.js} +3 -3
  115. package/dist/client/assets/{core.esm-Cx2tI-v0.js → core.esm-DbuDfvWF.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-DztBZJfG.js → create-organization-dialog-D6MpLXO5.js} +1 -1
  117. package/dist/client/assets/{device-hint-DiJItdVl.js → device-hint-DKfCoj9a.js} +1 -1
  118. package/dist/client/assets/{discover-CZ-mJztz.js → discover-Blhzpr1h.js} +1 -1
  119. package/dist/client/assets/{domain-settings-DEAsOpnU.js → domain-settings-EcbckpYF.js} +1 -1
  120. package/dist/client/assets/{drawer-BcaULeep.js → drawer-DO5xJQb9.js} +1 -1
  121. package/dist/client/assets/{editor-DXF9rwVo.js → editor-T1DFIh20.js} +1 -1
  122. package/dist/client/assets/{editor-classes-DEwbN0MI.js → editor-classes-XhTpecj4.js} +1 -1
  123. package/dist/client/assets/{empty-state-Cfajk5TO.js → empty-state-DPWCLNrd.js} +1 -1
  124. package/dist/client/assets/{empty-state-Ccl8OC-j.js → empty-state-DtO_Mv2g.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-BVL1j6B7.js → experiments-tab-choice-BKIwz3b9.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-biKUq-5E.js → extract-connection-data-DBROTNmw.js} +1 -1
  127. package/dist/client/assets/{feature-gate-TKaLsYFc.js → feature-gate-B_FyKX76.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-DasxziSs.js → feature-paywall-jPIGYZOc.js} +1 -1
  129. package/dist/client/assets/{file-explorer-DgzFCGgU.js → file-explorer-mKoJ95H9.js} +1 -1
  130. package/dist/client/assets/{file-preview-Dmy5YhII.js → file-preview-D0iM2K-b.js} +1 -1
  131. package/dist/client/assets/{file-share-button-Cl-IgS5x.js → file-share-button-BsYWO9Hm.js} +1 -1
  132. package/dist/client/assets/{file-type-icon-D75nksOt.js → file-type-icon-HeI2BZTs.js} +1 -1
  133. package/dist/client/assets/{folder-icon-C5I9OzDM.js → folder-icon-DTWsvVbL.js} +1 -1
  134. package/dist/client/assets/{form-CIThj_T9.js → form-BTSAyeiz.js} +1 -1
  135. package/dist/client/assets/{general-Cz8UZeQh.js → general-DQnQVbWU.js} +1 -1
  136. package/dist/client/assets/{github-icon--dnMj3-y.js → github-icon-B_en9n_0.js} +1 -1
  137. package/dist/client/assets/{home-Dxjl17s5.js → home-CLDIpUPQ.js} +1 -1
  138. package/dist/client/assets/{home-overview-g3rcNgW7.js → home-overview-BRS8Q3rl.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-D236FadC.js → hosted-reconcile-C7zHteUc.js} +1 -1
  140. package/dist/client/assets/{icon-button-CyNmKrzV.js → icon-button-BMTp1-QM.js} +1 -1
  141. package/dist/client/assets/{index-nO2S2V0T.js → index-CWuPd_va.js} +1 -1
  142. package/dist/client/assets/{index-CXMGhRs4.js → index-CnFz3TOs.js} +1 -1
  143. package/dist/client/assets/{index-BrihqSoi.js → index-D1ksSwz3.js} +1 -1
  144. package/dist/client/assets/{index-BF9ePDqU.js → index-DFaIOW9N.js} +1 -1
  145. package/dist/client/assets/{index-_nd_1JQz.js → index-DGy42Noz.js} +1 -1
  146. package/dist/client/assets/{index-DJZmV4c9.js → index-DPvgRnv7.js} +1 -1
  147. package/dist/client/assets/{index-ozu548h3.js → index-DTVEZmhV.js} +1 -1
  148. package/dist/client/assets/{index-Dd5hidCj.js → index-DVvmeJMJ.js} +3 -3
  149. package/dist/client/assets/{index-BVHbGN5c.js → index-DisDzI9Z.js} +1 -1
  150. package/dist/client/assets/{index-DgYBSkMj.js → index-DlkOiyYS.js} +1 -1
  151. package/dist/client/assets/{index-BCZy-897.js → index-DlxA0Tmo.js} +1 -1
  152. package/dist/client/assets/{index-B57dAAxD.js → index-DwNl1Km0.js} +1 -1
  153. package/dist/client/assets/{index-DjpHvK_4.js → index-DyEEK3cc.js} +1 -1
  154. package/dist/client/assets/{index-CRog5tFp.js → index-MBimNXd5.js} +1 -1
  155. package/dist/client/assets/{index-DrqsNFYR.js → index-dCHDMdOx.js} +1 -1
  156. package/dist/client/assets/{index-BtqPZIqH.js → index-laonBzOU.js} +1 -1
  157. package/dist/client/assets/{index-B_wKEr5f.js → index-qsOMiawp.js} +1 -1
  158. package/dist/client/assets/{index-redirect-DUi7z5TL.js → index-redirect-BEZcO3ft.js} +1 -1
  159. package/dist/client/assets/{infiniteQueryObserver-C1uWfhgO.js → infiniteQueryObserver-Depn9DGH.js} +1 -1
  160. package/dist/client/assets/{infra-billing-DWMi-9eg.js → infra-billing-BGMskgUq.js} +1 -1
  161. package/dist/client/assets/{input-DKlZJGf0.js → input-D4HN-yNN.js} +1 -1
  162. package/dist/client/assets/{input-B-TiyPUk.js → input-aWrDx9Iy.js} +3 -3
  163. package/dist/client/assets/{integration-icon-DHvbSqTM.js → integration-icon-C9OIwyFH.js} +1 -1
  164. package/dist/client/assets/{jira-icon-CUlCkXDM.js → jira-icon-CnIpLe3l.js} +1 -1
  165. package/dist/client/assets/{label-BZoCdZa0.js → label-DxsI69Ti.js} +1 -1
  166. package/dist/client/assets/{layout-C4bx239O.js → layout-m_pr21sI.js} +1 -1
  167. package/dist/client/assets/{legacy-admin-welcome-dialog-BgMnIQY9.js → legacy-admin-welcome-dialog-DIDvLt4b.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-BELlTHpx.js → legacy-agents-deep-CK9Gbzky.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-CxAuaPrB.js → legacy-main-redirect-Cep_68fb.js} +1 -1
  170. package/dist/client/assets/library-CYKhZ1Xb.js +1 -0
  171. package/dist/client/assets/{library-tab-CnjcP9yb.js → library-tab-Dy0wbynU.js} +1 -1
  172. package/dist/client/assets/{login-CA5_HXz3.js → login-FVvIKUmZ.js} +1 -1
  173. package/dist/client/assets/{markdown-ZlzKtNkL.js → markdown-DY1gkJzE.js} +1 -1
  174. package/dist/client/assets/{mcp-app-renderer-CRFiwN6n.js → mcp-app-renderer-CbbHrG36.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-Cq-Z82WC.js → mcp-oauth-B4bma3Oc.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-VaMDOw7T.js → mcp-oauth-Dz6mx5UF.js} +1 -1
  177. package/dist/client/assets/{members-CHUd-Ol1.js → members-CoNUsoOs.js} +1 -1
  178. package/dist/client/assets/{memory-CltSbzPH.js → memory-CJmsq8GA.js} +1 -1
  179. package/dist/client/assets/{mock-board-TQVQrJy0.js → mock-board-C-Bptu2a.js} +3 -3
  180. package/dist/client/assets/{monaco-editor-BZNPSifL.js → monaco-editor-ChRuLOCA.js} +1 -1
  181. package/dist/client/assets/{monitoring-D-eHzsjl.js → monitoring-DOIwwqmT.js} +1 -1
  182. package/dist/client/assets/{monitoring-stats-row-C7sD_prp.js → monitoring-stats-row-MlJzIKBz.js} +1 -1
  183. package/dist/client/assets/{multi-select-DL8hrKQv.js → multi-select-HzpZ3y0m.js} +1 -1
  184. package/dist/client/assets/{mustache-DZix8TV9.js → mustache-CtUZw69D.js} +1 -1
  185. package/dist/client/assets/{named-rule-view-xs5Ukf19.js → named-rule-view-CkgbSbSg.js} +1 -1
  186. package/dist/client/assets/{new-project-dialog-BDUp1HsF.js → new-project-dialog-DNs6nXJU.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-D-Igsrh7.js → oauth-callback-DJ1LZft0.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-Yifk_dmU.js → oauth-callback-ai-provider-DdjujeOM.js} +1 -1
  189. package/dist/client/assets/{oauth-consent-DlsvLpih.js → oauth-consent-C7arrnjn.js} +1 -1
  190. package/dist/client/assets/{onboarding-CyvbU-47.js → onboarding-DCEuM15Q.js} +1 -1
  191. package/dist/client/assets/{openai-conversation-CKtOG2f6.js → openai-conversation-D4xjY3_1.js} +1 -1
  192. package/dist/client/assets/{optimistic-project-sidebar-views-DMLee7lV.js → optimistic-project-sidebar-views-Bxu9JyYq.js} +1 -1
  193. package/dist/client/assets/{order-monitor-day-D_UJY8n7.js → order-monitor-day-BHRAsIfi.js} +1 -1
  194. package/dist/client/assets/{organization-choice-11vPd3Oe.js → organization-choice-BLi_jfq-.js} +1 -1
  195. package/dist/client/assets/{orgs-CO5mj27b.js → orgs-B0FFSMlY.js} +1 -1
  196. package/dist/client/assets/{own-accounts-section-VOVPBP5x.js → own-accounts-section-BPiQsCnH.js} +1 -1
  197. package/dist/client/assets/{pair-D5jYRLOi.js → pair-BefVcuJk.js} +1 -1
  198. package/dist/client/assets/{parse-sections-BqIle9mt.js → parse-sections-D2w3wSuP.js} +3 -3
  199. package/dist/client/assets/{plan-BkqYlxrI.js → plan-Da6szJuR.js} +1 -1
  200. package/dist/client/assets/{plan-ladder-42sSWoBs.js → plan-ladder-BIrfRC9w.js} +1 -1
  201. package/dist/client/assets/{plan-usage-card-DawnbwSf.js → plan-usage-card-9-4sECew.js} +1 -1
  202. package/dist/client/assets/{popover-4z9eDM-9.js → popover-DVbSl4_S.js} +1 -1
  203. package/dist/client/assets/{post-calendar-DXSJQozg.js → post-calendar-DEqb8d3G.js} +1 -1
  204. package/dist/client/assets/{post-editor-BOGWSxB3.js → post-editor-B-zzeLVe.js} +1 -1
  205. package/dist/client/assets/{preview-content-DAApomFo.js → preview-content-4sXQQAYj.js} +1 -1
  206. package/dist/client/assets/{preview-dialog-BYfDupos.js → preview-dialog-DdT5D37e.js} +1 -1
  207. package/dist/client/assets/{preview-panel-BnTSUu1W.js → preview-panel-08gBYjqh.js} +1 -1
  208. package/dist/client/assets/{preview-tab-DoF3705n.js → preview-tab-DBOLhpj4.js} +3 -3
  209. package/dist/client/assets/{product-picker-dialog-CtVVJBu_.js → product-picker-dialog-CK0DishF.js} +1 -1
  210. package/dist/client/assets/{profile-Cespz5EQ.js → profile-D-F6LVIp.js} +1 -1
  211. package/dist/client/assets/{project-app-view-BZhEHrBD.js → project-app-view-etnu6fhD.js} +1 -1
  212. package/dist/client/assets/{project-apps-C1L1P3Il.js → project-apps-D4MFXbKC.js} +1 -1
  213. package/dist/client/assets/{project-icon-BC5BTHqT.js → project-icon-BfdBakvS.js} +1 -1
  214. package/dist/client/assets/{project-index-Cov2uCEL.js → project-index-CIwgcHHa.js} +1 -1
  215. package/dist/client/assets/project-reports-B9YT4T_3.js +1 -0
  216. package/dist/client/assets/project-tasks-DhwbKHKQ.js +1 -0
  217. package/dist/client/assets/{projects-Dp44Mtfj.js → projects-DN5f4v6V.js} +1 -1
  218. package/dist/client/assets/{projects-empty-state-BKHYkH3g.js → projects-empty-state-CNEfVw65.js} +1 -1
  219. package/dist/client/assets/{prompts-Bf1h2RZu.js → prompts-xdLcYGyB.js} +1 -1
  220. package/dist/client/assets/{record-editor-Du-SgLkC.js → record-editor-DtXYbHpV.js} +1 -1
  221. package/dist/client/assets/{redirect-editor-Diqw7Nkh.js → redirect-editor-BGoLXzQs.js} +1 -1
  222. package/dist/client/assets/reports-BVe3MPdv.js +1 -0
  223. package/dist/client/assets/{reports-DRRYJcxd.js → reports-BoYTb5US.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-C4BoLN-j.js → reports-onboarding-hafGLqtC.js} +1 -1
  225. package/dist/client/assets/{reports-tab-Cr_0nAF2.js → reports-tab-BGeZEsTL.js} +2 -2
  226. package/dist/client/assets/repositories-B9hLcljS.js +1 -0
  227. package/dist/client/assets/{repositories-B4lUSmlm.js → repositories-DMPvx5Vv.js} +1 -1
  228. package/dist/client/assets/{repository-binding-DV3kkbZ_.js → repository-binding-DJpVzzIq.js} +1 -1
  229. package/dist/client/assets/{repository-picker-DhcwcPzc.js → repository-picker-8FkfYDdf.js} +1 -1
  230. package/dist/client/assets/{require-capability-Dlaolf-u.js → require-capability-BpMqCrIS.js} +1 -1
  231. package/dist/client/assets/{required-auth-layout-lVrZieBu.js → required-auth-layout-BIQCwVTO.js} +1 -1
  232. package/dist/client/assets/{reset-password-H302zhc9.js → reset-password-BKzfgMBU.js} +1 -1
  233. package/dist/client/assets/{resizable-D6Bvwzfl.js → resizable-C9_scy3R.js} +1 -1
  234. package/dist/client/assets/{resolve-tab-icon-JhqhoNvw.js → resolve-tab-icon-DO940wY_.js} +1 -1
  235. package/dist/client/assets/{review-settings-D1OJYsDt.js → review-settings-Bj89Yxea.js} +1 -1
  236. package/dist/client/assets/{role-color-CxM5Kzh7.js → role-color-Dy-P6oaY.js} +1 -1
  237. package/dist/client/assets/{roles-C3sEk6Ey.js → roles-CvbfU6et.js} +1 -1
  238. package/dist/client/assets/route-93-1A9vt.js +1 -0
  239. package/dist/client/assets/{route-AzUNCIcU.js → route-BdH_uLpp.js} +1 -1
  240. package/dist/client/assets/{route-CKIi5OR7.js → route-y8ZhYa0n.js} +1 -1
  241. package/dist/client/assets/{sandbox-lifecycle-context-2RE5Jlvg.js → sandbox-lifecycle-context-_uINbsP3.js} +1 -1
  242. package/dist/client/assets/{schema-CINYRcKK.js → schema-ChSE97DN.js} +1 -1
  243. package/dist/client/assets/{schema-paIXrOCY.js → schema-CzuWRpLl.js} +1 -1
  244. package/dist/client/assets/{scroll-area-BwaclrCR.js → scroll-area-D1j-ZNOk.js} +1 -1
  245. package/dist/client/assets/{search-input-BG8rdrCe.js → search-input-Cvdta6ZJ.js} +1 -1
  246. package/dist/client/assets/{search-toggle-CShA1wOK.js → search-toggle-BSwOQVMD.js} +1 -1
  247. package/dist/client/assets/{secret-picker-C6s_jvhV.js → secret-picker-zgl1t1WE.js} +1 -1
  248. package/dist/client/assets/{secrets-Bz4L84Vo.js → secrets-Dvs-hzm1.js} +1 -1
  249. package/dist/client/assets/{section-array-field-B8BsNXRT.js → section-array-field-AXi3Vg_u.js} +1 -1
  250. package/dist/client/assets/{sections-CnLSarWD.js → sections-COYsDPZ3.js} +1 -1
  251. package/dist/client/assets/{sections-editor-2QTriBkM.js → sections-editor-CyIATot1.js} +1 -1
  252. package/dist/client/assets/{select-iwVnUZSM.js → select-CBAbBtbp.js} +1 -1
  253. package/dist/client/assets/{select-model-DhxdeY5p.js → select-model-CScqhZ6D.js} +1 -1
  254. package/dist/client/assets/{seo-editor-BPqT6KgW.js → seo-editor-C0rSQsv3.js} +1 -1
  255. package/dist/client/assets/{separator-C1bonuaY.js → separator-B-2WnIuS.js} +1 -1
  256. package/dist/client/assets/settings-tab-DFF8W9c5.js +1 -0
  257. package/dist/client/assets/{sheet-DUtlbS4K.js → sheet-BSTYuLMa.js} +1 -1
  258. package/dist/client/assets/{shell-layout-Dcfsytx-.js → shell-layout-CU0v0Q3J.js} +1 -1
  259. package/dist/client/assets/{site-draft-actions-B5A2QjjI.js → site-draft-actions-D4mgl3Il.js} +1 -1
  260. package/dist/client/assets/{site-draft-view-DsHq6hEs.js → site-draft-view-BlOBzJMo.js} +1 -1
  261. package/dist/client/assets/site-editor-BoWcMF8-.js +1 -0
  262. package/dist/client/assets/{site-editor-toast-DL4aC3pF.js → site-editor-toast-Bz5hIXUq.js} +1 -1
  263. package/dist/client/assets/{skills-5rkbKVfD.js → skills-CPsP4uSN.js} +1 -1
  264. package/dist/client/assets/{slider-Cmkjh66S.js → slider-B-4p3Nob.js} +1 -1
  265. package/dist/client/assets/{sortable.esm-C7rI9jHM.js → sortable.esm-BMq0DSBR.js} +1 -1
  266. package/dist/client/assets/{sso-BEfIFSWt.js → sso-D7rzaxll.js} +1 -1
  267. package/dist/client/assets/{suggestion-DGz7gtzE.js → suggestion-UmoyYDA6.js} +1 -1
  268. package/dist/client/assets/{super-agent-icon-Dq4U-BQv.js → super-agent-icon-CSXn8PV0.js} +1 -1
  269. package/dist/client/assets/{switch-BZMVD_xA.js → switch-BoeP0_DT.js} +1 -1
  270. package/dist/client/assets/{synced-repos-MBV_b16M.js → synced-repos-MPQrTxDL.js} +1 -1
  271. package/dist/client/assets/{tab-icon-glyph-CeBm3H92.js → tab-icon-glyph-DWwnpbAG.js} +1 -1
  272. package/dist/client/assets/{table-C9boQ5tZ.js → table-XIxdhyNo.js} +1 -1
  273. package/dist/client/assets/{tabs-CFdE2LmD.js → tabs-B314G2il.js} +1 -1
  274. package/dist/client/assets/{task-board-BZ6FZl9j.js → task-board-D-pfBnAn.js} +1 -1
  275. package/dist/client/assets/{task-route-WWLMyAp6.js → task-route-DrEh97G3.js} +1 -1
  276. package/dist/client/assets/{task-status-CLkNYnsS.js → task-status-B5Pet88z.js} +1 -1
  277. package/dist/client/assets/{taskboard-analytics-WayyDOd5.js → taskboard-analytics-BCgYqiKL.js} +1 -1
  278. package/dist/client/assets/{tasks-DOLkXzI6.js → tasks-D1UDrE84.js} +1 -1
  279. package/dist/client/assets/tasks-D2QsX8U7.js +1 -0
  280. package/dist/client/assets/{textarea-hEv7rKyL.js → textarea-yEyl1P1k.js} +1 -1
  281. package/dist/client/assets/{thread-analytics-CM8gvu0V.js → thread-analytics-DEw5nqD5.js} +1 -1
  282. package/dist/client/assets/{thread-intent-DMhB2sy4.js → thread-intent-BNVTtSHt.js} +1 -1
  283. package/dist/client/assets/{thread-route-Ce3yplCj.js → thread-route-0xQXgTvr.js} +1 -1
  284. package/dist/client/assets/{thread-route-B_swkleJ.js → thread-route-C8VqFbkH.js} +1 -1
  285. package/dist/client/assets/{thread-sheet-body-DTCZxxw9.js → thread-sheet-body-BPfgeSL4.js} +1 -1
  286. package/dist/client/assets/{time-range-picker-VzZM-nq4.js → time-range-picker-BvmuiVyh.js} +1 -1
  287. package/dist/client/assets/{toggle-group-DDk8xPXe.js → toggle-group-pyWm-TzL.js} +1 -1
  288. package/dist/client/assets/{tool-namespace-EVeG8Fs5.js → tool-namespace-CtWbol20.js} +1 -1
  289. package/dist/client/assets/{tool-set-selector-DuVmSXqq.js → tool-set-selector-o7QGolVt.js} +1 -1
  290. package/dist/client/assets/{toolbar-icon-button-99r2aG4V.js → toolbar-icon-button-DJE3OEfz.js} +1 -1
  291. package/dist/client/assets/{tooltip-Dyh2h0NV.js → tooltip-BVrosRIK.js} +1 -1
  292. package/dist/client/assets/{tooltipContext-CQdoW9wa.js → tooltipContext-qYwD6VMh.js} +1 -1
  293. package/dist/client/assets/{track-B5m4mxJj.js → track-CeXWn-zt.js} +1 -1
  294. package/dist/client/assets/{types-Mb9DEKKQ.js → types-DDm1cJJv.js} +1 -1
  295. package/dist/client/assets/{url-slug-Cli-NAkj.js → url-slug-W6aFEmJF.js} +1 -1
  296. package/dist/client/assets/{usage-stats-iRJ2oM0y.js → usage-stats-Dhf-DrML.js} +1 -1
  297. package/dist/client/assets/{use-ai-providers-DQAzIwY2.js → use-ai-providers-Cq3xA9Zt.js} +1 -1
  298. package/dist/client/assets/{use-apply-named-rule-qGNe9B-Q.js → use-apply-named-rule-V-RgXu1D.js} +1 -1
  299. package/dist/client/assets/use-ask-in-chat-CIVcbye6.js +1 -0
  300. package/dist/client/assets/{use-automations-akR-tcRi.js → use-automations-BVThKMGQ.js} +1 -1
  301. package/dist/client/assets/{use-autosave-ClND9MZU.js → use-autosave-CCiDACSS.js} +1 -1
  302. package/dist/client/assets/use-blocks-v8-project-Cbqo1QTy.js +1 -0
  303. package/dist/client/assets/{use-chat-layout-state-BsOGOEOo.js → use-chat-layout-state-CGYfM8sf.js} +1 -1
  304. package/dist/client/assets/{use-cms-publish-actions-CntIxbra.js → use-cms-publish-actions-C7zW1hZf.js} +1 -1
  305. package/dist/client/assets/{use-connect-companion-FU7Yjyv3.js → use-connect-companion-B9VAml3x.js} +1 -1
  306. package/dist/client/assets/{use-connection-e-hq9vT7.js → use-connection-DnLlCwu6.js} +1 -1
  307. package/dist/client/assets/{use-content-sync-tJgGPJpi.js → use-content-sync-D9eluVVW.js} +1 -1
  308. package/dist/client/assets/{use-copy-DJs5balG.js → use-copy-DT5ZzrsX.js} +1 -1
  309. package/dist/client/assets/{use-date-fns-locale-DytcjJ4v.js → use-date-fns-locale-Co74b8Ww.js} +1 -1
  310. package/dist/client/assets/{use-debounced-autosave-CY6fvvGj.js → use-debounced-autosave-4hpLvgm-.js} +1 -1
  311. package/dist/client/assets/{use-debounced-value-CezJqVSj.js → use-debounced-value-jJnqowMI.js} +1 -1
  312. package/dist/client/assets/{use-deco-credits-CHRRrI8G.js → use-deco-credits-BQqUH0BV.js} +1 -1
  313. package/dist/client/assets/{use-decopilot-events-CtnAXgLl.js → use-decopilot-events-B2tjImS_.js} +1 -1
  314. package/dist/client/assets/{use-delete-connection-Cbnv8IDj.js → use-delete-connection-DpEMQiOo.js} +1 -1
  315. package/dist/client/assets/{use-deployment-admin-mLJFncG4.js → use-deployment-admin-CDyLX01_.js} +1 -1
  316. package/dist/client/assets/{use-entitlements-mX8bg5XG.js → use-entitlements-u-J4FrTi.js} +1 -1
  317. package/dist/client/assets/{use-fast-preview-draft-url-DrTS3dt5.js → use-fast-preview-draft-url-BxKgK3r2.js} +1 -1
  318. package/dist/client/assets/{use-file-configs-z22DUi0c.js → use-file-configs-BbIIeRpu.js} +1 -1
  319. package/dist/client/assets/{use-id-selection-Bg3vd8Ma.js → use-id-selection-CUD8oDcN.js} +1 -1
  320. package/dist/client/assets/{use-inbox-feed-r_crN8AB.js → use-inbox-feed-CcPQJJTK.js} +1 -1
  321. package/dist/client/assets/{use-infinite-scroll-CvgjtV8K.js → use-infinite-scroll-CfhQVaOS.js} +1 -1
  322. package/dist/client/assets/{use-join-requests-DQ56VmKG.js → use-join-requests-CkLvGQO2.js} +1 -1
  323. package/dist/client/assets/{use-main-panel-tabs-BzQUBql-.js → use-main-panel-tabs-DyYS88nS.js} +1 -1
  324. package/dist/client/assets/{use-mcp-auth-status-D0LzrG1g.js → use-mcp-auth-status-KGdhyspi.js} +1 -1
  325. package/dist/client/assets/{use-mcp-client-CNXpOf52.js → use-mcp-client-Bh7kEUBS.js} +1 -1
  326. package/dist/client/assets/{use-mcp-prompts-COb2l8gW.js → use-mcp-prompts-BvdRcLVu.js} +1 -1
  327. package/dist/client/assets/{use-mcp-tools-fDABrIOV.js → use-mcp-tools-BXarw5nj.js} +1 -1
  328. package/dist/client/assets/{use-mobile-DDy9Znlf.js → use-mobile-Dc6kWu8K.js} +1 -1
  329. package/dist/client/assets/{use-move-blocks-D7WfYgve.js → use-move-blocks-D35xWi_f.js} +1 -1
  330. package/dist/client/assets/{use-navigate-to-agent-B-iTaYhm.js → use-navigate-to-agent-BNznjjAZ.js} +1 -1
  331. package/dist/client/assets/{use-org-fs-8086pm93.js → use-org-fs-DrGQDt6z.js} +1 -1
  332. package/dist/client/assets/{use-org-repo-syncs-BqoQhBbI.js → use-org-repo-syncs-CJN2n862.js} +1 -1
  333. package/dist/client/assets/{use-org-sso-DNEWwtoA.js → use-org-sso-3rJKFGHZ.js} +1 -1
  334. package/dist/client/assets/{use-organization-settings-488vpN0c.js → use-organization-settings-Dw2wmQuO.js} +1 -1
  335. package/dist/client/assets/{use-project-native-view-presence-C27ltBxd.js → use-project-native-view-presence-BNwJJKFa.js} +1 -1
  336. package/dist/client/assets/{use-project-scope-Dqnjf5Fg.js → use-project-scope-BbUTPXSS.js} +1 -1
  337. package/dist/client/assets/{use-recent-apps-2cMLzs_u.js → use-recent-apps-BkGr3MbC.js} +1 -1
  338. package/dist/client/assets/{use-reports-diagnostic-JXB8tUrM.js → use-reports-diagnostic-CnV_YMfp.js} +1 -1
  339. package/dist/client/assets/{use-sandbox-events-D9uSNLH2.js → use-sandbox-events-C8uDi6Yt.js} +1 -1
  340. package/dist/client/assets/{use-secrets-Bj9oVJrr.js → use-secrets-CYyoVB7k.js} +1 -1
  341. package/dist/client/assets/{use-section-preview-base-DoOLobhv.js → use-section-preview-base-DqcwcHAy.js} +1 -1
  342. package/dist/client/assets/{use-sidebar-collapsed-CSXlwHC3.js → use-sidebar-collapsed-CGsrtxLO.js} +1 -1
  343. package/dist/client/assets/{use-tags-CZ8FU88Q.js → use-tags-D570CleN.js} +1 -1
  344. package/dist/client/assets/{use-task-board-analytics-S9D-SUGj.js → use-task-board-analytics-DCDiNKaK.js} +1 -1
  345. package/dist/client/assets/{use-task-board-events-CuH-inlF.js → use-task-board-events-DUIQmo3-.js} +1 -1
  346. package/dist/client/assets/{use-task-board-item-prs-DuTkhVPp.js → use-task-board-item-prs-CG0dFrGw.js} +1 -1
  347. package/dist/client/assets/{use-task-board-items-BNRTDOsU.js → use-task-board-items-BB9JhdmM.js} +1 -1
  348. package/dist/client/assets/{use-task-board-prompts-CTcrXcvj.js → use-task-board-prompts-DTmkMV_c.js} +1 -1
  349. package/dist/client/assets/{use-task-metadata-BvTVrzAT.js → use-task-metadata-qW9LtgU4.js} +1 -1
  350. package/dist/client/assets/{use-thread-outputs-COaP8znq.js → use-thread-outputs-CtFiUcL7.js} +1 -1
  351. package/dist/client/assets/{use-voice-input-miWnQR-2.js → use-voice-input-DyZTYy5g.js} +1 -1
  352. package/dist/client/assets/useInfiniteQuery-BuWYzJlw.js +1 -0
  353. package/dist/client/assets/{useQueries-BYTcJkC-.js → useQueries-1XxIGeEN.js} +1 -1
  354. package/dist/client/assets/useSuspenseInfiniteQuery-BofrdpH6.js +1 -0
  355. package/dist/client/assets/{users-CkCjBxij.js → users-I0fvIaz3.js} +1 -1
  356. package/dist/client/assets/{utils-Cugj1NVM.js → utils-Pt7-9-Ev.js} +1 -1
  357. package/dist/client/assets/{variant-calendar-CumR4poM.js → variant-calendar-WNfoLO6H.js} +1 -1
  358. package/dist/client/assets/{variant-matcher-override-CA2qg3Y9.js → variant-matcher-override-BZrGhjnT.js} +1 -1
  359. package/dist/client/assets/{view-header-CNnF9Sbv.js → view-header-D7Xjp31c.js} +1 -1
  360. package/dist/client/assets/{virtual-mcp-NII7Lu6q.js → virtual-mcp-CSkG36xb.js} +1 -1
  361. package/dist/client/assets/{watch-sse-pool-2U2aYEEI.js → watch-sse-pool-B9yUO9oy.js} +1 -1
  362. package/dist/client/index.html +1 -1
  363. package/dist/server/server.js +2 -2
  364. package/package.json +1 -1
  365. package/dist/client/assets/agent-app-z2dEAE0c.js +0 -1
  366. package/dist/client/assets/agent-deck-oSNNh6Oq.js +0 -1
  367. package/dist/client/assets/agent-experiments-DSDO0e_Q.js +0 -1
  368. package/dist/client/assets/agent-library-BL3gqRVT.js +0 -1
  369. package/dist/client/assets/agent-library-file-qyRRAu7t.js +0 -1
  370. package/dist/client/assets/agent-overview-D-M__QCC.js +0 -1
  371. package/dist/client/assets/agent-settings-J3n5UPp_.js +0 -1
  372. package/dist/client/assets/agent-site-editor-code-BaufV44m.js +0 -2
  373. package/dist/client/assets/agent-site-editor-content-BZesN91A.js +0 -1
  374. package/dist/client/assets/agent-site-editor-preview-n4h_ozj2.js +0 -1
  375. package/dist/client/assets/agent-view-xa9IiygI.js +0 -1
  376. package/dist/client/assets/api-keys-B7PbIf1K.js +0 -1
  377. package/dist/client/assets/library-D_ryD5pc.js +0 -1
  378. package/dist/client/assets/project-reports-C2rrdScO.js +0 -1
  379. package/dist/client/assets/project-tasks-BIUh6BbU.js +0 -1
  380. package/dist/client/assets/reports-qs02DwnV.js +0 -1
  381. package/dist/client/assets/repositories-CHJClbl6.js +0 -1
  382. package/dist/client/assets/route-xJV1Kwll.js +0 -1
  383. package/dist/client/assets/settings-tab-S0xeJTM-.js +0 -1
  384. package/dist/client/assets/site-editor-BUp_Zz62.js +0 -1
  385. package/dist/client/assets/tasks-B6kmgmmz.js +0 -1
  386. package/dist/client/assets/use-ask-in-chat-4DqUxBJG.js +0 -1
  387. package/dist/client/assets/use-blocks-v8-project-DHH8umJ9.js +0 -1
  388. package/dist/client/assets/useInfiniteQuery-DqQNqcJl.js +0 -1
  389. package/dist/client/assets/useSuspenseInfiniteQuery-0A6saVT8.js +0 -1
@@ -1 +1 @@
1
- import{r as s,cA as F,cB as L,j as c,fR as T,cG as y,cE as b,fQ as q,cH as E,fS as _,ev as K,cT as w,cM as U,cX as V}from"./index-Dd5hidCj.js";var I="Radio",[H,P]=w(I),[z,X]=H(I),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(g,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var G="RadioIndicator",S=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=X(G,o);return c.jsx(K,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});S.displayName=G;var Q="RadioBubbleInput",g=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});g.displayName=Q;function A(t){return t?"checked":"unchecked"}var W=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Y]=w(C,[_,P]),j=_(),N=P(),[J,Z]=Y(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=F(R),[h,x]=L({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(J,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(T,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{W.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(q,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",B=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(S,{...e,...n,ref:d})});B.displayName=$;var oe=D,re=O,te=B;export{re as I,oe as R,te as a};
1
+ import{r as s,cA as F,cB as L,j as c,fR as T,cG as y,cE as b,fQ as q,cH as E,fS as _,ev as K,cT as w,cM as U,cX as V}from"./index-DVvmeJMJ.js";var I="Radio",[H,P]=w(I),[z,X]=H(I),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(g,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var G="RadioIndicator",S=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=X(G,o);return c.jsx(K,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});S.displayName=G;var Q="RadioBubbleInput",g=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});g.displayName=Q;function A(t){return t?"checked":"unchecked"}var W=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Y]=w(C,[_,P]),j=_(),N=P(),[J,Z]=Y(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=F(R),[h,x]=L({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(J,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(T,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{W.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(q,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",B=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(S,{...e,...n,ref:d})});B.displayName=$;var oe=D,re=O,te=B;export{re as I,oe as R,te as a};
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,by as Yt,aj as as,K as bt,i as Et,a5 as As,m as ot,gv as _s,o as cs,h as Ks,bC as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bW as Js,h5 as Gs,T as Qs,W as Ys,I as Xt}from"./index-Dd5hidCj.js";import{S as Ws}from"./search-input-BG8rdrCe.js";import{E as Ht}from"./empty-state-Cfajk5TO.js";import{R as Xs}from"./require-capability-Dlaolf-u.js";import{f as js}from"./pair-D5jYRLOi.js";import{u as ts}from"./use-connection-e-hq9vT7.js";import{g as Ps}from"./connection-slug-CQeaB-ii.js";import{B as Lt}from"./badge-D7MkXlu5.js";import{P as ds,a as ms,b as us}from"./popover-4z9eDM-9.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-Dyh2h0NV.js";import{G as fs,e as Ut,bY as el,aP as Ns,Y as tl}from"./agent-icon-CMiKlX_f.js";import{i as sl}from"./Key01-D9P3FMiY.js";import{i as ll}from"./Play-C4cdDhC3.js";import{MonacoCodeEditor as bs}from"./monaco-editor-BZNPSifL.js";import{u as rl}from"./use-mcp-client-CNXpOf52.js";import{a as il}from"./repository-binding-DV3kkbZ_.js";import{n as Ot}from"./LinkBroken01-B3rPhu7D.js";import{c as ol}from"./SwitchHorizontal01-BTdsV_bI.js";import{s as nl}from"./Plus-Bcl7avNA.js";import{s as al}from"./Trash01-CgWosjFE.js";import{M as zt}from"./multi-select-DL8hrKQv.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-iwVnUZSM.js";import{e as ys,T as cl}from"./time-range-picker-VzZM-nq4.js";import{T as dl}from"./textarea-hEv7rKyL.js";import{C as Ds}from"./collection-tabs-CzJgsFmP.js";import{S as ml}from"./switch-BZMVD_xA.js";import{L as ul}from"./label-BZoCdZa0.js";import{I as It}from"./integration-icon-DHvbSqTM.js";import{A as fl,a as xl,b as pl}from"./alert-TFdEDT2O.js";import{K as gt}from"./monitoring-stats-row-C7sD_prp.js";import{b as Bt}from"./use-entitlements-mX8bg5XG.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-DTCZxxw9.js";import{u as wl}from"./useSuspenseInfiniteQuery-0A6saVT8.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DUtlbS4K.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-C9boQ5tZ.js";import{n as ss,t as ls}from"./ChevronUp-Dh24Sq_k.js";import{u as Os}from"./use-id-selection-Bg3vd8Ma.js";import{u as Fs}from"./use-infinite-scroll-CvgjtV8K.js";import{u as Il}from"./useInfiniteQuery-DqQNqcJl.js";import{g as Tl}from"./task-status-CLkNYnsS.js";import{u as kl,d as Ml}from"./use-automations-akR-tcRi.js";import{A as _l}from"./automation-runs-BfKHSay9.js";import{i as Pl}from"./ArrowLeft-BYhfnAa5.js";import{E as Cs}from"./empty-state-Ccl8OC-j.js";import{O as $s}from"./watch-sse-pool-2U2aYEEI.js";import{t as Dl}from"./task-key-BCHdFiOO.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-D_UJY8n7.js";import{F as $l}from"./feature-gate-TKaLsYFc.js";import"./SearchMd-DRs-Ld4Z.js";import"./access-gate-DbqD_EAv.js";import"./capability-load-error-cDMC87PI.js";import"./Tool01-BWMOxR8v.js";import"./collapsible-BF7fiKEY.js";import"./use-copy-DJs5balG.js";import"./usage-stats-iRJ2oM0y.js";import"./tool-namespace-EVeG8Fs5.js";import"./form-CIThj_T9.js";import"./utils-CVEq3hMx.js";import"./markdown-ZlzKtNkL.js";import"./chat-context-DgCR75CY.js";import"./autosend-CGJPJD3U.js";import"./thread-route-B_swkleJ.js";import"./use-project-scope-Dqnjf5Fg.js";import"./thread-intent-DMhB2sy4.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./use-ai-providers-DQAzIwY2.js";import"./use-decopilot-events-CtnAXgLl.js";import"./use-organization-settings-488vpN0c.js";import"./schema-paIXrOCY.js";import"./task-board-BZ6FZl9j.js";import"./use-mobile-DDy9Znlf.js";import"./shell-layout-Dcfsytx-.js";import"./Globe04-ceJSWDa3.js";import"./UserSquare-BjqAifU8.js";import"./use-deployment-admin-mLJFncG4.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-TMdj_yIm.js";import"./CheckCircle-LO8Q7KlB.js";import"./Monitor01-BIy7Jnq0.js";import"./Zap-BJ5eCR1y.js";import"./command-Bh995x5J.js";import"./index-DjpHvK_4.js";import"./project-icon-BC5BTHqT.js";import"./use-navigate-to-agent-B-iTaYhm.js";import"./use-debounced-value-CezJqVSj.js";import"./new-project-dialog-BDUp1HsF.js";import"./repository-picker-DhcwcPzc.js";import"./github-icon--dnMj3-y.js";import"./collection-search-DmyrNuWr.js";import"./ShoppingBag01-BcBJW8Ry.js";import"./legacy-admin-welcome-dialog-BgMnIQY9.js";import"./drawer-BcaULeep.js";import"./required-auth-layout-lVrZieBu.js";import"./use-org-sso-DNEWwtoA.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRFiwN6n.js";import"./types-Mb9DEKKQ.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./AlertCircle-CsPTcN_S.js";import"./use-mcp-prompts-COb2l8gW.js";import"./use-thread-outputs-COaP8znq.js";import"./file-type-icon-D75nksOt.js";import"./index-B57dAAxD.js";import"./ArrowUp-Cv1SmuzD.js";import"./ChevronSelectorVertical-Bo1EsiyQ.js";import"./CreditCard01-B0xYA-L3.js";import"./Minus-BP4M5eUu.js";import"./Sun-oVWnfq_E.js";import"./Upload01-DAMBCMxP.js";import"./Users01-Bt0rcyOL.js";import"./editor-DXF9rwVo.js";import"./auth-TL5_hJeY.js";import"./checkbox-CDdGUfxj.js";import"./index-BdQq_4o_.js";import"./scroll-area-BwaclrCR.js";import"./calendar-J9rCuEM0.js";import"./chart-sO-wf7w_.js";import"./CategoricalChart-B9nv4p9e.js";import"./index-BrihqSoi.js";import"./tooltipContext-CQdoW9wa.js";import"./CartesianChart-1SsRQdZi.js";import"./AreaChart-CPcUCL9A.js";import"./infiniteQueryObserver-C1uWfhgO.js";import"./useQueries-BYTcJkC-.js";import"./ReferenceLine-CZfceFos.js";import"./feature-paywall-DasxziSs.js";import"./plan-ladder-42sSWoBs.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,by as Yt,aj as as,K as bt,i as Et,a5 as As,m as ot,gv as _s,o as cs,h as Ks,bC as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bW as Js,h5 as Gs,T as Qs,W as Ys,I as Xt}from"./index-DVvmeJMJ.js";import{S as Ws}from"./search-input-Cvdta6ZJ.js";import{E as Ht}from"./empty-state-DPWCLNrd.js";import{R as Xs}from"./require-capability-BpMqCrIS.js";import{f as js}from"./pair-BefVcuJk.js";import{u as ts}from"./use-connection-DnLlCwu6.js";import{g as Ps}from"./connection-slug-7qrL1eY0.js";import{B as Lt}from"./badge-FhnYiqmQ.js";import{P as ds,a as ms,b as us}from"./popover-DVbSl4_S.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-BVrosRIK.js";import{G as fs,e as Ut,bY as el,aP as Ns,Y as tl}from"./agent-icon-uDqFfzhf.js";import{i as sl}from"./Key01-BnxP0_QL.js";import{i as ll}from"./Play--aCtxlXx.js";import{MonacoCodeEditor as bs}from"./monaco-editor-ChRuLOCA.js";import{u as rl}from"./use-mcp-client-Bh7kEUBS.js";import{a as il}from"./repository-binding-DJpVzzIq.js";import{n as Ot}from"./LinkBroken01-4XuFjBFS.js";import{c as ol}from"./SwitchHorizontal01-C42vJfgE.js";import{s as nl}from"./Plus-DXpzgENj.js";import{s as al}from"./Trash01-BAWUFhrC.js";import{M as zt}from"./multi-select-HzpZ3y0m.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-CBAbBtbp.js";import{e as ys,T as cl}from"./time-range-picker-BvmuiVyh.js";import{T as dl}from"./textarea-yEyl1P1k.js";import{C as Ds}from"./collection-tabs-C-HhSJ3V.js";import{S as ml}from"./switch-BoeP0_DT.js";import{L as ul}from"./label-DxsI69Ti.js";import{I as It}from"./integration-icon-C9OIwyFH.js";import{A as fl,a as xl,b as pl}from"./alert-gT8z0xwu.js";import{K as gt}from"./monitoring-stats-row-MlJzIKBz.js";import{b as Bt}from"./use-entitlements-u-J4FrTi.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-BPfgeSL4.js";import{u as wl}from"./useSuspenseInfiniteQuery-BofrdpH6.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-BSTYuLMa.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-XIxdhyNo.js";import{n as ss,t as ls}from"./ChevronUp-DlMNWluH.js";import{u as Os}from"./use-id-selection-CUD8oDcN.js";import{u as Fs}from"./use-infinite-scroll-CfhQVaOS.js";import{u as Il}from"./useInfiniteQuery-BuWYzJlw.js";import{g as Tl}from"./task-status-B5Pet88z.js";import{u as kl,d as Ml}from"./use-automations-BVThKMGQ.js";import{A as _l}from"./automation-runs-BJn2B7cC.js";import{i as Pl}from"./ArrowLeft-DpMV6ZsI.js";import{E as Cs}from"./empty-state-DtO_Mv2g.js";import{O as $s}from"./watch-sse-pool-B9yUO9oy.js";import{t as Dl}from"./task-key-BCHdFiOO.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-BHRAsIfi.js";import{F as $l}from"./feature-gate-B_FyKX76.js";import"./SearchMd-CWmEKOOP.js";import"./access-gate-H6si3iA0.js";import"./capability-load-error-YlZMyLIu.js";import"./Tool01-DB3xqZeL.js";import"./collapsible-B2pXVUPn.js";import"./use-copy-DT5ZzrsX.js";import"./usage-stats-Dhf-DrML.js";import"./tool-namespace-CtWbol20.js";import"./form-BTSAyeiz.js";import"./utils-CVEq3hMx.js";import"./markdown-DY1gkJzE.js";import"./chat-context-bTdV0PQS.js";import"./autosend-D-UTWUhf.js";import"./thread-route-C8VqFbkH.js";import"./use-project-scope-BbUTPXSS.js";import"./thread-intent-BNVTtSHt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./use-ai-providers-Cq3xA9Zt.js";import"./use-decopilot-events-B2tjImS_.js";import"./use-organization-settings-Dw2wmQuO.js";import"./schema-CzuWRpLl.js";import"./task-board-D-pfBnAn.js";import"./use-mobile-Dc6kWu8K.js";import"./shell-layout-CU0v0Q3J.js";import"./Globe04-xh_ZOoQS.js";import"./UserSquare-NNxs0RWc.js";import"./use-deployment-admin-CDyLX01_.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-E_Sbr7JC.js";import"./CheckCircle-DSJM5Ipe.js";import"./Monitor01-CVDkBVET.js";import"./Zap-BFWL2aD-.js";import"./command-C4A_k1m6.js";import"./index-DyEEK3cc.js";import"./project-icon-BfdBakvS.js";import"./use-navigate-to-agent-BNznjjAZ.js";import"./use-debounced-value-jJnqowMI.js";import"./new-project-dialog-DNs6nXJU.js";import"./repository-picker-8FkfYDdf.js";import"./github-icon-B_en9n_0.js";import"./collection-search-o_TUN55Q.js";import"./ShoppingBag01-ClDrdJV2.js";import"./legacy-admin-welcome-dialog-DIDvLt4b.js";import"./drawer-DO5xJQb9.js";import"./required-auth-layout-BIQCwVTO.js";import"./use-org-sso-3rJKFGHZ.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CbbHrG36.js";import"./types-DDm1cJJv.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./AlertCircle-C4gtVV8B.js";import"./use-mcp-prompts-BvdRcLVu.js";import"./use-thread-outputs-CtFiUcL7.js";import"./file-type-icon-HeI2BZTs.js";import"./index-DwNl1Km0.js";import"./ArrowUp-BZtzDI6h.js";import"./ChevronSelectorVertical-Y1qRZSrs.js";import"./CreditCard01-DDsAjKey.js";import"./Minus-D8UqNYy4.js";import"./Sun-wXzOhHYv.js";import"./Upload01-CMkGIZuR.js";import"./Users01-DIshv_Ib.js";import"./editor-T1DFIh20.js";import"./auth-DzshLgt0.js";import"./checkbox-Bq5cgSkE.js";import"./index-BdQq_4o_.js";import"./scroll-area-D1j-ZNOk.js";import"./calendar-Dj2F2D9c.js";import"./chart-4euqV-4L.js";import"./CategoricalChart-ysoAqy8Y.js";import"./index-D1ksSwz3.js";import"./tooltipContext-qYwD6VMh.js";import"./CartesianChart-T_ULwjNy.js";import"./AreaChart-DoDuLI5t.js";import"./infiniteQueryObserver-Depn9DGH.js";import"./useQueries-1XxIGeEN.js";import"./ReferenceLine-CyROiAPM.js";import"./feature-paywall-jPIGYZOc.js";import"./plan-ladder-BIrfRC9w.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Is(s){return s.trim()?s.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{A as H,t as U,a9 as R,C as Z,aa as X,E as S,ab as J,ac as Q,o as z}from"./usage-stats-iRJ2oM0y.js";import{gp as M,hb as C,go as P,hc as x,hd as L,he as V,hf as K,hg as _,gr as A,fh as N,r as p,bR as $}from"./index-Dd5hidCj.js";import{C as k}from"./index-B_wKEr5f.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=R(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});S.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=R(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});S.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
1
+ import{A as H,t as U,a9 as R,C as Z,aa as X,E as S,ab as J,ac as Q,o as z}from"./usage-stats-Dhf-DrML.js";import{gp as M,hb as C,go as P,hc as x,hd as L,he as V,hf as K,hg as _,gr as A,fh as N,r as p,bR as $}from"./index-DVvmeJMJ.js";import{C as k}from"./index-qsOMiawp.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=R(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});S.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=R(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});S.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
@@ -1 +1 @@
1
- import{r as i,j as t,cG as o}from"./index-Dd5hidCj.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
+ import{r as i,j as t,cG as o}from"./index-DVvmeJMJ.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 +1 @@
1
- import{r as n,cD as q,eq as R,er as Ee,es as ke,et as Se,aP as xe,eu as j}from"./index-Dd5hidCj.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
1
+ import{r as n,cD as q,eq as R,er as Ee,es as ke,et as Se,aP as xe,eu as j}from"./index-DVvmeJMJ.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
@@ -1 +1 @@
1
- import{c as L,a4 as A,aR as le,m as B,j as r,R as ae,r as R,b as $,t as z,h as H,w as U,x as V,v as Q,D as W,d as X,E as G,aS as ne,B as Y}from"./index-Dd5hidCj.js";import{n as oe}from"./ArrowUp-Cv1SmuzD.js";import{d as ie,b as Z,f as ce,u as de,T as me,A as ue,o as fe,p as pe,c as xe,q as he,v as ge,x as be,L as je}from"./chat-context-DgCR75CY.js";import{s as ye,g as J,d as ve}from"./tool-namespace-EVeG8Fs5.js";import{b as F,T as we,a as Ne,c as Se}from"./tooltip-Dyh2h0NV.js";import{e as Ce,b as Te,a as Pe,D as ke}from"./drawer-BcaULeep.js";import{C as Ee}from"./collection-search-DmyrNuWr.js";import{u as De}from"./use-mobile-DDy9Znlf.js";import{u as Me}from"./use-mcp-client-CNXpOf52.js";import{u as _e,g as Ie}from"./use-mcp-prompts-COb2l8gW.js";import{h as Le,P as Re}from"./usage-stats-iRJ2oM0y.js";import{T as Be,c as Oe,b as $e,d as Ae,H as Fe}from"./input-B-TiyPUk.js";import{u as ze,a as He,S as Ge,M as q}from"./pair-D5jYRLOi.js";import{a as qe}from"./autosend-CGJPJD3U.js";import{u as Ke}from"./thread-intent-DMhB2sy4.js";import{N as Ue}from"./index-BF9ePDqU.js";import{i as Ve}from"./LinkBroken01-B3rPhu7D.js";import{f as ee}from"./agent-icon-CMiKlX_f.js";import{d as Qe}from"./use-entitlements-mX8bg5XG.js";import{u as We}from"./use-deco-credits-CHRRrI8G.js";import{F as Xe}from"./feature-paywall-DasxziSs.js";import{i as Ye}from"./AlertCircle-CsPTcN_S.js";const K=3,te="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Ze="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function se(t){const e=L.c(46),{item:l,onSelect:a,isLoading:s,isDisabled:n,variant:d}=t,o=d===void 0?"pill":d,{prompt:i}=l;let m;if(e[0]!==i._meta||e[1]!==i.name||e[2]!==i.title){const P=J(i._meta);m=i.title??ve(i.name,P),e[0]=i._meta,e[1]=i.name,e[2]=i.title,e[3]=m}else m=e[3];const c=m,f=i.description||null;if(o==="card"){let P;e[4]!==a||e[5]!==i?(P=()=>a(i),e[4]=a,e[5]=i,e[6]=P):P=e[6];const M=n||s,_=s&&"bg-accent/40",k=(n||s)&&"cursor-not-allowed opacity-50";let E;e[7]!==_||e[8]!==k?(E=B(Ze,"hover:bg-accent text-foreground",_,k),e[7]=_,e[8]=k,e[9]=E):E=e[9];let x;e[10]!==c?(x=r.jsx("span",{className:"font-medium truncate capitalize",children:c}),e[10]=c,e[11]=x):x=e[11];let w;e[12]!==s?(w=s&&r.jsx(H,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let p;e[14]!==x||e[15]!==w?(p=r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x,w]}),e[14]=x,e[15]=w,e[16]=p):p=e[16];let D;e[17]!==f?(D=f&&r.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=D):D=e[18];let I;return e[19]!==p||e[20]!==D||e[21]!==P||e[22]!==M||e[23]!==E?(I=r.jsxs("button",{type:"button",onClick:P,disabled:M,className:E,children:[p,D]}),e[19]=p,e[20]=D,e[21]=P,e[22]=M,e[23]=E,e[24]=I):I=e[24],I}let u;e[25]!==a||e[26]!==i?(u=()=>a(i),e[25]=a,e[26]=i,e[27]=u):u=e[27];const v=n||s,b=s&&"bg-muted/50",N=(n||s)&&"cursor-not-allowed opacity-50";let h;e[28]!==b||e[29]!==N?(h=B(te,"hover:bg-accent hover:text-foreground",b,N),e[28]=b,e[29]=N,e[30]=h):h=e[30];let j;e[31]!==c?(j=r.jsx("span",{className:"capitalize",children:c}),e[31]=c,e[32]=j):j=e[32];let S;e[33]!==s?(S=s&&r.jsx(H,{size:"xs"}),e[33]=s,e[34]=S):S=e[34];let y;e[35]!==u||e[36]!==v||e[37]!==h||e[38]!==j||e[39]!==S?(y=r.jsx(we,{asChild:!0,children:r.jsxs("button",{type:"button",onClick:u,disabled:v,className:h,children:[j,S]})}),e[35]=u,e[36]=v,e[37]=h,e[38]=j,e[39]=S,e[40]=y):y=e[40];const C=f??c;let g;e[41]!==C?(g=r.jsx(Ne,{side:"top",className:"max-w-xs",children:r.jsx("p",{className:"text-xs",children:C})}),e[41]=C,e[42]=g):g=e[42];let T;return e[43]!==y||e[44]!==g?(T=r.jsxs(Se,{delayDuration:400,children:[y,g]}),e[43]=y,e[44]=g,e[45]=T):T=e[45],T}function Je(t){const e=L.c(61),{items:l,open:a,onOpenChange:s,onSelect:n,loadingPrompt:d}=t,o=$(),[i,m]=R.useState(""),c=!!d;let f;e[0]!==l||e[1]!==i?(f=i.trim()?l.filter(x=>{const w=i.toLowerCase();return x.prompt.name.toLowerCase().includes(w)||(x.prompt.title??"").toLowerCase().includes(w)||(x.prompt.description??"").toLowerCase().includes(w)}):l,e[0]=l,e[1]=i,e[2]=f):f=e[2];const u=f,v=De();let b;e[3]!==u.length||e[4]!==i||e[5]!==o?(b=u.length===0&&r.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:o("chat.iceBreakers.noPromptsMatch",{search:i})}),e[3]=u.length,e[4]=i,e[5]=o,e[6]=b):b=e[6];let N;if(e[7]!==u||e[8]!==c||e[9]!==d?.name||e[10]!==s||e[11]!==n){let x;e[13]!==c||e[14]!==d?.name||e[15]!==s||e[16]!==n?(x=w=>r.jsx(se,{item:w,variant:"card",onSelect:p=>{s(!1),n(p)},isLoading:d?.name===w.prompt.name,isDisabled:c&&d?.name!==w.prompt.name},w.prompt.name),e[13]=c,e[14]=d?.name,e[15]=s,e[16]=n,e[17]=x):x=e[17],N=u.map(x),e[7]=u,e[8]=c,e[9]=d?.name,e[10]=s,e[11]=n,e[12]=N}else N=e[12];let h;e[18]!==b||e[19]!==N?(h=r.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[b,N]})}),e[18]=b,e[19]=N,e[20]=h):h=e[20];const j=h;let S;e[21]!==o?(S=o("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=o,e[22]=S):S=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=x=>{x.key==="Escape"&&m("")},e[23]=y):y=e[23];let C;e[24]!==i||e[25]!==S?(C=r.jsx(Ee,{value:i,onChange:m,placeholder:S,onKeyDown:y}),e[24]=i,e[25]=S,e[26]=C):C=e[26];const g=C;if(v){let x;e[27]!==o?(x=o("chat.iceBreakers.allPromptsTitle"),e[27]=o,e[28]=x):x=e[28];let w;e[29]!==x?(w=r.jsx(Ce,{className:"sr-only",children:r.jsx(Te,{children:x})}),e[29]=x,e[30]=w):w=e[30];let p;e[31]!==o?(p=o("chat.iceBreakers.promptsLabel"),e[31]=o,e[32]=p):p=e[32];let D;e[33]!==p?(D=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:p})}),e[33]=p,e[34]=D):D=e[34];let I;e[35]!==j||e[36]!==g||e[37]!==D||e[38]!==w?(I=r.jsxs(Pe,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,D,g,j]}),e[35]=j,e[36]=g,e[37]=D,e[38]=w,e[39]=I):I=e[39];let O;return e[40]!==s||e[41]!==a||e[42]!==I?(O=r.jsx(F,{delayDuration:400,children:r.jsx(ke,{open:a,onOpenChange:s,children:I})}),e[40]=s,e[41]=a,e[42]=I,e[43]=O):O=e[43],O}let T;e[44]!==o?(T=o("chat.iceBreakers.allPromptsTitle"),e[44]=o,e[45]=T):T=e[45];let P;e[46]!==T?(P=r.jsx(U,{className:"sr-only",children:r.jsx(V,{children:T})}),e[46]=T,e[47]=P):P=e[47];let M;e[48]!==o?(M=o("chat.iceBreakers.promptsLabel"),e[48]=o,e[49]=M):M=e[49];let _;e[50]!==M?(_=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:M})}),e[50]=M,e[51]=_):_=e[51];let k;e[52]!==j||e[53]!==g||e[54]!==_||e[55]!==P?(k=r.jsxs(Q,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[P,_,g,j]}),e[52]=j,e[53]=g,e[54]=_,e[55]=P,e[56]=k):k=e[56];let E;return e[57]!==s||e[58]!==a||e[59]!==k?(E=r.jsx(F,{delayDuration:400,children:r.jsx(W,{open:a,onOpenChange:s,children:k})}),e[57]=s,e[58]=a,e[59]=k,e[60]=E):E=e[60],E}function et(t){const e=L.c(30),{items:l,onSelect:a,loadingPrompt:s,className:n}=t,d=$(),[o,i]=R.useState(!1);if(l.length===0)return null;let m,c,f,u,v;if(e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==a||e[4]!==d){const j=l.slice(0,K),S=l.slice(K),y=!!s;let C;e[10]!==y||e[11]!==s?.name||e[12]!==a?(C=T=>r.jsx(se,{item:T,onSelect:a,isLoading:s?.name===T.prompt.name,isDisabled:y&&s?.name!==T.prompt.name},T.prompt.name),e[10]=y,e[11]=s?.name,e[12]=a,e[13]=C):C=e[13];const g=j.map(C);m=F,v=400,e[14]!==n?(c=B("w-full flex flex-wrap gap-2 justify-center",n),e[14]=n,e[15]=c):c=e[15],f=g,u=S.length>0&&r.jsx("button",{type:"button",disabled:y,onClick:()=>i(!0),className:B(te,"hover:bg-accent hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:d("chat.iceBreakers.moreButton",{count:S.length})}),e[0]=n,e[1]=l,e[2]=s,e[3]=a,e[4]=d,e[5]=m,e[6]=c,e[7]=f,e[8]=u,e[9]=v}else m=e[5],c=e[6],f=e[7],u=e[8],v=e[9];let b;e[16]!==c||e[17]!==f||e[18]!==u?(b=r.jsxs("div",{className:c,children:[f,u]}),e[16]=c,e[17]=f,e[18]=u,e[19]=b):b=e[19];let N;e[20]!==l||e[21]!==s||e[22]!==o||e[23]!==a?(N=r.jsx(Je,{items:l,open:o,onOpenChange:i,onSelect:a,loadingPrompt:s}),e[20]=l,e[21]=s,e[22]=o,e[23]=a,e[24]=N):N=e[24];let h;return e[25]!==m||e[26]!==v||e[27]!==b||e[28]!==N?(h=r.jsxs(m,{delayDuration:v,children:[b,N]}),e[25]=m,e[26]=v,e[27]=b,e[28]=N,e[29]=h):h=e[29],h}function tt(){return null}function st(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function rt(t){const e=L.c(31),{connectionId:l}=t,a=$(),{sendMessage:s}=Z(),{org:n}=A();let d;e[0]!==l||e[1]!==n.id||e[2]!==n.slug?(d={connectionId:l,orgId:n.id,orgSlug:n.slug},e[0]=l,e[1]=n.id,e[2]=n.slug,e[3]=d):d=e[3];const o=Me(d);let i;e[4]!==o?(i={client:o,staleTime:6e4},e[4]=o,e[5]=i):i=e[5];const{data:m}=_e(i);let c;e[6]!==m?.prompts?(c=m?.prompts??[],e[6]=m?.prompts,e[7]=c):c=e[7];const f=c;let u;e[8]!==f?(u=f.map(lt),e[8]=f,e[9]=u):u=e[9];const v=u;let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b={stage:"idle"},e[10]=b):b=e[10];const[N,h]=R.useReducer(st,b),[j,S]=R.useState(null);let y;e[11]!==o||e[12]!==s||e[13]!==a?(y=async(p,D)=>{if(!o){z.error(a("chat.iceBreakers.mcpClientNotAvailable")),h({type:"RESET"});return}try{const I=await Ie(o,p.name,D);h({type:"RESET"});const O={type:"doc",content:[{type:"paragraph",content:[Le({id:p.name,name:ye(p.name,J(p._meta)),metadata:I.messages,char:"/",kind:"prompt",args:D}),{type:"text",text:" "}]}]};await s(O)}catch(I){console.error("[ice-breakers] Failed to fetch prompt:",I),z.error(a("chat.iceBreakers.failedToLoadPrompt")),h({type:"RESET"})}},e[11]=o,e[12]=s,e[13]=a,e[14]=y):y=e[14];const C=y;let g;e[15]!==C?(g=async p=>{if(p.arguments&&p.arguments.length>0){h({type:"SELECT_PROMPT",prompt:p}),S(p);return}h({type:"START_LOADING",prompt:p}),await C(p)},e[15]=C,e[16]=g):g=e[16];const T=g;let P;e[17]!==j||e[18]!==C?(P=async p=>{j&&(h({type:"START_LOADING",prompt:j,arguments:p}),S(null),await C(j,p))},e[17]=j,e[18]=C,e[19]=P):P=e[19];const M=P;if(v.length===0)return null;const _=N.stage==="loading"?N.prompt:null;let k;e[20]!==T||e[21]!==v||e[22]!==_?(k=r.jsx(et,{items:v,onSelect:T,loadingPrompt:_}),e[20]=T,e[21]=v,e[22]=_,e[23]=k):k=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{S(null),h({type:"RESET"})},e[24]=E):E=e[24];let x;e[25]!==j||e[26]!==M?(x=r.jsx(Re,{prompt:j,setPrompt:E,onSubmit:M}),e[25]=j,e[26]=M,e[27]=x):x=e[27];let w;return e[28]!==k||e[29]!==x?(w=r.jsxs(r.Fragment,{children:[k,x]}),e[28]=k,e[29]=x,e[30]=w):w=e[30],w}function lt(t){return{prompt:t}}function at(t){const e=L.c(13),{className:l}=t,{selectedVirtualMcp:a}=ie(),{org:s}=A();let n;e[0]!==s.id?(n=le(s.id),e[0]=s.id,e[1]=n):n=e[1];const d=n.id,o=a?.id??d;let i;e[2]!==l?(i=B("w-full @container",l),e[2]=l,e[3]=i):i=e[3];const m=o??"default";let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(tt,{}),e[4]=c):c=e[4];let f;e[5]!==o?(f=r.jsx(rt,{connectionId:o}),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==m||e[8]!==f?(u=r.jsx(ae,{fallback:null,children:r.jsx(R.Suspense,{fallback:c,children:f},m)}),e[7]=m,e[8]=f,e[9]=u):u=e[9];let v;return e[10]!==i||e[11]!==u?(v=r.jsx("div",{className:i,children:u}),e[10]=i,e[11]=u,e[12]=v):v=e[12],v}function nt(t){let e=0;for(const l of t)for(const a of l.parts??[]){const s=a;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function ot(){const t=L.c(8),{openPanel:e}=qe(),l=Ke(),a=ce()?.messages??[],s=de()?.taskId??null;let n;t[0]!==a?(n=nt(a),t[0]=a,t[1]=n):n=t[1];const d=n,o=R.useRef(null),i=R.useRef(null);let m,c;t[2]!==d||t[3]!==l||t[4]!==e||t[5]!==s?(m=()=>{if(!d||!s)return;const f=`${s}:${d}`;i.current!==f&&(i.current=f,l?.refreshThreadMetadata(s)),o.current!==s&&(o.current=s,e("site-editor"))},c=[d,s,e,l],t[2]=d,t[3]=l,t[4]=e,t[5]=s,t[6]=m,t[7]=c):(m=t[6],c=t[7]),R.useEffect(m,c)}function re(t){return`deco-credits-empty-dismissed:${t}`}function Ft(t){try{return localStorage.getItem(re(t))==="1"}catch{return!1}}function it(){const t=L.c(56),e=$(),{org:l}=A(),a=Qe("credits"),s=X(),{decoKeyId:n}=We(),[d,o]=R.useState(!0);let i;t[0]!==l.id?(i=()=>{G("credits_empty_state_dismissed",{organization_id:l.id}),o(!1);try{localStorage.setItem(re(l.id),"1")}catch{}},t[0]=l.id,t[1]=i):i=t[1];const m=i;let c,f;if(t[2]!==d||t[3]!==l.id?(c=()=>{d&&G("credits_empty_state_shown",{organization_id:l.id})},f=[d,l.id],t[2]=d,t[3]=l.id,t[4]=c,t[5]=f):(c=t[4],f=t[5]),R.useEffect(c,f),!d)return null;if(!a){let p;t[6]!==e?(p=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=p):p=t[7];let D;t[8]!==p?(D={title:p},t[8]=p,t[9]=D):D=t[9];let I;return t[10]!==m||t[11]!==D?(I=r.jsx(Xe,{feature:"chat",copy:D,onDismiss:m}),t[10]=m,t[11]=D,t[12]=I):I=t[12],I}let u;t[13]!==m?(u=p=>!p&&m(),t[13]=m,t[14]=u):u=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=v):v=t[15];let b;t[16]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:r.jsx(ee,{size:20,className:"text-warning"})}),t[16]=b):b=t[16];let N;t[17]!==e?(N=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=N):N=t[18];let h;t[19]!==N?(h=r.jsx(V,{className:"text-lg font-semibold",children:N}),t[19]=N,t[20]=h):h=t[20];let j;t[21]!==e?(j=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=j):j=t[22];let S;t[23]!==j?(S=r.jsx(ne,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:j}),t[23]=j,t[24]=S):S=t[24];let y;t[25]!==h||t[26]!==S?(y=r.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[v,r.jsxs(U,{className:"relative gap-3",children:[b,r.jsxs("div",{className:"text-center",children:[h,S]})]})]}),t[25]=h,t[26]=S,t[27]=y):y=t[27];let C;t[28]!==n||t[29]!==m?(C=n&&r.jsx("div",{className:"px-6 pb-5",children:r.jsx(Be,{source:"empty_state",onDone:m})}),t[28]=n,t[29]=m,t[30]=C):C=t[30];let g;t[31]!==m||t[32]!==s||t[33]!==l.slug?(g=()=>{s({to:"/$org/settings/ai-providers",params:{org:l.slug}}),m()},t[31]=m,t[32]=s,t[33]=l.slug,t[34]=g):g=t[34];let T;t[35]!==e?(T=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=T):T=t[36];let P;t[37]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx(Ve,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=P):P=t[37];let M;t[38]!==g||t[39]!==T?(M=r.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:g,children:[T,P]}),t[38]=g,t[39]=T,t[40]=M):M=t[40];let _;t[41]!==e?(_=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=_):_=t[42];let k;t[43]!==m||t[44]!==_?(k=r.jsx(Y,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:m,children:_}),t[43]=m,t[44]=_,t[45]=k):k=t[45];let E;t[46]!==M||t[47]!==k?(E=r.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[M,k]}),t[46]=M,t[47]=k,t[48]=E):E=t[48];let x;t[49]!==y||t[50]!==C||t[51]!==E?(x=r.jsxs(Q,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:ct,children:[y,C,E]}),t[49]=y,t[50]=C,t[51]=E,t[52]=x):x=t[52];let w;return t[53]!==x||t[54]!==u?(w=r.jsx(W,{open:!0,onOpenChange:u,children:x}),t[53]=x,t[54]=u,t[55]=w):w=t[55],w}function ct(t){return t.preventDefault()}function dt(t){const e=L.c(6),{balanceDollars:l}=t;let a;e[0]!==l?(a=l.toFixed(2),e[0]=l,e[1]=a):a=e[1];const s=a;let n,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),d=r.jsx(ee,{size:13,className:"text-success"}),e[2]=n,e[3]=d):(n=e[2],d=e[3]);let o;return e[4]!==s?(o=r.jsxs("div",{className:n,children:[d,r.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=o):o=e[5],o}function mt(){const t=L.c(8),{org:e}=A(),l=X();let a;t[0]!==l||t[1]!==e.slug?(a=()=>l({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=l,t[1]=e.slug,t[2]=a):a=t[2];let s,n,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),n=r.jsx(Ye,{size:13,className:"text-warning"}),d=r.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=n,t[5]=d):(s=t[3],n=t[4],d=t[5]);let o;return t[6]!==a?(o=r.jsxs("button",{type:"button",onClick:a,className:s,children:[n,d]}),t[6]=a,t[7]=o):o=t[7],o}function ut(t){const e=L.c(7),{scrollRef:l,sentinelRef:a,hasMoreOlder:s,isFetchingOlder:n,fetchOlderMessages:d}=t;let o,i;e[0]!==d||e[1]!==s||e[2]!==n||e[3]!==l||e[4]!==a?(o=()=>{const m=a.current,c=l.current;if(!m||!c||!s)return;const f=new IntersectionObserver(async u=>{if(!u[0]?.isIntersecting||n||!s)return;const b=c.scrollHeight,N=c.scrollTop;await d(),requestAnimationFrame(()=>{const h=c.scrollHeight;c.scrollTop=N+(h-b)})},{root:c,rootMargin:"200px 0px 0px 0px"});return f.observe(m),()=>f.disconnect()},i=[l,a,s,n,d],e[0]=d,e[1]=s,e[2]=n,e[3]=l,e[4]=a,e[5]=o,e[6]=i):(o=e[5],i=e[6]),R.useEffect(o,i)}function ft(t){const e=L.c(5),{className:l,children:a}=t;let s;e[0]!==l?(s=B("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",l),e[0]=l,e[1]=s):s=e[1];let n;return e[2]!==a||e[3]!==s?(n=r.jsx("div",{className:s,children:a}),e[2]=a,e[3]=s,e[4]=n):n=e[4],n}function pt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-1 min-h-0 overflow-y-auto isolate",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}function xt(t){const e=L.c(2),{children:l}=t;let a;return e[0]!==l?(a=r.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:l}),e[0]=l,e[1]=a):a=e[1],a}function ht(){const t=$(),{messages:e,status:l,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n,isRunInProgress:d}=Z(),{taskId:o}=xe();ot();const i=he(o??""),m=ge(i),c=m.size===0?e:e.filter(g=>!m.has(g.id)),f=be(c,l==="submitted"||l==="streaming"||d),u=f.visible,v=ze(u),b=v.at(-1),h=Ae()*Fe+16,j=R.useRef(null),S=R.useRef(null);ut({scrollRef:j,sentinelRef:S,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n});const y=He({initial:!1}),C=g=>{j.current=g,y.scrollRef(g)};return r.jsx(je.Provider,{value:f,children:r.jsx(Ge,{messages:e,children:r.jsxs("div",{className:"relative h-full w-full min-w-0",children:[r.jsx("div",{ref:C,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:h},children:r.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[r.jsx("div",{ref:S,"aria-hidden":!0,className:"h-px"}),s&&r.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),v.slice(0,-1).map((g,T)=>r.jsx(q,{pair:g,isLastPair:!1,status:T===v.length-1?l:void 0},`pair-${g.user?.id??g.assistant?.id}`))]}),b&&r.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:r.jsx(q,{pair:b,isLastPair:!0,status:l},`pair-${b.user?.id??b.assistant?.id}`)})]})}),!y.isAtBottom&&r.jsx(Y,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:h+8},onClick:()=>{y.scrollToBottom()},children:r.jsx(oe,{size:14})})]})})})}function gt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}const zt=Object.assign(ft,{Main:pt,Messages:ht,EmptyState:xt,Footer:gt,Input:$e,Provider:pe,StreamHost:fe,ActiveTaskStreamSource:ue,ThreadlessStreamSource:me,IceBreakers:at,NoAiProviderEmptyState:Ue,CreditsEmptyState:it,CreditsEyebrow:dt,NoCreditsEyebrow:mt,CreditsExhaustedBanner:Oe});export{zt as C,Ft as w};
1
+ import{c as L,a4 as A,aR as le,m as B,j as r,R as ae,r as R,b as $,t as z,h as H,w as U,x as V,v as Q,D as W,d as X,E as G,aS as ne,B as Y}from"./index-DVvmeJMJ.js";import{n as oe}from"./ArrowUp-BZtzDI6h.js";import{d as ie,b as Z,f as ce,u as de,T as me,A as ue,o as fe,p as pe,c as xe,q as he,v as ge,x as be,L as je}from"./chat-context-bTdV0PQS.js";import{s as ye,g as J,d as ve}from"./tool-namespace-CtWbol20.js";import{b as F,T as we,a as Ne,c as Se}from"./tooltip-BVrosRIK.js";import{e as Ce,b as Te,a as Pe,D as ke}from"./drawer-DO5xJQb9.js";import{C as Ee}from"./collection-search-o_TUN55Q.js";import{u as De}from"./use-mobile-Dc6kWu8K.js";import{u as Me}from"./use-mcp-client-Bh7kEUBS.js";import{u as _e,g as Ie}from"./use-mcp-prompts-BvdRcLVu.js";import{h as Le,P as Re}from"./usage-stats-Dhf-DrML.js";import{T as Be,c as Oe,b as $e,d as Ae,H as Fe}from"./input-aWrDx9Iy.js";import{u as ze,a as He,S as Ge,M as q}from"./pair-BefVcuJk.js";import{a as qe}from"./autosend-D-UTWUhf.js";import{u as Ke}from"./thread-intent-BNVTtSHt.js";import{N as Ue}from"./index-DFaIOW9N.js";import{i as Ve}from"./LinkBroken01-4XuFjBFS.js";import{f as ee}from"./agent-icon-uDqFfzhf.js";import{d as Qe}from"./use-entitlements-u-J4FrTi.js";import{u as We}from"./use-deco-credits-BQqUH0BV.js";import{F as Xe}from"./feature-paywall-jPIGYZOc.js";import{i as Ye}from"./AlertCircle-C4gtVV8B.js";const K=3,te="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Ze="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function se(t){const e=L.c(46),{item:l,onSelect:a,isLoading:s,isDisabled:n,variant:d}=t,o=d===void 0?"pill":d,{prompt:i}=l;let m;if(e[0]!==i._meta||e[1]!==i.name||e[2]!==i.title){const P=J(i._meta);m=i.title??ve(i.name,P),e[0]=i._meta,e[1]=i.name,e[2]=i.title,e[3]=m}else m=e[3];const c=m,f=i.description||null;if(o==="card"){let P;e[4]!==a||e[5]!==i?(P=()=>a(i),e[4]=a,e[5]=i,e[6]=P):P=e[6];const M=n||s,_=s&&"bg-accent/40",k=(n||s)&&"cursor-not-allowed opacity-50";let E;e[7]!==_||e[8]!==k?(E=B(Ze,"hover:bg-accent text-foreground",_,k),e[7]=_,e[8]=k,e[9]=E):E=e[9];let x;e[10]!==c?(x=r.jsx("span",{className:"font-medium truncate capitalize",children:c}),e[10]=c,e[11]=x):x=e[11];let w;e[12]!==s?(w=s&&r.jsx(H,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let p;e[14]!==x||e[15]!==w?(p=r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x,w]}),e[14]=x,e[15]=w,e[16]=p):p=e[16];let D;e[17]!==f?(D=f&&r.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=D):D=e[18];let I;return e[19]!==p||e[20]!==D||e[21]!==P||e[22]!==M||e[23]!==E?(I=r.jsxs("button",{type:"button",onClick:P,disabled:M,className:E,children:[p,D]}),e[19]=p,e[20]=D,e[21]=P,e[22]=M,e[23]=E,e[24]=I):I=e[24],I}let u;e[25]!==a||e[26]!==i?(u=()=>a(i),e[25]=a,e[26]=i,e[27]=u):u=e[27];const v=n||s,b=s&&"bg-muted/50",N=(n||s)&&"cursor-not-allowed opacity-50";let h;e[28]!==b||e[29]!==N?(h=B(te,"hover:bg-accent hover:text-foreground",b,N),e[28]=b,e[29]=N,e[30]=h):h=e[30];let j;e[31]!==c?(j=r.jsx("span",{className:"capitalize",children:c}),e[31]=c,e[32]=j):j=e[32];let S;e[33]!==s?(S=s&&r.jsx(H,{size:"xs"}),e[33]=s,e[34]=S):S=e[34];let y;e[35]!==u||e[36]!==v||e[37]!==h||e[38]!==j||e[39]!==S?(y=r.jsx(we,{asChild:!0,children:r.jsxs("button",{type:"button",onClick:u,disabled:v,className:h,children:[j,S]})}),e[35]=u,e[36]=v,e[37]=h,e[38]=j,e[39]=S,e[40]=y):y=e[40];const C=f??c;let g;e[41]!==C?(g=r.jsx(Ne,{side:"top",className:"max-w-xs",children:r.jsx("p",{className:"text-xs",children:C})}),e[41]=C,e[42]=g):g=e[42];let T;return e[43]!==y||e[44]!==g?(T=r.jsxs(Se,{delayDuration:400,children:[y,g]}),e[43]=y,e[44]=g,e[45]=T):T=e[45],T}function Je(t){const e=L.c(61),{items:l,open:a,onOpenChange:s,onSelect:n,loadingPrompt:d}=t,o=$(),[i,m]=R.useState(""),c=!!d;let f;e[0]!==l||e[1]!==i?(f=i.trim()?l.filter(x=>{const w=i.toLowerCase();return x.prompt.name.toLowerCase().includes(w)||(x.prompt.title??"").toLowerCase().includes(w)||(x.prompt.description??"").toLowerCase().includes(w)}):l,e[0]=l,e[1]=i,e[2]=f):f=e[2];const u=f,v=De();let b;e[3]!==u.length||e[4]!==i||e[5]!==o?(b=u.length===0&&r.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:o("chat.iceBreakers.noPromptsMatch",{search:i})}),e[3]=u.length,e[4]=i,e[5]=o,e[6]=b):b=e[6];let N;if(e[7]!==u||e[8]!==c||e[9]!==d?.name||e[10]!==s||e[11]!==n){let x;e[13]!==c||e[14]!==d?.name||e[15]!==s||e[16]!==n?(x=w=>r.jsx(se,{item:w,variant:"card",onSelect:p=>{s(!1),n(p)},isLoading:d?.name===w.prompt.name,isDisabled:c&&d?.name!==w.prompt.name},w.prompt.name),e[13]=c,e[14]=d?.name,e[15]=s,e[16]=n,e[17]=x):x=e[17],N=u.map(x),e[7]=u,e[8]=c,e[9]=d?.name,e[10]=s,e[11]=n,e[12]=N}else N=e[12];let h;e[18]!==b||e[19]!==N?(h=r.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[b,N]})}),e[18]=b,e[19]=N,e[20]=h):h=e[20];const j=h;let S;e[21]!==o?(S=o("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=o,e[22]=S):S=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=x=>{x.key==="Escape"&&m("")},e[23]=y):y=e[23];let C;e[24]!==i||e[25]!==S?(C=r.jsx(Ee,{value:i,onChange:m,placeholder:S,onKeyDown:y}),e[24]=i,e[25]=S,e[26]=C):C=e[26];const g=C;if(v){let x;e[27]!==o?(x=o("chat.iceBreakers.allPromptsTitle"),e[27]=o,e[28]=x):x=e[28];let w;e[29]!==x?(w=r.jsx(Ce,{className:"sr-only",children:r.jsx(Te,{children:x})}),e[29]=x,e[30]=w):w=e[30];let p;e[31]!==o?(p=o("chat.iceBreakers.promptsLabel"),e[31]=o,e[32]=p):p=e[32];let D;e[33]!==p?(D=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:p})}),e[33]=p,e[34]=D):D=e[34];let I;e[35]!==j||e[36]!==g||e[37]!==D||e[38]!==w?(I=r.jsxs(Pe,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,D,g,j]}),e[35]=j,e[36]=g,e[37]=D,e[38]=w,e[39]=I):I=e[39];let O;return e[40]!==s||e[41]!==a||e[42]!==I?(O=r.jsx(F,{delayDuration:400,children:r.jsx(ke,{open:a,onOpenChange:s,children:I})}),e[40]=s,e[41]=a,e[42]=I,e[43]=O):O=e[43],O}let T;e[44]!==o?(T=o("chat.iceBreakers.allPromptsTitle"),e[44]=o,e[45]=T):T=e[45];let P;e[46]!==T?(P=r.jsx(U,{className:"sr-only",children:r.jsx(V,{children:T})}),e[46]=T,e[47]=P):P=e[47];let M;e[48]!==o?(M=o("chat.iceBreakers.promptsLabel"),e[48]=o,e[49]=M):M=e[49];let _;e[50]!==M?(_=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:M})}),e[50]=M,e[51]=_):_=e[51];let k;e[52]!==j||e[53]!==g||e[54]!==_||e[55]!==P?(k=r.jsxs(Q,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[P,_,g,j]}),e[52]=j,e[53]=g,e[54]=_,e[55]=P,e[56]=k):k=e[56];let E;return e[57]!==s||e[58]!==a||e[59]!==k?(E=r.jsx(F,{delayDuration:400,children:r.jsx(W,{open:a,onOpenChange:s,children:k})}),e[57]=s,e[58]=a,e[59]=k,e[60]=E):E=e[60],E}function et(t){const e=L.c(30),{items:l,onSelect:a,loadingPrompt:s,className:n}=t,d=$(),[o,i]=R.useState(!1);if(l.length===0)return null;let m,c,f,u,v;if(e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==a||e[4]!==d){const j=l.slice(0,K),S=l.slice(K),y=!!s;let C;e[10]!==y||e[11]!==s?.name||e[12]!==a?(C=T=>r.jsx(se,{item:T,onSelect:a,isLoading:s?.name===T.prompt.name,isDisabled:y&&s?.name!==T.prompt.name},T.prompt.name),e[10]=y,e[11]=s?.name,e[12]=a,e[13]=C):C=e[13];const g=j.map(C);m=F,v=400,e[14]!==n?(c=B("w-full flex flex-wrap gap-2 justify-center",n),e[14]=n,e[15]=c):c=e[15],f=g,u=S.length>0&&r.jsx("button",{type:"button",disabled:y,onClick:()=>i(!0),className:B(te,"hover:bg-accent hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:d("chat.iceBreakers.moreButton",{count:S.length})}),e[0]=n,e[1]=l,e[2]=s,e[3]=a,e[4]=d,e[5]=m,e[6]=c,e[7]=f,e[8]=u,e[9]=v}else m=e[5],c=e[6],f=e[7],u=e[8],v=e[9];let b;e[16]!==c||e[17]!==f||e[18]!==u?(b=r.jsxs("div",{className:c,children:[f,u]}),e[16]=c,e[17]=f,e[18]=u,e[19]=b):b=e[19];let N;e[20]!==l||e[21]!==s||e[22]!==o||e[23]!==a?(N=r.jsx(Je,{items:l,open:o,onOpenChange:i,onSelect:a,loadingPrompt:s}),e[20]=l,e[21]=s,e[22]=o,e[23]=a,e[24]=N):N=e[24];let h;return e[25]!==m||e[26]!==v||e[27]!==b||e[28]!==N?(h=r.jsxs(m,{delayDuration:v,children:[b,N]}),e[25]=m,e[26]=v,e[27]=b,e[28]=N,e[29]=h):h=e[29],h}function tt(){return null}function st(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function rt(t){const e=L.c(31),{connectionId:l}=t,a=$(),{sendMessage:s}=Z(),{org:n}=A();let d;e[0]!==l||e[1]!==n.id||e[2]!==n.slug?(d={connectionId:l,orgId:n.id,orgSlug:n.slug},e[0]=l,e[1]=n.id,e[2]=n.slug,e[3]=d):d=e[3];const o=Me(d);let i;e[4]!==o?(i={client:o,staleTime:6e4},e[4]=o,e[5]=i):i=e[5];const{data:m}=_e(i);let c;e[6]!==m?.prompts?(c=m?.prompts??[],e[6]=m?.prompts,e[7]=c):c=e[7];const f=c;let u;e[8]!==f?(u=f.map(lt),e[8]=f,e[9]=u):u=e[9];const v=u;let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b={stage:"idle"},e[10]=b):b=e[10];const[N,h]=R.useReducer(st,b),[j,S]=R.useState(null);let y;e[11]!==o||e[12]!==s||e[13]!==a?(y=async(p,D)=>{if(!o){z.error(a("chat.iceBreakers.mcpClientNotAvailable")),h({type:"RESET"});return}try{const I=await Ie(o,p.name,D);h({type:"RESET"});const O={type:"doc",content:[{type:"paragraph",content:[Le({id:p.name,name:ye(p.name,J(p._meta)),metadata:I.messages,char:"/",kind:"prompt",args:D}),{type:"text",text:" "}]}]};await s(O)}catch(I){console.error("[ice-breakers] Failed to fetch prompt:",I),z.error(a("chat.iceBreakers.failedToLoadPrompt")),h({type:"RESET"})}},e[11]=o,e[12]=s,e[13]=a,e[14]=y):y=e[14];const C=y;let g;e[15]!==C?(g=async p=>{if(p.arguments&&p.arguments.length>0){h({type:"SELECT_PROMPT",prompt:p}),S(p);return}h({type:"START_LOADING",prompt:p}),await C(p)},e[15]=C,e[16]=g):g=e[16];const T=g;let P;e[17]!==j||e[18]!==C?(P=async p=>{j&&(h({type:"START_LOADING",prompt:j,arguments:p}),S(null),await C(j,p))},e[17]=j,e[18]=C,e[19]=P):P=e[19];const M=P;if(v.length===0)return null;const _=N.stage==="loading"?N.prompt:null;let k;e[20]!==T||e[21]!==v||e[22]!==_?(k=r.jsx(et,{items:v,onSelect:T,loadingPrompt:_}),e[20]=T,e[21]=v,e[22]=_,e[23]=k):k=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{S(null),h({type:"RESET"})},e[24]=E):E=e[24];let x;e[25]!==j||e[26]!==M?(x=r.jsx(Re,{prompt:j,setPrompt:E,onSubmit:M}),e[25]=j,e[26]=M,e[27]=x):x=e[27];let w;return e[28]!==k||e[29]!==x?(w=r.jsxs(r.Fragment,{children:[k,x]}),e[28]=k,e[29]=x,e[30]=w):w=e[30],w}function lt(t){return{prompt:t}}function at(t){const e=L.c(13),{className:l}=t,{selectedVirtualMcp:a}=ie(),{org:s}=A();let n;e[0]!==s.id?(n=le(s.id),e[0]=s.id,e[1]=n):n=e[1];const d=n.id,o=a?.id??d;let i;e[2]!==l?(i=B("w-full @container",l),e[2]=l,e[3]=i):i=e[3];const m=o??"default";let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(tt,{}),e[4]=c):c=e[4];let f;e[5]!==o?(f=r.jsx(rt,{connectionId:o}),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==m||e[8]!==f?(u=r.jsx(ae,{fallback:null,children:r.jsx(R.Suspense,{fallback:c,children:f},m)}),e[7]=m,e[8]=f,e[9]=u):u=e[9];let v;return e[10]!==i||e[11]!==u?(v=r.jsx("div",{className:i,children:u}),e[10]=i,e[11]=u,e[12]=v):v=e[12],v}function nt(t){let e=0;for(const l of t)for(const a of l.parts??[]){const s=a;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function ot(){const t=L.c(8),{openPanel:e}=qe(),l=Ke(),a=ce()?.messages??[],s=de()?.taskId??null;let n;t[0]!==a?(n=nt(a),t[0]=a,t[1]=n):n=t[1];const d=n,o=R.useRef(null),i=R.useRef(null);let m,c;t[2]!==d||t[3]!==l||t[4]!==e||t[5]!==s?(m=()=>{if(!d||!s)return;const f=`${s}:${d}`;i.current!==f&&(i.current=f,l?.refreshThreadMetadata(s)),o.current!==s&&(o.current=s,e("site-editor"))},c=[d,s,e,l],t[2]=d,t[3]=l,t[4]=e,t[5]=s,t[6]=m,t[7]=c):(m=t[6],c=t[7]),R.useEffect(m,c)}function re(t){return`deco-credits-empty-dismissed:${t}`}function Ft(t){try{return localStorage.getItem(re(t))==="1"}catch{return!1}}function it(){const t=L.c(56),e=$(),{org:l}=A(),a=Qe("credits"),s=X(),{decoKeyId:n}=We(),[d,o]=R.useState(!0);let i;t[0]!==l.id?(i=()=>{G("credits_empty_state_dismissed",{organization_id:l.id}),o(!1);try{localStorage.setItem(re(l.id),"1")}catch{}},t[0]=l.id,t[1]=i):i=t[1];const m=i;let c,f;if(t[2]!==d||t[3]!==l.id?(c=()=>{d&&G("credits_empty_state_shown",{organization_id:l.id})},f=[d,l.id],t[2]=d,t[3]=l.id,t[4]=c,t[5]=f):(c=t[4],f=t[5]),R.useEffect(c,f),!d)return null;if(!a){let p;t[6]!==e?(p=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=p):p=t[7];let D;t[8]!==p?(D={title:p},t[8]=p,t[9]=D):D=t[9];let I;return t[10]!==m||t[11]!==D?(I=r.jsx(Xe,{feature:"chat",copy:D,onDismiss:m}),t[10]=m,t[11]=D,t[12]=I):I=t[12],I}let u;t[13]!==m?(u=p=>!p&&m(),t[13]=m,t[14]=u):u=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=v):v=t[15];let b;t[16]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:r.jsx(ee,{size:20,className:"text-warning"})}),t[16]=b):b=t[16];let N;t[17]!==e?(N=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=N):N=t[18];let h;t[19]!==N?(h=r.jsx(V,{className:"text-lg font-semibold",children:N}),t[19]=N,t[20]=h):h=t[20];let j;t[21]!==e?(j=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=j):j=t[22];let S;t[23]!==j?(S=r.jsx(ne,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:j}),t[23]=j,t[24]=S):S=t[24];let y;t[25]!==h||t[26]!==S?(y=r.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[v,r.jsxs(U,{className:"relative gap-3",children:[b,r.jsxs("div",{className:"text-center",children:[h,S]})]})]}),t[25]=h,t[26]=S,t[27]=y):y=t[27];let C;t[28]!==n||t[29]!==m?(C=n&&r.jsx("div",{className:"px-6 pb-5",children:r.jsx(Be,{source:"empty_state",onDone:m})}),t[28]=n,t[29]=m,t[30]=C):C=t[30];let g;t[31]!==m||t[32]!==s||t[33]!==l.slug?(g=()=>{s({to:"/$org/settings/ai-providers",params:{org:l.slug}}),m()},t[31]=m,t[32]=s,t[33]=l.slug,t[34]=g):g=t[34];let T;t[35]!==e?(T=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=T):T=t[36];let P;t[37]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx(Ve,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=P):P=t[37];let M;t[38]!==g||t[39]!==T?(M=r.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:g,children:[T,P]}),t[38]=g,t[39]=T,t[40]=M):M=t[40];let _;t[41]!==e?(_=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=_):_=t[42];let k;t[43]!==m||t[44]!==_?(k=r.jsx(Y,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:m,children:_}),t[43]=m,t[44]=_,t[45]=k):k=t[45];let E;t[46]!==M||t[47]!==k?(E=r.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[M,k]}),t[46]=M,t[47]=k,t[48]=E):E=t[48];let x;t[49]!==y||t[50]!==C||t[51]!==E?(x=r.jsxs(Q,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:ct,children:[y,C,E]}),t[49]=y,t[50]=C,t[51]=E,t[52]=x):x=t[52];let w;return t[53]!==x||t[54]!==u?(w=r.jsx(W,{open:!0,onOpenChange:u,children:x}),t[53]=x,t[54]=u,t[55]=w):w=t[55],w}function ct(t){return t.preventDefault()}function dt(t){const e=L.c(6),{balanceDollars:l}=t;let a;e[0]!==l?(a=l.toFixed(2),e[0]=l,e[1]=a):a=e[1];const s=a;let n,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),d=r.jsx(ee,{size:13,className:"text-success"}),e[2]=n,e[3]=d):(n=e[2],d=e[3]);let o;return e[4]!==s?(o=r.jsxs("div",{className:n,children:[d,r.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=o):o=e[5],o}function mt(){const t=L.c(8),{org:e}=A(),l=X();let a;t[0]!==l||t[1]!==e.slug?(a=()=>l({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=l,t[1]=e.slug,t[2]=a):a=t[2];let s,n,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),n=r.jsx(Ye,{size:13,className:"text-warning"}),d=r.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=n,t[5]=d):(s=t[3],n=t[4],d=t[5]);let o;return t[6]!==a?(o=r.jsxs("button",{type:"button",onClick:a,className:s,children:[n,d]}),t[6]=a,t[7]=o):o=t[7],o}function ut(t){const e=L.c(7),{scrollRef:l,sentinelRef:a,hasMoreOlder:s,isFetchingOlder:n,fetchOlderMessages:d}=t;let o,i;e[0]!==d||e[1]!==s||e[2]!==n||e[3]!==l||e[4]!==a?(o=()=>{const m=a.current,c=l.current;if(!m||!c||!s)return;const f=new IntersectionObserver(async u=>{if(!u[0]?.isIntersecting||n||!s)return;const b=c.scrollHeight,N=c.scrollTop;await d(),requestAnimationFrame(()=>{const h=c.scrollHeight;c.scrollTop=N+(h-b)})},{root:c,rootMargin:"200px 0px 0px 0px"});return f.observe(m),()=>f.disconnect()},i=[l,a,s,n,d],e[0]=d,e[1]=s,e[2]=n,e[3]=l,e[4]=a,e[5]=o,e[6]=i):(o=e[5],i=e[6]),R.useEffect(o,i)}function ft(t){const e=L.c(5),{className:l,children:a}=t;let s;e[0]!==l?(s=B("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",l),e[0]=l,e[1]=s):s=e[1];let n;return e[2]!==a||e[3]!==s?(n=r.jsx("div",{className:s,children:a}),e[2]=a,e[3]=s,e[4]=n):n=e[4],n}function pt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-1 min-h-0 overflow-y-auto isolate",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}function xt(t){const e=L.c(2),{children:l}=t;let a;return e[0]!==l?(a=r.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:l}),e[0]=l,e[1]=a):a=e[1],a}function ht(){const t=$(),{messages:e,status:l,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n,isRunInProgress:d}=Z(),{taskId:o}=xe();ot();const i=he(o??""),m=ge(i),c=m.size===0?e:e.filter(g=>!m.has(g.id)),f=be(c,l==="submitted"||l==="streaming"||d),u=f.visible,v=ze(u),b=v.at(-1),h=Ae()*Fe+16,j=R.useRef(null),S=R.useRef(null);ut({scrollRef:j,sentinelRef:S,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n});const y=He({initial:!1}),C=g=>{j.current=g,y.scrollRef(g)};return r.jsx(je.Provider,{value:f,children:r.jsx(Ge,{messages:e,children:r.jsxs("div",{className:"relative h-full w-full min-w-0",children:[r.jsx("div",{ref:C,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:h},children:r.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[r.jsx("div",{ref:S,"aria-hidden":!0,className:"h-px"}),s&&r.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),v.slice(0,-1).map((g,T)=>r.jsx(q,{pair:g,isLastPair:!1,status:T===v.length-1?l:void 0},`pair-${g.user?.id??g.assistant?.id}`))]}),b&&r.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:r.jsx(q,{pair:b,isLastPair:!0,status:l},`pair-${b.user?.id??b.assistant?.id}`)})]})}),!y.isAtBottom&&r.jsx(Y,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:h+8},onClick:()=>{y.scrollToBottom()},children:r.jsx(oe,{size:14})})]})})})}function gt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}const zt=Object.assign(ft,{Main:pt,Messages:ht,EmptyState:xt,Footer:gt,Input:$e,Provider:pe,StreamHost:fe,ActiveTaskStreamSource:ue,ThreadlessStreamSource:me,IceBreakers:at,NoAiProviderEmptyState:Ue,CreditsEmptyState:it,CreditsEyebrow:dt,NoCreditsEyebrow:mt,CreditsExhaustedBanner:Oe});export{zt as C,Ft as w};