decocms 3.109.0 → 3.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/client/assets/{AlertCircle-ByTXkYNI.js → AlertCircle-3a42Y32Q.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-CL9n-WDh.js → ArrowUpRight-kXfJCOtG.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-p0O3wB_Y.js → CheckCircle-n8jdawLU.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-DRuvsGxX.js → ChevronDown-G62nfa2N.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-B_yoXR4i.js → ChevronLeft-BFEbzxr2.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-Cepv8z09.js → ChevronRight-_-iVnMDM.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-B4RIEAN8.js → ChevronUp-CvLg0JD0.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-BFFxg8UG.js → DotsVertical-Cwultgek.js} +1 -1
  9. package/dist/client/assets/{Eye-Bo7-1RF1.js → Eye-DvWAO5gf.js} +1 -1
  10. package/dist/client/assets/{FilterLines-DsHV7fvW.js → FilterLines-BHkqBGr7.js} +1 -1
  11. package/dist/client/assets/{Globe01-Bezpb3Ky.js → Globe01-CDttDk96.js} +1 -1
  12. package/dist/client/assets/{Globe04-D2hdgzHN.js → Globe04-DB_Sdapa.js} +1 -1
  13. package/dist/client/assets/{HardDrive-BkUNrUlz.js → HardDrive-DMH3VLW5.js} +1 -1
  14. package/dist/client/assets/{Key01-D3DEaNZK.js → Key01-PPoquOD0.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-BhegPG-z.js → LayoutLeft-Ddkt9171.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-DOxfhY3w.js → LinkExternal01-CfgaruN6.js} +1 -1
  17. package/dist/client/assets/{Monitor01-XY8uqELa.js → Monitor01-DH6AP0w9.js} +1 -1
  18. package/dist/client/assets/{Palette-DYjuOwIi.js → Palette-FlQGtYwX.js} +1 -1
  19. package/dist/client/assets/{Play-HcwDsAmD.js → Play-ehXX0Q38.js} +1 -1
  20. package/dist/client/assets/{Plus-DGbYQT29.js → Plus-Dx_wxVWe.js} +1 -1
  21. package/dist/client/assets/{SearchLg-B-a8ssOn.js → SearchLg-C7qnbpDa.js} +1 -1
  22. package/dist/client/assets/{SearchMd-DdqVVqfH.js → SearchMd-BLh-9N8v.js} +1 -1
  23. package/dist/client/assets/{Settings02-DXB9q0iO.js → Settings02-DQ036CAG.js} +1 -1
  24. package/dist/client/assets/{Shield01-CT2F2VR2.js → Shield01-CjUxgjnh.js} +1 -1
  25. package/dist/client/assets/{Star01-RheQH995.js → Star01-BDb11yyu.js} +1 -1
  26. package/dist/client/assets/{Stars01-neUtYSmu.js → Stars01-VH93BVY_.js} +1 -1
  27. package/dist/client/assets/{Stars02-BCjErCQw.js → Stars02-jjLUIqwc.js} +1 -1
  28. package/dist/client/assets/{Sun-BIUxe_Po.js → Sun-BuMidyKX.js} +1 -1
  29. package/dist/client/assets/{SwitchHorizontal01-BCSu95F_.js → SwitchHorizontal01-3qBzKHi7.js} +1 -1
  30. package/dist/client/assets/{Tool01-CUGuq3hx.js → Tool01-D8z2EmLx.js} +1 -1
  31. package/dist/client/assets/{Trash01-C6IjS63F.js → Trash01-wsF4DycC.js} +1 -1
  32. package/dist/client/assets/{Upload01-C1fp_vNV.js → Upload01-Dq8q0rQz.js} +1 -1
  33. package/dist/client/assets/{User01-CHVyllbt.js → User01-Ddj-LeQV.js} +1 -1
  34. package/dist/client/assets/{Users01-B8kQ2xbG.js → Users01-DwZAeWye.js} +1 -1
  35. package/dist/client/assets/{Users03-C_NmkZGE.js → Users03-DnUEh8JP.js} +1 -1
  36. package/dist/client/assets/{X-Ct1DS1Iw.js → X-DRAd27QV.js} +1 -1
  37. package/dist/client/assets/{XCircle-B9_OLXTb.js → XCircle-DEac6B60.js} +1 -1
  38. package/dist/client/assets/{XClose-3hOkuPOL.js → XClose-DoitZjeT.js} +1 -1
  39. package/dist/client/assets/{Zap-B9WYRqZJ.js → Zap-BeCXSxio.js} +1 -1
  40. package/dist/client/assets/{ZapSquare-CwqvGdec.js → ZapSquare-CxU3wnk2.js} +1 -1
  41. package/dist/client/assets/{ZoomOut-9_3XTXkT.js → ZoomOut-CXIIR5Xs.js} +1 -1
  42. package/dist/client/assets/{access-gate-CgXbiECq.js → access-gate-dSU8i6d5.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-MZ_EDgox.js → add-section-modal-pvZF0M9Y.js} +1 -1
  44. package/dist/client/assets/{agent-icon-DbfWF8aS.js → agent-icon-z9a7P-VJ.js} +1 -1
  45. package/dist/client/assets/{agents-list-49XIQVqz.js → agents-list-nY8NLyGz.js} +1 -1
  46. package/dist/client/assets/{ai-providers-D3o8GfQk.js → ai-providers-Dn_-maPJ.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-iFQJsxnA.js → alert-dialog-6mhzPWM-.js} +1 -1
  48. package/dist/client/assets/{alert-Dqz-4n4y.js → alert-eW0A0Ad6.js} +1 -1
  49. package/dist/client/assets/{app-editor-Bcvm45uJ.js → app-editor-C-SvUqpt.js} +1 -1
  50. package/dist/client/assets/{auth-9yXjZraX.js → auth-DI4UdzcA.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-DZap-_Ic.js → auth-catchall-CrPnwWxI.js} +1 -1
  52. package/dist/client/assets/{auth-entry-BdCiqBMy.js → auth-entry-CUC-1yt-.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-Dirm-xKL.js → auth-split-layout-Dp-cvbwA.js} +1 -1
  54. package/dist/client/assets/{authenticate-and-persist-oauth-DyAyQAmh.js → authenticate-and-persist-oauth-DFUhqBKz.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-f1279Y0k.js → automation-list-row-CsXsL2m3.js} +1 -1
  56. package/dist/client/assets/{automation-runs-B3DiZ3Tr.js → automation-runs-FRZz1Jxo.js} +1 -1
  57. package/dist/client/assets/{automations-CZMUHd8h.js → automations-D-kCfyB-.js} +1 -1
  58. package/dist/client/assets/{avatar-Du-WMTON.js → avatar-B1XYxCEI.js} +1 -1
  59. package/dist/client/assets/{badge-vPySVXPf.js → badge-BENqSIMW.js} +1 -1
  60. package/dist/client/assets/{block-document-CDbxWna3.js → block-document-D447TgwM.js} +1 -1
  61. package/dist/client/assets/{brand-context-DF1u1XAA.js → brand-context-5lPcZBdC.js} +1 -1
  62. package/dist/client/assets/{buckets-BHi3KCLA.js → buckets-Duo7UnZq.js} +1 -1
  63. package/dist/client/assets/{bulk-category-panel-c25cch3x.js → bulk-category-panel-CsLa0pfY.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-R_U0MZpN.js → capability-load-error-BbpMI8qO.js} +1 -1
  65. package/dist/client/assets/{card-DY_MHU46.js → card-cvfFGOFn.js} +1 -1
  66. package/dist/client/assets/{category-editor-Wb2Vpif9.js → category-editor-CvGgeomu.js} +1 -1
  67. package/dist/client/assets/{chat-context-_fclfdYm.js → chat-context-BYQB5zQ3.js} +1 -1
  68. package/dist/client/assets/{checkbox-AQTpliB1.js → checkbox-CExBS06F.js} +1 -1
  69. package/dist/client/assets/{cli-auth-success-BcPmokPO.js → cli-auth-success-B1qAPb3J.js} +1 -1
  70. package/dist/client/assets/{collection-detail-DBKCkbpA.js → collection-detail-CsIeWL-Q.js} +1 -1
  71. package/dist/client/assets/{collection-display-button-BSpr_buk.js → collection-display-button-CfHHbXGO.js} +1 -1
  72. package/dist/client/assets/{collection-search-DX9gHVQL.js → collection-search-VqRze0Jz.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-CF8CdOrB.js → collection-tabs-BPPqRvP7.js} +1 -1
  74. package/dist/client/assets/{command-B3IYAlxC.js → command-C2FYWVqe.js} +1 -1
  75. package/dist/client/assets/{commerce-onboarding-BDSmR88W.js → commerce-onboarding-pQ4pxRKH.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-D0T3_ZVN.js → connect-desktop-dialog-BCCJMJVg.js} +1 -1
  77. package/dist/client/assets/{connection-card-B58bof-I.js → connection-card-DxDSEKb0.js} +1 -1
  78. package/dist/client/assets/{connection-detail-DnnHcJZU.js → connection-detail-3-BysWH5.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-CnS4SROV.js → connection-form-helpers-Bfw04B7m.js} +1 -1
  80. package/dist/client/assets/{connections-0x8vuulY.js → connections-BQhJ97tw.js} +1 -1
  81. package/dist/client/assets/{context-menu-J8Xrq6FF.js → context-menu-DD5eZv-o.js} +1 -1
  82. package/dist/client/assets/{decopilot-B4m6jb6c.js → decopilot-Dr8wUhH8.js} +1 -1
  83. package/dist/client/assets/{decopilot-sse-pool-B-bUekW0.js → decopilot-sse-pool-D0AHvthA.js} +1 -1
  84. package/dist/client/assets/{dialog-BJ02tcBq.js → dialog-DI9uZOw1.js} +1 -1
  85. package/dist/client/assets/{domain-settings-CKmKvsJ7.js → domain-settings-DldUFjmA.js} +1 -1
  86. package/dist/client/assets/{drawer-DPe1ut4R.js → drawer-BpieeJCx.js} +1 -1
  87. package/dist/client/assets/{dropdown-menu-Byix_6pc.js → dropdown-menu-DXo7FbtM.js} +1 -1
  88. package/dist/client/assets/{empty-state-DyaJkwvA.js → empty-state-DW4CjYnI.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-DuZ3Dejy.js → extract-connection-data-CWyRtB18.js} +1 -1
  90. package/dist/client/assets/{file-explorer-CNBKgyqq.js → file-explorer-CRJd0jPm.js} +1 -1
  91. package/dist/client/assets/{file-type-icon-BEEcT8Af.js → file-type-icon-r28WvKg7.js} +1 -1
  92. package/dist/client/assets/{files-kKGnWQCo.js → files-C8-d4s_6.js} +1 -1
  93. package/dist/client/assets/{form-CX-RAYCX.js → form-Bz2znigu.js} +1 -1
  94. package/dist/client/assets/{general-Bcw588Pj.js → general-DgTxonnC.js} +1 -1
  95. package/dist/client/assets/{github-repo-picker-oROJDNqA.js → github-repo-picker-8V-SSku2.js} +1 -1
  96. package/dist/client/assets/{hooks-CRLFC8sB.js → hooks-E0hrfxwb.js} +1 -1
  97. package/dist/client/assets/{import-from-deco-dialog-lZYACG3R.js → import-from-deco-dialog-B84yppT8.js} +1 -1
  98. package/dist/client/assets/{index-CfOjCWn4.js → index-AuYmUEf7.js} +1 -1
  99. package/dist/client/assets/{index-7EkiStPn.js → index-B0e3q3tq.js} +1 -1
  100. package/dist/client/assets/{index-2B7-drxg.js → index-B2gsdQaf.js} +1 -1
  101. package/dist/client/assets/{index-BGKmLxz1.js → index-B6lhx2Nx.js} +1 -1
  102. package/dist/client/assets/{index-QAeYiuQ2.js → index-BCtvMzkJ.js} +1 -1
  103. package/dist/client/assets/{index-CB2wkPWa.js → index-BHCX-9ZH.js} +1 -1
  104. package/dist/client/assets/{index-mTBM5n68.js → index-CT2vaQmC.js} +1 -1
  105. package/dist/client/assets/{index-DSfcfP5-.js → index-Cer6DaC0.js} +6 -6
  106. package/dist/client/assets/index-D5onFusR.css +1 -0
  107. package/dist/client/assets/{index-D2RQBpeW.js → index-DfC-bGLv.js} +1 -1
  108. package/dist/client/assets/{index-BHkBXhV0.js → index-NHU49YBK.js} +3 -3
  109. package/dist/client/assets/{index-CiVn05Iz.js → index-YA3tOhz8.js} +1 -1
  110. package/dist/client/assets/{index-DQ93_JaH.js → index-cH88pHf5.js} +1 -1
  111. package/dist/client/assets/{index-CxEMW1N7.js → index-nEYHKdqS.js} +1 -1
  112. package/dist/client/assets/{index-redirect-CoJ7MKNw.js → index-redirect-o4wKabTo.js} +1 -1
  113. package/dist/client/assets/{index-0tLTtmwB.js → index-tdWeLBAc.js} +1 -1
  114. package/dist/client/assets/{input-Bu2wOv0I.js → input-BM2AMR43.js} +1 -1
  115. package/dist/client/assets/{integration-icon-CFb063uO.js → integration-icon-B5YbyPfI.js} +1 -1
  116. package/dist/client/assets/{label-BTIw2INj.js → label-D5BdX0dr.js} +1 -1
  117. package/dist/client/assets/{login-BHR_96ri.js → login-D3BUvM2g.js} +1 -1
  118. package/dist/client/assets/{mcp-oauth-BgpoWtrX.js → mcp-oauth-CELJ6lWl.js} +1 -1
  119. package/dist/client/assets/{members-Cn8-RhnY.js → members-BR4dIeq1.js} +1 -1
  120. package/dist/client/assets/{monaco-editor-C_7lEEIk.js → monaco-editor-jmD3XQpJ.js} +1 -1
  121. package/dist/client/assets/{monitoring-stats-row-BM7_cUGX.js → monitoring-stats-row-_Kz_Cagz.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-DIAnuAim.js → oauth-callback-0EduvBqB.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-ai-provider-cPjqSqya.js → oauth-callback-ai-provider-Cw0JfGXH.js} +1 -1
  124. package/dist/client/assets/{onboarding-CElpynNs.js → onboarding-FtnThbkI.js} +1 -1
  125. package/dist/client/assets/{org-install-CRlIEgIV.js → org-install-CQkZOnCg.js} +1 -1
  126. package/dist/client/assets/{org-layout-CL32pGic.js → org-layout-B4ew0nrf.js} +1 -1
  127. package/dist/client/assets/{organization-choice-J_TihfbS.js → organization-choice-DOuEChRE.js} +1 -1
  128. package/dist/client/assets/{page-seo-form-DBvGQjZP.js → page-seo-form-CmDnFXj0.js} +1 -1
  129. package/dist/client/assets/page-seo-sheet-gHrDU_lX.js +1 -0
  130. package/dist/client/assets/{popover-pSrKZc6j.js → popover-CgDHu-zS.js} +1 -1
  131. package/dist/client/assets/{post-editor-BSN5fmHu.js → post-editor-qeX4BlSI.js} +1 -1
  132. package/dist/client/assets/{preview-dialog-Ce9BBUBn.js → preview-dialog-D5E4FgCw.js} +1 -1
  133. package/dist/client/assets/{primitives-B2II6G8J.js → primitives-DzrgzW9n.js} +1 -1
  134. package/dist/client/assets/{profile-BEkdw1X4.js → profile-Czu4XqTy.js} +1 -1
  135. package/dist/client/assets/project-app-view-DN3elPYd.js +1 -0
  136. package/dist/client/assets/record-editor-BH8xIS6B.js +1 -0
  137. package/dist/client/assets/registry-BZrOa-jA.js +2 -0
  138. package/dist/client/assets/{registry-layout-Dq-MrEnN.js → registry-layout-DRn7mFJE.js} +1 -1
  139. package/dist/client/assets/{require-capability-CeQNVfO-.js → require-capability-CvAULB3o.js} +1 -1
  140. package/dist/client/assets/{required-auth-layout-C9PH_rT6.js → required-auth-layout-CVZjAF6p.js} +1 -1
  141. package/dist/client/assets/{reset-password-BPszdTZq.js → reset-password-GiIibj_X.js} +1 -1
  142. package/dist/client/assets/{roles-D_zrTkro.js → roles-25LF7sLR.js} +1 -1
  143. package/dist/client/assets/{scroll-area-DtIUkwvE.js → scroll-area-DFJYrpdW.js} +1 -1
  144. package/dist/client/assets/{search-input-nqbG7oml.js → search-input-DMv2zQbT.js} +1 -1
  145. package/dist/client/assets/{secrets-BSJ_dca9.js → secrets-EJqX3Y8_.js} +1 -1
  146. package/dist/client/assets/sections-editor-DpUaA-UK.js +2 -0
  147. package/dist/client/assets/{select-B3rcyOl9.js → select-DTXnEmNM.js} +1 -1
  148. package/dist/client/assets/{select-model-DRyo275c.js → select-model-D-GnzJTk.js} +1 -1
  149. package/dist/client/assets/{seo-editor-IdwA_Pqr.js → seo-editor-aNxCjIBb.js} +1 -1
  150. package/dist/client/assets/{settings-layout-D6QOzZYd.js → settings-layout-zuxw_LPF.js} +1 -1
  151. package/dist/client/assets/{settings-section-DDqq7Zua.js → settings-section-C05qMf5J.js} +1 -1
  152. package/dist/client/assets/{sheet-CIXBrgbr.js → sheet-Cm9vy-is.js} +1 -1
  153. package/dist/client/assets/{shell-controls-C57HJ_F4.js → shell-controls-BJYHrPZL.js} +1 -1
  154. package/dist/client/assets/{shell-layout-DDhAtCDL.js → shell-layout-B3LSdloo.js} +1 -1
  155. package/dist/client/assets/{shell-route-loading-CF72Id57.js → shell-route-loading-BHxQVa3P.js} +1 -1
  156. package/dist/client/assets/{sidebar-D-Q_IsJd.js → sidebar-CUCRALlI.js} +1 -1
  157. package/dist/client/assets/{skeleton-BzYGuvDX.js → skeleton-Dhj_RMRP.js} +1 -1
  158. package/dist/client/assets/{sortable.esm-DlvjRguW.js → sortable.esm-D8Xq7o-p.js} +2 -2
  159. package/dist/client/assets/{sso-DfsY2Z-S.js → sso-COCP_Ig_.js} +1 -1
  160. package/dist/client/assets/{store-DRJmawh3.js → store-DNNf9CWj.js} +1 -1
  161. package/dist/client/assets/store-registry-DKlw16c3.js +2 -0
  162. package/dist/client/assets/{studio-tools-D0e93l39.js → studio-tools-B3ETtzpq.js} +1 -1
  163. package/dist/client/assets/{switch-DavcV3JF.js → switch-yQ4MeBWb.js} +1 -1
  164. package/dist/client/assets/{table-EZy9WPu1.js → table-FMe6hb4W.js} +1 -1
  165. package/dist/client/assets/{tabs-ItGZsFFe.js → tabs-ByKhbrL3.js} +1 -1
  166. package/dist/client/assets/{task-status-ItX8X7G2.js → task-status-CKBnAgo0.js} +1 -1
  167. package/dist/client/assets/{textarea-jURA3g-f.js → textarea-C2v8p5Q_.js} +1 -1
  168. package/dist/client/assets/{toggle-group-DDhKVine.js → toggle-group-DRPAcqSk.js} +1 -1
  169. package/dist/client/assets/{toolbar-Dp0IpFuJ.js → toolbar-BHV_OeGM.js} +1 -1
  170. package/dist/client/assets/{tools-list-BWEiH9XH.js → tools-list-DRrZln_E.js} +1 -1
  171. package/dist/client/assets/{tooltip-DZabSBoT.js → tooltip-DNOJd4mB.js} +1 -1
  172. package/dist/client/assets/{types-dii4poB0.js → types-D8ya3q3L.js} +1 -1
  173. package/dist/client/assets/{use-ai-providers-FXpeT4l1.js → use-ai-providers-CNL3O4hK.js} +1 -1
  174. package/dist/client/assets/{use-automations-DhY2_UKp.js → use-automations-Cb4DxEgv.js} +1 -1
  175. package/dist/client/assets/{use-capability-DUUcgzLu.js → use-capability-Dok_Iq_h.js} +1 -1
  176. package/dist/client/assets/{use-clock-tick-LVSHr5RL.js → use-clock-tick-BHfy0ujs.js} +1 -1
  177. package/dist/client/assets/{use-collections-BnqjBLvA.js → use-collections-D-agNER0.js} +1 -1
  178. package/dist/client/assets/{use-connection-BxMOpR7v.js → use-connection-D5Yn6X1k.js} +1 -1
  179. package/dist/client/assets/{use-copy-jr-NBNeX.js → use-copy-BYD2opl9.js} +1 -1
  180. package/dist/client/assets/{use-create-virtual-mcp-DTcp2RkL.js → use-create-virtual-mcp-D6uaYgOg.js} +1 -1
  181. package/dist/client/assets/{use-debounced-autosave-CwC7gafx.js → use-debounced-autosave-EQlvKcut.js} +1 -1
  182. package/dist/client/assets/{use-debounced-value-BrPDK119.js → use-debounced-value-D2OoRIdo.js} +1 -1
  183. package/dist/client/assets/{use-decopilot-events-Bp7wu-e-.js → use-decopilot-events-T9FNzBJ-.js} +1 -1
  184. package/dist/client/assets/{use-delete-connection-BV1vDNfG.js → use-delete-connection-4o5XFeP8.js} +1 -1
  185. package/dist/client/assets/{use-file-configs-C12rfJvN.js → use-file-configs-kMgI5hml.js} +1 -1
  186. package/dist/client/assets/{use-infinite-scroll-CDO2Ct0t.js → use-infinite-scroll-Bv5wQ7Wg.js} +1 -1
  187. package/dist/client/assets/{use-join-requests-BquUgUR_.js → use-join-requests-C-31y_Ou.js} +1 -1
  188. package/dist/client/assets/{use-mcp-client-CKeOAxYW.js → use-mcp-client-BGOUlx-P.js} +1 -1
  189. package/dist/client/assets/{use-mcp-prompts-Cg-EvqQG.js → use-mcp-prompts-CRVg9LFk.js} +1 -1
  190. package/dist/client/assets/{use-mcp-tools-B0CkDXV_.js → use-mcp-tools-C8njypSm.js} +1 -1
  191. package/dist/client/assets/{use-members-CMO_Es9m.js → use-members-CEkjXPIb.js} +1 -1
  192. package/dist/client/assets/{use-mobile-a5Hrfmrd.js → use-mobile-BdtUaG2t.js} +1 -1
  193. package/dist/client/assets/{use-navigate-to-agent-uqBZEmLg.js → use-navigate-to-agent-0B1rE19_.js} +1 -1
  194. package/dist/client/assets/{use-org-auth-client-0Iw1_jcR.js → use-org-auth-client-BfIW_pQg.js} +1 -1
  195. package/dist/client/assets/{use-org-fs-BeubyX8z.js → use-org-fs-CXhVHffG.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-CUQYjyiq.js → use-org-sso-D4XCcGiP.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-CERws3lq.js → use-organization-roles-DvgOklyZ.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-OEEAHdZN.js → use-organization-settings-D3N4P1sO.js} +1 -1
  199. package/dist/client/assets/{use-registry-connections-u2KlLX6F.js → use-registry-connections-BerlzPAj.js} +1 -1
  200. package/dist/client/assets/{use-secrets-DShjbaPZ.js → use-secrets-BqevFm2t.js} +1 -1
  201. package/dist/client/assets/{use-status-sounds-BNzkDsWj.js → use-status-sounds-CjYwKkX8.js} +1 -1
  202. package/dist/client/assets/{use-view-mode-BVyyJ9PY.js → use-view-mode-BhlKr6oi.js} +1 -1
  203. package/dist/client/assets/{use-virtual-mcp-Cyl1De35.js → use-virtual-mcp-CE3-zMFE.js} +1 -1
  204. package/dist/client/assets/useInfiniteQuery-D57fVIoS.js +1 -0
  205. package/dist/client/assets/useSuspenseInfiniteQuery-DEsj7KSO.js +1 -0
  206. package/dist/client/assets/{useSuspenseQueries-BKKO2wzE.js → useSuspenseQueries-C75zNcpN.js} +1 -1
  207. package/dist/client/assets/{variant-calendar-DK2egew4.js → variant-calendar-OqJgLmkv.js} +1 -1
  208. package/dist/client/assets/{view-mode-toggle-C97FE6jH.js → view-mode-toggle-CFNxBK9n.js} +1 -1
  209. package/dist/client/index.html +2 -2
  210. package/dist/server/cli.js +1 -1
  211. package/package.json +1 -1
  212. package/dist/client/assets/index-GahqUWc8.css +0 -1
  213. package/dist/client/assets/page-seo-sheet-XHnORJDs.js +0 -1
  214. package/dist/client/assets/project-app-view-CnwfCIJ2.js +0 -1
  215. package/dist/client/assets/record-editor-EzOdM6ok.js +0 -1
  216. package/dist/client/assets/registry-Ci6TDk-z.js +0 -2
  217. package/dist/client/assets/sections-editor-B9qnTgiE.js +0 -2
  218. package/dist/client/assets/store-registry-CAzxZK7k.js +0 -2
  219. package/dist/client/assets/useInfiniteQuery-Fqo8ShVg.js +0 -1
  220. package/dist/client/assets/useSuspenseInfiniteQuery-DrJXy5Va.js +0 -1
@@ -1 +0,0 @@
1
- import{c as it,r as E,j as e,i as rt}from"./index-BHkBXhV0.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-CIXBrgbr.js";import{S as nt}from"./scroll-area-DtIUkwvE.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-DBvGQjZP.js";import{p as xt}from"./index-DSfcfP5-.js";import"./X-Ct1DS1Iw.js";import"./agent-icon-DbfWF8aS.js";import"./AlertCircle-ByTXkYNI.js";import"./Tool01-CUGuq3hx.js";import"./SwitchHorizontal01-BCSu95F_.js";import"./Settings02-DXB9q0iO.js";import"./XCircle-B9_OLXTb.js";import"./ArrowUpRight-CL9n-WDh.js";import"./ZapSquare-CwqvGdec.js";import"./Users03-C_NmkZGE.js";import"./CheckCircle-p0O3wB_Y.js";import"./ChevronUp-B4RIEAN8.js";import"./ChevronDown-DRuvsGxX.js";import"./ChevronLeft-B_yoXR4i.js";import"./ChevronRight-Cepv8z09.js";import"./DotsVertical-BFFxg8UG.js";import"./Stars02-BCjErCQw.js";import"./Eye-Bo7-1RF1.js";import"./ZoomOut-9_3XTXkT.js";import"./Globe01-Bezpb3Ky.js";import"./FilterLines-DsHV7fvW.js";import"./Star01-RheQH995.js";import"./Globe04-D2hdgzHN.js";import"./HardDrive-BkUNrUlz.js";import"./Key01-D3DEaNZK.js";import"./LayoutLeft-BhegPG-z.js";import"./LinkExternal01-DOxfhY3w.js";import"./Monitor01-XY8uqELa.js";import"./Sun-BIUxe_Po.js";import"./Palette-DYjuOwIi.js";import"./Play-HcwDsAmD.js";import"./Plus-DGbYQT29.js";import"./SearchLg-B-a8ssOn.js";import"./SearchMd-DdqVVqfH.js";import"./Shield01-CT2F2VR2.js";import"./Stars01-neUtYSmu.js";import"./Trash01-C6IjS63F.js";import"./Upload01-C1fp_vNV.js";import"./User01-CHVyllbt.js";import"./Users01-B8kQ2xbG.js";import"./XClose-3hOkuPOL.js";import"./Zap-B9WYRqZJ.js";import"./use-clock-tick-LVSHr5RL.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-jr-NBNeX.js";import"./tooltip-DZabSBoT.js";import"./file-type-icon-BEEcT8Af.js";import"./dialog-BJ02tcBq.js";import"./use-mobile-a5Hrfmrd.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-dii4poB0.js";import"./use-mcp-client-CKeOAxYW.js";import"./auth-9yXjZraX.js";import"./chat-context-_fclfdYm.js";import"./hooks-CRLFC8sB.js";import"./decopilot-sse-pool-B-bUekW0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Cyl1De35.js";import"./use-collections-BnqjBLvA.js";import"./use-ai-providers-FXpeT4l1.js";import"./studio-tools-D0e93l39.js";import"./use-decopilot-events-Bp7wu-e-.js";import"./use-organization-settings-OEEAHdZN.js";import"./shell-layout-DDhAtCDL.js";import"./avatar-Du-WMTON.js";import"./required-auth-layout-C9PH_rT6.js";import"./use-org-sso-CUQYjyiq.js";import"./integration-icon-CFb063uO.js";import"./use-navigate-to-agent-uqBZEmLg.js";import"./use-connection-BxMOpR7v.js";import"./use-mcp-prompts-Cg-EvqQG.js";import"./form-CX-RAYCX.js";import"./label-BTIw2INj.js";import"./input-Bu2wOv0I.js";import"./select-B3rcyOl9.js";import"./switch-DavcV3JF.js";import"./index-CB2wkPWa.js";import"./drawer-DPe1ut4R.js";import"./collection-search-DX9gHVQL.js";import"./tabs-ItGZsFFe.js";import"./toggle-group-DDhKVine.js";import"./sortable.esm-DlvjRguW.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B58bof-I.js";import"./use-registry-connections-u2KlLX6F.js";import"./useInfiniteQuery-Fqo8ShVg.js";import"./use-infinite-scroll-CDO2Ct0t.js";import"./extract-connection-data-DuZ3Dejy.js";import"./card-DY_MHU46.js";import"./collection-tabs-CF8CdOrB.js";import"./badge-vPySVXPf.js";import"./textarea-jURA3g-f.js";import"./connection-form-helpers-CnS4SROV.js";import"./authenticate-and-persist-oauth-DyAyQAmh.js";import"./mcp-oauth-BgpoWtrX.js";import"./useSuspenseInfiniteQuery-DrJXy5Va.js";import"./connect-desktop-dialog-D0T3_ZVN.js";import"./decopilot-B4m6jb6c.js";import"./checkbox-AQTpliB1.js";import"./skeleton-BzYGuvDX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DDqq7Zua.js";import"./popover-pSrKZc6j.js";import"./command-B3IYAlxC.js";import"./index-BGKmLxz1.js";import"./use-org-fs-BeubyX8z.js";import"./dropdown-menu-Byix_6pc.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BNzkDsWj.js";import"./empty-state-DyaJkwvA.js";import"./toolbar-Dp0IpFuJ.js";import"./preview-dialog-Ce9BBUBn.js";import"./index-D2RQBpeW.js";import"./use-mcp-tools-B0CkDXV_.js";import"./use-capability-DUUcgzLu.js";import"./shell-route-loading-CF72Id57.js";import"./tools-list-BWEiH9XH.js";import"./alert-dialog-iFQJsxnA.js";import"./use-debounced-autosave-CwC7gafx.js";import"./index-mTBM5n68.js";import"./sidebar-D-Q_IsJd.js";import"./search-input-nqbG7oml.js";import"./github-repo-picker-oROJDNqA.js";import"./use-debounced-value-BrPDK119.js";import"./use-secrets-DShjbaPZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-C97FE6jH.js";import"./automation-runs-B3DiZ3Tr.js";import"./table-EZy9WPu1.js";import"./use-members-CMO_Es9m.js";import"./use-org-auth-client-0Iw1_jcR.js";import"./task-status-ItX8X7G2.js";import"./use-automations-DhY2_UKp.js";import"./use-file-configs-C12rfJvN.js";import"./monaco-editor-C_7lEEIk.js";import"./select-model-DRyo275c.js";import"./automation-list-row-f1279Y0k.js";function mi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{mi as SeoSheet};
@@ -1 +0,0 @@
1
- import{c as $,D as H,j as A}from"./index-BHkBXhV0.js";import{l as L,g as E,s as y}from"./scroll-area-DtIUkwvE.js";import{p as O,u as k}from"./use-mcp-client-CKeOAxYW.js";import{b as q,c as B}from"./use-mcp-tools-B0CkDXV_.js";import{u as Y}from"./index-DSfcfP5-.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-dii4poB0.js";import{u as z,b as F}from"./chat-context-_fclfdYm.js";import{b as J}from"./shell-layout-DDhAtCDL.js";import"./agent-icon-DbfWF8aS.js";import"./AlertCircle-ByTXkYNI.js";import"./Tool01-CUGuq3hx.js";import"./SwitchHorizontal01-BCSu95F_.js";import"./Settings02-DXB9q0iO.js";import"./XCircle-B9_OLXTb.js";import"./ArrowUpRight-CL9n-WDh.js";import"./ZapSquare-CwqvGdec.js";import"./Users03-C_NmkZGE.js";import"./CheckCircle-p0O3wB_Y.js";import"./ChevronUp-B4RIEAN8.js";import"./ChevronDown-DRuvsGxX.js";import"./ChevronLeft-B_yoXR4i.js";import"./ChevronRight-Cepv8z09.js";import"./DotsVertical-BFFxg8UG.js";import"./Stars02-BCjErCQw.js";import"./Eye-Bo7-1RF1.js";import"./ZoomOut-9_3XTXkT.js";import"./Globe01-Bezpb3Ky.js";import"./FilterLines-DsHV7fvW.js";import"./Star01-RheQH995.js";import"./Globe04-D2hdgzHN.js";import"./HardDrive-BkUNrUlz.js";import"./Key01-D3DEaNZK.js";import"./LayoutLeft-BhegPG-z.js";import"./LinkExternal01-DOxfhY3w.js";import"./Monitor01-XY8uqELa.js";import"./Sun-BIUxe_Po.js";import"./Palette-DYjuOwIi.js";import"./Play-HcwDsAmD.js";import"./Plus-DGbYQT29.js";import"./SearchLg-B-a8ssOn.js";import"./SearchMd-DdqVVqfH.js";import"./Shield01-CT2F2VR2.js";import"./Stars01-neUtYSmu.js";import"./Trash01-C6IjS63F.js";import"./Upload01-C1fp_vNV.js";import"./User01-CHVyllbt.js";import"./Users01-B8kQ2xbG.js";import"./XClose-3hOkuPOL.js";import"./X-Ct1DS1Iw.js";import"./Zap-B9WYRqZJ.js";import"./use-clock-tick-LVSHr5RL.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-jr-NBNeX.js";import"./tooltip-DZabSBoT.js";import"./file-type-icon-BEEcT8Af.js";import"./dialog-BJ02tcBq.js";import"./use-mobile-a5Hrfmrd.js";import"./tab-id-BptcWVWa.js";import"./hooks-CRLFC8sB.js";import"./decopilot-sse-pool-B-bUekW0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-D0e93l39.js";import"./sheet-CIXBrgbr.js";import"./integration-icon-CFb063uO.js";import"./use-virtual-mcp-Cyl1De35.js";import"./use-collections-BnqjBLvA.js";import"./use-navigate-to-agent-uqBZEmLg.js";import"./use-connection-BxMOpR7v.js";import"./use-mcp-prompts-Cg-EvqQG.js";import"./form-CX-RAYCX.js";import"./label-BTIw2INj.js";import"./input-Bu2wOv0I.js";import"./select-B3rcyOl9.js";import"./auth-9yXjZraX.js";import"./index-CB2wkPWa.js";import"./drawer-DPe1ut4R.js";import"./collection-search-DX9gHVQL.js";import"./tabs-ItGZsFFe.js";import"./toggle-group-DDhKVine.js";import"./sortable.esm-DlvjRguW.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B58bof-I.js";import"./use-registry-connections-u2KlLX6F.js";import"./use-organization-settings-OEEAHdZN.js";import"./useInfiniteQuery-Fqo8ShVg.js";import"./use-infinite-scroll-CDO2Ct0t.js";import"./extract-connection-data-DuZ3Dejy.js";import"./card-DY_MHU46.js";import"./collection-tabs-CF8CdOrB.js";import"./badge-vPySVXPf.js";import"./textarea-jURA3g-f.js";import"./connection-form-helpers-CnS4SROV.js";import"./authenticate-and-persist-oauth-DyAyQAmh.js";import"./mcp-oauth-BgpoWtrX.js";import"./useSuspenseInfiniteQuery-DrJXy5Va.js";import"./use-ai-providers-FXpeT4l1.js";import"./connect-desktop-dialog-D0T3_ZVN.js";import"./decopilot-B4m6jb6c.js";import"./checkbox-AQTpliB1.js";import"./skeleton-BzYGuvDX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Du-WMTON.js";import"./settings-section-DDqq7Zua.js";import"./popover-pSrKZc6j.js";import"./command-B3IYAlxC.js";import"./index-BGKmLxz1.js";import"./use-org-fs-BeubyX8z.js";import"./dropdown-menu-Byix_6pc.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BNzkDsWj.js";import"./use-decopilot-events-Bp7wu-e-.js";import"./empty-state-DyaJkwvA.js";import"./toolbar-Dp0IpFuJ.js";import"./preview-dialog-Ce9BBUBn.js";import"./index-D2RQBpeW.js";import"./use-capability-DUUcgzLu.js";import"./shell-route-loading-CF72Id57.js";import"./tools-list-BWEiH9XH.js";import"./alert-dialog-iFQJsxnA.js";import"./switch-DavcV3JF.js";import"./use-debounced-autosave-CwC7gafx.js";import"./index-mTBM5n68.js";import"./sidebar-D-Q_IsJd.js";import"./search-input-nqbG7oml.js";import"./github-repo-picker-oROJDNqA.js";import"./use-debounced-value-BrPDK119.js";import"./use-secrets-DShjbaPZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-C97FE6jH.js";import"./automation-runs-B3DiZ3Tr.js";import"./table-EZy9WPu1.js";import"./use-members-CMO_Es9m.js";import"./use-org-auth-client-0Iw1_jcR.js";import"./task-status-ItX8X7G2.js";import"./use-automations-DhY2_UKp.js";import"./use-file-configs-C12rfJvN.js";import"./monaco-editor-C_7lEEIk.js";import"./select-model-DRyo275c.js";import"./automation-list-row-f1279Y0k.js";import"./required-auth-layout-C9PH_rT6.js";import"./use-org-sso-CUQYjyiq.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function we(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{we as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as S,j as r}from"./index-BHkBXhV0.js";import{I as T}from"./input-Bu2wOv0I.js";import{L as C}from"./label-BTIw2INj.js";import{T as L}from"./textarea-jURA3g-f.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-DSfcfP5-.js";import{u as M,s as P}from"./primitives-B2II6G8J.js";import"./index-CB2wkPWa.js";import"./chat-context-_fclfdYm.js";import"./hooks-CRLFC8sB.js";import"./use-mcp-client-CKeOAxYW.js";import"./auth-9yXjZraX.js";import"./decopilot-sse-pool-B-bUekW0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Cyl1De35.js";import"./use-collections-BnqjBLvA.js";import"./use-ai-providers-FXpeT4l1.js";import"./studio-tools-D0e93l39.js";import"./use-decopilot-events-Bp7wu-e-.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-OEEAHdZN.js";import"./scroll-area-DtIUkwvE.js";import"./agent-icon-DbfWF8aS.js";import"./AlertCircle-ByTXkYNI.js";import"./Tool01-CUGuq3hx.js";import"./SwitchHorizontal01-BCSu95F_.js";import"./Settings02-DXB9q0iO.js";import"./XCircle-B9_OLXTb.js";import"./ArrowUpRight-CL9n-WDh.js";import"./ZapSquare-CwqvGdec.js";import"./Users03-C_NmkZGE.js";import"./CheckCircle-p0O3wB_Y.js";import"./ChevronUp-B4RIEAN8.js";import"./ChevronDown-DRuvsGxX.js";import"./ChevronLeft-B_yoXR4i.js";import"./ChevronRight-Cepv8z09.js";import"./DotsVertical-BFFxg8UG.js";import"./Stars02-BCjErCQw.js";import"./Eye-Bo7-1RF1.js";import"./ZoomOut-9_3XTXkT.js";import"./Globe01-Bezpb3Ky.js";import"./FilterLines-DsHV7fvW.js";import"./Star01-RheQH995.js";import"./Globe04-D2hdgzHN.js";import"./HardDrive-BkUNrUlz.js";import"./Key01-D3DEaNZK.js";import"./LayoutLeft-BhegPG-z.js";import"./LinkExternal01-DOxfhY3w.js";import"./Monitor01-XY8uqELa.js";import"./Sun-BIUxe_Po.js";import"./Palette-DYjuOwIi.js";import"./Play-HcwDsAmD.js";import"./Plus-DGbYQT29.js";import"./SearchLg-B-a8ssOn.js";import"./SearchMd-DdqVVqfH.js";import"./Shield01-CT2F2VR2.js";import"./Stars01-neUtYSmu.js";import"./Trash01-C6IjS63F.js";import"./Upload01-C1fp_vNV.js";import"./User01-CHVyllbt.js";import"./Users01-B8kQ2xbG.js";import"./XClose-3hOkuPOL.js";import"./X-Ct1DS1Iw.js";import"./Zap-B9WYRqZJ.js";import"./use-clock-tick-LVSHr5RL.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-jr-NBNeX.js";import"./tooltip-DZabSBoT.js";import"./file-type-icon-BEEcT8Af.js";import"./dialog-BJ02tcBq.js";import"./use-mobile-a5Hrfmrd.js";import"./content-blocks-o63cs2vh.js";import"./types-dii4poB0.js";import"./shell-layout-DDhAtCDL.js";import"./avatar-Du-WMTON.js";import"./required-auth-layout-C9PH_rT6.js";import"./use-org-sso-CUQYjyiq.js";import"./sheet-CIXBrgbr.js";import"./integration-icon-CFb063uO.js";import"./use-navigate-to-agent-uqBZEmLg.js";import"./use-connection-BxMOpR7v.js";import"./use-mcp-prompts-Cg-EvqQG.js";import"./form-CX-RAYCX.js";import"./select-B3rcyOl9.js";import"./drawer-DPe1ut4R.js";import"./collection-search-DX9gHVQL.js";import"./tabs-ItGZsFFe.js";import"./toggle-group-DDhKVine.js";import"./sortable.esm-DlvjRguW.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B58bof-I.js";import"./use-registry-connections-u2KlLX6F.js";import"./useInfiniteQuery-Fqo8ShVg.js";import"./use-infinite-scroll-CDO2Ct0t.js";import"./extract-connection-data-DuZ3Dejy.js";import"./card-DY_MHU46.js";import"./collection-tabs-CF8CdOrB.js";import"./badge-vPySVXPf.js";import"./connection-form-helpers-CnS4SROV.js";import"./authenticate-and-persist-oauth-DyAyQAmh.js";import"./mcp-oauth-BgpoWtrX.js";import"./useSuspenseInfiniteQuery-DrJXy5Va.js";import"./connect-desktop-dialog-D0T3_ZVN.js";import"./decopilot-B4m6jb6c.js";import"./checkbox-AQTpliB1.js";import"./skeleton-BzYGuvDX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DDqq7Zua.js";import"./popover-pSrKZc6j.js";import"./command-B3IYAlxC.js";import"./index-BGKmLxz1.js";import"./use-org-fs-BeubyX8z.js";import"./dropdown-menu-Byix_6pc.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BNzkDsWj.js";import"./empty-state-DyaJkwvA.js";import"./toolbar-Dp0IpFuJ.js";import"./preview-dialog-Ce9BBUBn.js";import"./index-D2RQBpeW.js";import"./use-mcp-tools-B0CkDXV_.js";import"./use-capability-DUUcgzLu.js";import"./shell-route-loading-CF72Id57.js";import"./tools-list-BWEiH9XH.js";import"./alert-dialog-iFQJsxnA.js";import"./switch-DavcV3JF.js";import"./use-debounced-autosave-CwC7gafx.js";import"./index-mTBM5n68.js";import"./sidebar-D-Q_IsJd.js";import"./search-input-nqbG7oml.js";import"./github-repo-picker-oROJDNqA.js";import"./use-debounced-value-BrPDK119.js";import"./use-secrets-DShjbaPZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-C97FE6jH.js";import"./automation-runs-B3DiZ3Tr.js";import"./table-EZy9WPu1.js";import"./use-members-CMO_Es9m.js";import"./use-org-auth-client-0Iw1_jcR.js";import"./task-status-ItX8X7G2.js";import"./use-automations-DhY2_UKp.js";import"./use-file-configs-C12rfJvN.js";import"./monaco-editor-C_7lEEIk.js";import"./select-model-DRyo275c.js";import"./automation-list-row-f1279Y0k.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function Nr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(D,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(K,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=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:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Nr as RecordEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Dq-MrEnN.js","assets/index-BHkBXhV0.js","assets/index-GahqUWc8.css","assets/XCircle-B9_OLXTb.js","assets/CheckCircle-p0O3wB_Y.js","assets/Settings02-DXB9q0iO.js","assets/use-mcp-client-CKeOAxYW.js","assets/auth-9yXjZraX.js","assets/useInfiniteQuery-Fqo8ShVg.js","assets/use-infinite-scroll-CDO2Ct0t.js","assets/studio-tools-D0e93l39.js","assets/badge-vPySVXPf.js","assets/input-Bu2wOv0I.js","assets/dropdown-menu-Byix_6pc.js","assets/ChevronUp-B4RIEAN8.js","assets/ChevronRight-Cepv8z09.js","assets/DotsVertical-BFFxg8UG.js","assets/table-EZy9WPu1.js","assets/toggle-group-DDhKVine.js","assets/use-view-mode-BVyyJ9PY.js","assets/use-mobile-a5Hrfmrd.js","assets/FilterLines-DsHV7fvW.js","assets/Globe01-Bezpb3Ky.js","assets/SearchMd-DdqVVqfH.js","assets/dialog-BJ02tcBq.js","assets/X-Ct1DS1Iw.js","assets/AlertCircle-ByTXkYNI.js","assets/Upload01-C1fp_vNV.js","assets/alert-dialog-iFQJsxnA.js","assets/card-DY_MHU46.js","assets/Trash01-C6IjS63F.js","assets/label-BTIw2INj.js","assets/select-B3rcyOl9.js","assets/tooltip-DZabSBoT.js","assets/ChevronDown-DRuvsGxX.js","assets/switch-DavcV3JF.js","assets/textarea-jURA3g-f.js","assets/checkbox-AQTpliB1.js","assets/Eye-Bo7-1RF1.js","assets/LinkExternal01-DOxfhY3w.js","assets/use-copy-jr-NBNeX.js","assets/Key01-D3DEaNZK.js","assets/Plus-DGbYQT29.js","assets/mcp-oauth-BgpoWtrX.js","assets/Play-HcwDsAmD.js"])))=>i.map(i=>d[i]);
2
- import{c as s,j as e,r as i,i as a,am as o}from"./index-BHkBXhV0.js";import{R as m}from"./require-capability-CeQNVfO-.js";import"./use-capability-DUUcgzLu.js";import"./access-gate-CgXbiECq.js";import"./capability-load-error-R_U0MZpN.js";const n=i.lazy(()=>o(()=>import("./registry-layout-Dq-MrEnN.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])));function f(){const r=s.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(i.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,r as k,l as Pe,j as n,B as Ye,i as Hn,m as ha,t as te,K as ga}from"./index-BHkBXhV0.js";import{r as va,a as Sa,s as ba,i as Un,c as ya,b as xa,G as _a,V as ja,d as ka,e as Rt,f as wa,g as Na,h as Ra,j as Da,k as Va,l as Ca,m as Ta,n as Pa,o as Aa,p as $t,q as Ot,t as Ma,v as ut,w as kt,x as Ea,y as Ka,z as Je,A as Cn,S as $a,M as Tn,B as wt,C as Bt,D as Oa,E as sn,P as Ba,F as et,H as bt,I as La,J as Fa,K as Ia,L as za,N as Ha,O as Ua,Q as dt,R as Ga,T as Wa,U as qa,W as Pn,X as Nt,Y as Ya,Z as Ja,_ as Qa,$ as Xa,a0 as Za,a1 as an,a2 as An,a3 as Mn,a4 as yt,a5 as Lt,a6 as En,a7 as er,a8 as tr,a9 as nr,aa as rn,ab as sr,ac as Gn,ad as Kn,ae as ar}from"./index-DSfcfP5-.js";import{t as rr}from"./ChevronDown-DRuvsGxX.js";import{n as or}from"./ChevronLeft-B_yoXR4i.js";import{i as Wn}from"./ChevronRight-Cepv8z09.js";import{n as ir}from"./ChevronUp-B4RIEAN8.js";import{L as ln,E as qn,X as Yn,l as lr,M as cr,N as ur}from"./agent-icon-DbfWF8aS.js";import{i as dr}from"./Globe01-Bezpb3Ky.js";import{S as Ft}from"./scroll-area-DtIUkwvE.js";import{T as mt,a as ft,b as pt}from"./tooltip-DZabSBoT.js";import{a as mr,c as fr,b as pr,D as hr,d as gr,e as vr}from"./dialog-BJ02tcBq.js";import{I as Sr}from"./input-Bu2wOv0I.js";import{s as br,a as Jn}from"./Eye-Bo7-1RF1.js";import{c as yr}from"./ZoomOut-9_3XTXkT.js";import{i as xr}from"./Settings02-DXB9q0iO.js";import{s as cn}from"./Plus-DGbYQT29.js";import{s as Qn}from"./Trash01-C6IjS63F.js";import{i as _r}from"./Zap-B9WYRqZJ.js";import{c as it,a as Xn,D as Zn,b as es,g as jr}from"./dropdown-menu-Byix_6pc.js";import{b as ts,c as It,K as ns,P as ss,e as as,C as rs,s as os,l as Dt,D as is,d as ls,S as cs,v as kr,k as us,p as wr}from"./sortable.esm-DlvjRguW.js";import{r as $n,u as Nr,d as Rr,a as Dr,i as Vr,f as Cr,P as Tr,b as Pr,S as Ar}from"./page-seo-form-DBvGQjZP.js";import{b as Mr}from"./Tool01-CUGuq3hx.js";import{A as Er}from"./add-section-modal-MZ_EDgox.js";import"./index-CB2wkPWa.js";import"./chat-context-_fclfdYm.js";import"./hooks-CRLFC8sB.js";import"./use-mcp-client-CKeOAxYW.js";import"./auth-9yXjZraX.js";import"./decopilot-sse-pool-B-bUekW0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Cyl1De35.js";import"./use-collections-BnqjBLvA.js";import"./use-ai-providers-FXpeT4l1.js";import"./studio-tools-D0e93l39.js";import"./use-decopilot-events-Bp7wu-e-.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-OEEAHdZN.js";import"./drawer-DPe1ut4R.js";import"./collection-search-DX9gHVQL.js";import"./SearchMd-DdqVVqfH.js";import"./use-mobile-a5Hrfmrd.js";import"./use-mcp-prompts-Cg-EvqQG.js";import"./X-Ct1DS1Iw.js";import"./shell-layout-DDhAtCDL.js";import"./avatar-Du-WMTON.js";import"./User01-CHVyllbt.js";import"./Users03-C_NmkZGE.js";import"./SearchLg-B-a8ssOn.js";import"./Stars02-BCjErCQw.js";import"./XClose-3hOkuPOL.js";import"./CheckCircle-p0O3wB_Y.js";import"./FilterLines-DsHV7fvW.js";import"./required-auth-layout-C9PH_rT6.js";import"./use-org-sso-CUQYjyiq.js";import"./SwitchHorizontal01-BCSu95F_.js";import"./ZapSquare-CwqvGdec.js";import"./Star01-RheQH995.js";import"./Upload01-C1fp_vNV.js";import"./AlertCircle-ByTXkYNI.js";import"./form-CX-RAYCX.js";import"./label-BTIw2INj.js";import"./select-B3rcyOl9.js";import"./XCircle-B9_OLXTb.js";import"./tabs-ItGZsFFe.js";import"./toggle-group-DDhKVine.js";import"./Monitor01-XY8uqELa.js";import"./connect-desktop-dialog-D0T3_ZVN.js";import"./decopilot-B4m6jb6c.js";import"./checkbox-AQTpliB1.js";import"./skeleton-BzYGuvDX.js";import"./Key01-D3DEaNZK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DDqq7Zua.js";import"./card-DY_MHU46.js";import"./ArrowUpRight-CL9n-WDh.js";import"./Stars01-neUtYSmu.js";import"./popover-pSrKZc6j.js";import"./command-B3IYAlxC.js";import"./index-BGKmLxz1.js";import"./useInfiniteQuery-Fqo8ShVg.js";import"./use-infinite-scroll-CDO2Ct0t.js";import"./use-org-fs-BeubyX8z.js";import"./question-004-sINsf4GQ.js";import"./integration-icon-CFb063uO.js";import"./use-status-sounds-BNzkDsWj.js";import"./empty-state-DyaJkwvA.js";import"./toolbar-Dp0IpFuJ.js";import"./preview-dialog-Ce9BBUBn.js";import"./LinkExternal01-DOxfhY3w.js";import"./index-D2RQBpeW.js";import"./file-type-icon-BEEcT8Af.js";import"./LayoutLeft-BhegPG-z.js";import"./use-connection-BxMOpR7v.js";import"./use-mcp-tools-B0CkDXV_.js";import"./types-dii4poB0.js";import"./use-capability-DUUcgzLu.js";import"./textarea-jURA3g-f.js";import"./shell-route-loading-CF72Id57.js";import"./extract-connection-data-DuZ3Dejy.js";import"./tools-list-BWEiH9XH.js";import"./mcp-oauth-BgpoWtrX.js";import"./badge-vPySVXPf.js";import"./connection-slug-eyAPH6o3.js";import"./alert-dialog-iFQJsxnA.js";import"./switch-DavcV3JF.js";import"./Play-HcwDsAmD.js";import"./use-debounced-autosave-CwC7gafx.js";import"./index-mTBM5n68.js";import"./sidebar-D-Q_IsJd.js";import"./sheet-CIXBrgbr.js";import"./search-input-nqbG7oml.js";import"./collection-tabs-CF8CdOrB.js";import"./github-repo-picker-oROJDNqA.js";import"./use-debounced-value-BrPDK119.js";import"./authenticate-and-persist-oauth-DyAyQAmh.js";import"./use-navigate-to-agent-uqBZEmLg.js";import"./Users01-B8kQ2xbG.js";import"./use-secrets-DShjbaPZ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./view-mode-toggle-C97FE6jH.js";import"./automation-runs-B3DiZ3Tr.js";import"./table-EZy9WPu1.js";import"./use-members-CMO_Es9m.js";import"./use-org-auth-client-0Iw1_jcR.js";import"./task-status-ItX8X7G2.js";import"./DotsVertical-BFFxg8UG.js";import"./use-automations-DhY2_UKp.js";import"./useSuspenseInfiniteQuery-DrJXy5Va.js";import"./use-file-configs-C12rfJvN.js";import"./monaco-editor-C_7lEEIk.js";import"./select-model-DRyo275c.js";import"./automation-list-row-f1279Y0k.js";import"./Globe04-D2hdgzHN.js";import"./HardDrive-BkUNrUlz.js";import"./Sun-BIUxe_Po.js";import"./Palette-DYjuOwIi.js";import"./Shield01-CT2F2VR2.js";import"./use-clock-tick-LVSHr5RL.js";import"./use-copy-jr-NBNeX.js";import"./content-blocks-o63cs2vh.js";import"./connection-card-B58bof-I.js";import"./use-registry-connections-u2KlLX6F.js";import"./connection-form-helpers-CnS4SROV.js";function Kr(f){return f.schema?.definitions??f.schema?.$defs??{}}function $r(f,e){const r=Kr(e),u=r[btoa(f)];if(!u)return;let d=typeof u.image=="string"?u.image:void 0;if(!d&&Array.isArray(u.allOf)){const g=u.allOf.find(y=>typeof y.$ref=="string")?.$ref;if(typeof g=="string"){const y=g.replace("#/definitions/",""),p=r[y];d=typeof p?.image=="string"?p.image:void 0}}if(d?.includes("{{{"))return d}function Or(f,e){if(!e)return;const r=va(f);if(!r)return;const u=$r(r.resolveType,e);if(!u)return;const d=Sa(u,r.data);if(d)return ba(d)}const Br="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",Lr="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(f){return Array.from({length:f},(e,r)=>({id:crypto.randomUUID(),index:r}))}function ds(f){return f.map((e,r)=>({...e,index:r}))}function Fr(f,e){if(e===f.length)return f;if(e<f.length)return ds(f.slice(0,e));const r=Array.from({length:e-f.length},(u,d)=>({id:crypto.randomUUID(),index:f.length+d}));return[...f,...r]}function ms(f){const e=Ge.c(20),{section:r,raw:u,meta:d}=f,g=r.isSavedBlock===!0,y=r.isMultivariate===!0;let p;e[0]!==d||e[1]!==u?(p=u&&d?Or(u,d):void 0,e[0]=d,e[1]=u,e[2]=p):p=e[2];const v=p;let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(yr,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=b):b=e[3];let x;e[4]!==v?(x=v&&n.jsx("img",{src:v,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[4]=v,e[5]=x):x=e[5];let C;e[6]!==y||e[7]!==g?(C=g?{color:_a}:y?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=y,e[7]=g,e[8]=C):C=e[8];let N;e[9]!==C?(N=n.jsx(ln,{className:"h-4 w-4 shrink-0",style:C}),e[9]=C,e[10]=N):N=e[10];const j=r.isHidden&&"line-through opacity-50";let D;e[11]!==j?(D=Pe("min-w-0 flex-1 truncate text-sm font-medium",j),e[11]=j,e[12]=D):D=e[12];let o;e[13]!==r.label||e[14]!==D?(o=n.jsx("span",{className:D,children:r.label}),e[13]=r.label,e[14]=D,e[15]=o):o=e[15];let w;return e[16]!==x||e[17]!==N||e[18]!==o?(w=n.jsxs(n.Fragment,{children:[b,x,N,o]}),e[16]=x,e[17]=N,e[18]=o,e[19]=w):w=e[19],w}function fs(f,e){const r=f.isSavedBlock===!0,u=f.isMultivariate===!0;return Pe("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?Br:u?"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 Ir(f){const e=Ge.c(64),{section:r,raw:u,meta:d,sortableId:g,selected:y,onSelect:p,onDelete:v,onDuplicate:b,onMakeReusable:x,onToggleHidden:C,onToggleLazy:N,onAddVariant:j,onDetach:D}=f,o=u?Un(u.__resolveType??""):!1;let w;e[0]!==r?(w=ya(r),e[0]=r,e[1]=w):w=e[1];const i=w;let se;e[2]!==g?(se={id:g,animateLayoutChanges:Wr},e[2]=g,e[3]=se):se=e[3];const{attributes:Q,listeners:B,setNodeRef:c,transform:T,isDragging:de}=as(se);let P;e[4]!==T?(P=rs.Transform.toString(T?{...T,x:0}:null),e[4]=T,e[5]=P):P=e[5];const be=de?0:void 0;let E;e[6]!==P||e[7]!==be?(E={transform:P,opacity:be},e[6]=P,e[7]=be,e[8]=E):E=e[8];const he=E;let K;e[9]!==r?(K=xa(r),e[9]=r,e[10]=K):K=e[10];const oe=K,me="button",we=0;let U;e[11]!==p?(U=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),p())},e[11]=p,e[12]=U):U=e[12];const re=de?"cursor-grabbing":"cursor-pointer";let W;e[13]!==r||e[14]!==y||e[15]!==re?(W=Pe("touch-none transition-colors",re,fs(r,y)),e[13]=r,e[14]=y,e[15]=re,e[16]=W):W=e[16];let fe;e[17]!==d||e[18]!==u||e[19]!==r?(fe=n.jsx(ms,{section:r,raw:u,meta:d}),e[17]=d,e[18]=u,e[19]=r,e[20]=fe):fe=e[20];const A=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Pe("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),N()},onPointerDown:Gr,children:n.jsx(_r,{className:Pe("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(pt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let _e;e[21]!==C||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(_e=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Pe("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:I=>{I.stopPropagation(),C()},onPointerDown:Ur,children:r.isHidden?n.jsx(xr,{className:"h-3.5 w-3.5"}):n.jsx(br,{className:"h-3.5 w-3.5"})})}),n.jsx(pt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=C,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=_e):_e=e[24];let $;e[25]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(Xn,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Section actions",className:"h-7 w-7 shrink-0 opacity-0 group-hover:opacity-100",onClick:Hr,onPointerDown:zr,children:n.jsx(qn,{className:"h-3.5 w-3.5"})})}),e[25]=$):$=e[25];let ge;e[26]!==b?(ge=I=>{I.stopPropagation(),b()},e[26]=b,e[27]=ge):ge=e[27];let ae;e[28]===Symbol.for("react.memo_cache_sentinel")?(ae=n.jsx(Jn,{className:"h-4 w-4"}),e[28]=ae):ae=e[28];let X;e[29]!==ge?(X=n.jsxs(it,{onClick:ge,children:[ae,"Duplicate"]}),e[29]=ge,e[30]=X):X=e[30];let L;e[31]!==i||e[32]!==j?(L=i&&n.jsxs(it,{className:ja,onClick:I=>{I.stopPropagation(),j()},children:[n.jsx(Yn,{className:"h-4 w-4"}),"Add variant"]}),e[31]=i,e[32]=j,e[33]=L):L=e[33];let O;e[34]!==oe||e[35]!==x?(O=oe&&n.jsxs(it,{className:Lr,onClick:I=>{I.stopPropagation(),x()},children:[n.jsx(ln,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=oe,e[35]=x,e[36]=O):O=e[36];let F;e[37]!==D||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(F=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(it,{onClick:I=>{I.stopPropagation(),D()},children:[n.jsx(ln,{className:"h-4 w-4"}),"Detach"]}),e[37]=D,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=F):F=e[40];let q;e[41]!==v?(q=I=>{I.stopPropagation(),v()},e[41]=v,e[42]=q):q=e[42];let ie;e[43]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Qn,{className:"h-4 w-4"}),e[43]=ie):ie=e[43];let le;e[44]!==q?(le=n.jsxs(it,{className:"text-destructive focus:text-destructive",onClick:q,children:[ie,"Delete"]}),e[44]=q,e[45]=le):le=e[45];let ve;e[46]!==X||e[47]!==L||e[48]!==O||e[49]!==F||e[50]!==le?(ve=n.jsxs(Zn,{children:[$,n.jsxs(es,{align:"end",className:"w-44",children:[X,L,O,F,le]})]}),e[46]=X,e[47]=L,e[48]=O,e[49]=F,e[50]=le,e[51]=ve):ve=e[51];let ye;return e[52]!==Q||e[53]!==B||e[54]!==p||e[55]!==c||e[56]!==he||e[57]!==W||e[58]!==fe||e[59]!==A||e[60]!==_e||e[61]!==ve||e[62]!==U?(ye=n.jsxs("div",{ref:c,style:he,...Q,...B,role:me,tabIndex:we,onClick:p,onKeyDown:U,className:W,children:[fe,A,_e,ve]}),e[52]=Q,e[53]=B,e[54]=p,e[55]=c,e[56]=he,e[57]=W,e[58]=fe,e[59]=A,e[60]=_e,e[61]=ve,e[62]=U,e[63]=ye):ye=e[63],ye}function zr(f){return f.stopPropagation()}function Hr(f){return f.stopPropagation()}function Ur(f){return f.stopPropagation()}function Gr(f){return f.stopPropagation()}function Wr(){return!1}function qr(f){const e=Ge.c(90),{listKey:r,rawSections:u,sections:d,meta:g,selectedIndex:y,onSelect:p,onReorder:v,onDelete:b,onDuplicate:x,onMakeReusable:C,onToggleHidden:N,onToggleLazy:j,onAddVariant:D,onDetach:o,onAddSection:w,canAddSection:i}=f,se=i===void 0?!0:i;let Q;e[0]!==d.length?(Q=()=>On(d.length),e[0]=d.length,e[1]=Q):Q=e[1];const[B,c]=k.useState(Q),[T,de]=k.useState(null),[P,be]=k.useState(r),[E,he]=k.useState(d.length),K=k.useRef(!1);P!==r?(be(r),he(d.length),c(On(d.length))):E!==d.length&&(he(d.length),c(Z=>Fr(Z,d.length)));let oe;e[2]===Symbol.for("react.memo_cache_sentinel")?(oe={activationConstraint:{distance:8}},e[2]=oe):oe=e[2];let me;e[3]===Symbol.for("react.memo_cache_sentinel")?(me={coordinateGetter:os},e[3]=me):me=e[3];const we=ts(It(ss,oe),It(ns,me));let U;e[4]!==B?(U=B.map(Yr),e[4]=B,e[5]=U):U=e[5];const re=U;let W;e[6]===Symbol.for("react.memo_cache_sentinel")?(W=Z=>{de(String(Z.active.id))},e[6]=W):W=e[6];const fe=W;let A;e[7]!==re||e[8]!==v?(A=Z=>{de(null);const{active:R,over:z}=Z;if(!z||R.id===z.id)return;const Ce=re.indexOf(String(R.id)),pe=re.indexOf(String(z.id));Ce===-1||pe===-1||(c(Qe=>ds(Dt([...Qe],Ce,pe))),K.current=!0,requestAnimationFrame(()=>{K.current=!1}),v?.(Ce,pe))},e[7]=re,e[8]=v,e[9]=A):A=e[9];const _e=A;let $;e[10]===Symbol.for("react.memo_cache_sentinel")?($=()=>{de(null)},e[10]=$):$=e[10];const ge=$;let ae,X,L,O,F,q,ie,le,ve,ye,I,ce,Ne,Me,Ee;if(e[11]!==T||e[12]!==se||e[13]!==B||e[14]!==re||e[15]!==_e||e[16]!==g||e[17]!==w||e[18]!==D||e[19]!==b||e[20]!==o||e[21]!==x||e[22]!==C||e[23]!==p||e[24]!==N||e[25]!==j||e[26]!==u||e[27]!==d||e[28]!==y||e[29]!==we){Me=Symbol.for("react.early_return_sentinel");e:{const Z=R=>{K.current||p(R)};if(e[45]!==T||e[46]!==se||e[47]!==B||e[48]!==w||e[49]!==u||e[50]!==d){const R=T?B.find(z=>z.id===T):null;if(O=R!=null?d[R.index]:null,L=R!=null?u[R.index]:void 0,B.length===0){let z;e[54]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=z):z=e[54];const Ce=!se;let pe;e[55]===Symbol.for("react.memo_cache_sentinel")?(pe=n.jsx(cn,{size:14}),e[55]=pe):pe=e[55];let Qe;e[56]!==w||e[57]!==Ce?(Qe=n.jsxs("div",{className:"space-y-2",children:[z,n.jsxs(Ye,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ce,onClick:w,children:[pe,"Add section"]})]}),e[56]=w,e[57]=Ce,e[58]=Qe):Qe=e[58],Me=Qe;break e}Ne=Pe(R&&"cursor-grabbing"),e[45]=T,e[46]=se,e[47]=B,e[48]=w,e[49]=u,e[50]=d,e[51]=L,e[52]=O,e[53]=Ne}else L=e[51],O=e[52],Ne=e[53];X=is,le=we,ve=ls,ye=fe,I=_e,ce=ge,ae=cs,q=re,ie=kr,Ee="space-y-1",F=B.map(R=>{const z=d[R.index];return z?n.jsx(Ir,{sortableId:R.id,section:z,raw:u[R.index],meta:g,selected:y===R.index,onSelect:()=>Z(R.index),onDelete:()=>b(R.index),onDuplicate:()=>x(R.index),onMakeReusable:()=>C(R.index),onToggleHidden:()=>N(R.index),onToggleLazy:()=>j(R.index),onAddVariant:()=>D(R.index),onDetach:()=>o(R.index)},R.id):null})}e[11]=T,e[12]=se,e[13]=B,e[14]=re,e[15]=_e,e[16]=g,e[17]=w,e[18]=D,e[19]=b,e[20]=o,e[21]=x,e[22]=C,e[23]=p,e[24]=N,e[25]=j,e[26]=u,e[27]=d,e[28]=y,e[29]=we,e[30]=ae,e[31]=X,e[32]=L,e[33]=O,e[34]=F,e[35]=q,e[36]=ie,e[37]=le,e[38]=ve,e[39]=ye,e[40]=I,e[41]=ce,e[42]=Ne,e[43]=Me,e[44]=Ee}else ae=e[30],X=e[31],L=e[32],O=e[33],F=e[34],q=e[35],ie=e[36],le=e[37],ve=e[38],ye=e[39],I=e[40],ce=e[41],Ne=e[42],Me=e[43],Ee=e[44];if(Me!==Symbol.for("react.early_return_sentinel"))return Me;let Oe;e[59]!==F||e[60]!==Ee?(Oe=n.jsx("div",{className:Ee,children:F}),e[59]=F,e[60]=Ee,e[61]=Oe):Oe=e[61];let Ve;e[62]!==ae||e[63]!==q||e[64]!==ie||e[65]!==Oe?(Ve=n.jsx(ae,{items:q,strategy:ie,children:Oe}),e[62]=ae,e[63]=q,e[64]=ie,e[65]=Oe,e[66]=Ve):Ve=e[66];let Fe;e[67]!==L||e[68]!==O||e[69]!==g?(Fe=O?n.jsx("div",{className:Pe("cursor-grabbing shadow-lg ring-1 ring-border/60",fs(O,!1)),children:n.jsx(ms,{section:O,raw:L,meta:g})}):null,e[67]=L,e[68]=O,e[69]=g,e[70]=Fe):Fe=e[70];let Be;e[71]!==Fe?(Be=n.jsx(us,{dropAnimation:null,children:Fe}),e[71]=Fe,e[72]=Be):Be=e[72];let Ke;e[73]!==X||e[74]!==le||e[75]!==ve||e[76]!==ye||e[77]!==I||e[78]!==ce||e[79]!==Ve||e[80]!==Be?(Ke=n.jsxs(X,{sensors:le,collisionDetection:ve,onDragStart:ye,onDragEnd:I,onDragCancel:ce,children:[Ve,Be]}),e[73]=X,e[74]=le,e[75]=ve,e[76]=ye,e[77]=I,e[78]=ce,e[79]=Ve,e[80]=Be,e[81]=Ke):Ke=e[81];const Le=!se;let Ie;e[82]===Symbol.for("react.memo_cache_sentinel")?(Ie=n.jsx(cn,{size:14}),e[82]=Ie):Ie=e[82];let Ae;e[83]!==w||e[84]!==Le?(Ae=n.jsxs(Ye,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Le,onClick:w,children:[Ie,"Add section"]}),e[83]=w,e[84]=Le,e[85]=Ae):Ae=e[85];let ue;return e[86]!==Ne||e[87]!==Ke||e[88]!==Ae?(ue=n.jsxs("div",{className:Ne,children:[Ke,Ae]}),e[86]=Ne,e[87]=Ke,e[88]=Ae,e[89]=ue):ue=e[89],ue}function Yr(f){return f.id}function Bn(f){const e=Ge.c(38),{open:r,initialName:u,autoLabel:d,isPending:g,onSubmit:y,onOpenChange:p}=f,v=g===void 0?!1:g,[b,x]=k.useState(u),[C,N]=k.useState(r);r!==C&&(N(r),r&&x(u));let j;e[0]!==v||e[1]!==p?(j=me=>{!me&&!v&&p(!1)},e[0]=v,e[1]=p,e[2]=j):j=e[2];const D=j;let o;e[3]!==v||e[4]!==b||e[5]!==y?(o=async me=>{me.preventDefault(),!v&&await y(b.trim())},e[3]=v,e[4]=b,e[5]=y,e[6]=o):o=e[6];const w=o;let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(mr,{children:"Rename variant"}),e[7]=i):i=e[7];const se=d||"the rule";let Q;e[8]!==se?(Q=n.jsxs(fr,{children:[i,n.jsxs(pr,{children:["Save this matcher as a global block with a custom label. Leave empty to inline the matcher again and fall back to"," ",n.jsx("span",{className:"font-medium",children:se}),"."]})]}),e[8]=se,e[9]=Q):Q=e[9];let B;e[10]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=B):B=e[10];let c;e[11]===Symbol.for("react.memo_cache_sentinel")?(c=me=>x(me.target.value),e[11]=c):c=e[11];let T;e[12]!==d||e[13]!==v||e[14]!==b?(T=n.jsxs("div",{className:"space-y-1.5 py-4",children:[B,n.jsx(Sr,{id:"variant-rename-name",value:b,onChange:c,placeholder:d,autoFocus:!0,disabled:v})]}),e[12]=d,e[13]=v,e[14]=b,e[15]=T):T=e[15];let de;e[16]!==p?(de=()=>p(!1),e[16]=p,e[17]=de):de=e[17];let P;e[18]!==v||e[19]!==de?(P=n.jsx(Ye,{type:"button",variant:"outline",onClick:de,disabled:v,children:"Cancel"}),e[18]=v,e[19]=de,e[20]=P):P=e[20];let be;e[21]!==v?(be=v?n.jsxs(n.Fragment,{children:[n.jsx(Hn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=v,e[22]=be):be=e[22];let E;e[23]!==v||e[24]!==be?(E=n.jsx(Ye,{type:"submit",disabled:v,children:be}),e[23]=v,e[24]=be,e[25]=E):E=e[25];let he;e[26]!==P||e[27]!==E?(he=n.jsxs(hr,{children:[P,E]}),e[26]=P,e[27]=E,e[28]=he):he=e[28];let K;e[29]!==w||e[30]!==he||e[31]!==Q||e[32]!==T?(K=n.jsx(gr,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:w,children:[Q,T,he]})}),e[29]=w,e[30]=he,e[31]=Q,e[32]=T,e[33]=K):K=e[33];let oe;return e[34]!==D||e[35]!==r||e[36]!==K?(oe=n.jsx(vr,{open:r,onOpenChange:D,children:K}),e[34]=D,e[35]=r,e[36]=K,e[37]=oe):oe=e[37],oe}const Jr="oklch(0.65 0.15 160)",ps="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 un(f){const e=Ge.c(5),{rule:r,matchers:u}=f,d=r?.__resolveType??"";let g;if(e[0]!==u||e[1]!==d){const b=u.find(x=>x.resolveType===d)?.iconName??ka(d);g=lr(b),e[0]=u,e[1]=d,e[2]=g}else g=e[2];const y=g;if(!y)return null;let p;return e[3]!==y?(p=n.jsx(y,{size:14,className:"shrink-0"}),e[3]=y,e[4]=p):p=e[4],p}function Ln(f){return f.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function on(f){return f.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Qr(f){return f.map((e,r)=>({...e,index:r}))}function Xr(f){const e=Ge.c(55),{entry:r,sortableId:u,isActive:d,canDelete:g,decofile:y,meta:p,matchers:v,onSelect:b,onRename:x,onDuplicate:C,onDelete:N}=f;let j;e[0]!==u?(j={id:u,animateLayoutChanges:to},e[0]=u,e[1]=j):j=e[1];const{attributes:D,listeners:o,setNodeRef:w,transform:i,isDragging:se}=as(j);let Q;e[2]!==i?(Q=rs.Transform.toString(i?{...i,y:0}:null),e[2]=i,e[3]=Q):Q=e[3];const B=se?0:void 0;let c;e[4]!==Q||e[5]!==B?(c={transform:Q,opacity:B},e[4]=Q,e[5]=B,e[6]=c):c=e[6];const T=c,de=p??void 0;let P;e[7]!==y||e[8]!==r.variant.rule||e[9]!==de?(P=Rt(r.variant.rule,y,de),e[7]=y,e[8]=r.variant.rule,e[9]=de,e[10]=P):P=e[10];const be=P,E=d?ps:"text-muted-foreground hover:bg-muted hover:text-foreground",he=se?"cursor-grabbing":"cursor-grab";let K;e[11]!==E||e[12]!==he?(K=Pe("group shrink-0 inline-flex items-center rounded-md transition-colors touch-none",E,he),e[11]=E,e[12]=he,e[13]=K):K=e[13];let oe;e[14]!==be||e[15]!==v?(oe=n.jsx(un,{rule:be,matchers:v}),e[14]=be,e[15]=v,e[16]=oe):oe=e[16];let me;e[17]!==r.variant.label?(me=n.jsx("span",{className:"truncate",children:r.variant.label}),e[17]=r.variant.label,e[18]=me):me=e[18];let we;e[19]!==D||e[20]!==o||e[21]!==b||e[22]!==oe||e[23]!==me?(we=n.jsxs("button",{type:"button",...D,...o,onClick:b,className:"inline-flex items-center gap-1.5 h-8 pl-3 pr-1.5 text-sm font-medium cursor-[inherit]",children:[oe,me]}),e[19]=D,e[20]=o,e[21]=b,e[22]=oe,e[23]=me,e[24]=we):we=e[24];const U=`Actions for ${r.variant.label}`,re=d&&"opacity-100";let W;e[25]!==re?(W=Pe("inline-flex h-8 w-6 items-center justify-center pr-1 cursor-pointer transition-opacity","opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",re),e[25]=re,e[26]=W):W=e[26];let fe;e[27]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(qn,{size:12}),e[27]=fe):fe=e[27];let A;e[28]!==U||e[29]!==W?(A=n.jsx(Xn,{asChild:!0,children:n.jsx("button",{type:"button","aria-label":U,onClick:eo,onPointerDown:Zr,className:W,children:fe})}),e[28]=U,e[29]=W,e[30]=A):A=e[30];let _e;e[31]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(Mr,{size:14}),e[31]=_e):_e=e[31];let $;e[32]!==x?($=n.jsxs(it,{onClick:x,children:[_e,"Rename"]}),e[32]=x,e[33]=$):$=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(Jn,{size:14}),e[34]=ge):ge=e[34];let ae;e[35]!==C?(ae=n.jsxs(it,{onClick:C,children:[ge,"Duplicate"]}),e[35]=C,e[36]=ae):ae=e[36];let X;e[37]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(jr,{}),e[37]=X):X=e[37];const L=!g;let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(Qn,{size:14}),e[38]=O):O=e[38];let F;e[39]!==N||e[40]!==L?(F=n.jsxs(it,{variant:"destructive",disabled:L,onClick:N,children:[O,"Delete"]}),e[39]=N,e[40]=L,e[41]=F):F=e[41];let q;e[42]!==$||e[43]!==ae||e[44]!==F?(q=n.jsxs(es,{align:"start",className:"w-36",children:[$,ae,X,F]}),e[42]=$,e[43]=ae,e[44]=F,e[45]=q):q=e[45];let ie;e[46]!==A||e[47]!==q?(ie=n.jsxs(Zn,{children:[A,q]}),e[46]=A,e[47]=q,e[48]=ie):ie=e[48];let le;return e[49]!==w||e[50]!==T||e[51]!==we||e[52]!==ie||e[53]!==K?(le=n.jsxs("div",{ref:w,style:T,className:K,children:[we,ie]}),e[49]=w,e[50]=T,e[51]=we,e[52]=ie,e[53]=K,e[54]=le):le=e[54],le}function Zr(f){return f.stopPropagation()}function eo(f){return f.stopPropagation()}function to(){return!1}function no(f){const e=Ge.c(13),{variant:r,decofile:u,meta:d,matchers:g}=f,y=d??void 0;let p;e[0]!==u||e[1]!==y||e[2]!==r.rule?(p=Rt(r.rule,u,y),e[0]=u,e[1]=y,e[2]=r.rule,e[3]=p):p=e[3];const v=p;let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=Pe("inline-flex items-center gap-1.5 h-8 pl-3 pr-3 text-sm font-medium rounded-md shadow-lg ring-1 ring-border/60 cursor-grabbing",ps),e[4]=b):b=e[4];let x;e[5]!==v||e[6]!==g?(x=n.jsx(un,{rule:v,matchers:g}),e[5]=v,e[6]=g,e[7]=x):x=e[7];let C;e[8]!==r.label?(C=n.jsx("span",{className:"truncate",children:r.label}),e[8]=r.label,e[9]=C):C=e[9];let N;return e[10]!==x||e[11]!==C?(N=n.jsxs("div",{className:b,children:[x,C]}),e[10]=x,e[11]=C,e[12]=N):N=e[12],N}function so(f){const e=Ge.c(78),{listKey:r,variants:u,activeIndex:d,decofile:g,meta:y,matchers:p,onSelect:v,onReorder:b,onRename:x,onDuplicate:C,onDelete:N,onAdd:j}=f;let D;e[0]!==u?(D=()=>on(u),e[0]=u,e[1]=D):D=e[1];const[o,w]=k.useState(D),[i,se]=k.useState(null),[Q,B]=k.useState(r),[c,T]=k.useState(u.length);let de;e[2]!==u?(de=()=>Ln(u),e[2]=u,e[3]=de):de=e[3];const[P,be]=k.useState(de),E=k.useRef(!1),he=Ln(u);Q!==r?(B(r),T(u.length),be(he),w(on(u))):c!==u.length?(T(u.length),be(he),w(on(u))):P!==he&&(be(he),w(ue=>u.map((Z,R)=>({id:ue[R]?.id??crypto.randomUUID(),index:R,variant:Z}))));let K;e[4]===Symbol.for("react.memo_cache_sentinel")?(K={activationConstraint:{distance:8}},e[4]=K):K=e[4];let oe;e[5]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:os},e[5]=oe):oe=e[5];const me=ts(It(ss,K),It(ns,oe));let we;e[6]!==o?(we=o.map(ao),e[6]=o,e[7]=we):we=e[7];const U=we,re=u.length>1;let W;e[8]!==o?(W=ue=>{const Z=String(ue.active.id);se(o.find(R=>R.id===Z)??null)},e[8]=o,e[9]=W):W=e[9];const fe=W;let A;e[10]!==U||e[11]!==b?(A=ue=>{se(null);const{active:Z,over:R}=ue;if(!R||Z.id===R.id)return;const z=U.indexOf(String(Z.id)),Ce=U.indexOf(String(R.id));z===-1||Ce===-1||(w(pe=>Qr(Dt([...pe],z,Ce))),E.current=!0,requestAnimationFrame(()=>{E.current=!1}),b(z,Ce))},e[10]=U,e[11]=b,e[12]=A):A=e[12];const _e=A;let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($=()=>{se(null)},e[13]=$):$=e[13];const ge=$;let ae,X,L,O,F,q,ie,le,ve,ye,I,ce;if(e[14]!==i||e[15]!==d||e[16]!==re||e[17]!==g||e[18]!==o||e[19]!==U||e[20]!==_e||e[21]!==fe||e[22]!==p||e[23]!==y||e[24]!==N||e[25]!==C||e[26]!==x||e[27]!==v||e[28]!==me){const ue=R=>{E.current||v(R)};I="flex items-center border-b shrink-0";const Z=i&&"cursor-grabbing";e[41]!==Z?(ye=Pe("flex flex-1 min-w-0 items-center gap-1.5 pl-3 pr-2 py-2 overflow-x-auto",Z),e[41]=Z,e[42]=ye):ye=e[42],X=is,F=me,q=ls,ie=fe,le=_e,ve=ge,ae=cs,ce=U,L=wr,O=o.map(R=>n.jsx(Xr,{sortableId:R.id,entry:R,isActive:R.index===d,canDelete:re,decofile:g,meta:y,matchers:p,onSelect:()=>ue(R.index),onRename:()=>x(R.index),onDuplicate:()=>C(R.index),onDelete:()=>N(R.index)},R.id)),e[14]=i,e[15]=d,e[16]=re,e[17]=g,e[18]=o,e[19]=U,e[20]=_e,e[21]=fe,e[22]=p,e[23]=y,e[24]=N,e[25]=C,e[26]=x,e[27]=v,e[28]=me,e[29]=ae,e[30]=X,e[31]=L,e[32]=O,e[33]=F,e[34]=q,e[35]=ie,e[36]=le,e[37]=ve,e[38]=ye,e[39]=I,e[40]=ce}else ae=e[29],X=e[30],L=e[31],O=e[32],F=e[33],q=e[34],ie=e[35],le=e[36],ve=e[37],ye=e[38],I=e[39],ce=e[40];let Ne;e[43]!==ae||e[44]!==L||e[45]!==O||e[46]!==ce?(Ne=n.jsx(ae,{items:ce,strategy:L,children:O}),e[43]=ae,e[44]=L,e[45]=O,e[46]=ce,e[47]=Ne):Ne=e[47];let Me;e[48]!==i||e[49]!==g||e[50]!==p||e[51]!==y?(Me=i?n.jsx(no,{variant:i.variant,decofile:g,meta:y,matchers:p}):null,e[48]=i,e[49]=g,e[50]=p,e[51]=y,e[52]=Me):Me=e[52];let Ee;e[53]!==Me?(Ee=n.jsx(us,{dropAnimation:null,children:Me}),e[53]=Me,e[54]=Ee):Ee=e[54];let Oe;e[55]!==X||e[56]!==F||e[57]!==q||e[58]!==ie||e[59]!==le||e[60]!==ve||e[61]!==Ne||e[62]!==Ee?(Oe=n.jsxs(X,{sensors:F,collisionDetection:q,onDragStart:ie,onDragEnd:le,onDragCancel:ve,children:[Ne,Ee]}),e[55]=X,e[56]=F,e[57]=q,e[58]=ie,e[59]=le,e[60]=ve,e[61]=Ne,e[62]=Ee,e[63]=Oe):Oe=e[63];let Ve;e[64]!==ye||e[65]!==Oe?(Ve=n.jsx("div",{className:ye,children:Oe}),e[64]=ye,e[65]=Oe,e[66]=Ve):Ve=e[66];let Fe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Fe={color:Jr},e[67]=Fe):Fe=e[67];let Be;e[68]===Symbol.for("react.memo_cache_sentinel")?(Be=n.jsx(cn,{size:14}),e[68]=Be):Be=e[68];let Ke;e[69]!==j?(Ke=n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-8 shrink-0 cursor-pointer",style:Fe,onClick:j,children:Be})}),e[69]=j,e[70]=Ke):Ke=e[70];let Le;e[71]===Symbol.for("react.memo_cache_sentinel")?(Le=n.jsx(pt,{side:"bottom",children:"Add variant"}),e[71]=Le):Le=e[71];let Ie;e[72]!==Ke?(Ie=n.jsx("div",{className:"shrink-0 pr-3 pl-1 py-2",children:n.jsxs(mt,{children:[Ke,Le]})}),e[72]=Ke,e[73]=Ie):Ie=e[73];let Ae;return e[74]!==I||e[75]!==Ve||e[76]!==Ie?(Ae=n.jsxs("div",{className:I,children:[Ve,Ie]}),e[74]=I,e[75]=Ve,e[76]=Ie,e[77]=Ae):Ae=e[77],Ae}function ao(f){return f.id}function Fn(f){const e=Ge.c(15),{schema:r,value:u,onChange:d,meta:g,decofile:y,onSaveReferencedBlock:p,sandbox:v}=f;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[x,C]=k.useState(b);let N;e[1]!==x?(N=x.length>0&&n.jsxs("nav",{"aria-label":"Variant rule breadcrumb",className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>C([]),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:"Back to rule",children:n.jsx(or,{className:"size-3.5"})}),x.map((o,w)=>{const i=w===x.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[w>0&&n.jsx(Wn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>C(x.slice(0,w+1)),title:o,className:Pe("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",i?"font-medium text-foreground":"text-muted-foreground"),children:o})]},`${o}-${w}`)})]}),e[1]=x,e[2]=N):N=e[2];let j;e[3]!==x||e[4]!==y||e[5]!==g||e[6]!==d||e[7]!==p||e[8]!==v||e[9]!==r||e[10]!==u?(j=n.jsx(Gn,{schema:r,value:u,onChange:d,basePath:"",breadcrumbPath:x,onBreadcrumbChange:C,meta:g,decofile:y,onSaveReferencedBlock:p,sandbox:v}),e[3]=x,e[4]=y,e[5]=g,e[6]=d,e[7]=p,e[8]=v,e[9]=r,e[10]=u,e[11]=j):j=e[11];let D;return e[12]!==N||e[13]!==j?(D=n.jsxs("div",{className:"space-y-2",children:[N,j]}),e[12]=N,e[13]=j,e[14]=D):D=e[14],D}function In(f){const e=Ge.c(21),{activeSchema:r,formValue:u,formResetKey:d,onFormChange:g,onBreadcrumbChange:y,breadcrumbPath:p,emptyMessage:v,beforeForm:b,seoResolveType:x,siteDefaultSeo:C,meta:N,decofile:j,onSaveReferencedBlock:D,sandbox:o}=f;let w;e[0]!==p?(w=p===void 0?[]:p,e[0]=p,e[1]=w):w=e[1];const i=w;let se;e[2]!==r||e[3]!==i||e[4]!==j||e[5]!==d||e[6]!==u||e[7]!==N||e[8]!==y||e[9]!==g||e[10]!==D||e[11]!==o||e[12]!==x||e[13]!==C?(se=r&&u?x?n.jsx(Ar,{schema:r,resolveType:x,value:u,formResetKey:d,onChange:g,onBreadcrumbChange:y,siteDefaultSeo:C}):n.jsx(Gn,{schema:r,value:u,onChange:g,basePath:"",breadcrumbPath:i,onBreadcrumbChange:y,meta:N,decofile:j,onSaveReferencedBlock:D,sandbox:o},d):null,e[2]=r,e[3]=i,e[4]=j,e[5]=d,e[6]=u,e[7]=N,e[8]=y,e[9]=g,e[10]=D,e[11]=o,e[12]=x,e[13]=C,e[14]=se):se=e[14];const Q=se;let B;e[15]!==v||e[16]!==Q?(B=Q??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[15]=v,e[16]=Q,e[17]=B):B=e[17];let c;return e[18]!==b||e[19]!==B?(c=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:[b,B]})}),e[18]=b,e[19]=B,e[20]=c):c=e[20],c}const ro="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 oo(f,e){return La(f,e,et)}function io(f){const e=Ge.c(13),{pageKey:r,initialName:u,initialPath:d,onFieldChange:g}=f,[y,p]=k.useState(u),[v,b]=k.useState(d),[x,C]=k.useState(r);x!==r&&(C(r),p(u),b(d));let N;e[0]!==g?(N=i=>{p(i.target.value),g("name",i.target.value)},e[0]=g,e[1]=N):N=e[1];let j;e[2]!==y||e[3]!==N?(j=n.jsx("input",{type:"text",value:y,onChange:N,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:"Page name"}),e[2]=y,e[3]=N,e[4]=j):j=e[4];let D;e[5]!==g?(D=i=>{b(i.target.value),g("path",i.target.value)},e[5]=g,e[6]=D):D=e[6];let o;e[7]!==v||e[8]!==D?(o=n.jsx("input",{type:"text",value:v,onChange:D,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:"/path"}),e[7]=v,e[8]=D,e[9]=o):o=e[9];let w;return e[10]!==j||e[11]!==o?(w=n.jsxs("div",{className:"space-y-1",children:[j,o]}),e[10]=j,e[11]=o,e[12]=w):w=e[12],w}function zn(f){const e=Ge.c(6),{onClick:r}=f;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Yn,{size:14}),e[0]=u):u=e[0];let d;e[1]!==r?(d=n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:r,children:u})}),e[1]=r,e[2]=d):d=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{side:"bottom",children:"Add variant"}),e[3]=g):g=e[3];let y;return e[4]!==d?(y=n.jsxs(mt,{children:[d,g]}),e[4]=d,e[5]=y):y=e[5],y}function Gl({orgSlug:f,virtualMcpId:e,branch:r,previewReady:u=!0,previewUrl:d,currentPath:g,activePageBlockKey:y=null,activeGlobalBlockKey:p=null,externalSelectedIndex:v,onSaved:b,initialEditSeo:x=!1,onExitSeo:C,onViewJsonFile:N,onVariantPreviewOverride:j}){const D=u?{orgSlug:f,virtualMcpId:e,branch:r,previewUrl:d}:null,{data:o,isLoading:w}=wa(D),{data:i,isLoading:se}=Na(D),Q=Ra(),B=Q?.entity?.id===e?Q.entity.metadata?.siteSlug??null:null,[c,T]=k.useState(null),[de,P]=k.useState(null),[be,E]=k.useState(null),[he,K]=k.useState(0),[oe,me]=k.useState(void 0),[we,U]=k.useState(null),[re,W]=k.useState(null),[fe,A]=k.useState([]),[_e,$]=k.useState(0),[ge,ae]=k.useState(null),[X,L]=k.useState(null),[O,F]=k.useState(null),[q,ie]=k.useState(!0),[le,ve]=k.useState(!1),[ye,I]=k.useState(!1),[ce,Ne]=k.useState(x),[Me,Ee]=k.useState(x);x&&!Me&&(Ee(!0),Ne(!0),T(null),P(null),E(null),A([])),!x&&Me&&Ee(!1);const[Oe,Ve]=k.useState(null),[Fe,Be]=k.useState(void 0),[Ke,Le]=k.useState([]),[Ie,Ae]=k.useState(0),[ue,Z]=k.useState(0),[R,z]=k.useState(null),[Ce,pe]=k.useState(null),[Qe,dn]=k.useState(null),hs=ha(),gs=`${f}/${e}/${r}`,zt=Da({orgSlug:f,virtualMcpId:e,branch:r}),[vs,Ss]=k.useState(g),[bs,ys]=k.useState(y),[xs,_s]=k.useState(p);(vs!==g||bs!==y||xs!==p)&&(queueMicrotask(()=>zt.flush()),Ss(g),ys(y),_s(p),T(null),P(null),E(null),K(0),U(null),W(null),Z(0),z(null),pe(null),A([]),$(t=>t+1),Ne(!1),Ve(null),Be(void 0),Le([]),Ae(t=>t+1));const je=Va({orgSlug:f,virtualMcpId:e,branch:r}),Vt=Ya((t,s)=>{je.mutate({blockKey:t,data:s},{onSuccess:()=>b?.(),onError:a=>te.error(`Save failed: ${a.message}`)})}),Ht=Ca({orgSlug:f,virtualMcpId:e,branch:r}),[xt,Ct]=k.useState(!1),Ut=k.useRef(null),ht=k.useRef(null),gt=k.useRef(null),Gt=k.useRef({}),We=k.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||w||se)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Hn,{size:20,className:"animate-spin text-muted-foreground"})});if(!o||!i)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Could not load site data."});const js=Ta(o),ke=!!p,ze=ke?null:Pa(js,g,y),_=ke?p:ze?.key??null,Wt=ke&&p?o[p]:void 0,mn=ke&&p&&Wt?Aa(p,Wt):ke&&p?p:"",Tt=!ke&&_&&o[_]?o[_]:null,qt=ce&&o&&i&&_&&ze?$n(o,{kind:"page",pageKey:_,pageName:String(ze.name??""),path:String(ze.path??"")},i):null,ks=ce?Tt?.seo:void 0,Yt=Fe!==void 0?Fe:ks,ws=ce?Nr(Yt):void 0,Ns=qt?.seoTypeOptions??[],Rs=ce&&i?Rr(i):"",fn=Oe??ws??{},Jt=ce&&qt?Dr(fn,qt):null,Ds=ce&&Jt&&Vr(Yt)?$t(Jt,i):null,Vs=ce?Cr(o,i)?.seoData:void 0,$e=ke?[{label:"Default",sections:[{__resolveType:p}]}]:oo(Tt?.sections,o??{}),Pt=$e.length>1,De=Math.min(he,$e.length-1),tt=$e[De],Y=tt?.sections??[],Te=Ot(Y,o),pn=!ke&&Ma(Tt?.sections);if(ke&&p&&Qe!==p){dn(p);const t=Y[0],s=Te[0];if(t&&s){T(0),Z(0),A([]);const a=ut(t,s,o);a&&(P(a.data),E(a.resolveType),pe(null),z(null))}}!ke&&Qe!==null&&dn(null),We.current={rawSections:Y,parsedSections:Te,decofile:o??{},activePageKey:_,pageVariants:$e,variantIndex:De,sectionVariantIndex:ue,selectedSectionIndex:c};const Cs=()=>({multivariate:pn,index:De,variants:$e.map(t=>({rule:t.rule}))}),hn=(t,s)=>{if(!j)return;if(!_||!pn||t.length<=1){j(null);return}const a=En(_,{multivariate:!0,index:s,variants:t},o,i);j(a.length>0?a:null)},vt=(t,s,a)=>{if(!j)return;if(!_){j(null);return}const l=Cs(),m=En(_,l,o,i);if(!t||s<0){j(m.length>0?m:null);return}const S=er({pageKey:_,page:l,sectionIndex:s,sectionLazy:Te[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:o,meta:i}),h=[...m,...S];j(h.length>0?h:null)},nt=(t,s,a,l=c??-1,m=!1)=>{const S=Je(t,s);if(!S){P(null),E(null),pe(null),z(null),m&&vt(null,l,a);return}const V=Cn(S,et)[a];if(!V){P(null),E(null),pe(null),z(null),m&&vt(null,l,a);return}const ne=Fa(V.value,o);P(ne?.data??null),E(ne?.resolveType??null);const{resolveType:M,formValue:H}=kt(V.rule,o,i??void 0);pe(M),z(H),m&&vt(S,l,a)};if(v!==void 0&&v!==oe&&(me(v??null),typeof v=="number")){const t=Y[v],s=Te[v];if(t&&s)if(T(v),Z(0),A([]),$(a=>a+1),s.isMultivariate)nt(t,s,0,v);else{const a=ut(t,s,o);a?(P(a.data),E(a.resolveType)):(P(null),E(null)),pe(null),z(null)}}const At={orgSlug:f,virtualMcpId:e,branch:r,previewUrl:d??void 0,siteSlug:B},Qt=be&&i?$t(be,i):null,He=(t,s)=>{if(!_)return;const a=Nt(o,_,t,De,$e);je.mutate({blockKey:_,data:a},{onSuccess:()=>s?.onSuccess?.()??b?.(),onError:l=>te.error(`Save failed: ${l.message}`)})},St=()=>{T(null),P(null),E(null),Z(0),z(null),pe(null),A([]),$(t=>t+1)},Ts=(t,s)=>{Ut.current&&clearTimeout(Ut.current);const a=We.current.sectionVariantIndex;Ut.current=setTimeout(()=>{const{rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current,M=l[s];if(!M)return;const H=m[s];if(!H)return;if(H.isSavedBlock){const J=H.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;je.mutate({blockKey:J,data:t},{onSuccess:()=>b?.(),onError:ee=>te.error(`Save failed: ${ee.message}`)});return}if(!h)return;const G={...S[h]},xe=[...l];if(H.isMultivariate){const J=Je(M,H);if(!J||!h)return;const ee=sr(J,a,t);xe[s]=dt(M,H,ee)}else if(H.isHidden){const J=Un(M.__resolveType),ee=J?{...M.section}:{...M},Re=Array.isArray(ee.variants)?[...ee.variants]:[];Re[0]&&(Re[0]={...Re[0],value:t}),ee.variants=Re,J?xe[s]={...M,section:ee}:xe[s]=ee}else H.isLazy?xe[s]={...M,section:t}:xe[s]=t;if(V.length>1){const J=G.sections,ee=[...J?.variants??[]];ee[ne]&&(ee[ne]={...ee[ne],value:xe}),G.sections={...J,variants:ee}}else G.sections=xe;je.mutate({blockKey:h,data:G},{onSuccess:()=>b?.(),onError:J=>te.error(`Save failed: ${J.message}`)})},rn)},Ps=t=>{T(t),Z(0),A([]),$(m=>m+1);const s=Y[t],a=Te[t];if(!s||!a)return;if(a.isMultivariate){nt(s,a,0,t);return}const l=ut(s,a,o);if(!l){P(null),E(null),pe(null),z(null),vt(null,t,0);return}P(l.data),E(l.resolveType),pe(null),z(null),vt(null,t,0)},gn=t=>{const s=t;P(s),c!==null&&Ts(s,c)},Xt=t=>{if(!_||!o||!i||!ze)return;const s={kind:"page",pageKey:_,pageName:String(ze.name??""),path:String(ze.path??"")},a=$n(o,s,i);a&&zt.save(_,()=>{const l=hs.getQueryData(ga.decofile(gs))?.[_];if(!l||typeof l!="object"||l===null||Array.isArray(l))return null;const m={...l,...Gt.current};return Gt.current={},t?.raw!==void 0?{...m,seo:t.raw}:t?.inner!==void 0?Pr(s,a,m,t.inner):m})},As=(t,s)=>{_&&(Gt.current[t]=s,Xt())},Ms=(t,s)=>{if(!_)return;const a=Dt([...Y],t,s);c!==null&&(c===t?T(s):t<c&&s>=c?T(c-1):t>c&&s<=c&&T(c+1)),He(a)},Es=t=>{if(!_)return;const s=Y.filter((a,l)=>l!==t);c===t?St():c!==null&&c>t&&T(c-1),He(s)},Ks=t=>{if(!_)return;const s=Y[t];if(!s)return;const a=[...Y];a.splice(t+1,0,Za(s)),c!==null&&c>t&&T(c+1),He(a)},$s=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a||a.isMultivariate)return;const l=a.isHidden?Qa(s):Xa(s);if(!l)return;const m=[...Y];m[t]=l,c===t&&St(),He(m)},Os=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a||a.isMultivariate)return;const l=Ja(s);if(!l)return;const m=[...Y];m[t]=l,c===t&&St(),He(m)},Bs=t=>{if(!_)return;const s=Y[t],a=Te[t];if(!s||!a?.isSavedBlock)return;const l=ut(s,a,o);if(!l?.data)return;const{name:m,...S}=l.data,h=[...Y];a.isLazy?h[t]={...s,section:S}:h[t]=S,c===t&&St(),He(h)},Ls=t=>{if(!_)return;const s=[...Y,{__resolveType:t.resolveType}],a=s.length-1;He(s,{onSuccess:()=>{ve(!1),T(a),Z(0),A([]),$(h=>h+1);const l=s[a],m=Ot(s,o)[a];if(!l||!m)return;if(m.isMultivariate){nt(l,m,0);return}const S=ut(l,m,o);if(!S){P(null),E(null),pe(null),z(null);return}P(S.data),E(S.resolveType),pe(null),z(null)}})},Fs=t=>{if(c===null)return;const s=Y[c],a=Te[c];!s||!a?.isMultivariate||(Z(t),A([]),$(l=>l+1),nt(s,a,t,c,!0))},Is=t=>{if(c===null||!_)return;const s=Y[c],a=Te[c];if(!s||!a?.isMultivariate)return;const l=Je(s,a);if(!l)return;const m=Wa(l,t);if(!m){te.error("Cannot delete the only variant.");return}const S=[...Y];S[c]=dt(s,a,m);const h=m.variants;let V=ue;t===ue?V=Math.min(t,h.length-1):t<ue&&(V=ue-1),Z(V),A([]),$(ne=>ne+1),nt(S[c],a,V),He(S)},zs=t=>{if(c===null||!_)return;const s=Y[c],a=Te[c];if(!s||!a?.isMultivariate)return;const l=Je(s,a);if(!l)return;const m=qa(l,t),S=[...Y];S[c]=dt(s,a,m);const h=t+1;Z(h),A([]),$(V=>V+1),nt(S[c],a,h),He(S)},Hs=(t,s)=>{if(c===null||!_||t===s)return;const a=Y[c],l=Te[c];if(!a||!l?.isMultivariate)return;const m=Je(a,l);if(!m)return;const S=Ua(m,t,s),h=[...Y];h[c]=dt(a,l,S);let V=ue;ue===t?V=s:t<ue&&s>=ue?V=ue-1:t>ue&&s<=ue&&(V=ue+1),Z(V),nt(h[c],l,V),He(h)},Zt=t=>{const s=t??c;if(s===null||!_)return;const a=Y[s],l=Te[s];if(!a||!l)return;const m=Ia(a,l);if(!m){te.error("This section cannot have variants.");return}const S=[...Y];S[s]=m.section;const h=Ot(S,o)[s];if(!h?.isMultivariate){te.error("Could not add variant.");return}T(s),Z(m.newVariantIndex),A([]),$(V=>V+1),nt(m.section,h,m.newVariantIndex,s),He(S)},Us=()=>{if(c===null||!_)return;const t=Y[c],s=Te[c];if(!t||!s?.isMultivariate)return;const a=Je(t,s);if(!a)return;const l=Ga(t,s,a);if(!l){te.error("Could not remove variants.");return}const m=[...Y];m[c]=l;const S=Ot(m,o)[c];if(!S)return;Z(0),pe(null),z(null),A([]),$(V=>V+1);const h=ut(l,S,o);h?(P(h.data),E(h.resolveType)):(P(null),E(null)),vt(null,c,0),He(m)},Gs=async t=>{if(ge===null||!_)return;const s=an(t,o);if(s){te.error(s);return}const a=Y[ge],l=Te[ge];if(!a||!l)return;const m=ut(a,l,o);if(!m){te.error("This section cannot be saved as global.");return}const S={...m.data,name:t};try{await je.mutateAsync({blockKey:t,data:S});const h=[...Y];h[ge]={__resolveType:t},await je.mutateAsync({blockKey:_,data:Nt(o,_,h,De,$e)}),c===ge&&St(),ae(null),te.success(`Saved global block "${t}"`),b?.()}catch(h){te.error(h instanceof Error?h.message:"Failed to save global block")}},vn=tt?.rule;if(Pt&&c===null&&re===null&&vn){const{resolveType:t,formValue:s}=kt(vn,o??{},i??void 0);W(t),U(s)}const Mt=i?Ea(i):[],Sn=i&&o?Ka(i,o):[],Ws=!ke&&!!(d&&i&&o),bn=re&&i?$t(re,i):null,Et=()=>{ht.current&&(clearTimeout(ht.current),ht.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null)},_t=async(t,s)=>{if(!(nr(s,t,i)>0))try{await Ht.mutateAsync({blockKey:t})}catch(a){te.error(a instanceof Error?a.message:"Could not delete matcher block")}},yn=t=>{ht.current&&clearTimeout(ht.current),ht.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:l}=We.current;if(!s)return;const m={...a[s]},S={...m.sections},h=[...S.variants??[]],V=h[l],ne=V?.rule;if(bt(ne,a,i)){const M=ne?.__resolveType??"",H=a[M],G=typeof H?.name=="string"?H.name:M,{__resolveType:xe,...J}=t;je.mutate({blockKey:M,data:yt(xe??"",J,G)},{onSuccess:()=>b?.(),onError:ee=>te.error(`Save failed: ${ee.message}`)});return}V&&(h[l]={...V,rule:t}),m.sections={...S,variants:h},je.mutate({blockKey:s,data:m},{onSuccess:()=>b?.(),onError:M=>te.error(`Save failed: ${M.message}`)})},rn)},qs=t=>{W(t);const s=t?{__resolveType:t}:{__resolveType:Kn};U({}),yn(s)},Ys=t=>{const s=t;U(s);const a=re?{__resolveType:re,...s}:{...s};yn(a)},Js=async t=>{Et();const{activePageKey:s,decofile:a,variantIndex:l}=We.current;if(!s)return;const m=a[s],S=m?.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],ne=V[l];if(!ne)return;const M=wt(ne.rule,a,i),H=Lt(t);V[l]={...ne,rule:H};const G={...a,[s]:{...m,sections:{...h,variants:V}}},{resolveType:xe,formValue:J}=kt(H,G,i??void 0);W(xe),U(J);try{await je.mutateAsync({blockKey:s,data:G[s]}),M&&M!==t&&await _t(M,G),b?.()}catch(ee){te.error(ee instanceof Error?ee.message:"Could not apply saved rule")}},xn=t=>{gt.current&&clearTimeout(gt.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=We.current;s!==null&&(gt.current=setTimeout(()=>{const{rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(!h)return;const M=l[s],H=m[s];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const J=(G.variants??[])[a]?.rule;if(bt(J,S,i)){const Se=J?.__resolveType??"",Ue=S[Se],Xe=typeof Ue?.name=="string"?Ue.name:Se,{__resolveType:rt,...Ze}=t;je.mutate({blockKey:Se,data:yt(rt??"",Ze,Xe)},{onSuccess:()=>b?.(),onError:ot=>te.error(`Save failed: ${ot.message}`)});return}const ee=Pn(G,a,t),Re=[...l];Re[s]=dt(M,H,ee);const qe=Nt(S,h,Re,ne,V);je.mutate({blockKey:h,data:qe},{onSuccess:()=>b?.(),onError:Se=>te.error(`Save failed: ${Se.message}`)})},rn))},Qs=t=>{pe(t),z({}),xn(t?{__resolveType:t}:{__resolveType:Kn})},Xs=t=>{const s=t;z(s);const a=Ce?{__resolveType:Ce,...s}:{...s};xn(a)},Zs=async t=>{Et();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(s===null||!h)return;const M=l[s],H=m[s];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const xe=G.variants??[],J=wt(xe[a]?.rule,S,i),ee=Lt(t),Re=Pn(G,a,ee),qe=[...l];qe[s]=dt(M,H,Re);const Se=Nt(S,h,qe,ne,V),Ue={...S,[h]:Se},{resolveType:Xe,formValue:rt}=kt(ee,Ue,i??void 0);pe(Xe),z(rt);try{await je.mutateAsync({blockKey:h,data:Se}),J&&J!==t&&await _t(J,Ue),b?.()}catch(Ze){te.error(Ze instanceof Error?Ze.message:"Could not apply saved rule")}};if(!ke&&!ze)return n.jsxs("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:["No page found for ",g]});if(ke&&!Wt)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:"Global block not found"});const st=c!==null?Te[c]??null:null,_n=c!==null?Y[c]:null,jn=_n&&st?.isMultivariate?Je(_n,st):null,lt=jn?Cn(jn,et):[],en=Math.min(ue,Math.max(lt.length-1,0)),Kt=lt[en]??null,ct=st?.isMultivariate===!0,kn=c!==null&&st!==null,jt=kn&&(ct||!!(Qt&&de)),ea=jt&&!ke&&st?.isSavedBlock===!0,at=ke||ea,ta=ke?mn:st?.label??"",wn=Ce&&i?$t(Ce,i):null,tn=jt&&(!ke||fe.length>0)?ke?[mn,...fe]:[ze.name,st.label,...ct&&Kt?[Kt.label]:[],...fe]:[],na=ce&&ze?[ze.name,"SEO",...Ke]:[],Nn=ce?na:at?tn.length>0?tn:[ta]:tn,Rn=()=>{if(!_)return;const t=o[_],s=za(t.sections,Y);if(!s)return;const a=Ha(s);je.mutate({blockKey:_,data:{...t,sections:s}},{onSuccess:()=>{K(a),T(null),P(null),E(null),A([]),U(null),W(null)},onError:l=>te.error(`Save failed: ${l.message}`)})},nn=(t,s,a)=>{if(!_)return;const l=o[_],m=l.sections;if(!m||typeof m!="object"||Array.isArray(m))return;const S=m;if(!Array.isArray(S.variants))return;const h=t([...S.variants]);if(!h)return;const V=tr(S,h),ne={...o,[_]:{...l,sections:V}};je.mutate({blockKey:_,data:ne[_]},{onSuccess:()=>{s?.(),a&&_t(a,ne)},onError:M=>te.error(`Save failed: ${M.message}`)})},sa=t=>{L(null),K(t),T(null),P(null),E(null),A([]);const s=$e[t]?.rule,{resolveType:a,formValue:l}=kt(s,o??{},i??void 0);W(a),U(l),hn($e.map(m=>({rule:m.rule})),t)},aa=(t,s)=>{if(t===s)return;let a=De;De===t?a=s:t<De&&s>=De?a=De-1:t>De&&s<=De&&(a=De+1),K(a);const l=Dt($e.map(m=>({rule:m.rule})),t,s);hn(l,a),nn(m=>Dt(m,t,s))},ra=t=>{const s=$e[t]?.rule,a=wt(s,o??{},i??void 0);nn(l=>l.length<=1?null:(l.splice(t,1),l),()=>{$e.length-1===1?K(0):t<De?K(De-1):t===De&&K(Math.max(0,t-1)),T(null),P(null),E(null),A([]),U(null),W(null)},a)},oa=t=>{nn(s=>ar(s,t),()=>{K(t+1),T(null),P(null),E(null),A([]),U(null),W(null)})},ia=async(t,s)=>{Et();const a=We.current.activePageKey,l=We.current.decofile;if(!a)return;const m=l[a],S=m.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],ne=V[t];if(!ne?.rule||typeof ne.rule!="object"){te.error("This variant has no matcher rule to rename.");return}const M=ne.rule,H=s.trim();Ct(!0);try{if(!H){if(!bt(M,l,i)){L(null);return}const qe=M.__resolveType??"";V[t]={...ne,rule:An(M,l,i)};const Se={...l,[a]:{...m,sections:{...h,variants:V}}};await je.mutateAsync({blockKey:a,data:Se[a]}),await _t(qe,Se),L(null),b?.();return}const G=Mn(M,l,i);if(!G){te.error("Could not read this variant's matcher rule.");return}if(G.blockKey){await je.mutateAsync({blockKey:G.blockKey,data:yt(G.resolveType,G.data,H)}),L(null),b?.();return}const xe=sn(H),J=an(xe,l);if(J){te.error(J);return}const ee=yt(G.resolveType,G.data,H);let Re=null;try{await je.mutateAsync({blockKey:xe,data:ee}),Re=xe,V[t]={...ne,rule:Lt(xe)},await je.mutateAsync({blockKey:a,data:{...m,sections:{...h,variants:V}}}),Re=null}catch(qe){throw Re&&await Ht.mutateAsync({blockKey:Re}).catch(()=>{}),qe}L(null),te.success(`Saved matcher as global block "${H}"`),b?.()}catch(G){te.error(G instanceof Error?G.message:"Failed to rename variant")}finally{Ct(!1)}},la=async(t,s)=>{Et();const{selectedSectionIndex:a,rawSections:l,parsedSections:m,decofile:S,activePageKey:h,pageVariants:V,variantIndex:ne}=We.current;if(a===null||!h)return;const M=l[a],H=m[a];if(!M||!H?.isMultivariate)return;const G=Je(M,H);if(!G)return;const xe=G.variants??[],J=xe[t];if(!J?.rule||typeof J.rule!="object"){te.error("This variant has no matcher rule to rename.");return}const ee=J.rule,Re=s.trim();Ct(!0);const qe=async Se=>{const Ue={...G,variants:Se},Xe=[...l];Xe[a]=dt(M,H,Ue);const rt=Nt(S,h,Xe,ne,V);return await je.mutateAsync({blockKey:h,data:rt}),{...S,[h]:rt}};try{if(!Re){if(!bt(ee,S,i)){F(null);return}const ot=ee.__resolveType??"",Vn=[...xe];Vn[t]={...J,rule:An(ee,S,i)};const pa=await qe(Vn);await _t(ot,pa),F(null),b?.();return}const Se=Mn(ee,S,i);if(!Se){te.error("Could not read this variant's matcher rule.");return}if(Se.blockKey){await je.mutateAsync({blockKey:Se.blockKey,data:yt(Se.resolveType,Se.data,Re)}),F(null),b?.();return}const Ue=sn(Re),Xe=an(Ue,S);if(Xe){te.error(Xe);return}const rt=yt(Se.resolveType,Se.data,Re);let Ze=null;try{await je.mutateAsync({blockKey:Ue,data:rt}),Ze=Ue;const ot=[...xe];ot[t]={...J,rule:Lt(Ue)},await qe(ot),Ze=null}catch(ot){throw Ze&&await Ht.mutateAsync({blockKey:Ze}).catch(()=>{}),ot}F(null),te.success(`Saved matcher as global block "${Re}"`),b?.()}catch(Se){te.error(Se instanceof Error?Se.message:"Failed to rename variant")}finally{Ct(!1)}},Dn=()=>{St()},ca=t=>{Ve(t),Xt({inner:t})},ua=t=>{Be(t),Xt({raw:t})},da=()=>{Ve(null),Le([])},ma=()=>Ae(t=>t+1),fa=t=>{if(ce){if(t===0){zt.flush(),Ne(!1),Ve(null),Be(void 0),Le([]),Ae(a=>a+1),C?.();return}if(t===1){Le([]),Ae(a=>a+1);return}Le(Ke.slice(0,t-1)),Ae(a=>a+1);return}if(ke){A(fe.slice(0,t)),$(a=>a+1);return}if(t===0){Dn();return}if(t===1){A([]),$(a=>a+1);return}if(ct&&t===2){A([]),$(a=>a+1);return}const s=ct?2:1;A(fe.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:at||jt||ce?n.jsxs("div",{className:Pe("border-b px-3 py-2.5",at&&"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:[!ke&&Pt&&tt&&n.jsxs("button",{type:"button",onClick:Dn,title:`Editing in variant: ${tt.label}`,className:Pe("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",ro),children:[n.jsx(un,{rule:Rt(tt.rule,o??{},i??void 0),matchers:Mt}),n.jsx("span",{className:"max-w-[160px] truncate",children:tt.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Nn.map((t,s)=>{const a=s===Nn.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Wn,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>fa(s),title:t,className:Pe("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?at?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":at?"text-foreground/80":"text-muted-foreground",at?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${s}`)})}),at&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(dr,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(pt,{side:"bottom",className:"max-w-[260px]",children:"A global section is a reusable block shared across your site. Editing it here updates it everywhere it's used."})]}),kn&&!ct&&!st?.isHidden&&_&&n.jsx(zn,{onClick:()=>Zt()})]}),at&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:"This is a global section. Changes apply everywhere this section is used across your site."})]}):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(io,{pageKey:_,initialName:ze.name,initialPath:ze.path,onFieldChange:As})}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>Ne(!0),children:n.jsx(cr,{size:14})})}),n.jsx(pt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ye,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>N&&_?N(_):I(!0),children:n.jsx(ur,{size:14})})}),n.jsx(pt,{side:"bottom",children:"View JSON"})]}),n.jsx(zn,{onClick:Rn})]})}),Pt&&!jt&&!ce&&_&&n.jsx(so,{listKey:_,variants:$e,activeIndex:De,decofile:o??{},meta:i,matchers:Mt,onSelect:sa,onReorder:aa,onRename:L,onDuplicate:oa,onDelete:ra,onAdd:Rn}),ce?n.jsx(Ft,{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:Tt&&_?n.jsx(Tr,{rawSeo:Yt,innerSeo:fn,defaultResolveType:Rs,seoSchema:Ds,activeResolveType:Jt,seoTypeOptions:Ns,formResetKey:Ie,siteDefaultSeo:Vs,onBreadcrumbChange:Le,onPersistRaw:ua,onInnerChange:ca,onClearForm:da,onBumpFormKey:ma}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):jt?n.jsxs(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ct&&lt.length>0&&n.jsxs(n.Fragment,{children:[n.jsx($a,{listKey:`${_??""}:${c??""}`,variants:lt.map((t,s)=>({index:s,label:t.label})),selectedIndex:en,onSelect:Fs,onRename:F,onDuplicate:zs,onDelete:Is,onRemoveAll:Us,onReorder:Hs,onAdd:()=>Zt()}),ct&&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:"Variant rule"}),n.jsx(Tn,{currentRt:Ce??"",currentLabel:Bt(Kt?.rule,o??{},et,i??void 0),currentGlobalKey:wt(Kt?.rule,o??{},i??void 0)??void 0,matchers:Mt,globals:Sn,onSelect:Qs,onSelectGlobal:Zs}),wn&&R&&n.jsx("div",{className:"pt-1",children:n.jsx(Fn,{schema:wn,value:R,onChange:Xs,meta:i??void 0,decofile:o,onSaveReferencedBlock:Vt,sandbox:At},`${c??"none"}:${en}:${Ce??""}`)})]})]}),n.jsx(In,{activeSchema:Qt,formValue:de,formResetKey:_e,onFormChange:gn,onBreadcrumbChange:A,breadcrumbPath:fe,emptyMessage:"No editable fields for this variant.",meta:i,decofile:o,onSaveReferencedBlock:Vt,sandbox:At})]}):ke?n.jsx(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(In,{activeSchema:Qt,formValue:de,formResetKey:_e,onFormChange:gn,onBreadcrumbChange:A,breadcrumbPath:fe,emptyMessage:"No editable fields for this global block.",meta:i,decofile:o,onSaveReferencedBlock:Vt,sandbox:At})}):n.jsxs(Ft,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&re!==null&&n.jsxs("div",{className:Pe("px-3 border-b",q?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ie(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":q,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),q?n.jsx(ir,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(rr,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),q&&n.jsxs("div",{className:Pe("space-y-3",xt&&"pointer-events-none opacity-50"),children:[n.jsx(Tn,{currentRt:re,currentLabel:Bt(tt?.rule,o??{},et,i??void 0),currentGlobalKey:wt(tt?.rule,o??{},i??void 0)??void 0,matchers:Mt,globals:Sn,onSelect:qs,onSelectGlobal:Js}),bn&&we&&n.jsx("div",{className:"space-y-3",children:n.jsx(Fn,{schema:bn,value:we,onChange:Ys,meta:i??void 0,decofile:o,onSaveReferencedBlock:Vt,sandbox:At},`${De}:${re??""}`)})]})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(qr,{listKey:`${_??""}-${De}`,rawSections:Y,sections:Te,meta:i,selectedIndex:c,onSelect:Ps,onReorder:Ms,onDelete:Es,onDuplicate:Ks,onMakeReusable:ae,onToggleHidden:$s,onToggleLazy:Os,onAddVariant:Zt,onDetach:Bs,onAddSection:()=>ve(!0),canAddSection:Ws})})]}),n.jsx(Oa,{open:ge!==null,onOpenChange:t=>{t||ae(null)},defaultBlockId:ge!==null?sn(Te[ge]?.label??""):"",isPending:je.isPending,onSubmit:Gs}),d&&n.jsx(Er,{open:le,onOpenChange:ve,meta:i,decofile:o,previewBaseUrl:d,onSelect:Ls}),ye&&_&&o&&n.jsx(Ba,{open:ye,onOpenChange:I,pageKey:_,decofile:o}),X!==null&&n.jsx(Bn,{open:!0,initialName:bt($e[X]?.rule,o??{},i??void 0)?Bt($e[X]?.rule,o??{},et,i??void 0):"",autoLabel:et(Rt($e[X]?.rule,o??{},i??void 0)),isPending:xt,onSubmit:async t=>{await ia(X,t)},onOpenChange:t=>{!t&&!xt&&L(null)}}),O!==null&&n.jsx(Bn,{open:!0,initialName:bt(lt[O]?.rule,o??{},i??void 0)?Bt(lt[O]?.rule,o??{},et,i??void 0):"",autoLabel:et(Rt(lt[O]?.rule,o??{},i??void 0)),isPending:xt,onSubmit:async t=>{await la(O,t)},onOpenChange:t=>{!t&&!xt&&F(null)}})]})}export{Gl as SectionsEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Dq-MrEnN.js","assets/index-BHkBXhV0.js","assets/index-GahqUWc8.css","assets/XCircle-B9_OLXTb.js","assets/CheckCircle-p0O3wB_Y.js","assets/Settings02-DXB9q0iO.js","assets/use-mcp-client-CKeOAxYW.js","assets/auth-9yXjZraX.js","assets/useInfiniteQuery-Fqo8ShVg.js","assets/use-infinite-scroll-CDO2Ct0t.js","assets/studio-tools-D0e93l39.js","assets/badge-vPySVXPf.js","assets/input-Bu2wOv0I.js","assets/dropdown-menu-Byix_6pc.js","assets/ChevronUp-B4RIEAN8.js","assets/ChevronRight-Cepv8z09.js","assets/DotsVertical-BFFxg8UG.js","assets/table-EZy9WPu1.js","assets/toggle-group-DDhKVine.js","assets/use-view-mode-BVyyJ9PY.js","assets/use-mobile-a5Hrfmrd.js","assets/FilterLines-DsHV7fvW.js","assets/Globe01-Bezpb3Ky.js","assets/SearchMd-DdqVVqfH.js","assets/dialog-BJ02tcBq.js","assets/X-Ct1DS1Iw.js","assets/AlertCircle-ByTXkYNI.js","assets/Upload01-C1fp_vNV.js","assets/alert-dialog-iFQJsxnA.js","assets/card-DY_MHU46.js","assets/Trash01-C6IjS63F.js","assets/label-BTIw2INj.js","assets/select-B3rcyOl9.js","assets/tooltip-DZabSBoT.js","assets/ChevronDown-DRuvsGxX.js","assets/switch-DavcV3JF.js","assets/textarea-jURA3g-f.js","assets/checkbox-AQTpliB1.js","assets/Eye-Bo7-1RF1.js","assets/LinkExternal01-DOxfhY3w.js","assets/use-copy-jr-NBNeX.js","assets/Key01-D3DEaNZK.js","assets/Plus-DGbYQT29.js","assets/mcp-oauth-BgpoWtrX.js","assets/Play-HcwDsAmD.js"])))=>i.map(i=>d[i]);
2
- import{c as m,b as n,e as c,j as t,i as p,r as l,am as f}from"./index-BHkBXhV0.js";import{R as u}from"./require-capability-CeQNVfO-.js";import"./use-capability-DUUcgzLu.js";import"./access-gate-CgXbiECq.js";import"./capability-load-error-R_U0MZpN.js";const g=l.lazy(()=>f(()=>import("./registry-layout-Dq-MrEnN.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])));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(p,{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-CDO2Ct0t.js";import{cJ as i}from"./index-BHkBXhV0.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-CDO2Ct0t.js";import{cJ as u,aC as n}from"./index-BHkBXhV0.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};