decocms 4.586.0 → 4.587.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 (428) hide show
  1. package/dist/client/assets/{AlertCircle-CGZfuvxJ.js → AlertCircle-gyZP8TIO.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DXqVsicd.js → AreaChart-BmP0ImmP.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-XURGfwpG.js → ArrowLeft-BSzt3fBA.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-ZoKxZa45.js → ArrowRight-BF8V67fk.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DJZ55cl-.js → ArrowUp-DYnF34lU.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-gO5hgFUK.js → BookOpen01-CpYcxx0H.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-B0LNjIyx.js → CartesianChart-Cflx4Yj4.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-CmAKQrAh.js → CategoricalChart-CIY6jBUR.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-CmN8U1V5.js → CheckCircle-CyybvOiK.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-ClblfTVV.js → ChevronDown-DldgAfZA.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-YxAp9GGa.js → ChevronSelectorVertical-BbGwltuJ.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-0ZCAxpBW.js → ChevronUp-Bt9-G08q.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CcTQ1h3_.js → CreditCard01-vIJuQM5M.js} +1 -1
  14. package/dist/client/assets/{Eye-D5j_svLn.js → Eye-BLpLvSpN.js} +1 -1
  15. package/dist/client/assets/{File02-Cs751Kds.js → File02-EV4Uhu5z.js} +1 -1
  16. package/dist/client/assets/{Globe04-DO1uUwfE.js → Globe04-DzGa73Hy.js} +1 -1
  17. package/dist/client/assets/{Image01-CJL4B_rR.js → Image01-BqCHFUEp.js} +1 -1
  18. package/dist/client/assets/{Key01-fuHivqLl.js → Key01-KTk95wIy.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-CCeum9wV.js → LayoutLeft-_2SG51dD.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-cq4srxHs.js → LinkBroken01-Br9NMWkB.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-Bf6dD94_.js → MessageCircle01-D170V1-p.js} +1 -1
  22. package/dist/client/assets/{Minus-Cc21R1KY.js → Minus-D88-u0DO.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DGdgEYxG.js → Monitor01-Df3mZyNU.js} +1 -1
  24. package/dist/client/assets/{Play-zYFs_vGL.js → Play-PdUxpWZE.js} +1 -1
  25. package/dist/client/assets/{Plus--DcN-eh1.js → Plus-BYodv7tE.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-D6M1JZR1.js → ReferenceLine-DrwOzdWE.js} +1 -1
  27. package/dist/client/assets/{SearchMd-BwYuN52e.js → SearchMd-Cuy8VOOG.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-D-gmqcz7.js → ShoppingBag01-pCIsQ-Jb.js} +1 -1
  29. package/dist/client/assets/{Sun-D9ql5ZlI.js → Sun-BABGQWS8.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BQF84Li3.js → SwitchHorizontal01-Daz2EgW0.js} +1 -1
  31. package/dist/client/assets/{Tool01-BeDQSGiN.js → Tool01-D6InpKaj.js} +1 -1
  32. package/dist/client/assets/{Tooltip-C_RHysFo.js → Tooltip-CP1IpP66.js} +1 -1
  33. package/dist/client/assets/{Trash01-BmQrADz0.js → Trash01-LecfbxTv.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-_SFSHjzO.js → TrendUp01-C_SySyBC.js} +1 -1
  35. package/dist/client/assets/{Upload01-DOfZqxci.js → Upload01-CABY93nl.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-BMoOFYIZ.js → UserCheck01-Dqn7toBe.js} +1 -1
  37. package/dist/client/assets/{UserSquare-Dn1UPzSD.js → UserSquare-e0qIxN1Q.js} +1 -1
  38. package/dist/client/assets/{Users01-B_yoWxPn.js → Users01-UF7lWU9g.js} +1 -1
  39. package/dist/client/assets/{XClose-C4MsAn9v.js → XClose-C9ONGfkv.js} +1 -1
  40. package/dist/client/assets/{Zap-DoxB0q6B.js → Zap-D-fE_V4E.js} +1 -1
  41. package/dist/client/assets/{access-gate-DQ55JjgP.js → access-gate-EJXICSzm.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-D0PlxcOk.js → add-connection-dialog-CEukHWSz.js} +1 -1
  43. package/dist/client/assets/agent-app-CPNngTIj.js +1 -0
  44. package/dist/client/assets/{agent-assets-COp9WevM.js → agent-assets-IEsYbqYf.js} +1 -1
  45. package/dist/client/assets/{agent-automation-DRfIHgf4.js → agent-automation-iOzcLbza.js} +1 -1
  46. package/dist/client/assets/{agent-automations-C02SU72h.js → agent-automations-COHiMRwL.js} +1 -1
  47. package/dist/client/assets/{agent-blog-yxvdX-jE.js → agent-blog-ClTYnrpA.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-BOz0k9l4.js → agent-blog-post-BieKo5sU.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-BrjcVSaH.js → agent-calendar-DrN9hKs4.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-Dh06TMfs.js → agent-capabilities-g1Ym1ZNZ.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-DhRc2-S_.js → agent-connect-sources-CZgCtVaH.js} +1 -1
  52. package/dist/client/assets/agent-deck-C63CWfE0.js +1 -0
  53. package/dist/client/assets/{agent-e2e-w331hEXE.js → agent-e2e-OCkFxgz-.js} +1 -1
  54. package/dist/client/assets/agent-experiments-BZeZuSr2.js +1 -0
  55. package/dist/client/assets/agent-file-BS83qFDk.js +1 -0
  56. package/dist/client/assets/{agent-hosting-Cf_5DVCs.js → agent-hosting-DnFnd1YM.js} +1 -1
  57. package/dist/client/assets/{agent-icon-DwJHakBB.js → agent-icon-CfdcYUE7.js} +1 -1
  58. package/dist/client/assets/agent-library-B6Vv6L3Y.js +1 -0
  59. package/dist/client/assets/agent-library-file-CVP6ClM5.js +1 -0
  60. package/dist/client/assets/agent-overview-C3EtX-Ab.js +1 -0
  61. package/dist/client/assets/{agent-releases-CQDLHf-9.js → agent-releases-AtVL__p1.js} +1 -1
  62. package/dist/client/assets/agent-settings-CEIvC9PJ.js +1 -0
  63. package/dist/client/assets/agent-site-editor-code-CP-GqZR-.js +2 -0
  64. package/dist/client/assets/agent-site-editor-content-BmdLBDYW.js +1 -0
  65. package/dist/client/assets/agent-site-editor-preview-_kq8Kx6K.js +1 -0
  66. package/dist/client/assets/{agent-site-editor-Bn_zysVp.js → agent-site-editor-x-mpZE5Q.js} +1 -1
  67. package/dist/client/assets/agent-view-Ch4mKCK3.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-_UB25wdA.js → agent-view-guard-DLjVinhc.js} +1 -1
  69. package/dist/client/assets/{ai-providers-BZmTFJ6J.js → ai-providers-DVYif0Pc.js} +1 -1
  70. package/dist/client/assets/{alert-Dl9RecsO.js → alert-CvRyYnph.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-ChR-yKgZ.js → analytics-sections-DLx5rbIc.js} +1 -1
  72. package/dist/client/assets/{api-keys-BAKKjcCM.js → api-keys-CC3fBiOG.js} +1 -1
  73. package/dist/client/assets/api-keys-DW5FUpRL.js +1 -0
  74. package/dist/client/assets/{app-editor-aGjbireC.js → app-editor-D_fd99pv.js} +1 -1
  75. package/dist/client/assets/{asset-utils-C40qdOgS.js → asset-utils-CTFQl8QO.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-CwzGmsez.js → auth-catchall-n3aaYtq8.js} +1 -1
  77. package/dist/client/assets/{auth-entry-QpiCG8Kt.js → auth-entry-DIN9lopt.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-D0SngsR5.js → auth-split-layout-C3JVxF8x.js} +1 -1
  79. package/dist/client/assets/{auth-DuSLyK-k.js → auth-vqpzzu5D.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-BrPxKw11.js → authenticate-and-persist-oauth-Bblph2Da.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-C_0woHJW.js → automation-list-row-Bz8m8BYO.js} +1 -1
  82. package/dist/client/assets/{automation-runs-DwwK7nJ3.js → automation-runs-osLD86WP.js} +1 -1
  83. package/dist/client/assets/{automations-Dc36NZHt.js → automations-BVdNqAsv.js} +1 -1
  84. package/dist/client/assets/{badge-BvHOfdxU.js → badge-DCIHIkLr.js} +1 -1
  85. package/dist/client/assets/{block-document-CGK32I9G.js → block-document-Dbx69UMn.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-CN-ldvuU.js → blocks-preview-workspace-context-CK2OXCcd.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-DxLq1BL5.js → blocks-tab-states-DeaA94XX.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-cX5z_9aO.js → blog-preview-url-58BZuQLd.js} +1 -1
  89. package/dist/client/assets/{blog-schema-CTE9utzf.js → blog-schema-DfhHwBev.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-DWHD3Df5.js → blog-source-gate-CCV8MP-i.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-DT-8hHxE.js → blog-view-gate-o9mn9sNx.js} +1 -1
  92. package/dist/client/assets/{buckets-DMt9Xchk.js → buckets-RrYuA5vR.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-D0Nbi1s7.js → build-improve-prompt-doc-fsuyBe8R.js} +1 -1
  94. package/dist/client/assets/{calendar-BUgmhSfk.js → calendar-BbIAhjX6.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-DCoklIp8.js → capability-load-error-C937GiKP.js} +1 -1
  96. package/dist/client/assets/{category-editor-B7D8BVkO.js → category-editor-BgCEgg9r.js} +1 -1
  97. package/dist/client/assets/{category-tree-BeXLYa5S.js → category-tree-yoWo8LKT.js} +1 -1
  98. package/dist/client/assets/{chart-DfTUTOGH.js → chart-R5Gu29E6.js} +1 -1
  99. package/dist/client/assets/{chat-context-DG5tQFfU.js → chat-context-DSu9o-d-.js} +1 -1
  100. package/dist/client/assets/{chat-draft-Bv2iw9Fr.js → chat-draft-BHCxr31Y.js} +1 -1
  101. package/dist/client/assets/{checkbox-DAnVkT6Q.js → checkbox-D4P_L8j1.js} +1 -1
  102. package/dist/client/assets/{choose-editor-DX9vd71s.js → choose-editor-DFX28kMs.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-CY4cK7Ok.js → cli-auth-success-DGIBfDO7.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-Cj7WfazE.js → cms-settings-editor-1icUX_7B.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-BDhAH5vV.js → cms-store-drafts-pPAksstG.js} +1 -1
  106. package/dist/client/assets/{collapsible-DifRD2Ww.js → collapsible-BJX4Hk9k.js} +1 -1
  107. package/dist/client/assets/{collection-detail-Bq38QGfT.js → collection-detail-Cnr4TuBK.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-nfEDIRuH.js → collection-display-button-C2JNt8jM.js} +1 -1
  109. package/dist/client/assets/{collection-search-RWM-9f07.js → collection-search-DIaYviRG.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DVjGjn7R.js → collection-table-wrapper-DisSN_Gv.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-BkmY1xp_.js → collection-tabs-CxgBigfA.js} +1 -1
  112. package/dist/client/assets/{combobox-D7DiHBHL.js → combobox-BCPDPSll.js} +1 -1
  113. package/dist/client/assets/{command-DHGFzOhP.js → command-DsEpQe7b.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-D7d32LFm.js → companion-mcps-section-CVk0MHqs.js} +1 -1
  115. package/dist/client/assets/{config-dB-x76iz.js → config-iR6MS3mx.js} +1 -1
  116. package/dist/client/assets/{connect-D-G-5Mck.js → connect-BJ6zbvIe.js} +1 -1
  117. package/dist/client/assets/{connect-key-DYxzA5cq.js → connect-key-R6CnqQKc.js} +1 -1
  118. package/dist/client/assets/{connect-layout-vX9TenPs.js → connect-layout-CWTX0XxP.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-hJXgVRU-.js → connect-source-dialog-DS1_5d5l.js} +1 -1
  120. package/dist/client/assets/{connection-CeuJqjaI.js → connection-Daz_MJgN.js} +1 -1
  121. package/dist/client/assets/{connection-card-bC9jkQR3.js → connection-card-BEkW2Rzt.js} +1 -1
  122. package/dist/client/assets/{connection-detail-BZxu1Il4.js → connection-detail-WE10lVgN.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-BVK3iXej.js → connection-form-helpers-BZyz8LC0.js} +1 -1
  124. package/dist/client/assets/{connection-slug-BofuMVWL.js → connection-slug-CvvLfpvw.js} +1 -1
  125. package/dist/client/assets/{connections-_2oGT26C.js → connections-8XSaqT9l.js} +1 -1
  126. package/dist/client/assets/{content-tab-B2YwxmJz.js → content-tab-C66XjEbc.js} +3 -3
  127. package/dist/client/assets/{context-RVZVsnak.js → context-DW5quhGR.js} +1 -1
  128. package/dist/client/assets/{context-menu-BgKzmvfA.js → context-menu-Dc1eMRQk.js} +1 -1
  129. package/dist/client/assets/{context-shell-Bnnp_FlP.js → context-shell-CnWm8Iac.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-BeGGdtfc.js → create-organization-dialog-BditzGYJ.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-D8S4f077.js → daily-pulse-CCUis9lD.js} +1 -1
  132. package/dist/client/assets/{delete-copy-C7-0DCkQ.js → delete-copy-B8O2OJ6R.js} +1 -1
  133. package/dist/client/assets/{device-hint-B6fw2qhI.js → device-hint-C-aumrOZ.js} +1 -1
  134. package/dist/client/assets/{discover-BhyJuEKB.js → discover-Dbo6G7J-.js} +1 -1
  135. package/dist/client/assets/{domain-settings-DWaq5CPi.js → domain-settings-D_KZc6yt.js} +1 -1
  136. package/dist/client/assets/{drawer-BXd80xtd.js → drawer-Ckz_nyBH.js} +1 -1
  137. package/dist/client/assets/{editor-DNZ-WgCS.js → editor-Dv1qkRGx.js} +1 -1
  138. package/dist/client/assets/{editor-classes-CzejjvgI.js → editor-classes-Bm1swfOR.js} +1 -1
  139. package/dist/client/assets/{empty-message-DVICFi26.js → empty-message-Cs32P_FY.js} +1 -1
  140. package/dist/client/assets/{empty-state-BK8GboWz.js → empty-state-DGaA5_7F.js} +1 -1
  141. package/dist/client/assets/{empty-state-LbEOn0Mj.js → empty-state-DvK349M1.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-DYGF6IS1.js → experiments-tab-choice-pZXd8Qq7.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-B1FMXoXK.js → extract-connection-data-DyZVXRSl.js} +1 -1
  144. package/dist/client/assets/{feature-gate-XyzkzO9l.js → feature-gate-Q3XqEiLe.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-DQF2iJDP.js → feature-paywall-DLrDt0zj.js} +1 -1
  146. package/dist/client/assets/{file-explorer-DbKxpql5.js → file-explorer-DTnrhmiM.js} +1 -1
  147. package/dist/client/assets/{file-preview-A0GfMNED.js → file-preview-C3aAzbl2.js} +1 -1
  148. package/dist/client/assets/{file-share-button-pVEpOvSY.js → file-share-button-DchUqnxv.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-CSrE_noX.js → file-type-icon-C1PmpIi5.js} +1 -1
  150. package/dist/client/assets/{folder-icon-CA298KqN.js → folder-icon-GDlGVc-z.js} +1 -1
  151. package/dist/client/assets/{form-Cxhh0mxt.js → form-B3cubXs5.js} +1 -1
  152. package/dist/client/assets/{frame-navigation--4kFXAAS.js → frame-navigation-CZuPAR0A.js} +1 -1
  153. package/dist/client/assets/{gateway-client-PdaGLWBA.js → gateway-client-DDICMs0d.js} +1 -1
  154. package/dist/client/assets/{general-CuKnI3HJ.js → general-Dm23uhl2.js} +1 -1
  155. package/dist/client/assets/{github-icon-h_xg-qFR.js → github-icon-lV5tv6c5.js} +1 -1
  156. package/dist/client/assets/{held-block-view-zi4CM-KX.js → held-block-view-KOyRMpy4.js} +1 -1
  157. package/dist/client/assets/{home-w1KhoL46.js → home-Bdn-v4eM.js} +1 -1
  158. package/dist/client/assets/{home-overview-DrWyW-2I.js → home-overview-_jWE4zXs.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-uX15ZUhb.js → hosted-reconcile-CxvdumkL.js} +1 -1
  160. package/dist/client/assets/{icon-button-DzpdeaSs.js → icon-button-trmtAOaJ.js} +1 -1
  161. package/dist/client/assets/{index-BK93qS26.js → index-2abaLvjI.js} +1 -1
  162. package/dist/client/assets/{index-ba5Vf9vt.js → index-3YHObF9S.js} +1 -1
  163. package/dist/client/assets/{index-BpNyzjaQ.js → index-BBeGVRdq.js} +1 -1
  164. package/dist/client/assets/{index-SPj0mL-J.js → index-BBpZPks2.js} +1 -1
  165. package/dist/client/assets/{index-3e8V4Do_.js → index-C7CSN06D.js} +1 -1
  166. package/dist/client/assets/{index-SIZschZt.js → index-D7q4YJXJ.js} +1 -1
  167. package/dist/client/assets/{index-CZTrNcsP.js → index-DAKnsBwp.js} +1 -1
  168. package/dist/client/assets/{index-BYaF8G7R.js → index-DaFEqiTp.js} +1 -1
  169. package/dist/client/assets/{index-C_n-5x2E.js → index-DuvX09S7.js} +1 -1
  170. package/dist/client/assets/{index-rt88hTRg.js → index-NWJ7p_1D.js} +1 -1
  171. package/dist/client/assets/{index-DNuvhcDO.js → index-PcrdQb7V.js} +1 -1
  172. package/dist/client/assets/{index-Bld02Tnb.js → index-QCTvcBUO.js} +1 -1
  173. package/dist/client/assets/{index-BuZqAz74.js → index-_VeebRNE.js} +3 -3
  174. package/dist/client/assets/{index-DUn-LHzT.js → index-_m0OQ-gU.js} +1 -1
  175. package/dist/client/assets/{index-BwBEUlXI.js → index-j-nHo57s.js} +1 -1
  176. package/dist/client/assets/{index-redirect-DlIbuGOg.js → index-redirect-qshgZoiU.js} +1 -1
  177. package/dist/client/assets/{index-5KkkYmJi.js → index-wdSinBQm.js} +1 -1
  178. package/dist/client/assets/{index-DsWqYG3w.js → index-ykH_xCiZ.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-CHN_AvWa.js → infiniteQueryObserver-D7rUvD7y.js} +1 -1
  180. package/dist/client/assets/{infra-billing-DHY4EnRE.js → infra-billing-2jNYgPJB.js} +1 -1
  181. package/dist/client/assets/{input--XeG2v6T.js → input-CdG_yBtw.js} +1 -1
  182. package/dist/client/assets/{input-c6Cx2liY.js → input-DAVLPdNO.js} +3 -3
  183. package/dist/client/assets/{integration-icon-D7fga3kk.js → integration-icon-D8pA0JHG.js} +1 -1
  184. package/dist/client/assets/{item-actions-Dld5lBtQ.js → item-actions-0UZvaX_W.js} +1 -1
  185. package/dist/client/assets/{jira-icon-_W0tffOR.js → jira-icon-B6n8YNiL.js} +1 -1
  186. package/dist/client/assets/{label-Dm_T3WyF.js → label-DZkEI5Ke.js} +1 -1
  187. package/dist/client/assets/{layout-DhN3YXX3.js → layout-B_eV9tIt.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-C0w-pw6s.js → legacy-admin-welcome-dialog-ZZ1Gngd8.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-ab_jOs-e.js → legacy-agents-deep-DIO9RwdG.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-ByIcJoSw.js → legacy-main-redirect-MYDZoBC6.js} +1 -1
  191. package/dist/client/assets/library-BGNgyVkv.js +1 -0
  192. package/dist/client/assets/{library-tab-Cui4e0pM.js → library-tab-1VGCJxXK.js} +1 -1
  193. package/dist/client/assets/{login-COwI3GAk.js → login-D1CbtJGZ.js} +1 -1
  194. package/dist/client/assets/{markdown-CwYBGb1B.js → markdown-CBoNEgkf.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-CLuYD3rD.js → mcp-app-renderer-DtOO8I9w.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-i1ZYjV6U.js → mcp-oauth-BHOMUKtj.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-DZ8B5A_7.js → mcp-oauth-DGxlh_95.js} +1 -1
  198. package/dist/client/assets/{members-CvbIQPwh.js → members-DHWvHq5T.js} +1 -1
  199. package/dist/client/assets/{memory-BhMXHewc.js → memory-C6q4guqS.js} +1 -1
  200. package/dist/client/assets/{mock-board-DN7OLcTA.js → mock-board-ltUmj9_y.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-CTONBla7.js → monaco-editor-D-AA2j7y.js} +1 -1
  202. package/dist/client/assets/{monitoring-DPSQDGbL.js → monitoring-DaONVMuI.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-BUZplGDl.js → monitoring-stats-row-DeZi5P6B.js} +1 -1
  204. package/dist/client/assets/{multi-select-BSuPEET4.js → multi-select-DUQRYjic.js} +1 -1
  205. package/dist/client/assets/{mustache-C50JF2sQ.js → mustache-uZ8plADR.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-D8j_NuRK.js → named-rule-step-DreL1Pcr.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-D9U19iHq.js → named-rule-view-DfnvZmuY.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-Bq2YhVDS.js → new-project-dialog-B9UZLlxE.js} +1 -1
  209. package/dist/client/assets/{new-project-store-C82itd6a.js → new-project-store-BzLAZn_u.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-xH1_0Q9p.js → oauth-callback-DeF7HKPm.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-Dph1UX9E.js → oauth-callback-ai-provider-B-Qmx59a.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-BJ9Jn7G7.js → oauth-consent-CwjN9gES.js} +1 -1
  213. package/dist/client/assets/{onboarding-tM_LYdg0.js → onboarding-vgMy4F5g.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-DoQ_2Seq.js → openai-conversation-NvZqYcCK.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-TOzwQjCp.js → optimistic-project-sidebar-views-CBHDKL26.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-BqegE0N0.js → order-monitor-day-Txb2sZ3L.js} +1 -1
  217. package/dist/client/assets/{organization-choice-BzjQ0aL1.js → organization-choice-CP3Mtgeb.js} +1 -1
  218. package/dist/client/assets/{orgs-WruSV9A-.js → orgs-QZqcYIh_.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-TMVLN8mQ.js → own-accounts-section-B-xTQ1qC.js} +1 -1
  220. package/dist/client/assets/{pair-BYbJa99U.js → pair-CHh11R95.js} +1 -1
  221. package/dist/client/assets/{parse-sections-CVDx-uBN.js → parse-sections-BX1x8Bjk.js} +2 -2
  222. package/dist/client/assets/{plan-ladder-Ce2vSjaL.js → plan-ladder-Boo36Lf_.js} +1 -1
  223. package/dist/client/assets/{plan-DDx2VxJ0.js → plan-qEpUYs_C.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-CvxOK5ad.js → plan-usage-card-XvorW2R2.js} +1 -1
  225. package/dist/client/assets/{popover-D6EIL5sL.js → popover-CsisCWO2.js} +1 -1
  226. package/dist/client/assets/{post-calendar-J6Cs6vQ8.js → post-calendar-halP83kx.js} +1 -1
  227. package/dist/client/assets/{post-editor-v1jKXm9-.js → post-editor-S0aVTLKj.js} +1 -1
  228. package/dist/client/assets/{preview-content-9gQGJiFY.js → preview-content-5ttXljO9.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-J4DJmy9P.js → preview-dialog-BclA8lM_.js} +1 -1
  230. package/dist/client/assets/{preview-panel-DLe0RaXg.js → preview-panel-DwKqGg2b.js} +1 -1
  231. package/dist/client/assets/{preview-tab-BxZksZBr.js → preview-tab-DY0X1Y__.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-DCC_2JmD.js → product-picker-dialog-BYy8uc5-.js} +1 -1
  233. package/dist/client/assets/{profile-CU5pOHcx.js → profile-Bd_H-bJ-.js} +1 -1
  234. package/dist/client/assets/{project-app-view-Chii7rIX.js → project-app-view-C5QreDU8.js} +1 -1
  235. package/dist/client/assets/{project-apps-Dezyz6_N.js → project-apps-Qpq3Yqgk.js} +1 -1
  236. package/dist/client/assets/{project-icon-BHn6Xq54.js → project-icon-CoHnihPF.js} +1 -1
  237. package/dist/client/assets/{project-index-5c8GGatg.js → project-index-QHWJWseM.js} +1 -1
  238. package/dist/client/assets/project-reports-WCcwA84Y.js +1 -0
  239. package/dist/client/assets/project-tasks-DKIcBGE8.js +1 -0
  240. package/dist/client/assets/{projects-C19Wu8MK.js → projects-BH3mZwKm.js} +1 -1
  241. package/dist/client/assets/{projects-empty-state-Dh0sHuPd.js → projects-empty-state-DUNpLlKl.js} +1 -1
  242. package/dist/client/assets/{prompts-CYFmsiS6.js → prompts-DYNo1NOe.js} +1 -1
  243. package/dist/client/assets/record-editor-ruw8hHLO.js +1 -0
  244. package/dist/client/assets/{redirect-editor-D9WJKRVv.js → redirect-editor-9KKRUJjb.js} +1 -1
  245. package/dist/client/assets/reports-C98Nopj0.js +1 -0
  246. package/dist/client/assets/{reports-Cj91Mylc.js → reports-CIVLWAKU.js} +1 -1
  247. package/dist/client/assets/{reports-onboarding-gB4My80z.js → reports-onboarding-BvleSDU0.js} +1 -1
  248. package/dist/client/assets/{reports-tab-CsHbv07d.js → reports-tab-Cpactxak.js} +2 -2
  249. package/dist/client/assets/repositories-BUVT6KWE.js +1 -0
  250. package/dist/client/assets/{repositories-C_7l-hzO.js → repositories-D3sB2pcK.js} +1 -1
  251. package/dist/client/assets/{repository-binding-VVfcdUiy.js → repository-binding-Ct6tvS6k.js} +1 -1
  252. package/dist/client/assets/{repository-picker-By75IHJa.js → repository-picker-D7wgGSh_.js} +1 -1
  253. package/dist/client/assets/{require-capability-DEShAaY8.js → require-capability-psnJqvDd.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-GSSn-bTA.js → required-auth-layout-5KQLVPyY.js} +1 -1
  255. package/dist/client/assets/{reset-password-eGGPXuZQ.js → reset-password-CMUJSwol.js} +1 -1
  256. package/dist/client/assets/{resizable-XeFzd9pk.js → resizable-TldGXL10.js} +1 -1
  257. package/dist/client/assets/{resolve-tab-icon-DQMxOocF.js → resolve-tab-icon-Dx984IYY.js} +1 -1
  258. package/dist/client/assets/{review-settings-BOoUlwEx.js → review-settings-EAZgwqP6.js} +1 -1
  259. package/dist/client/assets/{role-color-D-S7Ra1A.js → role-color-Az77j5-3.js} +1 -1
  260. package/dist/client/assets/{roles-C8YQ1Aw2.js → roles-KaJOIApg.js} +1 -1
  261. package/dist/client/assets/route-CLOMEKRN.js +1 -0
  262. package/dist/client/assets/{route-ojZJTNbW.js → route-CsFahJR-.js} +1 -1
  263. package/dist/client/assets/{route-lr7i-nM3.js → route-DwgCQsMA.js} +1 -1
  264. package/dist/client/assets/{route-page-header-BqA32d57.js → route-page-header-B8Mmh-Yn.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-CkSQDoxX.js → sandbox-git-api-DN6h_KqP.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-BBz4IKVo.js → sandbox-lifecycle-context-Ptllc8xw.js} +1 -1
  267. package/dist/client/assets/{save-status-CmYiPWXE.js → save-status-DI5XwwX3.js} +1 -1
  268. package/dist/client/assets/{schema-CCpL_LVZ.js → schema-Bawh3LAf.js} +1 -1
  269. package/dist/client/assets/{schema-B0biNpls.js → schema-Cp9WUmjR.js} +1 -1
  270. package/dist/client/assets/{scroll-area-bkCFS0v8.js → scroll-area-EnKfGRfx.js} +1 -1
  271. package/dist/client/assets/{search-input-C4sd-kKh.js → search-input-JNlnu1vU.js} +1 -1
  272. package/dist/client/assets/{search-toggle-rjC0c-Iy.js → search-toggle-Gczjy-6q.js} +1 -1
  273. package/dist/client/assets/{secret-picker-ujhqmuU6.js → secret-picker-DpLLS_i2.js} +1 -1
  274. package/dist/client/assets/{secrets-CUx_W408.js → secrets-BkICoFYK.js} +1 -1
  275. package/dist/client/assets/{section-array-field-DOngDm8U.js → section-array-field-DeIFn5hU.js} +1 -1
  276. package/dist/client/assets/{sections-DmtYqnPM.js → sections-DsIUB3iD.js} +1 -1
  277. package/dist/client/assets/{sections-editor-DsX6y72K.js → sections-editor-DQjh_kFR.js} +1 -1
  278. package/dist/client/assets/{select-BkYZ4NYA.js → select-QgdI1Rfc.js} +1 -1
  279. package/dist/client/assets/{select-model-BNVZsPuq.js → select-model-CRyWxfNm.js} +1 -1
  280. package/dist/client/assets/{seo-editor-D-DOTzeP.js → seo-editor-bIUZHc8M.js} +1 -1
  281. package/dist/client/assets/{separator-DTKXzVmt.js → separator-BEzt-XQG.js} +1 -1
  282. package/dist/client/assets/{session-runtime-HHtypsTM.js → session-runtime-DLIbUSWD.js} +1 -1
  283. package/dist/client/assets/settings-tab-DdQCVDpj.js +1 -0
  284. package/dist/client/assets/{sheet-Lq2qXLx8.js → sheet-8iInbf9D.js} +1 -1
  285. package/dist/client/assets/{shell-layout-rYoN4RTk.js → shell-layout-D8UbY9n5.js} +1 -1
  286. package/dist/client/assets/{site-draft-actions-D72ZWrGI.js → site-draft-actions-BVBEL1BN.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-DdS4HrBp.js → site-draft-view-CU45gg4m.js} +1 -1
  288. package/dist/client/assets/site-editor-CyPykGup.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-aupfR4Aq.js → site-editor-toast-Cjans_Z7.js} +1 -1
  290. package/dist/client/assets/{skills-Cyx-LBzb.js → skills-CznUJdJq.js} +1 -1
  291. package/dist/client/assets/{slider-B4bXP1H_.js → slider-CnikFjRE.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-n9zdQXyB.js → sortable.esm-CW9y-Z65.js} +1 -1
  293. package/dist/client/assets/{sso-DIU8j1zk.js → sso-BUdWqS9w.js} +1 -1
  294. package/dist/client/assets/{suggestion-Nntdxi5T.js → suggestion-gEn2gqrr.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-DHSnZQuw.js → super-agent-icon-Dx5Acgbw.js} +1 -1
  296. package/dist/client/assets/{switch-COjzxQ39.js → switch-7uXAaerp.js} +1 -1
  297. package/dist/client/assets/{synced-repos-s5ovH7Qr.js → synced-repos-C29_oiY7.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-CvvfUXQl.js → tab-icon-glyph-CgM03OpD.js} +1 -1
  299. package/dist/client/assets/{table-DQIAY6r-.js → table-drGady29.js} +1 -1
  300. package/dist/client/assets/{tabs-CbfCGlFS.js → tabs-C9s0KY6N.js} +1 -1
  301. package/dist/client/assets/{task-board-DEUSGytR.js → task-board-CHctJwrW.js} +1 -1
  302. package/dist/client/assets/{task-key-DaPOId6s.js → task-key-B6H-3XJr.js} +1 -1
  303. package/dist/client/assets/{task-route-BJj40Yza.js → task-route-CBxVmSL7.js} +1 -1
  304. package/dist/client/assets/{task-status-B6WfZxUN.js → task-status-CRPxL8gs.js} +1 -1
  305. package/dist/client/assets/{taskboard-analytics-UnAzvxoh.js → taskboard-analytics-DMGsXigW.js} +1 -1
  306. package/dist/client/assets/tasks-Cey8OfRa.js +1 -0
  307. package/dist/client/assets/{tasks-vny6IFm0.js → tasks-Dmvi9b_Y.js} +1 -1
  308. package/dist/client/assets/{textarea-CcO-rfag.js → textarea-Cimn1xhl.js} +1 -1
  309. package/dist/client/assets/{thread-analytics-BUAtXNjP.js → thread-analytics-BhURcKi_.js} +1 -1
  310. package/dist/client/assets/{thread-button-DbVaWztE.js → thread-button-DCHp9tO9.js} +1 -1
  311. package/dist/client/assets/{thread-intent-CyH0Z8_7.js → thread-intent-pC76uPwU.js} +1 -1
  312. package/dist/client/assets/{thread-route-BjDCYf6b.js → thread-route-BrFKkVcF.js} +1 -1
  313. package/dist/client/assets/{thread-route-Dw1cQjON.js → thread-route-D_C8d7xK.js} +1 -1
  314. package/dist/client/assets/{thread-sheet-body-C6XCaB8H.js → thread-sheet-body-DAosbhoz.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-C45MZ0gR.js → time-range-picker-9BtbKkzB.js} +1 -1
  316. package/dist/client/assets/{toggle-group-DFyE84bx.js → toggle-group-n8suP90I.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-BgHdncVU.js → tool-set-selector-DP0UayXg.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-BroRQfDx.js → toolbar-icon-button-BAHC2wln.js} +1 -1
  319. package/dist/client/assets/{tooltip-DnGqcvtu.js → tooltip-BYnWhoO-.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-BVc6eTu_.js → tooltipContext-DqZT6jLi.js} +1 -1
  321. package/dist/client/assets/{track-ENeykFhY.js → track-BXFPt0jP.js} +1 -1
  322. package/dist/client/assets/{types-B4ln4I1a.js → types-CdP485rd.js} +1 -1
  323. package/dist/client/assets/{url-slug-BCxEu7m_.js → url-slug-BkKOqwJh.js} +1 -1
  324. package/dist/client/assets/{usage-stats-C5Wj6kIy.js → usage-stats-CCyq9Zgo.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-BG5EDM0R.js → use-ai-providers-D6peTC8u.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-CjwRm6n8.js → use-api-keys-DUVyFEfc.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-BH9tV1RN.js → use-apply-named-rule-D9dIZN02.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-DINxvsUX.js +1 -0
  329. package/dist/client/assets/{use-automations-D4bJmUmE.js → use-automations-qL4OMGNt.js} +1 -1
  330. package/dist/client/assets/{use-autosave-Dq8gUNzN.js → use-autosave-DGPPxEGb.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-JOmELUJ6.js +1 -0
  332. package/dist/client/assets/use-blog-view-DQBrFMuV.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-D38zRykR.js → use-chat-layout-state-DMWJLUZv.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-Bf5Y1rJL.js → use-cms-publish-actions-DuI-swrZ.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-leNqQRzW.js → use-connect-companion-C9LfjXNg.js} +1 -1
  336. package/dist/client/assets/{use-connection-C4G0ZMoe.js → use-connection-cSaq7_i7.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-CeYI53r8.js → use-content-sync-DElceZSb.js} +1 -1
  338. package/dist/client/assets/{use-copy-BFeXylk9.js → use-copy-DKfw8n-3.js} +1 -1
  339. package/dist/client/assets/{use-current-view-swKX6Bc6.js → use-current-view-a6HKOM5X.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-DX45EO9I.js → use-date-fns-locale-B_xn4WWe.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-BVXsg1Of.js → use-debounced-autosave-Dtb8gA2L.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-CPl0Wyl6.js → use-debounced-value-BAma3ogA.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-C4mVYU5r.js → use-deco-credits-BeQtkXPR.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-SRdggwTs.js → use-decopilot-events-B0JW1Gtz.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-CRyG6Do-.js → use-delete-block-CUXsAbin.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-C-kXdkQA.js → use-delete-connection-DNw4luEn.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-Dwt-RYsg.js → use-deployment-admin-BENsmKZ2.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-DgXhk8I6.js → use-entitlements-B6kax2f9.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-DtikvUh-.js → use-fast-preview-draft-url-fo8VZAME.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-BlRaUlfc.js → use-file-configs-aENtp_va.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-CJdNm4ZY.js → use-id-selection-DZH3hNJe.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-cNZb_oio.js → use-in-settings-jNNDWh86.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-BKl_0o2v.js → use-inbox-feed-Axr6Wlqz.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-DgSz0aNh.js → use-infinite-scroll-DjPaD0kN.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-pUhubFwu.js → use-join-requests-WKQMf9yH.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-B0lMlgyK.js → use-main-panel-tabs-DFx6VsI6.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-BLLNsVrE.js → use-mcp-auth-status-CCXu_Vmb.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-UWOU8UbZ.js → use-mcp-client-UP8_tZ9p.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-CjwiiUTx.js → use-mcp-prompts-BM9uSers.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-C7Kg2Nto.js → use-mcp-tools-mA41mojn.js} +1 -1
  361. package/dist/client/assets/{use-mobile-Cq1k3-Gk.js → use-mobile-FS1bh43h.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-DH3gSdil.js → use-move-blocks-DAGy4lk4.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-vJOwimSb.js → use-navigate-to-agent-Dg2qYHJi.js} +1 -1
  364. package/dist/client/assets/{use-never-published-BB5kYeS3.js → use-never-published-DDbQ0Vt8.js} +1 -1
  365. package/dist/client/assets/{use-org-fs-CAHuTLc_.js → use-org-fs-DbTl86_J.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-D_lLzWXp.js → use-org-notice-D5zuQ4m5.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-BxGs1Gi_.js → use-org-repo-syncs-C8jG5KSy.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-fZ2uDAIp.js → use-org-sso-QMFtipA-.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-D8JbZGlQ.js → use-organization-settings-ByKdFGhE.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-B3thngCs.js → use-panel-navigate-D4GuHOu1.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-BKZJ0lpX.js → use-project-native-view-presence-BEytngua.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-CD-cb4-V.js → use-project-scope-CpfOkL8I.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-Co5DoIGT.js → use-recent-apps-Dt_ZPA-N.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-lGxrsSfr.js → use-reports-diagnostic-MEHXC7RY.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-BcrE-YTF.js → use-sandbox-events-CPKES4Ee.js} +1 -1
  376. package/dist/client/assets/{use-secrets-yIZbpwIn.js → use-secrets-BGup3PHO.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-C2vE3o4z.js → use-section-preview-base-CErD4C9a.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-Bo3tE9bK.js → use-sidebar-collapsed-9Vi_PrVo.js} +1 -1
  379. package/dist/client/assets/{use-tags-BQcMuDty.js → use-tags-CL2wnmn0.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-CIahrWuX.js → use-task-board-analytics-CGiNWJEU.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-W9kboyPg.js → use-task-board-item-prs-Mcp2690_.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-DP6ZFnrN.js → use-task-board-items-DxcJSuMX.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-qQB1KZ8p.js → use-task-board-prompts-CeUQeuL1.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-C2UpEUk-.js → use-task-metadata-CG-mCqhD.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-A3ms5KEO.js → use-thread-outputs-BRvk_pZG.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-CXMOqIBD.js → use-view-draft-kind-BLkqtU-Q.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-poVZeRVs.js → use-voice-input-Dv1QYOod.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-CuAeAzcr.js +1 -0
  389. package/dist/client/assets/{useQueries-DhONZGBj.js → useQueries-X3Wj3mkG.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-QLEux5C_.js +1 -0
  391. package/dist/client/assets/{users-B_cNHXhu.js → users-SsaEf6Es.js} +1 -1
  392. package/dist/client/assets/{utils-BdAsQahL.js → utils-Dovv0grx.js} +1 -1
  393. package/dist/client/assets/{variant-calendar-DkWaMyhm.js → variant-calendar-CtOZf_f5.js} +1 -1
  394. package/dist/client/assets/{variant-matcher-override-CxSxAvsY.js → variant-matcher-override-CdFxQaGp.js} +1 -1
  395. package/dist/client/assets/{view-header-CZchRX7c.js → view-header-ByNTN-so.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-4VHtoaO4.js → virtual-mcp-BjSK3sGG.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-C7kLS2GY.js → watch-sse-pool-_tvuBMId.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +1 -1
  400. package/package.json +1 -1
  401. package/dist/client/assets/agent-app-Ch0m8w-u.js +0 -1
  402. package/dist/client/assets/agent-deck-BEYLEOzY.js +0 -1
  403. package/dist/client/assets/agent-experiments-CIRveYjB.js +0 -1
  404. package/dist/client/assets/agent-file-CRD-Yf8v.js +0 -1
  405. package/dist/client/assets/agent-library-BDbVLVqf.js +0 -1
  406. package/dist/client/assets/agent-library-file-FdEtCyvQ.js +0 -1
  407. package/dist/client/assets/agent-overview-90jCAnhT.js +0 -1
  408. package/dist/client/assets/agent-settings-DazJIQdd.js +0 -1
  409. package/dist/client/assets/agent-site-editor-code-AxRnYsCW.js +0 -2
  410. package/dist/client/assets/agent-site-editor-content-Css28lBT.js +0 -1
  411. package/dist/client/assets/agent-site-editor-preview-rUOwwi2z.js +0 -1
  412. package/dist/client/assets/agent-view-BwA2SWmb.js +0 -1
  413. package/dist/client/assets/api-keys-7ijHuhZV.js +0 -1
  414. package/dist/client/assets/library-LpeL-fNK.js +0 -1
  415. package/dist/client/assets/project-reports-BhJG82JT.js +0 -1
  416. package/dist/client/assets/project-tasks-AXDig_Zb.js +0 -1
  417. package/dist/client/assets/record-editor-D2NFDCNZ.js +0 -1
  418. package/dist/client/assets/reports-C-kEainI.js +0 -1
  419. package/dist/client/assets/repositories-L_Jm13il.js +0 -1
  420. package/dist/client/assets/route-DjlZ9cbf.js +0 -1
  421. package/dist/client/assets/settings-tab-B50Sia1R.js +0 -1
  422. package/dist/client/assets/site-editor-B6Bvzk4_.js +0 -1
  423. package/dist/client/assets/tasks-BtIOVSMQ.js +0 -1
  424. package/dist/client/assets/use-ask-in-chat-C6eCNqgR.js +0 -1
  425. package/dist/client/assets/use-blocks-v8-project-Dh0QtV4J.js +0 -1
  426. package/dist/client/assets/use-blog-view-w4rEUATy.js +0 -1
  427. package/dist/client/assets/useInfiniteQuery-CNxlkxws.js +0 -1
  428. package/dist/client/assets/useSuspenseInfiniteQuery-FHN2hj19.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,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 Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-BuZqAz74.js";import{S as Ws}from"./search-input-C4sd-kKh.js";import{E as Ht}from"./empty-state-BK8GboWz.js";import{R as Xs}from"./require-capability-DEShAaY8.js";import{f as js}from"./pair-BYbJa99U.js";import{b as ts}from"./use-connection-C4G0ZMoe.js";import{g as Ps}from"./connection-slug-BofuMVWL.js";import{B as Lt}from"./badge-BvHOfdxU.js";import{P as ds,a as ms,b as us}from"./popover-D6EIL5sL.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-DnGqcvtu.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-DwJHakBB.js";import{i as sl}from"./Key01-fuHivqLl.js";import{i as ll}from"./Play-zYFs_vGL.js";import{MonacoCodeEditor as bs}from"./monaco-editor-CTONBla7.js";import{u as rl}from"./use-mcp-client-UWOU8UbZ.js";import{u as il}from"./repository-binding-VVfcdUiy.js";import{n as Ot}from"./LinkBroken01-cq4srxHs.js";import{c as ol}from"./SwitchHorizontal01-BQF84Li3.js";import{s as nl}from"./Plus--DcN-eh1.js";import{s as al}from"./Trash01-BmQrADz0.js";import{M as zt}from"./multi-select-BSuPEET4.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-BkYZ4NYA.js";import{e as ys,T as cl}from"./time-range-picker-C45MZ0gR.js";import{T as dl}from"./textarea-CcO-rfag.js";import{C as Ds}from"./collection-tabs-BkmY1xp_.js";import{S as ml}from"./switch-COjzxQ39.js";import{L as ul}from"./label-Dm_T3WyF.js";import{I as It}from"./integration-icon-D7fga3kk.js";import{A as fl,a as xl,b as pl}from"./alert-Dl9RecsO.js";import{K as gt}from"./monitoring-stats-row-BUZplGDl.js";import{b as Bt}from"./use-entitlements-DgXhk8I6.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-C6XCaB8H.js";import{u as wl}from"./useSuspenseInfiniteQuery-FHN2hj19.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-Lq2qXLx8.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-DQIAY6r-.js";import{t as ss}from"./ChevronDown-ClblfTVV.js";import{n as ls}from"./ChevronUp-0ZCAxpBW.js";import{u as Os}from"./use-id-selection-CJdNm4ZY.js";import{u as Fs}from"./use-infinite-scroll-DgSz0aNh.js";import{u as Il}from"./useInfiniteQuery-CNxlkxws.js";import{g as Tl}from"./task-status-B6WfZxUN.js";import{u as kl,d as Ml}from"./use-automations-D4bJmUmE.js";import{A as _l}from"./automation-runs-DwwK7nJ3.js";import{i as Pl}from"./ArrowLeft-XURGfwpG.js";import{E as Cs}from"./empty-state-LbEOn0Mj.js";import{O as $s}from"./watch-sse-pool-C7kLS2GY.js";import{t as Dl}from"./task-key-DaPOId6s.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-BqegE0N0.js";import{F as $l}from"./feature-gate-XyzkzO9l.js";import"./SearchMd-BwYuN52e.js";import"./access-gate-DQ55JjgP.js";import"./capability-load-error-DCoklIp8.js";import"./Tool01-BeDQSGiN.js";import"./ArrowRight-ZoKxZa45.js";import"./collapsible-DifRD2Ww.js";import"./use-copy-BFeXylk9.js";import"./usage-stats-C5Wj6kIy.js";import"./utils-CVEq3hMx.js";import"./markdown-CwYBGb1B.js";import"./chat-context-DG5tQFfU.js";import"./use-panel-navigate-B3thngCs.js";import"./thread-route-Dw1cQjON.js";import"./use-project-scope-CD-cb4-V.js";import"./use-view-draft-kind-CXMOqIBD.js";import"./use-blog-view-w4rEUATy.js";import"./use-organization-settings-D8JbZGlQ.js";import"./schema-CCpL_LVZ.js";import"./task-board-DEUSGytR.js";import"./thread-intent-CyH0Z8_7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-HHtypsTM.js";import"./use-ai-providers-BG5EDM0R.js";import"./use-current-view-swKX6Bc6.js";import"./use-in-settings-cNZb_oio.js";import"./use-decopilot-events-SRdggwTs.js";import"./use-mobile-Cq1k3-Gk.js";import"./File02-Cs751Kds.js";import"./gateway-client-PdaGLWBA.js";import"./form-Cxhh0mxt.js";import"./UserCheck01-BMoOFYIZ.js";import"./use-task-board-items-DP6ZFnrN.js";import"./config-dB-x76iz.js";import"./AlertCircle-CGZfuvxJ.js";import"./CheckCircle-CmN8U1V5.js";import"./Eye-D5j_svLn.js";import"./task-route-BJj40Yza.js";import"./project-index-5c8GGatg.js";import"./TrendUp01-_SFSHjzO.js";import"./shell-layout-rYoN4RTk.js";import"./Globe04-DO1uUwfE.js";import"./UserSquare-Dn1UPzSD.js";import"./use-deployment-admin-Dwt-RYsg.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-C4MsAn9v.js";import"./use-org-notice-D_lLzWXp.js";import"./Monitor01-DGdgEYxG.js";import"./Zap-DoxB0q6B.js";import"./command-DHGFzOhP.js";import"./index-DsWqYG3w.js";import"./project-icon-BHn6Xq54.js";import"./use-navigate-to-agent-vJOwimSb.js";import"./use-debounced-value-CPl0Wyl6.js";import"./new-project-dialog-Bq2YhVDS.js";import"./repository-picker-By75IHJa.js";import"./github-icon-h_xg-qFR.js";import"./collection-search-RWM-9f07.js";import"./BookOpen01-gO5hgFUK.js";import"./ShoppingBag01-D-gmqcz7.js";import"./new-project-store-C82itd6a.js";import"./legacy-admin-welcome-dialog-C0w-pw6s.js";import"./drawer-BXd80xtd.js";import"./required-auth-layout-GSSn-bTA.js";import"./use-org-sso-fZ2uDAIp.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CLuYD3rD.js";import"./types-B4ln4I1a.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-CJL4B_rR.js";import"./use-mcp-prompts-CjwiiUTx.js";import"./use-thread-outputs-A3ms5KEO.js";import"./file-type-icon-CSrE_noX.js";import"./index-DNuvhcDO.js";import"./ArrowUp-DJZ55cl-.js";import"./ChevronSelectorVertical-YxAp9GGa.js";import"./CreditCard01-CcTQ1h3_.js";import"./MessageCircle01-Bf6dD94_.js";import"./LayoutLeft-CCeum9wV.js";import"./Minus-Cc21R1KY.js";import"./Sun-D9ql5ZlI.js";import"./Upload01-DOfZqxci.js";import"./Users01-B_yoWxPn.js";import"./editor-DNZ-WgCS.js";import"./auth-DuSLyK-k.js";import"./checkbox-DAnVkT6Q.js";import"./index-BdQq_4o_.js";import"./scroll-area-bkCFS0v8.js";import"./calendar-BUgmhSfk.js";import"./chart-DfTUTOGH.js";import"./CategoricalChart-CmAKQrAh.js";import"./index-BwBEUlXI.js";import"./tooltipContext-BVc6eTu_.js";import"./CartesianChart-B0LNjIyx.js";import"./AreaChart-DXqVsicd.js";import"./infiniteQueryObserver-CHN_AvWa.js";import"./useQueries-DhONZGBj.js";import"./ReferenceLine-D6M1JZR1.js";import"./feature-paywall-DQF2iJDP.js";import"./plan-ladder-Ce2vSjaL.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,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 Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-_VeebRNE.js";import{S as Ws}from"./search-input-JNlnu1vU.js";import{E as Ht}from"./empty-state-DGaA5_7F.js";import{R as Xs}from"./require-capability-psnJqvDd.js";import{f as js}from"./pair-CHh11R95.js";import{b as ts}from"./use-connection-cSaq7_i7.js";import{g as Ps}from"./connection-slug-CvvLfpvw.js";import{B as Lt}from"./badge-DCIHIkLr.js";import{P as ds,a as ms,b as us}from"./popover-CsisCWO2.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-BYnWhoO-.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-CfdcYUE7.js";import{i as sl}from"./Key01-KTk95wIy.js";import{i as ll}from"./Play-PdUxpWZE.js";import{MonacoCodeEditor as bs}from"./monaco-editor-D-AA2j7y.js";import{u as rl}from"./use-mcp-client-UP8_tZ9p.js";import{u as il}from"./repository-binding-Ct6tvS6k.js";import{n as Ot}from"./LinkBroken01-Br9NMWkB.js";import{c as ol}from"./SwitchHorizontal01-Daz2EgW0.js";import{s as nl}from"./Plus-BYodv7tE.js";import{s as al}from"./Trash01-LecfbxTv.js";import{M as zt}from"./multi-select-DUQRYjic.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-QgdI1Rfc.js";import{e as ys,T as cl}from"./time-range-picker-9BtbKkzB.js";import{T as dl}from"./textarea-Cimn1xhl.js";import{C as Ds}from"./collection-tabs-CxgBigfA.js";import{S as ml}from"./switch-7uXAaerp.js";import{L as ul}from"./label-DZkEI5Ke.js";import{I as It}from"./integration-icon-D8pA0JHG.js";import{A as fl,a as xl,b as pl}from"./alert-CvRyYnph.js";import{K as gt}from"./monitoring-stats-row-DeZi5P6B.js";import{b as Bt}from"./use-entitlements-B6kax2f9.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-DAosbhoz.js";import{u as wl}from"./useSuspenseInfiniteQuery-QLEux5C_.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-8iInbf9D.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-drGady29.js";import{t as ss}from"./ChevronDown-DldgAfZA.js";import{n as ls}from"./ChevronUp-Bt9-G08q.js";import{u as Os}from"./use-id-selection-DZH3hNJe.js";import{u as Fs}from"./use-infinite-scroll-DjPaD0kN.js";import{u as Il}from"./useInfiniteQuery-CuAeAzcr.js";import{g as Tl}from"./task-status-CRPxL8gs.js";import{u as kl,d as Ml}from"./use-automations-qL4OMGNt.js";import{A as _l}from"./automation-runs-osLD86WP.js";import{i as Pl}from"./ArrowLeft-BSzt3fBA.js";import{E as Cs}from"./empty-state-DvK349M1.js";import{O as $s}from"./watch-sse-pool-_tvuBMId.js";import{t as Dl}from"./task-key-B6H-3XJr.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-Txb2sZ3L.js";import{F as $l}from"./feature-gate-Q3XqEiLe.js";import"./SearchMd-Cuy8VOOG.js";import"./access-gate-EJXICSzm.js";import"./capability-load-error-C937GiKP.js";import"./Tool01-D6InpKaj.js";import"./ArrowRight-BF8V67fk.js";import"./collapsible-BJX4Hk9k.js";import"./use-copy-DKfw8n-3.js";import"./usage-stats-CCyq9Zgo.js";import"./utils-CVEq3hMx.js";import"./markdown-CBoNEgkf.js";import"./chat-context-DSu9o-d-.js";import"./use-panel-navigate-D4GuHOu1.js";import"./thread-route-D_C8d7xK.js";import"./use-project-scope-CpfOkL8I.js";import"./use-view-draft-kind-BLkqtU-Q.js";import"./use-blog-view-DQBrFMuV.js";import"./use-organization-settings-ByKdFGhE.js";import"./schema-Bawh3LAf.js";import"./task-board-CHctJwrW.js";import"./thread-intent-pC76uPwU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-DLIbUSWD.js";import"./use-ai-providers-D6peTC8u.js";import"./use-current-view-a6HKOM5X.js";import"./use-in-settings-jNNDWh86.js";import"./use-decopilot-events-B0JW1Gtz.js";import"./use-mobile-FS1bh43h.js";import"./File02-EV4Uhu5z.js";import"./gateway-client-DDICMs0d.js";import"./form-B3cubXs5.js";import"./UserCheck01-Dqn7toBe.js";import"./use-task-board-items-DxcJSuMX.js";import"./config-iR6MS3mx.js";import"./AlertCircle-gyZP8TIO.js";import"./CheckCircle-CyybvOiK.js";import"./Eye-BLpLvSpN.js";import"./task-route-CBxVmSL7.js";import"./project-index-QHWJWseM.js";import"./TrendUp01-C_SySyBC.js";import"./shell-layout-D8UbY9n5.js";import"./Globe04-DzGa73Hy.js";import"./UserSquare-e0qIxN1Q.js";import"./use-deployment-admin-BENsmKZ2.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-C9ONGfkv.js";import"./use-org-notice-D5zuQ4m5.js";import"./Monitor01-Df3mZyNU.js";import"./Zap-D-fE_V4E.js";import"./command-DsEpQe7b.js";import"./index-ykH_xCiZ.js";import"./project-icon-CoHnihPF.js";import"./use-navigate-to-agent-Dg2qYHJi.js";import"./use-debounced-value-BAma3ogA.js";import"./new-project-dialog-B9UZLlxE.js";import"./repository-picker-D7wgGSh_.js";import"./github-icon-lV5tv6c5.js";import"./collection-search-DIaYviRG.js";import"./BookOpen01-CpYcxx0H.js";import"./ShoppingBag01-pCIsQ-Jb.js";import"./new-project-store-BzLAZn_u.js";import"./legacy-admin-welcome-dialog-ZZ1Gngd8.js";import"./drawer-Ckz_nyBH.js";import"./required-auth-layout-5KQLVPyY.js";import"./use-org-sso-QMFtipA-.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DtOO8I9w.js";import"./types-CdP485rd.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-BqCHFUEp.js";import"./use-mcp-prompts-BM9uSers.js";import"./use-thread-outputs-BRvk_pZG.js";import"./file-type-icon-C1PmpIi5.js";import"./index-PcrdQb7V.js";import"./ArrowUp-DYnF34lU.js";import"./ChevronSelectorVertical-BbGwltuJ.js";import"./CreditCard01-vIJuQM5M.js";import"./MessageCircle01-D170V1-p.js";import"./LayoutLeft-_2SG51dD.js";import"./Minus-D88-u0DO.js";import"./Sun-BABGQWS8.js";import"./Upload01-CABY93nl.js";import"./Users01-UF7lWU9g.js";import"./editor-Dv1qkRGx.js";import"./auth-vqpzzu5D.js";import"./checkbox-D4P_L8j1.js";import"./index-BdQq_4o_.js";import"./scroll-area-EnKfGRfx.js";import"./calendar-BbIAhjX6.js";import"./chart-R5Gu29E6.js";import"./CategoricalChart-CIY6jBUR.js";import"./index-j-nHo57s.js";import"./tooltipContext-DqZT6jLi.js";import"./CartesianChart-Cflx4Yj4.js";import"./AreaChart-BmP0ImmP.js";import"./infiniteQueryObserver-D7rUvD7y.js";import"./useQueries-X3Wj3mkG.js";import"./ReferenceLine-DrwOzdWE.js";import"./feature-paywall-DLrDt0zj.js";import"./plan-ladder-Boo36Lf_.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Is(s){return s.trim()?s.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{d5 as _}from"./index-BuZqAz74.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
1
+ import{d5 as _}from"./index-_VeebRNE.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
@@ -1 +1 @@
1
- import{c as f,f as p,ax as u,j as s,b7 as x,N as a}from"./index-BuZqAz74.js";import{C as j}from"./capability-load-error-DCoklIp8.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
1
+ import{c as f,f as p,ax as u,j as s,b7 as x,N as a}from"./index-_VeebRNE.js";import{C as j}from"./capability-load-error-C937GiKP.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
@@ -1 +1 @@
1
- import{c as j,at as W,av as q,b as E,r as z,d as G,j as o,aT as $,R as I,P as N,n as U,B as k,b7 as V}from"./index-BuZqAz74.js";import{u as K}from"./use-mobile-Cq1k3-Gk.js";import{T as Y,a as Z,c as J}from"./tooltip-DnGqcvtu.js";import{t as Q,a as X}from"./MessageCircle01-Bf6dD94_.js";import{s as ee}from"./XClose-C4MsAn9v.js";import{b as te}from"./thread-button-DbVaWztE.js";import{T as ne}from"./toolbar-icon-button-BroRQfDx.js";import{b as se,R as oe,a as D}from"./resizable-XeFzd9pk.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-D38zRykR.js";import{R as ae}from"./route-page-header-BqA32d57.js";import"./index-DNuvhcDO.js";import"./use-sidebar-collapsed-Bo3tE9bK.js";import"./sheet-Lq2qXLx8.js";import"./use-in-settings-cNZb_oio.js";import"./use-panel-navigate-B3thngCs.js";import"./thread-route-Dw1cQjON.js";import"./use-project-scope-CD-cb4-V.js";import"./repository-binding-VVfcdUiy.js";import"./use-mcp-client-UWOU8UbZ.js";import"./auth-DuSLyK-k.js";import"./LayoutLeft-CCeum9wV.js";import"./use-current-view-swKX6Bc6.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",T="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return M()}function fe(){return z.use(O)}function M(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[T];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[T]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[T]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const R=s.current;R&&y(R);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=M();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=M();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function B(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=M();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:T,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(B,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(B,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:B});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
1
+ import{c as j,at as W,av as q,b as E,r as z,d as G,j as o,aT as $,R as I,P as N,n as U,B as k,b7 as V}from"./index-_VeebRNE.js";import{u as K}from"./use-mobile-FS1bh43h.js";import{T as Y,a as Z,c as J}from"./tooltip-BYnWhoO-.js";import{t as Q,a as X}from"./MessageCircle01-D170V1-p.js";import{s as ee}from"./XClose-C9ONGfkv.js";import{b as te}from"./thread-button-DCHp9tO9.js";import{T as ne}from"./toolbar-icon-button-BAHC2wln.js";import{b as se,R as oe,a as D}from"./resizable-TldGXL10.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-DMWJLUZv.js";import{R as ae}from"./route-page-header-B8Mmh-Yn.js";import"./index-PcrdQb7V.js";import"./use-sidebar-collapsed-9Vi_PrVo.js";import"./sheet-8iInbf9D.js";import"./use-in-settings-jNNDWh86.js";import"./use-panel-navigate-D4GuHOu1.js";import"./thread-route-D_C8d7xK.js";import"./use-project-scope-CpfOkL8I.js";import"./repository-binding-Ct6tvS6k.js";import"./use-mcp-client-UP8_tZ9p.js";import"./auth-vqpzzu5D.js";import"./LayoutLeft-_2SG51dD.js";import"./use-current-view-a6HKOM5X.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",T="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return M()}function fe(){return z.use(O)}function M(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[T];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[T]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[T]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const R=s.current;R&&y(R);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=M();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=M();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function B(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=M();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:T,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(B,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(B,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:B});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
@@ -1 +1 @@
1
- import{r as n,c3 as q,dX as R,dY as Ee,dZ as ke,d_ as Se,aS as xe,d$ as j}from"./index-BuZqAz74.js";var de=1,Ie=.9,Ce=.8,Re=.17,Z=.1,Q=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Q,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Q,I.length))):(h*=Re,u>0&&(h*=Math.pow(Q,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Z>h&&(h=x*Z)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")Y(),W(),w(1,X);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{Y(),W(),r.current.value||X(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{Y(),s?.getAttribute("id")===e&&X(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function X(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function Y(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function G(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function J(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):J(e)}let ie=()=>G(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):J(1)},ce=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?ue(-1):J(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),G(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Ye},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Je=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Xe(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Xe(l),{ref:l.ref},r(l.props.children)):r(l)}var Ye={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Je as _};
1
+ import{r as n,c3 as q,dX as R,dY as Ee,dZ as ke,d_ as Se,aS as xe,d$ as j}from"./index-_VeebRNE.js";var de=1,Ie=.9,Ce=.8,Re=.17,Z=.1,Q=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Q,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Q,I.length))):(h*=Re,u>0&&(h*=Math.pow(Q,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Z>h&&(h=x*Z)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")Y(),W(),w(1,X);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{Y(),W(),r.current.value||X(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{Y(),s?.getAttribute("id")===e&&X(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function X(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function Y(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function G(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function J(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):J(e)}let ie=()=>G(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):J(1)},ce=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?ue(-1):J(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),G(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Ye},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Je=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Xe(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Xe(l),{ref:l.ref},r(l.props.children)):r(l)}var Ye={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Je as _};
@@ -1 +1 @@
1
- import{e4 as g,e5 as d,e6 as v}from"./index-BuZqAz74.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
1
+ import{e4 as g,e5 as d,e6 as v}from"./index-_VeebRNE.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
@@ -1 +1 @@
1
- import{c as k,j as s,i4 as de,b as Z,i5 as ue,r as le,i6 as xe,i7 as re,gG as T,gV as W,B as J,e0 as V,a9 as pe}from"./index-BuZqAz74.js";import{i as he}from"./CreditCard01-CcTQ1h3_.js";import{B as L}from"./badge-BvHOfdxU.js";import{M as je}from"./multi-select-BSuPEET4.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BkYZ4NYA.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-DQIAY6r-.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-B0LNjIyx.js";import{T as De}from"./Tooltip-C_RHysFo.js";import{a as _e,A as Me}from"./AreaChart-DXqVsicd.js";import{c2 as Re}from"./CategoricalChart-CmAKQrAh.js";import{R as Le}from"./require-capability-DEShAaY8.js";import"./checkbox-DAnVkT6Q.js";import"./Minus-Cc21R1KY.js";import"./ChevronDown-ClblfTVV.js";import"./command-DHGFzOhP.js";import"./index-DsWqYG3w.js";import"./SearchMd-BwYuN52e.js";import"./popover-D6EIL5sL.js";import"./index-BdQq_4o_.js";import"./index-DNuvhcDO.js";import"./ChevronUp-0ZCAxpBW.js";import"./index-BwBEUlXI.js";import"./access-gate-DQ55JjgP.js";import"./capability-load-error-DCoklIp8.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function G(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Z(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(G(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(G(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ge)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=G(u,"pageviews"),se=K>0?G(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ze,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ge(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ze(t){const e=k.c(13),{team:n,showSites:l}=t,o=Z(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=Z();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=Z(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function Bt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{Bt as default};
1
+ import{c as k,j as s,i4 as de,b as Z,i5 as ue,r as le,i6 as xe,i7 as re,gG as T,gV as W,B as J,e0 as V,a9 as pe}from"./index-_VeebRNE.js";import{i as he}from"./CreditCard01-vIJuQM5M.js";import{B as L}from"./badge-DCIHIkLr.js";import{M as je}from"./multi-select-DUQRYjic.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-QgdI1Rfc.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-drGady29.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-Cflx4Yj4.js";import{T as De}from"./Tooltip-CP1IpP66.js";import{a as _e,A as Me}from"./AreaChart-BmP0ImmP.js";import{c2 as Re}from"./CategoricalChart-CIY6jBUR.js";import{R as Le}from"./require-capability-psnJqvDd.js";import"./checkbox-D4P_L8j1.js";import"./Minus-D88-u0DO.js";import"./ChevronDown-DldgAfZA.js";import"./command-DsEpQe7b.js";import"./index-ykH_xCiZ.js";import"./SearchMd-Cuy8VOOG.js";import"./popover-CsisCWO2.js";import"./index-BdQq_4o_.js";import"./index-PcrdQb7V.js";import"./ChevronUp-Bt9-G08q.js";import"./index-j-nHo57s.js";import"./access-gate-EJXICSzm.js";import"./capability-load-error-C937GiKP.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function G(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Z(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(G(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(G(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ge)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=G(u,"pageviews"),se=K>0?G(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ze,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ge(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ze(t){const e=k.c(13),{team:n,showSites:l}=t,o=Z(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=Z();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=Z(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function Bt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{Bt as default};
@@ -1 +1 @@
1
- import{c as H,r as C,b as G,j as h,t as A,a7 as ye,x as xe,aU as ke,w as we,B as be,v as Pe,D as Ce,q as le,a6 as ce,K as Y,E as Q,gl as ue,gm as re,gn as z,m as _e}from"./index-BuZqAz74.js";import{S as de,s as Se}from"./suggestion-Nntdxi5T.js";import{K as Fe,t as De,A as Ie,p as B,L as ve,P as ne,O as je,k as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-C5Wj6kIy.js";import{aK as Oe}from"./agent-icon-DwJHakBB.js";import"./chat-context-DG5tQFfU.js";import{m as Ue,i as $e,b as Ke}from"./index-Bld02Tnb.js";import{u as me}from"./use-mcp-client-UWOU8UbZ.js";import{u as qe}from"./repository-binding-VVfcdUiy.js";import{g as se,a as fe}from"./gateway-client-PdaGLWBA.js";import{l as oe,g as pe}from"./use-mcp-prompts-CjwiiUTx.js";import{f as ze,b as Be}from"./use-org-fs-CAHuTLc_.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,v)=>l.current(_,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const v of S){const I=v.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let v;e[22]!==_?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=v):v=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==v||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,D]})}),e[27]=v,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),v=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==v?(I=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!je(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[14px] max-md:text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const v=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==v?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};
1
+ import{c as H,r as C,b as G,j as h,t as A,a7 as ye,x as xe,aU as ke,w as we,B as be,v as Pe,D as Ce,q as le,a6 as ce,K as Y,E as Q,gl as ue,gm as re,gn as z,m as _e}from"./index-_VeebRNE.js";import{S as de,s as Se}from"./suggestion-gEn2gqrr.js";import{K as Fe,t as De,A as Ie,p as B,L as ve,P as ne,O as je,k as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-CCyq9Zgo.js";import{aK as Oe}from"./agent-icon-CfdcYUE7.js";import"./chat-context-DSu9o-d-.js";import{m as Ue,i as $e,b as Ke}from"./index-QCTvcBUO.js";import{u as me}from"./use-mcp-client-UP8_tZ9p.js";import{u as qe}from"./repository-binding-Ct6tvS6k.js";import{g as se,a as fe}from"./gateway-client-DDICMs0d.js";import{l as oe,g as pe}from"./use-mcp-prompts-BM9uSers.js";import{f as ze,b as Be}from"./use-org-fs-DbTl86_J.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,v)=>l.current(_,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const v of S){const I=v.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let v;e[22]!==_?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=v):v=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==v||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,D]})}),e[27]=v,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),v=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==v?(I=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!je(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[14px] max-md:text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const v=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==v?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};