decocms 4.500.5 → 4.500.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-B7OXPrvi.js → ActiveShapeUtils-BHdUySfQ.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-DWGeVbRZ.js → AlertCircle-BBiRNTdE.js} +1 -1
  3. package/dist/client/assets/{AreaChart-EU8uhxm4.js → AreaChart-DzGyoHJY.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DKZiHtC9.js → ArrowLeft-DwPfX3sc.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BmS2ipPe.js → ArrowUp-XUO4rGpO.js} +1 -1
  6. package/dist/client/assets/{BarChart-C5BexF1_.js → BarChart-DAturvGe.js} +1 -1
  7. package/dist/client/assets/{Building02-CmZEvaAI.js → Building02-CFG818HY.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-N0xPZGNf.js → CategoricalChart-DIdWIqvV.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Cxvlb0-w.js → CheckCircle-BZiV5rFy.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-Cz_mr8Ub.js → ChevronSelectorVertical-Dc4zDElk.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-BXbTXhXZ.js → ChevronUp-ZSzJudc4.js} +1 -1
  12. package/dist/client/assets/{Copy01-Daz7AFYE.js → Copy01-CT9uxfj6.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BFLArPt1.js → CreditCard01-DCwoKma6.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-B5WoSbKn.js → DotsVertical-CcRpaMtq.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-QrHgjTMs.js → ErrorBarContext-9Kz0FTp2.js} +1 -1
  16. package/dist/client/assets/{Globe04-CHujm8Rh.js → Globe04-D88PtZSB.js} +1 -1
  17. package/dist/client/assets/{Image01-6k6QI1dX.js → Image01-DUunwh52.js} +1 -1
  18. package/dist/client/assets/{Key01-BCUfWyre.js → Key01-Dy9XOW24.js} +1 -1
  19. package/dist/client/assets/{Link01-B2ZUVqeX.js → Link01-BDbdWLwx.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-Shxg1MDA.js → LinkBroken01-BFW8MxYc.js} +1 -1
  21. package/dist/client/assets/{Monitor01-C6hS1MDr.js → Monitor01-Cm6_ReiN.js} +1 -1
  22. package/dist/client/assets/{Play-C5HXiIgy.js → Play-DFfgxv2q.js} +1 -1
  23. package/dist/client/assets/{Plus-BGNNWymV.js → Plus-clvoB9-y.js} +1 -1
  24. package/dist/client/assets/{SearchMd-CMyj3n9E.js → SearchMd-Bg-9XsfQ.js} +1 -1
  25. package/dist/client/assets/{Sector-BIfxElqq.js → Sector-Byc95Y0H.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-DhBZJiPR.js → ShoppingBag01-C_AR4ZKW.js} +1 -1
  27. package/dist/client/assets/{Sun-BZz5Ay79.js → Sun-Dzm8FpU3.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-CDaKlB_n.js → SwitchHorizontal01-D8mpLNM6.js} +1 -1
  29. package/dist/client/assets/{Tool01-CIRW7kd4.js → Tool01-D8RNlK5k.js} +1 -1
  30. package/dist/client/assets/{Trash01-BJZRU-Yu.js → Trash01-ByfCfoe2.js} +1 -1
  31. package/dist/client/assets/{Upload01-CdF0U1Ox.js → Upload01-BOzWcBO4.js} +1 -1
  32. package/dist/client/assets/{User01-Swj6Wyaw.js → User01-VVR3ncLA.js} +1 -1
  33. package/dist/client/assets/{UserSquare--AVOLLKT.js → UserSquare-BG_D4lBt.js} +1 -1
  34. package/dist/client/assets/{Users01-BguvMR-H.js → Users01-BT5Jdc2I.js} +1 -1
  35. package/dist/client/assets/{XAxis-CVekAfnj.js → XAxis-BL1uz4Hu.js} +1 -1
  36. package/dist/client/assets/{XClose-CxTFVFLs.js → XClose-Ck0EFhGe.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-C7vMH9KG.js → ZoomOut-DJOChAz1.js} +1 -1
  38. package/dist/client/assets/{access-gate-BifQwyWv.js → access-gate-DTjgjsQi.js} +1 -1
  39. package/dist/client/assets/add-connection-dialog-DhxH1mO6.js +1 -0
  40. package/dist/client/assets/agent-analytics-CRCDBvT9.js +2 -0
  41. package/dist/client/assets/agent-app-DuWlTve8.js +1 -0
  42. package/dist/client/assets/agent-assets-BupbbWua.js +1 -0
  43. package/dist/client/assets/{agent-automation-o2OSd9jI.js → agent-automation-BrF1bbQv.js} +1 -1
  44. package/dist/client/assets/{agent-automations-CSVjvgdr.js → agent-automations-Bf5oYp8h.js} +1 -1
  45. package/dist/client/assets/{agent-connect-sources-BZpypWKp.js → agent-connect-sources-CyYVygog.js} +1 -1
  46. package/dist/client/assets/agent-deck-DBdSSaIH.js +1 -0
  47. package/dist/client/assets/agent-e2e-Dc15KMWY.js +1 -0
  48. package/dist/client/assets/agent-experiments-Dn4D2o0f.js +1 -0
  49. package/dist/client/assets/agent-file-HtB1MCoL.js +1 -0
  50. package/dist/client/assets/agent-hosting-B16K2Ojh.js +1 -0
  51. package/dist/client/assets/{agent-icon-CvfPq7BK.js → agent-icon-CSrsRkkV.js} +1 -1
  52. package/dist/client/assets/agent-library-Dfzx9j-W.js +1 -0
  53. package/dist/client/assets/agent-library-file-B0MZUu0i.js +1 -0
  54. package/dist/client/assets/agent-monitor-BVZ6dj6l.js +1 -0
  55. package/dist/client/assets/{agent-overview-CsT5BzSM.js → agent-overview-Fv2Tlbaf.js} +1 -1
  56. package/dist/client/assets/agent-settings-E9aYbTuV.js +1 -0
  57. package/dist/client/assets/{agent-site-editor-DekWNKPY.js → agent-site-editor-CXtKOY2R.js} +2 -2
  58. package/dist/client/assets/agent-site-editor-code-C7kSpllc.js +2 -0
  59. package/dist/client/assets/{agent-site-editor-content-CKfeDMKr.js → agent-site-editor-content-C7FjEODf.js} +3 -3
  60. package/dist/client/assets/{agent-site-editor-preview-Oi61j7xj.js → agent-site-editor-preview-BfKLwBCP.js} +3 -3
  61. package/dist/client/assets/agent-view-BqtBvPf5.js +1 -0
  62. package/dist/client/assets/{agent-view-guard-DF_nEERP.js → agent-view-guard-CbFaNTaO.js} +1 -1
  63. package/dist/client/assets/{agents-list-LRAFnay6.js → agents-list-rRAvXkxo.js} +1 -1
  64. package/dist/client/assets/{ai-providers-BgUnArjx.js → ai-providers-DxQSPA6H.js} +1 -1
  65. package/dist/client/assets/{alert-Ds8Pbd5J.js → alert-BB7UNECi.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-BoGCVrZa.js → alert-dialog-Bq1vUmcb.js} +1 -1
  67. package/dist/client/assets/{analytics-sections-BOYksc63.js → analytics-sections-D4hmenz2.js} +1 -1
  68. package/dist/client/assets/api-keys-C9apOrj-.js +1 -0
  69. package/dist/client/assets/{api-keys-uNOKnF25.js → api-keys-CwCZzaXX.js} +1 -1
  70. package/dist/client/assets/app-editor-BNTMP2XY.js +1 -0
  71. package/dist/client/assets/{asset-utils-C0JplDix.js → asset-utils-D2JqsHLw.js} +1 -1
  72. package/dist/client/assets/{auth-CtdecWhn.js → auth-Cf8kTvK7.js} +1 -1
  73. package/dist/client/assets/{auth-catchall-CGU8Tb_2.js → auth-catchall-CMb2pPKe.js} +1 -1
  74. package/dist/client/assets/{auth-entry-DIyt51AK.js → auth-entry-DJDQHUOg.js} +1 -1
  75. package/dist/client/assets/{auth-split-layout-CXs4JEXj.js → auth-split-layout-DL8EKWzu.js} +1 -1
  76. package/dist/client/assets/{authenticate-and-persist-oauth-Cs8htcLH.js → authenticate-and-persist-oauth-CNIjDkAv.js} +1 -1
  77. package/dist/client/assets/{automation-list-row-BtyEuPas.js → automation-list-row-CmUakn9s.js} +1 -1
  78. package/dist/client/assets/{automation-runs-fZgz2Hqj.js → automation-runs-CBloXkSc.js} +1 -1
  79. package/dist/client/assets/{automations-n2079ZKl.js → automations-Bc2qeNY9.js} +1 -1
  80. package/dist/client/assets/{autosend-Bed_2rHW.js → autosend-Dbvfg9pv.js} +1 -1
  81. package/dist/client/assets/{avatar-BWSDv40I.js → avatar-CVhMMaTf.js} +1 -1
  82. package/dist/client/assets/{badge-BZ6ZWtlL.js → badge-GBNejOns.js} +1 -1
  83. package/dist/client/assets/{block-document-C_IW_573.js → block-document-L5yAxhd6.js} +1 -1
  84. package/dist/client/assets/{blocks-preview-workspace-context-CyLjsfnh.js → blocks-preview-workspace-context-BeUFeWIT.js} +1 -1
  85. package/dist/client/assets/{blog-schema-DTGd3Oxs.js → blog-schema-BIMlJLWj.js} +1 -1
  86. package/dist/client/assets/{board-analytics-BypUwbOK.js → board-analytics-CBArh6Zy.js} +1 -1
  87. package/dist/client/assets/{buckets-DBWKw8M4.js → buckets-DMjEyGOV.js} +1 -1
  88. package/dist/client/assets/{build-improve-prompt-doc-ClJ1Tfl6.js → build-improve-prompt-doc-DMgFOt46.js} +1 -1
  89. package/dist/client/assets/{calendar-CUQ5339S.js → calendar-D4OoX9Wr.js} +1 -1
  90. package/dist/client/assets/{capability-load-error-BglSkYA0.js → capability-load-error-C0o_DJDN.js} +1 -1
  91. package/dist/client/assets/category-editor-Bc1AHLqb.js +1 -0
  92. package/dist/client/assets/{chart-DmxPBeeD.js → chart-DcIK_AOG.js} +1 -1
  93. package/dist/client/assets/{chat-context-CQm-6egv.js → chat-context-NYUfgJBl.js} +1 -1
  94. package/dist/client/assets/{chat-draft-CLRrKKYW.js → chat-draft-BIT8lUsr.js} +1 -1
  95. package/dist/client/assets/{checkbox-cJ0fZWJo.js → checkbox-1mSDcatb.js} +1 -1
  96. package/dist/client/assets/{choose-editor-Cc1TcbHd.js → choose-editor-DSkLDSjl.js} +1 -1
  97. package/dist/client/assets/{claim-phase-copy-DgYG3gXQ.js → claim-phase-copy-Clje3zqq.js} +1 -1
  98. package/dist/client/assets/{cli-auth-success-DhKKsoxy.js → cli-auth-success-DK3FztVN.js} +1 -1
  99. package/dist/client/assets/{client-icons-BGVAhs-F.js → client-icons-C0HcvKpc.js} +1 -1
  100. package/dist/client/assets/{collapsible-Di8zO8dv.js → collapsible-CeMlXkLt.js} +1 -1
  101. package/dist/client/assets/collection-detail-CBbaNdto.js +1 -0
  102. package/dist/client/assets/{collection-display-button-Bxb7HpiP.js → collection-display-button-Cp21-jdI.js} +1 -1
  103. package/dist/client/assets/{collection-search-BqrF-OSq.js → collection-search-JcNHcOFg.js} +1 -1
  104. package/dist/client/assets/{collection-table-wrapper-CkgGqLXV.js → collection-table-wrapper-DoyJbjYf.js} +1 -1
  105. package/dist/client/assets/{collection-tabs-B9w_j2Q-.js → collection-tabs-CSZlwXCA.js} +1 -1
  106. package/dist/client/assets/{column-rules-CDlfxJ7f.js → column-rules-CDXH6Bu0.js} +1 -1
  107. package/dist/client/assets/{combobox-C7W7K3yr.js → combobox-B0RpAw2t.js} +1 -1
  108. package/dist/client/assets/{command-psdI3Avp.js → command-CJiwms5W.js} +1 -1
  109. package/dist/client/assets/{companion-mcps-section-Cx2dp9En.js → companion-mcps-section--NmxcAor.js} +1 -1
  110. package/dist/client/assets/{config-BuMB0HyT.js → config-C1YCQZ8E.js} +1 -1
  111. package/dist/client/assets/{connect-vKaaPSQ-.js → connect-6HWvGxM0.js} +1 -1
  112. package/dist/client/assets/{connect-layout-BAsVrzyq.js → connect-layout-m9uvi79-.js} +1 -1
  113. package/dist/client/assets/{connection-card-KKabYrZM.js → connection-card-CWkexnWw.js} +1 -1
  114. package/dist/client/assets/connection-detail-CkRea4yr.js +1 -0
  115. package/dist/client/assets/connection-form-helpers-W4yLfkzt.js +1 -0
  116. package/dist/client/assets/{connection-DsYXyfMO.js → connection-pgjV95kc.js} +1 -1
  117. package/dist/client/assets/connections-BRM4t7Yz.js +1 -0
  118. package/dist/client/assets/context-BJ70LQt3.js +1 -0
  119. package/dist/client/assets/{context-menu-CcSwK895.js → context-menu-oPFsFXlL.js} +1 -1
  120. package/dist/client/assets/{core.esm-BBQ2k6X-.js → core.esm-BaMzqjA4.js} +1 -1
  121. package/dist/client/assets/{create-organization-dialog-ryb_Yr7s.js → create-organization-dialog-TMOD9u6U.js} +1 -1
  122. package/dist/client/assets/{daily-pulse-R_HfqfjY.js → daily-pulse-BO10zQ_I.js} +1 -1
  123. package/dist/client/assets/{device-hint-yLpMwsWD.js → device-hint-DAX5UNJH.js} +1 -1
  124. package/dist/client/assets/{discover-DBy_h90B.js → discover-CTV9dsNW.js} +1 -1
  125. package/dist/client/assets/{domain-settings-DahhbaOZ.js → domain-settings-CYeaKhkK.js} +1 -1
  126. package/dist/client/assets/{drawer-Z6WGmFEd.js → drawer-DWjMBwyf.js} +1 -1
  127. package/dist/client/assets/{editor-ZVt04ZDu.js → editor-D6w2Bb1A.js} +1 -1
  128. package/dist/client/assets/{empty-state-C38COFK9.js → empty-state-BjrW4gr3.js} +1 -1
  129. package/dist/client/assets/{empty-state-BIpjMV0P.js → empty-state-DfOpTmwf.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-R_HCwhv9.js → extract-connection-data-BWH-Gguq.js} +1 -1
  131. package/dist/client/assets/{feature-gate-BBs-YK_1.js → feature-gate-CAHn_bYX.js} +1 -1
  132. package/dist/client/assets/{feature-paywall-K9l_m1PM.js → feature-paywall-D3P0r-v1.js} +1 -1
  133. package/dist/client/assets/{file-explorer-B4mkdePV.js → file-explorer-D8gxxm_3.js} +1 -1
  134. package/dist/client/assets/{file-preview-CbjoA-y-.js → file-preview-Dfh2A-J9.js} +1 -1
  135. package/dist/client/assets/{file-share-button-3fAFZqo4.js → file-share-button-BDicbalV.js} +1 -1
  136. package/dist/client/assets/{file-type-icon-DQJBqcjt.js → file-type-icon-hf5iGs8U.js} +1 -1
  137. package/dist/client/assets/flat-project-BZC_AY-t.js +1 -0
  138. package/dist/client/assets/{folder-icon-C0bBbW6a.js → folder-icon-BNfJeIOf.js} +1 -1
  139. package/dist/client/assets/{form-C0Gw14kB.js → form-Bn1uWhLp.js} +1 -1
  140. package/dist/client/assets/{general-CAvBksuG.js → general-CMoIUwrd.js} +1 -1
  141. package/dist/client/assets/home-C5N5Yasj.js +1 -0
  142. package/dist/client/assets/{icon-button-DJ3FH_vW.js → icon-button-D9OpoKyB.js} +1 -1
  143. package/dist/client/assets/{index-yN6Vji_x.js → index-2uENFhiF.js} +3 -3
  144. package/dist/client/assets/{index-zHK7QZ16.js → index-4oHb6320.js} +1 -1
  145. package/dist/client/assets/{index-aYlc7W7n.js → index-BW9tBS1_.js} +1 -1
  146. package/dist/client/assets/index-BYDys87w.js +26 -0
  147. package/dist/client/assets/{index-BYsz2IG8.js → index-C0M3jIYV.js} +1 -1
  148. package/dist/client/assets/{index-CL22V9cU.js → index-CRbDzsEl.js} +2 -2
  149. package/dist/client/assets/{index-Y3iKbmDC.js → index-Cei-7zh-.js} +1 -1
  150. package/dist/client/assets/{index-oBLJEYM1.js → index-CijieWPb.js} +1 -1
  151. package/dist/client/assets/{index-Csd6BEC_.js → index-D8JxMS8j.js} +1 -1
  152. package/dist/client/assets/{index-o_6CQvLG.js → index-DBXjCQdJ.js} +1 -1
  153. package/dist/client/assets/{index-CIf_Fy0-.js → index-DPPcuuZa.js} +1 -1
  154. package/dist/client/assets/{index-DLA0mZnP.js → index-aGwRFVIr.js} +1 -1
  155. package/dist/client/assets/{index-CpSJczgV.js → index-m-B-HtFl.js} +1 -1
  156. package/dist/client/assets/{index-redirect-D-avw8NV.js → index-redirect-oFouPYya.js} +1 -1
  157. package/dist/client/assets/{infiniteQueryObserver-CkQRrcdR.js → infiniteQueryObserver-Dhuk-wHX.js} +1 -1
  158. package/dist/client/assets/{infra-billing-DYbiV_uv.js → infra-billing-D-XVEkhR.js} +1 -1
  159. package/dist/client/assets/{input-CFfgp0Tw.js → input-C8SbKhCo.js} +1 -1
  160. package/dist/client/assets/{input-qyM35152.js → input-XQLahzDk.js} +3 -3
  161. package/dist/client/assets/{integration-icon-DO5tWS-C.js → integration-icon-BELz_pOH.js} +1 -1
  162. package/dist/client/assets/{jira-icon-CLirt27c.js → jira-icon-DtfD9SYH.js} +1 -1
  163. package/dist/client/assets/{label-CMx6o6z4.js → label-BUw2LYOJ.js} +1 -1
  164. package/dist/client/assets/{layout-BOmiV94e.js → layout-d6dVT2i7.js} +1 -1
  165. package/dist/client/assets/{legacy-agents-deep-CNCjp9-J.js → legacy-agents-deep-pzQxt8GU.js} +1 -1
  166. package/dist/client/assets/{legacy-main-redirect-B7q15OBR.js → legacy-main-redirect-Dxx-LsCk.js} +1 -1
  167. package/dist/client/assets/library-C1bBtD2v.js +1 -0
  168. package/dist/client/assets/{library-tab-BNFZabUZ.js → library-tab-CSQBidcn.js} +1 -1
  169. package/dist/client/assets/{login-Emu6BYEQ.js → login-C9F3Ei8y.js} +1 -1
  170. package/dist/client/assets/{markdown-BpBIe-s5.js → markdown-CW257Zz5.js} +1 -1
  171. package/dist/client/assets/{mcp-app-renderer-ucNfuWrt.js → mcp-app-renderer-1q9SfIz-.js} +1 -1
  172. package/dist/client/assets/{mcp-oauth-tUb5Ku4P.js → mcp-oauth-DJzQquAH.js} +1 -1
  173. package/dist/client/assets/{mcp-oauth-HEDfQLbt.js → mcp-oauth-DcDGTHX8.js} +1 -1
  174. package/dist/client/assets/{members-5DGaxXGU.js → members-Cq2hjNgQ.js} +1 -1
  175. package/dist/client/assets/{memory-BU6JoH4_.js → memory-lQR7baEY.js} +1 -1
  176. package/dist/client/assets/{mini-report-page-BnvillTw.js → mini-report-page-BW6etI3e.js} +1 -1
  177. package/dist/client/assets/{mock-board-CL5PjuNr.js → mock-board-v0ispli3.js} +1 -1
  178. package/dist/client/assets/{monaco-editor-CQ53ujnX.js → monaco-editor-BuUSistE.js} +1 -1
  179. package/dist/client/assets/{monitoring-stats-row-CeE5cdl8.js → monitoring-stats-row-oudHSLAL.js} +1 -1
  180. package/dist/client/assets/{multi-select-Bb_75Kq_.js → multi-select-C-uRGkhX.js} +1 -1
  181. package/dist/client/assets/{mustache-CQikKf57.js → mustache-BISt82Zb.js} +1 -1
  182. package/dist/client/assets/{new-project-dialog-CIdD-M5h.js → new-project-dialog-CU6GK7Hi.js} +1 -1
  183. package/dist/client/assets/{oauth-callback-D5OtWQot.js → oauth-callback-Bl3J_Goo.js} +1 -1
  184. package/dist/client/assets/{oauth-callback-ai-provider-mYrYVnqt.js → oauth-callback-ai-provider-C2G5PQSS.js} +1 -1
  185. package/dist/client/assets/{onboarding-s-Aq6pC0.js → onboarding-CCQgINAK.js} +1 -1
  186. package/dist/client/assets/openai-conversation-Dd1mqt5t.js +3 -0
  187. package/dist/client/assets/{optimistic-project-sidebar-views-DfaNoant.js → optimistic-project-sidebar-views-6bEngMBF.js} +1 -1
  188. package/dist/client/assets/{organization-choice-DUpINEOM.js → organization-choice-BsLbocoH.js} +1 -1
  189. package/dist/client/assets/{orgs-NyCttTtW.js → orgs-BviopEAn.js} +1 -1
  190. package/dist/client/assets/{page-seo-form-BcwaLsu1.js → page-seo-form-BI_Up050.js} +1 -1
  191. package/dist/client/assets/{pair-C-wmghxs.js → pair-gT7Vn8Gp.js} +1 -1
  192. package/dist/client/assets/{plan-ladder-Dz96Ryba.js → plan-ladder-eppTKAOz.js} +1 -1
  193. package/dist/client/assets/{popover-BJjSe4oX.js → popover-UZd_hI6l.js} +1 -1
  194. package/dist/client/assets/post-calendar-Cjve8Rxv.js +1 -0
  195. package/dist/client/assets/{post-editor-DUzLhnjz.js → post-editor-CZ0y9t6g.js} +2 -2
  196. package/dist/client/assets/{preview-content-DLzimxeU.js → preview-content-DDkyBqjA.js} +1 -1
  197. package/dist/client/assets/{preview-dialog-feNNzmyD.js → preview-dialog-ClQDORRP.js} +1 -1
  198. package/dist/client/assets/{preview-panel-CYRzCG9l.js → preview-panel-D6Cx93Va.js} +1 -1
  199. package/dist/client/assets/{product-picker-dialog-DCoADulv.js → product-picker-dialog-BzADIVCT.js} +1 -1
  200. package/dist/client/assets/{profile-C4WMC8IX.js → profile-3pRJt6iK.js} +1 -1
  201. package/dist/client/assets/{project-app-view-CLP8CgRj.js → project-app-view-DOlvQRFJ.js} +1 -1
  202. package/dist/client/assets/{project-feed-o8j1clyL.js → project-feed-DwG8xB7e.js} +1 -1
  203. package/dist/client/assets/{project-icon-DyrKdiRe.js → project-icon-CgRPdhMz.js} +1 -1
  204. package/dist/client/assets/project-reports-D_goeZQT.js +1 -0
  205. package/dist/client/assets/project-tasks-DzgzriDY.js +1 -0
  206. package/dist/client/assets/{projects-DEh_o8C9.js → projects-DAlf21yV.js} +1 -1
  207. package/dist/client/assets/{projects-empty-state-Cdl4kOQ1.js → projects-empty-state-NpSKf9NQ.js} +1 -1
  208. package/dist/client/assets/{prompts-Bc9FLvmN.js → prompts-BqXStpOV.js} +1 -1
  209. package/dist/client/assets/record-editor-CwaNJSND.js +1 -0
  210. package/dist/client/assets/redirect-editor-CfZclWU6.js +1 -0
  211. package/dist/client/assets/reports-FtFAx270.js +1 -0
  212. package/dist/client/assets/{reports-onboarding-DetN93z1.js → reports-onboarding-DNardEjj.js} +1 -1
  213. package/dist/client/assets/{reports-tab-ChGluXDr.js → reports-tab-B7A5GfAR.js} +2 -2
  214. package/dist/client/assets/{reports-oNZDdjI5.js → reports-zibGg05d.js} +1 -1
  215. package/dist/client/assets/{repositories-CiOfBaLB.js → repositories-DCzfX5wT.js} +1 -1
  216. package/dist/client/assets/{repository-binding-BGLfNZVf.js → repository-binding-GEAUbB-O.js} +1 -1
  217. package/dist/client/assets/{repository-import-picker-CglAAV-N.js → repository-import-picker-CGZicTtt.js} +1 -1
  218. package/dist/client/assets/{repository-picker-Cn86nava.js → repository-picker-ipWiqqIY.js} +1 -1
  219. package/dist/client/assets/{require-capability-DvSGwHTo.js → require-capability-DCY-qqzS.js} +1 -1
  220. package/dist/client/assets/{required-auth-layout-YTpcWMST.js → required-auth-layout-B0JL0M-z.js} +1 -1
  221. package/dist/client/assets/{reset-password-oN8mFGBD.js → reset-password-C0OP0JfY.js} +1 -1
  222. package/dist/client/assets/{resizable-BGEY0EFD.js → resizable-CNroF4sn.js} +1 -1
  223. package/dist/client/assets/{resolve-tab-icon-voZLivWv.js → resolve-tab-icon-Dxlq4MHo.js} +1 -1
  224. package/dist/client/assets/{review-settings-DetXY7FI.js → review-settings-DUuUJ0iP.js} +1 -1
  225. package/dist/client/assets/{rich-text-link-control-CI2Op3JZ.js → rich-text-link-control-Cyib9lpp.js} +1 -1
  226. package/dist/client/assets/{roles-DUajMmJL.js → roles-B3QPIjlh.js} +1 -1
  227. package/dist/client/assets/route--gK_s8W2.js +1 -0
  228. package/dist/client/assets/{route-DJLRE8ic.js → route-Dh4tgoWv.js} +1 -1
  229. package/dist/client/assets/route-K7GDvkOp.js +1 -0
  230. package/dist/client/assets/{runnable-block-editor-4vBz623-.js → runnable-block-editor-cJtvApNo.js} +1 -1
  231. package/dist/client/assets/{sandbox-lifecycle-context-C_3fMqSf.js → sandbox-lifecycle-context-DtkY5KHH.js} +1 -1
  232. package/dist/client/assets/{schema-DAiRf49Q.js → schema-DCzFPjhQ.js} +1 -1
  233. package/dist/client/assets/schema-DxY623qB.js +1 -0
  234. package/dist/client/assets/{scroll-area-D8pwM87R.js → scroll-area-BOuDQrjF.js} +1 -1
  235. package/dist/client/assets/{search-input-BADdEzRB.js → search-input-DXojQXHS.js} +1 -1
  236. package/dist/client/assets/{search-toggle-BXsTAhJH.js → search-toggle-BHQUIlgP.js} +1 -1
  237. package/dist/client/assets/{secret-picker-DYQ3Y0hB.js → secret-picker-DghVxrjs.js} +1 -1
  238. package/dist/client/assets/{secrets-DkldztQE.js → secrets-Bw5YDwtb.js} +1 -1
  239. package/dist/client/assets/{sections-editor-C-qAs9t3.js → sections-editor-zfrx_XIM.js} +2 -2
  240. package/dist/client/assets/{select-model-Coln0RuO.js → select-model-B19lAAyT.js} +1 -1
  241. package/dist/client/assets/{select-DoctMyOC.js → select-nSDsr0Zi.js} +1 -1
  242. package/dist/client/assets/seo-editor-Do7Fekf0.js +1 -0
  243. package/dist/client/assets/{separator-B4WfBd40.js → separator-D9Lu8Cm9.js} +1 -1
  244. package/dist/client/assets/{settings-tab-DFn-ybRc.js → settings-tab-TpMIkIJy.js} +1 -1
  245. package/dist/client/assets/{sheet-B6SnxCii.js → sheet-Bg01hTvG.js} +1 -1
  246. package/dist/client/assets/{shell-layout-_gLI3g1W.js → shell-layout-BO31z5MQ.js} +1 -1
  247. package/dist/client/assets/{skills-gj8cVLsz.js → skills-Bf1PjaTY.js} +1 -1
  248. package/dist/client/assets/{slider-DN1_RJ5Y.js → slider-D1s4eRGk.js} +1 -1
  249. package/dist/client/assets/{sortable.esm-39sGMg0A.js → sortable.esm-DcO5R1X-.js} +1 -1
  250. package/dist/client/assets/{sso-CMGxfocU.js → sso-C7L4UDB8.js} +1 -1
  251. package/dist/client/assets/{suggestion-DPIiudVw.js → suggestion-D6_m0iRs.js} +1 -1
  252. package/dist/client/assets/{switch-CXuIYT9e.js → switch-C2mEXqfo.js} +1 -1
  253. package/dist/client/assets/{symbol-CTW82RbO.js → symbol-Cb89sKGf.js} +1 -1
  254. package/dist/client/assets/{synced-repos-DAtDW7FL.js → synced-repos-uukt7jKa.js} +1 -1
  255. package/dist/client/assets/{tab-icon-glyph-BkQvbqzH.js → tab-icon-glyph-Cmkw2CVR.js} +1 -1
  256. package/dist/client/assets/{table-1p2TxQNp.js → table-CtPELWNl.js} +1 -1
  257. package/dist/client/assets/{tabs-CpwN-luG.js → tabs-D0ZapmHf.js} +1 -1
  258. package/dist/client/assets/{task-board-BR1DvBwF.js → task-board-Cq7KN9Yp.js} +1 -1
  259. package/dist/client/assets/{task-route-C_DvpiOV.js → task-route-Cj_KfcXd.js} +1 -1
  260. package/dist/client/assets/{task-status-edWeKF1d.js → task-status-Dl4YXdIS.js} +1 -1
  261. package/dist/client/assets/taskboard-analytics-DynaE5kc.js +1 -0
  262. package/dist/client/assets/tasks-YwCQME0_.js +1 -0
  263. package/dist/client/assets/{tasks-0Nq-zOga.js → tasks-ZUmpusO0.js} +1 -1
  264. package/dist/client/assets/{textarea-BfwTTa-d.js → textarea-DKdq_MAz.js} +1 -1
  265. package/dist/client/assets/{thread-analytics-CopoUn-p.js → thread-analytics-Dmg-wMap.js} +1 -1
  266. package/dist/client/assets/{thread-button-D0jo5h0y.js → thread-button-D0vpHKhc.js} +1 -1
  267. package/dist/client/assets/{thread-intent-CgK6_lx2.js → thread-intent-DTPz1weL.js} +1 -1
  268. package/dist/client/assets/{thread-route-B6Fc_RFE.js → thread-route-COCJBhr6.js} +1 -1
  269. package/dist/client/assets/{thread-route-CgdmmioO.js → thread-route-gGOzpjkp.js} +1 -1
  270. package/dist/client/assets/{thread-sheet-body-BK4lUe-W.js → thread-sheet-body-BuMvTCp6.js} +1 -1
  271. package/dist/client/assets/{time-range-picker-_BVYixos.js → time-range-picker-MFuLyt2k.js} +1 -1
  272. package/dist/client/assets/{toggle-group-DLHDaWVo.js → toggle-group-CZ2TAUmo.js} +1 -1
  273. package/dist/client/assets/{tool-namespace-BPLgX6r-.js → tool-namespace-BsBj6Gec.js} +1 -1
  274. package/dist/client/assets/{toolbar-icon-button-C_OqF99U.js → toolbar-icon-button-BbfFE6qt.js} +1 -1
  275. package/dist/client/assets/{tooltip-Dz-qpzYY.js → tooltip-3DBbiHrv.js} +1 -1
  276. package/dist/client/assets/{tooltipContext-C5rFwURT.js → tooltipContext-Bv4e3_jQ.js} +1 -1
  277. package/dist/client/assets/{track-D8_YlvuV.js → track-2QxiEKmh.js} +1 -1
  278. package/dist/client/assets/{types-C-bGWQ4N.js → types-DJQTaYxP.js} +1 -1
  279. package/dist/client/assets/{url-slug-DnJTGqgD.js → url-slug-CVpOSHeG.js} +1 -1
  280. package/dist/client/assets/{usage-stats-Dskh866S.js → usage-stats-x-NR7rQ4.js} +1 -1
  281. package/dist/client/assets/{use-ai-providers-BAXvzpWI.js → use-ai-providers-scSugiQF.js} +1 -1
  282. package/dist/client/assets/{use-automations-jtpzDfwI.js → use-automations-DxHm0Snl.js} +1 -1
  283. package/dist/client/assets/{use-autosave-SKFoSjPt.js → use-autosave-6XZ1t5rl.js} +1 -1
  284. package/dist/client/assets/{use-chat-layout-state-CA9xW2qA.js → use-chat-layout-state-n4Q3uYHD.js} +1 -1
  285. package/dist/client/assets/{use-chat-navigation-BYokh2PZ.js → use-chat-navigation-CpL4JFZX.js} +1 -1
  286. package/dist/client/assets/{use-clock-tick-D_sbvWIH.js → use-clock-tick-X8apRSs5.js} +1 -1
  287. package/dist/client/assets/{use-connect-companion-5bDO4jQu.js → use-connect-companion-DejR02Br.js} +1 -1
  288. package/dist/client/assets/{use-connection-BIx1BUIM.js → use-connection--fjYRP_g.js} +1 -1
  289. package/dist/client/assets/{use-copy-Da7eNVy9.js → use-copy-DWNF2ghn.js} +1 -1
  290. package/dist/client/assets/{use-create-virtual-mcp-ejJy1cdv.js → use-create-virtual-mcp-CSStLbyC.js} +1 -1
  291. package/dist/client/assets/{use-date-fns-locale-CaWCAmJI.js → use-date-fns-locale-uYFiDToW.js} +1 -1
  292. package/dist/client/assets/{use-debounced-autosave-DugSqk23.js → use-debounced-autosave-NE-5LrTu.js} +1 -1
  293. package/dist/client/assets/{use-debounced-value-DpRvXYf_.js → use-debounced-value-Db_6wQub.js} +1 -1
  294. package/dist/client/assets/{use-deco-credits-rm4q7hjq.js → use-deco-credits-DiTvJIB8.js} +1 -1
  295. package/dist/client/assets/{use-decopilot-events-DzS1GTJA.js → use-decopilot-events-D14uF_Cy.js} +1 -1
  296. package/dist/client/assets/{use-delete-connection-CveANzdS.js → use-delete-connection-CJW-ymsx.js} +1 -1
  297. package/dist/client/assets/{use-deployment-admin-Dtf1f6in.js → use-deployment-admin-RiMk6_Ng.js} +1 -1
  298. package/dist/client/assets/{use-ensure-project-folder-DnwLT6n2.js → use-ensure-project-folder-CJRjmHmY.js} +1 -1
  299. package/dist/client/assets/{use-fast-preview-draft-url-gddbB98r.js → use-fast-preview-draft-url-CSEoIdMd.js} +1 -1
  300. package/dist/client/assets/{use-file-configs-Cs5X6vH_.js → use-file-configs-BJG54sLn.js} +1 -1
  301. package/dist/client/assets/{use-infinite-scroll-DzEoSjmb.js → use-infinite-scroll-BPxCDDTo.js} +1 -1
  302. package/dist/client/assets/{use-join-requests-BFtEcuZ5.js → use-join-requests-CPoLxTNh.js} +1 -1
  303. package/dist/client/assets/{use-main-panel-tabs-D3i-CtUA.js → use-main-panel-tabs-Cal5VUTK.js} +1 -1
  304. package/dist/client/assets/{use-mcp-auth-status-DBZY5zBR.js → use-mcp-auth-status-CqBzsTJX.js} +1 -1
  305. package/dist/client/assets/{use-mcp-client-Dii6HKbn.js → use-mcp-client-BWo29jbN.js} +1 -1
  306. package/dist/client/assets/{use-mcp-prompts-BrfI-bT0.js → use-mcp-prompts-BmY4-dHy.js} +1 -1
  307. package/dist/client/assets/{use-mcp-tools-DvCI3rin.js → use-mcp-tools-D9a3atY2.js} +1 -1
  308. package/dist/client/assets/{use-members-Clb4I0WG.js → use-members-BsPA0Ct2.js} +1 -1
  309. package/dist/client/assets/{use-mobile-H9hGbUdK.js → use-mobile-BcwC7VU3.js} +1 -1
  310. package/dist/client/assets/{use-navigate-to-agent-C_Bk-WTy.js → use-navigate-to-agent-f1RDTOQU.js} +1 -1
  311. package/dist/client/assets/use-new-blocks-editor-Enk3EEXi.js +1 -0
  312. package/dist/client/assets/{use-open-billing-url-CsVJpAR8.js → use-open-billing-url-B1MJm7M5.js} +1 -1
  313. package/dist/client/assets/{use-org-auth-client-CGnpmIwt.js → use-org-auth-client-sBWqKZAZ.js} +1 -1
  314. package/dist/client/assets/{use-org-fs-090kBeGb.js → use-org-fs-BruBSf1P.js} +1 -1
  315. package/dist/client/assets/{use-org-repo-syncs-CXYmF8vW.js → use-org-repo-syncs-CzMHVaws.js} +1 -1
  316. package/dist/client/assets/{use-org-sso-D0pRb0h2.js → use-org-sso-DQNJJVcp.js} +1 -1
  317. package/dist/client/assets/{use-organization-roles-2XHDK9nW.js → use-organization-roles-BLHGg1C0.js} +1 -1
  318. package/dist/client/assets/{use-organization-settings-BCnCWSM4.js → use-organization-settings-C2COOtae.js} +1 -1
  319. package/dist/client/assets/{use-panel-navigate-CzmyA3PY.js → use-panel-navigate-sjPSBICL.js} +1 -1
  320. package/dist/client/assets/{use-project-scope-0DIp_prZ.js → use-project-scope-B_oLVbNv.js} +1 -1
  321. package/dist/client/assets/{use-releases-CA_rM0y-.js → use-releases-BDZh8PFH.js} +1 -1
  322. package/dist/client/assets/{use-reports-diagnostic-Nc7WKzHO.js → use-reports-diagnostic-bJK07n1G.js} +1 -1
  323. package/dist/client/assets/{use-sandbox-events-CUG13fIj.js → use-sandbox-events-BxpyP1-g.js} +1 -1
  324. package/dist/client/assets/{use-secrets-CAgjCyZi.js → use-secrets-Dut38iEG.js} +1 -1
  325. package/dist/client/assets/{use-section-preview-base-nZ_rR067.js → use-section-preview-base-7N5lxhPB.js} +1 -1
  326. package/dist/client/assets/{use-tags-Cx_sTi85.js → use-tags-CjD7AOOq.js} +1 -1
  327. package/dist/client/assets/{use-task-board-analytics-HMQ395Ct.js → use-task-board-analytics-C-GLsHqS.js} +1 -1
  328. package/dist/client/assets/{use-task-board-events-BIxyvwMu.js → use-task-board-events-B4nYkYUb.js} +1 -1
  329. package/dist/client/assets/{use-task-board-item-prs-C-ZolRBO.js → use-task-board-item-prs-CdlxN-Va.js} +1 -1
  330. package/dist/client/assets/{use-task-board-items-fJTXcazL.js → use-task-board-items-Bx0LqpaH.js} +1 -1
  331. package/dist/client/assets/{use-task-metadata-BGRg9gqV.js → use-task-metadata-BULXjcEM.js} +1 -1
  332. package/dist/client/assets/{use-thread-analytics-CNHU0H7W.js → use-thread-analytics-BtDukIrk.js} +1 -1
  333. package/dist/client/assets/{use-thread-outputs-BdDJ85ic.js → use-thread-outputs-CaENK2ep.js} +1 -1
  334. package/dist/client/assets/useInfiniteQuery-BBVki4Du.js +1 -0
  335. package/dist/client/assets/{useQueries-SbEnc9zP.js → useQueries-Ij5noImS.js} +1 -1
  336. package/dist/client/assets/useSuspenseInfiniteQuery-DP1_6mso.js +1 -0
  337. package/dist/client/assets/{users-DAar6oNb.js → users-Dd13UOxE.js} +1 -1
  338. package/dist/client/assets/{utils-B82E0qSP.js → utils-CoFqD39i.js} +1 -1
  339. package/dist/client/assets/variant-calendar-DLgW_8Bs.js +1 -0
  340. package/dist/client/assets/{variant-matcher-override-CUEPR4IO.js → variant-matcher-override-BLuZbjc2.js} +1 -1
  341. package/dist/client/assets/{view-mode-toggle-0buE2kLD.js → view-mode-toggle-DGF1qVNP.js} +1 -1
  342. package/dist/client/assets/{virtual-mcp-IOrpgzuz.js → virtual-mcp-eMBT1Rwh.js} +1 -1
  343. package/dist/client/assets/{watch-sse-pool-BFh4zrHL.js → watch-sse-pool-Bb7_5bsI.js} +1 -1
  344. package/dist/client/index.html +1 -1
  345. package/dist/server/server.js +1 -1
  346. package/package.json +1 -1
  347. package/dist/client/assets/add-connection-dialog-C99-KIxD.js +0 -1
  348. package/dist/client/assets/agent-analytics-DezOg4iq.js +0 -2
  349. package/dist/client/assets/agent-app-OwJ0X9iQ.js +0 -1
  350. package/dist/client/assets/agent-assets-DtBwQzpc.js +0 -1
  351. package/dist/client/assets/agent-deck-CVQI0IJ8.js +0 -1
  352. package/dist/client/assets/agent-e2e-Cf-7o5JH.js +0 -1
  353. package/dist/client/assets/agent-experiments-BjOexOgL.js +0 -1
  354. package/dist/client/assets/agent-file-CVJUPUB9.js +0 -1
  355. package/dist/client/assets/agent-hosting-DJ5loXp1.js +0 -1
  356. package/dist/client/assets/agent-library-DMvAbH9s.js +0 -1
  357. package/dist/client/assets/agent-library-file-B-EjZyU3.js +0 -1
  358. package/dist/client/assets/agent-monitor-CwvDQf-0.js +0 -1
  359. package/dist/client/assets/agent-settings-S4roascd.js +0 -1
  360. package/dist/client/assets/agent-site-editor-code-DsF3btqi.js +0 -2
  361. package/dist/client/assets/agent-view-DNsQvn8c.js +0 -1
  362. package/dist/client/assets/api-keys-BFo2F8un.js +0 -1
  363. package/dist/client/assets/app-editor-CLedpfSA.js +0 -1
  364. package/dist/client/assets/category-editor-Dh4k-2za.js +0 -1
  365. package/dist/client/assets/collection-detail-BVfokcci.js +0 -1
  366. package/dist/client/assets/connection-detail-Cx1TsCEV.js +0 -1
  367. package/dist/client/assets/connection-form-helpers-D5AT-OBk.js +0 -1
  368. package/dist/client/assets/connections-DEMu2UYi.js +0 -1
  369. package/dist/client/assets/context-B4AjxGVI.js +0 -1
  370. package/dist/client/assets/flat-project-C0OkliLB.js +0 -1
  371. package/dist/client/assets/home-DNlj1vDz.js +0 -1
  372. package/dist/client/assets/index-DC6iJbGF.js +0 -26
  373. package/dist/client/assets/library-DUvGua8d.js +0 -1
  374. package/dist/client/assets/openai-conversation-D0sRUrnM.js +0 -3
  375. package/dist/client/assets/post-calendar-Dd7Rx0Y2.js +0 -1
  376. package/dist/client/assets/project-reports-5Kg7yDsr.js +0 -1
  377. package/dist/client/assets/project-tasks-C93fh75m.js +0 -1
  378. package/dist/client/assets/record-editor-B_D1bdnj.js +0 -1
  379. package/dist/client/assets/redirect-editor-CwqE3fJt.js +0 -1
  380. package/dist/client/assets/reports-Bmm0luQ2.js +0 -1
  381. package/dist/client/assets/route-Frsbu1bb.js +0 -1
  382. package/dist/client/assets/route-JSQmVwkK.js +0 -1
  383. package/dist/client/assets/seo-editor-AS6vQaHK.js +0 -1
  384. package/dist/client/assets/taskboard-analytics-BKAHiV-A.js +0 -1
  385. package/dist/client/assets/tasks-CbEmZqW6.js +0 -1
  386. package/dist/client/assets/use-new-blocks-editor-ZHXdwaTL.js +0 -1
  387. package/dist/client/assets/useInfiniteQuery-DhuK1n82.js +0 -1
  388. package/dist/client/assets/useSuspenseInfiniteQuery-DmpJFLm-.js +0 -1
  389. package/dist/client/assets/variant-calendar-C_pGmhST.js +0 -1
@@ -0,0 +1 @@
1
+ import{c,l as d,j as i,n as f,P as l,aI as u,O as x}from"./index-CRbDzsEl.js";import{u as j}from"./use-mobile-BcwC7VU3.js";import{R as h}from"./index-BW9tBS1_.js";import"./thread-button-D0vpHKhc.js";import"./agent-icon-CSrsRkkV.js";import"./AlertCircle-BBiRNTdE.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./LinkBroken01-BFW8MxYc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./ZoomOut-DJOChAz1.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./Copy01-CT9uxfj6.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Image01-DUunwh52.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Plus-clvoB9-y.js";import"./SearchMd-Bg-9XsfQ.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./task-board-Cq7KN9Yp.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./thread-route-gGOzpjkp.js";import"./use-panel-navigate-sjPSBICL.js";import"./use-project-scope-B_oLVbNv.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./integration-icon-BELz_pOH.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";function Ft(){const t=c.c(9),n=j(),s=!n&&"p-1.5";let r;t[0]!==s?(r=d("flex-1 min-h-0",s),t[0]=s,t[1]=r):r=t[1];const a=n?"plain":"card";let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(h,{}),t[2]=m):m=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsxs(f.Breadcrumbs.Provider,{children:[m,i.jsx(l.Content,{children:i.jsx(u,{children:i.jsx(x,{})})})]}),t[3]=p):p=t[3];let o;t[4]!==a?(o=i.jsx(l,{"data-testid":"settings-panel",variant:a,children:p}),t[4]=a,t[5]=o):o=t[5];let e;return t[6]!==r||t[7]!==o?(e=i.jsx("div",{className:r,children:o}),t[6]=r,t[7]=o,t[8]=e):e=t[8],e}export{Ft as default};
@@ -1,4 +1,4 @@
1
- import{a_ as Ar,r as I,c as z,o as Fn,m as W0,K as z9,b as d9,j as r,l as K,B as x9,a4 as On,aU as Rr,e as Dn,t as _9,ah as Q9,a$ as Pr,b0 as n0,n as Mr,I as I9,ap as $n,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ir,a1 as Fr,b1 as re,au as Ee,aZ as Or,h as x0,v as Ve,aK as Ue,s as Ke,w as zn,q as Ge,D as He,b2 as Dr,H as $r,a6 as Bn,b3 as zr,aD as Br,aE as Vr,aV as Vn}from"./index-CL22V9cU.js";import{a as qe}from"./input-qyM35152.js";import{u as We,q as Un,O as Ur,P as Kr,Q as Gr,c as B9,T as J9,U as Y0,V as _e,N as Ye,W as k9,C as Hr,X as V0,A as qr,B as Wr,y as Yr,z as Jr,Y as Kn,t as Gn,Z as Zr,_ as Ft,$ as Qr,a0 as Xr,r as H9,a1 as E0,a2 as Hn,a3 as Je,a4 as ei,a5 as ti,a6 as ni,a7 as si,a8 as ri,a9 as qn,g as ii,aa as Ze,o as oi,ab as li,ac as ai,v as ci,ad as Li,ae as di,af as Ae,ag as ui,ah as U0,ai as fi,aj as mi,ak as pi,al as hi,am as gi,an as xi,ao as Ot,ap as yi,aq as vi,ar as bi,as as ji}from"./claim-phase-copy-DgYG3gXQ.js";import{e as Wn}from"./backoff-CrEUbyZT.js";import{ab as Si,ac as Ni,ad as ki,ae as Ti,af as Ci,ag as wi,ah as Ei,ai as _i,aj as Ai,a0 as Ri,ak as Yn,E as Pi,al as ie,D as Mi,C as Ii,am as Jn,a6 as _0,t as Fi,d as L0,an as Oi,ao as Dt,ap as Di,aa as $i,K as zi,aq as Bi,ar as Vi}from"./agent-icon-CvfPq7BK.js";import{i as Zn}from"./Play-C5HXiIgy.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as Ui}from"./pair-C-wmghxs.js";import{i as Qe}from"./ChevronSelectorVertical-Cz_mr8Ub.js";import{C as oe,a as le,b as Z9,e as f0,c as ae,f as Xe,d as Ki}from"./command-psdI3Avp.js";import{a as F0,b as O0,P as D0}from"./popover-BJjSe4oX.js";import{s as Gi,a as Hi,b as qi}from"./utils-B82E0qSP.js";import{u as Qn}from"./chat-context-CQm-6egv.js";import{S as Xn}from"./scroll-area-D8pwM87R.js";import{T as A9,a as R9,b as P9}from"./tooltip-Dz-qpzYY.js";import{a as et,c as Wi}from"./repository-binding-BGLfNZVf.js";import{M as es}from"./monaco-editor-CQ53ujnX.js";import{C as Yi}from"./calendar-CUQ5339S.js";import{T as Ji}from"./textarea-BfwTTa-d.js";import{L as U9}from"./label-CMx6o6z4.js";import{u as w9}from"./use-new-blocks-editor-ZHXdwaTL.js";import{c as Zi,d as Qi,i as Xi,b as e1}from"./Tool01-CIRW7kd4.js";import{i as ts}from"./SwitchHorizontal01-CDaKlB_n.js";import{s as y0}from"./Plus-BGNNWymV.js";import{E as l0,M as t1,m as n1,g as $0,u as s1,s as r1,a as i1,b as o1}from"./usage-stats-Dskh866S.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-DoctMyOC.js";import{T as F9,E as l1,R as a1}from"./rich-text-link-control-CI2Op3JZ.js";import{S as tt}from"./switch-CXuIYT9e.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as lt,b as at}from"./core.esm-BBQ2k6X-.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-39sGMg0A.js";import{V as c1}from"./view-mode-toggle-0buE2kLD.js";import{t as v0}from"./ChevronUp-BXbTXhXZ.js";import{a as fe}from"./Copy01-Daz7AFYE.js";import{s as L1,a as h0}from"./Image01-6k6QI1dX.js";import{s as a0}from"./Trash01-BJZRU-Yu.js";import{e as k0,a as ns}from"./UserSquare--AVOLLKT.js";import{C as d1}from"./combobox-C7W7K3yr.js";import{A as u1,a as f1,b as m1,c as p1,g as h1,d as g1,e as x1,f as y1}from"./alert-dialog-BoGCVrZa.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-C7vMH9KG.js";import{i as z0}from"./Upload01-CdF0U1Ox.js";import{i as ss}from"./AlertCircle-DWGeVbRZ.js";import{i as rs}from"./DotsVertical-B5WoSbKn.js";import{S as v1}from"./search-input-BADdEzRB.js";import{T as b1,a as j1,c as S1,b as N1}from"./tabs-CpwN-luG.js";import{u as k1}from"./use-debounced-value-DpRvXYf_.js";import{a as T1,u as is}from"./use-file-configs-Cs5X6vH_.js";import{u as C1,a as ft,i as os,e as w1,b as zt,f as E1}from"./asset-utils-C0JplDix.js";import{d as ls}from"./use-chat-layout-state-CA9xW2qA.js";import{a as _1,T as A1}from"./toggle-group-DLHDaWVo.js";import{g as R1,f as P1}from"./thread-intent-CgK6_lx2.js";import{t as M1}from"./sandbox-git-api-C7JbVL7R.js";import{d as I1}from"./delay-CnY5UFtP.js";const mt=Ar("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),F1="website/loaders/secret.ts",O1=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],D1=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&D1.test(t)}class $1 extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new $1(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function z1(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function B1(t,e,n,s={}){return as("",t,e,n,s)}function as(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},l={},a=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of a){const L=as(`${t}/${V1(c)}`,o[c],n[c],s[c],i);L!==void 0&&(l[c]=L)}return l}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[l,a]of e.entries()){const c=!c0(a,n[l]),L=!c0(a,s[l]);if(c&&L&&!c0(n[l],s[l]))return Bt(t,n,s,i);o.push(c?n[l]:s[l])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function V1(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}const cs=3e3,U1=15e3,K1=2*6e4,Ls={now:()=>Date.now(),setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function G1(t){return t<K1?cs:U1}function H1(t,e=Ls){const n=e.now();let s=!1,i=!1,o=null;const l=()=>{s||(o=e.setTimeout(a,G1(e.now()-n)))},a=()=>{if(o=null,s)return;const{read:c,skip:L}=t();if(i||e.hidden()||L?.()){l();return}i=!0;let d;try{d=c()}catch{d=void 0}Promise.resolve(d).catch(()=>{}).finally(()=>{i=!1}),l()};return l(),()=>{s=!0,o!==null&&e.clearTimeout(o)}}const Ut=()=>0;function q1(t,e,n=Ls){const s=I.useRef(e);s.current=e;const[i]=I.useState(()=>({polling:()=>H1(()=>s.current,n),idle:()=>()=>{}}));I.useSyncExternalStore(t?i.polling:i.idle,Ut,Ut)}function ds(t,e){return me(t,e)}function W1(t,e){return me(t,"preview-fetch",{path:e})}function Y1(t){return ds(t,"preview-invoke")}function b5(t){return ds(t,"catalog-invoke")}function us(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function J1(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&us(n))return n}return null}function fs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??J1();return n&&us(n)?new URL(e,n).toString():W1(t,e)}function Z1(t){return fs(t,"/.decofile")}function Q1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Kt(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ms(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Q1(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const l=new Error(`Failed to read ${e}: ${s.status}`);throw l.status=s.status,l}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Gi(o.content))}}catch{return{kind:"unavailable"}}}async function X1(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ps(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function j5(t,e){const n=z.c(29),{url:s}=We(t?.virtualMcpId),i=!!s,o=t?ps({...t,localPreviewUrl:s}):"",l=e?.fetchEnabled??!0,a=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=Fn(),d=z9.decofile(o);let f;n[0]!==t||n[1]!==L||n[2]!==d?(f=()=>{if(!t||L.isMutating({mutationKey:Un(t.orgSlug,t.virtualMcpId,t.branch)})>0)return!0;const v=L.getQueryState(d);return v?.fetchStatus==="fetching"||Date.now()-(v?.dataUpdatedAt??0)<cs/2},n[0]=t,n[1]=L,n[2]=d,n[3]=f):f=n[3];let u;n[4]!==c||n[5]!==i||n[6]!==t||n[7]!==L||n[8]!==d?(u=async()=>{if(t){if(c&&!i){const v=Ur(L,t)?.version;if(v&&!await Kr(t,v))return}await L.refetchQueries({queryKey:d,exact:!0},{cancelRefetch:!1})}},n[4]=c,n[5]=i,n[6]=t,n[7]=L,n[8]=d,n[9]=u):u=n[9];let x;n[10]!==f||n[11]!==u?(x={skip:f,read:u},n[10]=f,n[11]=u,n[12]=x):x=n[12],q1(!!e?.pollWhile&&!!t,x);let m;n[13]!==c||n[14]!==l||n[15]!==i||n[16]!==s||n[17]!==a||n[18]!==t||n[19]!==L?(m=async()=>{if(i){const y=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(no),b=y?.ok?Vt(await y.text()):null;if(b)return b;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return Gr(L,t);const v=()=>ms(t,ht(a,".deco/blocks.gen.json"));if(l){const y=await fetch(Z1(t),{cache:"no-store"}).catch(to);if(y?.ok){const k=Vt(await y.text());if(k)return k}const b=await v();if(b.kind==="data")return b.data;const S=new Error(`Failed to fetch decofile: ${y?.status??"network error"}`);throw S.status=Kt({liveOk:!!y?.ok,liveStatus:y?.status,committedAbsent:b.kind==="absent"}),S}const j=await v();if(j.kind==="data")return j.data;const N=new Error("decofile unavailable (preview down, no committed snapshot)");throw N.status=Kt({liveOk:!1,committedAbsent:j.kind==="absent"}),N},n[13]=c,n[14]=l,n[15]=i,n[16]=s,n[17]=a,n[18]=t,n[19]=L,n[20]=m):m=n[20];const p=!!t;let h;n[21]!==c||n[22]!==i?(h=(v,j)=>{if(c||i)return v<3;const N=j.status;return N!==502&&N!==404&&v<2},n[21]=c,n[22]=i,n[23]=h):h=n[23];let g;return n[24]!==d||n[25]!==m||n[26]!==p||n[27]!==h?(g={queryKey:d,queryFn:m,enabled:p,staleTime:3e4,retry:h,retryDelay:eo},n[24]=d,n[25]=m,n[26]=p,n[27]=h,n[28]=g):g=n[28],W0(g)}function eo(t){return Wn(5e3,1e3,t,2,0)}function to(){return null}function no(){return null}function so(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function ro(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function S5(t,e){const n=z.c(21),{url:s}=We(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),l=s??t?.previewUrl,a=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==l||n[2]!==c?(f=t?ro({...t,previewUrl:l,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=l,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==a||n[8]!==t||n[9]!==l||n[10]!==c?(u=async()=>{const g=oo,v=()=>d?X1(t):ms(t,ht(a,".deco/meta.gen.json")),j=i&&l?[{kind:"live",baseUrl:l}]:so({fetchEnabled:o,previewUrl:l,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const S=await v();if(S.kind==="data")return S.data;continue}const b=await g(y.baseUrl);if(b)return b}const N=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw N.status=502,N},n[4]=d,n[5]=o,n[6]=i,n[7]=a,n[8]=t,n[9]=l,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:io},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],W0(h)}function io(t){return Wn(5e3,1e3,t,2,0)}async function oo(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(lo);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function lo(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function N5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const l=o?n.section:void 0,a=o?l?.__resolveType??"":i;if(a===Y0||a===_e){const L=o?l:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===Ye){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===Y0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?k9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(c)||`Section ${s+1}`,isLazy:o}})}const ao={provision:0,cloning:1,install:2,dev:3};function co(t){return ao[t.step]}const Gt=48,hs=28,gs=3,Lo=(()=>{const t=[];let e=0;for(let n=0;n<Gt;n++)n===hs?t.push(null):(t.push(e/(Gt-1)*gs),e++);return t})();function uo(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function fo(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Hr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",mo=Array.from({length:35},()=>Math.random()*1.8),po=Array.from({length:35},()=>Math.random()<.4);function ho(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=co(n),e[0]=n,e[1]=o):o=e[1];const l=o;let a;e[2]!==s||e[3]!==n||e[4]!==i?(a=fo(n,s,uo(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=a):a=e[5];const c=a;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(Ui,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(go,{}),e[10]=u):u=e[10];let x;e[11]!==l?(x=r.jsx(K0,{phase:0,current:l,children:u}),e[11]=l,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(yo,{}),e[13]=m):m=e[13];let p;e[14]!==l?(p=r.jsx(K0,{phase:1,current:l,children:m}),e[14]=l,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(vo,{}),e[16]=h):h=e[16];let g;e[17]!==l?(g=r.jsx(K0,{phase:2,current:l,children:h}),e[17]=l,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(jo,{}),e[19]=v):v=e[19];let j;e[20]!==l?(j=r.jsx(K0,{phase:3,current:l,children:v}),e[20]=l,e[21]=j):j=e[21];let N;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(N=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=N):N=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
1
+ import{a_ as Ar,r as I,c as z,o as Fn,m as W0,K as z9,b as d9,j as r,l as K,B as x9,a4 as On,aU as Rr,e as Dn,t as _9,ah as Q9,a$ as Pr,b0 as n0,n as Mr,I as I9,ap as $n,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ir,a1 as Fr,b1 as re,au as Ee,aZ as Or,h as x0,v as Ve,aK as Ue,s as Ke,w as zn,q as Ge,D as He,b2 as Dr,H as $r,a6 as Bn,b3 as zr,aD as Br,aE as Vr,aV as Vn}from"./index-CRbDzsEl.js";import{a as qe}from"./input-XQLahzDk.js";import{u as We,q as Un,O as Ur,P as Kr,Q as Gr,c as B9,T as J9,U as Y0,V as _e,N as Ye,W as k9,C as Hr,X as V0,A as qr,B as Wr,y as Yr,z as Jr,Y as Kn,t as Gn,Z as Zr,_ as Ft,$ as Qr,a0 as Xr,r as H9,a1 as E0,a2 as Hn,a3 as Je,a4 as ei,a5 as ti,a6 as ni,a7 as si,a8 as ri,a9 as qn,g as ii,aa as Ze,o as oi,ab as li,ac as ai,v as ci,ad as Li,ae as di,af as Ae,ag as ui,ah as U0,ai as fi,aj as mi,ak as pi,al as hi,am as gi,an as xi,ao as Ot,ap as yi,aq as vi,ar as bi,as as ji}from"./claim-phase-copy-Clje3zqq.js";import{e as Wn}from"./backoff-CrEUbyZT.js";import{ab as Si,ac as Ni,ad as ki,ae as Ti,af as Ci,ag as wi,ah as Ei,ai as _i,aj as Ai,a0 as Ri,ak as Yn,E as Pi,al as ie,D as Mi,C as Ii,am as Jn,a6 as _0,t as Fi,d as L0,an as Oi,ao as Dt,ap as Di,aa as $i,K as zi,aq as Bi,ar as Vi}from"./agent-icon-CSrsRkkV.js";import{i as Zn}from"./Play-DFfgxv2q.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as Ui}from"./pair-gT7Vn8Gp.js";import{i as Qe}from"./ChevronSelectorVertical-Dc4zDElk.js";import{C as oe,a as le,b as Z9,e as f0,c as ae,f as Xe,d as Ki}from"./command-CJiwms5W.js";import{a as F0,b as O0,P as D0}from"./popover-UZd_hI6l.js";import{s as Gi,a as Hi,b as qi}from"./utils-CoFqD39i.js";import{u as Qn}from"./chat-context-NYUfgJBl.js";import{S as Xn}from"./scroll-area-BOuDQrjF.js";import{T as A9,a as R9,b as P9}from"./tooltip-3DBbiHrv.js";import{a as et,c as Wi}from"./repository-binding-GEAUbB-O.js";import{M as es}from"./monaco-editor-BuUSistE.js";import{C as Yi}from"./calendar-D4OoX9Wr.js";import{T as Ji}from"./textarea-DKdq_MAz.js";import{L as U9}from"./label-BUw2LYOJ.js";import{u as w9}from"./use-new-blocks-editor-Enk3EEXi.js";import{c as Zi,d as Qi,i as Xi,b as e1}from"./Tool01-D8RNlK5k.js";import{i as ts}from"./SwitchHorizontal01-D8mpLNM6.js";import{s as y0}from"./Plus-clvoB9-y.js";import{E as l0,M as t1,m as n1,g as $0,u as s1,s as r1,a as i1,b as o1}from"./usage-stats-x-NR7rQ4.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-nSDsr0Zi.js";import{T as F9,E as l1,R as a1}from"./rich-text-link-control-Cyib9lpp.js";import{S as tt}from"./switch-C2mEXqfo.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as lt,b as at}from"./core.esm-BaMzqjA4.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-DcO5R1X-.js";import{V as c1}from"./view-mode-toggle-DGF1qVNP.js";import{t as v0}from"./ChevronUp-ZSzJudc4.js";import{a as fe}from"./Copy01-CT9uxfj6.js";import{s as L1,a as h0}from"./Image01-DUunwh52.js";import{s as a0}from"./Trash01-ByfCfoe2.js";import{e as k0,a as ns}from"./UserSquare-BG_D4lBt.js";import{C as d1}from"./combobox-B0RpAw2t.js";import{A as u1,a as f1,b as m1,c as p1,g as h1,d as g1,e as x1,f as y1}from"./alert-dialog-Bq1vUmcb.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-DJOChAz1.js";import{i as z0}from"./Upload01-BOzWcBO4.js";import{i as ss}from"./AlertCircle-BBiRNTdE.js";import{i as rs}from"./DotsVertical-CcRpaMtq.js";import{S as v1}from"./search-input-DXojQXHS.js";import{T as b1,a as j1,c as S1,b as N1}from"./tabs-D0ZapmHf.js";import{u as k1}from"./use-debounced-value-Db_6wQub.js";import{a as T1,u as is}from"./use-file-configs-BJG54sLn.js";import{u as C1,a as ft,i as os,e as w1,b as zt,f as E1}from"./asset-utils-D2JqsHLw.js";import{d as ls}from"./use-chat-layout-state-n4Q3uYHD.js";import{a as _1,T as A1}from"./toggle-group-CZ2TAUmo.js";import{g as R1,f as P1}from"./thread-intent-DTPz1weL.js";import{t as M1}from"./sandbox-git-api-C7JbVL7R.js";import{d as I1}from"./delay-CnY5UFtP.js";const mt=Ar("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),F1="website/loaders/secret.ts",O1=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],D1=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&D1.test(t)}class $1 extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new $1(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function z1(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function B1(t,e,n,s={}){return as("",t,e,n,s)}function as(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},l={},a=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of a){const L=as(`${t}/${V1(c)}`,o[c],n[c],s[c],i);L!==void 0&&(l[c]=L)}return l}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[l,a]of e.entries()){const c=!c0(a,n[l]),L=!c0(a,s[l]);if(c&&L&&!c0(n[l],s[l]))return Bt(t,n,s,i);o.push(c?n[l]:s[l])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function V1(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}const cs=3e3,U1=15e3,K1=2*6e4,Ls={now:()=>Date.now(),setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function G1(t){return t<K1?cs:U1}function H1(t,e=Ls){const n=e.now();let s=!1,i=!1,o=null;const l=()=>{s||(o=e.setTimeout(a,G1(e.now()-n)))},a=()=>{if(o=null,s)return;const{read:c,skip:L}=t();if(i||e.hidden()||L?.()){l();return}i=!0;let d;try{d=c()}catch{d=void 0}Promise.resolve(d).catch(()=>{}).finally(()=>{i=!1}),l()};return l(),()=>{s=!0,o!==null&&e.clearTimeout(o)}}const Ut=()=>0;function q1(t,e,n=Ls){const s=I.useRef(e);s.current=e;const[i]=I.useState(()=>({polling:()=>H1(()=>s.current,n),idle:()=>()=>{}}));I.useSyncExternalStore(t?i.polling:i.idle,Ut,Ut)}function ds(t,e){return me(t,e)}function W1(t,e){return me(t,"preview-fetch",{path:e})}function Y1(t){return ds(t,"preview-invoke")}function b5(t){return ds(t,"catalog-invoke")}function us(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function J1(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&us(n))return n}return null}function fs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??J1();return n&&us(n)?new URL(e,n).toString():W1(t,e)}function Z1(t){return fs(t,"/.decofile")}function Q1(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Kt(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function ms(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Q1(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const l=new Error(`Failed to read ${e}: ${s.status}`);throw l.status=s.status,l}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(Gi(o.content))}}catch{return{kind:"unavailable"}}}async function X1(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ps(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function j5(t,e){const n=z.c(29),{url:s}=We(t?.virtualMcpId),i=!!s,o=t?ps({...t,localPreviewUrl:s}):"",l=e?.fetchEnabled??!0,a=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=Fn(),d=z9.decofile(o);let f;n[0]!==t||n[1]!==L||n[2]!==d?(f=()=>{if(!t||L.isMutating({mutationKey:Un(t.orgSlug,t.virtualMcpId,t.branch)})>0)return!0;const v=L.getQueryState(d);return v?.fetchStatus==="fetching"||Date.now()-(v?.dataUpdatedAt??0)<cs/2},n[0]=t,n[1]=L,n[2]=d,n[3]=f):f=n[3];let u;n[4]!==c||n[5]!==i||n[6]!==t||n[7]!==L||n[8]!==d?(u=async()=>{if(t){if(c&&!i){const v=Ur(L,t)?.version;if(v&&!await Kr(t,v))return}await L.refetchQueries({queryKey:d,exact:!0},{cancelRefetch:!1})}},n[4]=c,n[5]=i,n[6]=t,n[7]=L,n[8]=d,n[9]=u):u=n[9];let x;n[10]!==f||n[11]!==u?(x={skip:f,read:u},n[10]=f,n[11]=u,n[12]=x):x=n[12],q1(!!e?.pollWhile&&!!t,x);let m;n[13]!==c||n[14]!==l||n[15]!==i||n[16]!==s||n[17]!==a||n[18]!==t||n[19]!==L?(m=async()=>{if(i){const y=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(no),b=y?.ok?Vt(await y.text()):null;if(b)return b;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return Gr(L,t);const v=()=>ms(t,ht(a,".deco/blocks.gen.json"));if(l){const y=await fetch(Z1(t),{cache:"no-store"}).catch(to);if(y?.ok){const k=Vt(await y.text());if(k)return k}const b=await v();if(b.kind==="data")return b.data;const S=new Error(`Failed to fetch decofile: ${y?.status??"network error"}`);throw S.status=Kt({liveOk:!!y?.ok,liveStatus:y?.status,committedAbsent:b.kind==="absent"}),S}const j=await v();if(j.kind==="data")return j.data;const N=new Error("decofile unavailable (preview down, no committed snapshot)");throw N.status=Kt({liveOk:!1,committedAbsent:j.kind==="absent"}),N},n[13]=c,n[14]=l,n[15]=i,n[16]=s,n[17]=a,n[18]=t,n[19]=L,n[20]=m):m=n[20];const p=!!t;let h;n[21]!==c||n[22]!==i?(h=(v,j)=>{if(c||i)return v<3;const N=j.status;return N!==502&&N!==404&&v<2},n[21]=c,n[22]=i,n[23]=h):h=n[23];let g;return n[24]!==d||n[25]!==m||n[26]!==p||n[27]!==h?(g={queryKey:d,queryFn:m,enabled:p,staleTime:3e4,retry:h,retryDelay:eo},n[24]=d,n[25]=m,n[26]=p,n[27]=h,n[28]=g):g=n[28],W0(g)}function eo(t){return Wn(5e3,1e3,t,2,0)}function to(){return null}function no(){return null}function so(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function ro(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function S5(t,e){const n=z.c(21),{url:s}=We(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),l=s??t?.previewUrl,a=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==l||n[2]!==c?(f=t?ro({...t,previewUrl:l,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=l,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==a||n[8]!==t||n[9]!==l||n[10]!==c?(u=async()=>{const g=oo,v=()=>d?X1(t):ms(t,ht(a,".deco/meta.gen.json")),j=i&&l?[{kind:"live",baseUrl:l}]:so({fetchEnabled:o,previewUrl:l,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const S=await v();if(S.kind==="data")return S.data;continue}const b=await g(y.baseUrl);if(b)return b}const N=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw N.status=502,N},n[4]=d,n[5]=o,n[6]=i,n[7]=a,n[8]=t,n[9]=l,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:io},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],W0(h)}function io(t){return Wn(5e3,1e3,t,2,0)}async function oo(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(lo);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function lo(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function N5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const l=o?n.section:void 0,a=o?l?.__resolveType??"":i;if(a===Y0||a===_e){const L=o?l:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===Ye){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===Y0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?k9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?k9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:k9(c)||`Section ${s+1}`,isLazy:o}})}const ao={provision:0,cloning:1,install:2,dev:3};function co(t){return ao[t.step]}const Gt=48,hs=28,gs=3,Lo=(()=>{const t=[];let e=0;for(let n=0;n<Gt;n++)n===hs?t.push(null):(t.push(e/(Gt-1)*gs),e++);return t})();function uo(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function fo(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Hr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",mo=Array.from({length:35},()=>Math.random()*1.8),po=Array.from({length:35},()=>Math.random()<.4);function ho(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=co(n),e[0]=n,e[1]=o):o=e[1];const l=o;let a;e[2]!==s||e[3]!==n||e[4]!==i?(a=fo(n,s,uo(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=a):a=e[5];const c=a;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(Ui,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(go,{}),e[10]=u):u=e[10];let x;e[11]!==l?(x=r.jsx(K0,{phase:0,current:l,children:u}),e[11]=l,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(yo,{}),e[13]=m):m=e[13];let p;e[14]!==l?(p=r.jsx(K0,{phase:1,current:l,children:m}),e[14]=l,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(vo,{}),e[16]=h):h=e[16];let g;e[17]!==l?(g=r.jsx(K0,{phase:2,current:l,children:h}),e[17]=l,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(jo,{}),e[19]=v):v=e[19];let j;e[20]!==l?(j=r.jsx(K0,{phase:3,current:l,children:v}),e[20]=l,e[21]=j):j=e[21];let N;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(N=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=N):N=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
2
2
  @keyframes vm-pulse-soft {
3
3
  0%, 100% { opacity: 0.25; }
4
4
  50% { opacity: 1; }
@@ -1 +1 @@
1
- import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-CL22V9cU.js";import{u as pe}from"./use-mcp-client-Dii6HKbn.js";import{a as ye}from"./input-qyM35152.js";import{b as Ee,u as he}from"./chat-context-CQm-6egv.js";import{u as Re}from"./thread-intent-CgK6_lx2.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-CUG13fIj.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=b(t);return be({filters:{...e,status:"pending"}},n).length}function X(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function be(e={},t){const n=b(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=X(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(u=>n.subscribe(()=>{const a=ie(s.current,X(n,r.current));s.current!==a&&(s.current=a,ce.schedule(u))}),[n]),()=>s.current,()=>s.current)}async function Pe(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const q=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),U=new Set,g={mark:(e,t)=>U.add(`${e}::${t}`),clear:(e,t)=>U.delete(`${e}::${t}`),isStopped:(e,t)=>U.has(`${e}::${t}`)};function _e(e,t){const n=b();return le({mutationKey:q,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>xe(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),u=w.get(s);if(u)return u;const a=(async()=>(await Pe(e,"SANDBOX_START",r)).structuredContent)();w.set(s,a);try{return await a}finally{w.get(s)===a&&w.delete(s)}},onSuccess:()=>{j(n),t?.onStarted?.()}})}function Me(e,t){const n=de.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:q,predicate:u=>{if(!e)return!1;const a=u.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function ge(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function We(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function De(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function ze(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,u=e.ownerId??r;if(!r||!u||!s)return t;const a=n?.[u]?.[s];return a?{...t??{},[r]:{...t?.[r]??{},[s]:a}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Y=2,Le=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return Le.has(e)}function Oe(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Y&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const $e={branch:null,count:0,handled:!1};function Be(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function Q(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:Q(n,t.branch??r),url:t.previewUrl})}const Ne={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},M=i.createContext(Ne);function Ge(){return i.use(M)}function Ze({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:u,threadId:a,children:D}){const{org:L}=fe(),{setCurrentTaskBranch:l}=Ee(),W=Re(),p=we(),z=b(),O=ye(t),G=O.resolved?O.runtime:null,d=he()?.taskId??null,$=pe({connectionId:Se,orgId:L.id,orgSlug:L.slug}),c=_e($,{onStarted:()=>{a&&W?.refreshThreadMetadata(a)}}),{mutate:f,reset:Z}=c,[ee,S]=i.useState(null),P=i.useRef(new Set),C=i.useRef(null),[B,R]=i.useState($e),E=Be(B,n);E!==B&&R(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:u,seeded:y?null:ee,key:Q(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),te=p.status.state==="paused",ne=!y||!J(y.reason)||E.count>=Y,re=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:ne}),F=Ue({previewUrl:V,appPaused:te,userStopped:h,startError:re}),se=Fe(F),k=n??"",oe=P.current.has(k),v=ge({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:u,userStopped:h,isPending:c.isPending,attempted:oe,sessionRuntime:G});i.useEffect(()=>{if(!v||!t)return;P.current.add(k);const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] auto-start failed:",o)}})},[v,k,n,t,d,f,l,S]);const x=p.notFound?u?.sandboxHandle??null:null,N=De({executionEnabled:e,notFound:p.notFound,deadVmId:x,lastDeadVmId:C.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!N||!x||!t)return;C.current=x;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] self-heal failed:",o)}})},[N,x,t,n,d,f,l,S]);const I=Oe({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){R(o=>o.handled?{...o,handled:!1}:o);return}if(!I||!t)return;R(o=>({...o,handled:!0,count:o.count+1}));const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",o)}})},[y,I,t,n,d,f,l,S]);const _=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] user start failed:",o)}})},K=async()=>{if(!(!e||!t||!n)&&u){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}j(z)}},ae=async()=>{await K(),_()},H=()=>{P.current=new Set,C.current=null,R({branch:n,count:0,handled:!1}),Z(),_()},ue={branch:n,previewState:F,status:se,vmEntry:u,previewUrl:V,userStopped:h,start:_,stop:K,restart:ae,retry:H,resume:H};return me.jsx(M,{value:ue,children:D})}export{Ze as S,_e as a,Ge as b,Te as c,ze as o,We as s,Me as u};
1
+ import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-CRbDzsEl.js";import{u as pe}from"./use-mcp-client-BWo29jbN.js";import{a as ye}from"./input-XQLahzDk.js";import{b as Ee,u as he}from"./chat-context-NYUfgJBl.js";import{u as Re}from"./thread-intent-DTPz1weL.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-BxpyP1-g.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=b(t);return be({filters:{...e,status:"pending"}},n).length}function X(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function be(e={},t){const n=b(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=X(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(u=>n.subscribe(()=>{const a=ie(s.current,X(n,r.current));s.current!==a&&(s.current=a,ce.schedule(u))}),[n]),()=>s.current,()=>s.current)}async function Pe(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const q=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),U=new Set,g={mark:(e,t)=>U.add(`${e}::${t}`),clear:(e,t)=>U.delete(`${e}::${t}`),isStopped:(e,t)=>U.has(`${e}::${t}`)};function _e(e,t){const n=b();return le({mutationKey:q,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>xe(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),u=w.get(s);if(u)return u;const a=(async()=>(await Pe(e,"SANDBOX_START",r)).structuredContent)();w.set(s,a);try{return await a}finally{w.get(s)===a&&w.delete(s)}},onSuccess:()=>{j(n),t?.onStarted?.()}})}function Me(e,t){const n=de.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:q,predicate:u=>{if(!e)return!1;const a=u.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function ge(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function We(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function De(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function ze(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,u=e.ownerId??r;if(!r||!u||!s)return t;const a=n?.[u]?.[s];return a?{...t??{},[r]:{...t?.[r]??{},[s]:a}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Y=2,Le=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return Le.has(e)}function Oe(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Y&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const $e={branch:null,count:0,handled:!1};function Be(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function Q(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:Q(n,t.branch??r),url:t.previewUrl})}const Ne={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},M=i.createContext(Ne);function Ge(){return i.use(M)}function Ze({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:u,threadId:a,children:D}){const{org:L}=fe(),{setCurrentTaskBranch:l}=Ee(),W=Re(),p=we(),z=b(),O=ye(t),G=O.resolved?O.runtime:null,d=he()?.taskId??null,$=pe({connectionId:Se,orgId:L.id,orgSlug:L.slug}),c=_e($,{onStarted:()=>{a&&W?.refreshThreadMetadata(a)}}),{mutate:f,reset:Z}=c,[ee,S]=i.useState(null),P=i.useRef(new Set),C=i.useRef(null),[B,R]=i.useState($e),E=Be(B,n);E!==B&&R(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:u,seeded:y?null:ee,key:Q(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),te=p.status.state==="paused",ne=!y||!J(y.reason)||E.count>=Y,re=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:ne}),F=Ue({previewUrl:V,appPaused:te,userStopped:h,startError:re}),se=Fe(F),k=n??"",oe=P.current.has(k),v=ge({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:u,userStopped:h,isPending:c.isPending,attempted:oe,sessionRuntime:G});i.useEffect(()=>{if(!v||!t)return;P.current.add(k);const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] auto-start failed:",o)}})},[v,k,n,t,d,f,l,S]);const x=p.notFound?u?.sandboxHandle??null:null,N=De({executionEnabled:e,notFound:p.notFound,deadVmId:x,lastDeadVmId:C.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!N||!x||!t)return;C.current=x;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] self-heal failed:",o)}})},[N,x,t,n,d,f,l,S]);const I=Oe({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){R(o=>o.handled?{...o,handled:!1}:o);return}if(!I||!t)return;R(o=>({...o,handled:!0,count:o.count+1}));const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",o)}})},[y,I,t,n,d,f,l,S]);const _=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] user start failed:",o)}})},K=async()=>{if(!(!e||!t||!n)&&u){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}j(z)}},ae=async()=>{await K(),_()},H=()=>{P.current=new Set,C.current=null,R({branch:n,count:0,handled:!1}),Z(),_()},ue={branch:n,previewState:F,status:se,vmEntry:u,previewUrl:V,userStopped:h,start:_,stop:K,restart:ae,retry:H,resume:H};return me.jsx(M,{value:ue,children:D})}export{Ze as S,_e as a,Ge as b,Te as c,ze as o,We as s,Me as u};
@@ -1 +1 @@
1
- import{aD as s,bS as e,aE as o,bT as d,bU as l}from"./index-CL22V9cU.js";const a=500;s({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=s({keyId:o().max(a),modelId:o().max(a),title:o().max(a).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({host:o().min(1).max(a).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:o().min(1).max(a).describe("Vault secret id holding the PAT used to authenticate this host.")});s({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
1
+ import{aD as s,bS as e,aE as o,bT as d,bU as l}from"./index-CRbDzsEl.js";const a=500;s({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=s({keyId:o().max(a),modelId:o().max(a),title:o().max(a).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({host:o().min(1).max(a).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:o().min(1).max(a).describe("Vault secret id holding the PAT used to authenticate this host.")});s({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),chat_harness_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
@@ -0,0 +1 @@
1
+ import{aD as r,cX as p,cV as _,aE as n,bU as o,bT as m}from"./index-CRbDzsEl.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
@@ -1 +1 @@
1
- import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-CL22V9cU.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
1
+ import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-CRbDzsEl.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
@@ -1 +1 @@
1
- import{c as b,l as w,j as a,h as j}from"./index-CL22V9cU.js";import{i as v}from"./SearchMd-CMyj3n9E.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
1
+ import{c as b,l as w,j as a,h as j}from"./index-CRbDzsEl.js";import{i as v}from"./SearchMd-Bg-9XsfQ.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
@@ -1 +1 @@
1
- import{c as K,r as C,l as z,j as a,aV as M}from"./index-CL22V9cU.js";import{i as B}from"./SearchMd-CMyj3n9E.js";import{I as O}from"./icon-button-DJ3FH_vW.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[I,p]=C.useState(t!==""),[L,V]=C.useState(!1),[R,$]=C.useState(t);if(t!==R&&($(t),t===""&&!L&&p(!1)),!I&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(B,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=z("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(B,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>V(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{V(!1),t===""&&p(!1)},e[11]=t,e[12]=c):c=e[12];let i;e[13]!==s?(i=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=i):i=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=z("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==c||e[19]!==i||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:c,onKeyDown:i,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=c,e[19]=i,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
1
+ import{c as K,r as C,l as z,j as a,aV as M}from"./index-CRbDzsEl.js";import{i as B}from"./SearchMd-Bg-9XsfQ.js";import{I as O}from"./icon-button-D9OpoKyB.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[I,p]=C.useState(t!==""),[L,V]=C.useState(!1),[R,$]=C.useState(t);if(t!==R&&($(t),t===""&&!L&&p(!1)),!I&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(B,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=z("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(B,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>V(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{V(!1),t===""&&p(!1)},e[11]=t,e[12]=c):c=e[12];let i;e[13]!==s?(i=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=i):i=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=z("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==c||e[19]!==i||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:c,onKeyDown:i,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=c,e[19]=i,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
@@ -1 +1 @@
1
- import{c as x,b as d,j as l}from"./index-CL22V9cU.js";import{s as j}from"./User01-Swj6Wyaw.js";import{t as E}from"./Users01-BguvMR-H.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
1
+ import{c as x,b as d,j as l}from"./index-CRbDzsEl.js";import{s as j}from"./User01-VVR3ncLA.js";import{t as E}from"./Users01-BT5Jdc2I.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
@@ -1 +1 @@
1
- import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-CL22V9cU.js";import{i as H}from"./AlertCircle-DWGeVbRZ.js";import{s as V}from"./Plus-BGNNWymV.js";import{s as G}from"./User01-Swj6Wyaw.js";import{t as K}from"./Users01-BguvMR-H.js";import{L as w}from"./label-CMx6o6z4.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-DoctMyOC.js";import{T as W}from"./textarea-BfwTTa-d.js";import{u as X,a as Y}from"./use-secrets-CAgjCyZi.js";import{R as Z}from"./require-capability-DvSGwHTo.js";import"./index-BdQq_4o_.js";import"./index-CIf_Fy0-.js";import"./ChevronUp-BXbTXhXZ.js";import"./access-gate-BifQwyWv.js";import"./capability-load-error-BglSkYA0.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?G:K;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(I,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};
1
+ import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-CRbDzsEl.js";import{i as H}from"./AlertCircle-BBiRNTdE.js";import{s as V}from"./Plus-clvoB9-y.js";import{s as G}from"./User01-VVR3ncLA.js";import{t as K}from"./Users01-BT5Jdc2I.js";import{L as w}from"./label-BUw2LYOJ.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-nSDsr0Zi.js";import{T as W}from"./textarea-DKdq_MAz.js";import{u as X,a as Y}from"./use-secrets-Dut38iEG.js";import{R as Z}from"./require-capability-DCY-qqzS.js";import"./index-BdQq_4o_.js";import"./index-DPPcuuZa.js";import"./ChevronUp-ZSzJudc4.js";import"./access-gate-DTjgjsQi.js";import"./capability-load-error-C0o_DJDN.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?G:K;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(I,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};