decocms 4.503.4 → 4.503.6

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 (377) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-B5q2Fpj9.js → ActiveShapeUtils-CZHZIqkc.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-DNYRiSZ5.js → AlertCircle-pSqAP7nV.js} +1 -1
  3. package/dist/client/assets/{AreaChart-BTuXJM5s.js → AreaChart-0ul94rHa.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BPRTZJKi.js → ArrowLeft-Zpzd8j3V.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-ZHJFpRuE.js → ArrowUp-C9uNUjy8.js} +1 -1
  6. package/dist/client/assets/{BarChart-Bezom8e_.js → BarChart-Ctr2ePGA.js} +1 -1
  7. package/dist/client/assets/{Building02-BpZfnUaY.js → Building02-Bt9vvXn_.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-Uo4Rj6g_.js → CategoricalChart-wXdmL4_t.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DOJo5D8E.js → CheckCircle-ChGw78H1.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-BjGO6IDu.js → ChevronSelectorVertical-BNGaFIcE.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-85QiHbB8.js → ChevronUp-Dj_P2ejE.js} +1 -1
  12. package/dist/client/assets/{Copy01-DHwdjF9k.js → Copy01-Bp_jaXps.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BMScCkLO.js → CreditCard01-BdWDl1Mp.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-XGcmOLtN.js → DotsVertical-BEAb8YoE.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-1_vc7VhI.js → ErrorBarContext-NEtQ4MVP.js} +1 -1
  16. package/dist/client/assets/{Globe04-BJ3qfVTm.js → Globe04-h6TM0z15.js} +1 -1
  17. package/dist/client/assets/{Image01-DA50Hqzp.js → Image01-BECWrdoe.js} +1 -1
  18. package/dist/client/assets/{Key01-GJDDXAJz.js → Key01-CoMPiVri.js} +1 -1
  19. package/dist/client/assets/{Link01-DITYAShx.js → Link01-Ny6DvMo4.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-DqJqD91d.js → LinkBroken01-M2tJMfDF.js} +1 -1
  21. package/dist/client/assets/{Monitor01-CDHoaa0R.js → Monitor01-PmSy5UI8.js} +1 -1
  22. package/dist/client/assets/{Play-YAp6V4vH.js → Play-bI1AHJhu.js} +1 -1
  23. package/dist/client/assets/{Plus-CPrlnOw7.js → Plus-CT_gNsZf.js} +1 -1
  24. package/dist/client/assets/{SearchMd-vuCQLB6T.js → SearchMd-BnxkTIHs.js} +1 -1
  25. package/dist/client/assets/{Sector-Ch82gOyF.js → Sector-Z1Fbzeul.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-C5bgz2eY.js → ShoppingBag01-BUuo_iLo.js} +1 -1
  27. package/dist/client/assets/{Sun-BVt8ND9g.js → Sun-DK1e-LTP.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-BmNVXOBy.js → SwitchHorizontal01-B_fkfX6f.js} +1 -1
  29. package/dist/client/assets/{Tool01-D30btgv0.js → Tool01-BN0vu6DY.js} +1 -1
  30. package/dist/client/assets/{Trash01-CuDfbX9_.js → Trash01-B3Y_TEyV.js} +1 -1
  31. package/dist/client/assets/{Upload01-Bbz_T9k9.js → Upload01-CysZqaq1.js} +1 -1
  32. package/dist/client/assets/{User01-DkehSUca.js → User01-CPiFYda6.js} +1 -1
  33. package/dist/client/assets/{UserSquare-CkJD4oxT.js → UserSquare-CjOwLO6f.js} +1 -1
  34. package/dist/client/assets/{Users01-Bx_TIoWb.js → Users01-JmhLuid8.js} +1 -1
  35. package/dist/client/assets/{XAxis-BuYm-sWK.js → XAxis-h93sER6K.js} +1 -1
  36. package/dist/client/assets/{XClose-jBQRwEAI.js → XClose-C7PQmwKr.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-CpX8NTBd.js → ZoomOut-COswgut3.js} +1 -1
  38. package/dist/client/assets/{access-gate-tig-XyXk.js → access-gate-7UV7W0BB.js} +1 -1
  39. package/dist/client/assets/{add-connection-dialog-bxfInPMj.js → add-connection-dialog-BPJnzsyx.js} +1 -1
  40. package/dist/client/assets/{agent-analytics-B-N286Uf.js → agent-analytics-BBQJ2R__.js} +1 -1
  41. package/dist/client/assets/agent-app-s3yVmzA6.js +1 -0
  42. package/dist/client/assets/{agent-assets-Cgi1ormd.js → agent-assets-tnz59afB.js} +1 -1
  43. package/dist/client/assets/{agent-automation-Bc_Pzkf9.js → agent-automation-1r3UbPYV.js} +1 -1
  44. package/dist/client/assets/{agent-automations-ZrkdxSWn.js → agent-automations-BDJrqTIK.js} +1 -1
  45. package/dist/client/assets/{agent-connect-sources-DqHqfSqs.js → agent-connect-sources-CX53aacs.js} +1 -1
  46. package/dist/client/assets/agent-deck-lL9Oi5aL.js +1 -0
  47. package/dist/client/assets/{agent-e2e-BDGDGL0J.js → agent-e2e-D8usRuRM.js} +1 -1
  48. package/dist/client/assets/{agent-experiments-CSJXs5ck.js → agent-experiments-BvVbUYzi.js} +1 -1
  49. package/dist/client/assets/{agent-file-B4y2baGc.js → agent-file-CoJmmbsI.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-HBYg130L.js → agent-hosting-CBx5WkMs.js} +1 -1
  51. package/dist/client/assets/{agent-icon-C1V6kO6k.js → agent-icon-6hwcST3v.js} +1 -1
  52. package/dist/client/assets/agent-library-file-DRwu6MfF.js +1 -0
  53. package/dist/client/assets/agent-library-vdLH_HVw.js +1 -0
  54. package/dist/client/assets/{agent-monitor-C2b2Y_Y1.js → agent-monitor-Cc39w74F.js} +1 -1
  55. package/dist/client/assets/{agent-overview-CsnhRf0H.js → agent-overview-ErpQ4-fm.js} +1 -1
  56. package/dist/client/assets/{agent-releases-DRgXlmeB.js → agent-releases-C6OzbpkY.js} +1 -1
  57. package/dist/client/assets/agent-settings-Cg6VtmXX.js +1 -0
  58. package/dist/client/assets/{agent-site-editor-DsdBJNL9.js → agent-site-editor-DOKjMahh.js} +1 -1
  59. package/dist/client/assets/agent-site-editor-code-C7-U3YdZ.js +2 -0
  60. package/dist/client/assets/agent-site-editor-content-W76P7g-b.js +1 -0
  61. package/dist/client/assets/agent-site-editor-preview-DL26iH-D.js +1 -0
  62. package/dist/client/assets/agent-view-DL0QwaH9.js +1 -0
  63. package/dist/client/assets/{agent-view-guard-Km-JyuT6.js → agent-view-guard-DR7c58SK.js} +1 -1
  64. package/dist/client/assets/{agents-list-BanY1y62.js → agents-list-CAZTAr7r.js} +1 -1
  65. package/dist/client/assets/{ai-providers-BQ1fiNa3.js → ai-providers-DmDQt35A.js} +1 -1
  66. package/dist/client/assets/{alert-CwC4mTxQ.js → alert-ClNLfvDL.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-DmhXDwQf.js → alert-dialog-DZjJh3qf.js} +1 -1
  68. package/dist/client/assets/{analytics-sections-BVE76D5N.js → analytics-sections-ql8jWmgI.js} +1 -1
  69. package/dist/client/assets/api-keys-BBKPHIWc.js +1 -0
  70. package/dist/client/assets/{api-keys-MPhXPzmG.js → api-keys-BijSAB8N.js} +1 -1
  71. package/dist/client/assets/{app-editor-Hif319cO.js → app-editor-5oJI43tU.js} +1 -1
  72. package/dist/client/assets/{asset-utils-CU6xrAQD.js → asset-utils-DcAZz-OV.js} +1 -1
  73. package/dist/client/assets/{auth-catchall-DHUJeHRe.js → auth-catchall-BGx6qrCb.js} +1 -1
  74. package/dist/client/assets/{auth-entry-D7U4AjUc.js → auth-entry-CBLINdfm.js} +1 -1
  75. package/dist/client/assets/{auth-split-layout-BwhoO-JF.js → auth-split-layout-DHx33X6O.js} +1 -1
  76. package/dist/client/assets/{auth-BfGJq755.js → auth-sylqu40r.js} +1 -1
  77. package/dist/client/assets/{authenticate-and-persist-oauth-Brcij0L8.js → authenticate-and-persist-oauth-C_KBeDaP.js} +1 -1
  78. package/dist/client/assets/{automation-list-row-DhqnXrm1.js → automation-list-row-Cghx039x.js} +1 -1
  79. package/dist/client/assets/{automation-runs-CFyZ7Iod.js → automation-runs-Di9U4Nq6.js} +1 -1
  80. package/dist/client/assets/{automations-CPaO2SBr.js → automations-_DjcjoXA.js} +1 -1
  81. package/dist/client/assets/{autosend-BOeZuHqU.js → autosend-Br-ivrcu.js} +1 -1
  82. package/dist/client/assets/{avatar-GhiWKw1r.js → avatar-C70LNbg3.js} +1 -1
  83. package/dist/client/assets/{badge-ZAtAF3u1.js → badge-abt8fwV5.js} +1 -1
  84. package/dist/client/assets/{block-document-BFsYEKLL.js → block-document-D45kZQXs.js} +1 -1
  85. package/dist/client/assets/{blocks-preview-workspace-context-x6dOFQvJ.js → blocks-preview-workspace-context-mp2YPP7g.js} +1 -1
  86. package/dist/client/assets/{blocks-tab-states-iEAVPlIx.js → blocks-tab-states-DBT1YslM.js} +3 -3
  87. package/dist/client/assets/{blog-schema-ctDuKA_t.js → blog-schema-u7Q3nYyN.js} +1 -1
  88. package/dist/client/assets/{board-analytics-DvMyzeTp.js → board-analytics-DrgCTWko.js} +1 -1
  89. package/dist/client/assets/{buckets-CgmF5YK1.js → buckets-26I-xc0I.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-C3V-cifS.js → build-improve-prompt-doc-CJpPK8-L.js} +1 -1
  91. package/dist/client/assets/{calendar-DCNv43ZU.js → calendar-eGNDQHPW.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-BwwdyiCX.js → capability-load-error-DTZk9b6C.js} +1 -1
  93. package/dist/client/assets/{category-editor-C1SS3xs8.js → category-editor-BcCD6x04.js} +1 -1
  94. package/dist/client/assets/{chart-C2XR0VWr.js → chart-BhHXveBS.js} +1 -1
  95. package/dist/client/assets/{chat-context-B8EIbmvQ.js → chat-context-DyVagSZV.js} +1 -1
  96. package/dist/client/assets/{chat-draft-qnxtVEVH.js → chat-draft-BcgHVPI2.js} +1 -1
  97. package/dist/client/assets/{checkbox-C7CPIIbh.js → checkbox-D09gDPB_.js} +1 -1
  98. package/dist/client/assets/{choose-editor-C5zdSB58.js → choose-editor-CyjF0LZb.js} +1 -1
  99. package/dist/client/assets/{cli-auth-success-DTXn6lOO.js → cli-auth-success-mi9t-tYN.js} +1 -1
  100. package/dist/client/assets/{client-icons-TMNg5z-u.js → client-icons-D4bVV5hm.js} +1 -1
  101. package/dist/client/assets/cms-settings-editor-B6xNfEF5.js +1 -0
  102. package/dist/client/assets/{collapsible-CVaRDj_D.js → collapsible-B2Ux2Qo8.js} +1 -1
  103. package/dist/client/assets/{collection-detail-BR9DK1c7.js → collection-detail-CzQFffon.js} +1 -1
  104. package/dist/client/assets/{collection-display-button-ehG7rKuY.js → collection-display-button-Dy1Yhj4q.js} +1 -1
  105. package/dist/client/assets/{collection-search-DOoRymFZ.js → collection-search-y-eFh32_.js} +1 -1
  106. package/dist/client/assets/{collection-table-wrapper-zN3HZXSF.js → collection-table-wrapper-XlSx1_ny.js} +1 -1
  107. package/dist/client/assets/{collection-tabs-DLtCCrSF.js → collection-tabs-DOqwRJxO.js} +1 -1
  108. package/dist/client/assets/{column-rules-Du1x2YcT.js → column-rules-DvArcHZy.js} +1 -1
  109. package/dist/client/assets/{combobox-DlHUORRR.js → combobox-Bkf8S2n8.js} +1 -1
  110. package/dist/client/assets/{command-_UmLRidn.js → command-DcZcc2yc.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-joijt_6l.js → companion-mcps-section-BX9wlGrn.js} +1 -1
  112. package/dist/client/assets/{config-Cx-JIPqO.js → config-Dl7cazIC.js} +1 -1
  113. package/dist/client/assets/{connect-DoSLTcjV.js → connect-DD6LKAI_.js} +1 -1
  114. package/dist/client/assets/{connect-layout-Bm_59z-Y.js → connect-layout-DpOUpvIq.js} +1 -1
  115. package/dist/client/assets/{connection-DL3AzTOs.js → connection-DCtpUb4a.js} +1 -1
  116. package/dist/client/assets/{connection-card-Dvq8DJhG.js → connection-card-CTQBUTMX.js} +1 -1
  117. package/dist/client/assets/{connection-detail-DqoTA2Jx.js → connection-detail-DfPgHMN1.js} +1 -1
  118. package/dist/client/assets/{connection-form-helpers-D9j_N0x7.js → connection-form-helpers-Dp0AEpjh.js} +1 -1
  119. package/dist/client/assets/{connections-CcmlL0dN.js → connections-D67blbhP.js} +1 -1
  120. package/dist/client/assets/{content-tab-63E-NyaC.js → content-tab-DdWNIwqI.js} +3 -3
  121. package/dist/client/assets/{context-menu-BxD8Qoq9.js → context-menu-BAdbBlpg.js} +1 -1
  122. package/dist/client/assets/{context-DQMyTLF9.js → context-nAS6kT1e.js} +1 -1
  123. package/dist/client/assets/{core.esm-5rgifJ6w.js → core.esm-FgcQ5v9Y.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-DKnw552E.js → create-organization-dialog-Cg4R-dwK.js} +1 -1
  125. package/dist/client/assets/{daily-pulse-BLN6tqFf.js → daily-pulse-C3dg08Zf.js} +1 -1
  126. package/dist/client/assets/{discover-C69w99TN.js → discover-BOXDNz9y.js} +1 -1
  127. package/dist/client/assets/{domain-settings-z0KMryJJ.js → domain-settings-CSfPkzMv.js} +1 -1
  128. package/dist/client/assets/{drawer-Cwq-E8vz.js → drawer-DTikCqse.js} +1 -1
  129. package/dist/client/assets/{editor-classes-BOlaxHer.js → editor-classes-JJWT4Kx4.js} +1 -1
  130. package/dist/client/assets/{editor-YT1hAWJG.js → editor-pYukjRxn.js} +1 -1
  131. package/dist/client/assets/{empty-state-COxR0UdU.js → empty-state-5EIlUU8h.js} +1 -1
  132. package/dist/client/assets/{empty-state-bIFMElEe.js → empty-state-P_9e2QC2.js} +1 -1
  133. package/dist/client/assets/{extract-connection-data-BOqucuID.js → extract-connection-data-DTFCgQce.js} +1 -1
  134. package/dist/client/assets/{feature-gate-zfN6jjr4.js → feature-gate-g52_goDK.js} +1 -1
  135. package/dist/client/assets/{feature-paywall-DOf-RXxD.js → feature-paywall-Cao0iqgb.js} +1 -1
  136. package/dist/client/assets/{file-explorer-CflV7iiA.js → file-explorer-C6JjNHvK.js} +1 -1
  137. package/dist/client/assets/{file-preview-BPog6jkH.js → file-preview-LKj-iKZI.js} +1 -1
  138. package/dist/client/assets/{file-share-button-DwxdVjUj.js → file-share-button-DGYatb8h.js} +1 -1
  139. package/dist/client/assets/{file-type-icon-fTBob-KS.js → file-type-icon-CRQDeOia.js} +1 -1
  140. package/dist/client/assets/flat-project-B7y51Lxz.js +1 -0
  141. package/dist/client/assets/{folder-icon-hdUwkBM6.js → folder-icon-BIjFBhOD.js} +1 -1
  142. package/dist/client/assets/{form-mnUTUUgy.js → form-DDFXVBYh.js} +1 -1
  143. package/dist/client/assets/{general-CgQXqxtP.js → general-CRrv7Af_.js} +1 -1
  144. package/dist/client/assets/{home-CV9BF9nv.js → home-CMV9WYSl.js} +1 -1
  145. package/dist/client/assets/{hosted-publish-feedback-B7Lxlu-b.js → hosted-publish-feedback-x961HTwY.js} +1 -1
  146. package/dist/client/assets/{icon-button-Bt7uHWxC.js → icon-button-DMdPv4af.js} +1 -1
  147. package/dist/client/assets/{index-CVgtqYMj.js → index-BCWNsF_F.js} +1 -1
  148. package/dist/client/assets/{index-0NedKVmw.js → index-BhBARWwc.js} +1 -1
  149. package/dist/client/assets/{index-DIb14xIW.js → index-BvfFsp0R.js} +3 -3
  150. package/dist/client/assets/{index-CdyBZ-dj.js → index-C2TGytiX.js} +1 -1
  151. package/dist/client/assets/{index-B7MMDJJ7.js → index-C5euUKb-.js} +1 -1
  152. package/dist/client/assets/{index-DYj9xST9.js → index-C5v9ed-Y.js} +1 -1
  153. package/dist/client/assets/{index-Bt_WPZSk.js → index-CCiEbwpU.js} +1 -1
  154. package/dist/client/assets/{index-B0o9NkGp.js → index-CD7dkkiu.js} +1 -1
  155. package/dist/client/assets/{index-CaAWsuiJ.js → index-CIBRZeVK.js} +1 -1
  156. package/dist/client/assets/{index-9SoDq1r6.js → index-CIGT4h9O.js} +1 -1
  157. package/dist/client/assets/{index-BwRxHLj2.js → index-CxMbbAQv.js} +1 -1
  158. package/dist/client/assets/{index-C_vMO742.js → index-DZGFC-EY.js} +1 -1
  159. package/dist/client/assets/{index-C2F2YRTL.js → index-DdL99Xlt.js} +1 -1
  160. package/dist/client/assets/{index-Bo2QXn8j.js → index-GTTlket6.js} +1 -1
  161. package/dist/client/assets/{index-Bu9BjZrq.js → index-nyu5TMcf.js} +2 -2
  162. package/dist/client/assets/{index-redirect-BUSEAkWr.js → index-redirect-o2Vr69lV.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-Cgqjyb2j.js → infiniteQueryObserver-B0LBSbEu.js} +1 -1
  164. package/dist/client/assets/{infra-billing-Dmuw8KU-.js → infra-billing-7APXCKyg.js} +1 -1
  165. package/dist/client/assets/{input-CEeDInNj.js → input-DCMWeMyD.js} +3 -3
  166. package/dist/client/assets/{input-GO29c19t.js → input-DtR5Rv1p.js} +1 -1
  167. package/dist/client/assets/{integration-icon-D0zNx-RJ.js → integration-icon-DU2_vznq.js} +1 -1
  168. package/dist/client/assets/{jira-icon-DvLH7QI5.js → jira-icon-CWwDOjFq.js} +1 -1
  169. package/dist/client/assets/{label-BqTE8eVe.js → label-BzK3hK82.js} +1 -1
  170. package/dist/client/assets/{layout-DpqY7e7r.js → layout-gGZaXiZ-.js} +1 -1
  171. package/dist/client/assets/{legacy-agents-deep-XW7PcOvc.js → legacy-agents-deep-DHVaIBtO.js} +1 -1
  172. package/dist/client/assets/{legacy-main-redirect-BlcRg6jU.js → legacy-main-redirect-FcDnQ9Mm.js} +1 -1
  173. package/dist/client/assets/library-BPLq8Dpb.js +1 -0
  174. package/dist/client/assets/{library-tab-DX4N_54U.js → library-tab-C-fyOzdB.js} +1 -1
  175. package/dist/client/assets/{login-D_5_-2-7.js → login-BFtM4YpZ.js} +1 -1
  176. package/dist/client/assets/{markdown-Wx3jaxrX.js → markdown-BG_3O2EV.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-CIdjohnw.js → mcp-app-renderer-dFKqdG58.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-BqOO-7HR.js → mcp-oauth-ClcG85TU.js} +1 -1
  179. package/dist/client/assets/{mcp-oauth-CP7f2bqu.js → mcp-oauth-zyX-M-Oq.js} +1 -1
  180. package/dist/client/assets/{members-CWfNsRhJ.js → members-C9yegDS4.js} +1 -1
  181. package/dist/client/assets/{memory-CBEItIQh.js → memory-CIj5OowP.js} +1 -1
  182. package/dist/client/assets/{mini-report-page-BUjMh7u3.js → mini-report-page-BXSiwAhW.js} +1 -1
  183. package/dist/client/assets/{mock-board-Ci5UecWv.js → mock-board-3R1NuGCS.js} +1 -1
  184. package/dist/client/assets/{monaco-editor-uL7EgDLV.js → monaco-editor-CMKFyXYz.js} +1 -1
  185. package/dist/client/assets/{monitoring-stats-row-CTBvl4CT.js → monitoring-stats-row-tamOSnxl.js} +1 -1
  186. package/dist/client/assets/{multi-select-Dsayixmw.js → multi-select-DhjJpptu.js} +1 -1
  187. package/dist/client/assets/{mustache-CdAmmkEb.js → mustache-DyEk8g4U.js} +1 -1
  188. package/dist/client/assets/{new-project-dialog-C2CawYle.js → new-project-dialog-BAy3JFO_.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-Cr6Mkw-S.js → oauth-callback-BU7EvdNh.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-ai-provider-3XAXL_LG.js → oauth-callback-ai-provider-vtCME4db.js} +1 -1
  191. package/dist/client/assets/{onboarding-Cr8prmNS.js → onboarding-DTeZDi74.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-CqdQkpbG.js → openai-conversation-dMpKrlIz.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-CqtTgCjK.js → optimistic-project-sidebar-views-CsLNmroJ.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-xXzJoCon.js → order-monitor-day-BeogjpmD.js} +1 -1
  195. package/dist/client/assets/{organization-choice-ysHevYPz.js → organization-choice-C5kob2a7.js} +1 -1
  196. package/dist/client/assets/{orgs-DdXSSyy_.js → orgs-Bn9fR-f2.js} +1 -1
  197. package/dist/client/assets/{page-seo-form--GeHG2Y7.js → page-seo-form-DqF_sU74.js} +1 -1
  198. package/dist/client/assets/{pair-BRzx8V28.js → pair-DNyUd97Z.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-DEcsqAHq.js → plan-ladder-B-jsbFUc.js} +1 -1
  200. package/dist/client/assets/{popover-DBhjt7xF.js → popover-DKuS7rj_.js} +1 -1
  201. package/dist/client/assets/{post-calendar-BBgMihhC.js → post-calendar-D7AfUXDz.js} +1 -1
  202. package/dist/client/assets/{post-editor-D6Q9G6HD.js → post-editor-BUSJVuOv.js} +1 -1
  203. package/dist/client/assets/{preview-content-B8gytc3A.js → preview-content-C1fg8Rkj.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-Du8s313b.js → preview-dialog-jm_sgvCP.js} +1 -1
  205. package/dist/client/assets/{preview-panel-lv7hIcbh.js → preview-panel-ByLxd2-v.js} +1 -1
  206. package/dist/client/assets/{preview-tab-OUmlHA2w.js → preview-tab-Hc8_YOlH.js} +3 -3
  207. package/dist/client/assets/{product-picker-dialog-Vi9M9XbY.js → product-picker-dialog-ikr9nEPC.js} +1 -1
  208. package/dist/client/assets/{profile-rjLUYrke.js → profile-B0Xgeesm.js} +1 -1
  209. package/dist/client/assets/{project-app-view-ChI-tWmY.js → project-app-view-DibjzS_V.js} +1 -1
  210. package/dist/client/assets/{project-feed-DSYFIf9h.js → project-feed-CPxyvMhp.js} +1 -1
  211. package/dist/client/assets/{project-icon-DEfb1G5F.js → project-icon-BNPkSSIB.js} +1 -1
  212. package/dist/client/assets/project-reports-CWeyVrA7.js +1 -0
  213. package/dist/client/assets/project-tasks-C57dLaKN.js +1 -0
  214. package/dist/client/assets/{projects-empty-state-Cebygjnd.js → projects-empty-state-2UgRmjf_.js} +1 -1
  215. package/dist/client/assets/{projects-CtrF1Zf3.js → projects-vrPkK48A.js} +1 -1
  216. package/dist/client/assets/{prompts-BVXX6Xql.js → prompts-glSWbace.js} +1 -1
  217. package/dist/client/assets/record-editor-BxnpYGe1.js +1 -0
  218. package/dist/client/assets/{redirect-editor-DIAc_1Im.js → redirect-editor-BIbQ4lKD.js} +1 -1
  219. package/dist/client/assets/{reports-Du7byUHW.js → reports-DZUngHxn.js} +1 -1
  220. package/dist/client/assets/reports-fqpbsHhd.js +1 -0
  221. package/dist/client/assets/{reports-onboarding-Ds-Ispiz.js → reports-onboarding-CCsukw7A.js} +1 -1
  222. package/dist/client/assets/{reports-tab-ChePuZZ4.js → reports-tab-CuOGGemm.js} +2 -2
  223. package/dist/client/assets/{repositories-BTxz09bM.js → repositories-B3heut4A.js} +1 -1
  224. package/dist/client/assets/{repository-binding-DTzReh06.js → repository-binding-BUEc0yyC.js} +1 -1
  225. package/dist/client/assets/{repository-import-picker-CUpsn0UU.js → repository-import-picker-DBEvuBp6.js} +1 -1
  226. package/dist/client/assets/{repository-picker-liId9_zf.js → repository-picker-BEZceJiz.js} +1 -1
  227. package/dist/client/assets/{require-capability-CfedINkj.js → require-capability-lTdVHniQ.js} +1 -1
  228. package/dist/client/assets/{required-auth-layout-CZd2SYeJ.js → required-auth-layout-CYJTCHWh.js} +1 -1
  229. package/dist/client/assets/{reset-password-qlKVFcE6.js → reset-password-DWN840sJ.js} +1 -1
  230. package/dist/client/assets/{resizable-D31F4eAS.js → resizable-zIfI7v-h.js} +1 -1
  231. package/dist/client/assets/{resolve-tab-icon-DvCi-XX9.js → resolve-tab-icon-D1idyVau.js} +1 -1
  232. package/dist/client/assets/{review-settings-ZCONB0R7.js → review-settings-DnckGxr-.js} +1 -1
  233. package/dist/client/assets/{roles-C28vWKZO.js → roles-b2U7cPna.js} +1 -1
  234. package/dist/client/assets/{route-BNyTQhdC.js → route-Bbqk4YTs.js} +1 -1
  235. package/dist/client/assets/route-By6FmEOV.js +1 -0
  236. package/dist/client/assets/{route-Jtrcqjic.js → route-DgwYN7CY.js} +1 -1
  237. package/dist/client/assets/{sandbox-lifecycle-context-BSXgRctA.js → sandbox-lifecycle-context--zY9hpPq.js} +1 -1
  238. package/dist/client/assets/{schema-D1LjZYZ_.js → schema-C4QWG9rb.js} +1 -1
  239. package/dist/client/assets/{schema-Bn8rqd_f.js → schema-DTpY3Z4p.js} +1 -1
  240. package/dist/client/assets/{scroll-area-Cvpjc0l0.js → scroll-area-CyM6eRpJ.js} +1 -1
  241. package/dist/client/assets/{search-input-CvytUoQu.js → search-input-DbNQWVkN.js} +1 -1
  242. package/dist/client/assets/{search-toggle-DWczizY_.js → search-toggle-DcH1KdV4.js} +1 -1
  243. package/dist/client/assets/{secret-ciphertext-BOjfqnbQ.js → secret-ciphertext-CToa9K5K.js} +1 -1
  244. package/dist/client/assets/{secret-picker-DR8k8utG.js → secret-picker-oUFzxmQn.js} +1 -1
  245. package/dist/client/assets/{secrets-B26-rytL.js → secrets-flP5dfJS.js} +1 -1
  246. package/dist/client/assets/{sections-editor-DIXfWh89.js → sections-editor-CyjSI0yK.js} +1 -1
  247. package/dist/client/assets/{select-B9xwWJY1.js → select-DIUcSElZ.js} +1 -1
  248. package/dist/client/assets/{select-model-BISIL0Kz.js → select-model-DUCGDCaa.js} +1 -1
  249. package/dist/client/assets/{seo-editor-BlwDgWbu.js → seo-editor-Cd84ocfq.js} +1 -1
  250. package/dist/client/assets/{separator-fhIOQ41X.js → separator-QKwjnGro.js} +1 -1
  251. package/dist/client/assets/{settings-tab-msJQpCfG.js → settings-tab-CHrVfm_h.js} +1 -1
  252. package/dist/client/assets/{sheet-Rjoe19XZ.js → sheet-CKqCPJFh.js} +1 -1
  253. package/dist/client/assets/{shell-layout-fqXaSGsn.js → shell-layout-umzirYqO.js} +1 -1
  254. package/dist/client/assets/site-editor-dnVJU_MN.js +1 -0
  255. package/dist/client/assets/{site-editor-toast-CKw1dZ19.js → site-editor-toast-DQR6XmSw.js} +1 -1
  256. package/dist/client/assets/{skills-C7DkipJu.js → skills-DQVZvqrY.js} +1 -1
  257. package/dist/client/assets/{slider-CHDMj7-G.js → slider-CAkeLbmT.js} +1 -1
  258. package/dist/client/assets/{sortable.esm-Dys0-jaI.js → sortable.esm-BqqbBqQJ.js} +1 -1
  259. package/dist/client/assets/{sso-cg0TfFU1.js → sso-CBzft4Zg.js} +1 -1
  260. package/dist/client/assets/{suggestion-DpmKDRpP.js → suggestion-CRCyDex3.js} +1 -1
  261. package/dist/client/assets/{switch-Dyv9YUWT.js → switch-9BBBlmaJ.js} +1 -1
  262. package/dist/client/assets/{symbol-BK6V8ZzP.js → symbol-BzsygG7E.js} +1 -1
  263. package/dist/client/assets/{synced-repos-DpQU86pc.js → synced-repos-DaBEYy3R.js} +1 -1
  264. package/dist/client/assets/{tab-icon-glyph-KVUtF-xE.js → tab-icon-glyph-CBvj9v3K.js} +1 -1
  265. package/dist/client/assets/{table-9i0Xw8tZ.js → table-AigwUVoI.js} +1 -1
  266. package/dist/client/assets/{tabs-h2gBBRzw.js → tabs-DnuH_x9v.js} +1 -1
  267. package/dist/client/assets/{task-board-AWLuhkrp.js → task-board-ClOSK7kB.js} +1 -1
  268. package/dist/client/assets/{task-route-BfCPNuEb.js → task-route-BV5m50h1.js} +1 -1
  269. package/dist/client/assets/{task-status-C0Jba3Xb.js → task-status-BdGIYuxm.js} +1 -1
  270. package/dist/client/assets/taskboard-analytics-BLupvmpw.js +1 -0
  271. package/dist/client/assets/{tasks-B3wC6JY6.js → tasks-B-2twkZK.js} +1 -1
  272. package/dist/client/assets/tasks-BkiBCYTU.js +1 -0
  273. package/dist/client/assets/{textarea-7aD59y1C.js → textarea-FdXd1c7Z.js} +1 -1
  274. package/dist/client/assets/{thread-analytics-B5RrlZAS.js → thread-analytics-CmEqFpEL.js} +1 -1
  275. package/dist/client/assets/{thread-intent-YA4iB4rg.js → thread-intent-Df5_Y-L1.js} +1 -1
  276. package/dist/client/assets/{thread-route-BgOTv3tU.js → thread-route-CiggfjHs.js} +1 -1
  277. package/dist/client/assets/{thread-route-B90y2Ttt.js → thread-route-Cq57xHlG.js} +1 -1
  278. package/dist/client/assets/{thread-sheet-body-DBmCCiJG.js → thread-sheet-body-BeS9Q6uj.js} +1 -1
  279. package/dist/client/assets/{time-range-picker-CWWLy_3R.js → time-range-picker-BXOLhd_5.js} +1 -1
  280. package/dist/client/assets/{toggle-group-DRNkGgUT.js → toggle-group-DMF-ladf.js} +1 -1
  281. package/dist/client/assets/{tool-namespace-C83WlsNL.js → tool-namespace-BWHod2KF.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-Bt6CBlAy.js → toolbar-icon-button-y1ZX2-oM.js} +1 -1
  283. package/dist/client/assets/{tooltip-Djfj4yvo.js → tooltip-BrFxnH_I.js} +1 -1
  284. package/dist/client/assets/{tooltipContext-B0xkDjO4.js → tooltipContext-HGN2C4ko.js} +1 -1
  285. package/dist/client/assets/{track-aEjANf-j.js → track-gUXLKKjN.js} +1 -1
  286. package/dist/client/assets/{types-DSQN8Y9X.js → types-BNu6sAFK.js} +1 -1
  287. package/dist/client/assets/{url-slug-DNuO5vGK.js → url-slug-B_Sfn9Hx.js} +1 -1
  288. package/dist/client/assets/{usage-stats-BXR_QJg-.js → usage-stats-B8UsAyCY.js} +7 -7
  289. package/dist/client/assets/{use-ai-providers-CS760siL.js → use-ai-providers-CgKk8Bof.js} +1 -1
  290. package/dist/client/assets/{use-app-takeover-BiROkfIG.js → use-app-takeover-BYCuIBOj.js} +1 -1
  291. package/dist/client/assets/{use-automations-C8HNZgvV.js → use-automations-DIYNxvx6.js} +1 -1
  292. package/dist/client/assets/{use-autosave-DiQgKPVz.js → use-autosave-9hbG8Qi7.js} +1 -1
  293. package/dist/client/assets/{use-chat-navigation-CkUks0CI.js → use-chat-navigation-C5uv1W_N.js} +1 -1
  294. package/dist/client/assets/{use-clock-tick-D9Y3YKA4.js → use-clock-tick-Cl0twnOO.js} +1 -1
  295. package/dist/client/assets/{use-connect-companion-Dh2GSI2w.js → use-connect-companion-DM2Zvpum.js} +1 -1
  296. package/dist/client/assets/{use-connection-CYm-Vxmx.js → use-connection-CCoffCKk.js} +1 -1
  297. package/dist/client/assets/{use-copy-C0ICuN7j.js → use-copy-QYBjN8uM.js} +1 -1
  298. package/dist/client/assets/{use-create-virtual-mcp-iJVLGT10.js → use-create-virtual-mcp-BlSdmPtL.js} +1 -1
  299. package/dist/client/assets/{use-date-fns-locale-BEXRTRYo.js → use-date-fns-locale-D-cCk47o.js} +1 -1
  300. package/dist/client/assets/{use-debounced-autosave-Z24y5bHD.js → use-debounced-autosave-DG2Ul815.js} +1 -1
  301. package/dist/client/assets/{use-debounced-value-Tstd89O2.js → use-debounced-value-CIJhzIZa.js} +1 -1
  302. package/dist/client/assets/{use-deco-credits-a2fVSYw4.js → use-deco-credits-Da_8oB_g.js} +1 -1
  303. package/dist/client/assets/{use-decopilot-events-B59p52EB.js → use-decopilot-events-CpcMn2JW.js} +1 -1
  304. package/dist/client/assets/{use-delete-connection-CjcSXnbW.js → use-delete-connection-BcTV-UiO.js} +1 -1
  305. package/dist/client/assets/{use-deployment-admin-gB6Ubqa0.js → use-deployment-admin-BCmXPmhb.js} +1 -1
  306. package/dist/client/assets/{use-ensure-project-folder-DakHhVfG.js → use-ensure-project-folder-UOCA2oKz.js} +1 -1
  307. package/dist/client/assets/{use-fast-preview-draft-url-BElMJQru.js → use-fast-preview-draft-url-BUi_N-gA.js} +1 -1
  308. package/dist/client/assets/{use-file-configs-CMXUzCw9.js → use-file-configs-B2dFftph.js} +1 -1
  309. package/dist/client/assets/{use-infinite-scroll-Bkeb3Emc.js → use-infinite-scroll-DfZNxz6_.js} +1 -1
  310. package/dist/client/assets/{use-join-requests-Bt9kCP2g.js → use-join-requests-c4DkDaH2.js} +1 -1
  311. package/dist/client/assets/{use-main-panel-tabs-DiN00eBp.js → use-main-panel-tabs-BQESAcIb.js} +1 -1
  312. package/dist/client/assets/{use-mcp-auth-status-C8SSMyOQ.js → use-mcp-auth-status-DAoTpaVj.js} +1 -1
  313. package/dist/client/assets/{use-mcp-client-DXWvBBzU.js → use-mcp-client-qpFPI59t.js} +1 -1
  314. package/dist/client/assets/{use-mcp-prompts-D5_raFI0.js → use-mcp-prompts-6BapySt1.js} +1 -1
  315. package/dist/client/assets/{use-mcp-tools-BA7tqEjQ.js → use-mcp-tools-CuRHQgSk.js} +1 -1
  316. package/dist/client/assets/{use-members-CBJHrFbr.js → use-members-x6hiD6J9.js} +1 -1
  317. package/dist/client/assets/{use-mobile-DVlrjJnR.js → use-mobile-DwKYFatX.js} +1 -1
  318. package/dist/client/assets/{use-navigate-to-agent-zweZgwVY.js → use-navigate-to-agent-CQU3CNoo.js} +1 -1
  319. package/dist/client/assets/{use-open-billing-url-CZCPBR61.js → use-open-billing-url-Bir5gU8r.js} +1 -1
  320. package/dist/client/assets/{use-org-auth-client-QUHxqp7u.js → use-org-auth-client-CX6gP2t_.js} +1 -1
  321. package/dist/client/assets/{use-org-fs-ZG2jF1ev.js → use-org-fs-BIFqieAC.js} +1 -1
  322. package/dist/client/assets/{use-org-repo-syncs-BkNHAu91.js → use-org-repo-syncs-ByQNJ_ao.js} +1 -1
  323. package/dist/client/assets/{use-org-sso-BY7vua13.js → use-org-sso-DAy6nZlG.js} +1 -1
  324. package/dist/client/assets/{use-organization-roles-BX0bRQ46.js → use-organization-roles-BA00LlJ2.js} +1 -1
  325. package/dist/client/assets/{use-organization-settings-DrbkHsVi.js → use-organization-settings-Co3AQQQG.js} +1 -1
  326. package/dist/client/assets/{use-panel-navigate-CgLeC7oT.js → use-panel-navigate-CflEUYA8.js} +1 -1
  327. package/dist/client/assets/{use-project-native-view-presence-FuvDcd3j.js → use-project-native-view-presence-DynS3DmZ.js} +1 -1
  328. package/dist/client/assets/{use-project-scope-Mbz61u0U.js → use-project-scope-CwUQ5QwH.js} +1 -1
  329. package/dist/client/assets/{use-recent-apps-ByE0IPMO.js → use-recent-apps-DbfvkNQl.js} +1 -1
  330. package/dist/client/assets/{use-releases-Cn9YGFYD.js → use-releases-B8RuK8i6.js} +1 -1
  331. package/dist/client/assets/{use-reports-diagnostic-CNH6bT_s.js → use-reports-diagnostic-DMwD1wiX.js} +1 -1
  332. package/dist/client/assets/{use-secrets-BdA07xp7.js → use-secrets-11x2wAJE.js} +1 -1
  333. package/dist/client/assets/{use-section-preview-base-BGUJwyF6.js → use-section-preview-base-Bk6ZHXAE.js} +1 -1
  334. package/dist/client/assets/{use-tags-RK2ALcRH.js → use-tags-C7rxIzGG.js} +1 -1
  335. package/dist/client/assets/{use-task-board-analytics-Lm2x_Ld6.js → use-task-board-analytics-bcUHswPE.js} +1 -1
  336. package/dist/client/assets/{use-task-board-events-CwaYpBZ3.js → use-task-board-events-Dz_fBEBD.js} +1 -1
  337. package/dist/client/assets/{use-task-board-item-prs-DuoDCPJm.js → use-task-board-item-prs-BN4D7QH_.js} +1 -1
  338. package/dist/client/assets/{use-task-board-items-C9iR5m8M.js → use-task-board-items-D6D2spcR.js} +1 -1
  339. package/dist/client/assets/{use-task-metadata-BOySMSW9.js → use-task-metadata-Dtac_1QR.js} +1 -1
  340. package/dist/client/assets/{use-thread-analytics-B-6hcr7K.js → use-thread-analytics-BhWoc5BJ.js} +1 -1
  341. package/dist/client/assets/{use-thread-outputs-Bnh-FZdC.js → use-thread-outputs-EnAjmWyX.js} +1 -1
  342. package/dist/client/assets/useInfiniteQuery-D7nQ3Wng.js +1 -0
  343. package/dist/client/assets/{useQueries-BWCAInNJ.js → useQueries-Du_HM8Yq.js} +1 -1
  344. package/dist/client/assets/useSuspenseInfiniteQuery-DTBri9dP.js +1 -0
  345. package/dist/client/assets/{users-BSQM-sro.js → users-T8fXbFXn.js} +1 -1
  346. package/dist/client/assets/{utils-aJ0jY1W-.js → utils-Csekt-G0.js} +1 -1
  347. package/dist/client/assets/{variant-calendar-CHK_OU2h.js → variant-calendar-OiHQ7Mir.js} +1 -1
  348. package/dist/client/assets/{variant-draft-pointer-1dv3zT6b.js → variant-draft-pointer-DSxIlPsH.js} +1 -1
  349. package/dist/client/assets/{view-mode-toggle-C14-toNe.js → view-mode-toggle-5n_MoR8B.js} +1 -1
  350. package/dist/client/assets/{virtual-mcp-QuhvrKMt.js → virtual-mcp-D75OnL61.js} +1 -1
  351. package/dist/client/assets/{watch-sse-pool-CWMRkqIp.js → watch-sse-pool-BBHGP3-G.js} +1 -1
  352. package/dist/client/index.html +1 -1
  353. package/dist/server/server.js +388 -388
  354. package/package.json +1 -1
  355. package/dist/client/assets/agent-app-6dfYkztJ.js +0 -1
  356. package/dist/client/assets/agent-deck-B3gVo2Qj.js +0 -1
  357. package/dist/client/assets/agent-library-CrxCYORH.js +0 -1
  358. package/dist/client/assets/agent-library-file-DAsbJq5U.js +0 -1
  359. package/dist/client/assets/agent-settings-BZ88TB1O.js +0 -1
  360. package/dist/client/assets/agent-site-editor-code-Df5lx3om.js +0 -2
  361. package/dist/client/assets/agent-site-editor-content-BOiOZFoZ.js +0 -1
  362. package/dist/client/assets/agent-site-editor-preview-DO0UOaFC.js +0 -1
  363. package/dist/client/assets/agent-view-BgXKt_Jw.js +0 -1
  364. package/dist/client/assets/api-keys-Br0s22Rf.js +0 -1
  365. package/dist/client/assets/cms-settings-editor-CK28ljtG.js +0 -1
  366. package/dist/client/assets/flat-project-D1WKpn7D.js +0 -1
  367. package/dist/client/assets/library-BCn7yrRw.js +0 -1
  368. package/dist/client/assets/project-reports-CSI1uE8Z.js +0 -1
  369. package/dist/client/assets/project-tasks-DxRsaOWu.js +0 -1
  370. package/dist/client/assets/record-editor-CCo2C6Wx.js +0 -1
  371. package/dist/client/assets/reports-MoZoLp_a.js +0 -1
  372. package/dist/client/assets/route-dcUraDhg.js +0 -1
  373. package/dist/client/assets/site-editor-DZgKAtXf.js +0 -1
  374. package/dist/client/assets/taskboard-analytics-DOVTfSds.js +0 -1
  375. package/dist/client/assets/tasks-DhO2f9o0.js +0 -1
  376. package/dist/client/assets/useInfiniteQuery-9rJQjSuN.js +0 -1
  377. package/dist/client/assets/useSuspenseInfiniteQuery-xLkb2FEg.js +0 -1
@@ -1 +1 @@
1
- import{ey as O,aL as U,c as P,j as r,r as G,H as ee,b as F,B as K,a2 as te,K as Q,o as se,l as ne}from"./index-Bu9BjZrq.js";import{u as re}from"./useSuspenseInfiniteQuery-xLkb2FEg.js";import{S as ae,c as ie}from"./sheet-Rjoe19XZ.js";import{A as le}from"./avatar-GhiWKw1r.js";import{n as oe,t as ce}from"./ChevronUp-85QiHbB8.js";import{n as W}from"./LinkBroken01-DqJqD91d.js";import{u as ue,M as de}from"./pair-BRzx8V28.js";import{D as me}from"./chat-context-B8EIbmvQ.js";import{I as Y}from"./integration-icon-D0zNx-RJ.js";import{b as fe}from"./use-decopilot-events-B59p52EB.js";import{u as xe}from"./use-infinite-scroll-Bkeb3Emc.js";import{g as ge}from"./task-status-C0Jba3Xb.js";const z=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function qe(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return z.find(i=>i.ms>=s)?.label??z[z.length-1].label}function H(t){const e=z.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return H(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function q(t,e){const s=H(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function Oe(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Ue(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ge(t,e,s){const n=H(s),i=q(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[q(new Date(c.timestamp),s).getTime(),c])),u=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();u.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return u}function Qe(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,d)=>d[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),u=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const d=o.virtualMcpId??"";u.set(d,(u.get(d)??0)+o[e]),c.set(`${d}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...u.entries()].sort((o,d)=>d[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const d of l){const x=c.get(`${o}::${d}`);x&&x[e]>h&&(h=x[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function We(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function Ye(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Z(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function J(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function X(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Z(s);u=J(N,i,n,""),c=X(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;e[5]!==u||e[6]!==a||e[7]!==s.title?(h=u||s.title||a("orgs.threads.untitledChat"),e[5]=u,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let d;e[10]!==m||e[11]!==h?(d=r.jsx(Y,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-sm shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=d):d=e[12];let x;e[13]!==a||e[14]!==s.title?(x=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=x):x=e[15];let b;e[16]!==x?(b=r.jsx(ae,{className:"text-sm leading-snug truncate",children:x}),e[16]=x,e[17]=b):b=e[17];let v;e[18]!==u?(v=u&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:u}),e[18]=u,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==d||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[d,p]}),e[23]=d,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==l||e[27]!==a?(g=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=g):g=e[28];let j;return e[29]!==g||e[30]!==f?(j=r.jsx(ie,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,g]})}),e[29]=g,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Z(s);u=J(I,i,n,""),c=X(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let d;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(d=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=d):d=e[13];const x=d,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,g,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=ge(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),g=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=g,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],g=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==g||e[29]!==j?(T=r.jsx("span",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=T):T=e[30];let y;e[31]!==T||e[32]!==N||e[33]!==C?(y=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=y):y=e[34];let S;e[35]!==y||e[36]!==w?(S=r.jsxs("div",{children:[w,y]}),e[35]=y,e[36]=w,e[37]=S):S=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==x?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(le,{url:b,fallback:x,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:x})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=x,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==u||e[54]!==a?(k=u&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Y,{icon:m,name:u,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:u})]})]}),e[52]=m,e[53]=u,e[54]=a,e[55]=k):k=e[55];let A;return e[56]!==f||e[57]!==S||e[58]!==D||e[59]!==$||e[60]!==k?(A=r.jsxs("div",{className:f,children:[S,D,$,k]}),e[56]=f,e[57]=S,e[58]=D,e[59]=$,e[60]=k,e[61]=A):A=e[61],A}const B=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,ye=5e3;function Se(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const u=a;let c;n[4]!==t||n[5]!==u||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:u,onFinish:u,onReconnect:u},n[4]=t,n[5]=u,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let d;e[3]!==s||e[4]!==i.id?(d=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:B,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=d):d=e[5];let x;e[6]!==o||e[7]!==d?(x={queryKey:o,queryFn:d,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:ye},e[6]=o,e[7]=d,e[8]=x):x=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=re(x);Se(h.slug,n,i.id);let g;e[9]!==b.pages?(g=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=g):g=e[10];const j=g,N=ue(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=xe(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let y;e[20]!==l||e[21]!==u||e[22]!==m||e[23]!==i||e[24]!==a?(y=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:u}),e[20]=l,e[21]=u,e[22]=m,e[23]=i,e[24]=a,e[25]=y):y=e[25];let S;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(S=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(de,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=S):S=e[31];let E;return e[32]!==T||e[33]!==y||e[34]!==S?(E=r.jsxs(r.Fragment,{children:[T,y,S]}),e[32]=T,e[33]=y,e[34]=S,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<B))return n.length*B}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Ze(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ie,{}),e[5]=d):d=e[5];let x;e[6]!==o?(x=r.jsxs(r.Fragment,{children:[o,d]}),e[6]=o,e[7]=x):x=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==u||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:u,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=u,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let g;e[25]!==p||e[26]!==f?(g=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=g):g=e[27];let j;return e[28]!==x||e[29]!==g?(j=r.jsx(me,{children:r.jsx(ee,{fallback:x,children:g})}),e[28]=x,e[29]=g,e[30]=j):j=e[30],j}export{Ze as T,Ue as a,Ge as b,be as c,Ye as d,We as e,Oe as f,qe as g,Qe as h,je as i,Z as j,X as k,J as r};
1
+ import{ey as O,aL as U,c as P,j as r,r as G,H as ee,b as F,B as K,a2 as te,K as Q,o as se,l as ne}from"./index-nyu5TMcf.js";import{u as re}from"./useSuspenseInfiniteQuery-DTBri9dP.js";import{S as ae,c as ie}from"./sheet-CKqCPJFh.js";import{A as le}from"./avatar-C70LNbg3.js";import{n as oe,t as ce}from"./ChevronUp-Dj_P2ejE.js";import{n as W}from"./LinkBroken01-M2tJMfDF.js";import{u as ue,M as de}from"./pair-DNyUd97Z.js";import{D as me}from"./chat-context-DyVagSZV.js";import{I as Y}from"./integration-icon-DU2_vznq.js";import{b as fe}from"./use-decopilot-events-CpcMn2JW.js";import{u as xe}from"./use-infinite-scroll-DfZNxz6_.js";import{g as ge}from"./task-status-BdGIYuxm.js";const z=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function qe(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return z.find(i=>i.ms>=s)?.label??z[z.length-1].label}function H(t){const e=z.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return H(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function q(t,e){const s=H(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function Oe(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Ue(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ge(t,e,s){const n=H(s),i=q(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[q(new Date(c.timestamp),s).getTime(),c])),u=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();u.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return u}function Qe(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,d)=>d[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),u=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const d=o.virtualMcpId??"";u.set(d,(u.get(d)??0)+o[e]),c.set(`${d}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...u.entries()].sort((o,d)=>d[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const d of l){const x=c.get(`${o}::${d}`);x&&x[e]>h&&(h=x[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function We(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function Ye(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Z(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function J(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function X(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Z(s);u=J(N,i,n,""),c=X(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;e[5]!==u||e[6]!==a||e[7]!==s.title?(h=u||s.title||a("orgs.threads.untitledChat"),e[5]=u,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let d;e[10]!==m||e[11]!==h?(d=r.jsx(Y,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-sm shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=d):d=e[12];let x;e[13]!==a||e[14]!==s.title?(x=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=x):x=e[15];let b;e[16]!==x?(b=r.jsx(ae,{className:"text-sm leading-snug truncate",children:x}),e[16]=x,e[17]=b):b=e[17];let v;e[18]!==u?(v=u&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:u}),e[18]=u,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==d||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[d,p]}),e[23]=d,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==l||e[27]!==a?(g=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(K,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=g):g=e[28];let j;return e[29]!==g||e[30]!==f?(j=r.jsx(ie,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,g]})}),e[29]=g,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Z(s);u=J(I,i,n,""),c=X(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let d;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(d=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=d):d=e[13];const x=d,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,g,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=ge(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),g=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=g,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],g=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==g||e[29]!==j?(T=r.jsx("span",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=T):T=e[30];let y;e[31]!==T||e[32]!==N||e[33]!==C?(y=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=y):y=e[34];let S;e[35]!==y||e[36]!==w?(S=r.jsxs("div",{children:[w,y]}),e[35]=y,e[36]=w,e[37]=S):S=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==x?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(le,{url:b,fallback:x,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:x})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=x,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==u||e[54]!==a?(k=u&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Y,{icon:m,name:u,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:u})]})]}),e[52]=m,e[53]=u,e[54]=a,e[55]=k):k=e[55];let A;return e[56]!==f||e[57]!==S||e[58]!==D||e[59]!==$||e[60]!==k?(A=r.jsxs("div",{className:f,children:[S,D,$,k]}),e[56]=f,e[57]=S,e[58]=D,e[59]=$,e[60]=k,e[61]=A):A=e[61],A}const B=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,ye=5e3;function Se(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const u=a;let c;n[4]!==t||n[5]!==u||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:u,onFinish:u,onReconnect:u},n[4]=t,n[5]=u,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let d;e[3]!==s||e[4]!==i.id?(d=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:B,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=d):d=e[5];let x;e[6]!==o||e[7]!==d?(x={queryKey:o,queryFn:d,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:ye},e[6]=o,e[7]=d,e[8]=x):x=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=re(x);Se(h.slug,n,i.id);let g;e[9]!==b.pages?(g=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=g):g=e[10];const j=g,N=ue(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=xe(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let y;e[20]!==l||e[21]!==u||e[22]!==m||e[23]!==i||e[24]!==a?(y=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:u}),e[20]=l,e[21]=u,e[22]=m,e[23]=i,e[24]=a,e[25]=y):y=e[25];let S;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(S=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(de,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=S):S=e[31];let E;return e[32]!==T||e[33]!==y||e[34]!==S?(E=r.jsxs(r.Fragment,{children:[T,y,S]}),e[32]=T,e[33]=y,e[34]=S,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<B))return n.length*B}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Ze(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ie,{}),e[5]=d):d=e[5];let x;e[6]!==o?(x=r.jsxs(r.Fragment,{children:[o,d]}),e[6]=o,e[7]=x):x=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==u||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:u,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=u,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let g;e[25]!==p||e[26]!==f?(g=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=g):g=e[27];let j;return e[28]!==x||e[29]!==g?(j=r.jsx(me,{children:r.jsx(ee,{fallback:x,children:g})}),e[28]=x,e[29]=g,e[30]=j):j=e[30],j}export{Ze as T,Ue as a,Ge as b,be as c,Ye as d,We as e,Oe as f,qe as g,Qe as h,je as i,Z as j,X as k,J as r};
@@ -1 +1 @@
1
- import{r as u,j as t,I as O,l as E,B as C}from"./index-Bu9BjZrq.js";import{P as H,a as P,b as _}from"./popover-DBhjt7xF.js";import{S as G}from"./scroll-area-Cvpjc0l0.js";import{t as K}from"./ChevronUp-85QiHbB8.js";import{a2 as Y,N as q}from"./agent-icon-C1V6kO6k.js";import{C as J}from"./calendar-DCNv43ZU.js";const B=/^now(?:-(\d+)([mhdwM]))?$/,W={m:"minute",h:"hour",d:"day",w:"week",M:"month"};function z(e){const s=e.trim();if(s==="now")return{isNow:!0,offset:0,unit:null};const r=s.match(B);if(!r)return null;const l=r[1]?Number.parseInt(r[1],10):0,n=r[2]||null;return{isNow:!0,offset:l,unit:n}}function h(e,s=new Date){const r=e.trim(),l=new Date(r);if(!Number.isNaN(l.getTime())&&r.includes("-"))return{valid:!0,date:l};const n=z(r);if(!n)return{valid:!1,date:null,error:'Invalid expression. Use "now" or "now-Xu" (e.g., now-2d, now-3h)'};const o=new Date(s);if(n.offset===0||!n.unit)return{valid:!0,date:o};switch(n.unit){case"m":o.setMinutes(o.getMinutes()-n.offset);break;case"h":o.setHours(o.getHours()-n.offset);break;case"d":o.setDate(o.getDate()-n.offset);break;case"w":o.setDate(o.getDate()-n.offset*7);break;case"M":o.setMonth(o.getMonth()-n.offset);break}return{valid:!0,date:o}}function Z(e){return e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Q(e){const s=e.trim();return B.test(s)}function V(e){const s=e.trim();if(s==="now")return"Now";const r=z(s);if(!r||!r.unit){const o=h(s);return o.valid&&o.date?Z(o.date):s}const l=W[r.unit],n=r.offset!==1?"s":"";return`${r.offset} ${l}${n} ago`}const U=[{label:"Last 5 minutes",from:"now-5m",to:"now",value:"5m"},{label:"Last 15 minutes",from:"now-15m",to:"now",value:"15m"},{label:"Last 30 minutes",from:"now-30m",to:"now",value:"30m"},{label:"Last 1 hour",from:"now-1h",to:"now",value:"1h"},{label:"Last 3 hours",from:"now-3h",to:"now",value:"3h"},{label:"Last 6 hours",from:"now-6h",to:"now",value:"6h"},{label:"Last 12 hours",from:"now-12h",to:"now",value:"12h"},{label:"Last 24 hours",from:"now-24h",to:"now",value:"24h"},{label:"Last 2 days",from:"now-2d",to:"now",value:"2d"},{label:"Last 7 days",from:"now-7d",to:"now",value:"7d"},{label:"Last 30 days",from:"now-30d",to:"now",value:"30d"}];function ee(e,s,r=U){const l=r.find(n=>n.from===e&&n.to===s);return l?l.label:`${V(e)} to ${V(s)}`}function T(e){const s=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0"),n=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),p=String(e.getSeconds()).padStart(2,"0");return`${s}-${r}-${l} ${n}:${o}:${p}`}function te(e){const s=e.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(!s)return null;const[,r,l,n,o,p,g]=s,x=new Date(Number(r),Number(l)-1,Number(n),Number(o),Number(p),Number(g));return Number.isNaN(x.getTime())?null:x}function $(e){if(Q(e))return e;const s=h(e);return s.valid&&s.date?T(s.date):e}function A({value:e,onChange:s,placeholder:r="now or now-2d",className:l,disabled:n,error:o}){const[p,g]=u.useState(!1),[x,m]=u.useState(()=>$(e)),[L,c]=u.useState(),[D,w]=u.useState(!1),b=u.useRef(e);b.current!==e&&(b.current=e,D||m($(e)));const y=i=>{const d=i.target.value;m(d),c(void 0)},R=()=>{w(!0)},N=()=>{w(!1);const i=x.trim();if(Q(i)){c(void 0),s(i);return}const d=te(i);if(d){c(void 0),s(d.toISOString()),m(T(d));return}const f=h(i);if(f.valid&&f.date){c(void 0),s(i),m(T(f.date));return}m($(e)),c(void 0)},v=i=>{if(i){const f=h(e).date||new Date;i.setHours(f.getHours()),i.setMinutes(f.getMinutes()),i.setSeconds(0),i.setMilliseconds(0);const F=i.toISOString();m(T(i)),s(F),c(void 0)}g(!1)},M=i=>{const[d,f]=i.target.value.split(":").map(Number),j=h(e).date||new Date;j.setHours(d||0),j.setMinutes(f||0),j.setSeconds(0),j.setMilliseconds(0);const X=j.toISOString();m(T(j)),s(X)},I=h(e),S=I.valid?I.date:new Date,k=S?`${String(S.getHours()).padStart(2,"0")}:${String(S.getMinutes()).padStart(2,"0")}`:"",a=o||L;return t.jsxs("div",{className:E("flex gap-1",l),children:[t.jsxs("div",{className:"flex-1 relative",children:[t.jsx(O,{value:x,onChange:y,onFocus:R,onBlur:N,placeholder:r,disabled:n,className:E("text-sm h-8",a&&"border-destructive focus-visible:ring-destructive")}),a&&t.jsx("p",{className:"text-xs text-destructive mt-1",children:a})]}),t.jsxs(H,{open:p,onOpenChange:g,children:[t.jsx(P,{asChild:!0,children:t.jsx(C,{variant:"outline",size:"icon",className:"h-8 w-8 shrink-0",disabled:n,children:t.jsx(Y,{className:"h-4 w-4"})})}),t.jsxs(_,{className:"w-auto p-0",align:"end",children:[t.jsx(J,{mode:"single",selected:S||void 0,onSelect:v,initialFocus:!0}),t.jsxs("div",{className:"border-t p-3",children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:"Time"}),t.jsx(O,{type:"time",value:k,onChange:M,className:"text-sm h-8"})]})]})]})]})}function le({value:e,onChange:s,className:r,disabled:l,quickRanges:n=U,labels:o}){const p=o?.absoluteTimeRange??"Absolute time range",g=o?.from??"From",x=o?.to??"To",m=o?.applyTimeRange??"Apply time range",[L,c]=u.useState(!1),[D,w]=u.useState(e.from),[b,y]=u.useState(e.to),[R,N]=u.useState(null),v=u.useRef({from:e.from,to:e.to});(v.current.from!==e.from||v.current.to!==e.to)&&(v.current={from:e.from,to:e.to},w(e.from),y(e.to));const M=a=>{v.current={from:a.from,to:a.to},w(a.from),y(a.to),c(!1),s({from:a.from,to:a.to})},I=()=>{const a=h(D),i=h(b);if(!a.valid||!a.date){N("Invalid 'From' date");return}if(!i.valid||!i.date){N("Invalid 'To' date");return}if(a.date>=i.date){N("'From' must be before 'To'");return}N(null),s({from:D,to:b}),c(!1)},S=a=>e.from===a.from&&e.to===a.to,k=ee(e.from,e.to,n);return t.jsxs(H,{open:L,onOpenChange:c,children:[t.jsx(P,{asChild:!0,children:t.jsxs(C,{variant:"outline",className:E("gap-1.5 min-w-[160px] justify-between",r),disabled:l,children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(q,{className:"size-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:k})]}),t.jsx(K,{className:"size-4 text-muted-foreground"})]})}),t.jsx(_,{className:"w-[540px] p-0",align:"end",sideOffset:4,onCloseAutoFocus:a=>a.preventDefault(),style:L?void 0:{animationDuration:"0s"},children:t.jsxs("div",{className:"flex",children:[t.jsxs("div",{className:"flex-1 p-4 border-r",children:[t.jsx("h4",{className:"text-sm font-medium mb-4",children:p}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:g}),t.jsx(A,{value:D,onChange:w,placeholder:"now-24h"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:x}),t.jsx(A,{value:b,onChange:y,placeholder:"now"})]}),R&&t.jsx("p",{className:"text-xs text-destructive",children:R}),t.jsx(C,{onClick:I,className:"w-full",size:"sm",children:m})]})]}),t.jsx("div",{className:"w-[200px]",children:t.jsx(G,{className:"h-[280px]",children:t.jsx("div",{className:"p-2",children:n.map(a=>{const i=S(a);return t.jsx("button",{type:"button",onClick:()=>M(a),className:E("w-full text-left px-3 py-2 text-sm rounded-lg transition-colors","hover:bg-accent hover:text-accent-foreground",i&&"bg-accent text-accent-foreground font-medium"),children:a.label},a.value)})})})})]})})]})}export{le as T,h as e};
1
+ import{r as u,j as t,I as O,l as E,B as C}from"./index-nyu5TMcf.js";import{P as H,a as P,b as _}from"./popover-DKuS7rj_.js";import{S as G}from"./scroll-area-CyM6eRpJ.js";import{t as K}from"./ChevronUp-Dj_P2ejE.js";import{a2 as Y,N as q}from"./agent-icon-6hwcST3v.js";import{C as J}from"./calendar-eGNDQHPW.js";const B=/^now(?:-(\d+)([mhdwM]))?$/,W={m:"minute",h:"hour",d:"day",w:"week",M:"month"};function z(e){const s=e.trim();if(s==="now")return{isNow:!0,offset:0,unit:null};const r=s.match(B);if(!r)return null;const l=r[1]?Number.parseInt(r[1],10):0,n=r[2]||null;return{isNow:!0,offset:l,unit:n}}function h(e,s=new Date){const r=e.trim(),l=new Date(r);if(!Number.isNaN(l.getTime())&&r.includes("-"))return{valid:!0,date:l};const n=z(r);if(!n)return{valid:!1,date:null,error:'Invalid expression. Use "now" or "now-Xu" (e.g., now-2d, now-3h)'};const o=new Date(s);if(n.offset===0||!n.unit)return{valid:!0,date:o};switch(n.unit){case"m":o.setMinutes(o.getMinutes()-n.offset);break;case"h":o.setHours(o.getHours()-n.offset);break;case"d":o.setDate(o.getDate()-n.offset);break;case"w":o.setDate(o.getDate()-n.offset*7);break;case"M":o.setMonth(o.getMonth()-n.offset);break}return{valid:!0,date:o}}function Z(e){return e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Q(e){const s=e.trim();return B.test(s)}function V(e){const s=e.trim();if(s==="now")return"Now";const r=z(s);if(!r||!r.unit){const o=h(s);return o.valid&&o.date?Z(o.date):s}const l=W[r.unit],n=r.offset!==1?"s":"";return`${r.offset} ${l}${n} ago`}const U=[{label:"Last 5 minutes",from:"now-5m",to:"now",value:"5m"},{label:"Last 15 minutes",from:"now-15m",to:"now",value:"15m"},{label:"Last 30 minutes",from:"now-30m",to:"now",value:"30m"},{label:"Last 1 hour",from:"now-1h",to:"now",value:"1h"},{label:"Last 3 hours",from:"now-3h",to:"now",value:"3h"},{label:"Last 6 hours",from:"now-6h",to:"now",value:"6h"},{label:"Last 12 hours",from:"now-12h",to:"now",value:"12h"},{label:"Last 24 hours",from:"now-24h",to:"now",value:"24h"},{label:"Last 2 days",from:"now-2d",to:"now",value:"2d"},{label:"Last 7 days",from:"now-7d",to:"now",value:"7d"},{label:"Last 30 days",from:"now-30d",to:"now",value:"30d"}];function ee(e,s,r=U){const l=r.find(n=>n.from===e&&n.to===s);return l?l.label:`${V(e)} to ${V(s)}`}function T(e){const s=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0"),n=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),p=String(e.getSeconds()).padStart(2,"0");return`${s}-${r}-${l} ${n}:${o}:${p}`}function te(e){const s=e.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(!s)return null;const[,r,l,n,o,p,g]=s,x=new Date(Number(r),Number(l)-1,Number(n),Number(o),Number(p),Number(g));return Number.isNaN(x.getTime())?null:x}function $(e){if(Q(e))return e;const s=h(e);return s.valid&&s.date?T(s.date):e}function A({value:e,onChange:s,placeholder:r="now or now-2d",className:l,disabled:n,error:o}){const[p,g]=u.useState(!1),[x,m]=u.useState(()=>$(e)),[L,c]=u.useState(),[D,w]=u.useState(!1),b=u.useRef(e);b.current!==e&&(b.current=e,D||m($(e)));const y=i=>{const d=i.target.value;m(d),c(void 0)},R=()=>{w(!0)},N=()=>{w(!1);const i=x.trim();if(Q(i)){c(void 0),s(i);return}const d=te(i);if(d){c(void 0),s(d.toISOString()),m(T(d));return}const f=h(i);if(f.valid&&f.date){c(void 0),s(i),m(T(f.date));return}m($(e)),c(void 0)},v=i=>{if(i){const f=h(e).date||new Date;i.setHours(f.getHours()),i.setMinutes(f.getMinutes()),i.setSeconds(0),i.setMilliseconds(0);const F=i.toISOString();m(T(i)),s(F),c(void 0)}g(!1)},M=i=>{const[d,f]=i.target.value.split(":").map(Number),j=h(e).date||new Date;j.setHours(d||0),j.setMinutes(f||0),j.setSeconds(0),j.setMilliseconds(0);const X=j.toISOString();m(T(j)),s(X)},I=h(e),S=I.valid?I.date:new Date,k=S?`${String(S.getHours()).padStart(2,"0")}:${String(S.getMinutes()).padStart(2,"0")}`:"",a=o||L;return t.jsxs("div",{className:E("flex gap-1",l),children:[t.jsxs("div",{className:"flex-1 relative",children:[t.jsx(O,{value:x,onChange:y,onFocus:R,onBlur:N,placeholder:r,disabled:n,className:E("text-sm h-8",a&&"border-destructive focus-visible:ring-destructive")}),a&&t.jsx("p",{className:"text-xs text-destructive mt-1",children:a})]}),t.jsxs(H,{open:p,onOpenChange:g,children:[t.jsx(P,{asChild:!0,children:t.jsx(C,{variant:"outline",size:"icon",className:"h-8 w-8 shrink-0",disabled:n,children:t.jsx(Y,{className:"h-4 w-4"})})}),t.jsxs(_,{className:"w-auto p-0",align:"end",children:[t.jsx(J,{mode:"single",selected:S||void 0,onSelect:v,initialFocus:!0}),t.jsxs("div",{className:"border-t p-3",children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:"Time"}),t.jsx(O,{type:"time",value:k,onChange:M,className:"text-sm h-8"})]})]})]})]})}function le({value:e,onChange:s,className:r,disabled:l,quickRanges:n=U,labels:o}){const p=o?.absoluteTimeRange??"Absolute time range",g=o?.from??"From",x=o?.to??"To",m=o?.applyTimeRange??"Apply time range",[L,c]=u.useState(!1),[D,w]=u.useState(e.from),[b,y]=u.useState(e.to),[R,N]=u.useState(null),v=u.useRef({from:e.from,to:e.to});(v.current.from!==e.from||v.current.to!==e.to)&&(v.current={from:e.from,to:e.to},w(e.from),y(e.to));const M=a=>{v.current={from:a.from,to:a.to},w(a.from),y(a.to),c(!1),s({from:a.from,to:a.to})},I=()=>{const a=h(D),i=h(b);if(!a.valid||!a.date){N("Invalid 'From' date");return}if(!i.valid||!i.date){N("Invalid 'To' date");return}if(a.date>=i.date){N("'From' must be before 'To'");return}N(null),s({from:D,to:b}),c(!1)},S=a=>e.from===a.from&&e.to===a.to,k=ee(e.from,e.to,n);return t.jsxs(H,{open:L,onOpenChange:c,children:[t.jsx(P,{asChild:!0,children:t.jsxs(C,{variant:"outline",className:E("gap-1.5 min-w-[160px] justify-between",r),disabled:l,children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(q,{className:"size-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:k})]}),t.jsx(K,{className:"size-4 text-muted-foreground"})]})}),t.jsx(_,{className:"w-[540px] p-0",align:"end",sideOffset:4,onCloseAutoFocus:a=>a.preventDefault(),style:L?void 0:{animationDuration:"0s"},children:t.jsxs("div",{className:"flex",children:[t.jsxs("div",{className:"flex-1 p-4 border-r",children:[t.jsx("h4",{className:"text-sm font-medium mb-4",children:p}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:g}),t.jsx(A,{value:D,onChange:w,placeholder:"now-24h"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-xs text-muted-foreground mb-1.5 block",children:x}),t.jsx(A,{value:b,onChange:y,placeholder:"now"})]}),R&&t.jsx("p",{className:"text-xs text-destructive",children:R}),t.jsx(C,{onClick:I,className:"w-full",size:"sm",children:m})]})]}),t.jsx("div",{className:"w-[200px]",children:t.jsx(G,{className:"h-[280px]",children:t.jsx("div",{className:"p-2",children:n.map(a=>{const i=S(a);return t.jsx("button",{type:"button",onClick:()=>M(a),className:E("w-full text-left px-3 py-2 text-sm rounded-lg transition-colors","hover:bg-accent hover:text-accent-foreground",i&&"bg-accent text-accent-foreground font-medium"),children:a.label},a.value)})})})})]})})]})}export{le as T,h as e};
@@ -1 +1 @@
1
- import{r as x,bx as b,j as c,bC as m,bD as k,d_ as p,eq as M,es as T,bP as S,bw as A,er as D,aU as F,c as P,l as C}from"./index-Bu9BjZrq.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,U]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=U(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),q=h,H=N;const L=F("inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(q,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(L({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(H,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,K as a};
1
+ import{r as x,bx as b,j as c,bC as m,bD as k,d_ as p,eq as M,es as T,bP as S,bw as A,er as D,aU as F,c as P,l as C}from"./index-nyu5TMcf.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,U]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=U(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),q=h,H=N;const L=F("inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(q,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(L({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(H,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,K as a};
@@ -1 +1 @@
1
- import"./index-Bu9BjZrq.js";function i(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function l(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function n(t,r){if(!r)return t;const e=`${i(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function s(t,r){return n(t,r).replace(/[_-]/g," ").toLowerCase()}const o=/^mcp__[a-zA-Z0-9_-]+__/;function c(t){return t.replace(o,"")}export{c as a,s as d,l as g,n as s};
1
+ import"./index-nyu5TMcf.js";function i(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function l(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function n(t,r){if(!r)return t;const e=`${i(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function s(t,r){return n(t,r).replace(/[_-]/g," ").toLowerCase()}const o=/^mcp__[a-zA-Z0-9_-]+__/;function c(t){return t.replace(o,"")}export{c as a,s as d,l as g,n as s};
@@ -1 +1 @@
1
- import{c as f,l as u,j as b,B as d}from"./index-Bu9BjZrq.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
1
+ import{c as f,l as u,j as b,B as d}from"./index-nyu5TMcf.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
@@ -1 +1 @@
1
- import{r as i,bz as K,bx as W,j as c,by as J,bA as S,bB as Q,bC as Z,bD as b,dm as H,bF as ee,bG as G,bO as te,bR as oe,bP as re,dn as ne,bS as se,c as j,l as ae}from"./index-Bu9BjZrq.js";import{R as ie}from"./index-B0o9NkGp.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O($),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=$;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,x]=i.useState(null),v=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:v,open:y,stateAttribute:w,trigger:u,onTriggerChange:x,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():P()},[a.isOpenDelayedRef,N,P]),onTriggerLeave:i.useCallback(()=>{h?E():(window.clearTimeout(f.current),f.current=0)},[E,h]),onOpen:P,onClose:E,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=S(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),x=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:b(o.onPointerMove,v=>{v.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(H,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=M;var C="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(C,o.__scopeTooltip);return c.jsx(H,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=i.useRef(null),s=S(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:x}=r,v=i.useCallback(()=>{d(null),x(!1)},[x]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),P=me(T.getBoundingClientRect()),E=be([...w,...P]);d(E),x(!0)},[x]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,v]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?v():w&&(v(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,v]),c.jsx(Y,{...o,ref:s})}),[xe,ve]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(C,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const x=v=>{v.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(xe,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=C;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ve(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,x=a.x,v=a.y;u>r!=v>r&&t<(x-p)*(r-u)/(v-u)+p&&(n=!n)}return n}function be(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ce(e)}function Ce(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Pe=z,Ee=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Pe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ee,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Me as a,Oe as b,Le as c};
1
+ import{r as i,bz as K,bx as W,j as c,by as J,bA as S,bB as Q,bC as Z,bD as b,dm as H,bF as ee,bG as G,bO as te,bR as oe,bP as re,dn as ne,bS as se,c as j,l as ae}from"./index-nyu5TMcf.js";import{R as ie}from"./index-CD7dkkiu.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O($),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=$;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,x]=i.useState(null),v=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:v,open:y,stateAttribute:w,trigger:u,onTriggerChange:x,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():P()},[a.isOpenDelayedRef,N,P]),onTriggerLeave:i.useCallback(()=>{h?E():(window.clearTimeout(f.current),f.current=0)},[E,h]),onOpen:P,onClose:E,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=S(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),x=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:b(o.onPointerMove,v=>{v.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(H,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=M;var C="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(C,o.__scopeTooltip);return c.jsx(H,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=i.useRef(null),s=S(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:x}=r,v=i.useCallback(()=>{d(null),x(!1)},[x]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),P=me(T.getBoundingClientRect()),E=be([...w,...P]);d(E),x(!0)},[x]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,v]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?v():w&&(v(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,v]),c.jsx(Y,{...o,ref:s})}),[xe,ve]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(C,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const x=v=>{v.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(xe,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=C;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ve(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,x=a.x,v=a.y;u>r!=v>r&&t<(x-p)*(r-u)/(v-u)+p&&(n=!n)}return n}function be(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ce(e)}function Ce(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Pe=z,Ee=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Pe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ee,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Me as a,Oe as b,Le as c};
@@ -1 +1 @@
1
- import{p as l,aZ as I,a_ as p,a$ as d}from"./CategoricalChart-Uo4Rj6g_.js";var r=a=>null;r.displayName="Cell";var h=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(I({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},n=a=>{var e=l();return(i,v)=>t=>{a?.(i,v,t),e(p())}},m=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(d({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}};export{r as C,n as a,m as b,h as u};
1
+ import{p as l,aZ as I,a_ as p,a$ as d}from"./CategoricalChart-wXdmL4_t.js";var r=a=>null;r.displayName="Cell";var h=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(I({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},n=a=>{var e=l();return(i,v)=>t=>{a?.(i,v,t),e(p())}},m=(a,e,i)=>{var v=l();return(t,c)=>s=>{a?.(t,c,s),v(d({activeIndex:String(c),activeDataKey:e,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}};export{r as C,n as a,m as b,h as u};
@@ -1 +1 @@
1
- import{C as m,$ as _}from"./index-Bu9BjZrq.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function R(e,t){const n={...g(e),...t};return d(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function v(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,T as a,S as b,I as c,g as d,v as e,h as r,R as u};
1
+ import{C as m,$ as _}from"./index-nyu5TMcf.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function R(e,t){const n={...g(e),...t};return d(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function v(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,T as a,S as b,I as c,g as d,v as e,h as r,R as u};
@@ -1,4 +1,4 @@
1
- import{cX as l,d0 as e,cY as h,aG as r,eX as f,aF as t,bU as p,bW as d,aY as c,cW as m,c_ as v,eY as I,eZ as E,e_ as w,cx as x,dQ as T,e$ as z,f0 as C,f1 as D,cc as O,f2 as B,cO as W,f3 as V,f4 as $,f5 as F,f6 as K,cK as J,cy as Z,cH as j,cI as Y,cJ as Q,cA as G,cG as X,cz as ee,cS as te}from"./index-Bu9BjZrq.js";import{P as oe}from"./use-mcp-client-DXWvBBzU.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),b=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
1
+ import{cX as l,d0 as e,cY as h,aG as r,eX as f,aF as t,bU as p,bW as d,aY as c,cW as m,c_ as v,eY as I,eZ as E,e_ as w,cx as x,dQ as T,e$ as z,f0 as C,f1 as D,cc as O,f2 as B,cO as W,f3 as V,f4 as $,f5 as F,f6 as K,cK as J,cy as Z,cH as j,cI as Y,cJ as Q,cA as G,cG as X,cz as ee,cS as te}from"./index-nyu5TMcf.js";import{P as oe}from"./use-mcp-client-qpFPI59t.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),b=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
2
2
 
3
3
  Individual style keys are optional - hosts may provide any subset of these values.
4
4
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -1 +1 @@
1
- import{aG as s}from"./index-Bu9BjZrq.js";const n=2,t=64,i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,r=new Set(["new","edit","settings","apps","projects","connections"]),o=s().min(n).max(t).regex(i,"Use lowercase letters, digits, and single hyphens between them").refine(e=>!e.includes("--"),"Use single hyphens").refine(e=>!r.has(e),"This slug is reserved");export{o as U};
1
+ import{aG as s}from"./index-nyu5TMcf.js";const n=2,t=64,i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,r=new Set(["new","edit","settings","apps","projects","connections"]),o=s().min(n).max(t).regex(i,"Use lowercase letters, digits, and single hyphens between them").refine(e=>!e.includes("--"),"Use single hyphens").refine(e=>!r.has(e),"This slug is reserved");export{o as U};