decocms 4.584.13 → 4.584.15

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 (429) hide show
  1. package/dist/client/assets/{AlertCircle-DA6gE5vw.js → AlertCircle-xcW2fRsN.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Y5-RpSOt.js → AreaChart-B2pMCC5D.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B8D7i2xh.js → ArrowLeft-BCdlXJnc.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-C1EmTlL-.js → ArrowRight-CNfAAPFn.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DyF0Rx2O.js → ArrowUp-NxqJFghp.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-UxGmri2e.js → BookOpen01-ByHdrfXb.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-Dv3UTRbp.js → CartesianChart-Bandx1cs.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-oGRIPAq4.js → CategoricalChart-W2F9o7wJ.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Bh1gNJET.js → CheckCircle-CGiVBHq1.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-uPv2ScPr.js → ChevronDown-L1RduSWg.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-CiFyE2Pu.js → ChevronSelectorVertical-R-v88Ujt.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BkmRXggG.js → ChevronUp-hn_BcMX-.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-C-H9qti1.js → CreditCard01-I11lzZp8.js} +1 -1
  14. package/dist/client/assets/{Eye-DL5oRAI4.js → Eye-BgZwKqY2.js} +1 -1
  15. package/dist/client/assets/{File02-DEjt2PPW.js → File02-Cq4haxMC.js} +1 -1
  16. package/dist/client/assets/{Globe04-DD86hrsf.js → Globe04-Gqo8FWLb.js} +1 -1
  17. package/dist/client/assets/{Image01-BCiDUkCm.js → Image01-B1gTxSfc.js} +1 -1
  18. package/dist/client/assets/{Key01-CgRwsDr3.js → Key01-V-plVH8s.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-DHg_jNr0.js → LayoutLeft-Dh-xvGQJ.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-Ic71rSEU.js → LinkBroken01-C4BH9PJk.js} +1 -1
  21. package/dist/client/assets/{MessageCircle01-CQjeMfQj.js → MessageCircle01-BXDua8oN.js} +1 -1
  22. package/dist/client/assets/{Minus-BM2zRSMr.js → Minus-CPSsigVU.js} +1 -1
  23. package/dist/client/assets/{Monitor01-C4OHhcX6.js → Monitor01-FVdupyIO.js} +1 -1
  24. package/dist/client/assets/{Play-l838EjWq.js → Play-B48hJa64.js} +1 -1
  25. package/dist/client/assets/{Plus-BzpqhVU8.js → Plus-Bvk6TEoj.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-DmbAcSH6.js → ReferenceLine-Dlp-ZxjE.js} +1 -1
  27. package/dist/client/assets/{SearchMd-BhCfkG_O.js → SearchMd-lJZx4ys3.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-KIefHp9K.js → ShoppingBag01-Ce-IsP1d.js} +1 -1
  29. package/dist/client/assets/{Sun-CoJn-J4w.js → Sun-DDXuqLa1.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BU8z7oT_.js → SwitchHorizontal01-BTEqc04d.js} +1 -1
  31. package/dist/client/assets/{Tool01-ymE-fOFX.js → Tool01-CuK8_xpK.js} +1 -1
  32. package/dist/client/assets/{Tooltip-D86_gjwu.js → Tooltip-CpE-GuZ-.js} +1 -1
  33. package/dist/client/assets/{Trash01-aSl--BGd.js → Trash01-C00iOBQB.js} +1 -1
  34. package/dist/client/assets/{TrendUp01-Cr4FP2fV.js → TrendUp01-D52fc-S-.js} +1 -1
  35. package/dist/client/assets/{Upload01-DozMUWEF.js → Upload01-CF0QTA2R.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-3D5hYz4C.js → UserCheck01-Dnnv6qzl.js} +1 -1
  37. package/dist/client/assets/{UserSquare-aJjYmjOR.js → UserSquare-Br0ylxlC.js} +1 -1
  38. package/dist/client/assets/{Users01-Cximoi8v.js → Users01-WL4ZoQTM.js} +1 -1
  39. package/dist/client/assets/{XClose-Dq0BGBMq.js → XClose-CE6c7i3i.js} +1 -1
  40. package/dist/client/assets/{Zap-NAfA60T9.js → Zap-CkG3OOIL.js} +1 -1
  41. package/dist/client/assets/{access-gate-Cnf06l1a.js → access-gate-CJyV2IQK.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-D1_0-J8t.js → add-connection-dialog-BZ9UFs6m.js} +1 -1
  43. package/dist/client/assets/agent-app-UoRF36vk.js +1 -0
  44. package/dist/client/assets/{agent-assets-DHnb5L5s.js → agent-assets-Cl6G12zC.js} +1 -1
  45. package/dist/client/assets/{agent-automation-DBCjX475.js → agent-automation-EzohnRR8.js} +1 -1
  46. package/dist/client/assets/{agent-automations-BPqk0cma.js → agent-automations-ClpjK4LJ.js} +1 -1
  47. package/dist/client/assets/{agent-blog-C6OhwET5.js → agent-blog-9KrbWIUt.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-BPTTHi05.js → agent-blog-post-BYOGSBaB.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-n7d8kxeC.js → agent-calendar-DqPeqbu1.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-MDN7TVuK.js → agent-capabilities-CD1cAeZo.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-BLX7S3Bt.js → agent-connect-sources-BQuw4St5.js} +1 -1
  52. package/dist/client/assets/agent-deck-BLJ8bj-K.js +1 -0
  53. package/dist/client/assets/{agent-e2e-C67cHNzK.js → agent-e2e-Ch1bhbzr.js} +1 -1
  54. package/dist/client/assets/agent-experiments-Ml6bqFss.js +1 -0
  55. package/dist/client/assets/agent-file-CmlDrUHs.js +1 -0
  56. package/dist/client/assets/{agent-hosting-DennpVxk.js → agent-hosting-CSEquLBT.js} +1 -1
  57. package/dist/client/assets/{agent-icon-B9nZhdi2.js → agent-icon-CBIv-AL5.js} +1 -1
  58. package/dist/client/assets/agent-library-BjjruHtQ.js +1 -0
  59. package/dist/client/assets/agent-library-file-CNoJ54Ee.js +1 -0
  60. package/dist/client/assets/agent-overview-Dk4XJQcT.js +1 -0
  61. package/dist/client/assets/{agent-releases-DaI8RCLw.js → agent-releases-D4sRdBns.js} +1 -1
  62. package/dist/client/assets/agent-settings-CC2rPZBi.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-BH7NFZLQ.js → agent-site-editor-BUj6gcVv.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-BvrpoBJL.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-QmRWPMOR.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-CKHTHvrW.js +1 -0
  67. package/dist/client/assets/agent-view-BBdmo6o1.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-DEo6nzlH.js → agent-view-guard-gO2YEwTt.js} +1 -1
  69. package/dist/client/assets/{ai-providers-x5-E0mng.js → ai-providers-DZ-PP7L6.js} +1 -1
  70. package/dist/client/assets/{alert-N4205I9V.js → alert-BmJHuGNf.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-Bp_cD3eQ.js → analytics-sections-Dd4lvqQU.js} +1 -1
  72. package/dist/client/assets/api-keys-BvVFCute.js +1 -0
  73. package/dist/client/assets/{api-keys-F6uIkepe.js → api-keys-vP92rWqP.js} +1 -1
  74. package/dist/client/assets/{app-editor-BPz6mU_a.js → app-editor-D6TvV1oi.js} +1 -1
  75. package/dist/client/assets/{asset-utils-Lxwn3jp5.js → asset-utils-KljyOq-J.js} +1 -1
  76. package/dist/client/assets/{auth-D0WiD-6X.js → auth-CBSiR73H.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-BtM_92ON.js → auth-catchall-D78z1E8-.js} +1 -1
  78. package/dist/client/assets/{auth-entry-DGg6_6PX.js → auth-entry-Cc4-G00H.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-BdlGf3S0.js → auth-split-layout-DdhtzfQ9.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-CjsXQJBc.js → authenticate-and-persist-oauth-Du2u48Vp.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-Bh6TsYyw.js → automation-list-row-DzzmT3Oi.js} +1 -1
  82. package/dist/client/assets/{automation-runs-F5hXkFSl.js → automation-runs-DZfSB9de.js} +1 -1
  83. package/dist/client/assets/{automations-x3uj3Ydy.js → automations-Crn6lgen.js} +1 -1
  84. package/dist/client/assets/{badge-BUkSpOXa.js → badge-CamJsKC8.js} +1 -1
  85. package/dist/client/assets/{block-document-Bkfi8LNG.js → block-document-ChoiQUgI.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-CwXYQcg5.js → blocks-preview-workspace-context-5BkSbFn-.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-_faw29v2.js → blocks-tab-states-wy6ydHCy.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-Bk8Ya8Ff.js → blog-preview-url-CHbTdKzq.js} +1 -1
  89. package/dist/client/assets/{blog-schema-D0iLRFhx.js → blog-schema-CUiUhTk6.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-CHqmG0fU.js → blog-source-gate-0m13vigg.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-CBYiW3a_.js → blog-view-gate-N4SCXaqe.js} +1 -1
  92. package/dist/client/assets/{buckets-PPqMjJPU.js → buckets-BM_771lX.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-CQr1jYEn.js → build-improve-prompt-doc-CY7-PCrM.js} +1 -1
  94. package/dist/client/assets/{calendar-ByOFe-ir.js → calendar-HgHcy92P.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-DCMluNzB.js → capability-load-error-B3ALNSsg.js} +1 -1
  96. package/dist/client/assets/{category-editor-FMFHmdJ9.js → category-editor-P8EZIJ92.js} +1 -1
  97. package/dist/client/assets/{category-tree-DO91V9PE.js → category-tree-DCyh5lbD.js} +1 -1
  98. package/dist/client/assets/{chart-B0F_JJb6.js → chart-DXZAnmcF.js} +1 -1
  99. package/dist/client/assets/{chat-context-BhwgXdxZ.js → chat-context-kuwat9Zp.js} +1 -1
  100. package/dist/client/assets/{chat-draft-CG09JkEF.js → chat-draft-B1cM3_nz.js} +1 -1
  101. package/dist/client/assets/{checkbox-BwlyfOui.js → checkbox-DfLNNBpA.js} +1 -1
  102. package/dist/client/assets/{choose-editor-DMmUjki_.js → choose-editor-CAA10rVn.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-ChZ4KETS.js → cli-auth-success-CQWZ58qi.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-CIzKeqbY.js → cms-settings-editor-XDcwl9D1.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-C3WBV5HM.js → cms-store-drafts-xU8H47hr.js} +1 -1
  106. package/dist/client/assets/{collapsible-BILoWprp.js → collapsible-fh6xE0W6.js} +1 -1
  107. package/dist/client/assets/{collection-detail-D6kEPWTW.js → collection-detail-Cp_igxDT.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-BlEDYqVQ.js → collection-display-button-DETjtRN2.js} +1 -1
  109. package/dist/client/assets/{collection-search-Dj3oO1qn.js → collection-search-CMQBkzx4.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-C8_o4YW1.js → collection-table-wrapper-BpB2_r7K.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-Wktk7Bil.js → collection-tabs-Do3VaUL9.js} +1 -1
  112. package/dist/client/assets/{combobox-7VjvZkXU.js → combobox-DYbtPcjA.js} +1 -1
  113. package/dist/client/assets/{command-BcxQrgUK.js → command-C5c9xxo6.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-DQ1lC2cH.js → companion-mcps-section-CJAT7S2N.js} +1 -1
  115. package/dist/client/assets/{config-Bn4oMb7y.js → config-BdmxgNpF.js} +1 -1
  116. package/dist/client/assets/{connect-uQ-qw1JW.js → connect-CEjscMvd.js} +1 -1
  117. package/dist/client/assets/{connect-key-BqwNSl8t.js → connect-key-Bwz15Ohl.js} +1 -1
  118. package/dist/client/assets/{connect-layout-DqtlIJwT.js → connect-layout-CtpXfA3_.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-HVNAw6m0.js → connect-source-dialog-DOKgnbNI.js} +1 -1
  120. package/dist/client/assets/{connection-CELF9xGk.js → connection-DU27jsWQ.js} +1 -1
  121. package/dist/client/assets/{connection-card-DqAevMOq.js → connection-card-CRqpyo-Z.js} +1 -1
  122. package/dist/client/assets/{connection-detail-MGfXYK35.js → connection-detail-D61-TPzv.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-egiEwtYz.js → connection-form-helpers-C90068pd.js} +1 -1
  124. package/dist/client/assets/{connection-slug-Dz7hwoVN.js → connection-slug-C6S0oQlj.js} +1 -1
  125. package/dist/client/assets/{connections-D2NvIFXC.js → connections-BLeMCW0D.js} +1 -1
  126. package/dist/client/assets/{content-tab-BvT7P5lX.js → content-tab-Cx-DPILX.js} +3 -3
  127. package/dist/client/assets/{context-CggBlD0z.js → context-BHZhIUrX.js} +1 -1
  128. package/dist/client/assets/{context-menu-CXequwNl.js → context-menu-DvQobFsl.js} +1 -1
  129. package/dist/client/assets/{context-shell-Bqoi0m2O.js → context-shell-DDVKJzlv.js} +3 -3
  130. package/dist/client/assets/{create-organization-dialog-BOcGysWt.js → create-organization-dialog-BKb453UR.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-BA0ikU80.js → daily-pulse-Dm2jHqb7.js} +1 -1
  132. package/dist/client/assets/{delete-copy-CzwVZl8P.js → delete-copy-DOI5IATW.js} +1 -1
  133. package/dist/client/assets/{device-hint-CUh7MxFw.js → device-hint-B3K0oDUI.js} +1 -1
  134. package/dist/client/assets/{discover-Bt0PjesU.js → discover-uKP20dNQ.js} +1 -1
  135. package/dist/client/assets/{domain-settings-BamU0icI.js → domain-settings-BHlcjWV3.js} +1 -1
  136. package/dist/client/assets/{drawer-EGIO8vW1.js → drawer-DmBGYsSI.js} +1 -1
  137. package/dist/client/assets/{editor-B_YvqDEq.js → editor-cG8bavVY.js} +1 -1
  138. package/dist/client/assets/{editor-classes-D2vt4K2z.js → editor-classes-CoJAO_Ub.js} +1 -1
  139. package/dist/client/assets/{empty-message-BR97lu1R.js → empty-message-BdIshsTe.js} +1 -1
  140. package/dist/client/assets/{empty-state-D--R_kh-.js → empty-state-BQ3leEYD.js} +1 -1
  141. package/dist/client/assets/{empty-state-DxGz72GL.js → empty-state-i0RgGtWw.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-zR5-VX5L.js → experiments-tab-choice-BmcEGamZ.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-DeUSUVIy.js → extract-connection-data-_3AypHFf.js} +1 -1
  144. package/dist/client/assets/{feature-gate-DK9IZjbG.js → feature-gate-CUzBYSVg.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-BQdFbBKY.js → feature-paywall-Da0veXE_.js} +1 -1
  146. package/dist/client/assets/{file-explorer-6XHpEO9J.js → file-explorer-96x1wzeg.js} +1 -1
  147. package/dist/client/assets/{file-preview-CXliAtvL.js → file-preview-C5chvmXN.js} +1 -1
  148. package/dist/client/assets/{file-share-button-BUHoICkf.js → file-share-button-CwDU4cYY.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-Bhy3vcyl.js → file-type-icon-6cUnbJSX.js} +1 -1
  150. package/dist/client/assets/{folder-icon-BD8Yju3a.js → folder-icon-BcfGWwUV.js} +1 -1
  151. package/dist/client/assets/{form-Cb5OHNc9.js → form-CWHbQDen.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-D5yMy5Mm.js → frame-navigation-CUIfPm6x.js} +1 -1
  153. package/dist/client/assets/{gateway-client-t5s1Cm0x.js → gateway-client-DGLOUuHv.js} +1 -1
  154. package/dist/client/assets/{general-DfARJPaG.js → general-DkMSa9su.js} +1 -1
  155. package/dist/client/assets/{github-icon-BoZrKkV3.js → github-icon-tttsztW4.js} +1 -1
  156. package/dist/client/assets/held-block-view-Dl38oGTS.js +3 -0
  157. package/dist/client/assets/{home-COKBWHzA.js → home-DsMWZSyz.js} +1 -1
  158. package/dist/client/assets/{home-overview-C0oKtq4c.js → home-overview-B4l35Rx7.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-mSp200Ck.js → hosted-reconcile-C9sT156Y.js} +1 -1
  160. package/dist/client/assets/{icon-button-CpBLMSxk.js → icon-button-C2DemlVA.js} +1 -1
  161. package/dist/client/assets/{index-BTT5sL01.js → index-BC7uKBKA.js} +1 -1
  162. package/dist/client/assets/{index-CT5cpmuw.js → index-BI2o-nvw.js} +1 -1
  163. package/dist/client/assets/{index-CGQejmXu.js → index-C07Jp7YW.js} +1 -1
  164. package/dist/client/assets/{index-BQrnEOJ9.js → index-CAbU9kcc.js} +1 -1
  165. package/dist/client/assets/{index-Bi2fLJMb.js → index-CO_aaGMC.js} +1 -1
  166. package/dist/client/assets/{index-0AidFUUh.js → index-CQzwsfZW.js} +1 -1
  167. package/dist/client/assets/{index-Oc-4w-Ob.js → index-CagbqgF3.js} +1 -1
  168. package/dist/client/assets/{index-KBC7Pj7l.js → index-D07va7UH.js} +1 -1
  169. package/dist/client/assets/{index-BsAwgxIf.js → index-D4zAZEeh.js} +4 -4
  170. package/dist/client/assets/{index-D1alBOdU.js → index-Dgf1S0ZI.js} +1 -1
  171. package/dist/client/assets/{index-A2_7RKep.js → index-DsnO5Dzk.js} +1 -1
  172. package/dist/client/assets/{index-DQWJotH-.js → index-DuBBqs4L.js} +1 -1
  173. package/dist/client/assets/{index-DEh8AOfP.js → index-DyGSejEm.js} +1 -1
  174. package/dist/client/assets/{index-BED_VE7w.js → index-KtshGmmg.js} +1 -1
  175. package/dist/client/assets/{index-CM0d89Yv.js → index-L2OEH3-g.js} +1 -1
  176. package/dist/client/assets/{index-DKlpvKuq.js → index-MyJJE1Ld.js} +1 -1
  177. package/dist/client/assets/{index-KFEtz5HA.js → index-jrf1krh5.js} +1 -1
  178. package/dist/client/assets/{index-redirect-DWwBvPoP.js → index-redirect-BXbxct_U.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-CnD94meO.js → infiniteQueryObserver-CNIZET2k.js} +1 -1
  180. package/dist/client/assets/{infra-billing-C7MnSX69.js → infra-billing-FOqOn27t.js} +1 -1
  181. package/dist/client/assets/{input-Cy8KNDYA.js → input-C0dfZdZM.js} +3 -3
  182. package/dist/client/assets/{input--kphUWpn.js → input-Gi15aI0l.js} +1 -1
  183. package/dist/client/assets/{integration-icon-DbiCbrD7.js → integration-icon-BIDY0_8Y.js} +1 -1
  184. package/dist/client/assets/{item-actions-BR3Rk3pU.js → item-actions-BP-bCtQy.js} +1 -1
  185. package/dist/client/assets/{jira-icon-BJDzOHlp.js → jira-icon-BCYN6YMQ.js} +1 -1
  186. package/dist/client/assets/{label-D8u4gNcM.js → label-BpM98tac.js} +1 -1
  187. package/dist/client/assets/{layout-Djcel6JN.js → layout-DCvRYnRd.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-C4yFyjEg.js → legacy-admin-welcome-dialog-B20HwZP4.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-BhezYC1Y.js → legacy-agents-deep-BmvQrVmH.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-B2LMkN9B.js → legacy-main-redirect-Djk4-r9-.js} +1 -1
  191. package/dist/client/assets/library-B-HyC9ob.js +1 -0
  192. package/dist/client/assets/{library-tab-B6AGBITt.js → library-tab-Cn42i7-6.js} +1 -1
  193. package/dist/client/assets/{login-D-FcOLf-.js → login-DitP5zKx.js} +1 -1
  194. package/dist/client/assets/{markdown-SwM1Ir6g.js → markdown-DWN586Xq.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-Jzrzu2q5.js → mcp-app-renderer-C48AtEQ1.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-DXUgkWSg.js → mcp-oauth-4c-GNDKK.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-nZa_TONF.js → mcp-oauth-wEukEOTE.js} +1 -1
  198. package/dist/client/assets/{members-pMC1bfqu.js → members-BlNBiH3z.js} +1 -1
  199. package/dist/client/assets/{memory-msRY8EWU.js → memory-C9em5dKf.js} +1 -1
  200. package/dist/client/assets/{mock-board-4Dfd4bxV.js → mock-board-BUSCP4L7.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-Dj-bs0sb.js → monaco-editor-DFVcXi2W.js} +1 -1
  202. package/dist/client/assets/{monitoring-Db6Y9X_T.js → monitoring-B_UThcMp.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-9YaCFmpo.js → monitoring-stats-row-oEVqK40A.js} +1 -1
  204. package/dist/client/assets/{multi-select-Cp5gIPzv.js → multi-select-v2MphKjq.js} +1 -1
  205. package/dist/client/assets/{mustache-CyusQksc.js → mustache-vrrp1dXV.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-DbDjzYJn.js → named-rule-step-Z9Y46qyC.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-Dh3pa8Ix.js → named-rule-view-Cz1WvHGI.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-CrDlez-N.js → new-project-dialog-BB7lkc90.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DleT4y6U.js → new-project-store-AGiWlTxK.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-D-LN8o-r.js → oauth-callback-CzLPh840.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-BKOttmuU.js → oauth-callback-ai-provider-CNqW8YVb.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-C0LB3lfZ.js → oauth-consent-C6x21DQ7.js} +1 -1
  213. package/dist/client/assets/{onboarding-DRXH9Y7t.js → onboarding-B55TDmFS.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-BDQFSE01.js → openai-conversation-D9EaNCT2.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-DpB-Kj9e.js → optimistic-project-sidebar-views-D7Ad1MQo.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-7qmkUUGV.js → order-monitor-day-DvFuV37x.js} +1 -1
  217. package/dist/client/assets/{organization-choice-Bs6uDF8C.js → organization-choice-yRGUIZ_J.js} +1 -1
  218. package/dist/client/assets/{orgs-CwaDyfCI.js → orgs-Cf6BX6NO.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-wo48sm2j.js → own-accounts-section-CT2yRyP_.js} +1 -1
  220. package/dist/client/assets/{pair-4JIJkNK2.js → pair-B9VTopdR.js} +1 -1
  221. package/dist/client/assets/{parse-sections-3dpMP28-.js → parse-sections-BMAn9SGR.js} +2 -2
  222. package/dist/client/assets/{plan-CgB_LoKO.js → plan-TSEvOlrg.js} +1 -1
  223. package/dist/client/assets/{plan-ladder-DAHXnxDP.js → plan-ladder-BQRozUnr.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-DKC1nkf_.js → plan-usage-card-DbJ1AqbM.js} +1 -1
  225. package/dist/client/assets/{popover-DogMO3pk.js → popover-DKQLETgP.js} +1 -1
  226. package/dist/client/assets/{post-calendar-CwmTBZkp.js → post-calendar-3H45objU.js} +1 -1
  227. package/dist/client/assets/{post-editor-CDKF4zje.js → post-editor-Dpy18Hkp.js} +1 -1
  228. package/dist/client/assets/{preview-content-D6MLtumX.js → preview-content-DtzvMyU3.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-Bc3kRUrq.js → preview-dialog-CZcHPcyw.js} +1 -1
  230. package/dist/client/assets/{preview-panel-BkNp3-My.js → preview-panel-Cf_qbsOk.js} +1 -1
  231. package/dist/client/assets/{preview-tab-BLd_YM6q.js → preview-tab-qmFbN81d.js} +3 -3
  232. package/dist/client/assets/{product-picker-dialog-BEHWsHij.js → product-picker-dialog-DiScKAnl.js} +1 -1
  233. package/dist/client/assets/{profile-CxcB48LV.js → profile-D4cDJxA7.js} +1 -1
  234. package/dist/client/assets/{project-app-view-DThAV1rl.js → project-app-view-BV--yKg5.js} +1 -1
  235. package/dist/client/assets/{project-apps-B94DpdMu.js → project-apps-B-BQ_WLB.js} +1 -1
  236. package/dist/client/assets/{project-icon-BHcF2TIr.js → project-icon-U6Iksgvy.js} +1 -1
  237. package/dist/client/assets/{project-index-Be1RuOJ6.js → project-index-W8FXW-6M.js} +1 -1
  238. package/dist/client/assets/project-reports-D8A_7LbK.js +1 -0
  239. package/dist/client/assets/project-tasks-CtIWIKHg.js +1 -0
  240. package/dist/client/assets/{projects-C1GSJkUl.js → projects-UB1Iv8yC.js} +1 -1
  241. package/dist/client/assets/{projects-empty-state-DlLdfDdd.js → projects-empty-state-CIR-WrUv.js} +1 -1
  242. package/dist/client/assets/{prompts-5zeVOrro.js → prompts-DAfUBNaO.js} +1 -1
  243. package/dist/client/assets/record-editor-CdqMsRzX.js +1 -0
  244. package/dist/client/assets/{redirect-editor-CEVbDPNz.js → redirect-editor-Chr5rAav.js} +1 -1
  245. package/dist/client/assets/reports-BMsIz_tG.js +1 -0
  246. package/dist/client/assets/{reports-S46_cn_C.js → reports-DNNF1b9v.js} +1 -1
  247. package/dist/client/assets/{reports-onboarding-Bgx5Wbga.js → reports-onboarding-8yxwk401.js} +1 -1
  248. package/dist/client/assets/{reports-tab-CajwSXZt.js → reports-tab-BWTBFwIS.js} +2 -2
  249. package/dist/client/assets/{repositories-B1gkEk-T.js → repositories-DLsDU_5G.js} +1 -1
  250. package/dist/client/assets/repositories-DkJSjoVA.js +1 -0
  251. package/dist/client/assets/{repository-binding-BS9v5Fe_.js → repository-binding-n3PcTj5W.js} +1 -1
  252. package/dist/client/assets/{repository-picker-CXtPhUQx.js → repository-picker-D6iz0LSt.js} +1 -1
  253. package/dist/client/assets/{require-capability-Db5kMZvY.js → require-capability-DnyEZ3xe.js} +1 -1
  254. package/dist/client/assets/{required-auth-layout-C_8jBLMB.js → required-auth-layout-DyjCxKYD.js} +1 -1
  255. package/dist/client/assets/{reset-password-DIVuqYKV.js → reset-password-DTzJYy8y.js} +1 -1
  256. package/dist/client/assets/{resizable-97tyuWCT.js → resizable-CcVTuTxq.js} +1 -1
  257. package/dist/client/assets/{resolve-tab-icon-CgO8Qihl.js → resolve-tab-icon-MEE2P75Q.js} +1 -1
  258. package/dist/client/assets/{review-settings-CLgbnmq-.js → review-settings-Bf0p0wLB.js} +1 -1
  259. package/dist/client/assets/{role-color-gTG8o13c.js → role-color-B2mF5Vo7.js} +1 -1
  260. package/dist/client/assets/{roles-zI-Hk6fY.js → roles-ezntvUY8.js} +1 -1
  261. package/dist/client/assets/{route-JrcnSNgm.js → route-BUfQW8qo.js} +1 -1
  262. package/dist/client/assets/route-ByacllZq.js +1 -0
  263. package/dist/client/assets/{route-BVVvTINP.js → route-DUzlT2px.js} +1 -1
  264. package/dist/client/assets/{route-page-header-DFLx6qIf.js → route-page-header-NJcm4Djx.js} +1 -1
  265. package/dist/client/assets/{sandbox-git-api-CbcKlTqF.js → sandbox-git-api-BfQhG8Sq.js} +1 -1
  266. package/dist/client/assets/{sandbox-lifecycle-context-Ckk9fyCX.js → sandbox-lifecycle-context-CH7BXWjg.js} +1 -1
  267. package/dist/client/assets/{save-status-DIv_w4LK.js → save-status-DI48JmZF.js} +1 -1
  268. package/dist/client/assets/{schema-CggWCz-G.js → schema-BG6AHPWD.js} +1 -1
  269. package/dist/client/assets/{schema-CsWev9Lq.js → schema-CpAYIyCk.js} +1 -1
  270. package/dist/client/assets/{scroll-area-KLc2042F.js → scroll-area-v2fkoJDu.js} +1 -1
  271. package/dist/client/assets/{search-input-D6gGXIf1.js → search-input-C2L58fvI.js} +1 -1
  272. package/dist/client/assets/{search-toggle-CMDWFPiy.js → search-toggle-BseJQJ3D.js} +1 -1
  273. package/dist/client/assets/{secret-picker-IFIVFm7w.js → secret-picker-DKGfGpF9.js} +1 -1
  274. package/dist/client/assets/{secrets-jBAw0ULO.js → secrets-Bi0_8npG.js} +1 -1
  275. package/dist/client/assets/{section-array-field-fkRL6dJN.js → section-array-field-0_ZQBUjD.js} +1 -1
  276. package/dist/client/assets/{sections-DH2lycfv.js → sections-CS7IpWui.js} +1 -1
  277. package/dist/client/assets/{sections-editor-BWiwMgid.js → sections-editor-CueAfisQ.js} +1 -1
  278. package/dist/client/assets/{select-DPXDtN3F.js → select-49MR6azA.js} +1 -1
  279. package/dist/client/assets/{select-model-DL2dvL4e.js → select-model-BI9Cqkmj.js} +1 -1
  280. package/dist/client/assets/{seo-editor-Qsv4nJ3u.js → seo-editor-C2RgUFJu.js} +1 -1
  281. package/dist/client/assets/{separator-CL-QJFBL.js → separator-DpOO1i0C.js} +1 -1
  282. package/dist/client/assets/{session-runtime-BtkBTCEv.js → session-runtime-cbg630xz.js} +1 -1
  283. package/dist/client/assets/settings-tab-DGbxLWDH.js +1 -0
  284. package/dist/client/assets/{sheet-DKmzxIAF.js → sheet-DLoxxUKp.js} +1 -1
  285. package/dist/client/assets/{shell-layout-DwJrXedk.js → shell-layout-DRrSF92W.js} +1 -1
  286. package/dist/client/assets/{site-draft-actions-CKH_63G-.js → site-draft-actions-B9cG-u-X.js} +1 -1
  287. package/dist/client/assets/{site-draft-view-Cr2tGRpR.js → site-draft-view-B0Fqqz0n.js} +1 -1
  288. package/dist/client/assets/site-editor-DVxTBxx-.js +1 -0
  289. package/dist/client/assets/{site-editor-toast-BRXEnjic.js → site-editor-toast-D0pe87Fd.js} +1 -1
  290. package/dist/client/assets/{skills-DJZ4NcoQ.js → skills-B6AixETp.js} +1 -1
  291. package/dist/client/assets/{slider-tajZdOy1.js → slider-CAIOMJ6O.js} +1 -1
  292. package/dist/client/assets/{sortable.esm-xHKM0aSe.js → sortable.esm-DgdmBaPW.js} +1 -1
  293. package/dist/client/assets/{sso-CdgaAIgO.js → sso-D5fb_ilb.js} +1 -1
  294. package/dist/client/assets/{suggestion-BapLR6AM.js → suggestion-CL--hguC.js} +1 -1
  295. package/dist/client/assets/{super-agent-icon-DD9h5HSQ.js → super-agent-icon-CXirshAk.js} +1 -1
  296. package/dist/client/assets/{switch-DEje7fmz.js → switch-DK7LFSes.js} +1 -1
  297. package/dist/client/assets/{synced-repos-p7TfojtZ.js → synced-repos-CLaC8meB.js} +1 -1
  298. package/dist/client/assets/{tab-icon-glyph-DlkpXRLw.js → tab-icon-glyph-BGYGkGrT.js} +1 -1
  299. package/dist/client/assets/{table-Cie3FI8M.js → table-zwIDqi9O.js} +1 -1
  300. package/dist/client/assets/{tabs-BMObVAFs.js → tabs-Ls9GPDHI.js} +1 -1
  301. package/dist/client/assets/{task-board-CZuAKwkd.js → task-board-C24cF7O1.js} +1 -1
  302. package/dist/client/assets/{task-key-Binbqohp.js → task-key-WwiMwV7X.js} +1 -1
  303. package/dist/client/assets/{task-route-IxeWFQf4.js → task-route-BmUnrQXR.js} +1 -1
  304. package/dist/client/assets/{task-status-24VN3LnD.js → task-status-BGN7G1ph.js} +1 -1
  305. package/dist/client/assets/{taskboard-analytics-TIghTMhL.js → taskboard-analytics-BBqPAQnV.js} +1 -1
  306. package/dist/client/assets/tasks-BJyP5v8a.js +1 -0
  307. package/dist/client/assets/{tasks-DnDVdrmF.js → tasks-CfYwFKuf.js} +1 -1
  308. package/dist/client/assets/{textarea-3iEFQij9.js → textarea-7Sqa9SEq.js} +1 -1
  309. package/dist/client/assets/{thread-analytics-DvdOTcnX.js → thread-analytics-BYs34KPS.js} +1 -1
  310. package/dist/client/assets/{thread-button-ChRjFza7.js → thread-button-B0qrnEQv.js} +1 -1
  311. package/dist/client/assets/{thread-intent-BNoxio0t.js → thread-intent-C7XVii2Y.js} +1 -1
  312. package/dist/client/assets/{thread-route-sNjMl6Ie.js → thread-route-DotOHAlX.js} +1 -1
  313. package/dist/client/assets/{thread-route-DEzPmkpC.js → thread-route-cOJYb9VT.js} +1 -1
  314. package/dist/client/assets/{thread-sheet-body-JBqWWQDi.js → thread-sheet-body-aHZtFnUd.js} +1 -1
  315. package/dist/client/assets/{time-range-picker-DDjkoMQs.js → time-range-picker-ChDJ8FPk.js} +1 -1
  316. package/dist/client/assets/{toggle-group-N0qYYn6W.js → toggle-group-DgmU9Ik4.js} +1 -1
  317. package/dist/client/assets/{tool-set-selector-BE0R1AUj.js → tool-set-selector-DS4N_IFT.js} +1 -1
  318. package/dist/client/assets/{toolbar-icon-button-BSXImY57.js → toolbar-icon-button-BJwXZ1OF.js} +1 -1
  319. package/dist/client/assets/{tooltip-r0LfLYi3.js → tooltip-DGF6yL8r.js} +1 -1
  320. package/dist/client/assets/{tooltipContext-DRtEpNZN.js → tooltipContext-BTH1KLDy.js} +1 -1
  321. package/dist/client/assets/{track-Ciq_Ag4i.js → track-CzLbsWR6.js} +1 -1
  322. package/dist/client/assets/{types-BhUJ3bOA.js → types-cMCbWf0m.js} +1 -1
  323. package/dist/client/assets/{url-slug-CR2COLQn.js → url-slug-Ycbe1Rvc.js} +1 -1
  324. package/dist/client/assets/{usage-stats-BH8jlFhP.js → usage-stats-BiXE7t-o.js} +1 -1
  325. package/dist/client/assets/{use-ai-providers-CFArCH41.js → use-ai-providers-BPDfMGmO.js} +1 -1
  326. package/dist/client/assets/{use-api-keys-lPXg3MPh.js → use-api-keys-Ee4WtIpF.js} +1 -1
  327. package/dist/client/assets/{use-apply-named-rule-C4A8N8Up.js → use-apply-named-rule-DDMjfVAa.js} +1 -1
  328. package/dist/client/assets/use-ask-in-chat-Bq_Pbquv.js +1 -0
  329. package/dist/client/assets/{use-automations-DcCuqnYq.js → use-automations-BGPanOv6.js} +1 -1
  330. package/dist/client/assets/{use-autosave-Cpi6qZoh.js → use-autosave-uQmwsIRK.js} +1 -1
  331. package/dist/client/assets/use-blocks-v8-project-BB5VrS43.js +1 -0
  332. package/dist/client/assets/use-blog-view-Cxdj4uSu.js +1 -0
  333. package/dist/client/assets/{use-chat-layout-state-DjHcwQYx.js → use-chat-layout-state-CuCbgNpm.js} +1 -1
  334. package/dist/client/assets/{use-cms-publish-actions-BbXykL5B.js → use-cms-publish-actions-CpjyT0k4.js} +1 -1
  335. package/dist/client/assets/{use-connect-companion-CNj3wQey.js → use-connect-companion-BxzWZXBm.js} +1 -1
  336. package/dist/client/assets/{use-connection-DpuSfyHb.js → use-connection-Df_9bnNn.js} +1 -1
  337. package/dist/client/assets/{use-content-sync-C9laqqVB.js → use-content-sync-TRRinsXK.js} +1 -1
  338. package/dist/client/assets/{use-copy-BFUDxfVH.js → use-copy-DmG9bn6Y.js} +1 -1
  339. package/dist/client/assets/{use-current-view-C1-z4fIk.js → use-current-view-BpjWsRmy.js} +1 -1
  340. package/dist/client/assets/{use-date-fns-locale-D6T1OHTy.js → use-date-fns-locale-DjxdJjlF.js} +1 -1
  341. package/dist/client/assets/{use-debounced-autosave-C5QlmVn0.js → use-debounced-autosave-YRLt5iYQ.js} +1 -1
  342. package/dist/client/assets/{use-debounced-value-BkJoL4uj.js → use-debounced-value-CzRJcWqp.js} +1 -1
  343. package/dist/client/assets/{use-deco-credits-zD_A42hI.js → use-deco-credits-BkWjJR12.js} +1 -1
  344. package/dist/client/assets/{use-decopilot-events-CZR337Lj.js → use-decopilot-events-CJGAurUR.js} +1 -1
  345. package/dist/client/assets/{use-delete-block-BYw_7GRP.js → use-delete-block-2g7g3klO.js} +1 -1
  346. package/dist/client/assets/{use-delete-connection-B0ASWh3-.js → use-delete-connection-BXs5Hc_Q.js} +1 -1
  347. package/dist/client/assets/{use-deployment-admin-DGQGQZ6E.js → use-deployment-admin-BX2qXW-2.js} +1 -1
  348. package/dist/client/assets/{use-entitlements-BRKIl3Rz.js → use-entitlements-BBAwS2JD.js} +1 -1
  349. package/dist/client/assets/{use-fast-preview-draft-url-BTGBRNHr.js → use-fast-preview-draft-url-BY0ndfYB.js} +1 -1
  350. package/dist/client/assets/{use-file-configs-CMTQcHfJ.js → use-file-configs-BS_YcmBF.js} +1 -1
  351. package/dist/client/assets/{use-id-selection-Bn7c-vY3.js → use-id-selection-d9WtjRjN.js} +1 -1
  352. package/dist/client/assets/{use-in-settings-BT3nEhsO.js → use-in-settings-ClwRJ_Tc.js} +1 -1
  353. package/dist/client/assets/{use-inbox-feed-DGj1Phk9.js → use-inbox-feed-C7YunCP0.js} +1 -1
  354. package/dist/client/assets/{use-infinite-scroll-Dv1yBngZ.js → use-infinite-scroll-B9PxMRZD.js} +1 -1
  355. package/dist/client/assets/{use-join-requests-DMRpQYlE.js → use-join-requests-CANQ78P4.js} +1 -1
  356. package/dist/client/assets/{use-main-panel-tabs-C0GJ35ov.js → use-main-panel-tabs-Dav7mets.js} +1 -1
  357. package/dist/client/assets/{use-mcp-auth-status-D9OBaQkq.js → use-mcp-auth-status-CXGwjE9l.js} +1 -1
  358. package/dist/client/assets/{use-mcp-client-DXpTlXlJ.js → use-mcp-client-DWGLQdXd.js} +1 -1
  359. package/dist/client/assets/{use-mcp-prompts-B_BU9Jdl.js → use-mcp-prompts-BEtNL37X.js} +1 -1
  360. package/dist/client/assets/{use-mcp-tools-B0m5-RR6.js → use-mcp-tools-BottG2O1.js} +1 -1
  361. package/dist/client/assets/{use-mobile-BwxeIsTr.js → use-mobile-Cxsh7m9X.js} +1 -1
  362. package/dist/client/assets/{use-move-blocks-D-OheBD-.js → use-move-blocks-TXQsGjBm.js} +1 -1
  363. package/dist/client/assets/{use-navigate-to-agent-DjeX7xEq.js → use-navigate-to-agent-BIZctK6l.js} +1 -1
  364. package/dist/client/assets/{use-never-published-CP8Hs4DE.js → use-never-published-0j7xzTQG.js} +1 -1
  365. package/dist/client/assets/{use-org-fs-D2bsNlGU.js → use-org-fs-D389k80k.js} +1 -1
  366. package/dist/client/assets/{use-org-notice-BLcA1Iw0.js → use-org-notice-DwvEJ13u.js} +1 -1
  367. package/dist/client/assets/{use-org-repo-syncs-Dfmuqlr1.js → use-org-repo-syncs-Jx7MyyHn.js} +1 -1
  368. package/dist/client/assets/{use-org-sso-DhdCpzK5.js → use-org-sso-CY5B45CW.js} +1 -1
  369. package/dist/client/assets/{use-organization-settings-BilLeNy9.js → use-organization-settings-OVUaywhs.js} +1 -1
  370. package/dist/client/assets/{use-panel-navigate-DpEZACCY.js → use-panel-navigate-Cr2v02C3.js} +1 -1
  371. package/dist/client/assets/{use-project-native-view-presence-D4zm5hDa.js → use-project-native-view-presence-ewWALD0x.js} +1 -1
  372. package/dist/client/assets/{use-project-scope-C815BKEh.js → use-project-scope-BXRinCYb.js} +1 -1
  373. package/dist/client/assets/{use-recent-apps-Cr_xiDfS.js → use-recent-apps-GE97XkJ8.js} +1 -1
  374. package/dist/client/assets/{use-reports-diagnostic-Djz2mp7k.js → use-reports-diagnostic-BWMlNkeF.js} +1 -1
  375. package/dist/client/assets/{use-sandbox-events-aK2a02aF.js → use-sandbox-events-BCRFFvvv.js} +1 -1
  376. package/dist/client/assets/{use-secrets-CJ3hXlfU.js → use-secrets-B6enX6Ym.js} +1 -1
  377. package/dist/client/assets/{use-section-preview-base-Ve5g9dlJ.js → use-section-preview-base-Bgm0Lp29.js} +1 -1
  378. package/dist/client/assets/{use-sidebar-collapsed-CSFUmB9m.js → use-sidebar-collapsed-DK4JHLku.js} +1 -1
  379. package/dist/client/assets/{use-tags-ZV0RDof-.js → use-tags-CvwYS8eS.js} +1 -1
  380. package/dist/client/assets/{use-task-board-analytics-4kD6ppwm.js → use-task-board-analytics-DLq03qK9.js} +1 -1
  381. package/dist/client/assets/{use-task-board-item-prs-Cwh80HEy.js → use-task-board-item-prs-DIPZ6jIw.js} +1 -1
  382. package/dist/client/assets/{use-task-board-items-DX_SyoB4.js → use-task-board-items-CmA9KjLs.js} +1 -1
  383. package/dist/client/assets/{use-task-board-prompts-Cf3d-x7e.js → use-task-board-prompts-CkYS6_8J.js} +1 -1
  384. package/dist/client/assets/{use-task-metadata-L7Sk1FlH.js → use-task-metadata-Beq3R9jr.js} +1 -1
  385. package/dist/client/assets/{use-thread-outputs-HnCGzIoZ.js → use-thread-outputs-Dl2UvcUX.js} +1 -1
  386. package/dist/client/assets/{use-view-draft-kind-1niLZJ6g.js → use-view-draft-kind-BLecf4F_.js} +1 -1
  387. package/dist/client/assets/{use-voice-input-DYwW5R3c.js → use-voice-input-D0aJ7Wh3.js} +1 -1
  388. package/dist/client/assets/useInfiniteQuery-K8oCvn2v.js +1 -0
  389. package/dist/client/assets/{useQueries-BNC8S8pQ.js → useQueries-DLlqEm7S.js} +1 -1
  390. package/dist/client/assets/useSuspenseInfiniteQuery-D5Kn6VyM.js +1 -0
  391. package/dist/client/assets/{users-DeIRsAGC.js → users-I7lrwNfV.js} +1 -1
  392. package/dist/client/assets/{utils-DII4rh9V.js → utils-B_oMvMQ4.js} +1 -1
  393. package/dist/client/assets/{variant-calendar-ChRlrtIQ.js → variant-calendar-CXBg42EW.js} +1 -1
  394. package/dist/client/assets/{variant-matcher-override-DQIPA96S.js → variant-matcher-override-DZytsOwn.js} +1 -1
  395. package/dist/client/assets/{view-header-CDV0Xu_P.js → view-header-BWLCH3xe.js} +1 -1
  396. package/dist/client/assets/{virtual-mcp-DrcP-MsH.js → virtual-mcp-DouGbsHq.js} +1 -1
  397. package/dist/client/assets/{watch-sse-pool-Bw3-M9_N.js → watch-sse-pool-B9QxkAI3.js} +1 -1
  398. package/dist/client/index.html +1 -1
  399. package/dist/server/server.js +1 -1
  400. package/package.json +1 -1
  401. package/dist/client/assets/agent-app-B4NG-g7u.js +0 -1
  402. package/dist/client/assets/agent-deck-DbvnjqCy.js +0 -1
  403. package/dist/client/assets/agent-experiments-D0KHYwLz.js +0 -1
  404. package/dist/client/assets/agent-file-DJr9f7Uu.js +0 -1
  405. package/dist/client/assets/agent-library-Q1o2w1EA.js +0 -1
  406. package/dist/client/assets/agent-library-file-DeAgo7Oz.js +0 -1
  407. package/dist/client/assets/agent-overview-BzbDDcHv.js +0 -1
  408. package/dist/client/assets/agent-settings-CmbLkbQ3.js +0 -1
  409. package/dist/client/assets/agent-site-editor-code-mWem5GG6.js +0 -2
  410. package/dist/client/assets/agent-site-editor-content-Cxhwi79L.js +0 -1
  411. package/dist/client/assets/agent-site-editor-preview-BTUTVJ5a.js +0 -1
  412. package/dist/client/assets/agent-view-ZyP4-VSz.js +0 -1
  413. package/dist/client/assets/api-keys-DYGRMzXM.js +0 -1
  414. package/dist/client/assets/held-block-view-Bm4hn8SE.js +0 -3
  415. package/dist/client/assets/library-i7u4D0nv.js +0 -1
  416. package/dist/client/assets/project-reports-K8JRKUu4.js +0 -1
  417. package/dist/client/assets/project-tasks-CA5yJnAe.js +0 -1
  418. package/dist/client/assets/record-editor-DayZB6HD.js +0 -1
  419. package/dist/client/assets/reports-vF-XIQTi.js +0 -1
  420. package/dist/client/assets/repositories-CMSsRRv6.js +0 -1
  421. package/dist/client/assets/route-DGTGR39c.js +0 -1
  422. package/dist/client/assets/settings-tab-9VStd703.js +0 -1
  423. package/dist/client/assets/site-editor-CVnLWuGP.js +0 -1
  424. package/dist/client/assets/tasks-UA8LFybk.js +0 -1
  425. package/dist/client/assets/use-ask-in-chat-DxfAfFUt.js +0 -1
  426. package/dist/client/assets/use-blocks-v8-project-uH3tLJJX.js +0 -1
  427. package/dist/client/assets/use-blog-view-B-p1Bott.js +0 -1
  428. package/dist/client/assets/useInfiniteQuery-C5Fx0PfA.js +0 -1
  429. package/dist/client/assets/useSuspenseInfiniteQuery-kmW-ybmd.js +0 -1
@@ -1 +1 @@
1
- import{d3 as _}from"./index-BsAwgxIf.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{d3 as _}from"./index-D4zAZEeh.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,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-BsAwgxIf.js";import{n as se}from"./ArrowUp-DyF0Rx2O.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-BhwgXdxZ.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-Cy8KNDYA.js";import{u as je,a as ve,S as be,M as A}from"./pair-4JIJkNK2.js";import{A as ye,f as Q}from"./agent-icon-B9nZhdi2.js";import{n as Ne}from"./use-sandbox-events-aK2a02aF.js";import{a as Ce}from"./agent-capabilities-MDN7TVuK.js";import{a as we}from"./repository-binding-BS9v5Fe_.js";import{c as Se,i as ke}from"./thread-intent-BNoxio0t.js";import{a as Te}from"./use-panel-navigate-DpEZACCY.js";import{N as $e}from"./index-CT5cpmuw.js";import{i as Ee}from"./ArrowRight-C1EmTlL-.js";import{d as De}from"./use-entitlements-BRKIl3Rz.js";import{u as Pe}from"./use-deco-credits-zD_A42hI.js";import{F as _e}from"./feature-paywall-BQdFbBKY.js";import{i as Ie}from"./AlertCircle-DA6gE5vw.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=Y.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}=U(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 W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(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(W(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 We(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 Ye(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 Ue(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);We({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(Ye,{Main:Ue,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,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-D4zAZEeh.js";import{n as se}from"./ArrowUp-NxqJFghp.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-kuwat9Zp.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-C0dfZdZM.js";import{u as je,a as ve,S as be,M as A}from"./pair-B9VTopdR.js";import{A as ye,f as Q}from"./agent-icon-CBIv-AL5.js";import{n as Ne}from"./use-sandbox-events-BCRFFvvv.js";import{a as Ce}from"./agent-capabilities-CD1cAeZo.js";import{a as we}from"./repository-binding-n3PcTj5W.js";import{c as Se,i as ke}from"./thread-intent-C7XVii2Y.js";import{a as Te}from"./use-panel-navigate-Cr2v02C3.js";import{N as $e}from"./index-BI2o-nvw.js";import{i as Ee}from"./ArrowRight-CNfAAPFn.js";import{d as De}from"./use-entitlements-BBAwS2JD.js";import{u as Pe}from"./use-deco-credits-BkWjJR12.js";import{F as _e}from"./feature-paywall-Da0veXE_.js";import{i as Ie}from"./AlertCircle-xcW2fRsN.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=Y.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}=U(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 W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(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(W(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 We(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 Ye(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 Ue(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);We({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(Ye,{Main:Ue,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{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-BsAwgxIf.js";import{u as K}from"./use-mobile-BwxeIsTr.js";import{T as Y,a as Z,c as J}from"./tooltip-r0LfLYi3.js";import{t as Q,a as X}from"./MessageCircle01-CQjeMfQj.js";import{s as ee}from"./XClose-Dq0BGBMq.js";import{b as te}from"./thread-button-ChRjFza7.js";import{T as ne}from"./toolbar-icon-button-BSXImY57.js";import{b as se,R as oe,a as D}from"./resizable-97tyuWCT.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-DjHcwQYx.js";import{R as ae}from"./route-page-header-DFLx6qIf.js";import"./index-KBC7Pj7l.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-in-settings-BT3nEhsO.js";import"./use-panel-navigate-DpEZACCY.js";import"./thread-route-sNjMl6Ie.js";import"./use-project-scope-C815BKEh.js";import"./repository-binding-BS9v5Fe_.js";import"./use-mcp-client-DXpTlXlJ.js";import"./auth-D0WiD-6X.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-current-view-C1-z4fIk.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return T()}function fe(){return z.use(O)}function T(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[M];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const B=s.current;B&&y(B);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function R(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(R,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(R,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:R});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
1
+ import{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-D4zAZEeh.js";import{u as K}from"./use-mobile-Cxsh7m9X.js";import{T as Y,a as Z,c as J}from"./tooltip-DGF6yL8r.js";import{t as Q,a as X}from"./MessageCircle01-BXDua8oN.js";import{s as ee}from"./XClose-CE6c7i3i.js";import{b as te}from"./thread-button-B0qrnEQv.js";import{T as ne}from"./toolbar-icon-button-BJwXZ1OF.js";import{b as se,R as oe,a as D}from"./resizable-CcVTuTxq.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-CuCbgNpm.js";import{R as ae}from"./route-page-header-NJcm4Djx.js";import"./index-D07va7UH.js";import"./use-sidebar-collapsed-DK4JHLku.js";import"./sheet-DLoxxUKp.js";import"./use-in-settings-ClwRJ_Tc.js";import"./use-panel-navigate-Cr2v02C3.js";import"./thread-route-DotOHAlX.js";import"./use-project-scope-BXRinCYb.js";import"./repository-binding-n3PcTj5W.js";import"./use-mcp-client-DWGLQdXd.js";import"./auth-CBSiR73H.js";import"./LayoutLeft-Dh-xvGQJ.js";import"./use-current-view-BpjWsRmy.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return T()}function fe(){return z.use(O)}function T(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[M];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const B=s.current;B&&y(B);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function R(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(R,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(R,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:R});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
@@ -1 +1 @@
1
- import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-BsAwgxIf.js";import{L as v}from"./legacy-main-redirect-B2LMkN9B.js";import"./thread-route-sNjMl6Ie.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
1
+ import{c as f,a4 as h,h0 as d,j as g,N as m,ae as p,a2 as j}from"./index-D4zAZEeh.js";import{L as v}from"./legacy-main-redirect-Djk4-r9-.js";import"./thread-route-DotOHAlX.js";const x=j("/shell/$org/org-shell/");function L(){const e=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let t;e[0]!==i||e[1]!==a.slug||e[2]!==l||e[3]!==o?(t=d({org:a.slug,agentId:o,main:i,search:l}),e[0]=i,e[1]=a.slug,e[2]=l,e[3]=o,e[4]=t):t=e[4];const s=t;if(s?.kind==="canonical"){let r;return e[5]!==s?(r=g.jsx(v,{target:s}),e[5]=s,e[6]=r):r=e[6],r}}let n;e[7]!==o?(n=o?.trim()||null,e[7]=o,e[8]=n):n=e[8];const u=n;if(u){let t;e[9]!==a.slug||e[10]!==u?(t={org:a.slug,agentId:u},e[9]=a.slug,e[10]=u,e[11]=t):t=e[11];let s;e[12]!==l?(s={...l,virtualmcpid:void 0},e[12]=l,e[13]=s):s=e[13];let r;return e[14]!==t||e[15]!==s?(r=g.jsx(m,{to:p.projects,params:t,search:s,hash:!0,replace:!0}),e[14]=t,e[15]=s,e[16]=r):r=e[16],r}let c;return e[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),e[17]=a.slug,e[18]=c):c=e[18],c}function N(e){return{...e,virtualmcpid:void 0}}export{L as default};
@@ -1,4 +1,4 @@
1
- import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-BsAwgxIf.js";import{S as Ys}from"./search-input-D6gGXIf1.js";import{E as Ht}from"./empty-state-DxGz72GL.js";import{R as Xs}from"./require-capability-Db5kMZvY.js";import{f as js}from"./pair-4JIJkNK2.js";import{b as ts}from"./use-connection-DpuSfyHb.js";import{g as Ps}from"./connection-slug-Dz7hwoVN.js";import{B as Lt}from"./badge-BUkSpOXa.js";import{P as ds,a as ms,b as us}from"./popover-DogMO3pk.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-r0LfLYi3.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-B9nZhdi2.js";import{i as sl}from"./Key01-CgRwsDr3.js";import{i as ll}from"./Play-l838EjWq.js";import{MonacoCodeEditor as bs}from"./monaco-editor-Dj-bs0sb.js";import{u as rl}from"./use-mcp-client-DXpTlXlJ.js";import{u as il}from"./repository-binding-BS9v5Fe_.js";import{n as Ot}from"./LinkBroken01-Ic71rSEU.js";import{c as ol}from"./SwitchHorizontal01-BU8z7oT_.js";import{s as nl}from"./Plus-BzpqhVU8.js";import{s as al}from"./Trash01-aSl--BGd.js";import{M as zt}from"./multi-select-Cp5gIPzv.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-DPXDtN3F.js";import{e as ys,T as cl}from"./time-range-picker-DDjkoMQs.js";import{T as dl}from"./textarea-3iEFQij9.js";import{C as Ds}from"./collection-tabs-Wktk7Bil.js";import{S as ml}from"./switch-DEje7fmz.js";import{L as ul}from"./label-D8u4gNcM.js";import{I as It}from"./integration-icon-DbiCbrD7.js";import{A as fl,a as xl,b as pl}from"./alert-N4205I9V.js";import{K as gt}from"./monitoring-stats-row-9YaCFmpo.js";import{b as Bt}from"./use-entitlements-BRKIl3Rz.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-JBqWWQDi.js";import{u as wl}from"./useSuspenseInfiniteQuery-kmW-ybmd.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DKmzxIAF.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Cie3FI8M.js";import{t as ss}from"./ChevronDown-uPv2ScPr.js";import{n as ls}from"./ChevronUp-BkmRXggG.js";import{u as Os}from"./use-id-selection-Bn7c-vY3.js";import{u as Fs}from"./use-infinite-scroll-Dv1yBngZ.js";import{u as Il}from"./useInfiniteQuery-C5Fx0PfA.js";import{g as Tl}from"./task-status-24VN3LnD.js";import{u as kl,d as Ml}from"./use-automations-DcCuqnYq.js";import{A as _l}from"./automation-runs-F5hXkFSl.js";import{i as Pl}from"./ArrowLeft-B8D7i2xh.js";import{E as Cs}from"./empty-state-D--R_kh-.js";import{O as $s}from"./watch-sse-pool-Bw3-M9_N.js";import{t as Dl}from"./task-key-Binbqohp.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-7qmkUUGV.js";import{F as $l}from"./feature-gate-DK9IZjbG.js";import"./SearchMd-BhCfkG_O.js";import"./access-gate-Cnf06l1a.js";import"./capability-load-error-DCMluNzB.js";import"./Tool01-ymE-fOFX.js";import"./ArrowRight-C1EmTlL-.js";import"./collapsible-BILoWprp.js";import"./use-copy-BFUDxfVH.js";import"./usage-stats-BH8jlFhP.js";import"./utils-CVEq3hMx.js";import"./markdown-SwM1Ir6g.js";import"./chat-context-BhwgXdxZ.js";import"./use-panel-navigate-DpEZACCY.js";import"./thread-route-sNjMl6Ie.js";import"./use-project-scope-C815BKEh.js";import"./use-view-draft-kind-1niLZJ6g.js";import"./use-blog-view-B-p1Bott.js";import"./use-organization-settings-BilLeNy9.js";import"./schema-CggWCz-G.js";import"./task-board-CZuAKwkd.js";import"./thread-intent-BNoxio0t.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-BtkBTCEv.js";import"./use-ai-providers-CFArCH41.js";import"./use-current-view-C1-z4fIk.js";import"./use-in-settings-BT3nEhsO.js";import"./use-decopilot-events-CZR337Lj.js";import"./use-mobile-BwxeIsTr.js";import"./File02-DEjt2PPW.js";import"./gateway-client-t5s1Cm0x.js";import"./form-Cb5OHNc9.js";import"./UserCheck01-3D5hYz4C.js";import"./use-task-board-items-DX_SyoB4.js";import"./config-Bn4oMb7y.js";import"./AlertCircle-DA6gE5vw.js";import"./CheckCircle-Bh1gNJET.js";import"./Eye-DL5oRAI4.js";import"./task-route-IxeWFQf4.js";import"./project-index-Be1RuOJ6.js";import"./TrendUp01-Cr4FP2fV.js";import"./shell-layout-DwJrXedk.js";import"./Globe04-DD86hrsf.js";import"./UserSquare-aJjYmjOR.js";import"./use-deployment-admin-DGQGQZ6E.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-Dq0BGBMq.js";import"./use-org-notice-BLcA1Iw0.js";import"./Monitor01-C4OHhcX6.js";import"./Zap-NAfA60T9.js";import"./command-BcxQrgUK.js";import"./index-Bi2fLJMb.js";import"./project-icon-BHcF2TIr.js";import"./use-navigate-to-agent-DjeX7xEq.js";import"./use-debounced-value-BkJoL4uj.js";import"./new-project-dialog-CrDlez-N.js";import"./repository-picker-CXtPhUQx.js";import"./github-icon-BoZrKkV3.js";import"./collection-search-Dj3oO1qn.js";import"./BookOpen01-UxGmri2e.js";import"./ShoppingBag01-KIefHp9K.js";import"./new-project-store-DleT4y6U.js";import"./legacy-admin-welcome-dialog-C4yFyjEg.js";import"./drawer-EGIO8vW1.js";import"./required-auth-layout-C_8jBLMB.js";import"./use-org-sso-DhdCpzK5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Jzrzu2q5.js";import"./types-BhUJ3bOA.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-BCiDUkCm.js";import"./use-mcp-prompts-B_BU9Jdl.js";import"./use-thread-outputs-HnCGzIoZ.js";import"./file-type-icon-Bhy3vcyl.js";import"./index-KBC7Pj7l.js";import"./ArrowUp-DyF0Rx2O.js";import"./ChevronSelectorVertical-CiFyE2Pu.js";import"./CreditCard01-C-H9qti1.js";import"./MessageCircle01-CQjeMfQj.js";import"./LayoutLeft-DHg_jNr0.js";import"./Minus-BM2zRSMr.js";import"./Sun-CoJn-J4w.js";import"./Upload01-DozMUWEF.js";import"./Users01-Cximoi8v.js";import"./editor-B_YvqDEq.js";import"./auth-D0WiD-6X.js";import"./checkbox-BwlyfOui.js";import"./index-BdQq_4o_.js";import"./scroll-area-KLc2042F.js";import"./calendar-ByOFe-ir.js";import"./chart-B0F_JJb6.js";import"./CategoricalChart-oGRIPAq4.js";import"./index-D1alBOdU.js";import"./tooltipContext-DRtEpNZN.js";import"./CartesianChart-Dv3UTRbp.js";import"./AreaChart-Y5-RpSOt.js";import"./infiniteQueryObserver-CnD94meO.js";import"./useQueries-BNC8S8pQ.js";import"./ReferenceLine-DmbAcSH6.js";import"./feature-paywall-BQdFbBKY.js";import"./plan-ladder-DAHXnxDP.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,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-D4zAZEeh.js";import{S as Ys}from"./search-input-C2L58fvI.js";import{E as Ht}from"./empty-state-i0RgGtWw.js";import{R as Xs}from"./require-capability-DnyEZ3xe.js";import{f as js}from"./pair-B9VTopdR.js";import{b as ts}from"./use-connection-Df_9bnNn.js";import{g as Ps}from"./connection-slug-C6S0oQlj.js";import{B as Lt}from"./badge-CamJsKC8.js";import{P as ds,a as ms,b as us}from"./popover-DKQLETgP.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-DGF6yL8r.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-CBIv-AL5.js";import{i as sl}from"./Key01-V-plVH8s.js";import{i as ll}from"./Play-B48hJa64.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DFVcXi2W.js";import{u as rl}from"./use-mcp-client-DWGLQdXd.js";import{u as il}from"./repository-binding-n3PcTj5W.js";import{n as Ot}from"./LinkBroken01-C4BH9PJk.js";import{c as ol}from"./SwitchHorizontal01-BTEqc04d.js";import{s as nl}from"./Plus-Bvk6TEoj.js";import{s as al}from"./Trash01-C00iOBQB.js";import{M as zt}from"./multi-select-v2MphKjq.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-49MR6azA.js";import{e as ys,T as cl}from"./time-range-picker-ChDJ8FPk.js";import{T as dl}from"./textarea-7Sqa9SEq.js";import{C as Ds}from"./collection-tabs-Do3VaUL9.js";import{S as ml}from"./switch-DK7LFSes.js";import{L as ul}from"./label-BpM98tac.js";import{I as It}from"./integration-icon-BIDY0_8Y.js";import{A as fl,a as xl,b as pl}from"./alert-BmJHuGNf.js";import{K as gt}from"./monitoring-stats-row-oEVqK40A.js";import{b as Bt}from"./use-entitlements-BBAwS2JD.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-aHZtFnUd.js";import{u as wl}from"./useSuspenseInfiniteQuery-D5Kn6VyM.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-DLoxxUKp.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-zwIDqi9O.js";import{t as ss}from"./ChevronDown-L1RduSWg.js";import{n as ls}from"./ChevronUp-hn_BcMX-.js";import{u as Os}from"./use-id-selection-d9WtjRjN.js";import{u as Fs}from"./use-infinite-scroll-B9PxMRZD.js";import{u as Il}from"./useInfiniteQuery-K8oCvn2v.js";import{g as Tl}from"./task-status-BGN7G1ph.js";import{u as kl,d as Ml}from"./use-automations-BGPanOv6.js";import{A as _l}from"./automation-runs-DZfSB9de.js";import{i as Pl}from"./ArrowLeft-BCdlXJnc.js";import{E as Cs}from"./empty-state-BQ3leEYD.js";import{O as $s}from"./watch-sse-pool-B9QxkAI3.js";import{t as Dl}from"./task-key-WwiMwV7X.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-DvFuV37x.js";import{F as $l}from"./feature-gate-CUzBYSVg.js";import"./SearchMd-lJZx4ys3.js";import"./access-gate-CJyV2IQK.js";import"./capability-load-error-B3ALNSsg.js";import"./Tool01-CuK8_xpK.js";import"./ArrowRight-CNfAAPFn.js";import"./collapsible-fh6xE0W6.js";import"./use-copy-DmG9bn6Y.js";import"./usage-stats-BiXE7t-o.js";import"./utils-CVEq3hMx.js";import"./markdown-DWN586Xq.js";import"./chat-context-kuwat9Zp.js";import"./use-panel-navigate-Cr2v02C3.js";import"./thread-route-DotOHAlX.js";import"./use-project-scope-BXRinCYb.js";import"./use-view-draft-kind-BLecf4F_.js";import"./use-blog-view-Cxdj4uSu.js";import"./use-organization-settings-OVUaywhs.js";import"./schema-BG6AHPWD.js";import"./task-board-C24cF7O1.js";import"./thread-intent-C7XVii2Y.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-cbg630xz.js";import"./use-ai-providers-BPDfMGmO.js";import"./use-current-view-BpjWsRmy.js";import"./use-in-settings-ClwRJ_Tc.js";import"./use-decopilot-events-CJGAurUR.js";import"./use-mobile-Cxsh7m9X.js";import"./File02-Cq4haxMC.js";import"./gateway-client-DGLOUuHv.js";import"./form-CWHbQDen.js";import"./UserCheck01-Dnnv6qzl.js";import"./use-task-board-items-CmA9KjLs.js";import"./config-BdmxgNpF.js";import"./AlertCircle-xcW2fRsN.js";import"./CheckCircle-CGiVBHq1.js";import"./Eye-BgZwKqY2.js";import"./task-route-BmUnrQXR.js";import"./project-index-W8FXW-6M.js";import"./TrendUp01-D52fc-S-.js";import"./shell-layout-DRrSF92W.js";import"./Globe04-Gqo8FWLb.js";import"./UserSquare-Br0ylxlC.js";import"./use-deployment-admin-BX2qXW-2.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-CE6c7i3i.js";import"./use-org-notice-DwvEJ13u.js";import"./Monitor01-FVdupyIO.js";import"./Zap-CkG3OOIL.js";import"./command-C5c9xxo6.js";import"./index-CO_aaGMC.js";import"./project-icon-U6Iksgvy.js";import"./use-navigate-to-agent-BIZctK6l.js";import"./use-debounced-value-CzRJcWqp.js";import"./new-project-dialog-BB7lkc90.js";import"./repository-picker-D6iz0LSt.js";import"./github-icon-tttsztW4.js";import"./collection-search-CMQBkzx4.js";import"./BookOpen01-ByHdrfXb.js";import"./ShoppingBag01-Ce-IsP1d.js";import"./new-project-store-AGiWlTxK.js";import"./legacy-admin-welcome-dialog-B20HwZP4.js";import"./drawer-DmBGYsSI.js";import"./required-auth-layout-DyjCxKYD.js";import"./use-org-sso-CY5B45CW.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C48AtEQ1.js";import"./types-cMCbWf0m.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-B1gTxSfc.js";import"./use-mcp-prompts-BEtNL37X.js";import"./use-thread-outputs-Dl2UvcUX.js";import"./file-type-icon-6cUnbJSX.js";import"./index-D07va7UH.js";import"./ArrowUp-NxqJFghp.js";import"./ChevronSelectorVertical-R-v88Ujt.js";import"./CreditCard01-I11lzZp8.js";import"./MessageCircle01-BXDua8oN.js";import"./LayoutLeft-Dh-xvGQJ.js";import"./Minus-CPSsigVU.js";import"./Sun-DDXuqLa1.js";import"./Upload01-CF0QTA2R.js";import"./Users01-WL4ZoQTM.js";import"./editor-cG8bavVY.js";import"./auth-CBSiR73H.js";import"./checkbox-DfLNNBpA.js";import"./index-BdQq_4o_.js";import"./scroll-area-v2fkoJDu.js";import"./calendar-HgHcy92P.js";import"./chart-DXZAnmcF.js";import"./CategoricalChart-W2F9o7wJ.js";import"./index-Dgf1S0ZI.js";import"./tooltipContext-BTH1KLDy.js";import"./CartesianChart-Bandx1cs.js";import"./AreaChart-B2pMCC5D.js";import"./infiniteQueryObserver-CNIZET2k.js";import"./useQueries-DLlqEm7S.js";import"./ReferenceLine-Dlp-ZxjE.js";import"./feature-paywall-Da0veXE_.js";import"./plan-ladder-BQRozUnr.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{c as I,b as X,r as $,m as B,j as s,a4 as Re,e as nt,t as je,D as it,v as lt,w as ot,x as at,y as ct,B as Fe,au as dt,Y as ke,a5 as ut,E as H,X as ft,Z as mt,_ as ht,d as pt,aB as gt,l as bt,H as xt,ar as $e,L as Ye,$ as jt,at as Ge,aC as vt,P as yt}from"./index-BsAwgxIf.js";import{u as Ie,c as Ze,g as St,h as wt,i as Ct}from"./use-sidebar-collapsed-CSFUmB9m.js";import{S as _t,a as kt,b as Ot}from"./sheet-DKmzxIAF.js";import{u as Rt}from"./use-mobile-BwxeIsTr.js";import{u as zt,a as Et,D as Dt,c as Nt,C as Tt,P as Lt}from"./task-key-Binbqohp.js";import{S as Pt,v as At,u as Mt}from"./sortable.esm-xHKM0aSe.js";import{i as $t}from"./Tool01-ymE-fOFX.js";import{t as It,r as Kt,u as Ft,v as Ut,A as Wt,w as Ue}from"./agent-icon-B9nZhdi2.js";import{s as Bt}from"./Plus-BzpqhVU8.js";import{i as Ht}from"./UserSquare-aJjYmjOR.js";import{a as Xt}from"./UserCheck01-3D5hYz4C.js";import{s as qe}from"./XClose-Dq0BGBMq.js";import{T as ge,a as be,c as xe}from"./tooltip-r0LfLYi3.js";import{C as Pe,f as Yt,g as Gt,e as Zt}from"./context-menu-CXequwNl.js";import{a as qt,O as Ve,w as Vt,b as Jt,c as Qt,E as es,r as Oe,d as ts,e as ss,h as rs,t as ns,f as Je,m as is,o as ls}from"./use-org-notice-BLcA1Iw0.js";import{C as os}from"./create-organization-dialog-BOcGysWt.js";import{P as as}from"./project-apps-B94DpdMu.js";import{u as cs,a as ds}from"./use-recent-apps-Cr_xiDfS.js";import{a as us}from"./use-navigate-to-agent-DjeX7xEq.js";import{a as fs,u as ms}from"./use-project-scope-C815BKEh.js";import{C as We,a as hs,b as ps,c as gs,d as bs}from"./command-BcxQrgUK.js";import{u as xs}from"./use-debounced-value-BkJoL4uj.js";import{n as js}from"./BookOpen01-UxGmri2e.js";import{F as vs,a as Ae,b as ys,c as Qe}from"./feedback-BqoIMOg7.js";import{T as Ss}from"./textarea-3iEFQij9.js";import{a as ws}from"./thread-button-ChRjFza7.js";function Cs(t){const e=I.c(48),{open:n,onOpenChange:r,orgs:i,currentSlug:c,onSelect:l}=t,d=X(),[o,f]=$.useState("");let b;e[0]!==o?(b=o.trim(),e[0]=o,e[1]=b):b=e[1];const h=b,p=xs(h,150),m=h.length>0,u=p===h,{hits:v,isSearching:j,isStale:C,isError:w}=qt(m?p:""),a=m?v:i;let x;e[2]!==r?(x=L=>{r(L),L||f("")},e[2]=r,e[3]=x):x=e[3];const g=x;let y;e[4]!==d?(y=d("sidebar.rail.searchOrganizations"),e[4]=d,e[5]=y):y=e[5];let S;e[6]!==d?(S=d("sidebar.rail.searchPlaceholder"),e[6]=d,e[7]=S):S=e[7];let k;e[8]!==d?(k=d("sidebar.rail.searchPlaceholder"),e[8]=d,e[9]=k):k=e[9];let _;e[10]!==o||e[11]!==k?(_=s.jsx(hs,{value:o,onValueChange:f,placeholder:k}),e[10]=o,e[11]=k,e[12]=_):_=e[12];const T=m&&(C||!u)&&"opacity-50";let z;e[13]!==T?(z=B(T),e[13]=T,e[14]=z):z=e[14];let O;e[15]!==w||e[16]!==m||e[17]!==d?(O=m&&w&&s.jsx(We,{children:d("sidebar.rail.searchFailed")}),e[15]=w,e[16]=m,e[17]=d,e[18]=O):O=e[18];let E;e[19]!==w||e[20]!==j||e[21]!==a.length||e[22]!==u||e[23]!==d?(E=!w&&u&&!j&&a.length===0&&s.jsx(We,{children:d("sidebar.rail.searchEmpty")}),e[19]=w,e[20]=j,e[21]=a.length,e[22]=u,e[23]=d,e[24]=E):E=e[24];let D;if(e[25]!==c||e[26]!==l||e[27]!==g||e[28]!==a||e[29]!==d){let L;e[31]!==c||e[32]!==l||e[33]!==g||e[34]!==d?(L=P=>s.jsxs(ps,{value:P.slug,onSelect:()=>{g(!1),P.slug!==c&&l(P.slug)},className:"gap-2.5",children:[s.jsx(Ve,{org:P,size:"sm"}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:P.name}),P.slug===c&&s.jsx("span",{className:"text-meta shrink-0",children:d("sidebar.rail.currentOrganization")})]},P.id),e[31]=c,e[32]=l,e[33]=g,e[34]=d,e[35]=L):L=e[35],D=a.map(L),e[25]=c,e[26]=l,e[27]=g,e[28]=a,e[29]=d,e[30]=D}else D=e[30];let R;e[36]!==E||e[37]!==D||e[38]!==z||e[39]!==O?(R=s.jsxs(gs,{className:z,children:[O,E,D]}),e[36]=E,e[37]=D,e[38]=z,e[39]=O,e[40]=R):R=e[40];let A;return e[41]!==n||e[42]!==g||e[43]!==R||e[44]!==y||e[45]!==S||e[46]!==_?(A=s.jsxs(bs,{open:n,onOpenChange:g,title:y,description:S,shouldFilter:!1,children:[_,R]}),e[41]=n,e[42]=g,e[43]=R,e[44]=y,e[45]=S,e[46]=_,e[47]=A):A=e[47],A}function _s(t){const e=I.c(4),{size:n,className:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("path",{d:"M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.74 19.74 0 0 0 3.677 4.37a.07.07 0 0 0-.032.028C.533 9.046-.32 13.58.099 18.058a.082.082 0 0 0 .031.056 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.042-.106 13.1 13.1 0 0 1-1.872-.892.077.077 0 0 1-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 0 1 .078-.01c3.927 1.793 8.18 1.793 12.061 0a.074.074 0 0 1 .079.009c.12.099.246.198.373.292a.077.077 0 0 1-.007.128 12.3 12.3 0 0 1-1.873.891.077.077 0 0 0-.041.107c.36.698.772 1.363 1.225 1.993a.076.076 0 0 0 .084.029 19.84 19.84 0 0 0 6.002-3.03.077.077 0 0 0 .032-.055c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.029ZM8.02 15.331c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.946 2.418-2.157 2.418Z"}),e[0]=i):i=e[0];let c;return e[1]!==r||e[2]!==n?(c=s.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:r,children:i}),e[1]=r,e[2]=n,e[3]=c):c=e[3],c}const ks=250;function Os(){return typeof navigator<"u"&&!!navigator.mediaDevices?.getDisplayMedia}function Be(t,e,n){return new Promise(r=>t.toBlob(r,e,n))}async function Rs(){const t=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include"});try{const e=document.createElement("video");e.muted=!0,e.srcObject=t,await e.play(),await new Promise(c=>setTimeout(c,ks));const n=document.createElement("canvas");n.width=e.videoWidth,n.height=e.videoHeight,n.getContext("2d")?.drawImage(e,0,0),e.srcObject=null;let r=await Be(n,"image/png");if((!r||r.size>Qe)&&(r=await Be(n,"image/jpeg",.85)),!r)throw new Error("Could not encode the screenshot");const i=r.type==="image/png"?"png":"jpg";return new File([r],`screenshot.${i}`,{type:r.type})}finally{for(const e of t.getTracks())e.stop()}}function He({kind:t,open:e,onOpenChange:n}){const r=X(),i=t==="problem"?{title:r("sidebar.problem.title"),placeholder:r("sidebar.problem.placeholder"),sent:r("sidebar.problem.sent"),failed:r("sidebar.problem.failed")}:{title:r("sidebar.feedback.title"),placeholder:r("sidebar.feedback.placeholder"),sent:r("sidebar.feedback.sent"),failed:r("sidebar.feedback.failed")},{org:c}=Re(),[l,d]=$.useState(""),[o,f]=$.useState([]),[b,h]=$.useState(!1),p=()=>{for(const a of o)URL.revokeObjectURL(a.previewUrl);f([]),d("")},m=a=>{const x=a.filter(S=>ys.includes(S.type)?S.size>Qe?(je.error(r("sidebar.feedback.screenshotTooLarge")),!1):!0:!1),g=Ae-o.length;x.length>g&&je.error(r("sidebar.feedback.tooManyScreenshots",{max:String(Ae)}));const y=x.slice(0,Math.max(g,0)).map(S=>({file:S,previewUrl:URL.createObjectURL(S)}));y.length>0&&f(S=>[...S,...y])},u=a=>{URL.revokeObjectURL(a.previewUrl),f(x=>x.filter(g=>g!==a))},v=async()=>{h(!0);try{m([await Rs()])}catch(a){a instanceof DOMException&&a.name==="NotAllowedError"||(console.error("[feedback] screenshot failed",a),je.error(r("sidebar.feedback.screenshotFailed")))}finally{h(!1)}},j=a=>{const x=Array.from(a.clipboardData.files).filter(g=>g.type.startsWith("image/"));x.length!==0&&(a.preventDefault(),m(x))},C=nt({mutationFn:async()=>{const a=new FormData;a.set("kind",t),a.set("message",l.trim()),a.set("pageUrl",window.location.href);for(const g of o)a.append("screenshot",g.file);const x=await fetch(`/api/${encodeURIComponent(c.slug)}/feedback`,{method:"POST",body:a});if(!x.ok)throw new Error(`Feedback failed: ${x.status}`)},onSuccess:()=>{je.success(i.sent),p(),n(!1)},onError:()=>je.error(i.failed)}),w=l.trim().length>0&&!C.isPending;return s.jsx(it,{open:e&&!b,onOpenChange:n,children:s.jsxs(lt,{className:"sm:max-w-lg","aria-describedby":void 0,children:[s.jsx(ot,{children:s.jsx(at,{children:i.title})}),s.jsx(Ss,{autoFocus:!0,value:l,onChange:a=>d(a.target.value),onPaste:j,onKeyDown:a=>{a.key==="Enter"&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),w&&C.mutate())},placeholder:i.placeholder,className:"min-h-32 max-h-80",maxLength:vs}),o.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((a,x)=>s.jsxs("div",{className:"group relative size-20 overflow-hidden rounded-lg shadow-edge",children:[s.jsx("a",{href:a.previewUrl,target:"_blank",rel:"noreferrer",children:s.jsx("img",{src:a.previewUrl,alt:r("sidebar.feedback.screenshotAlt",{n:String(x+1)}),className:"size-full object-cover"})}),s.jsx("button",{type:"button",onClick:()=>u(a),"aria-label":r("sidebar.feedback.removeScreenshot"),className:"absolute top-1 right-1 flex size-5 items-center justify-center rounded-full bg-background/90 text-foreground opacity-0 shadow-edge transition-opacity group-hover:opacity-100 focus-visible:opacity-100",children:s.jsx(qe,{size:12})})]},a.previewUrl))}),s.jsxs(ct,{className:"sm:justify-between",children:[Os()?s.jsxs(Fe,{type:"button",variant:"outline",onClick:v,disabled:o.length>=Ae,children:[s.jsx(It,{size:14}),r("sidebar.feedback.takeScreenshot")]}):s.jsx("span",{}),s.jsx(Fe,{type:"button",onClick:()=>C.mutate(),disabled:!w,children:C.isPending?r("sidebar.feedback.sending"):r("sidebar.feedback.send")})]})]})})}function ve(t){const e=I.c(11),{active:n,label:r,children:i}=t,c=n?"h-7 opacity-100":"h-2 opacity-0 group-hover/rail:opacity-60";let l;e[0]!==c?(l=B("w-1 rounded-r-full bg-foreground","transition-[height,opacity] duration-200 ease-[var(--ease-out-cubic)]","motion-reduce:transition-none",c),e[0]=c,e[1]=l):l=e[1];let d;e[2]!==l?(d=s.jsx("span",{"aria-hidden":!0,className:"absolute top-0 -left-2.5 flex h-9 items-center",children:s.jsx("span",{className:l})}),e[2]=l,e[3]=d):d=e[3];let o;e[4]!==n||e[5]!==r?(o=r&&s.jsx("span",{"aria-hidden":!0,className:B("line-clamp-2 w-full px-0.5 text-center text-2xs text-ellipsis transition-colors",n?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground"),children:r}),e[4]=n,e[5]=r,e[6]=o):o=e[6];let f;return e[7]!==i||e[8]!==d||e[9]!==o?(f=s.jsxs("div",{className:"group/rail relative flex w-full shrink-0 flex-col items-center gap-1",children:[d,i,o]}),e[7]=i,e[8]=d,e[9]=o,e[10]=f):f=e[10],f}const zs="https://docs.decocms.com/",Es="https://discord.gg/EQkX7CymV";function Ds(){const t=I.c(39),e=X(),{org:n}=Re(),[r,i]=$.useState(null),c=!!n.id;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=_=>{H("help_menu_dialog_opened",{kind:_}),i(_)},t[0]=l):l=t[0];const d=l;let o;t[1]!==e?(o=e("sidebar.help.button"),t[1]=e,t[2]=o):o=t[2];let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ft,{size:18}),t[3]=f):f=t[3];let b;t[4]!==o?(b=s.jsx(ge,{asChild:!0,children:s.jsx(ft,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":o,onClick:Ls,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring data-[state=open]:bg-sidebar-accent data-[state=open]:text-foreground",children:f})})}),t[4]=o,t[5]=b):b=t[5];let h;t[6]!==e?(h=e("sidebar.help.button"),t[6]=e,t[7]=h):h=t[7];let p;t[8]!==h?(p=s.jsx(be,{side:"right",children:h}),t[8]=h,t[9]=p):p=t[9];let m;t[10]!==b||t[11]!==p?(m=s.jsxs(xe,{children:[b,p]}),t[10]=b,t[11]=p,t[12]=m):m=t[12];let u;t[13]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(js,{}),t[13]=u):u=t[13];let v;t[14]!==e?(v=e("sidebar.help.guides"),t[14]=e,t[15]=v):v=t[15];let j;t[16]!==v?(j=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:zs,target:"_blank",rel:"noopener noreferrer",onClick:Ts,children:[u,v]})}),t[16]=v,t[17]=j):j=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(_s,{}),t[18]=C):C=t[18];let w;t[19]!==e?(w=e("sidebar.help.discord"),t[19]=e,t[20]=w):w=t[20];let a;t[21]!==w?(a=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:Es,target:"_blank",rel:"noopener noreferrer",onClick:Ns,children:[C,w]})}),t[21]=w,t[22]=a):a=t[22];let x;t[23]!==c||t[24]!==e?(x=c&&s.jsxs(s.Fragment,{children:[s.jsx(dt,{}),s.jsxs(ke,{onSelect:()=>d("problem"),children:[s.jsx(ut,{}),e("sidebar.help.reportProblem")]}),s.jsxs(ke,{onSelect:()=>d("feedback"),children:[s.jsx(Kt,{}),e("sidebar.feedback.button")]})]}),t[23]=c,t[24]=e,t[25]=x):x=t[25];let g;t[26]!==a||t[27]!==x||t[28]!==j?(g=s.jsxs(mt,{side:"right",align:"end",className:"w-56",children:[j,a,x]}),t[26]=a,t[27]=x,t[28]=j,t[29]=g):g=t[29];let y;t[30]!==g||t[31]!==m?(y=s.jsx(ve,{active:!1,children:s.jsxs(ht,{children:[m,g]})}),t[30]=g,t[31]=m,t[32]=y):y=t[32];let S;t[33]!==c||t[34]!==r?(S=c&&s.jsxs(s.Fragment,{children:[s.jsx(He,{kind:"problem",open:r==="problem",onOpenChange:_=>i(_?"problem":null)}),s.jsx(He,{kind:"feedback",open:r==="feedback",onOpenChange:_=>i(_?"feedback":null)})]}),t[33]=c,t[34]=r,t[35]=S):S=t[35];let k;return t[36]!==y||t[37]!==S?(k=s.jsxs(s.Fragment,{children:[y,S]}),t[36]=y,t[37]=S,t[38]=k):k=t[38],k}function Ns(){return H("help_menu_discord_opened")}function Ts(){return H("help_menu_guides_opened")}function Ls(){return H("help_menu_opened")}function Ps(t){return globalThis.addEventListener("resize",t),()=>globalThis.removeEventListener("resize",t)}const As=()=>Je(globalThis.innerHeight),Ms=()=>Je(0);function $s(t){const e=I.c(59),{org:n,active:r,onSelect:i,pinned:c,onOpenSettings:l,onTogglePin:d,onHide:o}=t,f=X();let b;e[0]!==n.slug?(b={id:n.slug},e[0]=n.slug,e[1]=b):b=e[1];const{setNodeRef:h,listeners:p,transform:m,transition:u,isDragging:v}=Mt(b);let j;e[2]!==m?(j=Tt.Transform.toString(m?{...m,x:0}:null),e[2]=m,e[3]=j):j=e[3];const C=v?1:void 0,w=`rail-org-${n.slug}`;let a;e[4]!==j||e[5]!==C||e[6]!==w||e[7]!==u?(a={transform:j,transition:u,zIndex:C,viewTransitionName:w},e[4]=j,e[5]=C,e[6]=w,e[7]=u,e[8]=a):a=e[8];const x=n.name,g=r||void 0,y=r?"opacity-100":"opacity-60 hover:scale-105 hover:opacity-100",S=i&&"cursor-pointer";let k;e[9]!==y||e[10]!==S?(k=B("relative flex shrink-0 items-center justify-center rounded-xl focus-ring","transition-[opacity,transform] duration-150 ease-out",y,S),e[9]=y,e[10]=S,e[11]=k):k=e[11];let _;e[12]!==n?(_=s.jsx(Ve,{org:n,size:"lg"}),e[12]=n,e[13]=_):_=e[13];let T;e[14]!==c?(T=c&&s.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar",children:s.jsx(Ue,{size:9})}),e[14]=c,e[15]=T):T=e[15];let z;e[16]!==i||e[17]!==n.name||e[18]!==k||e[19]!==_||e[20]!==T||e[21]!==g?(z=s.jsx(ge,{asChild:!0,children:s.jsx(Yt,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":x,"aria-current":g,onClick:i,className:k,children:[_,T]})})}),e[16]=i,e[17]=n.name,e[18]=k,e[19]=_,e[20]=T,e[21]=g,e[22]=z):z=e[22];let O;e[23]!==n.name?(O=s.jsx(be,{side:"right",children:n.name}),e[23]=n.name,e[24]=O):O=e[24];let E;e[25]!==z||e[26]!==O?(E=s.jsxs(xe,{children:[z,O]}),e[25]=z,e[26]=O,e[27]=E):E=e[27];let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Xt,{}),e[28]=D):D=e[28];let R;e[29]!==f?(R=f("sidebar.rail.organizationSettings"),e[29]=f,e[30]=R):R=e[30];let A;e[31]!==l||e[32]!==R?(A=s.jsxs(Pe,{onSelect:l,children:[D,R]}),e[31]=l,e[32]=R,e[33]=A):A=e[33];let L;e[34]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Ue,{}),e[34]=L):L=e[34];let P;e[35]!==c||e[36]!==f?(P=f(c?"sidebar.rail.unpinOrganization":"sidebar.rail.pinOrganization"),e[35]=c,e[36]=f,e[37]=P):P=e[37];let F;e[38]!==d||e[39]!==P?(F=s.jsxs(Pe,{onSelect:d,children:[L,P]}),e[38]=d,e[39]=P,e[40]=F):F=e[40];let U;e[41]!==o||e[42]!==f?(U=o&&s.jsxs(Pe,{onSelect:o,children:[s.jsx($t,{}),f("sidebar.rail.hideOrganization")]}),e[41]=o,e[42]=f,e[43]=U):U=e[43];let Y;e[44]!==A||e[45]!==F||e[46]!==U?(Y=s.jsxs(Gt,{children:[A,F,U]}),e[44]=A,e[45]=F,e[46]=U,e[47]=Y):Y=e[47];let K;e[48]!==E||e[49]!==Y?(K=s.jsxs(Zt,{children:[E,Y]}),e[48]=E,e[49]=Y,e[50]=K):K=e[50];let W;e[51]!==r||e[52]!==K?(W=s.jsx(ve,{active:r,children:K}),e[51]=r,e[52]=K,e[53]=W):W=e[53];let G;return e[54]!==p||e[55]!==h||e[56]!==W||e[57]!==a?(G=s.jsx("div",{ref:h,...p,style:a,className:"w-full shrink-0 touch-none",children:W}),e[54]=p,e[55]=h,e[56]=W,e[57]=a,e[58]=G):G=e[58],G}function Is(t){const e=I.c(64),{project:n,orgSlug:r,active:i,onClose:c,onNavigate:l}=t,d=X();let o,f,b,h,p,m,u,v,j,C,w;if(e[0]!==i||e[1]!==l||e[2]!==r||e[3]!==n.icon||e[4]!==n.id||e[5]!==n.title){const L=Ut(n.icon,n.title);w="group/rail relative flex w-full flex-col items-center gap-1",b=xe,f=ge,C=!0,o=Ye,h=jt.root,e[17]!==r||e[18]!==n.id?(p={org:r,agentId:n.id},e[17]=r,e[18]=n.id,e[19]=p):p=e[19],m=n.title,u=i||void 0,e[20]!==l?(v=()=>{H("org_rail_recent_project_opened"),l?.()},e[20]=l,e[21]=v):v=e[21],j=B("flex shrink-0 rounded-lg focus-ring",L.text,i&&"ring-[1.5px] ring-current"),e[0]=i,e[1]=l,e[2]=r,e[3]=n.icon,e[4]=n.id,e[5]=n.title,e[6]=o,e[7]=f,e[8]=b,e[9]=h,e[10]=p,e[11]=m,e[12]=u,e[13]=v,e[14]=j,e[15]=C,e[16]=w}else o=e[6],f=e[7],b=e[8],h=e[9],p=e[10],m=e[11],u=e[12],v=e[13],j=e[14],C=e[15],w=e[16];let a;e[22]!==n.icon||e[23]!==n.title?(a=s.jsx(Wt,{icon:n.icon,name:n.title,size:"sm",className:"size-8 rounded-lg"}),e[22]=n.icon,e[23]=n.title,e[24]=a):a=e[24];let x;e[25]!==o||e[26]!==h||e[27]!==p||e[28]!==m||e[29]!==u||e[30]!==v||e[31]!==j||e[32]!==a?(x=s.jsx(o,{to:h,params:p,"aria-label":m,"aria-current":u,onClick:v,className:j,children:a}),e[25]=o,e[26]=h,e[27]=p,e[28]=m,e[29]=u,e[30]=v,e[31]=j,e[32]=a,e[33]=x):x=e[33];let g;e[34]!==f||e[35]!==x||e[36]!==C?(g=s.jsx(f,{asChild:C,children:x}),e[34]=f,e[35]=x,e[36]=C,e[37]=g):g=e[37];let y;e[38]!==n.title?(y=s.jsx(be,{side:"right",children:n.title}),e[38]=n.title,e[39]=y):y=e[39];let S;e[40]!==b||e[41]!==g||e[42]!==y?(S=s.jsxs(b,{children:[g,y]}),e[40]=b,e[41]=g,e[42]=y,e[43]=S):S=e[43];const k=i?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground";let _;e[44]!==k?(_=B("line-clamp-2 w-full text-center text-2xs break-words transition-colors",k),e[44]=k,e[45]=_):_=e[45];let T;e[46]!==n.title||e[47]!==_?(T=s.jsx("span",{"aria-hidden":!0,className:_,children:n.title}),e[46]=n.title,e[47]=_,e[48]=T):T=e[48];let z;e[49]!==n.title||e[50]!==d?(z=d("sidebar.rail.closeApp",{name:n.title}),e[49]=n.title,e[50]=d,e[51]=z):z=e[51];let O;e[52]!==c?(O=()=>{H("org_rail_recent_project_closed"),c()},e[52]=c,e[53]=O):O=e[53];let E,D;e[54]===Symbol.for("react.memo_cache_sentinel")?(E=B("absolute -top-1.5 right-[calc(50%-1.25rem)] flex size-4 cursor-pointer items-center justify-center rounded-full","bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar hover:text-foreground","opacity-0 transition-opacity duration-150 group-hover/rail:opacity-100 focus-visible:opacity-100 focus-visible:outline-none"),D=s.jsx(qe,{size:10}),e[54]=E,e[55]=D):(E=e[54],D=e[55]);let R;e[56]!==z||e[57]!==O?(R=s.jsx("button",{type:"button","aria-label":z,onClick:O,className:E,children:D}),e[56]=z,e[57]=O,e[58]=R):R=e[58];let A;return e[59]!==S||e[60]!==T||e[61]!==R||e[62]!==w?(A=s.jsxs("div",{className:w,children:[S,T,R]}),e[59]=S,e[60]=T,e[61]=R,e[62]=w,e[63]=A):A=e[63],A}const Ks={"site-editor":"/site-editor"};function Fs(t){const e=I.c(26),{app:n}=t,r=X(),i=as[n],c=Ks[n];if(!i||!c)return null;let l;e[0]!==i.labelKey||e[1]!==r?(l=r(i.labelKey),e[0]=i.labelKey,e[1]=r,e[2]=l):l=e[2];let d;e[3]!==i.labelKey||e[4]!==r?(d=r(i.labelKey),e[3]=i.labelKey,e[4]=r,e[5]=d):d=e[5];let o;e[6]!==i.tone?(o=B("flex size-9 shrink-0 items-center justify-center rounded-xl focus-ring opacity-100",i.tone),e[6]=i.tone,e[7]=o):o=e[7];let f;e[8]!==i.Icon?(f=s.jsx(i.Icon,{size:18}),e[8]=i.Icon,e[9]=f):f=e[9];let b;e[10]!==d||e[11]!==o||e[12]!==f||e[13]!==c?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Ye,{to:c,"aria-label":d,"aria-current":"page","data-testid":"org-rail-local-app",className:o,children:f})}),e[10]=d,e[11]=o,e[12]=f,e[13]=c,e[14]=b):b=e[14];let h;e[15]!==i.labelKey||e[16]!==r?(h=r(i.labelKey),e[15]=i.labelKey,e[16]=r,e[17]=h):h=e[17];let p;e[18]!==h?(p=s.jsx(be,{side:"right",children:h}),e[18]=h,e[19]=p):p=e[19];let m;e[20]!==b||e[21]!==p?(m=s.jsxs(xe,{children:[b,p]}),e[20]=b,e[21]=p,e[22]=m):m=e[22];let u;return e[23]!==l||e[24]!==m?(u=s.jsx(ve,{active:!0,label:l,children:m}),e[23]=l,e[24]=m,e[25]=u):u=e[25],u}function Us(){const{org:t}=Re();return cs(t.slug),null}function et(t){const e=I.c(77),{onNavigate:n}=t===void 0?{}:t,r=X(),i=pt(),{org:c}=Re(),l=gt();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={select:Xs},e[0]=d):d=e[0];const o=bt(d);let f;e[1]!==o||e[2]!==l?(f=o?l({to:"/$org",fuzzy:!0,pending:!0}):!1,e[1]=o,e[2]=l,e[3]=f):f=e[3];const b=f,h=b?b.org:c.slug,{data:p}=xt(),[m,u]=$.useState(!1),[v,j]=$.useState(!1),C=Ie(),{recent:w,forget:a}=us(c.slug),{projects:x}=fs(),g=ms(),y=ds(),S=y&&y.projectId===null?y.app:null,k=S?[]:w.flatMap(N=>x.filter(M=>M.id===N)),_=Vt(p??[],c),{recent:T}=Jt(),z=Qt();let O;e[4]===Symbol.for("react.memo_cache_sentinel")?(O=Ge.railOrgPrefs(),e[4]=O):O=e[4];const[E,D]=$e(O,es),R=Oe(E),A=$.useSyncExternalStore(Ps,As,Ms),{shown:L}=ts(ss(_,R,c.slug),T,c.slug,A,R.pinned);let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[5]=P):P=e[5];const F=zt(Et(Lt,P)),U=N=>{const{active:M,over:Ke}=N;Ke&&(H("org_rail_reordered"),D(rt=>is(Oe(rt),L.map(Hs),String(M.id),String(Ke.id))))},Y=N=>{n?.(),i({to:"/$org/home",params:{org:N},viewTransition:!0})},K=N=>{H("org_rail_travel"),n?.(),z(N,L.map(Bs))},W=()=>{if(H("org_rail_search_opened"),!c.id){j(!0);return}n?.(),ls()},G=!C&&"border-r border-sidebar-border";let Z;e[6]!==G?(Z=B("flex w-[68px] shrink-0 flex-col bg-sidebar",G),e[6]=G,e[7]=Z):Z=e[7];const st="flex min-h-0 flex-1 flex-col items-center gap-2.5 overflow-y-auto px-2.5 pt-3 pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";let q;e[8]!==r?(q=r("sidebar.rail.ariaLabel"),e[8]=r,e[9]=q):q=e[9];const ze=Dt,Ee=Nt,De=Pt,Ne=L.map(Ws),Te=At,Le=L.map(N=>s.jsxs($.Fragment,{children:[s.jsx($s,{org:N,active:N.slug===h,pinned:R.pinned.includes(N.slug),onSelect:N.slug!==c.slug?()=>K(N.slug):g?()=>Y(N.slug):void 0,onOpenSettings:()=>{n?.(),i({to:"/$org/settings",params:{org:N.slug},search:{thread:void 0}})},onTogglePin:()=>D(M=>ns(Oe(M),N.slug)),onHide:N.slug===c.slug?void 0:()=>D(M=>rs(Oe(M),N.slug))}),N.slug===c.slug&&k.length>0&&s.jsx("div",{style:{viewTransitionName:"rail-projects"},className:"-mx-1.5 flex w-[calc(100%+0.75rem)] flex-col items-center gap-3 rounded-[12px] bg-foreground/4 px-1 py-3",children:k.map(M=>s.jsx(Is,{project:M,orgSlug:c.slug,active:g===M.id,onClose:()=>a(M.id),onNavigate:n},M.id))})]},N.id));let V;e[10]!==De||e[11]!==Ne||e[12]!==Te||e[13]!==Le?(V=s.jsx(De,{items:Ne,strategy:Te,children:Le}),e[10]=De,e[11]=Ne,e[12]=Te,e[13]=Le,e[14]=V):V=e[14];let J;e[15]!==ze||e[16]!==U||e[17]!==F||e[18]!==Ee||e[19]!==V?(J=s.jsx(ze,{sensors:F,collisionDetection:Ee,onDragEnd:U,children:V}),e[15]=ze,e[16]=U,e[17]=F,e[18]=Ee,e[19]=V,e[20]=J):J=e[20];let Q;e[21]!==S?(Q=S&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"my-2 h-px w-6 shrink-0 bg-sidebar-border","aria-hidden":!0}),s.jsx(Fs,{app:S})]}),e[21]=S,e[22]=Q):Q=e[22];let ee;e[23]!==J||e[24]!==Q||e[25]!==q?(ee=s.jsxs("div",{className:st,"aria-label":q,children:[J,Q]}),e[23]=J,e[24]=Q,e[25]=q,e[26]=ee):ee=e[26];let te;e[27]!==r?(te=r("sidebar.rail.search"),e[27]=r,e[28]=te):te=e[28];let ye;e[29]===Symbol.for("react.memo_cache_sentinel")?(ye=s.jsx(Ht,{size:18}),e[29]=ye):ye=e[29];let se;e[30]!==W||e[31]!==te?(se=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":te,"aria-keyshortcuts":"Meta+K Control+K",onClick:W,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:ye})}),e[30]=W,e[31]=te,e[32]=se):se=e[32];let re;e[33]!==r?(re=r("sidebar.rail.search"),e[33]=r,e[34]=re):re=e[34];let Se;e[35]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx("span",{className:"ml-2 text-muted-foreground",children:vt.commandPalette.keys.join("")}),e[35]=Se):Se=e[35];let ne;e[36]!==re?(ne=s.jsxs(be,{side:"right",children:[re,Se]}),e[36]=re,e[37]=ne):ne=e[37];let ie;e[38]!==se||e[39]!==ne?(ie=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[se,ne]})}),e[38]=se,e[39]=ne,e[40]=ie):ie=e[40];let le;e[41]!==r?(le=r("sidebar.picker.newOrganization"),e[41]=r,e[42]=le):le=e[42];let oe;e[43]!==u?(oe=()=>u(!0),e[43]=u,e[44]=oe):oe=e[44];let we;e[45]===Symbol.for("react.memo_cache_sentinel")?(we=s.jsx(Bt,{size:18}),e[45]=we):we=e[45];let ae;e[46]!==le||e[47]!==oe?(ae=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":le,onClick:oe,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:we})}),e[46]=le,e[47]=oe,e[48]=ae):ae=e[48];let ce;e[49]!==r?(ce=r("sidebar.picker.newOrganization"),e[49]=r,e[50]=ce):ce=e[50];let de;e[51]!==ce?(de=s.jsx(be,{side:"right",children:ce}),e[51]=ce,e[52]=de):de=e[52];let ue;e[53]!==ae||e[54]!==de?(ue=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[ae,de]})}),e[53]=ae,e[54]=de,e[55]=ue):ue=e[55];let Ce;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsx(Ds,{}),e[56]=Ce):Ce=e[56];let fe;e[57]!==ie||e[58]!==ue?(fe=s.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1 px-2.5 pt-2 pb-3",children:[ie,ue,Ce]}),e[57]=ie,e[58]=ue,e[59]=fe):fe=e[59];let me;e[60]!==ee||e[61]!==fe||e[62]!==Z?(me=s.jsxs("div",{className:Z,children:[ee,fe]}),e[60]=ee,e[61]=fe,e[62]=Z,e[63]=me):me=e[63];let he;e[64]!==c.slug||e[65]!==_||e[66]!==v||e[67]!==j||e[68]!==K?(he=s.jsx(Cs,{open:v,onOpenChange:j,orgs:_,currentSlug:c.slug,onSelect:K}),e[64]=c.slug,e[65]=_,e[66]=v,e[67]=j,e[68]=K,e[69]=he):he=e[69];let pe;e[70]!==m||e[71]!==u?(pe=s.jsx(os,{open:m,onOpenChange:u}),e[70]=m,e[71]=u,e[72]=pe):pe=e[72];let _e;return e[73]!==me||e[74]!==he||e[75]!==pe?(_e=s.jsxs(s.Fragment,{children:[me,he,pe]}),e[73]=me,e[74]=he,e[75]=pe,e[76]=_e):_e=e[76],_e}function Ws(t){return t.slug}function Bs(t){return t.slug}function Hs(t){return t.slug}function Xs(t){return t.isLoading}function Ys(t){const e=I.c(15),{width:n,minWidth:r,maxWidth:i,onPointerDown:c,onKeyDown:l,onDoubleClick:d}=t,o=X(),{isMobile:f}=Ze(),b=Ie();if(f||b)return null;let h;e[0]!==o?(h=o("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=o,e[1]=h):h=e[1];let p;e[2]!==o?(p=o("sidebar.sidebarResizeHandle.title"),e[2]=o,e[3]=p):p=e[3];let m,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={left:"var(--sidebar-width)"},u=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border group-focus-visible/resize:bg-ring"}),e[4]=m,e[5]=u):(m=e[4],u=e[5]);let v;return e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==l||e[10]!==c||e[11]!==h||e[12]!==p||e[13]!==n?(v=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":h,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":i,title:p,tabIndex:0,onPointerDown:c,onKeyDown:l,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize focus-visible:outline-none",style:m,children:u}),e[6]=i,e[7]=r,e[8]=d,e[9]=l,e[10]=c,e[11]=h,e[12]=p,e[13]=n,e[14]=v):v=e[14],v}const Me=400,Xe=16,Gs="sidebar.width.v2";function Zs(){const t=I.c(14),e=qs;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=u=>typeof u=="number"?e(u):192,t[0]=n):n=t[0];const[r,i]=$e(Gs,n),c=$.useRef(null);let l;t[1]!==i||t[2]!==r?(l=u=>{u.preventDefault();const v=u.clientX,j=e(r),C=c.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),w=C?Array.from(C.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of w)g.style.transition="none";const a=g=>{const y=e(j+(g.clientX-v));C?.style.setProperty("--sidebar-width",`${y}px`)},x=g=>{const y=e(j+(g.clientX-v));i(y);for(const S of w)S.style.transition="";window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",a),window.addEventListener("pointerup",x),window.addEventListener("pointercancel",x)},t[1]=i,t[2]=r,t[3]=l):l=t[3];const d=l;let o;t[4]!==i?(o=()=>{i(192)},t[4]=i,t[5]=o):o=t[5];const f=o;let b;t[6]!==i||t[7]!==r?(b=u=>{if(u.key==="ArrowLeft")i(e(r-Xe));else if(u.key==="ArrowRight")i(e(r+Xe));else if(u.key==="Home")i(192);else if(u.key==="End")i(Me);else return;u.preventDefault()},t[6]=i,t[7]=r,t[8]=b):b=t[8];const h=b,p=e(r);let m;return t[9]!==h||t[10]!==d||t[11]!==f||t[12]!==p?(m={width:p,minWidth:192,maxWidth:Me,wrapperRef:c,onStartResize:d,onKeyDownResize:h,resetWidth:f},t[9]=h,t[10]=d,t[11]=f,t[12]=p,t[13]=m):m=t[13],m}function qs(t){return Math.max(192,Math.min(Me,t))}const tt=$.createContext(null);function Vs(){const t=$.use(tt);if(!t)throw new Error("Layout regions require a Layout");return t}function Js({children:t,notice:e,outsideOrg:n}){const r=Rt(),[i,c]=$e(Ge.sidebarOpen(),!0),l=Zs();return s.jsx(tt,{value:{isMobile:r,resize:l},children:s.jsx(St,{open:i,onOpenChange:c,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[e,s.jsxs("div",{className:"flex flex-1 flex-row min-h-0",children:[!n&&s.jsx(Us,{}),!r&&(n?.rail??!0)&&s.jsx(et,{}),s.jsx(wt,{ref:l.wrapperRef,className:"flex-1 bg-sidebar relative min-h-0",style:{"--sidebar-width":`${l.width}px`,"--sidebar-width-icon":"0px"},children:s.jsx(ws,{children:t})})]})]})})})}function Qs(t){const e=I.c(36),{children:n,renderMobile:r}=t,i=X(),{isMobile:c,resize:l}=Vs(),{openMobile:d,setOpenMobile:o}=Ze(),f=Ie();let b;e[0]!==o?(b=()=>o(!1),e[0]=o,e[1]=b):b=e[1];const h=b;if(!c){let x;e[2]!==n||e[3]!==f?(x=s.jsx("div",{className:"contents",inert:f,children:n}),e[2]=n,e[3]=f,e[4]=x):x=e[4];let g;e[5]!==l.maxWidth||e[6]!==l.minWidth||e[7]!==l.onKeyDownResize||e[8]!==l.onStartResize||e[9]!==l.resetWidth||e[10]!==l.width?(g=s.jsx(Ys,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,onPointerDown:l.onStartResize,onKeyDown:l.onKeyDownResize,onDoubleClick:l.resetWidth}),e[5]=l.maxWidth,e[6]=l.minWidth,e[7]=l.onKeyDownResize,e[8]=l.onStartResize,e[9]=l.resetWidth,e[10]=l.width,e[11]=g):g=e[11];let y;return e[12]!==x||e[13]!==g?(y=s.jsxs(s.Fragment,{children:[x,g]}),e[12]=x,e[13]=g,e[14]=y):y=e[14],y}let p;e[15]!==i?(p=i("layouts.shellControls.navigationTitle"),e[15]=i,e[16]=p):p=e[16];let m;e[17]!==p?(m=s.jsx(_t,{className:"sr-only",children:p}),e[17]=p,e[18]=m):m=e[18];let u;e[19]!==h?(u=s.jsx(et,{onNavigate:h}),e[19]=h,e[20]=u):u=e[20];let v;e[21]!==h||e[22]!==r?(v=r({onClose:h}),e[21]=h,e[22]=r,e[23]=v):v=e[23];let j;e[24]!==v?(j=s.jsx("div",{className:"min-w-0 flex-1",children:v}),e[24]=v,e[25]=j):j=e[25];let C;e[26]!==u||e[27]!==j?(C=s.jsxs("div",{className:"flex h-full min-h-0",children:[u,j]}),e[26]=u,e[27]=j,e[28]=C):C=e[28];let w;e[29]!==m||e[30]!==C?(w=s.jsxs(kt,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",onOpenAutoFocus:er,children:[m,C]}),e[29]=m,e[30]=C,e[31]=w):w=e[31];let a;return e[32]!==d||e[33]!==o||e[34]!==w?(a=s.jsx(Ot,{open:d,onOpenChange:o,children:w}),e[32]=d,e[33]=o,e[34]=w,e[35]=a):a=e[35],a}function er(t){return t.preventDefault()}function tr(t){const e=I.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"transparent",containerType:"inline-size"},e[0]=r):r=e[0];let i;return e[1]!==n?(i=s.jsx(Ct,{className:"flex flex-col min-h-0",style:r,children:s.jsx(yt,{variant:"plain",className:"bg-sidebar",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:n})})}),e[1]=n,e[2]=i):i=e[2],i}const Rr=Object.assign(Js,{Sidebar:Qs,Content:tr});export{Rr as L};
1
+ import{c as I,b as X,r as $,m as B,j as s,a4 as Re,e as nt,t as je,D as it,v as lt,w as ot,x as at,y as ct,B as Fe,au as dt,Y as ke,a5 as ut,E as H,X as ft,Z as mt,_ as ht,d as pt,aB as gt,l as bt,H as xt,ar as $e,L as Ye,$ as jt,at as Ge,aC as vt,P as yt}from"./index-D4zAZEeh.js";import{u as Ie,c as Ze,g as St,h as wt,i as Ct}from"./use-sidebar-collapsed-DK4JHLku.js";import{S as _t,a as kt,b as Ot}from"./sheet-DLoxxUKp.js";import{u as Rt}from"./use-mobile-Cxsh7m9X.js";import{u as zt,a as Et,D as Dt,c as Nt,C as Tt,P as Lt}from"./task-key-WwiMwV7X.js";import{S as Pt,v as At,u as Mt}from"./sortable.esm-DgdmBaPW.js";import{i as $t}from"./Tool01-CuK8_xpK.js";import{t as It,r as Kt,u as Ft,v as Ut,A as Wt,w as Ue}from"./agent-icon-CBIv-AL5.js";import{s as Bt}from"./Plus-Bvk6TEoj.js";import{i as Ht}from"./UserSquare-Br0ylxlC.js";import{a as Xt}from"./UserCheck01-Dnnv6qzl.js";import{s as qe}from"./XClose-CE6c7i3i.js";import{T as ge,a as be,c as xe}from"./tooltip-DGF6yL8r.js";import{C as Pe,f as Yt,g as Gt,e as Zt}from"./context-menu-DvQobFsl.js";import{a as qt,O as Ve,w as Vt,b as Jt,c as Qt,E as es,r as Oe,d as ts,e as ss,h as rs,t as ns,f as Je,m as is,o as ls}from"./use-org-notice-DwvEJ13u.js";import{C as os}from"./create-organization-dialog-BKb453UR.js";import{P as as}from"./project-apps-B-BQ_WLB.js";import{u as cs,a as ds}from"./use-recent-apps-GE97XkJ8.js";import{a as us}from"./use-navigate-to-agent-BIZctK6l.js";import{a as fs,u as ms}from"./use-project-scope-BXRinCYb.js";import{C as We,a as hs,b as ps,c as gs,d as bs}from"./command-C5c9xxo6.js";import{u as xs}from"./use-debounced-value-CzRJcWqp.js";import{n as js}from"./BookOpen01-ByHdrfXb.js";import{F as vs,a as Ae,b as ys,c as Qe}from"./feedback-BqoIMOg7.js";import{T as Ss}from"./textarea-7Sqa9SEq.js";import{a as ws}from"./thread-button-B0qrnEQv.js";function Cs(t){const e=I.c(48),{open:n,onOpenChange:r,orgs:i,currentSlug:c,onSelect:l}=t,d=X(),[o,f]=$.useState("");let b;e[0]!==o?(b=o.trim(),e[0]=o,e[1]=b):b=e[1];const h=b,p=xs(h,150),m=h.length>0,u=p===h,{hits:v,isSearching:j,isStale:C,isError:w}=qt(m?p:""),a=m?v:i;let x;e[2]!==r?(x=L=>{r(L),L||f("")},e[2]=r,e[3]=x):x=e[3];const g=x;let y;e[4]!==d?(y=d("sidebar.rail.searchOrganizations"),e[4]=d,e[5]=y):y=e[5];let S;e[6]!==d?(S=d("sidebar.rail.searchPlaceholder"),e[6]=d,e[7]=S):S=e[7];let k;e[8]!==d?(k=d("sidebar.rail.searchPlaceholder"),e[8]=d,e[9]=k):k=e[9];let _;e[10]!==o||e[11]!==k?(_=s.jsx(hs,{value:o,onValueChange:f,placeholder:k}),e[10]=o,e[11]=k,e[12]=_):_=e[12];const T=m&&(C||!u)&&"opacity-50";let z;e[13]!==T?(z=B(T),e[13]=T,e[14]=z):z=e[14];let O;e[15]!==w||e[16]!==m||e[17]!==d?(O=m&&w&&s.jsx(We,{children:d("sidebar.rail.searchFailed")}),e[15]=w,e[16]=m,e[17]=d,e[18]=O):O=e[18];let E;e[19]!==w||e[20]!==j||e[21]!==a.length||e[22]!==u||e[23]!==d?(E=!w&&u&&!j&&a.length===0&&s.jsx(We,{children:d("sidebar.rail.searchEmpty")}),e[19]=w,e[20]=j,e[21]=a.length,e[22]=u,e[23]=d,e[24]=E):E=e[24];let D;if(e[25]!==c||e[26]!==l||e[27]!==g||e[28]!==a||e[29]!==d){let L;e[31]!==c||e[32]!==l||e[33]!==g||e[34]!==d?(L=P=>s.jsxs(ps,{value:P.slug,onSelect:()=>{g(!1),P.slug!==c&&l(P.slug)},className:"gap-2.5",children:[s.jsx(Ve,{org:P,size:"sm"}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:P.name}),P.slug===c&&s.jsx("span",{className:"text-meta shrink-0",children:d("sidebar.rail.currentOrganization")})]},P.id),e[31]=c,e[32]=l,e[33]=g,e[34]=d,e[35]=L):L=e[35],D=a.map(L),e[25]=c,e[26]=l,e[27]=g,e[28]=a,e[29]=d,e[30]=D}else D=e[30];let R;e[36]!==E||e[37]!==D||e[38]!==z||e[39]!==O?(R=s.jsxs(gs,{className:z,children:[O,E,D]}),e[36]=E,e[37]=D,e[38]=z,e[39]=O,e[40]=R):R=e[40];let A;return e[41]!==n||e[42]!==g||e[43]!==R||e[44]!==y||e[45]!==S||e[46]!==_?(A=s.jsxs(bs,{open:n,onOpenChange:g,title:y,description:S,shouldFilter:!1,children:[_,R]}),e[41]=n,e[42]=g,e[43]=R,e[44]=y,e[45]=S,e[46]=_,e[47]=A):A=e[47],A}function _s(t){const e=I.c(4),{size:n,className:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("path",{d:"M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.74 19.74 0 0 0 3.677 4.37a.07.07 0 0 0-.032.028C.533 9.046-.32 13.58.099 18.058a.082.082 0 0 0 .031.056 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.042-.106 13.1 13.1 0 0 1-1.872-.892.077.077 0 0 1-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 0 1 .078-.01c3.927 1.793 8.18 1.793 12.061 0a.074.074 0 0 1 .079.009c.12.099.246.198.373.292a.077.077 0 0 1-.007.128 12.3 12.3 0 0 1-1.873.891.077.077 0 0 0-.041.107c.36.698.772 1.363 1.225 1.993a.076.076 0 0 0 .084.029 19.84 19.84 0 0 0 6.002-3.03.077.077 0 0 0 .032-.055c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.029ZM8.02 15.331c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.946 2.418-2.157 2.418Z"}),e[0]=i):i=e[0];let c;return e[1]!==r||e[2]!==n?(c=s.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:r,children:i}),e[1]=r,e[2]=n,e[3]=c):c=e[3],c}const ks=250;function Os(){return typeof navigator<"u"&&!!navigator.mediaDevices?.getDisplayMedia}function Be(t,e,n){return new Promise(r=>t.toBlob(r,e,n))}async function Rs(){const t=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include"});try{const e=document.createElement("video");e.muted=!0,e.srcObject=t,await e.play(),await new Promise(c=>setTimeout(c,ks));const n=document.createElement("canvas");n.width=e.videoWidth,n.height=e.videoHeight,n.getContext("2d")?.drawImage(e,0,0),e.srcObject=null;let r=await Be(n,"image/png");if((!r||r.size>Qe)&&(r=await Be(n,"image/jpeg",.85)),!r)throw new Error("Could not encode the screenshot");const i=r.type==="image/png"?"png":"jpg";return new File([r],`screenshot.${i}`,{type:r.type})}finally{for(const e of t.getTracks())e.stop()}}function He({kind:t,open:e,onOpenChange:n}){const r=X(),i=t==="problem"?{title:r("sidebar.problem.title"),placeholder:r("sidebar.problem.placeholder"),sent:r("sidebar.problem.sent"),failed:r("sidebar.problem.failed")}:{title:r("sidebar.feedback.title"),placeholder:r("sidebar.feedback.placeholder"),sent:r("sidebar.feedback.sent"),failed:r("sidebar.feedback.failed")},{org:c}=Re(),[l,d]=$.useState(""),[o,f]=$.useState([]),[b,h]=$.useState(!1),p=()=>{for(const a of o)URL.revokeObjectURL(a.previewUrl);f([]),d("")},m=a=>{const x=a.filter(S=>ys.includes(S.type)?S.size>Qe?(je.error(r("sidebar.feedback.screenshotTooLarge")),!1):!0:!1),g=Ae-o.length;x.length>g&&je.error(r("sidebar.feedback.tooManyScreenshots",{max:String(Ae)}));const y=x.slice(0,Math.max(g,0)).map(S=>({file:S,previewUrl:URL.createObjectURL(S)}));y.length>0&&f(S=>[...S,...y])},u=a=>{URL.revokeObjectURL(a.previewUrl),f(x=>x.filter(g=>g!==a))},v=async()=>{h(!0);try{m([await Rs()])}catch(a){a instanceof DOMException&&a.name==="NotAllowedError"||(console.error("[feedback] screenshot failed",a),je.error(r("sidebar.feedback.screenshotFailed")))}finally{h(!1)}},j=a=>{const x=Array.from(a.clipboardData.files).filter(g=>g.type.startsWith("image/"));x.length!==0&&(a.preventDefault(),m(x))},C=nt({mutationFn:async()=>{const a=new FormData;a.set("kind",t),a.set("message",l.trim()),a.set("pageUrl",window.location.href);for(const g of o)a.append("screenshot",g.file);const x=await fetch(`/api/${encodeURIComponent(c.slug)}/feedback`,{method:"POST",body:a});if(!x.ok)throw new Error(`Feedback failed: ${x.status}`)},onSuccess:()=>{je.success(i.sent),p(),n(!1)},onError:()=>je.error(i.failed)}),w=l.trim().length>0&&!C.isPending;return s.jsx(it,{open:e&&!b,onOpenChange:n,children:s.jsxs(lt,{className:"sm:max-w-lg","aria-describedby":void 0,children:[s.jsx(ot,{children:s.jsx(at,{children:i.title})}),s.jsx(Ss,{autoFocus:!0,value:l,onChange:a=>d(a.target.value),onPaste:j,onKeyDown:a=>{a.key==="Enter"&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),w&&C.mutate())},placeholder:i.placeholder,className:"min-h-32 max-h-80",maxLength:vs}),o.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((a,x)=>s.jsxs("div",{className:"group relative size-20 overflow-hidden rounded-lg shadow-edge",children:[s.jsx("a",{href:a.previewUrl,target:"_blank",rel:"noreferrer",children:s.jsx("img",{src:a.previewUrl,alt:r("sidebar.feedback.screenshotAlt",{n:String(x+1)}),className:"size-full object-cover"})}),s.jsx("button",{type:"button",onClick:()=>u(a),"aria-label":r("sidebar.feedback.removeScreenshot"),className:"absolute top-1 right-1 flex size-5 items-center justify-center rounded-full bg-background/90 text-foreground opacity-0 shadow-edge transition-opacity group-hover:opacity-100 focus-visible:opacity-100",children:s.jsx(qe,{size:12})})]},a.previewUrl))}),s.jsxs(ct,{className:"sm:justify-between",children:[Os()?s.jsxs(Fe,{type:"button",variant:"outline",onClick:v,disabled:o.length>=Ae,children:[s.jsx(It,{size:14}),r("sidebar.feedback.takeScreenshot")]}):s.jsx("span",{}),s.jsx(Fe,{type:"button",onClick:()=>C.mutate(),disabled:!w,children:C.isPending?r("sidebar.feedback.sending"):r("sidebar.feedback.send")})]})]})})}function ve(t){const e=I.c(11),{active:n,label:r,children:i}=t,c=n?"h-7 opacity-100":"h-2 opacity-0 group-hover/rail:opacity-60";let l;e[0]!==c?(l=B("w-1 rounded-r-full bg-foreground","transition-[height,opacity] duration-200 ease-[var(--ease-out-cubic)]","motion-reduce:transition-none",c),e[0]=c,e[1]=l):l=e[1];let d;e[2]!==l?(d=s.jsx("span",{"aria-hidden":!0,className:"absolute top-0 -left-2.5 flex h-9 items-center",children:s.jsx("span",{className:l})}),e[2]=l,e[3]=d):d=e[3];let o;e[4]!==n||e[5]!==r?(o=r&&s.jsx("span",{"aria-hidden":!0,className:B("line-clamp-2 w-full px-0.5 text-center text-2xs text-ellipsis transition-colors",n?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground"),children:r}),e[4]=n,e[5]=r,e[6]=o):o=e[6];let f;return e[7]!==i||e[8]!==d||e[9]!==o?(f=s.jsxs("div",{className:"group/rail relative flex w-full shrink-0 flex-col items-center gap-1",children:[d,i,o]}),e[7]=i,e[8]=d,e[9]=o,e[10]=f):f=e[10],f}const zs="https://docs.decocms.com/",Es="https://discord.gg/EQkX7CymV";function Ds(){const t=I.c(39),e=X(),{org:n}=Re(),[r,i]=$.useState(null),c=!!n.id;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=_=>{H("help_menu_dialog_opened",{kind:_}),i(_)},t[0]=l):l=t[0];const d=l;let o;t[1]!==e?(o=e("sidebar.help.button"),t[1]=e,t[2]=o):o=t[2];let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ft,{size:18}),t[3]=f):f=t[3];let b;t[4]!==o?(b=s.jsx(ge,{asChild:!0,children:s.jsx(ft,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":o,onClick:Ls,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring data-[state=open]:bg-sidebar-accent data-[state=open]:text-foreground",children:f})})}),t[4]=o,t[5]=b):b=t[5];let h;t[6]!==e?(h=e("sidebar.help.button"),t[6]=e,t[7]=h):h=t[7];let p;t[8]!==h?(p=s.jsx(be,{side:"right",children:h}),t[8]=h,t[9]=p):p=t[9];let m;t[10]!==b||t[11]!==p?(m=s.jsxs(xe,{children:[b,p]}),t[10]=b,t[11]=p,t[12]=m):m=t[12];let u;t[13]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(js,{}),t[13]=u):u=t[13];let v;t[14]!==e?(v=e("sidebar.help.guides"),t[14]=e,t[15]=v):v=t[15];let j;t[16]!==v?(j=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:zs,target:"_blank",rel:"noopener noreferrer",onClick:Ts,children:[u,v]})}),t[16]=v,t[17]=j):j=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(_s,{}),t[18]=C):C=t[18];let w;t[19]!==e?(w=e("sidebar.help.discord"),t[19]=e,t[20]=w):w=t[20];let a;t[21]!==w?(a=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:Es,target:"_blank",rel:"noopener noreferrer",onClick:Ns,children:[C,w]})}),t[21]=w,t[22]=a):a=t[22];let x;t[23]!==c||t[24]!==e?(x=c&&s.jsxs(s.Fragment,{children:[s.jsx(dt,{}),s.jsxs(ke,{onSelect:()=>d("problem"),children:[s.jsx(ut,{}),e("sidebar.help.reportProblem")]}),s.jsxs(ke,{onSelect:()=>d("feedback"),children:[s.jsx(Kt,{}),e("sidebar.feedback.button")]})]}),t[23]=c,t[24]=e,t[25]=x):x=t[25];let g;t[26]!==a||t[27]!==x||t[28]!==j?(g=s.jsxs(mt,{side:"right",align:"end",className:"w-56",children:[j,a,x]}),t[26]=a,t[27]=x,t[28]=j,t[29]=g):g=t[29];let y;t[30]!==g||t[31]!==m?(y=s.jsx(ve,{active:!1,children:s.jsxs(ht,{children:[m,g]})}),t[30]=g,t[31]=m,t[32]=y):y=t[32];let S;t[33]!==c||t[34]!==r?(S=c&&s.jsxs(s.Fragment,{children:[s.jsx(He,{kind:"problem",open:r==="problem",onOpenChange:_=>i(_?"problem":null)}),s.jsx(He,{kind:"feedback",open:r==="feedback",onOpenChange:_=>i(_?"feedback":null)})]}),t[33]=c,t[34]=r,t[35]=S):S=t[35];let k;return t[36]!==y||t[37]!==S?(k=s.jsxs(s.Fragment,{children:[y,S]}),t[36]=y,t[37]=S,t[38]=k):k=t[38],k}function Ns(){return H("help_menu_discord_opened")}function Ts(){return H("help_menu_guides_opened")}function Ls(){return H("help_menu_opened")}function Ps(t){return globalThis.addEventListener("resize",t),()=>globalThis.removeEventListener("resize",t)}const As=()=>Je(globalThis.innerHeight),Ms=()=>Je(0);function $s(t){const e=I.c(59),{org:n,active:r,onSelect:i,pinned:c,onOpenSettings:l,onTogglePin:d,onHide:o}=t,f=X();let b;e[0]!==n.slug?(b={id:n.slug},e[0]=n.slug,e[1]=b):b=e[1];const{setNodeRef:h,listeners:p,transform:m,transition:u,isDragging:v}=Mt(b);let j;e[2]!==m?(j=Tt.Transform.toString(m?{...m,x:0}:null),e[2]=m,e[3]=j):j=e[3];const C=v?1:void 0,w=`rail-org-${n.slug}`;let a;e[4]!==j||e[5]!==C||e[6]!==w||e[7]!==u?(a={transform:j,transition:u,zIndex:C,viewTransitionName:w},e[4]=j,e[5]=C,e[6]=w,e[7]=u,e[8]=a):a=e[8];const x=n.name,g=r||void 0,y=r?"opacity-100":"opacity-60 hover:scale-105 hover:opacity-100",S=i&&"cursor-pointer";let k;e[9]!==y||e[10]!==S?(k=B("relative flex shrink-0 items-center justify-center rounded-xl focus-ring","transition-[opacity,transform] duration-150 ease-out",y,S),e[9]=y,e[10]=S,e[11]=k):k=e[11];let _;e[12]!==n?(_=s.jsx(Ve,{org:n,size:"lg"}),e[12]=n,e[13]=_):_=e[13];let T;e[14]!==c?(T=c&&s.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar",children:s.jsx(Ue,{size:9})}),e[14]=c,e[15]=T):T=e[15];let z;e[16]!==i||e[17]!==n.name||e[18]!==k||e[19]!==_||e[20]!==T||e[21]!==g?(z=s.jsx(ge,{asChild:!0,children:s.jsx(Yt,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":x,"aria-current":g,onClick:i,className:k,children:[_,T]})})}),e[16]=i,e[17]=n.name,e[18]=k,e[19]=_,e[20]=T,e[21]=g,e[22]=z):z=e[22];let O;e[23]!==n.name?(O=s.jsx(be,{side:"right",children:n.name}),e[23]=n.name,e[24]=O):O=e[24];let E;e[25]!==z||e[26]!==O?(E=s.jsxs(xe,{children:[z,O]}),e[25]=z,e[26]=O,e[27]=E):E=e[27];let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Xt,{}),e[28]=D):D=e[28];let R;e[29]!==f?(R=f("sidebar.rail.organizationSettings"),e[29]=f,e[30]=R):R=e[30];let A;e[31]!==l||e[32]!==R?(A=s.jsxs(Pe,{onSelect:l,children:[D,R]}),e[31]=l,e[32]=R,e[33]=A):A=e[33];let L;e[34]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Ue,{}),e[34]=L):L=e[34];let P;e[35]!==c||e[36]!==f?(P=f(c?"sidebar.rail.unpinOrganization":"sidebar.rail.pinOrganization"),e[35]=c,e[36]=f,e[37]=P):P=e[37];let F;e[38]!==d||e[39]!==P?(F=s.jsxs(Pe,{onSelect:d,children:[L,P]}),e[38]=d,e[39]=P,e[40]=F):F=e[40];let U;e[41]!==o||e[42]!==f?(U=o&&s.jsxs(Pe,{onSelect:o,children:[s.jsx($t,{}),f("sidebar.rail.hideOrganization")]}),e[41]=o,e[42]=f,e[43]=U):U=e[43];let Y;e[44]!==A||e[45]!==F||e[46]!==U?(Y=s.jsxs(Gt,{children:[A,F,U]}),e[44]=A,e[45]=F,e[46]=U,e[47]=Y):Y=e[47];let K;e[48]!==E||e[49]!==Y?(K=s.jsxs(Zt,{children:[E,Y]}),e[48]=E,e[49]=Y,e[50]=K):K=e[50];let W;e[51]!==r||e[52]!==K?(W=s.jsx(ve,{active:r,children:K}),e[51]=r,e[52]=K,e[53]=W):W=e[53];let G;return e[54]!==p||e[55]!==h||e[56]!==W||e[57]!==a?(G=s.jsx("div",{ref:h,...p,style:a,className:"w-full shrink-0 touch-none",children:W}),e[54]=p,e[55]=h,e[56]=W,e[57]=a,e[58]=G):G=e[58],G}function Is(t){const e=I.c(64),{project:n,orgSlug:r,active:i,onClose:c,onNavigate:l}=t,d=X();let o,f,b,h,p,m,u,v,j,C,w;if(e[0]!==i||e[1]!==l||e[2]!==r||e[3]!==n.icon||e[4]!==n.id||e[5]!==n.title){const L=Ut(n.icon,n.title);w="group/rail relative flex w-full flex-col items-center gap-1",b=xe,f=ge,C=!0,o=Ye,h=jt.root,e[17]!==r||e[18]!==n.id?(p={org:r,agentId:n.id},e[17]=r,e[18]=n.id,e[19]=p):p=e[19],m=n.title,u=i||void 0,e[20]!==l?(v=()=>{H("org_rail_recent_project_opened"),l?.()},e[20]=l,e[21]=v):v=e[21],j=B("flex shrink-0 rounded-lg focus-ring",L.text,i&&"ring-[1.5px] ring-current"),e[0]=i,e[1]=l,e[2]=r,e[3]=n.icon,e[4]=n.id,e[5]=n.title,e[6]=o,e[7]=f,e[8]=b,e[9]=h,e[10]=p,e[11]=m,e[12]=u,e[13]=v,e[14]=j,e[15]=C,e[16]=w}else o=e[6],f=e[7],b=e[8],h=e[9],p=e[10],m=e[11],u=e[12],v=e[13],j=e[14],C=e[15],w=e[16];let a;e[22]!==n.icon||e[23]!==n.title?(a=s.jsx(Wt,{icon:n.icon,name:n.title,size:"sm",className:"size-8 rounded-lg"}),e[22]=n.icon,e[23]=n.title,e[24]=a):a=e[24];let x;e[25]!==o||e[26]!==h||e[27]!==p||e[28]!==m||e[29]!==u||e[30]!==v||e[31]!==j||e[32]!==a?(x=s.jsx(o,{to:h,params:p,"aria-label":m,"aria-current":u,onClick:v,className:j,children:a}),e[25]=o,e[26]=h,e[27]=p,e[28]=m,e[29]=u,e[30]=v,e[31]=j,e[32]=a,e[33]=x):x=e[33];let g;e[34]!==f||e[35]!==x||e[36]!==C?(g=s.jsx(f,{asChild:C,children:x}),e[34]=f,e[35]=x,e[36]=C,e[37]=g):g=e[37];let y;e[38]!==n.title?(y=s.jsx(be,{side:"right",children:n.title}),e[38]=n.title,e[39]=y):y=e[39];let S;e[40]!==b||e[41]!==g||e[42]!==y?(S=s.jsxs(b,{children:[g,y]}),e[40]=b,e[41]=g,e[42]=y,e[43]=S):S=e[43];const k=i?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground";let _;e[44]!==k?(_=B("line-clamp-2 w-full text-center text-2xs break-words transition-colors",k),e[44]=k,e[45]=_):_=e[45];let T;e[46]!==n.title||e[47]!==_?(T=s.jsx("span",{"aria-hidden":!0,className:_,children:n.title}),e[46]=n.title,e[47]=_,e[48]=T):T=e[48];let z;e[49]!==n.title||e[50]!==d?(z=d("sidebar.rail.closeApp",{name:n.title}),e[49]=n.title,e[50]=d,e[51]=z):z=e[51];let O;e[52]!==c?(O=()=>{H("org_rail_recent_project_closed"),c()},e[52]=c,e[53]=O):O=e[53];let E,D;e[54]===Symbol.for("react.memo_cache_sentinel")?(E=B("absolute -top-1.5 right-[calc(50%-1.25rem)] flex size-4 cursor-pointer items-center justify-center rounded-full","bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar hover:text-foreground","opacity-0 transition-opacity duration-150 group-hover/rail:opacity-100 focus-visible:opacity-100 focus-visible:outline-none"),D=s.jsx(qe,{size:10}),e[54]=E,e[55]=D):(E=e[54],D=e[55]);let R;e[56]!==z||e[57]!==O?(R=s.jsx("button",{type:"button","aria-label":z,onClick:O,className:E,children:D}),e[56]=z,e[57]=O,e[58]=R):R=e[58];let A;return e[59]!==S||e[60]!==T||e[61]!==R||e[62]!==w?(A=s.jsxs("div",{className:w,children:[S,T,R]}),e[59]=S,e[60]=T,e[61]=R,e[62]=w,e[63]=A):A=e[63],A}const Ks={"site-editor":"/site-editor"};function Fs(t){const e=I.c(26),{app:n}=t,r=X(),i=as[n],c=Ks[n];if(!i||!c)return null;let l;e[0]!==i.labelKey||e[1]!==r?(l=r(i.labelKey),e[0]=i.labelKey,e[1]=r,e[2]=l):l=e[2];let d;e[3]!==i.labelKey||e[4]!==r?(d=r(i.labelKey),e[3]=i.labelKey,e[4]=r,e[5]=d):d=e[5];let o;e[6]!==i.tone?(o=B("flex size-9 shrink-0 items-center justify-center rounded-xl focus-ring opacity-100",i.tone),e[6]=i.tone,e[7]=o):o=e[7];let f;e[8]!==i.Icon?(f=s.jsx(i.Icon,{size:18}),e[8]=i.Icon,e[9]=f):f=e[9];let b;e[10]!==d||e[11]!==o||e[12]!==f||e[13]!==c?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Ye,{to:c,"aria-label":d,"aria-current":"page","data-testid":"org-rail-local-app",className:o,children:f})}),e[10]=d,e[11]=o,e[12]=f,e[13]=c,e[14]=b):b=e[14];let h;e[15]!==i.labelKey||e[16]!==r?(h=r(i.labelKey),e[15]=i.labelKey,e[16]=r,e[17]=h):h=e[17];let p;e[18]!==h?(p=s.jsx(be,{side:"right",children:h}),e[18]=h,e[19]=p):p=e[19];let m;e[20]!==b||e[21]!==p?(m=s.jsxs(xe,{children:[b,p]}),e[20]=b,e[21]=p,e[22]=m):m=e[22];let u;return e[23]!==l||e[24]!==m?(u=s.jsx(ve,{active:!0,label:l,children:m}),e[23]=l,e[24]=m,e[25]=u):u=e[25],u}function Us(){const{org:t}=Re();return cs(t.slug),null}function et(t){const e=I.c(77),{onNavigate:n}=t===void 0?{}:t,r=X(),i=pt(),{org:c}=Re(),l=gt();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={select:Xs},e[0]=d):d=e[0];const o=bt(d);let f;e[1]!==o||e[2]!==l?(f=o?l({to:"/$org",fuzzy:!0,pending:!0}):!1,e[1]=o,e[2]=l,e[3]=f):f=e[3];const b=f,h=b?b.org:c.slug,{data:p}=xt(),[m,u]=$.useState(!1),[v,j]=$.useState(!1),C=Ie(),{recent:w,forget:a}=us(c.slug),{projects:x}=fs(),g=ms(),y=ds(),S=y&&y.projectId===null?y.app:null,k=S?[]:w.flatMap(N=>x.filter(M=>M.id===N)),_=Vt(p??[],c),{recent:T}=Jt(),z=Qt();let O;e[4]===Symbol.for("react.memo_cache_sentinel")?(O=Ge.railOrgPrefs(),e[4]=O):O=e[4];const[E,D]=$e(O,es),R=Oe(E),A=$.useSyncExternalStore(Ps,As,Ms),{shown:L}=ts(ss(_,R,c.slug),T,c.slug,A,R.pinned);let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[5]=P):P=e[5];const F=zt(Et(Lt,P)),U=N=>{const{active:M,over:Ke}=N;Ke&&(H("org_rail_reordered"),D(rt=>is(Oe(rt),L.map(Hs),String(M.id),String(Ke.id))))},Y=N=>{n?.(),i({to:"/$org/home",params:{org:N},viewTransition:!0})},K=N=>{H("org_rail_travel"),n?.(),z(N,L.map(Bs))},W=()=>{if(H("org_rail_search_opened"),!c.id){j(!0);return}n?.(),ls()},G=!C&&"border-r border-sidebar-border";let Z;e[6]!==G?(Z=B("flex w-[68px] shrink-0 flex-col bg-sidebar",G),e[6]=G,e[7]=Z):Z=e[7];const st="flex min-h-0 flex-1 flex-col items-center gap-2.5 overflow-y-auto px-2.5 pt-3 pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";let q;e[8]!==r?(q=r("sidebar.rail.ariaLabel"),e[8]=r,e[9]=q):q=e[9];const ze=Dt,Ee=Nt,De=Pt,Ne=L.map(Ws),Te=At,Le=L.map(N=>s.jsxs($.Fragment,{children:[s.jsx($s,{org:N,active:N.slug===h,pinned:R.pinned.includes(N.slug),onSelect:N.slug!==c.slug?()=>K(N.slug):g?()=>Y(N.slug):void 0,onOpenSettings:()=>{n?.(),i({to:"/$org/settings",params:{org:N.slug},search:{thread:void 0}})},onTogglePin:()=>D(M=>ns(Oe(M),N.slug)),onHide:N.slug===c.slug?void 0:()=>D(M=>rs(Oe(M),N.slug))}),N.slug===c.slug&&k.length>0&&s.jsx("div",{style:{viewTransitionName:"rail-projects"},className:"-mx-1.5 flex w-[calc(100%+0.75rem)] flex-col items-center gap-3 rounded-[12px] bg-foreground/4 px-1 py-3",children:k.map(M=>s.jsx(Is,{project:M,orgSlug:c.slug,active:g===M.id,onClose:()=>a(M.id),onNavigate:n},M.id))})]},N.id));let V;e[10]!==De||e[11]!==Ne||e[12]!==Te||e[13]!==Le?(V=s.jsx(De,{items:Ne,strategy:Te,children:Le}),e[10]=De,e[11]=Ne,e[12]=Te,e[13]=Le,e[14]=V):V=e[14];let J;e[15]!==ze||e[16]!==U||e[17]!==F||e[18]!==Ee||e[19]!==V?(J=s.jsx(ze,{sensors:F,collisionDetection:Ee,onDragEnd:U,children:V}),e[15]=ze,e[16]=U,e[17]=F,e[18]=Ee,e[19]=V,e[20]=J):J=e[20];let Q;e[21]!==S?(Q=S&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"my-2 h-px w-6 shrink-0 bg-sidebar-border","aria-hidden":!0}),s.jsx(Fs,{app:S})]}),e[21]=S,e[22]=Q):Q=e[22];let ee;e[23]!==J||e[24]!==Q||e[25]!==q?(ee=s.jsxs("div",{className:st,"aria-label":q,children:[J,Q]}),e[23]=J,e[24]=Q,e[25]=q,e[26]=ee):ee=e[26];let te;e[27]!==r?(te=r("sidebar.rail.search"),e[27]=r,e[28]=te):te=e[28];let ye;e[29]===Symbol.for("react.memo_cache_sentinel")?(ye=s.jsx(Ht,{size:18}),e[29]=ye):ye=e[29];let se;e[30]!==W||e[31]!==te?(se=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":te,"aria-keyshortcuts":"Meta+K Control+K",onClick:W,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:ye})}),e[30]=W,e[31]=te,e[32]=se):se=e[32];let re;e[33]!==r?(re=r("sidebar.rail.search"),e[33]=r,e[34]=re):re=e[34];let Se;e[35]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx("span",{className:"ml-2 text-muted-foreground",children:vt.commandPalette.keys.join("")}),e[35]=Se):Se=e[35];let ne;e[36]!==re?(ne=s.jsxs(be,{side:"right",children:[re,Se]}),e[36]=re,e[37]=ne):ne=e[37];let ie;e[38]!==se||e[39]!==ne?(ie=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[se,ne]})}),e[38]=se,e[39]=ne,e[40]=ie):ie=e[40];let le;e[41]!==r?(le=r("sidebar.picker.newOrganization"),e[41]=r,e[42]=le):le=e[42];let oe;e[43]!==u?(oe=()=>u(!0),e[43]=u,e[44]=oe):oe=e[44];let we;e[45]===Symbol.for("react.memo_cache_sentinel")?(we=s.jsx(Bt,{size:18}),e[45]=we):we=e[45];let ae;e[46]!==le||e[47]!==oe?(ae=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":le,onClick:oe,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:we})}),e[46]=le,e[47]=oe,e[48]=ae):ae=e[48];let ce;e[49]!==r?(ce=r("sidebar.picker.newOrganization"),e[49]=r,e[50]=ce):ce=e[50];let de;e[51]!==ce?(de=s.jsx(be,{side:"right",children:ce}),e[51]=ce,e[52]=de):de=e[52];let ue;e[53]!==ae||e[54]!==de?(ue=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[ae,de]})}),e[53]=ae,e[54]=de,e[55]=ue):ue=e[55];let Ce;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsx(Ds,{}),e[56]=Ce):Ce=e[56];let fe;e[57]!==ie||e[58]!==ue?(fe=s.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1 px-2.5 pt-2 pb-3",children:[ie,ue,Ce]}),e[57]=ie,e[58]=ue,e[59]=fe):fe=e[59];let me;e[60]!==ee||e[61]!==fe||e[62]!==Z?(me=s.jsxs("div",{className:Z,children:[ee,fe]}),e[60]=ee,e[61]=fe,e[62]=Z,e[63]=me):me=e[63];let he;e[64]!==c.slug||e[65]!==_||e[66]!==v||e[67]!==j||e[68]!==K?(he=s.jsx(Cs,{open:v,onOpenChange:j,orgs:_,currentSlug:c.slug,onSelect:K}),e[64]=c.slug,e[65]=_,e[66]=v,e[67]=j,e[68]=K,e[69]=he):he=e[69];let pe;e[70]!==m||e[71]!==u?(pe=s.jsx(os,{open:m,onOpenChange:u}),e[70]=m,e[71]=u,e[72]=pe):pe=e[72];let _e;return e[73]!==me||e[74]!==he||e[75]!==pe?(_e=s.jsxs(s.Fragment,{children:[me,he,pe]}),e[73]=me,e[74]=he,e[75]=pe,e[76]=_e):_e=e[76],_e}function Ws(t){return t.slug}function Bs(t){return t.slug}function Hs(t){return t.slug}function Xs(t){return t.isLoading}function Ys(t){const e=I.c(15),{width:n,minWidth:r,maxWidth:i,onPointerDown:c,onKeyDown:l,onDoubleClick:d}=t,o=X(),{isMobile:f}=Ze(),b=Ie();if(f||b)return null;let h;e[0]!==o?(h=o("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=o,e[1]=h):h=e[1];let p;e[2]!==o?(p=o("sidebar.sidebarResizeHandle.title"),e[2]=o,e[3]=p):p=e[3];let m,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={left:"var(--sidebar-width)"},u=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border group-focus-visible/resize:bg-ring"}),e[4]=m,e[5]=u):(m=e[4],u=e[5]);let v;return e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==l||e[10]!==c||e[11]!==h||e[12]!==p||e[13]!==n?(v=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":h,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":i,title:p,tabIndex:0,onPointerDown:c,onKeyDown:l,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize focus-visible:outline-none",style:m,children:u}),e[6]=i,e[7]=r,e[8]=d,e[9]=l,e[10]=c,e[11]=h,e[12]=p,e[13]=n,e[14]=v):v=e[14],v}const Me=400,Xe=16,Gs="sidebar.width.v2";function Zs(){const t=I.c(14),e=qs;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=u=>typeof u=="number"?e(u):192,t[0]=n):n=t[0];const[r,i]=$e(Gs,n),c=$.useRef(null);let l;t[1]!==i||t[2]!==r?(l=u=>{u.preventDefault();const v=u.clientX,j=e(r),C=c.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),w=C?Array.from(C.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of w)g.style.transition="none";const a=g=>{const y=e(j+(g.clientX-v));C?.style.setProperty("--sidebar-width",`${y}px`)},x=g=>{const y=e(j+(g.clientX-v));i(y);for(const S of w)S.style.transition="";window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",a),window.addEventListener("pointerup",x),window.addEventListener("pointercancel",x)},t[1]=i,t[2]=r,t[3]=l):l=t[3];const d=l;let o;t[4]!==i?(o=()=>{i(192)},t[4]=i,t[5]=o):o=t[5];const f=o;let b;t[6]!==i||t[7]!==r?(b=u=>{if(u.key==="ArrowLeft")i(e(r-Xe));else if(u.key==="ArrowRight")i(e(r+Xe));else if(u.key==="Home")i(192);else if(u.key==="End")i(Me);else return;u.preventDefault()},t[6]=i,t[7]=r,t[8]=b):b=t[8];const h=b,p=e(r);let m;return t[9]!==h||t[10]!==d||t[11]!==f||t[12]!==p?(m={width:p,minWidth:192,maxWidth:Me,wrapperRef:c,onStartResize:d,onKeyDownResize:h,resetWidth:f},t[9]=h,t[10]=d,t[11]=f,t[12]=p,t[13]=m):m=t[13],m}function qs(t){return Math.max(192,Math.min(Me,t))}const tt=$.createContext(null);function Vs(){const t=$.use(tt);if(!t)throw new Error("Layout regions require a Layout");return t}function Js({children:t,notice:e,outsideOrg:n}){const r=Rt(),[i,c]=$e(Ge.sidebarOpen(),!0),l=Zs();return s.jsx(tt,{value:{isMobile:r,resize:l},children:s.jsx(St,{open:i,onOpenChange:c,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[e,s.jsxs("div",{className:"flex flex-1 flex-row min-h-0",children:[!n&&s.jsx(Us,{}),!r&&(n?.rail??!0)&&s.jsx(et,{}),s.jsx(wt,{ref:l.wrapperRef,className:"flex-1 bg-sidebar relative min-h-0",style:{"--sidebar-width":`${l.width}px`,"--sidebar-width-icon":"0px"},children:s.jsx(ws,{children:t})})]})]})})})}function Qs(t){const e=I.c(36),{children:n,renderMobile:r}=t,i=X(),{isMobile:c,resize:l}=Vs(),{openMobile:d,setOpenMobile:o}=Ze(),f=Ie();let b;e[0]!==o?(b=()=>o(!1),e[0]=o,e[1]=b):b=e[1];const h=b;if(!c){let x;e[2]!==n||e[3]!==f?(x=s.jsx("div",{className:"contents",inert:f,children:n}),e[2]=n,e[3]=f,e[4]=x):x=e[4];let g;e[5]!==l.maxWidth||e[6]!==l.minWidth||e[7]!==l.onKeyDownResize||e[8]!==l.onStartResize||e[9]!==l.resetWidth||e[10]!==l.width?(g=s.jsx(Ys,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,onPointerDown:l.onStartResize,onKeyDown:l.onKeyDownResize,onDoubleClick:l.resetWidth}),e[5]=l.maxWidth,e[6]=l.minWidth,e[7]=l.onKeyDownResize,e[8]=l.onStartResize,e[9]=l.resetWidth,e[10]=l.width,e[11]=g):g=e[11];let y;return e[12]!==x||e[13]!==g?(y=s.jsxs(s.Fragment,{children:[x,g]}),e[12]=x,e[13]=g,e[14]=y):y=e[14],y}let p;e[15]!==i?(p=i("layouts.shellControls.navigationTitle"),e[15]=i,e[16]=p):p=e[16];let m;e[17]!==p?(m=s.jsx(_t,{className:"sr-only",children:p}),e[17]=p,e[18]=m):m=e[18];let u;e[19]!==h?(u=s.jsx(et,{onNavigate:h}),e[19]=h,e[20]=u):u=e[20];let v;e[21]!==h||e[22]!==r?(v=r({onClose:h}),e[21]=h,e[22]=r,e[23]=v):v=e[23];let j;e[24]!==v?(j=s.jsx("div",{className:"min-w-0 flex-1",children:v}),e[24]=v,e[25]=j):j=e[25];let C;e[26]!==u||e[27]!==j?(C=s.jsxs("div",{className:"flex h-full min-h-0",children:[u,j]}),e[26]=u,e[27]=j,e[28]=C):C=e[28];let w;e[29]!==m||e[30]!==C?(w=s.jsxs(kt,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",onOpenAutoFocus:er,children:[m,C]}),e[29]=m,e[30]=C,e[31]=w):w=e[31];let a;return e[32]!==d||e[33]!==o||e[34]!==w?(a=s.jsx(Ot,{open:d,onOpenChange:o,children:w}),e[32]=d,e[33]=o,e[34]=w,e[35]=a):a=e[35],a}function er(t){return t.preventDefault()}function tr(t){const e=I.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"transparent",containerType:"inline-size"},e[0]=r):r=e[0];let i;return e[1]!==n?(i=s.jsx(Ct,{className:"flex flex-col min-h-0",style:r,children:s.jsx(yt,{variant:"plain",className:"bg-sidebar",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:n})})}),e[1]=n,e[2]=i):i=e[2],i}const Rr=Object.assign(Js,{Sidebar:Qs,Content:tr});export{Rr as L};