decocms 4.513.7 → 4.513.8

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 (393) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-C7oRfBvq.js → ActiveShapeUtils-uKFYSg4Y.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-Dr8-y7L0.js → AlertCircle-Q16nTVAa.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DxgH6rKB.js → AreaChart-k5WqYBKX.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-bw15twJo.js → ArrowLeft-C_dTX_8N.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B5saELrq.js → ArrowUp--4P0C-xl.js} +1 -1
  6. package/dist/client/assets/{BarChart-BjUiD6cJ.js → BarChart-VS3Ye-qY.js} +1 -1
  7. package/dist/client/assets/{Building02-CVSwXera.js → Building02-Gub-pr-8.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-yDLikkrw.js → CartesianChart-BvH4QiKh.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-DF7o1YJ4.js → CategoricalChart-CTrV8dYV.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-DS2hb5oP.js → CheckCircle-CQxu_pm9.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-CLuT1zAP.js → ChevronSelectorVertical-GBLm8Zpl.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Da3KAAR7.js → ChevronUp-DK-Gvyk8.js} +1 -1
  13. package/dist/client/assets/{Copy01-Dn1u-2Zy.js → Copy01-EWitDFCf.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-DGwiu3_R.js → CreditCard01-wx_z4Iiz.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-CNUAKCA1.js → DotsVertical-DIT5hu2b.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-CNTq4Zkp.js → ErrorBarContext-C56oRnGq.js} +1 -1
  17. package/dist/client/assets/{Globe04-B44qaniR.js → Globe04-B45_cBRN.js} +1 -1
  18. package/dist/client/assets/{Image01-hRrNF-M-.js → Image01-BfGAREA7.js} +1 -1
  19. package/dist/client/assets/{Key01-DYxB6pya.js → Key01-BV7tzZs6.js} +1 -1
  20. package/dist/client/assets/{Link01-4vw5jtmA.js → Link01-9civFIb9.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CIPqinmW.js → LinkBroken01-DmmKNgpp.js} +1 -1
  22. package/dist/client/assets/{Monitor01-Brf4xOs8.js → Monitor01-BoSs_8gg.js} +1 -1
  23. package/dist/client/assets/{Play-D0AVCW7c.js → Play-CleWZLOG.js} +1 -1
  24. package/dist/client/assets/{Plus-CaUk_FLH.js → Plus-DQf-jm_3.js} +1 -1
  25. package/dist/client/assets/{ReferenceLine-BgQgv_tf.js → ReferenceLine-DtJF7ODu.js} +1 -1
  26. package/dist/client/assets/{SearchMd-DLWoWucQ.js → SearchMd-D0zp0uee.js} +1 -1
  27. package/dist/client/assets/{Sector-N8qw7UTi.js → Sector-CWBWrJZQ.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-B4RZkB_f.js → ShoppingBag01-B7gta_qY.js} +1 -1
  29. package/dist/client/assets/{Sun-B00MbfKh.js → Sun-BfjJa3ru.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BzSCnRCW.js → SwitchHorizontal01-BJyDDPw9.js} +1 -1
  31. package/dist/client/assets/{Tool01-CCvEj2ig.js → Tool01-Bp-TbrXi.js} +1 -1
  32. package/dist/client/assets/{Trash01-CqUcDLSi.js → Trash01-Dlk_Sh-H.js} +1 -1
  33. package/dist/client/assets/{Upload01-DMpQSW4j.js → Upload01-DlF9Jqso.js} +1 -1
  34. package/dist/client/assets/{User01-B8psxoPR.js → User01-BcekHhAV.js} +1 -1
  35. package/dist/client/assets/{UserSquare-C87_Ow7C.js → UserSquare-cdWcOBLL.js} +1 -1
  36. package/dist/client/assets/{Users01-D8pzXgR8.js → Users01-BIP-PxGt.js} +1 -1
  37. package/dist/client/assets/{XClose-Dfy4H4Df.js → XClose-L_GNViCD.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-CGUQd16X.js → ZoomOut-B3s5275g.js} +1 -1
  39. package/dist/client/assets/{access-gate-CDyNIkXG.js → access-gate-CsHtyNGi.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-COYKS3-h.js → add-connection-dialog-DwDvS8Uw.js} +1 -1
  41. package/dist/client/assets/{agent-analytics-Cjimp4I3.js → agent-analytics-bhSR3DTp.js} +1 -1
  42. package/dist/client/assets/agent-app-D3AENVQT.js +1 -0
  43. package/dist/client/assets/{agent-assets-9wdWM8im.js → agent-assets-BwCvdqkQ.js} +1 -1
  44. package/dist/client/assets/{agent-automation-Dse0O06l.js → agent-automation-BB_6G_CX.js} +1 -1
  45. package/dist/client/assets/{agent-automations-eFJFkh79.js → agent-automations-1AEGAcHU.js} +1 -1
  46. package/dist/client/assets/{agent-connect-sources-CE_fusHE.js → agent-connect-sources-Dh_ELrva.js} +1 -1
  47. package/dist/client/assets/agent-deck-Cd8T_xPW.js +1 -0
  48. package/dist/client/assets/{agent-e2e-S-3oUZjD.js → agent-e2e-Bz8yllNo.js} +1 -1
  49. package/dist/client/assets/{agent-experiments-BZ5s-pYA.js → agent-experiments-BmvDtQNl.js} +1 -1
  50. package/dist/client/assets/{agent-file-CGHwvl0k.js → agent-file-BoVEwoJD.js} +1 -1
  51. package/dist/client/assets/{agent-hosting-CIoSw33S.js → agent-hosting-DtDQtjNQ.js} +1 -1
  52. package/dist/client/assets/{agent-icon-Ck1HHwjS.js → agent-icon-D6wS7rd0.js} +1 -1
  53. package/dist/client/assets/agent-library-BeoJetpR.js +1 -0
  54. package/dist/client/assets/agent-library-file-DCYJT22p.js +1 -0
  55. package/dist/client/assets/{agent-monitor-BO8PHHjA.js → agent-monitor-DduGwwal.js} +1 -1
  56. package/dist/client/assets/{agent-overview-DpfQ-aTA.js → agent-overview-Bj_gDP1X.js} +1 -1
  57. package/dist/client/assets/{agent-releases-BrFQqDPl.js → agent-releases-CAjd1_1N.js} +1 -1
  58. package/dist/client/assets/agent-settings-CnK9fsFs.js +1 -0
  59. package/dist/client/assets/{agent-site-editor-Sbn76JsU.js → agent-site-editor-DMCFUFgp.js} +1 -1
  60. package/dist/client/assets/agent-site-editor-code-C20F9ay-.js +2 -0
  61. package/dist/client/assets/agent-site-editor-content-ChnnFjhK.js +1 -0
  62. package/dist/client/assets/agent-site-editor-preview-BxDD-Aar.js +1 -0
  63. package/dist/client/assets/agent-view-3YMZSj3x.js +1 -0
  64. package/dist/client/assets/{agent-view-guard-DC3OSkRt.js → agent-view-guard-AH_0N8JG.js} +1 -1
  65. package/dist/client/assets/{agents-list-CDK_yCRI.js → agents-list-ZmW8mXyl.js} +1 -1
  66. package/dist/client/assets/{ai-providers-WyXFCfKK.js → ai-providers-CJqDCuAR.js} +1 -1
  67. package/dist/client/assets/{alert-DDsKGOlA.js → alert-PPdejvI2.js} +1 -1
  68. package/dist/client/assets/{alert-dialog-CdX0WJgE.js → alert-dialog-ygFmYcOa.js} +1 -1
  69. package/dist/client/assets/{analytics-sections-C0cA72FI.js → analytics-sections-CveDF2n6.js} +1 -1
  70. package/dist/client/assets/api-keys-BRV_KE0D.js +1 -0
  71. package/dist/client/assets/{api-keys-BiACkSl3.js → api-keys-CbBz_rxa.js} +1 -1
  72. package/dist/client/assets/{app-editor-DAppi0wZ.js → app-editor-Cio5Pq66.js} +1 -1
  73. package/dist/client/assets/{asset-utils-EMf-xj3-.js → asset-utils-Duz2qYol.js} +1 -1
  74. package/dist/client/assets/{auth-BUCalyQg.js → auth-BVkTFTOt.js} +1 -1
  75. package/dist/client/assets/{auth-catchall-D0OSJt--.js → auth-catchall-lx3pSppE.js} +1 -1
  76. package/dist/client/assets/{auth-entry-0MItOYPB.js → auth-entry-Dz_b1brR.js} +1 -1
  77. package/dist/client/assets/{auth-split-layout-CqIIL5cn.js → auth-split-layout-CFlGWfV0.js} +1 -1
  78. package/dist/client/assets/{authenticate-and-persist-oauth-KmGsQ7Rw.js → authenticate-and-persist-oauth-POYqGagt.js} +1 -1
  79. package/dist/client/assets/{automation-list-row-BthCY9eh.js → automation-list-row-C69hu-tr.js} +1 -1
  80. package/dist/client/assets/{automation-runs-o6LdIvao.js → automation-runs-CefmsDTb.js} +1 -1
  81. package/dist/client/assets/{automations-CrS9UK_O.js → automations-C6R9dV-_.js} +1 -1
  82. package/dist/client/assets/{autosend-DXt3gh_V.js → autosend-CL2OZPvg.js} +1 -1
  83. package/dist/client/assets/{avatar-CEkqz-fA.js → avatar-LfY3dprD.js} +1 -1
  84. package/dist/client/assets/{badge-BzleDbER.js → badge-CyDHDRPg.js} +1 -1
  85. package/dist/client/assets/{block-document-CyrqLFxN.js → block-document-Di6OpT4O.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-BW_d0PQH.js → blocks-preview-workspace-context-DcqAhd0P.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-S9Kv7CBl.js → blocks-tab-states-BjRnBrj4.js} +3 -3
  88. package/dist/client/assets/{blog-schema-C4_MnlKC.js → blog-schema-C2heOfy2.js} +1 -1
  89. package/dist/client/assets/{board-analytics-BF-SADkB.js → board-analytics-fCGfPXJ7.js} +1 -1
  90. package/dist/client/assets/{buckets-BlH967CC.js → buckets-j1BXX0Sb.js} +1 -1
  91. package/dist/client/assets/{build-improve-prompt-doc-Bc54QDB4.js → build-improve-prompt-doc-BJrt-jCW.js} +1 -1
  92. package/dist/client/assets/{calendar-Xs6wdWPB.js → calendar-sxNtZ9wG.js} +1 -1
  93. package/dist/client/assets/{capability-load-error-CTAYiETg.js → capability-load-error-CB4I7CRT.js} +1 -1
  94. package/dist/client/assets/{category-editor-CtoEGxaZ.js → category-editor-D_K2FWTB.js} +1 -1
  95. package/dist/client/assets/{chart-CORGJWsK.js → chart-NRF3lK-V.js} +1 -1
  96. package/dist/client/assets/{chat-context-q6pkU4Vf.js → chat-context-Dv2E4fnf.js} +1 -1
  97. package/dist/client/assets/{chat-draft-CxsMQwFW.js → chat-draft-X1dGJc2x.js} +1 -1
  98. package/dist/client/assets/{checkbox-CFJH9BPU.js → checkbox-CaUezNgL.js} +1 -1
  99. package/dist/client/assets/{choose-editor-CYwXqgpB.js → choose-editor-CDMfdVL-.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-SvU9VUFl.js → cli-auth-success-aITDjw-8.js} +1 -1
  101. package/dist/client/assets/{client-icons-Bf_jg3TD.js → client-icons-DRk6JWY6.js} +1 -1
  102. package/dist/client/assets/cms-settings-editor-C_3APl39.js +1 -0
  103. package/dist/client/assets/{collapsible-BY1Seh2g.js → collapsible-DHXUZre4.js} +1 -1
  104. package/dist/client/assets/{collection-detail-B2jwEnTE.js → collection-detail-BXabjop0.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-D9eLaj8f.js → collection-display-button-Cdfgosxf.js} +1 -1
  106. package/dist/client/assets/{collection-search-B-5U_qP0.js → collection-search-Dcze6ySb.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-C3Sq91on.js → collection-table-wrapper-CWGTaBjx.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-CNPABMbS.js → collection-tabs-yg6VVFu9.js} +1 -1
  109. package/dist/client/assets/{column-rules-qdNVr_CJ.js → column-rules-C_Hndp-C.js} +1 -1
  110. package/dist/client/assets/{combobox-CNtAcM6N.js → combobox-B5xPQiKP.js} +1 -1
  111. package/dist/client/assets/{coming-soon-page-DArmsjGV.js → coming-soon-page-DsS1SnMg.js} +1 -1
  112. package/dist/client/assets/{command-Ci3cf65Q.js → command-KXg0ZuU-.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-CAp5mGvk.js → companion-mcps-section-Da_S5Z-R.js} +1 -1
  114. package/dist/client/assets/{config-BDyxSbhG.js → config-UdFHLZs6.js} +1 -1
  115. package/dist/client/assets/{connect-CfYMlBCa.js → connect-CsG4Vqc-.js} +1 -1
  116. package/dist/client/assets/{connect-layout-Dtk5q8Ff.js → connect-layout-DE_So4kH.js} +1 -1
  117. package/dist/client/assets/{connection-ByKWMYw_.js → connection-CEK3iDim.js} +1 -1
  118. package/dist/client/assets/{connection-card-fTcKF10T.js → connection-card-Zhg6xn7V.js} +1 -1
  119. package/dist/client/assets/{connection-detail-DauHKo-b.js → connection-detail-lT3XwVgT.js} +1 -1
  120. package/dist/client/assets/{connection-form-helpers-BUWBJaHi.js → connection-form-helpers-DAFP702a.js} +1 -1
  121. package/dist/client/assets/{connections-o17r4lvj.js → connections-Chwm450B.js} +1 -1
  122. package/dist/client/assets/{content-tab-CDIQdFY6.js → content-tab-DYpKep2J.js} +3 -3
  123. package/dist/client/assets/{context-BILSO9Oc.js → context-Bfj5rpO_.js} +1 -1
  124. package/dist/client/assets/{context-menu-BXueaN2d.js → context-menu-BFA8rRfY.js} +1 -1
  125. package/dist/client/assets/{context-shell-nnrd7FeT.js → context-shell-CUCiFtf6.js} +3 -3
  126. package/dist/client/assets/{core.esm-CRtLiDZz.js → core.esm-BO316fgf.js} +1 -1
  127. package/dist/client/assets/{create-organization-dialog-C4Y0emfE.js → create-organization-dialog-Cb6YY9K7.js} +1 -1
  128. package/dist/client/assets/{daily-pulse-CIrtyrdA.js → daily-pulse-C0-1QTxZ.js} +1 -1
  129. package/dist/client/assets/{discover-Bw3u4SUp.js → discover-BqgmKYIf.js} +1 -1
  130. package/dist/client/assets/{domain-settings-B0NQXKWl.js → domain-settings-B_QSN-on.js} +1 -1
  131. package/dist/client/assets/{drawer-CgIff6c2.js → drawer-DL0G-oy-.js} +1 -1
  132. package/dist/client/assets/{editor-B3mInGrz.js → editor-B62-XQRE.js} +1 -1
  133. package/dist/client/assets/{editor-classes-Dh7s7KNE.js → editor-classes-BAKuqcj0.js} +1 -1
  134. package/dist/client/assets/{empty-state-CrGmAT1k.js → empty-state-JTI0oLk7.js} +1 -1
  135. package/dist/client/assets/{empty-state-5YwXi_7R.js → empty-state-lzzC-d42.js} +1 -1
  136. package/dist/client/assets/{extract-connection-data-BINlvp6q.js → extract-connection-data-BlmKelwb.js} +1 -1
  137. package/dist/client/assets/{feature-gate-CO2kUTpS.js → feature-gate-DQ2MNs-B.js} +1 -1
  138. package/dist/client/assets/{feature-paywall-pO5N9aZ0.js → feature-paywall-BSXK-EmV.js} +1 -1
  139. package/dist/client/assets/{file-explorer-CAi8cI4n.js → file-explorer-CcePNy3q.js} +1 -1
  140. package/dist/client/assets/{file-preview-B9hKxAYI.js → file-preview-DFkUyLsr.js} +1 -1
  141. package/dist/client/assets/{file-share-button-CCjiCa6m.js → file-share-button-CQ2Uf2PU.js} +1 -1
  142. package/dist/client/assets/{file-type-icon-D66MjYUZ.js → file-type-icon-HF5UcaS2.js} +1 -1
  143. package/dist/client/assets/flat-project-B3HLdqxT.js +1 -0
  144. package/dist/client/assets/{folder-icon-DLUZphZo.js → folder-icon-DaIPH_Nm.js} +1 -1
  145. package/dist/client/assets/{form-BDq24hv6.js → form-DNjk4sZI.js} +1 -1
  146. package/dist/client/assets/{general-2P63tge_.js → general-D2dbnN_J.js} +1 -1
  147. package/dist/client/assets/{home-CDP8nTo9.js → home-CvMudobI.js} +1 -1
  148. package/dist/client/assets/{hosted-publish-feedback-BWTEMXo-.js → hosted-publish-feedback-DtU7FOId.js} +1 -1
  149. package/dist/client/assets/{icon-button-D7DkXPm6.js → icon-button-WP5IJTs8.js} +1 -1
  150. package/dist/client/assets/{index-CnFj2VzS.js → index-B9qNCJbx.js} +1 -1
  151. package/dist/client/assets/{index-2AvhxrGF.js → index-BaQyqQF-.js} +1 -1
  152. package/dist/client/assets/{index-wpJdtJMA.js → index-BdR6LNyh.js} +1 -1
  153. package/dist/client/assets/{index-CBygj5xH.js → index-C13QaLdF.js} +1 -1
  154. package/dist/client/assets/{index-C15EALb7.js → index-CVLOGr5B.js} +1 -1
  155. package/dist/client/assets/{index-DVOa5DKI.js → index-ChfkzyhC.js} +3 -3
  156. package/dist/client/assets/{index-BpdNOm6A.js → index-D6gxSs-5.js} +1 -1
  157. package/dist/client/assets/{index-C_HSWEzQ.js → index-DAYXa7zL.js} +1 -1
  158. package/dist/client/assets/{index-BAMJsKZC.js → index-DCOsLpC6.js} +1 -1
  159. package/dist/client/assets/{index-Dfl75K1t.js → index-DEQvnIsm.js} +4 -4
  160. package/dist/client/assets/{index-DDndbO_S.js → index-DZLfyA8t.js} +1 -1
  161. package/dist/client/assets/{index-L2sJXZRT.js → index-DtysKpnb.js} +1 -1
  162. package/dist/client/assets/{index-GQJyR46N.js → index-JvhyBpMR.js} +1 -1
  163. package/dist/client/assets/{index-DCfyI4nr.js → index-a-46Uqqs.js} +1 -1
  164. package/dist/client/assets/{index-Pi-s-kcZ.js → index-mh7U_AKI.js} +1 -1
  165. package/dist/client/assets/{index-redirect-abhy0hCb.js → index-redirect-dS_ROPu1.js} +1 -1
  166. package/dist/client/assets/{index-kOW30gcj.js → index-wkvFsHpn.js} +1 -1
  167. package/dist/client/assets/{infiniteQueryObserver-ClHpbKHL.js → infiniteQueryObserver-BnP8vr6V.js} +1 -1
  168. package/dist/client/assets/{infra-billing-CUqHLbkr.js → infra-billing-BeLfFWAD.js} +1 -1
  169. package/dist/client/assets/{input-CYQLD8P6.js → input-Brhdhig1.js} +3 -3
  170. package/dist/client/assets/{input-BspCfOSh.js → input-Bu2Qzwzh.js} +1 -1
  171. package/dist/client/assets/{integration-icon-CjRJJK7e.js → integration-icon-Bysyldtc.js} +1 -1
  172. package/dist/client/assets/{jira-icon-DErmkgBq.js → jira-icon-DJANnyLA.js} +1 -1
  173. package/dist/client/assets/{label-vST9B_zD.js → label-Cf2Qy475.js} +1 -1
  174. package/dist/client/assets/{layout-Gxe43rXe.js → layout-CQ47j80U.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-BfHNa36K.js → legacy-agents-deep-BdSVZFZL.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-DYsSPAs0.js → legacy-main-redirect-BaYQkGoI.js} +1 -1
  177. package/dist/client/assets/library-DTps1LzJ.js +1 -0
  178. package/dist/client/assets/{library-tab-DpChe3Oc.js → library-tab-C2aU1qmT.js} +1 -1
  179. package/dist/client/assets/{login-W2r99PnM.js → login-BCT_8F_z.js} +1 -1
  180. package/dist/client/assets/{markdown-WjT3O7Yl.js → markdown-DgDY2QmE.js} +1 -1
  181. package/dist/client/assets/{mcp-app-renderer-DRnWxtxP.js → mcp-app-renderer-pDbHkuXF.js} +1 -1
  182. package/dist/client/assets/{mcp-oauth-DhGcrPZn.js → mcp-oauth-C_-ZUSLH.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-tbYTQeai.js → mcp-oauth-aX1L4mRw.js} +1 -1
  184. package/dist/client/assets/{members-B-sc0OYP.js → members-DNkbLBWU.js} +1 -1
  185. package/dist/client/assets/{memory-DF3z-jf4.js → memory-CWT1ZdIC.js} +1 -1
  186. package/dist/client/assets/{mini-report-page-Dsai9GKl.js → mini-report-page-aWQFmVFz.js} +1 -1
  187. package/dist/client/assets/{mock-board-pBq2hymy.js → mock-board-DWNU2n2-.js} +1 -1
  188. package/dist/client/assets/{monaco-editor-Dn76gAcx.js → monaco-editor-DDuHJmyY.js} +1 -1
  189. package/dist/client/assets/monitoring-Cvbt9Za_.js +1 -0
  190. package/dist/client/assets/{monitoring-stats-row-Elg2qzhe.js → monitoring-stats-row-DyiPtUKv.js} +1 -1
  191. package/dist/client/assets/{multi-select-CUNie3kQ.js → multi-select-CfDYfsZ-.js} +1 -1
  192. package/dist/client/assets/{mustache-De5yIPqS.js → mustache-DrIjKpei.js} +1 -1
  193. package/dist/client/assets/{new-project-dialog-DWBJxe2s.js → new-project-dialog-DKeFr4C7.js} +1 -1
  194. package/dist/client/assets/{oauth-callback-D5U2NrXh.js → oauth-callback-B1G7saOE.js} +1 -1
  195. package/dist/client/assets/{oauth-callback-ai-provider-DxPpDYvA.js → oauth-callback-ai-provider-mNgeHhki.js} +1 -1
  196. package/dist/client/assets/{onboarding-DNF1uUd4.js → onboarding-kCa3Jkpy.js} +1 -1
  197. package/dist/client/assets/{openai-conversation-mn8dD0tq.js → openai-conversation-CLgg2Qod.js} +1 -1
  198. package/dist/client/assets/{optimistic-project-sidebar-views-C0cO7F22.js → optimistic-project-sidebar-views-BaDUYmKF.js} +1 -1
  199. package/dist/client/assets/{order-monitor-day-QXWmu69V.js → order-monitor-day-C_yvKTz5.js} +1 -1
  200. package/dist/client/assets/{organization-choice-BXhxwrhw.js → organization-choice-BpI-_S8p.js} +1 -1
  201. package/dist/client/assets/{orgs-BxWXdeOL.js → orgs-BEJlYBbK.js} +1 -1
  202. package/dist/client/assets/{page-seo-form-CG-qEPcj.js → page-seo-form-N1KKSZaU.js} +1 -1
  203. package/dist/client/assets/{pair-BAh_rtfQ.js → pair-ByV0vAAs.js} +1 -1
  204. package/dist/client/assets/plan-BtuC_TCe.js +1 -0
  205. package/dist/client/assets/{plan-ladder-BYQb9LH4.js → plan-ladder-CFysCUYy.js} +1 -1
  206. package/dist/client/assets/{popover-CltvtP7j.js → popover-CjfUWaC0.js} +1 -1
  207. package/dist/client/assets/{post-calendar-DtsRD0BB.js → post-calendar-Bk6dx49G.js} +1 -1
  208. package/dist/client/assets/{post-editor-Bsz0jGpx.js → post-editor-BUlsS3rc.js} +1 -1
  209. package/dist/client/assets/{preview-content-DKsnwXbk.js → preview-content-UW33EMCo.js} +1 -1
  210. package/dist/client/assets/{preview-dialog-CbP43Gmi.js → preview-dialog-DWW9xaMT.js} +1 -1
  211. package/dist/client/assets/{preview-panel-BcsdNlh3.js → preview-panel-C2ZH3x01.js} +1 -1
  212. package/dist/client/assets/{preview-tab-CfPGWoZZ.js → preview-tab-DsWFy6nY.js} +3 -3
  213. package/dist/client/assets/{product-picker-dialog-C1yhPV4m.js → product-picker-dialog-ERcYwJUp.js} +1 -1
  214. package/dist/client/assets/{profile-C9APkMYB.js → profile-BxA_I2_7.js} +1 -1
  215. package/dist/client/assets/{project-app-view-B7OEysJl.js → project-app-view-D-3K5nUJ.js} +1 -1
  216. package/dist/client/assets/{project-apps-CpG_eHUm.js → project-apps-D50B5nYg.js} +1 -1
  217. package/dist/client/assets/{project-feed-D6ZdsF6M.js → project-feed-zQus1O7R.js} +1 -1
  218. package/dist/client/assets/{project-icon-BuiTrqnq.js → project-icon-ChTT5o1a.js} +1 -1
  219. package/dist/client/assets/project-reports-B3JoeeH6.js +1 -0
  220. package/dist/client/assets/project-tasks-UglBCJxC.js +1 -0
  221. package/dist/client/assets/{projects-Dbsz1R9W.js → projects-CKCvSpxg.js} +1 -1
  222. package/dist/client/assets/{projects-empty-state-DC2csJcM.js → projects-empty-state-SWDBQkN4.js} +1 -1
  223. package/dist/client/assets/{prompts-CZxZPA4q.js → prompts-oa8BoX1i.js} +1 -1
  224. package/dist/client/assets/record-editor-C4fMBCCz.js +1 -0
  225. package/dist/client/assets/{redirect-editor-Czcc1h3v.js → redirect-editor-vQorNOA7.js} +1 -1
  226. package/dist/client/assets/reports-BTilnVW5.js +1 -0
  227. package/dist/client/assets/{reports-enM7SgQ5.js → reports-BsyMPz_z.js} +1 -1
  228. package/dist/client/assets/{reports-onboarding-mNgETpr6.js → reports-onboarding-PNNHl11L.js} +1 -1
  229. package/dist/client/assets/{reports-tab-uYYJuIsI.js → reports-tab-DA_8UL9O.js} +2 -2
  230. package/dist/client/assets/repositories-BNK48Uq5.js +1 -0
  231. package/dist/client/assets/{repositories-CdhOGfu_.js → repositories-BpTNBXai.js} +1 -1
  232. package/dist/client/assets/{repository-binding-CeR4BnTI.js → repository-binding-DpSh0bkT.js} +1 -1
  233. package/dist/client/assets/{repository-import-picker-Cyu_oqW_.js → repository-import-picker-CmGbASze.js} +1 -1
  234. package/dist/client/assets/{repository-picker-nkOuiQyx.js → repository-picker-C86kcY-U.js} +1 -1
  235. package/dist/client/assets/{require-capability-D9vWIFzq.js → require-capability-D4dR1lZc.js} +1 -1
  236. package/dist/client/assets/{required-auth-layout-DLWEf_ml.js → required-auth-layout-RW5dOh2c.js} +1 -1
  237. package/dist/client/assets/{reset-password-Di43QH7d.js → reset-password-lP2OGZgV.js} +1 -1
  238. package/dist/client/assets/{resizable-DrblSvH-.js → resizable-DueLEUEm.js} +1 -1
  239. package/dist/client/assets/{resolve-tab-icon-Cn1kjNtM.js → resolve-tab-icon-B66mDW53.js} +1 -1
  240. package/dist/client/assets/{review-settings-BdYuIkO8.js → review-settings-JhWFefH3.js} +1 -1
  241. package/dist/client/assets/{roles-K5FDY6nJ.js → roles-CT2aKtzc.js} +1 -1
  242. package/dist/client/assets/{route-B_dDu8dc.js → route-C6Ybfjjx.js} +1 -1
  243. package/dist/client/assets/route-CQTsC5_0.js +1 -0
  244. package/dist/client/assets/{route-k25TBS11.js → route-K-xr6t6Y.js} +1 -1
  245. package/dist/client/assets/{sandbox-lifecycle-context-B7L9kJQk.js → sandbox-lifecycle-context-BIf8-4ZY.js} +1 -1
  246. package/dist/client/assets/{schema-DweHpmdK.js → schema-Bcb37BRV.js} +1 -1
  247. package/dist/client/assets/{schema-BnxatK0k.js → schema-BzqS-kNt.js} +1 -1
  248. package/dist/client/assets/{scroll-area-D4jamxk5.js → scroll-area-CIRLWlOA.js} +1 -1
  249. package/dist/client/assets/{search-input-C43mz2qI.js → search-input-Br9i_Ft5.js} +1 -1
  250. package/dist/client/assets/{search-toggle-DJGOXZ2e.js → search-toggle-Dj92h38-.js} +1 -1
  251. package/dist/client/assets/{secret-ciphertext-uupbc2jA.js → secret-ciphertext-6VBjcV3b.js} +1 -1
  252. package/dist/client/assets/{secret-picker-CZg0ZavN.js → secret-picker-NhuvO0ke.js} +1 -1
  253. package/dist/client/assets/{secrets-Bj9KJYtM.js → secrets-D4GRsD5W.js} +1 -1
  254. package/dist/client/assets/{sections-ClTsoWOj.js → sections-DzoS45qS.js} +1 -1
  255. package/dist/client/assets/{sections-editor-BzCesfXD.js → sections-editor-C_iMM594.js} +1 -1
  256. package/dist/client/assets/{select-Che713bi.js → select-ChqJI0MI.js} +1 -1
  257. package/dist/client/assets/{select-model-DWQBXwqD.js → select-model-CzvrFpf6.js} +1 -1
  258. package/dist/client/assets/{seo-editor-BqyTpV_N.js → seo-editor-DUiWy8Gm.js} +1 -1
  259. package/dist/client/assets/{separator-x0saGhsc.js → separator-5oK4b-Mi.js} +1 -1
  260. package/dist/client/assets/settings-tab-C1pr-l9r.js +1 -0
  261. package/dist/client/assets/{sheet-GHFRmJIe.js → sheet-CzJFx6b-.js} +1 -1
  262. package/dist/client/assets/{shell-layout-CQ32Qhku.js → shell-layout-DKGS0yWx.js} +1 -1
  263. package/dist/client/assets/site-editor-Bl1xnqtg.js +1 -0
  264. package/dist/client/assets/{site-editor-toast-BBiagqFO.js → site-editor-toast-CmNIWnCw.js} +1 -1
  265. package/dist/client/assets/{skills-D6XX-KTb.js → skills-DEb_PUzK.js} +1 -1
  266. package/dist/client/assets/{slider-Ot1ZckhS.js → slider-BBmtNfbs.js} +1 -1
  267. package/dist/client/assets/{sortable.esm-CiWkMI5k.js → sortable.esm-BuCSUlOk.js} +1 -1
  268. package/dist/client/assets/{sso-CbBgQbQ6.js → sso-DX8PZk1N.js} +1 -1
  269. package/dist/client/assets/{suggestion-MTVcBuMB.js → suggestion-DRP05M3-.js} +1 -1
  270. package/dist/client/assets/{switch-DMMNXYVM.js → switch-CJc_fIEE.js} +1 -1
  271. package/dist/client/assets/{symbol-3z2SP5L0.js → symbol-C1zrmwNF.js} +1 -1
  272. package/dist/client/assets/{synced-repos-BNmgaGcr.js → synced-repos-GT8waIWj.js} +1 -1
  273. package/dist/client/assets/{tab-icon-glyph-D0nUUha7.js → tab-icon-glyph-D6mZxF_9.js} +1 -1
  274. package/dist/client/assets/{table-34IUcwFv.js → table-CltsOK_0.js} +1 -1
  275. package/dist/client/assets/{tabs-DcgINuCK.js → tabs-D0oiuUhC.js} +1 -1
  276. package/dist/client/assets/{task-assignee-avatar-Dq1zRgtZ.js → task-assignee-avatar-BfUNDI59.js} +1 -1
  277. package/dist/client/assets/{task-board-HULGRfOW.js → task-board-DUTGhEiC.js} +1 -1
  278. package/dist/client/assets/{task-route-Ce0gmf6w.js → task-route-BpmTIbg4.js} +1 -1
  279. package/dist/client/assets/{task-status-EXrg0ZVz.js → task-status-C72thlpO.js} +1 -1
  280. package/dist/client/assets/taskboard-analytics-DG4Zz1H_.js +1 -0
  281. package/dist/client/assets/{tasks-BITlMDB1.js → tasks-Cf4EZXG5.js} +1 -1
  282. package/dist/client/assets/tasks-D-91kNhg.js +1 -0
  283. package/dist/client/assets/{textarea-BouaqET7.js → textarea-CWgoXXnV.js} +1 -1
  284. package/dist/client/assets/{thread-analytics-qopGR3eE.js → thread-analytics-BjWUFe-q.js} +1 -1
  285. package/dist/client/assets/{thread-intent-CLVOCoii.js → thread-intent-8kpZLcDE.js} +1 -1
  286. package/dist/client/assets/{thread-route-CRIeJ9cd.js → thread-route-B_SMytnm.js} +1 -1
  287. package/dist/client/assets/{thread-route-Dcyau0Uq.js → thread-route-DTbE-Col.js} +1 -1
  288. package/dist/client/assets/{thread-sheet-body-D1u2Dd0I.js → thread-sheet-body-OnJZloqZ.js} +1 -1
  289. package/dist/client/assets/{time-range-picker-Cnad4hdN.js → time-range-picker-BJ8aJbM7.js} +1 -1
  290. package/dist/client/assets/{toggle-group-BhUb_In4.js → toggle-group-BWQRN38D.js} +1 -1
  291. package/dist/client/assets/{tool-namespace-B34zfZd8.js → tool-namespace-CTeV292R.js} +1 -1
  292. package/dist/client/assets/{toolbar-icon-button-Bk8X_nOI.js → toolbar-icon-button-BypH-a8F.js} +1 -1
  293. package/dist/client/assets/{tooltip-BntBAGAM.js → tooltip-B6NbTX5P.js} +1 -1
  294. package/dist/client/assets/{tooltipContext-DXMyjDX5.js → tooltipContext-DNlXAkZZ.js} +1 -1
  295. package/dist/client/assets/{track-BzAXAHNU.js → track-B0UUbkCz.js} +1 -1
  296. package/dist/client/assets/{types-Ep1zDBBM.js → types-m1Dsi5sG.js} +1 -1
  297. package/dist/client/assets/{url-slug-DUZRhSs8.js → url-slug-CYvqbzge.js} +1 -1
  298. package/dist/client/assets/{usage-stats-BqiobWm8.js → usage-stats-BH4bqLoE.js} +1 -1
  299. package/dist/client/assets/{use-ai-providers-BjL_410_.js → use-ai-providers-W2Q5vYCk.js} +1 -1
  300. package/dist/client/assets/{use-automations-D3fYuk85.js → use-automations-Q-O37R-p.js} +1 -1
  301. package/dist/client/assets/{use-autosave-C5kOmKNl.js → use-autosave-BWJWTtk0.js} +1 -1
  302. package/dist/client/assets/{use-chat-layout-state-pFcrZZ0z.js → use-chat-layout-state-C-XHZ0Dd.js} +1 -1
  303. package/dist/client/assets/{use-clock-tick-B0Rju5iF.js → use-clock-tick-xpCK7CUB.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-BYo4bOt5.js → use-connect-companion-DJ8vj1p7.js} +1 -1
  305. package/dist/client/assets/{use-connection-uNG89bZG.js → use-connection-Cqf7M1G6.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-B0qEZVBT.js → use-content-sync-D6XyiV7H.js} +1 -1
  307. package/dist/client/assets/{use-copy-C3XLF-5W.js → use-copy-Dkgb0DtI.js} +1 -1
  308. package/dist/client/assets/{use-create-virtual-mcp-BKCuACo2.js → use-create-virtual-mcp-BZx-8s-I.js} +1 -1
  309. package/dist/client/assets/{use-date-fns-locale-BwLo95LG.js → use-date-fns-locale-B1aPt2Gv.js} +1 -1
  310. package/dist/client/assets/{use-debounced-autosave-XLYKP6s7.js → use-debounced-autosave-Qji0VG0D.js} +1 -1
  311. package/dist/client/assets/{use-debounced-value-3xzq4nqk.js → use-debounced-value-vhgvmVq4.js} +1 -1
  312. package/dist/client/assets/{use-deco-credits-D-50LuKO.js → use-deco-credits-k0aTLB-T.js} +1 -1
  313. package/dist/client/assets/{use-decopilot-events-lsitv-U4.js → use-decopilot-events-Czwn8ZVj.js} +1 -1
  314. package/dist/client/assets/{use-delete-connection-_1Gj9u9K.js → use-delete-connection-DbRA1FXb.js} +1 -1
  315. package/dist/client/assets/{use-deployment-admin-BJum6mLZ.js → use-deployment-admin-BrGfiqwj.js} +1 -1
  316. package/dist/client/assets/{use-ensure-project-folder-B5XtpMjE.js → use-ensure-project-folder-BvOs3JKp.js} +1 -1
  317. package/dist/client/assets/{use-fast-preview-draft-url-2-EI09Yr.js → use-fast-preview-draft-url-oDwhtnfP.js} +1 -1
  318. package/dist/client/assets/{use-file-configs-DfE7CnIY.js → use-file-configs-BIHMmAjW.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-CiHmMhAj.js → use-inbox-feed-SkFacTLx.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-BkN3ZRt7.js → use-infinite-scroll-B9sczgXI.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-D5yahqJC.js → use-join-requests-DALj-BO-.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-Ce_y4iMs.js → use-main-panel-tabs-Cv3Ydqwx.js} +1 -1
  323. package/dist/client/assets/{use-main-schema-v8-DEN4NEnl.js → use-main-schema-v8-Jzc_7tOC.js} +1 -1
  324. package/dist/client/assets/{use-mcp-auth-status-Cs99DRAT.js → use-mcp-auth-status-BKawZyTw.js} +1 -1
  325. package/dist/client/assets/{use-mcp-client-Bq9mPLRa.js → use-mcp-client-CAdgJ_QT.js} +1 -1
  326. package/dist/client/assets/{use-mcp-prompts-BuuMlmL5.js → use-mcp-prompts-D1rnFTSb.js} +1 -1
  327. package/dist/client/assets/{use-mcp-tools-CYJBaX_7.js → use-mcp-tools-CPGj7A6a.js} +1 -1
  328. package/dist/client/assets/{use-members-CrbKs_C5.js → use-members-D-L919KG.js} +1 -1
  329. package/dist/client/assets/{use-mobile-CoktYqCA.js → use-mobile-CSFJ-mhK.js} +1 -1
  330. package/dist/client/assets/{use-navigate-to-agent-CfMrStJi.js → use-navigate-to-agent-B-QlLf3R.js} +1 -1
  331. package/dist/client/assets/{use-open-billing-url-CNnCylra.js → use-open-billing-url-DWsw6Alp.js} +1 -1
  332. package/dist/client/assets/{use-org-auth-client-C0BFh8TT.js → use-org-auth-client-Co_fa5Pp.js} +1 -1
  333. package/dist/client/assets/{use-org-fs-T9B43KSX.js → use-org-fs-CAwgni1d.js} +1 -1
  334. package/dist/client/assets/{use-org-repo-syncs-BEqn98wH.js → use-org-repo-syncs-Cxt6puu1.js} +1 -1
  335. package/dist/client/assets/{use-org-sso-BbRo0Ut_.js → use-org-sso-BhMczCH6.js} +1 -1
  336. package/dist/client/assets/{use-organization-roles-lcGgKXoG.js → use-organization-roles-DZJHfOlV.js} +1 -1
  337. package/dist/client/assets/{use-organization-settings-DX9QxFXB.js → use-organization-settings-BtOReG0H.js} +1 -1
  338. package/dist/client/assets/{use-panel-navigate-dU6rubbO.js → use-panel-navigate-BwwjvhNB.js} +1 -1
  339. package/dist/client/assets/{use-project-native-view-presence-tyHZj_Ny.js → use-project-native-view-presence-D4pR1T7b.js} +1 -1
  340. package/dist/client/assets/{use-project-scope-jYZSUZz_.js → use-project-scope-Dn4doId4.js} +1 -1
  341. package/dist/client/assets/{use-recent-apps-CunSErYp.js → use-recent-apps-B_BFFpi_.js} +1 -1
  342. package/dist/client/assets/{use-releases-CfA2F4jK.js → use-releases-DoIKvYCz.js} +1 -1
  343. package/dist/client/assets/{use-reports-diagnostic-Dju7BGsx.js → use-reports-diagnostic-COAemppC.js} +1 -1
  344. package/dist/client/assets/{use-secrets-CfU9WX5Q.js → use-secrets-CA-kSu-4.js} +1 -1
  345. package/dist/client/assets/{use-section-preview-base-BQWRaK5P.js → use-section-preview-base-DAksxTnD.js} +1 -1
  346. package/dist/client/assets/{use-sidebar-collapsed-CV40kq5Y.js → use-sidebar-collapsed-Dv10z2iu.js} +1 -1
  347. package/dist/client/assets/{use-tags-DqawlBDR.js → use-tags-CUZ9CIka.js} +1 -1
  348. package/dist/client/assets/{use-task-board-analytics-CCVxOb5z.js → use-task-board-analytics-34pQYq8w.js} +1 -1
  349. package/dist/client/assets/{use-task-board-events-C_nDyMhs.js → use-task-board-events-CmYlpSMI.js} +1 -1
  350. package/dist/client/assets/{use-task-board-item-prs-Djpb1Kqq.js → use-task-board-item-prs-Cu4afbvW.js} +1 -1
  351. package/dist/client/assets/{use-task-metadata-RdAp3Psx.js → use-task-metadata-C0A64pXU.js} +1 -1
  352. package/dist/client/assets/{use-thread-analytics-vpAXd4tf.js → use-thread-analytics-DXbq3gl0.js} +1 -1
  353. package/dist/client/assets/{use-thread-outputs-AQZDZ-Me.js → use-thread-outputs-BUN4R0HD.js} +1 -1
  354. package/dist/client/assets/useInfiniteQuery-Bo5dbMM_.js +1 -0
  355. package/dist/client/assets/{useQueries-DYxCze5b.js → useQueries-DNx9dZks.js} +1 -1
  356. package/dist/client/assets/useSuspenseInfiniteQuery-CcFcpWuM.js +1 -0
  357. package/dist/client/assets/{users-C8oXHT4k.js → users-DWxowv8y.js} +1 -1
  358. package/dist/client/assets/{utils-CsCjfn_2.js → utils-D-52h1Lf.js} +1 -1
  359. package/dist/client/assets/{variant-calendar-CeRaHJen.js → variant-calendar-BQESjgmt.js} +1 -1
  360. package/dist/client/assets/{variant-draft-pointer-D9wG_BAr.js → variant-draft-pointer-BY7yWri4.js} +1 -1
  361. package/dist/client/assets/{view-mode-toggle-WmKvpLKC.js → view-mode-toggle-Bgum-rnB.js} +1 -1
  362. package/dist/client/assets/{virtual-mcp-BRjQCMrx.js → virtual-mcp-CPoLjKOt.js} +1 -1
  363. package/dist/client/assets/{watch-sse-pool-CpyfbzKA.js → watch-sse-pool-C7xRCtu5.js} +1 -1
  364. package/dist/client/index.html +1 -1
  365. package/dist/server/server.js +1 -1
  366. package/package.json +1 -1
  367. package/dist/client/assets/agent-app-Dm2Q_Y28.js +0 -1
  368. package/dist/client/assets/agent-deck-Dl8H6e7Z.js +0 -1
  369. package/dist/client/assets/agent-library-BkTWLlnk.js +0 -1
  370. package/dist/client/assets/agent-library-file-BS42xyZD.js +0 -1
  371. package/dist/client/assets/agent-settings-BBP4ibAV.js +0 -1
  372. package/dist/client/assets/agent-site-editor-code-CJOa5UpN.js +0 -2
  373. package/dist/client/assets/agent-site-editor-content-pcCCjT9D.js +0 -1
  374. package/dist/client/assets/agent-site-editor-preview-BlzuE9E3.js +0 -1
  375. package/dist/client/assets/agent-view-CQpCMbZg.js +0 -1
  376. package/dist/client/assets/api-keys-vaFVbldn.js +0 -1
  377. package/dist/client/assets/cms-settings-editor-DtCgs5b4.js +0 -1
  378. package/dist/client/assets/flat-project-CbXy-IBz.js +0 -1
  379. package/dist/client/assets/library-J8tWZ5kP.js +0 -1
  380. package/dist/client/assets/monitoring-H6E4qKaj.js +0 -1
  381. package/dist/client/assets/plan-CfNaQn8P.js +0 -1
  382. package/dist/client/assets/project-reports-DnqnYJVS.js +0 -1
  383. package/dist/client/assets/project-tasks-Baem7wqr.js +0 -1
  384. package/dist/client/assets/record-editor-Cc6nCqy1.js +0 -1
  385. package/dist/client/assets/reports-CIjIkssH.js +0 -1
  386. package/dist/client/assets/repositories-SAQW8pIt.js +0 -1
  387. package/dist/client/assets/route-DPBPBesX.js +0 -1
  388. package/dist/client/assets/settings-tab-5vg9K_mk.js +0 -1
  389. package/dist/client/assets/site-editor-DrIEYE6g.js +0 -1
  390. package/dist/client/assets/taskboard-analytics-Af2fX21J.js +0 -1
  391. package/dist/client/assets/tasks-BwGddAXN.js +0 -1
  392. package/dist/client/assets/useInfiniteQuery-BgRNBC3A.js +0 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-BamkyUys.js +0 -1
@@ -1 +1 @@
1
- import{o as P,r as i,b6 as ie,b7 as ce,e as le,b8 as j,c as de,a2 as fe,J as Se,j as me}from"./index-Dfl75K1t.js";import{u as pe}from"./use-mcp-client-Bq9mPLRa.js";import{a as ye}from"./input-CYQLD8P6.js";import{c as Ee,u as he}from"./chat-context-q6pkU4Vf.js";import{u as Re}from"./thread-intent-CLVOCoii.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./index-C_HSWEzQ.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=P(t);return Pe({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 Pe(e={},t){const n=P(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 be(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=P();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 be(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=P(),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),b=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=b.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;b.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=()=>{b.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,ze as o,We as s,Me as u};
1
+ import{o as P,r as i,b6 as ie,b7 as ce,e as le,b8 as j,c as de,a2 as fe,J as Se,j as me}from"./index-DEQvnIsm.js";import{u as pe}from"./use-mcp-client-CAdgJ_QT.js";import{a as ye}from"./input-Brhdhig1.js";import{c as Ee,u as he}from"./chat-context-Dv2E4fnf.js";import{u as Re}from"./thread-intent-8kpZLcDE.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./index-DAYXa7zL.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=P(t);return Pe({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 Pe(e={},t){const n=P(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 be(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=P();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 be(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=P(),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),b=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=b.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;b.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=()=>{b.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,ze as o,We as s,Me as u};
@@ -1 +1 @@
1
- import{aF as r,cZ as p,cX as _,aG as n,bW as o,bV as m}from"./index-Dfl75K1t.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
+ import{aF as r,cZ as p,cX as _,aG as n,bW as o,bV as m}from"./index-DEQvnIsm.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{aF as s,bU as e,aG as o,bV as d,bW as l}from"./index-Dfl75K1t.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().trim().toLowerCase().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."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),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."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, the npm dependency and the registry entry into the project's repository, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default, for every org — the catalogue stays browsable without it and nothing is installable. Rollout lever, separate from the deploy."),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{aF as s,bU as e,aG as o,bV as d,bW as l}from"./index-DEQvnIsm.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().trim().toLowerCase().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."),task_board_codex:e().optional().describe("Allow tasks to select the Codex harness. Off by default; existing tasks keep Claude Code. Reviewers keep their own runtime."),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."),site_apps_install_enabled:e().optional().describe("Installing a site app from the Apps tab: writes the app module, the npm dependency and the registry entry into the project's repository, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default, for every org — the catalogue stays browsable without it and nothing is installable. Rollout lever, separate from the deploy."),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 +1 @@
1
- import{r as d,bA as A,bw as ce,j as b,bC as _,bP as ae,dn as O,bD as C,bJ as P,bE as ie,c as F,l as $}from"./index-Dfl75K1t.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),J=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,D]=d.useState(0),[j,y]=d.useState(!1),[N,W]=d.useState(!1),v=A(e,E=>c(E)),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:j,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:D,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}})})});J.displayName=U;var G="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(G,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=G;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(V,{...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(V,{"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 R(o.viewport,c),R(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=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,D=l.content-l.viewport,j=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,E=v.clientY-x.current.top;u({x:p,y:E})}}return d.useEffect(()=>{const v=p=>{const E=p.target;w?.contains(E)&&j(p,D)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,D,j]),d.useEffect(y,[l,y]),R(w,N),R(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"),W(v))}),onPointerMove:C(r.onPointerMove,W),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})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,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(H,o),s=ee(H,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=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return R(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),R(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 R(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=J,Ce=K,Ee=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(Re,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Ee,{}),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 Re(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,bA as A,bw as ce,j as b,bC as _,bP as ae,dn as O,bD as C,bJ as P,bE as ie,c as F,l as $}from"./index-DEQvnIsm.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),J=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,D]=d.useState(0),[j,y]=d.useState(!1),[N,W]=d.useState(!1),v=A(e,E=>c(E)),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:j,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:D,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}})})});J.displayName=U;var G="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(G,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=G;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(V,{...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(V,{"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 R(o.viewport,c),R(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=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,D=l.content-l.viewport,j=P(i),y=P(c),N=X(h,10);function W(v){if(x.current){const p=v.clientX-x.current.left,E=v.clientY-x.current.top;u({x:p,y:E})}}return d.useEffect(()=>{const v=p=>{const E=p.target;w?.contains(E)&&j(p,D)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,D,j]),d.useEffect(y,[l,y]),R(w,N),R(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"),W(v))}),onPointerMove:C(r.onPointerMove,W),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})})})}),H="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(H,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(H,o),s=ee(H,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=H;var B="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(B,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=B;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(B,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return R(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),R(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 R(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=J,Ce=K,Ee=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(Re,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Ee,{}),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 Re(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-Dfl75K1t.js";import{i as v}from"./SearchMd-DLWoWucQ.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-DEQvnIsm.js";import{i as v}from"./SearchMd-D0zp0uee.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 B,j as a,aX as M}from"./index-Dfl75K1t.js";import{i as I}from"./SearchMd-DLWoWucQ.js";import{I as O}from"./icon-button-D7DkXPm6.js";function A(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,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),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=B("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(I,{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=()=>z(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{z(!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=B("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{A as S};
1
+ import{c as K,r as C,l as B,j as a,aX as M}from"./index-DEQvnIsm.js";import{i as I}from"./SearchMd-D0zp0uee.js";import{I as O}from"./icon-button-WP5IJTs8.js";function A(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,[L,p]=C.useState(t!==""),[R,z]=C.useState(!1),[V,$]=C.useState(t);if(t!==V&&($(t),t===""&&!R&&p(!1)),!L&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(I,{}),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=B("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(I,{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=()=>z(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{z(!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=B("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{A as S};
@@ -1 +1 @@
1
- import{c as ye,b as ke,j as O,r as et,af as $t,B as xt,l as Lt,a5 as Ct}from"./index-Dfl75K1t.js";import{a as Mt}from"./Copy01-Dn1u-2Zy.js";import{a as Bt,b as Vt,A as Dt}from"./alert-DDsKGOlA.js";import{u as It}from"./use-copy-C3XLF-5W.js";const te="https://docs.decocms.com/storefront/blocks",Ut={quickstart:`${te}/next/quickstart`,siteEditor:`${te}/next/site-editor#edit-on-your-machine`,serve:`${te}/next/cli#deco-serve`,schema:`${te}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${te}/next/troubleshooting#site-editor`};function Jr(e){const t=ye.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Ft),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=O.jsx(O.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Ft(e,t){return t%2===1?O.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):O.jsx(et.Fragment,{children:e},t)}function en(e){const t=ye.c(31),{command:r}=e,n=ke(),{handleCopy:s,copied:i}=It();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=O.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=a):a=t[0];let l;t[1]!==r?(l=r.split(" ").map(Yt),t[1]=r,t[2]=l):l=t[2];let f;t[3]!==l?(f=O.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,l]}),t[3]=l,t[4]=f):f=t[4];let _;t[5]!==n?(_=n("decoServe.guide.copy"),t[5]=n,t[6]=_):_=t[6];let h;t[7]!==r||t[8]!==s?(h=()=>{s(r).catch(Nt)},t[7]=r,t[8]=s,t[9]=h):h=t[9];let E;t[10]!==i?(E=i?O.jsx($t,{className:"text-success"}):O.jsx(Mt,{}),t[10]=i,t[11]=E):E=t[11];let $;t[12]!==i||t[13]!==n?($=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=$):$=t[14];let x;t[15]!==$?(x=O.jsx("span",{"aria-hidden":"true",children:$}),t[15]=$,t[16]=x):x=t[16];let D;t[17]!==_||t[18]!==h||t[19]!==E||t[20]!==x?(D=O.jsxs(xt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":_,onClick:h,children:[E,x]}),t[17]=_,t[18]=h,t[19]=E,t[20]=x,t[21]=D):D=t[21];let P;t[22]!==i||t[23]!==n?(P=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=P):P=t[24];let I;t[25]!==P?(I=O.jsx("span",{className:"sr-only","aria-live":"polite",children:P}),t[25]=P,t[26]=I):I=t[26];let Y;return t[27]!==I||t[28]!==f||t[29]!==D?(Y=O.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[f,D,I]}),t[27]=I,t[28]=f,t[29]=D,t[30]=Y):Y=t[30],Y}function Nt(){}function Yt(e,t){return O.jsxs(et.Fragment,{children:[t>0&&" ",O.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const zt={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function tn(e){const t=ye.c(20),{links:r,className:n}=e,s=ke();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let a;t[2]!==n?(a=Lt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=a):a=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let f;t[6]!==l?(f=O.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=f):f=t[7];let _;if(t[8]!==r||t[9]!==s){let $;t[11]!==s?($=x=>O.jsxs("a",{href:Ut[x],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(zt[x]),O.jsx(Ct,{"aria-hidden":"true",className:"size-3.5"}),O.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},x),t[11]=s,t[12]=$):$=t[12],_=r.map($),t[8]=r,t[9]=s,t[10]=_}else _=t[10];let h;t[13]!==_?(h=O.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:_}),t[13]=_,t[14]=h):h=t[14];let E;return t[15]!==i||t[16]!==a||t[17]!==f||t[18]!==h?(E=O.jsxs("nav",{"aria-label":i,className:a,children:[f,h]}),t[15]=i,t[16]=a,t[17]=f,t[18]=h,t[19]=E):E=t[19],E}function rn(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function nn(){const e=ye.c(11),t=ke();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=O.jsx(Bt,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=O.jsx(Vt,{children:s}),e[6]=s,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==i?(a=O.jsx(Dt,{variant:"destructive",children:O.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=a):a=e[10],a}const sn="website/loaders/secret.ts",on=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Wt=/^(?:[0-9a-f]{2})*$/i;function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function Kt(e){return typeof e=="string"&&Wt.test(e)}class Ht extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(qt(e)){const n=e.encrypted;if(n!==void 0&&!Kt(n))throw new Ht(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Gt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function an(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function se(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function cn(e,t){return se(e,t)!==null}function Pe(e,t){const r=se(e,t);return r!==null&&r.includes("sections")}function Qt(e,t){const r=se(e,t);return r!==null&&r.includes("apps")}function Xt(e,t){const r=se(e,t);return r!==null&&r.includes("matchers")}function de(e,t){return!(!e||t&&se(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function je(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const ln="oklch(0.7278 0.151 289)",Zt="website/matchers/always.ts",tt="website/matchers/never.ts",ge="website/flags/multivariate.ts",J="website/flags/multivariate/section.ts";function we(){return{__resolveType:Zt}}function X(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Jt=12,er=8,Te=32,tr=40,rr="__SECTION_REF__";function ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const nr="VideoWidget";function Q(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function $e(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Le(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=$e(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const f of Object.values(r))if(f[l])return f[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Qt(e,t))return!0;const r=$e(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(a=>a in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function sr(e){return e==="site/apps/site.ts"?!1:$e(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function un(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?Le(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},a=o=>{if(o.startsWith("#/root/")){const c=o.slice(7);return i[c]??{}}const d=o.split("/").pop()??"",m=s[d];return m||(d===rr?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=a(n.$ref):Object.keys(n).length>0?l=n:l=r;const f=o=>typeof o.$ref=="string"?a(o.$ref):o,_=o=>{const m=f(o).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},h=(o,d)=>{const m=f(o);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:d},E=(o,d=new Set)=>{if(typeof o.$ref!="string"||o.properties||o.anyOf||o.allOf||o.oneOf||o.type)return o;const m=o.$ref.split("/").pop()??"";return!m||d.has(m)?o:E(a(o.$ref),new Set([...d,m]))},$=o=>{const d=o.properties?.__resolveType?.enum;return Array.isArray(d)&&typeof d[0]=="string"?d[0]:void 0},x=o=>$(o)!==void 0,D=(o,d=new Set)=>{if(typeof o.$ref!="string")return[];const m=o.$ref.split("/").pop()??"";if(!m||d.has(m))return[];const c=a(o.$ref),C=c.anyOf??c.oneOf;if(!Array.isArray(C))return[];const w=new Set([...d,m]);return C.flatMap(L=>x(L)?[L]:D(L,w))},P=o=>{const d=o.hide;return d===!0||d==="true"},I=o=>typeof o=="string"&&(o.includes("://")||!/\s/.test(o)&&(o.includes("|")||o.includes("&")||o.includes("@"))),Y=(o,d=new Set,m=0)=>{if(m>Jt)return{};if(typeof o.$ref=="string"){const C=o.$ref.split("/").pop()??"";return d.has(C)?{}:Y(a(o.$ref),new Set([...d,C]),m+1)}let c={};o.properties&&typeof o.properties=="object"&&(c={...c,...o.properties}),Array.isArray(o.required)&&(c.__required=[...Q(c.__required),...Q(o.required)]);for(const C of["allOf","anyOf","oneOf"]){const w=o[C];if(Array.isArray(w))for(const L of w){const U=Q(c.__required),z=Y(L,d,m+1);c={...c,...z};const B=C==="allOf"?[...U,...Q(z.__required)]:U;B.length>0?c.__required=B:delete c.__required}}return c},V=(o,d=0,m=new Set)=>{let c=o,C;if(typeof o.$ref=="string"){c=a(o.$ref);const k=o.$ref.split("/").pop()??"";C=k,k===nr&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const w=C!==void 0&&m.has(C),L=C!==void 0?new Set([...m,C]):m,U=(k,g,S,b=!0)=>!w&&(!b||S<=tr)&&g<er?V(k,g,L):void 0;let z;{const k=c.anyOf??c.oneOf;if(Array.isArray(k)){const g=k.filter(b=>!(b.type==="null"||b.type===null)),S=b=>{if(typeof b.const=="string"||typeof b.const=="number")return b.const;if(Array.isArray(b.enum)&&b.enum.length===1&&(typeof b.enum[0]=="string"||typeof b.enum[0]=="number"))return b.enum[0]};g.length>0&&g.every(b=>S(b)!==void 0)&&(z=g.map(b=>S(b)))}}let B,ee,Fe=!1;if(c.type)B=Array.isArray(c.type)?String(c.type.find(k=>k!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const g=(c.anyOf??c.oneOf).filter(S=>!(S.type==="null"||S.type===null));if(g.length===0)B="null";else if(g.length===1){const S=g[0];ee=S,B=S.type?Array.isArray(S.type)?String(S.type[0]):String(S.type):typeof S.$ref=="string"?"object":"string"}else{if(z){const y=u=>typeof o[u]=="string"?o[u]:typeof c[u]=="string"?c[u]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:z,format:y("format"),options:y("options")}}const S=g.filter(x),b=g.map(y=>E(y)).find(ae),H=y=>{if(typeof y.$ref!="string")return;const u=E(y),p=u.anyOf??u.oneOf;if(!Array.isArray(p))return;const v=[...p.filter(x),...p.filter(T=>!x(T)).flatMap(T=>D(T))],j=p.filter(T=>{if(x(T)||T.type==="null")return!1;const M=f(T),F=M.properties;return!F?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!F)});return v.length>0&&j.length>0?{data:j,loaders:v}:void 0},G=g.flatMap(y=>{const u=H(y);return u?[u]:[]}),kt=G.length===0&&g.filter(y=>!ae(E(y))).every(y=>typeof y.$ref=="string"||S.includes(y)),Pt=S.some(y=>{const u=y.properties?.__resolveType?.enum;return Array.isArray(u)&&u[0]===ge}),he=(y=[])=>{const u=new Map;for(const R of[...S,...g.filter(A=>!S.includes(A)).flatMap(A=>D(A)),...y]){const A=$(R);A&&!u.has(A)&&u.set(A,R)}const p=[...u].map(([R,A])=>({resolveType:R,title:typeof A.title=="string"?A.title:X(R),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,u.size)})),v=[];for(const R of g){if(S.includes(R)||typeof R.$ref!="string")continue;const A=a(R.$ref);let W;const q=A.properties?.__resolveType;if(Array.isArray(q?.enum)&&typeof q.enum[0]=="string"&&(W=q.enum[0]),!W&&Array.isArray(A.allOf))for(const wt of A.allOf){const Ae=wt.properties?.__resolveType?.enum;if(Array.isArray(Ae)&&typeof Ae[0]=="string"){W=Ae[0];break}}W&&v.push({resolveType:W,title:typeof A.title=="string"&&!A.title.startsWith("#")?A.title:X(W),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,g.length)})}const j=new Set(p.map(R=>R.resolveType)),T=[...p,...v.filter(R=>!j.has(R.resolveType))],M=g.filter(R=>!S.includes(R)),F=M.length===1&&!w?V(M[0],d+1,L):void 0;return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:T,plainSchema:F,hidden:P(c)||P(o)?!0:void 0}};if(b){const y=!Xe(b,a);if(y&&G.length>0){const u=typeof o.title=="string"?o.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,p=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,v=g.find(T=>ae(E(T))),j=G.flatMap(T=>T.data);return{type:"inline-union",title:u,description:p,inlineUnionBranches:[...j.map((T,M)=>({title:h(T,`Option ${M+1}`),schema:V(T,d+1,L)})),{title:h(v,`Option ${j.length+1}`),schema:V(b,d+1,L)}],loaderRef:{...he(G.flatMap(T=>T.loaders)),title:u,description:p},hidden:P(c)||P(o)?!0:void 0}}if(y&&g.length>1&&kt){const u=V(b,d+1,L),p=typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:u.title,v=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:u.description;return{...u,type:"array",title:p,description:v,loaderRef:S.length>0?{...he(),title:p,description:v}:void 0}}if(Pt){const u=V(b,d+1,L);return{...u,type:"array",title:typeof c.title=="string"?c.title:u.title,description:typeof c.description=="string"?c.description:u.description}}}if(S.length>0)return he();const ze=y=>{const u=f(y);if(typeof u.title=="string"&&Ge(u.title))return!0;const p=u.properties?.__resolveType?.enum;if(Array.isArray(p)&&typeof p[0]=="string")return!0;if(Array.isArray(u.allOf))for(const v of u.allOf){const j=v.properties?.__resolveType?.enum;if(Array.isArray(j)&&typeof j[0]=="string")return!0}return!1},We=g.map(y=>_(y));if(g.length>1&&We.every(y=>typeof y=="string")&&!g.some(ze)){const y=g.map((u,p)=>{const v=f(u),j=We[p];return{resolveType:j,title:h(u,j),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:j,schema:U(v,d+1,g.length,!1)}});return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const u=f(y);return u.type==="object"||!!u.properties},jt=y=>{const u=E(y);return ae(u)?!Xe(u,a):!1},Ke=d<Te&&g.every(y=>qe(y)||jt(y))&&g.some(qe);if(g.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const u of g){const p=a(u.$ref);let v,j,T=!1;if(typeof p.title=="string"){const R=Ge(p.title);R&&(v=R.blockId,j=R.blockId)}if(!v&&Array.isArray(p.allOf))for(const R of p.allOf){const q=((R.properties??{}).__resolveType??{}).enum;if(Array.isArray(q)&&typeof q[0]=="string"){v=q[0],T=!0;break}}if(!v){const A=p.properties?.__resolveType?.enum;Array.isArray(A)&&typeof A[0]=="string"&&(v=A[0],T=!0)}v||(v=u.$ref.split("/").pop()??"");const M=v.includes("/")||T&&!Gt(v),F=M?void 0:_(u);!F&&!M||T&&v==="lazy"||y.push({resolveType:F??v,title:j??(typeof p.title=="string"&&!p.title.startsWith("#")?p.title:X(v)),description:typeof p.description=="string"?p.description:void 0,discriminatorValue:F,schema:U(p,d+1,g.length)})}return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}if(Ke){const y=p=>{if(typeof p.const=="string"||typeof p.const=="number"||typeof p.const=="boolean")return p.const;if(Array.isArray(p.enum)&&p.enum.length===1&&(typeof p.enum[0]=="string"||typeof p.enum[0]=="number"||typeof p.enum[0]=="boolean"))return p.enum[0]},u=g.map((p,v)=>{const j=f(p).properties??{},T={};for(const[M,F]of Object.entries(j)){const R=y(F);R!==void 0&&(T[M]=R)}return{title:h(p,`Option ${v+1}`),schema:V(p,d+1),discriminators:Object.keys(T).length?T:void 0}});return{type:"inline-union",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:u,hidden:P(c)||P(o)?!0:void 0}}B="object"}}else c.allOf?(B="object",Fe=I(c.title)):typeof o.$ref=="string"&&(B="object");let oe,Ne,Ye=!1;if(d<Te&&!w){const k=Y(c),g=k.__resolveType?.enum;Ye=Array.isArray(g)&&g.length===1&&g[0]==="lazy";const S=Q(k.__required);S.length>0&&(Ne=S);const b=Object.entries(k).filter(([H])=>!H.startsWith("__")&&H!=="@type");if(b.length>0){oe={};for(const[H,G]of b)oe[H]=V(G,d+1,L)}}let _e;if((B==="array"||c.type==="array")&&d<Te&&!w){const k=c.items;if(k){_e=V(k,d+1,L);const g=f(k);typeof g.title=="string"&&g.title.includes("{{")&&(_e.titleBy=g.title)}}const K=k=>{const g=ee?.[k];return typeof g=="string"?g:void 0},Ot=()=>{if("default"in o)return o.default;if("default"in c)return c.default;if(ee&&"default"in ee)return ee.default};return{type:B??"string",title:typeof o.title=="string"?o.title:!Fe&&typeof c.title=="string"?c.title:K("title"),description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:K("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:z??void 0,format:typeof o.format=="string"?o.format:typeof c.format=="string"?c.format:K("format"),properties:oe,required:Ne,items:_e,lazy:Ye&&oe?.value?!0:void 0,recursiveRef:w&&typeof o.$ref=="string"&&(B==="object"||B==="array"||c.type==="array")?o.$ref:void 0,hidden:P(c)||P(o)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:K("titleBy"),image:typeof c.image=="string"?c.image:K("image"),options:typeof o.options=="string"?o.options:typeof c.options=="string"?c.options:K("options")}};if("ref"in t)return V({$ref:t.ref});const De=l.properties??{},Rt=Object.keys(De).every(o=>o.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const o=De.__resolveType,d=Array.isArray(o?.enum)&&typeof o.enum[0]=="string"?o.enum[0]:typeof o?.const=="string"?o.const:typeof o?.default=="string"?o.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const w=V(c,0);if(w.type==="inline-union"&&w.inlineUnionBranches){const L=I(w.title);return{...w,title:L?void 0:w.title,inlineUnionBranches:d?w.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:d}})):w.inlineUnionBranches}}}}const Ie=Y(l),ve={};for(const[o,d]of Object.entries(Ie))o.startsWith("__")||o==="@type"||(ve[o]=V(d,0));if(Object.keys(ve).length===0)return null;const Ue=Q(Ie.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ve,required:Ue.length>0?Ue:void 0}}function fn(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,a=i.properties??{};if(Object.keys(a).some(_=>!_.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const f=a.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function pn(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,a]of Object.entries(n))i.startsWith("__")||(s[i]=t(a));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=i.icon,l=i.logo,f=i,_=E=>E===!0||E==="true",h=_(f.hide)||_(f.ignore)||_(f.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof l=="string"?l:void 0,hidden:h||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function yn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ir(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function dn(e){const t=e.trim();return t?ir(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Me=/:([A-Za-z0-9_-]+)|\*/g;function gn(e){const t=[];for(const r of e.matchAll(Me)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Me))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function vn(e,t){return ct(e).replace(Me,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const or=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function N(e){return or.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),ar=lt[0],cr=new Set(["site/sections/Theme/Theme.tsx"]);function me(e){return!!(cr.has(e)||N(e)||e.toLowerCase().includes("preview"))}function lr(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":ar}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ur(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(me(i))continue;const a=Ce(i,e);r.push({resolveType:i,title:a.title??X(i),description:a.description,previewBlock:i,isSavedBlock:!1})}return r}function _n(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))me(i)||r.has(i)||r.set(i,{resolveType:i,title:X(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==J)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let a=i.__resolveType;if(typeof a=="string"&&N(a)&&(a=i.section?.__resolveType??a),typeof a=="string"&&Pe(e,a))return a}return r}function fr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a!="string"||ut.has(a)||typeof i.path=="string"||me(a)||!(Pe(e,a)||a===J&&fr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pr(e,t){const r=de(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||X(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function hn(e,t){const r=lr(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,a=l=>{if(!me(l.resolveType)){if(de(l.resolveType,e)){je(l.resolveType)||i.set(l.resolveType,l);return}Pe(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ur(e))a(l);for(const l of s)a(pr(e,l));for(const l of pt(e,t))a(l);return[...i.values()].sort((l,f)=>l.title.localeCompare(f.title))}function An(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Be="website/loaders/redirect.ts",Tn=new Set([Be,"website/loaders/redirects.ts"]),Ve="redirect",yr=[301,302,307,308],dr={temporary:307,permanent:301};function Sn(e){return e.flat?e.status??(e.type==="permanent"?301:302):dr[e.type]}const ue=e=>typeof e=="string"?e:"",gr=e=>e==="permanent"?"permanent":"temporary",mr=e=>yr.find(t=>t===e);function vr(e){const t=mr(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Ve)return vr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:gr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function _r(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Be&&s.__resolveType!==Ve||t.push({key:r,...yt(s)})}return t}function bn(e){return yt(e)}function En(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Be}}function hr(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ar=1e3;function Rn(e,t){const r=hr(t);for(let n=0;n<Ar;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function Tr(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function On(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const a=e.find(l=>l.key.endsWith(`-${r}`));if(a)return a}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(a=>a.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,a)=>i.key.localeCompare(a.key))[0]??null}const Sr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return Sr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const ne="site",gt="site/apps/site.ts";function Ee(e,t){return e===ne?!0:t.__resolveType===gt}function kn(e,t){return e?mt(e,t).length>0||_r(e).length>0?!0:t?kr(e,t).length>0||Rr(e,t)?!0:Or(e,t).length>0:!1:!1}function br(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Tr(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=br(n,s,t);i&&r.push(i)}return r}function fe(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>fe(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>fe(s,t,r+1))}function Er(e,t,r){const n=mt(e,r),s=new Set(n.map(a=>a.key)),i=new Set([t]);for(let a=!0;a;){a=!1;for(const[l,f]of Object.entries(e))i.has(l)||s.has(l)||fe(f,i)&&(i.add(l),a=!0)}return n.filter(a=>a.key!==t&&fe(e[a.key],i))}function Pn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Er(e,t,r).sort((i,a)=>n(i)-n(a)||(i.path<a.path?-1:i.path>a.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Re(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Rr(e,t){const r=e[ne];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Ee(ne,n)||st(t,s)))return{key:ne,name:Re(ne,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Ee(n,i))continue;const a=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Re(n,i,t),resolveType:a}}return null}function Or(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a=="string"&&(dt(a,t)||typeof i.path!="string"&&(Ee(n,i)||!st(t,a)&&!sr(a)||r.push({key:n,name:Re(n,i,t),resolveType:a})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function kr(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Pr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function jr(e){return e.includes("matchers")||e.includes("Match")}function _t(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Pr.has(r)?!1:t?Xt(t,r):jr(r)}function jn(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!de(n,e)||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;_t(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ie(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!de(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:_t(s,r)}function wn(e,t,r){return ie(e,t,r)?e?.__resolveType??null:null}function ht(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ie(e,t,r)){const a=t[n]??{},l=a.__resolveType??n,{__resolveType:f,name:_,...h}=a;return{resolveType:l,data:h,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function wr(e,t,r){const n=ht(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function $n(e,t,r){if(e)return ie(e,t,r)?wr(e,t,r):e}function $r(e,t,r,n){if(!e)return"Default";if(ie(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function xn(e,t,r){return{__resolveType:e,...t,name:r}}function Ln(e){return{__resolveType:e}}function Cn(e,t,r){const n=ht(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Mn(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function pe(e){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Bn(e){const t=At(e);return{__resolveType:J,variants:[{value:t,rule:{__resolveType:tt}}]}}function Vn(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const r=pe(e);return r?N(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function ce(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Dn(e){const t=pe(e);if(t)return ce(t);if(N(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=pe(n);return ce(s||n)}return ce(e)}function In(e){return pe(e)}const xr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:xr.includes(t)||t.includes("always")}function Lr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Un(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=Lr(r),i=n[s]?.value;if(!i)return null;const a=structuredClone(i);return t.isLazy?{...e,section:a}:a}function St(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Fn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function Nn(e,t){const r=e.__resolveType??"";if(!r)return null;if(N(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function Cr(e,t){const r=e.__resolveType??"";return N(r)?{...e,section:t}:t}function Mr(e,t,r){return t.isLazy?{...e,section:r}:r}function Yn(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:Cr(i,r)},{...e,variants:n}}function zn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Wn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function qn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function Kn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Oe(e){return{rule:we(),value:structuredClone(e)}}function bt(e,t){return{...t,__resolveType:J,variants:e}}function Hn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Br(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=St(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Vr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Br(e,t);if(!n)return null;const s=bt([Oe(n),Oe(n)]);return t.isLazy?{...e,section:s}:s}function Gn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=St(e,t);if(!s)return null;const i=s.variants??[],a=i[i.length-1]?.value;if(!a)return null;const l=bt([...i,Oe(a)],s);return{section:Mr(e,t,l),newVariantIndex:i.length}}const n=Vr(e,t);return n?{section:n,newVariantIndex:1}:null}function Dr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ge?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Qn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===J&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ge}function Xn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Zn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:we(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Jn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function es(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const a=i[r];return Array.isArray(a?.value)?a.value:[]}}return[]}function ts(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(f=>$r(f.rule,t,r)),a=i.reduce((f,_)=>(f[_]=(f[_]??0)+1,f),{}),l={};return s.map((f,_)=>{const h=i[_]??`Variant ${_+1}`,E=a[h]??1;let $=h;return E>1&&(l[h]=(l[h]??0)+1,$=`${h} ${l[h]}`),{label:$||`Variant ${_+1}`,sections:Array.isArray(f.value)?f.value:[],rule:f.rule}})}}return[]}function re(e){return{rule:we(),value:e}}function Z(e,t){return{...t,__resolveType:ge,variants:e}}function rs(e,t){const r=structuredClone(t);if(Array.isArray(e))return Z([re(e),re(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?Z([...n.variants,re(r)],n):null}return Z([re([]),re(r)])}function ns(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ss(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function is(e,t){if(t.length===0)return Z([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return Z(t,e);if(Array.isArray(r?.value))return r.value}return Z(t,e)}function Ir(e,t,r){const n=[];for(const[i,a]of Object.entries(e))i!==t&&n.push(a);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const a of i)n.push(a);continue}r(i);for(const a of Object.values(i))n.push(a)}}}function os(e,t,r){if(!t)return 0;let n=0;return Ir(e,t,s=>{s.__resolveType===t&&ie(s,e,r)&&n++}),n}const as={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function le(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===J}function Ur(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>le(r.resolveType)):!1}function cs(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>le(t.resolveType))}function ls(e,t){if(t==="global"||t==="sections"||Dr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ur(r):!1}const us="secret",Fr=[256,384,512],Nr=12,Yr=16,zr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Wr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Se(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Wr(n)===e?n:null}function qr(e){if(typeof e!="string"||!zr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Se(t),i=Se(r),a=Se(n);return!s||!i||!a||!Fr.includes(s.byteLength)||i.byteLength!==Nr||a.byteLength<Yr?null:{wrappedKey:s,iv:i,ciphertext:a}}function fs(e){return qr(e)!==null}export{X as $,Re as A,Ce as B,as as C,ar as D,dr as E,Sn as F,He as G,ln as H,On as I,Rr as J,_r as K,nn as L,_n as M,tt as N,Jn as O,rs as P,Rn as Q,Jr as R,us as S,En as T,Ut as U,be as V,de as W,ge as X,an as Y,Ge as Z,Qe as _,Tr as a,Gt as a0,Zt as a1,J as a2,Dr as a3,un as a4,cn as a5,ls as a6,jn as a7,wr as a8,Ln as a9,An as aA,Hn as aB,St as aC,Fn as aD,Nn as aE,ht as aF,Gn as aG,ns as aH,qn as aI,Mr as aJ,Un as aK,Kn as aL,Wn as aM,zn as aN,Vn as aO,In as aP,Bn as aQ,is as aR,os as aS,Yn as aT,Lr as aU,ss as aV,bn as aW,yr as aX,$n as aa,ts as ab,cs as ac,hn as ad,we as ae,Tt as af,$r as ag,wn as ah,Cn as ai,ie as aj,xn as ak,Mn as al,Kt as am,on as an,sn as ao,fs as ap,Qn as aq,Et as ar,Xn as as,Zn as at,Tn as au,je as av,fn as aw,pn as ax,st as ay,Dn as az,qt as b,le as c,Pn as d,gn as e,vn as f,vt as g,en as h,Ee as i,tn as j,N as k,mn as l,yn as m,at as n,kn as o,br as p,mt as q,kr as r,rn as s,Je as t,es as u,dn as v,lr as w,it as x,gt as y,sr as z};
1
+ import{c as ye,b as ke,j as O,r as et,af as $t,B as xt,l as Lt,a5 as Ct}from"./index-DEQvnIsm.js";import{a as Mt}from"./Copy01-EWitDFCf.js";import{a as Bt,b as Vt,A as Dt}from"./alert-PPdejvI2.js";import{u as It}from"./use-copy-Dkgb0DtI.js";const te="https://docs.decocms.com/storefront/blocks",Ut={quickstart:`${te}/next/quickstart`,siteEditor:`${te}/next/site-editor#edit-on-your-machine`,serve:`${te}/next/cli#deco-serve`,schema:`${te}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${te}/next/troubleshooting#site-editor`};function Jr(e){const t=ye.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Ft),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=O.jsx(O.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Ft(e,t){return t%2===1?O.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):O.jsx(et.Fragment,{children:e},t)}function en(e){const t=ye.c(31),{command:r}=e,n=ke(),{handleCopy:s,copied:i}=It();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=O.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=a):a=t[0];let l;t[1]!==r?(l=r.split(" ").map(Yt),t[1]=r,t[2]=l):l=t[2];let f;t[3]!==l?(f=O.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,l]}),t[3]=l,t[4]=f):f=t[4];let _;t[5]!==n?(_=n("decoServe.guide.copy"),t[5]=n,t[6]=_):_=t[6];let h;t[7]!==r||t[8]!==s?(h=()=>{s(r).catch(Nt)},t[7]=r,t[8]=s,t[9]=h):h=t[9];let E;t[10]!==i?(E=i?O.jsx($t,{className:"text-success"}):O.jsx(Mt,{}),t[10]=i,t[11]=E):E=t[11];let $;t[12]!==i||t[13]!==n?($=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=$):$=t[14];let x;t[15]!==$?(x=O.jsx("span",{"aria-hidden":"true",children:$}),t[15]=$,t[16]=x):x=t[16];let D;t[17]!==_||t[18]!==h||t[19]!==E||t[20]!==x?(D=O.jsxs(xt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":_,onClick:h,children:[E,x]}),t[17]=_,t[18]=h,t[19]=E,t[20]=x,t[21]=D):D=t[21];let P;t[22]!==i||t[23]!==n?(P=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=P):P=t[24];let I;t[25]!==P?(I=O.jsx("span",{className:"sr-only","aria-live":"polite",children:P}),t[25]=P,t[26]=I):I=t[26];let Y;return t[27]!==I||t[28]!==f||t[29]!==D?(Y=O.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[f,D,I]}),t[27]=I,t[28]=f,t[29]=D,t[30]=Y):Y=t[30],Y}function Nt(){}function Yt(e,t){return O.jsxs(et.Fragment,{children:[t>0&&" ",O.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const zt={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function tn(e){const t=ye.c(20),{links:r,className:n}=e,s=ke();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let a;t[2]!==n?(a=Lt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=a):a=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let f;t[6]!==l?(f=O.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=f):f=t[7];let _;if(t[8]!==r||t[9]!==s){let $;t[11]!==s?($=x=>O.jsxs("a",{href:Ut[x],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(zt[x]),O.jsx(Ct,{"aria-hidden":"true",className:"size-3.5"}),O.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},x),t[11]=s,t[12]=$):$=t[12],_=r.map($),t[8]=r,t[9]=s,t[10]=_}else _=t[10];let h;t[13]!==_?(h=O.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:_}),t[13]=_,t[14]=h):h=t[14];let E;return t[15]!==i||t[16]!==a||t[17]!==f||t[18]!==h?(E=O.jsxs("nav",{"aria-label":i,className:a,children:[f,h]}),t[15]=i,t[16]=a,t[17]=f,t[18]=h,t[19]=E):E=t[19],E}function rn(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function nn(){const e=ye.c(11),t=ke();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=O.jsx(Bt,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=O.jsx(Vt,{children:s}),e[6]=s,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==i?(a=O.jsx(Dt,{variant:"destructive",children:O.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=a):a=e[10],a}const sn="website/loaders/secret.ts",on=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Wt=/^(?:[0-9a-f]{2})*$/i;function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function Kt(e){return typeof e=="string"&&Wt.test(e)}class Ht extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(qt(e)){const n=e.encrypted;if(n!==void 0&&!Kt(n))throw new Ht(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Gt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function an(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function se(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function cn(e,t){return se(e,t)!==null}function Pe(e,t){const r=se(e,t);return r!==null&&r.includes("sections")}function Qt(e,t){const r=se(e,t);return r!==null&&r.includes("apps")}function Xt(e,t){const r=se(e,t);return r!==null&&r.includes("matchers")}function de(e,t){return!(!e||t&&se(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function je(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const ln="oklch(0.7278 0.151 289)",Zt="website/matchers/always.ts",tt="website/matchers/never.ts",ge="website/flags/multivariate.ts",J="website/flags/multivariate/section.ts";function we(){return{__resolveType:Zt}}function X(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Jt=12,er=8,Te=32,tr=40,rr="__SECTION_REF__";function ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const nr="VideoWidget";function Q(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function $e(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Le(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=$e(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const f of Object.values(r))if(f[l])return f[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Qt(e,t))return!0;const r=$e(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(a=>a in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function sr(e){return e==="site/apps/site.ts"?!1:$e(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function un(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?Le(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},a=o=>{if(o.startsWith("#/root/")){const c=o.slice(7);return i[c]??{}}const d=o.split("/").pop()??"",m=s[d];return m||(d===rr?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=a(n.$ref):Object.keys(n).length>0?l=n:l=r;const f=o=>typeof o.$ref=="string"?a(o.$ref):o,_=o=>{const m=f(o).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},h=(o,d)=>{const m=f(o);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:d},E=(o,d=new Set)=>{if(typeof o.$ref!="string"||o.properties||o.anyOf||o.allOf||o.oneOf||o.type)return o;const m=o.$ref.split("/").pop()??"";return!m||d.has(m)?o:E(a(o.$ref),new Set([...d,m]))},$=o=>{const d=o.properties?.__resolveType?.enum;return Array.isArray(d)&&typeof d[0]=="string"?d[0]:void 0},x=o=>$(o)!==void 0,D=(o,d=new Set)=>{if(typeof o.$ref!="string")return[];const m=o.$ref.split("/").pop()??"";if(!m||d.has(m))return[];const c=a(o.$ref),C=c.anyOf??c.oneOf;if(!Array.isArray(C))return[];const w=new Set([...d,m]);return C.flatMap(L=>x(L)?[L]:D(L,w))},P=o=>{const d=o.hide;return d===!0||d==="true"},I=o=>typeof o=="string"&&(o.includes("://")||!/\s/.test(o)&&(o.includes("|")||o.includes("&")||o.includes("@"))),Y=(o,d=new Set,m=0)=>{if(m>Jt)return{};if(typeof o.$ref=="string"){const C=o.$ref.split("/").pop()??"";return d.has(C)?{}:Y(a(o.$ref),new Set([...d,C]),m+1)}let c={};o.properties&&typeof o.properties=="object"&&(c={...c,...o.properties}),Array.isArray(o.required)&&(c.__required=[...Q(c.__required),...Q(o.required)]);for(const C of["allOf","anyOf","oneOf"]){const w=o[C];if(Array.isArray(w))for(const L of w){const U=Q(c.__required),z=Y(L,d,m+1);c={...c,...z};const B=C==="allOf"?[...U,...Q(z.__required)]:U;B.length>0?c.__required=B:delete c.__required}}return c},V=(o,d=0,m=new Set)=>{let c=o,C;if(typeof o.$ref=="string"){c=a(o.$ref);const k=o.$ref.split("/").pop()??"";C=k,k===nr&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const w=C!==void 0&&m.has(C),L=C!==void 0?new Set([...m,C]):m,U=(k,g,S,b=!0)=>!w&&(!b||S<=tr)&&g<er?V(k,g,L):void 0;let z;{const k=c.anyOf??c.oneOf;if(Array.isArray(k)){const g=k.filter(b=>!(b.type==="null"||b.type===null)),S=b=>{if(typeof b.const=="string"||typeof b.const=="number")return b.const;if(Array.isArray(b.enum)&&b.enum.length===1&&(typeof b.enum[0]=="string"||typeof b.enum[0]=="number"))return b.enum[0]};g.length>0&&g.every(b=>S(b)!==void 0)&&(z=g.map(b=>S(b)))}}let B,ee,Fe=!1;if(c.type)B=Array.isArray(c.type)?String(c.type.find(k=>k!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const g=(c.anyOf??c.oneOf).filter(S=>!(S.type==="null"||S.type===null));if(g.length===0)B="null";else if(g.length===1){const S=g[0];ee=S,B=S.type?Array.isArray(S.type)?String(S.type[0]):String(S.type):typeof S.$ref=="string"?"object":"string"}else{if(z){const y=u=>typeof o[u]=="string"?o[u]:typeof c[u]=="string"?c[u]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:z,format:y("format"),options:y("options")}}const S=g.filter(x),b=g.map(y=>E(y)).find(ae),H=y=>{if(typeof y.$ref!="string")return;const u=E(y),p=u.anyOf??u.oneOf;if(!Array.isArray(p))return;const v=[...p.filter(x),...p.filter(T=>!x(T)).flatMap(T=>D(T))],j=p.filter(T=>{if(x(T)||T.type==="null")return!1;const M=f(T),F=M.properties;return!F?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!F)});return v.length>0&&j.length>0?{data:j,loaders:v}:void 0},G=g.flatMap(y=>{const u=H(y);return u?[u]:[]}),kt=G.length===0&&g.filter(y=>!ae(E(y))).every(y=>typeof y.$ref=="string"||S.includes(y)),Pt=S.some(y=>{const u=y.properties?.__resolveType?.enum;return Array.isArray(u)&&u[0]===ge}),he=(y=[])=>{const u=new Map;for(const R of[...S,...g.filter(A=>!S.includes(A)).flatMap(A=>D(A)),...y]){const A=$(R);A&&!u.has(A)&&u.set(A,R)}const p=[...u].map(([R,A])=>({resolveType:R,title:typeof A.title=="string"?A.title:X(R),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,u.size)})),v=[];for(const R of g){if(S.includes(R)||typeof R.$ref!="string")continue;const A=a(R.$ref);let W;const q=A.properties?.__resolveType;if(Array.isArray(q?.enum)&&typeof q.enum[0]=="string"&&(W=q.enum[0]),!W&&Array.isArray(A.allOf))for(const wt of A.allOf){const Ae=wt.properties?.__resolveType?.enum;if(Array.isArray(Ae)&&typeof Ae[0]=="string"){W=Ae[0];break}}W&&v.push({resolveType:W,title:typeof A.title=="string"&&!A.title.startsWith("#")?A.title:X(W),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,g.length)})}const j=new Set(p.map(R=>R.resolveType)),T=[...p,...v.filter(R=>!j.has(R.resolveType))],M=g.filter(R=>!S.includes(R)),F=M.length===1&&!w?V(M[0],d+1,L):void 0;return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:T,plainSchema:F,hidden:P(c)||P(o)?!0:void 0}};if(b){const y=!Xe(b,a);if(y&&G.length>0){const u=typeof o.title=="string"?o.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,p=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,v=g.find(T=>ae(E(T))),j=G.flatMap(T=>T.data);return{type:"inline-union",title:u,description:p,inlineUnionBranches:[...j.map((T,M)=>({title:h(T,`Option ${M+1}`),schema:V(T,d+1,L)})),{title:h(v,`Option ${j.length+1}`),schema:V(b,d+1,L)}],loaderRef:{...he(G.flatMap(T=>T.loaders)),title:u,description:p},hidden:P(c)||P(o)?!0:void 0}}if(y&&g.length>1&&kt){const u=V(b,d+1,L),p=typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:u.title,v=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:u.description;return{...u,type:"array",title:p,description:v,loaderRef:S.length>0?{...he(),title:p,description:v}:void 0}}if(Pt){const u=V(b,d+1,L);return{...u,type:"array",title:typeof c.title=="string"?c.title:u.title,description:typeof c.description=="string"?c.description:u.description}}}if(S.length>0)return he();const ze=y=>{const u=f(y);if(typeof u.title=="string"&&Ge(u.title))return!0;const p=u.properties?.__resolveType?.enum;if(Array.isArray(p)&&typeof p[0]=="string")return!0;if(Array.isArray(u.allOf))for(const v of u.allOf){const j=v.properties?.__resolveType?.enum;if(Array.isArray(j)&&typeof j[0]=="string")return!0}return!1},We=g.map(y=>_(y));if(g.length>1&&We.every(y=>typeof y=="string")&&!g.some(ze)){const y=g.map((u,p)=>{const v=f(u),j=We[p];return{resolveType:j,title:h(u,j),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:j,schema:U(v,d+1,g.length,!1)}});return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const u=f(y);return u.type==="object"||!!u.properties},jt=y=>{const u=E(y);return ae(u)?!Xe(u,a):!1},Ke=d<Te&&g.every(y=>qe(y)||jt(y))&&g.some(qe);if(g.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const u of g){const p=a(u.$ref);let v,j,T=!1;if(typeof p.title=="string"){const R=Ge(p.title);R&&(v=R.blockId,j=R.blockId)}if(!v&&Array.isArray(p.allOf))for(const R of p.allOf){const q=((R.properties??{}).__resolveType??{}).enum;if(Array.isArray(q)&&typeof q[0]=="string"){v=q[0],T=!0;break}}if(!v){const A=p.properties?.__resolveType?.enum;Array.isArray(A)&&typeof A[0]=="string"&&(v=A[0],T=!0)}v||(v=u.$ref.split("/").pop()??"");const M=v.includes("/")||T&&!Gt(v),F=M?void 0:_(u);!F&&!M||T&&v==="lazy"||y.push({resolveType:F??v,title:j??(typeof p.title=="string"&&!p.title.startsWith("#")?p.title:X(v)),description:typeof p.description=="string"?p.description:void 0,discriminatorValue:F,schema:U(p,d+1,g.length)})}return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}if(Ke){const y=p=>{if(typeof p.const=="string"||typeof p.const=="number"||typeof p.const=="boolean")return p.const;if(Array.isArray(p.enum)&&p.enum.length===1&&(typeof p.enum[0]=="string"||typeof p.enum[0]=="number"||typeof p.enum[0]=="boolean"))return p.enum[0]},u=g.map((p,v)=>{const j=f(p).properties??{},T={};for(const[M,F]of Object.entries(j)){const R=y(F);R!==void 0&&(T[M]=R)}return{title:h(p,`Option ${v+1}`),schema:V(p,d+1),discriminators:Object.keys(T).length?T:void 0}});return{type:"inline-union",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:u,hidden:P(c)||P(o)?!0:void 0}}B="object"}}else c.allOf?(B="object",Fe=I(c.title)):typeof o.$ref=="string"&&(B="object");let oe,Ne,Ye=!1;if(d<Te&&!w){const k=Y(c),g=k.__resolveType?.enum;Ye=Array.isArray(g)&&g.length===1&&g[0]==="lazy";const S=Q(k.__required);S.length>0&&(Ne=S);const b=Object.entries(k).filter(([H])=>!H.startsWith("__")&&H!=="@type");if(b.length>0){oe={};for(const[H,G]of b)oe[H]=V(G,d+1,L)}}let _e;if((B==="array"||c.type==="array")&&d<Te&&!w){const k=c.items;if(k){_e=V(k,d+1,L);const g=f(k);typeof g.title=="string"&&g.title.includes("{{")&&(_e.titleBy=g.title)}}const K=k=>{const g=ee?.[k];return typeof g=="string"?g:void 0},Ot=()=>{if("default"in o)return o.default;if("default"in c)return c.default;if(ee&&"default"in ee)return ee.default};return{type:B??"string",title:typeof o.title=="string"?o.title:!Fe&&typeof c.title=="string"?c.title:K("title"),description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:K("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:z??void 0,format:typeof o.format=="string"?o.format:typeof c.format=="string"?c.format:K("format"),properties:oe,required:Ne,items:_e,lazy:Ye&&oe?.value?!0:void 0,recursiveRef:w&&typeof o.$ref=="string"&&(B==="object"||B==="array"||c.type==="array")?o.$ref:void 0,hidden:P(c)||P(o)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:K("titleBy"),image:typeof c.image=="string"?c.image:K("image"),options:typeof o.options=="string"?o.options:typeof c.options=="string"?c.options:K("options")}};if("ref"in t)return V({$ref:t.ref});const De=l.properties??{},Rt=Object.keys(De).every(o=>o.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const o=De.__resolveType,d=Array.isArray(o?.enum)&&typeof o.enum[0]=="string"?o.enum[0]:typeof o?.const=="string"?o.const:typeof o?.default=="string"?o.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const w=V(c,0);if(w.type==="inline-union"&&w.inlineUnionBranches){const L=I(w.title);return{...w,title:L?void 0:w.title,inlineUnionBranches:d?w.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:d}})):w.inlineUnionBranches}}}}const Ie=Y(l),ve={};for(const[o,d]of Object.entries(Ie))o.startsWith("__")||o==="@type"||(ve[o]=V(d,0));if(Object.keys(ve).length===0)return null;const Ue=Q(Ie.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ve,required:Ue.length>0?Ue:void 0}}function fn(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,a=i.properties??{};if(Object.keys(a).some(_=>!_.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const f=a.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function pn(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,a]of Object.entries(n))i.startsWith("__")||(s[i]=t(a));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=i.icon,l=i.logo,f=i,_=E=>E===!0||E==="true",h=_(f.hide)||_(f.ignore)||_(f.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof l=="string"?l:void 0,hidden:h||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function yn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ir(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function dn(e){const t=e.trim();return t?ir(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Me=/:([A-Za-z0-9_-]+)|\*/g;function gn(e){const t=[];for(const r of e.matchAll(Me)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Me))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function vn(e,t){return ct(e).replace(Me,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const or=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function N(e){return or.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),ar=lt[0],cr=new Set(["site/sections/Theme/Theme.tsx"]);function me(e){return!!(cr.has(e)||N(e)||e.toLowerCase().includes("preview"))}function lr(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":ar}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ur(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(me(i))continue;const a=Ce(i,e);r.push({resolveType:i,title:a.title??X(i),description:a.description,previewBlock:i,isSavedBlock:!1})}return r}function _n(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))me(i)||r.has(i)||r.set(i,{resolveType:i,title:X(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==J)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let a=i.__resolveType;if(typeof a=="string"&&N(a)&&(a=i.section?.__resolveType??a),typeof a=="string"&&Pe(e,a))return a}return r}function fr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a!="string"||ut.has(a)||typeof i.path=="string"||me(a)||!(Pe(e,a)||a===J&&fr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pr(e,t){const r=de(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||X(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function hn(e,t){const r=lr(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,a=l=>{if(!me(l.resolveType)){if(de(l.resolveType,e)){je(l.resolveType)||i.set(l.resolveType,l);return}Pe(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ur(e))a(l);for(const l of s)a(pr(e,l));for(const l of pt(e,t))a(l);return[...i.values()].sort((l,f)=>l.title.localeCompare(f.title))}function An(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Be="website/loaders/redirect.ts",Tn=new Set([Be,"website/loaders/redirects.ts"]),Ve="redirect",yr=[301,302,307,308],dr={temporary:307,permanent:301};function Sn(e){return e.flat?e.status??(e.type==="permanent"?301:302):dr[e.type]}const ue=e=>typeof e=="string"?e:"",gr=e=>e==="permanent"?"permanent":"temporary",mr=e=>yr.find(t=>t===e);function vr(e){const t=mr(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Ve)return vr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:gr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function _r(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Be&&s.__resolveType!==Ve||t.push({key:r,...yt(s)})}return t}function bn(e){return yt(e)}function En(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Be}}function hr(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ar=1e3;function Rn(e,t){const r=hr(t);for(let n=0;n<Ar;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function Tr(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function On(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const a=e.find(l=>l.key.endsWith(`-${r}`));if(a)return a}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(a=>a.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,a)=>i.key.localeCompare(a.key))[0]??null}const Sr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return Sr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const ne="site",gt="site/apps/site.ts";function Ee(e,t){return e===ne?!0:t.__resolveType===gt}function kn(e,t){return e?mt(e,t).length>0||_r(e).length>0?!0:t?kr(e,t).length>0||Rr(e,t)?!0:Or(e,t).length>0:!1:!1}function br(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Tr(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=br(n,s,t);i&&r.push(i)}return r}function fe(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>fe(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>fe(s,t,r+1))}function Er(e,t,r){const n=mt(e,r),s=new Set(n.map(a=>a.key)),i=new Set([t]);for(let a=!0;a;){a=!1;for(const[l,f]of Object.entries(e))i.has(l)||s.has(l)||fe(f,i)&&(i.add(l),a=!0)}return n.filter(a=>a.key!==t&&fe(e[a.key],i))}function Pn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Er(e,t,r).sort((i,a)=>n(i)-n(a)||(i.path<a.path?-1:i.path>a.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Re(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Rr(e,t){const r=e[ne];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Ee(ne,n)||st(t,s)))return{key:ne,name:Re(ne,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Ee(n,i))continue;const a=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Re(n,i,t),resolveType:a}}return null}function Or(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a=="string"&&(dt(a,t)||typeof i.path!="string"&&(Ee(n,i)||!st(t,a)&&!sr(a)||r.push({key:n,name:Re(n,i,t),resolveType:a})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function kr(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Pr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function jr(e){return e.includes("matchers")||e.includes("Match")}function _t(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Pr.has(r)?!1:t?Xt(t,r):jr(r)}function jn(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!de(n,e)||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;_t(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ie(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!de(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:_t(s,r)}function wn(e,t,r){return ie(e,t,r)?e?.__resolveType??null:null}function ht(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ie(e,t,r)){const a=t[n]??{},l=a.__resolveType??n,{__resolveType:f,name:_,...h}=a;return{resolveType:l,data:h,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function wr(e,t,r){const n=ht(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function $n(e,t,r){if(e)return ie(e,t,r)?wr(e,t,r):e}function $r(e,t,r,n){if(!e)return"Default";if(ie(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function xn(e,t,r){return{__resolveType:e,...t,name:r}}function Ln(e){return{__resolveType:e}}function Cn(e,t,r){const n=ht(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Mn(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function pe(e){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Bn(e){const t=At(e);return{__resolveType:J,variants:[{value:t,rule:{__resolveType:tt}}]}}function Vn(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const r=pe(e);return r?N(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function ce(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Dn(e){const t=pe(e);if(t)return ce(t);if(N(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=pe(n);return ce(s||n)}return ce(e)}function In(e){return pe(e)}const xr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:xr.includes(t)||t.includes("always")}function Lr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Un(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=Lr(r),i=n[s]?.value;if(!i)return null;const a=structuredClone(i);return t.isLazy?{...e,section:a}:a}function St(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Fn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function Nn(e,t){const r=e.__resolveType??"";if(!r)return null;if(N(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function Cr(e,t){const r=e.__resolveType??"";return N(r)?{...e,section:t}:t}function Mr(e,t,r){return t.isLazy?{...e,section:r}:r}function Yn(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:Cr(i,r)},{...e,variants:n}}function zn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Wn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function qn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function Kn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Oe(e){return{rule:we(),value:structuredClone(e)}}function bt(e,t){return{...t,__resolveType:J,variants:e}}function Hn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Br(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=St(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Vr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Br(e,t);if(!n)return null;const s=bt([Oe(n),Oe(n)]);return t.isLazy?{...e,section:s}:s}function Gn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=St(e,t);if(!s)return null;const i=s.variants??[],a=i[i.length-1]?.value;if(!a)return null;const l=bt([...i,Oe(a)],s);return{section:Mr(e,t,l),newVariantIndex:i.length}}const n=Vr(e,t);return n?{section:n,newVariantIndex:1}:null}function Dr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ge?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Qn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===J&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ge}function Xn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Zn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:we(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Jn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function es(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const a=i[r];return Array.isArray(a?.value)?a.value:[]}}return[]}function ts(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(f=>$r(f.rule,t,r)),a=i.reduce((f,_)=>(f[_]=(f[_]??0)+1,f),{}),l={};return s.map((f,_)=>{const h=i[_]??`Variant ${_+1}`,E=a[h]??1;let $=h;return E>1&&(l[h]=(l[h]??0)+1,$=`${h} ${l[h]}`),{label:$||`Variant ${_+1}`,sections:Array.isArray(f.value)?f.value:[],rule:f.rule}})}}return[]}function re(e){return{rule:we(),value:e}}function Z(e,t){return{...t,__resolveType:ge,variants:e}}function rs(e,t){const r=structuredClone(t);if(Array.isArray(e))return Z([re(e),re(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?Z([...n.variants,re(r)],n):null}return Z([re([]),re(r)])}function ns(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ss(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function is(e,t){if(t.length===0)return Z([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return Z(t,e);if(Array.isArray(r?.value))return r.value}return Z(t,e)}function Ir(e,t,r){const n=[];for(const[i,a]of Object.entries(e))i!==t&&n.push(a);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const a of i)n.push(a);continue}r(i);for(const a of Object.values(i))n.push(a)}}}function os(e,t,r){if(!t)return 0;let n=0;return Ir(e,t,s=>{s.__resolveType===t&&ie(s,e,r)&&n++}),n}const as={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function le(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===J}function Ur(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>le(r.resolveType)):!1}function cs(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>le(t.resolveType))}function ls(e,t){if(t==="global"||t==="sections"||Dr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ur(r):!1}const us="secret",Fr=[256,384,512],Nr=12,Yr=16,zr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Wr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Se(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Wr(n)===e?n:null}function qr(e){if(typeof e!="string"||!zr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Se(t),i=Se(r),a=Se(n);return!s||!i||!a||!Fr.includes(s.byteLength)||i.byteLength!==Nr||a.byteLength<Yr?null:{wrappedKey:s,iv:i,ciphertext:a}}function fs(e){return qr(e)!==null}export{X as $,Re as A,Ce as B,as as C,ar as D,dr as E,Sn as F,He as G,ln as H,On as I,Rr as J,_r as K,nn as L,_n as M,tt as N,Jn as O,rs as P,Rn as Q,Jr as R,us as S,En as T,Ut as U,be as V,de as W,ge as X,an as Y,Ge as Z,Qe as _,Tr as a,Gt as a0,Zt as a1,J as a2,Dr as a3,un as a4,cn as a5,ls as a6,jn as a7,wr as a8,Ln as a9,An as aA,Hn as aB,St as aC,Fn as aD,Nn as aE,ht as aF,Gn as aG,ns as aH,qn as aI,Mr as aJ,Un as aK,Kn as aL,Wn as aM,zn as aN,Vn as aO,In as aP,Bn as aQ,is as aR,os as aS,Yn as aT,Lr as aU,ss as aV,bn as aW,yr as aX,$n as aa,ts as ab,cs as ac,hn as ad,we as ae,Tt as af,$r as ag,wn as ah,Cn as ai,ie as aj,xn as ak,Mn as al,Kt as am,on as an,sn as ao,fs as ap,Qn as aq,Et as ar,Xn as as,Zn as at,Tn as au,je as av,fn as aw,pn as ax,st as ay,Dn as az,qt as b,le as c,Pn as d,gn as e,vn as f,vt as g,en as h,Ee as i,tn as j,N as k,mn as l,yn as m,at as n,kn as o,br as p,mt as q,kr as r,rn as s,Je as t,es as u,dn as v,lr as w,it as x,gt as y,sr as z};
@@ -1 +1 @@
1
- import{c as x,b as d,j as l}from"./index-Dfl75K1t.js";import{s as j}from"./User01-B8psxoPR.js";import{t as E}from"./Users01-D8pzXgR8.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-DEQvnIsm.js";import{s as j}from"./User01-BcekHhAV.js";import{t as E}from"./Users01-BIP-PxGt.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,fK as E,H as F,r as N,b1 as L,B as D,ad as T,D as O,q as B,s as A,v as R,aM as q,I as _,w as I,t as z}from"./index-Dfl75K1t.js";import{i as H}from"./AlertCircle-Dr8-y7L0.js";import{s as V}from"./Plus-CaUk_FLH.js";import{s as K}from"./User01-B8psxoPR.js";import{t as M}from"./Users01-D8pzXgR8.js";import{L as w}from"./label-vST9B_zD.js";import{S as G,b as J,a as Q,d as U,c as P}from"./select-Che713bi.js";import{T as W}from"./textarea-BouaqET7.js";import{u as X,a as Y}from"./use-secrets-CfU9WX5Q.js";import{R as Z}from"./require-capability-D9vWIFzq.js";import"./index-BdQq_4o_.js";import"./index-2AvhxrGF.js";import"./ChevronUp-Da3KAAR7.js";import"./access-gate-CDyNIkXG.js";import"./capability-load-error-CTAYiETg.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"?K:M;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(G,{value:i,onValueChange:u=>c(u),children:[s.jsx(J,{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,fK as E,H as F,r as N,b1 as L,B as D,ad as T,D as O,q as B,s as A,v as R,aM as q,I as _,w as I,t as z}from"./index-DEQvnIsm.js";import{i as H}from"./AlertCircle-Q16nTVAa.js";import{s as V}from"./Plus-DQf-jm_3.js";import{s as K}from"./User01-BcekHhAV.js";import{t as M}from"./Users01-BIP-PxGt.js";import{L as w}from"./label-Cf2Qy475.js";import{S as G,b as J,a as Q,d as U,c as P}from"./select-ChqJI0MI.js";import{T as W}from"./textarea-CWgoXXnV.js";import{u as X,a as Y}from"./use-secrets-CA-kSu-4.js";import{R as Z}from"./require-capability-D4dR1lZc.js";import"./index-BdQq_4o_.js";import"./index-BaQyqQF-.js";import"./ChevronUp-DK-Gvyk8.js";import"./access-gate-CsHtyNGi.js";import"./capability-load-error-CB4I7CRT.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"?K:M;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(G,{value:i,onValueChange:u=>c(u),children:[s.jsx(J,{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 +1 @@
1
- import{Y as i,E as e}from"./agent-icon-Ck1HHwjS.js";import{i as n}from"./Link01-4vw5jtmA.js";const s=["general","connections","site"],r={general:{icon:e,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},connections:{icon:n,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},site:{icon:i,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function l(t){return!!t&&s.includes(t)}export{s as P,r as a,l as i};
1
+ import{Y as i,E as e}from"./agent-icon-D6wS7rd0.js";import{i as n}from"./Link01-9civFIb9.js";const s=["general","connections","site"],r={general:{icon:e,titleKey:"virtualMcp.settings.general.title",descriptionKey:"virtualMcp.settings.general.description"},connections:{icon:n,titleKey:"virtualMcp.settings.connections.title",descriptionKey:"virtualMcp.settings.connections.description"},site:{icon:i,titleKey:"virtualMcp.settings.site.title",descriptionKey:"virtualMcp.settings.site.description"}};function l(t){return!!t&&s.includes(t)}export{s as P,r as a,l as i};