decocms 4.204.11 → 4.204.13

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 (227) hide show
  1. package/dist/client/assets/{AlertCircle-Db8FAhD0.js → AlertCircle-t9kUW9BH.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CkHaA1qM.js → AreaChart-DmIkMWGB.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BBdrIXTE.js → ArrowLeft-DxlI0K3l.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DAgivKXe.js → ArrowUp-DBP4eA1K.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-BAYKU_Mt.js → ArrowUpRight-SURLuRcS.js} +1 -1
  6. package/dist/client/assets/{Check-Ckh2J0Wj.js → Check-Q_yc371e.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DWW9c4n7.js → CheckCircle-Cyy4D0Wk.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-DcGz0OOE.js → ChevronDown-DFkI-nW4.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DPR4kcMe.js → ChevronRight-B-t4sM7Y.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-335oTLfl.js → ChevronUp-BK0MhUI9.js} +1 -1
  11. package/dist/client/assets/{Copy01-DCGFBPLU.js → Copy01-DkkAhbDb.js} +1 -1
  12. package/dist/client/assets/{CpuChip01-CpN_p7ZK.js → CpuChip01-BkxfJgGd.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CA0IYAzI.js → CreditCard01-BbSKhNwU.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-BdH2ws1v.js → DotsVertical-B65aJki4.js} +1 -1
  15. package/dist/client/assets/{Eye-Cd6Z4wr1.js → Eye-Bw3JeUea.js} +1 -1
  16. package/dist/client/assets/{FilterLines-CGfVuof0.js → FilterLines-Xl0CktAu.js} +1 -1
  17. package/dist/client/assets/{Globe01-C6n_Eepd.js → Globe01-1OAqTvr9.js} +1 -1
  18. package/dist/client/assets/{Globe04-B1lizZTT.js → Globe04-BntIGNZN.js} +1 -1
  19. package/dist/client/assets/{HardDrive-DzwjWFWh.js → HardDrive-Dv9_4l-m.js} +1 -1
  20. package/dist/client/assets/{Key01-1GhbQsqk.js → Key01-DRXWYewX.js} +1 -1
  21. package/dist/client/assets/{LayoutLeft-9QVSG_-K.js → LayoutLeft-CqLZXkC6.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DnTES2u_.js → LinkExternal01-BDwWealf.js} +1 -1
  23. package/dist/client/assets/{LogOut01-BLj4aSl9.js → LogOut01-CiPNmOnp.js} +1 -1
  24. package/dist/client/assets/{Monitor01-aQHufnwR.js → Monitor01-Dbyg60vH.js} +1 -1
  25. package/dist/client/assets/{Palette-hUc3dCur.js → Palette-DVPairZr.js} +1 -1
  26. package/dist/client/assets/{Play-3BJ0NCnw.js → Play-Bh-ayD4B.js} +1 -1
  27. package/dist/client/assets/{Plus-DSVjF-4R.js → Plus-CUkUWxdD.js} +1 -1
  28. package/dist/client/assets/{SearchLg-DeEuvWgr.js → SearchLg-C79s55_k.js} +1 -1
  29. package/dist/client/assets/{SearchMd-D3BEkIfl.js → SearchMd-CMjwSQU9.js} +1 -1
  30. package/dist/client/assets/{Settings02-Dd-GnwO4.js → Settings02-Kqx8skGl.js} +1 -1
  31. package/dist/client/assets/{Share07-BK5jaJxR.js → Share07-CPSl7a-t.js} +1 -1
  32. package/dist/client/assets/{Shield01-CAAiZUxe.js → Shield01-ChZX2bMj.js} +1 -1
  33. package/dist/client/assets/{Star01-BD9GU6__.js → Star01-Bj_I8cx8.js} +1 -1
  34. package/dist/client/assets/{Stars01-CsmqcIh0.js → Stars01-D6RvMV14.js} +1 -1
  35. package/dist/client/assets/{Stars02-Ddu22e9e.js → Stars02-CtFRFrX4.js} +1 -1
  36. package/dist/client/assets/{Sun-CBbSD7eu.js → Sun-ipeIXp1k.js} +1 -1
  37. package/dist/client/assets/{SwitchHorizontal01-DdUa0KSY.js → SwitchHorizontal01-DR_JuKs7.js} +1 -1
  38. package/dist/client/assets/{Tool01-DKQr2Ku4.js → Tool01-DoyrqsAP.js} +1 -1
  39. package/dist/client/assets/{Tool02-DkhywL9m.js → Tool02-B0i5JWIx.js} +1 -1
  40. package/dist/client/assets/{Trash01-N83L9DVj.js → Trash01-DqW1gUgk.js} +1 -1
  41. package/dist/client/assets/{TrendUp01-5u9J7nxr.js → TrendUp01-Dl630gvk.js} +1 -1
  42. package/dist/client/assets/{Upload01-BKUwtebR.js → Upload01-BkjC4UZG.js} +1 -1
  43. package/dist/client/assets/{User01-DH7Gp-RH.js → User01-B3Z3NzWy.js} +1 -1
  44. package/dist/client/assets/{Users01-CewPDueJ.js → Users01-B0NV9C7o.js} +1 -1
  45. package/dist/client/assets/{Users03-DqyOOoSg.js → Users03-Bdx_nigu.js} +1 -1
  46. package/dist/client/assets/{X-BmCvrF6m.js → X-DDmpCOCF.js} +1 -1
  47. package/dist/client/assets/{XCircle-Dl4jNIuW.js → XCircle-Db8da32F.js} +1 -1
  48. package/dist/client/assets/{XClose-B91Wj--l.js → XClose-DNLnH3PA.js} +1 -1
  49. package/dist/client/assets/{Zap-Byhu3tNy.js → Zap-kSIB-TKU.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-CcO7sK-p.js → ZapSquare-piE9xEeK.js} +1 -1
  51. package/dist/client/assets/{access-gate-BghzSCnE.js → access-gate-CkUfCqgc.js} +1 -1
  52. package/dist/client/assets/{agent-icon-BAPsFhIR.js → agent-icon-DSVhGkgm.js} +1 -1
  53. package/dist/client/assets/{agents-list-CvmlZ194.js → agents-list-arYh3351.js} +1 -1
  54. package/dist/client/assets/{ai-providers-CeK1aDD5.js → ai-providers-Rk9NS_AS.js} +1 -1
  55. package/dist/client/assets/{alert-BmYNBm_2.js → alert-Cf6Ro7wH.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-BCaZm96Z.js → alert-dialog-Bd_40P0p.js} +1 -1
  57. package/dist/client/assets/{app-editor-BkS9quwq.js → app-editor-DMj_tD8i.js} +1 -1
  58. package/dist/client/assets/{auth-CLFO3_RL.js → auth-B0ntTTdS.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-CQs_KDud.js → auth-catchall-N68ttQlW.js} +1 -1
  60. package/dist/client/assets/{auth-entry-DSPq_zl2.js → auth-entry-BXGRbnBp.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-xD8HIOJV.js → auth-split-layout-BfY2nquA.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-CJL9FtIM.js → authenticate-and-persist-oauth-CeXJ2urV.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-U2osdxyj.js → automation-list-row-CqVVaBcs.js} +1 -1
  64. package/dist/client/assets/{automation-runs-xPJB6zEu.js → automation-runs-XYsgMwAb.js} +1 -1
  65. package/dist/client/assets/{automations-By5FdrRI.js → automations-BHW7MR-U.js} +1 -1
  66. package/dist/client/assets/{avatar-BlKd_wSy.js → avatar-DbDjh7jx.js} +1 -1
  67. package/dist/client/assets/{badge-j9XMC7le.js → badge-C8ayT7b8.js} +1 -1
  68. package/dist/client/assets/{billing-Dzs5yrq4.js → billing-Ctf1uPxL.js} +1 -1
  69. package/dist/client/assets/{block-document-BWa5Tlq2.js → block-document-BIwnipmU.js} +1 -1
  70. package/dist/client/assets/{brand-context-CD_ONfXU.js → brand-context-DYf5wzHy.js} +1 -1
  71. package/dist/client/assets/{buckets-DQHToByp.js → buckets-_BKHJsC6.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-DLoyqlGA.js → bulk-category-panel-BQRMt4xf.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-CvMtarEx.js → capability-load-error-CQqiLJg2.js} +1 -1
  74. package/dist/client/assets/{card-BdxDDHfa.js → card-B0vWR34_.js} +1 -1
  75. package/dist/client/assets/{cards-NVoopU1W.js → cards-CwJJYR3b.js} +1 -1
  76. package/dist/client/assets/{category-editor-AYvl8iXa.js → category-editor-DMrmcEEc.js} +1 -1
  77. package/dist/client/assets/{chat-context-CeV8_oNw.js → chat-context-DE-4wYcT.js} +1 -1
  78. package/dist/client/assets/{checkbox-B1jaivmN.js → checkbox-DXjdyKjn.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-BL0Y-yea.js → cli-auth-success-BpUGm8Ji.js} +1 -1
  80. package/dist/client/assets/{collection-detail-DCEdt-jZ.js → collection-detail-mL3j6A_0.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-B9Ra2TL3.js → collection-display-button-C30Pqo-h.js} +1 -1
  82. package/dist/client/assets/{collection-search-DbKCI-82.js → collection-search-CFgaFN7v.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-BzshRiXk.js → collection-table-wrapper-CS3DtXly.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-B6YV6Wqg.js → collection-tabs-C0t2SVge.js} +1 -1
  85. package/dist/client/assets/{command-BBDTtSLh.js → command-B0GOE-dH.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-9EjLW7tV.js → commerce-onboarding-PaKzVT4C.js} +1 -1
  87. package/dist/client/assets/{connect-B2SH5zln.js → connect-71mq11qw.js} +1 -1
  88. package/dist/client/assets/{connection-wwxku9Ff.js → connection-B9odzu1G.js} +1 -1
  89. package/dist/client/assets/connection-card-BHUSg672.js +1 -0
  90. package/dist/client/assets/{connection-detail-DU1vjuZG.js → connection-detail-b64AAlSv.js} +1 -1
  91. package/dist/client/assets/{connection-form-helpers-CahL0pvk.js → connection-form-helpers-CsFzOlmW.js} +1 -1
  92. package/dist/client/assets/{connections-VGzSR5ha.js → connections-pzsc0zR_.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-PkdJDYdO.js → decopilot-sse-pool-CD84CcHx.js} +1 -1
  94. package/dist/client/assets/{dialog-DyuBQbz8.js → dialog-DJ3VTNcj.js} +1 -1
  95. package/dist/client/assets/{domain-settings-DrHioTEw.js → domain-settings-CCW37l_M.js} +1 -1
  96. package/dist/client/assets/{drawer-ClGoEAYt.js → drawer-9LTxevdY.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-CN40TAwh.js → dropdown-menu-BViFOW-L.js} +1 -1
  98. package/dist/client/assets/{empty-state-DwUtvF_m.js → empty-state-CdUHtS-Y.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-De7mHrhF.js → extract-connection-data-BfEpJhp-.js} +1 -1
  100. package/dist/client/assets/{file-explorer-k1tulnag.js → file-explorer-Dnc7q9uc.js} +1 -1
  101. package/dist/client/assets/{file-type-icon-BlQX_yUc.js → file-type-icon-DknriV9E.js} +1 -1
  102. package/dist/client/assets/{form-6TwMc-HF.js → form-BoNP6dB0.js} +1 -1
  103. package/dist/client/assets/{general-DCs0LngS.js → general-C8aqIEFy.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-CNbnvvQi.js → github-repo-picker-rJOF8_wE.js} +1 -1
  105. package/dist/client/assets/{hooks-C92XOaKP.js → hooks-BApA-OWt.js} +1 -1
  106. package/dist/client/assets/{index-CPQnHYL0.js → index-CCI-9JBv.js} +1 -1
  107. package/dist/client/assets/{index-BBOexEq8.js → index-CNRoDqM5.js} +1 -1
  108. package/dist/client/assets/{index-gBiaWWBo.js → index-CSx4Y5xc.js} +1 -1
  109. package/dist/client/assets/{index-DNAkesNr.js → index-CUMWKtVH.js} +1 -1
  110. package/dist/client/assets/{index-CuhGmwi3.js → index-CZU1q9GL.js} +1 -1
  111. package/dist/client/assets/{index-xKCaiUtp.js → index-DDfTMTTr.js} +1 -1
  112. package/dist/client/assets/{index-DWXkCL-D.js → index-DoFw5ciC.js} +5 -5
  113. package/dist/client/assets/{index-sqdSTtTR.js → index-DpmBjJfK.js} +1 -1
  114. package/dist/client/assets/{index-BEdBSIIA.css → index-GO9q_qH2.css} +1 -1
  115. package/dist/client/assets/{index-WGPk5Q7x.js → index-aUqqcw9t.js} +1 -1
  116. package/dist/client/assets/{index-redirect-D3KtZ2UU.js → index-redirect-ODntV1MD.js} +1 -1
  117. package/dist/client/assets/{index-Ciskbrba.js → index-vhleEKyM.js} +5 -5
  118. package/dist/client/assets/{input-Cw-Wyzjp.js → input-Rb0sCQM5.js} +1 -1
  119. package/dist/client/assets/{integration-icon-CNs8rVds.js → integration-icon-BlKLyIlf.js} +1 -1
  120. package/dist/client/assets/{invite-member-dialog-CdBFNToB.js → invite-member-dialog-TvYZmZCi.js} +1 -1
  121. package/dist/client/assets/{label-i-JCcQNn.js → label-DrRvp1_a.js} +1 -1
  122. package/dist/client/assets/{layout-BQy87mOk.js → layout-CMzqkYlt.js} +1 -1
  123. package/dist/client/assets/{login-B2eBh913.js → login-DhXuRQW9.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-Cz8lm40c.js → mcp-oauth-394z343j.js} +1 -1
  125. package/dist/client/assets/{members-DPfTwGjQ.js → members-CaiQkyVQ.js} +1 -1
  126. package/dist/client/assets/{monaco-editor-VJrBuRSN.js → monaco-editor-PvOG2pyb.js} +1 -1
  127. package/dist/client/assets/{monitoring-stats-row-CwxtC9n0.js → monitoring-stats-row-DVCvJAdi.js} +1 -1
  128. package/dist/client/assets/{multi-select-uHF1SoQJ.js → multi-select-CWxB0r-v.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-ChWiHCSr.js → oauth-callback-Dz9Zaqs0.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-DFozECrw.js → oauth-callback-ai-provider-BFmYvMY5.js} +1 -1
  131. package/dist/client/assets/{onboarding-D5VzaCtk.js → onboarding-Cs9cqPQ9.js} +1 -1
  132. package/dist/client/assets/{org-layout-DfyhjR2o.js → org-layout-BpyfEAp3.js} +1 -1
  133. package/dist/client/assets/{organization-choice-CMtQudk_.js → organization-choice-e5BJ6Uzu.js} +1 -1
  134. package/dist/client/assets/{orgs-BkOIA6ce.js → orgs-CHKnDqlX.js} +1 -1
  135. package/dist/client/assets/{page-seo-form-B36Slu3i.js → page-seo-form-DODaGkrH.js} +1 -1
  136. package/dist/client/assets/{popover-DssDKn2g.js → popover-DaTggZVB.js} +1 -1
  137. package/dist/client/assets/{post-editor-Z0tZ_f5B.js → post-editor-Chd_1Yh7.js} +1 -1
  138. package/dist/client/assets/{primitives-DthsGsSM.js → primitives-DB6iy1u3.js} +1 -1
  139. package/dist/client/assets/{profile-B2j3m06h.js → profile-D5qrNWCV.js} +1 -1
  140. package/dist/client/assets/{project-app-view-BsoxDm6i.js → project-app-view-CfVEGbPZ.js} +1 -1
  141. package/dist/client/assets/record-editor-WmW-lqHk.js +1 -0
  142. package/dist/client/assets/{redirect-editor-uLmND-LU.js → redirect-editor-DoGCHSc2.js} +1 -1
  143. package/dist/client/assets/registry-Bvj9_E_D.js +2 -0
  144. package/dist/client/assets/{registry-layout-CsM7mO5K.js → registry-layout-Dv28TO4R.js} +3 -3
  145. package/dist/client/assets/{reports-Cc9cfYJZ.js → reports-B_c4KROq.js} +1 -1
  146. package/dist/client/assets/{require-capability-D9rxWmoq.js → require-capability-DrLAkrbR.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-Cx1dgRdu.js → required-auth-layout-TBEzuB70.js} +1 -1
  148. package/dist/client/assets/{reset-password-CDbRR2NR.js → reset-password-DZdPWF-n.js} +1 -1
  149. package/dist/client/assets/{roles-D0yIPM2u.js → roles-BNAI4xge.js} +1 -1
  150. package/dist/client/assets/{search-input-9VIRkcfy.js → search-input-Cel34iS0.js} +1 -1
  151. package/dist/client/assets/{secrets-BFiNOtCX.js → secrets-D1-Orqxq.js} +1 -1
  152. package/dist/client/assets/sections-editor-BiidFtFN.js +2 -0
  153. package/dist/client/assets/{select-BPHj3yEG.js → select-C-nwIwm2.js} +1 -1
  154. package/dist/client/assets/{select-model-JbUCoNOJ.js → select-model-VVKprkxJ.js} +1 -1
  155. package/dist/client/assets/{self-tool-result-CqE4epjU.js → self-tool-result-Ch38ihv-.js} +1 -1
  156. package/dist/client/assets/{seo-editor-B_3PyxQG.js → seo-editor-DUAfBjbD.js} +1 -1
  157. package/dist/client/assets/{settings-layout-CKf6cgue.js → settings-layout-DNjsrjoF.js} +1 -1
  158. package/dist/client/assets/{settings-section-Dh7xkKg_.js → settings-section-CY1YgChu.js} +1 -1
  159. package/dist/client/assets/{shell-controls-DosMkzwp.js → shell-controls-DaxqY9hG.js} +1 -1
  160. package/dist/client/assets/{shell-layout-DsCjXZuI.js → shell-layout-DLl0geCB.js} +1 -1
  161. package/dist/client/assets/{sidebar-Bt6Ox8Tg.js → sidebar-C1LkUqm0.js} +1 -1
  162. package/dist/client/assets/{skeleton-DaSU0LrF.js → skeleton-Chcs2eEb.js} +1 -1
  163. package/dist/client/assets/{spinner-tb9aLmXA.js → spinner-2llJ3iH2.js} +1 -1
  164. package/dist/client/assets/{sso-CnjZk_8r.js → sso-BJG6pnbG.js} +1 -1
  165. package/dist/client/assets/{store-ZS51GiQE.js → store-Bm2SYWvd.js} +1 -1
  166. package/dist/client/assets/store-registry-BpCGZWQ5.js +2 -0
  167. package/dist/client/assets/{studio-tools-2Ky28cSc.js → studio-tools-B1oDKH5b.js} +1 -1
  168. package/dist/client/assets/{switch-BsgP2USk.js → switch-Ds9GEKM_.js} +1 -1
  169. package/dist/client/assets/{synced-repos-B3eX6lrw.js → synced-repos-BljI6_8d.js} +1 -1
  170. package/dist/client/assets/{tab-id-Bg-2ZvlR.js → tab-id-r13W9Wxm.js} +1 -1
  171. package/dist/client/assets/{table-DtygcXDr.js → table-DJFW1EGe.js} +1 -1
  172. package/dist/client/assets/{tabs-B-yQnDjy.js → tabs-UzQvNAzJ.js} +1 -1
  173. package/dist/client/assets/{textarea-CIIh3eCO.js → textarea-Csfxp6CP.js} +1 -1
  174. package/dist/client/assets/{toggle-group-SpDgsjAy.js → toggle-group-Osbl_sfp.js} +1 -1
  175. package/dist/client/assets/{toolbar-DoiNuzRz.js → toolbar-DNgaVRuJ.js} +1 -1
  176. package/dist/client/assets/{tooltip-bNOyqjG-.js → tooltip-JodlOCbt.js} +1 -1
  177. package/dist/client/assets/{use-ai-providers-fR1LNvFR.js → use-ai-providers-CP_gI_x1.js} +1 -1
  178. package/dist/client/assets/{use-automations-6PKQGIaU.js → use-automations-Jl1K5CuK.js} +1 -1
  179. package/dist/client/assets/{use-autosave-Cyw8Zffh.js → use-autosave-DUWR830J.js} +1 -1
  180. package/dist/client/assets/{use-capability-DKpeN9dM.js → use-capability-sYEyy1G4.js} +1 -1
  181. package/dist/client/assets/{use-clock-tick-Dunir5bW.js → use-clock-tick-ClNNj8Xy.js} +1 -1
  182. package/dist/client/assets/{use-connection-CvELWTwk.js → use-connection-BH4Ak5dn.js} +1 -1
  183. package/dist/client/assets/{use-copy-BZ4yfNM-.js → use-copy-owsOgmNR.js} +1 -1
  184. package/dist/client/assets/{use-create-virtual-mcp-CZ2B3BXE.js → use-create-virtual-mcp-Dg1HOf9-.js} +1 -1
  185. package/dist/client/assets/{use-debounced-autosave-BoxizbC8.js → use-debounced-autosave-B0qQmEyw.js} +1 -1
  186. package/dist/client/assets/{use-debounced-value-CBrkrBVe.js → use-debounced-value-DzSztwhd.js} +1 -1
  187. package/dist/client/assets/{use-deco-credits-j4q9AuO0.js → use-deco-credits-s69jSapu.js} +1 -1
  188. package/dist/client/assets/{use-decopilot-events-M2HCToeh.js → use-decopilot-events-CxH7YyGv.js} +1 -1
  189. package/dist/client/assets/{use-delete-connection-DMSO0MLQ.js → use-delete-connection-LR8ul5_t.js} +1 -1
  190. package/dist/client/assets/{use-deployment-admin-CPnc7Qs9.js → use-deployment-admin-BfeebFaS.js} +1 -1
  191. package/dist/client/assets/{use-file-configs-uSz0v_YV.js → use-file-configs-DL2C6Ych.js} +1 -1
  192. package/dist/client/assets/{use-infinite-scroll-Csqlp5hg.js → use-infinite-scroll-DlAGHAoQ.js} +1 -1
  193. package/dist/client/assets/{use-join-requests-B9Eyqa2b.js → use-join-requests-BhVlrNoj.js} +1 -1
  194. package/dist/client/assets/{use-mcp-client-DKp-llYX.js → use-mcp-client-D6KNMmMm.js} +1 -1
  195. package/dist/client/assets/{use-mcp-tools-C6yyPNEW.js → use-mcp-tools-WhbcsZQX.js} +1 -1
  196. package/dist/client/assets/{use-members-DPZXIkQa.js → use-members-DFnBYEni.js} +1 -1
  197. package/dist/client/assets/{use-mobile-6uCDoREK.js → use-mobile-BgeQVb-Y.js} +1 -1
  198. package/dist/client/assets/{use-navigate-to-agent-i487hDEf.js → use-navigate-to-agent-Dt8fypCN.js} +1 -1
  199. package/dist/client/assets/{use-open-billing-url-IyKhK2Ci.js → use-open-billing-url-DAM2KksN.js} +1 -1
  200. package/dist/client/assets/{use-org-auth-client-DrjcoPeu.js → use-org-auth-client-Ct4B9wfH.js} +1 -1
  201. package/dist/client/assets/{use-org-sso-d3sj4htn.js → use-org-sso-BpnT--VY.js} +1 -1
  202. package/dist/client/assets/{use-organization-roles-rTKk2RPb.js → use-organization-roles-D7R3wpvw.js} +1 -1
  203. package/dist/client/assets/{use-organization-settings-mJokZoPl.js → use-organization-settings-CFVAbfyW.js} +1 -1
  204. package/dist/client/assets/{use-registry-connections-cg2WmvBD.js → use-registry-connections-B_Qf5D0Y.js} +1 -1
  205. package/dist/client/assets/{use-secrets--J9RYnhw.js → use-secrets-nyWeqN1q.js} +1 -1
  206. package/dist/client/assets/{use-section-preview-base-B-NvnIwC.js → use-section-preview-base-DepAatdT.js} +1 -1
  207. package/dist/client/assets/{use-status-sounds-BX6vUIM6.js → use-status-sounds-I07vI8vt.js} +1 -1
  208. package/dist/client/assets/{use-tags-BpnhmQR6.js → use-tags-C0X1mDa-.js} +1 -1
  209. package/dist/client/assets/{use-view-mode-mAo2loN2.js → use-view-mode-nFerNcPn.js} +1 -1
  210. package/dist/client/assets/{use-virtual-mcp-CoA0Ur0Z.js → use-virtual-mcp-BtqIqnUO.js} +1 -1
  211. package/dist/client/assets/useInfiniteQuery-DMgF85Sn.js +1 -0
  212. package/dist/client/assets/{useRouterState-B4HUQS9e.js → useRouterState-CAEFoH47.js} +1 -1
  213. package/dist/client/assets/useSuspenseInfiniteQuery-BEgu5A8X.js +1 -0
  214. package/dist/client/assets/{users-D1gGSsyv.js → users-CUzdkcJW.js} +1 -1
  215. package/dist/client/assets/{variant-calendar-CNgwTPu-.js → variant-calendar-DDUe39p7.js} +1 -1
  216. package/dist/client/assets/{view-mode-toggle-D2v_6Pw8.js → view-mode-toggle-DyN5aUu8.js} +1 -1
  217. package/dist/client/index.html +2 -2
  218. package/dist/server/cli.js +278 -278
  219. package/dist/server/server.js +203 -203
  220. package/package.json +1 -1
  221. package/dist/client/assets/connection-card-CwA9Uv3g.js +0 -1
  222. package/dist/client/assets/record-editor-By1O18Uh.js +0 -1
  223. package/dist/client/assets/registry-C1PE-N76.js +0 -2
  224. package/dist/client/assets/sections-editor-DJGlX2Yh.js +0 -2
  225. package/dist/client/assets/store-registry-Bl2J1FeF.js +0 -2
  226. package/dist/client/assets/useInfiniteQuery-DTZxXa2W.js +0 -1
  227. package/dist/client/assets/useSuspenseInfiniteQuery-eryeyNHv.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.204.11",
3
+ "version": "4.204.13",
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 S,F as K,b7 as Q,K as H,b as q,m as $,j as x}from"./index-DWXkCL-D.js";import{u as G}from"./use-registry-connections-cg2WmvBD.js";import{f as U}from"./use-organization-settings-mJokZoPl.js";import{S as k,n as V}from"./use-mcp-client-DKp-llYX.js";import{u as X}from"./useInfiniteQuery-DTZxXa2W.js";import{i as Y,f as z}from"./extract-connection-data-De7mHrhF.js";import{r as B,R as W}from"./retry-CErkP7V6.js";import{g as A}from"./connection-slug-eyAPH6o3.js";import{C as Z}from"./card-BdxDDHfa.js";import{I as J}from"./integration-icon-CNs8rVds.js";function ye(){const s=S.c(6),e=G(),t=U(),n=K().project.enabledPlugins??[];let o;if(s[0]!==n||s[1]!==t||s[2]!==e){let a;s[4]!==t?(a=r=>t(r.id),s[4]=t,s[5]=a):a=s[5],o=e.filter(a).map(O),n.includes("private-registry")&&t(k)&&o.push({id:k,title:"Private Registry",icon:null}),s[0]=n,s[1]=t,s[2]=e,s[3]=o}else o=s[3];return o}function O(s){return{id:s.id,title:s.title,icon:s.icon}}const ee=24,L=3;function F(s){return s.id.includes("community-registry")}function te(s){const e=s?.trim().split(/\s+/).filter(Boolean)??[];if(e.length===0)return;const t=[["title"],["description"],["name"],["server","title"]];return{operator:"or",conditions:e.flatMap(n=>t.map(o=>({field:o,operator:"contains",value:n})))}}function D(s,e,t,n,o){const a=s.map(l=>l.id).sort().join(","),r=te(o),{data:p,fetchNextPage:d,hasNextPage:f,isFetchingNextPage:g,isLoading:C}=X({queryKey:H.storeDiscovery(e,`${a}:${o??""}`),queryFn:async({pageParam:l})=>{const c=l??{};return await Promise.all(s.map(async i=>{const y=c[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const b=Y(i.id,e);try{return await B(async()=>{let u=null;try{u=await V({connectionId:i.id,orgId:e,orgSlug:t});const h={limit:ee};y&&(h.cursor=y),r&&(h.where=r);const N=await u.callTool({name:b,arguments:h}),v=N.structuredContent??N,P=v.nextCursor||v.cursor||void 0,j=z(v?[v]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:j,nextCursor:P}}finally{await u?.close().catch(()=>{})}},{maxAttempts:L,minTimeout:0,maxTimeout:1e3,jitter:0})}catch(u){return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${L} attempts:`,u instanceof W?u.cause:u),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}}))},initialPageParam:{},getNextPageParam:l=>{const c={};let m=!1;for(const i of l)i.registryId&&(i.nextCursor?(c[i.registryId]=i.nextCursor,m=!0):c[i.registryId]="EXHAUSTED");return m?c:void 0},staleTime:3600*1e3,placeholderData:Q,retry:!1,enabled:s.length>0}),I=[];if(p?.pages)for(const l of p.pages)for(const c of l)for(const m of c.items)I.push({...m,_sourceName:m._sourceName??c.registryTitle,_sourceIcon:m._sourceIcon??c.registryIcon,_registryId:m._registryId??c.registryId});return{items:I,hasMore:f??!1,isLoadingMore:g,isInitialLoading:C,fetchNextPage:()=>{f&&!g&&d()}}}function he(s,e){const t=S.c(16),{org:n}=K();let o;t[0]!==s?(o=s.filter(ie),t[0]=s,t[1]=o):o=t[1];const a=o;let r;t[2]!==s?(r=s.filter(se),t[2]=s,t[3]=r):r=t[3];const p=r,d=D(a,n.id,n.slug,!0,e),f=D(p,n.id,n.slug,!0,e);let g;if(t[4]!==f.items||t[5]!==d.items){const y=new Set;g=[];const b=[...d.items,...f.items];for(const u of b){const h=`${u._registryId}:${u.id}`;y.has(h)||(y.add(h),g.push(u))}t[4]=f.items,t[5]=d.items,t[6]=g}else g=t[6];const C=d.isInitialLoading||f.isInitialLoading,I=d.isLoadingMore||f.isLoadingMore,l=d.hasMore||f.hasMore;let c;t[7]!==f||t[8]!==d?(c=()=>{d.hasMore&&d.fetchNextPage(),f.hasMore&&f.fetchNextPage()},t[7]=f,t[8]=d,t[9]=c):c=t[9];const m=c;let i;return t[10]!==l||t[11]!==C||t[12]!==I||t[13]!==g||t[14]!==m?(i={items:g,hasMore:l,isLoadingMore:I,isInitialLoading:C,loadMore:m},t[10]=l,t[11]=C,t[12]=I,t[13]=g,t[14]=m,t[15]=i):i=t[15],i}function se(s){return F(s)}function ie(s){return!F(s)}function xe(s){const e=new Map;for(const o of s){const a=A(o),r=e.get(a);r?r.push(o):e.set(a,[o])}const t=[],n=new Set;for(const o of s){const a=A(o);if(n.has(a))continue;n.add(a);const r=e.get(a),p=r[0];r.length===1?t.push({type:"single",connection:p}):t.push({type:"group",key:a,icon:p.icon,title:p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title,connections:r})}return t}function ve(s){const e=S.c(45),{connection:t,onClick:n,headerActions:o,headerActionsAlwaysVisible:a,body:r,footer:p,className:d,fallbackIcon:f}=s,g=a===void 0?!1:a,C=q(),I=n&&"hover:bg-muted/50";let l;e[0]!==d||e[1]!==I?(l=$("cursor-pointer transition-colors group overflow-hidden flex flex-col h-full",I,d),e[0]=d,e[1]=I,e[2]=l):l=e[2];const c=n?"button":void 0,m=n?0:void 0;let i;e[3]!==n?(i=n?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),n())}:void 0,e[3]=n,e[4]=i):i=e[4];let y;e[5]!==t.icon||e[6]!==t.title||e[7]!==f?(y=x.jsx(J,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[5]=t.icon,e[6]=t.title,e[7]=f,e[8]=y):y=e[8];let b;e[9]!==o||e[10]!==g?(b=o&&x.jsx("div",{className:$("transition-opacity",!g&&"sm:opacity-0 sm:group-hover:opacity-100"),onClick:ne,children:o}),e[9]=o,e[10]=g,e[11]=b):b=e[11];let u;e[12]!==b?(u=x.jsx("div",{className:"relative",children:b}),e[12]=b,e[13]=u):u=e[13];let h;e[14]!==y||e[15]!==u?(h=x.jsxs("div",{className:"flex items-start justify-between",children:[y,u]}),e[14]=y,e[15]=u,e[16]=h):h=e[16];let N;e[17]!==t.title?(N=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[17]=t.title,e[18]=N):N=e[18];let v;e[19]!==t.description||e[20]!==C?(v=t.description||C("connections.connectionCard.noDescription"),e[19]=t.description,e[20]=C,e[21]=v):v=e[21];let P;e[22]!==v?(P=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:v}),e[22]=v,e[23]=P):P=e[23];let j;e[24]!==N||e[25]!==P?(j=x.jsxs("div",{className:"flex flex-col gap-1",children:[N,P]}),e[24]=N,e[25]=P,e[26]=j):j=e[26];let R;e[27]!==r?(R=r&&x.jsx("div",{children:r}),e[27]=r,e[28]=R):R=e[28];let M;e[29]!==h||e[30]!==j||e[31]!==R?(M=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[h,j,R]}),e[29]=h,e[30]=j,e[31]=R,e[32]=M):M=e[32];let T;e[33]!==p?(T=p&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:oe,children:p})}),e[33]=p,e[34]=T):T=e[34];let w;e[35]!==M||e[36]!==T?(w=x.jsxs("div",{className:"flex flex-col flex-1",children:[M,T]}),e[35]=M,e[36]=T,e[37]=w):w=e[37];let _;return e[38]!==n||e[39]!==w||e[40]!==l||e[41]!==c||e[42]!==m||e[43]!==i?(_=x.jsx(Z,{className:l,onClick:n,role:c,tabIndex:m,onKeyDown:i,children:w}),e[38]=n,e[39]=w,e[40]=l,e[41]=c,e[42]=m,e[43]=i,e[44]=_):_=e[44],_}function oe(s){return s.stopPropagation()}function ne(s){return s.stopPropagation()}export{ve as C,he as a,xe as g,ye as u};
@@ -1 +0,0 @@
1
- import{c as L,b as R,j as r}from"./index-DWXkCL-D.js";import{I as A}from"./input-Cw-Wyzjp.js";import{L as I}from"./label-i-JCcQNn.js";import{S as z,a as J,b as O,c as V,d as $}from"./select-BPHj3yEG.js";import{T as D}from"./textarea-CIIh3eCO.js";import{R as M,T as U,U as W,J as q,W as G,$ as H}from"./index-Ciskbrba.js";import{s as F}from"./primitives-DthsGsSM.js";import{u as Q}from"./use-autosave-Cyw8Zffh.js";import"./tooltip-bNOyqjG-.js";import"./Check-Ckh2J0Wj.js";import"./ChevronDown-DcGz0OOE.js";import"./ChevronUp-335oTLfl.js";import"./ArrowUp-DAgivKXe.js";import"./chat-context-CeV8_oNw.js";import"./tab-id-Bg-2ZvlR.js";import"./dialog-DyuBQbz8.js";import"./X-BmCvrF6m.js";import"./Copy01-DCGFBPLU.js";import"./hooks-C92XOaKP.js";import"./use-mcp-client-DKp-llYX.js";import"./auth-CLFO3_RL.js";import"./decopilot-sse-pool-PkdJDYdO.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CoA0Ur0Z.js";import"./use-ai-providers-fR1LNvFR.js";import"./studio-tools-2Ky28cSc.js";import"./use-decopilot-events-M2HCToeh.js";import"./use-organization-settings-mJokZoPl.js";import"./automation-runs-xPJB6zEu.js";import"./agent-icon-BAPsFhIR.js";import"./AlertCircle-Db8FAhD0.js";import"./Tool01-DKQr2Ku4.js";import"./ArrowLeft-BBdrIXTE.js";import"./Tool02-DkhywL9m.js";import"./XCircle-Dl4jNIuW.js";import"./ArrowUpRight-BAYKU_Mt.js";import"./TrendUp01-5u9J7nxr.js";import"./ZapSquare-CcO7sK-p.js";import"./Users03-DqyOOoSg.js";import"./CheckCircle-DWW9c4n7.js";import"./ChevronRight-DPR4kcMe.js";import"./DotsVertical-BdH2ws1v.js";import"./Stars02-Ddu22e9e.js";import"./CpuChip01-CpN_p7ZK.js";import"./CreditCard01-CA0IYAzI.js";import"./Globe01-C6n_Eepd.js";import"./Settings02-Dd-GnwO4.js";import"./Eye-Cd6Z4wr1.js";import"./FilterLines-CGfVuof0.js";import"./Share07-BK5jaJxR.js";import"./Star01-BD9GU6__.js";import"./Globe04-B1lizZTT.js";import"./SwitchHorizontal01-DdUa0KSY.js";import"./HardDrive-DzwjWFWh.js";import"./Key01-1GhbQsqk.js";import"./LayoutLeft-9QVSG_-K.js";import"./LinkExternal01-DnTES2u_.js";import"./LogOut01-BLj4aSl9.js";import"./Monitor01-aQHufnwR.js";import"./Sun-CBbSD7eu.js";import"./Palette-hUc3dCur.js";import"./Play-3BJ0NCnw.js";import"./Plus-DSVjF-4R.js";import"./SearchLg-DeEuvWgr.js";import"./SearchMd-D3BEkIfl.js";import"./Shield01-CAAiZUxe.js";import"./Stars01-CsmqcIh0.js";import"./Trash01-N83L9DVj.js";import"./Upload01-BKUwtebR.js";import"./User01-DH7Gp-RH.js";import"./Users01-CewPDueJ.js";import"./XClose-B91Wj--l.js";import"./Zap-Byhu3tNy.js";import"./useInfiniteQuery-DTZxXa2W.js";import"./use-infinite-scroll-Csqlp5hg.js";import"./use-connection-CvELWTwk.js";import"./card-BdxDDHfa.js";import"./sidebar-Bt6Ox8Tg.js";import"./use-mobile-6uCDoREK.js";import"./table-DtygcXDr.js";import"./empty-state-DwUtvF_m.js";import"./use-members-DPZXIkQa.js";import"./use-org-auth-client-DrjcoPeu.js";import"./use-clock-tick-Dunir5bW.js";import"./use-automations-6PKQGIaU.js";import"./useSuspenseInfiniteQuery-eryeyNHv.js";import"./avatar-BlKd_wSy.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BZ4yfNM-.js";import"./monaco-editor-VJrBuRSN.js";import"./spinner-tb9aLmXA.js";import"./index-CuhGmwi3.js";import"./shell-layout-DsCjXZuI.js";import"./required-auth-layout-Cx1dgRdu.js";import"./use-org-sso-d3sj4htn.js";import"./integration-icon-CNs8rVds.js";import"./use-navigate-to-agent-i487hDEf.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CkHaA1qM.js";import"./form-6TwMc-HF.js";import"./file-type-icon-BlQX_yUc.js";import"./drawer-ClGoEAYt.js";import"./collection-search-DbKCI-82.js";import"./tabs-B-yQnDjy.js";import"./toggle-group-SpDgsjAy.js";import"./use-deco-credits-j4q9AuO0.js";import"./popover-DssDKn2g.js";import"./alert-dialog-BCaZm96Z.js";import"./toolbar-DoiNuzRz.js";import"./skeleton-DaSU0LrF.js";import"./github-repo-picker-CNbnvvQi.js";import"./use-debounced-value-CBrkrBVe.js";import"./authenticate-and-persist-oauth-CJL9FtIM.js";import"./mcp-oauth-Cz8lm40c.js";import"./use-mcp-tools-C6yyPNEW.js";import"./extract-connection-data-De7mHrhF.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CwA9Uv3g.js";import"./use-registry-connections-cg2WmvBD.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-CahL0pvk.js";import"./collection-tabs-B6YV6Wqg.js";import"./badge-j9XMC7le.js";import"./use-open-billing-url-IyKhK2Ci.js";import"./select-model-JbUCoNOJ.js";import"./checkbox-B1jaivmN.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dh7xkKg_.js";import"./cards-NVoopU1W.js";import"./dropdown-menu-CN40TAwh.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BX6vUIM6.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DKpeN9dM.js";import"./pt-BR-CLy76QW2.js";import"./switch-BsgP2USk.js";import"./use-debounced-autosave-BoxizbC8.js";import"./index-gBiaWWBo.js";import"./search-input-9VIRkcfy.js";import"./index-BBOexEq8.js";import"./use-secrets--J9RYnhw.js";import"./self-tool-result-CqE4epjU.js";import"./use-tags-BpnhmQR6.js";import"./get-initials-D-f_fDFw.js";import"./command-BBDTtSLh.js";import"./index-sqdSTtTR.js";import"./use-file-configs-uSz0v_YV.js";import"./automation-list-row-U2osdxyj.js";const X={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"}]},Y={authors:"sandbox.recordEditor.titleAuthor"};function Wr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:f}=C,i=R(),P=M(h);let b;t[0]!==w||t[1]!==K||t[2]!==P||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:P},t[0]=w,t[1]=K,t[2]=P,t[3]=h,t[4]=b):b=t[4];const p=U(b);let k;t[5]!==f||t[6]!==a?(k=W(f,a),t[5]=f,t[6]=a,t[7]=k):k=t[7];const B=k;let v;t[8]!==g||t[9]!==a||t[10]!==p?(v=l=>{p.mutate({blockKey:g,data:G(g,a,l)})},t[8]=g,t[9]=a,t[10]=p,t[11]=v):v=t[11];const[e,S]=Q(B,v);let j;t[12]!==e||t[13]!==S?(j=(l,o)=>S({...e,[l]:o}),t[12]=e,t[13]=S,t[14]=j):j=t[14];const s=j,T=Y[a];let n;t[15]!==i||t[16]!==T?(n=i(T),t[15]=i,t[16]=T,t[17]=n):n=t[17];let c;t[18]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let d;t[20]!==p.isError||t[21]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[20]=p.isError,t[21]=p.isPending,t[22]=d):d=t[22];let y;t[23]!==c||t[24]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[23]=c,t[24]=d,t[25]=y):y=t[25];const N=X[a];let x;if(t[26]!==e||t[27]!==s||t[28]!==i||t[29]!==N){let l;t[31]!==e||t[32]!==s||t[33]!==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(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(J,{id:o.key,className:"h-10 w-full",children:r.jsx(O,{placeholder:i(o.labelKey)})}),r.jsx(V,{children:(o.options??[]).map(m=>r.jsx($,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(D,{id:o.key,value:F(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:F(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[31]=e,t[32]=s,t[33]=i,t[34]=l):l=t[34],x=N.map(l),t[26]=e,t[27]=s,t[28]=i,t[29]=N,t[30]=x}else x=t[30];let u;t[35]!==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[35]=x,t[36]=u):u=t[36];let E;return t[37]!==y||t[38]!==u?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[37]=y,t[38]=u,t[39]=E):E=t[39],E}export{Wr as RecordEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CsM7mO5K.js","assets/index-DWXkCL-D.js","assets/index-BEdBSIIA.css","assets/Tool02-DkhywL9m.js","assets/CheckCircle-DWW9c4n7.js","assets/Settings02-Dd-GnwO4.js","assets/use-mcp-client-DKp-llYX.js","assets/auth-CLFO3_RL.js","assets/useInfiniteQuery-DTZxXa2W.js","assets/use-infinite-scroll-Csqlp5hg.js","assets/studio-tools-2Ky28cSc.js","assets/badge-j9XMC7le.js","assets/input-Cw-Wyzjp.js","assets/dropdown-menu-CN40TAwh.js","assets/Check-Ckh2J0Wj.js","assets/ChevronRight-DPR4kcMe.js","assets/DotsVertical-BdH2ws1v.js","assets/table-DtygcXDr.js","assets/toggle-group-SpDgsjAy.js","assets/use-view-mode-mAo2loN2.js","assets/use-mobile-6uCDoREK.js","assets/FilterLines-CGfVuof0.js","assets/Globe01-C6n_Eepd.js","assets/SearchMd-D3BEkIfl.js","assets/dialog-DyuBQbz8.js","assets/X-BmCvrF6m.js","assets/AlertCircle-Db8FAhD0.js","assets/Upload01-BKUwtebR.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BCaZm96Z.js","assets/card-BdxDDHfa.js","assets/Trash01-N83L9DVj.js","assets/label-i-JCcQNn.js","assets/select-BPHj3yEG.js","assets/tooltip-bNOyqjG-.js","assets/ChevronDown-DcGz0OOE.js","assets/ChevronUp-335oTLfl.js","assets/switch-BsgP2USk.js","assets/textarea-CIIh3eCO.js","assets/ArrowLeft-BBdrIXTE.js","assets/XCircle-Dl4jNIuW.js","assets/checkbox-B1jaivmN.js","assets/Eye-Cd6Z4wr1.js","assets/LinkExternal01-DnTES2u_.js","assets/use-copy-BZ4yfNM-.js","assets/Copy01-DCGFBPLU.js","assets/Key01-1GhbQsqk.js","assets/Plus-DSVjF-4R.js","assets/mcp-oauth-Cz8lm40c.js","assets/Play-3BJ0NCnw.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,k as a,aG as o}from"./index-DWXkCL-D.js";import{R as m}from"./require-capability-D9rxWmoq.js";import"./use-capability-DKpeN9dM.js";import"./access-gate-BghzSCnE.js";import"./capability-load-error-CvMtarEx.js";const n=s.lazy(()=>o(()=>import("./registry-layout-CsM7mO5K.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,49])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{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,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1,2 +0,0 @@
1
- import{c as Ge,b as ct,r as w,m as $e,j as n,ae as Xn,B as Xe,k as Zn,o as Ca,t as J,K as Ma}from"./index-DWXkCL-D.js";import{ap as Ba,aq as Ka,ar as La,a4 as es,a5 as Qt,as as ts,at as ns,a6 as ss,a7 as as,au as os,av as Fa,ae as rs,af as is,aw as Ia,ax as Oa,ay as ls,O as $a,a8 as cs,a9 as Mt,ac as us,ad as ds,aa as ms,ak as fs,az as za,aA as Bt,aB as ps,aC as Ha,S as gs,aD as lt,G as hs,aE as Ua,aF as qa,aG as Ga,aH as Wa,D as Ya,F as Ja,aI as Qa,aJ as Xa,aK as Za,aL as eo,ai as qt,aM as Gt,aN as to,aO as St,aP as Pt,aQ as no,aR as so,aS as tt,aT as Kn,aU as ao,aV as At,aW as Wt,aX as oo,aY as mn,aZ as ro,a_ as kt,a$ as io,b0 as lo,b1 as co,b2 as uo,b3 as mo,b4 as xt,b5 as fo,b6 as po,b7 as go,I as ho,b8 as Ln,b9 as Ct,ba as Fn,bb as In,bc as vo,bd as bo,be as So,bf as xo,bg as fn,bh as On,bi as $n,bj as Tt,bk as Yt,bl as zn,bm as yo,bn as pn,bo as _o,bp as jo,bq as Eo,br as Ro,bs as wo}from"./index-Ciskbrba.js";import{t as ko}from"./ChevronDown-DcGz0OOE.js";import{ad as hn,v as To,T as vs,E as No,u as bs,af as Vo,_ as Do}from"./agent-icon-BAPsFhIR.js";import{i as Ss}from"./ChevronRight-DPR4kcMe.js";import{n as Po}from"./ChevronUp-335oTLfl.js";import{i as Ao}from"./Globe01-C6n_Eepd.js";import{B as Jt}from"./automation-runs-xPJB6zEu.js";import{c as yt,T as _t,a as jt}from"./tooltip-bNOyqjG-.js";import{b as Co,h as Mo,a as Bo,c as Ko,d as Lo,e as Fo}from"./dialog-DyuBQbz8.js";import{I as Io}from"./input-Cw-Wyzjp.js";import{a as xs}from"./Copy01-DCGFBPLU.js";import{i as Oo}from"./Settings02-Dd-GnwO4.js";import{s as $o}from"./Eye-Cd6Z4wr1.js";import{s as ys}from"./TrendUp01-5u9J7nxr.js";import{s as vn}from"./Plus-DSVjF-4R.js";import{s as _s}from"./Trash01-N83L9DVj.js";import{i as zo}from"./Zap-Byhu3tNy.js";import{D as js,a as vt,c as Es,b as Rs,i as Ho}from"./dropdown-menu-CN40TAwh.js";import{S as Uo,r as Hn,u as qo,d as Go,a as Wo,i as Yo,f as Jo,P as Qo,b as Xo}from"./page-seo-form-B36Slu3i.js";import{c as Zo}from"./Tool01-DKQr2Ku4.js";import{u as er,A as tr}from"./use-section-preview-base-B-NvnIwC.js";import"./ArrowUp-DAgivKXe.js";import"./chat-context-CeV8_oNw.js";import"./tab-id-Bg-2ZvlR.js";import"./Check-Ckh2J0Wj.js";import"./hooks-C92XOaKP.js";import"./use-mcp-client-DKp-llYX.js";import"./auth-CLFO3_RL.js";import"./decopilot-sse-pool-PkdJDYdO.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-CoA0Ur0Z.js";import"./use-ai-providers-fR1LNvFR.js";import"./studio-tools-2Ky28cSc.js";import"./use-decopilot-events-M2HCToeh.js";import"./use-organization-settings-mJokZoPl.js";import"./spinner-tb9aLmXA.js";import"./drawer-ClGoEAYt.js";import"./collection-search-DbKCI-82.js";import"./SearchMd-D3BEkIfl.js";import"./use-mobile-6uCDoREK.js";import"./AreaChart-CkHaA1qM.js";import"./index-CuhGmwi3.js";import"./X-BmCvrF6m.js";import"./shell-layout-DsCjXZuI.js";import"./avatar-BlKd_wSy.js";import"./User01-DH7Gp-RH.js";import"./Users03-DqyOOoSg.js";import"./SearchLg-DeEuvWgr.js";import"./Stars02-Ddu22e9e.js";import"./XClose-B91Wj--l.js";import"./CheckCircle-DWW9c4n7.js";import"./CpuChip01-CpN_p7ZK.js";import"./FilterLines-CGfVuof0.js";import"./Monitor01-aQHufnwR.js";import"./required-auth-layout-Cx1dgRdu.js";import"./use-org-sso-d3sj4htn.js";import"./ZapSquare-CcO7sK-p.js";import"./Star01-BD9GU6__.js";import"./Upload01-BKUwtebR.js";import"./AlertCircle-Db8FAhD0.js";import"./form-6TwMc-HF.js";import"./label-i-JCcQNn.js";import"./select-BPHj3yEG.js";import"./ArrowLeft-BBdrIXTE.js";import"./XCircle-Dl4jNIuW.js";import"./tabs-B-yQnDjy.js";import"./Tool02-DkhywL9m.js";import"./toggle-group-SpDgsjAy.js";import"./use-deco-credits-j4q9AuO0.js";import"./sidebar-Bt6Ox8Tg.js";import"./LayoutLeft-9QVSG_-K.js";import"./popover-DssDKn2g.js";import"./alert-dialog-BCaZm96Z.js";import"./toolbar-DoiNuzRz.js";import"./skeleton-DaSU0LrF.js";import"./github-repo-picker-CNbnvvQi.js";import"./use-debounced-value-CBrkrBVe.js";import"./use-connection-CvELWTwk.js";import"./authenticate-and-persist-oauth-CJL9FtIM.js";import"./mcp-oauth-Cz8lm40c.js";import"./LinkExternal01-DnTES2u_.js";import"./Share07-BK5jaJxR.js";import"./use-mcp-tools-C6yyPNEW.js";import"./extract-connection-data-De7mHrhF.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-i487hDEf.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CwA9Uv3g.js";import"./use-registry-connections-cg2WmvBD.js";import"./useInfiniteQuery-DTZxXa2W.js";import"./use-infinite-scroll-Csqlp5hg.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-BdxDDHfa.js";import"./integration-icon-CNs8rVds.js";import"./textarea-CIIh3eCO.js";import"./connection-form-helpers-CahL0pvk.js";import"./collection-tabs-B6YV6Wqg.js";import"./badge-j9XMC7le.js";import"./useSuspenseInfiniteQuery-eryeyNHv.js";import"./use-open-billing-url-IyKhK2Ci.js";import"./select-model-JbUCoNOJ.js";import"./checkbox-B1jaivmN.js";import"./Key01-1GhbQsqk.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dh7xkKg_.js";import"./ArrowUpRight-BAYKU_Mt.js";import"./Stars01-CsmqcIh0.js";import"./cards-NVoopU1W.js";import"./DotsVertical-BdH2ws1v.js";import"./Palette-hUc3dCur.js";import"./file-type-icon-BlQX_yUc.js";import"./question-004-sINsf4GQ.js";import"./use-members-DPZXIkQa.js";import"./use-org-auth-client-DrjcoPeu.js";import"./use-status-sounds-BX6vUIM6.js";import"./empty-state-DwUtvF_m.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-DKpeN9dM.js";import"./monaco-editor-VJrBuRSN.js";import"./pt-BR-CLy76QW2.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./switch-BsgP2USk.js";import"./Play-3BJ0NCnw.js";import"./use-debounced-autosave-BoxizbC8.js";import"./index-gBiaWWBo.js";import"./search-input-9VIRkcfy.js";import"./index-BBOexEq8.js";import"./Users01-CewPDueJ.js";import"./use-secrets--J9RYnhw.js";import"./self-tool-result-CqE4epjU.js";import"./format-time-BnbuEtat.js";import"./use-copy-BZ4yfNM-.js";import"./SwitchHorizontal01-DdUa0KSY.js";import"./use-tags-BpnhmQR6.js";import"./get-initials-D-f_fDFw.js";import"./command-BBDTtSLh.js";import"./index-sqdSTtTR.js";import"./use-file-configs-uSz0v_YV.js";import"./use-automations-6PKQGIaU.js";import"./automation-list-row-U2osdxyj.js";import"./CreditCard01-CA0IYAzI.js";import"./Globe04-B1lizZTT.js";import"./HardDrive-DzwjWFWh.js";import"./LogOut01-BLj4aSl9.js";import"./Sun-CBbSD7eu.js";import"./Shield01-CAAiZUxe.js";import"./table-DtygcXDr.js";import"./use-clock-tick-Dunir5bW.js";function nr(g){return g.schema?.definitions??g.schema?.$defs??{}}function sr(g,e){const o=nr(e),u=o[btoa(g)];if(!u)return;let m=typeof u.image=="string"?u.image:void 0;if(!m&&Array.isArray(u.allOf)){const b=u.allOf.find(S=>typeof S.$ref=="string")?.$ref;if(typeof b=="string"){const S=b.replace("#/definitions/",""),f=o[S];m=typeof f?.image=="string"?f.image:void 0}}if(m?.includes("{{{"))return m}function ar(g,e){if(!e)return;const o=Ba(g);if(!o)return;const u=sr(o.resolveType,e);if(!u)return;const m=Ka(u,o.data);if(m)return La(m)}const or="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",rr="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 Un(g){return Array.from({length:g},(e,o)=>({id:crypto.randomUUID(),index:o}))}function ws(g){return g.map((e,o)=>({...e,index:o}))}function ir(g,e){if(e===g.length)return g;if(e<g.length)return ws(g.slice(0,e));const o=Array.from({length:e-g.length},(u,m)=>({id:crypto.randomUUID(),index:g.length+m}));return[...g,...o]}function ks(g){const e=Ge.c(20),{section:o,raw:u,meta:m}=g,b=o.isSavedBlock===!0,S=o.isMultivariate===!0;let f;e[0]!==m||e[1]!==u?(f=u&&m?ar(u,m):void 0,e[0]=m,e[1]=u,e[2]=f):f=e[2];const x=f;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(To,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=d):d=e[3];let y;e[4]!==x?(y=x&&n.jsx("img",{src:x,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=x,e[5]=y):y=e[5];let T;e[6]!==S||e[7]!==b?(T=b?{color:$a}:S?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=S,e[7]=b,e[8]=T):T=e[8];let V;e[9]!==T?(V=n.jsx(hn,{className:"h-4 w-4 shrink-0",style:T}),e[9]=T,e[10]=V):V=e[10];const E=o.isHidden&&"line-through opacity-50";let i;e[11]!==E?(i=$e("min-w-0 flex-1 truncate text-sm font-medium",E),e[11]=E,e[12]=i):i=e[12];let h;e[13]!==o.label||e[14]!==i?(h=n.jsx("span",{className:i,children:o.label}),e[13]=o.label,e[14]=i,e[15]=h):h=e[15];let r;return e[16]!==y||e[17]!==V||e[18]!==h?(r=n.jsxs(n.Fragment,{children:[d,y,V,h]}),e[16]=y,e[17]=V,e[18]=h,e[19]=r):r=e[19],r}const lr="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",cr="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]",ur="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 gn(g,e){return $e("h-7 shrink-0 overflow-hidden",e?lr:g?ur:cr)}function Ts(g,e){const o=g.isSavedBlock===!0,u=g.isMultivariate===!0;return $e("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?or:u?ls:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function dr(g){const e=Ge.c(82),{section:o,raw:u,meta:m,sortableId:b,selected:S,onSelect:f,onDelete:x,onDuplicate:d,onMakeReusable:y,onToggleHidden:T,onToggleLazy:V,onAddVariant:E,onDetach:i}=g,h=ct(),r=u?os(u.__resolveType??""):!1,P=o.isHidden===!0,l=r||P;let R;e[0]!==o?(R=Fa(o),e[0]=o,e[1]=R):R=e[1];const K=R;let O;e[2]!==b?(O={id:b,animateLayoutChanges:hr},e[2]=b,e[3]=O):O=e[3];const{attributes:H,listeners:p,setNodeRef:A,transform:De,isDragging:C}=rs(O);let ce;e[4]!==De?(ce=is.Transform.toString(De?{...De,x:0}:null),e[4]=De,e[5]=ce):ce=e[5];const B=C?0:void 0;let te;e[6]!==ce||e[7]!==B?(te={transform:ce,opacity:B},e[6]=ce,e[7]=B,e[8]=te):te=e[8];const F=te;let re;e[9]!==o?(re=Ia(o),e[9]=o,e[10]=re):re=e[10];const ie=re,xe="button",Q=0;let X;e[11]!==f?(X=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),f())},e[11]=f,e[12]=X):X=e[12];const ge=C?"cursor-grabbing":"cursor-pointer";let se;e[13]!==o||e[14]!==S||e[15]!==ge?(se=$e("touch-none transition-colors",ge,Ts(o,S)),e[13]=o,e[14]=S,e[15]=ge,e[16]=se):se=e[16];let L;e[17]!==m||e[18]!==u||e[19]!==o?(L=n.jsx(ks,{section:o,raw:u,meta:m}),e[17]=m,e[18]=u,e[19]=o,e[20]=L):L=e[20];const ze=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":h(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:$e(gn(l,r)),onClick:N=>{N.stopPropagation(),V()},onPointerDown:gr,children:n.jsx(zo,{className:$e("h-3.5 w-3.5",r&&"text-yellow-500")})})}),n.jsx(jt,{side:"bottom",children:h(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),nt=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":h(P?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:$e(gn(l,P)),onClick:N=>{N.stopPropagation(),T()},onPointerDown:pr,children:P?n.jsx(Oo,{className:"h-3.5 w-3.5"}):n.jsx($o,{className:"h-3.5 w-3.5"})})}),n.jsx(jt,{side:"bottom",children:h(P?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),Le=Es,Me=js,W=!0,Z=Xe,Fe="button",Pe="ghost",ye="icon";let ue;e[21]!==h?(ue=h("sectionsEditor.sectionList.sectionActionsMenu"),e[21]=h,e[22]=ue):ue=e[22];const he=$e(gn(l,!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[23]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(vs,{className:"h-3.5 w-3.5"}),e[23]=_e):_e=e[23];let we;e[24]!==Z||e[25]!==ue||e[26]!==he?(we=n.jsx(Z,{type:Fe,variant:Pe,size:ye,"aria-label":ue,className:he,onClick:fr,onPointerDown:mr,children:_e}),e[24]=Z,e[25]=ue,e[26]=he,e[27]=we):we=e[27];let ve;e[28]!==Me||e[29]!==we?(ve=n.jsx(Me,{asChild:W,children:we}),e[28]=Me,e[29]=we,e[30]=ve):ve=e[30];let ae;e[31]!==d?(ae=N=>{N.stopPropagation(),d()},e[31]=d,e[32]=ae):ae=e[32];let Ae;e[33]===Symbol.for("react.memo_cache_sentinel")?(Ae=n.jsx(xs,{className:"h-4 w-4"}),e[33]=Ae):Ae=e[33];let je;e[34]!==h?(je=h("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=h,e[35]=je):je=e[35];let fe;e[36]!==ae||e[37]!==je?(fe=n.jsxs(vt,{onClick:ae,children:[Ae,je]}),e[36]=ae,e[37]=je,e[38]=fe):fe=e[38];let $;e[39]!==K||e[40]!==E||e[41]!==h?($=K&&n.jsxs(vt,{className:Oa,onClick:N=>{N.stopPropagation(),E()},children:[n.jsx(ys,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=K,e[40]=E,e[41]=h,e[42]=$):$=e[42];let pe;e[43]!==ie||e[44]!==y||e[45]!==h?(pe=ie&&n.jsxs(vt,{className:rr,onClick:N=>{N.stopPropagation(),y()},children:[n.jsx(hn,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=ie,e[44]=y,e[45]=h,e[46]=pe):pe=e[46];let Ce;e[47]!==i||e[48]!==o.isMultivariate||e[49]!==o.isSavedBlock||e[50]!==h?(Ce=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(vt,{onClick:N=>{N.stopPropagation(),i()},children:[n.jsx(hn,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=i,e[48]=o.isMultivariate,e[49]=o.isSavedBlock,e[50]=h,e[51]=Ce):Ce=e[51];let be;e[52]!==x?(be=N=>{N.stopPropagation(),x()},e[52]=x,e[53]=be):be=e[53];let ke;e[54]===Symbol.for("react.memo_cache_sentinel")?(ke=n.jsx(_s,{className:"h-4 w-4"}),e[54]=ke):ke=e[54];let ne;e[55]!==h?(ne=h("sectionsEditor.sectionList.deleteMenuItem"),e[55]=h,e[56]=ne):ne=e[56];let le;e[57]!==be||e[58]!==ne?(le=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:be,children:[ke,ne]}),e[57]=be,e[58]=ne,e[59]=le):le=e[59];let de;e[60]!==fe||e[61]!==$||e[62]!==pe||e[63]!==Ce||e[64]!==le?(de=n.jsxs(Rs,{align:"end",className:"w-44",children:[fe,$,pe,Ce,le]}),e[60]=fe,e[61]=$,e[62]=pe,e[63]=Ce,e[64]=le,e[65]=de):de=e[65];let Ee;e[66]!==Le||e[67]!==ve||e[68]!==de?(Ee=n.jsxs(Le,{children:[ve,de]}),e[66]=Le,e[67]=ve,e[68]=de,e[69]=Ee):Ee=e[69];let me;return e[70]!==H||e[71]!==p||e[72]!==f||e[73]!==A||e[74]!==F||e[75]!==se||e[76]!==L||e[77]!==ze||e[78]!==nt||e[79]!==Ee||e[80]!==X?(me=n.jsxs("div",{ref:A,style:F,...H,...p,role:xe,tabIndex:Q,onClick:f,onKeyDown:X,className:se,children:[L,ze,nt,Ee]}),e[70]=H,e[71]=p,e[72]=f,e[73]=A,e[74]=F,e[75]=se,e[76]=L,e[77]=ze,e[78]=nt,e[79]=Ee,e[80]=X,e[81]=me):me=e[81],me}function mr(g){return g.stopPropagation()}function fr(g){return g.stopPropagation()}function pr(g){return g.stopPropagation()}function gr(g){return g.stopPropagation()}function hr(){return!1}function vr(g){const e=Ge.c(104),{listKey:o,rawSections:u,sections:m,meta:b,selectedIndex:S,onSelect:f,onReorder:x,onDelete:d,onDuplicate:y,onMakeReusable:T,onToggleHidden:V,onToggleLazy:E,onAddVariant:i,onDetach:h,onAddSection:r,canAddSection:P}=g,l=P===void 0?!0:P,R=ct();let K;e[0]!==m.length?(K=()=>Un(m.length),e[0]=m.length,e[1]=K):K=e[1];const[O,H]=w.useState(K),[p,A]=w.useState(null),[De,C]=w.useState(o),[ce,B]=w.useState(m.length),te=w.useRef(!1);De!==o?(C(o),B(m.length),H(Un(m.length))):ce!==m.length&&(B(m.length),H(me=>ir(me,m.length)));let F;e[2]===Symbol.for("react.memo_cache_sentinel")?(F={activationConstraint:{distance:8}},e[2]=F):F=e[2];let re;e[3]===Symbol.for("react.memo_cache_sentinel")?(re={coordinateGetter:cs},e[3]=re):re=e[3];const ie=es(Qt(as,F),Qt(ss,re));let xe;e[4]!==O?(xe=O.map(br),e[4]=O,e[5]=xe):xe=e[5];const Q=xe;let X;e[6]===Symbol.for("react.memo_cache_sentinel")?(X=me=>{A(String(me.active.id))},e[6]=X):X=e[6];const ge=X;let se;e[7]!==Q||e[8]!==x?(se=me=>{A(null);const{active:N,over:oe}=me;if(!oe||N.id===oe.id)return;const I=Q.indexOf(String(N.id)),Be=Q.indexOf(String(oe.id));I===-1||Be===-1||(H(ut=>ws(Mt([...ut],I,Be))),te.current=!0,requestAnimationFrame(()=>{te.current=!1}),x?.(I,Be))},e[7]=Q,e[8]=x,e[9]=se):se=e[9];const L=se;let ze;e[10]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{A(null)},e[10]=ze):ze=e[10];const nt=ze;let Le,Me,W,Z,Fe,Pe,ye,ue,he,_e,we,ve,ae,Ae,je;if(e[11]!==p||e[12]!==l||e[13]!==O||e[14]!==Q||e[15]!==L||e[16]!==b||e[17]!==r||e[18]!==i||e[19]!==d||e[20]!==h||e[21]!==y||e[22]!==T||e[23]!==f||e[24]!==V||e[25]!==E||e[26]!==u||e[27]!==m||e[28]!==S||e[29]!==ie||e[30]!==R){Ae=Symbol.for("react.early_return_sentinel");e:{const me=N=>{te.current||f(N)};if(e[46]!==p||e[47]!==l||e[48]!==O||e[49]!==r||e[50]!==u||e[51]!==m||e[52]!==R){const N=p?O.find(oe=>oe.id===p):null;if(Z=N!=null?m[N.index]:null,W=N!=null?u[N.index]:void 0,O.length===0){let oe;e[56]!==R?(oe=R("sectionsEditor.sectionList.noSections"),e[56]=R,e[57]=oe):oe=e[57];let I;e[58]!==oe?(I=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:oe}),e[58]=oe,e[59]=I):I=e[59];const Be=!l;let ut;e[60]===Symbol.for("react.memo_cache_sentinel")?(ut=n.jsx(vn,{size:14}),e[60]=ut):ut=e[60];let Te;e[61]!==R?(Te=R("sectionsEditor.sectionList.addSectionButton"),e[61]=R,e[62]=Te):Te=e[62];let We;e[63]!==r||e[64]!==Be||e[65]!==Te?(We=n.jsxs(Xe,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Be,onClick:r,children:[ut,Te]}),e[63]=r,e[64]=Be,e[65]=Te,e[66]=We):We=e[66];let Ie;e[67]!==I||e[68]!==We?(Ie=n.jsxs("div",{className:"space-y-2",children:[I,We]}),e[67]=I,e[68]=We,e[69]=Ie):Ie=e[69],Ae=Ie;break e}ae=$e(N&&"cursor-grabbing"),e[46]=p,e[47]=l,e[48]=O,e[49]=r,e[50]=u,e[51]=m,e[52]=R,e[53]=W,e[54]=Z,e[55]=ae}else W=e[53],Z=e[54],ae=e[55];Me=us,ue=ie,he=ds,_e=ge,we=L,ve=nt,Le=ms,Pe=Q,ye=fs,je="space-y-1",Fe=O.map(N=>{const oe=m[N.index];return oe?n.jsx(dr,{sortableId:N.id,section:oe,raw:u[N.index],meta:b,selected:S===N.index,onSelect:()=>me(N.index),onDelete:()=>d(N.index),onDuplicate:()=>y(N.index),onMakeReusable:()=>T(N.index),onToggleHidden:()=>V(N.index),onToggleLazy:()=>E(N.index),onAddVariant:()=>i(N.index),onDetach:()=>h(N.index)},N.id):null})}e[11]=p,e[12]=l,e[13]=O,e[14]=Q,e[15]=L,e[16]=b,e[17]=r,e[18]=i,e[19]=d,e[20]=h,e[21]=y,e[22]=T,e[23]=f,e[24]=V,e[25]=E,e[26]=u,e[27]=m,e[28]=S,e[29]=ie,e[30]=R,e[31]=Le,e[32]=Me,e[33]=W,e[34]=Z,e[35]=Fe,e[36]=Pe,e[37]=ye,e[38]=ue,e[39]=he,e[40]=_e,e[41]=we,e[42]=ve,e[43]=ae,e[44]=Ae,e[45]=je}else Le=e[31],Me=e[32],W=e[33],Z=e[34],Fe=e[35],Pe=e[36],ye=e[37],ue=e[38],he=e[39],_e=e[40],we=e[41],ve=e[42],ae=e[43],Ae=e[44],je=e[45];if(Ae!==Symbol.for("react.early_return_sentinel"))return Ae;let fe;e[70]!==Fe||e[71]!==je?(fe=n.jsx("div",{className:je,children:Fe}),e[70]=Fe,e[71]=je,e[72]=fe):fe=e[72];let $;e[73]!==Le||e[74]!==Pe||e[75]!==ye||e[76]!==fe?($=n.jsx(Le,{items:Pe,strategy:ye,children:fe}),e[73]=Le,e[74]=Pe,e[75]=ye,e[76]=fe,e[77]=$):$=e[77];let pe;e[78]!==W||e[79]!==Z||e[80]!==b?(pe=Z?n.jsx("div",{className:$e("cursor-grabbing shadow-lg ring-1 ring-border/60",Ts(Z,!1)),children:n.jsx(ks,{section:Z,raw:W,meta:b})}):null,e[78]=W,e[79]=Z,e[80]=b,e[81]=pe):pe=e[81];let Ce;e[82]!==pe?(Ce=Xn.createPortal(n.jsx(ts,{dropAnimation:ns,children:pe}),document.body),e[82]=pe,e[83]=Ce):Ce=e[83];let be;e[84]!==Me||e[85]!==ue||e[86]!==he||e[87]!==_e||e[88]!==we||e[89]!==ve||e[90]!==$||e[91]!==Ce?(be=n.jsxs(Me,{sensors:ue,collisionDetection:he,onDragStart:_e,onDragEnd:we,onDragCancel:ve,children:[$,Ce]}),e[84]=Me,e[85]=ue,e[86]=he,e[87]=_e,e[88]=we,e[89]=ve,e[90]=$,e[91]=Ce,e[92]=be):be=e[92];const ke=!l;let ne;e[93]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(vn,{size:14}),e[93]=ne):ne=e[93];let le;e[94]!==R?(le=R("sectionsEditor.sectionList.addSectionButton"),e[94]=R,e[95]=le):le=e[95];let de;e[96]!==r||e[97]!==ke||e[98]!==le?(de=n.jsxs(Xe,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:ke,onClick:r,children:[ne,le]}),e[96]=r,e[97]=ke,e[98]=le,e[99]=de):de=e[99];let Ee;return e[100]!==ae||e[101]!==be||e[102]!==de?(Ee=n.jsxs("div",{className:ae,children:[be,de]}),e[100]=ae,e[101]=be,e[102]=de,e[103]=Ee):Ee=e[103],Ee}function br(g){return g.id}function qn(g){const e=Ge.c(57),{open:o,initialName:u,autoLabel:m,isPending:b,onSubmit:S,onOpenChange:f}=g,x=b===void 0?!1:b,d=ct(),[y,T]=w.useState(u),[V,E]=w.useState(o);o!==V&&(E(o),o&&T(u));let i;e[0]!==x||e[1]!==f?(i=ge=>{!ge&&!x&&f(!1)},e[0]=x,e[1]=f,e[2]=i):i=e[2];const h=i;let r;e[3]!==x||e[4]!==y||e[5]!==S?(r=async ge=>{ge.preventDefault(),!x&&await S(y.trim())},e[3]=x,e[4]=y,e[5]=S,e[6]=r):r=e[6];const P=r;let l;e[7]!==d?(l=d("sectionsEditor.variantRenameDialog.title"),e[7]=d,e[8]=l):l=e[8];let R;e[9]!==l?(R=n.jsx(Co,{children:l}),e[9]=l,e[10]=R):R=e[10];let K;e[11]!==m||e[12]!==d?(K=d("sectionsEditor.variantRenameDialog.description",{fallback:m||d("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=m,e[12]=d,e[13]=K):K=e[13];let O;e[14]!==K?(O=n.jsx(Mo,{children:K}),e[14]=K,e[15]=O):O=e[15];let H;e[16]!==R||e[17]!==O?(H=n.jsxs(Bo,{children:[R,O]}),e[16]=R,e[17]=O,e[18]=H):H=e[18];let p;e[19]!==d?(p=d("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=d,e[20]=p):p=e[20];let A;e[21]!==p?(A=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:p}),e[21]=p,e[22]=A):A=e[22];let De;e[23]===Symbol.for("react.memo_cache_sentinel")?(De=ge=>T(ge.target.value),e[23]=De):De=e[23];let C;e[24]!==m||e[25]!==x||e[26]!==y?(C=n.jsx(Io,{id:"variant-rename-name",value:y,onChange:De,placeholder:m,autoFocus:!0,disabled:x}),e[24]=m,e[25]=x,e[26]=y,e[27]=C):C=e[27];let ce;e[28]!==A||e[29]!==C?(ce=n.jsxs("div",{className:"space-y-1.5 py-4",children:[A,C]}),e[28]=A,e[29]=C,e[30]=ce):ce=e[30];let B;e[31]!==f?(B=()=>f(!1),e[31]=f,e[32]=B):B=e[32];let te;e[33]!==d?(te=d("sectionsEditor.variantRenameDialog.cancel"),e[33]=d,e[34]=te):te=e[34];let F;e[35]!==x||e[36]!==B||e[37]!==te?(F=n.jsx(Xe,{type:"button",variant:"outline",onClick:B,disabled:x,children:te}),e[35]=x,e[36]=B,e[37]=te,e[38]=F):F=e[38];let re;e[39]!==x||e[40]!==d?(re=x?n.jsxs(n.Fragment,{children:[n.jsx(Zn,{size:14,className:"animate-spin"}),d("sectionsEditor.variantRenameDialog.saving")]}):d("sectionsEditor.variantRenameDialog.save"),e[39]=x,e[40]=d,e[41]=re):re=e[41];let ie;e[42]!==x||e[43]!==re?(ie=n.jsx(Xe,{type:"submit",disabled:x,children:re}),e[42]=x,e[43]=re,e[44]=ie):ie=e[44];let xe;e[45]!==F||e[46]!==ie?(xe=n.jsxs(Ko,{children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=xe):xe=e[47];let Q;e[48]!==P||e[49]!==ce||e[50]!==xe||e[51]!==H?(Q=n.jsx(Lo,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:P,children:[H,ce,xe]})}),e[48]=P,e[49]=ce,e[50]=xe,e[51]=H,e[52]=Q):Q=e[52];let X;return e[53]!==h||e[54]!==o||e[55]!==Q?(X=n.jsx(Fo,{open:o,onOpenChange:h,children:Q}),e[53]=h,e[54]=o,e[55]=Q,e[56]=X):X=e[56],X}function Ns(g){const e=Ge.c(5),{rule:o,matchers:u}=g,m=o?.__resolveType??"";let b;if(e[0]!==u||e[1]!==m){const d=u.find(y=>y.resolveType===m)?.iconName??za(m);b=No(d),e[0]=u,e[1]=m,e[2]=b}else b=e[2];const S=b;if(!S)return null;let f;return e[3]!==S?(f=n.jsx(S,{size:14,className:"shrink-0"}),e[3]=S,e[4]=f):f=e[4],f}function Gn(g){return g.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function Wn(g){return g.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function Sr(g,e){const o=new Map;for(const u of g){const m=o.get(u.variant.label);m?m.push(u):o.set(u.variant.label,[u])}return e.map((u,m)=>({id:o.get(u.label)?.shift()?.id??crypto.randomUUID(),index:m,variant:u}))}function xr(g){return g.map((e,o)=>({...e,index:o}))}function Vs(g){const e=Ge.c(17),{label:o,effectiveRule:u,matchers:m,canDelete:b,dragging:S,onRename:f,onDuplicate:x,onDelete:d}=g,y=ct();let T;e[0]!==u||e[1]!==m?(T=n.jsx(Ns,{rule:u,matchers:m}),e[0]=u,e[1]=m,e[2]=T):T=e[2];let V;e[3]!==o?(V=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=V):V=e[4];let E;e[5]!==b||e[6]!==S||e[7]!==o||e[8]!==d||e[9]!==x||e[10]!==f||e[11]!==y?(E=!S&&n.jsxs(Es,{children:[n.jsx(js,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":y("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:o}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:_r,onPointerDown:yr,children:n.jsx(vs,{size:14})})}),n.jsxs(Rs,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:h=>{h.stopPropagation(),f?.()},children:[n.jsx(Zo,{size:14}),y("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:h=>{h.stopPropagation(),x?.()},children:[n.jsx(xs,{size:14}),y("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(Ho,{}),n.jsxs(vt,{variant:"destructive",disabled:!b,onClick:h=>{h.stopPropagation(),d?.()},children:[n.jsx(_s,{size:14}),y("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=b,e[6]=S,e[7]=o,e[8]=d,e[9]=x,e[10]=f,e[11]=y,e[12]=E):E=e[12];let i;return e[13]!==T||e[14]!==V||e[15]!==E?(i=n.jsxs(n.Fragment,{children:[T,V,E]}),e[13]=T,e[14]=V,e[15]=E,e[16]=i):i=e[16],i}function yr(g){return g.stopPropagation()}function _r(g){return g.stopPropagation()}function jr(g){const e=Ge.c(33),{entry:o,sortableId:u,isActive:m,canDelete:b,decofile:S,meta:f,matchers:x,onSelect:d,onRename:y,onDuplicate:T,onDelete:V}=g;let E;e[0]!==u?(E={id:u,animateLayoutChanges:Er},e[0]=u,e[1]=E):E=e[1];const{attributes:i,listeners:h,setNodeRef:r,transform:P,isDragging:l}=rs(E);let R;e[2]!==P?(R=is.Transform.toString(P?{...P,x:0}:null),e[2]=P,e[3]=R):R=e[3];const K=l?0:void 0;let O;e[4]!==R||e[5]!==K?(O={transform:R,opacity:K},e[4]=R,e[5]=K,e[6]=O):O=e[6];const H=O,p=f??void 0;let A;e[7]!==S||e[8]!==o.variant.rule||e[9]!==p?(A=Bt(o.variant.rule,S,p),e[7]=S,e[8]=o.variant.rule,e[9]=p,e[10]=A):A=e[10];const De=A;let C;e[11]!==d?(C=ie=>{ie.target===ie.currentTarget&&(ie.key==="Enter"||ie.key===" ")&&(ie.preventDefault(),d())},e[11]=d,e[12]=C):C=e[12];const ce=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",B=m?ps:ls;let te;e[13]!==ce||e[14]!==B?(te=$e("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ce,B),e[13]=ce,e[14]=B,e[15]=te):te=e[15];let F;e[16]!==b||e[17]!==De||e[18]!==o.variant.label||e[19]!==x||e[20]!==V||e[21]!==T||e[22]!==y?(F=n.jsx(Vs,{label:o.variant.label,effectiveRule:De,matchers:x,canDelete:b,onRename:y,onDuplicate:T,onDelete:V}),e[16]=b,e[17]=De,e[18]=o.variant.label,e[19]=x,e[20]=V,e[21]=T,e[22]=y,e[23]=F):F=e[23];let re;return e[24]!==i||e[25]!==h||e[26]!==d||e[27]!==r||e[28]!==H||e[29]!==te||e[30]!==F||e[31]!==C?(re=n.jsx("div",{ref:r,style:H,...i,...h,onClick:d,onKeyDown:C,className:te,children:F}),e[24]=i,e[25]=h,e[26]=d,e[27]=r,e[28]=H,e[29]=te,e[30]=F,e[31]=C,e[32]=re):re=e[32],re}function Er(){return!1}function Rr(g){const e=Ge.c(9),{variant:o,decofile:u,meta:m,matchers:b}=g,S=m??void 0;let f;e[0]!==u||e[1]!==S||e[2]!==o.rule?(f=Bt(o.rule,u,S),e[0]=u,e[1]=S,e[2]=o.rule,e[3]=f):f=e[3];const x=f;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=$e("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",ps),e[4]=d):d=e[4];let y;return e[5]!==x||e[6]!==b||e[7]!==o.label?(y=n.jsx("div",{className:d,children:n.jsx(Vs,{label:o.label,effectiveRule:x,matchers:b,canDelete:!1,dragging:!0})}),e[5]=x,e[6]=b,e[7]=o.label,e[8]=y):y=e[8],y}function wr(g){const e=Ge.c(91),{listKey:o,variants:u,activeIndex:m,decofile:b,meta:S,matchers:f,onSelect:x,onReorder:d,onRename:y,onDuplicate:T,onDelete:V,onAdd:E}=g,i=ct();let h;e[0]!==u?(h=()=>Wn(u),e[0]=u,e[1]=h):h=e[1];const[r,P]=w.useState(h),[l,R]=w.useState(null),[K,O]=w.useState(o),[H,p]=w.useState(u.length);let A;e[2]!==u?(A=()=>Gn(u),e[2]=u,e[3]=A):A=e[3];const[De,C]=w.useState(A),ce=w.useRef(!1),B=Gn(u);K!==o?(O(o),p(u.length),C(B),P(Wn(u))):(H!==u.length||De!==B)&&(p(u.length),C(B),P(be=>Sr(be,u)));let te;e[4]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:8}},e[4]=te):te=e[4];let F;e[5]===Symbol.for("react.memo_cache_sentinel")?(F={coordinateGetter:cs},e[5]=F):F=e[5];const re=es(Qt(as,te),Qt(ss,F));let ie;e[6]!==r?(ie=r.map(kr),e[6]=r,e[7]=ie):ie=e[7];const xe=ie,Q=u.length>1;let X;e[8]!==r?(X=be=>{const ke=String(be.active.id);R(r.find(ne=>ne.id===ke)??null)},e[8]=r,e[9]=X):X=e[9];const ge=X;let se;e[10]!==xe||e[11]!==d?(se=be=>{R(null);const{active:ke,over:ne}=be;if(!ne||ke.id===ne.id)return;const le=xe.indexOf(String(ke.id)),de=xe.indexOf(String(ne.id));le===-1||de===-1||(P(Ee=>xr(Mt([...Ee],le,de))),ce.current=!0,requestAnimationFrame(()=>{ce.current=!1}),d(le,de))},e[10]=xe,e[11]=d,e[12]=se):se=e[12];const L=se;let ze;e[13]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{R(null)},e[13]=ze):ze=e[13];const nt=ze;let Le,Me,W,Z,Fe,Pe,ye,ue,he,_e,we,ve,ae;if(e[14]!==m||e[15]!==Q||e[16]!==b||e[17]!==r||e[18]!==xe||e[19]!==L||e[20]!==ge||e[21]!==f||e[22]!==S||e[23]!==E||e[24]!==V||e[25]!==T||e[26]!==y||e[27]!==x||e[28]!==re||e[29]!==i){const be=I=>{ce.current||x(I)};we="space-y-1 border-b p-2";let ke;e[43]!==i?(ke=i("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=i,e[44]=ke):ke=e[44];let ne;e[45]!==ke?(ne=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:ke}),e[45]=ke,e[46]=ne):ne=e[46];let le;e[47]!==i?(le=i("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=i,e[48]=le):le=e[48];let de;e[49]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(vn,{size:14}),e[49]=de):de=e[49];let Ee;e[50]!==E||e[51]!==le?(Ee=n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":le,className:"size-6",onClick:E,children:de})}),e[50]=E,e[51]=le,e[52]=Ee):Ee=e[52];let me;e[53]!==i?(me=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=i,e[54]=me):me=e[54];let N;e[55]!==me?(N=n.jsx(jt,{children:me}),e[55]=me,e[56]=N):N=e[56];let oe;e[57]!==Ee||e[58]!==N?(oe=n.jsxs(yt,{children:[Ee,N]}),e[57]=Ee,e[58]=N,e[59]=oe):oe=e[59],e[60]!==ne||e[61]!==oe?(ve=n.jsxs("div",{className:"flex items-center justify-between",children:[ne,oe]}),e[60]=ne,e[61]=oe,e[62]=ve):ve=e[62],Me=us,Pe=re,ye=ds,ue=ge,he=L,_e=nt,Le=ms,Z=xe,Fe=fs,ae="space-y-0.5",W=r.map(I=>n.jsx(jr,{sortableId:I.id,entry:I,isActive:I.index===m,canDelete:Q,decofile:b,meta:S,matchers:f,onSelect:()=>be(I.index),onRename:()=>y(I.index),onDuplicate:()=>T(I.index),onDelete:()=>V(I.index)},I.id)),e[14]=m,e[15]=Q,e[16]=b,e[17]=r,e[18]=xe,e[19]=L,e[20]=ge,e[21]=f,e[22]=S,e[23]=E,e[24]=V,e[25]=T,e[26]=y,e[27]=x,e[28]=re,e[29]=i,e[30]=Le,e[31]=Me,e[32]=W,e[33]=Z,e[34]=Fe,e[35]=Pe,e[36]=ye,e[37]=ue,e[38]=he,e[39]=_e,e[40]=we,e[41]=ve,e[42]=ae}else Le=e[30],Me=e[31],W=e[32],Z=e[33],Fe=e[34],Pe=e[35],ye=e[36],ue=e[37],he=e[38],_e=e[39],we=e[40],ve=e[41],ae=e[42];let Ae;e[63]!==W||e[64]!==ae?(Ae=n.jsx("div",{className:ae,children:W}),e[63]=W,e[64]=ae,e[65]=Ae):Ae=e[65];let je;e[66]!==Le||e[67]!==Z||e[68]!==Fe||e[69]!==Ae?(je=n.jsx(Le,{items:Z,strategy:Fe,children:Ae}),e[66]=Le,e[67]=Z,e[68]=Fe,e[69]=Ae,e[70]=je):je=e[70];let fe;e[71]!==l||e[72]!==b||e[73]!==f||e[74]!==S?(fe=l?n.jsx(Rr,{variant:l.variant,decofile:b,meta:S,matchers:f}):null,e[71]=l,e[72]=b,e[73]=f,e[74]=S,e[75]=fe):fe=e[75];let $;e[76]!==fe?($=Xn.createPortal(n.jsx(ts,{dropAnimation:ns,children:fe}),document.body),e[76]=fe,e[77]=$):$=e[77];let pe;e[78]!==Me||e[79]!==Pe||e[80]!==ye||e[81]!==ue||e[82]!==he||e[83]!==_e||e[84]!==je||e[85]!==$?(pe=n.jsxs(Me,{sensors:Pe,collisionDetection:ye,onDragStart:ue,onDragEnd:he,onDragCancel:_e,children:[je,$]}),e[78]=Me,e[79]=Pe,e[80]=ye,e[81]=ue,e[82]=he,e[83]=_e,e[84]=je,e[85]=$,e[86]=pe):pe=e[86];let Ce;return e[87]!==we||e[88]!==ve||e[89]!==pe?(Ce=n.jsxs("div",{className:we,children:[ve,pe]}),e[87]=we,e[88]=ve,e[89]=pe,e[90]=Ce):Ce=e[90],Ce}function kr(g){return g.id}function Tr(g){const e=Ge.c(16),{schema:o,value:u,onChange:m,meta:b,decofile:S,onSaveReferencedBlock:f,sandbox:x}=g,d=ct();let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[T,V]=w.useState(y);let E;e[1]!==T||e[2]!==d?(E=T.length>0&&n.jsxs("nav",{"aria-label":d("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>V([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:d("sectionsEditor.sectionsEditorPanels.backToRule"),children:n.jsx(bs,{className:"size-3.5"})}),T.map((r,P)=>{const l=P===T.length-1,R=hs(r);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[P>0&&n.jsx(Ss,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>V(T.slice(0,P+1)),title:R,className:$e("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",l?"font-medium text-foreground":"text-muted-foreground"),children:R})]},`${R}-${P}`)})]}),e[1]=T,e[2]=d,e[3]=E):E=e[3];let i;e[4]!==T||e[5]!==S||e[6]!==b||e[7]!==m||e[8]!==f||e[9]!==x||e[10]!==o||e[11]!==u?(i=n.jsx(gs,{schema:o,value:u,onChange:m,basePath:"",breadcrumbPath:T,onBreadcrumbChange:V,meta:b,decofile:S,onSaveReferencedBlock:f,sandbox:x}),e[4]=T,e[5]=S,e[6]=b,e[7]=m,e[8]=f,e[9]=x,e[10]=o,e[11]=u,e[12]=i):i=e[12];let h;return e[13]!==E||e[14]!==i?(h=n.jsxs("div",{className:"space-y-2",children:[E,i]}),e[13]=E,e[14]=i,e[15]=h):h=e[15],h}function Yn(g){const e=Ge.c(23),{activeSchema:o,formValue:u,formResetKey:m,onFormChange:b,onBreadcrumbChange:S,breadcrumbPath:f,emptyMessage:x,beforeForm:d,seoResolveType:y,siteDefaultSeo:T,meta:V,decofile:E,onSaveReferencedBlock:i,sandbox:h,previewBaseUrl:r,onRequestAddSection:P}=g;let l;e[0]!==f?(l=f===void 0?[]:f,e[0]=f,e[1]=l):l=e[1];const R=l;let K;e[2]!==o||e[3]!==R||e[4]!==E||e[5]!==m||e[6]!==u||e[7]!==V||e[8]!==S||e[9]!==b||e[10]!==P||e[11]!==i||e[12]!==r||e[13]!==h||e[14]!==y||e[15]!==T?(K=o&&u?y?n.jsx(Uo,{schema:o,resolveType:y,value:u,formResetKey:m,onChange:b,onBreadcrumbChange:S,siteDefaultSeo:T}):n.jsx(gs,{schema:o,value:u,onChange:b,basePath:"",breadcrumbPath:R,onBreadcrumbChange:S,meta:V,decofile:E,onSaveReferencedBlock:i,sandbox:h,previewBaseUrl:r,onRequestAddSection:P},m):null,e[2]=o,e[3]=R,e[4]=E,e[5]=m,e[6]=u,e[7]=V,e[8]=S,e[9]=b,e[10]=P,e[11]=i,e[12]=r,e[13]=h,e[14]=y,e[15]=T,e[16]=K):K=e[16];const O=K;let H;e[17]!==x||e[18]!==O?(H=O??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:x}),e[17]=x,e[18]=O,e[19]=H):H=e[19];let p;return e[20]!==d||e[21]!==H?(p=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[d,H]})}),e[20]=d,e[21]=H,e[22]=p):p=e[22],p}const Nr="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function Vr(g,e){return Ha(g,e,lt)}function Dr(g){const e=Ge.c(19),{pageKey:o,initialName:u,initialPath:m,onFieldChange:b}=g,S=ct(),[f,x]=w.useState(u),[d,y]=w.useState(m),[T,V]=w.useState(o);T!==o&&(V(o),x(u),y(m));let E;e[0]!==b?(E=K=>{x(K.target.value),b("name",K.target.value)},e[0]=b,e[1]=E):E=e[1];let i;e[2]!==S?(i=S("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[2]=S,e[3]=i):i=e[3];let h;e[4]!==f||e[5]!==E||e[6]!==i?(h=n.jsx("input",{type:"text",value:f,onChange:E,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:i}),e[4]=f,e[5]=E,e[6]=i,e[7]=h):h=e[7];let r;e[8]!==b?(r=K=>{y(K.target.value),b("path",K.target.value)},e[8]=b,e[9]=r):r=e[9];let P;e[10]!==S?(P=S("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[10]=S,e[11]=P):P=e[11];let l;e[12]!==d||e[13]!==r||e[14]!==P?(l=n.jsx("input",{type:"text",value:d,onChange:r,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:P}),e[12]=d,e[13]=r,e[14]=P,e[15]=l):l=e[15];let R;return e[16]!==h||e[17]!==l?(R=n.jsxs("div",{className:"space-y-1",children:[h,l]}),e[16]=h,e[17]=l,e[18]=R):R=e[18],R}function Jn(g){const e=Ge.c(13),{onClick:o}=g,u=ct();let m;e[0]!==u?(m=u("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=u,e[1]=m):m=e[1];let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ys,{size:14}),e[2]=b):b=e[2];let S;e[3]!==o||e[4]!==m?(S=n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":m,className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:o,children:b})}),e[3]=o,e[4]=m,e[5]=S):S=e[5];let f;e[6]!==u?(f=u("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=u,e[7]=f):f=e[7];let x;e[8]!==f?(x=n.jsx(jt,{side:"bottom",children:f}),e[8]=f,e[9]=x):x=e[9];let d;return e[10]!==S||e[11]!==x?(d=n.jsxs(yt,{children:[S,x]}),e[10]=S,e[11]=x,e[12]=d):d=e[12],d}function Qn(g){const e=Ge.c(21),{currentRt:o,currentLabel:u,currentGlobalKey:m,matchers:b,globals:S,onSelect:f,onSelectGlobal:x,schema:d,formValue:y,onChange:T,formKey:V,formWrapperClassName:E,meta:i,decofile:h,onSaveReferencedBlock:r,sandbox:P}=g;let l;e[0]!==m||e[1]!==u||e[2]!==o||e[3]!==S||e[4]!==b||e[5]!==f||e[6]!==x?(l=n.jsx(Ua,{currentRt:o,currentLabel:u,currentGlobalKey:m,matchers:b,globals:S,onSelect:f,onSelectGlobal:x}),e[0]=m,e[1]=u,e[2]=o,e[3]=S,e[4]=b,e[5]=f,e[6]=x,e[7]=l):l=e[7];let R;e[8]!==h||e[9]!==V||e[10]!==y||e[11]!==E||e[12]!==i||e[13]!==T||e[14]!==r||e[15]!==P||e[16]!==d?(R=d&&y&&n.jsx("div",{className:E,children:n.jsx(Tr,{schema:d,value:y,onChange:T,meta:i,decofile:h,onSaveReferencedBlock:r,sandbox:P},V)}),e[8]=h,e[9]=V,e[10]=y,e[11]=E,e[12]=i,e[13]=T,e[14]=r,e[15]=P,e[16]=d,e[17]=R):R=e[17];let K;return e[18]!==l||e[19]!==R?(K=n.jsxs(n.Fragment,{children:[l,R]}),e[18]=l,e[19]=R,e[20]=K):K=e[20],K}function Ec({orgSlug:g,virtualMcpId:e,branch:o,previewReady:u=!0,previewUrl:m,currentPath:b,activePageBlockKey:S=null,activeGlobalBlockKey:f=null,externalSelection:x,onSaved:d,initialEditSeo:y=!1,onExitSeo:T,onViewJsonFile:V,onVariantPreviewOverride:E}){const i=ct(),h=u?{orgSlug:g,virtualMcpId:e,branch:o,previewUrl:m}:null,{data:r,isLoading:P}=qa(h),{data:l,isLoading:R}=Ga(h),K=Wa(),O=K?.entity?.id===e?K.entity.metadata?.siteSlug??null:null,H=er({virtualMcpId:e,sandboxUrl:m}),[p,A]=w.useState(null),[De,C]=w.useState(null),[ce,B]=w.useState(null),[te,F]=w.useState(0),[re,ie]=w.useState(void 0),[xe,Q]=w.useState(null),[X,ge]=w.useState(null),[se,L]=w.useState([]),ze=w.useRef(null),[nt,Le]=w.useState(se.length);nt!==se.length&&(Le(se.length),requestAnimationFrame(()=>{ze.current&&(ze.current.scrollTop=0)}));const[Me,W]=w.useState(0),[Z,Fe]=w.useState(null),[Pe,ye]=w.useState(null),[ue,he]=w.useState(null),[_e,we]=w.useState(!0),[ve,ae]=w.useState(!1),[Ae,je]=w.useState(!1),fe=w.useRef(null),[$,pe]=w.useState(y),[Ce,be]=w.useState(y);y&&!Ce&&(be(!0),pe(!0),A(null),C(null),B(null),L([])),!y&&Ce&&be(!1);const[ke,ne]=w.useState(null),[le,de]=w.useState(void 0),[Ee,me]=w.useState([]),[N,oe]=w.useState(0),[I,Be]=w.useState(0),[ut,Te]=w.useState(null),[We,Ie]=w.useState(null),[bn,Sn]=w.useState(null),Ds=Ca(),Ps=`${g}/${e}/${o}`,Xt=Ya({orgSlug:g,virtualMcpId:e,branch:o}),[As,Cs]=w.useState(b),[Ms,Bs]=w.useState(S),[Ks,Ls]=w.useState(f);(As!==b||Ms!==S||Ks!==f)&&(queueMicrotask(()=>Xt.flush()),Cs(b),Bs(S),Ls(f),A(null),C(null),B(null),F(0),Q(null),ge(null),Be(0),Te(null),Ie(null),L([]),W(t=>t+1),pe(!1),ne(null),de(void 0),me([]),oe(t=>t+1));const Ne=Ja({orgSlug:g,virtualMcpId:e,branch:o}),Kt=ho((t,s)=>{Ne.mutate({blockKey:t,data:s},{onSuccess:()=>d?.(),onError:a=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),Zt=Qa({orgSlug:g,virtualMcpId:e,branch:o}),[Nt,Lt]=w.useState(!1),He=w.useRef(null),st=w.useRef(null),at=w.useRef(null),en=w.useRef({}),Ze=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||P||R)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Zn,{size:20,className:"animate-spin text-muted-foreground"})});if(!r||!l)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Fs=Xa(r),Ve=!!f,Ye=Ve?null:Za(Fs,b,S),k=Ve?f:Ye?.key??null,tn=Ve&&f?r[f]:void 0,xn=Ve&&f&&tn?eo(f,tn):Ve&&f?f:"",Ft=!Ve&&k&&r[k]?r[k]:null,nn=$&&r&&l&&k&&Ye?Hn(r,{kind:"page",pageKey:k,pageName:String(Ye.name??""),path:String(Ye.path??"")},l):null,Is=$?Ft?.seo:void 0,sn=le!==void 0?le:Is,Os=$?qo(sn):void 0,$s=nn?.seoTypeOptions??[],zs=$&&l?Go(l):"",yn=ke??Os??{},an=$&&nn?Wo(yn,nn):null,Hs=$&&an&&Yo(sn)?qt(an,l):null,Us=$?Jo(r,l)?.seoData:void 0,qe=Ve?[{label:"Default",sections:[{__resolveType:f}]}]:Vr(Ft?.sections,r??{}),It=qe.length>1,Oe=Math.min(te,qe.length-1),dt=qe[Oe],q=dt?.sections??[],Ue=Gt(q,r),_n=!Ve&&to(Ft?.sections);if(Ve&&f&&bn!==f){Sn(f);const t=q[0],s=Ue[0];if(t&&s){A(0),Be(0),L([]);const a=St(t,s,r);a&&(C(a.data),B(a.resolveType),Ie(null),Te(null))}}!Ve&&bn!==null&&Sn(null),Ze.current={rawSections:q,parsedSections:Ue,decofile:r??{},activePageKey:k,pageVariants:qe,variantIndex:Oe,sectionVariantIndex:I,selectedSectionIndex:p};const qs=()=>({multivariate:_n,index:Oe,variants:qe.map(t=>({rule:t.rule}))}),jn=(t,s)=>{if(!E)return;if(!k||!_n||t.length<=1){E(null);return}const a=zn(k,{multivariate:!0,index:s,variants:t},r,l);E(a.length>0?a:null)},Et=(t,s,a)=>{if(!E)return;if(!k){E(null);return}const c=qs(),v=zn(k,c,r,l);if(!t||s<0){E(v.length>0?v:null);return}const j=yo({pageKey:k,page:c,sectionIndex:s,sectionLazy:Ue[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:r,meta:l}),_=[...v,...j];E(_.length>0?_:null)},mt=(t,s,a,c=p??-1,v=!1)=>{const j=tt(t,s);if(!j){C(null),B(null),Ie(null),Te(null),v&&Et(null,c,a);return}const D=Kn(j,lt)[a];if(!D){C(null),B(null),Ie(null),Te(null),v&&Et(null,c,a);return}const ee=io(D.value,r);C(ee?.data??null),B(ee?.resolveType??null);const{resolveType:M,formValue:z}=Pt(D.rule,r,l??void 0);Ie(M),Te(z),v&&Et(j,c,a)},Vt=x?.index;if(x!==void 0&&(x?.seq??null)!==re&&(ie(x?.seq??null),typeof Vt=="number")){const t=q[Vt],s=Ue[Vt];if(t&&s)if(A(Vt),Be(0),L([]),W(a=>a+1),s.isMultivariate)mt(t,s,0,Vt);else{const a=St(t,s,r);a?(C(a.data),B(a.resolveType)):(C(null),B(null)),Ie(null),Te(null)}}const Ot={orgSlug:g,virtualMcpId:e,branch:o,previewUrl:m??void 0,siteSlug:O},on=ce&&l?qt(ce,l):null,Je=(t,s)=>{if(!k)return;He.current&&(clearTimeout(He.current),He.current=null),at.current&&(clearTimeout(at.current),at.current=null),st.current&&(clearTimeout(st.current),st.current=null);const a=Ct(r,k,t,Oe,qe);Ne.mutate({blockKey:k,data:a},{onSuccess:()=>s?.onSuccess?.()??d?.(),onError:c=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},Rt=()=>{A(null),C(null),B(null),Be(0),Te(null),Ie(null),L([]),W(t=>t+1)},Gs=(t,s)=>{He.current&&clearTimeout(He.current);const a=Ze.current.sectionVariantIndex;He.current=setTimeout(()=>{const{rawSections:c,parsedSections:v,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current,M=c[s];if(!M)return;const z=v[s];if(!z)return;if(z.isSavedBlock){const G=z.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;Ne.mutate({blockKey:G,data:t},{onSuccess:()=>d?.(),onError:Y=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}if(!_)return;const U={...j[_]},Re=[...c];if(z.isMultivariate){const G=tt(M,z);if(!G||!_)return;const Y=jo(G,a,t);Re[s]=xt(M,z,Y)}else if(z.isHidden){const G=os(M.__resolveType),Y=G?{...M.section}:{...M},Ke=Array.isArray(Y.variants)?[...Y.variants]:[];Ke[0]&&(Ke[0]={...Ke[0],value:t}),Y.variants=Ke,G?Re[s]={...M,section:Y}:Re[s]=Y}else z.isLazy?Re[s]={...M,section:t}:Re[s]=t;if(D.length>1){const G=U.sections,Y=[...G?.variants??[]];Y[ee]&&(Y[ee]={...Y[ee],value:Re}),U.sections={...G,variants:Y}}else U.sections=Re;Ne.mutate({blockKey:_,data:U},{onSuccess:()=>d?.(),onError:G=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))})},pn)},Ws=t=>{A(t),Be(0),L([]),W(v=>v+1);const s=q[t],a=Ue[t];if(!s||!a)return;if(a.isMultivariate){mt(s,a,0,t);return}const c=St(s,a,r);if(!c){C(null),B(null),Ie(null),Te(null),Et(null,t,0);return}C(c.data),B(c.resolveType),Ie(null),Te(null),Et(null,t,0)},En=t=>{const s=t;C(s),p!==null&&Gs(s,p)},rn=t=>{if(!k||!r||!l||!Ye)return;const s={kind:"page",pageKey:k,pageName:String(Ye.name??""),path:String(Ye.path??"")},a=Hn(r,s,l);a&&Xt.save(k,()=>{const c=Ds.getQueryData(Ma.decofile(Ps))?.[k];if(!c||typeof c!="object"||c===null||Array.isArray(c))return null;const v={...c,...en.current};return en.current={},t?.raw!==void 0?{...v,seo:t.raw}:t?.inner!==void 0?Xo(s,a,v,t.inner):v})},Ys=(t,s)=>{k&&(en.current[t]=s,rn())},Js=(t,s)=>{if(!k)return;const a=Mt([...q],t,s);p!==null&&(p===t?A(s):t<p&&s>=p?A(p-1):t>p&&s<=p&&A(p+1)),Je(a)},Qs=t=>{if(!k)return;const s=q.filter((a,c)=>c!==t);p===t?Rt():p!==null&&p>t&&A(p-1),Je(s)},Xs=t=>{if(!k)return;const s=q[t];if(!s)return;const a=[...q];a.splice(t+1,0,xo(s)),p!==null&&p>t&&A(p+1),Je(a)},Zs=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a||a.isMultivariate)return;const c=a.isHidden?bo(s):So(s);if(!c)return;const v=[...q];v[t]=c,p===t&&Rt(),Je(v)},ea=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a||a.isMultivariate)return;const c=vo(s);if(!c)return;const v=[...q];v[t]=c,p===t&&Rt(),Je(v)},ta=t=>{if(!k)return;const s=q[t],a=Ue[t];if(!s||!a?.isSavedBlock)return;const c=St(s,a,r);if(!c?.data)return;const{name:v,...j}=c.data,_=[...q];a.isLazy?_[t]={...s,section:j}:_[t]=j,p===t&&Rt(),Je(_)},na=t=>{if(!k)return;const s=[...q,{__resolveType:t.resolveType}],a=s.length-1;Je(s,{onSuccess:()=>{ae(!1),A(a),Be(0),L([]),W(_=>_+1);const c=s[a],v=Gt(s,r)[a];if(!c||!v)return;if(v.isMultivariate){mt(c,v,0);return}const j=St(c,v,r);if(!j){C(null),B(null),Ie(null),Te(null);return}C(j.data),B(j.resolveType),Ie(null),Te(null)}})},Rn=t=>{fe.current=t.append,ae(!0)},sa=t=>{const s=fe.current;if(!s){na(t);return}s({__resolveType:t.resolveType}),ae(!1),fe.current=null},aa=t=>{if(p===null)return;const s=q[p],a=Ue[p];!s||!a?.isMultivariate||(Be(t),L([]),W(c=>c+1),mt(s,a,t,p,!0))},oa=t=>{if(p===null||!k)return;const s=q[p],a=Ue[p];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const v=po(c,t);if(!v){J.error(i("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const j=[...q];j[p]=xt(s,a,v);const _=v.variants;let D=I;t===I?D=Math.min(t,_.length-1):t<I&&(D=I-1),Be(D),L([]),W(ee=>ee+1),mt(j[p],a,D),Je(j)},ra=t=>{if(p===null||!k)return;const s=q[p],a=Ue[p];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const v=go(c,t),j=[...q];j[p]=xt(s,a,v);const _=t+1;Be(_),L([]),W(D=>D+1),mt(j[p],a,_),Je(j)},ia=(t,s)=>{if(p===null||!k||t===s)return;const a=q[p],c=Ue[p];if(!a||!c?.isMultivariate)return;const v=tt(a,c);if(!v)return;const j=mo(v,t,s),_=[...q];_[p]=xt(a,c,j);let D=I;I===t?D=s:t<I&&s>=I?D=I-1:t>I&&s<=I&&(D=I+1),Be(D),mt(_[p],c,D),Je(_)},ln=t=>{const s=t??p;if(s===null||!k)return;const a=q[s],c=Ue[s];if(!a||!c)return;const v=lo(a,c);if(!v){J.error(i("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const j=[...q];j[s]=v.section;const _=Gt(j,r)[s];if(!_?.isMultivariate){J.error(i("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}A(s),Be(v.newVariantIndex),L([]),W(D=>D+1),mt(v.section,_,v.newVariantIndex,s),Je(j)},la=()=>{if(p===null||!k)return;const t=q[p],s=Ue[p];if(!t||!s?.isMultivariate)return;const a=tt(t,s);if(!a)return;const c=fo(t,s,a);if(!c){J.error(i("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const v=[...q];v[p]=c;const j=Gt(v,r)[p];if(!j)return;Be(0),Ie(null),Te(null),L([]),W(D=>D+1);const _=St(c,j,r);_?(C(_.data),B(_.resolveType)):(C(null),B(null)),Et(null,p,0),Je(v)},ca=async t=>{if(Z===null||!k)return;const s=fn(t,r);if(s){J.error(s);return}const a=q[Z],c=Ue[Z];if(!a||!c)return;const v=St(a,c,r);if(!v){J.error(i("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const j={...v.data,name:t};try{await Ne.mutateAsync({blockKey:t,data:j});const _=[...q];_[Z]={__resolveType:t},await Ne.mutateAsync({blockKey:k,data:Ct(r,k,_,Oe,qe)}),p===Z&&Rt(),Fe(null),J.success(i("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),d?.()}catch(_){J.error(_ instanceof Error?_.message:i("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},wn=dt?.rule;if(It&&p===null&&X===null&&wn){const{resolveType:t,formValue:s}=Pt(wn,r??{},l??void 0);ge(t),Q(s)}const $t=l?no(l):[],kn=l&&r?so(l,r):[],ua=!Ve&&!!(H&&l&&r),da=X&&l?qt(X,l):null,wt=()=>{st.current&&(clearTimeout(st.current),st.current=null),at.current&&(clearTimeout(at.current),at.current=null)},Dt=async(t,s)=>{if(!(_o(s,t,l)>0))try{await Zt.mutateAsync({blockKey:t})}catch(a){J.error(a instanceof Error?a.message:i("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Tn=t=>{st.current&&clearTimeout(st.current),st.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:c}=Ze.current;if(!s)return;const v={...a[s]},j={...v.sections},_=[...j.variants??[]],D=_[c],ee=D?.rule;if(kt(ee,a,l)){const M=ee?.__resolveType??"",z=a[M],U=typeof z?.name=="string"?z.name:M,{__resolveType:Re,...G}=t;Ne.mutate({blockKey:M,data:Tt(Re??"",G,U)},{onSuccess:()=>d?.(),onError:Y=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}D&&(_[c]={...D,rule:t}),v.sections={...j,variants:_},Ne.mutate({blockKey:s,data:v},{onSuccess:()=>d?.(),onError:M=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},pn)},ma=t=>{ge(t);const s=t?Fn(t,l):{__resolveType:In};Q(t?s:{}),Tn(s)},fa=t=>{const s=t;Q(s);const a=X?{__resolveType:X,...s}:{...s};Tn(a)},pa=async t=>{wt();const{activePageKey:s,decofile:a,variantIndex:c}=Ze.current;if(!s)return;const v=a[s],j=v?.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const D=[..._.variants],ee=D[c];if(!ee)return;const M=At(ee.rule,a,l),z=Yt(t);D[c]={...ee,rule:z};const U={...a,[s]:{...v,sections:{..._,variants:D}}},{resolveType:Re,formValue:G}=Pt(z,U,l??void 0);ge(Re),Q(G);try{await Ne.mutateAsync({blockKey:s,data:U[s]}),M&&M!==t&&await Dt(M,U),d?.()}catch(Y){J.error(Y instanceof Error?Y.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Nn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=Ze.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:c,parsedSections:v,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(!_)return;const M=c[s],z=v[s];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const G=(U.variants??[])[a]?.rule;if(kt(G,j,l)){const Se=G?.__resolveType??"",Qe=j[Se],rt=typeof Qe?.name=="string"?Qe.name:Se,{__resolveType:gt,...it}=t;Ne.mutate({blockKey:Se,data:Tt(gt??"",it,rt)},{onSuccess:()=>d?.(),onError:ht=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:ht.message}))});return}const Y=Ln(U,a,t),Ke=[...c];Ke[s]=xt(M,z,Y);const et=Ct(j,_,Ke,ee,D);Ne.mutate({blockKey:_,data:et},{onSuccess:()=>d?.(),onError:Se=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Se.message}))})},pn))},ga=t=>{Ie(t);const s=t?Fn(t,l):{__resolveType:In};Te(t?s:{}),Nn(s)},ha=t=>{const s=t;Te(s);const a=We?{__resolveType:We,...s}:{...s};Nn(a)},va=async t=>{wt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:c,parsedSections:v,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(s===null||!_)return;const M=c[s],z=v[s];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const Re=U.variants??[],G=At(Re[a]?.rule,j,l),Y=Yt(t),Ke=Ln(U,a,Y),et=[...c];et[s]=xt(M,z,Ke);const Se=Ct(j,_,et,ee,D),Qe={...j,[_]:Se},{resolveType:rt,formValue:gt}=Pt(Y,Qe,l??void 0);Ie(rt),Te(gt);try{await Ne.mutateAsync({blockKey:_,data:Se}),G&&G!==t&&await Dt(G,Qe),d?.()}catch(it){J.error(it instanceof Error?it.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ve&&!Ye)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.noPageFound",{currentPath:b})});if(Ve&&!tn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.globalBlockNotFound")});const ft=p!==null?Ue[p]??null:null,Vn=p!==null?q[p]:null,Dn=Vn&&ft?.isMultivariate?tt(Vn,ft):null,bt=Dn?Kn(Dn,lt):[],cn=Math.min(I,Math.max(bt.length-1,0)),zt=bt[cn]??null,pt=ft?.isMultivariate===!0,Pn=p!==null&&ft!==null,Ht=Pn&&(pt||!!(on&&De)),ba=Ht&&!Ve&&ft?.isSavedBlock===!0,ot=Ve||ba,Sa=Ve?xn:ft?.label??"",xa=We&&l?qt(We,l):null,un=Ht&&(!Ve||se.length>0)?Ve?[xn,...se]:[Ye.name,ft.label,...pt&&zt?[zt.label]:[],...se]:[],ya=$&&Ye?[Ye.name,"SEO",...Ee]:[],Ut=$?ya:ot?un.length>0?un:[Sa]:un,_a=!$&&!Ve&&pt&&se.length===0,An=()=>{if(!k)return;wt(),He.current&&(clearTimeout(He.current),He.current=null);const t=r[k],s=co(t.sections,q);if(!s)return;const a=uo(s);Ne.mutate({blockKey:k,data:{...t,sections:s}},{onSuccess:()=>{F(a),A(null),C(null),B(null),L([]),Q(null),ge(null)},onError:c=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},dn=(t,s,a)=>{if(!k)return;wt(),He.current&&(clearTimeout(He.current),He.current=null);const c=r[k],v=c.sections;if(!v||typeof v!="object"||Array.isArray(v))return;const j=v;if(!Array.isArray(j.variants))return;const _=t([...j.variants]);if(!_)return;const D=Eo(j,_),ee={...r,[k]:{...c,sections:D}};Ne.mutate({blockKey:k,data:ee[k]},{onSuccess:()=>{s?.(),a&&Dt(a,ee)},onError:M=>J.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},ja=t=>{ye(null),F(t),A(null),C(null),B(null),L([]);const s=qe[t]?.rule,{resolveType:a,formValue:c}=Pt(s,r??{},l??void 0);ge(a),Q(c),jn(qe.map(v=>({rule:v.rule})),t)},Ea=(t,s)=>{if(t===s)return;let a=Oe;Oe===t?a=s:t<Oe&&s>=Oe?a=Oe-1:t>Oe&&s<=Oe&&(a=Oe+1),F(a);const c=Mt(qe.map(v=>({rule:v.rule})),t,s);jn(c,a),dn(v=>Mt(v,t,s))},Ra=t=>{const s=qe[t]?.rule,a=At(s,r??{},l??void 0);dn(c=>c.length<=1?null:(c.splice(t,1),c),()=>{qe.length-1===1?F(0):t<Oe?F(Oe-1):t===Oe&&F(Math.max(0,t-1)),A(null),C(null),B(null),L([]),Q(null),ge(null)},a)},wa=t=>{dn(s=>Ro(s,t),()=>{F(t+1),A(null),C(null),B(null),L([]),Q(null),ge(null)})},ka=async(t,s)=>{wt(),He.current&&(clearTimeout(He.current),He.current=null);const a=Ze.current.activePageKey,c=Ze.current.decofile;if(!a)return;const v=c[a],j=v.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const D=[..._.variants],ee=D[t];if(!ee?.rule||typeof ee.rule!="object"){J.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=ee.rule,z=s.trim();Lt(!0);try{if(!z){if(!kt(M,c,l)){ye(null);return}const et=M.__resolveType??"";D[t]={...ee,rule:On(M,c,l)};const Se={...c,[a]:{...v,sections:{..._,variants:D}}};await Ne.mutateAsync({blockKey:a,data:Se[a]}),await Dt(et,Se),ye(null),d?.();return}const U=$n(M,c,l);if(!U){J.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(U.blockKey){await Ne.mutateAsync({blockKey:U.blockKey,data:Tt(U.resolveType,U.data,z)}),ye(null),d?.();return}const Re=mn(z),G=fn(Re,c);if(G){J.error(G);return}const Y=Tt(U.resolveType,U.data,z);let Ke=null;try{await Ne.mutateAsync({blockKey:Re,data:Y}),Ke=Re,D[t]={...ee,rule:Yt(Re)},await Ne.mutateAsync({blockKey:a,data:{...v,sections:{..._,variants:D}}}),Ke=null}catch(et){throw Ke&&await Zt.mutateAsync({blockKey:Ke}).catch(()=>{}),et}ye(null),J.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:z})),d?.()}catch(U){J.error(U instanceof Error?U.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Ta=async(t,s)=>{wt(),He.current&&(clearTimeout(He.current),He.current=null);const{selectedSectionIndex:a,rawSections:c,parsedSections:v,decofile:j,activePageKey:_,pageVariants:D,variantIndex:ee}=Ze.current;if(a===null||!_)return;const M=c[a],z=v[a];if(!M||!z?.isMultivariate)return;const U=tt(M,z);if(!U)return;const Re=U.variants??[],G=Re[t];if(!G?.rule||typeof G.rule!="object"){J.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const Y=G.rule,Ke=s.trim();Lt(!0);const et=async Se=>{const Qe={...U,variants:Se},rt=[...c];rt[a]=xt(M,z,Qe);const gt=Ct(j,_,rt,ee,D);return await Ne.mutateAsync({blockKey:_,data:gt}),{...j,[_]:gt}};try{if(!Ke){if(!kt(Y,j,l)){he(null);return}const ht=Y.__resolveType??"",Bn=[...Re];Bn[t]={...G,rule:On(Y,j,l)};const Aa=await et(Bn);await Dt(ht,Aa),he(null),d?.();return}const Se=$n(Y,j,l);if(!Se){J.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Se.blockKey){await Ne.mutateAsync({blockKey:Se.blockKey,data:Tt(Se.resolveType,Se.data,Ke)}),he(null),d?.();return}const Qe=mn(Ke),rt=fn(Qe,j);if(rt){J.error(rt);return}const gt=Tt(Se.resolveType,Se.data,Ke);let it=null;try{await Ne.mutateAsync({blockKey:Qe,data:gt}),it=Qe;const ht=[...Re];ht[t]={...G,rule:Yt(Qe)},await et(ht),it=null}catch(ht){throw it&&await Zt.mutateAsync({blockKey:it}).catch(()=>{}),ht}he(null),J.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ke})),d?.()}catch(Se){J.error(Se instanceof Error?Se.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Cn=()=>{Rt()},Na=t=>{ne(t),rn({inner:t})},Va=t=>{de(t),rn({raw:t})},Da=()=>{ne(null),me([])},Pa=()=>oe(t=>t+1),Mn=t=>{if($){if(t===0){Xt.flush(),pe(!1),ne(null),de(void 0),me([]),oe(a=>a+1),T?.();return}if(t===1){me([]),oe(a=>a+1);return}me(Ee.slice(0,t-1)),oe(a=>a+1);return}if(Ve){L(se.slice(0,t)),W(a=>a+1);return}if(t===0){Cn();return}if(t===1){L([]),W(a=>a+1);return}if(pt&&t===2){L([]),W(a=>a+1);return}const s=pt?2:1;L(se.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:ot||Ht||$?n.jsxs("div",{className:$e("border-b px-3 py-2.5",ot&&"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:[Ut.length>1&&n.jsx("button",{type:"button",onClick:()=>Mn(wo(Ut.length,{isMultivariateSectionTop:_a})),title:i("sectionsEditor.sectionsEditor.back"),"aria-label":i("sectionsEditor.sectionsEditor.back"),className:$e("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",ot?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(bs,{className:"size-4"})}),!Ve&&It&&dt&&n.jsxs("button",{type:"button",onClick:Cn,title:i("sectionsEditor.sectionsEditor.editingInVariant",{variant:dt.label}),className:$e("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",Nr),children:[n.jsx(Ns,{rule:Bt(dt.rule,r??{},l??void 0),matchers:$t}),n.jsx("span",{className:"max-w-[160px] truncate",children:dt.label})]}),n.jsx("nav",{"aria-label":i("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Ut.map((t,s)=>{const a=s===Ut.length-1,c=hs(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Ss,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Mn(s),title:c,className:$e("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?ot?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":ot?"text-foreground/80":"text-muted-foreground",ot?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:c})]},`${c}-${s}`)})}),ot&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ao,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(jt,{side:"bottom",className:"max-w-[260px]",children:i("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Pn&&!pt&&!ft?.isHidden&&k&&n.jsx(Jn,{onClick:()=>ln()})]}),ot&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:i("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(Dr,{pageKey:k,initialName:Ye.name,initialPath:Ye.path,onFieldChange:Ys})}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>pe(!0),children:n.jsx(Vo,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Xe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>V&&k?V(k):je(!0),children:n.jsx(Do,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(Jn,{onClick:An})]})}),$?n.jsx(Jt,{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:Ft&&k?n.jsx(Qo,{rawSeo:sn,innerSeo:yn,defaultResolveType:zs,seoSchema:Hs,activeResolveType:an,seoTypeOptions:$s,formResetKey:N,siteDefaultSeo:Us,onBreadcrumbChange:me,onPersistRaw:Va,onInnerChange:Na,onClearForm:Da,onBumpFormKey:Pa}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})}):Ht?n.jsxs(Jt,{viewportRef:ze,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[pt&&bt.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(ao,{listKey:`${k??""}:${p??""}`,variants:bt.map((t,s)=>({index:s,label:t.label})),selectedIndex:cn,onSelect:aa,onRename:he,onDuplicate:ra,onDelete:oa,onRemoveAll:la,onReorder:ia,onAdd:()=>ln()}),pt&&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:i("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Qn,{currentRt:We??"",currentLabel:Wt(zt?.rule,r??{},lt,l??void 0),currentGlobalKey:At(zt?.rule,r??{},l??void 0)??void 0,matchers:$t,globals:kn,onSelect:ga,onSelectGlobal:va,schema:xa,formValue:ut,onChange:ha,formKey:`${p??"none"}:${cn}:${We??""}`,formWrapperClassName:"pt-1",meta:l??void 0,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})]})]}),n.jsx(Yn,{activeSchema:on,formValue:De,formResetKey:Me,onFormChange:En,onBreadcrumbChange:L,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot,previewBaseUrl:H,onRequestAddSection:Rn})]}):Ve?n.jsx(Jt,{viewportRef:ze,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Yn,{activeSchema:on,formValue:De,formResetKey:Me,onFormChange:En,onBreadcrumbChange:L,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot,previewBaseUrl:H,onRequestAddSection:Rn})}):n.jsxs(Jt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[It&&k&&n.jsx(wr,{listKey:k,variants:qe,activeIndex:Oe,decofile:r??{},meta:l,matchers:$t,onSelect:ja,onReorder:Ea,onRename:ye,onDuplicate:wa,onDelete:Ra,onAdd:An}),It&&X!==null&&n.jsxs("div",{className:$e("px-3 border-b",_e?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>we(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:i("sectionsEditor.sectionsEditor.variantRule")}),_e?n.jsx(Po,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(ko,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),_e&&n.jsx("div",{className:$e("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(Qn,{currentRt:X,currentLabel:Wt(dt?.rule,r??{},lt,l??void 0),currentGlobalKey:At(dt?.rule,r??{},l??void 0)??void 0,matchers:$t,globals:kn,onSelect:ma,onSelectGlobal:pa,schema:da,formValue:xe,onChange:fa,formKey:`${Oe}:${X??""}`,formWrapperClassName:"space-y-3",meta:l??void 0,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(vr,{listKey:`${k??""}-${Oe}`,rawSections:q,sections:Ue,meta:l,selectedIndex:p,onSelect:Ws,onReorder:Js,onDelete:Qs,onDuplicate:Xs,onMakeReusable:Fe,onToggleHidden:Zs,onToggleLazy:ea,onAddVariant:ln,onDetach:ta,onAddSection:()=>ae(!0),canAddSection:ua})})]}),n.jsx(oo,{open:Z!==null,onOpenChange:t=>{t||Fe(null)},defaultBlockId:Z!==null?mn(Ue[Z]?.label??""):"",isPending:Ne.isPending,onSubmit:ca}),H&&n.jsx(tr,{open:ve,onOpenChange:t=>{ae(t),t||(fe.current=null)},meta:l,decofile:r,previewBaseUrl:H,onSelect:sa}),Ae&&k&&r&&n.jsx(ro,{open:Ae,onOpenChange:je,pageKey:k,decofile:r}),Pe!==null&&n.jsx(qn,{open:!0,initialName:kt(qe[Pe]?.rule,r??{},l??void 0)?Wt(qe[Pe]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Bt(qe[Pe]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await ka(Pe,t)},onOpenChange:t=>{!t&&!Nt&&ye(null)}}),ue!==null&&n.jsx(qn,{open:!0,initialName:kt(bt[ue]?.rule,r??{},l??void 0)?Wt(bt[ue]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Bt(bt[ue]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await Ta(ue,t)},onOpenChange:t=>{!t&&!Nt&&he(null)}})]})}export{Ec as SectionsEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CsM7mO5K.js","assets/index-DWXkCL-D.js","assets/index-BEdBSIIA.css","assets/Tool02-DkhywL9m.js","assets/CheckCircle-DWW9c4n7.js","assets/Settings02-Dd-GnwO4.js","assets/use-mcp-client-DKp-llYX.js","assets/auth-CLFO3_RL.js","assets/useInfiniteQuery-DTZxXa2W.js","assets/use-infinite-scroll-Csqlp5hg.js","assets/studio-tools-2Ky28cSc.js","assets/badge-j9XMC7le.js","assets/input-Cw-Wyzjp.js","assets/dropdown-menu-CN40TAwh.js","assets/Check-Ckh2J0Wj.js","assets/ChevronRight-DPR4kcMe.js","assets/DotsVertical-BdH2ws1v.js","assets/table-DtygcXDr.js","assets/toggle-group-SpDgsjAy.js","assets/use-view-mode-mAo2loN2.js","assets/use-mobile-6uCDoREK.js","assets/FilterLines-CGfVuof0.js","assets/Globe01-C6n_Eepd.js","assets/SearchMd-D3BEkIfl.js","assets/dialog-DyuBQbz8.js","assets/X-BmCvrF6m.js","assets/AlertCircle-Db8FAhD0.js","assets/Upload01-BKUwtebR.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BCaZm96Z.js","assets/card-BdxDDHfa.js","assets/Trash01-N83L9DVj.js","assets/label-i-JCcQNn.js","assets/select-BPHj3yEG.js","assets/tooltip-bNOyqjG-.js","assets/ChevronDown-DcGz0OOE.js","assets/ChevronUp-335oTLfl.js","assets/switch-BsgP2USk.js","assets/textarea-CIIh3eCO.js","assets/ArrowLeft-BBdrIXTE.js","assets/XCircle-Dl4jNIuW.js","assets/checkbox-B1jaivmN.js","assets/Eye-Cd6Z4wr1.js","assets/LinkExternal01-DnTES2u_.js","assets/use-copy-BZ4yfNM-.js","assets/Copy01-DCGFBPLU.js","assets/Key01-1GhbQsqk.js","assets/Plus-DSVjF-4R.js","assets/mcp-oauth-Cz8lm40c.js","assets/Play-3BJ0NCnw.js"])))=>i.map(i=>d[i]);
2
- import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-DWXkCL-D.js";import{R as u}from"./require-capability-D9rxWmoq.js";import"./use-capability-DKpeN9dM.js";import"./access-gate-BghzSCnE.js";import"./capability-load-error-CvMtarEx.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CsM7mO5K.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,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(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,{size:20,className:"animate-spin 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{j as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-Csqlp5hg.js";import{e4 as i}from"./index-DWXkCL-D.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./use-infinite-scroll-Csqlp5hg.js";import{e4 as u,b2 as n}from"./index-DWXkCL-D.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};