decocms 4.596.1 → 4.597.1

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 (434) hide show
  1. package/dist/client/assets/{AlertCircle-CMkbvoeN.js → AlertCircle-CYAsQRdT.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DrvGk31z.js → AreaChart-WJ2lLKy4.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BSDOW4A2.js → ArrowLeft-zHVY_XX0.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DHHBvkVn.js → ArrowRight-B6vgPWbg.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DHOdNryJ.js → ArrowUp-CsFg9VL2.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-iWPgFcA1.js → BookOpen01-AamEOlRO.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-uFA7HvYm.js → CartesianChart-BxFiyXVM.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-CQBAXeYw.js → CategoricalChart-DfjY1woJ.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DS6DtxbV.js → CheckCircle-BB00e9u8.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-DS_2vV9U.js → ChevronDown-CD0tZl8C.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-D0NBoFQ0.js → ChevronSelectorVertical-CmQsMnAL.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BsIT1i00.js → ChevronUp-DGDvzrMe.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CtAjK1Nq.js → CreditCard01-W8t7hmzJ.js} +1 -1
  14. package/dist/client/assets/{Eye-C17dMApd.js → Eye-nqlQ004P.js} +1 -1
  15. package/dist/client/assets/{File02-CbFOjoUb.js → File02-o8s5093L.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-8iB0ZMj1.js → Fingerprint04-DY8McBak.js} +1 -1
  17. package/dist/client/assets/{Globe04-Bltr8gRw.js → Globe04-OZ9xS3Lx.js} +1 -1
  18. package/dist/client/assets/{Image01-DO626aWy.js → Image01-DZmu7hyy.js} +1 -1
  19. package/dist/client/assets/{Key01-Cr-iYwx2.js → Key01-CSQOqmIz.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DtCpgUXM.js → LayoutLeft-BSo5LCFE.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-fV6kVrlJ.js → LinkBroken01-BxVMIk5A.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-B_IjbkrY.js → MessageCircle01-D1dT92x6.js} +1 -1
  23. package/dist/client/assets/{Minus-C5_j5JBE.js → Minus-D2jrgo3d.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DHsrHXin.js → Monitor01-COmDHQ1j.js} +1 -1
  25. package/dist/client/assets/{Play-nU4UoQKz.js → Play-JVQd8C8L.js} +1 -1
  26. package/dist/client/assets/{Plus-Bu8dYjTf.js → Plus-CF8KlFVc.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-C5nRukFs.js → ReferenceLine-8082t01S.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CSnYUdRx.js → SearchMd-Cw05gj7E.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-DVZF7bHI.js → ShoppingBag01-Cc2EJvA-.js} +1 -1
  30. package/dist/client/assets/{Sun-BywYlyt4.js → Sun-Bji8LMRX.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-j9pFk8iK.js → SwitchHorizontal01-BSGnkDXI.js} +1 -1
  32. package/dist/client/assets/{Tool01-DAQSjGNg.js → Tool01-BpBS8dw-.js} +1 -1
  33. package/dist/client/assets/{Tooltip-Dp5L1NZc.js → Tooltip-DvEW-S9l.js} +1 -1
  34. package/dist/client/assets/{Trash01-CGA1V9gl.js → Trash01-DXQWI50A.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-BGKW0mh6.js → TrendUp01-CdeGaAD9.js} +1 -1
  36. package/dist/client/assets/{Upload01-Ce7d9Uy2.js → Upload01-BXiTGuBV.js} +1 -1
  37. package/dist/client/assets/{UserCheck01-Bm_tmvVG.js → UserCheck01-DLUgjW3m.js} +1 -1
  38. package/dist/client/assets/{UserSquare-kWKevgdv.js → UserSquare-a_XazovD.js} +1 -1
  39. package/dist/client/assets/{Users01-BYfFhtdK.js → Users01-BpOXj9ap.js} +1 -1
  40. package/dist/client/assets/{XClose-aj1J9clf.js → XClose-DxbjiApV.js} +1 -1
  41. package/dist/client/assets/{Zap-BVwxluJ4.js → Zap-QnlW2BG3.js} +1 -1
  42. package/dist/client/assets/{access-gate-DScvaiQI.js → access-gate-BvopvGmx.js} +1 -1
  43. package/dist/client/assets/{add-connection-dialog-CVmMnTnu.js → add-connection-dialog-DaxWAHW0.js} +1 -1
  44. package/dist/client/assets/agent-app-zt9yWAWY.js +1 -0
  45. package/dist/client/assets/{agent-assets-C1M-73B4.js → agent-assets-B4BoOCbn.js} +1 -1
  46. package/dist/client/assets/{agent-automation-CJuNRjPE.js → agent-automation-D8HHkTDn.js} +1 -1
  47. package/dist/client/assets/{agent-automations-M45BokQz.js → agent-automations-CR47ElS_.js} +1 -1
  48. package/dist/client/assets/{agent-blog-CDbFysVC.js → agent-blog-kn7H8WW9.js} +2 -2
  49. package/dist/client/assets/{agent-blog-post-BtgU5FUJ.js → agent-blog-post-CWEMwEqA.js} +2 -2
  50. package/dist/client/assets/{agent-calendar-Ysm77UBw.js → agent-calendar-DER04lJC.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-r-GJhT_0.js → agent-capabilities-CPNkpGBe.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-CIWMETy6.js → agent-connect-sources-BBjozm2U.js} +1 -1
  53. package/dist/client/assets/agent-deck-DD0U8VAD.js +1 -0
  54. package/dist/client/assets/{agent-e2e-r7rAxMD7.js → agent-e2e-CQFRJ0Om.js} +1 -1
  55. package/dist/client/assets/agent-experiments-Dz3AvJ4-.js +1 -0
  56. package/dist/client/assets/agent-file-CpVkBu0J.js +1 -0
  57. package/dist/client/assets/{agent-hosting-DMdWeVwT.js → agent-hosting-BFGfgXWM.js} +1 -1
  58. package/dist/client/assets/{agent-icon-DFdDsb4O.js → agent-icon-SasBmPrY.js} +1 -1
  59. package/dist/client/assets/agent-library-Cn9MXoTF.js +1 -0
  60. package/dist/client/assets/agent-library-file-CafoXKvT.js +1 -0
  61. package/dist/client/assets/agent-overview-9j5_NkHV.js +1 -0
  62. package/dist/client/assets/{agent-releases-D34D3Svq.js → agent-releases-CctvTAm_.js} +1 -1
  63. package/dist/client/assets/agent-settings-e6iND6rW.js +1 -0
  64. package/dist/client/assets/agent-site-editor-code-Detw-R2f.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-BeFIR9Nd.js +1 -0
  66. package/dist/client/assets/{agent-site-editor-DgdfDIJG.js → agent-site-editor-jPhFhiaS.js} +1 -1
  67. package/dist/client/assets/agent-site-editor-preview-B4G1bvsT.js +1 -0
  68. package/dist/client/assets/agent-view-CHrkfSe7.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-DH3M23m7.js → agent-view-guard-DDiVN0Sq.js} +1 -1
  70. package/dist/client/assets/{ai-providers-cFUS4tVR.js → ai-providers-OuekM_ro.js} +1 -1
  71. package/dist/client/assets/{alert-pc1Ms3qG.js → alert-PbrLNRQ0.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-CRlYKtI9.js → analytics-sections-DWAL7IVe.js} +1 -1
  73. package/dist/client/assets/{api-keys-uQL0a6MN.js → api-keys-CKMEwhf6.js} +1 -1
  74. package/dist/client/assets/api-keys-CtDwFEqi.js +1 -0
  75. package/dist/client/assets/{app-editor-Bggv50md.js → app-editor-aGklcq_V.js} +1 -1
  76. package/dist/client/assets/{asset-utils-DmKXdm_k.js → asset-utils-CJa90ZGO.js} +1 -1
  77. package/dist/client/assets/{auth-Dee7m2i5.js → auth-C---Zkvq.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-Lp4En3zi.js → auth-catchall-DgTfFPJA.js} +1 -1
  79. package/dist/client/assets/{auth-entry-Blex_eHm.js → auth-entry-Bdlo1esb.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-DqNZIMLg.js → auth-split-layout-C7aM0bmC.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-fbN8kdQr.js → authenticate-and-persist-oauth-D1SCK9qV.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-CY66jOSh.js → automation-list-row-CmL2MF72.js} +1 -1
  83. package/dist/client/assets/{automation-runs-C8XowsOe.js → automation-runs-BabYNmi9.js} +1 -1
  84. package/dist/client/assets/{automations-Dfb_nph_.js → automations-CJM7s6OS.js} +1 -1
  85. package/dist/client/assets/{badge-BwjML1Ui.js → badge-BcMIPtVj.js} +1 -1
  86. package/dist/client/assets/{block-document-CLqA1OpC.js → block-document-BBR-lAQh.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-7Y5QFm9x.js → blocks-preview-workspace-context-D-FzlGyh.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-DZtXlWh1.js → blocks-tab-states-CmsgKSWv.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-oQXPBhGk.js → blog-preview-url-DZyvHdU6.js} +1 -1
  90. package/dist/client/assets/{blog-schema-D3xxOZZL.js → blog-schema-DbGoS5dM.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-CFH7RVI2.js → blog-source-gate-BYUxeuY-.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-DigHm4N8.js → blog-view-gate-D1VDGt0q.js} +1 -1
  93. package/dist/client/assets/{buckets-DlSaMEkI.js → buckets-CpBc4NBs.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-C1NaZMTH.js → build-improve-prompt-doc-DsNhI5c0.js} +1 -1
  95. package/dist/client/assets/{calendar-khB6XOc2.js → calendar-oyktWjjy.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-BrEArsQc.js → capability-load-error-CZr_hpNK.js} +1 -1
  97. package/dist/client/assets/{category-editor-BViKDLmy.js → category-editor-Btv0sSPl.js} +1 -1
  98. package/dist/client/assets/{category-tree-BTRq8RL0.js → category-tree-CUP3rQKK.js} +1 -1
  99. package/dist/client/assets/{chart-BcpbpcAf.js → chart-L_rdD8Fy.js} +1 -1
  100. package/dist/client/assets/chat-context-BXxmldjV.js +44 -0
  101. package/dist/client/assets/{chat-draft-DOnB1tr0.js → chat-draft-Bu5orWL5.js} +1 -1
  102. package/dist/client/assets/{checkbox-CmBHLZcQ.js → checkbox-DcLJM3uK.js} +1 -1
  103. package/dist/client/assets/{choose-editor-B67urVk8.js → choose-editor-DQyXDHRD.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-Bz6r5Ycn.js → cli-auth-success-CmXNeNAR.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-DcveNiDE.js → cms-settings-editor-CHvYFO6g.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-DW5tpjoC.js → cms-store-drafts-B3P79s_J.js} +1 -1
  107. package/dist/client/assets/{collapsible-qzwMsYPq.js → collapsible-B8lX7LSm.js} +1 -1
  108. package/dist/client/assets/{collection-detail-2IToM1X7.js → collection-detail-GsM61XEt.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-D9tNnAgw.js → collection-display-button-CIMd2CCY.js} +1 -1
  110. package/dist/client/assets/{collection-search-CTpFl_1Y.js → collection-search-ioGjJlri.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-Cpcu8Oij.js → collection-table-wrapper-d2v3Inn9.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-DK7LWBZc.js → collection-tabs-CpA2E5BB.js} +1 -1
  113. package/dist/client/assets/{combobox-A6NsJcol.js → combobox-3XSCcZHm.js} +1 -1
  114. package/dist/client/assets/{command-Bpokkr7D.js → command-CjjWneJ9.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-Cj31-W6E.js → companion-mcps-section-BfugnMSL.js} +1 -1
  116. package/dist/client/assets/{config-9LzB-TfV.js → config-DMRaGUqI.js} +1 -1
  117. package/dist/client/assets/{connect-Dzf2XXqW.js → connect-DPlH2AuB.js} +1 -1
  118. package/dist/client/assets/{connect-key-DqVRKu6e.js → connect-key-DXsdNQDg.js} +1 -1
  119. package/dist/client/assets/{connect-layout-DO1tbYx8.js → connect-layout-BOatW4CZ.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-D-UsGI30.js → connect-source-dialog-CXL8Ll8J.js} +1 -1
  121. package/dist/client/assets/{connection-B8_wyLe4.js → connection-DMyObHFk.js} +1 -1
  122. package/dist/client/assets/{connection-card-pnI2WwJL.js → connection-card-CIdpI2wF.js} +1 -1
  123. package/dist/client/assets/{connection-detail-yMVuGCv9.js → connection-detail-CQX5UnUU.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-DEbbcr0Y.js → connection-form-helpers-CI-MD64a.js} +1 -1
  125. package/dist/client/assets/{connection-slug-C1Xw24XJ.js → connection-slug-CoQLu_eQ.js} +1 -1
  126. package/dist/client/assets/{connections-csdBnjiM.js → connections-CUnudfuh.js} +1 -1
  127. package/dist/client/assets/{content-tab-C5yeDMy3.js → content-tab-D0dI2BbM.js} +3 -3
  128. package/dist/client/assets/{context-BJDCzssE.js → context-BzsV0hxX.js} +1 -1
  129. package/dist/client/assets/{context-menu-BLPuVblK.js → context-menu-B1dAG0Wr.js} +1 -1
  130. package/dist/client/assets/{context-shell-Dzy86D3N.js → context-shell-547AgBrw.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-sRuhJ8o6.js → create-organization-dialog-BKxedScB.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-DKB2mThR.js → daily-pulse-aiJY3gnz.js} +1 -1
  133. package/dist/client/assets/{delete-copy-D60ZiQf5.js → delete-copy-CGGKQ10f.js} +1 -1
  134. package/dist/client/assets/{device-hint-BanhTiD8.js → device-hint-QYtktsO0.js} +1 -1
  135. package/dist/client/assets/{discover-DNzddiNs.js → discover-BZAuq37N.js} +1 -1
  136. package/dist/client/assets/{domain-settings-YxR2DIWq.js → domain-settings-BuaKW4Rw.js} +1 -1
  137. package/dist/client/assets/{drawer-D3M4u1JQ.js → drawer-JbzUShND.js} +1 -1
  138. package/dist/client/assets/{editor-BCeMKV5f.js → editor-BR1a7qGD.js} +1 -1
  139. package/dist/client/assets/{editor-classes-BHlQ8lta.js → editor-classes-D4G_DIGw.js} +1 -1
  140. package/dist/client/assets/{empty-state-DMyh10sW.js → empty-state-BnFVKQvv.js} +1 -1
  141. package/dist/client/assets/{empty-state-n7kVRkSm.js → empty-state-C0MDzZBx.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-B3hGOZ0k.js → experiments-tab-choice-DIRzwSia.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-DCWqImZT.js → extract-connection-data-DtWfSA7r.js} +1 -1
  144. package/dist/client/assets/{feature-gate-DS4JY_b4.js → feature-gate-BfrcuviK.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-C_Np7j9C.js → feature-paywall-DNnv958-.js} +1 -1
  146. package/dist/client/assets/{file-explorer-rktoDXiw.js → file-explorer-D_6SsDXA.js} +1 -1
  147. package/dist/client/assets/{file-preview-Dxg_on-h.js → file-preview-CC2pttDX.js} +1 -1
  148. package/dist/client/assets/{file-share-button-CkE_dkdb.js → file-share-button-dJsfWtiJ.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-B-mU4K6I.js → file-type-icon-nU6c9OQr.js} +1 -1
  150. package/dist/client/assets/{folder-icon-CgXz01Aa.js → folder-icon-Wp7wbxIQ.js} +1 -1
  151. package/dist/client/assets/{form-D-KzaCY4.js → form-Dx1EBvxh.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-CAcIAUua.js → frame-navigation-aPmo2U0P.js} +1 -1
  153. package/dist/client/assets/{gateway-client-CZaZgqJJ.js → gateway-client-BQlD2psO.js} +1 -1
  154. package/dist/client/assets/{general-G-7imp3B.js → general-CAva67lN.js} +1 -1
  155. package/dist/client/assets/{github-icon-DW5OWwA4.js → github-icon-hFwcbgKP.js} +1 -1
  156. package/dist/client/assets/{held-block-view-CZOwIXZa.js → held-block-view-ByNmqPhe.js} +1 -1
  157. package/dist/client/assets/{home-DTJxJIJs.js → home-5ZWRmhLp.js} +1 -1
  158. package/dist/client/assets/{home-overview-DP1NpjZb.js → home-overview-BJLt3O6I.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-ChvoCrzB.js → hosted-reconcile-CgC-Mb3M.js} +1 -1
  160. package/dist/client/assets/{icon-button-BNUEa7I2.js → icon-button-8qhGM4eg.js} +1 -1
  161. package/dist/client/assets/{index-BursVqgA.js → index-B5WGiIKx.js} +1 -1
  162. package/dist/client/assets/{index-Dhko18B8.js → index-B7i_xJl4.js} +1 -1
  163. package/dist/client/assets/{index-B25IM95s.js → index-BPvQqOSy.js} +1 -1
  164. package/dist/client/assets/{index-C0QYe6xy.js → index-BR0U8TgB.js} +1 -1
  165. package/dist/client/assets/{index-Cgox-ACE.js → index-BU3n1igW.js} +1 -1
  166. package/dist/client/assets/{index-CKjUtQ_A.js → index-B_eoP-Gi.js} +1 -1
  167. package/dist/client/assets/{index-DItyK843.js → index-ByOLAuLS.js} +1 -1
  168. package/dist/client/assets/index-C4wvi2v7.css +1 -0
  169. package/dist/client/assets/{index-C0zcxte6.js → index-C6-0Ff1m.js} +3 -3
  170. package/dist/client/assets/{index-DnJw5_hQ.js → index-CMjqNIsi.js} +1 -1
  171. package/dist/client/assets/{index-DDPTx6IX.js → index-CqirF9LN.js} +1 -1
  172. package/dist/client/assets/{index-B-HkEC7t.js → index-D-cQHZ9D.js} +1 -1
  173. package/dist/client/assets/{index-Bbk5iS1Z.js → index-DHE6Gmv8.js} +13 -13
  174. package/dist/client/assets/{index-Dpk7pb5D.js → index-DWqgNqna.js} +1 -1
  175. package/dist/client/assets/{index-Bhd9nKcZ.js → index-MxNSCTK9.js} +1 -1
  176. package/dist/client/assets/{index-CNh1ag3h.js → index-ZdVMGNX_.js} +1 -1
  177. package/dist/client/assets/{index-QPY6UhxV.js → index-bfIJKw2l.js} +1 -1
  178. package/dist/client/assets/{index-xplT9JhY.js → index-l6F0wrxq.js} +1 -1
  179. package/dist/client/assets/{index-redirect-DTcApHr6.js → index-redirect-D-0BmEsE.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-BQQ9hnSz.js → infiniteQueryObserver-CiZgrwb3.js} +1 -1
  181. package/dist/client/assets/{infra-billing-Cibcdv6G.js → infra-billing-DMYQXPE8.js} +1 -1
  182. package/dist/client/assets/{input-DgB3lXqG.js → input-BvykudC_.js} +3 -3
  183. package/dist/client/assets/input-_oxlM42n.js +1 -0
  184. package/dist/client/assets/{integration-icon-BW2tUSAw.js → integration-icon-BIQ_3p0x.js} +1 -1
  185. package/dist/client/assets/{item-actions-BhKgwiA_.js → item-actions-BoAVVq18.js} +1 -1
  186. package/dist/client/assets/{jira-icon-BBEhB000.js → jira-icon-BYAb-E8q.js} +1 -1
  187. package/dist/client/assets/{label-CBiNPa0x.js → label-Cq7ohFeR.js} +1 -1
  188. package/dist/client/assets/{layout-qzIHBMki.js → layout-DKgi2pWo.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-CWsFtMRD.js → legacy-admin-welcome-dialog-Cdla_zr3.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-BiV45Zde.js → legacy-agents-deep-C4yyRVHA.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-DEtLBi-B.js → legacy-main-redirect-CUxGG29A.js} +1 -1
  192. package/dist/client/assets/library-D6WcKfwU.js +1 -0
  193. package/dist/client/assets/{library-tab-C9yzEvtN.js → library-tab-DnuxDKa_.js} +1 -1
  194. package/dist/client/assets/{login-ByzMeE8E.js → login-21wHOzeO.js} +1 -1
  195. package/dist/client/assets/{markdown-CfexGEwm.js → markdown-5RMcvWqV.js} +29 -29
  196. package/dist/client/assets/{mcp-app-renderer-HLyo74Ho.js → mcp-app-renderer-BV5sVhom.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-_kccjx1r.js → mcp-oauth-BU0x_iDk.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-CutBZZPD.js → mcp-oauth-CeIVSnSu.js} +1 -1
  199. package/dist/client/assets/{members-J3uF-Kwg.js → members-BNWyDABE.js} +1 -1
  200. package/dist/client/assets/{memory-CEi93eGU.js → memory-d-IFBAud.js} +1 -1
  201. package/dist/client/assets/{mock-board-CqS4kEHW.js → mock-board-Y-hiGSHf.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-CWn-gktX.js → monaco-editor-d8C00Vbh.js} +1 -1
  203. package/dist/client/assets/{monitoring-87cYWoHO.js → monitoring-3bxUWuJM.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-Crp3zY71.js → monitoring-stats-row-BdeLiDjT.js} +1 -1
  205. package/dist/client/assets/{multi-select-C6jEIwqf.js → multi-select-D6S763-B.js} +1 -1
  206. package/dist/client/assets/{mustache-cZl45dTs.js → mustache-CH8IdNgC.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-CtJSae2g.js → named-rule-step-ISshG07e.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-BH1w8o3C.js → named-rule-view-CXMDYxKO.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-BlvriG-i.js → new-project-dialog-Ch6wUMKc.js} +1 -1
  210. package/dist/client/assets/{new-project-store-1bwM_bJw.js → new-project-store-BJVEZe7t.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-C2wxDzvG.js → oauth-callback-DF-qannK.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-3k9SJAqE.js → oauth-callback-ai-provider-BPFWE8hJ.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-BgalQs6s.js → oauth-consent-DEVHlJrJ.js} +1 -1
  214. package/dist/client/assets/{onboarding-C00xt4jO.js → onboarding-BBiIM9eH.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-BBe7gxWi.js → openai-conversation-Cc0ggxu_.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-DW5MYqhg.js → optimistic-project-sidebar-views-DoJ93lgL.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-DgOUhpEv.js → order-monitor-day-C4bwqh_Q.js} +1 -1
  218. package/dist/client/assets/{organization-choice-CqbEtrRk.js → organization-choice-CAc73DMC.js} +1 -1
  219. package/dist/client/assets/{orgs-BjJvbxSQ.js → orgs-DlLRdIR1.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-B_9BZnKc.js → own-accounts-section-L5xwUYxF.js} +1 -1
  221. package/dist/client/assets/pair-BKCcX4sy.js +48 -0
  222. package/dist/client/assets/{parse-sections-BEt4sL30.js → parse-sections-CBJ8clfr.js} +2 -2
  223. package/dist/client/assets/{plan-DzqKwbY3.js → plan-Basau5px.js} +1 -1
  224. package/dist/client/assets/{plan-ladder-UyXrpMPX.js → plan-ladder-DDAcm-ji.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-D7PtQ-Mg.js → plan-usage-card-BwiinbGT.js} +1 -1
  226. package/dist/client/assets/{popover-D1tBNoFL.js → popover-DTBVeUtG.js} +1 -1
  227. package/dist/client/assets/{post-calendar-DPse-vQn.js → post-calendar-CkZvvgA_.js} +1 -1
  228. package/dist/client/assets/{post-editor-CmRLNap2.js → post-editor-CaTAhhxB.js} +1 -1
  229. package/dist/client/assets/{preview-content-Bst4Vj1S.js → preview-content-BGfL4iXO.js} +1 -1
  230. package/dist/client/assets/{preview-dialog-CK8jTtFE.js → preview-dialog-BHh0s5Ms.js} +1 -1
  231. package/dist/client/assets/{preview-panel-2ktfpQ0K.js → preview-panel-HHRrVU4R.js} +1 -1
  232. package/dist/client/assets/{preview-tab-De34UvpX.js → preview-tab-S2hZUwsX.js} +3 -3
  233. package/dist/client/assets/{primitives-Cm0irN0s.js → primitives-K9ug68v7.js} +1 -1
  234. package/dist/client/assets/{product-picker-dialog-Cj_-kR4f.js → product-picker-dialog-ujfDfMoL.js} +1 -1
  235. package/dist/client/assets/{profile-B4bspmYv.js → profile-Dc_w4Cyx.js} +1 -1
  236. package/dist/client/assets/{project-app-view-rSEufAu3.js → project-app-view-mLEnCg4s.js} +1 -1
  237. package/dist/client/assets/{project-apps-COpRDLe9.js → project-apps-C4vT9LXH.js} +1 -1
  238. package/dist/client/assets/{project-icon-BhM8uTps.js → project-icon-CGc9ojaV.js} +1 -1
  239. package/dist/client/assets/{project-index-DzyLTscG.js → project-index-I2IwZ_L4.js} +1 -1
  240. package/dist/client/assets/project-reports-BlDDRtjQ.js +1 -0
  241. package/dist/client/assets/project-tasks-DpoEijNI.js +1 -0
  242. package/dist/client/assets/{projects-MePgIa0t.js → projects-BQZSr4gE.js} +1 -1
  243. package/dist/client/assets/{projects-empty-state-BBKSmo_-.js → projects-empty-state-B5Z0ROP0.js} +1 -1
  244. package/dist/client/assets/{prompts-CxnVjjNi.js → prompts-DQItNyVW.js} +1 -1
  245. package/dist/client/assets/record-editor-BOQ2W0wP.js +1 -0
  246. package/dist/client/assets/{redirect-editor-DC7_swj1.js → redirect-editor-BrgJRHSk.js} +1 -1
  247. package/dist/client/assets/{reports-Dr22Z_GR.js → reports-B3-NqRd1.js} +1 -1
  248. package/dist/client/assets/reports-Bsc_XwTm.js +1 -0
  249. package/dist/client/assets/{reports-onboarding-CRwOaNzn.js → reports-onboarding-Beggk42B.js} +1 -1
  250. package/dist/client/assets/{reports-tab-B78-CTws.js → reports-tab-CQP_rzUZ.js} +2 -2
  251. package/dist/client/assets/{repositories-B1GBYlk4.js → repositories-Cf9nYfd0.js} +1 -1
  252. package/dist/client/assets/repositories-CfgaBNdf.js +1 -0
  253. package/dist/client/assets/{repository-binding-BSsS-pLT.js → repository-binding-Do6sAdct.js} +1 -1
  254. package/dist/client/assets/{repository-picker-DRoPGieR.js → repository-picker-B9qWS0uH.js} +1 -1
  255. package/dist/client/assets/{require-capability-De-meIBX.js → require-capability-DdgYI50p.js} +1 -1
  256. package/dist/client/assets/{required-auth-layout-C3iaEEmL.js → required-auth-layout-BwuuU3bJ.js} +1 -1
  257. package/dist/client/assets/{reset-password-CgYLlNff.js → reset-password-CFvEOHUE.js} +1 -1
  258. package/dist/client/assets/{resizable-Cli16m3H.js → resizable-DbjoRAK-.js} +1 -1
  259. package/dist/client/assets/{resolve-tab-icon-BTWqiqFe.js → resolve-tab-icon-zc5Xnngt.js} +1 -1
  260. package/dist/client/assets/{review-settings-BbBTVgei.js → review-settings-C_jx0NLX.js} +1 -1
  261. package/dist/client/assets/{role-color-Bk9jClz7.js → role-color-AmMn6ZIX.js} +1 -1
  262. package/dist/client/assets/{roles-C1ujMDqv.js → roles-b_L0oOYd.js} +1 -1
  263. package/dist/client/assets/{route-DmaKuvUr.js → route-Bahv9n22.js} +1 -1
  264. package/dist/client/assets/{route-D0TrVFPx.js → route-D2bkX53_.js} +1 -1
  265. package/dist/client/assets/route-Da-mMBjf.js +1 -0
  266. package/dist/client/assets/{route-page-header-BoSpaJ2l.js → route-page-header-D8CuFczr.js} +1 -1
  267. package/dist/client/assets/{sandbox-git-api-BQA0ksZA.js → sandbox-git-api-B3EnJ01P.js} +1 -1
  268. package/dist/client/assets/{sandbox-lifecycle-context-DCPdrlj7.js → sandbox-lifecycle-context-BiHehEOC.js} +1 -1
  269. package/dist/client/assets/{save-status-D-AS_GN9.js → save-status-DEylj8_h.js} +1 -1
  270. package/dist/client/assets/{schema-ByWYIGUp.js → schema-C9B5bAQC.js} +1 -1
  271. package/dist/client/assets/{schema-CjjCZ6bx.js → schema-DiSJ8SEc.js} +1 -1
  272. package/dist/client/assets/{scroll-area-BUivyrPu.js → scroll-area-BSx_oSJx.js} +1 -1
  273. package/dist/client/assets/{search-input-3Sn0Ox5l.js → search-input-DE_voviB.js} +1 -1
  274. package/dist/client/assets/{search-toggle-BgCwR4FW.js → search-toggle-DeMaHCKK.js} +1 -1
  275. package/dist/client/assets/{secret-picker-D8jf7FIH.js → secret-picker-Dslhp0Eb.js} +1 -1
  276. package/dist/client/assets/{secrets-C0836Wwg.js → secrets-BFU0jWBM.js} +1 -1
  277. package/dist/client/assets/{section-array-field-CnIV-ruK.js → section-array-field-dPI_sYd7.js} +1 -1
  278. package/dist/client/assets/{sections-vcSyxSdo.js → sections-BCyCfgtK.js} +1 -1
  279. package/dist/client/assets/{sections-editor-DQxa09Jb.js → sections-editor-CD9jVbGW.js} +1 -1
  280. package/dist/client/assets/{select-De2MKx8C.js → select-Chdk1xe9.js} +1 -1
  281. package/dist/client/assets/{select-model-BJhpOCBC.js → select-model-DNsDO7Yn.js} +1 -1
  282. package/dist/client/assets/{seo-editor-Dhccj0TW.js → seo-editor-ByqHZOIr.js} +1 -1
  283. package/dist/client/assets/{separator-KNm6D8Nt.js → separator-CnEC83tf.js} +1 -1
  284. package/dist/client/assets/{session-runtime-CEhQCN_A.js → session-runtime-fXa5psFL.js} +1 -1
  285. package/dist/client/assets/settings-tab-DG4z8CKo.js +1 -0
  286. package/dist/client/assets/{sheet-C0xCH2mH.js → sheet-XJvcudCi.js} +1 -1
  287. package/dist/client/assets/{shell-layout-KldWhDuy.js → shell-layout-CuBXiCpv.js} +1 -1
  288. package/dist/client/assets/{site-draft-actions-DSBacDkM.js → site-draft-actions-BJiaSwYy.js} +1 -1
  289. package/dist/client/assets/{site-draft-view-DE-vflKe.js → site-draft-view-9aqy4RF0.js} +1 -1
  290. package/dist/client/assets/site-editor-BSb_9CNK.js +1 -0
  291. package/dist/client/assets/{site-editor-toast-CvNOL4ms.js → site-editor-toast-C2OaHizl.js} +1 -1
  292. package/dist/client/assets/{skills-Bobugav3.js → skills-DQnklyjk.js} +1 -1
  293. package/dist/client/assets/{slider-D6wd7ZjA.js → slider-DaeRBQVD.js} +1 -1
  294. package/dist/client/assets/{sortable.esm-nvXi4p48.js → sortable.esm-BulVoRsH.js} +1 -1
  295. package/dist/client/assets/{sso-DeJx7UXD.js → sso-ptIJoXni.js} +1 -1
  296. package/dist/client/assets/{suggestion-DqNLuB6A.js → suggestion-DoHjrPPW.js} +1 -1
  297. package/dist/client/assets/{super-agent-icon-Bshs6T-m.js → super-agent-icon-VandTz-0.js} +1 -1
  298. package/dist/client/assets/{switch-B00BnZbl.js → switch-6JKp3FKO.js} +1 -1
  299. package/dist/client/assets/{synced-repos-DizABgb9.js → synced-repos-DJpcOxmB.js} +1 -1
  300. package/dist/client/assets/{tab-icon-glyph-CfPfvQNB.js → tab-icon-glyph-BMUkOrax.js} +1 -1
  301. package/dist/client/assets/{table-Uzyje8VX.js → table-Dqj9d5ax.js} +1 -1
  302. package/dist/client/assets/{tabs-DP2FyQoi.js → tabs-CT50lxBB.js} +1 -1
  303. package/dist/client/assets/{task-board-VFa9eWCt.js → task-board-DNboqZMy.js} +1 -1
  304. package/dist/client/assets/{task-key-Bw-0Xagt.js → task-key-DgbGUF2j.js} +1 -1
  305. package/dist/client/assets/{task-route-CAa-BRsr.js → task-route-DUKKS-kP.js} +1 -1
  306. package/dist/client/assets/{task-status-CJ3X0NFO.js → task-status-BadjzsyY.js} +1 -1
  307. package/dist/client/assets/{taskboard-analytics--TWvNVte.js → taskboard-analytics-PY56GOP9.js} +1 -1
  308. package/dist/client/assets/tasks-74JzN4W9.js +1 -0
  309. package/dist/client/assets/{tasks-BclVV5A-.js → tasks-BXwt_hky.js} +1 -1
  310. package/dist/client/assets/{textarea-BcZLPwQm.js → textarea-C3LFFo0w.js} +1 -1
  311. package/dist/client/assets/{thread-analytics-DfE_3PWw.js → thread-analytics-BmSAMduA.js} +1 -1
  312. package/dist/client/assets/{thread-button-Czo95-P_.js → thread-button-CrjY15ns.js} +1 -1
  313. package/dist/client/assets/{thread-intent-BmXJHmce.js → thread-intent-j3i3V7mR.js} +1 -1
  314. package/dist/client/assets/{thread-route-DqTdmfFp.js → thread-route-DGrdxDp1.js} +1 -1
  315. package/dist/client/assets/{thread-route-DiGqiNZD.js → thread-route-DY_UV0gu.js} +1 -1
  316. package/dist/client/assets/{thread-sheet-body-DqQKksps.js → thread-sheet-body-DE05uWNv.js} +1 -1
  317. package/dist/client/assets/{time-range-picker-C_oftj3R.js → time-range-picker-Bbk_8gb1.js} +1 -1
  318. package/dist/client/assets/{toggle-group-B-toNLb_.js → toggle-group-CbJrGPYf.js} +1 -1
  319. package/dist/client/assets/{tool-set-selector-DYhntVmY.js → tool-set-selector-z6gFzWDr.js} +1 -1
  320. package/dist/client/assets/{toolbar-icon-button-luClWvkN.js → toolbar-icon-button-CEZ74wIz.js} +1 -1
  321. package/dist/client/assets/{tooltip-W9aneKod.js → tooltip-BnL5r8Gv.js} +1 -1
  322. package/dist/client/assets/{tooltipContext-BKEerq2t.js → tooltipContext-DvsqpzJf.js} +1 -1
  323. package/dist/client/assets/{track-DfNsDtcS.js → track-PLvkvo8B.js} +1 -1
  324. package/dist/client/assets/{types-D29IqQQn.js → types-9tZ4hN1z.js} +1 -1
  325. package/dist/client/assets/{url-slug-C2dy5cTg.js → url-slug-C2KUvR2X.js} +1 -1
  326. package/dist/client/assets/{usage-stats-C4Ju4qoC.js → usage-stats-DX8XXFQ9.js} +21 -21
  327. package/dist/client/assets/{use-ai-providers-DU-S8Ovj.js → use-ai-providers-pXYGEzkI.js} +1 -1
  328. package/dist/client/assets/{use-api-keys-DI_FBRt6.js → use-api-keys-B03kdPI3.js} +1 -1
  329. package/dist/client/assets/{use-apply-named-rule-DLAoQ7ZW.js → use-apply-named-rule-Cc4ACfQP.js} +1 -1
  330. package/dist/client/assets/use-ask-in-chat-B6pTgaei.js +1 -0
  331. package/dist/client/assets/{use-automations-DJu_bQMu.js → use-automations-D6sS4b2K.js} +1 -1
  332. package/dist/client/assets/{use-autosave-UPILzOGr.js → use-autosave-ONtBLfOU.js} +1 -1
  333. package/dist/client/assets/use-blocks-v8-project-z5uA6d0S.js +1 -0
  334. package/dist/client/assets/use-blog-view-BHifDign.js +1 -0
  335. package/dist/client/assets/{use-chat-layout-state-DK2Bd_b8.js → use-chat-layout-state-BNCeIaIM.js} +1 -1
  336. package/dist/client/assets/{use-cms-publish-actions-6W6G1H2l.js → use-cms-publish-actions-DMDZLoe0.js} +1 -1
  337. package/dist/client/assets/{use-connect-companion-DF6vPT8j.js → use-connect-companion-Ez7z63oH.js} +1 -1
  338. package/dist/client/assets/{use-connection-BHZBfHKD.js → use-connection-D5_bE1jX.js} +1 -1
  339. package/dist/client/assets/{use-content-sync-hHSueAd9.js → use-content-sync-D4PlAahX.js} +1 -1
  340. package/dist/client/assets/{use-copy-CtLHXaYX.js → use-copy-BRwsGSGM.js} +1 -1
  341. package/dist/client/assets/{use-current-view-cqZFu632.js → use-current-view-0HWp9lHl.js} +1 -1
  342. package/dist/client/assets/{use-date-fns-locale-Ca4x-hdx.js → use-date-fns-locale-DiJmvXQv.js} +1 -1
  343. package/dist/client/assets/{use-debounced-autosave-egUuvpyg.js → use-debounced-autosave-BmZISibb.js} +1 -1
  344. package/dist/client/assets/{use-debounced-value-C8Gcgh9P.js → use-debounced-value-Dw3dFt4C.js} +1 -1
  345. package/dist/client/assets/{use-deco-credits-NqK3j6Uy.js → use-deco-credits-r1_nX8wr.js} +1 -1
  346. package/dist/client/assets/{use-decopilot-events-BdOsPUXO.js → use-decopilot-events-B1JmbrrX.js} +1 -1
  347. package/dist/client/assets/{use-delete-block-Ck_v-_xs.js → use-delete-block-DDUTXhNF.js} +1 -1
  348. package/dist/client/assets/{use-delete-connection-PQXZSLGQ.js → use-delete-connection-C3dK-V2D.js} +1 -1
  349. package/dist/client/assets/{use-deployment-admin-06_aP6Ns.js → use-deployment-admin-KnQTKRss.js} +1 -1
  350. package/dist/client/assets/{use-entitlements-BUF4fpoq.js → use-entitlements-DIoZnc_q.js} +1 -1
  351. package/dist/client/assets/{use-fast-preview-draft-url-C0yd3ccI.js → use-fast-preview-draft-url-D9LB_eIt.js} +1 -1
  352. package/dist/client/assets/{use-file-configs-BrcDDIBZ.js → use-file-configs-I6vvS9gB.js} +1 -1
  353. package/dist/client/assets/{use-id-selection-vLaYBEH-.js → use-id-selection-BAv2DcG7.js} +1 -1
  354. package/dist/client/assets/{use-in-settings-DfZIpmwh.js → use-in-settings-DxzX6GVb.js} +1 -1
  355. package/dist/client/assets/{use-inbox-feed-DhlbBV5u.js → use-inbox-feed-BwP3VnzE.js} +1 -1
  356. package/dist/client/assets/{use-infinite-scroll-BqVS1RSu.js → use-infinite-scroll-DZHKJp2V.js} +1 -1
  357. package/dist/client/assets/{use-join-requests-LMl79WAM.js → use-join-requests-DqFzxVX_.js} +1 -1
  358. package/dist/client/assets/{use-main-panel-tabs-BypHuYN5.js → use-main-panel-tabs-D2eQ46eC.js} +1 -1
  359. package/dist/client/assets/{use-mcp-auth-status-Da9KRHgH.js → use-mcp-auth-status-C6_TAde2.js} +1 -1
  360. package/dist/client/assets/{use-mcp-client-mPNZ5wA-.js → use-mcp-client-Bg8mQo9f.js} +1 -1
  361. package/dist/client/assets/{use-mcp-prompts-BgJv8IRF.js → use-mcp-prompts-DPiL3LQv.js} +1 -1
  362. package/dist/client/assets/{use-mcp-tools-BcOrFpuk.js → use-mcp-tools-C5OR9KZ9.js} +1 -1
  363. package/dist/client/assets/{use-mobile-Dq5jf2f0.js → use-mobile-IMVhNYT_.js} +1 -1
  364. package/dist/client/assets/{use-move-blocks-DnHSHuof.js → use-move-blocks-BVaiu02r.js} +1 -1
  365. package/dist/client/assets/{use-navigate-to-agent-C6kz2tf-.js → use-navigate-to-agent-WJ7w-8ZZ.js} +1 -1
  366. package/dist/client/assets/{use-never-published-BmwZStnO.js → use-never-published-DpnSCkDS.js} +1 -1
  367. package/dist/client/assets/{use-org-fs-s_0LIrDS.js → use-org-fs-C4V7-QNj.js} +1 -1
  368. package/dist/client/assets/{use-org-notice-nG8SqftY.js → use-org-notice-DOVWyuaL.js} +1 -1
  369. package/dist/client/assets/{use-org-repo-syncs-BxGtCYGM.js → use-org-repo-syncs-BukrXch8.js} +1 -1
  370. package/dist/client/assets/{use-org-sso-Bz1_bfif.js → use-org-sso-D7w6nhfD.js} +1 -1
  371. package/dist/client/assets/{use-organization-settings-BMe7yDwK.js → use-organization-settings-BmAIEgEL.js} +1 -1
  372. package/dist/client/assets/{use-panel-navigate-Cw8nqOIV.js → use-panel-navigate-CkYTugDF.js} +1 -1
  373. package/dist/client/assets/{use-project-native-view-presence-CAidgxjk.js → use-project-native-view-presence-CkqC328s.js} +1 -1
  374. package/dist/client/assets/{use-project-scope-XjTsfNgl.js → use-project-scope-DwQViH2f.js} +1 -1
  375. package/dist/client/assets/{use-recent-apps-nWo-QZz2.js → use-recent-apps-4wYjA0CX.js} +1 -1
  376. package/dist/client/assets/{use-reports-diagnostic-CMKEMOUj.js → use-reports-diagnostic-DKW88lIw.js} +1 -1
  377. package/dist/client/assets/{use-sandbox-events-B_nCM-ka.js → use-sandbox-events-DwjSc3R2.js} +1 -1
  378. package/dist/client/assets/{use-secrets-By8cnQ4b.js → use-secrets-BW5HFrjP.js} +1 -1
  379. package/dist/client/assets/{use-section-preview-base-DEe57kJn.js → use-section-preview-base-D61lHpgT.js} +1 -1
  380. package/dist/client/assets/{use-sidebar-collapsed-BWxWuz83.js → use-sidebar-collapsed-CvPku1YI.js} +1 -1
  381. package/dist/client/assets/{use-tags-DsDJUFVu.js → use-tags-B-VIOJFl.js} +1 -1
  382. package/dist/client/assets/{use-task-board-analytics-CoIz9pQ4.js → use-task-board-analytics-pNXfpx7q.js} +1 -1
  383. package/dist/client/assets/{use-task-board-item-prs-BjXAaoNm.js → use-task-board-item-prs-CXo3bcGf.js} +1 -1
  384. package/dist/client/assets/{use-task-board-items-BueQ5HqT.js → use-task-board-items-CygST8NV.js} +1 -1
  385. package/dist/client/assets/{use-task-board-prompts-D-OUTo_-.js → use-task-board-prompts-DYeH1UKB.js} +1 -1
  386. package/dist/client/assets/{use-task-metadata-B11DnfPk.js → use-task-metadata-BKyg4fwU.js} +1 -1
  387. package/dist/client/assets/{use-thread-outputs-BwRllZjy.js → use-thread-outputs-U0o_TC58.js} +1 -1
  388. package/dist/client/assets/{use-view-draft-kind-CT4UyCBZ.js → use-view-draft-kind-DrDbO3-P.js} +1 -1
  389. package/dist/client/assets/{use-voice-input-fsQibllg.js → use-voice-input-ChVzBkTC.js} +1 -1
  390. package/dist/client/assets/useInfiniteQuery-B5jgBAwp.js +1 -0
  391. package/dist/client/assets/{useQueries-Cif9aKm8.js → useQueries-Cmvk9UMI.js} +1 -1
  392. package/dist/client/assets/useSuspenseInfiniteQuery-D3Nn_2Nf.js +1 -0
  393. package/dist/client/assets/{users-DvVhyJaa.js → users-S8nniBNq.js} +1 -1
  394. package/dist/client/assets/{utils-P6Og2u3N.js → utils-CalvUBc1.js} +1 -1
  395. package/dist/client/assets/{variant-calendar-LeGKEzjI.js → variant-calendar-C-1HVzQo.js} +1 -1
  396. package/dist/client/assets/{variant-matcher-override-BB2HbnUa.js → variant-matcher-override-DY5ZfO62.js} +1 -1
  397. package/dist/client/assets/{view-header-aiCGECzR.js → view-header-Dlc9W8Ql.js} +1 -1
  398. package/dist/client/assets/{virtual-mcp-q_VEw2Ce.js → virtual-mcp-BYga37_3.js} +1 -1
  399. package/dist/client/assets/{watch-sse-pool-9O-TJMef.js → watch-sse-pool-DdE7kwP2.js} +1 -1
  400. package/dist/client/index.html +2 -2
  401. package/dist/server/server.js +350 -350
  402. package/package.json +1 -1
  403. package/dist/client/assets/agent-app-DlIXYYf9.js +0 -1
  404. package/dist/client/assets/agent-deck-DqIBoJAu.js +0 -1
  405. package/dist/client/assets/agent-experiments-BiGIVIia.js +0 -1
  406. package/dist/client/assets/agent-file-DsMol7Mm.js +0 -1
  407. package/dist/client/assets/agent-library-Bt1mJaIH.js +0 -1
  408. package/dist/client/assets/agent-library-file-Z3ccrEES.js +0 -1
  409. package/dist/client/assets/agent-overview-DarftbDZ.js +0 -1
  410. package/dist/client/assets/agent-settings-DQjOsh1q.js +0 -1
  411. package/dist/client/assets/agent-site-editor-code-Z3qPYcJC.js +0 -2
  412. package/dist/client/assets/agent-site-editor-content-Djuy4ohp.js +0 -1
  413. package/dist/client/assets/agent-site-editor-preview-DuuRb2k-.js +0 -1
  414. package/dist/client/assets/agent-view-CxcXZ1ps.js +0 -1
  415. package/dist/client/assets/api-keys-qGxl2Ulg.js +0 -1
  416. package/dist/client/assets/chat-context-CWdOGDBM.js +0 -43
  417. package/dist/client/assets/index-yFD0_BNc.css +0 -1
  418. package/dist/client/assets/input-DS9Lcdr7.js +0 -1
  419. package/dist/client/assets/library-73cgD91W.js +0 -1
  420. package/dist/client/assets/pair-COA93ohg.js +0 -48
  421. package/dist/client/assets/project-reports-BIv6b5kg.js +0 -1
  422. package/dist/client/assets/project-tasks-BIO-MOsF.js +0 -1
  423. package/dist/client/assets/record-editor-Cf1AplRD.js +0 -1
  424. package/dist/client/assets/reports-CoJ1Nfwl.js +0 -1
  425. package/dist/client/assets/repositories-CwxbDZ4K.js +0 -1
  426. package/dist/client/assets/route-Cxo8JseM.js +0 -1
  427. package/dist/client/assets/settings-tab-CSqS3qrR.js +0 -1
  428. package/dist/client/assets/site-editor-BT7_G9Vn.js +0 -1
  429. package/dist/client/assets/tasks-B4i5niLh.js +0 -1
  430. package/dist/client/assets/use-ask-in-chat-s9WvcD2m.js +0 -1
  431. package/dist/client/assets/use-blocks-v8-project-DD1up-u3.js +0 -1
  432. package/dist/client/assets/use-blog-view-qeD-Zbnz.js +0 -1
  433. package/dist/client/assets/useInfiniteQuery-kEKcQUWO.js +0 -1
  434. package/dist/client/assets/useSuspenseInfiniteQuery-BpVcZwyx.js +0 -1
@@ -1 +1 @@
1
- import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-C0zcxte6.js";import{n as se}from"./ArrowUp-DHOdNryJ.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-CWdOGDBM.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-DgB3lXqG.js";import{u as je,a as ve,S as be,M as A}from"./pair-COA93ohg.js";import{A as ye,f as Q}from"./agent-icon-DFdDsb4O.js";import{n as Ne}from"./use-sandbox-events-B_nCM-ka.js";import{a as Ce}from"./agent-capabilities-r-GJhT_0.js";import{a as we}from"./repository-binding-BSsS-pLT.js";import{c as Se,i as ke}from"./thread-intent-BmXJHmce.js";import{a as Te}from"./use-panel-navigate-Cw8nqOIV.js";import{N as $e}from"./index-DDPTx6IX.js";import{i as Ee}from"./ArrowRight-DHHBvkVn.js";import{d as De}from"./use-entitlements-BUF4fpoq.js";import{u as Pe}from"./use-deco-credits-NqK3j6Uy.js";import{F as _e}from"./feature-paywall-C_Np7j9C.js";import{i as Ie}from"./AlertCircle-CMkbvoeN.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.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"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("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"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("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"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("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:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
1
+ import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-C6-0Ff1m.js";import{n as se}from"./ArrowUp-CsFg9VL2.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-BXxmldjV.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-BvykudC_.js";import{u as je,a as ve,S as be,M as A}from"./pair-BKCcX4sy.js";import{A as ye,f as Q}from"./agent-icon-SasBmPrY.js";import{n as Ne}from"./use-sandbox-events-DwjSc3R2.js";import{a as Ce}from"./agent-capabilities-CPNkpGBe.js";import{a as we}from"./repository-binding-Do6sAdct.js";import{c as Se,i as ke}from"./thread-intent-j3i3V7mR.js";import{a as Te}from"./use-panel-navigate-CkYTugDF.js";import{N as $e}from"./index-CqirF9LN.js";import{i as Ee}from"./ArrowRight-B6vgPWbg.js";import{d as De}from"./use-entitlements-DIoZnc_q.js";import{u as Pe}from"./use-deco-credits-r1_nX8wr.js";import{F as _e}from"./feature-paywall-DNnv958-.js";import{i as Ie}from"./AlertCircle-CYAsQRdT.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.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"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("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"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("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"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("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:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a6 as ht,b as _e,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Us,e0 as Ks,ad as Vs,u as qs,n as _t,E as Wt,R as Hs,dW as Bs,hf as Js,T as Gs,W as Qs,I as Xt}from"./index-C0zcxte6.js";import{S as Ys}from"./search-input-3Sn0Ox5l.js";import{E as Ht}from"./empty-state-DMyh10sW.js";import{R as Ws}from"./require-capability-De-meIBX.js";import{f as js}from"./pair-COA93ohg.js";import{b as ts}from"./use-connection-BHZBfHKD.js";import{g as Ps}from"./connection-slug-C1Xw24XJ.js";import{B as Lt}from"./badge-BwjML1Ui.js";import{P as ds,a as ms,b as us}from"./popover-D1tBNoFL.js";import{c as Pt,T as Dt,a as Rt,b as Xs}from"./tooltip-W9aneKod.js";import{z as fs,e as Kt,bw as Zs,av as Ns,K as el}from"./agent-icon-DFdDsb4O.js";import{i as tl}from"./Key01-Cr-iYwx2.js";import{i as sl}from"./Play-nU4UoQKz.js";import{MonacoCodeEditor as bs}from"./monaco-editor-CWn-gktX.js";import{u as ll}from"./use-mcp-client-mPNZ5wA-.js";import{u as rl}from"./repository-binding-BSsS-pLT.js";import{n as Ot}from"./LinkBroken01-fV6kVrlJ.js";import{c as il}from"./SwitchHorizontal01-j9pFk8iK.js";import{s as ol}from"./Plus-Bu8dYjTf.js";import{s as nl}from"./Trash01-CGA1V9gl.js";import{M as $t}from"./multi-select-C6jEIwqf.js";import{b as yt,a as wt,c as $e,d as St,S as It}from"./select-De2MKx8C.js";import{e as ys,T as al}from"./time-range-picker-C_oftj3R.js";import{T as cl}from"./textarea-BcZLPwQm.js";import{C as Ds}from"./collection-tabs-DK7LWBZc.js";import{S as dl}from"./switch-B00BnZbl.js";import{L as ml}from"./label-CBiNPa0x.js";import{I as Ct}from"./integration-icon-BW2tUSAw.js";import{A as ul,a as fl,b as xl}from"./alert-pc1Ms3qG.js";import{K as gt}from"./monitoring-stats-row-Crp3zY71.js";import{b as Bt}from"./use-entitlements-BUF4fpoq.js";import{g as pl,b as ws,f as Nt,c as Zt,d as gl,e as Ss,a as xs,h as hl,i as ps,T as vl,j as jl,r as Nl,k as bl}from"./thread-sheet-body-DqQKksps.js";import{u as yl}from"./useSuspenseInfiniteQuery-BpVcZwyx.js";import{c as wl,S as Sl,b as Rs,a as Ls}from"./sheet-C0xCH2mH.js";import{c as De,b as vt,d as Jt,e as Gt,T as he,a as Qt}from"./table-Uzyje8VX.js";import{t as ss}from"./ChevronDown-DS_2vV9U.js";import{n as ls}from"./ChevronUp-BsIT1i00.js";import{u as Os}from"./use-id-selection-vLaYBEH-.js";import{u as Fs}from"./use-infinite-scroll-BqVS1RSu.js";import{u as Il}from"./useInfiniteQuery-kEKcQUWO.js";import{g as Cl}from"./task-status-CJ3X0NFO.js";import{u as Tl,d as kl}from"./use-automations-DJu_bQMu.js";import{A as Ml}from"./automation-runs-C8XowsOe.js";import{i as _l}from"./ArrowLeft-BSDOW4A2.js";import{E as Is}from"./empty-state-n7kVRkSm.js";import{O as zs}from"./watch-sse-pool-9O-TJMef.js";import{b as Pl,r as Dl,O as Rl,e as Ll}from"./order-monitor-day-DgOUhpEv.js";import{F as Ol}from"./feature-gate-DS4JY_b4.js";import"./SearchMd-CSnYUdRx.js";import"./access-gate-DScvaiQI.js";import"./capability-load-error-BrEArsQc.js";import"./Tool01-DAQSjGNg.js";import"./ArrowRight-DHHBvkVn.js";import"./collapsible-qzwMsYPq.js";import"./use-copy-CtLHXaYX.js";import"./usage-stats-C4Ju4qoC.js";import"./utils-CVEq3hMx.js";import"./markdown-CfexGEwm.js";import"./chat-context-CWdOGDBM.js";import"./use-panel-navigate-Cw8nqOIV.js";import"./thread-route-DiGqiNZD.js";import"./use-project-scope-XjTsfNgl.js";import"./use-view-draft-kind-CT4UyCBZ.js";import"./use-blog-view-qeD-Zbnz.js";import"./use-organization-settings-BMe7yDwK.js";import"./schema-CjjCZ6bx.js";import"./task-board-VFa9eWCt.js";import"./thread-intent-BmXJHmce.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CEhQCN_A.js";import"./use-ai-providers-DU-S8Ovj.js";import"./use-current-view-cqZFu632.js";import"./use-in-settings-DfZIpmwh.js";import"./use-decopilot-events-BdOsPUXO.js";import"./use-mobile-Dq5jf2f0.js";import"./File02-CbFOjoUb.js";import"./gateway-client-CZaZgqJJ.js";import"./form-D-KzaCY4.js";import"./UserCheck01-Bm_tmvVG.js";import"./task-key-Bw-0Xagt.js";import"./use-task-board-items-BueQ5HqT.js";import"./config-9LzB-TfV.js";import"./AlertCircle-CMkbvoeN.js";import"./CheckCircle-DS6DtxbV.js";import"./Eye-C17dMApd.js";import"./task-route-CAa-BRsr.js";import"./project-index-DzyLTscG.js";import"./TrendUp01-BGKW0mh6.js";import"./shell-layout-KldWhDuy.js";import"./Globe04-Bltr8gRw.js";import"./UserSquare-kWKevgdv.js";import"./use-deployment-admin-06_aP6Ns.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-aj1J9clf.js";import"./use-org-notice-nG8SqftY.js";import"./Monitor01-DHsrHXin.js";import"./Zap-BVwxluJ4.js";import"./command-Bpokkr7D.js";import"./index-B25IM95s.js";import"./project-icon-BhM8uTps.js";import"./use-navigate-to-agent-C6kz2tf-.js";import"./use-debounced-value-C8Gcgh9P.js";import"./new-project-dialog-BlvriG-i.js";import"./repository-picker-DRoPGieR.js";import"./github-icon-DW5OWwA4.js";import"./collection-search-CTpFl_1Y.js";import"./BookOpen01-iWPgFcA1.js";import"./ShoppingBag01-DVZF7bHI.js";import"./new-project-store-1bwM_bJw.js";import"./legacy-admin-welcome-dialog-CWsFtMRD.js";import"./drawer-D3M4u1JQ.js";import"./required-auth-layout-C3iaEEmL.js";import"./use-org-sso-Bz1_bfif.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-HLyo74Ho.js";import"./types-D29IqQQn.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-DO626aWy.js";import"./use-mcp-prompts-BgJv8IRF.js";import"./use-thread-outputs-BwRllZjy.js";import"./file-type-icon-B-mU4K6I.js";import"./index-CNh1ag3h.js";import"./ArrowUp-DHOdNryJ.js";import"./ChevronSelectorVertical-D0NBoFQ0.js";import"./CreditCard01-CtAjK1Nq.js";import"./MessageCircle01-B_IjbkrY.js";import"./Fingerprint04-8iB0ZMj1.js";import"./LayoutLeft-DtCpgUXM.js";import"./Minus-C5_j5JBE.js";import"./Sun-BywYlyt4.js";import"./Upload01-Ce7d9Uy2.js";import"./Users01-BYfFhtdK.js";import"./editor-BCeMKV5f.js";import"./auth-Dee7m2i5.js";import"./checkbox-CmBHLZcQ.js";import"./index-BdQq_4o_.js";import"./scroll-area-BUivyrPu.js";import"./calendar-khB6XOc2.js";import"./chart-BcpbpcAf.js";import"./CategoricalChart-CQBAXeYw.js";import"./index-DnJw5_hQ.js";import"./tooltipContext-BKEerq2t.js";import"./CartesianChart-uFA7HvYm.js";import"./AreaChart-DrvGk31z.js";import"./infiniteQueryObserver-BQQ9hnSz.js";import"./useQueries-Cif9aKm8.js";import"./ReferenceLine-C5nRukFs.js";import"./feature-paywall-C_Np7j9C.js";import"./plan-ladder-UyXrpMPX.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},Fl=["eq","contains","exists","in"];function zl(s){return Fl.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 $l(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),o=l?decodeURIComponent(l):"";if(o.trim())return{key:o,operator:i&&zl(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,a6 as ht,b as _e,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Us,e0 as Ks,ad as Vs,u as qs,n as _t,E as Wt,R as Hs,dW as Bs,hf as Js,T as Gs,W as Qs,I as Xt}from"./index-C6-0Ff1m.js";import{S as Ys}from"./search-input-DE_voviB.js";import{E as Ht}from"./empty-state-BnFVKQvv.js";import{R as Ws}from"./require-capability-DdgYI50p.js";import{f as js}from"./pair-BKCcX4sy.js";import{b as ts}from"./use-connection-D5_bE1jX.js";import{g as Ps}from"./connection-slug-CoQLu_eQ.js";import{B as Lt}from"./badge-BcMIPtVj.js";import{P as ds,a as ms,b as us}from"./popover-DTBVeUtG.js";import{c as Pt,T as Dt,a as Rt,b as Xs}from"./tooltip-BnL5r8Gv.js";import{z as fs,e as Kt,bw as Zs,av as Ns,K as el}from"./agent-icon-SasBmPrY.js";import{i as tl}from"./Key01-CSQOqmIz.js";import{i as sl}from"./Play-JVQd8C8L.js";import{MonacoCodeEditor as bs}from"./monaco-editor-d8C00Vbh.js";import{u as ll}from"./use-mcp-client-Bg8mQo9f.js";import{u as rl}from"./repository-binding-Do6sAdct.js";import{n as Ot}from"./LinkBroken01-BxVMIk5A.js";import{c as il}from"./SwitchHorizontal01-BSGnkDXI.js";import{s as ol}from"./Plus-CF8KlFVc.js";import{s as nl}from"./Trash01-DXQWI50A.js";import{M as $t}from"./multi-select-D6S763-B.js";import{b as yt,a as wt,c as $e,d as St,S as It}from"./select-Chdk1xe9.js";import{e as ys,T as al}from"./time-range-picker-Bbk_8gb1.js";import{T as cl}from"./textarea-C3LFFo0w.js";import{C as Ds}from"./collection-tabs-CpA2E5BB.js";import{S as dl}from"./switch-6JKp3FKO.js";import{L as ml}from"./label-Cq7ohFeR.js";import{I as Ct}from"./integration-icon-BIQ_3p0x.js";import{A as ul,a as fl,b as xl}from"./alert-PbrLNRQ0.js";import{K as gt}from"./monitoring-stats-row-BdeLiDjT.js";import{b as Bt}from"./use-entitlements-DIoZnc_q.js";import{g as pl,b as ws,f as Nt,c as Zt,d as gl,e as Ss,a as xs,h as hl,i as ps,T as vl,j as jl,r as Nl,k as bl}from"./thread-sheet-body-DE05uWNv.js";import{u as yl}from"./useSuspenseInfiniteQuery-D3Nn_2Nf.js";import{c as wl,S as Sl,b as Rs,a as Ls}from"./sheet-XJvcudCi.js";import{c as De,b as vt,d as Jt,e as Gt,T as he,a as Qt}from"./table-Dqj9d5ax.js";import{t as ss}from"./ChevronDown-CD0tZl8C.js";import{n as ls}from"./ChevronUp-DGDvzrMe.js";import{u as Os}from"./use-id-selection-BAv2DcG7.js";import{u as Fs}from"./use-infinite-scroll-DZHKJp2V.js";import{u as Il}from"./useInfiniteQuery-B5jgBAwp.js";import{g as Cl}from"./task-status-BadjzsyY.js";import{u as Tl,d as kl}from"./use-automations-D6sS4b2K.js";import{A as Ml}from"./automation-runs-BabYNmi9.js";import{i as _l}from"./ArrowLeft-zHVY_XX0.js";import{E as Is}from"./empty-state-C0MDzZBx.js";import{O as zs}from"./watch-sse-pool-DdE7kwP2.js";import{b as Pl,r as Dl,O as Rl,e as Ll}from"./order-monitor-day-C4bwqh_Q.js";import{F as Ol}from"./feature-gate-BfrcuviK.js";import"./SearchMd-Cw05gj7E.js";import"./access-gate-BvopvGmx.js";import"./capability-load-error-CZr_hpNK.js";import"./Tool01-BpBS8dw-.js";import"./ArrowRight-B6vgPWbg.js";import"./collapsible-B8lX7LSm.js";import"./use-copy-BRwsGSGM.js";import"./usage-stats-DX8XXFQ9.js";import"./utils-CVEq3hMx.js";import"./markdown-5RMcvWqV.js";import"./chat-context-BXxmldjV.js";import"./use-panel-navigate-CkYTugDF.js";import"./thread-route-DY_UV0gu.js";import"./use-project-scope-DwQViH2f.js";import"./use-view-draft-kind-DrDbO3-P.js";import"./use-blog-view-BHifDign.js";import"./use-organization-settings-BmAIEgEL.js";import"./schema-DiSJ8SEc.js";import"./task-board-DNboqZMy.js";import"./thread-intent-j3i3V7mR.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-fXa5psFL.js";import"./use-ai-providers-pXYGEzkI.js";import"./use-current-view-0HWp9lHl.js";import"./use-in-settings-DxzX6GVb.js";import"./use-decopilot-events-B1JmbrrX.js";import"./use-mobile-IMVhNYT_.js";import"./File02-o8s5093L.js";import"./gateway-client-BQlD2psO.js";import"./form-Dx1EBvxh.js";import"./UserCheck01-DLUgjW3m.js";import"./task-key-DgbGUF2j.js";import"./use-task-board-items-CygST8NV.js";import"./config-DMRaGUqI.js";import"./AlertCircle-CYAsQRdT.js";import"./CheckCircle-BB00e9u8.js";import"./Eye-nqlQ004P.js";import"./task-route-DUKKS-kP.js";import"./project-index-I2IwZ_L4.js";import"./TrendUp01-CdeGaAD9.js";import"./shell-layout-CuBXiCpv.js";import"./Globe04-OZ9xS3Lx.js";import"./UserSquare-a_XazovD.js";import"./use-deployment-admin-KnQTKRss.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-DxbjiApV.js";import"./use-org-notice-DOVWyuaL.js";import"./Monitor01-COmDHQ1j.js";import"./Zap-QnlW2BG3.js";import"./command-CjjWneJ9.js";import"./index-BPvQqOSy.js";import"./project-icon-CGc9ojaV.js";import"./use-navigate-to-agent-WJ7w-8ZZ.js";import"./use-debounced-value-Dw3dFt4C.js";import"./new-project-dialog-Ch6wUMKc.js";import"./repository-picker-B9qWS0uH.js";import"./github-icon-hFwcbgKP.js";import"./collection-search-ioGjJlri.js";import"./BookOpen01-AamEOlRO.js";import"./ShoppingBag01-Cc2EJvA-.js";import"./new-project-store-BJVEZe7t.js";import"./legacy-admin-welcome-dialog-Cdla_zr3.js";import"./drawer-JbzUShND.js";import"./required-auth-layout-BwuuU3bJ.js";import"./use-org-sso-D7w6nhfD.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BV5sVhom.js";import"./types-9tZ4hN1z.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-DZmu7hyy.js";import"./use-mcp-prompts-DPiL3LQv.js";import"./use-thread-outputs-U0o_TC58.js";import"./file-type-icon-nU6c9OQr.js";import"./index-ZdVMGNX_.js";import"./ArrowUp-CsFg9VL2.js";import"./ChevronSelectorVertical-CmQsMnAL.js";import"./CreditCard01-W8t7hmzJ.js";import"./MessageCircle01-D1dT92x6.js";import"./Fingerprint04-DY8McBak.js";import"./LayoutLeft-BSo5LCFE.js";import"./Minus-D2jrgo3d.js";import"./Sun-Bji8LMRX.js";import"./Upload01-BXiTGuBV.js";import"./Users01-BpOXj9ap.js";import"./editor-BR1a7qGD.js";import"./auth-C---Zkvq.js";import"./checkbox-DcLJM3uK.js";import"./index-BdQq_4o_.js";import"./scroll-area-BSx_oSJx.js";import"./calendar-oyktWjjy.js";import"./chart-L_rdD8Fy.js";import"./CategoricalChart-DfjY1woJ.js";import"./index-CMjqNIsi.js";import"./tooltipContext-DvsqpzJf.js";import"./CartesianChart-BxFiyXVM.js";import"./AreaChart-WJ2lLKy4.js";import"./infiniteQueryObserver-CiZgrwb3.js";import"./useQueries-Cmvk9UMI.js";import"./ReferenceLine-8082t01S.js";import"./feature-paywall-DNnv958-.js";import"./plan-ladder-DDAcm-ji.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},Fl=["eq","contains","exists","in"];function zl(s){return Fl.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 $l(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),o=l?decodeURIComponent(l):"";if(o.trim())return{key:o,operator:i&&zl(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 Cs(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 El(s){const e={},l={},i=[],m={};for(const o of s)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(l[o.key]=`%${o.value}%`);break;case"exists":i.push(o.key);break;case"in":o.value&&(m[o.key]=o.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 S,C as Z,aa as X,f as R,ab as J,ac as Q,o as z}from"./usage-stats-C4Ju4qoC.js";import{gA as C,hk as M,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as $}from"./index-C0zcxte6.js";import{C as k}from"./index-Bhd9nKcZ.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(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(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=S(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})});R.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(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(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=S(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})});R.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{B as H,v as U,ab as S,H as Z,ac as X,f as R,ad as J,ae as Q,p as z}from"./usage-stats-DX8XXFQ9.js";import{gA as M,hk as C,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as B}from"./index-C6-0Ff1m.js";import{C as k}from"./index-MxNSCTK9.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=S(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 $=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$({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=S(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})});R.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=$({...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]),B.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]),B.createPortal(d,u.current)});export{Tt as B};