decocms 4.92.0 → 4.92.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/client/assets/{AlertCircle-BtNVN6lT.js → AlertCircle-Cvc_10Uv.js} +1 -1
  2. package/dist/client/assets/{AreaChart-G7ca0KYF.js → AreaChart-D4PMIsMV.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-SfmKmvG1.js → ArrowUp-Dq6JgHsq.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-DPmhEMyl.js → ArrowUpRight-DgI9ki5h.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-Dqg_7udX.js → CheckCircle-B5oIKeSF.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-CtpYRw0N.js → ChevronDown-D_W2bIqv.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DQFD5vOs.js → ChevronRight-BnIvJcIZ.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-Bu3KYaYp.js → ChevronUp-Ci-XiWb6.js} +1 -1
  9. package/dist/client/assets/{Copy01-B4AQ9voq.js → Copy01-Q4xZmPKp.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-4fMK5hdE.js → DotsVertical-Bcfqjiks.js} +1 -1
  11. package/dist/client/assets/{Eye-7UpR5EsV.js → Eye-BuukW7MV.js} +1 -1
  12. package/dist/client/assets/{FilterLines-jo0eHglf.js → FilterLines-Do4UgzmV.js} +1 -1
  13. package/dist/client/assets/{Globe01-BEuNOgWE.js → Globe01-qjaQZUfN.js} +1 -1
  14. package/dist/client/assets/{Globe04-ezZLp1FH.js → Globe04-CqIGMVDi.js} +1 -1
  15. package/dist/client/assets/{HardDrive-Bx0yMIUr.js → HardDrive-DrLvUMYg.js} +1 -1
  16. package/dist/client/assets/{Image01-BemfbeRy.js → Image01-BWotytID.js} +1 -1
  17. package/dist/client/assets/{Key01-wlopeCn8.js → Key01-BPZUhUcV.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-DgCOjEX2.js → LayoutLeft-COV7zlIC.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-DjHN0DVc.js → LinkExternal01-CyMOdGfe.js} +1 -1
  20. package/dist/client/assets/{Monitor01-CvVGHJ2u.js → Monitor01-dLHbd0CB.js} +1 -1
  21. package/dist/client/assets/{Package-Dkg7P-qU.js → Package-B7Qii2Tl.js} +1 -1
  22. package/dist/client/assets/{Palette-DnEGtR5r.js → Palette-tVNOj7Ym.js} +1 -1
  23. package/dist/client/assets/{Play-pFWdRfmo.js → Play-BE8nTtBp.js} +1 -1
  24. package/dist/client/assets/{Plus-BhgoGeba.js → Plus-5VWQJEkS.js} +1 -1
  25. package/dist/client/assets/{SearchLg-D7iDyCtR.js → SearchLg-BiyFAMx0.js} +1 -1
  26. package/dist/client/assets/{SearchMd-DU7sZsGX.js → SearchMd-LbMkvaPD.js} +1 -1
  27. package/dist/client/assets/{Settings02-Kn3GUgY3.js → Settings02-CU2rilKq.js} +1 -1
  28. package/dist/client/assets/{Shield01-BF7nZR91.js → Shield01-7KT2UKvg.js} +1 -1
  29. package/dist/client/assets/{Star01-UbWAuLRP.js → Star01-D4LxiizA.js} +1 -1
  30. package/dist/client/assets/{Stars01-CKHcD24W.js → Stars01-HAbkffzq.js} +1 -1
  31. package/dist/client/assets/{Stars02-ByALJtc-.js → Stars02-CdgckoDr.js} +1 -1
  32. package/dist/client/assets/{Sun-ERdj2Ruh.js → Sun-Ca3eslhz.js} +1 -1
  33. package/dist/client/assets/{SwitchHorizontal01-B2hcs1rw.js → SwitchHorizontal01-DNcPUv7P.js} +1 -1
  34. package/dist/client/assets/{Tool01-DoTp9Ymb.js → Tool01-DBXzU6aR.js} +1 -1
  35. package/dist/client/assets/{Tool02-f6hCEEx5.js → Tool02-rl8XhSPG.js} +1 -1
  36. package/dist/client/assets/{Trash01-Dgm4FHaX.js → Trash01-DxXosbkh.js} +1 -1
  37. package/dist/client/assets/{TrendUp01-DdLolkHU.js → TrendUp01-BmzCTIbp.js} +1 -1
  38. package/dist/client/assets/{Upload01-DPgiWRF2.js → Upload01-CXsTipbe.js} +1 -1
  39. package/dist/client/assets/{User01-4oxhkWpc.js → User01-CZgThaZQ.js} +1 -1
  40. package/dist/client/assets/{Users01-CbDWoQDz.js → Users01-IdyAszrF.js} +1 -1
  41. package/dist/client/assets/{Users03-DQDFsIZA.js → Users03-3HXi1aia.js} +1 -1
  42. package/dist/client/assets/{X-BJznV24Z.js → X-CLG08ht8.js} +1 -1
  43. package/dist/client/assets/{XCircle-Mn7Ozb-Q.js → XCircle-pZ6nD22L.js} +1 -1
  44. package/dist/client/assets/{XClose-BYGQndp2.js → XClose-BYq2BBpT.js} +1 -1
  45. package/dist/client/assets/{Zap-SMAt3bB0.js → Zap-C6tkfs5m.js} +1 -1
  46. package/dist/client/assets/{ZapSquare-Chem9D1s.js → ZapSquare-DdKvM81Z.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-znim4joS.js → ZoomOut-DAAhtu2Z.js} +1 -1
  48. package/dist/client/assets/{access-gate-CXUaT8Bg.js → access-gate-B8spscer.js} +1 -1
  49. package/dist/client/assets/add-section-modal-De0GxBTc.js +1 -0
  50. package/dist/client/assets/agent-icon-BIj6WxKp.js +1 -0
  51. package/dist/client/assets/{agents-list-CxMjWnYV.js → agents-list-Cc-986WT.js} +1 -1
  52. package/dist/client/assets/{ai-providers-V_ToPNx9.js → ai-providers-Ck_-NP1I.js} +1 -1
  53. package/dist/client/assets/{alert-DCHONWz2.js → alert-CI7flGPF.js} +1 -1
  54. package/dist/client/assets/{alert-dialog-9jx8jzEO.js → alert-dialog-D2oa47X8.js} +1 -1
  55. package/dist/client/assets/{app-editor-B5Y1RFnh.js → app-editor-Cn-tT-ug.js} +1 -1
  56. package/dist/client/assets/{auth-wA89jw5z.js → auth-Kymy4xkz.js} +1 -1
  57. package/dist/client/assets/{auth-catchall-gpLRqkDV.js → auth-catchall-B0gQyYvu.js} +1 -1
  58. package/dist/client/assets/{auth-entry-ByL0Zb6R.js → auth-entry-Crrd0hkP.js} +1 -1
  59. package/dist/client/assets/{auth-split-layout-BoMjBMXD.js → auth-split-layout-BO4l9cCp.js} +1 -1
  60. package/dist/client/assets/{authenticate-and-persist-oauth-CO2Dkq5Q.js → authenticate-and-persist-oauth-DAAmwSgR.js} +1 -1
  61. package/dist/client/assets/{automation-list-row-CZVotwYb.js → automation-list-row-D-cT9rxb.js} +1 -1
  62. package/dist/client/assets/{automation-runs-oeg4SZH2.js → automation-runs-_XAGR1m2.js} +1 -1
  63. package/dist/client/assets/{automations-kL1ULwau.js → automations-Bh1OF4xf.js} +1 -1
  64. package/dist/client/assets/{autosend-DFAdUSMh.js → autosend-D-JHJKNK.js} +1 -1
  65. package/dist/client/assets/{avatar-D2faXu9B.js → avatar-1o2VQKTj.js} +1 -1
  66. package/dist/client/assets/{badge-C22fJvJ9.js → badge-dHBIjKyY.js} +1 -1
  67. package/dist/client/assets/{block-document-F7Fz2w43.js → block-document-nemKITlN.js} +1 -1
  68. package/dist/client/assets/{brand-context-CwktNs2n.js → brand-context-DSZ7O9_c.js} +1 -1
  69. package/dist/client/assets/{buckets-BqmVHHty.js → buckets-BDkQllTH.js} +1 -1
  70. package/dist/client/assets/{bulk-category-panel-DEnhQv4x.js → bulk-category-panel-Cn58Io0u.js} +1 -1
  71. package/dist/client/assets/{calendar-C55pfZGp.js → calendar-C9b1I5Xh.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-D-GHd7kt.js → capability-load-error-DI4Ww9LY.js} +1 -1
  73. package/dist/client/assets/{card-BZY4DqkC.js → card-CoG27DVs.js} +1 -1
  74. package/dist/client/assets/category-editor-BmpcIx1s.js +1 -0
  75. package/dist/client/assets/{chat-context-8zti4wkh.js → chat-context-glCfFIWX.js} +1 -1
  76. package/dist/client/assets/{checkbox-DvRekaoI.js → checkbox-BOAToSlJ.js} +1 -1
  77. package/dist/client/assets/{cli-auth-success-BwJqzavM.js → cli-auth-success-CqzQrYb8.js} +1 -1
  78. package/dist/client/assets/collection-detail-I0O1ME9a.js +1 -0
  79. package/dist/client/assets/{collection-display-button-Su2JKz2G.js → collection-display-button-Bw2bFMNm.js} +1 -1
  80. package/dist/client/assets/{collection-search-B4ji9AjC.js → collection-search-DuPY-s4R.js} +1 -1
  81. package/dist/client/assets/{collection-table-wrapper-DhT1Pcxz.js → collection-table-wrapper-BOKHq7cp.js} +1 -1
  82. package/dist/client/assets/{collection-tabs-DTWzD8v3.js → collection-tabs-CcN3J070.js} +1 -1
  83. package/dist/client/assets/{command-BeMVvNyF.js → command-BB6Oir8o.js} +1 -1
  84. package/dist/client/assets/{commerce-onboarding-wd060R0w.js → commerce-onboarding-DejhsIyX.js} +1 -1
  85. package/dist/client/assets/{companions-core-D6ZCzGBn.js → companions-core-C-kZqiTC.js} +1 -1
  86. package/dist/client/assets/{connect-desktop-dialog-ekgjUng_.js → connect-desktop-dialog-CUGIAU17.js} +1 -1
  87. package/dist/client/assets/{connection-card-7Jlr5ou8.js → connection-card-7gBTmFox.js} +1 -1
  88. package/dist/client/assets/{connection-detail-CVc89tOZ.js → connection-detail-BB0rtYjx.js} +1 -1
  89. package/dist/client/assets/{connection-form-helpers-BT4sViBb.js → connection-form-helpers-CJKig9hy.js} +1 -1
  90. package/dist/client/assets/{connections-U8gRLumN.js → connections-E7mextbc.js} +1 -1
  91. package/dist/client/assets/{decopilot-sse-pool-us-M5mS8.js → decopilot-sse-pool-DEJZ4gJu.js} +1 -1
  92. package/dist/client/assets/{dialog-B_MtszrV.js → dialog-ChJw5xnr.js} +1 -1
  93. package/dist/client/assets/{domain-settings-C_FTyjE2.js → domain-settings-B6Co6UtW.js} +1 -1
  94. package/dist/client/assets/{drawer-BsQ2VY2t.js → drawer-_WfOhyRU.js} +1 -1
  95. package/dist/client/assets/{dropdown-menu-CCf9b-Ue.js → dropdown-menu-B7HOgSu8.js} +1 -1
  96. package/dist/client/assets/{empty-state-uOmVY7AV.js → empty-state-kSEyPCAz.js} +1 -1
  97. package/dist/client/assets/{extract-connection-data-B1PMDhhA.js → extract-connection-data-oUFnwuwD.js} +1 -1
  98. package/dist/client/assets/{file-explorer-Cq-sGwnZ.js → file-explorer-CnTvRnvj.js} +1 -1
  99. package/dist/client/assets/{file-type-icon-DLDSmTyC.js → file-type-icon-CeQVzqDu.js} +1 -1
  100. package/dist/client/assets/{files-CCiFVnRx.js → files-CCxNqj9u.js} +1 -1
  101. package/dist/client/assets/{form-CBH5rcB6.js → form-BUM27CLj.js} +1 -1
  102. package/dist/client/assets/{general-DnViTnDI.js → general-BjF2DfAd.js} +1 -1
  103. package/dist/client/assets/{github-repo-picker-DWdab-4Y.js → github-repo-picker-4TIPzYjR.js} +1 -1
  104. package/dist/client/assets/{hooks-CQZHp8Dt.js → hooks-CJqrF4BQ.js} +1 -1
  105. package/dist/client/assets/{index-BfunopXO.js → index-BHqz24vm.js} +1 -1
  106. package/dist/client/assets/index-B_qFi_-_.js +519 -0
  107. package/dist/client/assets/{index-CodlhltM.js → index-BderZvBT.js} +1 -1
  108. package/dist/client/assets/{index-F-zmfSqw.js → index-Bj_MaVUP.js} +1 -1
  109. package/dist/client/assets/{index-QeeIyPD-.js → index-C8rlFaFO.js} +3 -3
  110. package/dist/client/assets/{index-d_66hXvz.js → index-CHWLrEqX.js} +1 -1
  111. package/dist/client/assets/{index-CmemNDJU.js → index-CQwS9Ezr.js} +1 -1
  112. package/dist/client/assets/{index-DWmvNX0u.js → index-CR0rMz7E.js} +1 -1
  113. package/dist/client/assets/{index-C1alCXBf.js → index-CWGwstEz.js} +3 -3
  114. package/dist/client/assets/{index-CAK7n_FO.js → index-CWlzI7M3.js} +2 -2
  115. package/dist/client/assets/{index-hhU2F3WQ.js → index-D6ixbRYa.js} +1 -1
  116. package/dist/client/assets/{index-DWS4NoqH.js → index-DVotD2Sm.js} +1 -1
  117. package/dist/client/assets/{index-B-kvMeNd.js → index-DyXd0E61.js} +1 -1
  118. package/dist/client/assets/{index-C_AuPrej.js → index-WDnleR3r.js} +1 -1
  119. package/dist/client/assets/{index-redirect-BRH-3ZCu.js → index-redirect-CZuVtK8Y.js} +1 -1
  120. package/dist/client/assets/{input-ksjqlSwm.js → input-CWExGH7j.js} +1 -1
  121. package/dist/client/assets/{integration-icon-nHJfLZDJ.js → integration-icon-BXEpLE2r.js} +1 -1
  122. package/dist/client/assets/{invite-member-dialog-C6cxYu7U.js → invite-member-dialog-Cj35CA_W.js} +1 -1
  123. package/dist/client/assets/{label-B8xrTNKP.js → label-BbLr7wPS.js} +1 -1
  124. package/dist/client/assets/{layout-BJDwPfq0.js → layout-yKsHfaYu.js} +1 -1
  125. package/dist/client/assets/{login-DlJSNcQs.js → login-g6Yf2A86.js} +1 -1
  126. package/dist/client/assets/{mcp-oauth-C_zNkYXB.js → mcp-oauth-B2KaqQoI.js} +1 -1
  127. package/dist/client/assets/{members-BM7Uqu1Q.js → members-yX31omZQ.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-CAwKA7tN.js → monaco-editor-CJKnQM68.js} +1 -1
  129. package/dist/client/assets/{monitoring-stats-row-CC7F0Phb.js → monitoring-stats-row-DTqvYy56.js} +1 -1
  130. package/dist/client/assets/{multi-select-5dvonfKB.js → multi-select-C9lH7lr4.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-8qeP_w61.js → oauth-callback-DPu8Jv31.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-ai-provider-BmIt9KYD.js → oauth-callback-ai-provider-DXhgROtl.js} +1 -1
  133. package/dist/client/assets/{onboarding-Cg0DtUJd.js → onboarding-b8UESLyK.js} +1 -1
  134. package/dist/client/assets/{org-install-CTi6z1kk.js → org-install-DFTAzRMO.js} +1 -1
  135. package/dist/client/assets/{org-layout-tdajFZ6u.js → org-layout-BbjFIQ-M.js} +1 -1
  136. package/dist/client/assets/{organization-choice-GMUL1NeO.js → organization-choice-DjVV9MCZ.js} +1 -1
  137. package/dist/client/assets/{orgs-6ZiXdiJ2.js → orgs-B1jGApXW.js} +1 -1
  138. package/dist/client/assets/{page-seo-form-CGZUz0ph.js → page-seo-form-DeD_2a8R.js} +1 -1
  139. package/dist/client/assets/page-seo-sheet-BWnl0tVz.js +1 -0
  140. package/dist/client/assets/{popover-3l0deoOx.js → popover-kOy_asOa.js} +1 -1
  141. package/dist/client/assets/post-editor-BZQdhdwo.js +1 -0
  142. package/dist/client/assets/{primitives-DGvfP5N2.js → primitives-Cyz_TV23.js} +1 -1
  143. package/dist/client/assets/{profile-BjX7gD7e.js → profile-D5HUGTyF.js} +1 -1
  144. package/dist/client/assets/project-app-view-Bsaa-6LK.js +1 -0
  145. package/dist/client/assets/record-editor-Bjgurgfp.js +1 -0
  146. package/dist/client/assets/redirect-editor-DnT7ef0C.js +1 -0
  147. package/dist/client/assets/registry-DHjmo34d.js +2 -0
  148. package/dist/client/assets/{registry-layout-50Nc58LU.js → registry-layout-JPmaR-tb.js} +1 -1
  149. package/dist/client/assets/{reports-CMuw_Eim.js → reports-Btc-1oN-.js} +1 -1
  150. package/dist/client/assets/{require-capability-BMCPfqFj.js → require-capability-BBszzyH9.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-BON6U2A_.js → required-auth-layout-CR5_YK6W.js} +1 -1
  152. package/dist/client/assets/{reset-password-CuQp3WxW.js → reset-password-u9Nbv0bS.js} +1 -1
  153. package/dist/client/assets/{roles-flCogJRV.js → roles-B7bUsR2h.js} +1 -1
  154. package/dist/client/assets/{search-input-UOEApV9M.js → search-input-B6akQV4Y.js} +1 -1
  155. package/dist/client/assets/{secrets-CUe-abV1.js → secrets-Dsj3iy5H.js} +1 -1
  156. package/dist/client/assets/sections-editor-CvIj0bPs.js +2 -0
  157. package/dist/client/assets/{select-BK6Fwx47.js → select-4-vdHbLT.js} +1 -1
  158. package/dist/client/assets/{select-model-FeZ2YvBx.js → select-model-CVcEVUsi.js} +1 -1
  159. package/dist/client/assets/{self-tool-result-BblMArR-.js → self-tool-result-Cwdk21K_.js} +1 -1
  160. package/dist/client/assets/{seo-editor-D48-7A97.js → seo-editor-B0_qMHl0.js} +1 -1
  161. package/dist/client/assets/{settings-layout-DEiZmbv4.js → settings-layout-BURikhtl.js} +1 -1
  162. package/dist/client/assets/{settings-section--wnksRdd.js → settings-section-DxqR9iml.js} +1 -1
  163. package/dist/client/assets/{shell-controls-6ZpSpxU3.js → shell-controls-DYq3DSuV.js} +1 -1
  164. package/dist/client/assets/{shell-layout-CGSn6NPr.js → shell-layout-DvMdeukx.js} +1 -1
  165. package/dist/client/assets/{sidebar-BjCGlNJL.js → sidebar-AfeWMY1r.js} +1 -1
  166. package/dist/client/assets/{skeleton-4wAys1SB.js → skeleton-DraYvTQP.js} +1 -1
  167. package/dist/client/assets/{sso-C8y4ysn5.js → sso-DWBNvY6X.js} +1 -1
  168. package/dist/client/assets/{store-EbX-J8BD.js → store-BFhYLhoT.js} +1 -1
  169. package/dist/client/assets/store-registry-C50_5LUp.js +2 -0
  170. package/dist/client/assets/{studio-tools-Dz5m3DDC.js → studio-tools-B3FHZXsQ.js} +1 -1
  171. package/dist/client/assets/{switch-BGTwAogo.js → switch-CyZjNvfZ.js} +1 -1
  172. package/dist/client/assets/{table-FWVzL2nm.js → table-iG6kCmeS.js} +1 -1
  173. package/dist/client/assets/{tabs-BovIXRni.js → tabs-C1LpzuaJ.js} +1 -1
  174. package/dist/client/assets/{textarea-B0BnrQRd.js → textarea-B8dhUfp9.js} +1 -1
  175. package/dist/client/assets/{toggle-group-DvzPCkJs.js → toggle-group-c5TjS6xS.js} +1 -1
  176. package/dist/client/assets/{toolbar-Dde3UP0K.js → toolbar-Daz4jqLs.js} +1 -1
  177. package/dist/client/assets/{toolbar-icon-button-BGzii147.js → toolbar-icon-button-Bbbo7hyv.js} +1 -1
  178. package/dist/client/assets/{tooltip-CfmdP-aL.js → tooltip-DE_gqCm3.js} +1 -1
  179. package/dist/client/assets/{use-ai-providers-UWnZZKKY.js → use-ai-providers-CGzSWtp7.js} +1 -1
  180. package/dist/client/assets/{use-automations-URCauyn7.js → use-automations-Btiu7Z09.js} +1 -1
  181. package/dist/client/assets/{use-autosave-BjhwOY2t.js → use-autosave-DphOvxb9.js} +1 -1
  182. package/dist/client/assets/{use-capability-B2RpFGXs.js → use-capability-BNcFOggs.js} +1 -1
  183. package/dist/client/assets/{use-clock-tick-CI9n9Iqh.js → use-clock-tick-Dw7sAB29.js} +1 -1
  184. package/dist/client/assets/{use-collections-CI5XorIY.js → use-collections-u5tkBX1a.js} +1 -1
  185. package/dist/client/assets/{use-connection-BlWYloF8.js → use-connection-CcmTBTY-.js} +1 -1
  186. package/dist/client/assets/{use-copy-CCSClSvL.js → use-copy-CveeH2p4.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-D97QNssr.js → use-create-virtual-mcp-jvSmQNTU.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-DbO1S1EK.js → use-debounced-autosave-DFle-8Sb.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-DuzsGBjb.js → use-debounced-value-D1xFGN32.js} +1 -1
  190. package/dist/client/assets/{use-deco-credits-Bov6Ef1l.js → use-deco-credits-CV7sw9Em.js} +1 -1
  191. package/dist/client/assets/{use-decopilot-events-CqSDZlRU.js → use-decopilot-events-VInARyiN.js} +1 -1
  192. package/dist/client/assets/{use-delete-connection-B_AyED2-.js → use-delete-connection-DDV7XY4a.js} +1 -1
  193. package/dist/client/assets/{use-deployment-admin-CSBPrawc.js → use-deployment-admin-h9tth1Ey.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-BsBJamST.js → use-file-configs-BEHJ-b8Q.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-Cylb4hyl.js → use-infinite-scroll-BI8YTyTt.js} +1 -1
  196. package/dist/client/assets/{use-join-requests-Cy4mJo9l.js → use-join-requests-V5rMqfIc.js} +1 -1
  197. package/dist/client/assets/{use-mcp-auth-status-D-mrOgSF.js → use-mcp-auth-status-DINFEYgi.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-DXFWWHbs.js → use-mcp-client-PcphUWIj.js} +1 -1
  199. package/dist/client/assets/{use-mcp-tools-ePfAnuof.js → use-mcp-tools-CakNulXp.js} +1 -1
  200. package/dist/client/assets/{use-members-C1OZBryu.js → use-members-JooO5O_z.js} +1 -1
  201. package/dist/client/assets/{use-mobile-CEVETdVq.js → use-mobile-C57pT7o9.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-CflMFlHw.js → use-navigate-to-agent-DVHUkqpb.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-BFFpNQiA.js → use-org-auth-client-C0qPMRhc.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-QrZAqFtN.js → use-org-sso-BaYh30WC.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-CYJSylgX.js → use-organization-roles-BG6jMK7e.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-BpxUnud5.js → use-organization-settings-DBhnNnJm.js} +1 -1
  207. package/dist/client/assets/{use-registry-app-CkuNrX2M.js → use-registry-app-Dyfesgrg.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-DWBXDDYI.js → use-registry-connections-CTtHQqlB.js} +1 -1
  209. package/dist/client/assets/{use-secrets-C8ssS7Ik.js → use-secrets-BYzFSfMf.js} +1 -1
  210. package/dist/client/assets/{use-status-sounds-2UIUBUS4.js → use-status-sounds-DJxvpKl9.js} +1 -1
  211. package/dist/client/assets/{use-t-BKpqHjpb.js → use-t-BeHordU2.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-BEQ3VoIc.js → use-view-mode-C0yNdLzJ.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-D9jFTGjm.js → use-virtual-mcp-BtFe5DoR.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-mNPfD3Pk.js +1 -0
  215. package/dist/client/assets/{useRouterState-d9mo2HNv.js → useRouterState-C6jzqArr.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-DIVSilzv.js +1 -0
  217. package/dist/client/assets/{users-B6WaBMxE.js → users-C0dY9LVq.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-D4S-Oofs.js → variant-calendar-FpbApEV2.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-CQ-IPomp.js → view-mode-toggle-DwdmtuKb.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +2 -2
  222. package/dist/server/server.js +2 -2
  223. package/package.json +1 -1
  224. package/dist/client/assets/add-section-modal-Bu0jJfTp.js +0 -1
  225. package/dist/client/assets/agent-icon-CMi9hXve.js +0 -1
  226. package/dist/client/assets/category-editor-DZf03BWu.js +0 -1
  227. package/dist/client/assets/collection-detail-BCNd0Ifz.js +0 -1
  228. package/dist/client/assets/index-D_TDrkT8.js +0 -519
  229. package/dist/client/assets/page-seo-sheet-DB06C8Zh.js +0 -1
  230. package/dist/client/assets/post-editor-Cf2q6koS.js +0 -1
  231. package/dist/client/assets/project-app-view-CInCPGOf.js +0 -1
  232. package/dist/client/assets/record-editor-C1rBRosQ.js +0 -1
  233. package/dist/client/assets/redirect-editor-DH3saw4e.js +0 -1
  234. package/dist/client/assets/registry-BIMV2dS4.js +0 -2
  235. package/dist/client/assets/sections-editor-BCCsHWJ1.js +0 -2
  236. package/dist/client/assets/store-registry-C4UWjh6m.js +0 -2
  237. package/dist/client/assets/useInfiniteQuery-DvViU0Gq.js +0 -1
  238. package/dist/client/assets/useSuspenseInfiniteQuery-COT_NVJE.js +0 -1
@@ -1 +0,0 @@
1
- import{c as it,r as E,j as e,i as rt}from"./index-QeeIyPD-.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-BjCGlNJL.js";import{m as nt}from"./automation-runs-oeg4SZH2.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CGZUz0ph.js";import{r as xt}from"./index-D_TDrkT8.js";import"./LayoutLeft-DgCOjEX2.js";import"./use-mobile-CEVETdVq.js";import"./X-BJznV24Z.js";import"./tooltip-CfmdP-aL.js";import"./select-BK6Fwx47.js";import"./ChevronUp-Bu3KYaYp.js";import"./ChevronDown-CtpYRw0N.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./use-connection-BlWYloF8.js";import"./use-collections-CI5XorIY.js";import"./use-mcp-client-DXFWWHbs.js";import"./auth-wA89jw5z.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./card-BZY4DqkC.js";import"./table-FWVzL2nm.js";import"./empty-state-uOmVY7AV.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./use-clock-tick-CI9n9Iqh.js";import"./AlertCircle-BtNVN6lT.js";import"./CheckCircle-Dqg_7udX.js";import"./DotsVertical-4fMK5hdE.js";import"./agent-icon-CMi9hXve.js";import"./Tool01-DoTp9Ymb.js";import"./ArrowUp-SfmKmvG1.js";import"./Settings02-Kn3GUgY3.js";import"./Tool02-f6hCEEx5.js";import"./XCircle-Mn7Ozb-Q.js";import"./ArrowUpRight-DPmhEMyl.js";import"./TrendUp01-DdLolkHU.js";import"./ZapSquare-Chem9D1s.js";import"./ZoomOut-znim4joS.js";import"./Users03-DQDFsIZA.js";import"./ChevronRight-DQFD5vOs.js";import"./Stars02-ByALJtc-.js";import"./Copy01-B4AQ9voq.js";import"./Globe01-BEuNOgWE.js";import"./Eye-7UpR5EsV.js";import"./FilterLines-jo0eHglf.js";import"./Star01-UbWAuLRP.js";import"./Globe04-ezZLp1FH.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./HardDrive-Bx0yMIUr.js";import"./Image01-BemfbeRy.js";import"./Key01-wlopeCn8.js";import"./LinkExternal01-DjHN0DVc.js";import"./Monitor01-CvVGHJ2u.js";import"./Sun-ERdj2Ruh.js";import"./Package-Dkg7P-qU.js";import"./Palette-DnEGtR5r.js";import"./Play-pFWdRfmo.js";import"./Plus-BhgoGeba.js";import"./SearchLg-D7iDyCtR.js";import"./SearchMd-DU7sZsGX.js";import"./Shield01-BF7nZR91.js";import"./Stars01-CKHcD24W.js";import"./Trash01-Dgm4FHaX.js";import"./Upload01-DPgiWRF2.js";import"./User01-4oxhkWpc.js";import"./Users01-CbDWoQDz.js";import"./XClose-BYGQndp2.js";import"./Zap-SMAt3bB0.js";import"./use-automations-URCauyn7.js";import"./studio-tools-Dz5m3DDC.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./avatar-D2faXu9B.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CCSClSvL.js";import"./file-type-icon-DLDSmTyC.js";import"./dialog-B_MtszrV.js";import"./tab-id-BijBBRwE.js";import"./hooks-CQZHp8Dt.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-8zti4wkh.js";import"./autosend-DFAdUSMh.js";import"./use-ai-providers-UWnZZKKY.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-CqSDZlRU.js";import"./use-organization-settings-BpxUnud5.js";import"./monaco-editor-CAwKA7tN.js";import"./index-B-kvMeNd.js";import"./index-d_66hXvz.js";import"./calendar-C55pfZGp.js";import"./shell-layout-CGSn6NPr.js";import"./use-t-BKpqHjpb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";import"./integration-icon-nHJfLZDJ.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-G7ca0KYF.js";import"./form-CBH5rcB6.js";import"./label-B8xrTNKP.js";import"./input-ksjqlSwm.js";import"./switch-BGTwAogo.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-CkuNrX2M.js";import"./use-mcp-tools-ePfAnuof.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./dropdown-menu-CCf9b-Ue.js";import"./popover-3l0deoOx.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./companions-core-D6ZCzGBn.js";import"./tabs-BovIXRni.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B0BnrQRd.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./badge-C22fJvJ9.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./checkbox-DvRekaoI.js";import"./skeleton-4wAys1SB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--wnksRdd.js";import"./index-C1alCXBf.js";import"./alert-dialog-9jx8jzEO.js";import"./toolbar-Dde3UP0K.js";import"./use-debounced-value-DuzsGBjb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./github-repo-picker-DWdab-4Y.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BsBJamST.js";import"./automation-list-row-CZVotwYb.js";function ui(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 q=F,z=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,A=m.kind==="site"&&o&&n,B=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 H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==z?(l=e.jsx(mt,{className:"text-sm font-semibold",children:z}),t[13]=z,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]!==$||t[22]!==H||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==B||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]!==A||t[37]!==_?(S=!o||!T&&!A?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):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:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=M,t[24]=v,t[25]=h,t[26]=B,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]=A,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]!==q||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:q,children:f}),t[42]=q,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{ui as SeoSheet};
@@ -1 +0,0 @@
1
- import{c as Y,j as t,B as le}from"./index-QeeIyPD-.js";import{i as ae}from"./AlertCircle-BtNVN6lT.js";import{n as me}from"./LinkExternal01-DjHN0DVc.js";import{aM as pe,h as ne}from"./agent-icon-CMi9hXve.js";import{I as te}from"./input-ksjqlSwm.js";import{L as X}from"./label-B8xrTNKP.js";import{M as ce}from"./multi-select-5dvonfKB.js";import{c as ie,b as de,T as se,a as fe}from"./tabs-BovIXRni.js";import{T as ue}from"./textarea-B0BnrQRd.js";import{v as xe,w as he,x as ge,o as ve,y as je,z as be,I as ye,A as Ce,B as Ne,C as ke}from"./index-D_TDrkT8.js";import{b as Se,T as Pe,a as we}from"./tooltip-CfmdP-aL.js";import{b as _e,a as Be,B as Te}from"./block-document-F7Fz2w43.js";import{u as Ee}from"./use-autosave-BjhwOY2t.js";import{s as T,E as Fe,R as Re,A as Ae}from"./primitives-DGvfP5N2.js";import"./Tool01-DoTp9Ymb.js";import"./ArrowUp-SfmKmvG1.js";import"./Settings02-Kn3GUgY3.js";import"./Tool02-f6hCEEx5.js";import"./XCircle-Mn7Ozb-Q.js";import"./ArrowUpRight-DPmhEMyl.js";import"./TrendUp01-DdLolkHU.js";import"./ZapSquare-Chem9D1s.js";import"./ZoomOut-znim4joS.js";import"./Users03-DQDFsIZA.js";import"./CheckCircle-Dqg_7udX.js";import"./ChevronUp-Bu3KYaYp.js";import"./ChevronDown-CtpYRw0N.js";import"./ChevronRight-DQFD5vOs.js";import"./DotsVertical-4fMK5hdE.js";import"./Stars02-ByALJtc-.js";import"./Copy01-B4AQ9voq.js";import"./Globe01-BEuNOgWE.js";import"./Eye-7UpR5EsV.js";import"./FilterLines-jo0eHglf.js";import"./Star01-UbWAuLRP.js";import"./Globe04-ezZLp1FH.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./HardDrive-Bx0yMIUr.js";import"./Image01-BemfbeRy.js";import"./Key01-wlopeCn8.js";import"./LayoutLeft-DgCOjEX2.js";import"./Monitor01-CvVGHJ2u.js";import"./Sun-ERdj2Ruh.js";import"./Package-Dkg7P-qU.js";import"./Palette-DnEGtR5r.js";import"./Play-pFWdRfmo.js";import"./Plus-BhgoGeba.js";import"./SearchLg-D7iDyCtR.js";import"./SearchMd-DU7sZsGX.js";import"./Shield01-BF7nZR91.js";import"./Stars01-CKHcD24W.js";import"./Trash01-Dgm4FHaX.js";import"./Upload01-DPgiWRF2.js";import"./User01-4oxhkWpc.js";import"./Users01-CbDWoQDz.js";import"./XClose-BYGQndp2.js";import"./X-BJznV24Z.js";import"./Zap-SMAt3bB0.js";import"./badge-C22fJvJ9.js";import"./checkbox-DvRekaoI.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./dialog-B_MtszrV.js";import"./popover-3l0deoOx.js";import"./chat-context-8zti4wkh.js";import"./autosend-DFAdUSMh.js";import"./hooks-CQZHp8Dt.js";import"./use-mcp-client-DXFWWHbs.js";import"./auth-wA89jw5z.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Dz5m3DDC.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./use-collections-CI5XorIY.js";import"./use-ai-providers-UWnZZKKY.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-CqSDZlRU.js";import"./use-organization-settings-BpxUnud5.js";import"./automation-runs-oeg4SZH2.js";import"./select-BK6Fwx47.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./use-connection-BlWYloF8.js";import"./card-BZY4DqkC.js";import"./sidebar-BjCGlNJL.js";import"./use-mobile-CEVETdVq.js";import"./table-FWVzL2nm.js";import"./empty-state-uOmVY7AV.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./use-clock-tick-CI9n9Iqh.js";import"./use-automations-URCauyn7.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./avatar-D2faXu9B.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CCSClSvL.js";import"./file-type-icon-DLDSmTyC.js";import"./monaco-editor-CAwKA7tN.js";import"./index-B-kvMeNd.js";import"./index-d_66hXvz.js";import"./calendar-C55pfZGp.js";import"./shell-layout-CGSn6NPr.js";import"./use-t-BKpqHjpb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";import"./integration-icon-nHJfLZDJ.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-G7ca0KYF.js";import"./form-CBH5rcB6.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-CkuNrX2M.js";import"./use-mcp-tools-ePfAnuof.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./dropdown-menu-CCf9b-Ue.js";import"./companions-core-D6ZCzGBn.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./skeleton-4wAys1SB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--wnksRdd.js";import"./index-C1alCXBf.js";import"./alert-dialog-9jx8jzEO.js";import"./toolbar-Dde3UP0K.js";import"./use-debounced-value-DuzsGBjb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./switch-BGTwAogo.js";import"./github-repo-picker-DWdab-4Y.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BsBJamST.js";import"./automation-list-row-CZVotwYb.js";function $e(j){return Array.isArray(j)?j.map(e=>({key:T(e?.key),value:T(e?.value)})):[]}function $s(j){const e=Y.c(82),{orgSlug:s,virtualMcpId:r,branch:i,blockKey:f,block:m,decofile:a,meta:c,previewBaseUrl:h}=j;let x;e[0]!==i||e[1]!==s||e[2]!==r?(x={orgSlug:s,virtualMcpId:r,branch:i},e[0]=i,e[1]=s,e[2]=r,e[3]=x):x=e[3];const l=xe(x);let p;e[4]!==m?(p=he(m,"posts"),e[4]=m,e[5]=p):p=e[5];const d=p;let n;e[6]!==f||e[7]!==l?(n=E=>{l.mutate({blockKey:f,data:je(f,"posts",be(E))})},e[6]=f,e[7]=l,e[8]=n):n=e[8];const[o,N]=Ee(d,n);let k;e[9]!==o||e[10]!==N?(k=(E,re)=>N({...o,[E]:re}),e[9]=o,e[10]=N,e[11]=k):k=e[11];const b=k;let S;e[12]!==a||e[13]!==o||e[14]!==h?(S=_e({decofile:a,post:o,previewBaseUrl:h}),e[12]=a,e[13]=o,e[14]=h,e[15]=S):S=e[15];const y=S;let g,v,P,w;e[16]!==o?(v=ge(o),g=v.length>0,P=v.length===1?"field":"fields",w=v.join(", "),e[16]=o,e[17]=g,e[18]=v,e[19]=P,e[20]=w):(g=e[17],v=e[18],P=e[19],w=e[20]);const _=`Missing required ${P}: ${w}`;let C;e[21]!==o.title?(C=T(o.title)||"Untitled post",e[21]=o.title,e[22]=C):C=e[22];let B;e[23]!==C?(B=t.jsx("span",{className:"truncate text-sm font-medium",children:C}),e[23]=C,e[24]=B):B=e[24];let u;e[25]!==g||e[26]!==v||e[27]!==_?(u=g&&t.jsxs(Se,{children:[t.jsx(Pe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(ae,{size:14}),v.length," ",v.length===1?"issue":"issues"]})}),t.jsx(we,{side:"bottom",children:_})]}),e[25]=g,e[26]=v,e[27]=_,e[28]=u):u=e[28];let F;e[29]!==l.isError||e[30]!==l.isPending?(F=t.jsx(ve,{isPending:l.isPending,isError:l.isError}),e[29]=l.isError,e[30]=l.isPending,e[31]=F):F=e[31];const Z=!y||g,ee=g?_:y?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let R;e[32]!==g||e[33]!==y?(R=()=>{y&&!g&&window.open(y,"_blank","noopener,noreferrer")},e[32]=g,e[33]=y,e[34]=R):R=e[34];let H;e[35]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx(me,{size:14}),e[35]=H):H=e[35];let A;e[36]!==Z||e[37]!==ee||e[38]!==R?(A=t.jsxs(le,{type:"button",variant:"outline",size:"sm",disabled:Z,title:ee,onClick:R,children:[H,"See preview"]}),e[36]=Z,e[37]=ee,e[38]=R,e[39]=A):A=e[39];let $;e[40]!==u||e[41]!==F||e[42]!==A?($=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[u,F,A]}),e[40]=u,e[41]=F,e[42]=A,e[43]=$):$=e[43];let L;e[44]!==$||e[45]!==B?(L=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[B,$]}),e[44]=$,e[45]=B,e[46]=L):L=e[46];let M;e[47]!==o.title?(M=T(o.title),e[47]=o.title,e[48]=M):M=e[48];let I;e[49]!==b?(I=E=>b("title",E),e[49]=b,e[50]=I):I=e[50];let U;e[51]!==M||e[52]!==I?(U=t.jsx(Fe,{value:M,onChange:I,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[51]=M,e[52]=I,e[53]=U):U=e[53];let J;e[54]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsxs(ie,{value:"content",children:[t.jsx(pe,{}),"Content"]}),e[54]=J):J=e[54];let Q;e[55]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsxs(de,{children:[J,t.jsxs(ie,{value:"settings",children:[t.jsx(ne,{}),"Settings"]})]}),e[55]=Q):Q=e[55];let V;e[56]!==o.sections?(V=Be(o.sections),e[56]=o.sections,e[57]=V):V=e[57];let z;e[58]!==b?(z=E=>b("sections",E),e[58]=b,e[59]=z):z=e[59];let D;e[60]!==i||e[61]!==s||e[62]!==r?(D={orgSlug:s,virtualMcpId:r,branch:i},e[60]=i,e[61]=s,e[62]=r,e[63]=D):D=e[63];let q;e[64]!==c||e[65]!==V||e[66]!==z||e[67]!==D?(q=t.jsx(se,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(Te,{value:V,onChange:z,meta:c,sandboxRef:D,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[64]=c,e[65]=V,e[66]=z,e[67]=D,e[68]=q):q=e[68];let K;e[69]!==a||e[70]!==o||e[71]!==b?(K=t.jsx(se,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Le,{post:o,decofile:a,onChange:b})})}),e[69]=a,e[70]=o,e[71]=b,e[72]=K):K=e[72];let O;e[73]!==q||e[74]!==K?(O=t.jsxs(fe,{defaultValue:"content",className:"mt-6 gap-4",children:[Q,q,K]}),e[73]=q,e[74]=K,e[75]=O):O=e[75];let G;e[76]!==U||e[77]!==O?(G=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,O]})}),e[76]=U,e[77]=O,e[78]=G):G=e[78];let W;return e[79]!==L||e[80]!==G?(W=t.jsxs("div",{className:"flex h-full flex-col",children:[L,G]}),e[79]=L,e[80]=G,e[81]=W):W=e[81],W}function Le(j){const e=Y.c(57),{post:s,decofile:r,onChange:i}=j;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(X,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=f):f=e[0];let m;e[1]!==s.excerpt?(m=T(s.excerpt),e[1]=s.excerpt,e[2]=m):m=e[2];let a;e[3]!==i?(a=u=>i("excerpt",u.target.value),e[3]=i,e[4]=a):a=e[4];let c;e[5]!==m||e[6]!==a?(c=t.jsxs("div",{className:"space-y-2",children:[f,t.jsx(ue,{id:"post-excerpt",value:m,onChange:a,rows:2})]}),e[5]=m,e[6]=a,e[7]=c):c=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(X,{htmlFor:"post-slug",children:"Slug"}),e[8]=h):h=e[8];let x;e[9]!==s.slug?(x=T(s.slug),e[9]=s.slug,e[10]=x):x=e[10];let l;e[11]!==i?(l=u=>i("slug",u.target.value),e[11]=i,e[12]=l):l=e[12];let p;e[13]!==x||e[14]!==l?(p=t.jsxs("div",{className:"space-y-2",children:[h,t.jsx(te,{id:"post-slug",value:x,onChange:l,placeholder:"my-post",className:"h-10"})]}),e[13]=x,e[14]=l,e[15]=p):p=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d={type:"string",format:"date",title:"Date"},e[16]=d):d=e[16];let n;e[17]!==s.date?(n=T(s.date),e[17]=s.date,e[18]=n):n=e[18];let o;e[19]!==i?(o=u=>i("date",u),e[19]=i,e[20]=o):o=e[20];let N;e[21]!==n||e[22]!==o?(N=t.jsx(ke,{schema:d,value:n,onChange:o,path:"post-date",label:"Date"}),e[21]=n,e[22]=o,e[23]=N):N=e[23];let k;e[24]!==N||e[25]!==p?(k=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p,N]}),e[24]=N,e[25]=p,e[26]=k):k=e[26];let b;e[27]===Symbol.for("react.memo_cache_sentinel")?(b={type:"string",format:"image-uri",title:"Cover image"},e[27]=b):b=e[27];let S;e[28]!==i?(S=u=>i("image",u),e[28]=i,e[29]=S):S=e[29];let y;e[30]!==s.image||e[31]!==S?(y=t.jsx(ye,{schema:b,value:s.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=s.image,e[31]=S,e[32]=y):y=e[32];let g;e[33]!==i?(g=u=>i("authors",u),e[33]=i,e[34]=g):g=e[34];let v;e[35]!==r||e[36]!==s.authors||e[37]!==g?(v=t.jsx(oe,{label:"Authors",decofile:r,kind:"authors",valueField:"email",toRef:Ie,selected:s.authors,onChange:g}),e[35]=r,e[36]=s.authors,e[37]=g,e[38]=v):v=e[38];let P;e[39]!==i?(P=u=>i("categories",u),e[39]=i,e[40]=P):P=e[40];let w;e[41]!==r||e[42]!==s.categories||e[43]!==P?(w=t.jsx(oe,{label:"Categories",decofile:r,kind:"categories",valueField:"slug",toRef:Me,selected:s.categories,onChange:P}),e[41]=r,e[42]=s.categories,e[43]=P,e[44]=w):w=e[44];let _;e[45]!==i?(_=u=>i("extraProps",u),e[45]=i,e[46]=_):_=e[46];let C;e[47]!==s.extraProps||e[48]!==_?(C=t.jsx(Ue,{value:s.extraProps,onChange:_}),e[47]=s.extraProps,e[48]=_,e[49]=C):C=e[49];let B;return e[50]!==k||e[51]!==y||e[52]!==v||e[53]!==w||e[54]!==C||e[55]!==c?(B=t.jsxs("div",{className:"space-y-5",children:[c,k,y,v,w,C]}),e[50]=k,e[51]=y,e[52]=v,e[53]=w,e[54]=C,e[55]=c,e[56]=B):B=e[56],B}function Me(j){return{name:T(j.name),slug:T(j.slug)}}function Ie(j){return{...j}}function Ue(j){const e=Y.c(15),{value:s,onChange:r}=j;let i,f,m,a;if(e[0]!==r||e[1]!==s){i=$e(s);const x=(l,p)=>r(i.map((d,n)=>n===l?{...d,...p}:d));f="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(X,{children:"Extra props"}),e[6]=m):m=e[6],a=i.length>0&&t.jsx("ul",{className:"space-y-2",children:i.map((l,p)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(te,{value:l.key,onChange:d=>x(p,{key:d.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(te,{value:l.value,onChange:d=>x(p,{value:d.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(Re,{label:"Remove prop",onClick:()=>r(i.filter((d,n)=>n!==p))})]},p))}),e[0]=r,e[1]=s,e[2]=i,e[3]=f,e[4]=m,e[5]=a}else i=e[2],f=e[3],m=e[4],a=e[5];let c;e[7]!==i||e[8]!==r?(c=t.jsx(Ae,{label:"Add prop",onClick:()=>r([...i,{key:"",value:""}])}),e[7]=i,e[8]=r,e[9]=c):c=e[9];let h;return e[10]!==f||e[11]!==m||e[12]!==a||e[13]!==c?(h=t.jsxs("div",{className:f,children:[m,a,c]}),e[10]=f,e[11]=m,e[12]=a,e[13]=c,e[14]=h):h=e[14],h}function oe(j){const e=Y.c(17),{label:s,decofile:r,kind:i,valueField:f,toRef:m,selected:a,onChange:c}=j;let h;e[0]!==r||e[1]!==i||e[2]!==a||e[3]!==m||e[4]!==f?(h=Ce({records:Ne(r,i),selected:a,valueField:f,toRef:m}),e[0]=r,e[1]=i,e[2]=a,e[3]=m,e[4]=f,e[5]=h):h=e[5];const{options:x,selectedValues:l,refsForValues:p}=h;let d;e[6]!==s?(d=t.jsx(X,{children:s}),e[6]=s,e[7]=d):d=e[7];let n;e[8]!==s||e[9]!==c||e[10]!==x||e[11]!==p||e[12]!==l?(n=x.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",s.toLowerCase()," yet — create some in the"," ",s.toLowerCase()," collection."]}):t.jsx(ce,{options:x,defaultValue:l,onValueChange:N=>c(p(N)),placeholder:`Select ${s.toLowerCase()}`,maxCount:4}),e[8]=s,e[9]=c,e[10]=x,e[11]=p,e[12]=l,e[13]=n):n=e[13];let o;return e[14]!==d||e[15]!==n?(o=t.jsxs("div",{className:"space-y-2",children:[d,n]}),e[14]=d,e[15]=n,e[16]=o):o=e[16],o}export{$s as PostEditor};
@@ -1 +0,0 @@
1
- import{c as L,C as H,j as U}from"./index-QeeIyPD-.js";import{a as O,g as $,s as E}from"./automation-runs-oeg4SZH2.js";import{r as k,u as B}from"./use-mcp-client-DXFWWHbs.js";import{b as V,c as Y}from"./use-mcp-tools-ePfAnuof.js";import{u as q}from"./index-D_TDrkT8.js";import{c as G}from"./monaco-editor-CAwKA7tN.js";import{g as K,M as W,a as D}from"./index-d_66hXvz.js";import{b as z,a as F}from"./chat-context-8zti4wkh.js";import{u as J}from"./shell-layout-CGSn6NPr.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-BK6Fwx47.js";import"./tooltip-CfmdP-aL.js";import"./ChevronUp-Bu3KYaYp.js";import"./ChevronDown-CtpYRw0N.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./use-connection-BlWYloF8.js";import"./use-collections-CI5XorIY.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./card-BZY4DqkC.js";import"./sidebar-BjCGlNJL.js";import"./LayoutLeft-DgCOjEX2.js";import"./use-mobile-CEVETdVq.js";import"./X-BJznV24Z.js";import"./table-FWVzL2nm.js";import"./empty-state-uOmVY7AV.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./use-clock-tick-CI9n9Iqh.js";import"./AlertCircle-BtNVN6lT.js";import"./CheckCircle-Dqg_7udX.js";import"./DotsVertical-4fMK5hdE.js";import"./agent-icon-CMi9hXve.js";import"./Tool01-DoTp9Ymb.js";import"./ArrowUp-SfmKmvG1.js";import"./Settings02-Kn3GUgY3.js";import"./Tool02-f6hCEEx5.js";import"./XCircle-Mn7Ozb-Q.js";import"./ArrowUpRight-DPmhEMyl.js";import"./TrendUp01-DdLolkHU.js";import"./ZapSquare-Chem9D1s.js";import"./ZoomOut-znim4joS.js";import"./Users03-DQDFsIZA.js";import"./ChevronRight-DQFD5vOs.js";import"./Stars02-ByALJtc-.js";import"./Copy01-B4AQ9voq.js";import"./Globe01-BEuNOgWE.js";import"./Eye-7UpR5EsV.js";import"./FilterLines-jo0eHglf.js";import"./Star01-UbWAuLRP.js";import"./Globe04-ezZLp1FH.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./HardDrive-Bx0yMIUr.js";import"./Image01-BemfbeRy.js";import"./Key01-wlopeCn8.js";import"./LinkExternal01-DjHN0DVc.js";import"./Monitor01-CvVGHJ2u.js";import"./Sun-ERdj2Ruh.js";import"./Package-Dkg7P-qU.js";import"./Palette-DnEGtR5r.js";import"./Play-pFWdRfmo.js";import"./Plus-BhgoGeba.js";import"./SearchLg-D7iDyCtR.js";import"./SearchMd-DU7sZsGX.js";import"./Shield01-BF7nZR91.js";import"./Stars01-CKHcD24W.js";import"./Trash01-Dgm4FHaX.js";import"./Upload01-DPgiWRF2.js";import"./User01-4oxhkWpc.js";import"./Users01-CbDWoQDz.js";import"./XClose-BYGQndp2.js";import"./Zap-SMAt3bB0.js";import"./use-automations-URCauyn7.js";import"./studio-tools-Dz5m3DDC.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./avatar-D2faXu9B.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CCSClSvL.js";import"./file-type-icon-DLDSmTyC.js";import"./dialog-B_MtszrV.js";import"./hooks-CQZHp8Dt.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./calendar-C55pfZGp.js";import"./integration-icon-nHJfLZDJ.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-G7ca0KYF.js";import"./form-CBH5rcB6.js";import"./label-B8xrTNKP.js";import"./input-ksjqlSwm.js";import"./auth-wA89jw5z.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./autosend-DFAdUSMh.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-CkuNrX2M.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./use-decopilot-events-CqSDZlRU.js";import"./dropdown-menu-CCf9b-Ue.js";import"./popover-3l0deoOx.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./use-organization-settings-BpxUnud5.js";import"./companions-core-D6ZCzGBn.js";import"./tabs-BovIXRni.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B0BnrQRd.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./badge-C22fJvJ9.js";import"./use-ai-providers-UWnZZKKY.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./checkbox-DvRekaoI.js";import"./skeleton-4wAys1SB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-t-BKpqHjpb.js";import"./settings-section--wnksRdd.js";import"./index-C1alCXBf.js";import"./alert-dialog-9jx8jzEO.js";import"./toolbar-Dde3UP0K.js";import"./use-debounced-value-DuzsGBjb.js";import"./location-BpLtHjTZ.js";import"./index-B-kvMeNd.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./switch-BGTwAogo.js";import"./github-repo-picker-DWdab-4Y.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BsBJamST.js";import"./automation-list-row-CZVotwYb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:f,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==i.inputSchema?(d=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==i?(R={...i,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==r?(N=x=>f(r,x),t[21]=f,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function zi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=B(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const d=E(r,h);return d!==r&&e.name===d}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{zi as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as C,j as o}from"./index-QeeIyPD-.js";import{I as B}from"./input-ksjqlSwm.js";import{L as T}from"./label-B8xrTNKP.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-BK6Fwx47.js";import{T as V}from"./textarea-B0BnrQRd.js";import{v as D,w as J,o as K,y as M,I as _}from"./index-D_TDrkT8.js";import{s as F}from"./primitives-DGvfP5N2.js";import{u as $}from"./use-autosave-BjhwOY2t.js";import"./tooltip-CfmdP-aL.js";import"./ChevronUp-Bu3KYaYp.js";import"./ChevronDown-CtpYRw0N.js";import"./ArrowUp-SfmKmvG1.js";import"./chat-context-8zti4wkh.js";import"./autosend-DFAdUSMh.js";import"./hooks-CQZHp8Dt.js";import"./use-mcp-client-DXFWWHbs.js";import"./auth-wA89jw5z.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Dz5m3DDC.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./use-collections-CI5XorIY.js";import"./use-ai-providers-UWnZZKKY.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-CqSDZlRU.js";import"./use-organization-settings-BpxUnud5.js";import"./automation-runs-oeg4SZH2.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./use-connection-BlWYloF8.js";import"./card-BZY4DqkC.js";import"./sidebar-BjCGlNJL.js";import"./LayoutLeft-DgCOjEX2.js";import"./use-mobile-CEVETdVq.js";import"./X-BJznV24Z.js";import"./table-FWVzL2nm.js";import"./empty-state-uOmVY7AV.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./use-clock-tick-CI9n9Iqh.js";import"./AlertCircle-BtNVN6lT.js";import"./CheckCircle-Dqg_7udX.js";import"./DotsVertical-4fMK5hdE.js";import"./agent-icon-CMi9hXve.js";import"./Tool01-DoTp9Ymb.js";import"./Settings02-Kn3GUgY3.js";import"./Tool02-f6hCEEx5.js";import"./XCircle-Mn7Ozb-Q.js";import"./ArrowUpRight-DPmhEMyl.js";import"./TrendUp01-DdLolkHU.js";import"./ZapSquare-Chem9D1s.js";import"./ZoomOut-znim4joS.js";import"./Users03-DQDFsIZA.js";import"./ChevronRight-DQFD5vOs.js";import"./Stars02-ByALJtc-.js";import"./Copy01-B4AQ9voq.js";import"./Globe01-BEuNOgWE.js";import"./Eye-7UpR5EsV.js";import"./FilterLines-jo0eHglf.js";import"./Star01-UbWAuLRP.js";import"./Globe04-ezZLp1FH.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./HardDrive-Bx0yMIUr.js";import"./Image01-BemfbeRy.js";import"./Key01-wlopeCn8.js";import"./LinkExternal01-DjHN0DVc.js";import"./Monitor01-CvVGHJ2u.js";import"./Sun-ERdj2Ruh.js";import"./Package-Dkg7P-qU.js";import"./Palette-DnEGtR5r.js";import"./Play-pFWdRfmo.js";import"./Plus-BhgoGeba.js";import"./SearchLg-D7iDyCtR.js";import"./SearchMd-DU7sZsGX.js";import"./Shield01-BF7nZR91.js";import"./Stars01-CKHcD24W.js";import"./Trash01-Dgm4FHaX.js";import"./Upload01-DPgiWRF2.js";import"./User01-4oxhkWpc.js";import"./Users01-CbDWoQDz.js";import"./XClose-BYGQndp2.js";import"./Zap-SMAt3bB0.js";import"./use-automations-URCauyn7.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./avatar-D2faXu9B.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CCSClSvL.js";import"./file-type-icon-DLDSmTyC.js";import"./dialog-B_MtszrV.js";import"./monaco-editor-CAwKA7tN.js";import"./index-B-kvMeNd.js";import"./index-d_66hXvz.js";import"./calendar-C55pfZGp.js";import"./shell-layout-CGSn6NPr.js";import"./use-t-BKpqHjpb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";import"./integration-icon-nHJfLZDJ.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-G7ca0KYF.js";import"./form-CBH5rcB6.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-CkuNrX2M.js";import"./use-mcp-tools-ePfAnuof.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./dropdown-menu-CCf9b-Ue.js";import"./popover-3l0deoOx.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./companions-core-D6ZCzGBn.js";import"./tabs-BovIXRni.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./badge-C22fJvJ9.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./checkbox-DvRekaoI.js";import"./skeleton-4wAys1SB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--wnksRdd.js";import"./index-C1alCXBf.js";import"./alert-dialog-9jx8jzEO.js";import"./toolbar-Dde3UP0K.js";import"./use-debounced-value-DuzsGBjb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./switch-BGTwAogo.js";import"./github-repo-picker-DWdab-4Y.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BsBJamST.js";import"./automation-list-row-CZVotwYb.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{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"}]},G={authors:"Author"};function Mo(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Mo as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as z,j as t}from"./index-QeeIyPD-.js";import{C as G}from"./checkbox-DvRekaoI.js";import{I as K}from"./input-ksjqlSwm.js";import{L as q}from"./label-B8xrTNKP.js";import{c as H,S as J,d as W,a as X,b as Z}from"./select-BK6Fwx47.js";import{k as ee,a_ as te,o as re,a$ as M,b0 as ie}from"./index-D_TDrkT8.js";import{u as oe}from"./use-autosave-BjhwOY2t.js";import"./ChevronUp-Bu3KYaYp.js";import"./tooltip-CfmdP-aL.js";import"./ChevronDown-CtpYRw0N.js";import"./ArrowUp-SfmKmvG1.js";import"./chat-context-8zti4wkh.js";import"./autosend-DFAdUSMh.js";import"./hooks-CQZHp8Dt.js";import"./use-mcp-client-DXFWWHbs.js";import"./auth-wA89jw5z.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Dz5m3DDC.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./use-collections-CI5XorIY.js";import"./use-ai-providers-UWnZZKKY.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-CqSDZlRU.js";import"./use-organization-settings-BpxUnud5.js";import"./automation-runs-oeg4SZH2.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./use-connection-BlWYloF8.js";import"./card-BZY4DqkC.js";import"./sidebar-BjCGlNJL.js";import"./LayoutLeft-DgCOjEX2.js";import"./use-mobile-CEVETdVq.js";import"./X-BJznV24Z.js";import"./table-FWVzL2nm.js";import"./empty-state-uOmVY7AV.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./use-clock-tick-CI9n9Iqh.js";import"./AlertCircle-BtNVN6lT.js";import"./CheckCircle-Dqg_7udX.js";import"./DotsVertical-4fMK5hdE.js";import"./agent-icon-CMi9hXve.js";import"./Tool01-DoTp9Ymb.js";import"./Settings02-Kn3GUgY3.js";import"./Tool02-f6hCEEx5.js";import"./XCircle-Mn7Ozb-Q.js";import"./ArrowUpRight-DPmhEMyl.js";import"./TrendUp01-DdLolkHU.js";import"./ZapSquare-Chem9D1s.js";import"./ZoomOut-znim4joS.js";import"./Users03-DQDFsIZA.js";import"./ChevronRight-DQFD5vOs.js";import"./Stars02-ByALJtc-.js";import"./Copy01-B4AQ9voq.js";import"./Globe01-BEuNOgWE.js";import"./Eye-7UpR5EsV.js";import"./FilterLines-jo0eHglf.js";import"./Star01-UbWAuLRP.js";import"./Globe04-ezZLp1FH.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./HardDrive-Bx0yMIUr.js";import"./Image01-BemfbeRy.js";import"./Key01-wlopeCn8.js";import"./LinkExternal01-DjHN0DVc.js";import"./Monitor01-CvVGHJ2u.js";import"./Sun-ERdj2Ruh.js";import"./Package-Dkg7P-qU.js";import"./Palette-DnEGtR5r.js";import"./Play-pFWdRfmo.js";import"./Plus-BhgoGeba.js";import"./SearchLg-D7iDyCtR.js";import"./SearchMd-DU7sZsGX.js";import"./Shield01-BF7nZR91.js";import"./Stars01-CKHcD24W.js";import"./Trash01-Dgm4FHaX.js";import"./Upload01-DPgiWRF2.js";import"./User01-4oxhkWpc.js";import"./Users01-CbDWoQDz.js";import"./XClose-BYGQndp2.js";import"./Zap-SMAt3bB0.js";import"./use-automations-URCauyn7.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./avatar-D2faXu9B.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CCSClSvL.js";import"./file-type-icon-DLDSmTyC.js";import"./dialog-B_MtszrV.js";import"./monaco-editor-CAwKA7tN.js";import"./index-B-kvMeNd.js";import"./index-d_66hXvz.js";import"./calendar-C55pfZGp.js";import"./shell-layout-CGSn6NPr.js";import"./use-t-BKpqHjpb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";import"./integration-icon-nHJfLZDJ.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-G7ca0KYF.js";import"./form-CBH5rcB6.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-CkuNrX2M.js";import"./use-mcp-tools-ePfAnuof.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./dropdown-menu-CCf9b-Ue.js";import"./popover-3l0deoOx.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./companions-core-D6ZCzGBn.js";import"./tabs-BovIXRni.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B0BnrQRd.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./badge-C22fJvJ9.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./skeleton-4wAys1SB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--wnksRdd.js";import"./index-C1alCXBf.js";import"./alert-dialog-9jx8jzEO.js";import"./toolbar-Dde3UP0K.js";import"./use-debounced-value-DuzsGBjb.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./switch-BGTwAogo.js";import"./github-repo-picker-DWdab-4Y.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-BsBJamST.js";import"./automation-list-row-CZVotwYb.js";const me=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function Zr(_){const e=z.c(62),{orgSlug:$,virtualMcpId:A,branch:B,blockKey:D,block:O}=_;let S;e[0]!==B||e[1]!==$||e[2]!==A?(S={orgSlug:$,virtualMcpId:A,branch:B},e[0]=B,e[1]=$,e[2]=A,e[3]=S):S=e[3];const m=ee(S);let g;e[4]!==O?(g=te(O),e[4]=O,e[5]=g):g=e[5];const Y=g;let v;e[6]!==D||e[7]!==m?(v=o=>{m.mutate({blockKey:D,data:ie(o)})},e[6]=D,e[7]=m,e[8]=v):v=e[8];const[r,V]=oe(Y,v);let N;e[9]!==r||e[10]!==V?(N=o=>V({...r,...o}),e[9]=r,e[10]=V,e[11]=N):N=e[11];const i=N;let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),e[12]=P):P=e[12];let p;e[13]!==m.isError||e[14]!==m.isPending?(p=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,t.jsx(re,{isPending:m.isPending,isError:m.isError})]}),e[13]=m.isError,e[14]=m.isPending,e[15]=p):p=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(q,{htmlFor:"redirect-from",children:"From"}),e[16]=T):T=e[16];let s;e[17]!==i?(s=o=>i({from:o.target.value}),e[17]=i,e[18]=s):s=e[18];let l;e[19]!==r.from||e[20]!==s?(l=t.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),e[19]=r.from,e[20]=s,e[21]=l):l=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",t.jsx("code",{children:"/product/:slug"}),")."]}),e[22]=E):E=e[22];let a;e[23]!==l?(a=t.jsxs("div",{className:"space-y-2",children:[T,l,E]}),e[23]=l,e[24]=a):a=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(q,{htmlFor:"redirect-to",children:"To"}),e[25]=R):R=e[25];let c;e[26]!==i?(c=o=>i({to:o.target.value}),e[26]=i,e[27]=c):c=e[27];let n;e[28]!==r.to||e[29]!==c?(n=t.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),e[28]=r.to,e[29]=c,e[30]=n):n=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),e[31]=k):k=e[31];let d;e[32]!==n?(d=t.jsxs("div",{className:"space-y-2",children:[R,n,k]}),e[32]=n,e[33]=d):d=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(q,{htmlFor:"redirect-type",children:"Type"}),e[34]=C):C=e[34];let f;e[35]!==i?(f=o=>i({type:o}),e[35]=i,e[36]=f):f=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(X,{id:"redirect-type",className:"h-10 w-full",children:t.jsx(Z,{placeholder:"Type"})}),e[37]=w):w=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(H,{children:me.map(pe)}),e[38]=I):I=e[38];let h;e[39]!==r.type||e[40]!==f?(h=t.jsxs(J,{value:r.type,onValueChange:f,children:[w,I]}),e[39]=r.type,e[40]=f,e[41]=h):h=e[41];let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("strong",{children:"Temporary"}),e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",t.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),e[43]=L):L=e[43];let x;e[44]!==h?(x=t.jsxs("div",{className:"space-y-2",children:[C,h,L]}),e[44]=h,e[45]=x):x=e[45];let u;e[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),e[46]=i,e[47]=u):u=e[47];let y;e[48]!==r.discardQueryParameters||e[49]!==u?(y=t.jsx(G,{checked:r.discardQueryParameters,onCheckedChange:u}),e[48]=r.discardQueryParameters,e[49]=u,e[50]=y):y=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx("span",{className:"text-sm",children:"Discard query parameters"}),e[51]=Q):Q=e[51];let j;e[52]!==y?(j=t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),e[52]=y,e[53]=j):j=e[53];let b;e[54]!==a||e[55]!==d||e[56]!==x||e[57]!==j?(b=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:t.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),e[54]=a,e[55]=d,e[56]=x,e[57]=j,e[58]=b):b=e[58];let U;return e[59]!==b||e[60]!==p?(U=t.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),e[59]=b,e[60]=p,e[61]=U):U=e[61],U}function pe(_){return t.jsx(W,{value:_.value,children:_.label},_.value)}export{Zr as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-50Nc58LU.js","assets/index-QeeIyPD-.js","assets/index-DxTnZ0Oo.css","assets/Tool02-f6hCEEx5.js","assets/CheckCircle-Dqg_7udX.js","assets/Settings02-Kn3GUgY3.js","assets/use-mcp-client-DXFWWHbs.js","assets/auth-wA89jw5z.js","assets/useInfiniteQuery-DvViU0Gq.js","assets/use-infinite-scroll-Cylb4hyl.js","assets/studio-tools-Dz5m3DDC.js","assets/badge-C22fJvJ9.js","assets/input-ksjqlSwm.js","assets/dropdown-menu-CCf9b-Ue.js","assets/ChevronUp-Bu3KYaYp.js","assets/ChevronRight-DQFD5vOs.js","assets/DotsVertical-4fMK5hdE.js","assets/table-FWVzL2nm.js","assets/toggle-group-DvzPCkJs.js","assets/use-view-mode-BEQ3VoIc.js","assets/use-mobile-CEVETdVq.js","assets/FilterLines-jo0eHglf.js","assets/Globe01-BEuNOgWE.js","assets/SearchMd-DU7sZsGX.js","assets/dialog-B_MtszrV.js","assets/X-BJznV24Z.js","assets/AlertCircle-BtNVN6lT.js","assets/Upload01-DPgiWRF2.js","assets/alert-dialog-9jx8jzEO.js","assets/card-BZY4DqkC.js","assets/Trash01-Dgm4FHaX.js","assets/label-B8xrTNKP.js","assets/select-BK6Fwx47.js","assets/tooltip-CfmdP-aL.js","assets/ChevronDown-CtpYRw0N.js","assets/switch-BGTwAogo.js","assets/textarea-B0BnrQRd.js","assets/XCircle-Mn7Ozb-Q.js","assets/checkbox-DvRekaoI.js","assets/Eye-7UpR5EsV.js","assets/LinkExternal01-DjHN0DVc.js","assets/use-copy-CCSClSvL.js","assets/Copy01-B4AQ9voq.js","assets/Key01-wlopeCn8.js","assets/Plus-BhgoGeba.js","assets/mcp-oauth-C_zNkYXB.js","assets/Play-pFWdRfmo.js"])))=>i.map(i=>d[i]);
2
- import{c as s,j as e,r as i,i as a,aX as o}from"./index-QeeIyPD-.js";import{R as m}from"./require-capability-BMCPfqFj.js";import"./use-capability-B2RpFGXs.js";import"./access-gate-CXUaT8Bg.js";import"./capability-load-error-D-GHd7kt.js";const n=i.lazy(()=>o(()=>import("./registry-layout-50Nc58LU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));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 ze,r as N,l as Ee,j as n,B as Ge,i as Fn,n as vs,t as G,K as Ss}from"./index-QeeIyPD-.js";import{a0 as xs,a1 as bs,a2 as ys,F as In,H as zt,K as zn,P as Hn,i as Un,a3 as _s,U as Wn,V as Gn,a4 as js,G as ks,a5 as ws,J as qn,L as Rt,O as Jn,Q as Yn,M as Qn,Z as Zn,a6 as Xn,a7 as Rs,a8 as Nt,a9 as Ns,S as ea,aa as tt,ab as Ds,ac as Vs,ad as Cs,ae as Ps,e as Ts,k as As,af as Ms,ag as Es,ah as Ks,ai as $s,r as Ot,aj as Bt,ak as Os,al as ut,am as jt,an as Bs,ao as Ls,ap as Ye,aq as Dn,ar as Fs,as as kt,at as Lt,au as Is,av as sn,aw as zs,ax as xt,ay as Hs,az as Us,aA as Ws,aB as Gs,aC as qs,aD as dt,aE as Js,aF as Ys,aG as Qs,m as Zs,aH as Vn,aI as wt,aJ as Xs,aK as er,aL as tr,aM as nr,aN as rn,aO as Cn,aP as Pn,aQ as bt,aR as Ft,aS as Tn,aT as ar,aU as on,aV as sr,aW as rr,aX as or,aY as An,aZ as ir}from"./index-D_TDrkT8.js";import{t as lr}from"./ChevronDown-CtpYRw0N.js";import{Z as cn,S as ta,D as cr,x as na,_ as ur,$ as dr}from"./agent-icon-CMi9hXve.js";import{i as aa}from"./ChevronRight-DQFD5vOs.js";import{n as mr}from"./ChevronUp-Bu3KYaYp.js";import{i as fr}from"./Globe01-BEuNOgWE.js";import{m as It}from"./automation-runs-oeg4SZH2.js";import{b as mt,T as ft,a as pt}from"./tooltip-CfmdP-aL.js";import{a as pr,D as hr,h as gr,c as vr,d as Sr,e as xr}from"./dialog-B_MtszrV.js";import{I as br}from"./input-ksjqlSwm.js";import{a as sa}from"./Copy01-B4AQ9voq.js";import{b as yr}from"./ZoomOut-znim4joS.js";import{i as _r}from"./Settings02-Kn3GUgY3.js";import{s as jr}from"./Eye-7UpR5EsV.js";import{s as ra}from"./TrendUp01-DdLolkHU.js";import{s as un}from"./Plus-BhgoGeba.js";import{s as oa}from"./Trash01-Dgm4FHaX.js";import{i as kr}from"./Zap-SMAt3bB0.js";import{d as it,a as ia,D as la,c as ca,j as wr}from"./dropdown-menu-CCf9b-Ue.js";import{S as Rr,r as Mn,a as Nr,d as Dr,b as Vr,i as Cr,f as Pr,P as Tr,c as Ar}from"./page-seo-form-CGZUz0ph.js";import{b as Mr}from"./Tool01-DoTp9Ymb.js";import{A as Er}from"./add-section-modal-Bu0jJfTp.js";import"./ArrowUp-SfmKmvG1.js";import"./chat-context-8zti4wkh.js";import"./autosend-DFAdUSMh.js";import"./hooks-CQZHp8Dt.js";import"./use-mcp-client-DXFWWHbs.js";import"./auth-wA89jw5z.js";import"./decopilot-sse-pool-us-M5mS8.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Dz5m3DDC.js";import"./use-virtual-mcp-D9jFTGjm.js";import"./use-collections-CI5XorIY.js";import"./use-ai-providers-UWnZZKKY.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-CqSDZlRU.js";import"./use-organization-settings-BpxUnud5.js";import"./drawer-BsQ2VY2t.js";import"./collection-search-B4ji9AjC.js";import"./SearchMd-DU7sZsGX.js";import"./use-mobile-CEVETdVq.js";import"./AreaChart-G7ca0KYF.js";import"./index-d_66hXvz.js";import"./calendar-C55pfZGp.js";import"./X-BJznV24Z.js";import"./shell-layout-CGSn6NPr.js";import"./avatar-D2faXu9B.js";import"./User01-4oxhkWpc.js";import"./Users03-DQDFsIZA.js";import"./SearchLg-D7iDyCtR.js";import"./Stars02-ByALJtc-.js";import"./XClose-BYGQndp2.js";import"./CheckCircle-Dqg_7udX.js";import"./FilterLines-jo0eHglf.js";import"./use-t-BKpqHjpb.js";import"./required-auth-layout-BON6U2A_.js";import"./use-org-sso-QrZAqFtN.js";import"./index-CAK7n_FO.js";import"./get-initials-D-f_fDFw.js";import"./SwitchHorizontal01-B2hcs1rw.js";import"./use-registry-app-CkuNrX2M.js";import"./use-mcp-tools-ePfAnuof.js";import"./use-connection-BlWYloF8.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-CO2Dkq5Q.js";import"./mcp-oauth-C_zNkYXB.js";import"./extract-connection-data-B1PMDhhA.js";import"./use-members-C1OZBryu.js";import"./use-org-auth-client-BFFpNQiA.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./AlertCircle-BtNVN6lT.js";import"./DotsVertical-4fMK5hdE.js";import"./popover-3l0deoOx.js";import"./command-BeMVvNyF.js";import"./index-DWmvNX0u.js";import"./use-copy-CCSClSvL.js";import"./LinkExternal01-DjHN0DVc.js";import"./XCircle-Mn7Ozb-Q.js";import"./companions-core-D6ZCzGBn.js";import"./ZapSquare-Chem9D1s.js";import"./Star01-UbWAuLRP.js";import"./Image01-BemfbeRy.js";import"./Upload01-DPgiWRF2.js";import"./form-CBH5rcB6.js";import"./label-B8xrTNKP.js";import"./select-BK6Fwx47.js";import"./tabs-BovIXRni.js";import"./Tool02-f6hCEEx5.js";import"./toggle-group-DvzPCkJs.js";import"./use-deco-credits-Bov6Ef1l.js";import"./connection-card-7Jlr5ou8.js";import"./use-registry-connections-DWBXDDYI.js";import"./useInfiniteQuery-DvViU0Gq.js";import"./use-infinite-scroll-Cylb4hyl.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-BZY4DqkC.js";import"./integration-icon-nHJfLZDJ.js";import"./textarea-B0BnrQRd.js";import"./connection-form-helpers-BT4sViBb.js";import"./collection-tabs-DTWzD8v3.js";import"./badge-C22fJvJ9.js";import"./useSuspenseInfiniteQuery-COT_NVJE.js";import"./Monitor01-CvVGHJ2u.js";import"./connect-desktop-dialog-ekgjUng_.js";import"./select-model-FeZ2YvBx.js";import"./checkbox-DvRekaoI.js";import"./skeleton-4wAys1SB.js";import"./Key01-wlopeCn8.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section--wnksRdd.js";import"./ArrowUpRight-DPmhEMyl.js";import"./Stars01-CKHcD24W.js";import"./index-C1alCXBf.js";import"./Palette-DnEGtR5r.js";import"./alert-dialog-9jx8jzEO.js";import"./file-type-icon-DLDSmTyC.js";import"./toolbar-Dde3UP0K.js";import"./Package-Dkg7P-qU.js";import"./use-debounced-value-DuzsGBjb.js";import"./index-B-kvMeNd.js";import"./LayoutLeft-DgCOjEX2.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-2UIUBUS4.js";import"./empty-state-uOmVY7AV.js";import"./use-capability-B2RpFGXs.js";import"./toolbar-icon-button-BGzii147.js";import"./Play-pFWdRfmo.js";import"./use-debounced-autosave-DbO1S1EK.js";import"./index-F-zmfSqw.js";import"./sidebar-BjCGlNJL.js";import"./search-input-UOEApV9M.js";import"./use-mcp-auth-status-D-mrOgSF.js";import"./switch-BGTwAogo.js";import"./github-repo-picker-DWdab-4Y.js";import"./use-navigate-to-agent-CflMFlHw.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./Users01-CbDWoQDz.js";import"./use-secrets-C8ssS7Ik.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./monaco-editor-CAwKA7tN.js";import"./use-file-configs-BsBJamST.js";import"./use-automations-URCauyn7.js";import"./automation-list-row-CZVotwYb.js";import"./Globe04-ezZLp1FH.js";import"./HardDrive-Bx0yMIUr.js";import"./Sun-ERdj2Ruh.js";import"./Shield01-BF7nZR91.js";import"./table-FWVzL2nm.js";import"./use-clock-tick-CI9n9Iqh.js";function Kr(m){return m.schema?.definitions??m.schema?.$defs??{}}function $r(m,e){const r=Kr(e),c=r[btoa(m)];if(!c)return;let u=typeof c.image=="string"?c.image:void 0;if(!u&&Array.isArray(c.allOf)){const g=c.allOf.find(S=>typeof S.$ref=="string")?.$ref;if(typeof g=="string"){const S=g.replace("#/definitions/",""),f=r[S];u=typeof f?.image=="string"?f.image:void 0}}if(u?.includes("{{{"))return u}function Or(m,e){if(!e)return;const r=xs(m);if(!r)return;const c=$r(r.resolveType,e);if(!c)return;const u=bs(c,r.data);if(u)return ys(u)}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 En(m){return Array.from({length:m},(e,r)=>({id:crypto.randomUUID(),index:r}))}function ua(m){return m.map((e,r)=>({...e,index:r}))}function Fr(m,e){if(e===m.length)return m;if(e<m.length)return ua(m.slice(0,e));const r=Array.from({length:e-m.length},(c,u)=>({id:crypto.randomUUID(),index:m.length+u}));return[...m,...r]}function da(m){const e=ze.c(20),{section:r,raw:c,meta:u}=m,g=r.isSavedBlock===!0,S=r.isMultivariate===!0;let f;e[0]!==u||e[1]!==c?(f=c&&u?Or(c,u):void 0,e[0]=u,e[1]=c,e[2]=f):f=e[2];const v=f;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(yr,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[3]=h):h=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 D;e[6]!==S||e[7]!==g?(D=g?{color:ks}:S?{color:"oklch(0.65 0.15 160)"}:void 0,e[6]=S,e[7]=g,e[8]=D):D=e[8];let k;e[9]!==D?(k=n.jsx(cn,{className:"h-4 w-4 shrink-0",style:D}),e[9]=D,e[10]=k):k=e[10];const _=r.isHidden&&"line-through opacity-50";let j;e[11]!==_?(j=Ee("min-w-0 flex-1 truncate text-sm font-medium",_),e[11]=_,e[12]=j):j=e[12];let o;e[13]!==r.label||e[14]!==j?(o=n.jsx("span",{className:j,children:r.label}),e[13]=r.label,e[14]=j,e[15]=o):o=e[15];let w;return e[16]!==x||e[17]!==k||e[18]!==o?(w=n.jsxs(n.Fragment,{children:[h,x,k,o]}),e[16]=x,e[17]=k,e[18]=o,e[19]=w):w=e[19],w}function ma(m,e){const r=m.isSavedBlock===!0,c=m.isMultivariate===!0;return Ee("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":r?Br:c?"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(m){const e=ze.c(64),{section:r,raw:c,meta:u,sortableId:g,selected:S,onSelect:f,onDelete:v,onDuplicate:h,onMakeReusable:x,onToggleHidden:D,onToggleLazy:k,onAddVariant:_,onDetach:j}=m,o=c?Un(c.__resolveType??""):!1;let w;e[0]!==r?(w=_s(r),e[0]=r,e[1]=w):w=e[1];const i=w;let K;e[2]!==g?(K={id:g,animateLayoutChanges:Gr},e[2]=g,e[3]=K):K=e[3];const{attributes:E,listeners:M,setNodeRef:d,transform:P,isDragging:ae}=Wn(K);let T;e[4]!==P?(T=Gn.Transform.toString(P?{...P,x:0}:null),e[4]=P,e[5]=T):T=e[5];const pe=ae?0:void 0;let V;e[6]!==T||e[7]!==pe?(V={transform:T,opacity:pe},e[6]=T,e[7]=pe,e[8]=V):V=e[8];const ce=V;let F;e[9]!==r?(F=js(r),e[9]=r,e[10]=F):F=e[10];const te=F,oe="button",Te=0;let O;e[11]!==f?(O=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),f())},e[11]=f,e[12]=O):O=e[12];const ue=ae?"cursor-grabbing":"cursor-pointer";let ie;e[13]!==r||e[14]!==S||e[15]!==ue?(ie=Ee("touch-none transition-colors",ue,ma(r,S)),e[13]=r,e[14]=S,e[15]=ue,e[16]=ie):ie=e[16];let je;e[17]!==u||e[18]!==c||e[19]!==r?(je=n.jsx(da,{section:r,raw:c,meta:u}),e[17]=u,e[18]=c,e[19]=r,e[20]=je):je=e[20];const $=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Disable async render":"Enable async render",className:Ee("h-7 w-7 shrink-0",o?"":"opacity-0 group-hover:opacity-100"),onClick:B=>{B.stopPropagation(),k()},onPointerDown:Wr,children:n.jsx(kr,{className:Ee("h-3.5 w-3.5",o&&"text-yellow-500")})})}),n.jsx(pt,{side:"bottom",children:o?"Disable async render":"Enable async render"})]});let Ae;e[21]!==D||e[22]!==r.isHidden||e[23]!==r.isMultivariate?(Ae=!r.isMultivariate&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":r.isHidden?"Show section":"Hide section",className:Ee("h-7 w-7 shrink-0",r.isHidden?"opacity-100":"opacity-0 group-hover:opacity-100"),onClick:B=>{B.stopPropagation(),D()},onPointerDown:Ur,children:r.isHidden?n.jsx(_r,{className:"h-3.5 w-3.5"}):n.jsx(jr,{className:"h-3.5 w-3.5"})})}),n.jsx(pt,{side:"bottom",children:r.isHidden?"Show section":"Hide section"})]}),e[21]=D,e[22]=r.isHidden,e[23]=r.isMultivariate,e[24]=Ae):Ae=e[24];let Z;e[25]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(ia,{asChild:!0,children:n.jsx(Ge,{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(ta,{className:"h-3.5 w-3.5"})})}),e[25]=Z):Z=e[25];let De;e[26]!==h?(De=B=>{B.stopPropagation(),h()},e[26]=h,e[27]=De):De=e[27];let ve;e[28]===Symbol.for("react.memo_cache_sentinel")?(ve=n.jsx(sa,{className:"h-4 w-4"}),e[28]=ve):ve=e[28];let se;e[29]!==De?(se=n.jsxs(it,{onClick:De,children:[ve,"Duplicate"]}),e[29]=De,e[30]=se):se=e[30];let q;e[31]!==i||e[32]!==_?(q=i&&n.jsxs(it,{className:ws,onClick:B=>{B.stopPropagation(),_()},children:[n.jsx(ra,{className:"h-4 w-4"}),"Add variant"]}),e[31]=i,e[32]=_,e[33]=q):q=e[33];let J;e[34]!==te||e[35]!==x?(J=te&&n.jsxs(it,{className:Lr,onClick:B=>{B.stopPropagation(),x()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Make reusable"]}),e[34]=te,e[35]=x,e[36]=J):J=e[36];let ne;e[37]!==j||e[38]!==r.isMultivariate||e[39]!==r.isSavedBlock?(ne=r.isSavedBlock===!0&&!r.isMultivariate&&n.jsxs(it,{onClick:B=>{B.stopPropagation(),j()},children:[n.jsx(cn,{className:"h-4 w-4"}),"Detach"]}),e[37]=j,e[38]=r.isMultivariate,e[39]=r.isSavedBlock,e[40]=ne):ne=e[40];let le;e[41]!==v?(le=B=>{B.stopPropagation(),v()},e[41]=v,e[42]=le):le=e[42];let ke;e[43]===Symbol.for("react.memo_cache_sentinel")?(ke=n.jsx(oa,{className:"h-4 w-4"}),e[43]=ke):ke=e[43];let Se;e[44]!==le?(Se=n.jsxs(it,{className:"text-destructive focus:text-destructive",onClick:le,children:[ke,"Delete"]}),e[44]=le,e[45]=Se):Se=e[45];let de;e[46]!==se||e[47]!==q||e[48]!==J||e[49]!==ne||e[50]!==Se?(de=n.jsxs(la,{children:[Z,n.jsxs(ca,{align:"end",className:"w-44",children:[se,q,J,ne,Se]})]}),e[46]=se,e[47]=q,e[48]=J,e[49]=ne,e[50]=Se,e[51]=de):de=e[51];let ye;return e[52]!==E||e[53]!==M||e[54]!==f||e[55]!==d||e[56]!==ce||e[57]!==ie||e[58]!==je||e[59]!==$||e[60]!==Ae||e[61]!==de||e[62]!==O?(ye=n.jsxs("div",{ref:d,style:ce,...E,...M,role:oe,tabIndex:Te,onClick:f,onKeyDown:O,className:ie,children:[je,$,Ae,de]}),e[52]=E,e[53]=M,e[54]=f,e[55]=d,e[56]=ce,e[57]=ie,e[58]=je,e[59]=$,e[60]=Ae,e[61]=de,e[62]=O,e[63]=ye):ye=e[63],ye}function zr(m){return m.stopPropagation()}function Hr(m){return m.stopPropagation()}function Ur(m){return m.stopPropagation()}function Wr(m){return m.stopPropagation()}function Gr(){return!1}function qr(m){const e=ze.c(90),{listKey:r,rawSections:c,sections:u,meta:g,selectedIndex:S,onSelect:f,onReorder:v,onDelete:h,onDuplicate:x,onMakeReusable:D,onToggleHidden:k,onToggleLazy:_,onAddVariant:j,onDetach:o,onAddSection:w,canAddSection:i}=m,K=i===void 0?!0:i;let E;e[0]!==u.length?(E=()=>En(u.length),e[0]=u.length,e[1]=E):E=e[1];const[M,d]=N.useState(E),[P,ae]=N.useState(null),[T,pe]=N.useState(r),[V,ce]=N.useState(u.length),F=N.useRef(!1);T!==r?(pe(r),ce(u.length),d(En(u.length))):V!==u.length&&(ce(u.length),d(I=>Fr(I,u.length)));let te;e[2]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:8}},e[2]=te):te=e[2];let oe;e[3]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:qn},e[3]=oe):oe=e[3];const Te=In(zt(Hn,te),zt(zn,oe));let O;e[4]!==M?(O=M.map(Jr),e[4]=M,e[5]=O):O=e[5];const ue=O;let ie;e[6]===Symbol.for("react.memo_cache_sentinel")?(ie=I=>{ae(String(I.active.id))},e[6]=ie):ie=e[6];const je=ie;let $;e[7]!==ue||e[8]!==v?($=I=>{ae(null);const{active:re,over:Q}=I;if(!Q||re.id===Q.id)return;const Ie=ue.indexOf(String(re.id)),he=ue.indexOf(String(Q.id));Ie===-1||he===-1||(d(Qe=>ua(Rt([...Qe],Ie,he))),F.current=!0,requestAnimationFrame(()=>{F.current=!1}),v?.(Ie,he))},e[7]=ue,e[8]=v,e[9]=$):$=e[9];const Ae=$;let Z;e[10]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{ae(null)},e[10]=Z):Z=e[10];const De=Z;let ve,se,q,J,ne,le,ke,Se,de,ye,B,X,we,Ke,$e;if(e[11]!==P||e[12]!==K||e[13]!==M||e[14]!==ue||e[15]!==Ae||e[16]!==g||e[17]!==w||e[18]!==j||e[19]!==h||e[20]!==o||e[21]!==x||e[22]!==D||e[23]!==f||e[24]!==k||e[25]!==_||e[26]!==c||e[27]!==u||e[28]!==S||e[29]!==Te){Ke=Symbol.for("react.early_return_sentinel");e:{const I=re=>{F.current||f(re)};if(e[45]!==P||e[46]!==K||e[47]!==M||e[48]!==w||e[49]!==c||e[50]!==u){const re=P?M.find(Q=>Q.id===P):null;if(J=re!=null?u[re.index]:null,q=re!=null?c[re.index]:void 0,M.length===0){let Q;e[54]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"No sections in this page."}),e[54]=Q):Q=e[54];const Ie=!K;let he;e[55]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(un,{size:14}),e[55]=he):he=e[55];let Qe;e[56]!==w||e[57]!==Ie?(Qe=n.jsxs("div",{className:"space-y-2",children:[Q,n.jsxs(Ge,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ie,onClick:w,children:[he,"Add section"]})]}),e[56]=w,e[57]=Ie,e[58]=Qe):Qe=e[58],Ke=Qe;break e}we=Ee(re&&"cursor-grabbing"),e[45]=P,e[46]=K,e[47]=M,e[48]=w,e[49]=c,e[50]=u,e[51]=q,e[52]=J,e[53]=we}else q=e[51],J=e[52],we=e[53];se=Jn,Se=Te,de=Yn,ye=je,B=Ae,X=De,ve=Qn,le=ue,ke=Zn,$e="space-y-1",ne=M.map(re=>{const Q=u[re.index];return Q?n.jsx(Ir,{sortableId:re.id,section:Q,raw:c[re.index],meta:g,selected:S===re.index,onSelect:()=>I(re.index),onDelete:()=>h(re.index),onDuplicate:()=>x(re.index),onMakeReusable:()=>D(re.index),onToggleHidden:()=>k(re.index),onToggleLazy:()=>_(re.index),onAddVariant:()=>j(re.index),onDetach:()=>o(re.index)},re.id):null})}e[11]=P,e[12]=K,e[13]=M,e[14]=ue,e[15]=Ae,e[16]=g,e[17]=w,e[18]=j,e[19]=h,e[20]=o,e[21]=x,e[22]=D,e[23]=f,e[24]=k,e[25]=_,e[26]=c,e[27]=u,e[28]=S,e[29]=Te,e[30]=ve,e[31]=se,e[32]=q,e[33]=J,e[34]=ne,e[35]=le,e[36]=ke,e[37]=Se,e[38]=de,e[39]=ye,e[40]=B,e[41]=X,e[42]=we,e[43]=Ke,e[44]=$e}else ve=e[30],se=e[31],q=e[32],J=e[33],ne=e[34],le=e[35],ke=e[36],Se=e[37],de=e[38],ye=e[39],B=e[40],X=e[41],we=e[42],Ke=e[43],$e=e[44];if(Ke!==Symbol.for("react.early_return_sentinel"))return Ke;let Le;e[59]!==ne||e[60]!==$e?(Le=n.jsx("div",{className:$e,children:ne}),e[59]=ne,e[60]=$e,e[61]=Le):Le=e[61];let Ce;e[62]!==ve||e[63]!==le||e[64]!==ke||e[65]!==Le?(Ce=n.jsx(ve,{items:le,strategy:ke,children:Le}),e[62]=ve,e[63]=le,e[64]=ke,e[65]=Le,e[66]=Ce):Ce=e[66];let Oe;e[67]!==q||e[68]!==J||e[69]!==g?(Oe=J?n.jsx("div",{className:Ee("cursor-grabbing shadow-lg ring-1 ring-border/60",ma(J,!1)),children:n.jsx(da,{section:J,raw:q,meta:g})}):null,e[67]=q,e[68]=J,e[69]=g,e[70]=Oe):Oe=e[70];let Fe;e[71]!==Oe?(Fe=n.jsx(Xn,{dropAnimation:null,children:Oe}),e[71]=Oe,e[72]=Fe):Fe=e[72];let Me;e[73]!==se||e[74]!==Se||e[75]!==de||e[76]!==ye||e[77]!==B||e[78]!==X||e[79]!==Ce||e[80]!==Fe?(Me=n.jsxs(se,{sensors:Se,collisionDetection:de,onDragStart:ye,onDragEnd:B,onDragCancel:X,children:[Ce,Fe]}),e[73]=se,e[74]=Se,e[75]=de,e[76]=ye,e[77]=B,e[78]=X,e[79]=Ce,e[80]=Fe,e[81]=Me):Me=e[81];const xe=!K;let Re;e[82]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(un,{size:14}),e[82]=Re):Re=e[82];let me;e[83]!==w||e[84]!==xe?(me=n.jsxs(Ge,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:xe,onClick:w,children:[Re,"Add section"]}),e[83]=w,e[84]=xe,e[85]=me):me=e[85];let ee;return e[86]!==we||e[87]!==Me||e[88]!==me?(ee=n.jsxs("div",{className:we,children:[Me,me]}),e[86]=we,e[87]=Me,e[88]=me,e[89]=ee):ee=e[89],ee}function Jr(m){return m.id}function Kn(m){const e=ze.c(38),{open:r,initialName:c,autoLabel:u,isPending:g,onSubmit:S,onOpenChange:f}=m,v=g===void 0?!1:g,[h,x]=N.useState(c),[D,k]=N.useState(r);r!==D&&(k(r),r&&x(c));let _;e[0]!==v||e[1]!==f?(_=oe=>{!oe&&!v&&f(!1)},e[0]=v,e[1]=f,e[2]=_):_=e[2];const j=_;let o;e[3]!==v||e[4]!==h||e[5]!==S?(o=async oe=>{oe.preventDefault(),!v&&await S(h.trim())},e[3]=v,e[4]=h,e[5]=S,e[6]=o):o=e[6];const w=o;let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(pr,{children:"Rename variant"}),e[7]=i):i=e[7];const K=u||"the rule";let E;e[8]!==K?(E=n.jsxs(hr,{children:[i,n.jsxs(gr,{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:K}),"."]})]}),e[8]=K,e[9]=E):E=e[9];let M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[10]=M):M=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=oe=>x(oe.target.value),e[11]=d):d=e[11];let P;e[12]!==u||e[13]!==v||e[14]!==h?(P=n.jsxs("div",{className:"space-y-1.5 py-4",children:[M,n.jsx(br,{id:"variant-rename-name",value:h,onChange:d,placeholder:u,autoFocus:!0,disabled:v})]}),e[12]=u,e[13]=v,e[14]=h,e[15]=P):P=e[15];let ae;e[16]!==f?(ae=()=>f(!1),e[16]=f,e[17]=ae):ae=e[17];let T;e[18]!==v||e[19]!==ae?(T=n.jsx(Ge,{type:"button",variant:"outline",onClick:ae,disabled:v,children:"Cancel"}),e[18]=v,e[19]=ae,e[20]=T):T=e[20];let pe;e[21]!==v?(pe=v?n.jsxs(n.Fragment,{children:[n.jsx(Fn,{size:14,className:"animate-spin"}),"Saving…"]}):"Save",e[21]=v,e[22]=pe):pe=e[22];let V;e[23]!==v||e[24]!==pe?(V=n.jsx(Ge,{type:"submit",disabled:v,children:pe}),e[23]=v,e[24]=pe,e[25]=V):V=e[25];let ce;e[26]!==T||e[27]!==V?(ce=n.jsxs(vr,{children:[T,V]}),e[26]=T,e[27]=V,e[28]=ce):ce=e[28];let F;e[29]!==w||e[30]!==ce||e[31]!==E||e[32]!==P?(F=n.jsx(Sr,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:w,children:[E,P,ce]})}),e[29]=w,e[30]=ce,e[31]=E,e[32]=P,e[33]=F):F=e[33];let te;return e[34]!==j||e[35]!==r||e[36]!==F?(te=n.jsx(xr,{open:r,onOpenChange:j,children:F}),e[34]=j,e[35]=r,e[36]=F,e[37]=te):te=e[37],te}const Yr="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)]",fa="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.2)]";function pa(m){const e=ze.c(5),{rule:r,matchers:c}=m,u=r?.__resolveType??"";let g;if(e[0]!==c||e[1]!==u){const h=c.find(x=>x.resolveType===u)?.iconName??Rs(u);g=cr(h),e[0]=c,e[1]=u,e[2]=g}else g=e[2];const S=g;if(!S)return null;let f;return e[3]!==S?(f=n.jsx(S,{size:14,className:"shrink-0"}),e[3]=S,e[4]=f):f=e[4],f}function $n(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function ln(m){return m.map((e,r)=>({id:crypto.randomUUID(),index:r,variant:e}))}function Qr(m){return m.map((e,r)=>({...e,index:r}))}function ha(m){const e=ze.c(16),{label:r,effectiveRule:c,matchers:u,canDelete:g,dragging:S,onRename:f,onDuplicate:v,onDelete:h}=m;let x;e[0]!==c||e[1]!==u?(x=n.jsx(pa,{rule:c,matchers:u}),e[0]=c,e[1]=u,e[2]=x):x=e[2];let D;e[3]!==r?(D=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:r}),e[3]=r,e[4]=D):D=e[4];let k;e[5]!==g||e[6]!==S||e[7]!==r||e[8]!==h||e[9]!==v||e[10]!==f?(k=!S&&n.jsxs(la,{children:[n.jsx(ia,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":`Actions for ${r}`,className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Xr,onPointerDown:Zr,children:n.jsx(ta,{size:14})})}),n.jsxs(ca,{align:"end",className:"w-36",children:[n.jsxs(it,{onClick:j=>{j.stopPropagation(),f?.()},children:[n.jsx(Mr,{size:14}),"Rename"]}),n.jsxs(it,{onClick:j=>{j.stopPropagation(),v?.()},children:[n.jsx(sa,{size:14}),"Duplicate"]}),n.jsx(wr,{}),n.jsxs(it,{variant:"destructive",disabled:!g,onClick:j=>{j.stopPropagation(),h?.()},children:[n.jsx(oa,{size:14}),"Delete"]})]})]}),e[5]=g,e[6]=S,e[7]=r,e[8]=h,e[9]=v,e[10]=f,e[11]=k):k=e[11];let _;return e[12]!==x||e[13]!==D||e[14]!==k?(_=n.jsxs(n.Fragment,{children:[x,D,k]}),e[12]=x,e[13]=D,e[14]=k,e[15]=_):_=e[15],_}function Zr(m){return m.stopPropagation()}function Xr(m){return m.stopPropagation()}function eo(m){const e=ze.c(33),{entry:r,sortableId:c,isActive:u,canDelete:g,decofile:S,meta:f,matchers:v,onSelect:h,onRename:x,onDuplicate:D,onDelete:k}=m;let _;e[0]!==c?(_={id:c,animateLayoutChanges:to},e[0]=c,e[1]=_):_=e[1];const{attributes:j,listeners:o,setNodeRef:w,transform:i,isDragging:K}=Wn(_);let E;e[2]!==i?(E=Gn.Transform.toString(i?{...i,x:0}:null),e[2]=i,e[3]=E):E=e[3];const M=K?0:void 0;let d;e[4]!==E||e[5]!==M?(d={transform:E,opacity:M},e[4]=E,e[5]=M,e[6]=d):d=e[6];const P=d,ae=f??void 0;let T;e[7]!==S||e[8]!==r.variant.rule||e[9]!==ae?(T=Nt(r.variant.rule,S,ae),e[7]=S,e[8]=r.variant.rule,e[9]=ae,e[10]=T):T=e[10];const pe=T;let V;e[11]!==h?(V=O=>{O.target===O.currentTarget&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),h())},e[11]=h,e[12]=V):V=e[12];const ce=K?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",F=u?fa:Yr;let te;e[13]!==ce||e[14]!==F?(te=Ee("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ce,F),e[13]=ce,e[14]=F,e[15]=te):te=e[15];let oe;e[16]!==g||e[17]!==pe||e[18]!==r.variant.label||e[19]!==v||e[20]!==k||e[21]!==D||e[22]!==x?(oe=n.jsx(ha,{label:r.variant.label,effectiveRule:pe,matchers:v,canDelete:g,onRename:x,onDuplicate:D,onDelete:k}),e[16]=g,e[17]=pe,e[18]=r.variant.label,e[19]=v,e[20]=k,e[21]=D,e[22]=x,e[23]=oe):oe=e[23];let Te;return e[24]!==j||e[25]!==o||e[26]!==h||e[27]!==w||e[28]!==P||e[29]!==te||e[30]!==oe||e[31]!==V?(Te=n.jsx("div",{ref:w,style:P,...j,...o,onClick:h,onKeyDown:V,className:te,children:oe}),e[24]=j,e[25]=o,e[26]=h,e[27]=w,e[28]=P,e[29]=te,e[30]=oe,e[31]=V,e[32]=Te):Te=e[32],Te}function to(){return!1}function no(m){const e=ze.c(9),{variant:r,decofile:c,meta:u,matchers:g}=m,S=u??void 0;let f;e[0]!==c||e[1]!==S||e[2]!==r.rule?(f=Nt(r.rule,c,S),e[0]=c,e[1]=S,e[2]=r.rule,e[3]=f):f=e[3];const v=f;let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=Ee("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",fa),e[4]=h):h=e[4];let x;return e[5]!==v||e[6]!==g||e[7]!==r.label?(x=n.jsx("div",{className:h,children:n.jsx(ha,{label:r.label,effectiveRule:v,matchers:g,canDelete:!1,dragging:!0})}),e[5]=v,e[6]=g,e[7]=r.label,e[8]=x):x=e[8],x}function ao(m){const e=ze.c(77),{listKey:r,variants:c,activeIndex:u,decofile:g,meta:S,matchers:f,onSelect:v,onReorder:h,onRename:x,onDuplicate:D,onDelete:k,onAdd:_}=m;let j;e[0]!==c?(j=()=>ln(c),e[0]=c,e[1]=j):j=e[1];const[o,w]=N.useState(j),[i,K]=N.useState(null),[E,M]=N.useState(r),[d,P]=N.useState(c.length);let ae;e[2]!==c?(ae=()=>$n(c),e[2]=c,e[3]=ae):ae=e[3];const[T,pe]=N.useState(ae),V=N.useRef(!1),ce=$n(c);E!==r?(M(r),P(c.length),pe(ce),w(ln(c))):d!==c.length?(P(c.length),pe(ce),w(ln(c))):T!==ce&&(pe(ce),w(Me=>c.map((xe,Re)=>({id:Me[Re]?.id??crypto.randomUUID(),index:Re,variant:xe}))));let F;e[4]===Symbol.for("react.memo_cache_sentinel")?(F={activationConstraint:{distance:8}},e[4]=F):F=e[4];let te;e[5]===Symbol.for("react.memo_cache_sentinel")?(te={coordinateGetter:qn},e[5]=te):te=e[5];const oe=In(zt(Hn,F),zt(zn,te));let Te;e[6]!==o?(Te=o.map(so),e[6]=o,e[7]=Te):Te=e[7];const O=Te,ue=c.length>1;let ie;e[8]!==o?(ie=Me=>{const xe=String(Me.active.id);K(o.find(Re=>Re.id===xe)??null)},e[8]=o,e[9]=ie):ie=e[9];const je=ie;let $;e[10]!==O||e[11]!==h?($=Me=>{K(null);const{active:xe,over:Re}=Me;if(!Re||xe.id===Re.id)return;const me=O.indexOf(String(xe.id)),ee=O.indexOf(String(Re.id));me===-1||ee===-1||(w(I=>Qr(Rt([...I],me,ee))),V.current=!0,requestAnimationFrame(()=>{V.current=!1}),h(me,ee))},e[10]=O,e[11]=h,e[12]=$):$=e[12];const Ae=$;let Z;e[13]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{K(null)},e[13]=Z):Z=e[13];const De=Z;let ve,se,q,J,ne,le,ke,Se,de,ye,B,X,we;if(e[14]!==u||e[15]!==ue||e[16]!==g||e[17]!==o||e[18]!==O||e[19]!==Ae||e[20]!==je||e[21]!==f||e[22]!==S||e[23]!==_||e[24]!==k||e[25]!==D||e[26]!==x||e[27]!==v||e[28]!==oe){const Me=I=>{V.current||v(I)};B="space-y-1 border-b p-2";let xe;e[42]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variants"}),e[42]=xe):xe=e[42];let Re;e[43]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(un,{size:14}),e[43]=Re):Re=e[43];let me;e[44]!==_?(me=n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Add variant",className:"size-6",onClick:_,children:Re})}),e[44]=_,e[45]=me):me=e[45];let ee;e[46]===Symbol.for("react.memo_cache_sentinel")?(ee=n.jsx(pt,{children:"Add variant"}),e[46]=ee):ee=e[46],e[47]!==me?(X=n.jsxs("div",{className:"flex items-center justify-between",children:[xe,n.jsxs(mt,{children:[me,ee]})]}),e[47]=me,e[48]=X):X=e[48],se=Jn,le=oe,ke=Yn,Se=je,de=Ae,ye=De,ve=Qn,J=O,ne=Zn,we="space-y-0.5",q=o.map(I=>n.jsx(eo,{sortableId:I.id,entry:I,isActive:I.index===u,canDelete:ue,decofile:g,meta:S,matchers:f,onSelect:()=>Me(I.index),onRename:()=>x(I.index),onDuplicate:()=>D(I.index),onDelete:()=>k(I.index)},I.id)),e[14]=u,e[15]=ue,e[16]=g,e[17]=o,e[18]=O,e[19]=Ae,e[20]=je,e[21]=f,e[22]=S,e[23]=_,e[24]=k,e[25]=D,e[26]=x,e[27]=v,e[28]=oe,e[29]=ve,e[30]=se,e[31]=q,e[32]=J,e[33]=ne,e[34]=le,e[35]=ke,e[36]=Se,e[37]=de,e[38]=ye,e[39]=B,e[40]=X,e[41]=we}else ve=e[29],se=e[30],q=e[31],J=e[32],ne=e[33],le=e[34],ke=e[35],Se=e[36],de=e[37],ye=e[38],B=e[39],X=e[40],we=e[41];let Ke;e[49]!==q||e[50]!==we?(Ke=n.jsx("div",{className:we,children:q}),e[49]=q,e[50]=we,e[51]=Ke):Ke=e[51];let $e;e[52]!==ve||e[53]!==J||e[54]!==ne||e[55]!==Ke?($e=n.jsx(ve,{items:J,strategy:ne,children:Ke}),e[52]=ve,e[53]=J,e[54]=ne,e[55]=Ke,e[56]=$e):$e=e[56];let Le;e[57]!==i||e[58]!==g||e[59]!==f||e[60]!==S?(Le=i?n.jsx(no,{variant:i.variant,decofile:g,meta:S,matchers:f}):null,e[57]=i,e[58]=g,e[59]=f,e[60]=S,e[61]=Le):Le=e[61];let Ce;e[62]!==Le?(Ce=n.jsx(Xn,{dropAnimation:null,children:Le}),e[62]=Le,e[63]=Ce):Ce=e[63];let Oe;e[64]!==se||e[65]!==le||e[66]!==ke||e[67]!==Se||e[68]!==de||e[69]!==ye||e[70]!==$e||e[71]!==Ce?(Oe=n.jsxs(se,{sensors:le,collisionDetection:ke,onDragStart:Se,onDragEnd:de,onDragCancel:ye,children:[$e,Ce]}),e[64]=se,e[65]=le,e[66]=ke,e[67]=Se,e[68]=de,e[69]=ye,e[70]=$e,e[71]=Ce,e[72]=Oe):Oe=e[72];let Fe;return e[73]!==B||e[74]!==X||e[75]!==Oe?(Fe=n.jsxs("div",{className:B,children:[X,Oe]}),e[73]=B,e[74]=X,e[75]=Oe,e[76]=Fe):Fe=e[76],Fe}function so(m){return m.id}function ro(m){const e=ze.c(15),{schema:r,value:c,onChange:u,meta:g,decofile:S,onSaveReferencedBlock:f,sandbox:v}=m;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[0]=h):h=e[0];const[x,D]=N.useState(h);let k;e[1]!==x?(k=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:()=>D([]),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(na,{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(aa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>D(x.slice(0,w+1)),title:o,className:Ee("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]=k):k=e[2];let _;e[3]!==x||e[4]!==S||e[5]!==g||e[6]!==u||e[7]!==f||e[8]!==v||e[9]!==r||e[10]!==c?(_=n.jsx(ea,{schema:r,value:c,onChange:u,basePath:"",breadcrumbPath:x,onBreadcrumbChange:D,meta:g,decofile:S,onSaveReferencedBlock:f,sandbox:v}),e[3]=x,e[4]=S,e[5]=g,e[6]=u,e[7]=f,e[8]=v,e[9]=r,e[10]=c,e[11]=_):_=e[11];let j;return e[12]!==k||e[13]!==_?(j=n.jsxs("div",{className:"space-y-2",children:[k,_]}),e[12]=k,e[13]=_,e[14]=j):j=e[14],j}function On(m){const e=ze.c(21),{activeSchema:r,formValue:c,formResetKey:u,onFormChange:g,onBreadcrumbChange:S,breadcrumbPath:f,emptyMessage:v,beforeForm:h,seoResolveType:x,siteDefaultSeo:D,meta:k,decofile:_,onSaveReferencedBlock:j,sandbox:o}=m;let w;e[0]!==f?(w=f===void 0?[]:f,e[0]=f,e[1]=w):w=e[1];const i=w;let K;e[2]!==r||e[3]!==i||e[4]!==_||e[5]!==u||e[6]!==c||e[7]!==k||e[8]!==S||e[9]!==g||e[10]!==j||e[11]!==o||e[12]!==x||e[13]!==D?(K=r&&c?x?n.jsx(Rr,{schema:r,resolveType:x,value:c,formResetKey:u,onChange:g,onBreadcrumbChange:S,siteDefaultSeo:D}):n.jsx(ea,{schema:r,value:c,onChange:g,basePath:"",breadcrumbPath:i,onBreadcrumbChange:S,meta:k,decofile:_,onSaveReferencedBlock:j,sandbox:o},u):null,e[2]=r,e[3]=i,e[4]=_,e[5]=u,e[6]=c,e[7]=k,e[8]=S,e[9]=g,e[10]=j,e[11]=o,e[12]=x,e[13]=D,e[14]=K):K=e[14];const E=K;let M;e[15]!==v||e[16]!==E?(M=E??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[15]=v,e[16]=E,e[17]=M):M=e[17];let d;return e[18]!==h||e[19]!==M?(d=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:[h,M]})}),e[18]=h,e[19]=M,e[20]=d):d=e[20],d}const oo="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 io(m,e){return Ns(m,e,tt)}function lo(m){const e=ze.c(13),{pageKey:r,initialName:c,initialPath:u,onFieldChange:g}=m,[S,f]=N.useState(c),[v,h]=N.useState(u),[x,D]=N.useState(r);x!==r&&(D(r),f(c),h(u));let k;e[0]!==g?(k=i=>{f(i.target.value),g("name",i.target.value)},e[0]=g,e[1]=k):k=e[1];let _;e[2]!==S||e[3]!==k?(_=n.jsx("input",{type:"text",value:S,onChange:k,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]=S,e[3]=k,e[4]=_):_=e[4];let j;e[5]!==g?(j=i=>{h(i.target.value),g("path",i.target.value)},e[5]=g,e[6]=j):j=e[6];let o;e[7]!==v||e[8]!==j?(o=n.jsx("input",{type:"text",value:v,onChange:j,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]=j,e[9]=o):o=e[9];let w;return e[10]!==_||e[11]!==o?(w=n.jsxs("div",{className:"space-y-1",children:[_,o]}),e[10]=_,e[11]=o,e[12]=w):w=e[12],w}function Bn(m){const e=ze.c(6),{onClick:r}=m;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(ra,{size:14}),e[0]=c):c=e[0];let u;e[1]!==r?(u=n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{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:c})}),e[1]=r,e[2]=u):u=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 S;return e[4]!==u?(S=n.jsxs(mt,{children:[u,g]}),e[4]=u,e[5]=S):S=e[5],S}function Ln(m){const e=ze.c(21),{currentRt:r,currentLabel:c,currentGlobalKey:u,matchers:g,globals:S,onSelect:f,onSelectGlobal:v,schema:h,formValue:x,onChange:D,formKey:k,formWrapperClassName:_,meta:j,decofile:o,onSaveReferencedBlock:w,sandbox:i}=m;let K;e[0]!==u||e[1]!==c||e[2]!==r||e[3]!==S||e[4]!==g||e[5]!==f||e[6]!==v?(K=n.jsx(Ds,{currentRt:r,currentLabel:c,currentGlobalKey:u,matchers:g,globals:S,onSelect:f,onSelectGlobal:v}),e[0]=u,e[1]=c,e[2]=r,e[3]=S,e[4]=g,e[5]=f,e[6]=v,e[7]=K):K=e[7];let E;e[8]!==o||e[9]!==k||e[10]!==x||e[11]!==_||e[12]!==j||e[13]!==D||e[14]!==w||e[15]!==i||e[16]!==h?(E=h&&x&&n.jsx("div",{className:_,children:n.jsx(ro,{schema:h,value:x,onChange:D,meta:j,decofile:o,onSaveReferencedBlock:w,sandbox:i},k)}),e[8]=o,e[9]=k,e[10]=x,e[11]=_,e[12]=j,e[13]=D,e[14]=w,e[15]=i,e[16]=h,e[17]=E):E=e[17];let M;return e[18]!==K||e[19]!==E?(M=n.jsxs(n.Fragment,{children:[K,E]}),e[18]=K,e[19]=E,e[20]=M):M=e[20],M}function ac({orgSlug:m,virtualMcpId:e,branch:r,previewReady:c=!0,previewUrl:u,currentPath:g,activePageBlockKey:S=null,activeGlobalBlockKey:f=null,externalSelectedIndex:v,onSaved:h,initialEditSeo:x=!1,onExitSeo:D,onViewJsonFile:k,onVariantPreviewOverride:_}){const j=c?{orgSlug:m,virtualMcpId:e,branch:r,previewUrl:u}:null,{data:o,isLoading:w}=Vs(j),{data:i,isLoading:K}=Cs(j),E=Ps(),M=E?.entity?.id===e?E.entity.metadata?.siteSlug??null:null,[d,P]=N.useState(null),[ae,T]=N.useState(null),[pe,V]=N.useState(null),[ce,F]=N.useState(0),[te,oe]=N.useState(void 0),[Te,O]=N.useState(null),[ue,ie]=N.useState(null),[je,$]=N.useState([]),[Ae,Z]=N.useState(0),[De,ve]=N.useState(null),[se,q]=N.useState(null),[J,ne]=N.useState(null),[le,ke]=N.useState(!0),[Se,de]=N.useState(!1),[ye,B]=N.useState(!1),[X,we]=N.useState(x),[Ke,$e]=N.useState(x);x&&!Ke&&($e(!0),we(!0),P(null),T(null),V(null),$([])),!x&&Ke&&$e(!1);const[Le,Ce]=N.useState(null),[Oe,Fe]=N.useState(void 0),[Me,xe]=N.useState([]),[Re,me]=N.useState(0),[ee,I]=N.useState(0),[re,Q]=N.useState(null),[Ie,he]=N.useState(null),[Qe,dn]=N.useState(null),ga=vs(),va=`${m}/${e}/${r}`,Ht=Ts({orgSlug:m,virtualMcpId:e,branch:r}),[Sa,xa]=N.useState(g),[ba,ya]=N.useState(S),[_a,ja]=N.useState(f);(Sa!==g||ba!==S||_a!==f)&&(queueMicrotask(()=>Ht.flush()),xa(g),ya(S),ja(f),P(null),T(null),V(null),F(0),O(null),ie(null),I(0),Q(null),he(null),$([]),Z(t=>t+1),we(!1),Ce(null),Fe(void 0),xe([]),me(t=>t+1));const be=As({orgSlug:m,virtualMcpId:e,branch:r}),Dt=Zs((t,a)=>{be.mutate({blockKey:t,data:a},{onSuccess:()=>h?.(),onError:s=>G.error(`Save failed: ${s.message}`)})}),Ut=Ms({orgSlug:m,virtualMcpId:e,branch:r}),[yt,Vt]=N.useState(!1),Wt=N.useRef(null),ht=N.useRef(null),gt=N.useRef(null),Gt=N.useRef({}),qe=N.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||w||K)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(Fn,{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 ka=Es(o),_e=!!f,He=_e?null:Ks(ka,g,S),R=_e?f:He?.key??null,qt=_e&&f?o[f]:void 0,mn=_e&&f&&qt?$s(f,qt):_e&&f?f:"",Ct=!_e&&R&&o[R]?o[R]:null,Jt=X&&o&&i&&R&&He?Mn(o,{kind:"page",pageKey:R,pageName:String(He.name??""),path:String(He.path??"")},i):null,wa=X?Ct?.seo:void 0,Yt=Oe!==void 0?Oe:wa,Ra=X?Nr(Yt):void 0,Na=Jt?.seoTypeOptions??[],Da=X&&i?Dr(i):"",fn=Le??Ra??{},Qt=X&&Jt?Vr(fn,Jt):null,Va=X&&Qt&&Cr(Yt)?Ot(Qt,i):null,Ca=X?Pr(o,i)?.seoData:void 0,Be=_e?[{label:"Default",sections:[{__resolveType:f}]}]:io(Ct?.sections,o??{}),Pt=Be.length>1,Ve=Math.min(ce,Be.length-1),nt=Be[Ve],H=nt?.sections??[],Pe=Bt(H,o),pn=!_e&&Os(Ct?.sections);if(_e&&f&&Qe!==f){dn(f);const t=H[0],a=Pe[0];if(t&&a){P(0),I(0),$([]);const s=ut(t,a,o);s&&(T(s.data),V(s.resolveType),he(null),Q(null))}}!_e&&Qe!==null&&dn(null),qe.current={rawSections:H,parsedSections:Pe,decofile:o??{},activePageKey:R,pageVariants:Be,variantIndex:Ve,sectionVariantIndex:ee,selectedSectionIndex:d};const Pa=()=>({multivariate:pn,index:Ve,variants:Be.map(t=>({rule:t.rule}))}),hn=(t,a)=>{if(!_)return;if(!R||!pn||t.length<=1){_(null);return}const s=Tn(R,{multivariate:!0,index:a,variants:t},o,i);_(s.length>0?s:null)},vt=(t,a,s)=>{if(!_)return;if(!R){_(null);return}const l=Pa(),p=Tn(R,l,o,i);if(!t||a<0){_(p.length>0?p:null);return}const y=ar({pageKey:R,page:l,sectionIndex:a,sectionLazy:Pe[a]?.isLazy??!1,mvObj:t,selectedVariantIndex:s,decofile:o,meta:i}),b=[...p,...y];_(b.length>0?b:null)},at=(t,a,s,l=d??-1,p=!1)=>{const y=Ye(t,a);if(!y){T(null),V(null),he(null),Q(null),p&&vt(null,l,s);return}const C=Dn(y,tt)[s];if(!C){T(null),V(null),he(null),Q(null),p&&vt(null,l,s);return}const Y=Hs(C.value,o);T(Y?.data??null),V(Y?.resolveType??null);const{resolveType:A,formValue:L}=jt(C.rule,o,i??void 0);he(A),Q(L),p&&vt(y,l,s)};if(v!==void 0&&v!==te&&(oe(v??null),typeof v=="number")){const t=H[v],a=Pe[v];if(t&&a)if(P(v),I(0),$([]),Z(s=>s+1),a.isMultivariate)at(t,a,0,v);else{const s=ut(t,a,o);s?(T(s.data),V(s.resolveType)):(T(null),V(null)),he(null),Q(null)}}const Tt={orgSlug:m,virtualMcpId:e,branch:r,previewUrl:u??void 0,siteSlug:M},Zt=pe&&i?Ot(pe,i):null,Ue=(t,a)=>{if(!R)return;const s=wt(o,R,t,Ve,Be);be.mutate({blockKey:R,data:s},{onSuccess:()=>a?.onSuccess?.()??h?.(),onError:l=>G.error(`Save failed: ${l.message}`)})},St=()=>{P(null),T(null),V(null),I(0),Q(null),he(null),$([]),Z(t=>t+1)},Ta=(t,a)=>{Wt.current&&clearTimeout(Wt.current);const s=qe.current.sectionVariantIndex;Wt.current=setTimeout(()=>{const{rawSections:l,parsedSections:p,decofile:y,activePageKey:b,pageVariants:C,variantIndex:Y}=qe.current,A=l[a];if(!A)return;const L=p[a];if(!L)return;if(L.isSavedBlock){const U=L.isLazy?A.section?.__resolveType??A.__resolveType:A.__resolveType;be.mutate({blockKey:U,data:t},{onSuccess:()=>h?.(),onError:W=>G.error(`Save failed: ${W.message}`)});return}if(!b)return;const z={...y[b]},ge=[...l];if(L.isMultivariate){const U=Ye(A,L);if(!U||!b)return;const W=rr(U,s,t);ge[a]=dt(A,L,W)}else if(L.isHidden){const U=Un(A.__resolveType),W=U?{...A.section}:{...A},Ne=Array.isArray(W.variants)?[...W.variants]:[];Ne[0]&&(Ne[0]={...Ne[0],value:t}),W.variants=Ne,U?ge[a]={...A,section:W}:ge[a]=W}else L.isLazy?ge[a]={...A,section:t}:ge[a]=t;if(C.length>1){const U=z.sections,W=[...U?.variants??[]];W[Y]&&(W[Y]={...W[Y],value:ge}),z.sections={...U,variants:W}}else z.sections=ge;be.mutate({blockKey:b,data:z},{onSuccess:()=>h?.(),onError:U=>G.error(`Save failed: ${U.message}`)})},on)},Aa=t=>{P(t),I(0),$([]),Z(p=>p+1);const a=H[t],s=Pe[t];if(!a||!s)return;if(s.isMultivariate){at(a,s,0,t);return}const l=ut(a,s,o);if(!l){T(null),V(null),he(null),Q(null),vt(null,t,0);return}T(l.data),V(l.resolveType),he(null),Q(null),vt(null,t,0)},gn=t=>{const a=t;T(a),d!==null&&Ta(a,d)},Xt=t=>{if(!R||!o||!i||!He)return;const a={kind:"page",pageKey:R,pageName:String(He.name??""),path:String(He.path??"")},s=Mn(o,a,i);s&&Ht.save(R,()=>{const l=ga.getQueryData(Ss.decofile(va))?.[R];if(!l||typeof l!="object"||l===null||Array.isArray(l))return null;const p={...l,...Gt.current};return Gt.current={},t?.raw!==void 0?{...p,seo:t.raw}:t?.inner!==void 0?Ar(a,s,p,t.inner):p})},Ma=(t,a)=>{R&&(Gt.current[t]=a,Xt())},Ea=(t,a)=>{if(!R)return;const s=Rt([...H],t,a);d!==null&&(d===t?P(a):t<d&&a>=d?P(d-1):t>d&&a<=d&&P(d+1)),Ue(s)},Ka=t=>{if(!R)return;const a=H.filter((s,l)=>l!==t);d===t?St():d!==null&&d>t&&P(d-1),Ue(a)},$a=t=>{if(!R)return;const a=H[t];if(!a)return;const s=[...H];s.splice(t+1,0,nr(a)),d!==null&&d>t&&P(d+1),Ue(s)},Oa=t=>{if(!R)return;const a=H[t],s=Pe[t];if(!a||!s||s.isMultivariate)return;const l=s.isHidden?er(a):tr(a);if(!l)return;const p=[...H];p[t]=l,d===t&&St(),Ue(p)},Ba=t=>{if(!R)return;const a=H[t],s=Pe[t];if(!a||!s||s.isMultivariate)return;const l=Xs(a);if(!l)return;const p=[...H];p[t]=l,d===t&&St(),Ue(p)},La=t=>{if(!R)return;const a=H[t],s=Pe[t];if(!a||!s?.isSavedBlock)return;const l=ut(a,s,o);if(!l?.data)return;const{name:p,...y}=l.data,b=[...H];s.isLazy?b[t]={...a,section:y}:b[t]=y,d===t&&St(),Ue(b)},Fa=t=>{if(!R)return;const a=[...H,{__resolveType:t.resolveType}],s=a.length-1;Ue(a,{onSuccess:()=>{de(!1),P(s),I(0),$([]),Z(b=>b+1);const l=a[s],p=Bt(a,o)[s];if(!l||!p)return;if(p.isMultivariate){at(l,p,0);return}const y=ut(l,p,o);if(!y){T(null),V(null),he(null),Q(null);return}T(y.data),V(y.resolveType),he(null),Q(null)}})},Ia=t=>{if(d===null)return;const a=H[d],s=Pe[d];!a||!s?.isMultivariate||(I(t),$([]),Z(l=>l+1),at(a,s,t,d,!0))},za=t=>{if(d===null||!R)return;const a=H[d],s=Pe[d];if(!a||!s?.isMultivariate)return;const l=Ye(a,s);if(!l)return;const p=Ys(l,t);if(!p){G.error("Cannot delete the only variant.");return}const y=[...H];y[d]=dt(a,s,p);const b=p.variants;let C=ee;t===ee?C=Math.min(t,b.length-1):t<ee&&(C=ee-1),I(C),$([]),Z(Y=>Y+1),at(y[d],s,C),Ue(y)},Ha=t=>{if(d===null||!R)return;const a=H[d],s=Pe[d];if(!a||!s?.isMultivariate)return;const l=Ye(a,s);if(!l)return;const p=Qs(l,t),y=[...H];y[d]=dt(a,s,p);const b=t+1;I(b),$([]),Z(C=>C+1),at(y[d],s,b),Ue(y)},Ua=(t,a)=>{if(d===null||!R||t===a)return;const s=H[d],l=Pe[d];if(!s||!l?.isMultivariate)return;const p=Ye(s,l);if(!p)return;const y=qs(p,t,a),b=[...H];b[d]=dt(s,l,y);let C=ee;ee===t?C=a:t<ee&&a>=ee?C=ee-1:t>ee&&a<=ee&&(C=ee+1),I(C),at(b[d],l,C),Ue(b)},en=t=>{const a=t??d;if(a===null||!R)return;const s=H[a],l=Pe[a];if(!s||!l)return;const p=Us(s,l);if(!p){G.error("This section cannot have variants.");return}const y=[...H];y[a]=p.section;const b=Bt(y,o)[a];if(!b?.isMultivariate){G.error("Could not add variant.");return}P(a),I(p.newVariantIndex),$([]),Z(C=>C+1),at(p.section,b,p.newVariantIndex,a),Ue(y)},Wa=()=>{if(d===null||!R)return;const t=H[d],a=Pe[d];if(!t||!a?.isMultivariate)return;const s=Ye(t,a);if(!s)return;const l=Js(t,a,s);if(!l){G.error("Could not remove variants.");return}const p=[...H];p[d]=l;const y=Bt(p,o)[d];if(!y)return;I(0),he(null),Q(null),$([]),Z(C=>C+1);const b=ut(l,y,o);b?(T(b.data),V(b.resolveType)):(T(null),V(null)),vt(null,d,0),Ue(p)},Ga=async t=>{if(De===null||!R)return;const a=rn(t,o);if(a){G.error(a);return}const s=H[De],l=Pe[De];if(!s||!l)return;const p=ut(s,l,o);if(!p){G.error("This section cannot be saved as global.");return}const y={...p.data,name:t};try{await be.mutateAsync({blockKey:t,data:y});const b=[...H];b[De]={__resolveType:t},await be.mutateAsync({blockKey:R,data:wt(o,R,b,Ve,Be)}),d===De&&St(),ve(null),G.success(`Saved global block "${t}"`),h?.()}catch(b){G.error(b instanceof Error?b.message:"Failed to save global block")}},vn=nt?.rule;if(Pt&&d===null&&ue===null&&vn){const{resolveType:t,formValue:a}=jt(vn,o??{},i??void 0);ie(t),O(a)}const At=i?Bs(i):[],Sn=i&&o?Ls(i,o):[],qa=!_e&&!!(u&&i&&o),Ja=ue&&i?Ot(ue,i):null,Mt=()=>{ht.current&&(clearTimeout(ht.current),ht.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null)},_t=async(t,a)=>{if(!(sr(a,t,i)>0))try{await Ut.mutateAsync({blockKey:t})}catch(s){G.error(s instanceof Error?s.message:"Could not delete matcher block")}},xn=t=>{ht.current&&clearTimeout(ht.current),ht.current=setTimeout(()=>{const{activePageKey:a,decofile:s,variantIndex:l}=qe.current;if(!a)return;const p={...s[a]},y={...p.sections},b=[...y.variants??[]],C=b[l],Y=C?.rule;if(xt(Y,s,i)){const A=Y?.__resolveType??"",L=s[A],z=typeof L?.name=="string"?L.name:A,{__resolveType:ge,...U}=t;be.mutate({blockKey:A,data:bt(ge??"",U,z)},{onSuccess:()=>h?.(),onError:W=>G.error(`Save failed: ${W.message}`)});return}C&&(b[l]={...C,rule:t}),p.sections={...y,variants:b},be.mutate({blockKey:a,data:p},{onSuccess:()=>h?.(),onError:A=>G.error(`Save failed: ${A.message}`)})},on)},Ya=t=>{ie(t);const a=t?{__resolveType:t}:{__resolveType:An};O({}),xn(a)},Qa=t=>{const a=t;O(a);const s=ue?{__resolveType:ue,...a}:{...a};xn(s)},Za=async t=>{Mt();const{activePageKey:a,decofile:s,variantIndex:l}=qe.current;if(!a)return;const p=s[a],y=p?.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const b=y;if(!Array.isArray(b.variants))return;const C=[...b.variants],Y=C[l];if(!Y)return;const A=kt(Y.rule,s,i),L=Ft(t);C[l]={...Y,rule:L};const z={...s,[a]:{...p,sections:{...b,variants:C}}},{resolveType:ge,formValue:U}=jt(L,z,i??void 0);ie(ge),O(U);try{await be.mutateAsync({blockKey:a,data:z[a]}),A&&A!==t&&await _t(A,z),h?.()}catch(W){G.error(W instanceof Error?W.message:"Could not apply saved rule")}},bn=t=>{gt.current&&clearTimeout(gt.current);const{selectedSectionIndex:a,sectionVariantIndex:s}=qe.current;a!==null&&(gt.current=setTimeout(()=>{const{rawSections:l,parsedSections:p,decofile:y,activePageKey:b,pageVariants:C,variantIndex:Y}=qe.current;if(!b)return;const A=l[a],L=p[a];if(!A||!L?.isMultivariate)return;const z=Ye(A,L);if(!z)return;const U=(z.variants??[])[s]?.rule;if(xt(U,y,i)){const fe=U?.__resolveType??"",We=y[fe],Xe=typeof We?.name=="string"?We.name:fe,{__resolveType:rt,...et}=t;be.mutate({blockKey:fe,data:bt(rt??"",et,Xe)},{onSuccess:()=>h?.(),onError:ot=>G.error(`Save failed: ${ot.message}`)});return}const W=Vn(z,s,t),Ne=[...l];Ne[a]=dt(A,L,W);const Je=wt(y,b,Ne,Y,C);be.mutate({blockKey:b,data:Je},{onSuccess:()=>h?.(),onError:fe=>G.error(`Save failed: ${fe.message}`)})},on))},Xa=t=>{he(t),Q({}),bn(t?{__resolveType:t}:{__resolveType:An})},es=t=>{const a=t;Q(a);const s=Ie?{__resolveType:Ie,...a}:{...a};bn(s)},ts=async t=>{Mt();const{selectedSectionIndex:a,sectionVariantIndex:s,rawSections:l,parsedSections:p,decofile:y,activePageKey:b,pageVariants:C,variantIndex:Y}=qe.current;if(a===null||!b)return;const A=l[a],L=p[a];if(!A||!L?.isMultivariate)return;const z=Ye(A,L);if(!z)return;const ge=z.variants??[],U=kt(ge[s]?.rule,y,i),W=Ft(t),Ne=Vn(z,s,W),Je=[...l];Je[a]=dt(A,L,Ne);const fe=wt(y,b,Je,Y,C),We={...y,[b]:fe},{resolveType:Xe,formValue:rt}=jt(W,We,i??void 0);he(Xe),Q(rt);try{await be.mutateAsync({blockKey:b,data:fe}),U&&U!==t&&await _t(U,We),h?.()}catch(et){G.error(et instanceof Error?et.message:"Could not apply saved rule")}};if(!_e&&!He)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(_e&&!qt)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=d!==null?Pe[d]??null:null,yn=d!==null?H[d]:null,_n=yn&&st?.isMultivariate?Ye(yn,st):null,lt=_n?Dn(_n,tt):[],tn=Math.min(ee,Math.max(lt.length-1,0)),Et=lt[tn]??null,ct=st?.isMultivariate===!0,jn=d!==null&&st!==null,Kt=jn&&(ct||!!(Zt&&ae)),ns=Kt&&!_e&&st?.isSavedBlock===!0,Ze=_e||ns,as=_e?mn:st?.label??"",ss=Ie&&i?Ot(Ie,i):null,nn=Kt&&(!_e||je.length>0)?_e?[mn,...je]:[He.name,st.label,...ct&&Et?[Et.label]:[],...je]:[],rs=X&&He?[He.name,"SEO",...Me]:[],$t=X?rs:Ze?nn.length>0?nn:[as]:nn,kn=()=>{if(!R)return;const t=o[R],a=Ws(t.sections,H);if(!a)return;const s=Gs(a);be.mutate({blockKey:R,data:{...t,sections:a}},{onSuccess:()=>{F(s),P(null),T(null),V(null),$([]),O(null),ie(null)},onError:l=>G.error(`Save failed: ${l.message}`)})},an=(t,a,s)=>{if(!R)return;const l=o[R],p=l.sections;if(!p||typeof p!="object"||Array.isArray(p))return;const y=p;if(!Array.isArray(y.variants))return;const b=t([...y.variants]);if(!b)return;const C=or(y,b),Y={...o,[R]:{...l,sections:C}};be.mutate({blockKey:R,data:Y[R]},{onSuccess:()=>{a?.(),s&&_t(s,Y)},onError:A=>G.error(`Save failed: ${A.message}`)})},os=t=>{q(null),F(t),P(null),T(null),V(null),$([]);const a=Be[t]?.rule,{resolveType:s,formValue:l}=jt(a,o??{},i??void 0);ie(s),O(l),hn(Be.map(p=>({rule:p.rule})),t)},is=(t,a)=>{if(t===a)return;let s=Ve;Ve===t?s=a:t<Ve&&a>=Ve?s=Ve-1:t>Ve&&a<=Ve&&(s=Ve+1),F(s);const l=Rt(Be.map(p=>({rule:p.rule})),t,a);hn(l,s),an(p=>Rt(p,t,a))},ls=t=>{const a=Be[t]?.rule,s=kt(a,o??{},i??void 0);an(l=>l.length<=1?null:(l.splice(t,1),l),()=>{Be.length-1===1?F(0):t<Ve?F(Ve-1):t===Ve&&F(Math.max(0,t-1)),P(null),T(null),V(null),$([]),O(null),ie(null)},s)},cs=t=>{an(a=>ir(a,t),()=>{F(t+1),P(null),T(null),V(null),$([]),O(null),ie(null)})},us=async(t,a)=>{Mt();const s=qe.current.activePageKey,l=qe.current.decofile;if(!s)return;const p=l[s],y=p.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const b=y;if(!Array.isArray(b.variants))return;const C=[...b.variants],Y=C[t];if(!Y?.rule||typeof Y.rule!="object"){G.error("This variant has no matcher rule to rename.");return}const A=Y.rule,L=a.trim();Vt(!0);try{if(!L){if(!xt(A,l,i)){q(null);return}const Je=A.__resolveType??"";C[t]={...Y,rule:Cn(A,l,i)};const fe={...l,[s]:{...p,sections:{...b,variants:C}}};await be.mutateAsync({blockKey:s,data:fe[s]}),await _t(Je,fe),q(null),h?.();return}const z=Pn(A,l,i);if(!z){G.error("Could not read this variant's matcher rule.");return}if(z.blockKey){await be.mutateAsync({blockKey:z.blockKey,data:bt(z.resolveType,z.data,L)}),q(null),h?.();return}const ge=sn(L),U=rn(ge,l);if(U){G.error(U);return}const W=bt(z.resolveType,z.data,L);let Ne=null;try{await be.mutateAsync({blockKey:ge,data:W}),Ne=ge,C[t]={...Y,rule:Ft(ge)},await be.mutateAsync({blockKey:s,data:{...p,sections:{...b,variants:C}}}),Ne=null}catch(Je){throw Ne&&await Ut.mutateAsync({blockKey:Ne}).catch(()=>{}),Je}q(null),G.success(`Saved matcher as global block "${L}"`),h?.()}catch(z){G.error(z instanceof Error?z.message:"Failed to rename variant")}finally{Vt(!1)}},ds=async(t,a)=>{Mt();const{selectedSectionIndex:s,rawSections:l,parsedSections:p,decofile:y,activePageKey:b,pageVariants:C,variantIndex:Y}=qe.current;if(s===null||!b)return;const A=l[s],L=p[s];if(!A||!L?.isMultivariate)return;const z=Ye(A,L);if(!z)return;const ge=z.variants??[],U=ge[t];if(!U?.rule||typeof U.rule!="object"){G.error("This variant has no matcher rule to rename.");return}const W=U.rule,Ne=a.trim();Vt(!0);const Je=async fe=>{const We={...z,variants:fe},Xe=[...l];Xe[s]=dt(A,L,We);const rt=wt(y,b,Xe,Y,C);return await be.mutateAsync({blockKey:b,data:rt}),{...y,[b]:rt}};try{if(!Ne){if(!xt(W,y,i)){ne(null);return}const ot=W.__resolveType??"",Nn=[...ge];Nn[t]={...U,rule:Cn(W,y,i)};const gs=await Je(Nn);await _t(ot,gs),ne(null),h?.();return}const fe=Pn(W,y,i);if(!fe){G.error("Could not read this variant's matcher rule.");return}if(fe.blockKey){await be.mutateAsync({blockKey:fe.blockKey,data:bt(fe.resolveType,fe.data,Ne)}),ne(null),h?.();return}const We=sn(Ne),Xe=rn(We,y);if(Xe){G.error(Xe);return}const rt=bt(fe.resolveType,fe.data,Ne);let et=null;try{await be.mutateAsync({blockKey:We,data:rt}),et=We;const ot=[...ge];ot[t]={...U,rule:Ft(We)},await Je(ot),et=null}catch(ot){throw et&&await Ut.mutateAsync({blockKey:et}).catch(()=>{}),ot}ne(null),G.success(`Saved matcher as global block "${Ne}"`),h?.()}catch(fe){G.error(fe instanceof Error?fe.message:"Failed to rename variant")}finally{Vt(!1)}},wn=()=>{St()},ms=t=>{Ce(t),Xt({inner:t})},fs=t=>{Fe(t),Xt({raw:t})},ps=()=>{Ce(null),xe([])},hs=()=>me(t=>t+1),Rn=t=>{if(X){if(t===0){Ht.flush(),we(!1),Ce(null),Fe(void 0),xe([]),me(s=>s+1),D?.();return}if(t===1){xe([]),me(s=>s+1);return}xe(Me.slice(0,t-1)),me(s=>s+1);return}if(_e){$(je.slice(0,t)),Z(s=>s+1);return}if(t===0){wn();return}if(t===1){$([]),Z(s=>s+1);return}if(ct&&t===2){$([]),Z(s=>s+1);return}const a=ct?2:1;$(je.slice(0,t-a))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:Ze||Kt||X?n.jsxs("div",{className:Ee("border-b px-3 py-2.5",Ze&&"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:[$t.length>1&&n.jsx("button",{type:"button",onClick:()=>Rn($t.length-2),title:"Back","aria-label":"Back",className:Ee("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",Ze?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(na,{className:"size-4"})}),!_e&&Pt&&nt&&n.jsxs("button",{type:"button",onClick:wn,title:`Editing in variant: ${nt.label}`,className:Ee("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",oo),children:[n.jsx(pa,{rule:Nt(nt.rule,o??{},i??void 0),matchers:At}),n.jsx("span",{className:"max-w-[160px] truncate",children:nt.label})]}),n.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:$t.map((t,a)=>{const s=a===$t.length-1;return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[a>0&&n.jsx(aa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Rn(a),title:t,className:Ee("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",s?Ze?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":Ze?"text-foreground/80":"text-muted-foreground",Ze?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:t})]},`${t}-${a}`)})}),Ze&&n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(fr,{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."})]}),jn&&!ct&&!st?.isHidden&&R&&n.jsx(Bn,{onClick:()=>en()})]}),Ze&&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(lo,{pageKey:R,initialName:He.name,initialPath:He.path,onFieldChange:Ma})}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"Edit SEO",className:"size-7 shrink-0",onClick:()=>we(!0),children:n.jsx(ur,{size:14})})}),n.jsx(pt,{side:"bottom",children:"Edit SEO"})]}),n.jsxs(mt,{children:[n.jsx(ft,{asChild:!0,children:n.jsx(Ge,{type:"button",variant:"ghost",size:"icon","aria-label":"View JSON",className:"size-7 shrink-0",onClick:()=>k&&R?k(R):B(!0),children:n.jsx(dr,{size:14})})}),n.jsx(pt,{side:"bottom",children:"View JSON"})]}),n.jsx(Bn,{onClick:kn})]})}),X?n.jsx(It,{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:Ct&&R?n.jsx(Tr,{rawSeo:Yt,innerSeo:fn,defaultResolveType:Da,seoSchema:Va,activeResolveType:Qt,seoTypeOptions:Na,formResetKey:Re,siteDefaultSeo:Ca,onBreadcrumbChange:xe,onPersistRaw:fs,onInnerChange:ms,onClearForm:ps,onBumpFormKey:hs}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"SEO schema not found for this site."})})})}):Kt?n.jsxs(It,{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(Fs,{listKey:`${R??""}:${d??""}`,variants:lt.map((t,a)=>({index:a,label:t.label})),selectedIndex:tn,onSelect:Ia,onRename:ne,onDuplicate:Ha,onDelete:za,onRemoveAll:Wa,onReorder:Ua,onAdd:()=>en()}),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(Ln,{currentRt:Ie??"",currentLabel:Lt(Et?.rule,o??{},tt,i??void 0),currentGlobalKey:kt(Et?.rule,o??{},i??void 0)??void 0,matchers:At,globals:Sn,onSelect:Xa,onSelectGlobal:ts,schema:ss,formValue:re,onChange:es,formKey:`${d??"none"}:${tn}:${Ie??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:o,onSaveReferencedBlock:Dt,sandbox:Tt})]})]}),n.jsx(On,{activeSchema:Zt,formValue:ae,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:$,breadcrumbPath:je,emptyMessage:"No editable fields for this variant.",meta:i,decofile:o,onSaveReferencedBlock:Dt,sandbox:Tt})]}):_e?n.jsx(It,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(On,{activeSchema:Zt,formValue:ae,formResetKey:Ae,onFormChange:gn,onBreadcrumbChange:$,breadcrumbPath:je,emptyMessage:"No editable fields for this global block.",meta:i,decofile:o,onSaveReferencedBlock:Dt,sandbox:Tt})}):n.jsxs(It,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&R&&n.jsx(ao,{listKey:R,variants:Be,activeIndex:Ve,decofile:o??{},meta:i,matchers:At,onSelect:os,onReorder:is,onRename:q,onDuplicate:cs,onDelete:ls,onAdd:kn}),Pt&&ue!==null&&n.jsxs("div",{className:Ee("px-3 border-b",le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>ke(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":le,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Variant rule"}),le?n.jsx(mr,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(lr,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),le&&n.jsx("div",{className:Ee("space-y-3",yt&&"pointer-events-none opacity-50"),children:n.jsx(Ln,{currentRt:ue,currentLabel:Lt(nt?.rule,o??{},tt,i??void 0),currentGlobalKey:kt(nt?.rule,o??{},i??void 0)??void 0,matchers:At,globals:Sn,onSelect:Ya,onSelectGlobal:Za,schema:Ja,formValue:Te,onChange:Qa,formKey:`${Ve}:${ue??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:o,onSaveReferencedBlock:Dt,sandbox:Tt})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(qr,{listKey:`${R??""}-${Ve}`,rawSections:H,sections:Pe,meta:i,selectedIndex:d,onSelect:Aa,onReorder:Ea,onDelete:Ka,onDuplicate:$a,onMakeReusable:ve,onToggleHidden:Oa,onToggleLazy:Ba,onAddVariant:en,onDetach:La,onAddSection:()=>de(!0),canAddSection:qa})})]}),n.jsx(Is,{open:De!==null,onOpenChange:t=>{t||ve(null)},defaultBlockId:De!==null?sn(Pe[De]?.label??""):"",isPending:be.isPending,onSubmit:Ga}),u&&n.jsx(Er,{open:Se,onOpenChange:de,meta:i,decofile:o,previewBaseUrl:u,onSelect:Fa}),ye&&R&&o&&n.jsx(zs,{open:ye,onOpenChange:B,pageKey:R,decofile:o}),se!==null&&n.jsx(Kn,{open:!0,initialName:xt(Be[se]?.rule,o??{},i??void 0)?Lt(Be[se]?.rule,o??{},tt,i??void 0):"",autoLabel:tt(Nt(Be[se]?.rule,o??{},i??void 0)),isPending:yt,onSubmit:async t=>{await us(se,t)},onOpenChange:t=>{!t&&!yt&&q(null)}}),J!==null&&n.jsx(Kn,{open:!0,initialName:xt(lt[J]?.rule,o??{},i??void 0)?Lt(lt[J]?.rule,o??{},tt,i??void 0):"",autoLabel:tt(Nt(lt[J]?.rule,o??{},i??void 0)),isPending:yt,onSubmit:async t=>{await ds(J,t)},onOpenChange:t=>{!t&&!yt&&ne(null)}})]})}export{ac as SectionsEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-50Nc58LU.js","assets/index-QeeIyPD-.js","assets/index-DxTnZ0Oo.css","assets/Tool02-f6hCEEx5.js","assets/CheckCircle-Dqg_7udX.js","assets/Settings02-Kn3GUgY3.js","assets/use-mcp-client-DXFWWHbs.js","assets/auth-wA89jw5z.js","assets/useInfiniteQuery-DvViU0Gq.js","assets/use-infinite-scroll-Cylb4hyl.js","assets/studio-tools-Dz5m3DDC.js","assets/badge-C22fJvJ9.js","assets/input-ksjqlSwm.js","assets/dropdown-menu-CCf9b-Ue.js","assets/ChevronUp-Bu3KYaYp.js","assets/ChevronRight-DQFD5vOs.js","assets/DotsVertical-4fMK5hdE.js","assets/table-FWVzL2nm.js","assets/toggle-group-DvzPCkJs.js","assets/use-view-mode-BEQ3VoIc.js","assets/use-mobile-CEVETdVq.js","assets/FilterLines-jo0eHglf.js","assets/Globe01-BEuNOgWE.js","assets/SearchMd-DU7sZsGX.js","assets/dialog-B_MtszrV.js","assets/X-BJznV24Z.js","assets/AlertCircle-BtNVN6lT.js","assets/Upload01-DPgiWRF2.js","assets/alert-dialog-9jx8jzEO.js","assets/card-BZY4DqkC.js","assets/Trash01-Dgm4FHaX.js","assets/label-B8xrTNKP.js","assets/select-BK6Fwx47.js","assets/tooltip-CfmdP-aL.js","assets/ChevronDown-CtpYRw0N.js","assets/switch-BGTwAogo.js","assets/textarea-B0BnrQRd.js","assets/XCircle-Mn7Ozb-Q.js","assets/checkbox-DvRekaoI.js","assets/Eye-7UpR5EsV.js","assets/LinkExternal01-DjHN0DVc.js","assets/use-copy-CCSClSvL.js","assets/Copy01-B4AQ9voq.js","assets/Key01-wlopeCn8.js","assets/Plus-BhgoGeba.js","assets/mcp-oauth-C_zNkYXB.js","assets/Play-pFWdRfmo.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,aX as f}from"./index-QeeIyPD-.js";import{R as u}from"./require-capability-BMCPfqFj.js";import"./use-capability-B2RpFGXs.js";import"./access-gate-CXUaT8Bg.js";import"./capability-load-error-D-GHd7kt.js";const g=l.lazy(()=>f(()=>import("./registry-layout-50Nc58LU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));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-Cylb4hyl.js";import{dK as i}from"./index-QeeIyPD-.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-Cylb4hyl.js";import{dK as u,ab as n}from"./index-QeeIyPD-.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};