decocms 4.599.1 → 4.600.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/dist/client/assets/{AlertCircle-B3Cju_A1.js → AlertCircle-CShy6yDX.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BsdSPBeq.js → AreaChart-BGct6q9f.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-JqakTihq.js → ArrowLeft-WKtVHs-Z.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BfeXu93i.js → ArrowRight-FtSbCfTm.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BfNOj71J.js → ArrowUp-DEEf-mtS.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-BKu_pkwc.js → BookOpen01-2E_0y9OX.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-B2J6nOBs.js → CartesianChart-UZ4xQJUQ.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DBuZ9FMz.js → CategoricalChart-CENUMi_W.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Bai2UKV6.js → CheckCircle-DZKYp081.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-Z_rS_qxi.js → ChevronDown-DZmwX-ra.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-RCMLCOHU.js → ChevronSelectorVertical-BBSQj61f.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Dw-CS8VU.js → ChevronUp-up6pfAf9.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-r4fHrP_W.js → CreditCard01-BPmia42q.js} +1 -1
  14. package/dist/client/assets/{Eye-ByR79fPG.js → Eye-BuU02LHf.js} +1 -1
  15. package/dist/client/assets/{File02-t5qv63Kr.js → File02-C19wgG-g.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-CS__1Y5O.js → Fingerprint04-D5Hh-Z6T.js} +1 -1
  17. package/dist/client/assets/{Globe04-eZsWB_1O.js → Globe04-BStLKLZ2.js} +1 -1
  18. package/dist/client/assets/{Image01-DDNpzV54.js → Image01-DPsmXJM9.js} +1 -1
  19. package/dist/client/assets/{Key01-Bw_fJ2tr.js → Key01-7I5yC-jW.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DitqlfzI.js → LayoutLeft-DUAhH4Wy.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-luAAtNTl.js → LinkBroken01-DGLo0pdz.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-BCGadvZ4.js → MessageCircle01-BSvG5u-_.js} +1 -1
  23. package/dist/client/assets/{Minus-4VQcuoJL.js → Minus-BWHpZUKs.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Cl-96JXO.js → Monitor01-docIVUl5.js} +1 -1
  25. package/dist/client/assets/{Play-tK-cgr7Z.js → Play-2z1E087w.js} +1 -1
  26. package/dist/client/assets/{Plus-Bt6EBJN9.js → Plus-D8wmiIrv.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-DavZGnWR.js → ReferenceLine-C2TsGNU_.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CAXH4rmA.js → SearchMd-DL0DTMXc.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BaVX9GKu.js → ShoppingBag01-BvzxucRv.js} +1 -1
  30. package/dist/client/assets/{Sun-CdW70nGr.js → Sun-BiUlQLmT.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CTbodgu_.js → SwitchHorizontal01-C2pVU_4J.js} +1 -1
  32. package/dist/client/assets/{Tool01-C-ZDvUZB.js → Tool01-Cvtzb7gx.js} +1 -1
  33. package/dist/client/assets/{Tooltip-Bs_AOl1u.js → Tooltip-B1SzrgTJ.js} +1 -1
  34. package/dist/client/assets/{Trash01-ytRgJXDs.js → Trash01-9RQC1f5G.js} +1 -1
  35. package/dist/client/assets/{Upload01-BOEdYpIY.js → Upload01-3Gw-mR9u.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-KC3-wNT4.js → UserCheck01-BsbnQ5ut.js} +1 -1
  37. package/dist/client/assets/{UserSquare-DxDl1vQw.js → UserSquare-B3Bg0K9g.js} +1 -1
  38. package/dist/client/assets/{Users01-BgoP6eBE.js → Users01-w98WkMA8.js} +1 -1
  39. package/dist/client/assets/{XClose-BWSiI7cY.js → XClose-rn7BTPbt.js} +1 -1
  40. package/dist/client/assets/{Zap-CMTLEaPZ.js → Zap-DuqrcICg.js} +1 -1
  41. package/dist/client/assets/{access-gate-BVJuKD5u.js → access-gate-DW6dT6hG.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-Dd6qUk0_.js → add-connection-dialog-41qDOna8.js} +1 -1
  43. package/dist/client/assets/agent-app-BE36cFAC.js +1 -0
  44. package/dist/client/assets/{agent-assets-D7IFK2u6.js → agent-assets-kUGQRLuY.js} +1 -1
  45. package/dist/client/assets/{agent-automation-Dqr66VRD.js → agent-automation-D56n8lJY.js} +1 -1
  46. package/dist/client/assets/{agent-automations-B-cayf1l.js → agent-automations-BAB9lGNM.js} +1 -1
  47. package/dist/client/assets/{agent-blog-post-BmC5e1CB.js → agent-blog-post-4NG_W-ic.js} +2 -2
  48. package/dist/client/assets/{agent-blog-DNqbIZhQ.js → agent-blog-wzJ7xZUr.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-CGWNrJU1.js → agent-calendar-Df_iHtIm.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-DVIfP_3x.js → agent-capabilities-DfwZEM8H.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-DONUYUMZ.js → agent-connect-sources-DX3x7-FY.js} +1 -1
  52. package/dist/client/assets/agent-deck-CaQ-cUn9.js +1 -0
  53. package/dist/client/assets/{agent-e2e-CF4V4H-e.js → agent-e2e-Dcub2PY1.js} +1 -1
  54. package/dist/client/assets/agent-experiments-BIjkBrDb.js +1 -0
  55. package/dist/client/assets/agent-file-Dft8zwWy.js +1 -0
  56. package/dist/client/assets/{agent-hosting-DfbypUu6.js → agent-hosting-DOle-P9z.js} +1 -1
  57. package/dist/client/assets/{agent-icon-C9GKvk-e.js → agent-icon-BmlBo_mr.js} +1 -1
  58. package/dist/client/assets/agent-library-Bp6rWEFG.js +1 -0
  59. package/dist/client/assets/agent-library-file-CFX46C1f.js +1 -0
  60. package/dist/client/assets/agent-overview-Scs4YPy1.js +1 -0
  61. package/dist/client/assets/{agent-releases-CDUCakHy.js → agent-releases-CVqZP5oT.js} +1 -1
  62. package/dist/client/assets/agent-settings-H4zJXShv.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-BcuMd815.js → agent-site-editor-CloXRQ-i.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-68kgy3y_.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-CBaeiU7Y.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-Cao70n6T.js +1 -0
  67. package/dist/client/assets/agent-view-CqlrAct7.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-D3IrJ2pB.js → agent-view-guard-BsUiX4Ya.js} +1 -1
  69. package/dist/client/assets/{ai-providers-DT8NtC5T.js → ai-providers-4GV0vhZ4.js} +1 -1
  70. package/dist/client/assets/{alert-YvAcIPfD.js → alert-B0-bUkHo.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-CAyS8DyK.js → analytics-sections-C_a4Zs81.js} +1 -1
  72. package/dist/client/assets/api-keys-B3ujQmM7.js +1 -0
  73. package/dist/client/assets/{api-keys-BPzuRc-M.js → api-keys-Drrcn4S1.js} +1 -1
  74. package/dist/client/assets/{app-editor-TtdXe81N.js → app-editor-COdhXw4U.js} +1 -1
  75. package/dist/client/assets/{asset-utils-DkEGuNqu.js → asset-utils-lEJDqLJA.js} +1 -1
  76. package/dist/client/assets/{auth--eLPRq84.js → auth-MiTZGjji.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-DpLKjz58.js → auth-catchall-BrFXd0V5.js} +1 -1
  78. package/dist/client/assets/{auth-entry-C3cGEdiS.js → auth-entry-uafFmpu3.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-Ddozb4KH.js → auth-split-layout-Cuozobog.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-shYrq4La.js → authenticate-and-persist-oauth-BMCgWPAs.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-BZWj_XiT.js → automation-list-row-DjLl_-Ic.js} +1 -1
  82. package/dist/client/assets/{automation-runs--iVmaeqN.js → automation-runs-B1vurEol.js} +1 -1
  83. package/dist/client/assets/{automations-C7qd51Xe.js → automations-DO8SymUj.js} +1 -1
  84. package/dist/client/assets/{badge-avpdistF.js → badge-PmwnY4hy.js} +1 -1
  85. package/dist/client/assets/{block-document-BbOQ5Bgg.js → block-document-C4GUR02r.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-DdpnRJ9X.js → blocks-preview-workspace-context-CEy6ana7.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-CTVyHe6z.js → blocks-tab-states-jg37ZdSd.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-BU9XBgO3.js → blog-preview-url-D3OQhPrj.js} +1 -1
  89. package/dist/client/assets/{blog-schema-Ds6Jj5I-.js → blog-schema-LnsH0S5I.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-DCgXp6Ju.js → blog-source-gate-votguItQ.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-DWVA7m5c.js → blog-view-gate-LkoX3aVt.js} +1 -1
  92. package/dist/client/assets/{buckets-Y87IksOl.js → buckets-9o7-FCAF.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-Bi0VCd8D.js → build-improve-prompt-doc-DTfd4sR5.js} +1 -1
  94. package/dist/client/assets/{calendar-BuXbAP5n.js → calendar-Dw9g3jCh.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-cAPMVAHC.js → capability-load-error-DREzOdAI.js} +1 -1
  96. package/dist/client/assets/{category-editor-2c10Qh_n.js → category-editor-U2mE2Uq7.js} +1 -1
  97. package/dist/client/assets/{category-tree-mmseCBUa.js → category-tree-CT1N50Br.js} +1 -1
  98. package/dist/client/assets/{chart-D9DSNvRd.js → chart-Bv3hFD74.js} +1 -1
  99. package/dist/client/assets/chat-context-B0mIAvmD.js +44 -0
  100. package/dist/client/assets/{chat-draft-BVrXwzRU.js → chat-draft-9D8O6IhX.js} +1 -1
  101. package/dist/client/assets/{checkbox-CqmFYhCZ.js → checkbox-B1JBiKHt.js} +1 -1
  102. package/dist/client/assets/{choose-editor-DwrHzqQy.js → choose-editor-DyATHiiR.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BSu55W2n.js → cli-auth-success-BDHfhdbq.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-CAGzz2gD.js → cms-settings-editor-BApbMHHr.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-d3sWemvr.js → cms-store-drafts-46Bd4H4I.js} +1 -1
  106. package/dist/client/assets/{collapsible-CQV85QWM.js → collapsible-MMZS4bUW.js} +1 -1
  107. package/dist/client/assets/{collection-detail-CVdo1nA-.js → collection-detail-DDWfF_wY.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-Chm2IVwH.js → collection-display-button-CNU2B9PT.js} +1 -1
  109. package/dist/client/assets/{collection-search-Bs14bntm.js → collection-search-RaF1TESZ.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DstkDyhq.js → collection-table-wrapper-DkHLZ70L.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-B1B3kiNc.js → collection-tabs-DQ1qcrf-.js} +1 -1
  112. package/dist/client/assets/{combobox-CSfT_sOf.js → combobox-1zkSCtBC.js} +1 -1
  113. package/dist/client/assets/{command-B6OM034H.js → command-lFozjt-f.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-BWu0Oyod.js → companion-mcps-section-Cx6ucwDV.js} +1 -1
  115. package/dist/client/assets/{config-CO0pdfAU.js → config-ENUSei4z.js} +1 -1
  116. package/dist/client/assets/{connect-DbJXn--P.js → connect-D5WcJbVU.js} +1 -1
  117. package/dist/client/assets/{connect-key-CI99u1f8.js → connect-key-C6BV1Iwv.js} +1 -1
  118. package/dist/client/assets/{connect-layout-BuHzqoIz.js → connect-layout-DjV0E6Nl.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-Cp059vVQ.js → connect-source-dialog-D2l3M31x.js} +1 -1
  120. package/dist/client/assets/{connection-DpMMt2Al.js → connection-BjfhQTvi.js} +1 -1
  121. package/dist/client/assets/{connection-card-B3-Hg3n9.js → connection-card-CDIRX7rw.js} +1 -1
  122. package/dist/client/assets/{connection-detail-CEYdmhTO.js → connection-detail-BIzjJxFf.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-BxJ9sr65.js → connection-form-helpers-qS_yNMNY.js} +1 -1
  124. package/dist/client/assets/{connection-slug-CGS3F6kQ.js → connection-slug-C1NpnAPZ.js} +1 -1
  125. package/dist/client/assets/{connections-Dvscv7NE.js → connections-D27uBCQp.js} +1 -1
  126. package/dist/client/assets/{content-changes-tuzVZCgx.js → content-changes-D1-8LQ7K.js} +1 -1
  127. package/dist/client/assets/{content-tab-BtlTSMQt.js → content-tab-7Dmz1NiK.js} +3 -3
  128. package/dist/client/assets/{context-C1OSQBrp.js → context-DTrpa-1Y.js} +1 -1
  129. package/dist/client/assets/{context-menu-V5QJbjID.js → context-menu-C3x16EIQ.js} +1 -1
  130. package/dist/client/assets/{context-shell-B3sYm4Nc.js → context-shell-BFCtTuzW.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-CajE7pCv.js → create-organization-dialog-D9cS-x9o.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-Ik3rbsEk.js → daily-pulse-Bi3n0TDe.js} +1 -1
  133. package/dist/client/assets/{delete-copy-DR5_GWca.js → delete-copy-Bq1Zqo6Q.js} +1 -1
  134. package/dist/client/assets/{device-hint-YlY7adlI.js → device-hint-DxfHiV8Q.js} +1 -1
  135. package/dist/client/assets/{discover-Dg16AoDL.js → discover-MaWSe6AZ.js} +1 -1
  136. package/dist/client/assets/{domain-settings-DZcc4-KS.js → domain-settings-RGqBkuzr.js} +1 -1
  137. package/dist/client/assets/{drawer-DxUw9eFf.js → drawer-BaaFg3R1.js} +1 -1
  138. package/dist/client/assets/{editor-DC_MNFxo.js → editor-BJ1E4lJs.js} +1 -1
  139. package/dist/client/assets/{editor-classes-BxUv_3jy.js → editor-classes-BYet6QQd.js} +1 -1
  140. package/dist/client/assets/{empty-state-CLzYFhww.js → empty-state-csW-GeIV.js} +1 -1
  141. package/dist/client/assets/{empty-state-Cu_IoiIQ.js → empty-state-eYKU8nO4.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-DJMSmAMJ.js → experiments-tab-choice-C-ZtNaMR.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-De6gds1M.js → extract-connection-data-D3bUe5Lp.js} +1 -1
  144. package/dist/client/assets/{feature-gate-ikqHZ3hl.js → feature-gate-D1Gwsg7S.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-2rUmTksa.js → feature-paywall-Cvsy56pL.js} +1 -1
  146. package/dist/client/assets/{file-explorer-C3fiWZ-2.js → file-explorer-Dt6KMNM7.js} +1 -1
  147. package/dist/client/assets/{file-preview-BeYqBSPk.js → file-preview-B4NZQa3r.js} +1 -1
  148. package/dist/client/assets/{file-share-button-CYcLwrJ0.js → file-share-button-D_zlUria.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-D8TxRFpf.js → file-type-icon-DH9FvqO6.js} +1 -1
  150. package/dist/client/assets/{folder-icon-B_VvBXwZ.js → folder-icon-CH-z3EGp.js} +1 -1
  151. package/dist/client/assets/{form-BCsbxXDw.js → form-DoeHcF5c.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-B--5v_fe.js → frame-navigation-B-UfCzDd.js} +1 -1
  153. package/dist/client/assets/{gateway-client-CxQSAdad.js → gateway-client-CJDxmxSa.js} +1 -1
  154. package/dist/client/assets/{general-DoAu8gpb.js → general-DG60NVm4.js} +1 -1
  155. package/dist/client/assets/{github-icon-Cubk8a0z.js → github-icon-Dv1ygj1J.js} +1 -1
  156. package/dist/client/assets/{held-block-view-Df32M-2X.js → held-block-view-BLxhK7ER.js} +1 -1
  157. package/dist/client/assets/{home-dnX5FTMr.js → home-C7A8b1LY.js} +1 -1
  158. package/dist/client/assets/{home-overview-CzA0m6aX.js → home-overview-CnKi_Tkp.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-D17_ESTT.js → hosted-reconcile-C0aDIUim.js} +1 -1
  160. package/dist/client/assets/{icon-button-BWABQKeL.js → icon-button-A0UAzKos.js} +1 -1
  161. package/dist/client/assets/{index-_HFJcBkc.js → index-B9iPbSrA.js} +1 -1
  162. package/dist/client/assets/{index-CHLNAxVH.js → index-BDMu6bQ3.js} +1 -1
  163. package/dist/client/assets/{index-CEHcj0Bx.js → index-BMXIYEr-.js} +1 -1
  164. package/dist/client/assets/{index-DcLeMIKL.js → index-Bm1kfakF.js} +53 -37
  165. package/dist/client/assets/{index-Dl8q1CcJ.js → index-CImiuf_8.js} +1 -1
  166. package/dist/client/assets/{index-DeZO7qUc.js → index-CJbm-bjr.js} +1 -1
  167. package/dist/client/assets/{index-D2fEC1Pw.js → index-CgEIJt8V.js} +1 -1
  168. package/dist/client/assets/{index-uKgIl52k.js → index-Cs4d-rU4.js} +1 -1
  169. package/dist/client/assets/{index-CYM--kWR.js → index-Cwm5p5sk.js} +1 -1
  170. package/dist/client/assets/{index-R8qCKBJh.js → index-CymE2fVz.js} +1 -1
  171. package/dist/client/assets/{index-DNnhV-B1.js → index-D4jxMGCU.js} +1 -1
  172. package/dist/client/assets/{index-2ipT6yjl.js → index-DeObvrTG.js} +1 -1
  173. package/dist/client/assets/{index-9yMnXFqj.js → index-DigLw4F8.js} +1 -1
  174. package/dist/client/assets/{index-DCKQCPhz.js → index-I8YXcNLQ.js} +1 -1
  175. package/dist/client/assets/{index-Dn_cufw0.js → index-PdC0-xb_.js} +1 -1
  176. package/dist/client/assets/{index-CKBK1RzI.js → index-QSfgjCsF.js} +1 -1
  177. package/dist/client/assets/{index-CyK6b5no.js → index-hXnS3gm2.js} +1 -1
  178. package/dist/client/assets/{index-redirect-OfDFB06k.js → index-redirect-DqxacVKg.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-BduAjgKh.js → infiniteQueryObserver-DBJgsShk.js} +1 -1
  180. package/dist/client/assets/{infra-billing-BarSShxp.js → infra-billing-DWspnPMo.js} +1 -1
  181. package/dist/client/assets/{input-C-ooA3zJ.js → input-Cpkj1oOu.js} +3 -3
  182. package/dist/client/assets/{input-DvN7cWiN.js → input-Ml5iKJtl.js} +1 -1
  183. package/dist/client/assets/{integration-icon-D3jIGVDv.js → integration-icon-BhUObfAr.js} +1 -1
  184. package/dist/client/assets/{item-actions-oyU9qHS3.js → item-actions-SpeTllYG.js} +1 -1
  185. package/dist/client/assets/{jira-icon-kqMgohAx.js → jira-icon-Bq7voeGz.js} +1 -1
  186. package/dist/client/assets/{label-DRW5vmPi.js → label-D53IaeZS.js} +1 -1
  187. package/dist/client/assets/{layout-B9OnzE2R.js → layout-WvgScUGb.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-CeWki_yJ.js → legacy-admin-welcome-dialog-CwPoX24t.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-DOuhXXex.js → legacy-agents-deep-jZOIaudw.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-E-5ipXxQ.js → legacy-main-redirect-BQJ5rRXx.js} +1 -1
  191. package/dist/client/assets/{library-tab-CCTaaB-2.js → library-tab-C3WzWO1U.js} +1 -1
  192. package/dist/client/assets/library-xWw2qc62.js +1 -0
  193. package/dist/client/assets/{login-yVpzfsha.js → login-C7zMUKPM.js} +1 -1
  194. package/dist/client/assets/{markdown-CcVSwBWB.js → markdown-CQMqqgOz.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-BCrbq15X.js → mcp-app-renderer-BfqxDRa0.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-D8u2dT0Q.js → mcp-oauth-B05XNx5F.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-DOo4CxTY.js → mcp-oauth-CSRaHoLv.js} +1 -1
  198. package/dist/client/assets/{members-D1wQ7XXr.js → members-BxAeAlCx.js} +1 -1
  199. package/dist/client/assets/{memory-COdJqfFo.js → memory-Cg_NtjT-.js} +1 -1
  200. package/dist/client/assets/{mock-board-BCstHDu0.js → mock-board-CYcWUp7f.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-B1bc6mvy.js → monaco-editor-qCqkYYEk.js} +1 -1
  202. package/dist/client/assets/{monitoring-BXGBS5qB.js → monitoring-DyDWdk8h.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-CTmhOwcP.js → monitoring-stats-row-DPFWESTC.js} +1 -1
  204. package/dist/client/assets/{multi-select-ChiAd1Ul.js → multi-select-CGtuxiXI.js} +1 -1
  205. package/dist/client/assets/{mustache-BO0v10qs.js → mustache-BAZPoSXi.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-DmKRerop.js → named-rule-step-DILtKyLq.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-D8NvBKsI.js → named-rule-view-QDNMCidz.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-ChqvL2rz.js → new-project-dialog-D__ZumnI.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DsU-by0h.js → new-project-store-f5bwc2gs.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-ai-provider-D-15Ilgy.js → oauth-callback-ai-provider-BlkxqI4_.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-CgInov13.js → oauth-callback-ya17MbDE.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-CqUeKLrF.js → oauth-consent-C3E6FGHS.js} +1 -1
  213. package/dist/client/assets/{onboarding-BEUWk9n3.js → onboarding-DtaTP4Sy.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-iJHcLzqk.js → openai-conversation-BIGlcpdW.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-CeFeajR3.js → optimistic-project-sidebar-views-ClE6sl2t.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-DZ9fGPG8.js → order-monitor-day-R_omMSFk.js} +1 -1
  217. package/dist/client/assets/{organization-choice-Df1TrO72.js → organization-choice-IgtHSfgl.js} +1 -1
  218. package/dist/client/assets/{orgs-DRChrouP.js → orgs-BMnJ-Ls_.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-Dm9jurtw.js → own-accounts-section-CpFPP6tw.js} +1 -1
  220. package/dist/client/assets/{pair-BXwaA-uL.js → pair-CXG2-VJv.js} +1 -1
  221. package/dist/client/assets/{parse-sections-CAshll1C.js → parse-sections-C11X_OB5.js} +2 -2
  222. package/dist/client/assets/plan-CZZdqjy4.js +1 -0
  223. package/dist/client/assets/{plan-ladder-DcvH6Qa7.js → plan-ladder-CXooBnF6.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-g2Mtfon8.js → plan-usage-card-kjpt_e_z.js} +1 -1
  225. package/dist/client/assets/{popover-Bit5k9lh.js → popover-BCGMbo55.js} +1 -1
  226. package/dist/client/assets/{post-calendar-DF13MsRM.js → post-calendar-DgNCVo3o.js} +1 -1
  227. package/dist/client/assets/{post-editor-DqY67J2U.js → post-editor-x_K_37Vg.js} +1 -1
  228. package/dist/client/assets/{preview-content-7avOlGvv.js → preview-content-awbhTKCR.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-Cy-rQfYg.js → preview-dialog-DOw3u2PH.js} +1 -1
  230. package/dist/client/assets/{preview-panel-DdK3dK6a.js → preview-panel-BpuuhbyF.js} +1 -1
  231. package/dist/client/assets/{preview-tab-s86ISCjJ.js → preview-tab-DM5oCQbO.js} +3 -3
  232. package/dist/client/assets/{primitives-BGjcKAjx.js → primitives-DAv3J-jo.js} +1 -1
  233. package/dist/client/assets/{product-picker-dialog-Crik9Yzb.js → product-picker-dialog-DDwjDVDo.js} +1 -1
  234. package/dist/client/assets/{profile-BQnkoi-5.js → profile-ChH9A8z7.js} +1 -1
  235. package/dist/client/assets/{project-app-view-D_MlxwF5.js → project-app-view-pWp3ZiTC.js} +1 -1
  236. package/dist/client/assets/{project-apps-DNFPZnyN.js → project-apps-DCKpFUfg.js} +1 -1
  237. package/dist/client/assets/{project-icon-BXm7ZHiW.js → project-icon-CsOvQIQK.js} +1 -1
  238. package/dist/client/assets/{project-index-hJYvYDOU.js → project-index-BaWNSq-B.js} +1 -1
  239. package/dist/client/assets/project-reports-BFGfWfOY.js +1 -0
  240. package/dist/client/assets/project-tasks-B0qy6YyK.js +1 -0
  241. package/dist/client/assets/{projects-sunkWV6C.js → projects-OuyJtgOF.js} +1 -1
  242. package/dist/client/assets/{projects-empty-state-CFbVTM_P.js → projects-empty-state-shLgi5wv.js} +1 -1
  243. package/dist/client/assets/{prompts--ErbXpCs.js → prompts-UYNIaDow.js} +1 -1
  244. package/dist/client/assets/record-editor-tWo5ViDa.js +1 -0
  245. package/dist/client/assets/{redirect-editor-BUbByAfJ.js → redirect-editor-BKqLWwnk.js} +1 -1
  246. package/dist/client/assets/reports-CRTbYefZ.js +1 -0
  247. package/dist/client/assets/{reports-B1x3Iv5E.js → reports-DaGALH9V.js} +1 -1
  248. package/dist/client/assets/{reports-onboarding-L9t3T5qW.js → reports-onboarding-p4RwpY5O.js} +1 -1
  249. package/dist/client/assets/{reports-tab-BhTw04Ii.js → reports-tab-DHgzfmh-.js} +2 -2
  250. package/dist/client/assets/repositories-D2EXyFhB.js +1 -0
  251. package/dist/client/assets/{repositories-BKCu45V1.js → repositories-n9UiobdG.js} +1 -1
  252. package/dist/client/assets/{repository-binding-tVQHTFdi.js → repository-binding-BmnG5TxR.js} +1 -1
  253. package/dist/client/assets/{repository-picker-BZvUPwbO.js → repository-picker-De0GPaRE.js} +1 -1
  254. package/dist/client/assets/{require-capability-Cayj4MNe.js → require-capability-cZNhHutj.js} +1 -1
  255. package/dist/client/assets/{required-auth-layout-CLsYaEaG.js → required-auth-layout-BMBpLakt.js} +1 -1
  256. package/dist/client/assets/{reset-password-C9XFvDXe.js → reset-password-CCMxEq5y.js} +1 -1
  257. package/dist/client/assets/{resizable-DbVe4z4B.js → resizable-BkhiAkWq.js} +1 -1
  258. package/dist/client/assets/{resolve-tab-icon-CA7uGvvA.js → resolve-tab-icon-lwbzvlmp.js} +1 -1
  259. package/dist/client/assets/{review-settings-CL0reJbi.js → review-settings-DcjQ3GtR.js} +1 -1
  260. package/dist/client/assets/{role-color-lBvChB7A.js → role-color-CfQEBoLM.js} +1 -1
  261. package/dist/client/assets/{roles-CTY63tbD.js → roles-BBqkj6Ec.js} +1 -1
  262. package/dist/client/assets/{route-MgM6k4hK.js → route-BtgxUay9.js} +1 -1
  263. package/dist/client/assets/{route-C1rJYGGp.js → route-C1HkaVBq.js} +1 -1
  264. package/dist/client/assets/route-COQ-KuwC.js +1 -0
  265. package/dist/client/assets/{route-page-header-Dud5tb_e.js → route-page-header-9bvdq0CA.js} +1 -1
  266. package/dist/client/assets/{sandbox-git-api-DVpASqsU.js → sandbox-git-api-CvaJsg00.js} +1 -1
  267. package/dist/client/assets/{sandbox-lifecycle-context-BUqqxPte.js → sandbox-lifecycle-context-o-we4sh6.js} +1 -1
  268. package/dist/client/assets/{save-status-DSC588wx.js → save-status-0_77vPF7.js} +1 -1
  269. package/dist/client/assets/{schema-DCG0xu5i.js → schema-BUUxEy3p.js} +1 -1
  270. package/dist/client/assets/{schema-BCCaY_-F.js → schema-CYjzEKQK.js} +1 -1
  271. package/dist/client/assets/{scroll-area-B7J9Sko9.js → scroll-area-BZSqU8Qg.js} +1 -1
  272. package/dist/client/assets/{search-input-8Z_l1AXO.js → search-input-CI2JAJKY.js} +1 -1
  273. package/dist/client/assets/{search-toggle-CrQNv7iU.js → search-toggle-6GIYvZRS.js} +1 -1
  274. package/dist/client/assets/{secret-picker-Cp6eXzRg.js → secret-picker-k-Y5Do9o.js} +1 -1
  275. package/dist/client/assets/{secrets-k8Kjyg-z.js → secrets-BRBBIxrl.js} +1 -1
  276. package/dist/client/assets/{section-array-field-xbmzZQS0.js → section-array-field-BQH3eI8l.js} +1 -1
  277. package/dist/client/assets/{sections-editor-CmCz5vpd.js → sections-editor-B3aKAu_5.js} +1 -1
  278. package/dist/client/assets/{sections-BTJHX6hU.js → sections-s9nF0BmL.js} +1 -1
  279. package/dist/client/assets/{select-CK3pBBYF.js → select-UUQ-q9oo.js} +1 -1
  280. package/dist/client/assets/{select-model-B9dYRzZE.js → select-model-CpkygQiY.js} +1 -1
  281. package/dist/client/assets/{seo-editor-Y3dTbt6b.js → seo-editor-CQojRSno.js} +1 -1
  282. package/dist/client/assets/{separator-D5OQTyTR.js → separator-fkDDGet3.js} +1 -1
  283. package/dist/client/assets/{session-runtime-CF-cKyl4.js → session-runtime-B0EpXuIX.js} +1 -1
  284. package/dist/client/assets/settings-tab-CcZ_HjR5.js +1 -0
  285. package/dist/client/assets/{sheet-C8nIUUhq.js → sheet-DrryPrKH.js} +1 -1
  286. package/dist/client/assets/{shell-layout-c07HQj2a.js → shell-layout-Dtm12Wiy.js} +1 -1
  287. package/dist/client/assets/{site-draft-actions-Cv9Dugat.js → site-draft-actions-DA0WDizP.js} +1 -1
  288. package/dist/client/assets/{site-draft-view-DMhKVzEk.js → site-draft-view-C0I4KoVa.js} +1 -1
  289. package/dist/client/assets/site-editor-CyQYsqmX.js +1 -0
  290. package/dist/client/assets/{site-editor-toast-C9iSdBYT.js → site-editor-toast-B7mzcNQB.js} +1 -1
  291. package/dist/client/assets/{skills-BLuShcMw.js → skills-Cg9456cq.js} +1 -1
  292. package/dist/client/assets/{slider-Cx6Jf-wu.js → slider-DF5FWaon.js} +1 -1
  293. package/dist/client/assets/{sortable.esm-BB6WYpCo.js → sortable.esm-DRtCp0fn.js} +1 -1
  294. package/dist/client/assets/{sso-Dl6lXEeR.js → sso-Bn1iRDvY.js} +1 -1
  295. package/dist/client/assets/{suggestion-DDDljlal.js → suggestion-BoJJdGmd.js} +1 -1
  296. package/dist/client/assets/{super-agent-icon-CGzTx3C-.js → super-agent-icon-7GRKjx3U.js} +1 -1
  297. package/dist/client/assets/{switch-DgmP8oP8.js → switch-yJM06fNp.js} +1 -1
  298. package/dist/client/assets/{synced-repos-DZt5igQw.js → synced-repos-BPhtaX5V.js} +1 -1
  299. package/dist/client/assets/{tab-icon-glyph-BE9Zofkk.js → tab-icon-glyph-BT3JJJNz.js} +1 -1
  300. package/dist/client/assets/{table-ctHS8J_Q.js → table-BUt8Jhjr.js} +1 -1
  301. package/dist/client/assets/{tabs-DvXeW4HA.js → tabs-Ba6hhIKT.js} +1 -1
  302. package/dist/client/assets/{task-board-C77QB2Pd.js → task-board-DjHmGwky.js} +1 -1
  303. package/dist/client/assets/{task-key-BhehnK9l.js → task-key-ftrd3J5s.js} +1 -1
  304. package/dist/client/assets/{task-route-DRwGh5Pk.js → task-route-BdeGqsQi.js} +1 -1
  305. package/dist/client/assets/{task-status-CgMUYaLv.js → task-status-CovP2RlP.js} +1 -1
  306. package/dist/client/assets/{taskboard-analytics-BUo8rM8z.js → taskboard-analytics-Q6SzQXrL.js} +1 -1
  307. package/dist/client/assets/{tasks-Bwot1UUz.js → tasks-BIyvx17R.js} +1 -1
  308. package/dist/client/assets/tasks-D7SUrwDU.js +1 -0
  309. package/dist/client/assets/{textarea-DNuEc6yF.js → textarea-CicBpiIo.js} +1 -1
  310. package/dist/client/assets/{thread-analytics-CdGu1J8L.js → thread-analytics-CLjMgoaY.js} +1 -1
  311. package/dist/client/assets/{thread-button-B06sbFAx.js → thread-button-CJVwoCA8.js} +1 -1
  312. package/dist/client/assets/{thread-intent-B75osykh.js → thread-intent-DLUS-yM4.js} +1 -1
  313. package/dist/client/assets/{thread-route-BM-FWJgg.js → thread-route-C6dcoLI6.js} +1 -1
  314. package/dist/client/assets/{thread-route-BfZtED5J.js → thread-route-Cj0uYV4E.js} +1 -1
  315. package/dist/client/assets/{thread-sheet-body-Bkp_PSJ4.js → thread-sheet-body-B4TTQtO5.js} +1 -1
  316. package/dist/client/assets/{time-range-picker-DEAF3nib.js → time-range-picker-C-5Xj0CY.js} +1 -1
  317. package/dist/client/assets/{toggle-group-B3xyvBa2.js → toggle-group-Bu2eVQ6i.js} +1 -1
  318. package/dist/client/assets/{tool-set-selector-B_SA8baJ.js → tool-set-selector-DFPQZxq0.js} +1 -1
  319. package/dist/client/assets/{toolbar-icon-button-gF_UQkrK.js → toolbar-icon-button-CoaihmDC.js} +1 -1
  320. package/dist/client/assets/{tooltip-DDRxK_rC.js → tooltip-gcbYZwxC.js} +1 -1
  321. package/dist/client/assets/{tooltipContext-DH7ypxsl.js → tooltipContext-BI8jp9W6.js} +1 -1
  322. package/dist/client/assets/{track-BLAObJYS.js → track-BGZHpowk.js} +1 -1
  323. package/dist/client/assets/{types-DOy2Z0vk.js → types-BKngmNWD.js} +1 -1
  324. package/dist/client/assets/{url-slug-BrbcBfqk.js → url-slug-CG2qSdoJ.js} +1 -1
  325. package/dist/client/assets/{usage-stats-DjHbJqov.js → usage-stats-DkZP-2zt.js} +1 -1
  326. package/dist/client/assets/{use-ai-providers-CdKKB0Ai.js → use-ai-providers-BUfnZicu.js} +1 -1
  327. package/dist/client/assets/{use-api-keys-CVUJYBJ0.js → use-api-keys-426flCmW.js} +1 -1
  328. package/dist/client/assets/{use-apply-named-rule-BjjahUUC.js → use-apply-named-rule--HLtI2IB.js} +1 -1
  329. package/dist/client/assets/use-ask-in-chat-CiVsfxtO.js +1 -0
  330. package/dist/client/assets/{use-automations-D27mC6cq.js → use-automations-C74OL6eb.js} +1 -1
  331. package/dist/client/assets/{use-autosave-L2Cuikde.js → use-autosave-CMUdyxJ4.js} +1 -1
  332. package/dist/client/assets/use-blocks-v8-project-BjtFyGqs.js +1 -0
  333. package/dist/client/assets/use-blog-view-C8xBHbun.js +1 -0
  334. package/dist/client/assets/{use-chat-layout-state-VdaN-JCc.js → use-chat-layout-state-DhGUOMf7.js} +1 -1
  335. package/dist/client/assets/{use-cms-publish-actions-Jsu56nL6.js → use-cms-publish-actions-DdLu6VIE.js} +1 -1
  336. package/dist/client/assets/{use-connect-companion-CSES1VL7.js → use-connect-companion-B4AtsSIo.js} +1 -1
  337. package/dist/client/assets/{use-connection-EMSkOWAn.js → use-connection-C16q1hbs.js} +1 -1
  338. package/dist/client/assets/{use-content-sync-DOxCjogj.js → use-content-sync-CMZxOD36.js} +1 -1
  339. package/dist/client/assets/{use-copy-GTs1mQSA.js → use-copy-thUFz6-q.js} +1 -1
  340. package/dist/client/assets/{use-current-view-B_1DObkk.js → use-current-view-B8GTnEcc.js} +1 -1
  341. package/dist/client/assets/{use-date-fns-locale-DpB0FU7U.js → use-date-fns-locale-BjihwHBG.js} +1 -1
  342. package/dist/client/assets/{use-debounced-autosave-DCMLHEos.js → use-debounced-autosave-DjWPUIqZ.js} +1 -1
  343. package/dist/client/assets/{use-debounced-value-Ewb3RQnO.js → use-debounced-value-Ct5qlSK6.js} +1 -1
  344. package/dist/client/assets/{use-deco-credits-DHxcKcZZ.js → use-deco-credits-CITBTX5W.js} +1 -1
  345. package/dist/client/assets/{use-decopilot-events-eXc6A_1m.js → use-decopilot-events-B21Nf-wv.js} +1 -1
  346. package/dist/client/assets/{use-delete-block-MJCP6O8n.js → use-delete-block-G59MfiPh.js} +1 -1
  347. package/dist/client/assets/{use-delete-connection-DSwwPFUV.js → use-delete-connection-BXABDK3t.js} +1 -1
  348. package/dist/client/assets/{use-deployment-admin-C1jOQ9iB.js → use-deployment-admin-CDJQzcvO.js} +1 -1
  349. package/dist/client/assets/{use-entitlements-DyRbU6bB.js → use-entitlements-BTRsFtoM.js} +1 -1
  350. package/dist/client/assets/{use-fast-preview-draft-url-DWEd5zOQ.js → use-fast-preview-draft-url-CLjoICho.js} +1 -1
  351. package/dist/client/assets/{use-file-configs-BBxvN3au.js → use-file-configs-BEgiTgol.js} +1 -1
  352. package/dist/client/assets/{use-id-selection-ZzntT4yR.js → use-id-selection-pbpvy7_O.js} +1 -1
  353. package/dist/client/assets/{use-in-settings-Dpd8gE8-.js → use-in-settings-nBmDr90L.js} +1 -1
  354. package/dist/client/assets/{use-inbox-feed-DEyliaD1.js → use-inbox-feed-BIxNjpZM.js} +1 -1
  355. package/dist/client/assets/{use-infinite-scroll-r_LBW3TM.js → use-infinite-scroll--ksdfdkO.js} +1 -1
  356. package/dist/client/assets/{use-join-requests-DadUOMnT.js → use-join-requests-CWuAJdLz.js} +1 -1
  357. package/dist/client/assets/{use-main-panel-tabs-B3njqDHg.js → use-main-panel-tabs-BKwmMvsf.js} +1 -1
  358. package/dist/client/assets/{use-mcp-auth-status-BFz7R6cW.js → use-mcp-auth-status-DisQ75Y2.js} +1 -1
  359. package/dist/client/assets/{use-mcp-client-a0JH7jJm.js → use-mcp-client-BRvedH7Y.js} +1 -1
  360. package/dist/client/assets/{use-mcp-prompts-DfF9pE7P.js → use-mcp-prompts-DR7oy3B2.js} +1 -1
  361. package/dist/client/assets/{use-mcp-tools-1TxH2J-w.js → use-mcp-tools-DRmOHWPJ.js} +1 -1
  362. package/dist/client/assets/{use-mobile-CP4UQFCv.js → use-mobile-pXMsiqcl.js} +1 -1
  363. package/dist/client/assets/{use-move-blocks-CC0lvbYD.js → use-move-blocks-D3Ec5QNN.js} +1 -1
  364. package/dist/client/assets/{use-navigate-to-agent-D7laGazQ.js → use-navigate-to-agent-DBjH_n7x.js} +1 -1
  365. package/dist/client/assets/{use-never-published-B4X0z1vE.js → use-never-published-COSddoQh.js} +1 -1
  366. package/dist/client/assets/{use-org-fs-nl0bHtQ_.js → use-org-fs-oHVbnEW1.js} +1 -1
  367. package/dist/client/assets/{use-org-notice-Bw7o_UiG.js → use-org-notice-D-samRAE.js} +1 -1
  368. package/dist/client/assets/{use-org-repo-syncs-BE5HhBpY.js → use-org-repo-syncs-ClN29sI7.js} +1 -1
  369. package/dist/client/assets/{use-org-sso-C-zBsXpK.js → use-org-sso-CjTvJs1C.js} +1 -1
  370. package/dist/client/assets/{use-organization-settings-B3R7qjx0.js → use-organization-settings-Cubqq6kD.js} +1 -1
  371. package/dist/client/assets/{use-panel-navigate-DGj76mtN.js → use-panel-navigate-W20lHVA4.js} +1 -1
  372. package/dist/client/assets/{use-project-native-view-presence-DFKE7eT4.js → use-project-native-view-presence-hAPOMUof.js} +1 -1
  373. package/dist/client/assets/{use-project-scope-dGVX3wVy.js → use-project-scope-BN_bspzD.js} +1 -1
  374. package/dist/client/assets/{use-recent-apps-Agn6vAAc.js → use-recent-apps-DjB0LrH3.js} +1 -1
  375. package/dist/client/assets/{use-reports-diagnostic-DpkdRkv7.js → use-reports-diagnostic-DCVHCEGO.js} +1 -1
  376. package/dist/client/assets/{use-sandbox-events-BUDNvnzZ.js → use-sandbox-events-Fh4ab2J1.js} +1 -1
  377. package/dist/client/assets/{use-secrets-DJezdT4P.js → use-secrets-C96B2z29.js} +1 -1
  378. package/dist/client/assets/{use-section-preview-base-5GNtuayr.js → use-section-preview-base-BkoRzP8R.js} +1 -1
  379. package/dist/client/assets/{use-sidebar-collapsed-k6PQDFi7.js → use-sidebar-collapsed-CtO1E2x2.js} +1 -1
  380. package/dist/client/assets/{use-tags-CKeOkhru.js → use-tags-ClTM1Evw.js} +1 -1
  381. package/dist/client/assets/{use-task-board-analytics-Dkz7d1vy.js → use-task-board-analytics-MV1dC8F0.js} +1 -1
  382. package/dist/client/assets/{use-task-board-item-prs-CbnsRMJi.js → use-task-board-item-prs-BpzSYDBi.js} +1 -1
  383. package/dist/client/assets/{use-task-board-items-Dpf2HIPt.js → use-task-board-items-DPgZ__oW.js} +1 -1
  384. package/dist/client/assets/{use-task-board-prompts-mLJ4XHzf.js → use-task-board-prompts-CVIyeU-9.js} +1 -1
  385. package/dist/client/assets/{use-task-metadata-BKunYeTf.js → use-task-metadata-BJWRQyNZ.js} +1 -1
  386. package/dist/client/assets/{use-thread-outputs-dfOpFOiY.js → use-thread-outputs-DhPZgS9-.js} +1 -1
  387. package/dist/client/assets/{use-view-draft-kind-BWu43EEo.js → use-view-draft-kind-Bp1qVtwW.js} +1 -1
  388. package/dist/client/assets/{use-voice-input-BfjNCKJB.js → use-voice-input-BpwMnzE1.js} +1 -1
  389. package/dist/client/assets/useInfiniteQuery-DHgrT3Au.js +1 -0
  390. package/dist/client/assets/{useQueries-BkTkN0EM.js → useQueries-YIrWWF7m.js} +1 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-BwwCJ1MU.js +1 -0
  392. package/dist/client/assets/{users-_I_0mQ9A.js → users-C0Fg7osF.js} +1 -1
  393. package/dist/client/assets/{utils-NyXKDu0b.js → utils-BdqUM1fA.js} +1 -1
  394. package/dist/client/assets/{variant-calendar-DyAhwwYa.js → variant-calendar-Crwy1Gij.js} +1 -1
  395. package/dist/client/assets/{variant-matcher-override-SM_Z3Wbe.js → variant-matcher-override-CiDkHVMl.js} +1 -1
  396. package/dist/client/assets/{view-header-DvVSSkn1.js → view-header-Br4cuG1F.js} +1 -1
  397. package/dist/client/assets/{virtual-mcp-g7B5MyWL.js → virtual-mcp-BOnfjRXy.js} +1 -1
  398. package/dist/client/assets/{watch-sse-pool-eyaMeGEd.js → watch-sse-pool-hh2syLPB.js} +1 -1
  399. package/dist/client/index.html +1 -1
  400. package/dist/server/server.js +671 -671
  401. package/package.json +1 -1
  402. package/dist/client/assets/agent-app-Btk23zWi.js +0 -1
  403. package/dist/client/assets/agent-deck-DtK8_qvS.js +0 -1
  404. package/dist/client/assets/agent-experiments-CjfV62sr.js +0 -1
  405. package/dist/client/assets/agent-file-BoRmUiia.js +0 -1
  406. package/dist/client/assets/agent-library-CFVngpAA.js +0 -1
  407. package/dist/client/assets/agent-library-file-CNg90yqZ.js +0 -1
  408. package/dist/client/assets/agent-overview-aepVucMm.js +0 -1
  409. package/dist/client/assets/agent-settings-PysEIWkV.js +0 -1
  410. package/dist/client/assets/agent-site-editor-code-B9_eUG74.js +0 -2
  411. package/dist/client/assets/agent-site-editor-content-BDPf3dby.js +0 -1
  412. package/dist/client/assets/agent-site-editor-preview-BBKtb5Ru.js +0 -1
  413. package/dist/client/assets/agent-view-CaihoBtj.js +0 -1
  414. package/dist/client/assets/api-keys-9rV6SK_g.js +0 -1
  415. package/dist/client/assets/chat-context-COXlihFB.js +0 -44
  416. package/dist/client/assets/library-D9p6ynNe.js +0 -1
  417. package/dist/client/assets/plan-Bf-uH0ep.js +0 -1
  418. package/dist/client/assets/project-reports-CJj9IS8D.js +0 -1
  419. package/dist/client/assets/project-tasks-BfJwyDt2.js +0 -1
  420. package/dist/client/assets/record-editor-ChW0i3Lu.js +0 -1
  421. package/dist/client/assets/reports-BlRwjCBG.js +0 -1
  422. package/dist/client/assets/repositories-AUdYKvjS.js +0 -1
  423. package/dist/client/assets/route-CV7iUIWG.js +0 -1
  424. package/dist/client/assets/settings-tab-CGEjXFQE.js +0 -1
  425. package/dist/client/assets/site-editor-D4eGf-cC.js +0 -1
  426. package/dist/client/assets/tasks-9tB-EmY6.js +0 -1
  427. package/dist/client/assets/use-ask-in-chat-Ckr_RkEG.js +0 -1
  428. package/dist/client/assets/use-blocks-v8-project-BFFg2tiG.js +0 -1
  429. package/dist/client/assets/use-blog-view-CBaNrvAc.js +0 -1
  430. package/dist/client/assets/useInfiniteQuery-cEZFXf06.js +0 -1
  431. package/dist/client/assets/useSuspenseInfiniteQuery-BKfGk8sC.js +0 -1
@@ -1 +1 @@
1
- import{c as U,r as I,a6 as Ve,eL as Ue,b as ee,m as O,j as r,a7 as Qe,ev as Ge,B as Ne,t as se,I as Ye,h as We,aY as Ke}from"./index-DcLeMIKL.js";import{a as Pe}from"./Image01-DDNpzV54.js";import{s as He}from"./Trash01-ytRgJXDs.js";import{i as Re}from"./Upload01-BOEdYpIY.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-B4X0z1vE.js";import{L as Ce}from"./label-DRW5vmPi.js";import{T as Se,a as ke,c as Ee}from"./tooltip-DDRxK_rC.js";import{b as Ie}from"./repository-binding-tVQHTFdi.js";import{u as tt}from"./chat-context-COXlihFB.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-C9iSdBYT.js";import{c as ot}from"./use-organization-settings-B3R7qjx0.js";import{a as at}from"./SwitchHorizontal01-CTbodgu_.js";import{a as lt,b as ct,P as dt}from"./popover-Bit5k9lh.js";import{S as ft}from"./switch-DgmP8oP8.js";import{T as ut,a as mt}from"./toggle-group-B3xyvBa2.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-BBxvN3au.js";import{u as xt}from"./asset-utils-DkEGuNqu.js";import{i as ht}from"./AlertCircle-B3Cju_A1.js";const Oe=I.createContext(null);function cs(t){const e=U.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=U.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),a=Ue(n);if(typeof a=="string")return a;const o=s.map(i=>Ue(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function jt(t){const e=U.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=O("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=U.c(6),{required:s,invalid:n,children:a}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=U.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=U.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=U.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function It(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Re,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function Tt(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const _t=["low","medium","high","original"];function Le(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function qe(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Ut(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Ut(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Pt(t){if(!t)return;const e=qe(t,"quality");return Le(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?qe(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=U.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Pt(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,Le(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=_t.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Lt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=U.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const T=await x.mutateAsync({configId:k,file:$[0]}),_=Lt(T.publicUrl);if(!_){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(_),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=U.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?Tt(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[T,_]=I.useState(c),[Be,Te]=I.useState(c);Be!==c&&(Te(c),_(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){_(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(Te(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==T?(re=function(){T.trim()&&!$e(T)&&_(c)},e[15]=c,e[16]=T,e[17]=re):re=e[17];const me=re,R=kt(f),_e=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?_e.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=qt(ae),ye=!i&&"hidden";let L;e[26]!==ye?(L=O("min-w-0",ye),e[26]=ye,e[27]=L):L=e[27];const be=f?.virtualMcpId;let q;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(q=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=q):q=e[32];let z;e[33]!==L||e[34]!==q?(z=r.jsx("div",{className:L,children:q}),e[33]=L,e[34]=q,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Pe,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:b}),M&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Pe,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=P=>ue(P.target.value),e[62]=ue,e[63]=G):G=e[63];let Y;e[64]!==c?(Y=P=>{P.key==="Escape"&&_(c)},e[64]=c,e[65]=Y):Y=e[65];let W;e[66]!==l?(W=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=W):W=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==Y||e[72]!==W||e[73]!==T?(K=r.jsx(Ye,{id:o,type:"url",value:T,onChange:G,onBlur:me,onKeyDown:Y,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=Y,e[72]=W,e[73]=T,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:_e,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:P=>{ve(P.target.files),P.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:P=>k(P),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=U.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(We,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{It as C,St as F,us as I,jt as M,cs as N,_t as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,Tt as g,kt as h,fs as i,Et as j,Mt as k,Pt as l,qt as m,$t as s,vt as u};
1
+ import{c as U,r as I,a6 as Ve,eL as Ue,b as ee,m as O,j as r,a7 as Qe,ev as Ge,B as Ne,t as se,I as Ye,h as We,aY as Ke}from"./index-Bm1kfakF.js";import{a as Pe}from"./Image01-DPsmXJM9.js";import{s as He}from"./Trash01-9RQC1f5G.js";import{i as Re}from"./Upload01-3Gw-mR9u.js";import{r as Je,L as Xe,s as Ze,F as et,i as $e}from"./use-never-published-COSddoQh.js";import{L as Ce}from"./label-D53IaeZS.js";import{T as Se,a as ke,c as Ee}from"./tooltip-gcbYZwxC.js";import{b as Ie}from"./repository-binding-BmnG5TxR.js";import{u as tt}from"./chat-context-B0mIAvmD.js";import{u as Fe,a6 as st,h as it,b as rt,a7 as nt}from"./site-editor-toast-B7mzcNQB.js";import{c as ot}from"./use-organization-settings-Cubqq6kD.js";import{a as at}from"./SwitchHorizontal01-C2pVU_4J.js";import{a as lt,b as ct,P as dt}from"./popover-BCGMbo55.js";import{S as ft}from"./switch-yJM06fNp.js";import{T as ut,a as mt}from"./toggle-group-Bu2eVQ6i.js";import{m as pt}from"./match-site-slug-config-B47_xZCi.js";import{u as gt}from"./use-file-configs-BEgiTgol.js";import{u as xt}from"./asset-utils-lEJDqLJA.js";import{i as ht}from"./AlertCircle-CShy6yDX.js";const Oe=I.createContext(null);function cs(t){const e=U.c(3),{children:s}=t,n=tt(),a=Fe(n?.virtualMcpId,n?.currentBranch);let o;return e[0]!==a.kind||e[1]!==s?(o=I.createElement(Oe.Provider,{value:a.kind},s),e[0]=a.kind,e[1]=s,e[2]=o):o=e[2],o}function vt(){const t=U.c(4),e=I.useContext(Oe),{org:s}=Ve(),n=ot("new_blocks_editor"),a=!!s.id;let o;return t[0]!==e||t[1]!==n||t[2]!==a?(o=st({backend:e,hasOrg:a,orgFlag:n}),t[0]=e,t[1]=n,t[2]=a,t[3]=o):o=t[3],o}function yt(){return vt()??!1}function bt(t){if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const e=t;if(Array.isArray(e.variants)){const s=e.variants,n=s.find(i=>i.rule?.__resolveType?.includes("always")),a=Ue(n);if(typeof a=="string")return a;const o=s.map(i=>Ue(i)).find(i=>typeof i=="string");if(typeof o=="string")return o}return typeof e.src=="string"?e.src:typeof e.url=="string"?e.url:typeof e.value=="string"?e.value:""}function jt(t){const e=U.c(29),{className:s}=t,n=ee();if(yt()){let c;e[0]!==n?(c=n("sectionsEditor.field.missingRequired"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==s?(m=O("shrink-0 cursor-help text-destructive",s),e[2]=s,e[3]=m):m=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Qe,{className:"size-3.5"}),e[4]=x):x=e[4];let p;e[5]!==c||e[6]!==m?(p=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":c,className:m,children:x})}),e[5]=c,e[6]=m,e[7]=p):p=e[7];let h;e[8]!==n?(h=n("sectionsEditor.field.missingRequiredTooltip"),e[8]=n,e[9]=h):h=e[9];let g;e[10]!==h?(g=r.jsx(ke,{className:"max-w-56",children:h}),e[10]=h,e[11]=g):g=e[11];let w;return e[12]!==p||e[13]!==g?(w=r.jsxs(Ee,{children:[p,g]}),e[12]=p,e[13]=g,e[14]=w):w=e[14],w}let o;e[15]!==n?(o=n("sectionsEditor.field.missingRequired"),e[15]=n,e[16]=o):o=e[16];let i;e[17]!==s?(i=O("size-2 shrink-0 cursor-help rounded-full bg-destructive",s),e[17]=s,e[18]=i):i=e[18];let f;e[19]!==o||e[20]!==i?(f=r.jsx(Se,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":o,className:i})}),e[19]=o,e[20]=i,e[21]=f):f=e[21];let d;e[22]!==n?(d=n("sectionsEditor.field.missingRequiredTooltip"),e[22]=n,e[23]=d):d=e[23];let l;e[24]!==d?(l=r.jsx(ke,{className:"max-w-56",children:d}),e[24]=d,e[25]=l):l=e[25];let u;return e[26]!==f||e[27]!==l?(u=r.jsxs(Ee,{children:[f,l]}),e[26]=f,e[27]=l,e[28]=u):u=e[28],u}const Me=I.createContext({required:!1,invalid:!1});function wt(){return I.useContext(Me)}function ds(t){const e=U.c(6),{required:s,invalid:n,children:a}=t;let o;e[0]!==n||e[1]!==s?(o={required:s,invalid:n},e[0]=n,e[1]=s,e[2]=o):o=e[2];let i;return e[3]!==a||e[4]!==o?(i=r.jsx(Me.Provider,{value:o,children:a}),e[3]=a,e[4]=o,e[5]=i):i=e[5],i}function fs(t){return t==null?!0:typeof t=="string"?t.trim()==="":Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}const Nt="cursor-help underline decoration-dotted decoration-muted-foreground/50 underline-offset-4";function De(t){return Ie(t)?.metadata?.fieldDescriptionTooltips??!1}function Ct(t){const e=U.c(9),{description:s,virtualMcpId:n,children:a}=t,o=De(n);if(!s||!o)return a;let i;e[0]!==a?(i=I.cloneElement(a,{className:O(a.props.className,Nt)}),e[0]=a,e[1]=i):i=e[1];let f;e[2]!==i?(f=r.jsx(Se,{asChild:!0,children:i}),e[2]=i,e[3]=f):f=e[3];let d;e[4]!==s?(d=r.jsx(ke,{className:"max-w-64",children:s}),e[4]=s,e[5]=d):d=e[5];let l;return e[6]!==f||e[7]!==d?(l=r.jsxs(Ee,{delayDuration:300,children:[f,d]}),e[6]=f,e[7]=d,e[8]=l):l=e[8],l}function St(t){const e=U.c(17),{htmlFor:s,label:n,description:a,labelClassName:o,virtualMcpId:i}=t,f=De(i),{required:d,invalid:l}=wt();let u;e[0]!==l||e[1]!==d?(u=d&&l&&r.jsx(jt,{className:"mt-0.5 self-start"}),e[0]=l,e[1]=d,e[2]=u):u=e[2];let c;e[3]!==s||e[4]!==n||e[5]!==o||e[6]!==u?(c=r.jsxs(Ce,{htmlFor:s,className:o,children:[n,u]}),e[3]=s,e[4]=n,e[5]=o,e[6]=u,e[7]=c):c=e[7];const m=c;if(!f){let p;e[8]!==a?(p=a&&r.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:a}),e[8]=a,e[9]=p):p=e[9];let h;return e[10]!==m||e[11]!==p?(h=r.jsxs("div",{className:"space-y-0.5",children:[m,p]}),e[10]=m,e[11]=p,e[12]=h):h=e[12],h}let x;return e[13]!==a||e[14]!==m||e[15]!==i?(x=r.jsx(Ct,{description:a,virtualMcpId:i,children:m}),e[13]=a,e[14]=m,e[15]=i,e[16]=x):x=e[16],x}function kt(t){const e=ee(),s=Ie(t?.virtualMcpId),n=Fe(t?.virtualMcpId,t?.branch),{connection:a}=rt(t?.virtualMcpId),o=nt(n,a);if(s?.metadata?.assetStorageConfigId||!o||!t||n.kind!=="protocol"||!n.describe.assets)return null;const{maxBytes:i}=n.describe.assets,f=d=>`${o}/assets/${encodeURIComponent(d)}`;return async d=>{if(d.size>i)throw new Error(e("sectionsEditor.fileField.tooLarge",{max:`${Math.floor(i/(1024*1024))} MB`}));if(n.describe.readOnly)throw new Error(e("decoServe.upload.readOnly",{name:d.name}));let l;try{l=await fetch(f(d.name),{method:"PUT",signal:Ge(),headers:{"content-type":d.type||"application/octet-stream"},body:d})}catch{throw new Error(e("decoServe.upload.serverGone",{name:d.name}))}const u=await l.json().catch(()=>null);if(!l.ok||typeof u?.path!="string"){const c=u?.error?.message;throw new Error(e("decoServe.upload.failed",{name:d.name,detail:typeof c=="string"?c:`HTTP ${l.status}`}))}return u.path}}function Et(t,e){const s=U.c(6),n=Fe(t?.virtualMcpId,t?.branch);let a;s[0]!==n||s[1]!==t?.previewUrl?(a=n.kind==="protocol"&&n.source==="sandbox"?t?.previewUrl??null:it(n),s[0]=n,s[1]=t?.previewUrl,s[2]=a):a=s[2];const o=a;let i;return s[3]!==e||s[4]!==o?(i=o&&e.startsWith("/")&&!e.startsWith("//")?new URL(e,o).href:e,s[3]=e,s[4]=o,s[5]=i):i=s[5],i}function It(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",children:r.jsxs("span",{className:"flex items-center gap-1.5 rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:[r.jsx(Re,{size:14}),"Click to replace"]})}),t[0]=e):e=t[0],e}function Ft(t){try{const e=new URL(t).pathname;return decodeURIComponent(e.split("/").pop()??t)}catch{return t.split("/").pop()??t}}function Tt(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"":t.slice(e+1).toLowerCase()}const _t=["low","medium","high","original"];function Le(t){return t==="low"||t==="medium"||t==="high"||t==="original"}function qe(t,e){try{return new URL(t).searchParams.get(e)}catch{const s=Ut(t);for(const n of s){const a=n.indexOf("=");if((a>=0?n.slice(0,a):n)===e)return a>=0?n.slice(a+1):""}return null}}function ze(t,e,s){const n=t.indexOf("#"),a=n>=0?t.slice(n):"",o=n>=0?t.slice(0,n):t,i=o.indexOf("?"),f=i>=0?o.slice(0,i):o,d=(i>=0?o.slice(i+1).split("&"):[]).filter(Boolean).filter(l=>{const u=l.indexOf("=");return(u>=0?l.slice(0,u):l)!==e});return s!==void 0&&d.push(`${e}=${s}`),`${f}${d.length?`?${d.join("&")}`:""}${a}`}function Ut(t){const e=t.indexOf("#"),s=e>=0?t.slice(0,e):t,n=s.indexOf("?");return n<0?[]:s.slice(n+1).split("&").filter(Boolean)}function Pt(t){if(!t)return;const e=qe(t,"quality");return Le(e)?e:void 0}function $t(t,e){return ze(t,"quality",e)}function Rt(t){return t?qe(t,"muted")!=="false":!0}function Ot(t,e){return ze(t,"muted",e?void 0:"false")}function Mt(t){const e=U.c(36),{value:s,onChange:n,showMuted:a}=t,o=a===void 0?!1:a,i=ee(),f=I.useId();let d;e[0]!==s?(d=Pt(s),e[0]=s,e[1]=d):d=e[1];const l=d;let u;e[2]!==s?(u=Rt(s),e[2]=s,e[3]=u):u=e[3];const c=u;let m;e[4]!==i?(m=i("sectionsEditor.mediaTransformControls.mediaOptionsLabel"),e[4]=i,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(at,{size:14}),e[6]=x):x=e[6];let p;e[7]!==m?(p=r.jsx(lt,{asChild:!0,children:r.jsx(Ne,{type:"button",variant:"outline",size:"sm",className:"h-9 shrink-0","aria-label":m,children:x})}),e[7]=m,e[8]=p):p=e[8];let h;e[9]!==i?(h=i("sectionsEditor.mediaTransformControls.qualityLabel"),e[9]=i,e[10]=h):h=e[10];let g;e[11]!==h?(g=r.jsx(Ce,{className:"text-xs text-muted-foreground",children:h}),e[11]=h,e[12]=g):g=e[12];const w=l??"";let N;e[13]!==n||e[14]!==s?(N=b=>n($t(s,Le(b)?b:void 0)),e[13]=n,e[14]=s,e[15]=N):N=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=_t.map(Dt),e[16]=y):y=e[16];let F;e[17]!==N||e[18]!==w?(F=r.jsx(ut,{type:"single",variant:"outline",size:"sm",value:w,onValueChange:N,children:y}),e[17]=N,e[18]=w,e[19]=F):F=e[19];let v;e[20]!==F||e[21]!==g?(v=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,F]}),e[20]=F,e[21]=g,e[22]=v):v=e[22];let C;e[23]!==c||e[24]!==f||e[25]!==n||e[26]!==o||e[27]!==i||e[28]!==s?(C=o&&r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(Ce,{htmlFor:f,className:"text-xs text-muted-foreground",children:i("sectionsEditor.mediaTransformControls.mutedLabel")}),r.jsx(ft,{id:f,checked:c,onCheckedChange:b=>n(Ot(s,b))})]}),e[23]=c,e[24]=f,e[25]=n,e[26]=o,e[27]=i,e[28]=s,e[29]=C):C=e[29];let S;e[30]!==v||e[31]!==C?(S=r.jsx(ct,{align:"end",className:"w-auto min-w-52 p-3",children:r.jsxs("div",{className:"flex flex-col gap-3",children:[v,C]})}),e[30]=v,e[31]=C,e[32]=S):S=e[32];let j;return e[33]!==S||e[34]!==p?(j=r.jsxs(dt,{children:[p,S]}),e[33]=S,e[34]=p,e[35]=j):j=e[35],j}function Dt(t){return r.jsx(mt,{value:t,className:"h-8 px-3 text-xs capitalize",children:t},t)}function Lt(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e.href:""}catch{return""}}const Ae=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml","image/avif"]);function qt(t){const e=U.c(26),{siteSlug:s,virtualMcpId:n,onUploaded:a,onNeedsPicker:o,serveUpload:i}=t,f=ee(),l=Ie(n)?.metadata?.assetStorageConfigId,u=!i;let c;e[0]!==u?(c={enabled:u},e[0]=u,e[1]=c):c=e[1];const m=gt(c),x=xt(),[p,h]=I.useState(!1);let g;e[2]!==m.data?.configs?(g=m.data?.configs??[],e[2]=m.data?.configs,e[3]=g):g=e[3];let w;e[4]!==l||e[5]!==s||e[6]!==g?(w=pt(g,s,l),e[4]=l,e[5]=s,e[6]=g,e[7]=w):w=e[7];const y=w?.id??null;let F;e[8]!==m.data?.configs||e[9]!==y||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==f||e[14]!==x?(F=async function(M){if(!M)return;const $=Array.from(M).filter(zt);if($.length===0){se.error(f("sectionsEditor.imageField.onlyImageFilesAccepted"));return}if(i){try{a(await i($[0]))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}return}const k=Je(m.data?.configs??[],y,typeof window<"u"?window.localStorage.getItem(Xe):null);if(!k){o();return}try{const T=await x.mutateAsync({configId:k,file:$[0]}),_=Lt(T.publicUrl);if(!_){se.error(f("sectionsEditor.imageField.uploadFailed"));return}a(_),$.length>1&&se.info(f("sectionsEditor.imageField.uploadedWithExtraFilesIgnored",{fileName:$[0].name}))}catch(T){const _=T;se.error(_ instanceof Error?_.message:f("sectionsEditor.imageField.uploadFailed"))}},e[8]=m.data?.configs,e[9]=y,e[10]=o,e[11]=a,e[12]=i,e[13]=f,e[14]=x,e[15]=F):F=e[15];const v=F;let C,S;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=E=>{E.preventDefault(),E.dataTransfer.types.includes("Files")&&h(!0)},S=E=>{E.currentTarget===E.target&&h(!1)},e[16]=C,e[17]=S):(C=e[16],S=e[17]);let j;e[18]!==v?(j={onDragOver:C,onDragLeave:S,onDrop:E=>{E.preventDefault(),E.stopPropagation(),h(!1),v(E.dataTransfer.files)}},e[18]=v,e[19]=j):j=e[19];let b;return e[20]!==v||e[21]!==p||e[22]!==y||e[23]!==j||e[24]!==x.isPending?(b={isDragging:p,isPending:x.isPending,lockedConfigId:y,handleFiles:v,dropProps:j},e[20]=v,e[21]=p,e[22]=y,e[23]=j,e[24]=x.isPending,e[25]=b):b=e[25],b}function zt(t){return Ae.has(t.type||"")}const At=3;function us(t){const e=U.c(98),{schema:s,value:n,onChange:a,path:o,label:i,sandbox:f,compact:d}=t,l=ee();let u;e[0]!==n?(u=bt(n),e[0]=n,e[1]=u):u=e[1];const c=u,[m,x]=I.useState(!1),[p,h]=I.useState(!1),[g,w]=I.useState(!1),N=Et(f,c),[y,F]=I.useState(0);let v;e[2]!==y||e[3]!==N?(v=y>0?`${N}${N.includes("?")?"&":"?"}retry=${y}`:N,e[2]=y,e[3]=N,e[4]=v):v=e[4];let C;e[5]!==v?(C=Ze(v),e[5]=v,e[6]=C):C=e[6];const S=C,j=!!c&&!S;let b,E;e[7]!==c?(b=c?Ft(c):"",E=b?Tt(b):"",e[7]=c,e[8]=b,e[9]=E):(b=e[8],E=e[9]);const M=E;let $;e[10]!==a?($=function(fe){h(!1),w(!1),F(0),a(fe)},e[10]=a,e[11]=$):$=e[11];const k=$,[T,_]=I.useState(c),[Be,Te]=I.useState(c);Be!==c&&(Te(c),_(c));let ie;e[12]!==k||e[13]!==c?(ie=function(fe){_(fe);const te=fe.trim();te&&!$e(te)||te!==c&&(Te(te),k(te))},e[12]=k,e[13]=c,e[14]=ie):ie=e[14];const ue=ie;let re;e[15]!==c||e[16]!==T?(re=function(){T.trim()&&!$e(T)&&_(c)},e[15]=c,e[16]=T,e[17]=re):re=e[17];const me=re,R=kt(f),_e=I.useRef(null);let ne;e[18]!==R?(ne=()=>R?_e.current?.click():x(!0),e[18]=R,e[19]=ne):ne=e[19];const D=ne,pe=f?.siteSlug,ge=f?.virtualMcpId;let oe;e[20]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x(!0),e[20]=oe):oe=e[20];let ae;e[21]!==R||e[22]!==k||e[23]!==ge||e[24]!==pe?(ae={siteSlug:pe,virtualMcpId:ge,onUploaded:k,onNeedsPicker:oe,serveUpload:R},e[21]=R,e[22]=k,e[23]=ge,e[24]=pe,e[25]=ae):ae=e[25];const{isDragging:le,isPending:ce,lockedConfigId:xe,dropProps:he,handleFiles:ve}=qt(ae),ye=!i&&"hidden";let L;e[26]!==ye?(L=O("min-w-0",ye),e[26]=ye,e[27]=L):L=e[27];const be=f?.virtualMcpId;let q;e[28]!==i||e[29]!==o||e[30]!==s.description||e[31]!==be?(q=r.jsx(St,{htmlFor:o,label:i,description:s.description,labelClassName:"text-muted-foreground",virtualMcpId:be}),e[28]=i,e[29]=o,e[30]=s.description,e[31]=be,e[32]=q):q=e[32];let z;e[33]!==L||e[34]!==q?(z=r.jsx("div",{className:L,children:q}),e[33]=L,e[34]=q,e[35]=z):z=e[35];const je=le&&"border-primary ring-2 ring-primary/30",we=ce&&"pointer-events-none opacity-60";let A;e[36]!==je||e[37]!==we?(A=O("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",je,we),e[36]=je,e[37]=we,e[38]=A):A=e[38];let B;e[39]!==D||e[40]!==d||e[41]!==M||e[42]!==b||e[43]!==g||e[44]!==p||e[45]!==ce||e[46]!==i||e[47]!==y||e[48]!==N||e[49]!==S||e[50]!==c||e[51]!==l||e[52]!==j?(B=c?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:D,"aria-label":l("sectionsEditor.imageField.replaceImage"),className:O("relative block w-full cursor-pointer bg-[image:linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%),linear-gradient(45deg,rgba(0,0,0,0.04)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.04)_75%)] bg-[position:0_0,8px_8px] [background-size:16px_16px]",d?"h-28":"h-40"),children:[!g&&!j&&r.jsx("img",{src:S,alt:i,className:O("h-full w-full object-contain transition-opacity",!p&&"opacity-0"),onLoad:()=>h(!0),onError:()=>{N!==c&&y<At?setTimeout(()=>F(Bt),600):w(!0)}},c),(g||j)&&r.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-muted-foreground",children:[r.jsx(Pe,{size:20}),r.jsx("p",{className:"text-xs",children:l("sectionsEditor.imageField.previewUnavailable")})]}),!p&&!g&&!j&&r.jsx("div",{className:"absolute inset-0 animate-pulse bg-muted/60"}),r.jsx(It,{})]}),!d&&r.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[r.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:b}),M&&r.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:M})]})]}):r.jsxs("button",{type:"button",onClick:D,className:O("flex w-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",d?"h-28":"h-40"),children:[r.jsx(Pe,{size:20}),r.jsx("span",{className:"text-sm font-medium",children:l(ce?"sectionsEditor.imageField.uploading":"sectionsEditor.imageField.dropImageOrClickToBrowse")}),!d&&r.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.imageField.supportedFormatsAndSize")})]}),e[39]=D,e[40]=d,e[41]=M,e[42]=b,e[43]=g,e[44]=p,e[45]=ce,e[46]=i,e[47]=y,e[48]=N,e[49]=S,e[50]=c,e[51]=l,e[52]=j,e[53]=B):B=e[53];let V;e[54]!==le||e[55]!==l?(V=le&&r.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:r.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:l("sectionsEditor.imageField.dropToUpload")})}),e[54]=le,e[55]=l,e[56]=V):V=e[56];let Q;e[57]!==he||e[58]!==A||e[59]!==B||e[60]!==V?(Q=r.jsxs("div",{...he,className:A,children:[B,V]}),e[57]=he,e[58]=A,e[59]=B,e[60]=V,e[61]=Q):Q=e[61];let G;e[62]!==ue?(G=P=>ue(P.target.value),e[62]=ue,e[63]=G):G=e[63];let Y;e[64]!==c?(Y=P=>{P.key==="Escape"&&_(c)},e[64]=c,e[65]=Y):Y=e[65];let W;e[66]!==l?(W=l("sectionsEditor.imageField.urlPlaceholder"),e[66]=l,e[67]=W):W=e[67];let K;e[68]!==o||e[69]!==me||e[70]!==G||e[71]!==Y||e[72]!==W||e[73]!==T?(K=r.jsx(Ye,{id:o,type:"url",value:T,onChange:G,onBlur:me,onKeyDown:Y,placeholder:W,className:"h-9 min-w-0 flex-1"}),e[68]=o,e[69]=me,e[70]=G,e[71]=Y,e[72]=W,e[73]=T,e[74]=K):K=e[74];let H;e[75]!==D||e[76]!==c||e[77]!==l?(H=!c&&r.jsxs(Ne,{type:"button",variant:"outline",size:"sm",onClick:D,className:"h-9 shrink-0",children:[r.jsx(Re,{size:14}),l("sectionsEditor.imageField.browse")]}),e[75]=D,e[76]=c,e[77]=l,e[78]=H):H=e[78];let J;e[79]!==k||e[80]!==c||e[81]!==l?(J=c&&r.jsxs(r.Fragment,{children:[r.jsx(Mt,{value:c,onChange:k}),r.jsx(Ne,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.imageField.removeImage"),children:r.jsx(He,{size:14})})]}),e[79]=k,e[80]=c,e[81]=l,e[82]=J):J=e[82];let X;e[83]!==K||e[84]!==H||e[85]!==J?(X=r.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[K,H,J]}),e[83]=K,e[84]=H,e[85]=J,e[86]=X):X=e[86];let Z;e[87]!==ve||e[88]!==xe||e[89]!==m||e[90]!==R||e[91]!==k?(Z=R?r.jsx("input",{ref:_e,type:"file",accept:[...Ae].join(","),className:"hidden",onChange:P=>{ve(P.target.files),P.target.value=""}}):r.jsx(et,{open:m,onOpenChange:x,mode:"image",onSelect:P=>k(P),lockedConfigId:xe}),e[87]=ve,e[88]=xe,e[89]=m,e[90]=R,e[91]=k,e[92]=Z):Z=e[92];let de;return e[93]!==z||e[94]!==Q||e[95]!==X||e[96]!==Z?(de=r.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[z,Q,X,Z]}),e[93]=z,e[94]=Q,e[95]=X,e[96]=Z,e[97]=de):de=e[97],de}function Bt(t){return t+1}function ms(t){const e=U.c(15),{isPending:s,isError:n}=t,a=ee();if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ht,{size:13}),e[0]=d):d=e[0];let l;e[1]!==a?(l=a("sandbox.saveStatus.failed"),e[1]=a,e[2]=l):l=e[2];let u;return e[3]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d,l]}),e[3]=l,e[4]=u):u=e[4],u}if(s){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(We,{className:"size-[13px]"}),e[5]=d):d=e[5];let l;e[6]!==a?(l=a("sandbox.saveStatus.saving"),e[6]=a,e[7]=l):l=e[7];let u;return e[8]!==l?(u=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d,l]}),e[8]=l,e[9]=u):u=e[9],u}let o;e[10]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(Ke,{size:13}),e[10]=o):o=e[10];let i;e[11]!==a?(i=a("sandbox.saveStatus.saved"),e[11]=a,e[12]=i):i=e[12];let f;return e[13]!==i?(f=r.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground/70",children:[o,i]}),e[13]=i,e[14]=f):f=e[14],f}export{It as C,St as F,us as I,jt as M,cs as N,_t as Q,ds as R,ms as S,yt as a,De as b,wt as c,Ct as d,bt as e,Ft as f,Tt as g,kt as h,fs as i,Et as j,Mt as k,Pt as l,qt as m,$t as s,vt as u};
@@ -1 +1 @@
1
- import{aH as a,cp as e,aI as t,cq as d,bC as l}from"./index-DcLeMIKL.js";const s=500;a({title:t().max(s),url:t().max(s),icon:t().max(s)});const o=a({keyId:t().max(s),modelId:t().max(s),title:t().max(s).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const f=a({tiers:a({fast:o,smart:o,thinking:o,image:o,web_search:o,deep_research:o})});a({tiers:a({fast:o.optional(),smart:o.optional(),thinking:o.optional()})});const u=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;a({host:t().trim().toLowerCase().min(1).max(s).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:t().min(1).max(s).describe("Vault secret id holding the PAT used to authenticate this host.")});a({ids:l(t().max(s)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const h=280;a({statement:t().max(h).describe("The store goal in one sentence, in the person's own words."),updated_by:t().describe("Id of the user who last wrote the goal."),updated_at:t().datetime().describe("ISO 8601 timestamp")});const g=a({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."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),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_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),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, registers it (the manifest on Deno, APP_REGISTRY on TanStack), adds the npm dependency, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default — it writes code and restarts the dev server on install, and the restart only works on a daemon new enough to honour a forced step, so an org opts in once its pods are running one. With it off the catalogue stays browsable and nothing is installable, which is also the lever for an org that does not want the CMS writing code."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),cms_auto_commit:e().optional().describe("Fast Preview: commit each CMS save to the editing branch. On by default (see DEFAULT_ON_FLAGS). Off, saves are kept in Studio and shown in the editor and the preview, and reach the branch in one commit when someone publishes or submits for review."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` app's own blocks (`blog/*`) 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, plus, in the inserter, the sections under the blog app's `customSectionPaths`. Off by default. Blocks already present in a post keep rendering; this only governs what can be added."),plan_page_enabled:e().optional().describe("The Plan page: the store goal and a composer that turns an idea into a business case written by the agent. Off by default; with it off, Plan stays a coming-soon page."),blog_view_enabled:e().optional().describe("Blog as a project view of its own (a sidebar row, an app tile and `/blog`), edited on Blog drafts with each post beside the site's render of it. Off by default: the blog stays in the Site Editor's Content tab, and `blog-draft-` branches are ordinary drafts.")}),p=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only","cms_auto_commit"]);function m(i,n){const r=i?.[n];return p.has(n)?r!==!1:r===!0}function _(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{p as D,u as G,g as O,h as P,f as S,_ as a,c as b,m as o};
1
+ import{aH as a,cp as e,aI as t,cq as d,bC as l}from"./index-Bm1kfakF.js";const s=500;a({title:t().max(s),url:t().max(s),icon:t().max(s)});const o=a({keyId:t().max(s),modelId:t().max(s),title:t().max(s).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const f=a({tiers:a({fast:o,smart:o,thinking:o,image:o,web_search:o,deep_research:o})});a({tiers:a({fast:o.optional(),smart:o.optional(),thinking:o.optional()})});const u=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;a({host:t().trim().toLowerCase().min(1).max(s).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:t().min(1).max(s).describe("Vault secret id holding the PAT used to authenticate this host.")});a({ids:l(t().max(s)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const h=280;a({statement:t().max(h).describe("The store goal in one sentence, in the person's own words."),updated_by:t().describe("Id of the user who last wrote the goal."),updated_at:t().datetime().describe("ISO 8601 timestamp")});const g=a({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."),demo_board_reset:e().optional().describe("Curated demo org: every morning the task board returns to its captured snapshot, and admins can reset or recapture it on demand."),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_run_metadata:e().optional().describe("Forward a sandbox run's metadata (such as a webhook trigger's run_metadata) to the MCP tools it calls, as hosted Decopilot runs do. Off by default."),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, registers it (the manifest on Deno, APP_REGISTRY on TanStack), adds the npm dependency, then reinstalls dependencies and restarts the dev script on the running sandbox. Off by default — it writes code and restarts the dev server on install, and the restart only works on a daemon new enough to honour a forced step, so an org opts in once its pods are running one. With it off the catalogue stays browsable and nothing is installable, which is also the lever for an org that does not want the CMS writing code."),multi_app_preview:e().optional().describe("Previewing more than one app of a monorepo: an Apps list in project settings, app tabs with a split view in the preview, and a dev server per extra app in the sandbox, served at its own preview host. Off by default."),cms_auto_commit:e().optional().describe("Fast Preview: commit each CMS save to the editing branch. On by default (see DEFAULT_ON_FLAGS). Off, saves are kept in Studio and shown in the editor and the preview, and reach the branch in one commit when someone publishes or submits for review."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` app's own blocks (`blog/*`) 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, plus, in the inserter, the sections under the blog app's `customSectionPaths`. Off by default. Blocks already present in a post keep rendering; this only governs what can be added."),plan_page_enabled:e().optional().describe("The Plan page: the store goal and a composer that turns an idea into a business case written by the agent. Off by default; with it off, Plan stays a coming-soon page."),blog_view_enabled:e().optional().describe("Blog as a project view of its own (a sidebar row, an app tile and `/blog`), edited on Blog drafts with each post beside the site's render of it. Off by default: the blog stays in the Site Editor's Content tab, and `blog-draft-` branches are ordinary drafts.")}),p=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only","cms_auto_commit"]);function m(i,n){const r=i?.[n];return p.has(n)?r!==!1:r===!0}function _(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n:i?.auto_merge===!0}export{p as D,u as G,g as O,h as P,f as S,_ as a,c as b,m as o};
@@ -1 +1 @@
1
- import{aH as r,dA as p,dy as _,aI as n,bC as o,cq as m}from"./index-DcLeMIKL.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{aH as r,dA as p,dy as _,aI as n,bC as o,cq as m}from"./index-Bm1kfakF.js";const f=r({key:n().min(1,"Key is required"),value:n()}),g=r({title:n().min(1,"Name is required"),description:n().nullable().optional(),icon:n().nullable().optional(),ui_type:m(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:n().optional(),connection_token:n().nullable().optional(),npx_package:n().optional(),stdio_command:n().optional(),stdio_args:n().optional(),stdio_cwd:n().optional(),env_vars:o(f).optional(),configuration_scopes:o(n()).nullable().optional(),configuration_state:p(n(),_()).nullable().optional()}).refine(e=>e.ui_type==="NPX"?!!e.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(e=>e.ui_type==="STDIO"?!!e.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(e=>e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket"?!!e.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(e=>(e.ui_type==="HTTP"||e.ui_type==="SSE"||e.ui_type==="Websocket")&&e.connection_url?.trim()?n().url().safeParse(e.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function S(e,u,s){const a=i=>{if(i==="*")return!0;const c=i.split("::")[0]??"";let t=s;for(const l of c.split(".")){if(t===null||typeof t!="object")return!1;t=t[l]}return t!=null};return[...new Set([...e,...u.filter(a)])]}export{S as a,g as c};
@@ -1 +1 @@
1
- import{r as d,c4 as T,c0 as ce,j as b,c6 as _,ck as ae,e1 as O,c7 as C,ce as P,c8 as ie,c as F,m as $}from"./index-DcLeMIKL.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,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(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=v(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=v(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=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(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=B(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(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(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=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(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)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(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)}})}})}),[ve,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=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{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,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.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=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(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,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
1
+ import{r as d,c4 as T,c0 as ce,j as b,c6 as _,ck as ae,e1 as O,c7 as C,ce as P,c8 as ie,c as F,m as $}from"./index-Bm1kfakF.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,v]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[A,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,W]=d.useState(!1),m=T(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:W,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=v(J,o),a=d.useRef(null),c=T(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=v(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=v(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=v(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=v(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:e})})}),V=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=v(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=B(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(me,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=B(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=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(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)}})}})}),me=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=v(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=T(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)}})}})}),[ve,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=v(g,o),[w,A]=d.useState(null),Y=T(e,m=>A(m)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function W(m){if(x.current){const p=m.clientX-x.current.left,R=m.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const m=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(ve,{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,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),W(m))}),onPointerMove:C(r.onPointerMove,W),onPointerUp:C(r.onPointerUp,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.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=v(H,o),s=ee(H,o),{onThumbPositionChange:a}=s,c=T(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,A=h.clientY-S.top;s.onThumbPointerDown({x:w,y:A})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=H;var k="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=v(k,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=k;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=v(k,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function B(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] transition-[color,box-shadow] focus-ring",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
@@ -1 +1 @@
1
- import{c as f,j as a,bW as j,h as I,bX as S,bY as b}from"./index-DcLeMIKL.js";import{i as g}from"./SearchMd-CAXH4rmA.js";function N(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:i,className:p,isSearching:c,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==c?(s=a.jsx(j,{className:"pr-0",children:c?a.jsx(I,{className:"size-4"}):a.jsx(g,{})}),e[0]=c,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==i||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:i,placeholder:m,disabled:u}),e[4]=u,e[5]=i,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==p||e[11]!==s||e[12]!==n?(o=a.jsxs(b,{size:"sm",className:p,children:[s,n]}),e[10]=p,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{N as S};
1
+ import{c as f,j as a,bW as j,h as I,bX as S,bY as b}from"./index-Bm1kfakF.js";import{i as g}from"./SearchMd-DL0DTMXc.js";function N(x){const e=f.c(14),{value:r,onChange:l,placeholder:h,onKeyDown:i,className:p,isSearching:c,disabled:u}=x,m=h===void 0?"Search...":h;let s;e[0]!==c?(s=a.jsx(j,{className:"pr-0",children:c?a.jsx(I,{className:"size-4"}):a.jsx(g,{})}),e[0]=c,e[1]=s):s=e[1];let t;e[2]!==l?(t=d=>l(d.target.value),e[2]=l,e[3]=t):t=e[3];let n;e[4]!==u||e[5]!==i||e[6]!==m||e[7]!==t||e[8]!==r?(n=a.jsx(S,{type:"text",value:r,onChange:t,onKeyDown:i,placeholder:m,disabled:u}),e[4]=u,e[5]=i,e[6]=m,e[7]=t,e[8]=r,e[9]=n):n=e[9];let o;return e[10]!==p||e[11]!==s||e[12]!==n?(o=a.jsxs(b,{size:"sm",className:p,children:[s,n]}),e[10]=p,e[11]=s,e[12]=n,e[13]=o):o=e[13],o}export{N as S};
@@ -1 +1 @@
1
- import{c as K,r as C,m as B,j as a,b5 as M}from"./index-DcLeMIKL.js";import{i as I}from"./SearchMd-CAXH4rmA.js";import{I as O}from"./icon-button-BWABQKeL.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=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:"outline",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=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]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,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 y=!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 i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=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]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,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]=_,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
1
+ import{c as K,r as C,m as B,j as a,b5 as M}from"./index-Bm1kfakF.js";import{i as I}from"./SearchMd-DL0DTMXc.js";import{I as O}from"./icon-button-A0UAzKos.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,_=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:"outline",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const k=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]!==k?(n=B("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground shadow-edge",k,j),e[4]=j,e[5]=k,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 y=!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 i;e[11]!==t?(i=()=>{z(!1),t===""&&p(!1)},e[11]=t,e[12]=i):i=e[12];let c;e[13]!==s?(c=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=c):c=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]!==i||e[19]!==c||e[20]!==f||e[21]!==y||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:y,value:t,onChange:r,onFocus:h,onBlur:i,onKeyDown:c,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=i,e[19]=c,e[20]=f,e[21]=y,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==_||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":_,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]=_,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
@@ -1 +1 @@
1
- import{c as x,az as d,b as j,j as i}from"./index-DcLeMIKL.js";import{t as E}from"./Users01-BgoP6eBE.js";const R=/^[A-Za-z0-9_.-]+$/;function b(f){const e=x.c(15),{field:p,secretById:t}=f,s=j(),n=p.value||"";if(!n)return null;let l;e[0]!==n||e[1]!==t?(l=t.get(n),e[0]=n,e[1]=t,e[2]=l):l=e[2];const c=l;if(!c){let a;e[3]!==n||e[4]!==s?(a=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5];let u;return e[6]!==a?(u=i.jsx("span",{className:"text-destructive",children:a}),e[6]=a,e[7]=u):u=e[7],u}let o;e[8]!==c.scope?(o=i.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=i.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=i.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(f){const e=x.c(2),{scope:p}=f,t=p==="user"?d:E;let s;return e[0]!==t?(s=i.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{b as S,R as a,N as b};
1
+ import{c as x,az as d,b as j,j as i}from"./index-Bm1kfakF.js";import{t as E}from"./Users01-w98WkMA8.js";const R=/^[A-Za-z0-9_.-]+$/;function b(f){const e=x.c(15),{field:p,secretById:t}=f,s=j(),n=p.value||"";if(!n)return null;let l;e[0]!==n||e[1]!==t?(l=t.get(n),e[0]=n,e[1]=t,e[2]=l):l=e[2];const c=l;if(!c){let a;e[3]!==n||e[4]!==s?(a=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=a):a=e[5];let u;return e[6]!==a?(u=i.jsx("span",{className:"text-destructive",children:a}),e[6]=a,e[7]=u):u=e[7],u}let o;e[8]!==c.scope?(o=i.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=i.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=i.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(f){const e=x.c(2),{scope:p}=f,t=p==="user"?d:E;let s;return e[0]!==t?(s=i.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{b as S,R as a,N as b};
@@ -1 +1 @@
1
- import{c as j,b as N,j as s,n as C,hs as F,R as k,r as y,e0 as L,B as D,az as O,ah as T,D as B,v as R,w as A,x as I,aU as q,I as _,y as V,t as z,gh as H}from"./index-DcLeMIKL.js";import{i as U}from"./AlertCircle-B3Cju_A1.js";import{s as G}from"./Plus-Bt6EBJN9.js";import{t as J}from"./Users01-BgoP6eBE.js";import{E as K}from"./empty-state-CLzYFhww.js";import{L as w}from"./label-DRW5vmPi.js";import{S as M,b as Q,a as W,d as X,c as P}from"./select-CK3pBBYF.js";import{T as Y}from"./textarea-DNuEc6yF.js";import{u as Z,a as ee}from"./use-secrets-DJezdT4P.js";import{R as te}from"./require-capability-Cayj4MNe.js";import"./index-BdQq_4o_.js";import"./index-uKgIl52k.js";import"./ChevronDown-Z_rS_qxi.js";import"./ChevronUp-Dw-CS8VU.js";import"./access-gate-BVJuKD5u.js";import"./capability-load-error-cAPMVAHC.js";function se(t){const e=j.c(6),{error:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(U,{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 l;return e[4]!==n?(l=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]=l):l=e[5],l}function re(t){const e=j.c(8),{scope:r}=t,i=N(),c=r==="user"?O:J;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 l=n;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=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:[a,l]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}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(re,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let l;e[5]!==c||e[6]!==n?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=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]=a):a=e[9];let m;e[10]!==l||e[11]!==a?(m=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=m):m=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 u;e[15]!==d?(u=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=u):u=e[16];let x;return e[17]!==m||e[18]!==u?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[m,u]}),e[17]=m,e[18]=u,e[19]=x):x=e[19],x}function ne(t){const e=j.c(9),{action:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(T,{}),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 l;e[3]!==i?(l=i("settings.secrets.emptyDescription"),e[3]=i,e[4]=l):l=e[4];let a;return e[5]!==r||e[6]!==n||e[7]!==l?(a=s.jsx(H,{children:s.jsx(K,{size:"inline",icon:c,title:n,description:l,children:r})}),e[5]=r,e[6]=n,e[7]=l,e[8]=a):a=e[8],a}function E({open:t,onOpenChange:e}){const r=N(),[i,c]=y.useState("organization"),[n,l]=y.useState(""),[a,m]=y.useState(""),[d,u]=y.useState(""),x=ee();function g(){c("organization"),l(""),m(""),u("")}function p(){g(),e(!1)}async function S(o){if(o.preventDefault(),!(!n.trim()||!a))try{await x.mutateAsync({scope:i,name:n.trim(),value:a,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(B,{open:t,onOpenChange:o=>{o?e(o):p()},children:s.jsxs(R,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(I,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,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(M,{value:i,onValueChange:o=>c(o),children:[s.jsx(Q,{id:"secret-scope",children:s.jsx(W,{})}),s.jsxs(X,{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:o=>l(o.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:a,onChange:o=>m(o.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(Y,{id:"secret-description",value:d,onChange:o=>u(o.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(V,{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()||!a,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=j.c(34),e=N(),r=Z(),[i,c]=y.useState(!1);let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),l=s.jsx(G,{size:14}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let a;t[2]!==e?(a=e("settings.secrets.newSecret"),t[2]=e,t[3]=a):a=t[3];let m;t[4]!==a?(m=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[l,a]})}),t[4]=a,t[5]=m):m=t[5];const d=m;if(r.length===0){let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ne,{action:!1}),t[6]=o):o=t[6];let f;t[7]!==i?(f=s.jsx(E,{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,o,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let u,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const o=r.filter(oe),f=r.filter(ae),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let b;t[18]!==r.length||t[19]!==e||t[20]!==h?(b=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=b):b=t[21];let v;t[22]!==b?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),t[22]=b,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=u):u=t[26],x=o.length>0?s.jsxs("section",{className:"surface 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:o.map(le)})]}):null,g=f.length>0?s.jsxs("section",{className:"surface 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(ce)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=u,t[16]=x,t[17]=g}else u=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(E,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let S;return t[29]!==u||t[30]!==x||t[31]!==g||t[32]!==p?(S=s.jsxs(s.Fragment,{children:[u,x,g,p]}),t[29]=u,t[30]=x,t[31]=g,t[32]=p,t[33]=S):S=t[33],S}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function me(){const t=j.c(7),e=N();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(k,{fallback:de,children:s.jsx(y.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),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(F,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function de(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function ze(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(me,{})}),t[0]=e):e=t[0],e}export{ze as default};
1
+ import{c as j,b as N,j as s,n as C,hs as F,R as k,r as y,e0 as L,B as D,az as O,ah as T,D as B,v as R,w as A,x as I,aU as q,I as _,y as V,t as z,gh as H}from"./index-Bm1kfakF.js";import{i as U}from"./AlertCircle-CShy6yDX.js";import{s as G}from"./Plus-D8wmiIrv.js";import{t as J}from"./Users01-w98WkMA8.js";import{E as K}from"./empty-state-csW-GeIV.js";import{L as w}from"./label-D53IaeZS.js";import{S as M,b as Q,a as W,d as X,c as P}from"./select-UUQ-q9oo.js";import{T as Y}from"./textarea-CicBpiIo.js";import{u as Z,a as ee}from"./use-secrets-C96B2z29.js";import{R as te}from"./require-capability-cZNhHutj.js";import"./index-BdQq_4o_.js";import"./index-Cs4d-rU4.js";import"./ChevronDown-DZmwX-ra.js";import"./ChevronUp-up6pfAf9.js";import"./access-gate-DW6dT6hG.js";import"./capability-load-error-DREzOdAI.js";function se(t){const e=j.c(6),{error:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(U,{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 l;return e[4]!==n?(l=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]=l):l=e[5],l}function re(t){const e=j.c(8),{scope:r}=t,i=N(),c=r==="user"?O:J;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 l=n;let a;e[3]!==c?(a=s.jsx(c,{size:12}),e[3]=c,e[4]=a):a=e[4];let m;return e[5]!==l||e[6]!==a?(m=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:[a,l]}),e[5]=l,e[6]=a,e[7]=m):m=e[7],m}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(re,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let l;e[5]!==c||e[6]!==n?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=l):l=e[7];let a;e[8]!==r.description?(a=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]=a):a=e[9];let m;e[10]!==l||e[11]!==a?(m=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[l,a]})]}),e[10]=l,e[11]=a,e[12]=m):m=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 u;e[15]!==d?(u=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=u):u=e[16];let x;return e[17]!==m||e[18]!==u?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[m,u]}),e[17]=m,e[18]=u,e[19]=x):x=e[19],x}function ne(t){const e=j.c(9),{action:r}=t,i=N();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(T,{}),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 l;e[3]!==i?(l=i("settings.secrets.emptyDescription"),e[3]=i,e[4]=l):l=e[4];let a;return e[5]!==r||e[6]!==n||e[7]!==l?(a=s.jsx(H,{children:s.jsx(K,{size:"inline",icon:c,title:n,description:l,children:r})}),e[5]=r,e[6]=n,e[7]=l,e[8]=a):a=e[8],a}function E({open:t,onOpenChange:e}){const r=N(),[i,c]=y.useState("organization"),[n,l]=y.useState(""),[a,m]=y.useState(""),[d,u]=y.useState(""),x=ee();function g(){c("organization"),l(""),m(""),u("")}function p(){g(),e(!1)}async function S(o){if(o.preventDefault(),!(!n.trim()||!a))try{await x.mutateAsync({scope:i,name:n.trim(),value:a,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(B,{open:t,onOpenChange:o=>{o?e(o):p()},children:s.jsxs(R,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(I,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:S,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(M,{value:i,onValueChange:o=>c(o),children:[s.jsx(Q,{id:"secret-scope",children:s.jsx(W,{})}),s.jsxs(X,{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:o=>l(o.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:a,onChange:o=>m(o.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(Y,{id:"secret-description",value:d,onChange:o=>u(o.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(V,{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()||!a,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function ie(){const t=j.c(34),e=N(),r=Z(),[i,c]=y.useState(!1);let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),l=s.jsx(G,{size:14}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let a;t[2]!==e?(a=e("settings.secrets.newSecret"),t[2]=e,t[3]=a):a=t[3];let m;t[4]!==a?(m=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[l,a]})}),t[4]=a,t[5]=m):m=t[5];const d=m;if(r.length===0){let o;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ne,{action:!1}),t[6]=o):o=t[6];let f;t[7]!==i?(f=s.jsx(E,{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,o,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let u,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const o=r.filter(oe),f=r.filter(ae),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let b;t[18]!==r.length||t[19]!==e||t[20]!==h?(b=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=b):b=t[21];let v;t[22]!==b?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),t[22]=b,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(u=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=u):u=t[26],x=o.length>0?s.jsxs("section",{className:"surface 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:o.map(le)})]}):null,g=f.length>0?s.jsxs("section",{className:"surface 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(ce)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=u,t[16]=x,t[17]=g}else u=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(E,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let S;return t[29]!==u||t[30]!==x||t[31]!==g||t[32]!==p?(S=s.jsxs(s.Fragment,{children:[u,x,g,p]}),t[29]=u,t[30]=x,t[31]=g,t[32]=p,t[33]=S):S=t[33],S}function ce(t){return s.jsx($,{secret:t},t.id)}function le(t){return s.jsx($,{secret:t},t.id)}function ae(t){return t.scope==="user"}function oe(t){return t.scope==="organization"}function me(){const t=j.c(7),e=N();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(k,{fallback:de,children:s.jsx(y.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(ie,{})})}),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(F,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function de(t){const{error:e}=t;return s.jsx(se,{error:e??new Error("Failed to load secrets")})}function ze(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{capability:"secrets:manage",area:"secrets",children:s.jsx(me,{})}),t[0]=e):e=t[0],e}export{ze as default};
@@ -1 +1 @@
1
- import{bA as g,bz as E,f9 as w,eQ as L,fa as A,fb as y,fc as j,eL as d,fd as P,fe as T,ff as k,fg as D,fh as x,fi as R,bn as B,fj as C,fk as K}from"./index-DcLeMIKL.js";import{A as I,r as F,z as $,$ as U,aa as W}from"./blocks-tab-states-CTVyHe6z.js";const l="https://docs.decocms.com/storefront/blocks",ne={quickstart:`${l}/next/quickstart`,siteEditor:`${l}/next/site-editor#edit-on-your-machine`,serve:`${l}/next/cli#deco-serve`,schema:`${l}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${l}/next/troubleshooting#site-editor`},ae="https://github.com/decocms/blocks/tree/main/.agents/skills/deco-site-workflow";function z(e){return e.includes("matchers")||e.includes("Match")}function m(e,r){const t=e.__resolveType;return typeof t!="string"||!t||U(t,r)?!1:r?w(r,t):z(t)}function oe(e,r){const t=[];for(const[n,a]of Object.entries(r)){if(n.includes("/")||!g(n,e)||E(n)||!a||typeof a!="object"||Array.isArray(a))continue;const o=a;m(o,e)&&t.push({blockKey:n,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return t.sort((n,a)=>(n.name??n.blockKey).localeCompare(a.name??a.blockKey))}function p(e,r,t){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!g(n,t)||!Object.hasOwn(r,n))return!1;const a=r[n];return!a||typeof a!="object"||Array.isArray(a)?!1:m(a,t)}function se(e,r,t){return p(e,r,t)?e?.__resolveType??null:null}function S(e,r,t){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(p(e,r,t)){const s=r[n]??{},i=s.__resolveType??n,{__resolveType:c,name:u,...v}=s;return{resolveType:i,data:v,blockKey:n}}const{__resolveType:a,...o}=e;return{resolveType:n,data:o}}function Y(e,r,t){const n=S(e,r,t);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function ie(e,r,t){if(e)return p(e,r,t)?Y(e,r,t):e}function q(e,r,t,n){if(!e)return"Default";if(p(e,r,n)){const a=e.__resolveType??"",o=r[a];return I(a,o)}return t(e,F(r))}function ce(e,r,t){return{__resolveType:e,...r,name:t}}function ue(e){return{__resolveType:e}}function le(e,r,t){const n=S(e,r,t);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function fe(e,r){const t={__resolveType:e};if(!e||!r)return t;const n=$(e,r),a=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return a?{...t,...a}:t}function V(e){const r=[];for(let t=e;t?.key!=null;t=t.parent)r.push(t.key);return r.reverse()}function G(e){return{blockKey:e.blockKey,path:V(e)}}function N(e,r,t){const n=[];for(const[o,s]of Object.entries(e))o!==r&&n.push({node:s,blockKey:o,parent:null,key:null});const a=new Set;for(;n.length>0;){const o=n.pop(),{node:s}=o;if(!(!s||typeof s!="object")&&!a.has(s)){if(a.add(s),Array.isArray(s)){s.forEach((i,c)=>{n.push({node:i,blockKey:o.blockKey,parent:o,key:c})});continue}t(s,o);for(const[i,c]of Object.entries(s))n.push({node:c,blockKey:o.blockKey,parent:o,key:i})}}}function H(e,r,t){if(!r)return[];const n=[];return N(e,r,(a,o)=>{if(a.__resolveType!==r||!p(a,e,t))return;const s=Q(o);n.push({...G(o),...s?{variant:s}:{}})}),n}function Q(e){for(let r=e;r;r=r.parent){const t=r.parent,n=t?.parent,a=n?.parent;if(!t||!n||!a)return;if(r.key==="rule"&&typeof t.key=="number"&&n.key==="variants"&&W(a.node)&&L(a.node.__resolveType)){const o=a.node.experiment;return{containerPath:V(a),containerType:a.node.__resolveType,index:t.key,...typeof o=="string"?{experiment:o}:{}}}}}function J(e){for(const r of e.anyOfRefs??[]){if(r.resolveType!==A&&r.resolveType!==y)continue;const t=r.schema?.properties?.variants?.items?.properties?.value,n=t?.lazy?t.properties?.value:t;if(n?.type==="array")return n}}function X(e){return J(e)!==void 0}function ye(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return Array.isArray(t.variants)?t.__resolveType===R?!0:r&&t.__resolveType===y&&!M(t.variants):!1}function M(e){return e.some(r=>Array.isArray(d(r)))}function O(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===A?!0:r&&t.__resolveType===y&&Array.isArray(t.variants)&&M(t.variants)}function pe(e,r){if(!O(e,r))return null;const t=e.variants;if(!Array.isArray(t))return null;const n=B(t[0],r);return Array.isArray(n)?n:null}function ve(e,r,t,n){if(!O(e,n))return r;const a=structuredClone(e),o=[...a.variants??[]];return o.length===0?o.push({rule:k(t),value:T(a.__resolveType,r)}):o[0]=C(a.__resolveType,o[0],r),{...a,variants:o}}function de(e,r){const n=e[r]?.sections;if(!n||Array.isArray(n))return 1;const a=n;return Array.isArray(a.variants)?a.variants.length:1}function _e(e,r,t){const a=e[r]?.sections;if(Array.isArray(a))return t===0?a:[];if(a&&typeof a=="object"){const o=a.variants;if(Array.isArray(o)){const s=d(o[t]);return Array.isArray(s)?s:[]}}return[]}function he(e,r,t){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const a=n.variants,o=j(a.map(s=>q(s.rule,r,t)));return a.map((s,i)=>{const c=o[i],u=d(s);return{label:c||`Variant ${i+1}`,sections:Array.isArray(u)?u:[],rule:s.rule}})}}return[]}function _(e,r,t){return{rule:k(r),value:T(t,e)}}function h(e,r){return e?e.__resolveType===y?y:A:D(r)}function f(e,r,t){return{...r,__resolveType:h(r,t),variants:e}}function be(e,r,t,n=!1){const a=structuredClone(r);if(e&&typeof e=="object"&&!Array.isArray(e)){const c=e;if(!Array.isArray(c.variants))return null;const u=[...c.variants],v=P(u,n);return u.splice(v,0,_(a,t,h(c))),{sections:f(u,c),newVariantIndex:v}}const o=h(void 0,t),s=_(Array.isArray(e)?e:[],t,o),i=_(a,t,o);return{sections:f(n?[i,s]:[s,i],void 0,t),newVariantIndex:n?0:1}}function Ae(e,r,t=!1){const n=e[r];if(!n)return null;const a=[...e];return a.splice(K(e,r,t),0,structuredClone(n)),a}function ge(e,r){if(r.length===0)return f([],e);if(r.length===1){const t=r[0],n=t?.rule;if(!x(n))return f(r,e);const a=d(t);if(Array.isArray(a))return a}return f(r,e)}function Z(e,r,t){return H(e,r,t).length}function Te(e,r,t,n){return n?!1:Z(e,r,t)===0}const ke={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 b(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===R}function ee(e){if(e.anyOfRefs?.length)return e.anyOfRefs.some(t=>b(t.resolveType));const r=e.properties?.__resolveType;return r?.type==="block-ref"&&r.anyOfRefs?.length?r.anyOfRefs.some(t=>b(t.resolveType)):!1}function Re(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(r=>b(r.resolveType))}function me(e,r){if(r==="global"||r==="sections"||X(e))return!0;const t=e.type==="array"?e.items:void 0;return t?ee(t):!1}export{Te as A,Ae as B,ke as C,ae as D,de as a,be as b,ne as c,X as d,me as e,Y as f,_e as g,ue as h,b as i,Re as j,q as k,oe as l,se as m,le as n,p as o,he as p,ce as q,ie as r,fe as s,ye as t,O as u,pe as v,ve as w,J as x,S as y,ge as z};
1
+ import{bA as g,bz as E,f9 as w,eQ as L,fa as A,fb as y,fc as j,eL as d,fd as P,fe as T,ff as k,fg as D,fh as x,fi as R,bn as B,fj as C,fk as K}from"./index-Bm1kfakF.js";import{A as I,r as F,z as $,$ as U,aa as W}from"./blocks-tab-states-jg37ZdSd.js";const l="https://docs.decocms.com/storefront/blocks",ne={quickstart:`${l}/next/quickstart`,siteEditor:`${l}/next/site-editor#edit-on-your-machine`,serve:`${l}/next/cli#deco-serve`,schema:`${l}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${l}/next/troubleshooting#site-editor`},ae="https://github.com/decocms/blocks/tree/main/.agents/skills/deco-site-workflow";function z(e){return e.includes("matchers")||e.includes("Match")}function m(e,r){const t=e.__resolveType;return typeof t!="string"||!t||U(t,r)?!1:r?w(r,t):z(t)}function oe(e,r){const t=[];for(const[n,a]of Object.entries(r)){if(n.includes("/")||!g(n,e)||E(n)||!a||typeof a!="object"||Array.isArray(a))continue;const o=a;m(o,e)&&t.push({blockKey:n,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return t.sort((n,a)=>(n.name??n.blockKey).localeCompare(a.name??a.blockKey))}function p(e,r,t){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!g(n,t)||!Object.hasOwn(r,n))return!1;const a=r[n];return!a||typeof a!="object"||Array.isArray(a)?!1:m(a,t)}function se(e,r,t){return p(e,r,t)?e?.__resolveType??null:null}function S(e,r,t){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(p(e,r,t)){const s=r[n]??{},i=s.__resolveType??n,{__resolveType:c,name:u,...v}=s;return{resolveType:i,data:v,blockKey:n}}const{__resolveType:a,...o}=e;return{resolveType:n,data:o}}function Y(e,r,t){const n=S(e,r,t);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function ie(e,r,t){if(e)return p(e,r,t)?Y(e,r,t):e}function q(e,r,t,n){if(!e)return"Default";if(p(e,r,n)){const a=e.__resolveType??"",o=r[a];return I(a,o)}return t(e,F(r))}function ce(e,r,t){return{__resolveType:e,...r,name:t}}function ue(e){return{__resolveType:e}}function le(e,r,t){const n=S(e,r,t);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function fe(e,r){const t={__resolveType:e};if(!e||!r)return t;const n=$(e,r),a=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return a?{...t,...a}:t}function V(e){const r=[];for(let t=e;t?.key!=null;t=t.parent)r.push(t.key);return r.reverse()}function G(e){return{blockKey:e.blockKey,path:V(e)}}function N(e,r,t){const n=[];for(const[o,s]of Object.entries(e))o!==r&&n.push({node:s,blockKey:o,parent:null,key:null});const a=new Set;for(;n.length>0;){const o=n.pop(),{node:s}=o;if(!(!s||typeof s!="object")&&!a.has(s)){if(a.add(s),Array.isArray(s)){s.forEach((i,c)=>{n.push({node:i,blockKey:o.blockKey,parent:o,key:c})});continue}t(s,o);for(const[i,c]of Object.entries(s))n.push({node:c,blockKey:o.blockKey,parent:o,key:i})}}}function H(e,r,t){if(!r)return[];const n=[];return N(e,r,(a,o)=>{if(a.__resolveType!==r||!p(a,e,t))return;const s=Q(o);n.push({...G(o),...s?{variant:s}:{}})}),n}function Q(e){for(let r=e;r;r=r.parent){const t=r.parent,n=t?.parent,a=n?.parent;if(!t||!n||!a)return;if(r.key==="rule"&&typeof t.key=="number"&&n.key==="variants"&&W(a.node)&&L(a.node.__resolveType)){const o=a.node.experiment;return{containerPath:V(a),containerType:a.node.__resolveType,index:t.key,...typeof o=="string"?{experiment:o}:{}}}}}function J(e){for(const r of e.anyOfRefs??[]){if(r.resolveType!==A&&r.resolveType!==y)continue;const t=r.schema?.properties?.variants?.items?.properties?.value,n=t?.lazy?t.properties?.value:t;if(n?.type==="array")return n}}function X(e){return J(e)!==void 0}function ye(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return Array.isArray(t.variants)?t.__resolveType===R?!0:r&&t.__resolveType===y&&!M(t.variants):!1}function M(e){return e.some(r=>Array.isArray(d(r)))}function O(e,r){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===A?!0:r&&t.__resolveType===y&&Array.isArray(t.variants)&&M(t.variants)}function pe(e,r){if(!O(e,r))return null;const t=e.variants;if(!Array.isArray(t))return null;const n=B(t[0],r);return Array.isArray(n)?n:null}function ve(e,r,t,n){if(!O(e,n))return r;const a=structuredClone(e),o=[...a.variants??[]];return o.length===0?o.push({rule:k(t),value:T(a.__resolveType,r)}):o[0]=C(a.__resolveType,o[0],r),{...a,variants:o}}function de(e,r){const n=e[r]?.sections;if(!n||Array.isArray(n))return 1;const a=n;return Array.isArray(a.variants)?a.variants.length:1}function _e(e,r,t){const a=e[r]?.sections;if(Array.isArray(a))return t===0?a:[];if(a&&typeof a=="object"){const o=a.variants;if(Array.isArray(o)){const s=d(o[t]);return Array.isArray(s)?s:[]}}return[]}function he(e,r,t){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const a=n.variants,o=j(a.map(s=>q(s.rule,r,t)));return a.map((s,i)=>{const c=o[i],u=d(s);return{label:c||`Variant ${i+1}`,sections:Array.isArray(u)?u:[],rule:s.rule}})}}return[]}function _(e,r,t){return{rule:k(r),value:T(t,e)}}function h(e,r){return e?e.__resolveType===y?y:A:D(r)}function f(e,r,t){return{...r,__resolveType:h(r,t),variants:e}}function be(e,r,t,n=!1){const a=structuredClone(r);if(e&&typeof e=="object"&&!Array.isArray(e)){const c=e;if(!Array.isArray(c.variants))return null;const u=[...c.variants],v=P(u,n);return u.splice(v,0,_(a,t,h(c))),{sections:f(u,c),newVariantIndex:v}}const o=h(void 0,t),s=_(Array.isArray(e)?e:[],t,o),i=_(a,t,o);return{sections:f(n?[i,s]:[s,i],void 0,t),newVariantIndex:n?0:1}}function Ae(e,r,t=!1){const n=e[r];if(!n)return null;const a=[...e];return a.splice(K(e,r,t),0,structuredClone(n)),a}function ge(e,r){if(r.length===0)return f([],e);if(r.length===1){const t=r[0],n=t?.rule;if(!x(n))return f(r,e);const a=d(t);if(Array.isArray(a))return a}return f(r,e)}function Z(e,r,t){return H(e,r,t).length}function Te(e,r,t,n){return n?!1:Z(e,r,t)===0}const ke={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 b(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===R}function ee(e){if(e.anyOfRefs?.length)return e.anyOfRefs.some(t=>b(t.resolveType));const r=e.properties?.__resolveType;return r?.type==="block-ref"&&r.anyOfRefs?.length?r.anyOfRefs.some(t=>b(t.resolveType)):!1}function Re(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(r=>b(r.resolveType))}function me(e,r){if(r==="global"||r==="sections"||X(e))return!0;const t=e.type==="array"?e.items:void 0;return t?ee(t):!1}export{Te as A,Ae as B,ke as C,ae as D,de as a,be as b,ne as c,X as d,me as e,Y as f,_e as g,ue as h,b as i,Re as j,q as k,oe as l,se as m,le as n,p as o,he as p,ce as q,ie as r,fe as s,ye as t,O as u,pe as v,ve as w,J as x,S as y,ge as z};