decocms 4.584.15 → 4.584.16

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 (435) hide show
  1. package/dist/client/assets/{AlertCircle-xcW2fRsN.js → AlertCircle-ee1sjQGr.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B2pMCC5D.js → AreaChart-CNSKfZ8O.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BCdlXJnc.js → ArrowLeft-BhV4BHrM.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CNfAAPFn.js → ArrowRight-3kziivNC.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-NxqJFghp.js → ArrowUp-DgFMMMBQ.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-ByHdrfXb.js → BookOpen01-C9X5S-cQ.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-Bandx1cs.js → CartesianChart-DuA35Ksh.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-W2F9o7wJ.js → CategoricalChart-cy5wvzih.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-CGiVBHq1.js → CheckCircle-CGqAjggj.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-L1RduSWg.js → ChevronDown-CGJhfuSb.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-R-v88Ujt.js → ChevronSelectorVertical-5-TBPpUz.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-hn_BcMX-.js → ChevronUp-BO9DemUb.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-I11lzZp8.js → CreditCard01-BLkqiDJW.js} +1 -1
  14. package/dist/client/assets/{Eye-BgZwKqY2.js → Eye-CO_nPZKQ.js} +1 -1
  15. package/dist/client/assets/{File02-Cq4haxMC.js → File02-DclovfNb.js} +1 -1
  16. package/dist/client/assets/{Globe04-Gqo8FWLb.js → Globe04-Cx-w92u5.js} +1 -1
  17. package/dist/client/assets/{Image01-B1gTxSfc.js → Image01-CeQMNu9o.js} +1 -1
  18. package/dist/client/assets/{Key01-V-plVH8s.js → Key01-DMjKHzPy.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-Dh-xvGQJ.js → LayoutLeft-BPF5UUkD.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-C4BH9PJk.js → LinkBroken01-BN3icH6a.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-BXDua8oN.js → MessageCircle01-jm5EAYEs.js} +1 -1
  22. package/dist/client/assets/{Minus-CPSsigVU.js → Minus-DoUm1n95.js} +1 -1
  23. package/dist/client/assets/{Monitor01-FVdupyIO.js → Monitor01-CM0DIJ9E.js} +1 -1
  24. package/dist/client/assets/{Play-B48hJa64.js → Play-I05hjYId.js} +1 -1
  25. package/dist/client/assets/{Plus-Bvk6TEoj.js → Plus-B_KK3A4P.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-Dlp-ZxjE.js → ReferenceLine-DxKvZdt8.js} +1 -1
  27. package/dist/client/assets/{SearchMd-lJZx4ys3.js → SearchMd-BlPJmXQo.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-Ce-IsP1d.js → ShoppingBag01-XH61oInk.js} +1 -1
  29. package/dist/client/assets/{Sun-DDXuqLa1.js → Sun-CYr05wwt.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BTEqc04d.js → SwitchHorizontal01-CGFn_psg.js} +1 -1
  31. package/dist/client/assets/{Tool01-CuK8_xpK.js → Tool01-Cnkd4pP7.js} +1 -1
  32. package/dist/client/assets/{Tooltip-CpE-GuZ-.js → Tooltip-CwwzGu8p.js} +1 -1
  33. package/dist/client/assets/{Trash01-C00iOBQB.js → Trash01-CnPGIwZe.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-D52fc-S-.js → TrendUp01-BlwMDcra.js} +1 -1
  35. package/dist/client/assets/{Upload01-CF0QTA2R.js → Upload01-Bfre-QV-.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-Dnnv6qzl.js → UserCheck01-CcIH7s2N.js} +1 -1
  37. package/dist/client/assets/{UserSquare-Br0ylxlC.js → UserSquare-CUb4s2-c.js} +1 -1
  38. package/dist/client/assets/{Users01-WL4ZoQTM.js → Users01-BaPkNO1v.js} +1 -1
  39. package/dist/client/assets/{XClose-CE6c7i3i.js → XClose-CtxnajtG.js} +1 -1
  40. package/dist/client/assets/{Zap-CkG3OOIL.js → Zap-D4dSEKpa.js} +1 -1
  41. package/dist/client/assets/{access-gate-CJyV2IQK.js → access-gate-BcSivdgh.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-BZ9UFs6m.js → add-connection-dialog-BqEJyMSP.js} +1 -1
  43. package/dist/client/assets/agent-app--sGlyuqH.js +1 -0
  44. package/dist/client/assets/{agent-assets-Cl6G12zC.js → agent-assets-D9OfQf2S.js} +1 -1
  45. package/dist/client/assets/{agent-automation-EzohnRR8.js → agent-automation-CJwwEuNT.js} +1 -1
  46. package/dist/client/assets/{agent-automations-ClpjK4LJ.js → agent-automations-CQfQpku1.js} +1 -1
  47. package/dist/client/assets/{agent-blog-9KrbWIUt.js → agent-blog-BdGPQ8_2.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-BYOGSBaB.js → agent-blog-post-B9pgUtDH.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-DqPeqbu1.js → agent-calendar-JLP2GBTa.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-CD1cAeZo.js → agent-capabilities-CYFGwKOQ.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-BQuw4St5.js → agent-connect-sources-DDUrjmJD.js} +1 -1
  52. package/dist/client/assets/agent-deck-BFHNNp62.js +1 -0
  53. package/dist/client/assets/{agent-e2e-Ch1bhbzr.js → agent-e2e-R2Brb1AY.js} +1 -1
  54. package/dist/client/assets/agent-experiments-Bv_v3TAO.js +1 -0
  55. package/dist/client/assets/agent-file-BXKcmB2N.js +1 -0
  56. package/dist/client/assets/{agent-hosting-CSEquLBT.js → agent-hosting-ZtddB8HN.js} +1 -1
  57. package/dist/client/assets/{agent-icon-CBIv-AL5.js → agent-icon-DFyNTmmD.js} +1 -1
  58. package/dist/client/assets/agent-library-Czsy6k8l.js +1 -0
  59. package/dist/client/assets/agent-library-file-BbS3HgpC.js +1 -0
  60. package/dist/client/assets/agent-overview-DM_uEEtA.js +1 -0
  61. package/dist/client/assets/{agent-releases-D4sRdBns.js → agent-releases-CSV4AdrC.js} +1 -1
  62. package/dist/client/assets/agent-settings-BnZZ1J30.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-BUj6gcVv.js → agent-site-editor-Du4ljJT4.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-DalNbqMF.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-C86oatUw.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-CNy-hy9W.js +1 -0
  67. package/dist/client/assets/agent-view-BnzkhKY4.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-gO2YEwTt.js → agent-view-guard-BkW43e8G.js} +1 -1
  69. package/dist/client/assets/{ai-providers-DZ-PP7L6.js → ai-providers-B2F4VTfq.js} +1 -1
  70. package/dist/client/assets/{alert-BmJHuGNf.js → alert-DaQbIayT.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-Dd4lvqQU.js → analytics-sections-CDIiyHbJ.js} +1 -1
  72. package/dist/client/assets/api-keys-BWtdycqJ.js +1 -0
  73. package/dist/client/assets/{api-keys-vP92rWqP.js → api-keys-DV2qjs1c.js} +1 -1
  74. package/dist/client/assets/app-editor-CsjRVENv.js +1 -0
  75. package/dist/client/assets/{asset-utils-KljyOq-J.js → asset-utils-545UDhWA.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-D78z1E8-.js → auth-catchall-C4NbHq82.js} +1 -1
  77. package/dist/client/assets/{auth-entry-Cc4-G00H.js → auth-entry-CeA6avaA.js} +1 -1
  78. package/dist/client/assets/{auth-CBSiR73H.js → auth-sBxX13D1.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-DdhtzfQ9.js → auth-split-layout-DFVyplfm.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-Du2u48Vp.js → authenticate-and-persist-oauth-Cd-20mVj.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-DzzmT3Oi.js → automation-list-row-DIz_7uV6.js} +1 -1
  82. package/dist/client/assets/{automation-runs-DZfSB9de.js → automation-runs-U9DXMN_I.js} +1 -1
  83. package/dist/client/assets/{automations-Crn6lgen.js → automations-DLrTFxh8.js} +1 -1
  84. package/dist/client/assets/{badge-CamJsKC8.js → badge-Ba_DCLD5.js} +1 -1
  85. package/dist/client/assets/{block-document-ChoiQUgI.js → block-document-Aq3OAP33.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-5BkSbFn-.js → blocks-preview-workspace-context-1Hmusp23.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-wy6ydHCy.js → blocks-tab-states-0NdQhV1f.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-CHbTdKzq.js → blog-preview-url-Dih-dMCw.js} +1 -1
  89. package/dist/client/assets/{blog-schema-CUiUhTk6.js → blog-schema-CYnX2CMq.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-0m13vigg.js → blog-source-gate-CWWyUoRi.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-N4SCXaqe.js → blog-view-gate-oE1gHZMz.js} +1 -1
  92. package/dist/client/assets/{buckets-BM_771lX.js → buckets-Bh4QpekX.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-CY7-PCrM.js → build-improve-prompt-doc-CPww4N3Z.js} +1 -1
  94. package/dist/client/assets/{calendar-HgHcy92P.js → calendar-i6vH9oRA.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-B3ALNSsg.js → capability-load-error-LShIU80A.js} +1 -1
  96. package/dist/client/assets/category-editor-BLagxgQw.js +1 -0
  97. package/dist/client/assets/{category-tree-DCyh5lbD.js → category-tree-CO_9m-hw.js} +1 -1
  98. package/dist/client/assets/{chart-DXZAnmcF.js → chart-C99PxQ8i.js} +1 -1
  99. package/dist/client/assets/{chat-context-kuwat9Zp.js → chat-context-ZeSpVj2j.js} +1 -1
  100. package/dist/client/assets/{chat-draft-B1cM3_nz.js → chat-draft-DixXhuAl.js} +1 -1
  101. package/dist/client/assets/{checkbox-DfLNNBpA.js → checkbox-yHZpOTt9.js} +1 -1
  102. package/dist/client/assets/{choose-editor-CAA10rVn.js → choose-editor-Ow8vFSp1.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-CQWZ58qi.js → cli-auth-success-DRGrIbSu.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-XDcwl9D1.js → cms-settings-editor-D6qGypvL.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-xU8H47hr.js → cms-store-drafts-CLXsr0b9.js} +1 -1
  106. package/dist/client/assets/{collapsible-fh6xE0W6.js → collapsible-Dc4ca33I.js} +1 -1
  107. package/dist/client/assets/{collection-detail-Cp_igxDT.js → collection-detail-D2do5Te9.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-DETjtRN2.js → collection-display-button-R9esRwsq.js} +1 -1
  109. package/dist/client/assets/{collection-search-CMQBkzx4.js → collection-search-CWJ6AHHK.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-BpB2_r7K.js → collection-table-wrapper-D1qYH_Vr.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-Do3VaUL9.js → collection-tabs-CCJoVQ-t.js} +1 -1
  112. package/dist/client/assets/{combobox-DYbtPcjA.js → combobox-Cc5RijV8.js} +1 -1
  113. package/dist/client/assets/{command-C5c9xxo6.js → command-Dg1M4JCf.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-CJAT7S2N.js → companion-mcps-section-DWH_OPav.js} +1 -1
  115. package/dist/client/assets/{config-BdmxgNpF.js → config-CMcG5aXE.js} +1 -1
  116. package/dist/client/assets/{connect-CEjscMvd.js → connect-DTJ8Lb0Z.js} +1 -1
  117. package/dist/client/assets/{connect-key-Bwz15Ohl.js → connect-key-DwcLwXDe.js} +1 -1
  118. package/dist/client/assets/{connect-layout-CtpXfA3_.js → connect-layout-B9Ri51_N.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-DOKgnbNI.js → connect-source-dialog-DFoGY0c6.js} +1 -1
  120. package/dist/client/assets/{connection-DU27jsWQ.js → connection-D2P4B1Vm.js} +1 -1
  121. package/dist/client/assets/{connection-card-CRqpyo-Z.js → connection-card-CTimlD0g.js} +1 -1
  122. package/dist/client/assets/{connection-detail-D61-TPzv.js → connection-detail-CLq96SZi.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-C90068pd.js → connection-form-helpers-C0MTL33k.js} +1 -1
  124. package/dist/client/assets/{connection-slug-C6S0oQlj.js → connection-slug-CGQkx9BD.js} +1 -1
  125. package/dist/client/assets/{connections-BLeMCW0D.js → connections-Blix3sTM.js} +1 -1
  126. package/dist/client/assets/content-tab-DksWOtkz.js +19 -0
  127. package/dist/client/assets/{context-BHZhIUrX.js → context-UEmVvZBl.js} +1 -1
  128. package/dist/client/assets/{context-menu-DvQobFsl.js → context-menu-77Z4mScR.js} +1 -1
  129. package/dist/client/assets/{context-shell-DDVKJzlv.js → context-shell-n2LQX250.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-BKb453UR.js → create-organization-dialog-5XUNCI8z.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-Dm2jHqb7.js → daily-pulse-B11Ng0jZ.js} +1 -1
  132. package/dist/client/assets/{delete-copy-DOI5IATW.js → delete-copy-B5PbKStF.js} +1 -1
  133. package/dist/client/assets/{device-hint-B3K0oDUI.js → device-hint-BlkEtJOD.js} +1 -1
  134. package/dist/client/assets/{discover-uKP20dNQ.js → discover-76bH9Npb.js} +1 -1
  135. package/dist/client/assets/{domain-settings-BHlcjWV3.js → domain-settings-DMjKDVZw.js} +1 -1
  136. package/dist/client/assets/{drawer-DmBGYsSI.js → drawer-DVCuatiz.js} +1 -1
  137. package/dist/client/assets/{editor-cG8bavVY.js → editor-DKlObXWN.js} +1 -1
  138. package/dist/client/assets/{editor-classes-CoJAO_Ub.js → editor-classes-DlTZqfff.js} +1 -1
  139. package/dist/client/assets/{empty-message-BdIshsTe.js → empty-message-BydjGtkz.js} +1 -1
  140. package/dist/client/assets/{empty-state-i0RgGtWw.js → empty-state-B87jIRUF.js} +1 -1
  141. package/dist/client/assets/{empty-state-BQ3leEYD.js → empty-state-DrDY2Uvy.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-BmcEGamZ.js → experiments-tab-choice-B92_kGiq.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-_3AypHFf.js → extract-connection-data-BBZ3NAYt.js} +1 -1
  144. package/dist/client/assets/{feature-gate-CUzBYSVg.js → feature-gate-BldXfjSV.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-Da0veXE_.js → feature-paywall-CYTrb2Hp.js} +1 -1
  146. package/dist/client/assets/{file-explorer-96x1wzeg.js → file-explorer-BMmUp2yA.js} +1 -1
  147. package/dist/client/assets/{file-preview-C5chvmXN.js → file-preview-DGOqiP3N.js} +1 -1
  148. package/dist/client/assets/{file-share-button-CwDU4cYY.js → file-share-button-BAKT8NFv.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-6cUnbJSX.js → file-type-icon-sj_ejObJ.js} +1 -1
  150. package/dist/client/assets/{folder-icon-BcfGWwUV.js → folder-icon-B9awY_eB.js} +1 -1
  151. package/dist/client/assets/{form-CWHbQDen.js → form-FAPXIq7O.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-CUIfPm6x.js → frame-navigation-CoYMhBUE.js} +1 -1
  153. package/dist/client/assets/{gateway-client-DGLOUuHv.js → gateway-client-BVWghiMF.js} +1 -1
  154. package/dist/client/assets/{general-DkMSa9su.js → general-DMcbEh6R.js} +1 -1
  155. package/dist/client/assets/{github-icon-tttsztW4.js → github-icon-KEAtk4MX.js} +1 -1
  156. package/dist/client/assets/{held-block-view-Dl38oGTS.js → held-block-view-DDQtd2bN.js} +3 -3
  157. package/dist/client/assets/{home-DsMWZSyz.js → home-BemwUTPY.js} +1 -1
  158. package/dist/client/assets/{home-overview-B4l35Rx7.js → home-overview-DJ3gY2Dz.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-C9sT156Y.js → hosted-reconcile-DVbA9MCD.js} +1 -1
  160. package/dist/client/assets/{icon-button-C2DemlVA.js → icon-button-DmJB3HO5.js} +1 -1
  161. package/dist/client/assets/{index-BI2o-nvw.js → index-0S6WDYoC.js} +1 -1
  162. package/dist/client/assets/{index-D07va7UH.js → index-3k_nlNc7.js} +1 -1
  163. package/dist/client/assets/{index-Dgf1S0ZI.js → index-779PVYGV.js} +1 -1
  164. package/dist/client/assets/{index-D4zAZEeh.js → index-BRgWMc-5.js} +4 -4
  165. package/dist/client/assets/{index-CO_aaGMC.js → index-BiVCuU3V.js} +1 -1
  166. package/dist/client/assets/{index-DuBBqs4L.js → index-Bjhw4G6x.js} +1 -1
  167. package/dist/client/assets/{index-L2OEH3-g.js → index-CEBVkeBV.js} +1 -1
  168. package/dist/client/assets/{index-DsnO5Dzk.js → index-CER3O-Er.js} +1 -1
  169. package/dist/client/assets/{index-jrf1krh5.js → index-CH8HRuHa.js} +1 -1
  170. package/dist/client/assets/{index-CQzwsfZW.js → index-CSZLbM2Z.js} +1 -1
  171. package/dist/client/assets/{index-KtshGmmg.js → index-CV9lAciS.js} +1 -1
  172. package/dist/client/assets/{index-MyJJE1Ld.js → index-CsHIpbTc.js} +1 -1
  173. package/dist/client/assets/{index-CAbU9kcc.js → index-DAQFQP6X.js} +1 -1
  174. package/dist/client/assets/{index-CagbqgF3.js → index-DBsxQlkE.js} +1 -1
  175. package/dist/client/assets/{index-BC7uKBKA.js → index-EBRxzWbP.js} +1 -1
  176. package/dist/client/assets/{index-C07Jp7YW.js → index-YHYnj2N1.js} +1 -1
  177. package/dist/client/assets/{index-DyGSejEm.js → index-g6kNIQoA.js} +1 -1
  178. package/dist/client/assets/{index-redirect-BXbxct_U.js → index-redirect-DLAKhZQB.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-CNIZET2k.js → infiniteQueryObserver-DXDiLGwX.js} +1 -1
  180. package/dist/client/assets/{infra-billing-FOqOn27t.js → infra-billing-Ch38HLtg.js} +1 -1
  181. package/dist/client/assets/{input-Gi15aI0l.js → input-CCPCHy_J.js} +1 -1
  182. package/dist/client/assets/{input-C0dfZdZM.js → input-Do8NvE59.js} +3 -3
  183. package/dist/client/assets/{integration-icon-BIDY0_8Y.js → integration-icon-Cu3N1muw.js} +1 -1
  184. package/dist/client/assets/{item-actions-BP-bCtQy.js → item-actions-C0r-FbzQ.js} +1 -1
  185. package/dist/client/assets/{jira-icon-BCYN6YMQ.js → jira-icon-D0RV1z5x.js} +1 -1
  186. package/dist/client/assets/{label-BpM98tac.js → label-DJG2lJG2.js} +1 -1
  187. package/dist/client/assets/{layout-DCvRYnRd.js → layout-ChdcSvGo.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-B20HwZP4.js → legacy-admin-welcome-dialog-BY_2I8tZ.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-BmvQrVmH.js → legacy-agents-deep-DDm5GBaQ.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-Djk4-r9-.js → legacy-main-redirect-D850qNA8.js} +1 -1
  191. package/dist/client/assets/library-UhxMQ0oL.js +1 -0
  192. package/dist/client/assets/{library-tab-Cn42i7-6.js → library-tab-D8k_wDzC.js} +1 -1
  193. package/dist/client/assets/{login-DitP5zKx.js → login-C5GNgjpJ.js} +1 -1
  194. package/dist/client/assets/{markdown-DWN586Xq.js → markdown-DPpPArEp.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-C48AtEQ1.js → mcp-app-renderer-D-1Hpjx-.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-4c-GNDKK.js → mcp-oauth-DAw9xmxO.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-wEukEOTE.js → mcp-oauth-DMi3oCsH.js} +1 -1
  198. package/dist/client/assets/{members-BlNBiH3z.js → members-laM8OLrZ.js} +1 -1
  199. package/dist/client/assets/{memory-C9em5dKf.js → memory-DAAWauU_.js} +1 -1
  200. package/dist/client/assets/{mock-board-BUSCP4L7.js → mock-board-DVLeWzDj.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-DFVcXi2W.js → monaco-editor-BHpOPihN.js} +1 -1
  202. package/dist/client/assets/{monitoring-B_UThcMp.js → monitoring-D3l_Jm2m.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-oEVqK40A.js → monitoring-stats-row-Ri6ispwa.js} +1 -1
  204. package/dist/client/assets/{multi-select-v2MphKjq.js → multi-select-8e4MeokI.js} +1 -1
  205. package/dist/client/assets/{mustache-vrrp1dXV.js → mustache-DnvmVEAI.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-Z9Y46qyC.js → named-rule-step-WtjJX5Mv.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-Cz1WvHGI.js → named-rule-view-DZ8Gl6w8.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-BB7lkc90.js → new-project-dialog-DEBFbTK4.js} +1 -1
  209. package/dist/client/assets/{new-project-store-AGiWlTxK.js → new-project-store-CgLzwcjn.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-CzLPh840.js → oauth-callback--6BD_yzu.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-CNqW8YVb.js → oauth-callback-ai-provider-CcAwHHuH.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-C6x21DQ7.js → oauth-consent-DU2TXlly.js} +1 -1
  213. package/dist/client/assets/{onboarding-B55TDmFS.js → onboarding-CA0lTQst.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-D9EaNCT2.js → openai-conversation-kPp7_oUZ.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-D7Ad1MQo.js → optimistic-project-sidebar-views-C9pyPAzF.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-DvFuV37x.js → order-monitor-day-xeVDnHLL.js} +1 -1
  217. package/dist/client/assets/{organization-choice-yRGUIZ_J.js → organization-choice-CKU82eUy.js} +1 -1
  218. package/dist/client/assets/{orgs-Cf6BX6NO.js → orgs-a8ldZbiZ.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-CT2yRyP_.js → own-accounts-section-DhFCn8gz.js} +1 -1
  220. package/dist/client/assets/{pair-B9VTopdR.js → pair-C-KXBar9.js} +1 -1
  221. package/dist/client/assets/{parse-sections-BMAn9SGR.js → parse-sections-DPGRvqbM.js} +2 -2
  222. package/dist/client/assets/{plan-TSEvOlrg.js → plan-D6JDzYbv.js} +1 -1
  223. package/dist/client/assets/{plan-ladder-BQRozUnr.js → plan-ladder-DuXPk4c4.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-DbJ1AqbM.js → plan-usage-card-BdC1KTye.js} +1 -1
  225. package/dist/client/assets/{popover-DKQLETgP.js → popover-DGvrj6fy.js} +1 -1
  226. package/dist/client/assets/{post-calendar-3H45objU.js → post-calendar-DKGqFmih.js} +1 -1
  227. package/dist/client/assets/post-editor-7oUWGzCY.js +2 -0
  228. package/dist/client/assets/{preview-content-DtzvMyU3.js → preview-content-abo2ryKK.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-CZcHPcyw.js → preview-dialog-CQi5mIZh.js} +1 -1
  230. package/dist/client/assets/{preview-panel-Cf_qbsOk.js → preview-panel-CjmJmEqS.js} +1 -1
  231. package/dist/client/assets/preview-tab-DA1SyRp5.js +557 -0
  232. package/dist/client/assets/{product-picker-dialog-DiScKAnl.js → product-picker-dialog-BXRcAQat.js} +1 -1
  233. package/dist/client/assets/{profile-D4cDJxA7.js → profile-DUghMPNx.js} +1 -1
  234. package/dist/client/assets/{project-app-view-BV--yKg5.js → project-app-view-DVY_pI8M.js} +1 -1
  235. package/dist/client/assets/{project-apps-B-BQ_WLB.js → project-apps-DiSx-TBF.js} +1 -1
  236. package/dist/client/assets/{project-icon-U6Iksgvy.js → project-icon-D6jtLreJ.js} +1 -1
  237. package/dist/client/assets/{project-index-W8FXW-6M.js → project-index-pgEW44Q9.js} +1 -1
  238. package/dist/client/assets/project-reports-CvZYitaI.js +1 -0
  239. package/dist/client/assets/project-tasks-Cm1BxQuv.js +1 -0
  240. package/dist/client/assets/{projects-UB1Iv8yC.js → projects-CoL2Czss.js} +1 -1
  241. package/dist/client/assets/{projects-empty-state-CIR-WrUv.js → projects-empty-state-dMAfSAvA.js} +1 -1
  242. package/dist/client/assets/{prompts-DAfUBNaO.js → prompts-C1nJJ4vm.js} +1 -1
  243. package/dist/client/assets/record-editor-DUtpG1M4.js +1 -0
  244. package/dist/client/assets/{redirect-editor-Chr5rAav.js → redirect-editor-v_Pws7YC.js} +1 -1
  245. package/dist/client/assets/reports-CRpT9Jvs.js +1 -0
  246. package/dist/client/assets/{reports-DNNF1b9v.js → reports-DeRFKvgR.js} +1 -1
  247. package/dist/client/assets/{reports-onboarding-8yxwk401.js → reports-onboarding-ByH6wjdu.js} +1 -1
  248. package/dist/client/assets/{reports-tab-BWTBFwIS.js → reports-tab-DNq4qxR5.js} +2 -2
  249. package/dist/client/assets/repositories-BimQNbUT.js +1 -0
  250. package/dist/client/assets/{repositories-DLsDU_5G.js → repositories-CshiRVJO.js} +1 -1
  251. package/dist/client/assets/{repository-binding-n3PcTj5W.js → repository-binding-Drae9jEJ.js} +1 -1
  252. package/dist/client/assets/{repository-picker-D6iz0LSt.js → repository-picker-DcoNDHNX.js} +1 -1
  253. package/dist/client/assets/{require-capability-DnyEZ3xe.js → require-capability-58lj_sLx.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-DyjCxKYD.js → required-auth-layout-coJLhqjq.js} +1 -1
  255. package/dist/client/assets/{reset-password-DTzJYy8y.js → reset-password-DmNJhZP_.js} +1 -1
  256. package/dist/client/assets/{resizable-CcVTuTxq.js → resizable-a5ed0aFn.js} +1 -1
  257. package/dist/client/assets/{resolve-tab-icon-MEE2P75Q.js → resolve-tab-icon-aSYnYRbW.js} +1 -1
  258. package/dist/client/assets/{review-settings-Bf0p0wLB.js → review-settings-M_0Lgvos.js} +1 -1
  259. package/dist/client/assets/{role-color-B2mF5Vo7.js → role-color-B1bQbhLW.js} +1 -1
  260. package/dist/client/assets/{roles-ezntvUY8.js → roles-Cfs4KbFC.js} +1 -1
  261. package/dist/client/assets/route-BIUN__VF.js +1 -0
  262. package/dist/client/assets/{route-DUzlT2px.js → route-CKUHS8mK.js} +1 -1
  263. package/dist/client/assets/{route-BUfQW8qo.js → route-ln57uUdJ.js} +1 -1
  264. package/dist/client/assets/{route-page-header-NJcm4Djx.js → route-page-header-Dm04mhuj.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-BfQhG8Sq.js → sandbox-git-api-CPqBqV0G.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-CH7BXWjg.js → sandbox-lifecycle-context-PaxLnfD4.js} +1 -1
  267. package/dist/client/assets/{save-status-DI48JmZF.js → save-status-BXFvRkAL.js} +1 -1
  268. package/dist/client/assets/{schema-BG6AHPWD.js → schema-BSbCYY9y.js} +1 -1
  269. package/dist/client/assets/{schema-CpAYIyCk.js → schema-DgI3qSqy.js} +1 -1
  270. package/dist/client/assets/{scroll-area-v2fkoJDu.js → scroll-area-B2d6jFzS.js} +1 -1
  271. package/dist/client/assets/{search-input-C2L58fvI.js → search-input-XDrQYhil.js} +1 -1
  272. package/dist/client/assets/{search-toggle-BseJQJ3D.js → search-toggle-CBe-B-W_.js} +1 -1
  273. package/dist/client/assets/{secret-picker-DKGfGpF9.js → secret-picker-6lDKLE0I.js} +1 -1
  274. package/dist/client/assets/{secrets-Bi0_8npG.js → secrets-mRfQ2zYn.js} +1 -1
  275. package/dist/client/assets/{section-array-field-0_ZQBUjD.js → section-array-field-DRYut2dk.js} +1 -1
  276. package/dist/client/assets/{sections-CS7IpWui.js → sections-2LOxZNGC.js} +1 -1
  277. package/dist/client/assets/sections-editor-DSw0gf5K.js +1 -0
  278. package/dist/client/assets/{select-49MR6azA.js → select-B282Slsg.js} +1 -1
  279. package/dist/client/assets/{select-model-BI9Cqkmj.js → select-model-YSEeD0Az.js} +1 -1
  280. package/dist/client/assets/{seo-editor-C2RgUFJu.js → seo-editor-SlMH3Ndc.js} +1 -1
  281. package/dist/client/assets/{separator-DpOO1i0C.js → separator-C2ELigwU.js} +1 -1
  282. package/dist/client/assets/{session-runtime-cbg630xz.js → session-runtime-BH3ADRqu.js} +1 -1
  283. package/dist/client/assets/settings-tab-CtAuHkvY.js +1 -0
  284. package/dist/client/assets/{sheet-DLoxxUKp.js → sheet-BqPaRS1I.js} +1 -1
  285. package/dist/client/assets/{shell-layout-DRrSF92W.js → shell-layout-2a3HocEU.js} +1 -1
  286. package/dist/client/assets/{site-draft-actions-B9cG-u-X.js → site-draft-actions-BNgtZ_kM.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-B0Fqqz0n.js → site-draft-view-59J3TeYY.js} +1 -1
  288. package/dist/client/assets/site-editor-DwanunsO.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-D0pe87Fd.js → site-editor-toast-CkAw1Cwp.js} +1 -1
  290. package/dist/client/assets/{skills-B6AixETp.js → skills-BzPEtrNZ.js} +1 -1
  291. package/dist/client/assets/{slider-CAIOMJ6O.js → slider-wN_aQalr.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-DgdmBaPW.js → sortable.esm-DPJjIjEU.js} +1 -1
  293. package/dist/client/assets/{sso-D5fb_ilb.js → sso-Bs5CI3h8.js} +1 -1
  294. package/dist/client/assets/{suggestion-CL--hguC.js → suggestion-DWkqugbN.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-CXirshAk.js → super-agent-icon-D0WeAH15.js} +1 -1
  296. package/dist/client/assets/{switch-DK7LFSes.js → switch-CfemO1do.js} +1 -1
  297. package/dist/client/assets/{synced-repos-CLaC8meB.js → synced-repos-BKKcIPbN.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-BGYGkGrT.js → tab-icon-glyph-CNySjp_I.js} +1 -1
  299. package/dist/client/assets/{table-zwIDqi9O.js → table-C9du40XO.js} +1 -1
  300. package/dist/client/assets/{tabs-Ls9GPDHI.js → tabs-D6Pnw7es.js} +1 -1
  301. package/dist/client/assets/{task-board-C24cF7O1.js → task-board-CZErK_3f.js} +1 -1
  302. package/dist/client/assets/{task-key-WwiMwV7X.js → task-key-BWUT6sLU.js} +1 -1
  303. package/dist/client/assets/{task-route-BmUnrQXR.js → task-route-CGCjMBBZ.js} +1 -1
  304. package/dist/client/assets/{task-status-BGN7G1ph.js → task-status-DdY5hqAG.js} +1 -1
  305. package/dist/client/assets/{taskboard-analytics-BBqPAQnV.js → taskboard-analytics-BUGSR3Oh.js} +1 -1
  306. package/dist/client/assets/{tasks-CfYwFKuf.js → tasks-Cn9XhG4H.js} +1 -1
  307. package/dist/client/assets/tasks-qN1qstWv.js +1 -0
  308. package/dist/client/assets/{textarea-7Sqa9SEq.js → textarea-shjcg83Q.js} +1 -1
  309. package/dist/client/assets/{thread-analytics-BYs34KPS.js → thread-analytics-nP1khI2z.js} +1 -1
  310. package/dist/client/assets/{thread-button-B0qrnEQv.js → thread-button-BT5IYGed.js} +1 -1
  311. package/dist/client/assets/{thread-intent-C7XVii2Y.js → thread-intent-MQDkwS2K.js} +1 -1
  312. package/dist/client/assets/{thread-route-DotOHAlX.js → thread-route-C18glt36.js} +1 -1
  313. package/dist/client/assets/{thread-route-cOJYb9VT.js → thread-route-CwpmRNHh.js} +1 -1
  314. package/dist/client/assets/{thread-sheet-body-aHZtFnUd.js → thread-sheet-body-BY8zn-2X.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-ChDJ8FPk.js → time-range-picker-BcBC6ty0.js} +1 -1
  316. package/dist/client/assets/{toggle-group-DgmU9Ik4.js → toggle-group-BnrXGKKY.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-DS4N_IFT.js → tool-set-selector-DUOMDF3r.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-BJwXZ1OF.js → toolbar-icon-button-2ueMvkvI.js} +1 -1
  319. package/dist/client/assets/{tooltip-DGF6yL8r.js → tooltip-DgFM5mQB.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-BTH1KLDy.js → tooltipContext-BvjdDC28.js} +1 -1
  321. package/dist/client/assets/{track-CzLbsWR6.js → track-CDbXIh-t.js} +1 -1
  322. package/dist/client/assets/{types-cMCbWf0m.js → types-Bca8rqtc.js} +1 -1
  323. package/dist/client/assets/{url-slug-Ycbe1Rvc.js → url-slug-0nYVauKi.js} +1 -1
  324. package/dist/client/assets/{usage-stats-BiXE7t-o.js → usage-stats-DyR6Kq74.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-BPDfMGmO.js → use-ai-providers-BM99Jk3f.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-Ee4WtIpF.js → use-api-keys-CwsBcAgd.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-DDMjfVAa.js → use-apply-named-rule-D90SDfPC.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-B4aJKUoO.js +1 -0
  329. package/dist/client/assets/{use-automations-BGPanOv6.js → use-automations-Co69mrXt.js} +1 -1
  330. package/dist/client/assets/{use-autosave-uQmwsIRK.js → use-autosave-BoR4WbwP.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-Dq4zh0zX.js +1 -0
  332. package/dist/client/assets/use-blog-view-DuKgZxsq.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-CuCbgNpm.js → use-chat-layout-state-v3ZvRKOT.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-CpjyT0k4.js → use-cms-publish-actions-tt3YVYFN.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-BxzWZXBm.js → use-connect-companion-isIbV5OV.js} +1 -1
  336. package/dist/client/assets/{use-connection-Df_9bnNn.js → use-connection-wSXmVdCY.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-TRRinsXK.js → use-content-sync-BDeJ_Jgu.js} +1 -1
  338. package/dist/client/assets/{use-copy-DmG9bn6Y.js → use-copy-CQS-1CPQ.js} +1 -1
  339. package/dist/client/assets/{use-current-view-BpjWsRmy.js → use-current-view-C8Qn7lu6.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-DjxdJjlF.js → use-date-fns-locale-rXGxQCgx.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-YRLt5iYQ.js → use-debounced-autosave-C2p5-3yn.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-CzRJcWqp.js → use-debounced-value-sPPLBdJe.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-BkWjJR12.js → use-deco-credits-Cd6Vxe2k.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-CJGAurUR.js → use-decopilot-events-Dn0Dm68W.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-2g7g3klO.js → use-delete-block-MPbaqrna.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-BXs5Hc_Q.js → use-delete-connection-EcnpG53Z.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-BX2qXW-2.js → use-deployment-admin-CTEsKWeV.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-BBAwS2JD.js → use-entitlements-BXMPYOBS.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-BY0ndfYB.js → use-fast-preview-draft-url-BpA0y2aq.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-BS_YcmBF.js → use-file-configs-Df-dqKVI.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-d9WtjRjN.js → use-id-selection-3iTAqvRR.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-ClwRJ_Tc.js → use-in-settings-D_BySurP.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-C7YunCP0.js → use-inbox-feed-B-8Gmjeu.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-B9PxMRZD.js → use-infinite-scroll-C-t0_BGl.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-CANQ78P4.js → use-join-requests-B0limBIJ.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-Dav7mets.js → use-main-panel-tabs-N1__ahB3.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-CXGwjE9l.js → use-mcp-auth-status-Buwa7u45.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-DWGLQdXd.js → use-mcp-client-OYKYr7Zc.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-BEtNL37X.js → use-mcp-prompts-XeLNsblN.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-BottG2O1.js → use-mcp-tools-Ben5ajiJ.js} +1 -1
  361. package/dist/client/assets/{use-mobile-Cxsh7m9X.js → use-mobile-MVZR2Lhp.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-TXQsGjBm.js → use-move-blocks-DNt_Qh-7.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-BIZctK6l.js → use-navigate-to-agent-0LtKWlxa.js} +1 -1
  364. package/dist/client/assets/use-never-published-DCVDrsUC.js +1 -0
  365. package/dist/client/assets/{use-org-fs-D389k80k.js → use-org-fs-Dj5ea7Pp.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-DwvEJ13u.js → use-org-notice-Csddyapx.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-Jx7MyyHn.js → use-org-repo-syncs-8CH2dV_u.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-CY5B45CW.js → use-org-sso-DXCHIqdV.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-OVUaywhs.js → use-organization-settings-BTioDTeC.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-Cr2v02C3.js → use-panel-navigate-B_099k7i.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-ewWALD0x.js → use-project-native-view-presence-BCWndDk0.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-BXRinCYb.js → use-project-scope-BaNhjjkU.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-GE97XkJ8.js → use-recent-apps-DKTzlYg2.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-BWMlNkeF.js → use-reports-diagnostic-tqk6GkvN.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-BCRFFvvv.js → use-sandbox-events-DkGz3U_g.js} +1 -1
  376. package/dist/client/assets/{use-secrets-B6enX6Ym.js → use-secrets-DsTJ_f5f.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-Bgm0Lp29.js → use-section-preview-base-BFP7PpkG.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-DK4JHLku.js → use-sidebar-collapsed-Cyq98Qgp.js} +1 -1
  379. package/dist/client/assets/{use-tags-CvwYS8eS.js → use-tags-D58r0dtz.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-DLq03qK9.js → use-task-board-analytics-Q05GDgAf.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-DIPZ6jIw.js → use-task-board-item-prs-Y4mOP7Qi.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-CmA9KjLs.js → use-task-board-items-DHvwjetN.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-CkYS6_8J.js → use-task-board-prompts-Ds3v5gjb.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-Beq3R9jr.js → use-task-metadata-bPw-hNrv.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-Dl2UvcUX.js → use-thread-outputs-I2kuvS72.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-BLecf4F_.js → use-view-draft-kind-DcHRrUPD.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-D0aJ7Wh3.js → use-voice-input-ClQF7v9Y.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-CoeKNdsU.js +1 -0
  389. package/dist/client/assets/{useQueries-DLlqEm7S.js → useQueries-Q6q16yJQ.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-hY0KLY7U.js +1 -0
  391. package/dist/client/assets/{users-I7lrwNfV.js → users-BBdssw6s.js} +1 -1
  392. package/dist/client/assets/{utils-B_oMvMQ4.js → utils-BaccrSLZ.js} +1 -1
  393. package/dist/client/assets/{variant-calendar-CXBg42EW.js → variant-calendar-DLupNn-U.js} +1 -1
  394. package/dist/client/assets/{variant-matcher-override-DZytsOwn.js → variant-matcher-override-3ayykvcg.js} +1 -1
  395. package/dist/client/assets/{view-header-BWLCH3xe.js → view-header-BIqV3RdZ.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-DouGbsHq.js → virtual-mcp-DyF6IEhr.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-B9QxkAI3.js → watch-sse-pool-DTFf-OSe.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +1 -1
  400. package/package.json +1 -1
  401. package/dist/client/assets/agent-app-UoRF36vk.js +0 -1
  402. package/dist/client/assets/agent-deck-BLJ8bj-K.js +0 -1
  403. package/dist/client/assets/agent-experiments-Ml6bqFss.js +0 -1
  404. package/dist/client/assets/agent-file-CmlDrUHs.js +0 -1
  405. package/dist/client/assets/agent-library-BjjruHtQ.js +0 -1
  406. package/dist/client/assets/agent-library-file-CNoJ54Ee.js +0 -1
  407. package/dist/client/assets/agent-overview-Dk4XJQcT.js +0 -1
  408. package/dist/client/assets/agent-settings-CC2rPZBi.js +0 -1
  409. package/dist/client/assets/agent-site-editor-code-BvrpoBJL.js +0 -2
  410. package/dist/client/assets/agent-site-editor-content-QmRWPMOR.js +0 -1
  411. package/dist/client/assets/agent-site-editor-preview-CKHTHvrW.js +0 -1
  412. package/dist/client/assets/agent-view-BBdmo6o1.js +0 -1
  413. package/dist/client/assets/api-keys-BvVFCute.js +0 -1
  414. package/dist/client/assets/app-editor-D6TvV1oi.js +0 -1
  415. package/dist/client/assets/category-editor-P8EZIJ92.js +0 -1
  416. package/dist/client/assets/content-tab-Cx-DPILX.js +0 -19
  417. package/dist/client/assets/library-B-HyC9ob.js +0 -1
  418. package/dist/client/assets/post-editor-Dpy18Hkp.js +0 -2
  419. package/dist/client/assets/preview-tab-qmFbN81d.js +0 -557
  420. package/dist/client/assets/project-reports-D8A_7LbK.js +0 -1
  421. package/dist/client/assets/project-tasks-CtIWIKHg.js +0 -1
  422. package/dist/client/assets/record-editor-CdqMsRzX.js +0 -1
  423. package/dist/client/assets/reports-BMsIz_tG.js +0 -1
  424. package/dist/client/assets/repositories-DkJSjoVA.js +0 -1
  425. package/dist/client/assets/route-ByacllZq.js +0 -1
  426. package/dist/client/assets/sections-editor-CueAfisQ.js +0 -1
  427. package/dist/client/assets/settings-tab-DGbxLWDH.js +0 -1
  428. package/dist/client/assets/site-editor-DVxTBxx-.js +0 -1
  429. package/dist/client/assets/tasks-BJyP5v8a.js +0 -1
  430. package/dist/client/assets/use-ask-in-chat-Bq_Pbquv.js +0 -1
  431. package/dist/client/assets/use-blocks-v8-project-BB5VrS43.js +0 -1
  432. package/dist/client/assets/use-blog-view-Cxdj4uSu.js +0 -1
  433. package/dist/client/assets/use-never-published-0j7xzTQG.js +0 -1
  434. package/dist/client/assets/useInfiniteQuery-K8oCvn2v.js +0 -1
  435. package/dist/client/assets/useSuspenseInfiniteQuery-D5Kn6VyM.js +0 -1
@@ -1 +1 @@
1
- import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-D4zAZEeh.js";import{L as v}from"./legacy-main-redirect-Djk4-r9-.js";import"./thread-route-DotOHAlX.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
1
+ import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-BRgWMc-5.js";import{L as v}from"./legacy-main-redirect-D850qNA8.js";import"./thread-route-C18glt36.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
@@ -1 +1 @@
1
- import{c as f,f as p,av as u,j as s,b5 as x,N as a}from"./index-D4zAZEeh.js";import{C as j}from"./capability-load-error-B3ALNSsg.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,av as u,j as s,b5 as x,N as a}from"./index-BRgWMc-5.js";import{C as j}from"./capability-load-error-LShIU80A.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{e2 as g,e3 as d,e4 as v}from"./index-D4zAZEeh.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{e2 as g,e3 as d,e4 as v}from"./index-BRgWMc-5.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,i2 as de,b as G,i3 as ue,r as le,i4 as xe,i5 as re,gE as T,gT as W,B as J,d_ as V,a7 as pe}from"./index-D4zAZEeh.js";import{i as he}from"./CreditCard01-I11lzZp8.js";import{B as L}from"./badge-CamJsKC8.js";import{M as je}from"./multi-select-v2MphKjq.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-49MR6azA.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-zwIDqi9O.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-Bandx1cs.js";import{T as De}from"./Tooltip-CpE-GuZ-.js";import{a as _e,A as Me}from"./AreaChart-B2pMCC5D.js";import{c2 as Re}from"./CategoricalChart-W2F9o7wJ.js";import{R as Le}from"./require-capability-DnyEZ3xe.js";import"./checkbox-DfLNNBpA.js";import"./Minus-CPSsigVU.js";import"./ChevronDown-L1RduSWg.js";import"./command-C5c9xxo6.js";import"./index-CO_aaGMC.js";import"./SearchMd-lJZx4ys3.js";import"./popover-DKQLETgP.js";import"./index-BdQq_4o_.js";import"./index-D07va7UH.js";import"./ChevronUp-hn_BcMX-.js";import"./index-Dgf1S0ZI.js";import"./access-gate-CJyV2IQK.js";import"./capability-load-error-B3ALNSsg.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 Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{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(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{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=Z(u,"pageviews"),se=K>0?Z(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(Ge,{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 Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),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=G();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=G(),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,i2 as de,b as G,i3 as ue,r as le,i4 as xe,i5 as re,gE as T,gT as W,B as J,d_ as V,a7 as pe}from"./index-BRgWMc-5.js";import{i as he}from"./CreditCard01-BLkqiDJW.js";import{B as L}from"./badge-Ba_DCLD5.js";import{M as je}from"./multi-select-8e4MeokI.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-B282Slsg.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-C9du40XO.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-DuA35Ksh.js";import{T as De}from"./Tooltip-CwwzGu8p.js";import{a as _e,A as Me}from"./AreaChart-CNSKfZ8O.js";import{c2 as Re}from"./CategoricalChart-cy5wvzih.js";import{R as Le}from"./require-capability-58lj_sLx.js";import"./checkbox-yHZpOTt9.js";import"./Minus-DoUm1n95.js";import"./ChevronDown-CGJhfuSb.js";import"./command-Dg1M4JCf.js";import"./index-BiVCuU3V.js";import"./SearchMd-BlPJmXQo.js";import"./popover-DGvrj6fy.js";import"./index-BdQq_4o_.js";import"./index-3k_nlNc7.js";import"./ChevronUp-BO9DemUb.js";import"./index-779PVYGV.js";import"./access-gate-BcSivdgh.js";import"./capability-load-error-LShIU80A.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 Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{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(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{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=Z(u,"pageviews"),se=K>0?Z(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(Ge,{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 Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),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=G();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=G(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function Bt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{Bt as default};
@@ -1 +1 @@
1
- import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gj as ue,gk as re,gl as z,m as Se}from"./index-D4zAZEeh.js";import{S as de,s as _e}from"./suggestion-CL--hguC.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,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-BiXE7t-o.js";import{aK as Oe}from"./agent-icon-CBIv-AL5.js";import"./chat-context-kuwat9Zp.js";import{m as Ue,i as $e,b as Ke}from"./index-BI2o-nvw.js";import{u as me}from"./use-mcp-client-DWGLQdXd.js";import{u as qe}from"./repository-binding-n3PcTj5W.js";import{g as se,a as fe}from"./gateway-client-DGLOUuHv.js";import{l as oe,g as pe}from"./use-mcp-prompts-BEtNL37X.js";import{f as ze,b as Be}from"./use-org-fs-D389k80k.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,j)=>l.current(S,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const j of _){const I=j.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&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 _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=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]!==j||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:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,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 v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(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),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.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})},j=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(!ve(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)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.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 St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("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]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,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]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};
1
+ import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gj as ue,gk as re,gl as z,m as Se}from"./index-BRgWMc-5.js";import{S as de,s as _e}from"./suggestion-DWkqugbN.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,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-DyR6Kq74.js";import{aK as Oe}from"./agent-icon-DFyNTmmD.js";import"./chat-context-ZeSpVj2j.js";import{m as Ue,i as $e,b as Ke}from"./index-0S6WDYoC.js";import{u as me}from"./use-mcp-client-OYKYr7Zc.js";import{u as qe}from"./repository-binding-Drae9jEJ.js";import{g as se,a as fe}from"./gateway-client-BVWghiMF.js";import{l as oe,g as pe}from"./use-mcp-prompts-XeLNsblN.js";import{f as ze,b as Be}from"./use-org-fs-Dj5ea7Pp.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,j)=>l.current(S,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const j of _){const I=j.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&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 _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=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]!==j||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:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,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 v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(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),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.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})},j=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(!ve(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)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.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 St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("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]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,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]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};