decocms 4.148.0 → 4.148.2

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 (220) hide show
  1. package/dist/client/assets/{AlertCircle-prFf-HAX.js → AlertCircle-C0so9_2m.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CIYFgvLQ.js → AreaChart-BPndrmYp.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-D4OlfjCc.js → ArrowUp-DqHZOLaH.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-r26q6I39.js → ArrowUpRight-BeSitLtk.js} +1 -1
  5. package/dist/client/assets/{Check-nahPrn_g.js → Check-Bo8E9P21.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-rfFj3mw6.js → CheckCircle-BbUhtU6N.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-Dwhqmid_.js → ChevronDown-LhncEFP2.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-BvMOZXfz.js → ChevronRight-BFNnjWyJ.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Bcn1yz7Y.js → ChevronUp-BiY1fIT1.js} +1 -1
  10. package/dist/client/assets/{Copy01-zZwi30U0.js → Copy01-2mNuGDMv.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-K0_g-N6u.js → DotsVertical-B4rEjSEm.js} +1 -1
  12. package/dist/client/assets/{Eye-C3BeqH0m.js → Eye-BTH5usrJ.js} +1 -1
  13. package/dist/client/assets/{FilterLines-BKyA8Gmq.js → FilterLines-gOO19eIp.js} +1 -1
  14. package/dist/client/assets/{HardDrive-LewsJqXl.js → HardDrive-BwPhW4I-.js} +1 -1
  15. package/dist/client/assets/{Key01-BsGhLTyq.js → Key01-BGAAxzW1.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-CFl4ocrU.js → LayoutLeft-CfUA3Gy4.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-C_mjDJcz.js → LinkExternal01-DX9n1Q3H.js} +1 -1
  18. package/dist/client/assets/{LogOut01-DYarz7Xc.js → LogOut01-CWmPY0tk.js} +1 -1
  19. package/dist/client/assets/{Monitor01-DcosHG13.js → Monitor01-BPH64z9I.js} +1 -1
  20. package/dist/client/assets/{Palette-CYcg1kOm.js → Palette-BN_2bME6.js} +1 -1
  21. package/dist/client/assets/{Play-B4w0_M-p.js → Play-CXY0M3_s.js} +1 -1
  22. package/dist/client/assets/{Plus-BHuwS8Yk.js → Plus-D0Dv9jPc.js} +1 -1
  23. package/dist/client/assets/{SearchLg-CVrVx1Hz.js → SearchLg-tmeXQ1lM.js} +1 -1
  24. package/dist/client/assets/{SearchMd-IkP83MGf.js → SearchMd-CyOcTz8D.js} +1 -1
  25. package/dist/client/assets/{Settings02-DYW1mX49.js → Settings02-ChUOGGl4.js} +1 -1
  26. package/dist/client/assets/{Shield01-C60_XP9Q.js → Shield01-Byq7vBeG.js} +1 -1
  27. package/dist/client/assets/{Star01-DAfku3o8.js → Star01-otAf03E1.js} +1 -1
  28. package/dist/client/assets/{Stars01-B4vGCFFK.js → Stars01-0Ay4O1GU.js} +1 -1
  29. package/dist/client/assets/{Stars02-DhZ5El8x.js → Stars02-DEeje6sx.js} +1 -1
  30. package/dist/client/assets/{Sun-CRL2Dazq.js → Sun-CZcQsQoW.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-BvL6ECSz.js → SwitchHorizontal01-CmYE4bLM.js} +1 -1
  32. package/dist/client/assets/{Tool01-CZZIRPSR.js → Tool01-CJqzdgTl.js} +1 -1
  33. package/dist/client/assets/{Tool02-CxsMcXPT.js → Tool02-AS2smiaY.js} +1 -1
  34. package/dist/client/assets/{Trash01-DyI62_iL.js → Trash01-DHgDjjjd.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-B48ffVN1.js → TrendUp01-1KjOKz6O.js} +1 -1
  36. package/dist/client/assets/{Upload01--Y1XksK-.js → Upload01-L19nEZoE.js} +1 -1
  37. package/dist/client/assets/{User01-PauPleWX.js → User01-CJiOnrLf.js} +1 -1
  38. package/dist/client/assets/{Users01-BGcxQkcX.js → Users01-CFKiZjIC.js} +1 -1
  39. package/dist/client/assets/{Users03-CSrm4V7N.js → Users03-CPACS1af.js} +1 -1
  40. package/dist/client/assets/{X-hsgbPDpq.js → X-DoD_DFvd.js} +1 -1
  41. package/dist/client/assets/{XCircle-_9tDw1o6.js → XCircle-CBO54-W0.js} +1 -1
  42. package/dist/client/assets/{XClose-Cqc7ZFJt.js → XClose-DUbqSiSS.js} +1 -1
  43. package/dist/client/assets/{Zap-CwLDADiG.js → Zap-CXWrUVPS.js} +1 -1
  44. package/dist/client/assets/{ZapSquare-Bpz3dcM4.js → ZapSquare-BxR0CRbR.js} +1 -1
  45. package/dist/client/assets/{access-gate-CHtUSEUX.js → access-gate-BHwRisLp.js} +1 -1
  46. package/dist/client/assets/{add-section-modal-D0USIk0i.js → add-section-modal-Cvg3xT7n.js} +1 -1
  47. package/dist/client/assets/{agent-icon-2-jJJRsQ.js → agent-icon-CmLTEMEg.js} +1 -1
  48. package/dist/client/assets/{agents-list-Od7tZwWl.js → agents-list-CZotFPfA.js} +1 -1
  49. package/dist/client/assets/{ai-providers-Oh3KiPAG.js → ai-providers-CEhisgz1.js} +1 -1
  50. package/dist/client/assets/{alert-BOfj8_0b.js → alert-D9X5OP1t.js} +1 -1
  51. package/dist/client/assets/{alert-dialog-DH-0e1cN.js → alert-dialog-E0cD0kfl.js} +1 -1
  52. package/dist/client/assets/{app-editor-ClJ_g_FZ.js → app-editor-B07FokK6.js} +1 -1
  53. package/dist/client/assets/{auth-DXcmzYfn.js → auth-BdFDZqih.js} +1 -1
  54. package/dist/client/assets/{auth-catchall-BMKZlokb.js → auth-catchall-B5j8JZ2i.js} +1 -1
  55. package/dist/client/assets/{auth-entry-GagWrV3A.js → auth-entry-vEuwDBaG.js} +1 -1
  56. package/dist/client/assets/{auth-split-layout-dEkj6lWS.js → auth-split-layout-7RhHRQQd.js} +1 -1
  57. package/dist/client/assets/{authenticate-and-persist-oauth-CKGBWeo0.js → authenticate-and-persist-oauth-DoL91dD4.js} +1 -1
  58. package/dist/client/assets/{automation-list-row-Doaus0VB.js → automation-list-row-B0FfP8-p.js} +1 -1
  59. package/dist/client/assets/{automation-runs-BeTsfzHw.js → automation-runs-B4eyGHgR.js} +1 -1
  60. package/dist/client/assets/{automations-7C3rigLT.js → automations-j-e_r4yw.js} +1 -1
  61. package/dist/client/assets/{avatar-CWqNGAWm.js → avatar-DuWgXO2d.js} +1 -1
  62. package/dist/client/assets/{badge-BU_GpRr8.js → badge-DCswZD8z.js} +1 -1
  63. package/dist/client/assets/{block-document-BqnTNru8.js → block-document-Blt_HhA_.js} +1 -1
  64. package/dist/client/assets/{brand-context-DaY9-8MG.js → brand-context-C_y6YDag.js} +1 -1
  65. package/dist/client/assets/{buckets--aF01C9I.js → buckets-BSrcIS-K.js} +1 -1
  66. package/dist/client/assets/{bulk-category-panel-IZ8hArhU.js → bulk-category-panel-D1SciAxf.js} +1 -1
  67. package/dist/client/assets/{calendar-C44iUjeT.js → calendar-CKyOFwa7.js} +1 -1
  68. package/dist/client/assets/{capability-load-error-Bq9xdFHM.js → capability-load-error-CSD9Ftrl.js} +1 -1
  69. package/dist/client/assets/{card-DhKftmLa.js → card-DgOITwS1.js} +1 -1
  70. package/dist/client/assets/{category-editor-DA2NT2vY.js → category-editor-Cjer3VBt.js} +1 -1
  71. package/dist/client/assets/{chat-context-lQCixDlW.js → chat-context-CkPi7zTy.js} +1 -1
  72. package/dist/client/assets/{checkbox-B1nLyHMp.js → checkbox-Bn2J7_lo.js} +1 -1
  73. package/dist/client/assets/{cli-auth-success-BbrIeLYm.js → cli-auth-success-BiIJULdC.js} +1 -1
  74. package/dist/client/assets/{collection-detail-BKTUfV2g.js → collection-detail-DpLj0ria.js} +1 -1
  75. package/dist/client/assets/{collection-display-button-BHkLjkiG.js → collection-display-button-Pw9Wq9GY.js} +1 -1
  76. package/dist/client/assets/{collection-search-DQBn_WPS.js → collection-search-Dbp_s2rT.js} +1 -1
  77. package/dist/client/assets/{collection-table-wrapper-XKifB31b.js → collection-table-wrapper-B3KBRGuW.js} +1 -1
  78. package/dist/client/assets/{collection-tabs-hozvx6Ho.js → collection-tabs-DyS9THDh.js} +1 -1
  79. package/dist/client/assets/{command-DJQrIIpQ.js → command-COR4b3Ok.js} +1 -1
  80. package/dist/client/assets/{commerce-onboarding-Cd_YxA12.js → commerce-onboarding-CJp0GJFq.js} +1 -1
  81. package/dist/client/assets/{companions-core-C1jl2uKc.js → companions-core-CbscgT8F.js} +1 -1
  82. package/dist/client/assets/{connect-Bu2qDfU7.js → connect-BzkupHea.js} +1 -1
  83. package/dist/client/assets/{connection-Dknas7wt.js → connection-BbotHSq-.js} +1 -1
  84. package/dist/client/assets/{connection-card-CZnHiUbH.js → connection-card-CY6q6SPA.js} +1 -1
  85. package/dist/client/assets/{connection-detail-BfdEWfJc.js → connection-detail-DUGUSlQl.js} +1 -1
  86. package/dist/client/assets/{connection-form-helpers-wXqqOz4Y.js → connection-form-helpers-D8He2dB4.js} +1 -1
  87. package/dist/client/assets/{connections-DyfObEJB.js → connections-BS7Y7wAN.js} +1 -1
  88. package/dist/client/assets/{decopilot-sse-pool-OIu0_L6x.js → decopilot-sse-pool-DqLF5KUp.js} +1 -1
  89. package/dist/client/assets/{dialog-CFJExuhc.js → dialog-BMWa5rTO.js} +1 -1
  90. package/dist/client/assets/{domain-settings-BZwc_ftn.js → domain-settings-BX_6HL16.js} +1 -1
  91. package/dist/client/assets/{drawer-CduxBHK6.js → drawer-B4EWz4bj.js} +1 -1
  92. package/dist/client/assets/{dropdown-menu-DZWhr_Tz.js → dropdown-menu-CyBHXtJg.js} +1 -1
  93. package/dist/client/assets/{empty-state-Dvs53SNF.js → empty-state-CLZE4W-w.js} +1 -1
  94. package/dist/client/assets/{extract-connection-data-yYpcXysa.js → extract-connection-data-BdaYeDtS.js} +1 -1
  95. package/dist/client/assets/{file-explorer-CWWru7vT.js → file-explorer-BirEDyQ4.js} +1 -1
  96. package/dist/client/assets/{form-D0vRB-7K.js → form-DVxBP9Wb.js} +1 -1
  97. package/dist/client/assets/{general-DpATbZPN.js → general-5bXXZayi.js} +1 -1
  98. package/dist/client/assets/{github-repo-picker-B_LrgL4x.js → github-repo-picker-BH5z2Hfp.js} +1 -1
  99. package/dist/client/assets/{hooks-Bpc8gc-c.js → hooks-j34to70s.js} +1 -1
  100. package/dist/client/assets/{index-VH3dcW-d.js → index-B3y0wiwd.js} +1 -1
  101. package/dist/client/assets/{index-DGBBsTtG.js → index-B4md6a64.js} +1 -1
  102. package/dist/client/assets/{index-Pt4lG2Yp.js → index-B7WRGid-.js} +1 -1
  103. package/dist/client/assets/{index-CcWXa1Ub.js → index-B_TpQwqY.js} +1 -1
  104. package/dist/client/assets/{index-B5XBP5rN.js → index-BqOcts6O.js} +29 -29
  105. package/dist/client/assets/{index-CTtLf48d.js → index-Bx_L6F1q.js} +1 -1
  106. package/dist/client/assets/{index-CDVDDq-f.js → index-CfEdc2K9.js} +3 -3
  107. package/dist/client/assets/{index-B_5mEQTo.js → index-CmKxNNDw.js} +1 -1
  108. package/dist/client/assets/{index-BFPxaZUp.js → index-DPCVDS3N.js} +1 -1
  109. package/dist/client/assets/{index-CDGI2YeW.js → index-DecHQWhP.js} +1 -1
  110. package/dist/client/assets/{index-CiCjGSX0.js → index-Hb7KD57V.js} +3 -3
  111. package/dist/client/assets/{index-redirect-SrvT1SnC.js → index-redirect-xyg3oVCG.js} +1 -1
  112. package/dist/client/assets/{input-BPZ-HKZz.js → input-CTXfxbM4.js} +1 -1
  113. package/dist/client/assets/{integration-icon-DWxNTrlG.js → integration-icon-Bu-QBCtu.js} +1 -1
  114. package/dist/client/assets/{invite-member-dialog-CKpzA6Lt.js → invite-member-dialog-C0arNNNB.js} +1 -1
  115. package/dist/client/assets/{label-pRSCuTCI.js → label-C1mRnRJ3.js} +1 -1
  116. package/dist/client/assets/{layout-_cLfwiEw.js → layout-5NvFTc8b.js} +1 -1
  117. package/dist/client/assets/{login-CcXd7nTn.js → login-BrSgTV9U.js} +1 -1
  118. package/dist/client/assets/{mcp-oauth-D8jkuULq.js → mcp-oauth-DyETxrIW.js} +1 -1
  119. package/dist/client/assets/{members-Dndoax11.js → members-ZU4PO9Ga.js} +1 -1
  120. package/dist/client/assets/{monaco-editor-DolO4ZQB.js → monaco-editor-BTROi4MJ.js} +1 -1
  121. package/dist/client/assets/{monitoring-stats-row-BiIpp8OO.js → monitoring-stats-row-Bu5_xN6l.js} +1 -1
  122. package/dist/client/assets/{multi-select-Cyq9VC9u.js → multi-select-CJIus-RO.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-DVOQd7Su.js → oauth-callback-D1dTY1Jl.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-ai-provider-CzWiWBwQ.js → oauth-callback-ai-provider-CXtnyoBA.js} +1 -1
  125. package/dist/client/assets/{onboarding-BFld4QgV.js → onboarding-BmMZeTuY.js} +1 -1
  126. package/dist/client/assets/{org-install-DhSRkkZ6.js → org-install-DPDIAENz.js} +1 -1
  127. package/dist/client/assets/{org-layout-4OBazLTh.js → org-layout-imAmd3f5.js} +1 -1
  128. package/dist/client/assets/{organization-choice-DZbAlxVr.js → organization-choice-5CEaBIYY.js} +1 -1
  129. package/dist/client/assets/{orgs-DdfZdh22.js → orgs-ClnVcy9U.js} +1 -1
  130. package/dist/client/assets/{page-seo-form-D7-mOy3U.js → page-seo-form-Bur3ZT6l.js} +1 -1
  131. package/dist/client/assets/{popover-CySuxgWc.js → popover-BgU8baQn.js} +1 -1
  132. package/dist/client/assets/{post-editor-BH2gOe2G.js → post-editor-BkShHWlS.js} +1 -1
  133. package/dist/client/assets/{primitives-ZzkVXcmZ.js → primitives-CYkjWrYh.js} +1 -1
  134. package/dist/client/assets/{profile-CJfMezy3.js → profile-BahkGeoL.js} +1 -1
  135. package/dist/client/assets/project-app-view-D61UiuD_.js +1 -0
  136. package/dist/client/assets/record-editor-DlKesoxU.js +1 -0
  137. package/dist/client/assets/{redirect-editor-BgknQGS7.js → redirect-editor-ChcVEdtu.js} +1 -1
  138. package/dist/client/assets/registry-eO_-yHjy.js +2 -0
  139. package/dist/client/assets/{registry-layout-C4k0Z_HX.js → registry-layout-DSduhBMj.js} +1 -1
  140. package/dist/client/assets/{reports-CK46EfUg.js → reports-BukRm1V7.js} +1 -1
  141. package/dist/client/assets/{require-capability-_BYO4O0r.js → require-capability-knNjn5gr.js} +1 -1
  142. package/dist/client/assets/{required-auth-layout-Y_iPc623.js → required-auth-layout-wDRoa7JN.js} +1 -1
  143. package/dist/client/assets/{reset-password-B_eCL_De.js → reset-password-Ubr6K3F9.js} +1 -1
  144. package/dist/client/assets/{roles-DmQH_hn1.js → roles-CJIZ7BQp.js} +1 -1
  145. package/dist/client/assets/{search-input-DDzdnOfZ.js → search-input-dQaNiafw.js} +1 -1
  146. package/dist/client/assets/{secrets-BFHIO3xT.js → secrets-BmOjpzSb.js} +1 -1
  147. package/dist/client/assets/sections-editor-CqQl4SYu.js +2 -0
  148. package/dist/client/assets/{select-D-4YvNXx.js → select-k2EeHO9l.js} +1 -1
  149. package/dist/client/assets/{select-model-DiI22Jwv.js → select-model-1Siilv7M.js} +1 -1
  150. package/dist/client/assets/{self-tool-result-B-B340Op.js → self-tool-result-CFrLzPMx.js} +1 -1
  151. package/dist/client/assets/{seo-editor-B_yGYAv_.js → seo-editor-DmpAP3rF.js} +1 -1
  152. package/dist/client/assets/{settings-layout-iYqucjkv.js → settings-layout-BOrEv_K_.js} +1 -1
  153. package/dist/client/assets/{settings-section-BsUBVFJ8.js → settings-section-DrUUe23v.js} +1 -1
  154. package/dist/client/assets/{shell-controls-i6my0sRk.js → shell-controls-z87A-WDI.js} +1 -1
  155. package/dist/client/assets/{shell-layout-DG4Th7Sa.js → shell-layout-CBfdsiBY.js} +1 -1
  156. package/dist/client/assets/{sidebar-DjZ8_Bgz.js → sidebar-DXP1l81i.js} +1 -1
  157. package/dist/client/assets/{skeleton-bTWwGB8J.js → skeleton--WT5DZhr.js} +1 -1
  158. package/dist/client/assets/{sso-Cd42UgLn.js → sso-CE1MifOL.js} +1 -1
  159. package/dist/client/assets/{store-CK-ZmUB0.js → store-DOU3Ki6I.js} +1 -1
  160. package/dist/client/assets/store-registry-Bex3muZs.js +2 -0
  161. package/dist/client/assets/{studio-tools-D0fMLm7V.js → studio-tools-Bo-8iGXW.js} +1 -1
  162. package/dist/client/assets/{switch-DuM464dX.js → switch-DzZhqTYc.js} +1 -1
  163. package/dist/client/assets/{tab-id-DeKLgh7X.js → tab-id-C1oIXjgX.js} +1 -1
  164. package/dist/client/assets/{table-D3dfbLpK.js → table-BPfoRdss.js} +1 -1
  165. package/dist/client/assets/{tabs-dj1iCBTk.js → tabs-BhOuYjMR.js} +1 -1
  166. package/dist/client/assets/{textarea-CRxF7POO.js → textarea-CT44PbY8.js} +1 -1
  167. package/dist/client/assets/{toggle-group-B4VY0SSQ.js → toggle-group-DmO2BQmB.js} +1 -1
  168. package/dist/client/assets/{toolbar-D8A674is.js → toolbar-CbFuW7wJ.js} +1 -1
  169. package/dist/client/assets/{tooltip-BGYjjWAN.js → tooltip-BDLpwump.js} +1 -1
  170. package/dist/client/assets/{use-ai-providers-CgjH1FHV.js → use-ai-providers-BRUIZyhQ.js} +1 -1
  171. package/dist/client/assets/{use-automations-CMDkpVsT.js → use-automations-BJ_SHcgD.js} +1 -1
  172. package/dist/client/assets/{use-autosave-B0s9D84g.js → use-autosave-ClVxq8UI.js} +1 -1
  173. package/dist/client/assets/{use-capability--G-xF_Og.js → use-capability-BwUQZtZP.js} +1 -1
  174. package/dist/client/assets/{use-clock-tick-CM0hg93X.js → use-clock-tick-DKmTQcf_.js} +1 -1
  175. package/dist/client/assets/{use-connection-DpYJhBKh.js → use-connection-BBaBgk6-.js} +1 -1
  176. package/dist/client/assets/{use-copy-BQ7oQGyC.js → use-copy-CCRgk0iO.js} +1 -1
  177. package/dist/client/assets/{use-create-virtual-mcp-BQtZRamd.js → use-create-virtual-mcp-CzjN66FV.js} +1 -1
  178. package/dist/client/assets/{use-debounced-autosave-CfB2vsCS.js → use-debounced-autosave-C2KDvdz1.js} +1 -1
  179. package/dist/client/assets/{use-debounced-value-DcEC-O2W.js → use-debounced-value-hZzJokVa.js} +1 -1
  180. package/dist/client/assets/{use-deco-credits-BZq2OPer.js → use-deco-credits-C75iZS7o.js} +1 -1
  181. package/dist/client/assets/{use-decopilot-events-BawQIo1j.js → use-decopilot-events-DQvGjZAU.js} +1 -1
  182. package/dist/client/assets/{use-delete-connection-Cp2vIorn.js → use-delete-connection-BMZNhl0G.js} +1 -1
  183. package/dist/client/assets/{use-deployment-admin-CUUIYs55.js → use-deployment-admin-BF04YULq.js} +1 -1
  184. package/dist/client/assets/{use-file-configs-DhFeY0x8.js → use-file-configs-N1vcjn4C.js} +1 -1
  185. package/dist/client/assets/{use-infinite-scroll-BIlUj38g.js → use-infinite-scroll-C5PxetSF.js} +1 -1
  186. package/dist/client/assets/{use-join-requests-1_1qNku7.js → use-join-requests-CjqTSHvi.js} +1 -1
  187. package/dist/client/assets/{use-mcp-auth-status-CXemEgap.js → use-mcp-auth-status-CKTql3de.js} +1 -1
  188. package/dist/client/assets/{use-mcp-client-hJ7mIAn7.js → use-mcp-client-SY0_edaG.js} +1 -1
  189. package/dist/client/assets/{use-mcp-tools-CnwAWgJR.js → use-mcp-tools-dQrkPOmS.js} +1 -1
  190. package/dist/client/assets/{use-members-Ua0LPsxz.js → use-members-DeoSpBXO.js} +1 -1
  191. package/dist/client/assets/{use-mobile-xN7Y8sSl.js → use-mobile-BnhD7n0A.js} +1 -1
  192. package/dist/client/assets/{use-navigate-to-agent-9O4Y23Kg.js → use-navigate-to-agent-BLq3x7D4.js} +1 -1
  193. package/dist/client/assets/{use-org-auth-client-016602L4.js → use-org-auth-client-Dez-dJ8K.js} +1 -1
  194. package/dist/client/assets/{use-org-sso-aOIIMPbt.js → use-org-sso-I7jFf7PP.js} +1 -1
  195. package/dist/client/assets/{use-organization-roles-DlRrXoTd.js → use-organization-roles-BzL4HZvR.js} +1 -1
  196. package/dist/client/assets/{use-organization-settings-qBaZDtoo.js → use-organization-settings-D2pwdgz-.js} +1 -1
  197. package/dist/client/assets/{use-registry-connections-oX3jJfwb.js → use-registry-connections-8em2016P.js} +1 -1
  198. package/dist/client/assets/{use-secrets-CgA8v1MJ.js → use-secrets-27w4K8f1.js} +1 -1
  199. package/dist/client/assets/{use-status-sounds-BBSWRBro.js → use-status-sounds-BYg36g38.js} +1 -1
  200. package/dist/client/assets/{use-tags-BkvBfhtl.js → use-tags-K48onVzI.js} +1 -1
  201. package/dist/client/assets/{use-view-mode-DOmgvnBn.js → use-view-mode-vPAnPoPr.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-BW2aFPMp.js → use-virtual-mcp-D1SxHXZE.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-CyLf_P7s.js +1 -0
  204. package/dist/client/assets/{useQueries-DuUKkXFV.js → useQueries-DjdTHmR7.js} +1 -1
  205. package/dist/client/assets/{useRouterState-D8iwaf8J.js → useRouterState-Dd7bf_BD.js} +1 -1
  206. package/dist/client/assets/useSuspenseInfiniteQuery-DK-BqDXT.js +1 -0
  207. package/dist/client/assets/{users-BpDpX9YJ.js → users-BYzT4v7J.js} +1 -1
  208. package/dist/client/assets/{variant-calendar-Bq3bHPWO.js → variant-calendar-regFe_N7.js} +1 -1
  209. package/dist/client/assets/{view-mode-toggle-B0u8nK2q.js → view-mode-toggle-BE_V1GTO.js} +1 -1
  210. package/dist/client/index.html +1 -1
  211. package/dist/server/cli.js +1 -1
  212. package/dist/server/server.js +1 -1
  213. package/package.json +1 -1
  214. package/dist/client/assets/project-app-view-C9oiFRlP.js +0 -1
  215. package/dist/client/assets/record-editor-DrSroVmo.js +0 -1
  216. package/dist/client/assets/registry-BHrPYRoz.js +0 -2
  217. package/dist/client/assets/sections-editor-B4farBau.js +0 -2
  218. package/dist/client/assets/store-registry-Ds68I-x4.js +0 -2
  219. package/dist/client/assets/useInfiniteQuery-Zg7SxnJM.js +0 -1
  220. package/dist/client/assets/useSuspenseInfiniteQuery-D1hLYraw.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.148.0",
3
+ "version": "4.148.2",
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 L,F as H,j as U}from"./index-CDVDDq-f.js";import{a as O,g as $,s as E}from"./automation-runs-BeTsfzHw.js";import{r as k,u as B}from"./use-mcp-client-hJ7mIAn7.js";import{b as V,c as Y}from"./use-mcp-tools-CnwAWgJR.js";import{u as q}from"./index-B5XBP5rN.js";import{c as G}from"./monaco-editor-DolO4ZQB.js";import{g as F,M as K,a as D}from"./index-CDGI2YeW.js";import{a as W,u as z}from"./chat-context-lQCixDlW.js";import{u as J}from"./shell-layout-DG4Th7Sa.js";import{O as Q}from"./tab-id-DeKLgh7X.js";import"./select-D-4YvNXx.js";import"./tooltip-BGYjjWAN.js";import"./Check-nahPrn_g.js";import"./ChevronDown-Dwhqmid_.js";import"./ChevronUp-Bcn1yz7Y.js";import"./useInfiniteQuery-Zg7SxnJM.js";import"./use-infinite-scroll-BIlUj38g.js";import"./use-connection-DpYJhBKh.js";import"./use-virtual-mcp-BW2aFPMp.js";import"./card-DhKftmLa.js";import"./sidebar-DjZ8_Bgz.js";import"./LayoutLeft-CFl4ocrU.js";import"./use-mobile-xN7Y8sSl.js";import"./X-hsgbPDpq.js";import"./table-D3dfbLpK.js";import"./empty-state-Dvs53SNF.js";import"./use-members-Ua0LPsxz.js";import"./use-org-auth-client-016602L4.js";import"./use-clock-tick-CM0hg93X.js";import"./AlertCircle-prFf-HAX.js";import"./CheckCircle-rfFj3mw6.js";import"./DotsVertical-K0_g-N6u.js";import"./agent-icon-2-jJJRsQ.js";import"./Tool01-CZZIRPSR.js";import"./ArrowUp-D4OlfjCc.js";import"./Settings02-DYW1mX49.js";import"./Tool02-CxsMcXPT.js";import"./XCircle-_9tDw1o6.js";import"./ArrowUpRight-r26q6I39.js";import"./TrendUp01-B48ffVN1.js";import"./ZapSquare-Bpz3dcM4.js";import"./Users03-CSrm4V7N.js";import"./ChevronRight-BvMOZXfz.js";import"./Stars02-DhZ5El8x.js";import"./Copy01-zZwi30U0.js";import"./Eye-C3BeqH0m.js";import"./FilterLines-BKyA8Gmq.js";import"./Star01-DAfku3o8.js";import"./Palette-CYcg1kOm.js";import"./SwitchHorizontal01-BvL6ECSz.js";import"./HardDrive-LewsJqXl.js";import"./Key01-BsGhLTyq.js";import"./LinkExternal01-C_mjDJcz.js";import"./LogOut01-DYarz7Xc.js";import"./Monitor01-DcosHG13.js";import"./Sun-CRL2Dazq.js";import"./Play-B4w0_M-p.js";import"./Plus-BHuwS8Yk.js";import"./SearchLg-CVrVx1Hz.js";import"./SearchMd-IkP83MGf.js";import"./Shield01-C60_XP9Q.js";import"./Stars01-B4vGCFFK.js";import"./Trash01-DyI62_iL.js";import"./Upload01--Y1XksK-.js";import"./User01-PauPleWX.js";import"./Users01-BGcxQkcX.js";import"./XClose-Cqc7ZFJt.js";import"./Zap-CwLDADiG.js";import"./use-automations-CMDkpVsT.js";import"./studio-tools-D0fMLm7V.js";import"./useSuspenseInfiniteQuery-D1hLYraw.js";import"./avatar-CWqNGAWm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BQ7oQGyC.js";import"./dialog-CFJExuhc.js";import"./hooks-Bpc8gc-c.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-OIu0_L6x.js";import"./calendar-C44iUjeT.js";import"./integration-icon-DWxNTrlG.js";import"./use-navigate-to-agent-9O4Y23Kg.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CIYFgvLQ.js";import"./form-D0vRB-7K.js";import"./label-pRSCuTCI.js";import"./input-BPZ-HKZz.js";import"./auth-DXcmzYfn.js";import"./drawer-CduxBHK6.js";import"./collection-search-DQBn_WPS.js";import"./index-CiCjGSX0.js";import"./get-initials-D-f_fDFw.js";import"./popover-CySuxgWc.js";import"./dropdown-menu-DZWhr_Tz.js";import"./github-repo-picker-B_LrgL4x.js";import"./use-debounced-value-DcEC-O2W.js";import"./authenticate-and-persist-oauth-CKGBWeo0.js";import"./mcp-oauth-D8jkuULq.js";import"./extract-connection-data-yYpcXysa.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-DWINBxtd.js";import"./use-decopilot-events-BawQIo1j.js";import"./use-tags-BkvBfhtl.js";import"./command-DJQrIIpQ.js";import"./index-Pt4lG2Yp.js";import"./use-organization-settings-qBaZDtoo.js";import"./companions-core-C1jl2uKc.js";import"./tabs-dj1iCBTk.js";import"./toggle-group-B4VY0SSQ.js";import"./use-deco-credits-BZq2OPer.js";import"./alert-dialog-DH-0e1cN.js";import"./toolbar-D8A674is.js";import"./skeleton-bTWwGB8J.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CZnHiUbH.js";import"./use-registry-connections-oX3jJfwb.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CRxF7POO.js";import"./connection-form-helpers-wXqqOz4Y.js";import"./collection-tabs-hozvx6Ho.js";import"./badge-BU_GpRr8.js";import"./use-ai-providers-CgjH1FHV.js";import"./select-model-DiI22Jwv.js";import"./checkbox-B1nLyHMp.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BsUBVFJ8.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BBSWRBro.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability--G-xF_Og.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CXemEgap.js";import"./use-debounced-autosave-CfB2vsCS.js";import"./index-VH3dcW-d.js";import"./search-input-DDzdnOfZ.js";import"./switch-DuM464dX.js";import"./use-secrets-CgA8v1MJ.js";import"./useQueries-DuUKkXFV.js";import"./use-file-configs-DhFeY0x8.js";import"./automation-list-row-Doaus0VB.js";import"./required-auth-layout-Y_iPc623.js";import"./use-org-sso-aOIIMPbt.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:e,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=W(),{setAppContext:f,clearAppContext:l}=z(),{openSidePanel:g,openTab:s}=J(),i=`${p}:${e.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==e.name||t[4]!==n?(u={client:o,toolName:e.name,toolArguments:n},t[2]=o,t[3]=e.name,t[4]=n,t[5]=u):u=t[5];const{data:r}=Y(u);let h;if(t[6]!==e._meta||t[7]!==e.name){const x=$(e._meta);h=E(e.name,x),t[6]=e._meta,t[7]=e.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==e.inputSchema?(d=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==e?(R={...e,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=e,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==i?(N=x=>f(i,x),t[21]=f,t[22]=i,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==i?(T=()=>l(i),t[24]=l,t[25]=i,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==r?(S=U.jsx(K,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:r,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=r,t[37]=S):S=t[37],S}function Oe(M){const t=L.c(24),{connectionId:o,toolName:I,args:e}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=B(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let i,c,m;t[10]!==I||t[11]!==s.tools?(i=O(decodeURIComponent(I)),m=s.tools.find(r=>r.name===i)??s.tools.find(r=>{const h=$(r._meta);if(!h)return!1;if(E(r.name,h)===i)return!0;const d=E(i,h);return d!==i&&r.name===d}),c=m?._meta?F(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=i,t[13]=c,t[14]=m):(i=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let r;return t[15]!==i?(r=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',i,'" not found or has no UI']})}),t[15]=i,t[16]=r):r=t[16],r}let u;return t[17]!==e||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:e}),t[17]=e,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Oe as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as L,b as A,j as r}from"./index-CDVDDq-f.js";import{I as O}from"./input-BPZ-HKZz.js";import{L as F}from"./label-pRSCuTCI.js";import{S as R,a as z,b as V,c as D,d as J}from"./select-D-4YvNXx.js";import{T as M}from"./textarea-CRxF7POO.js";import{O as Q,P as Y,Q as $,I as q,T as G,Y as H}from"./index-B5XBP5rN.js";import{s as I}from"./primitives-ZzkVXcmZ.js";import{u as U}from"./use-autosave-B0s9D84g.js";import"./tooltip-BGYjjWAN.js";import"./Check-nahPrn_g.js";import"./ChevronDown-Dwhqmid_.js";import"./ChevronUp-Bcn1yz7Y.js";import"./ArrowUp-D4OlfjCc.js";import"./chat-context-lQCixDlW.js";import"./tab-id-DeKLgh7X.js";import"./hooks-Bpc8gc-c.js";import"./use-mcp-client-hJ7mIAn7.js";import"./auth-DXcmzYfn.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-OIu0_L6x.js";import"./studio-tools-D0fMLm7V.js";import"./use-virtual-mcp-BW2aFPMp.js";import"./use-ai-providers-CgjH1FHV.js";import"./use-decopilot-events-BawQIo1j.js";import"./use-organization-settings-qBaZDtoo.js";import"./automation-runs-BeTsfzHw.js";import"./useInfiniteQuery-Zg7SxnJM.js";import"./use-infinite-scroll-BIlUj38g.js";import"./use-connection-DpYJhBKh.js";import"./card-DhKftmLa.js";import"./sidebar-DjZ8_Bgz.js";import"./LayoutLeft-CFl4ocrU.js";import"./use-mobile-xN7Y8sSl.js";import"./X-hsgbPDpq.js";import"./table-D3dfbLpK.js";import"./empty-state-Dvs53SNF.js";import"./use-members-Ua0LPsxz.js";import"./use-org-auth-client-016602L4.js";import"./use-clock-tick-CM0hg93X.js";import"./AlertCircle-prFf-HAX.js";import"./CheckCircle-rfFj3mw6.js";import"./DotsVertical-K0_g-N6u.js";import"./agent-icon-2-jJJRsQ.js";import"./Tool01-CZZIRPSR.js";import"./Settings02-DYW1mX49.js";import"./Tool02-CxsMcXPT.js";import"./XCircle-_9tDw1o6.js";import"./ArrowUpRight-r26q6I39.js";import"./TrendUp01-B48ffVN1.js";import"./ZapSquare-Bpz3dcM4.js";import"./Users03-CSrm4V7N.js";import"./ChevronRight-BvMOZXfz.js";import"./Stars02-DhZ5El8x.js";import"./Copy01-zZwi30U0.js";import"./Eye-C3BeqH0m.js";import"./FilterLines-BKyA8Gmq.js";import"./Star01-DAfku3o8.js";import"./Palette-CYcg1kOm.js";import"./SwitchHorizontal01-BvL6ECSz.js";import"./HardDrive-LewsJqXl.js";import"./Key01-BsGhLTyq.js";import"./LinkExternal01-C_mjDJcz.js";import"./LogOut01-DYarz7Xc.js";import"./Monitor01-DcosHG13.js";import"./Sun-CRL2Dazq.js";import"./Play-B4w0_M-p.js";import"./Plus-BHuwS8Yk.js";import"./SearchLg-CVrVx1Hz.js";import"./SearchMd-IkP83MGf.js";import"./Shield01-C60_XP9Q.js";import"./Stars01-B4vGCFFK.js";import"./Trash01-DyI62_iL.js";import"./Upload01--Y1XksK-.js";import"./User01-PauPleWX.js";import"./Users01-BGcxQkcX.js";import"./XClose-Cqc7ZFJt.js";import"./Zap-CwLDADiG.js";import"./use-automations-CMDkpVsT.js";import"./useSuspenseInfiniteQuery-D1hLYraw.js";import"./avatar-CWqNGAWm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BQ7oQGyC.js";import"./dialog-CFJExuhc.js";import"./monaco-editor-DolO4ZQB.js";import"./index-CDGI2YeW.js";import"./calendar-C44iUjeT.js";import"./shell-layout-DG4Th7Sa.js";import"./required-auth-layout-Y_iPc623.js";import"./use-org-sso-aOIIMPbt.js";import"./integration-icon-DWxNTrlG.js";import"./use-navigate-to-agent-9O4Y23Kg.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CIYFgvLQ.js";import"./form-D0vRB-7K.js";import"./drawer-CduxBHK6.js";import"./collection-search-DQBn_WPS.js";import"./index-CiCjGSX0.js";import"./get-initials-D-f_fDFw.js";import"./popover-CySuxgWc.js";import"./dropdown-menu-DZWhr_Tz.js";import"./github-repo-picker-B_LrgL4x.js";import"./use-debounced-value-DcEC-O2W.js";import"./authenticate-and-persist-oauth-CKGBWeo0.js";import"./mcp-oauth-D8jkuULq.js";import"./use-mcp-tools-CnwAWgJR.js";import"./extract-connection-data-yYpcXysa.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-DWINBxtd.js";import"./use-tags-BkvBfhtl.js";import"./command-DJQrIIpQ.js";import"./index-Pt4lG2Yp.js";import"./companions-core-C1jl2uKc.js";import"./tabs-dj1iCBTk.js";import"./toggle-group-B4VY0SSQ.js";import"./use-deco-credits-BZq2OPer.js";import"./alert-dialog-DH-0e1cN.js";import"./toolbar-D8A674is.js";import"./skeleton-bTWwGB8J.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CZnHiUbH.js";import"./use-registry-connections-oX3jJfwb.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-wXqqOz4Y.js";import"./collection-tabs-hozvx6Ho.js";import"./badge-BU_GpRr8.js";import"./select-model-DiI22Jwv.js";import"./checkbox-B1nLyHMp.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BsUBVFJ8.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BBSWRBro.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability--G-xF_Og.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CXemEgap.js";import"./use-debounced-autosave-CfB2vsCS.js";import"./index-VH3dcW-d.js";import"./search-input-DDzdnOfZ.js";import"./switch-DuM464dX.js";import"./use-secrets-CgA8v1MJ.js";import"./useQueries-DuUKkXFV.js";import"./use-file-configs-DhFeY0x8.js";import"./automation-list-row-Doaus0VB.js";const W={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"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function Rr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:P}=C,e=A(),f=Q(h);let b;t[0]!==w||t[1]!==K||t[2]!==f||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:f},t[0]=w,t[1]=K,t[2]=f,t[3]=h,t[4]=b):b=t[4];const p=Y(b);let k;t[5]!==P||t[6]!==a?(k=$(P,a),t[5]=P,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[i,S]=U(B,v);let j;t[12]!==i||t[13]!==S?(j=(l,o)=>S({...i,[l]:o}),t[12]=i,t[13]=S,t[14]=j):j=t[14];const s=j,T=X[a];let n;t[15]!==e||t[16]!==T?(n=e(T),t[15]=e,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=W[a];let x;if(t[26]!==i||t[27]!==s||t[28]!==e||t[29]!==N){let l;t[31]!==i||t[32]!==s||t[33]!==e?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:e(o.labelKey)},value:i[o.key],onChange:m=>s(o.key,m),path:o.key,label:e(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:e(o.labelKey)}),r.jsxs(R,{value:I(i[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(V,{placeholder:e(o.labelKey)})}),r.jsx(D,{children:(o.options??[]).map(m=>r.jsx(J,{value:m.value,children:e(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:e(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:I(i[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(O,{id:o.key,value:I(i[o.key]),placeholder:o.placeholderKey?e(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[31]=i,t[32]=s,t[33]=e,t[34]=l):l=t[34],x=N.map(l),t[26]=i,t[27]=s,t[28]=e,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{Rr as RecordEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C4k0Z_HX.js","assets/index-CDVDDq-f.js","assets/index-DolLSrq-.css","assets/Tool02-CxsMcXPT.js","assets/CheckCircle-rfFj3mw6.js","assets/Settings02-DYW1mX49.js","assets/use-mcp-client-hJ7mIAn7.js","assets/auth-DXcmzYfn.js","assets/useInfiniteQuery-Zg7SxnJM.js","assets/use-infinite-scroll-BIlUj38g.js","assets/studio-tools-D0fMLm7V.js","assets/badge-BU_GpRr8.js","assets/input-BPZ-HKZz.js","assets/dropdown-menu-DZWhr_Tz.js","assets/Check-nahPrn_g.js","assets/ChevronRight-BvMOZXfz.js","assets/DotsVertical-K0_g-N6u.js","assets/table-D3dfbLpK.js","assets/toggle-group-B4VY0SSQ.js","assets/use-view-mode-DOmgvnBn.js","assets/use-mobile-xN7Y8sSl.js","assets/FilterLines-BKyA8Gmq.js","assets/SearchMd-IkP83MGf.js","assets/dialog-CFJExuhc.js","assets/X-hsgbPDpq.js","assets/AlertCircle-prFf-HAX.js","assets/Upload01--Y1XksK-.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DH-0e1cN.js","assets/card-DhKftmLa.js","assets/Trash01-DyI62_iL.js","assets/label-pRSCuTCI.js","assets/select-D-4YvNXx.js","assets/tooltip-BGYjjWAN.js","assets/ChevronDown-Dwhqmid_.js","assets/ChevronUp-Bcn1yz7Y.js","assets/switch-DuM464dX.js","assets/textarea-CRxF7POO.js","assets/XCircle-_9tDw1o6.js","assets/checkbox-B1nLyHMp.js","assets/Eye-C3BeqH0m.js","assets/LinkExternal01-C_mjDJcz.js","assets/use-copy-BQ7oQGyC.js","assets/Copy01-zZwi30U0.js","assets/Key01-BsGhLTyq.js","assets/Plus-BHuwS8Yk.js","assets/mcp-oauth-D8jkuULq.js","assets/Play-B4w0_M-p.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-CDVDDq-f.js";import{R as m}from"./require-capability-_BYO4O0r.js";import"./use-capability--G-xF_Og.js";import"./access-gate-CHtUSEUX.js";import"./capability-load-error-Bq9xdFHM.js";const n=s.lazy(()=>o(()=>import("./registry-layout-C4k0Z_HX.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])));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 V,m as Oe,j as n,af as Wn,B as Qe,k as Un,o as ka,t as X,K as Ra}from"./index-CDVDDq-f.js";import{am as wa,an as Va,ao as Na,a1 as qn,a2 as Jt,ap as Yn,aq as Jn,a3 as Qn,a4 as Xn,ar as Zn,as as Da,ab as es,ac as ts,at as Ta,au as Pa,N as Ca,a5 as ns,a6 as At,a9 as ss,aa as as,a7 as os,ah as rs,av as Aa,aw as Mt,ax as Ma,S as is,ay as lt,az as Ka,aA as La,aB as Fa,aC as Ba,D as Oa,F as Ia,aD as $a,aE as za,aF as Ha,aG as Ga,af as Gt,aH as Wt,aI as Wa,aJ as St,aK as Tt,aL as Ua,aM as qa,aN as tt,aO as Cn,aP as Ya,aQ as Pt,aR as Ut,aS as Ja,aT as dn,aU as Qa,aV as wt,aW as Xa,aX as Za,aY as eo,aZ as to,a_ as no,a$ as xt,b0 as so,b1 as ao,b2 as oo,H as ro,b3 as An,b4 as Ct,b5 as io,b6 as lo,b7 as co,b8 as uo,b9 as mn,ba as Mn,bb as Kn,bc as Vt,bd as qt,be as Ln,bf as mo,bg as fn,bh as fo,bi as po,bj as go,bk as Fn,bl as ho,bm as vo}from"./index-B5XBP5rN.js";import{t as bo}from"./ChevronDown-Dwhqmid_.js";import{a4 as gn,y as So,Y as ls,J as xo,x as cs,a6 as yo,a7 as _o}from"./agent-icon-2-jJJRsQ.js";import{i as us}from"./ChevronRight-BvMOZXfz.js";import{n as jo}from"./ChevronUp-Bcn1yz7Y.js";import{i as Eo}from"./Tool02-CxsMcXPT.js";import{n as Yt}from"./automation-runs-BeTsfzHw.js";import{c as yt,T as _t,a as jt}from"./tooltip-BGYjjWAN.js";import{b as ko,h as Ro,a as wo,c as Vo,d as No,e as Do}from"./dialog-CFJExuhc.js";import{I as To}from"./input-BPZ-HKZz.js";import{a as ds}from"./Copy01-zZwi30U0.js";import{i as Po}from"./Settings02-DYW1mX49.js";import{s as Co}from"./Eye-C3BeqH0m.js";import{s as ms}from"./TrendUp01-B48ffVN1.js";import{s as hn}from"./Plus-BHuwS8Yk.js";import{s as fs}from"./Trash01-DyI62_iL.js";import{i as Ao}from"./Zap-CwLDADiG.js";import{a as ht,D as ps,b as gs,c as hs,i as Mo}from"./dropdown-menu-DZWhr_Tz.js";import{S as Ko,r as Bn,u as Lo,d as Fo,a as Bo,i as Oo,f as Io,P as $o,b as zo}from"./page-seo-form-D7-mOy3U.js";import{c as Ho}from"./Tool01-CZZIRPSR.js";import{A as Go}from"./add-section-modal-D0USIk0i.js";import"./ArrowUp-D4OlfjCc.js";import"./chat-context-lQCixDlW.js";import"./tab-id-DeKLgh7X.js";import"./hooks-Bpc8gc-c.js";import"./use-mcp-client-hJ7mIAn7.js";import"./auth-DXcmzYfn.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-OIu0_L6x.js";import"./studio-tools-D0fMLm7V.js";import"./use-virtual-mcp-BW2aFPMp.js";import"./use-ai-providers-CgjH1FHV.js";import"./use-decopilot-events-BawQIo1j.js";import"./use-organization-settings-qBaZDtoo.js";import"./drawer-CduxBHK6.js";import"./collection-search-DQBn_WPS.js";import"./SearchMd-IkP83MGf.js";import"./use-mobile-xN7Y8sSl.js";import"./AreaChart-CIYFgvLQ.js";import"./index-CDGI2YeW.js";import"./calendar-C44iUjeT.js";import"./X-hsgbPDpq.js";import"./shell-layout-DG4Th7Sa.js";import"./avatar-CWqNGAWm.js";import"./User01-PauPleWX.js";import"./Users03-CSrm4V7N.js";import"./SearchLg-CVrVx1Hz.js";import"./Stars02-DhZ5El8x.js";import"./XClose-Cqc7ZFJt.js";import"./CheckCircle-rfFj3mw6.js";import"./FilterLines-BKyA8Gmq.js";import"./required-auth-layout-Y_iPc623.js";import"./use-org-sso-aOIIMPbt.js";import"./index-CiCjGSX0.js";import"./get-initials-D-f_fDFw.js";import"./SwitchHorizontal01-BvL6ECSz.js";import"./popover-CySuxgWc.js";import"./github-repo-picker-B_LrgL4x.js";import"./use-debounced-value-DcEC-O2W.js";import"./use-connection-DpYJhBKh.js";import"./authenticate-and-persist-oauth-CKGBWeo0.js";import"./mcp-oauth-D8jkuULq.js";import"./LinkExternal01-C_mjDJcz.js";import"./use-mcp-tools-CnwAWgJR.js";import"./extract-connection-data-yYpcXysa.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-9O4Y23Kg.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-DWINBxtd.js";import"./use-members-Ua0LPsxz.js";import"./use-org-auth-client-016602L4.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./AlertCircle-prFf-HAX.js";import"./DotsVertical-K0_g-N6u.js";import"./use-tags-BkvBfhtl.js";import"./use-copy-BQ7oQGyC.js";import"./Check-nahPrn_g.js";import"./command-DJQrIIpQ.js";import"./index-Pt4lG2Yp.js";import"./XCircle-_9tDw1o6.js";import"./companions-core-C1jl2uKc.js";import"./ZapSquare-Bpz3dcM4.js";import"./Star01-DAfku3o8.js";import"./Upload01--Y1XksK-.js";import"./form-D0vRB-7K.js";import"./label-pRSCuTCI.js";import"./select-D-4YvNXx.js";import"./tabs-dj1iCBTk.js";import"./toggle-group-B4VY0SSQ.js";import"./use-deco-credits-BZq2OPer.js";import"./sidebar-DjZ8_Bgz.js";import"./LayoutLeft-CFl4ocrU.js";import"./alert-dialog-DH-0e1cN.js";import"./toolbar-D8A674is.js";import"./skeleton-bTWwGB8J.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CZnHiUbH.js";import"./use-registry-connections-oX3jJfwb.js";import"./useInfiniteQuery-Zg7SxnJM.js";import"./use-infinite-scroll-BIlUj38g.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-DhKftmLa.js";import"./integration-icon-DWxNTrlG.js";import"./textarea-CRxF7POO.js";import"./connection-form-helpers-wXqqOz4Y.js";import"./collection-tabs-hozvx6Ho.js";import"./badge-BU_GpRr8.js";import"./useSuspenseInfiniteQuery-D1hLYraw.js";import"./Monitor01-DcosHG13.js";import"./select-model-DiI22Jwv.js";import"./checkbox-B1nLyHMp.js";import"./Key01-BsGhLTyq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BsUBVFJ8.js";import"./ArrowUpRight-r26q6I39.js";import"./Stars01-B4vGCFFK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BBSWRBro.js";import"./empty-state-Dvs53SNF.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability--G-xF_Og.js";import"./monaco-editor-DolO4ZQB.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CXemEgap.js";import"./Play-B4w0_M-p.js";import"./use-debounced-autosave-CfB2vsCS.js";import"./index-VH3dcW-d.js";import"./search-input-DDzdnOfZ.js";import"./switch-DuM464dX.js";import"./Users01-BGcxQkcX.js";import"./use-secrets-CgA8v1MJ.js";import"./useQueries-DuUKkXFV.js";import"./use-file-configs-DhFeY0x8.js";import"./use-automations-CMDkpVsT.js";import"./automation-list-row-Doaus0VB.js";import"./Palette-CYcg1kOm.js";import"./HardDrive-LewsJqXl.js";import"./LogOut01-DYarz7Xc.js";import"./Sun-CRL2Dazq.js";import"./Shield01-C60_XP9Q.js";import"./table-D3dfbLpK.js";import"./use-clock-tick-CM0hg93X.js";function Wo(g){return g.schema?.definitions??g.schema?.$defs??{}}function Uo(g,e){const o=Wo(e),d=o[btoa(g)];if(!d)return;let f=typeof d.image=="string"?d.image:void 0;if(!f&&Array.isArray(d.allOf)){const S=d.allOf.find(x=>typeof x.$ref=="string")?.$ref;if(typeof S=="string"){const x=S.replace("#/definitions/",""),m=o[x];f=typeof m?.image=="string"?m.image:void 0}}if(f?.includes("{{{"))return f}function qo(g,e){if(!e)return;const o=wa(g);if(!o)return;const d=Uo(o.resolveType,e);if(!d)return;const f=Va(d,o.data);if(f)return Na(f)}const Yo="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Jo="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 On(g){return Array.from({length:g},(e,o)=>({id:crypto.randomUUID(),index:o}))}function vs(g){return g.map((e,o)=>({...e,index:o}))}function Qo(g,e){if(e===g.length)return g;if(e<g.length)return vs(g.slice(0,e));const o=Array.from({length:e-g.length},(d,f)=>({id:crypto.randomUUID(),index:g.length+f}));return[...g,...o]}function bs(g){const e=Ge.c(20),{section:o,raw:d,meta:f}=g,S=o.isSavedBlock===!0,x=o.isMultivariate===!0;let m;e[0]!==f||e[1]!==d?(m=d&&f?qo(d,f):void 0,e[0]=f,e[1]=d,e[2]=m):m=e[2];const h=m;let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(So,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=u):u=e[3];let y;e[4]!==h?(y=h&&n.jsx("img",{src:h,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=h,e[5]=y):y=e[5];let k;e[6]!==x||e[7]!==S?(k=S?{color:Ca}:x?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=x,e[7]=S,e[8]=k):k=e[8];let N;e[9]!==k?(N=n.jsx(gn,{className:"h-4 w-4 shrink-0",style:k}),e[9]=k,e[10]=N):N=e[10];const E=o.isHidden&&"line-through opacity-50";let i;e[11]!==E?(i=Oe("min-w-0 flex-1 truncate text-sm font-medium",E),e[11]=E,e[12]=i):i=e[12];let p;e[13]!==o.label||e[14]!==i?(p=n.jsx("span",{className:i,children:o.label}),e[13]=o.label,e[14]=i,e[15]=p):p=e[15];let r;return e[16]!==y||e[17]!==N||e[18]!==p?(r=n.jsxs(n.Fragment,{children:[u,y,N,p]}),e[16]=y,e[17]=N,e[18]=p,e[19]=r):r=e[19],r}function Ss(g,e){const o=g.isSavedBlock===!0,d=g.isMultivariate===!0;return Oe("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?Yo:d?"text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]":"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Xo(g){const e=Ge.c(81),{section:o,raw:d,meta:f,sortableId:S,selected:x,onSelect:m,onDelete:h,onDuplicate:u,onMakeReusable:y,onToggleHidden:k,onToggleLazy:N,onAddVariant:E,onDetach:i}=g,p=ct(),r=d?Zn(d.__resolveType??""):!1;let P;e[0]!==o?(P=Da(o),e[0]=o,e[1]=P):P=e[1];const l=P;let R;e[2]!==S?(R={id:S,animateLayoutChanges:sr},e[2]=S,e[3]=R):R=e[3];const{attributes:A,listeners:$,setNodeRef:v,transform:C,isDragging:re}=es(R);let L;e[4]!==C?(L=ts.Transform.toString(C?{...C,x:0}:null),e[4]=C,e[5]=L):L=e[5];const le=re?0:void 0;let K;e[6]!==L||e[7]!==le?(K={transform:L,opacity:le},e[6]=L,e[7]=le,e[8]=K):K=e[8];const ge=K;let F;e[9]!==o?(F=Ta(o),e[9]=o,e[10]=F):F=e[10];const ne=F,he="button",me=0;let B;e[11]!==m?(B=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),m())},e[11]=m,e[12]=B):B=e[12];const J=re?"cursor-grabbing":"cursor-pointer";let Z;e[13]!==o||e[14]!==x||e[15]!==J?(Z=Oe("touch-none transition-colors",J,Ss(o,x)),e[13]=o,e[14]=x,e[15]=J,e[16]=Z):Z=e[16];let ee;e[17]!==f||e[18]!==d||e[19]!==o?(ee=n.jsx(bs,{section:o,raw:d,meta:f}),e[17]=f,e[18]=d,e[19]=o,e[20]=ee):ee=e[20];const O=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":p(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Oe("h-7 w-7 shrink-0",r?"":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),N()},onPointerDown:nr,children:n.jsx(Ao,{className:Oe("h-3.5 w-3.5",r&&"text-yellow-500")})})}),n.jsx(jt,{side:"bottom",children:p(r?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]});let Ae;e[21]!==k||e[22]!==o.isHidden||e[23]!==o.isMultivariate||e[24]!==p?(Ae=!o.isMultivariate&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":o.isHidden?p("sectionsEditor.sectionList.showSection"):p("sectionsEditor.sectionList.hideSection"),className:Oe("h-7 w-7 shrink-0",o.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),k()},onPointerDown:tr,children:o.isHidden?n.jsx(Po,{className:"h-3.5 w-3.5"}):n.jsx(Co,{className:"h-3.5 w-3.5"})})}),n.jsx(jt,{side:"bottom",children:o.isHidden?p("sectionsEditor.sectionList.showSection"):p("sectionsEditor.sectionList.hideSection")})]}),e[21]=k,e[22]=o.isHidden,e[23]=o.isMultivariate,e[24]=p,e[25]=Ae):Ae=e[25];let Le;e[26]!==p?(Le=p("sectionsEditor.sectionList.sectionActionsMenu"),e[26]=p,e[27]=Le):Le=e[27];let et;e[28]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(ls,{className:"h-3.5 w-3.5"}),e[28]=et):et=e[28];let Se;e[29]!==Le?(Se=n.jsx(ps,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":Le,className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:er,onPointerDown:Zo,children:et})}),e[29]=Le,e[30]=Se):Se=e[30];let H;e[31]!==u?(H=I=>{I.stopPropagation(),u()},e[31]=u,e[32]=H):H=e[32];let se;e[33]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ds,{className:"h-4 w-4"}),e[33]=se):se=e[33];let ae;e[34]!==p?(ae=p("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=p,e[35]=ae):ae=e[35];let ce;e[36]!==H||e[37]!==ae?(ce=n.jsxs(ht,{onClick:H,children:[se,ae]}),e[36]=H,e[37]=ae,e[38]=ce):ce=e[38];let oe;e[39]!==l||e[40]!==E||e[41]!==p?(oe=l&&n.jsxs(ht,{className:Pa,onClick:I=>{I.stopPropagation(),E()},children:[n.jsx(ms,{className:"h-4 w-4"}),p("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=l,e[40]=E,e[41]=p,e[42]=oe):oe=e[42];let ue;e[43]!==ne||e[44]!==y||e[45]!==p?(ue=ne&&n.jsxs(ht,{className:Jo,onClick:I=>{I.stopPropagation(),y()},children:[n.jsx(gn,{className:"h-4 w-4"}),p("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=ne,e[44]=y,e[45]=p,e[46]=ue):ue=e[46];let ie;e[47]!==i||e[48]!==o.isMultivariate||e[49]!==o.isSavedBlock||e[50]!==p?(ie=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(ht,{onClick:I=>{I.stopPropagation(),i()},children:[n.jsx(gn,{className:"h-4 w-4"}),p("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=i,e[48]=o.isMultivariate,e[49]=o.isSavedBlock,e[50]=p,e[51]=ie):ie=e[51];let fe;e[52]!==h?(fe=I=>{I.stopPropagation(),h()},e[52]=h,e[53]=fe):fe=e[53];let De;e[54]===Symbol.for("react.memo_cache_sentinel")?(De=n.jsx(fs,{className:"h-4 w-4"}),e[54]=De):De=e[54];let Ee;e[55]!==p?(Ee=p("sectionsEditor.sectionList.deleteMenuItem"),e[55]=p,e[56]=Ee):Ee=e[56];let de;e[57]!==fe||e[58]!==Ee?(de=n.jsxs(ht,{className:"text-destructive focus:text-destructive",onClick:fe,children:[De,Ee]}),e[57]=fe,e[58]=Ee,e[59]=de):de=e[59];let pe;e[60]!==ce||e[61]!==oe||e[62]!==ue||e[63]!==ie||e[64]!==de?(pe=n.jsxs(gs,{align:"end",className:"w-44",children:[ce,oe,ue,ie,de]}),e[60]=ce,e[61]=oe,e[62]=ue,e[63]=ie,e[64]=de,e[65]=pe):pe=e[65];let xe;e[66]!==Se||e[67]!==pe?(xe=n.jsxs(hs,{children:[Se,pe]}),e[66]=Se,e[67]=pe,e[68]=xe):xe=e[68];let U;return e[69]!==A||e[70]!==$||e[71]!==m||e[72]!==v||e[73]!==ge||e[74]!==Z||e[75]!==ee||e[76]!==O||e[77]!==Ae||e[78]!==xe||e[79]!==B?(U=n.jsxs("div",{ref:v,style:ge,...A,...$,role:he,tabIndex:me,onClick:m,onKeyDown:B,className:Z,children:[ee,O,Ae,xe]}),e[69]=A,e[70]=$,e[71]=m,e[72]=v,e[73]=ge,e[74]=Z,e[75]=ee,e[76]=O,e[77]=Ae,e[78]=xe,e[79]=B,e[80]=U):U=e[80],U}function Zo(g){return g.stopPropagation()}function er(g){return g.stopPropagation()}function tr(g){return g.stopPropagation()}function nr(g){return g.stopPropagation()}function sr(){return!1}function ar(g){const e=Ge.c(104),{listKey:o,rawSections:d,sections:f,meta:S,selectedIndex:x,onSelect:m,onReorder:h,onDelete:u,onDuplicate:y,onMakeReusable:k,onToggleHidden:N,onToggleLazy:E,onAddVariant:i,onDetach:p,onAddSection:r,canAddSection:P}=g,l=P===void 0?!0:P,R=ct();let A;e[0]!==f.length?(A=()=>On(f.length),e[0]=f.length,e[1]=A):A=e[1];const[$,v]=V.useState(A),[C,re]=V.useState(null),[L,le]=V.useState(o),[K,ge]=V.useState(f.length),F=V.useRef(!1);L!==o?(le(o),ge(f.length),v(On(f.length))):K!==f.length&&(ge(f.length),v(Pe=>Qo(Pe,f.length)));let ne;e[2]===Symbol.for("react.memo_cache_sentinel")?(ne={activationConstraint:{distance:8}},e[2]=ne):ne=e[2];let he;e[3]===Symbol.for("react.memo_cache_sentinel")?(he={coordinateGetter:ns},e[3]=he):he=e[3];const me=qn(Jt(Xn,ne),Jt(Qn,he));let B;e[4]!==$?(B=$.map(or),e[4]=$,e[5]=B):B=e[5];const J=B;let Z;e[6]===Symbol.for("react.memo_cache_sentinel")?(Z=Pe=>{re(String(Pe.active.id))},e[6]=Z):Z=e[6];const ee=Z;let O;e[7]!==J||e[8]!==h?(O=Pe=>{re(null);const{active:D,over:z}=Pe;if(!z||D.id===z.id)return;const ye=J.indexOf(String(D.id)),_e=J.indexOf(String(z.id));ye===-1||_e===-1||(v(Ue=>vs(At([...Ue],ye,_e))),F.current=!0,requestAnimationFrame(()=>{F.current=!1}),h?.(ye,_e))},e[7]=J,e[8]=h,e[9]=O):O=e[9];const Ae=O;let Le;e[10]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>{re(null)},e[10]=Le):Le=e[10];const et=Le;let Se,H,se,ae,ce,oe,ue,ie,fe,De,Ee,de,pe,xe,U;if(e[11]!==C||e[12]!==l||e[13]!==$||e[14]!==J||e[15]!==Ae||e[16]!==S||e[17]!==r||e[18]!==i||e[19]!==u||e[20]!==p||e[21]!==y||e[22]!==k||e[23]!==m||e[24]!==N||e[25]!==E||e[26]!==d||e[27]!==f||e[28]!==x||e[29]!==me||e[30]!==R){xe=Symbol.for("react.early_return_sentinel");e:{const Pe=D=>{F.current||m(D)};if(e[46]!==C||e[47]!==l||e[48]!==$||e[49]!==r||e[50]!==d||e[51]!==f||e[52]!==R){const D=C?$.find(z=>z.id===C):null;if(ae=D!=null?f[D.index]:null,se=D!=null?d[D.index]:void 0,$.length===0){let z;e[56]!==R?(z=R("sectionsEditor.sectionList.noSections"),e[56]=R,e[57]=z):z=e[57];let ye;e[58]!==z?(ye=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:z}),e[58]=z,e[59]=ye):ye=e[59];const _e=!l;let Ue;e[60]===Symbol.for("react.memo_cache_sentinel")?(Ue=n.jsx(hn,{size:14}),e[60]=Ue):Ue=e[60];let Ne;e[61]!==R?(Ne=R("sectionsEditor.sectionList.addSectionButton"),e[61]=R,e[62]=Ne):Ne=e[62];let nt;e[63]!==r||e[64]!==_e||e[65]!==Ne?(nt=n.jsxs(Qe,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:_e,onClick:r,children:[Ue,Ne]}),e[63]=r,e[64]=_e,e[65]=Ne,e[66]=nt):nt=e[66];let vt;e[67]!==ye||e[68]!==nt?(vt=n.jsxs("div",{className:"space-y-2",children:[ye,nt]}),e[67]=ye,e[68]=nt,e[69]=vt):vt=e[69],xe=vt;break e}pe=Oe(D&&"cursor-grabbing"),e[46]=C,e[47]=l,e[48]=$,e[49]=r,e[50]=d,e[51]=f,e[52]=R,e[53]=se,e[54]=ae,e[55]=pe}else se=e[53],ae=e[54],pe=e[55];H=ss,ie=me,fe=as,De=ee,Ee=Ae,de=et,Se=os,oe=J,ue=rs,U="space-y-1",ce=$.map(D=>{const z=f[D.index];return z?n.jsx(Xo,{sortableId:D.id,section:z,raw:d[D.index],meta:S,selected:x===D.index,onSelect:()=>Pe(D.index),onDelete:()=>u(D.index),onDuplicate:()=>y(D.index),onMakeReusable:()=>k(D.index),onToggleHidden:()=>N(D.index),onToggleLazy:()=>E(D.index),onAddVariant:()=>i(D.index),onDetach:()=>p(D.index)},D.id):null})}e[11]=C,e[12]=l,e[13]=$,e[14]=J,e[15]=Ae,e[16]=S,e[17]=r,e[18]=i,e[19]=u,e[20]=p,e[21]=y,e[22]=k,e[23]=m,e[24]=N,e[25]=E,e[26]=d,e[27]=f,e[28]=x,e[29]=me,e[30]=R,e[31]=Se,e[32]=H,e[33]=se,e[34]=ae,e[35]=ce,e[36]=oe,e[37]=ue,e[38]=ie,e[39]=fe,e[40]=De,e[41]=Ee,e[42]=de,e[43]=pe,e[44]=xe,e[45]=U}else Se=e[31],H=e[32],se=e[33],ae=e[34],ce=e[35],oe=e[36],ue=e[37],ie=e[38],fe=e[39],De=e[40],Ee=e[41],de=e[42],pe=e[43],xe=e[44],U=e[45];if(xe!==Symbol.for("react.early_return_sentinel"))return xe;let I;e[70]!==ce||e[71]!==U?(I=n.jsx("div",{className:U,children:ce}),e[70]=ce,e[71]=U,e[72]=I):I=e[72];let Ie;e[73]!==Se||e[74]!==oe||e[75]!==ue||e[76]!==I?(Ie=n.jsx(Se,{items:oe,strategy:ue,children:I}),e[73]=Se,e[74]=oe,e[75]=ue,e[76]=I,e[77]=Ie):Ie=e[77];let $e;e[78]!==se||e[79]!==ae||e[80]!==S?($e=ae?n.jsx("div",{className:Oe("cursor-grabbing shadow-lg ring-1 ring-border/60",Ss(ae,!1)),children:n.jsx(bs,{section:ae,raw:se,meta:S})}):null,e[78]=se,e[79]=ae,e[80]=S,e[81]=$e):$e=e[81];let We;e[82]!==$e?(We=Wn.createPortal(n.jsx(Yn,{dropAnimation:Jn,children:$e}),document.body),e[82]=$e,e[83]=We):We=e[83];let Me;e[84]!==H||e[85]!==ie||e[86]!==fe||e[87]!==De||e[88]!==Ee||e[89]!==de||e[90]!==Ie||e[91]!==We?(Me=n.jsxs(H,{sensors:ie,collisionDetection:fe,onDragStart:De,onDragEnd:Ee,onDragCancel:de,children:[Ie,We]}),e[84]=H,e[85]=ie,e[86]=fe,e[87]=De,e[88]=Ee,e[89]=de,e[90]=Ie,e[91]=We,e[92]=Me):Me=e[92];const Te=!l;let ve;e[93]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(hn,{size:14}),e[93]=ve):ve=e[93];let Ve;e[94]!==R?(Ve=R("sectionsEditor.sectionList.addSectionButton"),e[94]=R,e[95]=Ve):Ve=e[95];let ke;e[96]!==r||e[97]!==Te||e[98]!==Ve?(ke=n.jsxs(Qe,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Te,onClick:r,children:[ve,Ve]}),e[96]=r,e[97]=Te,e[98]=Ve,e[99]=ke):ke=e[99];let He;return e[100]!==pe||e[101]!==Me||e[102]!==ke?(He=n.jsxs("div",{className:pe,children:[Me,ke]}),e[100]=pe,e[101]=Me,e[102]=ke,e[103]=He):He=e[103],He}function or(g){return g.id}function In(g){const e=Ge.c(57),{open:o,initialName:d,autoLabel:f,isPending:S,onSubmit:x,onOpenChange:m}=g,h=S===void 0?!1:S,u=ct(),[y,k]=V.useState(d),[N,E]=V.useState(o);o!==N&&(E(o),o&&k(d));let i;e[0]!==h||e[1]!==m?(i=ee=>{!ee&&!h&&m(!1)},e[0]=h,e[1]=m,e[2]=i):i=e[2];const p=i;let r;e[3]!==h||e[4]!==y||e[5]!==x?(r=async ee=>{ee.preventDefault(),!h&&await x(y.trim())},e[3]=h,e[4]=y,e[5]=x,e[6]=r):r=e[6];const P=r;let l;e[7]!==u?(l=u("sectionsEditor.variantRenameDialog.title"),e[7]=u,e[8]=l):l=e[8];let R;e[9]!==l?(R=n.jsx(ko,{children:l}),e[9]=l,e[10]=R):R=e[10];let A;e[11]!==f||e[12]!==u?(A=u("sectionsEditor.variantRenameDialog.description",{fallback:f||u("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=f,e[12]=u,e[13]=A):A=e[13];let $;e[14]!==A?($=n.jsx(Ro,{children:A}),e[14]=A,e[15]=$):$=e[15];let v;e[16]!==R||e[17]!==$?(v=n.jsxs(wo,{children:[R,$]}),e[16]=R,e[17]=$,e[18]=v):v=e[18];let C;e[19]!==u?(C=u("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=u,e[20]=C):C=e[20];let re;e[21]!==C?(re=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:C}),e[21]=C,e[22]=re):re=e[22];let L;e[23]===Symbol.for("react.memo_cache_sentinel")?(L=ee=>k(ee.target.value),e[23]=L):L=e[23];let le;e[24]!==f||e[25]!==h||e[26]!==y?(le=n.jsx(To,{id:"variant-rename-name",value:y,onChange:L,placeholder:f,autoFocus:!0,disabled:h}),e[24]=f,e[25]=h,e[26]=y,e[27]=le):le=e[27];let K;e[28]!==re||e[29]!==le?(K=n.jsxs("div",{className:"space-y-1.5 py-4",children:[re,le]}),e[28]=re,e[29]=le,e[30]=K):K=e[30];let ge;e[31]!==m?(ge=()=>m(!1),e[31]=m,e[32]=ge):ge=e[32];let F;e[33]!==u?(F=u("sectionsEditor.variantRenameDialog.cancel"),e[33]=u,e[34]=F):F=e[34];let ne;e[35]!==h||e[36]!==ge||e[37]!==F?(ne=n.jsx(Qe,{type:"button",variant:"outline",onClick:ge,disabled:h,children:F}),e[35]=h,e[36]=ge,e[37]=F,e[38]=ne):ne=e[38];let he;e[39]!==h||e[40]!==u?(he=h?n.jsxs(n.Fragment,{children:[n.jsx(Un,{size:14,className:"animate-spin"}),u("sectionsEditor.variantRenameDialog.saving")]}):u("sectionsEditor.variantRenameDialog.save"),e[39]=h,e[40]=u,e[41]=he):he=e[41];let me;e[42]!==h||e[43]!==he?(me=n.jsx(Qe,{type:"submit",disabled:h,children:he}),e[42]=h,e[43]=he,e[44]=me):me=e[44];let B;e[45]!==ne||e[46]!==me?(B=n.jsxs(Vo,{children:[ne,me]}),e[45]=ne,e[46]=me,e[47]=B):B=e[47];let J;e[48]!==P||e[49]!==K||e[50]!==B||e[51]!==v?(J=n.jsx(No,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:P,children:[v,K,B]})}),e[48]=P,e[49]=K,e[50]=B,e[51]=v,e[52]=J):J=e[52];let Z;return e[53]!==p||e[54]!==o||e[55]!==J?(Z=n.jsx(Do,{open:o,onOpenChange:p,children:J}),e[53]=p,e[54]=o,e[55]=J,e[56]=Z):Z=e[56],Z}const rr="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]",xs="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.2)]";function ys(g){const e=Ge.c(5),{rule:o,matchers:d}=g,f=o?.__resolveType??"";let S;if(e[0]!==d||e[1]!==f){const u=d.find(y=>y.resolveType===f)?.iconName??Aa(f);S=xo(u),e[0]=d,e[1]=f,e[2]=S}else S=e[2];const x=S;if(!x)return null;let m;return e[3]!==x?(m=n.jsx(x,{size:14,className:"shrink-0"}),e[3]=x,e[4]=m):m=e[4],m}function $n(g){return g.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function pn(g){return g.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function ir(g){return g.map((e,o)=>({...e,index:o}))}function _s(g){const e=Ge.c(17),{label:o,effectiveRule:d,matchers:f,canDelete:S,dragging:x,onRename:m,onDuplicate:h,onDelete:u}=g,y=ct();let k;e[0]!==d||e[1]!==f?(k=n.jsx(ys,{rule:d,matchers:f}),e[0]=d,e[1]=f,e[2]=k):k=e[2];let N;e[3]!==o?(N=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=N):N=e[4];let E;e[5]!==S||e[6]!==x||e[7]!==o||e[8]!==u||e[9]!==h||e[10]!==m||e[11]!==y?(E=!x&&n.jsxs(hs,{children:[n.jsx(ps,{asChild:!0,children:n.jsx(Qe,{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:cr,onPointerDown:lr,children:n.jsx(ls,{size:14})})}),n.jsxs(gs,{align:"end",className:"w-36",children:[n.jsxs(ht,{onClick:p=>{p.stopPropagation(),m?.()},children:[n.jsx(Ho,{size:14}),y("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(ht,{onClick:p=>{p.stopPropagation(),h?.()},children:[n.jsx(ds,{size:14}),y("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(Mo,{}),n.jsxs(ht,{variant:"destructive",disabled:!S,onClick:p=>{p.stopPropagation(),u?.()},children:[n.jsx(fs,{size:14}),y("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=S,e[6]=x,e[7]=o,e[8]=u,e[9]=h,e[10]=m,e[11]=y,e[12]=E):E=e[12];let i;return e[13]!==k||e[14]!==N||e[15]!==E?(i=n.jsxs(n.Fragment,{children:[k,N,E]}),e[13]=k,e[14]=N,e[15]=E,e[16]=i):i=e[16],i}function lr(g){return g.stopPropagation()}function cr(g){return g.stopPropagation()}function ur(g){const e=Ge.c(33),{entry:o,sortableId:d,isActive:f,canDelete:S,decofile:x,meta:m,matchers:h,onSelect:u,onRename:y,onDuplicate:k,onDelete:N}=g;let E;e[0]!==d?(E={id:d,animateLayoutChanges:dr},e[0]=d,e[1]=E):E=e[1];const{attributes:i,listeners:p,setNodeRef:r,transform:P,isDragging:l}=es(E);let R;e[2]!==P?(R=ts.Transform.toString(P?{...P,x:0}:null),e[2]=P,e[3]=R):R=e[3];const A=l?0:void 0;let $;e[4]!==R||e[5]!==A?($={transform:R,opacity:A},e[4]=R,e[5]=A,e[6]=$):$=e[6];const v=$,C=m??void 0;let re;e[7]!==x||e[8]!==o.variant.rule||e[9]!==C?(re=Mt(o.variant.rule,x,C),e[7]=x,e[8]=o.variant.rule,e[9]=C,e[10]=re):re=e[10];const L=re;let le;e[11]!==u?(le=me=>{me.target===me.currentTarget&&(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),u())},e[11]=u,e[12]=le):le=e[12];const K=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",ge=f?xs:rr;let F;e[13]!==K||e[14]!==ge?(F=Oe("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",K,ge),e[13]=K,e[14]=ge,e[15]=F):F=e[15];let ne;e[16]!==S||e[17]!==L||e[18]!==o.variant.label||e[19]!==h||e[20]!==N||e[21]!==k||e[22]!==y?(ne=n.jsx(_s,{label:o.variant.label,effectiveRule:L,matchers:h,canDelete:S,onRename:y,onDuplicate:k,onDelete:N}),e[16]=S,e[17]=L,e[18]=o.variant.label,e[19]=h,e[20]=N,e[21]=k,e[22]=y,e[23]=ne):ne=e[23];let he;return e[24]!==i||e[25]!==p||e[26]!==u||e[27]!==r||e[28]!==v||e[29]!==F||e[30]!==ne||e[31]!==le?(he=n.jsx("div",{ref:r,style:v,...i,...p,onClick:u,onKeyDown:le,className:F,children:ne}),e[24]=i,e[25]=p,e[26]=u,e[27]=r,e[28]=v,e[29]=F,e[30]=ne,e[31]=le,e[32]=he):he=e[32],he}function dr(){return!1}function mr(g){const e=Ge.c(9),{variant:o,decofile:d,meta:f,matchers:S}=g,x=f??void 0;let m;e[0]!==d||e[1]!==x||e[2]!==o.rule?(m=Mt(o.rule,d,x),e[0]=d,e[1]=x,e[2]=o.rule,e[3]=m):m=e[3];const h=m;let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=Oe("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",xs),e[4]=u):u=e[4];let y;return e[5]!==h||e[6]!==S||e[7]!==o.label?(y=n.jsx("div",{className:u,children:n.jsx(_s,{label:o.label,effectiveRule:h,matchers:S,canDelete:!1,dragging:!0})}),e[5]=h,e[6]=S,e[7]=o.label,e[8]=y):y=e[8],y}function fr(g){const e=Ge.c(91),{listKey:o,variants:d,activeIndex:f,decofile:S,meta:x,matchers:m,onSelect:h,onReorder:u,onRename:y,onDuplicate:k,onDelete:N,onAdd:E}=g,i=ct();let p;e[0]!==d?(p=()=>pn(d),e[0]=d,e[1]=p):p=e[1];const[r,P]=V.useState(p),[l,R]=V.useState(null),[A,$]=V.useState(o),[v,C]=V.useState(d.length);let re;e[2]!==d?(re=()=>$n(d),e[2]=d,e[3]=re):re=e[3];const[L,le]=V.useState(re),K=V.useRef(!1),ge=$n(d);A!==o?($(o),C(d.length),le(ge),P(pn(d))):v!==d.length?(C(d.length),le(ge),P(pn(d))):L!==ge&&(le(ge),P(Me=>d.map((Te,ve)=>({id:Me[ve]?.id??crypto.randomUUID(),index:ve,variant:Te}))));let F;e[4]===Symbol.for("react.memo_cache_sentinel")?(F={activationConstraint:{distance:8}},e[4]=F):F=e[4];let ne;e[5]===Symbol.for("react.memo_cache_sentinel")?(ne={coordinateGetter:ns},e[5]=ne):ne=e[5];const he=qn(Jt(Xn,F),Jt(Qn,ne));let me;e[6]!==r?(me=r.map(pr),e[6]=r,e[7]=me):me=e[7];const B=me,J=d.length>1;let Z;e[8]!==r?(Z=Me=>{const Te=String(Me.active.id);R(r.find(ve=>ve.id===Te)??null)},e[8]=r,e[9]=Z):Z=e[9];const ee=Z;let O;e[10]!==B||e[11]!==u?(O=Me=>{R(null);const{active:Te,over:ve}=Me;if(!ve||Te.id===ve.id)return;const Ve=B.indexOf(String(Te.id)),ke=B.indexOf(String(ve.id));Ve===-1||ke===-1||(P(He=>ir(At([...He],Ve,ke))),K.current=!0,requestAnimationFrame(()=>{K.current=!1}),u(Ve,ke))},e[10]=B,e[11]=u,e[12]=O):O=e[12];const Ae=O;let Le;e[13]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>{R(null)},e[13]=Le):Le=e[13];const et=Le;let Se,H,se,ae,ce,oe,ue,ie,fe,De,Ee,de,pe;if(e[14]!==f||e[15]!==J||e[16]!==S||e[17]!==r||e[18]!==B||e[19]!==Ae||e[20]!==ee||e[21]!==m||e[22]!==x||e[23]!==E||e[24]!==N||e[25]!==k||e[26]!==y||e[27]!==h||e[28]!==he||e[29]!==i){const Me=ye=>{K.current||h(ye)};Ee="space-y-1 border-b p-2";let Te;e[43]!==i?(Te=i("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=i,e[44]=Te):Te=e[44];let ve;e[45]!==Te?(ve=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Te}),e[45]=Te,e[46]=ve):ve=e[46];let Ve;e[47]!==i?(Ve=i("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=i,e[48]=Ve):Ve=e[48];let ke;e[49]===Symbol.for("react.memo_cache_sentinel")?(ke=n.jsx(hn,{size:14}),e[49]=ke):ke=e[49];let He;e[50]!==E||e[51]!==Ve?(He=n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":Ve,className:"size-6",onClick:E,children:ke})}),e[50]=E,e[51]=Ve,e[52]=He):He=e[52];let Pe;e[53]!==i?(Pe=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=i,e[54]=Pe):Pe=e[54];let D;e[55]!==Pe?(D=n.jsx(jt,{children:Pe}),e[55]=Pe,e[56]=D):D=e[56];let z;e[57]!==He||e[58]!==D?(z=n.jsxs(yt,{children:[He,D]}),e[57]=He,e[58]=D,e[59]=z):z=e[59],e[60]!==ve||e[61]!==z?(de=n.jsxs("div",{className:"flex items-center justify-between",children:[ve,z]}),e[60]=ve,e[61]=z,e[62]=de):de=e[62],H=ss,oe=he,ue=as,ie=ee,fe=Ae,De=et,Se=os,ae=B,ce=rs,pe="space-y-0.5",se=r.map(ye=>n.jsx(ur,{sortableId:ye.id,entry:ye,isActive:ye.index===f,canDelete:J,decofile:S,meta:x,matchers:m,onSelect:()=>Me(ye.index),onRename:()=>y(ye.index),onDuplicate:()=>k(ye.index),onDelete:()=>N(ye.index)},ye.id)),e[14]=f,e[15]=J,e[16]=S,e[17]=r,e[18]=B,e[19]=Ae,e[20]=ee,e[21]=m,e[22]=x,e[23]=E,e[24]=N,e[25]=k,e[26]=y,e[27]=h,e[28]=he,e[29]=i,e[30]=Se,e[31]=H,e[32]=se,e[33]=ae,e[34]=ce,e[35]=oe,e[36]=ue,e[37]=ie,e[38]=fe,e[39]=De,e[40]=Ee,e[41]=de,e[42]=pe}else Se=e[30],H=e[31],se=e[32],ae=e[33],ce=e[34],oe=e[35],ue=e[36],ie=e[37],fe=e[38],De=e[39],Ee=e[40],de=e[41],pe=e[42];let xe;e[63]!==se||e[64]!==pe?(xe=n.jsx("div",{className:pe,children:se}),e[63]=se,e[64]=pe,e[65]=xe):xe=e[65];let U;e[66]!==Se||e[67]!==ae||e[68]!==ce||e[69]!==xe?(U=n.jsx(Se,{items:ae,strategy:ce,children:xe}),e[66]=Se,e[67]=ae,e[68]=ce,e[69]=xe,e[70]=U):U=e[70];let I;e[71]!==l||e[72]!==S||e[73]!==m||e[74]!==x?(I=l?n.jsx(mr,{variant:l.variant,decofile:S,meta:x,matchers:m}):null,e[71]=l,e[72]=S,e[73]=m,e[74]=x,e[75]=I):I=e[75];let Ie;e[76]!==I?(Ie=Wn.createPortal(n.jsx(Yn,{dropAnimation:Jn,children:I}),document.body),e[76]=I,e[77]=Ie):Ie=e[77];let $e;e[78]!==H||e[79]!==oe||e[80]!==ue||e[81]!==ie||e[82]!==fe||e[83]!==De||e[84]!==U||e[85]!==Ie?($e=n.jsxs(H,{sensors:oe,collisionDetection:ue,onDragStart:ie,onDragEnd:fe,onDragCancel:De,children:[U,Ie]}),e[78]=H,e[79]=oe,e[80]=ue,e[81]=ie,e[82]=fe,e[83]=De,e[84]=U,e[85]=Ie,e[86]=$e):$e=e[86];let We;return e[87]!==Ee||e[88]!==de||e[89]!==$e?(We=n.jsxs("div",{className:Ee,children:[de,$e]}),e[87]=Ee,e[88]=de,e[89]=$e,e[90]=We):We=e[90],We}function pr(g){return g.id}function gr(g){const e=Ge.c(16),{schema:o,value:d,onChange:f,meta:S,decofile:x,onSaveReferencedBlock:m,sandbox:h}=g,u=ct();let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[k,N]=V.useState(y);let E;e[1]!==k||e[2]!==u?(E=k.length>0&&n.jsxs("nav",{"aria-label":u("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>N([]),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:u("sectionsEditor.sectionsEditorPanels.backToRule"),children:n.jsx(cs,{className:"size-3.5"})}),k.map((r,P)=>{const l=P===k.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[P>0&&n.jsx(us,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>N(k.slice(0,P+1)),title:r,className:Oe("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]=k,e[2]=u,e[3]=E):E=e[3];let i;e[4]!==k||e[5]!==x||e[6]!==S||e[7]!==f||e[8]!==m||e[9]!==h||e[10]!==o||e[11]!==d?(i=n.jsx(is,{schema:o,value:d,onChange:f,basePath:"",breadcrumbPath:k,onBreadcrumbChange:N,meta:S,decofile:x,onSaveReferencedBlock:m,sandbox:h}),e[4]=k,e[5]=x,e[6]=S,e[7]=f,e[8]=m,e[9]=h,e[10]=o,e[11]=d,e[12]=i):i=e[12];let p;return e[13]!==E||e[14]!==i?(p=n.jsxs("div",{className:"space-y-2",children:[E,i]}),e[13]=E,e[14]=i,e[15]=p):p=e[15],p}function zn(g){const e=Ge.c(21),{activeSchema:o,formValue:d,formResetKey:f,onFormChange:S,onBreadcrumbChange:x,breadcrumbPath:m,emptyMessage:h,beforeForm:u,seoResolveType:y,siteDefaultSeo:k,meta:N,decofile:E,onSaveReferencedBlock:i,sandbox:p}=g;let r;e[0]!==m?(r=m===void 0?[]:m,e[0]=m,e[1]=r):r=e[1];const P=r;let l;e[2]!==o||e[3]!==P||e[4]!==E||e[5]!==f||e[6]!==d||e[7]!==N||e[8]!==x||e[9]!==S||e[10]!==i||e[11]!==p||e[12]!==y||e[13]!==k?(l=o&&d?y?n.jsx(Ko,{schema:o,resolveType:y,value:d,formResetKey:f,onChange:S,onBreadcrumbChange:x,siteDefaultSeo:k}):n.jsx(is,{schema:o,value:d,onChange:S,basePath:"",breadcrumbPath:P,onBreadcrumbChange:x,meta:N,decofile:E,onSaveReferencedBlock:i,sandbox:p},f):null,e[2]=o,e[3]=P,e[4]=E,e[5]=f,e[6]=d,e[7]=N,e[8]=x,e[9]=S,e[10]=i,e[11]=p,e[12]=y,e[13]=k,e[14]=l):l=e[14];const R=l;let A;e[15]!==h||e[16]!==R?(A=R??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:h}),e[15]=h,e[16]=R,e[17]=A):A=e[17];let $;return e[18]!==u||e[19]!==A?($=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:[u,A]})}),e[18]=u,e[19]=A,e[20]=$):$=e[20],$}const hr="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 Ma(g,e,lt)}function br(g){const e=Ge.c(19),{pageKey:o,initialName:d,initialPath:f,onFieldChange:S}=g,x=ct(),[m,h]=V.useState(d),[u,y]=V.useState(f),[k,N]=V.useState(o);k!==o&&(N(o),h(d),y(f));let E;e[0]!==S?(E=A=>{h(A.target.value),S("name",A.target.value)},e[0]=S,e[1]=E):E=e[1];let i;e[2]!==x?(i=x("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[2]=x,e[3]=i):i=e[3];let p;e[4]!==m||e[5]!==E||e[6]!==i?(p=n.jsx("input",{type:"text",value:m,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]=m,e[5]=E,e[6]=i,e[7]=p):p=e[7];let r;e[8]!==S?(r=A=>{y(A.target.value),S("path",A.target.value)},e[8]=S,e[9]=r):r=e[9];let P;e[10]!==x?(P=x("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[10]=x,e[11]=P):P=e[11];let l;e[12]!==u||e[13]!==r||e[14]!==P?(l=n.jsx("input",{type:"text",value:u,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]=u,e[13]=r,e[14]=P,e[15]=l):l=e[15];let R;return e[16]!==p||e[17]!==l?(R=n.jsxs("div",{className:"space-y-1",children:[p,l]}),e[16]=p,e[17]=l,e[18]=R):R=e[18],R}function Hn(g){const e=Ge.c(13),{onClick:o}=g,d=ct();let f;e[0]!==d?(f=d("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=d,e[1]=f):f=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(ms,{size:14}),e[2]=S):S=e[2];let x;e[3]!==o||e[4]!==f?(x=n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":f,className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:o,children:S})}),e[3]=o,e[4]=f,e[5]=x):x=e[5];let m;e[6]!==d?(m=d("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=d,e[7]=m):m=e[7];let h;e[8]!==m?(h=n.jsx(jt,{side:"bottom",children:m}),e[8]=m,e[9]=h):h=e[9];let u;return e[10]!==x||e[11]!==h?(u=n.jsxs(yt,{children:[x,h]}),e[10]=x,e[11]=h,e[12]=u):u=e[12],u}function Gn(g){const e=Ge.c(21),{currentRt:o,currentLabel:d,currentGlobalKey:f,matchers:S,globals:x,onSelect:m,onSelectGlobal:h,schema:u,formValue:y,onChange:k,formKey:N,formWrapperClassName:E,meta:i,decofile:p,onSaveReferencedBlock:r,sandbox:P}=g;let l;e[0]!==f||e[1]!==d||e[2]!==o||e[3]!==x||e[4]!==S||e[5]!==m||e[6]!==h?(l=n.jsx(Ka,{currentRt:o,currentLabel:d,currentGlobalKey:f,matchers:S,globals:x,onSelect:m,onSelectGlobal:h}),e[0]=f,e[1]=d,e[2]=o,e[3]=x,e[4]=S,e[5]=m,e[6]=h,e[7]=l):l=e[7];let R;e[8]!==p||e[9]!==N||e[10]!==y||e[11]!==E||e[12]!==i||e[13]!==k||e[14]!==r||e[15]!==P||e[16]!==u?(R=u&&y&&n.jsx("div",{className:E,children:n.jsx(gr,{schema:u,value:y,onChange:k,meta:i,decofile:p,onSaveReferencedBlock:r,sandbox:P},N)}),e[8]=p,e[9]=N,e[10]=y,e[11]=E,e[12]=i,e[13]=k,e[14]=r,e[15]=P,e[16]=u,e[17]=R):R=e[17];let A;return e[18]!==l||e[19]!==R?(A=n.jsxs(n.Fragment,{children:[l,R]}),e[18]=l,e[19]=R,e[20]=A):A=e[20],A}function sc({orgSlug:g,virtualMcpId:e,branch:o,previewReady:d=!0,previewUrl:f,currentPath:S,activePageBlockKey:x=null,activeGlobalBlockKey:m=null,externalSelectedIndex:h,onSaved:u,initialEditSeo:y=!1,onExitSeo:k,onViewJsonFile:N,onVariantPreviewOverride:E}){const i=ct(),p=d?{orgSlug:g,virtualMcpId:e,branch:o,previewUrl:f}:null,{data:r,isLoading:P}=La(p),{data:l,isLoading:R}=Fa(p),A=Ba(),$=A?.entity?.id===e?A.entity.metadata?.siteSlug??null:null,[v,C]=V.useState(null),[re,L]=V.useState(null),[le,K]=V.useState(null),[ge,F]=V.useState(0),[ne,he]=V.useState(void 0),[me,B]=V.useState(null),[J,Z]=V.useState(null),[ee,O]=V.useState([]),Ae=V.useRef(null),[Le,et]=V.useState(ee.length);Le!==ee.length&&(et(ee.length),requestAnimationFrame(()=>{Ae.current&&(Ae.current.scrollTop=0)}));const[Se,H]=V.useState(0),[se,ae]=V.useState(null),[ce,oe]=V.useState(null),[ue,ie]=V.useState(null),[fe,De]=V.useState(!0),[Ee,de]=V.useState(!1),[pe,xe]=V.useState(!1),[U,I]=V.useState(y),[Ie,$e]=V.useState(y);y&&!Ie&&($e(!0),I(!0),C(null),L(null),K(null),O([])),!y&&Ie&&$e(!1);const[We,Me]=V.useState(null),[Te,ve]=V.useState(void 0),[Ve,ke]=V.useState([]),[He,Pe]=V.useState(0),[D,z]=V.useState(0),[ye,_e]=V.useState(null),[Ue,Ne]=V.useState(null),[nt,vt]=V.useState(null),js=ka(),Es=`${g}/${e}/${o}`,Qt=Oa({orgSlug:g,virtualMcpId:e,branch:o}),[ks,Rs]=V.useState(S),[ws,Vs]=V.useState(x),[Ns,Ds]=V.useState(m);(ks!==S||ws!==x||Ns!==m)&&(queueMicrotask(()=>Qt.flush()),Rs(S),Vs(x),Ds(m),C(null),L(null),K(null),F(0),B(null),Z(null),z(0),_e(null),Ne(null),O([]),H(t=>t+1),I(!1),Me(null),ve(void 0),ke([]),Pe(t=>t+1));const Re=Ia({orgSlug:g,virtualMcpId:e,branch:o}),Kt=ro((t,s)=>{Re.mutate({blockKey:t,data:s},{onSuccess:()=>u?.(),onError:a=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),Xt=$a({orgSlug:g,virtualMcpId:e,branch:o}),[Nt,Lt]=V.useState(!1),Fe=V.useRef(null),st=V.useRef(null),at=V.useRef(null),Zt=V.useRef({}),Xe=V.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!d||P||R)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Un,{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 Ts=za(r),we=!!m,qe=we?null:Ha(Ts,S,x),w=we?m:qe?.key??null,en=we&&m?r[m]:void 0,vn=we&&m&&en?Ga(m,en):we&&m?m:"",Ft=!we&&w&&r[w]?r[w]:null,tn=U&&r&&l&&w&&qe?Bn(r,{kind:"page",pageKey:w,pageName:String(qe.name??""),path:String(qe.path??"")},l):null,Ps=U?Ft?.seo:void 0,nn=Te!==void 0?Te:Ps,Cs=U?Lo(nn):void 0,As=tn?.seoTypeOptions??[],Ms=U&&l?Fo(l):"",bn=We??Cs??{},sn=U&&tn?Bo(bn,tn):null,Ks=U&&sn&&Oo(nn)?Gt(sn,l):null,Ls=U?Io(r,l)?.seoData:void 0,ze=we?[{label:"Default",sections:[{__resolveType:m}]}]:vr(Ft?.sections,r??{}),Bt=ze.length>1,Ke=Math.min(ge,ze.length-1),ut=ze[Ke],q=ut?.sections??[],Be=Wt(q,r),Sn=!we&&Wa(Ft?.sections);if(we&&m&&nt!==m){vt(m);const t=q[0],s=Be[0];if(t&&s){C(0),z(0),O([]);const a=St(t,s,r);a&&(L(a.data),K(a.resolveType),Ne(null),_e(null))}}!we&&nt!==null&&vt(null),Xe.current={rawSections:q,parsedSections:Be,decofile:r??{},activePageKey:w,pageVariants:ze,variantIndex:Ke,sectionVariantIndex:D,selectedSectionIndex:v};const Fs=()=>({multivariate:Sn,index:Ke,variants:ze.map(t=>({rule:t.rule}))}),xn=(t,s)=>{if(!E)return;if(!w||!Sn||t.length<=1){E(null);return}const a=Ln(w,{multivariate:!0,index:s,variants:t},r,l);E(a.length>0?a:null)},Et=(t,s,a)=>{if(!E)return;if(!w){E(null);return}const c=Fs(),b=Ln(w,c,r,l);if(!t||s<0){E(b.length>0?b:null);return}const j=mo({pageKey:w,page:c,sectionIndex:s,sectionLazy:Be[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:r,meta:l}),_=[...b,...j];E(_.length>0?_:null)},dt=(t,s,a,c=v??-1,b=!1)=>{const j=tt(t,s);if(!j){L(null),K(null),Ne(null),_e(null),b&&Et(null,c,a);return}const T=Cn(j,lt)[a];if(!T){L(null),K(null),Ne(null),_e(null),b&&Et(null,c,a);return}const te=Xa(T.value,r);L(te?.data??null),K(te?.resolveType??null);const{resolveType:M,formValue:G}=Tt(T.rule,r,l??void 0);Ne(M),_e(G),b&&Et(j,c,a)};if(h!==void 0&&h!==ne&&(he(h??null),typeof h=="number")){const t=q[h],s=Be[h];if(t&&s)if(C(h),z(0),O([]),H(a=>a+1),s.isMultivariate)dt(t,s,0,h);else{const a=St(t,s,r);a?(L(a.data),K(a.resolveType)):(L(null),K(null)),Ne(null),_e(null)}}const Ot={orgSlug:g,virtualMcpId:e,branch:o,previewUrl:f??void 0,siteSlug:$},an=le&&l?Gt(le,l):null,Ye=(t,s)=>{if(!w)return;Fe.current&&(clearTimeout(Fe.current),Fe.current=null),at.current&&(clearTimeout(at.current),at.current=null),st.current&&(clearTimeout(st.current),st.current=null);const a=Ct(r,w,t,Ke,ze);Re.mutate({blockKey:w,data:a},{onSuccess:()=>s?.onSuccess?.()??u?.(),onError:c=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},kt=()=>{C(null),L(null),K(null),z(0),_e(null),Ne(null),O([]),H(t=>t+1)},Bs=(t,s)=>{Fe.current&&clearTimeout(Fe.current);const a=Xe.current.sectionVariantIndex;Fe.current=setTimeout(()=>{const{rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:T,variantIndex:te}=Xe.current,M=c[s];if(!M)return;const G=b[s];if(!G)return;if(G.isSavedBlock){const Y=G.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;Re.mutate({blockKey:Y,data:t},{onSuccess:()=>u?.(),onError:Q=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Q.message}))});return}if(!_)return;const W={...j[_]},je=[...c];if(G.isMultivariate){const Y=tt(M,G);if(!Y||!_)return;const Q=po(Y,a,t);je[s]=xt(M,G,Q)}else if(G.isHidden){const Y=Zn(M.__resolveType),Q=Y?{...M.section}:{...M},Ce=Array.isArray(Q.variants)?[...Q.variants]:[];Ce[0]&&(Ce[0]={...Ce[0],value:t}),Q.variants=Ce,Y?je[s]={...M,section:Q}:je[s]=Q}else G.isLazy?je[s]={...M,section:t}:je[s]=t;if(T.length>1){const Y=W.sections,Q=[...Y?.variants??[]];Q[te]&&(Q[te]={...Q[te],value:je}),W.sections={...Y,variants:Q}}else W.sections=je;Re.mutate({blockKey:_,data:W},{onSuccess:()=>u?.(),onError:Y=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))})},fn)},Os=t=>{C(t),z(0),O([]),H(b=>b+1);const s=q[t],a=Be[t];if(!s||!a)return;if(a.isMultivariate){dt(s,a,0,t);return}const c=St(s,a,r);if(!c){L(null),K(null),Ne(null),_e(null),Et(null,t,0);return}L(c.data),K(c.resolveType),Ne(null),_e(null),Et(null,t,0)},yn=t=>{const s=t;L(s),v!==null&&Bs(s,v)},on=t=>{if(!w||!r||!l||!qe)return;const s={kind:"page",pageKey:w,pageName:String(qe.name??""),path:String(qe.path??"")},a=Bn(r,s,l);a&&Qt.save(w,()=>{const c=js.getQueryData(Ra.decofile(Es))?.[w];if(!c||typeof c!="object"||c===null||Array.isArray(c))return null;const b={...c,...Zt.current};return Zt.current={},t?.raw!==void 0?{...b,seo:t.raw}:t?.inner!==void 0?zo(s,a,b,t.inner):b})},Is=(t,s)=>{w&&(Zt.current[t]=s,on())},$s=(t,s)=>{if(!w)return;const a=At([...q],t,s);v!==null&&(v===t?C(s):t<v&&s>=v?C(v-1):t>v&&s<=v&&C(v+1)),Ye(a)},zs=t=>{if(!w)return;const s=q.filter((a,c)=>c!==t);v===t?kt():v!==null&&v>t&&C(v-1),Ye(s)},Hs=t=>{if(!w)return;const s=q[t];if(!s)return;const a=[...q];a.splice(t+1,0,uo(s)),v!==null&&v>t&&C(v+1),Ye(a)},Gs=t=>{if(!w)return;const s=q[t],a=Be[t];if(!s||!a||a.isMultivariate)return;const c=a.isHidden?lo(s):co(s);if(!c)return;const b=[...q];b[t]=c,v===t&&kt(),Ye(b)},Ws=t=>{if(!w)return;const s=q[t],a=Be[t];if(!s||!a||a.isMultivariate)return;const c=io(s);if(!c)return;const b=[...q];b[t]=c,v===t&&kt(),Ye(b)},Us=t=>{if(!w)return;const s=q[t],a=Be[t];if(!s||!a?.isSavedBlock)return;const c=St(s,a,r);if(!c?.data)return;const{name:b,...j}=c.data,_=[...q];a.isLazy?_[t]={...s,section:j}:_[t]=j,v===t&&kt(),Ye(_)},qs=t=>{if(!w)return;const s=[...q,{__resolveType:t.resolveType}],a=s.length-1;Ye(s,{onSuccess:()=>{de(!1),C(a),z(0),O([]),H(_=>_+1);const c=s[a],b=Wt(s,r)[a];if(!c||!b)return;if(b.isMultivariate){dt(c,b,0);return}const j=St(c,b,r);if(!j){L(null),K(null),Ne(null),_e(null);return}L(j.data),K(j.resolveType),Ne(null),_e(null)}})},Ys=t=>{if(v===null)return;const s=q[v],a=Be[v];!s||!a?.isMultivariate||(z(t),O([]),H(c=>c+1),dt(s,a,t,v,!0))},Js=t=>{if(v===null||!w)return;const s=q[v],a=Be[v];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const b=ao(c,t);if(!b){X.error(i("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const j=[...q];j[v]=xt(s,a,b);const _=b.variants;let T=D;t===D?T=Math.min(t,_.length-1):t<D&&(T=D-1),z(T),O([]),H(te=>te+1),dt(j[v],a,T),Ye(j)},Qs=t=>{if(v===null||!w)return;const s=q[v],a=Be[v];if(!s||!a?.isMultivariate)return;const c=tt(s,a);if(!c)return;const b=oo(c,t),j=[...q];j[v]=xt(s,a,b);const _=t+1;z(_),O([]),H(T=>T+1),dt(j[v],a,_),Ye(j)},Xs=(t,s)=>{if(v===null||!w||t===s)return;const a=q[v],c=Be[v];if(!a||!c?.isMultivariate)return;const b=tt(a,c);if(!b)return;const j=no(b,t,s),_=[...q];_[v]=xt(a,c,j);let T=D;D===t?T=s:t<D&&s>=D?T=D-1:t>D&&s<=D&&(T=D+1),z(T),dt(_[v],c,T),Ye(_)},rn=t=>{const s=t??v;if(s===null||!w)return;const a=q[s],c=Be[s];if(!a||!c)return;const b=Za(a,c);if(!b){X.error(i("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const j=[...q];j[s]=b.section;const _=Wt(j,r)[s];if(!_?.isMultivariate){X.error(i("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}C(s),z(b.newVariantIndex),O([]),H(T=>T+1),dt(b.section,_,b.newVariantIndex,s),Ye(j)},Zs=()=>{if(v===null||!w)return;const t=q[v],s=Be[v];if(!t||!s?.isMultivariate)return;const a=tt(t,s);if(!a)return;const c=so(t,s,a);if(!c){X.error(i("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const b=[...q];b[v]=c;const j=Wt(b,r)[v];if(!j)return;z(0),Ne(null),_e(null),O([]),H(T=>T+1);const _=St(c,j,r);_?(L(_.data),K(_.resolveType)):(L(null),K(null)),Et(null,v,0),Ye(b)},ea=async t=>{if(se===null||!w)return;const s=mn(t,r);if(s){X.error(s);return}const a=q[se],c=Be[se];if(!a||!c)return;const b=St(a,c,r);if(!b){X.error(i("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const j={...b.data,name:t};try{await Re.mutateAsync({blockKey:t,data:j});const _=[...q];_[se]={__resolveType:t},await Re.mutateAsync({blockKey:w,data:Ct(r,w,_,Ke,ze)}),v===se&&kt(),ae(null),X.success(i("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),u?.()}catch(_){X.error(_ instanceof Error?_.message:i("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},_n=ut?.rule;if(Bt&&v===null&&J===null&&_n){const{resolveType:t,formValue:s}=Tt(_n,r??{},l??void 0);Z(t),B(s)}const It=l?Ua(l):[],jn=l&&r?qa(l,r):[],ta=!we&&!!(f&&l&&r),na=J&&l?Gt(J,l):null,Rt=()=>{st.current&&(clearTimeout(st.current),st.current=null),at.current&&(clearTimeout(at.current),at.current=null)},Dt=async(t,s)=>{if(!(fo(s,t,l)>0))try{await Xt.mutateAsync({blockKey:t})}catch(a){X.error(a instanceof Error?a.message:i("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},En=t=>{st.current&&clearTimeout(st.current),st.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:c}=Xe.current;if(!s)return;const b={...a[s]},j={...b.sections},_=[...j.variants??[]],T=_[c],te=T?.rule;if(wt(te,a,l)){const M=te?.__resolveType??"",G=a[M],W=typeof G?.name=="string"?G.name:M,{__resolveType:je,...Y}=t;Re.mutate({blockKey:M,data:Vt(je??"",Y,W)},{onSuccess:()=>u?.(),onError:Q=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Q.message}))});return}T&&(_[c]={...T,rule:t}),b.sections={...j,variants:_},Re.mutate({blockKey:s,data:b},{onSuccess:()=>u?.(),onError:M=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},fn)},sa=t=>{Z(t);const s=t?{__resolveType:t}:{__resolveType:Fn};B({}),En(s)},aa=t=>{const s=t;B(s);const a=J?{__resolveType:J,...s}:{...s};En(a)},oa=async t=>{Rt();const{activePageKey:s,decofile:a,variantIndex:c}=Xe.current;if(!s)return;const b=a[s],j=b?.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const T=[..._.variants],te=T[c];if(!te)return;const M=Pt(te.rule,a,l),G=qt(t);T[c]={...te,rule:G};const W={...a,[s]:{...b,sections:{..._,variants:T}}},{resolveType:je,formValue:Y}=Tt(G,W,l??void 0);Z(je),B(Y);try{await Re.mutateAsync({blockKey:s,data:W[s]}),M&&M!==t&&await Dt(M,W),u?.()}catch(Q){X.error(Q instanceof Error?Q.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},kn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=Xe.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:T,variantIndex:te}=Xe.current;if(!_)return;const M=c[s],G=b[s];if(!M||!G?.isMultivariate)return;const W=tt(M,G);if(!W)return;const Y=(W.variants??[])[a]?.rule;if(wt(Y,j,l)){const be=Y?.__resolveType??"",Je=j[be],rt=typeof Je?.name=="string"?Je.name:be,{__resolveType:pt,...it}=t;Re.mutate({blockKey:be,data:Vt(pt??"",it,rt)},{onSuccess:()=>u?.(),onError:gt=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const Q=An(W,a,t),Ce=[...c];Ce[s]=xt(M,G,Q);const Ze=Ct(j,_,Ce,te,T);Re.mutate({blockKey:_,data:Ze},{onSuccess:()=>u?.(),onError:be=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:be.message}))})},fn))},ra=t=>{Ne(t),_e({}),kn(t?{__resolveType:t}:{__resolveType:Fn})},ia=t=>{const s=t;_e(s);const a=Ue?{__resolveType:Ue,...s}:{...s};kn(a)},la=async t=>{Rt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:T,variantIndex:te}=Xe.current;if(s===null||!_)return;const M=c[s],G=b[s];if(!M||!G?.isMultivariate)return;const W=tt(M,G);if(!W)return;const je=W.variants??[],Y=Pt(je[a]?.rule,j,l),Q=qt(t),Ce=An(W,a,Q),Ze=[...c];Ze[s]=xt(M,G,Ce);const be=Ct(j,_,Ze,te,T),Je={...j,[_]:be},{resolveType:rt,formValue:pt}=Tt(Q,Je,l??void 0);Ne(rt),_e(pt);try{await Re.mutateAsync({blockKey:_,data:be}),Y&&Y!==t&&await Dt(Y,Je),u?.()}catch(it){X.error(it instanceof Error?it.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!we&&!qe)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:S})});if(we&&!en)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 mt=v!==null?Be[v]??null:null,Rn=v!==null?q[v]:null,wn=Rn&&mt?.isMultivariate?tt(Rn,mt):null,bt=wn?Cn(wn,lt):[],ln=Math.min(D,Math.max(bt.length-1,0)),$t=bt[ln]??null,ft=mt?.isMultivariate===!0,Vn=v!==null&&mt!==null,zt=Vn&&(ft||!!(an&&re)),ca=zt&&!we&&mt?.isSavedBlock===!0,ot=we||ca,ua=we?vn:mt?.label??"",da=Ue&&l?Gt(Ue,l):null,cn=zt&&(!we||ee.length>0)?we?[vn,...ee]:[qe.name,mt.label,...ft&&$t?[$t.label]:[],...ee]:[],ma=U&&qe?[qe.name,"SEO",...Ve]:[],Ht=U?ma:ot?cn.length>0?cn:[ua]:cn,fa=!U&&!we&&ft&&ee.length===0,Nn=()=>{if(!w)return;Rt(),Fe.current&&(clearTimeout(Fe.current),Fe.current=null);const t=r[w],s=eo(t.sections,q);if(!s)return;const a=to(s);Re.mutate({blockKey:w,data:{...t,sections:s}},{onSuccess:()=>{F(a),C(null),L(null),K(null),O([]),B(null),Z(null)},onError:c=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:c.message}))})},un=(t,s,a)=>{if(!w)return;Rt(),Fe.current&&(clearTimeout(Fe.current),Fe.current=null);const c=r[w],b=c.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const j=b;if(!Array.isArray(j.variants))return;const _=t([...j.variants]);if(!_)return;const T=go(j,_),te={...r,[w]:{...c,sections:T}};Re.mutate({blockKey:w,data:te[w]},{onSuccess:()=>{s?.(),a&&Dt(a,te)},onError:M=>X.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},pa=t=>{oe(null),F(t),C(null),L(null),K(null),O([]);const s=ze[t]?.rule,{resolveType:a,formValue:c}=Tt(s,r??{},l??void 0);Z(a),B(c),xn(ze.map(b=>({rule:b.rule})),t)},ga=(t,s)=>{if(t===s)return;let a=Ke;Ke===t?a=s:t<Ke&&s>=Ke?a=Ke-1:t>Ke&&s<=Ke&&(a=Ke+1),F(a);const c=At(ze.map(b=>({rule:b.rule})),t,s);xn(c,a),un(b=>At(b,t,s))},ha=t=>{const s=ze[t]?.rule,a=Pt(s,r??{},l??void 0);un(c=>c.length<=1?null:(c.splice(t,1),c),()=>{ze.length-1===1?F(0):t<Ke?F(Ke-1):t===Ke&&F(Math.max(0,t-1)),C(null),L(null),K(null),O([]),B(null),Z(null)},a)},va=t=>{un(s=>ho(s,t),()=>{F(t+1),C(null),L(null),K(null),O([]),B(null),Z(null)})},ba=async(t,s)=>{Rt(),Fe.current&&(clearTimeout(Fe.current),Fe.current=null);const a=Xe.current.activePageKey,c=Xe.current.decofile;if(!a)return;const b=c[a],j=b.sections;if(!j||typeof j!="object"||Array.isArray(j))return;const _=j;if(!Array.isArray(_.variants))return;const T=[..._.variants],te=T[t];if(!te?.rule||typeof te.rule!="object"){X.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=te.rule,G=s.trim();Lt(!0);try{if(!G){if(!wt(M,c,l)){oe(null);return}const Ze=M.__resolveType??"";T[t]={...te,rule:Mn(M,c,l)};const be={...c,[a]:{...b,sections:{..._,variants:T}}};await Re.mutateAsync({blockKey:a,data:be[a]}),await Dt(Ze,be),oe(null),u?.();return}const W=Kn(M,c,l);if(!W){X.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(W.blockKey){await Re.mutateAsync({blockKey:W.blockKey,data:Vt(W.resolveType,W.data,G)}),oe(null),u?.();return}const je=dn(G),Y=mn(je,c);if(Y){X.error(Y);return}const Q=Vt(W.resolveType,W.data,G);let Ce=null;try{await Re.mutateAsync({blockKey:je,data:Q}),Ce=je,T[t]={...te,rule:qt(je)},await Re.mutateAsync({blockKey:a,data:{...b,sections:{..._,variants:T}}}),Ce=null}catch(Ze){throw Ce&&await Xt.mutateAsync({blockKey:Ce}).catch(()=>{}),Ze}oe(null),X.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:G})),u?.()}catch(W){X.error(W instanceof Error?W.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Sa=async(t,s)=>{Rt(),Fe.current&&(clearTimeout(Fe.current),Fe.current=null);const{selectedSectionIndex:a,rawSections:c,parsedSections:b,decofile:j,activePageKey:_,pageVariants:T,variantIndex:te}=Xe.current;if(a===null||!_)return;const M=c[a],G=b[a];if(!M||!G?.isMultivariate)return;const W=tt(M,G);if(!W)return;const je=W.variants??[],Y=je[t];if(!Y?.rule||typeof Y.rule!="object"){X.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const Q=Y.rule,Ce=s.trim();Lt(!0);const Ze=async be=>{const Je={...W,variants:be},rt=[...c];rt[a]=xt(M,G,Je);const pt=Ct(j,_,rt,te,T);return await Re.mutateAsync({blockKey:_,data:pt}),{...j,[_]:pt}};try{if(!Ce){if(!wt(Q,j,l)){ie(null);return}const gt=Q.__resolveType??"",Pn=[...je];Pn[t]={...Y,rule:Mn(Q,j,l)};const Ea=await Ze(Pn);await Dt(gt,Ea),ie(null),u?.();return}const be=Kn(Q,j,l);if(!be){X.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(be.blockKey){await Re.mutateAsync({blockKey:be.blockKey,data:Vt(be.resolveType,be.data,Ce)}),ie(null),u?.();return}const Je=dn(Ce),rt=mn(Je,j);if(rt){X.error(rt);return}const pt=Vt(be.resolveType,be.data,Ce);let it=null;try{await Re.mutateAsync({blockKey:Je,data:pt}),it=Je;const gt=[...je];gt[t]={...Y,rule:qt(Je)},await Ze(gt),it=null}catch(gt){throw it&&await Xt.mutateAsync({blockKey:it}).catch(()=>{}),gt}ie(null),X.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ce})),u?.()}catch(be){X.error(be instanceof Error?be.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Lt(!1)}},Dn=()=>{kt()},xa=t=>{Me(t),on({inner:t})},ya=t=>{ve(t),on({raw:t})},_a=()=>{Me(null),ke([])},ja=()=>Pe(t=>t+1),Tn=t=>{if(U){if(t===0){Qt.flush(),I(!1),Me(null),ve(void 0),ke([]),Pe(a=>a+1),k?.();return}if(t===1){ke([]),Pe(a=>a+1);return}ke(Ve.slice(0,t-1)),Pe(a=>a+1);return}if(we){O(ee.slice(0,t)),H(a=>a+1);return}if(t===0){Dn();return}if(t===1){O([]),H(a=>a+1);return}if(ft&&t===2){O([]),H(a=>a+1);return}const s=ft?2:1;O(ee.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||zt||U?n.jsxs("div",{className:Oe("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:[Ht.length>1&&n.jsx("button",{type:"button",onClick:()=>Tn(vo(Ht.length,{isMultivariateSectionTop:fa})),title:i("sectionsEditor.sectionsEditor.back"),"aria-label":i("sectionsEditor.sectionsEditor.back"),className:Oe("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(cs,{className:"size-4"})}),!we&&Bt&&ut&&n.jsxs("button",{type:"button",onClick:Dn,title:i("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Oe("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",hr),children:[n.jsx(ys,{rule:Mt(ut.rule,r??{},l??void 0),matchers:It}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.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:Ht.map((t,s)=>{const a=s===Ht.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(us,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Tn(s),title:t,className:Oe("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:t})]},`${t}-${s}`)})}),ot&&n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Eo,{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")})]}),Vn&&!ft&&!mt?.isHidden&&w&&n.jsx(Hn,{onClick:()=>rn()})]}),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(br,{pageKey:w,initialName:qe.name,initialPath:qe.path,onFieldChange:Is})}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>I(!0),children:n.jsx(yo,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(yt,{children:[n.jsx(_t,{asChild:!0,children:n.jsx(Qe,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>N&&w?N(w):xe(!0),children:n.jsx(_o,{size:14})})}),n.jsx(jt,{side:"bottom",children:i("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(Hn,{onClick:Nn})]})}),U?n.jsx(Yt,{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&&w?n.jsx($o,{rawSeo:nn,innerSeo:bn,defaultResolveType:Ms,seoSchema:Ks,activeResolveType:sn,seoTypeOptions:As,formResetKey:He,siteDefaultSeo:Ls,onBreadcrumbChange:ke,onPersistRaw:ya,onInnerChange:xa,onClearForm:_a,onBumpFormKey:ja}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})}):zt?n.jsxs(Yt,{viewportRef:Ae,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&bt.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(Ya,{listKey:`${w??""}:${v??""}`,variants:bt.map((t,s)=>({index:s,label:t.label})),selectedIndex:ln,onSelect:Ys,onRename:ie,onDuplicate:Qs,onDelete:Js,onRemoveAll:Zs,onReorder:Xs,onAdd:()=>rn()}),ft&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Gn,{currentRt:Ue??"",currentLabel:Ut($t?.rule,r??{},lt,l??void 0),currentGlobalKey:Pt($t?.rule,r??{},l??void 0)??void 0,matchers:It,globals:jn,onSelect:ra,onSelectGlobal:la,schema:da,formValue:ye,onChange:ia,formKey:`${v??"none"}:${ln}:${Ue??""}`,formWrapperClassName:"pt-1",meta:l??void 0,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})]})]}),n.jsx(zn,{activeSchema:an,formValue:re,formResetKey:Se,onFormChange:yn,onBreadcrumbChange:O,breadcrumbPath:ee,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})]}):we?n.jsx(Yt,{viewportRef:Ae,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(zn,{activeSchema:an,formValue:re,formResetKey:Se,onFormChange:yn,onBreadcrumbChange:O,breadcrumbPath:ee,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:l,decofile:r,onSaveReferencedBlock:Kt,sandbox:Ot})}):n.jsxs(Yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Bt&&w&&n.jsx(fr,{listKey:w,variants:ze,activeIndex:Ke,decofile:r??{},meta:l,matchers:It,onSelect:pa,onReorder:ga,onRename:oe,onDuplicate:va,onDelete:ha,onAdd:Nn}),Bt&&J!==null&&n.jsxs("div",{className:Oe("px-3 border-b",fe?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>De(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":fe,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),fe?n.jsx(jo,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(bo,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),fe&&n.jsx("div",{className:Oe("space-y-3",Nt&&"pointer-events-none opacity-50"),children:n.jsx(Gn,{currentRt:J,currentLabel:Ut(ut?.rule,r??{},lt,l??void 0),currentGlobalKey:Pt(ut?.rule,r??{},l??void 0)??void 0,matchers:It,globals:jn,onSelect:sa,onSelectGlobal:oa,schema:na,formValue:me,onChange:aa,formKey:`${Ke}:${J??""}`,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(ar,{listKey:`${w??""}-${Ke}`,rawSections:q,sections:Be,meta:l,selectedIndex:v,onSelect:Os,onReorder:$s,onDelete:zs,onDuplicate:Hs,onMakeReusable:ae,onToggleHidden:Gs,onToggleLazy:Ws,onAddVariant:rn,onDetach:Us,onAddSection:()=>de(!0),canAddSection:ta})})]}),n.jsx(Ja,{open:se!==null,onOpenChange:t=>{t||ae(null)},defaultBlockId:se!==null?dn(Be[se]?.label??""):"",isPending:Re.isPending,onSubmit:ea}),f&&n.jsx(Go,{open:Ee,onOpenChange:de,meta:l,decofile:r,previewBaseUrl:f,onSelect:qs}),pe&&w&&r&&n.jsx(Qa,{open:pe,onOpenChange:xe,pageKey:w,decofile:r}),ce!==null&&n.jsx(In,{open:!0,initialName:wt(ze[ce]?.rule,r??{},l??void 0)?Ut(ze[ce]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Mt(ze[ce]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await ba(ce,t)},onOpenChange:t=>{!t&&!Nt&&oe(null)}}),ue!==null&&n.jsx(In,{open:!0,initialName:wt(bt[ue]?.rule,r??{},l??void 0)?Ut(bt[ue]?.rule,r??{},lt,l??void 0):"",autoLabel:lt(Mt(bt[ue]?.rule,r??{},l??void 0)),isPending:Nt,onSubmit:async t=>{await Sa(ue,t)},onOpenChange:t=>{!t&&!Nt&&ie(null)}})]})}export{sc as SectionsEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C4k0Z_HX.js","assets/index-CDVDDq-f.js","assets/index-DolLSrq-.css","assets/Tool02-CxsMcXPT.js","assets/CheckCircle-rfFj3mw6.js","assets/Settings02-DYW1mX49.js","assets/use-mcp-client-hJ7mIAn7.js","assets/auth-DXcmzYfn.js","assets/useInfiniteQuery-Zg7SxnJM.js","assets/use-infinite-scroll-BIlUj38g.js","assets/studio-tools-D0fMLm7V.js","assets/badge-BU_GpRr8.js","assets/input-BPZ-HKZz.js","assets/dropdown-menu-DZWhr_Tz.js","assets/Check-nahPrn_g.js","assets/ChevronRight-BvMOZXfz.js","assets/DotsVertical-K0_g-N6u.js","assets/table-D3dfbLpK.js","assets/toggle-group-B4VY0SSQ.js","assets/use-view-mode-DOmgvnBn.js","assets/use-mobile-xN7Y8sSl.js","assets/FilterLines-BKyA8Gmq.js","assets/SearchMd-IkP83MGf.js","assets/dialog-CFJExuhc.js","assets/X-hsgbPDpq.js","assets/AlertCircle-prFf-HAX.js","assets/Upload01--Y1XksK-.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DH-0e1cN.js","assets/card-DhKftmLa.js","assets/Trash01-DyI62_iL.js","assets/label-pRSCuTCI.js","assets/select-D-4YvNXx.js","assets/tooltip-BGYjjWAN.js","assets/ChevronDown-Dwhqmid_.js","assets/ChevronUp-Bcn1yz7Y.js","assets/switch-DuM464dX.js","assets/textarea-CRxF7POO.js","assets/XCircle-_9tDw1o6.js","assets/checkbox-B1nLyHMp.js","assets/Eye-C3BeqH0m.js","assets/LinkExternal01-C_mjDJcz.js","assets/use-copy-BQ7oQGyC.js","assets/Copy01-zZwi30U0.js","assets/Key01-BsGhLTyq.js","assets/Plus-BHuwS8Yk.js","assets/mcp-oauth-D8jkuULq.js","assets/Play-B4w0_M-p.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-CDVDDq-f.js";import{R as u}from"./require-capability-_BYO4O0r.js";import"./use-capability--G-xF_Og.js";import"./access-gate-CHtUSEUX.js";import"./capability-load-error-Bq9xdFHM.js";const g=l.lazy(()=>p(()=>import("./registry-layout-C4k0Z_HX.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])));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-BIlUj38g.js";import{dX as i}from"./index-CDVDDq-f.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-BIlUj38g.js";import{dX as u,W as n}from"./index-CDVDDq-f.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};