decocms 4.592.1 → 4.593.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/dist/client/assets/{AlertCircle-BwkppllA.js → AlertCircle-BPb6lfDc.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Bqp7TlUc.js → AreaChart-Yh5pBNgF.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DCCL1rt6.js → ArrowLeft-D_px05Ip.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BqeXFq9l.js → ArrowRight-DYc-7xj5.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BYIR9bD7.js → ArrowUp-bsUZSt57.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-CzEiBc3s.js → BookOpen01-CKzuPfPT.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-B0KWWZWU.js → CartesianChart-8sA8UDc5.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-BROFl5qI.js → CategoricalChart-D0wEIkFu.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-QBxzzhxK.js → CheckCircle-Dvda272I.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CrnnSDct.js → ChevronDown-C0zFtKr8.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-H_ow2sst.js → ChevronSelectorVertical-BtbkxpS7.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-B9LG8rHq.js → ChevronUp-CHkdbh-i.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DaKNNhgS.js → CreditCard01-BnEtKIxX.js} +1 -1
  14. package/dist/client/assets/{Eye-CZBvYwD9.js → Eye-CE9bd3Ra.js} +1 -1
  15. package/dist/client/assets/{File02-Bl7zscmz.js → File02-OGn6eCfs.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-D0mp-wxT.js → Fingerprint04-ZnmHU3Kp.js} +1 -1
  17. package/dist/client/assets/{Globe04-zZ_Wo2qr.js → Globe04-BK5-p2nj.js} +1 -1
  18. package/dist/client/assets/{Image01-CXgWX1gU.js → Image01-Do_f-fPi.js} +1 -1
  19. package/dist/client/assets/{Key01-XFXwjSrw.js → Key01-C2Ozqf6q.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CF1BwDgf.js → LayoutLeft-tXOkIxzs.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-BvskzXGY.js → LinkBroken01-sFiApfPs.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-CLnacrAG.js → MessageCircle01-LN8Gr1lL.js} +1 -1
  23. package/dist/client/assets/{Minus-BYPaVl5J.js → Minus-vz8sJtmc.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CyQEs2jU.js → Monitor01-Ctq4Y9xp.js} +1 -1
  25. package/dist/client/assets/{Play-BJlRROdi.js → Play-B5OMs0GO.js} +1 -1
  26. package/dist/client/assets/{Plus-5_DrSljh.js → Plus-KLH-MPJh.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-DSOZotrL.js → ReferenceLine-Hl32My8w.js} +1 -1
  28. package/dist/client/assets/{SearchMd-DnsuptGJ.js → SearchMd-1p8IP99o.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BtSrcSQh.js → ShoppingBag01-BZ5p5Jaw.js} +1 -1
  30. package/dist/client/assets/{Sun-armY2g2l.js → Sun-8QBdDNyc.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CmGrpTEn.js → SwitchHorizontal01-BRSeU65r.js} +1 -1
  32. package/dist/client/assets/{Tool01-Btvxanci.js → Tool01-CIkfFpNs.js} +1 -1
  33. package/dist/client/assets/{Tooltip-DCVdpX1E.js → Tooltip-B9ptxG-X.js} +1 -1
  34. package/dist/client/assets/{Trash01-CrhSQVx7.js → Trash01-1e348d5z.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-L5-C5DWT.js → TrendUp01-Sag3n7qI.js} +1 -1
  36. package/dist/client/assets/{Upload01-EwdxuUFt.js → Upload01-DQiq1N5L.js} +1 -1
  37. package/dist/client/assets/{UserCheck01-yJ-iclQD.js → UserCheck01-Dq2vpnim.js} +1 -1
  38. package/dist/client/assets/{UserSquare-BgpEmNUd.js → UserSquare-BAlzvt_y.js} +1 -1
  39. package/dist/client/assets/{Users01-wmNju8Yl.js → Users01-CJNRoJXK.js} +1 -1
  40. package/dist/client/assets/{XClose-KDmX3bNw.js → XClose-CQjSvos9.js} +1 -1
  41. package/dist/client/assets/{Zap-Cm02NTI9.js → Zap-BbT-W69e.js} +1 -1
  42. package/dist/client/assets/{access-gate-DUkWnbL9.js → access-gate-BwaSQQ2b.js} +1 -1
  43. package/dist/client/assets/{add-connection-dialog-CP7m20vG.js → add-connection-dialog-b9bCaaJ-.js} +1 -1
  44. package/dist/client/assets/agent-app-qi4Zg0Ko.js +1 -0
  45. package/dist/client/assets/{agent-assets-T1ss7IMm.js → agent-assets-epUkCzig.js} +1 -1
  46. package/dist/client/assets/{agent-automation-iOzHTb5G.js → agent-automation-DN5QlWy_.js} +1 -1
  47. package/dist/client/assets/{agent-automations-ByGyxgCv.js → agent-automations-DeGcvAoe.js} +1 -1
  48. package/dist/client/assets/{agent-blog-hr56gNc0.js → agent-blog-C-T8yJPu.js} +2 -2
  49. package/dist/client/assets/{agent-blog-post-DxC2FRbG.js → agent-blog-post-spGtFEpJ.js} +2 -2
  50. package/dist/client/assets/{agent-calendar-wVwvmsMs.js → agent-calendar-EBTKBv82.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-Bx87_2q6.js → agent-capabilities-Dsy9OzBC.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-Bidp6mkp.js → agent-connect-sources-B2TM-6qo.js} +1 -1
  53. package/dist/client/assets/agent-deck-8F4Y3xtF.js +1 -0
  54. package/dist/client/assets/{agent-e2e-DUnztQXJ.js → agent-e2e-DMK6Z36v.js} +1 -1
  55. package/dist/client/assets/agent-experiments-CxOy1OMh.js +1 -0
  56. package/dist/client/assets/agent-file-BHPXEsLM.js +1 -0
  57. package/dist/client/assets/{agent-hosting-COkf0Xps.js → agent-hosting-DOLRQkiF.js} +1 -1
  58. package/dist/client/assets/{agent-icon-JwKotWCA.js → agent-icon-CFsULo4q.js} +1 -1
  59. package/dist/client/assets/agent-library-BDMtzZv5.js +1 -0
  60. package/dist/client/assets/agent-library-file-BU6GZbp1.js +1 -0
  61. package/dist/client/assets/agent-overview-BpZl9px0.js +1 -0
  62. package/dist/client/assets/{agent-releases-DezKC__w.js → agent-releases-BojH--RB.js} +1 -1
  63. package/dist/client/assets/agent-settings-CmejIfdg.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-DZwFS9UM.js → agent-site-editor-BiguEz5z.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-CsUpsDOZ.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-DcDYGjSi.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-DoYr2JdT.js +1 -0
  68. package/dist/client/assets/agent-view-5HH2xFah.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-CdcXTQgu.js → agent-view-guard-BRen2fDa.js} +1 -1
  70. package/dist/client/assets/{ai-providers-dGj2AA_J.js → ai-providers-X4uIftAC.js} +1 -1
  71. package/dist/client/assets/{alert-Bg_W81J9.js → alert-D6c8UL8s.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-uMEj8-Hb.js → analytics-sections-BeagNbn2.js} +1 -1
  73. package/dist/client/assets/{api-keys-DGU4qsbo.js → api-keys-Bhaq6l4m.js} +1 -1
  74. package/dist/client/assets/api-keys-tTCGO1A5.js +1 -0
  75. package/dist/client/assets/{app-editor-CTf2Codj.js → app-editor-BDvMcyIq.js} +1 -1
  76. package/dist/client/assets/{asset-utils-QJRtG4Ap.js → asset-utils-DedHJB9N.js} +1 -1
  77. package/dist/client/assets/{auth-uzA6NxRV.js → auth-WUI0GELm.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-JoxUbX-9.js → auth-catchall-36sTseza.js} +1 -1
  79. package/dist/client/assets/{auth-entry-BUAsjeB9.js → auth-entry-BtvDZBee.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-Br7d39De.js → auth-split-layout-DbgIe7Q7.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-DrMSwytZ.js → authenticate-and-persist-oauth-D7yFnk3v.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-BJDRsDXZ.js → automation-list-row-B-bTXdxL.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DgVpzY5m.js → automation-runs-DTOCdqSY.js} +1 -1
  84. package/dist/client/assets/{automations-B3Ego_ZW.js → automations-BXXmJoq9.js} +1 -1
  85. package/dist/client/assets/{badge-CLRefmEY.js → badge-xkOOGTR2.js} +1 -1
  86. package/dist/client/assets/{block-document-hjmJJi3l.js → block-document-ClS1Gx3q.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-DJOofIr5.js → blocks-preview-workspace-context-BOiyLqjl.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-C4eMNdLC.js → blocks-tab-states-Dgkd6bcn.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-BUR2_eXn.js → blog-preview-url-CQF91dum.js} +1 -1
  90. package/dist/client/assets/{blog-schema-YpY3AVs4.js → blog-schema-B993jmPJ.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-CoJgsCam.js → blog-source-gate-B40koNXU.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-BuErg0s0.js → blog-view-gate-DYONh8sE.js} +1 -1
  93. package/dist/client/assets/{buckets-imNapc0_.js → buckets-W8OuOQja.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-B4dJn1up.js → build-improve-prompt-doc-7R1He4iw.js} +1 -1
  95. package/dist/client/assets/{calendar-f3gREBVB.js → calendar-CCy2brqO.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-iBRjmX5q.js → capability-load-error-74rIpav9.js} +1 -1
  97. package/dist/client/assets/{category-editor-DEiTQ4lA.js → category-editor-DrOqNXNY.js} +1 -1
  98. package/dist/client/assets/{category-tree-xeQiGiia.js → category-tree-B08EozIk.js} +1 -1
  99. package/dist/client/assets/{chart-UT9f3sXv.js → chart-DVwx0iDS.js} +1 -1
  100. package/dist/client/assets/{chat-context-D1UPj8PY.js → chat-context-Dk_Ebz6D.js} +1 -1
  101. package/dist/client/assets/{chat-draft-Zo_haAh9.js → chat-draft-x-F0ZPWu.js} +1 -1
  102. package/dist/client/assets/{checkbox-DcCmvMho.js → checkbox-DR00CmJr.js} +1 -1
  103. package/dist/client/assets/{choose-editor-DdBb2fRj.js → choose-editor-3geZkU-m.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-D68lx63J.js → cli-auth-success-CX_XFx5r.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-C15u73Y2.js → cms-settings-editor-DMhLCkuK.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-C-hyfgpJ.js → cms-store-drafts-BdqXOATK.js} +1 -1
  107. package/dist/client/assets/{collapsible-u0jU6NPm.js → collapsible-C5AFdLwb.js} +1 -1
  108. package/dist/client/assets/{collection-detail-BkTfht50.js → collection-detail-DJYxfZho.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-DWQz13cg.js → collection-display-button-BS2sbab3.js} +1 -1
  110. package/dist/client/assets/{collection-search-CHpPqIPY.js → collection-search-ugxEd4a5.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-DSnmQNf6.js → collection-table-wrapper-omwG60bs.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-DwugvhJ1.js → collection-tabs-BsiuG_yk.js} +1 -1
  113. package/dist/client/assets/{combobox-DaTUIVWs.js → combobox-BYBZebi0.js} +1 -1
  114. package/dist/client/assets/{command-eqO7hJ8F.js → command-CRJnywSm.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-DsIxfRy8.js → companion-mcps-section-C5X6hxKV.js} +1 -1
  116. package/dist/client/assets/{config-dw4Olpza.js → config-Br1Io2is.js} +1 -1
  117. package/dist/client/assets/{connect-D66GbpNl.js → connect-BvcW8HFx.js} +1 -1
  118. package/dist/client/assets/{connect-key-BVhplRmH.js → connect-key-Bng8UgOW.js} +1 -1
  119. package/dist/client/assets/{connect-layout-D10-cc6P.js → connect-layout-BK-aWbrg.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-Db36efRh.js → connect-source-dialog-D8TZSkBE.js} +1 -1
  121. package/dist/client/assets/{connection-B7M6nU1x.js → connection-C7PBWSJ2.js} +1 -1
  122. package/dist/client/assets/{connection-card-CcU9JcT0.js → connection-card-DbjUpBUS.js} +1 -1
  123. package/dist/client/assets/{connection-detail-Cg9g-ENG.js → connection-detail-FZzRV6Ym.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-CxUhMJ7p.js → connection-form-helpers-tAcDvyB7.js} +1 -1
  125. package/dist/client/assets/{connection-slug-Cf1O7MNR.js → connection-slug-xMtStNjP.js} +1 -1
  126. package/dist/client/assets/{connections-D08YBLXR.js → connections-IQMsafFW.js} +1 -1
  127. package/dist/client/assets/{content-tab-Bhc-PUDG.js → content-tab-Dby-qF-f.js} +3 -3
  128. package/dist/client/assets/{context-BdoPaIvJ.js → context-jsYDuqDI.js} +1 -1
  129. package/dist/client/assets/{context-menu-DhMwIZXo.js → context-menu-Cvn-dR-4.js} +1 -1
  130. package/dist/client/assets/{context-shell-Czc43ADi.js → context-shell-Bm22btDj.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-CLZMX0-O.js → create-organization-dialog-CXfqVYbt.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-wcNja5Nj.js → daily-pulse-CxBxkzGT.js} +1 -1
  133. package/dist/client/assets/{delete-copy-DdHtycuJ.js → delete-copy-tGyXeEYr.js} +1 -1
  134. package/dist/client/assets/{device-hint-C3k8o5yB.js → device-hint-D3KIwRP_.js} +1 -1
  135. package/dist/client/assets/{discover-Bi4qgpKg.js → discover-UPogBeQB.js} +1 -1
  136. package/dist/client/assets/{domain-settings-C6VVQQXw.js → domain-settings-DarbfYc3.js} +1 -1
  137. package/dist/client/assets/{drawer-CW9vnbpB.js → drawer-CQosC7Hh.js} +1 -1
  138. package/dist/client/assets/{editor-trq0ZKwr.js → editor-DnZdk2c2.js} +1 -1
  139. package/dist/client/assets/{editor-classes-fgKMeEWS.js → editor-classes-CiUorYg6.js} +1 -1
  140. package/dist/client/assets/{empty-message-DdynAHqO.js → empty-message-CG0mkpBx.js} +1 -1
  141. package/dist/client/assets/{empty-state-CuQAe6Uw.js → empty-state-B5kfNSn2.js} +1 -1
  142. package/dist/client/assets/{empty-state-ClambJ61.js → empty-state-D4GKvYHp.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-AG3p6svg.js → experiments-tab-choice-BNwFp10h.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-BVP6dlZP.js → extract-connection-data-BwsA-RYq.js} +1 -1
  145. package/dist/client/assets/{feature-gate-teaNQlJZ.js → feature-gate-WGXGW3TJ.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-Czz_ywh1.js → feature-paywall-CXj-cCjT.js} +1 -1
  147. package/dist/client/assets/{file-explorer-BEI6SPmv.js → file-explorer-CQ0OZXxU.js} +1 -1
  148. package/dist/client/assets/{file-preview-OaKRZWAJ.js → file-preview-CimYREH1.js} +1 -1
  149. package/dist/client/assets/{file-share-button-D3h2-Zhn.js → file-share-button-BAqDjZ0D.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-DFjotUbk.js → file-type-icon-Cst2WgHg.js} +1 -1
  151. package/dist/client/assets/{folder-icon-CpIb_oEp.js → folder-icon-h8_LtFFJ.js} +1 -1
  152. package/dist/client/assets/{form-Dndv--cv.js → form-Bmlz7qRb.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-CZ2vrtVQ.js → frame-navigation-DiMr25uz.js} +1 -1
  154. package/dist/client/assets/{gateway-client-03fm5JRg.js → gateway-client-Dcj5rv8f.js} +1 -1
  155. package/dist/client/assets/{general-B3zfl282.js → general-BTp6LTq7.js} +1 -1
  156. package/dist/client/assets/{github-icon-y_XGzms1.js → github-icon-HoxHOYky.js} +1 -1
  157. package/dist/client/assets/{held-block-view-Cn3NohXd.js → held-block-view-CB9_UtVc.js} +1 -1
  158. package/dist/client/assets/{home-BDyn6OYG.js → home-CTP0vpaw.js} +1 -1
  159. package/dist/client/assets/{home-overview-Bax1lxi2.js → home-overview-oJuOP6Jj.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-DulbkBi6.js → hosted-reconcile-DipRdTAf.js} +1 -1
  161. package/dist/client/assets/{icon-button-oEP30sMT.js → icon-button-CkP-MdlY.js} +1 -1
  162. package/dist/client/assets/{index-1ntgBZGp.js → index-B7BDvGS9.js} +1 -1
  163. package/dist/client/assets/{index-j_yRx5Gd.js → index-BGvfgBXQ.js} +3 -3
  164. package/dist/client/assets/{index-BnZXClz2.js → index-C4-rqYj_.js} +1 -1
  165. package/dist/client/assets/{index-DeJgiPG8.js → index-C5wldXHS.js} +1 -1
  166. package/dist/client/assets/{index-qBmQKs_B.js → index-CpqnzQ6X.js} +1 -1
  167. package/dist/client/assets/{index-CjCwAO3W.js → index-CrMNCOay.js} +1 -1
  168. package/dist/client/assets/{index-a3KGRbV0.js → index-CtgoU6en.js} +1 -1
  169. package/dist/client/assets/{index-Ow5WSw-5.js → index-Cy5OtK8P.js} +1 -1
  170. package/dist/client/assets/{index-aE825l0i.js → index-D4nZeJZF.js} +1 -1
  171. package/dist/client/assets/{index-DvPZxMwK.js → index-DCNDjBOm.js} +1 -1
  172. package/dist/client/assets/{index-Ct2ibJG-.js → index-DFEtjxfd.js} +1 -1
  173. package/dist/client/assets/{index-Dk6jfsr-.js → index-DGcnGUGR.js} +1 -1
  174. package/dist/client/assets/{index-DvyyCm5n.js → index-Dj_uCaww.js} +1 -1
  175. package/dist/client/assets/{index-DE1AT2y_.js → index-fjBXVTkP.js} +1 -1
  176. package/dist/client/assets/{index-DjrvwZRK.js → index-jEofb67j.js} +1 -1
  177. package/dist/client/assets/{index-BelX3qTU.js → index-oZBvLpfd.js} +1 -1
  178. package/dist/client/assets/{index-redirect-DLg7ZvAv.js → index-redirect-DTMlUMlL.js} +1 -1
  179. package/dist/client/assets/{index-DYCKpMVL.js → index-ztFBZP-a.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-BPTR7bwa.js → infiniteQueryObserver-CjHha6VI.js} +1 -1
  181. package/dist/client/assets/{infra-billing-CS3QUNEw.js → infra-billing-R5GG28fc.js} +1 -1
  182. package/dist/client/assets/{input-CXb8CftG.js → input-CIXcgL8B.js} +3 -3
  183. package/dist/client/assets/{input-7IHe6mCK.js → input-CWx7kP2y.js} +1 -1
  184. package/dist/client/assets/{integration-icon-Cgc3RM_Z.js → integration-icon-nO6TvSsO.js} +1 -1
  185. package/dist/client/assets/{item-actions-BHmHS5sV.js → item-actions-DHBqlB8t.js} +1 -1
  186. package/dist/client/assets/{jira-icon-W410b_QH.js → jira-icon-DX-tTt4z.js} +1 -1
  187. package/dist/client/assets/{label-Cb7nOoKu.js → label-2ri5y0AT.js} +1 -1
  188. package/dist/client/assets/{layout-CNFPEyN9.js → layout-m0ghuzGv.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-C6Cjwh-T.js → legacy-admin-welcome-dialog-dJnURvJJ.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-DLDugYOa.js → legacy-agents-deep-JluLJXF7.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-FnzNHZ-H.js → legacy-main-redirect-COiP2ETV.js} +1 -1
  192. package/dist/client/assets/library-Wi-0o3Yx.js +1 -0
  193. package/dist/client/assets/{library-tab-DranLwIk.js → library-tab-CAU7uiMF.js} +1 -1
  194. package/dist/client/assets/{login-BxHl5mSO.js → login-DgFE1SmG.js} +1 -1
  195. package/dist/client/assets/{markdown-XCs9eqI7.js → markdown-Du_1i_DV.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-BlV9sIgT.js → mcp-app-renderer-CHuh8eBE.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-CxcwkHDS.js → mcp-oauth-Be_pa5Ik.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-YcVTNxBt.js → mcp-oauth-Bppcz_3X.js} +1 -1
  199. package/dist/client/assets/{members-B-noNQ3U.js → members-CS-oK1Zf.js} +1 -1
  200. package/dist/client/assets/{memory-d3rT7hG5.js → memory-Bl0VJnb1.js} +1 -1
  201. package/dist/client/assets/{mock-board-BHQbaErv.js → mock-board-BQeILTVh.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-B57mEFAa.js → monaco-editor-DCzjvWW2.js} +1 -1
  203. package/dist/client/assets/{monitoring-L-fLS0wA.js → monitoring-B4nvDMf7.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-Cy9dYm32.js → monitoring-stats-row-BK9I1n3g.js} +1 -1
  205. package/dist/client/assets/{multi-select-Ch7D2jL5.js → multi-select-DLpc9WGW.js} +1 -1
  206. package/dist/client/assets/{mustache-BtFL52JS.js → mustache-fgm1GoLm.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-Duj-yWYX.js → named-rule-step-ikHUM8J-.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-B5R_-YHM.js → named-rule-view-BJLF9MVt.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-CEvYXixv.js → new-project-dialog-BfJtWdgg.js} +1 -1
  210. package/dist/client/assets/{new-project-store-CP8aeL-2.js → new-project-store-CUIYzGdu.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-Bw-TbNnk.js → oauth-callback-DAF-HNU5.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-7mYYjG69.js → oauth-callback-ai-provider-BlZK1cl5.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-MmqcV_yh.js → oauth-consent-BjKAsSxp.js} +1 -1
  214. package/dist/client/assets/{onboarding-9NzL6Eas.js → onboarding-CStDT_bk.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-B1-HnK6T.js → openai-conversation-DJ7Npc2v.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-DPipCHWv.js → optimistic-project-sidebar-views-CaqEFCbi.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-BFa42XfL.js → order-monitor-day-B3sADUCG.js} +1 -1
  218. package/dist/client/assets/{organization-choice-cKFx-Ysc.js → organization-choice-vaH8PRN7.js} +1 -1
  219. package/dist/client/assets/{orgs-ClGbtP87.js → orgs-C-TKQP3D.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-n0axkohG.js → own-accounts-section-BpgBL9aq.js} +1 -1
  221. package/dist/client/assets/{pair-D22ye8XR.js → pair-M_Ks4KYr.js} +1 -1
  222. package/dist/client/assets/{parse-sections-Q5_Dt-lp.js → parse-sections-BuUvGGsv.js} +2 -2
  223. package/dist/client/assets/{plan-DodJXYm2.js → plan-D-khZ7ZC.js} +1 -1
  224. package/dist/client/assets/{plan-ladder-DajxtWfK.js → plan-ladder-De9sRz_u.js} +1 -1
  225. package/dist/client/assets/{plan-usage-card-D3lgS5Uw.js → plan-usage-card-8gBO_kT7.js} +1 -1
  226. package/dist/client/assets/{popover-BArjIkyE.js → popover-BdGhwX6j.js} +1 -1
  227. package/dist/client/assets/{post-calendar-BGAKZKHJ.js → post-calendar-CYarN2j3.js} +1 -1
  228. package/dist/client/assets/{post-editor-BZoBicO2.js → post-editor-mxtEx2vX.js} +1 -1
  229. package/dist/client/assets/{preview-content-QCUy5sdV.js → preview-content-Dxe4XKdO.js} +1 -1
  230. package/dist/client/assets/{preview-dialog-DL37aLxL.js → preview-dialog--RYpR3-k.js} +1 -1
  231. package/dist/client/assets/{preview-panel-frLnBjeu.js → preview-panel-Bk5cvms4.js} +1 -1
  232. package/dist/client/assets/{preview-tab-DR3dhbPi.js → preview-tab-BRY7e3Ww.js} +3 -3
  233. package/dist/client/assets/{product-picker-dialog-DvnyMXCT.js → product-picker-dialog-CIU4p36P.js} +1 -1
  234. package/dist/client/assets/{profile-C_-Dl8bQ.js → profile-CA2wDqLs.js} +1 -1
  235. package/dist/client/assets/{project-app-view-BlAtN3qJ.js → project-app-view-CsobOn93.js} +1 -1
  236. package/dist/client/assets/{project-apps-DKk8TKRM.js → project-apps-CzXp3RuA.js} +1 -1
  237. package/dist/client/assets/{project-icon-Dl1h22aG.js → project-icon-BUl2sFaB.js} +1 -1
  238. package/dist/client/assets/{project-index-DCowj0f3.js → project-index-D3eqGaeY.js} +1 -1
  239. package/dist/client/assets/project-reports-DUszwxkV.js +1 -0
  240. package/dist/client/assets/project-tasks-C9wh-MvK.js +1 -0
  241. package/dist/client/assets/{projects-BhAOfqsb.js → projects-DSjvBTqn.js} +1 -1
  242. package/dist/client/assets/{projects-empty-state-DMI235bS.js → projects-empty-state-C_4sZ19U.js} +1 -1
  243. package/dist/client/assets/{prompts-CfWG62oW.js → prompts-JIqJQ8rm.js} +1 -1
  244. package/dist/client/assets/record-editor-5hDNYEyc.js +1 -0
  245. package/dist/client/assets/{redirect-editor-D15tw0Fx.js → redirect-editor-CIkflDxt.js} +1 -1
  246. package/dist/client/assets/reports-BQo9TgIr.js +1 -0
  247. package/dist/client/assets/{reports-BY9QsHV3.js → reports-DJZwSZy6.js} +1 -1
  248. package/dist/client/assets/{reports-onboarding-DqCrqt-8.js → reports-onboarding-CSkswBMH.js} +1 -1
  249. package/dist/client/assets/{reports-tab-Cgot84ZO.js → reports-tab-6fV3Jvgl.js} +2 -2
  250. package/dist/client/assets/repositories-BT4LP6yW.js +1 -0
  251. package/dist/client/assets/{repositories-B4bRY8ha.js → repositories-BTuTm0L2.js} +1 -1
  252. package/dist/client/assets/{repository-binding-C9PB8Pam.js → repository-binding-DrxBu24C.js} +1 -1
  253. package/dist/client/assets/{repository-picker-DapPUhIH.js → repository-picker-Darc81nL.js} +1 -1
  254. package/dist/client/assets/{require-capability-BSNdaJw-.js → require-capability-C51SGps0.js} +1 -1
  255. package/dist/client/assets/{required-auth-layout-Cl3FuXfT.js → required-auth-layout-pSTI6t_x.js} +1 -1
  256. package/dist/client/assets/{reset-password-D7YCYRud.js → reset-password-BnNzHLPz.js} +1 -1
  257. package/dist/client/assets/{resizable-CeAdD2Vt.js → resizable-BU7UxgwC.js} +1 -1
  258. package/dist/client/assets/{resolve-tab-icon-DKnDrWMJ.js → resolve-tab-icon-Bd3WwXB0.js} +1 -1
  259. package/dist/client/assets/{review-settings-wMilFUTO.js → review-settings-D31XkFbq.js} +1 -1
  260. package/dist/client/assets/{role-color-DADxmg9z.js → role-color-CJIemPpG.js} +1 -1
  261. package/dist/client/assets/roles-C7hVcM54.js +1 -0
  262. package/dist/client/assets/{route-ENhUqbuj.js → route-1boDLy4Y.js} +1 -1
  263. package/dist/client/assets/route-FPh-7Znc.js +1 -0
  264. package/dist/client/assets/{route-C_UbtV7U.js → route-ajk3Lz1i.js} +1 -1
  265. package/dist/client/assets/{route-page-header-DRqRE4Na.js → route-page-header-D3RVWIBC.js} +1 -1
  266. package/dist/client/assets/{sandbox-git-api-CXBLgyeq.js → sandbox-git-api-lqhbN6-M.js} +1 -1
  267. package/dist/client/assets/{sandbox-lifecycle-context-BfAaHqsY.js → sandbox-lifecycle-context-QpFv1h24.js} +1 -1
  268. package/dist/client/assets/{save-status-TyLJf7b7.js → save-status-96Apsuux.js} +1 -1
  269. package/dist/client/assets/{schema-_y2Ibkxz.js → schema-DIQ-2mII.js} +1 -1
  270. package/dist/client/assets/{schema-C-1dDbOf.js → schema-DklwT0XH.js} +1 -1
  271. package/dist/client/assets/{scroll-area-mP_Gdu4R.js → scroll-area-CLaLCTf7.js} +1 -1
  272. package/dist/client/assets/{search-input-C0zqUjwd.js → search-input-BytjnRYd.js} +1 -1
  273. package/dist/client/assets/{search-toggle-DUEGgRoy.js → search-toggle-BEH-S2im.js} +1 -1
  274. package/dist/client/assets/{secret-picker-DnQ5aAOL.js → secret-picker-k0C3uZq8.js} +1 -1
  275. package/dist/client/assets/{secrets-D2WBufJz.js → secrets-1-DGosfc.js} +1 -1
  276. package/dist/client/assets/{section-array-field-CihuyTVg.js → section-array-field-08gf_aaJ.js} +1 -1
  277. package/dist/client/assets/{sections-bRZSj2Ky.js → sections-DfnSEAao.js} +1 -1
  278. package/dist/client/assets/{sections-editor-Btf0Wxxy.js → sections-editor-Cm1IpUw4.js} +1 -1
  279. package/dist/client/assets/{select-_0XQMEZ6.js → select-BH6i4t87.js} +1 -1
  280. package/dist/client/assets/{select-model-B0JrDF1E.js → select-model-DuodXwbD.js} +1 -1
  281. package/dist/client/assets/{seo-editor-BND3F_QG.js → seo-editor-vJ_3bHov.js} +1 -1
  282. package/dist/client/assets/{separator-BefnH7ic.js → separator-DE4QJAwp.js} +1 -1
  283. package/dist/client/assets/{session-runtime-Dc7WrpCe.js → session-runtime-CnePJMYk.js} +1 -1
  284. package/dist/client/assets/settings-tab-C97802nQ.js +1 -0
  285. package/dist/client/assets/{sheet-CQ-Sl7DR.js → sheet-CX86ajAE.js} +1 -1
  286. package/dist/client/assets/{shell-layout-BOc4h8Nx.js → shell-layout-MrR8EGxZ.js} +1 -1
  287. package/dist/client/assets/{site-draft-actions-KK9QL8Zd.js → site-draft-actions-CCPyXgQA.js} +1 -1
  288. package/dist/client/assets/{site-draft-view-DJEtaz9d.js → site-draft-view-B3wpg14y.js} +1 -1
  289. package/dist/client/assets/site-editor-BiU8V7py.js +1 -0
  290. package/dist/client/assets/{site-editor-toast-CQzulbYg.js → site-editor-toast-DjTYO8yl.js} +1 -1
  291. package/dist/client/assets/{skills-DFWtCt4t.js → skills-CwoSapY8.js} +1 -1
  292. package/dist/client/assets/{slider-izH1Xbrf.js → slider-B1Q72VZH.js} +1 -1
  293. package/dist/client/assets/{sortable.esm-FLvesVgG.js → sortable.esm-CXd3MFy1.js} +1 -1
  294. package/dist/client/assets/{sso-CfWeESd9.js → sso-DieJGjil.js} +1 -1
  295. package/dist/client/assets/{suggestion-BqQeH-fD.js → suggestion-Cpa996zU.js} +1 -1
  296. package/dist/client/assets/{super-agent-icon-DGiTUS90.js → super-agent-icon-Db04o97L.js} +1 -1
  297. package/dist/client/assets/{switch-DMQFizVx.js → switch-B7uarNO5.js} +1 -1
  298. package/dist/client/assets/{synced-repos-t6D5BVqE.js → synced-repos-aIXgLnBB.js} +1 -1
  299. package/dist/client/assets/{tab-icon-glyph-DfUCMX5j.js → tab-icon-glyph-D_VxeQZE.js} +1 -1
  300. package/dist/client/assets/{table-Bm4dVJcq.js → table-Bta2Y1CD.js} +1 -1
  301. package/dist/client/assets/{tabs-DoCsLYC4.js → tabs-s8CSecQV.js} +1 -1
  302. package/dist/client/assets/{task-board-C_hEaCmp.js → task-board-DshmncwN.js} +1 -1
  303. package/dist/client/assets/{task-key-D_XTdd0F.js → task-key-PomUyZRb.js} +1 -1
  304. package/dist/client/assets/{task-route-BOK9gNeu.js → task-route-DIKoinWO.js} +1 -1
  305. package/dist/client/assets/{task-status-XtCwDul8.js → task-status-LX7lBTjN.js} +1 -1
  306. package/dist/client/assets/{taskboard-analytics-FDUxRKSU.js → taskboard-analytics-DfkqsYeI.js} +1 -1
  307. package/dist/client/assets/tasks-B2acfxpH.js +1 -0
  308. package/dist/client/assets/{tasks-CsiFG-j5.js → tasks-BGD-BUHo.js} +1 -1
  309. package/dist/client/assets/{textarea-DMh_9jVf.js → textarea-C_mtz3Kv.js} +1 -1
  310. package/dist/client/assets/{thread-analytics-BJ0Y313P.js → thread-analytics-aGwSdxKv.js} +1 -1
  311. package/dist/client/assets/{thread-button-BIkWPKi2.js → thread-button-Bc5fnhGX.js} +1 -1
  312. package/dist/client/assets/{thread-intent-NtyupwLZ.js → thread-intent-DJ2isQQx.js} +1 -1
  313. package/dist/client/assets/{thread-route-Cea4Rgso.js → thread-route-C13LdFpr.js} +1 -1
  314. package/dist/client/assets/{thread-route-D_O45Jgw.js → thread-route-DI1GCHqT.js} +1 -1
  315. package/dist/client/assets/{thread-sheet-body-mQO28M9m.js → thread-sheet-body-CnbjjV-I.js} +1 -1
  316. package/dist/client/assets/{time-range-picker-DNJl5IGA.js → time-range-picker-A0UZNhWR.js} +1 -1
  317. package/dist/client/assets/{toggle-group-D5t_q-4-.js → toggle-group-BjeGXB13.js} +1 -1
  318. package/dist/client/assets/{tool-set-selector-BeeO9y_5.js → tool-set-selector-rXUFKU4u.js} +1 -1
  319. package/dist/client/assets/{toolbar-icon-button-D3O9O6Pc.js → toolbar-icon-button-BmCu83-X.js} +1 -1
  320. package/dist/client/assets/{tooltip-FWYqBBwo.js → tooltip-D0-ybZJ-.js} +1 -1
  321. package/dist/client/assets/{tooltipContext-BjOTYmPV.js → tooltipContext-Dm5XB4Pa.js} +1 -1
  322. package/dist/client/assets/{track-DkA0w_rc.js → track-BI5WxsF3.js} +1 -1
  323. package/dist/client/assets/{types-ByKX7b1h.js → types-DeHdmC2C.js} +1 -1
  324. package/dist/client/assets/{url-slug-DNup9EYL.js → url-slug-Bt323BC1.js} +1 -1
  325. package/dist/client/assets/{usage-stats-DfMCfXyw.js → usage-stats-4TwUkhM4.js} +1 -1
  326. package/dist/client/assets/{use-ai-providers-DKNO4X5l.js → use-ai-providers-Cykm4Omp.js} +1 -1
  327. package/dist/client/assets/{use-api-keys-C5KLyWSq.js → use-api-keys-QqkV0EMu.js} +1 -1
  328. package/dist/client/assets/{use-apply-named-rule-DEk9ttXw.js → use-apply-named-rule-B0v5Nv1Q.js} +1 -1
  329. package/dist/client/assets/use-ask-in-chat-CJn-8DXz.js +1 -0
  330. package/dist/client/assets/{use-automations-B7IF6C0F.js → use-automations-CIfofZgd.js} +1 -1
  331. package/dist/client/assets/{use-autosave-DcgpSv8j.js → use-autosave-phCMBUyD.js} +1 -1
  332. package/dist/client/assets/use-blocks-v8-project-BUDjuC95.js +1 -0
  333. package/dist/client/assets/use-blog-view-CZ2egr0r.js +1 -0
  334. package/dist/client/assets/{use-chat-layout-state-D2oXSxI4.js → use-chat-layout-state-BWjgOEMc.js} +1 -1
  335. package/dist/client/assets/{use-cms-publish-actions-CnkQso_R.js → use-cms-publish-actions-CPyM3m5I.js} +1 -1
  336. package/dist/client/assets/{use-connect-companion-Bi3y9qxu.js → use-connect-companion-eWYXL_LA.js} +1 -1
  337. package/dist/client/assets/{use-connection-DlcGRgl8.js → use-connection-dER7f5j5.js} +1 -1
  338. package/dist/client/assets/{use-content-sync-BGRbbpp4.js → use-content-sync-BSudZND-.js} +1 -1
  339. package/dist/client/assets/{use-copy-Ch54vC-t.js → use-copy-CzwPMJY2.js} +1 -1
  340. package/dist/client/assets/{use-current-view-CVXGOq2-.js → use-current-view-BhCzT_on.js} +1 -1
  341. package/dist/client/assets/{use-date-fns-locale-BjARjrxr.js → use-date-fns-locale-DbDI1yRa.js} +1 -1
  342. package/dist/client/assets/{use-debounced-autosave-D-Vg4p72.js → use-debounced-autosave-BUqTz9gI.js} +1 -1
  343. package/dist/client/assets/{use-debounced-value-f7V1zqmB.js → use-debounced-value-DNV71VAt.js} +1 -1
  344. package/dist/client/assets/{use-deco-credits-B6cSRUoE.js → use-deco-credits-D1eTXz3B.js} +1 -1
  345. package/dist/client/assets/{use-decopilot-events-B0ZxUeCW.js → use-decopilot-events-DwV1bANi.js} +1 -1
  346. package/dist/client/assets/{use-delete-block-BixGITkn.js → use-delete-block-B3Q8p71v.js} +1 -1
  347. package/dist/client/assets/{use-delete-connection-CBGf0wfJ.js → use-delete-connection-KjVy0n0M.js} +1 -1
  348. package/dist/client/assets/{use-deployment-admin-BSVoLNjn.js → use-deployment-admin-U97at0FL.js} +1 -1
  349. package/dist/client/assets/{use-entitlements-D950Bkkb.js → use-entitlements-BnUu4797.js} +1 -1
  350. package/dist/client/assets/{use-fast-preview-draft-url-DEHKCkxn.js → use-fast-preview-draft-url-Cyb7nHOV.js} +1 -1
  351. package/dist/client/assets/{use-file-configs-p-Uum-4o.js → use-file-configs-D-0GlBYS.js} +1 -1
  352. package/dist/client/assets/{use-id-selection-BAyigtAn.js → use-id-selection-lO2dafiF.js} +1 -1
  353. package/dist/client/assets/{use-in-settings-Bk56IO-M.js → use-in-settings-BZ-N_1GQ.js} +1 -1
  354. package/dist/client/assets/{use-inbox-feed-CsGHnFXa.js → use-inbox-feed-adObXP9V.js} +1 -1
  355. package/dist/client/assets/{use-infinite-scroll-BWI-IeTp.js → use-infinite-scroll-DuNc__Oo.js} +1 -1
  356. package/dist/client/assets/{use-join-requests-BE5wgJlo.js → use-join-requests-CGnr0fzd.js} +1 -1
  357. package/dist/client/assets/{use-main-panel-tabs-CxE7dI5k.js → use-main-panel-tabs-C_KJU7HA.js} +1 -1
  358. package/dist/client/assets/{use-mcp-auth-status-BkhBraJN.js → use-mcp-auth-status-CIA9x3GT.js} +1 -1
  359. package/dist/client/assets/{use-mcp-client-ChId32b3.js → use-mcp-client-CsG2AAiF.js} +1 -1
  360. package/dist/client/assets/{use-mcp-prompts-BNyoze-A.js → use-mcp-prompts-DJkMWAp0.js} +1 -1
  361. package/dist/client/assets/{use-mcp-tools-D67gmNhG.js → use-mcp-tools-C4sfkkEQ.js} +1 -1
  362. package/dist/client/assets/{use-mobile-K0HhtzLO.js → use-mobile-B4kazYmP.js} +1 -1
  363. package/dist/client/assets/{use-move-blocks-Bywrd3b8.js → use-move-blocks-CQpVSPWP.js} +1 -1
  364. package/dist/client/assets/{use-navigate-to-agent-DpiPNwgn.js → use-navigate-to-agent-CYt8D-re.js} +1 -1
  365. package/dist/client/assets/{use-never-published-D42VAL7s.js → use-never-published-Dhj1oB8k.js} +1 -1
  366. package/dist/client/assets/{use-org-fs-DjcFvOh2.js → use-org-fs-BQ1-EjeH.js} +1 -1
  367. package/dist/client/assets/{use-org-notice-D6Trmusu.js → use-org-notice-FqFlDSJV.js} +1 -1
  368. package/dist/client/assets/{use-org-repo-syncs-oEUSrGAk.js → use-org-repo-syncs-DZJLO1tr.js} +1 -1
  369. package/dist/client/assets/{use-org-sso-DnaQP_2k.js → use-org-sso-CCCXGXRa.js} +1 -1
  370. package/dist/client/assets/{use-organization-settings-Bs3FNPGA.js → use-organization-settings-CcEgBKiR.js} +1 -1
  371. package/dist/client/assets/{use-panel-navigate-E5z2LBx3.js → use-panel-navigate-BEVdshk4.js} +1 -1
  372. package/dist/client/assets/{use-project-native-view-presence-C2sc-Voo.js → use-project-native-view-presence-BWWCr0OJ.js} +1 -1
  373. package/dist/client/assets/{use-project-scope-BPsfOFds.js → use-project-scope-DaSiwM20.js} +1 -1
  374. package/dist/client/assets/{use-recent-apps-CZeef7PE.js → use-recent-apps-DJU0pj25.js} +1 -1
  375. package/dist/client/assets/{use-reports-diagnostic-CcaMiDPA.js → use-reports-diagnostic-BBFJaws_.js} +1 -1
  376. package/dist/client/assets/{use-sandbox-events-DSNW5zRO.js → use-sandbox-events-Bh6eTl2p.js} +1 -1
  377. package/dist/client/assets/{use-secrets-DSpVCNcn.js → use-secrets-DRWI9snD.js} +1 -1
  378. package/dist/client/assets/{use-section-preview-base-CblLAfEH.js → use-section-preview-base-DgxMYdVR.js} +1 -1
  379. package/dist/client/assets/{use-sidebar-collapsed-OyoeFCDb.js → use-sidebar-collapsed-Cb1DkW28.js} +1 -1
  380. package/dist/client/assets/{use-tags-BYMLGRzB.js → use-tags-CY161EKU.js} +1 -1
  381. package/dist/client/assets/{use-task-board-analytics-B_eiZYIe.js → use-task-board-analytics-DstP91hQ.js} +1 -1
  382. package/dist/client/assets/{use-task-board-item-prs-DRtLG5d6.js → use-task-board-item-prs-DENiL_-n.js} +1 -1
  383. package/dist/client/assets/{use-task-board-items-Bt59ZCVF.js → use-task-board-items-BOf8g772.js} +1 -1
  384. package/dist/client/assets/{use-task-board-prompts-BSy6fFBL.js → use-task-board-prompts-Cy7ux4ZM.js} +1 -1
  385. package/dist/client/assets/{use-task-metadata-Cvpjoc3v.js → use-task-metadata-CLvpp-M5.js} +1 -1
  386. package/dist/client/assets/{use-thread-outputs-CGMBznEP.js → use-thread-outputs-CBGDKGBc.js} +1 -1
  387. package/dist/client/assets/{use-view-draft-kind-CMmZoMS7.js → use-view-draft-kind-Bm-Nz5rU.js} +1 -1
  388. package/dist/client/assets/{use-voice-input-CJUe3xbJ.js → use-voice-input-l3y10Zzf.js} +1 -1
  389. package/dist/client/assets/useInfiniteQuery-Comohppg.js +1 -0
  390. package/dist/client/assets/{useQueries-8SZN3Lcj.js → useQueries-BADhFyMC.js} +1 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-XSNjcYue.js +1 -0
  392. package/dist/client/assets/{users-CF--hX6e.js → users-BlAutU5k.js} +1 -1
  393. package/dist/client/assets/{utils-CnQnO2Ns.js → utils-D3hrWqhu.js} +1 -1
  394. package/dist/client/assets/{variant-calendar-Dn_uZu6Y.js → variant-calendar-Cf89P2oq.js} +1 -1
  395. package/dist/client/assets/{variant-matcher-override-DqTh3tJh.js → variant-matcher-override-cabGpziX.js} +1 -1
  396. package/dist/client/assets/{view-header-DIehQSbk.js → view-header-CqefLZ8T.js} +1 -1
  397. package/dist/client/assets/{virtual-mcp-C28A8jBt.js → virtual-mcp-BfLRvmz0.js} +1 -1
  398. package/dist/client/assets/{watch-sse-pool-C_8BQRgd.js → watch-sse-pool-mz6vVQb7.js} +1 -1
  399. package/dist/client/index.html +1 -1
  400. package/dist/server/server.js +785 -785
  401. package/package.json +1 -1
  402. package/dist/client/assets/agent-app-C476zqxe.js +0 -1
  403. package/dist/client/assets/agent-deck-DgkiMDdk.js +0 -1
  404. package/dist/client/assets/agent-experiments-OG9mU0cG.js +0 -1
  405. package/dist/client/assets/agent-file-BCNKyIo9.js +0 -1
  406. package/dist/client/assets/agent-library-9PmbKS0u.js +0 -1
  407. package/dist/client/assets/agent-library-file-CyqTcQ9K.js +0 -1
  408. package/dist/client/assets/agent-overview-CYuDWTnI.js +0 -1
  409. package/dist/client/assets/agent-settings-ByfXBNBt.js +0 -1
  410. package/dist/client/assets/agent-site-editor-code-DUdVemTF.js +0 -2
  411. package/dist/client/assets/agent-site-editor-content-7ioJRVW9.js +0 -1
  412. package/dist/client/assets/agent-site-editor-preview-BePCK2cf.js +0 -1
  413. package/dist/client/assets/agent-view-WvONE3hx.js +0 -1
  414. package/dist/client/assets/api-keys-ChKWGsxY.js +0 -1
  415. package/dist/client/assets/library-BXsY9YY7.js +0 -1
  416. package/dist/client/assets/project-reports-D7YXddPg.js +0 -1
  417. package/dist/client/assets/project-tasks-CurJDvAu.js +0 -1
  418. package/dist/client/assets/record-editor-D9Skyb4t.js +0 -1
  419. package/dist/client/assets/reports-Dhz_8tAW.js +0 -1
  420. package/dist/client/assets/repositories-CCC3ZEIa.js +0 -1
  421. package/dist/client/assets/roles-D3bsiTMe.js +0 -1
  422. package/dist/client/assets/route-BPA7N7MV.js +0 -1
  423. package/dist/client/assets/settings-tab-Dvz_gGHb.js +0 -1
  424. package/dist/client/assets/site-editor-BaUKJrec.js +0 -1
  425. package/dist/client/assets/tasks-CXI5r2Nc.js +0 -1
  426. package/dist/client/assets/use-ask-in-chat-BAGJo-64.js +0 -1
  427. package/dist/client/assets/use-blocks-v8-project-UkX2VsA0.js +0 -1
  428. package/dist/client/assets/use-blog-view-BLcyDwC6.js +0 -1
  429. package/dist/client/assets/useInfiniteQuery-DwCy1LUY.js +0 -1
  430. package/dist/client/assets/useSuspenseInfiniteQuery-BiS_nbF8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-j_yRx5Gd.js";import{S as Ws}from"./search-input-C0zqUjwd.js";import{E as Ht}from"./empty-state-CuQAe6Uw.js";import{R as Xs}from"./require-capability-BSNdaJw-.js";import{f as js}from"./pair-D22ye8XR.js";import{b as ts}from"./use-connection-DlcGRgl8.js";import{g as Ps}from"./connection-slug-Cf1O7MNR.js";import{B as Lt}from"./badge-CLRefmEY.js";import{P as ds,a as ms,b as us}from"./popover-BArjIkyE.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-FWYqBBwo.js";import{z as fs,e as Ut,bw as el,av as Ns,K as tl}from"./agent-icon-JwKotWCA.js";import{i as sl}from"./Key01-XFXwjSrw.js";import{i as ll}from"./Play-BJlRROdi.js";import{MonacoCodeEditor as bs}from"./monaco-editor-B57mEFAa.js";import{u as rl}from"./use-mcp-client-ChId32b3.js";import{u as il}from"./repository-binding-C9PB8Pam.js";import{n as Ot}from"./LinkBroken01-BvskzXGY.js";import{c as ol}from"./SwitchHorizontal01-CmGrpTEn.js";import{s as nl}from"./Plus-5_DrSljh.js";import{s as al}from"./Trash01-CrhSQVx7.js";import{M as zt}from"./multi-select-Ch7D2jL5.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-_0XQMEZ6.js";import{e as ys,T as cl}from"./time-range-picker-DNJl5IGA.js";import{T as dl}from"./textarea-DMh_9jVf.js";import{C as Ds}from"./collection-tabs-DwugvhJ1.js";import{S as ml}from"./switch-DMQFizVx.js";import{L as ul}from"./label-Cb7nOoKu.js";import{I as It}from"./integration-icon-Cgc3RM_Z.js";import{A as fl,a as xl,b as pl}from"./alert-Bg_W81J9.js";import{K as gt}from"./monitoring-stats-row-Cy9dYm32.js";import{b as Bt}from"./use-entitlements-D950Bkkb.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-mQO28M9m.js";import{u as wl}from"./useSuspenseInfiniteQuery-BiS_nbF8.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-CQ-Sl7DR.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Bm4dVJcq.js";import{t as ss}from"./ChevronDown-CrnnSDct.js";import{n as ls}from"./ChevronUp-B9LG8rHq.js";import{u as Os}from"./use-id-selection-BAyigtAn.js";import{u as Fs}from"./use-infinite-scroll-BWI-IeTp.js";import{u as Il}from"./useInfiniteQuery-DwCy1LUY.js";import{g as Tl}from"./task-status-XtCwDul8.js";import{u as kl,d as Ml}from"./use-automations-B7IF6C0F.js";import{A as _l}from"./automation-runs-DgVpzY5m.js";import{i as Pl}from"./ArrowLeft-DCCL1rt6.js";import{E as Cs}from"./empty-state-ClambJ61.js";import{O as $s}from"./watch-sse-pool-C_8BQRgd.js";import{t as Dl}from"./task-key-D_XTdd0F.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-BFa42XfL.js";import{F as $l}from"./feature-gate-teaNQlJZ.js";import"./SearchMd-DnsuptGJ.js";import"./access-gate-DUkWnbL9.js";import"./capability-load-error-iBRjmX5q.js";import"./Tool01-Btvxanci.js";import"./ArrowRight-BqeXFq9l.js";import"./collapsible-u0jU6NPm.js";import"./use-copy-Ch54vC-t.js";import"./usage-stats-DfMCfXyw.js";import"./utils-CVEq3hMx.js";import"./markdown-XCs9eqI7.js";import"./chat-context-D1UPj8PY.js";import"./use-panel-navigate-E5z2LBx3.js";import"./thread-route-D_O45Jgw.js";import"./use-project-scope-BPsfOFds.js";import"./use-view-draft-kind-CMmZoMS7.js";import"./use-blog-view-BLcyDwC6.js";import"./use-organization-settings-Bs3FNPGA.js";import"./schema-_y2Ibkxz.js";import"./task-board-C_hEaCmp.js";import"./thread-intent-NtyupwLZ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-Dc7WrpCe.js";import"./use-ai-providers-DKNO4X5l.js";import"./use-current-view-CVXGOq2-.js";import"./use-in-settings-Bk56IO-M.js";import"./use-decopilot-events-B0ZxUeCW.js";import"./use-mobile-K0HhtzLO.js";import"./File02-Bl7zscmz.js";import"./gateway-client-03fm5JRg.js";import"./form-Dndv--cv.js";import"./UserCheck01-yJ-iclQD.js";import"./use-task-board-items-Bt59ZCVF.js";import"./config-dw4Olpza.js";import"./AlertCircle-BwkppllA.js";import"./CheckCircle-QBxzzhxK.js";import"./Eye-CZBvYwD9.js";import"./task-route-BOK9gNeu.js";import"./project-index-DCowj0f3.js";import"./TrendUp01-L5-C5DWT.js";import"./shell-layout-BOc4h8Nx.js";import"./Globe04-zZ_Wo2qr.js";import"./UserSquare-BgpEmNUd.js";import"./use-deployment-admin-BSVoLNjn.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-KDmX3bNw.js";import"./use-org-notice-D6Trmusu.js";import"./Monitor01-CyQEs2jU.js";import"./Zap-Cm02NTI9.js";import"./command-eqO7hJ8F.js";import"./index-1ntgBZGp.js";import"./project-icon-Dl1h22aG.js";import"./use-navigate-to-agent-DpiPNwgn.js";import"./use-debounced-value-f7V1zqmB.js";import"./new-project-dialog-CEvYXixv.js";import"./repository-picker-DapPUhIH.js";import"./github-icon-y_XGzms1.js";import"./collection-search-CHpPqIPY.js";import"./BookOpen01-CzEiBc3s.js";import"./ShoppingBag01-BtSrcSQh.js";import"./new-project-store-CP8aeL-2.js";import"./legacy-admin-welcome-dialog-C6Cjwh-T.js";import"./drawer-CW9vnbpB.js";import"./required-auth-layout-Cl3FuXfT.js";import"./use-org-sso-DnaQP_2k.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BlV9sIgT.js";import"./types-ByKX7b1h.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-CXgWX1gU.js";import"./use-mcp-prompts-BNyoze-A.js";import"./use-thread-outputs-CGMBznEP.js";import"./file-type-icon-DFjotUbk.js";import"./index-qBmQKs_B.js";import"./ArrowUp-BYIR9bD7.js";import"./ChevronSelectorVertical-H_ow2sst.js";import"./CreditCard01-DaKNNhgS.js";import"./MessageCircle01-CLnacrAG.js";import"./Fingerprint04-D0mp-wxT.js";import"./LayoutLeft-CF1BwDgf.js";import"./Minus-BYPaVl5J.js";import"./Sun-armY2g2l.js";import"./Upload01-EwdxuUFt.js";import"./Users01-wmNju8Yl.js";import"./editor-trq0ZKwr.js";import"./auth-uzA6NxRV.js";import"./checkbox-DcCmvMho.js";import"./index-BdQq_4o_.js";import"./scroll-area-mP_Gdu4R.js";import"./calendar-f3gREBVB.js";import"./chart-UT9f3sXv.js";import"./CategoricalChart-BROFl5qI.js";import"./index-CjCwAO3W.js";import"./tooltipContext-BjOTYmPV.js";import"./CartesianChart-B0KWWZWU.js";import"./AreaChart-Bqp7TlUc.js";import"./infiniteQueryObserver-BPTR7bwa.js";import"./useQueries-8SZN3Lcj.js";import"./ReferenceLine-DSOZotrL.js";import"./feature-paywall-Czz_ywh1.js";import"./plan-ladder-DajxtWfK.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{c as ue,r as xe,d as ns,a6 as ht,b as Pe,j as t,B as je,t as dt,aY as Yt,am as as,K as bt,i as Et,a7 as As,m as ot,gG as _s,o as cs,h as Ks,e0 as Us,ad as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dW as Js,hf as Gs,T as Qs,W as Ys,I as Xt}from"./index-BGvfgBXQ.js";import{S as Ws}from"./search-input-BytjnRYd.js";import{E as Ht}from"./empty-state-B5kfNSn2.js";import{R as Xs}from"./require-capability-C51SGps0.js";import{f as js}from"./pair-M_Ks4KYr.js";import{b as ts}from"./use-connection-dER7f5j5.js";import{g as Ps}from"./connection-slug-xMtStNjP.js";import{B as Lt}from"./badge-xkOOGTR2.js";import{P as ds,a as ms,b as us}from"./popover-BdGhwX6j.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-D0-ybZJ-.js";import{z as fs,e as Ut,bw as el,av as Ns,K as tl}from"./agent-icon-CFsULo4q.js";import{i as sl}from"./Key01-C2Ozqf6q.js";import{i as ll}from"./Play-B5OMs0GO.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DCzjvWW2.js";import{u as rl}from"./use-mcp-client-CsG2AAiF.js";import{u as il}from"./repository-binding-DrxBu24C.js";import{n as Ot}from"./LinkBroken01-sFiApfPs.js";import{c as ol}from"./SwitchHorizontal01-BRSeU65r.js";import{s as nl}from"./Plus-KLH-MPJh.js";import{s as al}from"./Trash01-1e348d5z.js";import{M as zt}from"./multi-select-DLpc9WGW.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-BH6i4t87.js";import{e as ys,T as cl}from"./time-range-picker-A0UZNhWR.js";import{T as dl}from"./textarea-C_mtz3Kv.js";import{C as Ds}from"./collection-tabs-BsiuG_yk.js";import{S as ml}from"./switch-B7uarNO5.js";import{L as ul}from"./label-2ri5y0AT.js";import{I as It}from"./integration-icon-nO6TvSsO.js";import{A as fl,a as xl,b as pl}from"./alert-D6c8UL8s.js";import{K as gt}from"./monitoring-stats-row-BK9I1n3g.js";import{b as Bt}from"./use-entitlements-BnUu4797.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-CnbjjV-I.js";import{u as wl}from"./useSuspenseInfiniteQuery-XSNjcYue.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-CX86ajAE.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Bta2Y1CD.js";import{t as ss}from"./ChevronDown-C0zFtKr8.js";import{n as ls}from"./ChevronUp-CHkdbh-i.js";import{u as Os}from"./use-id-selection-lO2dafiF.js";import{u as Fs}from"./use-infinite-scroll-DuNc__Oo.js";import{u as Il}from"./useInfiniteQuery-Comohppg.js";import{g as Tl}from"./task-status-LX7lBTjN.js";import{u as kl,d as Ml}from"./use-automations-CIfofZgd.js";import{A as _l}from"./automation-runs-DTOCdqSY.js";import{i as Pl}from"./ArrowLeft-D_px05Ip.js";import{E as Cs}from"./empty-state-D4GKvYHp.js";import{O as $s}from"./watch-sse-pool-mz6vVQb7.js";import{t as Dl}from"./task-key-PomUyZRb.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-B3sADUCG.js";import{F as $l}from"./feature-gate-WGXGW3TJ.js";import"./SearchMd-1p8IP99o.js";import"./access-gate-BwaSQQ2b.js";import"./capability-load-error-74rIpav9.js";import"./Tool01-CIkfFpNs.js";import"./ArrowRight-DYc-7xj5.js";import"./collapsible-C5AFdLwb.js";import"./use-copy-CzwPMJY2.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./chat-context-Dk_Ebz6D.js";import"./use-panel-navigate-BEVdshk4.js";import"./thread-route-DI1GCHqT.js";import"./use-project-scope-DaSiwM20.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CnePJMYk.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-current-view-BhCzT_on.js";import"./use-in-settings-BZ-N_1GQ.js";import"./use-decopilot-events-DwV1bANi.js";import"./use-mobile-B4kazYmP.js";import"./File02-OGn6eCfs.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./UserCheck01-Dq2vpnim.js";import"./use-task-board-items-BOf8g772.js";import"./config-Br1Io2is.js";import"./AlertCircle-BPb6lfDc.js";import"./CheckCircle-Dvda272I.js";import"./Eye-CE9bd3Ra.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./TrendUp01-Sag3n7qI.js";import"./shell-layout-MrR8EGxZ.js";import"./Globe04-BK5-p2nj.js";import"./UserSquare-BAlzvt_y.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-CQjSvos9.js";import"./use-org-notice-FqFlDSJV.js";import"./Monitor01-Ctq4Y9xp.js";import"./Zap-BbT-W69e.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-dialog-BfJtWdgg.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./collection-search-ugxEd4a5.js";import"./BookOpen01-CKzuPfPT.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./drawer-CQosC7Hh.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-Do_f-fPi.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";import"./index-CpqnzQ6X.js";import"./ArrowUp-bsUZSt57.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./CreditCard01-BnEtKIxX.js";import"./MessageCircle01-LN8Gr1lL.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./LayoutLeft-tXOkIxzs.js";import"./Minus-vz8sJtmc.js";import"./Sun-8QBdDNyc.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./editor-DnZdk2c2.js";import"./auth-WUI0GELm.js";import"./checkbox-DR00CmJr.js";import"./index-BdQq_4o_.js";import"./scroll-area-CLaLCTf7.js";import"./calendar-CCy2brqO.js";import"./chart-DVwx0iDS.js";import"./CategoricalChart-D0wEIkFu.js";import"./index-CrMNCOay.js";import"./tooltipContext-Dm5XB4Pa.js";import"./CartesianChart-8sA8UDc5.js";import"./AreaChart-Yh5pBNgF.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./useQueries-BADhFyMC.js";import"./ReferenceLine-Hl32My8w.js";import"./feature-paywall-CXj-cCjT.js";import"./plan-ladder-De9sRz_u.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Is(s){return s.trim()?s.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as i,j as t,c6 as o}from"./index-j_yRx5Gd.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
1
+ import{r as i,j as t,c6 as o}from"./index-BGvfgBXQ.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
@@ -1 +1 @@
1
- import{d5 as _}from"./index-j_yRx5Gd.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
1
+ import{d5 as _}from"./index-BGvfgBXQ.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
@@ -1 +1 @@
1
- import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-j_yRx5Gd.js";import{n as se}from"./ArrowUp-BYIR9bD7.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-D1UPj8PY.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CXb8CftG.js";import{u as je,a as ve,S as be,M as A}from"./pair-D22ye8XR.js";import{A as ye,f as Q}from"./agent-icon-JwKotWCA.js";import{n as Ne}from"./use-sandbox-events-DSNW5zRO.js";import{a as Ce}from"./agent-capabilities-Bx87_2q6.js";import{a as we}from"./repository-binding-C9PB8Pam.js";import{c as Se,i as ke}from"./thread-intent-NtyupwLZ.js";import{a as Te}from"./use-panel-navigate-E5z2LBx3.js";import{N as $e}from"./index-DYCKpMVL.js";import{i as Ee}from"./ArrowRight-BqeXFq9l.js";import{d as De}from"./use-entitlements-D950Bkkb.js";import{u as Pe}from"./use-deco-credits-B6cSRUoE.js";import{F as _e}from"./feature-paywall-Czz_ywh1.js";import{i as Ie}from"./AlertCircle-BwkppllA.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
1
+ import{c as v,a6 as z,K as W,i as Y,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aU as Z,w as J,v as ee,D as te}from"./index-BGvfgBXQ.js";import{n as se}from"./ArrowUp-bsUZSt57.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-Dk_Ebz6D.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CIXcgL8B.js";import{u as je,a as ve,S as be,M as A}from"./pair-M_Ks4KYr.js";import{A as ye,f as Q}from"./agent-icon-CFsULo4q.js";import{n as Ne}from"./use-sandbox-events-Bh6eTl2p.js";import{a as Ce}from"./agent-capabilities-Dsy9OzBC.js";import{a as we}from"./repository-binding-DrxBu24C.js";import{c as Se,i as ke}from"./thread-intent-DJ2isQQx.js";import{a as Te}from"./use-panel-navigate-BEVdshk4.js";import{N as $e}from"./index-ztFBZP-a.js";import{i as Ee}from"./ArrowRight-DYc-7xj5.js";import{d as De}from"./use-entitlements-BnUu4797.js";import{u as Pe}from"./use-deco-credits-D1eTXz3B.js";import{F as _e}from"./feature-paywall-CXj-cCjT.js";import{i as Ie}from"./AlertCircle-BPb6lfDc.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=W.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=Y(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function U(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(U(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(U(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Ue(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function We(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ye(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Ue({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(We,{Main:Ye,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
@@ -1 +1 @@
1
- import{r as s,c0 as L,c1 as B,j as c,g0 as q,c6 as y,c4 as b,f$ as K,c7 as E,g1 as _,e1 as T,ck as k,cd as U,co as V}from"./index-j_yRx5Gd.js";var I="Radio",[z,w]=k(I),[H,W]=z(I),P=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(H,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});P.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[$]=k(C,[_,w]),j=_(),N=w(),[J,Q]=$(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(J,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Q(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(P,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Z="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Z;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
1
+ import{r as s,c0 as L,c1 as B,j as c,g0 as q,c6 as y,c4 as b,f$ as K,c7 as E,g1 as _,e1 as T,ck as k,cd as U,co as V}from"./index-BGvfgBXQ.js";var I="Radio",[z,w]=k(I),[H,W]=z(I),P=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(H,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});P.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[$]=k(C,[_,w]),j=_(),N=w(),[J,Q]=$(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(J,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Q(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(P,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Z="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Z;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
@@ -1 +1 @@
1
- import{A as H,t as U,a9 as S,C as Z,aa as X,f as R,ab as J,ac as Q,o as z}from"./usage-stats-DfMCfXyw.js";import{gA as C,hk as M,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as $}from"./index-j_yRx5Gd.js";import{C as k}from"./index-BelX3qTU.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
1
+ import{A as H,t as U,a9 as S,C as Z,aa as X,f as R,ab as J,ac as Q,o as z}from"./usage-stats-4TwUkhM4.js";import{gA as C,hk as M,gz as P,hl as x,hm as L,hn as V,ho as K,hp as _,gC as A,eT as N,r as p,ca as $}from"./index-BGvfgBXQ.js";import{C as k}from"./index-oZBvLpfd.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof Z){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&X(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const B=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[B({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(C(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(M(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,j=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function q(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){j.has(e)||t.style.removeProperty(q(e))}function mt(t,e,i){j.has(e)||t.style.setProperty(q(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=B({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),$.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),$.createPortal(d,u.current)});export{Tt as B};
@@ -1 +1 @@
1
- import{r as l,c1 as ce,j as p,c7 as _,c6 as T,c4 as C,cc as le,c0 as de,co as ue,ck as fe,cd as me}from"./index-j_yRx5Gd.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
1
+ import{r as l,c1 as ce,j as p,c7 as _,c6 as T,c4 as C,cc as le,c0 as de,co as ue,ck as fe,cd as me}from"./index-BGvfgBXQ.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};