decocms 4.345.1 → 4.345.3

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 (258) hide show
  1. package/dist/client/assets/{AlertCircle-D5wzOxIg.js → AlertCircle-Dy06jn7O.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B7-Obnq_.js → AreaChart-CmJuLQ3A.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Beb7uT2a.js → ArrowLeft-WqOe2_0p.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Du9XgC-I.js → ArrowRight-CE7R2QpT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-_u4Yru0Q.js → ArrowUp-Bb8wtrpg.js} +1 -1
  6. package/dist/client/assets/{Check-Bqh0edDs.js → Check-rLpnQtBD.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-P3KELI_n.js → CheckCircle-wHHRWqEY.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DyhM_Luf.js → ChevronRight-HW8ycsdn.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-S2WVRFJv.js → ChevronSelectorVertical-BMjXMlJf.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-CGseLBwf.js → ChevronUp-BWCIDppJ.js} +1 -1
  11. package/dist/client/assets/{Copy01-CQ5n9k6R.js → Copy01-DDc7sIq2.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-DQ2UyAUW.js → CreditCard01-qHEcTgd1.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-CXA4FBF-.js → DotsVertical-BMc0eoid.js} +1 -1
  14. package/dist/client/assets/{Download01-EHABWuSq.js → Download01-DQ1dXqz2.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-DtNUqfSS.js → ErrorBarContext-BGWZW33l.js} +1 -1
  16. package/dist/client/assets/{Eye-4ikW46Xl.js → Eye-DZAs3QkV.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-rChCKXuD.js → GitBranch01-BG0kcBnK.js} +1 -1
  18. package/dist/client/assets/{Globe01-DQGNcxVn.js → Globe01-VNaGcoCe.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CALvWP4_.js → HardDrive-D2eQ0dSS.js} +1 -1
  20. package/dist/client/assets/{Image01-BrxwhCeX.js → Image01-D6gOIsPx.js} +1 -1
  21. package/dist/client/assets/{Key01-D_IxGQOL.js → Key01-D_UJdXGn.js} +1 -1
  22. package/dist/client/assets/{Link01-DvvkHs6T.js → Link01-C3M6Bo3f.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-B4pNNDj3.js → LinkExternal01-B4aZHvg7.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Cb0G367h.js → Monitor01-BfQ0PGhT.js} +1 -1
  25. package/dist/client/assets/{Package-Bfk8OrRH.js → Package-8u9OVTXa.js} +1 -1
  26. package/dist/client/assets/{Palette-B6tq__pc.js → Palette-BwDGJXuL.js} +1 -1
  27. package/dist/client/assets/{Play-BKI4FgKL.js → Play-C0CDk-Wr.js} +1 -1
  28. package/dist/client/assets/{Plus-BZSUkwsF.js → Plus-CNuiMMA6.js} +1 -1
  29. package/dist/client/assets/{SearchMd-CC2qYhKq.js → SearchMd-BsN7i_Xe.js} +1 -1
  30. package/dist/client/assets/{Sector-D-zqGwr9.js → Sector-SO80MVyU.js} +1 -1
  31. package/dist/client/assets/{Settings02-3O7I-4oK.js → Settings02-CvyaJ73M.js} +1 -1
  32. package/dist/client/assets/{Share07-B043tEsF.js → Share07-Bn3j0XYO.js} +1 -1
  33. package/dist/client/assets/{Shield01-DSyesTES.js → Shield01-6xrvxxe7.js} +1 -1
  34. package/dist/client/assets/{Stars01-D0DXnyE9.js → Stars01-CdFmL0Pf.js} +1 -1
  35. package/dist/client/assets/{Sun-BUQJT4KF.js → Sun-CqXPdcae.js} +1 -1
  36. package/dist/client/assets/{Tool01-CgvePMtM.js → Tool01-CNEygOtB.js} +1 -1
  37. package/dist/client/assets/{Tool02-_HC8oqfU.js → Tool02-Bip9xzoM.js} +1 -1
  38. package/dist/client/assets/{Trash01-DCX9ydiU.js → Trash01-Cf3tKNqt.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-DhL5-hJo.js → TrendUp01-BilhoVlz.js} +1 -1
  40. package/dist/client/assets/{Upload01-CNkQbAmi.js → Upload01-C7kOp4cQ.js} +1 -1
  41. package/dist/client/assets/{User01-cnJUdVWa.js → User01-Imqqywm1.js} +1 -1
  42. package/dist/client/assets/{UserSquare-CpUQtm07.js → UserSquare-Yw_wKYKn.js} +1 -1
  43. package/dist/client/assets/{Users01-CPNdhBFx.js → Users01-BPhUPpC3.js} +1 -1
  44. package/dist/client/assets/{Users03-BZkJWCNu.js → Users03-CPpoGcL8.js} +1 -1
  45. package/dist/client/assets/{XCircle-4con0UUu.js → XCircle-B04J7nXR.js} +1 -1
  46. package/dist/client/assets/{XClose-C2dpX0F_.js → XClose-BotI7nP7.js} +1 -1
  47. package/dist/client/assets/{Zap-Bsbv5icR.js → Zap-Bj8We7dC.js} +1 -1
  48. package/dist/client/assets/{ZoomOut-DiztYlpQ.js → ZoomOut-K-bCBc8U.js} +1 -1
  49. package/dist/client/assets/{access-gate-DD56oGJy.js → access-gate-nOuIeMPa.js} +1 -1
  50. package/dist/client/assets/{agent-icon-B7AXGQ6P.js → agent-icon-BEg6UtgW.js} +1 -1
  51. package/dist/client/assets/{agents-list-CY8WmhcM.js → agents-list-C-yqTOUn.js} +1 -1
  52. package/dist/client/assets/{ai-providers-BiO7fRFd.js → ai-providers-C5LGlH4F.js} +1 -1
  53. package/dist/client/assets/{alert-DtchnFmi.js → alert-D71eufo4.js} +1 -1
  54. package/dist/client/assets/{alert-dialog-BxdFiiIi.js → alert-dialog-CuHm9bP6.js} +1 -1
  55. package/dist/client/assets/{analytics-tab-I9OgZdgL.js → analytics-tab-CGLb278j.js} +1 -1
  56. package/dist/client/assets/api-keys-DR94M6tY.js +1 -0
  57. package/dist/client/assets/{api-keys-BrduPH4d.js → api-keys-DhvNJkN2.js} +1 -1
  58. package/dist/client/assets/app-editor-DOgz4u4_.js +1 -0
  59. package/dist/client/assets/{auth-BTVKfAUC.js → auth-D5OIudN4.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-BVwWvb_2.js → auth-catchall-voj5mNyq.js} +1 -1
  61. package/dist/client/assets/{auth-entry-BVFYUVVl.js → auth-entry-DCEt7Koo.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-Dr2p8hD_.js → auth-split-layout-pD3DJhnx.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-BJAzAIhG.js → authenticate-and-persist-oauth-zPIcIdzE.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-CtQKd-53.js → automation-list-row-CswpKMon.js} +1 -1
  65. package/dist/client/assets/{automation-runs-B71QxQf_.js → automation-runs-CxqN8vhg.js} +1 -1
  66. package/dist/client/assets/{automations-BoEYJP3m.js → automations-D-p7l6aV.js} +1 -1
  67. package/dist/client/assets/{autosend-t6fUCO9u.js → autosend-DLCqALaM.js} +1 -1
  68. package/dist/client/assets/{avatar-_tvfLV9T.js → avatar-D2umB7BA.js} +1 -1
  69. package/dist/client/assets/{badge-5xoC1FJQ.js → badge-Bw8ViPgC.js} +1 -1
  70. package/dist/client/assets/{block-document-CvHof2aO.js → block-document-DXF7kvxv.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-BjJYdEoK.js → breadcrumb-Dn7dmFvJ.js} +1 -1
  72. package/dist/client/assets/{buckets-DC0lhAAM.js → buckets-CGcI-9Bm.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-B5ry5wx9.js → bulk-category-panel-CR3kwZj8.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-QfuL86LE.js → capability-load-error-DCKMBU4s.js} +1 -1
  75. package/dist/client/assets/{cards-QMwTXs-C.js → cards--4pJnmpo.js} +1 -1
  76. package/dist/client/assets/{category-editor-eSTt5JDo.js → category-editor-BIfQ794g.js} +1 -1
  77. package/dist/client/assets/{cdn-tab-D1sD7Ph4.js → cdn-tab-CgGZOmGa.js} +1 -1
  78. package/dist/client/assets/{chart-9tl6Tp7O.js → chart-BrpzySCu.js} +1 -1
  79. package/dist/client/assets/{chat-context-B3FHPtyp.js → chat-context-DinE297i.js} +1 -1
  80. package/dist/client/assets/{checkbox-DdiWS6j9.js → checkbox-CT-ey5cw.js} +1 -1
  81. package/dist/client/assets/{choose-editor-Brv8AsJr.js → choose-editor-BfBNXo-F.js} +1 -1
  82. package/dist/client/assets/{cli-auth-success-DIIukxGb.js → cli-auth-success-BJzOXBI6.js} +1 -1
  83. package/dist/client/assets/{client-icons-cKM5ZcqP.js → client-icons-CA_oFtsY.js} +1 -1
  84. package/dist/client/assets/{collection-detail--i0_pJUK.js → collection-detail-B1iOm_WO.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-D_wt_RA1.js → collection-display-button-BBRTkG6Y.js} +1 -1
  86. package/dist/client/assets/{collection-search-DRdf_GYh.js → collection-search-DHv5lHKv.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-CnvktR4-.js → collection-table-wrapper-DvnK74eG.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-BxV7MP04.js → collection-tabs-DNhQiI3g.js} +1 -1
  89. package/dist/client/assets/{command-BDN-a3rJ.js → command-_G048GZz.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-DSY4uJcG.js → commerce-onboarding-B8qmp83q.js} +1 -1
  91. package/dist/client/assets/{connect-GYd0QYyw.js → connect-Cy3k8hQP.js} +1 -1
  92. package/dist/client/assets/{connect-layout-B6hgiK5r.js → connect-layout-COXT8D-K.js} +1 -1
  93. package/dist/client/assets/{connection-C75DYl44.js → connection-SEtMzoDN.js} +1 -1
  94. package/dist/client/assets/{connection-card-BaEIpCbA.js → connection-card-DtxkDClD.js} +1 -1
  95. package/dist/client/assets/{connection-detail-Cdm23aMI.js → connection-detail-CqJA1iun.js} +1 -1
  96. package/dist/client/assets/{connection-form-helpers-aQ5B6tRy.js → connection-form-helpers-D6dRRYGv.js} +1 -1
  97. package/dist/client/assets/{connections-B8QOba3u.js → connections-5ZXMsg8n.js} +1 -1
  98. package/dist/client/assets/{create-organization-dialog-BST4Ck0w.js → create-organization-dialog-C-pGZz2S.js} +1 -1
  99. package/dist/client/assets/{decopilot-sse-pool-DIVelB7F.js → decopilot-sse-pool-CTXhyZew.js} +1 -1
  100. package/dist/client/assets/{dialog-wNMMbzXr.js → dialog-Mtn1nIoa.js} +1 -1
  101. package/dist/client/assets/{domain-settings-CxJq_pNN.js → domain-settings-lnkx-svP.js} +1 -1
  102. package/dist/client/assets/{drawer-Dl4KbpLj.js → drawer-C3jHfaUG.js} +1 -1
  103. package/dist/client/assets/{dropdown-menu-BvPxOnm0.js → dropdown-menu-DUILynCt.js} +1 -1
  104. package/dist/client/assets/{e2e-tab-BiwnewGk.js → e2e-tab-CZWoEL9e.js} +1 -1
  105. package/dist/client/assets/{editor-BskznDjo.js → editor-DsNlU59a.js} +1 -1
  106. package/dist/client/assets/{empty-state-CaNGPrDs.js → empty-state-3VCBSB_w.js} +1 -1
  107. package/dist/client/assets/{empty-state-C-SubUW6.js → empty-state-BYLO506l.js} +1 -1
  108. package/dist/client/assets/{extract-connection-data-C4TyJjoX.js → extract-connection-data-CCefVh-B.js} +1 -1
  109. package/dist/client/assets/{file-explorer-B1DsBcfy.js → file-explorer-Bu2TFxr_.js} +1 -1
  110. package/dist/client/assets/{file-type-icon-DKxC4oSX.js → file-type-icon-6_UASIGZ.js} +1 -1
  111. package/dist/client/assets/{folder-icon-f4yD90eP.js → folder-icon-DzbXmg28.js} +1 -1
  112. package/dist/client/assets/{form-B76JQCy8.js → form-D65KAb61.js} +1 -1
  113. package/dist/client/assets/{general-BNu9Vb3u.js → general-rRQNKHIm.js} +1 -1
  114. package/dist/client/assets/{github-icon-CdMLfMj7.js → github-icon-CnC548ff.js} +1 -1
  115. package/dist/client/assets/{hooks-BJtZPSVy.js → hooks-B9O1RqbN.js} +1 -1
  116. package/dist/client/assets/{hosting-tab-BLjuvgys.js → hosting-tab-CMXMfhMR.js} +1 -1
  117. package/dist/client/assets/{index-zyhhgc8D.js → index-B0vDf5wi.js} +1 -1
  118. package/dist/client/assets/{index-Jy48DtbD.js → index-B49nrWN-.js} +1 -1
  119. package/dist/client/assets/{index-DR-7CxUP.js → index-B6L24DAD.js} +2 -2
  120. package/dist/client/assets/{index-4snYVWB2.js → index-BQN9jDBD.js} +1 -1
  121. package/dist/client/assets/{index-DlGxosdM.js → index-BnW_bT-u.js} +1 -1
  122. package/dist/client/assets/{index-Dj8tvdMR.js → index-CRYZFMf_.js} +1 -1
  123. package/dist/client/assets/{index-RKb_9qNN.js → index-CYlu_8PL.js} +1 -1
  124. package/dist/client/assets/{index-CwUtSIZT.js → index-CmthiGGA.js} +1 -1
  125. package/dist/client/assets/{index-CaU5DFED.js → index-DN4sqhli.js} +1 -1
  126. package/dist/client/assets/{index-DU9sTbUZ.js → index-Dk4__y1C.js} +7 -7
  127. package/dist/client/assets/{index-redirect-DSZLimlN.js → index-redirect-Bww7w76p.js} +1 -1
  128. package/dist/client/assets/{infiniteQueryObserver-DMi6D2_K.js → infiniteQueryObserver-D6CC7rGl.js} +1 -1
  129. package/dist/client/assets/{infra-billing-92jygPAU.js → infra-billing-zZiLiZFr.js} +1 -1
  130. package/dist/client/assets/{input-By-Luuj6.js → input-CqDpA5Lg.js} +1 -1
  131. package/dist/client/assets/{integration-icon-CpzKJe80.js → integration-icon-C-aFhE0G.js} +1 -1
  132. package/dist/client/assets/{invite-member-dialog-QBtFVQK3.js → invite-member-dialog-BV5PU4Fx.js} +1 -1
  133. package/dist/client/assets/{label-CHgW_ahI.js → label-O7outnvi.js} +1 -1
  134. package/dist/client/assets/{layout-9YgsD1RL.js → layout-C1YuJeP0.js} +1 -1
  135. package/dist/client/assets/{login-BjHKLMoO.js → login-Bhh0jIYN.js} +1 -1
  136. package/dist/client/assets/{markdown-BbkOj7TQ.js → markdown-D-ysurpP.js} +1 -1
  137. package/dist/client/assets/{mcp-app-renderer--rnWoHIc.js → mcp-app-renderer-CbKryO11.js} +1 -1
  138. package/dist/client/assets/{mcp-oauth-Dql553Ej.js → mcp-oauth-BqSBWKOy.js} +1 -1
  139. package/dist/client/assets/{members-D6h-8p_Y.js → members-D304F3WX.js} +1 -1
  140. package/dist/client/assets/{monaco-editor-CK-YzUmW.js → monaco-editor-aHCIr1RR.js} +1 -1
  141. package/dist/client/assets/{monitoring-stats-row-D_wXsyGn.js → monitoring-stats-row-DZj6MtGf.js} +1 -1
  142. package/dist/client/assets/{multi-select-B93qStg3.js → multi-select-DnEVr0er.js} +1 -1
  143. package/dist/client/assets/{oauth-callback-DmICfNLf.js → oauth-callback-ByPMuK8G.js} +1 -1
  144. package/dist/client/assets/{oauth-callback-ai-provider-BCYGio4s.js → oauth-callback-ai-provider-D2aycaul.js} +1 -1
  145. package/dist/client/assets/{onboarding-z3GnNpO5.js → onboarding-DyiZnJqS.js} +1 -1
  146. package/dist/client/assets/{org-layout-C-eaDwHZ.js → org-layout-BpNjHNoH.js} +1 -1
  147. package/dist/client/assets/{organization-choice-BaFzw0ii.js → organization-choice-Q0cfHshH.js} +1 -1
  148. package/dist/client/assets/{orgs-BumlFPGs.js → orgs-CZYYptVd.js} +1 -1
  149. package/dist/client/assets/{page-seo-form-DatHE4-0.js → page-seo-form-CW3aZ6CF.js} +1 -1
  150. package/dist/client/assets/{popover-zAXw_Ex4.js → popover-BL4pV0r_.js} +1 -1
  151. package/dist/client/assets/{post-calendar-BnXyVANq.js → post-calendar-CRTX1f_E.js} +1 -1
  152. package/dist/client/assets/{post-editor-DMnPDsdI.js → post-editor-Dp6v_aAB.js} +1 -1
  153. package/dist/client/assets/{primitives-zj67r-_6.js → primitives-RyYPiOF0.js} +1 -1
  154. package/dist/client/assets/{profile-DMvNb5vL.js → profile-CLrtBPxR.js} +1 -1
  155. package/dist/client/assets/{project-app-view-Bn6tqh-s.js → project-app-view-G7LbVotW.js} +1 -1
  156. package/dist/client/assets/{project-icon-DZuabjud.js → project-icon-JeEhEL2-.js} +1 -1
  157. package/dist/client/assets/{prompts-faWYk3a_.js → prompts-CmVsmYTn.js} +1 -1
  158. package/dist/client/assets/record-editor-exmTjnuk.js +1 -0
  159. package/dist/client/assets/redirect-editor-BBIm5D8S.js +1 -0
  160. package/dist/client/assets/registry-Bn5OdcL2.js +2 -0
  161. package/dist/client/assets/{registry-layout-BiksbGSO.js → registry-layout-DrhjwD4H.js} +1 -1
  162. package/dist/client/assets/{reports-o3wZ4DFb.js → reports-DtvBOCMI.js} +1 -1
  163. package/dist/client/assets/{repositories-4Ag5U4M3.js → repositories-B6S0toUd.js} +1 -1
  164. package/dist/client/assets/{repository-import-picker-Crzmlv3v.js → repository-import-picker-DYagz2R5.js} +1 -1
  165. package/dist/client/assets/{repository-picker-Dn5CWMQu.js → repository-picker-Cn4OPtpJ.js} +1 -1
  166. package/dist/client/assets/{require-capability-ry4-n_XW.js → require-capability-CzxxuNj-.js} +1 -1
  167. package/dist/client/assets/{required-auth-layout-C6sCfFoS.js → required-auth-layout-BVM8-6QX.js} +1 -1
  168. package/dist/client/assets/{reset-password-BPvYj_d6.js → reset-password-CW9fY4ke.js} +1 -1
  169. package/dist/client/assets/{review-settings-CFta44Y-.js → review-settings-DJ3M-EyY.js} +1 -1
  170. package/dist/client/assets/{roles-D-D6RtHy.js → roles-uvlGdmhQ.js} +1 -1
  171. package/dist/client/assets/{schema-CzaGiNXr.js → schema-BvZSoryO.js} +1 -1
  172. package/dist/client/assets/{scroll-area-C4NBwqyh.js → scroll-area-JDIIqvaM.js} +1 -1
  173. package/dist/client/assets/{search-input-jf5-JJb9.js → search-input-CUR8fOze.js} +1 -1
  174. package/dist/client/assets/{secrets-DNPz1kGQ.js → secrets-DKsMtuXW.js} +1 -1
  175. package/dist/client/assets/sections-editor-C3KEAn-L.js +2 -0
  176. package/dist/client/assets/{select-8-nbJ0jG.js → select-BOZacsSV.js} +1 -1
  177. package/dist/client/assets/{select-model-BN5vxFKu.js → select-model-4o4CbfhO.js} +1 -1
  178. package/dist/client/assets/{self-tool-result-Cei_02H_.js → self-tool-result-C4RZxreX.js} +1 -1
  179. package/dist/client/assets/{seo-editor-BS-_liwN.js → seo-editor-DskjTc9T.js} +1 -1
  180. package/dist/client/assets/settings-layout-Dm_0Q4Pm.js +1 -0
  181. package/dist/client/assets/{settings-sidebar-C0QwDGxU.js → settings-sidebar-D4VqOmCp.js} +1 -1
  182. package/dist/client/assets/{shell-controls-DLLmOm3e.js → shell-controls-De9PLUJZ.js} +1 -1
  183. package/dist/client/assets/{shell-layout-UiGWQtHh.js → shell-layout-Dvw9LqoP.js} +1 -1
  184. package/dist/client/assets/{skill-preview-OK-E70YW.js → skill-preview-D3DhF_pz.js} +1 -1
  185. package/dist/client/assets/{skills-REtufkzf.js → skills-Cslg8xvV.js} +1 -1
  186. package/dist/client/assets/{sso-Bl2RYEhH.js → sso-DAFi9OT1.js} +1 -1
  187. package/dist/client/assets/{store-BUZ3BxYI.js → store-g1p4BCfx.js} +1 -1
  188. package/dist/client/assets/store-registry-Bqn6QB0V.js +2 -0
  189. package/dist/client/assets/{switch-B_09jY5-.js → switch-BYeHF0BG.js} +1 -1
  190. package/dist/client/assets/{synced-repos-BNk3uyi6.js → synced-repos-B0E5UUdm.js} +1 -1
  191. package/dist/client/assets/{table-C9B_yGws.js → table-BT1nq-SA.js} +1 -1
  192. package/dist/client/assets/{tabs-yz5p2eqD.js → tabs-B6E7lwnd.js} +1 -1
  193. package/dist/client/assets/{task-board-DX0mX_sm.js → task-board-OGBoT1Px.js} +1 -1
  194. package/dist/client/assets/{task-route-DTA1f0w5.js → task-route-BcdOUsT5.js} +1 -1
  195. package/dist/client/assets/{tasks-CCt0uT1A.js → tasks-C8zd0GPa.js} +1 -1
  196. package/dist/client/assets/{textarea-DD_XQc8b.js → textarea-BK5b--SF.js} +1 -1
  197. package/dist/client/assets/{thread-intent-BKZp36M-.js → thread-intent-DxcSjR9i.js} +1 -1
  198. package/dist/client/assets/{thread-route-g3bFZsDA.js → thread-route-DaUYBBCN.js} +1 -1
  199. package/dist/client/assets/{toggle-group-OyXGZbFx.js → toggle-group-FSKzTDfN.js} +1 -1
  200. package/dist/client/assets/{toolbar-BGgBqcbD.js → toolbar-DwzHsvBz.js} +1 -1
  201. package/dist/client/assets/{toolbar-icon-button-CyWbgFMR.js → toolbar-icon-button-BA_zVSN4.js} +1 -1
  202. package/dist/client/assets/{track-BmC8g6Tw.js → track-DaqSqOC8.js} +1 -1
  203. package/dist/client/assets/{types-C6WokDyE.js → types-BiK28jkl.js} +1 -1
  204. package/dist/client/assets/{use-ai-providers-CsfPjUM-.js → use-ai-providers-B50u6e8X.js} +1 -1
  205. package/dist/client/assets/{use-automations-V8lTd1ft.js → use-automations-BD3_gyma.js} +1 -1
  206. package/dist/client/assets/{use-autosave-Bd881RwB.js → use-autosave-DooQq7bZ.js} +1 -1
  207. package/dist/client/assets/{use-connection-BM1ySErK.js → use-connection-TMRbYh3k.js} +1 -1
  208. package/dist/client/assets/{use-copy-pSJtH4fM.js → use-copy-CoVjuvxj.js} +1 -1
  209. package/dist/client/assets/{use-create-virtual-mcp-D0NidtMX.js → use-create-virtual-mcp-B3-C2RRO.js} +1 -1
  210. package/dist/client/assets/{use-date-fns-locale-DgRg5mjL.js → use-date-fns-locale-BdejrtBP.js} +1 -1
  211. package/dist/client/assets/{use-debounced-autosave-EYzF8Olk.js → use-debounced-autosave-Db8H_9Pb.js} +1 -1
  212. package/dist/client/assets/{use-debounced-value-KdzTma4G.js → use-debounced-value-DPLRD8-W.js} +1 -1
  213. package/dist/client/assets/{use-decopilot-events-BXOAX3zK.js → use-decopilot-events-CjFVHQZb.js} +1 -1
  214. package/dist/client/assets/{use-delete-connection-BbNOjW2l.js → use-delete-connection--2IP5uqZ.js} +1 -1
  215. package/dist/client/assets/{use-deployment-admin-BASh3KDk.js → use-deployment-admin-BwaLrJwL.js} +1 -1
  216. package/dist/client/assets/{use-destination-route-DZ6zuyom.js → use-destination-route-Zd6j476J.js} +1 -1
  217. package/dist/client/assets/{use-file-configs-BRCZqxCS.js → use-file-configs-Sh5GOPvh.js} +1 -1
  218. package/dist/client/assets/{use-infinite-scroll-CqmvxgxE.js → use-infinite-scroll-Dl8d9CLm.js} +1 -1
  219. package/dist/client/assets/{use-join-requests-D-siqVP0.js → use-join-requests-ChMW9c2G.js} +1 -1
  220. package/dist/client/assets/{use-mcp-auth-status-CkfQLxM4.js → use-mcp-auth-status-C1JTdHkR.js} +1 -1
  221. package/dist/client/assets/{use-mcp-client-Cjw7oL0k.js → use-mcp-client-Cax56Mjh.js} +1 -1
  222. package/dist/client/assets/{use-mcp-prompts-BN9qi7Ix.js → use-mcp-prompts-C0Wrdyt6.js} +1 -1
  223. package/dist/client/assets/{use-mcp-tools-DMULZKMD.js → use-mcp-tools-BLeX1Q2O.js} +1 -1
  224. package/dist/client/assets/{use-members-DhvUWOTO.js → use-members-7j5jHZ7Z.js} +1 -1
  225. package/dist/client/assets/{use-navigate-to-agent-BtEQtkbQ.js → use-navigate-to-agent-jhCtf7Gm.js} +1 -1
  226. package/dist/client/assets/{use-org-auth-client-5eX91FAP.js → use-org-auth-client-BExe73X2.js} +1 -1
  227. package/dist/client/assets/{use-org-notice-CnZTeX-0.js → use-org-notice-DNXr0XVK.js} +1 -1
  228. package/dist/client/assets/{use-org-sso-CF4YFYU9.js → use-org-sso-OdlE-h4c.js} +1 -1
  229. package/dist/client/assets/{use-organization-roles-W-c6xLKD.js → use-organization-roles-IWtGaHUs.js} +1 -1
  230. package/dist/client/assets/{use-organization-settings-Di523P_b.js → use-organization-settings-D1O8VQmJ.js} +1 -1
  231. package/dist/client/assets/{use-panel-navigate-BA5KTGnu.js → use-panel-navigate-DmNyg7nn.js} +1 -1
  232. package/dist/client/assets/{use-registry-connections-bgQe6Edq.js → use-registry-connections-DOjcZOuU.js} +1 -1
  233. package/dist/client/assets/{use-secrets-DWw60yIy.js → use-secrets-CEepd5uO.js} +1 -1
  234. package/dist/client/assets/{use-section-preview-base-Dne8hXr_.js → use-section-preview-base-BP6tvjBv.js} +1 -1
  235. package/dist/client/assets/{use-status-sounds-CZvvi-5S.js → use-status-sounds-DAgNQHf5.js} +1 -1
  236. package/dist/client/assets/{use-tags-B-RutSus.js → use-tags-CIbkSUFz.js} +1 -1
  237. package/dist/client/assets/{use-view-mode-86puchYT.js → use-view-mode-Cm9MVWiQ.js} +1 -1
  238. package/dist/client/assets/{use-virtual-mcp-DLU-VkLe.js → use-virtual-mcp-CZkdE13Q.js} +1 -1
  239. package/dist/client/assets/useInfiniteQuery-B8UsGsm7.js +1 -0
  240. package/dist/client/assets/useSuspenseInfiniteQuery-3MueJOYv.js +1 -0
  241. package/dist/client/assets/{users-BT256VvZ.js → users-Cc2B6j6q.js} +1 -1
  242. package/dist/client/assets/{variant-calendar-DWf9sjyV.js → variant-calendar-BvyCZlPl.js} +1 -1
  243. package/dist/client/assets/{view-mode-toggle-CB1VuRxL.js → view-mode-toggle-Cc1WLsRL.js} +1 -1
  244. package/dist/client/index.html +1 -1
  245. package/dist/server/cli.js +366 -366
  246. package/dist/server/migrate-dbos.js +2 -2
  247. package/dist/server/server.js +272 -272
  248. package/package.json +1 -1
  249. package/dist/client/assets/api-keys-BBBNaWWJ.js +0 -1
  250. package/dist/client/assets/app-editor-BzjPUgJu.js +0 -1
  251. package/dist/client/assets/record-editor-BGEMjZVj.js +0 -1
  252. package/dist/client/assets/redirect-editor-BlQ9ZBG7.js +0 -1
  253. package/dist/client/assets/registry-Do5Holmd.js +0 -2
  254. package/dist/client/assets/sections-editor-CiB_HyuR.js +0 -2
  255. package/dist/client/assets/settings-layout-BWoejjac.js +0 -1
  256. package/dist/client/assets/store-registry-DemSgqBf.js +0 -2
  257. package/dist/client/assets/useInfiniteQuery-7dgy4-tR.js +0 -1
  258. package/dist/client/assets/useSuspenseInfiniteQuery-DBrABtQo.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.345.1",
3
+ "version": "4.345.3",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as o,j as r}from"./index-DR-7CxUP.js";import{O as m}from"./api-keys-BrduPH4d.js";import{R as p}from"./require-capability-ry4-n_XW.js";import"./AlertCircle-D5wzOxIg.js";import"./Copy01-CQ5n9k6R.js";import"./Key01-D_IxGQOL.js";import"./Plus-BZSUkwsF.js";import"./Trash01-DCX9ydiU.js";import"./alert-dialog-BxdFiiIi.js";import"./dialog-wNMMbzXr.js";import"./input-By-Luuj6.js";import"./label-CHgW_ahI.js";import"./use-mcp-client-Cjw7oL0k.js";import"./constants-Daqiz8AS.js";import"./auth-BTVKfAUC.js";import"./access-gate-DD56oGJy.js";import"./capability-load-error-QfuL86LE.js";function A(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{A as default};
@@ -1 +0,0 @@
1
- import{c as jt,b as Bt,r as A,j as o,l as _t,h as wt,t as ht}from"./index-DR-7CxUP.js";import{b as At}from"./chat-context-B3FHPtyp.js";import{i as Et}from"./ChevronRight-DyhM_Luf.js";import{S as Nt}from"./scroll-area-C4NBwqyh.js";import{u as Rt,A as Tt}from"./use-section-preview-base-Dne8hXr_.js";import{n as Ct,r as Kt,c as Pt,d as Ft,e as Ot,g as Ut,h as $t,S as It,i as zt,j as Lt}from"./index-DU9sTbUZ.js";import"./use-panel-navigate-BA5KTGnu.js";import"./use-destination-route-DZ6zuyom.js";import"./autosend-t6fUCO9u.js";import"./thread-intent-BKZp36M-.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BJtZPSVy.js";import"./use-mcp-client-Cjw7oL0k.js";import"./constants-Daqiz8AS.js";import"./auth-BTVKfAUC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DIVelB7F.js";import"./task-board-DX0mX_sm.js";import"./schema-CzaGiNXr.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DLU-VkLe.js";import"./use-ai-providers-CsfPjUM-.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BXOAX3zK.js";import"./thread-route-g3bFZsDA.js";import"./dialog-wNMMbzXr.js";import"./Check-Bqh0edDs.js";import"./Copy01-CQ5n9k6R.js";import"./Download01-EHABWuSq.js";import"./use-organization-settings-Di523P_b.js";import"./select-8-nbJ0jG.js";import"./ChevronUp-CGseLBwf.js";import"./agent-icon-B7AXGQ6P.js";import"./AlertCircle-D5wzOxIg.js";import"./Tool01-CgvePMtM.js";import"./ArrowUp-_u4Yru0Q.js";import"./ArrowLeft-Beb7uT2a.js";import"./Tool02-_HC8oqfU.js";import"./ArrowRight-Du9XgC-I.js";import"./TrendUp01-DhL5-hJo.js";import"./ZoomOut-DiztYlpQ.js";import"./Users03-BZkJWCNu.js";import"./CheckCircle-P3KELI_n.js";import"./ChevronSelectorVertical-S2WVRFJv.js";import"./DotsVertical-CXA4FBF-.js";import"./UserSquare-CpUQtm07.js";import"./CreditCard01-DQ2UyAUW.js";import"./Settings02-3O7I-4oK.js";import"./Eye-4ikW46Xl.js";import"./Share07-B043tEsF.js";import"./GitBranch01-rChCKXuD.js";import"./Globe01-DQGNcxVn.js";import"./XClose-C2dpX0F_.js";import"./HardDrive-CALvWP4_.js";import"./Image01-BrxwhCeX.js";import"./Key01-D_IxGQOL.js";import"./Link01-DvvkHs6T.js";import"./LinkExternal01-B4pNNDj3.js";import"./Monitor01-Cb0G367h.js";import"./Sun-BUQJT4KF.js";import"./Package-Bfk8OrRH.js";import"./Palette-B6tq__pc.js";import"./Play-BKI4FgKL.js";import"./Plus-BZSUkwsF.js";import"./SearchMd-CC2qYhKq.js";import"./Shield01-DSyesTES.js";import"./Stars01-D0DXnyE9.js";import"./Trash01-DCX9ydiU.js";import"./Upload01-CNkQbAmi.js";import"./User01-cnJUdVWa.js";import"./Users01-CPNdhBFx.js";import"./XCircle-4con0UUu.js";import"./Zap-Bsbv5icR.js";import"./input-By-Luuj6.js";import"./automation-runs-B71QxQf_.js";import"./useInfiniteQuery-7dgy4-tR.js";import"./infiniteQueryObserver-DMi6D2_K.js";import"./use-connection-BM1ySErK.js";import"./table-C9B_yGws.js";import"./empty-state-C-SubUW6.js";import"./use-infinite-scroll-CqmvxgxE.js";import"./use-members-DhvUWOTO.js";import"./use-org-auth-client-5eX91FAP.js";import"./use-automations-V8lTd1ft.js";import"./useSuspenseInfiniteQuery-DBrABtQo.js";import"./avatar-_tvfLV9T.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-pSJtH4fM.js";import"./markdown-BbkOj7TQ.js";import"./monaco-editor-CK-YzUmW.js";import"./editor-BskznDjo.js";import"./mcp-app-renderer--rnWoHIc.js";import"./types-C6WokDyE.js";import"./shell-layout-UiGWQtHh.js";import"./project-icon-DZuabjud.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-BDN-a3rJ.js";import"./index-Jy48DtbD.js";import"./required-auth-layout-C6sCfFoS.js";import"./use-org-sso-CF4YFYU9.js";import"./use-org-notice-CnZTeX-0.js";import"./integration-icon-CpzKJe80.js";import"./use-navigate-to-agent-BtEQtkbQ.js";import"./use-mcp-prompts-BN9qi7Ix.js";import"./form-B76JQCy8.js";import"./label-CHgW_ahI.js";import"./file-type-icon-DKxC4oSX.js";import"./drawer-Dl4KbpLj.js";import"./collection-search-DRdf_GYh.js";import"./tabs-yz5p2eqD.js";import"./toggle-group-OyXGZbFx.js";import"./task-route-DTA1f0w5.js";import"./extract-connection-data-C4TyJjoX.js";import"./metadata-dUsYcpuu.js";import"./connection-C75DYl44.js";import"./connection-card-BaEIpCbA.js";import"./use-registry-connections-bgQe6Edq.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DD_XQc8b.js";import"./connection-form-helpers-aQ5B6tRy.js";import"./authenticate-and-persist-oauth-BJAzAIhG.js";import"./mcp-oauth-Dql553Ej.js";import"./collection-tabs-BxV7MP04.js";import"./badge-5xoC1FJQ.js";import"./use-file-configs-BRCZqxCS.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BvPxOnm0.js";import"./popover-zAXw_Ex4.js";import"./github-icon-CdMLfMj7.js";import"./get-initials-D-f_fDFw.js";import"./select-model-BN5vxFKu.js";import"./checkbox-DdiWS6j9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-f4yD90eP.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CZvvi-5S.js";import"./toolbar-BGgBqcbD.js";import"./use-mcp-tools-DMULZKMD.js";import"./skill-preview-OK-E70YW.js";import"./use-date-fns-locale-DgRg5mjL.js";import"./alert-dialog-BxdFiiIi.js";import"./use-debounced-autosave-EYzF8Olk.js";import"./search-input-jf5-JJb9.js";import"./use-mcp-auth-status-CkfQLxM4.js";import"./switch-B_09jY5-.js";import"./repository-import-picker-Crzmlv3v.js";import"./repository-picker-Dn5CWMQu.js";import"./use-debounced-value-KdzTma4G.js";import"./use-secrets-DWw60yIy.js";import"./client-icons-cKM5ZcqP.js";import"./connect-layout-B6hgiK5r.js";import"./self-tool-result-Cei_02H_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BmC8g6Tw.js";import"./use-tags-B-RutSus.js";import"./breadcrumb-BjJYdEoK.js";import"./toolbar-icon-button-CyWbgFMR.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CtQKd-53.js";import"./site-error--i37Vnuw.js";import"./cards-QMwTXs-C.js";function Vt(n,t){const m=(n.title||n.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),i=/^[A-Za-z]/.test(m)&&m.length>0?m:"Section",s=Ct(t,i);return{blockKey:s,data:{__resolveType:n.resolveType,name:s}}}function Jr(n){const t=jt.c(79),{orgSlug:m,virtualMcpId:i,branch:s,blockKey:p,block:x,meta:a,decofile:l,title:bt,excludeFields:Z,schemaPending:lt,previewBaseUrl:ct}=n,D=lt===void 0?!1:lt,H=ct===void 0?null:ct,G=At()?.taskId??null,c=Bt();let N;t[0]!==H||t[1]!==i?(N={virtualMcpId:i,sandboxUrl:H},t[0]=H,t[1]=i,t[2]=N):N=t[2];const h=Rt(N),v=typeof x?.__resolveType=="string"?x.__resolveType:"";let R;t[3]!==Z||t[4]!==a||t[5]!==v?(R=Kt(v,a,Z),t[3]=Z,t[4]=a,t[5]=v,t[6]=R):R=t[6];const b=R;let T;t[7]!==b?(T=!!b&&Object.keys(b.properties??{}).length>0,t[7]=b,t[8]=T):T=t[8];const J=T,dt=bt??(x?Pt(p,x,a):p);let C;t[9]!==s||t[10]!==m||t[11]!==i?(C={orgSlug:m,virtualMcpId:i,branch:s},t[9]=s,t[10]=m,t[11]=i,t[12]=C):C=t[12];const{save:S,flush:Q,isPending:W}=Ft(C);let K;t[13]!==s||t[14]!==m||t[15]!==i?(K={orgSlug:m,virtualMcpId:i,branch:s},t[13]=s,t[14]=m,t[15]=i,t[16]=K):K=t[16];const X=Ot(K);let P;t[17]!==S?(P=zt((e,r)=>S(e,r)),t[17]=S,t[18]=P):P=t[18];const Y=P,[vt,St]=A.useState(p),[tt,ut]=A.useState(null),[et,ft]=A.useState(0);let F;t[19]===Symbol.for("react.memo_cache_sentinel")?(F=[],t[19]=F):F=t[19];const[g,xt]=A.useState(F),[ot,d]=A.useState(!1),O=A.useRef(null);vt!==p&&(St(p),ut(null),ft(Mt),xt([]));let U;t[20]!==x?(U=x??{},t[20]=x,t[21]=U):U=t[21];const rt=U;let y;t[22]!==tt?(y=tt??{},t[22]=tt,t[23]=y):y=t[23];let $;t[24]!==rt||t[25]!==y?($={...rt,...y},t[24]=rt,t[25]=y,t[26]=$):$=t[26];const it=$;let I;t[27]!==p||t[28]!==v||t[29]!==S?(I=e=>{const r=e;ut(r),S(p,{...r,__resolveType:v})},t[27]=p,t[28]=v,t[29]=S,t[30]=I):I=t[30];const mt=I;let z;t[31]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{xt(e)},t[31]=z):z=t[31];const E=z;let L;t[32]!==l||t[33]!==Q||t[34]!==X||t[35]!==c?(L=async(e,r)=>{try{const{blockKey:u,data:f}=Vt(e,l);await X.mutateAsync({blockKey:u,data:f}),ht.success(c("sandbox.appEditor.createdSection",{name:u})),r({__resolveType:u}),Q()}catch(u){const f=u,kt=f instanceof Error?f.message:c("sandbox.appEditor.failedAddSection");throw ht.error(kt),f}},t[32]=l,t[33]=Q,t[34]=X,t[35]=c,t[36]=L):L=t[36];const k=L;let V;t[37]!==d?(V=e=>{O.current=e.append,d(!0)},t[37]=d,t[38]=V):V=t[38];const st=V;let q;t[39]!==k||t[40]!==d?(q=async e=>{const r=O.current;if(r)try{await k(e,u=>{r(u),d(!1),O.current=null})}catch{}},t[39]=k,t[40]=d,t[41]=q):q=t[41];const pt=q,at=g.length>0?[dt,...g]:[],gt="flex h-full flex-col",yt="flex h-12 shrink-0 items-center justify-between border-b px-6",nt=at.length>0?o.jsx("nav",{"aria-label":c("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:at.map((e,r)=>{const u=r===at.length-1,f=Ut(e);return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(Et,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{E(r===0?[]:$t(g,r)),ft(qt)},title:f,className:_t("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:dt});let j;t[42]!==W?(j=o.jsx(Lt,{isPending:W,isError:!1}),t[42]=W,t[43]=j):j=t[43];let B;t[44]!==nt||t[45]!==j?(B=o.jsxs("div",{className:yt,children:[nt,j]}),t[44]=nt,t[45]=j,t[46]=B):B=t[46];let _;t[47]!==p||t[48]!==s||t[49]!==g||t[50]!==l||t[51]!==it||t[52]!==et||t[53]!==k||t[54]!==E||t[55]!==mt||t[56]!==st||t[57]!==J||t[58]!==a||t[59]!==m||t[60]!==Y||t[61]!==b||t[62]!==D||t[63]!==h||t[64]!==c||t[65]!==G||t[66]!==i?(_=o.jsx(Nt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:J?o.jsx(It,{schema:b,value:it,onChange:mt,basePath:"",breadcrumbPath:g,onBreadcrumbChange:E,decofile:l,meta:a,onSaveReferencedBlock:Y,previewBaseUrl:h,onAddSectionItem:k,onRequestAddSection:st,sandbox:{orgSlug:m,virtualMcpId:i,branch:s,threadId:G}},`${p}:${et}`):D?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(wt,{className:"size-4"}),c("sandbox.appEditor.loadingSchema")]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:c("sandbox.appEditor.noEditableSchema")})})})}),t[47]=p,t[48]=s,t[49]=g,t[50]=l,t[51]=it,t[52]=et,t[53]=k,t[54]=E,t[55]=mt,t[56]=st,t[57]=J,t[58]=a,t[59]=m,t[60]=Y,t[61]=b,t[62]=D,t[63]=h,t[64]=c,t[65]=G,t[66]=i,t[67]=_):_=t[67];let w;t[68]!==ot||t[69]!==l||t[70]!==pt||t[71]!==a||t[72]!==h||t[73]!==d?(w=h&&o.jsx(Tt,{open:ot,onOpenChange:e=>{d(e),e||(O.current=null)},meta:a,decofile:l,previewBaseUrl:h,onSelect:e=>{pt(e)}}),t[68]=ot,t[69]=l,t[70]=pt,t[71]=a,t[72]=h,t[73]=d,t[74]=w):w=t[74];let M;return t[75]!==B||t[76]!==_||t[77]!==w?(M=o.jsxs("div",{className:gt,children:[B,_,w]}),t[75]=B,t[76]=_,t[77]=w,t[78]=M):M=t[78],M}function qt(n){return n+1}function Mt(n){return n+1}export{Jr as AppEditor};
@@ -1 +0,0 @@
1
- import{c as B,b as L,j as r}from"./index-DR-7CxUP.js";import{I as A}from"./input-By-Luuj6.js";import{L as F}from"./label-CHgW_ahI.js";import{S as R,b as z,a as J,d as O,c as V}from"./select-8-nbJ0jG.js";import{T as D}from"./textarea-DD_XQc8b.js";import{e as M,w as $,j as q,y as G,J as H}from"./index-DU9sTbUZ.js";import{s as P}from"./primitives-zj67r-_6.js";import{u as Q}from"./use-autosave-Bd881RwB.js";import"./Check-Bqh0edDs.js";import"./ChevronUp-CGseLBwf.js";import"./ArrowUp-_u4Yru0Q.js";import"./chat-context-B3FHPtyp.js";import"./use-panel-navigate-BA5KTGnu.js";import"./use-destination-route-DZ6zuyom.js";import"./autosend-t6fUCO9u.js";import"./thread-intent-BKZp36M-.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BJtZPSVy.js";import"./use-mcp-client-Cjw7oL0k.js";import"./constants-Daqiz8AS.js";import"./auth-BTVKfAUC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DIVelB7F.js";import"./task-board-DX0mX_sm.js";import"./schema-CzaGiNXr.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DLU-VkLe.js";import"./use-ai-providers-CsfPjUM-.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BXOAX3zK.js";import"./thread-route-g3bFZsDA.js";import"./dialog-wNMMbzXr.js";import"./Copy01-CQ5n9k6R.js";import"./Download01-EHABWuSq.js";import"./use-organization-settings-Di523P_b.js";import"./automation-runs-B71QxQf_.js";import"./agent-icon-B7AXGQ6P.js";import"./AlertCircle-D5wzOxIg.js";import"./Tool01-CgvePMtM.js";import"./ArrowLeft-Beb7uT2a.js";import"./Tool02-_HC8oqfU.js";import"./ArrowRight-Du9XgC-I.js";import"./TrendUp01-DhL5-hJo.js";import"./ZoomOut-DiztYlpQ.js";import"./Users03-BZkJWCNu.js";import"./CheckCircle-P3KELI_n.js";import"./ChevronRight-DyhM_Luf.js";import"./ChevronSelectorVertical-S2WVRFJv.js";import"./DotsVertical-CXA4FBF-.js";import"./UserSquare-CpUQtm07.js";import"./CreditCard01-DQ2UyAUW.js";import"./Settings02-3O7I-4oK.js";import"./Eye-4ikW46Xl.js";import"./Share07-B043tEsF.js";import"./GitBranch01-rChCKXuD.js";import"./Globe01-DQGNcxVn.js";import"./XClose-C2dpX0F_.js";import"./HardDrive-CALvWP4_.js";import"./Image01-BrxwhCeX.js";import"./Key01-D_IxGQOL.js";import"./Link01-DvvkHs6T.js";import"./LinkExternal01-B4pNNDj3.js";import"./Monitor01-Cb0G367h.js";import"./Sun-BUQJT4KF.js";import"./Package-Bfk8OrRH.js";import"./Palette-B6tq__pc.js";import"./Play-BKI4FgKL.js";import"./Plus-BZSUkwsF.js";import"./SearchMd-CC2qYhKq.js";import"./Shield01-DSyesTES.js";import"./Stars01-D0DXnyE9.js";import"./Trash01-DCX9ydiU.js";import"./Upload01-CNkQbAmi.js";import"./User01-cnJUdVWa.js";import"./Users01-CPNdhBFx.js";import"./XCircle-4con0UUu.js";import"./Zap-Bsbv5icR.js";import"./useInfiniteQuery-7dgy4-tR.js";import"./infiniteQueryObserver-DMi6D2_K.js";import"./use-connection-BM1ySErK.js";import"./table-C9B_yGws.js";import"./empty-state-C-SubUW6.js";import"./use-infinite-scroll-CqmvxgxE.js";import"./use-members-DhvUWOTO.js";import"./use-org-auth-client-5eX91FAP.js";import"./use-automations-V8lTd1ft.js";import"./useSuspenseInfiniteQuery-DBrABtQo.js";import"./avatar-_tvfLV9T.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-pSJtH4fM.js";import"./markdown-BbkOj7TQ.js";import"./monaco-editor-CK-YzUmW.js";import"./editor-BskznDjo.js";import"./mcp-app-renderer--rnWoHIc.js";import"./types-C6WokDyE.js";import"./shell-layout-UiGWQtHh.js";import"./project-icon-DZuabjud.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-BDN-a3rJ.js";import"./index-Jy48DtbD.js";import"./required-auth-layout-C6sCfFoS.js";import"./use-org-sso-CF4YFYU9.js";import"./use-org-notice-CnZTeX-0.js";import"./integration-icon-CpzKJe80.js";import"./use-navigate-to-agent-BtEQtkbQ.js";import"./use-mcp-prompts-BN9qi7Ix.js";import"./form-B76JQCy8.js";import"./file-type-icon-DKxC4oSX.js";import"./drawer-Dl4KbpLj.js";import"./collection-search-DRdf_GYh.js";import"./tabs-yz5p2eqD.js";import"./toggle-group-OyXGZbFx.js";import"./task-route-DTA1f0w5.js";import"./extract-connection-data-C4TyJjoX.js";import"./metadata-dUsYcpuu.js";import"./connection-C75DYl44.js";import"./connection-card-BaEIpCbA.js";import"./use-registry-connections-bgQe6Edq.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-aQ5B6tRy.js";import"./authenticate-and-persist-oauth-BJAzAIhG.js";import"./mcp-oauth-Dql553Ej.js";import"./collection-tabs-BxV7MP04.js";import"./badge-5xoC1FJQ.js";import"./use-file-configs-BRCZqxCS.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BvPxOnm0.js";import"./popover-zAXw_Ex4.js";import"./github-icon-CdMLfMj7.js";import"./get-initials-D-f_fDFw.js";import"./select-model-BN5vxFKu.js";import"./checkbox-DdiWS6j9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-f4yD90eP.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CZvvi-5S.js";import"./toolbar-BGgBqcbD.js";import"./use-mcp-tools-DMULZKMD.js";import"./skill-preview-OK-E70YW.js";import"./use-date-fns-locale-DgRg5mjL.js";import"./alert-dialog-BxdFiiIi.js";import"./use-debounced-autosave-EYzF8Olk.js";import"./scroll-area-C4NBwqyh.js";import"./search-input-jf5-JJb9.js";import"./use-mcp-auth-status-CkfQLxM4.js";import"./switch-B_09jY5-.js";import"./repository-import-picker-Crzmlv3v.js";import"./repository-picker-Dn5CWMQu.js";import"./use-debounced-value-KdzTma4G.js";import"./use-secrets-DWw60yIy.js";import"./client-icons-cKM5ZcqP.js";import"./connect-layout-B6hgiK5r.js";import"./self-tool-result-Cei_02H_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BmC8g6Tw.js";import"./use-tags-B-RutSus.js";import"./breadcrumb-BjJYdEoK.js";import"./toolbar-icon-button-CyWbgFMR.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CtQKd-53.js";import"./site-error--i37Vnuw.js";import"./cards-QMwTXs-C.js";const U={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},W={authors:"sandbox.recordEditor.titleAuthor"};function oi(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=M(h);let g;t[4]!==f||t[5]!==a?(g=$(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:G(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=Q(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=W[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=U[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(J,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(V,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(D,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{oi as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as lt,b as at,j as r}from"./index-DR-7CxUP.js";import{C as ct}from"./checkbox-DdiWS6j9.js";import{I as rt}from"./input-By-Luuj6.js";import{L as et}from"./label-CHgW_ahI.js";import{c as dt,b as nt,a as ft,d as xt,S as ht}from"./select-8-nbJ0jG.js";import{e as ut,bD as bt,j as yt,bE as jt,bF as vt}from"./index-DU9sTbUZ.js";import{u as Et}from"./use-autosave-Bd881RwB.js";import"./Check-Bqh0edDs.js";import"./ChevronUp-CGseLBwf.js";import"./ArrowUp-_u4Yru0Q.js";import"./chat-context-B3FHPtyp.js";import"./use-panel-navigate-BA5KTGnu.js";import"./use-destination-route-DZ6zuyom.js";import"./autosend-t6fUCO9u.js";import"./thread-intent-BKZp36M-.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BJtZPSVy.js";import"./use-mcp-client-Cjw7oL0k.js";import"./constants-Daqiz8AS.js";import"./auth-BTVKfAUC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DIVelB7F.js";import"./task-board-DX0mX_sm.js";import"./schema-CzaGiNXr.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DLU-VkLe.js";import"./use-ai-providers-CsfPjUM-.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BXOAX3zK.js";import"./thread-route-g3bFZsDA.js";import"./dialog-wNMMbzXr.js";import"./Copy01-CQ5n9k6R.js";import"./Download01-EHABWuSq.js";import"./use-organization-settings-Di523P_b.js";import"./automation-runs-B71QxQf_.js";import"./agent-icon-B7AXGQ6P.js";import"./AlertCircle-D5wzOxIg.js";import"./Tool01-CgvePMtM.js";import"./ArrowLeft-Beb7uT2a.js";import"./Tool02-_HC8oqfU.js";import"./ArrowRight-Du9XgC-I.js";import"./TrendUp01-DhL5-hJo.js";import"./ZoomOut-DiztYlpQ.js";import"./Users03-BZkJWCNu.js";import"./CheckCircle-P3KELI_n.js";import"./ChevronRight-DyhM_Luf.js";import"./ChevronSelectorVertical-S2WVRFJv.js";import"./DotsVertical-CXA4FBF-.js";import"./UserSquare-CpUQtm07.js";import"./CreditCard01-DQ2UyAUW.js";import"./Settings02-3O7I-4oK.js";import"./Eye-4ikW46Xl.js";import"./Share07-B043tEsF.js";import"./GitBranch01-rChCKXuD.js";import"./Globe01-DQGNcxVn.js";import"./XClose-C2dpX0F_.js";import"./HardDrive-CALvWP4_.js";import"./Image01-BrxwhCeX.js";import"./Key01-D_IxGQOL.js";import"./Link01-DvvkHs6T.js";import"./LinkExternal01-B4pNNDj3.js";import"./Monitor01-Cb0G367h.js";import"./Sun-BUQJT4KF.js";import"./Package-Bfk8OrRH.js";import"./Palette-B6tq__pc.js";import"./Play-BKI4FgKL.js";import"./Plus-BZSUkwsF.js";import"./SearchMd-CC2qYhKq.js";import"./Shield01-DSyesTES.js";import"./Stars01-D0DXnyE9.js";import"./Trash01-DCX9ydiU.js";import"./Upload01-CNkQbAmi.js";import"./User01-cnJUdVWa.js";import"./Users01-CPNdhBFx.js";import"./XCircle-4con0UUu.js";import"./Zap-Bsbv5icR.js";import"./useInfiniteQuery-7dgy4-tR.js";import"./infiniteQueryObserver-DMi6D2_K.js";import"./use-connection-BM1ySErK.js";import"./table-C9B_yGws.js";import"./empty-state-C-SubUW6.js";import"./use-infinite-scroll-CqmvxgxE.js";import"./use-members-DhvUWOTO.js";import"./use-org-auth-client-5eX91FAP.js";import"./use-automations-V8lTd1ft.js";import"./useSuspenseInfiniteQuery-DBrABtQo.js";import"./avatar-_tvfLV9T.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-pSJtH4fM.js";import"./markdown-BbkOj7TQ.js";import"./monaco-editor-CK-YzUmW.js";import"./editor-BskznDjo.js";import"./mcp-app-renderer--rnWoHIc.js";import"./types-C6WokDyE.js";import"./shell-layout-UiGWQtHh.js";import"./project-icon-DZuabjud.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-BDN-a3rJ.js";import"./index-Jy48DtbD.js";import"./required-auth-layout-C6sCfFoS.js";import"./use-org-sso-CF4YFYU9.js";import"./use-org-notice-CnZTeX-0.js";import"./integration-icon-CpzKJe80.js";import"./use-navigate-to-agent-BtEQtkbQ.js";import"./use-mcp-prompts-BN9qi7Ix.js";import"./form-B76JQCy8.js";import"./file-type-icon-DKxC4oSX.js";import"./drawer-Dl4KbpLj.js";import"./collection-search-DRdf_GYh.js";import"./tabs-yz5p2eqD.js";import"./toggle-group-OyXGZbFx.js";import"./task-route-DTA1f0w5.js";import"./extract-connection-data-C4TyJjoX.js";import"./metadata-dUsYcpuu.js";import"./connection-C75DYl44.js";import"./connection-card-BaEIpCbA.js";import"./use-registry-connections-bgQe6Edq.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DD_XQc8b.js";import"./connection-form-helpers-aQ5B6tRy.js";import"./authenticate-and-persist-oauth-BJAzAIhG.js";import"./mcp-oauth-Dql553Ej.js";import"./collection-tabs-BxV7MP04.js";import"./badge-5xoC1FJQ.js";import"./use-file-configs-BRCZqxCS.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BvPxOnm0.js";import"./popover-zAXw_Ex4.js";import"./github-icon-CdMLfMj7.js";import"./get-initials-D-f_fDFw.js";import"./select-model-BN5vxFKu.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-f4yD90eP.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CZvvi-5S.js";import"./toolbar-BGgBqcbD.js";import"./use-mcp-tools-DMULZKMD.js";import"./skill-preview-OK-E70YW.js";import"./use-date-fns-locale-DgRg5mjL.js";import"./alert-dialog-BxdFiiIi.js";import"./use-debounced-autosave-EYzF8Olk.js";import"./scroll-area-C4NBwqyh.js";import"./search-input-jf5-JJb9.js";import"./use-mcp-auth-status-CkfQLxM4.js";import"./switch-B_09jY5-.js";import"./repository-import-picker-Crzmlv3v.js";import"./repository-picker-Dn5CWMQu.js";import"./use-debounced-value-KdzTma4G.js";import"./use-secrets-DWw60yIy.js";import"./client-icons-cKM5ZcqP.js";import"./connect-layout-B6hgiK5r.js";import"./self-tool-result-Cei_02H_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BmC8g6Tw.js";import"./use-tags-B-RutSus.js";import"./breadcrumb-BjJYdEoK.js";import"./toolbar-icon-button-CyWbgFMR.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CtQKd-53.js";import"./site-error--i37Vnuw.js";import"./cards-QMwTXs-C.js";const gt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function Ci(it){const t=lt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let M;t[4]!==Z?(M=bt(Z),t[4]=Z,t[5]=M):M=t[5];const ot=M;let Y;t[6]!==X||t[7]!==s?(Y=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=Y):Y=t[8];const[o,tt]=Et(ot,Y);let $;t[9]!==o||t[10]!==tt?($=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=$):$=t[11];const m=$;let p;t[12]!==e?(p=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=p):p=t[13];let l;t[14]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[14]=p,t[15]=l):l=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==l||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[19]=l,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let E;t[46]!==e?(E=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=E):E=t[47];let g;t[48]!==m?(g=i=>m({to:i.target.value}),t[48]=m,t[49]=g):g=t[49];let P;t[50]!==o.to||t[51]!==E||t[52]!==g?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:E,onChange:g,className:"h-10"}),t[50]=o.to,t[51]=E,t[52]=g,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const pt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=gt.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let F;t[74]!==_?(F=r.jsx(xt,{children:_}),t[74]=_,t[75]=F):F=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==F?(L=r.jsxs(ht,{value:pt,onValueChange:w,children:[I,F]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=F,t[80]=L):L=t[80];let q;t[81]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsx("strong",{children:"Temporary"}),t[81]=q):q=t[81];let z;t[82]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",q," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=z):z=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,z]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let D;t[86]!==m?(D=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=D):D=t[87];let K;t[88]!==o.discardQueryParameters||t[89]!==D?(K=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:D}),t[88]=o.discardQueryParameters,t[89]=D,t[90]=K):K=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==K||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[K,B]}),t[95]=K,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let G;return t[103]!==U||t[104]!==c?(G=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=G):G=t[105],G}export{Ci as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BiksbGSO.js","assets/index-DR-7CxUP.js","assets/index-MAAh901k.css","assets/Tool02-_HC8oqfU.js","assets/CheckCircle-P3KELI_n.js","assets/Settings02-3O7I-4oK.js","assets/use-mcp-client-Cjw7oL0k.js","assets/constants-Daqiz8AS.js","assets/auth-BTVKfAUC.js","assets/useInfiniteQuery-7dgy4-tR.js","assets/infiniteQueryObserver-DMi6D2_K.js","assets/badge-5xoC1FJQ.js","assets/input-By-Luuj6.js","assets/dropdown-menu-BvPxOnm0.js","assets/Check-Bqh0edDs.js","assets/ChevronRight-DyhM_Luf.js","assets/DotsVertical-CXA4FBF-.js","assets/table-C9B_yGws.js","assets/toggle-group-OyXGZbFx.js","assets/use-view-mode-86puchYT.js","assets/Globe01-DQGNcxVn.js","assets/SearchMd-CC2qYhKq.js","assets/dialog-wNMMbzXr.js","assets/AlertCircle-D5wzOxIg.js","assets/Download01-EHABWuSq.js","assets/Upload01-CNkQbAmi.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BxdFiiIi.js","assets/Trash01-DCX9ydiU.js","assets/label-CHgW_ahI.js","assets/select-8-nbJ0jG.js","assets/ChevronUp-CGseLBwf.js","assets/switch-B_09jY5-.js","assets/textarea-DD_XQc8b.js","assets/ArrowLeft-Beb7uT2a.js","assets/ArrowRight-Du9XgC-I.js","assets/Link01-DvvkHs6T.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-DdiWS6j9.js","assets/Eye-4ikW46Xl.js","assets/LinkExternal01-B4pNNDj3.js","assets/XCircle-4con0UUu.js","assets/use-infinite-scroll-CqmvxgxE.js","assets/use-copy-pSJtH4fM.js","assets/Copy01-CQ5n9k6R.js","assets/Key01-D_IxGQOL.js","assets/Plus-BZSUkwsF.js","assets/mcp-oauth-Dql553Ej.js","assets/Play-BKI4FgKL.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,h as a,bl as o}from"./index-DR-7CxUP.js";import{R as l}from"./require-capability-ry4-n_XW.js";import"./access-gate-DD56oGJy.js";import"./capability-load-error-QfuL86LE.js";const n=s.lazy(()=>o(()=>import("./registry-layout-BiksbGSO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{className:"size-5 text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,2 +0,0 @@
1
- import{c as st,b as Dt,r as w,l as Ue,j as n,aB as Xn,B as tt,a4 as wt,a1 as kt,a2 as Tt,h as es,n as Aa,t as q,K as Ca}from"./index-DR-7CxUP.js";import{b as Pa}from"./chat-context-B3FHPtyp.js";import{a7 as ts,a8 as Ma,a9 as La,aa as Ba,N as ns,O as Zt,ab as ss,ac as as,P as os,Q as is,ad as rs,ae as Ka,_ as ls,$ as cs,af as Ia,ag as Oa,ah as us,G as Fa,U as ds,V as Lt,Y as ms,Z as fs,W as ps,a4 as gs,ai as $a,aj as Bt,ak as hs,al as za,am as Ha,an as Ua,ao as Ga,ap as qa,d as Wa,e as Ya,aq as Ja,ar as Qa,as as Za,at as Xa,au as Kn,av as eo,aw as to,ax as no,a2 as qt,ay as so,az as ao,aA as Wt,aB as oo,aC as bt,aD as Ct,aE as io,aF as ro,aG as nt,aH as In,aI as lo,g as co,aJ as On,aK as uo,aL as mo,aM as Pt,aN as Yt,aO as Fn,aP as fo,aQ as fn,aR as po,aS as ht,aT as Et,aU as go,aV as ho,aW as vo,aX as So,aY as bo,aZ as yt,a_ as yo,a$ as xo,b0 as _o,i as jo,b1 as $n,b2 as Mt,b3 as zn,b4 as Hn,b5 as Eo,b6 as Ro,b7 as wo,b8 as ko,b9 as pn,ba as Un,bb as Gn,bc as Rt,bd as Jt,be as qn,bf as To,bg as gn,bh as Do,bi as Vo,bj as No,bk as Ao,bl as Co,bm as Po}from"./index-DU9sTbUZ.js";import{n as Mo,t as Lo}from"./ChevronUp-CGseLBwf.js";import{ai as vn,B as Bo,a0 as vs,F as Ko,z as Io,au as Oo,w as Fo}from"./agent-icon-B7AXGQ6P.js";import{i as $o}from"./ChevronRight-DyhM_Luf.js";import{i as zo}from"./Globe01-DQGNcxVn.js";import{S as Qt}from"./scroll-area-C4NBwqyh.js";import{d as Ho,h as Uo,c as Go,e as qo,b as Wo,D as Yo}from"./dialog-wNMMbzXr.js";import{I as Jo}from"./input-By-Luuj6.js";import{a as Ss}from"./Copy01-CQ5n9k6R.js";import{i as Qo}from"./Settings02-3O7I-4oK.js";import{s as Zo}from"./Eye-4ikW46Xl.js";import{s as Xo}from"./TrendUp01-DhL5-hJo.js";import{s as Sn}from"./Plus-BZSUkwsF.js";import{s as bs}from"./Trash01-DCX9ydiU.js";import{i as ei}from"./Zap-Bsbv5icR.js";import{D as ys,a as vt,c as xs,b as _s,i as ti}from"./dropdown-menu-BvPxOnm0.js";import{s as ni}from"./safe-image-url-D5z803Ot.js";import{a as si,P as ai,b as oi}from"./page-seo-form-DatHE4-0.js";import{a as ii}from"./Tool01-CgvePMtM.js";import{u as ri,A as li}from"./use-section-preview-base-Dne8hXr_.js";import"./use-panel-navigate-BA5KTGnu.js";import"./use-destination-route-DZ6zuyom.js";import"./autosend-t6fUCO9u.js";import"./thread-intent-BKZp36M-.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BJtZPSVy.js";import"./use-mcp-client-Cjw7oL0k.js";import"./constants-Daqiz8AS.js";import"./auth-BTVKfAUC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DIVelB7F.js";import"./task-board-DX0mX_sm.js";import"./schema-CzaGiNXr.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DLU-VkLe.js";import"./use-ai-providers-CsfPjUM-.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BXOAX3zK.js";import"./thread-route-g3bFZsDA.js";import"./Check-Bqh0edDs.js";import"./Download01-EHABWuSq.js";import"./use-organization-settings-Di523P_b.js";import"./ArrowUp-_u4Yru0Q.js";import"./automation-runs-B71QxQf_.js";import"./useInfiniteQuery-7dgy4-tR.js";import"./infiniteQueryObserver-DMi6D2_K.js";import"./use-connection-BM1ySErK.js";import"./table-C9B_yGws.js";import"./empty-state-C-SubUW6.js";import"./use-infinite-scroll-CqmvxgxE.js";import"./use-members-DhvUWOTO.js";import"./use-org-auth-client-5eX91FAP.js";import"./AlertCircle-D5wzOxIg.js";import"./CheckCircle-P3KELI_n.js";import"./DotsVertical-CXA4FBF-.js";import"./XCircle-4con0UUu.js";import"./use-automations-V8lTd1ft.js";import"./useSuspenseInfiniteQuery-DBrABtQo.js";import"./avatar-_tvfLV9T.js";import"./User01-cnJUdVWa.js";import"./Tool02-_HC8oqfU.js";import"./Stars01-D0DXnyE9.js";import"./ArrowRight-Du9XgC-I.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-pSJtH4fM.js";import"./markdown-BbkOj7TQ.js";import"./ZoomOut-DiztYlpQ.js";import"./monaco-editor-CK-YzUmW.js";import"./editor-BskznDjo.js";import"./mcp-app-renderer--rnWoHIc.js";import"./types-C6WokDyE.js";import"./XClose-C2dpX0F_.js";import"./Share07-B043tEsF.js";import"./SearchMd-CC2qYhKq.js";import"./shell-layout-UiGWQtHh.js";import"./Users03-BZkJWCNu.js";import"./project-icon-DZuabjud.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./Monitor01-Cb0G367h.js";import"./command-BDN-a3rJ.js";import"./index-Jy48DtbD.js";import"./required-auth-layout-C6sCfFoS.js";import"./use-org-sso-CF4YFYU9.js";import"./use-org-notice-CnZTeX-0.js";import"./Image01-BrxwhCeX.js";import"./LinkExternal01-B4pNNDj3.js";import"./integration-icon-CpzKJe80.js";import"./Palette-B6tq__pc.js";import"./use-navigate-to-agent-BtEQtkbQ.js";import"./Link01-DvvkHs6T.js";import"./use-mcp-prompts-BN9qi7Ix.js";import"./form-B76JQCy8.js";import"./label-CHgW_ahI.js";import"./file-type-icon-DKxC4oSX.js";import"./drawer-Dl4KbpLj.js";import"./collection-search-DRdf_GYh.js";import"./Upload01-CNkQbAmi.js";import"./select-8-nbJ0jG.js";import"./ArrowLeft-Beb7uT2a.js";import"./tabs-yz5p2eqD.js";import"./toggle-group-OyXGZbFx.js";import"./task-route-DTA1f0w5.js";import"./extract-connection-data-C4TyJjoX.js";import"./metadata-dUsYcpuu.js";import"./connection-C75DYl44.js";import"./connection-card-BaEIpCbA.js";import"./use-registry-connections-bgQe6Edq.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DD_XQc8b.js";import"./UserSquare-CpUQtm07.js";import"./connection-form-helpers-aQ5B6tRy.js";import"./authenticate-and-persist-oauth-BJAzAIhG.js";import"./mcp-oauth-Dql553Ej.js";import"./collection-tabs-BxV7MP04.js";import"./badge-5xoC1FJQ.js";import"./use-file-configs-BRCZqxCS.js";import"./site-slug-uya6Wp4-.js";import"./popover-zAXw_Ex4.js";import"./github-icon-CdMLfMj7.js";import"./get-initials-D-f_fDFw.js";import"./Shield01-DSyesTES.js";import"./select-model-BN5vxFKu.js";import"./checkbox-DdiWS6j9.js";import"./ChevronSelectorVertical-S2WVRFJv.js";import"./Key01-D_IxGQOL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-f4yD90eP.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CZvvi-5S.js";import"./toolbar-BGgBqcbD.js";import"./use-mcp-tools-DMULZKMD.js";import"./GitBranch01-rChCKXuD.js";import"./Package-Bfk8OrRH.js";import"./skill-preview-OK-E70YW.js";import"./use-date-fns-locale-DgRg5mjL.js";import"./alert-dialog-BxdFiiIi.js";import"./Play-BKI4FgKL.js";import"./use-debounced-autosave-EYzF8Olk.js";import"./search-input-jf5-JJb9.js";import"./use-mcp-auth-status-CkfQLxM4.js";import"./switch-B_09jY5-.js";import"./repository-import-picker-Crzmlv3v.js";import"./repository-picker-Dn5CWMQu.js";import"./use-debounced-value-KdzTma4G.js";import"./Users01-CPNdhBFx.js";import"./use-secrets-DWw60yIy.js";import"./client-icons-cKM5ZcqP.js";import"./connect-layout-B6hgiK5r.js";import"./self-tool-result-Cei_02H_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BmC8g6Tw.js";import"./use-tags-B-RutSus.js";import"./breadcrumb-BjJYdEoK.js";import"./toolbar-icon-button-CyWbgFMR.js";import"./automation-list-row-CtQKd-53.js";import"./site-error--i37Vnuw.js";import"./cards-QMwTXs-C.js";import"./CreditCard01-DQ2UyAUW.js";import"./HardDrive-CALvWP4_.js";import"./Sun-BUQJT4KF.js";function ci(d){return d.schema?.definitions??d.schema?.$defs??{}}function js(d,e){const o=ci(e),u=o[btoa(d)];if(!u)return[];const p=[u];if(Array.isArray(u.allOf)){const x=u.allOf.find(j=>typeof j.$ref=="string")?.$ref;if(typeof x=="string"){const j=o[x.replace("#/definitions/","")];j&&p.push(j)}}return p}function ui(d,e){for(const o of js(d,e)){const u=typeof o.image=="string"?o.image:void 0;if(u?.includes("{{{"))return u}}function di(d,e){if(!e)return;const o=ts(d);if(!o)return;const u=ui(o.resolveType,e);if(!u)return;const p=Ma(u,o.data);if(p)return ni(p)}const mi={escape:Ba};function fi(d,e){for(const o of js(d,e)){const u=typeof o.title=="string"?o.title:void 0;if(u?.includes("{{"))return u}}function pi(d,e){if(!e)return;const o=ts(d);if(o)try{const u=fi(o.resolveType,e);return u&&La.render(u,o.data,{},mi).trim()||void 0}catch{return}}const gi="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",hi="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Wn(d){return Array.from({length:d},(e,o)=>({id:crypto.randomUUID(),index:o}))}function Es(d){return d.map((e,o)=>({...e,index:o}))}function vi(d,e){if(e===d.length)return d;if(e<d.length)return Es(d.slice(0,e));const o=Array.from({length:e-d.length},(u,p)=>({id:crypto.randomUUID(),index:d.length+p}));return[...d,...o]}function Rs(d){const e=st.c(25),{section:o,raw:u,meta:p}=d,x=o.isSavedBlock===!0,j=o.isMultivariate===!0;let v;e[0]!==p||e[1]!==u?(v=u&&p?di(u,p):void 0,e[0]=p,e[1]=u,e[2]=v):v=e[2];const y=v;let g;e[3]!==p||e[4]!==j||e[5]!==u||e[6]!==x?(g=u&&p&&!x&&!j?pi(u,p):void 0,e[3]=p,e[4]=j,e[5]=u,e[6]=x,e[7]=g):g=e[7];const k=g;let B;e[8]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(Bo,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=B):B=e[8];let M;e[9]!==y?(M=y&&n.jsx("img",{src:y,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=y,e[10]=M):M=e[10];let D;e[11]!==j||e[12]!==x?(D=x?{color:Fa}:j?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=j,e[12]=x,e[13]=D):D=e[13];let c;e[14]!==D?(c=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:D}),e[14]=D,e[15]=c):c=e[15];const b=o.isHidden&&"line-through opacity-50";let R;e[16]!==b?(R=Ue("min-w-0 flex-1 truncate text-sm font-medium",b),e[16]=b,e[17]=R):R=e[17];const l=k??o.label;let V;e[18]!==R||e[19]!==l?(V=n.jsx("span",{className:R,children:l}),e[18]=R,e[19]=l,e[20]=V):V=e[20];let i;return e[21]!==V||e[22]!==M||e[23]!==c?(i=n.jsxs(n.Fragment,{children:[B,M,c,V]}),e[21]=V,e[22]=M,e[23]=c,e[24]=i):i=e[24],i}const Si="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",bi="w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",yi="w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100";function hn(d,e){return Ue("h-7 shrink-0 overflow-hidden",e?Si:d?yi:bi)}function ws(d,e){const o=d.isSavedBlock===!0,u=d.isMultivariate===!0;return Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?gi:u?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function xi(d){const e=st.c(82),{section:o,raw:u,meta:p,sortableId:x,selected:j,onSelect:v,onDelete:y,onDuplicate:g,onMakeReusable:k,onToggleHidden:B,onToggleLazy:M,onAddVariant:D,onDetach:c}=d,b=Dt(),R=u?rs(u.__resolveType??""):!1,l=o.isHidden===!0,V=R||l;let i;e[0]!==o?(i=Ka(o),e[0]=o,e[1]=i):i=e[1];const Y=i;let U;e[2]!==x?(U={id:x,animateLayoutChanges:wi},e[2]=x,e[3]=U):U=e[3];const{attributes:Le,listeners:J,setNodeRef:m,transform:P,isDragging:we}=ls(U);let N;e[4]!==P?(N=cs.Transform.toString(P?{...P,x:0}:null),e[4]=P,e[5]=N):N=e[5];const X=we?0:void 0;let T;e[6]!==N||e[7]!==X?(T={transform:N,opacity:X},e[6]=N,e[7]=X,e[8]=T):T=e[8];const oe=T;let K;e[9]!==o?(K=Ia(o),e[9]=o,e[10]=K):K=e[10];const Ce=K;let ee;e[11]!==v?(ee=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),v())},e[11]=v,e[12]=ee):ee=e[12];const de=we?"cursor-grabbing":"cursor-pointer";let Q;e[13]!==o||e[14]!==j||e[15]!==de?(Q=Ue("touch-none transition-colors",de,ws(o,j)),e[13]=o,e[14]=j,e[15]=de,e[16]=Q):Q=e[16];let ie;e[17]!==p||e[18]!==u||e[19]!==o?(ie=n.jsx(Rs,{section:o,raw:u,meta:p}),e[17]=p,e[18]=u,e[19]=o,e[20]=ie):ie=e[20];let ye;e[21]!==l||e[22]!==b?(ye=b(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[21]=l,e[22]=b,e[23]=ye):ye=e[23];let re;e[24]!==B?(re=_=>{_.stopPropagation(),B()},e[24]=B,e[25]=re):re=e[25];let L;e[26]!==l?(L=l?n.jsx(Qo,{className:"h-3.5 w-3.5"}):n.jsx(Zo,{className:"h-3.5 w-3.5"}),e[26]=l,e[27]=L):L=e[27];let qe;e[28]!==l||e[29]!==b?(qe=b(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[28]=l,e[29]=b,e[30]=qe):qe=e[30];let Be;e[31]!==qe?(Be=n.jsx(Tt,{side:"bottom",children:qe}),e[31]=qe,e[32]=Be):Be=e[32];const Ie=xs,ke=ys,F=!0,te=tt,Oe="button",Pe="ghost",xe="icon";let ne;e[33]!==b?(ne=b("sectionsEditor.sectionList.sectionActionsMenu"),e[33]=b,e[34]=ne):ne=e[34];const me=Ue(hn(V,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let _e;e[35]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(vs,{className:"h-3.5 w-3.5"}),e[35]=_e):_e=e[35];let fe;e[36]!==te||e[37]!==ne||e[38]!==me?(fe=n.jsx(te,{type:Oe,variant:Pe,size:xe,"aria-label":ne,className:me,onClick:ji,onPointerDown:_i,children:_e}),e[36]=te,e[37]=ne,e[38]=me,e[39]=fe):fe=e[39];let pe;e[40]!==ke||e[41]!==fe?(pe=n.jsx(ke,{asChild:F,children:fe}),e[40]=ke,e[41]=fe,e[42]=pe):pe=e[42];let se;e[43]!==g?(se=_=>{_.stopPropagation(),g()},e[43]=g,e[44]=se):se=e[44];let Me;e[45]===Symbol.for("react.memo_cache_sentinel")?(Me=n.jsx(Ss,{className:"h-4 w-4"}),e[45]=Me):Me=e[45];let je;e[46]!==b?(je=b("sectionsEditor.sectionList.duplicateMenuItem"),e[46]=b,e[47]=je):je=e[47];let le;e[48]!==se||e[49]!==je?(le=n.jsxs(vt,{onClick:se,children:[Me,je]}),e[48]=se,e[49]=je,e[50]=le):le=e[50];let I;e[51]!==Y||e[52]!==D||e[53]!==b?(I=Y&&n.jsxs(vt,{className:Oa,onClick:_=>{_.stopPropagation(),D()},children:[n.jsx(Xo,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.addVariantMenuItem")]}),e[51]=Y,e[52]=D,e[53]=b,e[54]=I):I=e[54];let Ee;e[55]!==Ce||e[56]!==k||e[57]!==b?(Ee=Ce&&n.jsxs(vt,{className:hi,onClick:_=>{_.stopPropagation(),k()},children:[n.jsx(vn,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[55]=Ce,e[56]=k,e[57]=b,e[58]=Ee):Ee=e[58];let ge;e[59]!==c||e[60]!==o.isMultivariate||e[61]!==o.isSavedBlock||e[62]!==b?(ge=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(vt,{onClick:_=>{_.stopPropagation(),c()},children:[n.jsx(vn,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.detachMenuItem")]}),e[59]=c,e[60]=o.isMultivariate,e[61]=o.isSavedBlock,e[62]=b,e[63]=ge):ge=e[63];let ce;e[64]!==y?(ce=_=>{_.stopPropagation(),y()},e[64]=y,e[65]=ce):ce=e[65];let he;e[66]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(bs,{className:"h-4 w-4"}),e[66]=he):he=e[66];let Z;e[67]!==b?(Z=b("sectionsEditor.sectionList.deleteMenuItem"),e[67]=b,e[68]=Z):Z=e[68];let ue;e[69]!==ce||e[70]!==Z?(ue=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:ce,children:[he,Z]}),e[69]=ce,e[70]=Z,e[71]=ue):ue=e[71];let ve;e[72]!==le||e[73]!==I||e[74]!==Ee||e[75]!==ge||e[76]!==ue?(ve=n.jsxs(_s,{align:"end",className:"w-44",children:[le,I,Ee,ge,ue]}),e[72]=le,e[73]=I,e[74]=Ee,e[75]=ge,e[76]=ue,e[77]=ve):ve=e[77];let Te;return e[78]!==Ie||e[79]!==pe||e[80]!==ve?(Te=n.jsxs(Ie,{children:[pe,ve]}),e[78]=Ie,e[79]=pe,e[80]=ve,e[81]=Te):Te=e[81],n.jsxs("div",{ref:m,style:oe,...Le,...J,role:"button",tabIndex:0,onClick:v,onKeyDown:ee,className:Q,children:[ie,!o.isMultivariate&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":b(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Ue(hn(V,R)),onClick:_=>{_.stopPropagation(),M()},onPointerDown:Ri,children:n.jsx(ei,{className:Ue("h-3.5 w-3.5",R&&"text-yellow-500")})})}),n.jsx(Tt,{side:"bottom",children:b(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":ye,className:Ue(hn(V,l)),onClick:re,onPointerDown:Ei,children:L})}),Be]}),Te]})}function _i(d){return d.stopPropagation()}function ji(d){return d.stopPropagation()}function Ei(d){return d.stopPropagation()}function Ri(d){return d.stopPropagation()}function wi(){return!1}function ki(d){const e=st.c(104),{listKey:o,rawSections:u,sections:p,meta:x,selectedIndex:j,onSelect:v,onReorder:y,onDelete:g,onDuplicate:k,onMakeReusable:B,onToggleHidden:M,onToggleLazy:D,onAddVariant:c,onDetach:b,onAddSection:R,canAddSection:l}=d,V=l===void 0?!0:l,i=Dt();let Y;e[0]!==p.length?(Y=()=>Wn(p.length),e[0]=p.length,e[1]=Y):Y=e[1];const[U,Le]=w.useState(Y),[J,m]=w.useState(null),[P,we]=w.useState(o),[N,X]=w.useState(p.length),T=w.useRef(!1);P!==o?(we(o),X(p.length),Le(Wn(p.length))):N!==p.length&&(X(p.length),Le(Te=>vi(Te,p.length)));let oe;e[2]===Symbol.for("react.memo_cache_sentinel")?(oe={activationConstraint:{distance:8}},e[2]=oe):oe=e[2];let K;e[3]===Symbol.for("react.memo_cache_sentinel")?(K={coordinateGetter:ds},e[3]=K):K=e[3];const Ce=ns(Zt(is,oe),Zt(os,K));let ee;e[4]!==U?(ee=U.map(Ti),e[4]=U,e[5]=ee):ee=e[5];const de=ee;let Q;e[6]===Symbol.for("react.memo_cache_sentinel")?(Q=Te=>{m(String(Te.active.id))},e[6]=Q):Q=e[6];const ie=Q;let ye;e[7]!==de||e[8]!==y?(ye=Te=>{m(null);const{active:_,over:Se}=Te;if(!Se||_.id===Se.id)return;const ae=de.indexOf(String(_.id)),De=de.indexOf(String(Se.id));ae===-1||De===-1||(Le(Fe=>Es(Lt([...Fe],ae,De))),T.current=!0,requestAnimationFrame(()=>{T.current=!1}),y?.(ae,De))},e[7]=de,e[8]=y,e[9]=ye):ye=e[9];const re=ye;let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{m(null)},e[10]=L):L=e[10];const qe=L;let Be,Ie,ke,F,te,Oe,Pe,xe,ne,me,_e,fe,pe,se,Me;if(e[11]!==J||e[12]!==V||e[13]!==U||e[14]!==de||e[15]!==re||e[16]!==x||e[17]!==R||e[18]!==c||e[19]!==g||e[20]!==b||e[21]!==k||e[22]!==B||e[23]!==v||e[24]!==M||e[25]!==D||e[26]!==u||e[27]!==p||e[28]!==j||e[29]!==Ce||e[30]!==i){se=Symbol.for("react.early_return_sentinel");e:{const Te=_=>{T.current||v(_)};if(e[46]!==J||e[47]!==V||e[48]!==U||e[49]!==R||e[50]!==u||e[51]!==p||e[52]!==i){const _=J?U.find(Se=>Se.id===J):null;if(F=_!=null?p[_.index]:null,ke=_!=null?u[_.index]:void 0,U.length===0){let Se;e[56]!==i?(Se=i("sectionsEditor.sectionList.noSections"),e[56]=i,e[57]=Se):Se=e[57];let ae;e[58]!==Se?(ae=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:Se}),e[58]=Se,e[59]=ae):ae=e[59];const De=!V;let Fe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Fe=n.jsx(Sn,{size:14}),e[60]=Fe):Fe=e[60];let ct;e[61]!==i?(ct=i("sectionsEditor.sectionList.addSectionButton"),e[61]=i,e[62]=ct):ct=e[62];let Ve;e[63]!==R||e[64]!==De||e[65]!==ct?(Ve=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:De,onClick:R,children:[Fe,ct]}),e[63]=R,e[64]=De,e[65]=ct,e[66]=Ve):Ve=e[66];let Ze;e[67]!==ae||e[68]!==Ve?(Ze=n.jsxs("div",{className:"space-y-2",children:[ae,Ve]}),e[67]=ae,e[68]=Ve,e[69]=Ze):Ze=e[69],se=Ze;break e}pe=Ue(_&&"cursor-grabbing"),e[46]=J,e[47]=V,e[48]=U,e[49]=R,e[50]=u,e[51]=p,e[52]=i,e[53]=ke,e[54]=F,e[55]=pe}else ke=e[53],F=e[54],pe=e[55];Ie=ms,xe=Ce,ne=fs,me=ie,_e=re,fe=qe,Be=ps,Oe=de,Pe=gs,Me="space-y-1",te=U.map(_=>{const Se=p[_.index];return Se?n.jsx(xi,{sortableId:_.id,section:Se,raw:u[_.index],meta:x,selected:j===_.index,onSelect:()=>Te(_.index),onDelete:()=>g(_.index),onDuplicate:()=>k(_.index),onMakeReusable:()=>B(_.index),onToggleHidden:()=>M(_.index),onToggleLazy:()=>D(_.index),onAddVariant:()=>c(_.index),onDetach:()=>b(_.index)},_.id):null})}e[11]=J,e[12]=V,e[13]=U,e[14]=de,e[15]=re,e[16]=x,e[17]=R,e[18]=c,e[19]=g,e[20]=b,e[21]=k,e[22]=B,e[23]=v,e[24]=M,e[25]=D,e[26]=u,e[27]=p,e[28]=j,e[29]=Ce,e[30]=i,e[31]=Be,e[32]=Ie,e[33]=ke,e[34]=F,e[35]=te,e[36]=Oe,e[37]=Pe,e[38]=xe,e[39]=ne,e[40]=me,e[41]=_e,e[42]=fe,e[43]=pe,e[44]=se,e[45]=Me}else Be=e[31],Ie=e[32],ke=e[33],F=e[34],te=e[35],Oe=e[36],Pe=e[37],xe=e[38],ne=e[39],me=e[40],_e=e[41],fe=e[42],pe=e[43],se=e[44],Me=e[45];if(se!==Symbol.for("react.early_return_sentinel"))return se;let je;e[70]!==te||e[71]!==Me?(je=n.jsx("div",{className:Me,children:te}),e[70]=te,e[71]=Me,e[72]=je):je=e[72];let le;e[73]!==Be||e[74]!==Oe||e[75]!==Pe||e[76]!==je?(le=n.jsx(Be,{items:Oe,strategy:Pe,children:je}),e[73]=Be,e[74]=Oe,e[75]=Pe,e[76]=je,e[77]=le):le=e[77];let I;e[78]!==ke||e[79]!==F||e[80]!==x?(I=F?n.jsx("div",{className:Ue("cursor-grabbing shadow-lg ring-1 ring-border/60",ws(F,!1)),children:n.jsx(Rs,{section:F,raw:ke,meta:x})}):null,e[78]=ke,e[79]=F,e[80]=x,e[81]=I):I=e[81];let Ee;e[82]!==I?(Ee=Xn.createPortal(n.jsx(ss,{dropAnimation:as,children:I}),document.body),e[82]=I,e[83]=Ee):Ee=e[83];let ge;e[84]!==Ie||e[85]!==xe||e[86]!==ne||e[87]!==me||e[88]!==_e||e[89]!==fe||e[90]!==le||e[91]!==Ee?(ge=n.jsxs(Ie,{sensors:xe,collisionDetection:ne,onDragStart:me,onDragEnd:_e,onDragCancel:fe,children:[le,Ee]}),e[84]=Ie,e[85]=xe,e[86]=ne,e[87]=me,e[88]=_e,e[89]=fe,e[90]=le,e[91]=Ee,e[92]=ge):ge=e[92];const ce=!V;let he;e[93]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(Sn,{size:14}),e[93]=he):he=e[93];let Z;e[94]!==i?(Z=i("sectionsEditor.sectionList.addSectionButton"),e[94]=i,e[95]=Z):Z=e[95];let ue;e[96]!==R||e[97]!==ce||e[98]!==Z?(ue=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:ce,onClick:R,children:[he,Z]}),e[96]=R,e[97]=ce,e[98]=Z,e[99]=ue):ue=e[99];let ve;return e[100]!==pe||e[101]!==ge||e[102]!==ue?(ve=n.jsxs("div",{className:pe,children:[ge,ue]}),e[100]=pe,e[101]=ge,e[102]=ue,e[103]=ve):ve=e[103],ve}function Ti(d){return d.id}function Yn(d){const e=st.c(57),{open:o,initialName:u,autoLabel:p,isPending:x,onSubmit:j,onOpenChange:v}=d,y=x===void 0?!1:x,g=Dt(),[k,B]=w.useState(u),[M,D]=w.useState(o);o!==M&&(D(o),o&&B(u));let c;e[0]!==y||e[1]!==v?(c=ie=>{!ie&&!y&&v(!1)},e[0]=y,e[1]=v,e[2]=c):c=e[2];const b=c;let R;e[3]!==y||e[4]!==k||e[5]!==j?(R=async ie=>{ie.preventDefault(),!y&&await j(k.trim())},e[3]=y,e[4]=k,e[5]=j,e[6]=R):R=e[6];const l=R;let V;e[7]!==g?(V=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=V):V=e[8];let i;e[9]!==V?(i=n.jsx(Ho,{children:V}),e[9]=V,e[10]=i):i=e[10];let Y;e[11]!==p||e[12]!==g?(Y=g("sectionsEditor.variantRenameDialog.description",{fallback:p||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=g,e[13]=Y):Y=e[13];let U;e[14]!==Y?(U=n.jsx(Uo,{children:Y}),e[14]=Y,e[15]=U):U=e[15];let Le;e[16]!==i||e[17]!==U?(Le=n.jsxs(Go,{children:[i,U]}),e[16]=i,e[17]=U,e[18]=Le):Le=e[18];let J;e[19]!==g?(J=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=J):J=e[20];let m;e[21]!==J?(m=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:J}),e[21]=J,e[22]=m):m=e[22];let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=ie=>B(ie.target.value),e[23]=P):P=e[23];let we;e[24]!==p||e[25]!==y||e[26]!==k?(we=n.jsx(Jo,{id:"variant-rename-name",value:k,onChange:P,placeholder:p,autoFocus:!0,disabled:y}),e[24]=p,e[25]=y,e[26]=k,e[27]=we):we=e[27];let N;e[28]!==m||e[29]!==we?(N=n.jsxs("div",{className:"space-y-1.5 py-4",children:[m,we]}),e[28]=m,e[29]=we,e[30]=N):N=e[30];let X;e[31]!==v?(X=()=>v(!1),e[31]=v,e[32]=X):X=e[32];let T;e[33]!==g?(T=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=T):T=e[34];let oe;e[35]!==y||e[36]!==X||e[37]!==T?(oe=n.jsx(tt,{type:"button",variant:"outline",onClick:X,disabled:y,children:T}),e[35]=y,e[36]=X,e[37]=T,e[38]=oe):oe=e[38];let K;e[39]!==y||e[40]!==g?(K=y?n.jsxs(n.Fragment,{children:[n.jsx(es,{className:"size-3.5"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=y,e[40]=g,e[41]=K):K=e[41];let Ce;e[42]!==y||e[43]!==K?(Ce=n.jsx(tt,{type:"submit",disabled:y,children:K}),e[42]=y,e[43]=K,e[44]=Ce):Ce=e[44];let ee;e[45]!==oe||e[46]!==Ce?(ee=n.jsxs(qo,{children:[oe,Ce]}),e[45]=oe,e[46]=Ce,e[47]=ee):ee=e[47];let de;e[48]!==l||e[49]!==N||e[50]!==ee||e[51]!==Le?(de=n.jsx(Wo,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:l,children:[Le,N,ee]})}),e[48]=l,e[49]=N,e[50]=ee,e[51]=Le,e[52]=de):de=e[52];let Q;return e[53]!==b||e[54]!==o||e[55]!==de?(Q=n.jsx(Yo,{open:o,onOpenChange:b,children:de}),e[53]=b,e[54]=o,e[55]=de,e[56]=Q):Q=e[56],Q}function ks(d){const e=st.c(5),{rule:o,matchers:u}=d,p=o?.__resolveType??"";let x;if(e[0]!==u||e[1]!==p){const g=u.find(k=>k.resolveType===p)?.iconName??$a(p);x=Ko(g),e[0]=u,e[1]=p,e[2]=x}else x=e[2];const j=x;if(!j)return null;let v;return e[3]!==j?(v=n.jsx(j,{size:14,className:"shrink-0"}),e[3]=j,e[4]=v):v=e[4],v}function Jn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function Qn(d){return d.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function Di(d,e){const o=new Map;for(const u of d){const p=o.get(u.variant.label);p?p.push(u):o.set(u.variant.label,[u])}return e.map((u,p)=>({id:o.get(u.label)?.shift()?.id??crypto.randomUUID(),index:p,variant:u}))}function Vi(d){return d.map((e,o)=>({...e,index:o}))}function Ts(d){const e=st.c(17),{label:o,effectiveRule:u,matchers:p,canDelete:x,dragging:j,onRename:v,onDuplicate:y,onDelete:g}=d,k=Dt();let B;e[0]!==u||e[1]!==p?(B=n.jsx(ks,{rule:u,matchers:p}),e[0]=u,e[1]=p,e[2]=B):B=e[2];let M;e[3]!==o?(M=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=M):M=e[4];let D;e[5]!==x||e[6]!==j||e[7]!==o||e[8]!==g||e[9]!==y||e[10]!==v||e[11]!==k?(D=!j&&n.jsxs(xs,{children:[n.jsx(ys,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":k("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:o}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Ai,onPointerDown:Ni,children:n.jsx(vs,{size:14})})}),n.jsxs(_s,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:b=>{b.stopPropagation(),v?.()},children:[n.jsx(ii,{size:14}),k("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:b=>{b.stopPropagation(),y?.()},children:[n.jsx(Ss,{size:14}),k("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(ti,{}),n.jsxs(vt,{variant:"destructive",disabled:!x,onClick:b=>{b.stopPropagation(),g?.()},children:[n.jsx(bs,{size:14}),k("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=x,e[6]=j,e[7]=o,e[8]=g,e[9]=y,e[10]=v,e[11]=k,e[12]=D):D=e[12];let c;return e[13]!==B||e[14]!==M||e[15]!==D?(c=n.jsxs(n.Fragment,{children:[B,M,D]}),e[13]=B,e[14]=M,e[15]=D,e[16]=c):c=e[16],c}function Ni(d){return d.stopPropagation()}function Ai(d){return d.stopPropagation()}function Ci(d){const e=st.c(33),{entry:o,isActive:u,canDelete:p,decofile:x,meta:j,matchers:v,onSelect:y,onRename:g,onDuplicate:k,onDelete:B}=d;let M;e[0]!==o.id?(M={id:o.id,animateLayoutChanges:Pi},e[0]=o.id,e[1]=M):M=e[1];const{attributes:D,listeners:c,setNodeRef:b,transform:R,isDragging:l}=ls(M);let V;e[2]!==R?(V=cs.Transform.toString(R?{...R,x:0}:null),e[2]=R,e[3]=V):V=e[3];const i=l?0:void 0;let Y;e[4]!==V||e[5]!==i?(Y={transform:V,opacity:i},e[4]=V,e[5]=i,e[6]=Y):Y=e[6];const U=Y,Le=j??void 0;let J;e[7]!==x||e[8]!==o.variant.rule||e[9]!==Le?(J=Bt(o.variant.rule,x,Le),e[7]=x,e[8]=o.variant.rule,e[9]=Le,e[10]=J):J=e[10];const m=J;let P;e[11]!==y?(P=K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),y())},e[11]=y,e[12]=P):P=e[12];const we=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",N=u?hs:us;let X;e[13]!==we||e[14]!==N?(X=Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",we,N),e[13]=we,e[14]=N,e[15]=X):X=e[15];let T;e[16]!==p||e[17]!==m||e[18]!==o.variant.label||e[19]!==v||e[20]!==B||e[21]!==k||e[22]!==g?(T=n.jsx(Ts,{label:o.variant.label,effectiveRule:m,matchers:v,canDelete:p,onRename:g,onDuplicate:k,onDelete:B}),e[16]=p,e[17]=m,e[18]=o.variant.label,e[19]=v,e[20]=B,e[21]=k,e[22]=g,e[23]=T):T=e[23];let oe;return e[24]!==D||e[25]!==c||e[26]!==y||e[27]!==b||e[28]!==U||e[29]!==X||e[30]!==T||e[31]!==P?(oe=n.jsx("div",{ref:b,style:U,...D,...c,onClick:y,onKeyDown:P,className:X,children:T}),e[24]=D,e[25]=c,e[26]=y,e[27]=b,e[28]=U,e[29]=X,e[30]=T,e[31]=P,e[32]=oe):oe=e[32],oe}function Pi(){return!1}function Mi(d){const e=st.c(9),{variant:o,decofile:u,meta:p,matchers:x}=d,j=p??void 0;let v;e[0]!==u||e[1]!==j||e[2]!==o.rule?(v=Bt(o.rule,u,j),e[0]=u,e[1]=j,e[2]=o.rule,e[3]=v):v=e[3];const y=v;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ue("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",hs),e[4]=g):g=e[4];let k;return e[5]!==y||e[6]!==x||e[7]!==o.label?(k=n.jsx("div",{className:g,children:n.jsx(Ts,{label:o.label,effectiveRule:y,matchers:x,canDelete:!1,dragging:!0})}),e[5]=y,e[6]=x,e[7]=o.label,e[8]=k):k=e[8],k}function Li(d){const e=st.c(91),{listKey:o,variants:u,activeIndex:p,decofile:x,meta:j,matchers:v,onSelect:y,onReorder:g,onRename:k,onDuplicate:B,onDelete:M,onAdd:D}=d,c=Dt();let b;e[0]!==u?(b=()=>Qn(u),e[0]=u,e[1]=b):b=e[1];const[R,l]=w.useState(b),[V,i]=w.useState(null),[Y,U]=w.useState(o),[Le,J]=w.useState(u.length);let m;e[2]!==u?(m=()=>Jn(u),e[2]=u,e[3]=m):m=e[3];const[P,we]=w.useState(m),N=w.useRef(!1),X=Jn(u);Y!==o?(U(o),J(u.length),we(X),l(Qn(u))):(Le!==u.length||P!==X)&&(J(u.length),we(X),l(ge=>Di(ge,u)));let T;e[4]===Symbol.for("react.memo_cache_sentinel")?(T={activationConstraint:{distance:8}},e[4]=T):T=e[4];let oe;e[5]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:ds},e[5]=oe):oe=e[5];const K=ns(Zt(is,T),Zt(os,oe));let Ce;e[6]!==R?(Ce=R.map(Bi),e[6]=R,e[7]=Ce):Ce=e[7];const ee=Ce,de=u.length>1;let Q;e[8]!==R?(Q=ge=>{const ce=String(ge.active.id);i(R.find(he=>he.id===ce)??null)},e[8]=R,e[9]=Q):Q=e[9];const ie=Q;let ye;e[10]!==ee||e[11]!==g?(ye=ge=>{i(null);const{active:ce,over:he}=ge;if(!he||ce.id===he.id)return;const Z=ee.indexOf(String(ce.id)),ue=ee.indexOf(String(he.id));Z===-1||ue===-1||(l(ve=>Vi(Lt([...ve],Z,ue))),N.current=!0,requestAnimationFrame(()=>{N.current=!1}),g(Z,ue))},e[10]=ee,e[11]=g,e[12]=ye):ye=e[12];const re=ye;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{i(null)},e[13]=L):L=e[13];const qe=L;let Be,Ie,ke,F,te,Oe,Pe,xe,ne,me,_e,fe,pe;if(e[14]!==p||e[15]!==de||e[16]!==x||e[17]!==R||e[18]!==ee||e[19]!==re||e[20]!==ie||e[21]!==v||e[22]!==j||e[23]!==D||e[24]!==M||e[25]!==B||e[26]!==k||e[27]!==y||e[28]!==K||e[29]!==c){const ge=ae=>{N.current||y(ae)};_e="space-y-1 border-b p-2";let ce;e[43]!==c?(ce=c("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=c,e[44]=ce):ce=e[44];let he;e[45]!==ce?(he=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:ce}),e[45]=ce,e[46]=he):he=e[46];let Z;e[47]!==c?(Z=c("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=c,e[48]=Z):Z=e[48];let ue;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(Sn,{size:14}),e[49]=ue):ue=e[49];let ve;e[50]!==D||e[51]!==Z?(ve=n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":Z,className:"size-6",onClick:D,children:ue})}),e[50]=D,e[51]=Z,e[52]=ve):ve=e[52];let Te;e[53]!==c?(Te=c("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=c,e[54]=Te):Te=e[54];let _;e[55]!==Te?(_=n.jsx(Tt,{children:Te}),e[55]=Te,e[56]=_):_=e[56];let Se;e[57]!==ve||e[58]!==_?(Se=n.jsxs(wt,{children:[ve,_]}),e[57]=ve,e[58]=_,e[59]=Se):Se=e[59],e[60]!==he||e[61]!==Se?(fe=n.jsxs("div",{className:"flex items-center justify-between",children:[he,Se]}),e[60]=he,e[61]=Se,e[62]=fe):fe=e[62],Ie=ms,Oe=K,Pe=fs,xe=ie,ne=re,me=qe,Be=ps,F=ee,te=gs,pe="space-y-0.5",ke=R.map(ae=>n.jsx(Ci,{entry:ae,isActive:ae.index===p,canDelete:de,decofile:x,meta:j,matchers:v,onSelect:()=>ge(ae.index),onRename:()=>k(ae.index),onDuplicate:()=>B(ae.index),onDelete:()=>M(ae.index)},ae.id)),e[14]=p,e[15]=de,e[16]=x,e[17]=R,e[18]=ee,e[19]=re,e[20]=ie,e[21]=v,e[22]=j,e[23]=D,e[24]=M,e[25]=B,e[26]=k,e[27]=y,e[28]=K,e[29]=c,e[30]=Be,e[31]=Ie,e[32]=ke,e[33]=F,e[34]=te,e[35]=Oe,e[36]=Pe,e[37]=xe,e[38]=ne,e[39]=me,e[40]=_e,e[41]=fe,e[42]=pe}else Be=e[30],Ie=e[31],ke=e[32],F=e[33],te=e[34],Oe=e[35],Pe=e[36],xe=e[37],ne=e[38],me=e[39],_e=e[40],fe=e[41],pe=e[42];let se;e[63]!==ke||e[64]!==pe?(se=n.jsx("div",{className:pe,children:ke}),e[63]=ke,e[64]=pe,e[65]=se):se=e[65];let Me;e[66]!==Be||e[67]!==F||e[68]!==te||e[69]!==se?(Me=n.jsx(Be,{items:F,strategy:te,children:se}),e[66]=Be,e[67]=F,e[68]=te,e[69]=se,e[70]=Me):Me=e[70];let je;e[71]!==V||e[72]!==x||e[73]!==v||e[74]!==j?(je=V?n.jsx(Mi,{variant:V.variant,decofile:x,meta:j,matchers:v}):null,e[71]=V,e[72]=x,e[73]=v,e[74]=j,e[75]=je):je=e[75];let le;e[76]!==je?(le=Xn.createPortal(n.jsx(ss,{dropAnimation:as,children:je}),document.body),e[76]=je,e[77]=le):le=e[77];let I;e[78]!==Ie||e[79]!==Oe||e[80]!==Pe||e[81]!==xe||e[82]!==ne||e[83]!==me||e[84]!==Me||e[85]!==le?(I=n.jsxs(Ie,{sensors:Oe,collisionDetection:Pe,onDragStart:xe,onDragEnd:ne,onDragCancel:me,children:[Me,le]}),e[78]=Ie,e[79]=Oe,e[80]=Pe,e[81]=xe,e[82]=ne,e[83]=me,e[84]=Me,e[85]=le,e[86]=I):I=e[86];let Ee;return e[87]!==_e||e[88]!==fe||e[89]!==I?(Ee=n.jsxs("div",{className:_e,children:[fe,I]}),e[87]=_e,e[88]=fe,e[89]=I,e[90]=Ee):Ee=e[90],Ee}function Bi(d){return d.id}function Zn(d){const e=st.c(21),{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:x,globals:j,onSelect:v,onSelectGlobal:y,schema:g,formValue:k,onChange:B,formKey:M,formWrapperClassName:D,meta:c,decofile:b,onSaveReferencedBlock:R,sandbox:l}=d;let V;e[0]!==p||e[1]!==u||e[2]!==o||e[3]!==j||e[4]!==x||e[5]!==v||e[6]!==y?(V=n.jsx(za,{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:x,globals:j,onSelect:v,onSelectGlobal:y}),e[0]=p,e[1]=u,e[2]=o,e[3]=j,e[4]=x,e[5]=v,e[6]=y,e[7]=V):V=e[7];let i;e[8]!==b||e[9]!==M||e[10]!==k||e[11]!==D||e[12]!==c||e[13]!==B||e[14]!==R||e[15]!==l||e[16]!==g?(i=g&&k&&n.jsx("div",{className:D,children:n.jsx(Ha,{schema:g,value:k,onChange:B,meta:c,decofile:b,onSaveReferencedBlock:R,sandbox:l},M)}),e[8]=b,e[9]=M,e[10]=k,e[11]=D,e[12]=c,e[13]=B,e[14]=R,e[15]=l,e[16]=g,e[17]=i):i=e[17];let Y;return e[18]!==V||e[19]!==i?(Y=n.jsxs(n.Fragment,{children:[V,i]}),e[18]=V,e[19]=i,e[20]=Y):Y=e[20],Y}function $c({orgSlug:d,virtualMcpId:e,branch:o,previewReady:u=!0,previewUrl:p,currentPath:x,activePageBlockKey:j=null,activeGlobalBlockKey:v=null,externalSelection:y,onSaved:g,initialEditSeo:k=!1,onExitSeo:B,onViewJsonFile:M,onVariantPreviewOverride:D}){const c=Dt(),b=Pa()?.taskId??null,R=u?{orgSlug:d,virtualMcpId:e,branch:o,threadId:b,previewUrl:p}:null,{data:l,isLoading:V}=Ua(R),{data:i,isLoading:Y}=Ga(R),U=qa(),Le=U?.entity?.id===e?U.entity.metadata?.siteSlug??null:null,J=ri({virtualMcpId:e,sandboxUrl:p}),[m,P]=w.useState(null),[we,N]=w.useState(null),[X,T]=w.useState(null),[oe,K]=w.useState(0),[Ce,ee]=w.useState(void 0),[de,Q]=w.useState(null),[ie,ye]=w.useState(null),[re,L]=w.useState([]),qe=w.useRef(null),[Be,Ie]=w.useState(re.length);Be!==re.length&&(Ie(re.length),requestAnimationFrame(()=>{qe.current&&(qe.current.scrollTop=0)}));const[ke,F]=w.useState(0),[te,Oe]=w.useState(null),[Pe,xe]=w.useState(null),[ne,me]=w.useState(null),[_e,fe]=w.useState(!0),[pe,se]=w.useState(!1),[Me,je]=w.useState(!1),le=w.useRef(null),[I,Ee]=w.useState(k),[ge,ce]=w.useState(k);k&&!ge&&(ce(!0),Ee(!0),P(null),N(null),T(null),L([])),!k&&ge&&ce(!1);const[he,Z]=w.useState(null),[ue,ve]=w.useState(void 0),[Te,_]=w.useState([]),[Se,ae]=w.useState(0),[De,Fe]=w.useState(0),[ct,Ve]=w.useState(null),[Ze,We]=w.useState(null),[bn,yn]=w.useState(null),Ds=Aa(),Vs=`${d}/${e}/${o}`,Xt=Wa({orgSlug:d,virtualMcpId:e,branch:o}),[Ns,As]=w.useState(x),[Cs,Ps]=w.useState(j),[Ms,Ls]=w.useState(v);(Ns!==x||Cs!==j||Ms!==v)&&(queueMicrotask(()=>Xt.flush()),As(x),Ps(j),Ls(v),P(null),N(null),T(null),K(0),Q(null),ye(null),Fe(0),Ve(null),We(null),L([]),F(t=>t+1),Ee(!1),Z(null),ve(void 0),_([]),ae(t=>t+1));const Ne=Ya({orgSlug:d,virtualMcpId:e,branch:o}),Kt=jo((t,s)=>{Ne.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:a=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),en=Ja({orgSlug:d,virtualMcpId:e,branch:o}),[Vt,It]=w.useState(!1),ze=w.useRef(null),at=w.useRef(null),ot=w.useRef(null),tn=w.useRef({}),Xe=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||V||Y)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(es,{className:"size-5 text-muted-foreground"})});if(!l||!i)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Bs=Qa(l),Ae=!!v,Ye=Ae?null:Za(Bs,x,j),E=Ae?v:Ye?.key??null,nn=Ae&&v?l[v]:void 0,xn=Ae&&v&&nn?Xa(v,nn):Ae&&v?v:"",Ot=!Ae&&E&&l[E]?l[E]:null,sn=I&&l&&i&&E&&Ye?Kn(l,{kind:"page",pageKey:E,pageName:String(Ye.name??""),path:String(Ye.path??"")},i):null,Ks=I?Ot?.seo:void 0,an=ue!==void 0?ue:Ks,Is=I?eo(an):void 0,Os=sn?.seoTypeOptions??[],Fs=I&&i?to(i):"",_n=he??Is??{},on=I&&sn?si(_n,sn):null,$s=I&&on&&no(an)?qt(on,i):null,zs=I?so(l,i)?.seoData:void 0,Ge=Ae?[{label:"Default",sections:[{__resolveType:v}]}]:ao(Ot?.sections,l??{}),Ft=Ge.length>1,$e=Math.min(oe,Ge.length-1),ut=Ge[$e],H=ut?.sections??[],He=Wt(H,l),jn=!Ae&&oo(Ot?.sections);if(Ae&&v&&bn!==v){yn(v);const t=H[0],s=He[0];if(t&&s){P(0),Fe(0),L([]);const a=bt(t,s,l);a&&(N(a.data),T(a.resolveType),We(null),Ve(null))}}!Ae&&bn!==null&&yn(null),Xe.current={rawSections:H,parsedSections:He,decofile:l??{},activePageKey:E,pageVariants:Ge,variantIndex:$e,sectionVariantIndex:De,selectedSectionIndex:m};const Hs=()=>({multivariate:jn,index:$e,variants:Ge.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!D)return;if(!E||!jn||t.length<=1){D(null);return}const a=qn(E,{multivariate:!0,index:s,variants:t},l,i);D(a.length>0?a:null)},xt=(t,s,a)=>{if(!D)return;if(!E){D(null);return}const r=Hs(),f=qn(E,r,l,i);if(!t||s<0){D(f.length>0?f:null);return}const S=To({pageKey:E,page:r,sectionIndex:s,sectionLazy:He[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:l,meta:i}),h=[...f,...S];D(h.length>0?h:null)},dt=(t,s,a,r=m??-1,f=!1)=>{const S=nt(t,s);if(!S){N(null),T(null),We(null),Ve(null),f&&xt(null,r,a);return}const A=In(S,ht)[a];if(!A){N(null),T(null),We(null),Ve(null),f&&xt(null,r,a);return}const W=go(A.value,l);N(W?.data??null),T(W?.resolveType??null);const{resolveType:C,formValue:O}=Ct(A.rule,l,i??void 0);We(C),Ve(O),f&&xt(S,r,a)},Nt=y?.index;if(y!==void 0&&(y?.seq??null)!==Ce&&(ee(y?.seq??null),typeof Nt=="number")){const t=H[Nt],s=He[Nt];if(t&&s)if(P(Nt),Fe(0),L([]),F(a=>a+1),s.isMultivariate)dt(t,s,0,Nt);else{const a=bt(t,s,l);a?(N(a.data),T(a.resolveType)):(N(null),T(null)),We(null),Ve(null)}}const $t={orgSlug:d,virtualMcpId:e,branch:o,threadId:b,previewUrl:p??void 0,siteSlug:Le},rn=X&&i?qt(X,i):null,Je=(t,s)=>{if(!E)return;ze.current&&(clearTimeout(ze.current),ze.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null);const a=Mt(l,E,t,$e,Ge);Ne.mutate({blockKey:E,data:a},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:r=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},_t=()=>{P(null),N(null),T(null),Fe(0),Ve(null),We(null),L([]),F(t=>t+1)},Us=(t,s)=>{ze.current&&clearTimeout(ze.current);const a=Xe.current.sectionVariantIndex;ze.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Xe.current,C=r[s];if(!C)return;const O=f[s];if(!O)return;if(O.isSavedBlock){const z=Vo(C,O);if(!z)return;Ne.mutate({blockKey:z,data:t},{onSuccess:()=>g?.(),onError:G=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}if(!h)return;const $={...S[h]},Re=[...r];if(O.isMultivariate){const z=nt(C,O);if(!z||!h)return;const G=No(z,a,t);Re[s]=yt(C,O,G)}else if(O.isHidden){const z=rs(C.__resolveType),G=z?{...C.section}:{...C},Ke=Array.isArray(G.variants)?[...G.variants]:[];Ke[0]&&(Ke[0]={...Ke[0],value:t}),G.variants=Ke,z?Re[s]={...C,section:G}:Re[s]=G}else O.isLazy?Re[s]={...C,section:t}:Re[s]=t;if(A.length>1){const z=$.sections,G=[...z?.variants??[]];G[W]&&(G[W]={...G[W],value:Re}),$.sections={...z,variants:G}}else $.sections=Re;Ne.mutate({blockKey:h,data:$},{onSuccess:()=>g?.(),onError:z=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:z.message}))})},gn)},Gs=t=>{P(t),Fe(0),L([]),F(f=>f+1);const s=H[t],a=He[t];if(!s||!a)return;if(a.isMultivariate){dt(s,a,0,t);return}const r=bt(s,a,l);if(!r){N(null),T(null),We(null),Ve(null),xt(null,t,0);return}N(r.data),T(r.resolveType),We(null),Ve(null),xt(null,t,0)},Rn=t=>{const s=t;N(s),m!==null&&Us(s,m)},ln=t=>{if(!E||!l||!i||!Ye)return;const s={kind:"page",pageKey:E,pageName:String(Ye.name??""),path:String(Ye.path??"")},a=Kn(l,s,i);a&&Xt.save(E,()=>{const r=Ds.getQueryData(Ca.decofile(Vs))?.[E];if(!r||typeof r!="object"||r===null||Array.isArray(r))return null;const f={...r,...tn.current};return tn.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?oi(s,a,f,t.inner):f})},qs=(t,s)=>{E&&(tn.current[t]=s,ln())},Ws=(t,s)=>{if(!E)return;const a=Lt([...H],t,s);m!==null&&(m===t?P(s):t<m&&s>=m?P(m-1):t>m&&s<=m&&P(m+1)),Je(a)},Ys=t=>{if(!E)return;const s=H.filter((a,r)=>r!==t);m===t?_t():m!==null&&m>t&&P(m-1),Je(s)},Js=t=>{if(!E)return;const s=H[t];if(!s)return;const a=[...H];a.splice(t+1,0,ko(s)),m!==null&&m>t&&P(m+1),Je(a)},Qs=t=>{if(!E)return;const s=H[t],a=He[t];if(!s||!a)return;const r=a.isHidden?Ro(s):wo(s);if(!r)return;const f=[...H];f[t]=r,m===t&&_t(),Je(f)},Zs=t=>{if(!E)return;const s=H[t],a=He[t];if(!s||!a||a.isMultivariate)return;const r=Eo(s);if(!r)return;const f=[...H];f[t]=r,m===t&&_t(),Je(f)},Xs=t=>{if(!E)return;const s=H[t],a=He[t];if(!s||!a?.isSavedBlock)return;const r=bt(s,a,l);if(!r?.data)return;const{name:f,...S}=r.data,h=[...H];a.isLazy?h[t]={...s,section:S}:h[t]=S,m===t&&_t(),Je(h)},ea=t=>{if(!E)return;const s=[...H,{__resolveType:t.resolveType}],a=s.length-1;Je(s,{onSuccess:()=>{se(!1),P(a),Fe(0),L([]),F(h=>h+1);const r=s[a],f=Wt(s,l)[a];if(!r||!f)return;if(f.isMultivariate){dt(r,f,0);return}const S=bt(r,f,l);if(!S){N(null),T(null),We(null),Ve(null);return}N(S.data),T(S.resolveType),We(null),Ve(null)}})},wn=t=>{le.current=t.append,se(!0)},ta=t=>{const s=le.current;if(!s){ea(t);return}s({__resolveType:t.resolveType}),se(!1),le.current=null},na=t=>{if(m===null)return;const s=H[m],a=He[m];!s||!a?.isMultivariate||(Fe(t),L([]),F(r=>r+1),dt(s,a,t,m,!0))},sa=t=>{if(m===null||!E)return;const s=H[m],a=He[m];if(!s||!a?.isMultivariate)return;const r=nt(s,a);if(!r)return;const f=xo(r,t);if(!f){q.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const S=[...H];S[m]=yt(s,a,f);const h=f.variants;let A=De;t===De?A=Math.min(t,h.length-1):t<De&&(A=De-1),Fe(A),L([]),F(W=>W+1),dt(S[m],a,A),Je(S)},aa=t=>{if(m===null||!E)return;const s=H[m],a=He[m];if(!s||!a?.isMultivariate)return;const r=nt(s,a);if(!r)return;const f=_o(r,t),S=[...H];S[m]=yt(s,a,f);const h=t+1;Fe(h),L([]),F(A=>A+1),dt(S[m],a,h),Je(S)},oa=(t,s)=>{if(m===null||!E||t===s)return;const a=H[m],r=He[m];if(!a||!r?.isMultivariate)return;const f=nt(a,r);if(!f)return;const S=bo(f,t,s),h=[...H];h[m]=yt(a,r,S);let A=De;De===t?A=s:t<De&&s>=De?A=De-1:t>De&&s<=De&&(A=De+1),Fe(A),dt(h[m],r,A),Je(h)},cn=t=>{const s=t??m;if(s===null||!E)return;const a=H[s],r=He[s];if(!a||!r)return;const f=ho(a,r);if(!f){q.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const S=[...H];S[s]=f.section;const h=Wt(S,l)[s];if(!h?.isMultivariate){q.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}P(s),Fe(f.newVariantIndex),L([]),F(A=>A+1),dt(f.section,h,f.newVariantIndex,s),Je(S)},ia=()=>{if(m===null||!E)return;const t=H[m],s=He[m];if(!t||!s?.isMultivariate)return;const a=nt(t,s);if(!a)return;const r=yo(t,s,a);if(!r){q.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const f=[...H];f[m]=r;const S=Wt(f,l)[m];if(!S)return;Fe(0),We(null),Ve(null),L([]),F(A=>A+1);const h=bt(r,S,l);h?(N(h.data),T(h.resolveType)):(N(null),T(null)),xt(null,m,0),Je(f)},ra=async t=>{if(te===null||!E)return;const s=pn(t,l);if(s){q.error(s);return}const a=H[te],r=He[te];if(!a||!r)return;const f=bt(a,r,l);if(!f){q.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const S={...f.data,name:t};try{await Ne.mutateAsync({blockKey:t,data:S});const h=[...H];h[te]={__resolveType:t},await Ne.mutateAsync({blockKey:E,data:Mt(l,E,h,$e,Ge)}),m===te&&_t(),Oe(null),q.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(h){q.error(h instanceof Error?h.message:c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=ut?.rule;if(Ft&&m===null&&ie===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,l??{},i??void 0);ye(t),Q(s)}const zt=i?io(i):[],Tn=i&&l?ro(i,l):[],la=!Ae&&!!(J&&i&&l),ca=ie&&i?qt(ie,i):null,jt=()=>{at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null)},At=async(t,s)=>{if(!(Do(s,t,i)>0))try{await en.mutateAsync({blockKey:t})}catch(a){q.error(a instanceof Error?a.message:c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Dn=t=>{at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:r}=Xe.current;if(!s)return;const f={...a[s]},S={...f.sections},h=[...S.variants??[]],A=h[r],W=A?.rule;if(Et(W,a,i)){const C=W?.__resolveType??"",O=a[C],$=typeof O?.name=="string"?O.name:C,{__resolveType:Re,...z}=t;Ne.mutate({blockKey:C,data:Rt(Re??"",z,$)},{onSuccess:()=>g?.(),onError:G=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}A&&(h[r]={...A,rule:t}),f.sections={...S,variants:h},Ne.mutate({blockKey:s,data:f},{onSuccess:()=>g?.(),onError:C=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},gn)},ua=t=>{ye(t);const s=t?zn(t,i):{__resolveType:Hn};Q(t?s:{}),Dn(s)},da=t=>{const s=t;Q(s);const a=ie?{__resolveType:ie,...s}:{...s};Dn(a)},ma=async t=>{jt();const{activePageKey:s,decofile:a,variantIndex:r}=Xe.current;if(!s)return;const f=a[s],S=f?.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[r];if(!W)return;const C=Pt(W.rule,a,i),O=Jt(t);A[r]={...W,rule:O};const $={...a,[s]:{...f,sections:{...h,variants:A}}},{resolveType:Re,formValue:z}=Ct(O,$,i??void 0);ye(Re),Q(z);try{await Ne.mutateAsync({blockKey:s,data:$[s]}),C&&C!==t&&await At(C,$),g?.()}catch(G){q.error(G instanceof Error?G.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{ot.current&&clearTimeout(ot.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=Xe.current;s!==null&&(ot.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Xe.current;if(!h)return;const C=r[s],O=f[s];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const z=($.variants??[])[a]?.rule;if(Et(z,S,i)){const be=z?.__resolveType??"",Qe=S[be],rt=typeof Qe?.name=="string"?Qe.name:be,{__resolveType:pt,...lt}=t;Ne.mutate({blockKey:be,data:Rt(pt??"",lt,rt)},{onSuccess:()=>g?.(),onError:gt=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const G=$n($,a,t),Ke=[...r];Ke[s]=yt(C,O,G);const et=Mt(S,h,Ke,W,A);Ne.mutate({blockKey:h,data:et},{onSuccess:()=>g?.(),onError:be=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:be.message}))})},gn))},fa=t=>{We(t);const s=t?zn(t,i):{__resolveType:Hn};Ve(t?s:{}),Vn(s)},pa=t=>{const s=t;Ve(s);const a=Ze?{__resolveType:Ze,...s}:{...s};Vn(a)},ga=async t=>{jt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Xe.current;if(s===null||!h)return;const C=r[s],O=f[s];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const Re=$.variants??[],z=Pt(Re[a]?.rule,S,i),G=Jt(t),Ke=$n($,a,G),et=[...r];et[s]=yt(C,O,Ke);const be=Mt(S,h,et,W,A),Qe={...S,[h]:be},{resolveType:rt,formValue:pt}=Ct(G,Qe,i??void 0);We(rt),Ve(pt);try{await Ne.mutateAsync({blockKey:h,data:be}),z&&z!==t&&await At(z,Qe),g?.()}catch(lt){q.error(lt instanceof Error?lt.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ae&&!Ye)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:x})});if(Ae&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const mt=m!==null?He[m]??null:null,Nn=m!==null?H[m]:null,An=Nn&&mt?.isMultivariate?nt(Nn,mt):null,St=An?In(An,ht):[],un=Math.min(De,Math.max(St.length-1,0)),Ht=St[un]??null,ft=mt?.isMultivariate===!0,Cn=m!==null&&mt!==null,Ut=Cn&&(ft||!!(rn&&we)),ha=Ut&&!Ae&&mt?.isSavedBlock===!0,it=Ae||ha,va=Ae?xn:mt?.label??"",Sa=Ze&&i?qt(Ze,i):null,dn=Ut&&(!Ae||re.length>0)?Ae?[xn,...re]:[Ye.name,mt.label,...ft&&Ht?[Ht.label]:[],...re]:[],ba=I&&Ye?[Ye.name,"SEO",...Te]:[],Gt=I?ba:it?dn.length>0?dn:[va]:dn,ya=!I&&!Ae&&ft&&re.length===0,Pn=()=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const t=l[E],s=vo(t.sections,H);if(!s)return;const a=So(s);Ne.mutate({blockKey:E,data:{...t,sections:s}},{onSuccess:()=>{K(a),P(null),N(null),T(null),L([]),Q(null),ye(null)},onError:r=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},mn=(t,s,a)=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const r=l[E],f=r.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const S=f;if(!Array.isArray(S.variants))return;const h=t([...S.variants]);if(!h)return;const A=Ao(S,h),W={...l,[E]:{...r,sections:A}};Ne.mutate({blockKey:E,data:W[E]},{onSuccess:()=>{s?.(),a&&At(a,W)},onError:C=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},xa=t=>{xe(null),K(t),P(null),N(null),T(null),L([]);const s=Ge[t]?.rule,{resolveType:a,formValue:r}=Ct(s,l??{},i??void 0);ye(a),Q(r),En(Ge.map(f=>({rule:f.rule})),t)},_a=(t,s)=>{if(t===s)return;let a=$e;$e===t?a=s:t<$e&&s>=$e?a=$e-1:t>$e&&s<=$e&&(a=$e+1),K(a);const r=Lt(Ge.map(f=>({rule:f.rule})),t,s);En(r,a),mn(f=>Lt(f,t,s))},ja=t=>{const s=Ge[t]?.rule,a=Pt(s,l??{},i??void 0);mn(r=>r.length<=1?null:(r.splice(t,1),r),()=>{Ge.length-1===1?K(0):t<$e?K($e-1):t===$e&&K(Math.max(0,t-1)),P(null),N(null),T(null),L([]),Q(null),ye(null)},a)},Ea=t=>{mn(s=>Co(s,t),()=>{K(t+1),P(null),N(null),T(null),L([]),Q(null),ye(null)})},Ra=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const a=Xe.current.activePageKey,r=Xe.current.decofile;if(!a)return;const f=r[a],S=f.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[t];if(!W?.rule||typeof W.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const C=W.rule,O=s.trim();It(!0);try{if(!O){if(!Et(C,r,i)){xe(null);return}const et=C.__resolveType??"";A[t]={...W,rule:Un(C,r,i)};const be={...r,[a]:{...f,sections:{...h,variants:A}}};await Ne.mutateAsync({blockKey:a,data:be[a]}),await At(et,be),xe(null),g?.();return}const $=Gn(C,r,i);if(!$){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await Ne.mutateAsync({blockKey:$.blockKey,data:Rt($.resolveType,$.data,O)}),xe(null),g?.();return}const Re=fn(O),z=pn(Re,r);if(z){q.error(z);return}const G=Rt($.resolveType,$.data,O);let Ke=null;try{await Ne.mutateAsync({blockKey:Re,data:G}),Ke=Re,A[t]={...W,rule:Jt(Re)},await Ne.mutateAsync({blockKey:a,data:{...f,sections:{...h,variants:A}}}),Ke=null}catch(et){throw Ke&&await en.mutateAsync({blockKey:Ke}).catch(()=>{}),et}xe(null),q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:O})),g?.()}catch($){q.error($ instanceof Error?$.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{It(!1)}},wa=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const{selectedSectionIndex:a,rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:A,variantIndex:W}=Xe.current;if(a===null||!h)return;const C=r[a],O=f[a];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const Re=$.variants??[],z=Re[t];if(!z?.rule||typeof z.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const G=z.rule,Ke=s.trim();It(!0);const et=async be=>{const Qe={...$,variants:be},rt=[...r];rt[a]=yt(C,O,Qe);const pt=Mt(S,h,rt,W,A);return await Ne.mutateAsync({blockKey:h,data:pt}),{...S,[h]:pt}};try{if(!Ke){if(!Et(G,S,i)){me(null);return}const gt=G.__resolveType??"",Bn=[...Re];Bn[t]={...z,rule:Un(G,S,i)};const Na=await et(Bn);await At(gt,Na),me(null),g?.();return}const be=Gn(G,S,i);if(!be){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(be.blockKey){await Ne.mutateAsync({blockKey:be.blockKey,data:Rt(be.resolveType,be.data,Ke)}),me(null),g?.();return}const Qe=fn(Ke),rt=pn(Qe,S);if(rt){q.error(rt);return}const pt=Rt(be.resolveType,be.data,Ke);let lt=null;try{await Ne.mutateAsync({blockKey:Qe,data:pt}),lt=Qe;const gt=[...Re];gt[t]={...z,rule:Jt(Qe)},await et(gt),lt=null}catch(gt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),gt}me(null),q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ke})),g?.()}catch(be){q.error(be instanceof Error?be.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{It(!1)}},Mn=()=>{_t()},ka=t=>{Z(t),ln({inner:t})},Ta=t=>{ve(t),ln({raw:t})},Da=()=>{Z(null),_([])},Va=()=>ae(t=>t+1),Ln=t=>{if(I){if(t===0){Xt.flush(),Ee(!1),Z(null),ve(void 0),_([]),ae(a=>a+1),B?.();return}if(t===1){_([]),ae(a=>a+1);return}_(Te.slice(0,t-1)),ae(a=>a+1);return}if(Ae){L(re.slice(0,t)),F(a=>a+1);return}if(t===0){Mn();return}if(t===1){L([]),F(a=>a+1);return}if(ft&&t===2){L([]),F(a=>a+1);return}const s=ft?2:1;L(re.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:it||Ut||I?n.jsxs("div",{className:Ue("border-b px-3 py-2.5",it&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[Gt.length>1&&n.jsx("button",{type:"button",onClick:()=>Ln(Po(Gt.length,{isMultivariateSectionTop:ya})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:Ue("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",it?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Io,{className:"size-4"})}),!Ae&&Ft&&ut&&n.jsxs("button",{type:"button",onClick:Mn,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Ue("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",lo),children:[n.jsx(ks,{rule:Bt(ut.rule,l??{},i??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.label})]}),n.jsx("nav",{"aria-label":c("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const a=s===Gt.length-1,r=co(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx($o,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Ln(s),title:r,className:Ue("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?it?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":it?"text-foreground/80":"text-muted-foreground",it?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:r})]},`${r}-${s}`)})}),it&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(zo,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!ft&&!mt?.isHidden&&E&&n.jsx(On,{onClick:()=>cn()})]}),it&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(uo,{pageKey:E,initialName:Ye.name,initialPath:Ye.path,onFieldChange:qs})}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Oo,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>M&&E?M():je(!0),children:n.jsx(Fo,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(On,{onClick:Pn})]})}),I?n.jsx(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:Ot&&E?n.jsx(ai,{rawSeo:an,innerSeo:_n,defaultResolveType:Fs,seoSchema:$s,activeResolveType:on,seoTypeOptions:Os,formResetKey:Se,siteDefaultSeo:zs,onBreadcrumbChange:_,onPersistRaw:Ta,onInnerChange:ka,onClearForm:Da,onBumpFormKey:Va}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:qe,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&St.length>0&&re.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(mo,{listKey:`${E??""}:${m??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:na,onRename:me,onDuplicate:aa,onDelete:sa,onRemoveAll:ia,onReorder:oa,onAdd:()=>cn()}),ft&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Zn,{currentRt:Ze??"",currentLabel:Yt(Ht?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(Ht?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:fa,onSelectGlobal:ga,schema:Sa,formValue:ct,onChange:pa,formKey:`${m??"none"}:${un}:${Ze??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:l,onSaveReferencedBlock:Kt,sandbox:$t})]})]}),n.jsx(Fn,{activeSchema:rn,formValue:we,formResetKey:ke,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:re,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:i,decofile:l,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:J,onRequestAddSection:wn})]},"editor-section-form"):Ae?n.jsx(Qt,{viewportRef:qe,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Fn,{activeSchema:rn,formValue:we,formResetKey:ke,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:re,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:i,decofile:l,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:J,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ft&&E&&n.jsx(Li,{listKey:E,variants:Ge,activeIndex:$e,decofile:l??{},meta:i,matchers:zt,onSelect:xa,onReorder:_a,onRename:xe,onDuplicate:Ea,onDelete:ja,onAdd:Pn}),Ft&&ie!==null&&n.jsxs("div",{className:Ue("px-3 border-b",_e?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>fe(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-sm py-0.5 hover:bg-muted/40","aria-expanded":_e,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),_e?n.jsx(Mo,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Lo,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),_e&&n.jsx("div",{className:Ue("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Zn,{currentRt:ie,currentLabel:Yt(ut?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(ut?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:ua,onSelectGlobal:ma,schema:ca,formValue:de,onChange:da,formKey:`${$e}:${ie??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:l,onSaveReferencedBlock:Kt,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(ki,{listKey:`${E??""}-${$e}`,rawSections:H,sections:He,meta:i,selectedIndex:m,onSelect:Gs,onReorder:Ws,onDelete:Ys,onDuplicate:Js,onMakeReusable:Oe,onToggleHidden:Qs,onToggleLazy:Zs,onAddVariant:cn,onDetach:Xs,onAddSection:()=>se(!0),canAddSection:la})})]},"editor-section-list"),n.jsx(fo,{open:te!==null,onOpenChange:t=>{t||Oe(null)},defaultBlockId:te!==null?fn(He[te]?.label??""):"",isPending:Ne.isPending,onSubmit:ra}),J&&n.jsx(li,{open:pe,onOpenChange:t=>{se(t),t||(le.current=null)},meta:i,decofile:l,previewBaseUrl:J,onSelect:ta}),Me&&E&&l&&n.jsx(po,{open:Me,onOpenChange:je,pageKey:E,decofile:l}),Pe!==null&&n.jsx(Yn,{open:!0,initialName:Et(Ge[Pe]?.rule,l??{},i??void 0)?Yt(Ge[Pe]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Bt(Ge[Pe]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await Ra(Pe,t)},onOpenChange:t=>{!t&&!Vt&&xe(null)}}),ne!==null&&n.jsx(Yn,{open:!0,initialName:Et(St[ne]?.rule,l??{},i??void 0)?Yt(St[ne]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Bt(St[ne]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await wa(ne,t)},onOpenChange:t=>{!t&&!Vt&&me(null)}})]})}export{$c as SectionsEditor};
@@ -1 +0,0 @@
1
- import{c as n,J as a,j as o,G as c,l as d,Y as f,bW as x,O as h}from"./index-DR-7CxUP.js";import{i as u}from"./settings-sidebar-C0QwDGxU.js";import{T as p}from"./toolbar-BGgBqcbD.js";import{S as j,M as b}from"./shell-controls-DLLmOm3e.js";import{u as S}from"./use-status-sounds-CZvvi-5S.js";import"./ChevronUp-CGseLBwf.js";import"./ChevronRight-DyhM_Luf.js";import"./TrendUp01-DhL5-hJo.js";import"./toolbar-icon-button-CyWbgFMR.js";import"./Check-Bqh0edDs.js";import"./ChevronSelectorVertical-S2WVRFJv.js";import"./Plus-BZSUkwsF.js";import"./command-BDN-a3rJ.js";import"./index-Jy48DtbD.js";import"./dialog-wNMMbzXr.js";import"./SearchMd-CC2qYhKq.js";import"./drawer-Dl4KbpLj.js";import"./popover-zAXw_Ex4.js";import"./agent-icon-B7AXGQ6P.js";import"./AlertCircle-D5wzOxIg.js";import"./Tool01-CgvePMtM.js";import"./ArrowUp-_u4Yru0Q.js";import"./ArrowLeft-Beb7uT2a.js";import"./Tool02-_HC8oqfU.js";import"./ArrowRight-Du9XgC-I.js";import"./ZoomOut-DiztYlpQ.js";import"./Users03-BZkJWCNu.js";import"./CheckCircle-P3KELI_n.js";import"./DotsVertical-CXA4FBF-.js";import"./UserSquare-CpUQtm07.js";import"./Copy01-CQ5n9k6R.js";import"./CreditCard01-DQ2UyAUW.js";import"./Download01-EHABWuSq.js";import"./Settings02-3O7I-4oK.js";import"./Eye-4ikW46Xl.js";import"./Share07-B043tEsF.js";import"./GitBranch01-rChCKXuD.js";import"./Globe01-DQGNcxVn.js";import"./XClose-C2dpX0F_.js";import"./HardDrive-CALvWP4_.js";import"./Image01-BrxwhCeX.js";import"./Key01-D_IxGQOL.js";import"./Link01-DvvkHs6T.js";import"./LinkExternal01-B4pNNDj3.js";import"./Monitor01-Cb0G367h.js";import"./Sun-BUQJT4KF.js";import"./Package-Bfk8OrRH.js";import"./Palette-B6tq__pc.js";import"./Play-BKI4FgKL.js";import"./Shield01-DSyesTES.js";import"./Stars01-D0DXnyE9.js";import"./Trash01-DCX9ydiU.js";import"./Upload01-CNkQbAmi.js";import"./User01-cnJUdVWa.js";import"./Users01-CPNdhBFx.js";import"./XCircle-4con0UUu.js";import"./Zap-Bsbv5icR.js";import"./project-icon-DZuabjud.js";import"./constants-Daqiz8AS.js";import"./use-virtual-mcp-DLU-VkLe.js";import"./use-mcp-client-Cjw7oL0k.js";import"./auth-BTVKfAUC.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-BST4Ck0w.js";import"./alert-dialog-BxdFiiIi.js";import"./form-B76JQCy8.js";import"./label-CHgW_ahI.js";import"./input-By-Luuj6.js";import"./use-destination-route-DZ6zuyom.js";import"./use-join-requests-D-siqVP0.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-BXOAX3zK.js";import"./decopilot-sse-pool-DIVelB7F.js";import"./task-board-DX0mX_sm.js";import"./schema-CzaGiNXr.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:l}=c();S(l.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function zt(){const t=n.c(10),r=a();let l;t[0]!==r?(l=r&&o.jsxs(p.Header,{children:[o.jsx(p.LeftColumn,{children:o.jsx(j,{})}),o.jsx(p.CenterSlot,{}),o.jsx(p.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=l):l=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==l?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[l,e]}),t[3]=l,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(p.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{zt as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BiksbGSO.js","assets/index-DR-7CxUP.js","assets/index-MAAh901k.css","assets/Tool02-_HC8oqfU.js","assets/CheckCircle-P3KELI_n.js","assets/Settings02-3O7I-4oK.js","assets/use-mcp-client-Cjw7oL0k.js","assets/constants-Daqiz8AS.js","assets/auth-BTVKfAUC.js","assets/useInfiniteQuery-7dgy4-tR.js","assets/infiniteQueryObserver-DMi6D2_K.js","assets/badge-5xoC1FJQ.js","assets/input-By-Luuj6.js","assets/dropdown-menu-BvPxOnm0.js","assets/Check-Bqh0edDs.js","assets/ChevronRight-DyhM_Luf.js","assets/DotsVertical-CXA4FBF-.js","assets/table-C9B_yGws.js","assets/toggle-group-OyXGZbFx.js","assets/use-view-mode-86puchYT.js","assets/Globe01-DQGNcxVn.js","assets/SearchMd-CC2qYhKq.js","assets/dialog-wNMMbzXr.js","assets/AlertCircle-D5wzOxIg.js","assets/Download01-EHABWuSq.js","assets/Upload01-CNkQbAmi.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BxdFiiIi.js","assets/Trash01-DCX9ydiU.js","assets/label-CHgW_ahI.js","assets/select-8-nbJ0jG.js","assets/ChevronUp-CGseLBwf.js","assets/switch-B_09jY5-.js","assets/textarea-DD_XQc8b.js","assets/ArrowLeft-Beb7uT2a.js","assets/ArrowRight-Du9XgC-I.js","assets/Link01-DvvkHs6T.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-DdiWS6j9.js","assets/Eye-4ikW46Xl.js","assets/LinkExternal01-B4pNNDj3.js","assets/XCircle-4con0UUu.js","assets/use-infinite-scroll-CqmvxgxE.js","assets/use-copy-pSJtH4fM.js","assets/Copy01-CQ5n9k6R.js","assets/Key01-D_IxGQOL.js","assets/Plus-BZSUkwsF.js","assets/mcp-oauth-Dql553Ej.js","assets/Play-BKI4FgKL.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bl as p}from"./index-DR-7CxUP.js";import{R as u}from"./require-capability-ry4-n_XW.js";import"./access-gate-DD56oGJy.js";import"./capability-load-error-QfuL86LE.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BiksbGSO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-DMi6D2_K.js";import{fc as i}from"./index-DR-7CxUP.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-DMi6D2_K.js";import{fc as u,bT as n}from"./index-DR-7CxUP.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};