decocms 4.593.0 → 4.594.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/dist/client/assets/{AlertCircle-BPb6lfDc.js → AlertCircle-kHXzu73r.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Yh5pBNgF.js → AreaChart-CJxx8aiG.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-D_px05Ip.js → ArrowLeft-DcKid1bz.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DYc-7xj5.js → ArrowRight-ajc9j6D-.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-bsUZSt57.js → ArrowUp-CjAvmMLL.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CKzuPfPT.js → BookOpen01-CdH9hkvz.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-8sA8UDc5.js → CartesianChart-BRKqG5iH.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-D0wEIkFu.js → CategoricalChart-DW_7VziR.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Dvda272I.js → CheckCircle-DG9pUM8a.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-C0zFtKr8.js → ChevronDown-CWnE_Wmz.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BtbkxpS7.js → ChevronSelectorVertical-ByCpNum0.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-CHkdbh-i.js → ChevronUp-C_rAiuf1.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BnEtKIxX.js → CreditCard01-C6eDo3p0.js} +1 -1
  14. package/dist/client/assets/{Eye-CE9bd3Ra.js → Eye-DFeDq2Hx.js} +1 -1
  15. package/dist/client/assets/{File02-OGn6eCfs.js → File02-R0RW2VCN.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-ZnmHU3Kp.js → Fingerprint04-D-EFj_6a.js} +1 -1
  17. package/dist/client/assets/{Globe04-BK5-p2nj.js → Globe04-DudUQgTy.js} +1 -1
  18. package/dist/client/assets/{Image01-Do_f-fPi.js → Image01-Dfaw0Ysf.js} +1 -1
  19. package/dist/client/assets/{Key01-C2Ozqf6q.js → Key01-9JQCF719.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-tXOkIxzs.js → LayoutLeft-B-cVGLzN.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-sFiApfPs.js → LinkBroken01-CpDM6pG5.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-LN8Gr1lL.js → MessageCircle01-44De_8cO.js} +1 -1
  23. package/dist/client/assets/{Minus-vz8sJtmc.js → Minus-09UkIbMe.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Ctq4Y9xp.js → Monitor01-BPQw3JGv.js} +1 -1
  25. package/dist/client/assets/{Play-B5OMs0GO.js → Play-BRDYCYl7.js} +1 -1
  26. package/dist/client/assets/{Plus-KLH-MPJh.js → Plus-BJfG2DpW.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-Hl32My8w.js → ReferenceLine-KUFosDOj.js} +1 -1
  28. package/dist/client/assets/{SearchMd-1p8IP99o.js → SearchMd-DioGBYbO.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BZ5p5Jaw.js → ShoppingBag01-CdQhBv_H.js} +1 -1
  30. package/dist/client/assets/{Sun-8QBdDNyc.js → Sun-U7FHkItb.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-BRSeU65r.js → SwitchHorizontal01-sPBj-OL8.js} +1 -1
  32. package/dist/client/assets/{Tool01-CIkfFpNs.js → Tool01-BEo5XKkS.js} +1 -1
  33. package/dist/client/assets/{Tooltip-B9ptxG-X.js → Tooltip-2A3BALIx.js} +1 -1
  34. package/dist/client/assets/{Trash01-1e348d5z.js → Trash01-l4iOtEBN.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-Sag3n7qI.js → TrendUp01-aviiZW6M.js} +1 -1
  36. package/dist/client/assets/{Upload01-DQiq1N5L.js → Upload01-BhvyPM8u.js} +1 -1
  37. package/dist/client/assets/{UserCheck01-Dq2vpnim.js → UserCheck01-B1rJ65So.js} +1 -1
  38. package/dist/client/assets/{UserSquare-BAlzvt_y.js → UserSquare-D44lppb_.js} +1 -1
  39. package/dist/client/assets/{Users01-CJNRoJXK.js → Users01-CxQycal6.js} +1 -1
  40. package/dist/client/assets/{XClose-CQjSvos9.js → XClose-BwokcWjs.js} +1 -1
  41. package/dist/client/assets/{Zap-BbT-W69e.js → Zap-DoXbwvKP.js} +1 -1
  42. package/dist/client/assets/{access-gate-BwaSQQ2b.js → access-gate-Cb6wrWbo.js} +1 -1
  43. package/dist/client/assets/{add-connection-dialog-b9bCaaJ-.js → add-connection-dialog-AJ93ohYz.js} +1 -1
  44. package/dist/client/assets/agent-app-BwabK-EN.js +1 -0
  45. package/dist/client/assets/{agent-assets-epUkCzig.js → agent-assets-BjERacII.js} +1 -1
  46. package/dist/client/assets/{agent-automation-DN5QlWy_.js → agent-automation-lPIiQ1-S.js} +1 -1
  47. package/dist/client/assets/{agent-automations-DeGcvAoe.js → agent-automations-DChAwthU.js} +1 -1
  48. package/dist/client/assets/{agent-blog-C-T8yJPu.js → agent-blog-BAFEHC3F.js} +2 -2
  49. package/dist/client/assets/{agent-blog-post-spGtFEpJ.js → agent-blog-post-BfZLJHCc.js} +2 -2
  50. package/dist/client/assets/{agent-calendar-EBTKBv82.js → agent-calendar-DVTbFVx4.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-Dsy9OzBC.js → agent-capabilities-CJLhsDjp.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-B2TM-6qo.js → agent-connect-sources-BUkRDeee.js} +1 -1
  53. package/dist/client/assets/agent-deck-FkIcljPu.js +1 -0
  54. package/dist/client/assets/{agent-e2e-DMK6Z36v.js → agent-e2e-DBAmX-ay.js} +1 -1
  55. package/dist/client/assets/agent-experiments-DDePdz1s.js +1 -0
  56. package/dist/client/assets/agent-file-Dq7RwOoN.js +1 -0
  57. package/dist/client/assets/{agent-hosting-DOLRQkiF.js → agent-hosting-KJs4AVma.js} +1 -1
  58. package/dist/client/assets/{agent-icon-CFsULo4q.js → agent-icon-BS6RPQ_A.js} +1 -1
  59. package/dist/client/assets/agent-library-C06De_Om.js +1 -0
  60. package/dist/client/assets/agent-library-file-DZtwB2bP.js +1 -0
  61. package/dist/client/assets/agent-overview-3kq8I1YX.js +1 -0
  62. package/dist/client/assets/agent-releases-BwIrRp2G.js +3 -0
  63. package/dist/client/assets/agent-settings-CQxH-SU4.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-BiguEz5z.js → agent-site-editor-CyUzqfPD.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-lMnnKFV4.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-BQ-pFVV_.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-Dipnwf9A.js +1 -0
  68. package/dist/client/assets/agent-view-D74Nsx4n.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-BRen2fDa.js → agent-view-guard-dXJW4cSq.js} +1 -1
  70. package/dist/client/assets/{ai-providers-X4uIftAC.js → ai-providers-CoJXv_AA.js} +1 -1
  71. package/dist/client/assets/{alert-D6c8UL8s.js → alert-hKxZXEZZ.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-BeagNbn2.js → analytics-sections-D8qsQ7bM.js} +1 -1
  73. package/dist/client/assets/api-keys-B9w3P2co.js +1 -0
  74. package/dist/client/assets/{api-keys-Bhaq6l4m.js → api-keys-BpcBSUmB.js} +1 -1
  75. package/dist/client/assets/{app-editor-BDvMcyIq.js → app-editor-DLwnlaqE.js} +1 -1
  76. package/dist/client/assets/{asset-utils-DedHJB9N.js → asset-utils-CdU3Ttfs.js} +1 -1
  77. package/dist/client/assets/{auth-WUI0GELm.js → auth-C3yWOKhG.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-36sTseza.js → auth-catchall-DheSxLuf.js} +1 -1
  79. package/dist/client/assets/{auth-entry-BtvDZBee.js → auth-entry-C5exDM0H.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-DbgIe7Q7.js → auth-split-layout-Hg6hlPX8.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-D7yFnk3v.js → authenticate-and-persist-oauth-CIyQIb0N.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-B-bTXdxL.js → automation-list-row-BYtaYJm7.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DTOCdqSY.js → automation-runs-DvuKFaor.js} +1 -1
  84. package/dist/client/assets/{automations-BXXmJoq9.js → automations-D70iF6cO.js} +1 -1
  85. package/dist/client/assets/{badge-xkOOGTR2.js → badge-wWozseh3.js} +1 -1
  86. package/dist/client/assets/{block-document-ClS1Gx3q.js → block-document-CQOXOWIP.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-BOiyLqjl.js → blocks-preview-workspace-context-BmhSK0mg.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-Dgkd6bcn.js → blocks-tab-states-CDYT4Ypi.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-CQF91dum.js → blog-preview-url-D1Gi50Jy.js} +1 -1
  90. package/dist/client/assets/{blog-schema-B993jmPJ.js → blog-schema-G_pvuSAo.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-B40koNXU.js → blog-source-gate-Z08IMogx.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-DYONh8sE.js → blog-view-gate-WETs9z4-.js} +1 -1
  93. package/dist/client/assets/{buckets-W8OuOQja.js → buckets-BcxYNwzK.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-7R1He4iw.js → build-improve-prompt-doc-BpGLSKmi.js} +1 -1
  95. package/dist/client/assets/{calendar-CCy2brqO.js → calendar-Sr3cNZGh.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-74rIpav9.js → capability-load-error-Cwe4uK-x.js} +1 -1
  97. package/dist/client/assets/{category-editor-DrOqNXNY.js → category-editor-DZLdQENU.js} +1 -1
  98. package/dist/client/assets/{category-tree-B08EozIk.js → category-tree-oBVfCVRR.js} +1 -1
  99. package/dist/client/assets/{chart-DVwx0iDS.js → chart-D0It11Pz.js} +1 -1
  100. package/dist/client/assets/{chat-context-Dk_Ebz6D.js → chat-context-B6UvvRRf.js} +1 -1
  101. package/dist/client/assets/{chat-draft-x-F0ZPWu.js → chat-draft-D0WJnhz_.js} +1 -1
  102. package/dist/client/assets/{checkbox-DR00CmJr.js → checkbox-Cs2Li62P.js} +1 -1
  103. package/dist/client/assets/{choose-editor-3geZkU-m.js → choose-editor-Cwvr5cPX.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-CX_XFx5r.js → cli-auth-success-DjQMGZUD.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-DMhLCkuK.js → cms-settings-editor-h4wDmiSv.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-BdqXOATK.js → cms-store-drafts-DDk2L1_s.js} +1 -1
  107. package/dist/client/assets/{collapsible-C5AFdLwb.js → collapsible-D4n-ssmc.js} +1 -1
  108. package/dist/client/assets/{collection-detail-DJYxfZho.js → collection-detail-CWZme-FJ.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-BS2sbab3.js → collection-display-button--oxelZ8R.js} +1 -1
  110. package/dist/client/assets/{collection-search-ugxEd4a5.js → collection-search-CDDauqCr.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-omwG60bs.js → collection-table-wrapper-B8osPBIm.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-BsiuG_yk.js → collection-tabs-B1EmRyNS.js} +1 -1
  113. package/dist/client/assets/{combobox-BYBZebi0.js → combobox-LL4GsRoi.js} +1 -1
  114. package/dist/client/assets/{command-CRJnywSm.js → command-DQwD4jPt.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-C5X6hxKV.js → companion-mcps-section-aZ0yAV9m.js} +1 -1
  116. package/dist/client/assets/{config-Br1Io2is.js → config-zmlExYow.js} +1 -1
  117. package/dist/client/assets/{connect-BvcW8HFx.js → connect-C2FkNxOj.js} +1 -1
  118. package/dist/client/assets/{connect-key-Bng8UgOW.js → connect-key-MUQgzDUZ.js} +1 -1
  119. package/dist/client/assets/{connect-layout-BK-aWbrg.js → connect-layout-C10vBM31.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-D8TZSkBE.js → connect-source-dialog-DZFw66w3.js} +1 -1
  121. package/dist/client/assets/{connection-C7PBWSJ2.js → connection-B7vXPxEB.js} +1 -1
  122. package/dist/client/assets/{connection-card-DbjUpBUS.js → connection-card-DqrVYaVF.js} +1 -1
  123. package/dist/client/assets/{connection-detail-FZzRV6Ym.js → connection-detail-BhmikSW0.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-tAcDvyB7.js → connection-form-helpers-CipIPASt.js} +1 -1
  125. package/dist/client/assets/{connection-slug-xMtStNjP.js → connection-slug-DgGnB6qk.js} +1 -1
  126. package/dist/client/assets/{connections-IQMsafFW.js → connections-BH6dclGQ.js} +1 -1
  127. package/dist/client/assets/{content-tab-Dby-qF-f.js → content-tab-CMouaD3S.js} +3 -3
  128. package/dist/client/assets/{context-jsYDuqDI.js → context-BXIwVeKt.js} +1 -1
  129. package/dist/client/assets/{context-menu-Cvn-dR-4.js → context-menu-BTcjoIYF.js} +1 -1
  130. package/dist/client/assets/{context-shell-Bm22btDj.js → context-shell-Bh2U1zxs.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-CXfqVYbt.js → create-organization-dialog-Dbp2Y7NH.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-CxBxkzGT.js → daily-pulse-BiRUE30R.js} +1 -1
  133. package/dist/client/assets/{delete-copy-tGyXeEYr.js → delete-copy-BH5xrx9H.js} +1 -1
  134. package/dist/client/assets/{device-hint-D3KIwRP_.js → device-hint-CMC1mr9e.js} +1 -1
  135. package/dist/client/assets/{discover-UPogBeQB.js → discover-DN_s50Be.js} +1 -1
  136. package/dist/client/assets/{domain-settings-DarbfYc3.js → domain-settings-DBexbsXu.js} +1 -1
  137. package/dist/client/assets/{drawer-CQosC7Hh.js → drawer-BMY0wk6r.js} +1 -1
  138. package/dist/client/assets/{editor-DnZdk2c2.js → editor-C6mSxTrt.js} +1 -1
  139. package/dist/client/assets/{editor-classes-CiUorYg6.js → editor-classes-BygI_Lvg.js} +1 -1
  140. package/dist/client/assets/{empty-message-CG0mkpBx.js → empty-message-B3ykEghT.js} +1 -1
  141. package/dist/client/assets/{empty-state-D4GKvYHp.js → empty-state-C4vGG4yC.js} +1 -1
  142. package/dist/client/assets/{empty-state-B5kfNSn2.js → empty-state-hp9a4BQn.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-BNwFp10h.js → experiments-tab-choice-a808JseX.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-BwsA-RYq.js → extract-connection-data-B_eUCQ7e.js} +1 -1
  145. package/dist/client/assets/{feature-gate-WGXGW3TJ.js → feature-gate-DtqeHOu4.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-CXj-cCjT.js → feature-paywall-BGOy9Z00.js} +1 -1
  147. package/dist/client/assets/{file-explorer-CQ0OZXxU.js → file-explorer-q1C_0Dfl.js} +1 -1
  148. package/dist/client/assets/{file-preview-CimYREH1.js → file-preview-Cid_-Y34.js} +1 -1
  149. package/dist/client/assets/{file-share-button-BAqDjZ0D.js → file-share-button-eK3lxbyf.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-Cst2WgHg.js → file-type-icon-DOJ02s9h.js} +1 -1
  151. package/dist/client/assets/{folder-icon-h8_LtFFJ.js → folder-icon-4Pb3O8qn.js} +1 -1
  152. package/dist/client/assets/{form-Bmlz7qRb.js → form-BZ2nSi_9.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-DiMr25uz.js → frame-navigation-C3j5rPCM.js} +1 -1
  154. package/dist/client/assets/{gateway-client-Dcj5rv8f.js → gateway-client-8UpI_Rdq.js} +1 -1
  155. package/dist/client/assets/{general-BTp6LTq7.js → general-bkCbo1TA.js} +1 -1
  156. package/dist/client/assets/{github-icon-HoxHOYky.js → github-icon-C-V2EETw.js} +1 -1
  157. package/dist/client/assets/{held-block-view-CB9_UtVc.js → held-block-view-xCVzC3Lr.js} +1 -1
  158. package/dist/client/assets/{home-CTP0vpaw.js → home-Dgh1Wb3u.js} +1 -1
  159. package/dist/client/assets/{home-overview-oJuOP6Jj.js → home-overview-CzbNLHJq.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-DipRdTAf.js → hosted-reconcile-DS6ZmO5s.js} +1 -1
  161. package/dist/client/assets/{icon-button-CkP-MdlY.js → icon-button-CFamiizZ.js} +1 -1
  162. package/dist/client/assets/{index-DCNDjBOm.js → index--r4E_gW7.js} +1 -1
  163. package/dist/client/assets/{index-D4nZeJZF.js → index-6V91lP75.js} +1 -1
  164. package/dist/client/assets/{index-B7BDvGS9.js → index-B-PIhH8l.js} +1 -1
  165. package/dist/client/assets/{index-oZBvLpfd.js → index-B4YS6GMo.js} +1 -1
  166. package/dist/client/assets/{index-DGcnGUGR.js → index-B9tCllzH.js} +1 -1
  167. package/dist/client/assets/{index-CpqnzQ6X.js → index-BFjuxezw.js} +1 -1
  168. package/dist/client/assets/{index-BGvfgBXQ.js → index-BVZH8mqe.js} +5 -5
  169. package/dist/client/assets/{index-CrMNCOay.js → index-BYQu9U5P.js} +1 -1
  170. package/dist/client/assets/{index-jEofb67j.js → index-BeSn1lKu.js} +1 -1
  171. package/dist/client/assets/{index-fjBXVTkP.js → index-BesTmknq.js} +1 -1
  172. package/dist/client/assets/index-CFbcObvG.css +1 -0
  173. package/dist/client/assets/{index-Dj_uCaww.js → index-CJQHYkKb.js} +1 -1
  174. package/dist/client/assets/{index-C4-rqYj_.js → index-CqlRRF6p.js} +1 -1
  175. package/dist/client/assets/{index-Cy5OtK8P.js → index-D9WtqDmJ.js} +1 -1
  176. package/dist/client/assets/{index-CtgoU6en.js → index-D_u7RJfU.js} +1 -1
  177. package/dist/client/assets/{index-C5wldXHS.js → index-DwIomefI.js} +1 -1
  178. package/dist/client/assets/{index-ztFBZP-a.js → index-GMDFirHC.js} +1 -1
  179. package/dist/client/assets/{index-DFEtjxfd.js → index-cjnTxfp5.js} +1 -1
  180. package/dist/client/assets/{index-redirect-DTMlUMlL.js → index-redirect-BMGe_utm.js} +1 -1
  181. package/dist/client/assets/{infiniteQueryObserver-CjHha6VI.js → infiniteQueryObserver-f5kG4cIT.js} +1 -1
  182. package/dist/client/assets/{infra-billing-R5GG28fc.js → infra-billing-DaAfhBWg.js} +1 -1
  183. package/dist/client/assets/{input-CWx7kP2y.js → input-A20A_mwu.js} +1 -1
  184. package/dist/client/assets/{input-CIXcgL8B.js → input-o0eNZBV4.js} +3 -3
  185. package/dist/client/assets/{integration-icon-nO6TvSsO.js → integration-icon-CcV5frEs.js} +1 -1
  186. package/dist/client/assets/{item-actions-DHBqlB8t.js → item-actions-CZD9JeRy.js} +1 -1
  187. package/dist/client/assets/{jira-icon-DX-tTt4z.js → jira-icon-DlgPbK3F.js} +1 -1
  188. package/dist/client/assets/{label-2ri5y0AT.js → label-Dc_tSb6f.js} +1 -1
  189. package/dist/client/assets/{layout-m0ghuzGv.js → layout-514nGx9I.js} +1 -1
  190. package/dist/client/assets/{legacy-admin-welcome-dialog-dJnURvJJ.js → legacy-admin-welcome-dialog-DtYrilLw.js} +1 -1
  191. package/dist/client/assets/{legacy-agents-deep-JluLJXF7.js → legacy-agents-deep-DS7wnjib.js} +1 -1
  192. package/dist/client/assets/{legacy-main-redirect-COiP2ETV.js → legacy-main-redirect-BQ-dfJNU.js} +1 -1
  193. package/dist/client/assets/library-Cy3CmAZa.js +1 -0
  194. package/dist/client/assets/{library-tab-CAU7uiMF.js → library-tab-CZB0EHNl.js} +1 -1
  195. package/dist/client/assets/{login-DgFE1SmG.js → login-BVGV6SaO.js} +1 -1
  196. package/dist/client/assets/{markdown-Du_1i_DV.js → markdown-DvUyMKlV.js} +1 -1
  197. package/dist/client/assets/{mcp-app-renderer-CHuh8eBE.js → mcp-app-renderer-CRu4PbUr.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-Be_pa5Ik.js → mcp-oauth-CIY9YLWi.js} +1 -1
  199. package/dist/client/assets/{mcp-oauth-Bppcz_3X.js → mcp-oauth-NdGb5Zj9.js} +1 -1
  200. package/dist/client/assets/{members-CS-oK1Zf.js → members-CgoGmOSR.js} +1 -1
  201. package/dist/client/assets/{memory-Bl0VJnb1.js → memory-BfzundeZ.js} +1 -1
  202. package/dist/client/assets/{mock-board-BQeILTVh.js → mock-board-D8DOoo_p.js} +3 -3
  203. package/dist/client/assets/{monaco-editor-DCzjvWW2.js → monaco-editor-C3D0iT4a.js} +1 -1
  204. package/dist/client/assets/{monitoring-B4nvDMf7.js → monitoring-BvN0RJq0.js} +1 -1
  205. package/dist/client/assets/{monitoring-stats-row-BK9I1n3g.js → monitoring-stats-row-By2SXcyl.js} +1 -1
  206. package/dist/client/assets/{multi-select-DLpc9WGW.js → multi-select-Dak9eW6K.js} +1 -1
  207. package/dist/client/assets/{mustache-fgm1GoLm.js → mustache-CMgVEDUc.js} +1 -1
  208. package/dist/client/assets/{named-rule-step-ikHUM8J-.js → named-rule-step-BnN-hlGb.js} +1 -1
  209. package/dist/client/assets/{named-rule-view-BJLF9MVt.js → named-rule-view-hUwolemN.js} +1 -1
  210. package/dist/client/assets/{new-project-dialog-BfJtWdgg.js → new-project-dialog-BeD2i_Hm.js} +1 -1
  211. package/dist/client/assets/{new-project-store-CUIYzGdu.js → new-project-store-BfrY24D-.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-DAF-HNU5.js → oauth-callback-CNqxDLu3.js} +1 -1
  213. package/dist/client/assets/{oauth-callback-ai-provider-BlZK1cl5.js → oauth-callback-ai-provider-0KF_xg3k.js} +1 -1
  214. package/dist/client/assets/{oauth-consent-BjKAsSxp.js → oauth-consent-li4JOhlZ.js} +1 -1
  215. package/dist/client/assets/{onboarding-CStDT_bk.js → onboarding-CzP4oXTn.js} +1 -1
  216. package/dist/client/assets/{openai-conversation-DJ7Npc2v.js → openai-conversation-BMsTp1zg.js} +1 -1
  217. package/dist/client/assets/{optimistic-project-sidebar-views-CaqEFCbi.js → optimistic-project-sidebar-views-C29BxST1.js} +1 -1
  218. package/dist/client/assets/{order-monitor-day-B3sADUCG.js → order-monitor-day-D910WxJ3.js} +1 -1
  219. package/dist/client/assets/{organization-choice-vaH8PRN7.js → organization-choice-BhMXPFKX.js} +1 -1
  220. package/dist/client/assets/{orgs-C-TKQP3D.js → orgs-ZZqk-o74.js} +1 -1
  221. package/dist/client/assets/{own-accounts-section-BpgBL9aq.js → own-accounts-section-4_Hp7fJv.js} +1 -1
  222. package/dist/client/assets/{pair-M_Ks4KYr.js → pair-C4tumP78.js} +1 -1
  223. package/dist/client/assets/{parse-sections-BuUvGGsv.js → parse-sections-B5REiM5j.js} +2 -2
  224. package/dist/client/assets/{plan-ladder-De9sRz_u.js → plan-ladder-BlcJL4hV.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-8gBO_kT7.js → plan-usage-card-DW3wLLQF.js} +1 -1
  226. package/dist/client/assets/{plan-D-khZ7ZC.js → plan-vUNQzJtH.js} +1 -1
  227. package/dist/client/assets/{popover-BdGhwX6j.js → popover-9q-VKuQx.js} +1 -1
  228. package/dist/client/assets/{post-calendar-CYarN2j3.js → post-calendar-Cw6GB31X.js} +1 -1
  229. package/dist/client/assets/{post-editor-mxtEx2vX.js → post-editor-BUxXB6Uz.js} +1 -1
  230. package/dist/client/assets/{preview-content-Dxe4XKdO.js → preview-content-aN9ghsH_.js} +1 -1
  231. package/dist/client/assets/{preview-dialog--RYpR3-k.js → preview-dialog-DqNYRBay.js} +1 -1
  232. package/dist/client/assets/{preview-panel-Bk5cvms4.js → preview-panel-DV1FaRUZ.js} +1 -1
  233. package/dist/client/assets/{preview-tab-BRY7e3Ww.js → preview-tab-CNYeoSqY.js} +3 -3
  234. package/dist/client/assets/{product-picker-dialog-CIU4p36P.js → product-picker-dialog-DVs_Kuee.js} +1 -1
  235. package/dist/client/assets/{profile-CA2wDqLs.js → profile-DbdvfkDI.js} +1 -1
  236. package/dist/client/assets/{project-app-view-CsobOn93.js → project-app-view-Cfrp6muY.js} +1 -1
  237. package/dist/client/assets/{project-apps-CzXp3RuA.js → project-apps-z0dBtbP_.js} +1 -1
  238. package/dist/client/assets/{project-icon-BUl2sFaB.js → project-icon-C8Sq9Uyo.js} +1 -1
  239. package/dist/client/assets/{project-index-D3eqGaeY.js → project-index-BOyydKXT.js} +1 -1
  240. package/dist/client/assets/project-reports-CN1JvK97.js +1 -0
  241. package/dist/client/assets/project-tasks-Cimkg6Js.js +1 -0
  242. package/dist/client/assets/{projects-DSjvBTqn.js → projects-B5BvS56N.js} +1 -1
  243. package/dist/client/assets/{projects-empty-state-C_4sZ19U.js → projects-empty-state-CDTj5tcd.js} +1 -1
  244. package/dist/client/assets/{prompts-JIqJQ8rm.js → prompts-DfS9pOYH.js} +1 -1
  245. package/dist/client/assets/record-editor-BC_pgxjj.js +1 -0
  246. package/dist/client/assets/{redirect-editor-CIkflDxt.js → redirect-editor-CJJivlqw.js} +1 -1
  247. package/dist/client/assets/reports-BU9i6BvT.js +1 -0
  248. package/dist/client/assets/{reports-DJZwSZy6.js → reports-C624VFLj.js} +1 -1
  249. package/dist/client/assets/{reports-onboarding-CSkswBMH.js → reports-onboarding-_pxt1WkF.js} +1 -1
  250. package/dist/client/assets/{reports-tab-6fV3Jvgl.js → reports-tab-BBmHq9vJ.js} +2 -2
  251. package/dist/client/assets/{repositories-BTuTm0L2.js → repositories-B7d9yCxo.js} +1 -1
  252. package/dist/client/assets/repositories-D-ngJeYU.js +1 -0
  253. package/dist/client/assets/{repository-binding-DrxBu24C.js → repository-binding-BIfwJXBl.js} +1 -1
  254. package/dist/client/assets/{repository-picker-Darc81nL.js → repository-picker-vN0XhyKR.js} +1 -1
  255. package/dist/client/assets/{require-capability-C51SGps0.js → require-capability-B6_v4BKo.js} +1 -1
  256. package/dist/client/assets/{required-auth-layout-pSTI6t_x.js → required-auth-layout-BXbkUsYd.js} +1 -1
  257. package/dist/client/assets/{reset-password-BnNzHLPz.js → reset-password-DPvgQ5Qd.js} +1 -1
  258. package/dist/client/assets/{resizable-BU7UxgwC.js → resizable-AytQ6SyX.js} +1 -1
  259. package/dist/client/assets/{resolve-tab-icon-Bd3WwXB0.js → resolve-tab-icon-BzV0wsYq.js} +1 -1
  260. package/dist/client/assets/{review-settings-D31XkFbq.js → review-settings-BTg5QElS.js} +1 -1
  261. package/dist/client/assets/{role-color-CJIemPpG.js → role-color-CNGxunw8.js} +1 -1
  262. package/dist/client/assets/{roles-C7hVcM54.js → roles-DrWSfOhb.js} +1 -1
  263. package/dist/client/assets/{route-ajk3Lz1i.js → route-BX1VK4D8.js} +1 -1
  264. package/dist/client/assets/route-DxNP7FKc.js +1 -0
  265. package/dist/client/assets/{route-1boDLy4Y.js → route-IYkPM4iL.js} +1 -1
  266. package/dist/client/assets/{route-page-header-D3RVWIBC.js → route-page-header-DnxbH76I.js} +1 -1
  267. package/dist/client/assets/{sandbox-git-api-lqhbN6-M.js → sandbox-git-api-CvJPOlyv.js} +1 -1
  268. package/dist/client/assets/{sandbox-lifecycle-context-QpFv1h24.js → sandbox-lifecycle-context-CO9pd80k.js} +1 -1
  269. package/dist/client/assets/{save-status-96Apsuux.js → save-status-eUv6TQpr.js} +1 -1
  270. package/dist/client/assets/{schema-DIQ-2mII.js → schema-C2ft4i4u.js} +1 -1
  271. package/dist/client/assets/{schema-DklwT0XH.js → schema-CATZG76m.js} +1 -1
  272. package/dist/client/assets/{scroll-area-CLaLCTf7.js → scroll-area-w9_Bvwmf.js} +1 -1
  273. package/dist/client/assets/{search-input-BytjnRYd.js → search-input-D3b0Dc5Y.js} +1 -1
  274. package/dist/client/assets/{search-toggle-BEH-S2im.js → search-toggle-DBEAkZhz.js} +1 -1
  275. package/dist/client/assets/{secret-picker-k0C3uZq8.js → secret-picker-CVfi84wZ.js} +1 -1
  276. package/dist/client/assets/{secrets-1-DGosfc.js → secrets-Bxh8ZQN1.js} +1 -1
  277. package/dist/client/assets/{section-array-field-08gf_aaJ.js → section-array-field-CkDPdYBe.js} +1 -1
  278. package/dist/client/assets/{sections-DfnSEAao.js → sections-BS4WKjIk.js} +1 -1
  279. package/dist/client/assets/{sections-editor-Cm1IpUw4.js → sections-editor-CLaZ0j6X.js} +1 -1
  280. package/dist/client/assets/{select-BH6i4t87.js → select-BJ7g3jt1.js} +1 -1
  281. package/dist/client/assets/{select-model-DuodXwbD.js → select-model-CIoiyBbQ.js} +1 -1
  282. package/dist/client/assets/{seo-editor-vJ_3bHov.js → seo-editor-C5CvtZIp.js} +1 -1
  283. package/dist/client/assets/{separator-DE4QJAwp.js → separator-DUnD5wBI.js} +1 -1
  284. package/dist/client/assets/{session-runtime-CnePJMYk.js → session-runtime-CRv5j4jh.js} +1 -1
  285. package/dist/client/assets/settings-tab-k_yzR7TC.js +1 -0
  286. package/dist/client/assets/{sheet-CX86ajAE.js → sheet-B1zTFenO.js} +1 -1
  287. package/dist/client/assets/{shell-layout-MrR8EGxZ.js → shell-layout-BT6RZJ9X.js} +1 -1
  288. package/dist/client/assets/{site-draft-actions-CCPyXgQA.js → site-draft-actions-BhvNLFOt.js} +1 -1
  289. package/dist/client/assets/{site-draft-view-B3wpg14y.js → site-draft-view-D89p35uK.js} +1 -1
  290. package/dist/client/assets/site-editor-DO2-FIjd.js +1 -0
  291. package/dist/client/assets/{site-editor-toast-DjTYO8yl.js → site-editor-toast-vvVLBG6s.js} +1 -1
  292. package/dist/client/assets/{skills-CwoSapY8.js → skills-C22XOkU8.js} +1 -1
  293. package/dist/client/assets/{slider-B1Q72VZH.js → slider-46E0vJw8.js} +1 -1
  294. package/dist/client/assets/{sortable.esm-CXd3MFy1.js → sortable.esm-BzU9NXcP.js} +1 -1
  295. package/dist/client/assets/{sso-DieJGjil.js → sso-zNrVMXEh.js} +1 -1
  296. package/dist/client/assets/{suggestion-Cpa996zU.js → suggestion-B9N6oqkG.js} +1 -1
  297. package/dist/client/assets/{super-agent-icon-Db04o97L.js → super-agent-icon-AyK0wzxQ.js} +1 -1
  298. package/dist/client/assets/{switch-B7uarNO5.js → switch-BX8b8tB6.js} +1 -1
  299. package/dist/client/assets/{synced-repos-aIXgLnBB.js → synced-repos-DS_Rsdst.js} +1 -1
  300. package/dist/client/assets/{tab-icon-glyph-D_VxeQZE.js → tab-icon-glyph-DpR7ri7q.js} +1 -1
  301. package/dist/client/assets/{table-Bta2Y1CD.js → table-DNvSx4nT.js} +1 -1
  302. package/dist/client/assets/{tabs-s8CSecQV.js → tabs-ClkuSww4.js} +1 -1
  303. package/dist/client/assets/{task-board-DshmncwN.js → task-board-DLNmAHmR.js} +1 -1
  304. package/dist/client/assets/{task-key-PomUyZRb.js → task-key-BjUMQvHV.js} +1 -1
  305. package/dist/client/assets/{task-route-DIKoinWO.js → task-route-B6gZ9LxC.js} +1 -1
  306. package/dist/client/assets/{task-status-LX7lBTjN.js → task-status-CvKutQFi.js} +1 -1
  307. package/dist/client/assets/{taskboard-analytics-DfkqsYeI.js → taskboard-analytics-BgegxTfw.js} +1 -1
  308. package/dist/client/assets/tasks-BZlAEaTY.js +1 -0
  309. package/dist/client/assets/{tasks-BGD-BUHo.js → tasks-VtqJyf5J.js} +1 -1
  310. package/dist/client/assets/{textarea-C_mtz3Kv.js → textarea-BnYcD_gb.js} +1 -1
  311. package/dist/client/assets/{thread-analytics-aGwSdxKv.js → thread-analytics-CHgBpfHv.js} +1 -1
  312. package/dist/client/assets/{thread-button-Bc5fnhGX.js → thread-button-Cra7mRSW.js} +1 -1
  313. package/dist/client/assets/{thread-intent-DJ2isQQx.js → thread-intent-CYNXEfHP.js} +1 -1
  314. package/dist/client/assets/{thread-route-C13LdFpr.js → thread-route-D00Shirq.js} +1 -1
  315. package/dist/client/assets/{thread-route-DI1GCHqT.js → thread-route-muzc431X.js} +1 -1
  316. package/dist/client/assets/{thread-sheet-body-CnbjjV-I.js → thread-sheet-body-B4d3KSH7.js} +1 -1
  317. package/dist/client/assets/{time-range-picker-A0UZNhWR.js → time-range-picker-BzLGuV9Q.js} +1 -1
  318. package/dist/client/assets/{toggle-group-BjeGXB13.js → toggle-group-Cu3LE1oL.js} +1 -1
  319. package/dist/client/assets/{tool-set-selector-rXUFKU4u.js → tool-set-selector-DpIP2fev.js} +1 -1
  320. package/dist/client/assets/{toolbar-icon-button-BmCu83-X.js → toolbar-icon-button-Bo8OSaqx.js} +1 -1
  321. package/dist/client/assets/{tooltip-D0-ybZJ-.js → tooltip-CfeBMv8z.js} +1 -1
  322. package/dist/client/assets/{tooltipContext-Dm5XB4Pa.js → tooltipContext-BMU8k-Rs.js} +1 -1
  323. package/dist/client/assets/{track-BI5WxsF3.js → track-DWmwuKVj.js} +1 -1
  324. package/dist/client/assets/{types-DeHdmC2C.js → types-D_vNw-3-.js} +1 -1
  325. package/dist/client/assets/{url-slug-Bt323BC1.js → url-slug-BOPVIawN.js} +1 -1
  326. package/dist/client/assets/{usage-stats-4TwUkhM4.js → usage-stats-Dzci2XGy.js} +1 -1
  327. package/dist/client/assets/{use-ai-providers-Cykm4Omp.js → use-ai-providers-C30oeluP.js} +1 -1
  328. package/dist/client/assets/{use-api-keys-QqkV0EMu.js → use-api-keys-CK1ZH-th.js} +1 -1
  329. package/dist/client/assets/{use-apply-named-rule-B0v5Nv1Q.js → use-apply-named-rule-DGYGOn-1.js} +1 -1
  330. package/dist/client/assets/use-ask-in-chat-Cp6wJI2T.js +1 -0
  331. package/dist/client/assets/{use-automations-CIfofZgd.js → use-automations-CtbjaE6m.js} +1 -1
  332. package/dist/client/assets/{use-autosave-phCMBUyD.js → use-autosave-Bpr4B2YO.js} +1 -1
  333. package/dist/client/assets/use-blocks-v8-project-DUe21BCo.js +1 -0
  334. package/dist/client/assets/use-blog-view-D_--u8j_.js +1 -0
  335. package/dist/client/assets/{use-chat-layout-state-BWjgOEMc.js → use-chat-layout-state-DBVzfsNg.js} +1 -1
  336. package/dist/client/assets/{use-cms-publish-actions-CPyM3m5I.js → use-cms-publish-actions-CWkUAckV.js} +1 -1
  337. package/dist/client/assets/{use-connect-companion-eWYXL_LA.js → use-connect-companion-iGJRty2G.js} +1 -1
  338. package/dist/client/assets/{use-connection-dER7f5j5.js → use-connection-C-m8b2Fk.js} +1 -1
  339. package/dist/client/assets/{use-content-sync-BSudZND-.js → use-content-sync-BJ7PE3PC.js} +1 -1
  340. package/dist/client/assets/{use-copy-CzwPMJY2.js → use-copy-BHPkBnZF.js} +1 -1
  341. package/dist/client/assets/{use-current-view-BhCzT_on.js → use-current-view-CHhVzMwk.js} +1 -1
  342. package/dist/client/assets/{use-date-fns-locale-DbDI1yRa.js → use-date-fns-locale-Cn791fqZ.js} +1 -1
  343. package/dist/client/assets/{use-debounced-autosave-BUqTz9gI.js → use-debounced-autosave-C6OCZte6.js} +1 -1
  344. package/dist/client/assets/{use-debounced-value-DNV71VAt.js → use-debounced-value-By7KggQt.js} +1 -1
  345. package/dist/client/assets/{use-deco-credits-D1eTXz3B.js → use-deco-credits-19cW8oHb.js} +1 -1
  346. package/dist/client/assets/{use-decopilot-events-DwV1bANi.js → use-decopilot-events-BxfGa0_j.js} +1 -1
  347. package/dist/client/assets/{use-delete-block-B3Q8p71v.js → use-delete-block-3AD9rKWc.js} +1 -1
  348. package/dist/client/assets/{use-delete-connection-KjVy0n0M.js → use-delete-connection-Cma0d5Z7.js} +1 -1
  349. package/dist/client/assets/{use-deployment-admin-U97at0FL.js → use-deployment-admin-COmgwPUq.js} +1 -1
  350. package/dist/client/assets/{use-entitlements-BnUu4797.js → use-entitlements-B8D7pawV.js} +1 -1
  351. package/dist/client/assets/{use-fast-preview-draft-url-Cyb7nHOV.js → use-fast-preview-draft-url-BQhDGlp9.js} +1 -1
  352. package/dist/client/assets/{use-file-configs-D-0GlBYS.js → use-file-configs-CCo70YSN.js} +1 -1
  353. package/dist/client/assets/{use-id-selection-lO2dafiF.js → use-id-selection-BOT74h8X.js} +1 -1
  354. package/dist/client/assets/{use-in-settings-BZ-N_1GQ.js → use-in-settings-qQ2sbeu5.js} +1 -1
  355. package/dist/client/assets/{use-inbox-feed-adObXP9V.js → use-inbox-feed-CIBoyRh8.js} +1 -1
  356. package/dist/client/assets/{use-infinite-scroll-DuNc__Oo.js → use-infinite-scroll-Ct_PbHT3.js} +1 -1
  357. package/dist/client/assets/{use-join-requests-CGnr0fzd.js → use-join-requests-CbaI0xCz.js} +1 -1
  358. package/dist/client/assets/{use-main-panel-tabs-C_KJU7HA.js → use-main-panel-tabs-CPcNwsEn.js} +1 -1
  359. package/dist/client/assets/{use-mcp-auth-status-CIA9x3GT.js → use-mcp-auth-status-BfHI4tpd.js} +1 -1
  360. package/dist/client/assets/{use-mcp-client-CsG2AAiF.js → use-mcp-client-7NPwItGN.js} +1 -1
  361. package/dist/client/assets/{use-mcp-prompts-DJkMWAp0.js → use-mcp-prompts-C7QHdaI_.js} +1 -1
  362. package/dist/client/assets/{use-mcp-tools-C4sfkkEQ.js → use-mcp-tools-DqnFukoV.js} +1 -1
  363. package/dist/client/assets/{use-mobile-B4kazYmP.js → use-mobile-5e0sSd3X.js} +1 -1
  364. package/dist/client/assets/{use-move-blocks-CQpVSPWP.js → use-move-blocks-Cqt9Q8CZ.js} +1 -1
  365. package/dist/client/assets/{use-navigate-to-agent-CYt8D-re.js → use-navigate-to-agent-CtsEyeFb.js} +1 -1
  366. package/dist/client/assets/{use-never-published-Dhj1oB8k.js → use-never-published-BK3TeRer.js} +1 -1
  367. package/dist/client/assets/{use-org-fs-BQ1-EjeH.js → use-org-fs-Cq9dcDh3.js} +1 -1
  368. package/dist/client/assets/{use-org-notice-FqFlDSJV.js → use-org-notice-Dvph2j3S.js} +1 -1
  369. package/dist/client/assets/{use-org-repo-syncs-DZJLO1tr.js → use-org-repo-syncs-CCuZhNZU.js} +1 -1
  370. package/dist/client/assets/{use-org-sso-CCCXGXRa.js → use-org-sso-BKXSOEb_.js} +1 -1
  371. package/dist/client/assets/{use-organization-settings-CcEgBKiR.js → use-organization-settings-BoOQOwrg.js} +1 -1
  372. package/dist/client/assets/{use-panel-navigate-BEVdshk4.js → use-panel-navigate-DPGDB1T1.js} +1 -1
  373. package/dist/client/assets/{use-project-native-view-presence-BWWCr0OJ.js → use-project-native-view-presence-SSp2DD_u.js} +1 -1
  374. package/dist/client/assets/{use-project-scope-DaSiwM20.js → use-project-scope-BIucgFKc.js} +1 -1
  375. package/dist/client/assets/{use-recent-apps-DJU0pj25.js → use-recent-apps-4zSmjU-Q.js} +1 -1
  376. package/dist/client/assets/{use-reports-diagnostic-BBFJaws_.js → use-reports-diagnostic-DWL8tyP6.js} +1 -1
  377. package/dist/client/assets/{use-sandbox-events-Bh6eTl2p.js → use-sandbox-events-TxpzU2Iw.js} +1 -1
  378. package/dist/client/assets/{use-secrets-DRWI9snD.js → use-secrets-CsCKmxLc.js} +1 -1
  379. package/dist/client/assets/{use-section-preview-base-DgxMYdVR.js → use-section-preview-base-BxFRvYUl.js} +1 -1
  380. package/dist/client/assets/{use-sidebar-collapsed-Cb1DkW28.js → use-sidebar-collapsed-DHFFs76T.js} +1 -1
  381. package/dist/client/assets/{use-tags-CY161EKU.js → use-tags-aDaEeB96.js} +1 -1
  382. package/dist/client/assets/{use-task-board-analytics-DstP91hQ.js → use-task-board-analytics-XXuDuH8s.js} +1 -1
  383. package/dist/client/assets/{use-task-board-item-prs-DENiL_-n.js → use-task-board-item-prs-CLDgREI3.js} +1 -1
  384. package/dist/client/assets/{use-task-board-items-BOf8g772.js → use-task-board-items-D4fdH47R.js} +1 -1
  385. package/dist/client/assets/{use-task-board-prompts-Cy7ux4ZM.js → use-task-board-prompts-DRYQb2DR.js} +1 -1
  386. package/dist/client/assets/{use-task-metadata-CLvpp-M5.js → use-task-metadata-CSvrbSt0.js} +1 -1
  387. package/dist/client/assets/{use-thread-outputs-CBGDKGBc.js → use-thread-outputs-CrNLjxTt.js} +1 -1
  388. package/dist/client/assets/{use-view-draft-kind-Bm-Nz5rU.js → use-view-draft-kind-BG3Ihm6n.js} +1 -1
  389. package/dist/client/assets/{use-voice-input-l3y10Zzf.js → use-voice-input-BspgCDOI.js} +1 -1
  390. package/dist/client/assets/useInfiniteQuery-BJoJv4VQ.js +1 -0
  391. package/dist/client/assets/{useQueries-BADhFyMC.js → useQueries-DGhxO9Ry.js} +1 -1
  392. package/dist/client/assets/useSuspenseInfiniteQuery-BFQG7J82.js +1 -0
  393. package/dist/client/assets/{users-BlAutU5k.js → users-CC1uXfIH.js} +1 -1
  394. package/dist/client/assets/{utils-D3hrWqhu.js → utils-JVZxV40b.js} +1 -1
  395. package/dist/client/assets/{variant-calendar-Cf89P2oq.js → variant-calendar-COAsXla8.js} +1 -1
  396. package/dist/client/assets/{variant-matcher-override-cabGpziX.js → variant-matcher-override-Dm9kjKRy.js} +1 -1
  397. package/dist/client/assets/{view-header-CqefLZ8T.js → view-header-d4Obd__T.js} +1 -1
  398. package/dist/client/assets/{virtual-mcp-BfLRvmz0.js → virtual-mcp-TQWeP4ry.js} +1 -1
  399. package/dist/client/assets/{watch-sse-pool-mz6vVQb7.js → watch-sse-pool-CWcYbOm5.js} +1 -1
  400. package/dist/client/index.html +2 -2
  401. package/dist/server/server.js +2 -2
  402. package/package.json +1 -1
  403. package/dist/client/assets/agent-app-qi4Zg0Ko.js +0 -1
  404. package/dist/client/assets/agent-deck-8F4Y3xtF.js +0 -1
  405. package/dist/client/assets/agent-experiments-CxOy1OMh.js +0 -1
  406. package/dist/client/assets/agent-file-BHPXEsLM.js +0 -1
  407. package/dist/client/assets/agent-library-BDMtzZv5.js +0 -1
  408. package/dist/client/assets/agent-library-file-BU6GZbp1.js +0 -1
  409. package/dist/client/assets/agent-overview-BpZl9px0.js +0 -1
  410. package/dist/client/assets/agent-releases-BojH--RB.js +0 -2
  411. package/dist/client/assets/agent-settings-CmejIfdg.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-CsUpsDOZ.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-DcDYGjSi.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-DoYr2JdT.js +0 -1
  415. package/dist/client/assets/agent-view-5HH2xFah.js +0 -1
  416. package/dist/client/assets/api-keys-tTCGO1A5.js +0 -1
  417. package/dist/client/assets/index-w9K6scL8.css +0 -1
  418. package/dist/client/assets/library-Wi-0o3Yx.js +0 -1
  419. package/dist/client/assets/project-reports-DUszwxkV.js +0 -1
  420. package/dist/client/assets/project-tasks-C9wh-MvK.js +0 -1
  421. package/dist/client/assets/record-editor-5hDNYEyc.js +0 -1
  422. package/dist/client/assets/reports-BQo9TgIr.js +0 -1
  423. package/dist/client/assets/repositories-BT4LP6yW.js +0 -1
  424. package/dist/client/assets/route-FPh-7Znc.js +0 -1
  425. package/dist/client/assets/settings-tab-C97802nQ.js +0 -1
  426. package/dist/client/assets/site-editor-BiU8V7py.js +0 -1
  427. package/dist/client/assets/tasks-B2acfxpH.js +0 -1
  428. package/dist/client/assets/use-ask-in-chat-CJn-8DXz.js +0 -1
  429. package/dist/client/assets/use-blocks-v8-project-BUDjuC95.js +0 -1
  430. package/dist/client/assets/use-blog-view-CZ2egr0r.js +0 -1
  431. package/dist/client/assets/useInfiniteQuery-Comohppg.js +0 -1
  432. package/dist/client/assets/useSuspenseInfiniteQuery-XSNjcYue.js +0 -1
@@ -1 +1 @@
1
- import{c as f,f as p,ax as u,j as s,b7 as x,N as a}from"./index-BGvfgBXQ.js";import{C as j}from"./capability-load-error-74rIpav9.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-BVZH8mqe.js";import{C as j}from"./capability-load-error-Cwe4uK-x.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{e4 as g,e5 as d,e6 as v}from"./index-BGvfgBXQ.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-BVZH8mqe.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-BGvfgBXQ.js";import{i as he}from"./CreditCard01-BnEtKIxX.js";import{B as L}from"./badge-xkOOGTR2.js";import{M as je}from"./multi-select-DLpc9WGW.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BH6i4t87.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-Bta2Y1CD.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-8sA8UDc5.js";import{T as De}from"./Tooltip-B9ptxG-X.js";import{a as _e,A as Me}from"./AreaChart-Yh5pBNgF.js";import{c8 as Re}from"./CategoricalChart-D0wEIkFu.js";import{R as Le}from"./require-capability-C51SGps0.js";import"./checkbox-DR00CmJr.js";import"./Minus-vz8sJtmc.js";import"./ChevronDown-C0zFtKr8.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./SearchMd-1p8IP99o.js";import"./popover-BdGhwX6j.js";import"./index-BdQq_4o_.js";import"./index-CpqnzQ6X.js";import"./ChevronUp-CHkdbh-i.js";import"./index-CrMNCOay.js";import"./access-gate-BwaSQQ2b.js";import"./capability-load-error-74rIpav9.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-BVZH8mqe.js";import{i as he}from"./CreditCard01-C6eDo3p0.js";import{B as L}from"./badge-wWozseh3.js";import{M as je}from"./multi-select-Dak9eW6K.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BJ7g3jt1.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-DNvSx4nT.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-BRKqG5iH.js";import{T as De}from"./Tooltip-2A3BALIx.js";import{a as _e,A as Me}from"./AreaChart-CJxx8aiG.js";import{c8 as Re}from"./CategoricalChart-DW_7VziR.js";import{R as Le}from"./require-capability-B6_v4BKo.js";import"./checkbox-Cs2Li62P.js";import"./Minus-09UkIbMe.js";import"./ChevronDown-CWnE_Wmz.js";import"./command-DQwD4jPt.js";import"./index-B-PIhH8l.js";import"./SearchMd-DioGBYbO.js";import"./popover-9q-VKuQx.js";import"./index-BdQq_4o_.js";import"./index-BFjuxezw.js";import"./ChevronUp-C_rAiuf1.js";import"./index-BYQu9U5P.js";import"./access-gate-Cb6wrWbo.js";import"./capability-load-error-Cwe4uK-x.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 B,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-BGvfgBXQ.js";import{S as de,s as Se}from"./suggestion-Cpa996zU.js";import{K as Fe,t as De,A as Ie,p as J,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-4TwUkhM4.js";import{aJ as Oe}from"./agent-icon-CFsULo4q.js";import"./chat-context-Dk_Ebz6D.js";import{m as Ue,i as $e,b as qe}from"./index-ztFBZP-a.js";import{u as me}from"./use-mcp-client-CsG2AAiF.js";import{u as Ke}from"./repository-binding-DrxBu24C.js";import{g as se,a as fe}from"./gateway-client-Dcj5rv8f.js";import{l as oe,g as pe}from"./use-mcp-prompts-DJkMWAp0.js";import{f as ze,b as Je}from"./use-org-fs-BQ1-EjeH.js";async function Be(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=qe(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 He(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=B.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 Be(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)=>He(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=B.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=B.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=B.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();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:K}=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){J(r,K,{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);J(r,K,{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 q=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,K=F();if(K==="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(K==="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 H;e[42]!==i?(H=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]=H):H=e[43];const ee=H;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,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);J(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);J(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};J(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})),q=(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,...q]},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:()=>Je(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=B.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,Be as p,Pt as u};
1
+ import{c as B,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-BVZH8mqe.js";import{S as de,s as Se}from"./suggestion-B9N6oqkG.js";import{K as Fe,t as De,A as Ie,p as J,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-Dzci2XGy.js";import{aJ as Oe}from"./agent-icon-BS6RPQ_A.js";import"./chat-context-B6UvvRRf.js";import{m as Ue,i as $e,b as qe}from"./index-GMDFirHC.js";import{u as me}from"./use-mcp-client-7NPwItGN.js";import{u as Ke}from"./repository-binding-BIfwJXBl.js";import{g as se,a as fe}from"./gateway-client-8UpI_Rdq.js";import{l as oe,g as pe}from"./use-mcp-prompts-C7QHdaI_.js";import{f as ze,b as Je}from"./use-org-fs-Cq9dcDh3.js";async function Be(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=qe(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 He(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=B.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 Be(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)=>He(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=B.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=B.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=B.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();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:K}=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){J(r,K,{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);J(r,K,{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 q=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,K=F();if(K==="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(K==="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 H;e[42]!==i?(H=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]=H):H=e[43];const ee=H;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,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);J(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);J(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};J(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})),q=(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,...q]},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:()=>Je(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=B.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,Be as p,Pt as u};