decocms 4.320.0 → 4.321.1

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 (257) hide show
  1. package/dist/client/assets/{AlertCircle-DZjE_Y0H.js → AlertCircle-DTA-xmN8.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DIFD2336.js → AreaChart-DWzH4cl2.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BsR-6m6j.js → ArrowLeft-DJHyaGVg.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-UBHjzAp-.js → ArrowUp-B56zz92l.js} +1 -1
  5. package/dist/client/assets/{Check-CA6oOwnk.js → Check-yANPvlWH.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BaphLiUh.js → CheckCircle-CEm5M3Tl.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-C1PKtWq_.js → ChevronRight-D_8iRnVD.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-uLPnhvHf.js → ChevronSelectorVertical-CDr8Ovfg.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BWJ43Ad_.js → ChevronUp-D9JVuW7G.js} +1 -1
  10. package/dist/client/assets/{Copy01-DHhdbM_J.js → Copy01-ZnkwptEM.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-BewJRmPb.js → CreditCard01-DBOo-aYq.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CuAwCaPW.js → DotsVertical-mvRvTh6x.js} +1 -1
  13. package/dist/client/assets/{Download01-R47mE7bD.js → Download01-CeBHR-fX.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-eD_UIVvY.js → ErrorBarContext-CMbUifoM.js} +1 -1
  15. package/dist/client/assets/{Eye-D3bCBJMo.js → Eye-ggEjyhYq.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-CjfnHX9l.js → GitBranch01-DZEodcVR.js} +1 -1
  17. package/dist/client/assets/{Globe01-DeCmIrD5.js → Globe01-Dj13xfTI.js} +1 -1
  18. package/dist/client/assets/{HardDrive-BpRcIm2Z.js → HardDrive-Bkrrs0FV.js} +1 -1
  19. package/dist/client/assets/{Image01-CStOAxG7.js → Image01-DfTbYbFE.js} +1 -1
  20. package/dist/client/assets/{Key01-ICcTBF9U.js → Key01-BBxtRrGm.js} +1 -1
  21. package/dist/client/assets/{Link01-CLzBJa_Z.js → Link01-DUUbBvGo.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-w2j8lCTU.js → LinkExternal01-61qG-hFo.js} +1 -1
  23. package/dist/client/assets/{LockUnlocked01-CbuTs0EA.js → LockUnlocked01-BfX9zVyU.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CMjB6a1I.js → Monitor01-Cvj67Ryv.js} +1 -1
  25. package/dist/client/assets/{Package-BOH9DZQ0.js → Package-B4jzjbE8.js} +1 -1
  26. package/dist/client/assets/{Palette-CVvoWFYM.js → Palette-CXReGsk_.js} +1 -1
  27. package/dist/client/assets/{Play-Bn8_HZzx.js → Play-kr1GKsAc.js} +1 -1
  28. package/dist/client/assets/{Plus-DZ-r7ICl.js → Plus-Bz1cAYCY.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BpXAT-eZ.js → SearchMd-DN6cu6SZ.js} +1 -1
  30. package/dist/client/assets/{Sector-fzRIcAmV.js → Sector-DidaJ4gW.js} +1 -1
  31. package/dist/client/assets/{Settings02-CkPf5bSQ.js → Settings02-C39ViKVB.js} +1 -1
  32. package/dist/client/assets/{Share07-P3qF7VX0.js → Share07-vMCtuazW.js} +1 -1
  33. package/dist/client/assets/{Shield01-BhVJtpaL.js → Shield01-SPzOFIU1.js} +1 -1
  34. package/dist/client/assets/{Stars01-Dxt-GRKF.js → Stars01-q62Ogx-P.js} +1 -1
  35. package/dist/client/assets/{Sun-ZKlmnxLK.js → Sun-B3CG15-H.js} +1 -1
  36. package/dist/client/assets/{ThumbsUp-BFZZTKVU.js → ThumbsUp-DV6K5Csu.js} +1 -1
  37. package/dist/client/assets/{Tool01-Cz6q9HPW.js → Tool01-DP3BW23e.js} +1 -1
  38. package/dist/client/assets/{Tool02-Dh-KcCDo.js → Tool02-DT-zZ1ks.js} +1 -1
  39. package/dist/client/assets/{Trash01-BDaDkc_-.js → Trash01-D5j2YoAs.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-gaB_ebZy.js → TrendUp01-CaNIYwx8.js} +1 -1
  41. package/dist/client/assets/{Upload01-BaOVc9nV.js → Upload01-DSJ1fWRp.js} +1 -1
  42. package/dist/client/assets/{User01-CvjutW7d.js → User01-Bq-AsdvG.js} +1 -1
  43. package/dist/client/assets/{UserSquare-DXupINNG.js → UserSquare-DGuYrk9Q.js} +1 -1
  44. package/dist/client/assets/{Users01-BYJLxdvv.js → Users01-CS6rfCga.js} +1 -1
  45. package/dist/client/assets/{Users03-DOh7pHdk.js → Users03-BnbWbfJy.js} +1 -1
  46. package/dist/client/assets/{XCircle-DQV3a8ui.js → XCircle-Dlv7pZja.js} +1 -1
  47. package/dist/client/assets/{XClose-Dciq0-47.js → XClose-BNIppwTn.js} +1 -1
  48. package/dist/client/assets/{Zap-BeDIMc43.js → Zap-CywbYsFI.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-C3_0q9Na.js → ZoomOut-jLe5z2Gu.js} +1 -1
  50. package/dist/client/assets/{access-gate-asM9jXYM.js → access-gate-CgF7Ajgl.js} +1 -1
  51. package/dist/client/assets/{agent-icon-C7HwxMy2.js → agent-icon-D-9pJpLD.js} +1 -1
  52. package/dist/client/assets/{agents-list-BDCETOyD.js → agents-list-Bp5Z7NYF.js} +1 -1
  53. package/dist/client/assets/{ai-providers-DAeDnbZL.js → ai-providers-BxXtxvrC.js} +1 -1
  54. package/dist/client/assets/{alert-kAvO_IQi.js → alert-DlKRUXrR.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-1uO7Q1_D.js → alert-dialog-D3FLXTEj.js} +1 -1
  56. package/dist/client/assets/{analytics-tab-DGo7bHoB.js → analytics-tab-BfjNGR6F.js} +1 -1
  57. package/dist/client/assets/api-keys-DpAgTJhn.js +1 -0
  58. package/dist/client/assets/{api-keys-BMnD4InK.js → api-keys-DyNVpi-W.js} +1 -1
  59. package/dist/client/assets/app-editor-Zo3b9Buj.js +1 -0
  60. package/dist/client/assets/{auth-CyxtW7VU.js → auth-CeWlFDdC.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-BgPXl6l7.js → auth-catchall-D7POTu6Q.js} +1 -1
  62. package/dist/client/assets/{auth-entry-itFULZ8Z.js → auth-entry-COCcX5A_.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-BsnYR-yK.js → auth-split-layout-BG8u1Dhb.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-BH26XKT9.js → authenticate-and-persist-oauth-CxGKh8aj.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-fcDYKNgJ.js → automation-list-row-Dr9aH5cl.js} +1 -1
  66. package/dist/client/assets/{automation-runs-BPY4nydY.js → automation-runs-D-MsqDZA.js} +1 -1
  67. package/dist/client/assets/{automations-BfJlUnUa.js → automations-DmzNjC10.js} +1 -1
  68. package/dist/client/assets/{avatar-CxjMK0xh.js → avatar-CsipcR4h.js} +1 -1
  69. package/dist/client/assets/{badge-Dx14P1uf.js → badge-Cr2fQRq8.js} +1 -1
  70. package/dist/client/assets/{block-document-6TSCP-wD.js → block-document-CPpzuDJ1.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-B9-pZnD9.js → breadcrumb-BOw37uby.js} +1 -1
  72. package/dist/client/assets/{buckets-Dtq5LgxY.js → buckets-BhMvQpB6.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-Clsi9QbK.js → bulk-category-panel-lgnUhRZs.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-CUNqj87m.js → capability-load-error-D2I8YlS5.js} +1 -1
  75. package/dist/client/assets/{cards-BLVEB5RL.js → cards-Ckz_jSmB.js} +1 -1
  76. package/dist/client/assets/{category-editor-DmSBVcZu.js → category-editor-CUeNF_8r.js} +1 -1
  77. package/dist/client/assets/{cdn-tab-CBrImPtE.js → cdn-tab-EuSTLp5_.js} +1 -1
  78. package/dist/client/assets/{chart-DlBzaqfk.js → chart-BIwqiDqG.js} +1 -1
  79. package/dist/client/assets/{chat-context-mKzm57ri.js → chat-context-oSgRN_kR.js} +1 -1
  80. package/dist/client/assets/{checkbox-BtMOjQuM.js → checkbox-DRf1c0rh.js} +1 -1
  81. package/dist/client/assets/{choose-editor-CorMEUQ9.js → choose-editor-Pdurttdh.js} +1 -1
  82. package/dist/client/assets/{cli-auth-success-DgbatUEd.js → cli-auth-success-CAWRFjR6.js} +1 -1
  83. package/dist/client/assets/{client-icons-D7u-J_pd.js → client-icons-BFT3ByhX.js} +1 -1
  84. package/dist/client/assets/{collection-detail-GCT3_w-Q.js → collection-detail-B9Md04g8.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-CUDW0vsP.js → collection-display-button-DWOMOsAO.js} +1 -1
  86. package/dist/client/assets/{collection-search-DytvMFFj.js → collection-search-lJZ_AiYh.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-jnHSZP_b.js → collection-table-wrapper-DvYmVRqQ.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-F2v4cUxR.js → collection-tabs-BCClisiC.js} +1 -1
  89. package/dist/client/assets/{command-CeKckObX.js → command-BvTOvAwX.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-CLnMQurr.js → commerce-onboarding-BVfRsUSf.js} +1 -1
  91. package/dist/client/assets/{config-DAEl2Fwz.js → config-ykFar5kq.js} +1 -1
  92. package/dist/client/assets/{connect-URRIS0oz.js → connect-C2gWPZrC.js} +1 -1
  93. package/dist/client/assets/{connect-layout-CmmdxzFu.js → connect-layout-DPz52OVW.js} +1 -1
  94. package/dist/client/assets/{connection-card-D3s_4e6c.js → connection-card-CLVO7gWM.js} +1 -1
  95. package/dist/client/assets/{connection-detail-DkuBO-o6.js → connection-detail-BUdncL7r.js} +1 -1
  96. package/dist/client/assets/{connection-form-helpers-CgOgzhG0.js → connection-form-helpers-BhB23GqA.js} +1 -1
  97. package/dist/client/assets/{connection-f2REUt95.js → connection-q0Pvw2B2.js} +1 -1
  98. package/dist/client/assets/{connections-DWVrQ0vB.js → connections-B8VbHw_f.js} +1 -1
  99. package/dist/client/assets/{create-organization-dialog-DUT9TDnz.js → create-organization-dialog-CfcRT_JW.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-CugtSLrr.js → decopilot-sse-pool-_NQmGFbS.js} +1 -1
  101. package/dist/client/assets/{dialog-CCRr4CCv.js → dialog-C7M7JvTo.js} +1 -1
  102. package/dist/client/assets/{domain-settings-BDk0JrwV.js → domain-settings-9aEPBIWO.js} +1 -1
  103. package/dist/client/assets/{drawer-EJ0baEzN.js → drawer-CMB3kWdd.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-iq7an5CR.js → dropdown-menu-D4_fxfOo.js} +1 -1
  105. package/dist/client/assets/{e2e-tab-DaxRZwTM.js → e2e-tab-C_eFWdmQ.js} +1 -1
  106. package/dist/client/assets/{editor-CLQxxGs0.js → editor-D9KXkL69.js} +1 -1
  107. package/dist/client/assets/{empty-state-sOUWi52v.js → empty-state-CMqWP7WN.js} +1 -1
  108. package/dist/client/assets/{empty-state-B-hkvNGZ.js → empty-state-CXTU0Gr5.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-Bgz74dk7.js → extract-connection-data-D_rrQk5k.js} +1 -1
  110. package/dist/client/assets/{file-explorer-DL2c5OeX.js → file-explorer-_NdkqYe1.js} +1 -1
  111. package/dist/client/assets/{file-type-icon-BZyWvek2.js → file-type-icon-BnnSdDsH.js} +1 -1
  112. package/dist/client/assets/{folder-icon-oUyx5_4o.js → folder-icon-DlTz7QPL.js} +1 -1
  113. package/dist/client/assets/{form-CJy6gOK9.js → form-kmhrAcMq.js} +1 -1
  114. package/dist/client/assets/{general-CpyZsf17.js → general-Ds56K9tp.js} +1 -1
  115. package/dist/client/assets/{github-repo-picker-BNDot8ZD.js → github-repo-picker-CG5N8uO0.js} +1 -1
  116. package/dist/client/assets/{hooks-Ba0JKlx2.js → hooks-D05F-stG.js} +1 -1
  117. package/dist/client/assets/{hosting-tab-DNw8iXPA.js → hosting-tab-r6isx4QP.js} +1 -1
  118. package/dist/client/assets/{index-iMHThdI5.js → index-B8v6bpri.js} +2 -2
  119. package/dist/client/assets/{index-DyCofZuZ.js → index-BSbcWYFA.js} +1 -1
  120. package/dist/client/assets/{index-De2AiSst.js → index-BWEmC9U0.js} +57 -57
  121. package/dist/client/assets/{index-B3BkyrSZ.js → index-BoKx8Diy.js} +1 -1
  122. package/dist/client/assets/{index-cHwobFpD.js → index-Br8dpGPA.js} +1 -1
  123. package/dist/client/assets/{index-IILVq28E.js → index-BsAjbvxf.js} +1 -1
  124. package/dist/client/assets/{index-CZz8FtjU.js → index-CgPdM9sX.js} +1 -1
  125. package/dist/client/assets/{index-tM1x2fLe.js → index-CthsQzIN.js} +1 -1
  126. package/dist/client/assets/{index-DPb8WR51.js → index-DY3dr3k9.js} +1 -1
  127. package/dist/client/assets/index-DxxWRegm.css +1 -0
  128. package/dist/client/assets/{index-CFf7ypk5.js → index-M-Ir9x4g.js} +1 -1
  129. package/dist/client/assets/{index-redirect-BCAa2bPs.js → index-redirect-CUiCthS_.js} +1 -1
  130. package/dist/client/assets/{infra-billing-DyPww6_T.js → infra-billing-DhUuoMMN.js} +1 -1
  131. package/dist/client/assets/{input-CbnXHcO6.js → input-DW2ahhtH.js} +1 -1
  132. package/dist/client/assets/{integration-icon-C0qvOPer.js → integration-icon-B89DtTTF.js} +1 -1
  133. package/dist/client/assets/{invite-member-dialog-C5n5eTov.js → invite-member-dialog-BVqSRdPq.js} +1 -1
  134. package/dist/client/assets/{label-DRWhO--x.js → label-BhS7vsEg.js} +1 -1
  135. package/dist/client/assets/{layout-kSadgve2.js → layout-CCn5VLb4.js} +1 -1
  136. package/dist/client/assets/{login-xbLijAW2.js → login-DUuhqIbA.js} +1 -1
  137. package/dist/client/assets/{markdown-22Db80L5.js → markdown-C3hAzezL.js} +1 -1
  138. package/dist/client/assets/{mcp-oauth-EeLwp5eX.js → mcp-oauth-DLj5d3Vy.js} +1 -1
  139. package/dist/client/assets/{members-oSmXDq3z.js → members-DwYXjhhh.js} +1 -1
  140. package/dist/client/assets/{monaco-editor-CZowCy14.js → monaco-editor-Vy_rhpBS.js} +1 -1
  141. package/dist/client/assets/{monitoring-stats-row-CJCndUnv.js → monitoring-stats-row-D_d5RjHF.js} +1 -1
  142. package/dist/client/assets/{multi-select-Cj-97iNR.js → multi-select-peQ8D8Pu.js} +1 -1
  143. package/dist/client/assets/{oauth-callback-DSFqfe09.js → oauth-callback-D4zEQe6g.js} +1 -1
  144. package/dist/client/assets/{oauth-callback-ai-provider-Bwn4b05z.js → oauth-callback-ai-provider-9a41pxZK.js} +1 -1
  145. package/dist/client/assets/{onboarding-DLx1hdsY.js → onboarding-CUeeEM4A.js} +1 -1
  146. package/dist/client/assets/org-layout-C14JwsL-.js +1 -0
  147. package/dist/client/assets/{organization-choice-C5KwMY-x.js → organization-choice-CufRbPCe.js} +1 -1
  148. package/dist/client/assets/{orgs-D23D7LG1.js → orgs-DOJ311_K.js} +1 -1
  149. package/dist/client/assets/page-seo-form-Bzm5UnJ9.js +1 -0
  150. package/dist/client/assets/{popover-BYvt0bxB.js → popover-t_ZIm7eh.js} +1 -1
  151. package/dist/client/assets/{post-calendar-H3AIoZ0y.js → post-calendar-Bmj9kbgm.js} +1 -1
  152. package/dist/client/assets/{post-editor-DVZgxPIm.js → post-editor-B04BBFsL.js} +1 -1
  153. package/dist/client/assets/{primitives-B_XA7nYX.js → primitives-B8PIMqZF.js} +1 -1
  154. package/dist/client/assets/{profile-CFxhdDQq.js → profile-2ky8_NJs.js} +1 -1
  155. package/dist/client/assets/{project-app-view-M4vM1Rym.js → project-app-view-CPyowKnA.js} +1 -1
  156. package/dist/client/assets/{prompts-fZ1o4zpB.js → prompts-DF_PvFvF.js} +1 -1
  157. package/dist/client/assets/record-editor-CdeH0PSN.js +1 -0
  158. package/dist/client/assets/redirect-editor-DNQScjsS.js +1 -0
  159. package/dist/client/assets/registry-DXjIrXbl.js +2 -0
  160. package/dist/client/assets/{registry-layout-BzRjJS6o.js → registry-layout-CxgAdcGY.js} +1 -1
  161. package/dist/client/assets/{reports-DfMErjxR.js → reports-Cfr_ooDi.js} +1 -1
  162. package/dist/client/assets/{require-capability-BeFbF8pl.js → require-capability-C3U03ONf.js} +1 -1
  163. package/dist/client/assets/{required-auth-layout-DKUUs0wv.js → required-auth-layout-BFd3YKM1.js} +1 -1
  164. package/dist/client/assets/{reset-password-4AF23Xvh.js → reset-password-CB7WpCLR.js} +1 -1
  165. package/dist/client/assets/{review-settings-_vscni8V.js → review-settings-BWlNqIKi.js} +1 -1
  166. package/dist/client/assets/{roles-Hc7gjchO.js → roles-BypxpQys.js} +1 -1
  167. package/dist/client/assets/{schema-CalSBGUA.js → schema-BuoIK2NM.js} +1 -1
  168. package/dist/client/assets/{scroll-area-DmdvWjmC.js → scroll-area-CF5KP4xT.js} +1 -1
  169. package/dist/client/assets/{search-input-aRZQtrr1.js → search-input-l9JmQN1V.js} +1 -1
  170. package/dist/client/assets/{secrets-rcSAU0MH.js → secrets-mUX1ZJSA.js} +1 -1
  171. package/dist/client/assets/sections-editor-DkA5v4Ou.js +2 -0
  172. package/dist/client/assets/{select-DVuboUqa.js → select-BeM39jjH.js} +1 -1
  173. package/dist/client/assets/{select-model-C1B_bzfv.js → select-model-rW6YwKIw.js} +1 -1
  174. package/dist/client/assets/{self-tool-result-DDDE2dgE.js → self-tool-result-BOY_ezHR.js} +1 -1
  175. package/dist/client/assets/{seo-editor-45deCW0B.js → seo-editor-ARl87ZpS.js} +1 -1
  176. package/dist/client/assets/settings-layout-DYs5pwaZ.js +1 -0
  177. package/dist/client/assets/settings-sidebar-qm5r11nz.js +1 -0
  178. package/dist/client/assets/{shell-controls-kOkRLWtG.js → shell-controls-Dtx9w7-l.js} +1 -1
  179. package/dist/client/assets/{shell-layout-fxaPPTq-.js → shell-layout-CGFwfHMp.js} +1 -1
  180. package/dist/client/assets/{skill-preview-bjmuW_A1.js → skill-preview-hysKC1kO.js} +1 -1
  181. package/dist/client/assets/{skills-0J4B09Ux.js → skills-C7wLCrdg.js} +1 -1
  182. package/dist/client/assets/{sso-D-lMBKRN.js → sso-b4d7V5F8.js} +1 -1
  183. package/dist/client/assets/{store-Bzve1GXV.js → store-BPxn9mDU.js} +1 -1
  184. package/dist/client/assets/store-registry-BtXrmEhT.js +2 -0
  185. package/dist/client/assets/{switch-D5j2S-4i.js → switch-BTJg1O9U.js} +1 -1
  186. package/dist/client/assets/{synced-repos-CL7kgLGW.js → synced-repos-iq5etoTM.js} +1 -1
  187. package/dist/client/assets/{table-Bdl9_Fhf.js → table-B_EStcLQ.js} +1 -1
  188. package/dist/client/assets/{tabs-CJeYzOxp.js → tabs-BjBxcmhp.js} +1 -1
  189. package/dist/client/assets/{task-board-2M_cICbv.js → task-board-BHMys9hW.js} +1 -1
  190. package/dist/client/assets/{task-route-CheWHifs.js → task-route-r-W3qHvB.js} +1 -1
  191. package/dist/client/assets/{tasks-CkY0zKmU.js → tasks-Dz1vfh1l.js} +1 -1
  192. package/dist/client/assets/{textarea-CQu-QtAR.js → textarea-ByOwMVOP.js} +1 -1
  193. package/dist/client/assets/{thread-intent-D8J4loNV.js → thread-intent-DeAJERp8.js} +1 -1
  194. package/dist/client/assets/{thread-route-CYrRQzf6.js → thread-route-JP_jBQl2.js} +1 -1
  195. package/dist/client/assets/{toggle-group-B5yffd6B.js → toggle-group-BQMbtzfI.js} +1 -1
  196. package/dist/client/assets/{toolbar-BYn6hWQJ.js → toolbar-CR_lIJhX.js} +1 -1
  197. package/dist/client/assets/{toolbar-icon-button-V4uX1cT4.js → toolbar-icon-button-CyVRuDcs.js} +1 -1
  198. package/dist/client/assets/{track-DqsuBc-w.js → track-BzrD-gEE.js} +1 -1
  199. package/dist/client/assets/{types-CSh-_-A-.js → types-DdehnnVY.js} +1 -1
  200. package/dist/client/assets/{use-ai-providers-DNmUp1KH.js → use-ai-providers-VRUuTRhq.js} +1 -1
  201. package/dist/client/assets/{use-automations-BAS2bqab.js → use-automations-1X67KfoT.js} +1 -1
  202. package/dist/client/assets/{use-autosave-DAzXy6V3.js → use-autosave-DCQJH_gL.js} +1 -1
  203. package/dist/client/assets/{use-connection-BIoGt2fV.js → use-connection-C-dhEQVr.js} +1 -1
  204. package/dist/client/assets/{use-copy-Bqne_Qou.js → use-copy-B1L1W9s2.js} +1 -1
  205. package/dist/client/assets/{use-create-virtual-mcp-C5jE4Qbf.js → use-create-virtual-mcp-DiQNHYEZ.js} +1 -1
  206. package/dist/client/assets/{use-debounced-autosave-kIKO71Tg.js → use-debounced-autosave-BMYZ2YGs.js} +1 -1
  207. package/dist/client/assets/{use-debounced-value-B8nRETfv.js → use-debounced-value-D1N9FCWc.js} +1 -1
  208. package/dist/client/assets/{use-decopilot-events-Du05HBL-.js → use-decopilot-events-q6jF3KyR.js} +1 -1
  209. package/dist/client/assets/{use-delete-connection-B9swLPMU.js → use-delete-connection-DjOX5zhj.js} +1 -1
  210. package/dist/client/assets/{use-deployment-admin-BlhXkuuE.js → use-deployment-admin-DnmqgnN7.js} +1 -1
  211. package/dist/client/assets/{use-destination-route-BjLqPQzR.js → use-destination-route-BZnZlxip.js} +1 -1
  212. package/dist/client/assets/{use-file-configs-BWXflqeG.js → use-file-configs-RNJYyxdo.js} +1 -1
  213. package/dist/client/assets/{use-infinite-scroll-CKdXAA8A.js → use-infinite-scroll-BkUvStlN.js} +1 -1
  214. package/dist/client/assets/{use-join-requests-BKm-Euhh.js → use-join-requests-D243QYrm.js} +1 -1
  215. package/dist/client/assets/{use-mcp-auth-status-BBJKM7f_.js → use-mcp-auth-status-B_NYbaoD.js} +1 -1
  216. package/dist/client/assets/{use-mcp-client-Cb-7Tc46.js → use-mcp-client-DJ3fa1xp.js} +1 -1
  217. package/dist/client/assets/{use-mcp-prompts-B4teZ13r.js → use-mcp-prompts-EDCEFkva.js} +1 -1
  218. package/dist/client/assets/{use-mcp-tools-yMcjeDP1.js → use-mcp-tools-CSF0Nzff.js} +1 -1
  219. package/dist/client/assets/{use-members-BfBQJknB.js → use-members-CfnD8M7u.js} +1 -1
  220. package/dist/client/assets/{use-navigate-to-agent-BagpOb6G.js → use-navigate-to-agent-Bfd85iwi.js} +1 -1
  221. package/dist/client/assets/{use-org-auth-client-B4SqGhOd.js → use-org-auth-client-C0QDcwVK.js} +1 -1
  222. package/dist/client/assets/{use-org-repo-syncs-OgvPGokO.js → use-org-repo-syncs-D_mgvf_i.js} +1 -1
  223. package/dist/client/assets/{use-org-sso-BOX8tS6G.js → use-org-sso-DMI8WwP0.js} +1 -1
  224. package/dist/client/assets/{use-organization-roles-DWjijF9p.js → use-organization-roles-D8aZ-ZR_.js} +1 -1
  225. package/dist/client/assets/{use-organization-settings-LGG-1duj.js → use-organization-settings-BA2lxbR3.js} +1 -1
  226. package/dist/client/assets/{use-panel-navigate-BbrwVdUf.js → use-panel-navigate-Bd6QXiJy.js} +1 -1
  227. package/dist/client/assets/{use-project-scope-BJGCHDw2.js → use-project-scope-l_KFftl6.js} +1 -1
  228. package/dist/client/assets/{use-registry-connections-AvU1e53j.js → use-registry-connections-DXPYxL2r.js} +1 -1
  229. package/dist/client/assets/{use-secrets-C7MTfbp9.js → use-secrets-Bgkr4W3S.js} +1 -1
  230. package/dist/client/assets/{use-section-preview-base-CNJRRsrA.js → use-section-preview-base-BV3vay05.js} +1 -1
  231. package/dist/client/assets/{use-status-sounds-yJcdYzkO.js → use-status-sounds-BBTrZxa1.js} +1 -1
  232. package/dist/client/assets/{use-tags-CIfiPRHF.js → use-tags-CehLjUea.js} +1 -1
  233. package/dist/client/assets/{use-view-mode-C34ZcfuA.js → use-view-mode-DhfDSglh.js} +1 -1
  234. package/dist/client/assets/{use-virtual-mcp-DfwA3vbI.js → use-virtual-mcp-7JAczJJM.js} +1 -1
  235. package/dist/client/assets/useInfiniteQuery-CVCgU7w5.js +1 -0
  236. package/dist/client/assets/useSuspenseInfiniteQuery-BONtGFny.js +1 -0
  237. package/dist/client/assets/{users-BNFV8Nap.js → users-DlROvta_.js} +1 -1
  238. package/dist/client/assets/{variant-calendar-CRmTwjv7.js → variant-calendar-BL03vejT.js} +1 -1
  239. package/dist/client/assets/{view-mode-toggle-CCqJfRrB.js → view-mode-toggle-DITqQxrp.js} +1 -1
  240. package/dist/client/index.html +2 -2
  241. package/dist/server/cli.js +1 -1
  242. package/dist/server/server.js +1 -1
  243. package/package.json +1 -1
  244. package/dist/client/assets/api-keys-BLJwaRIG.js +0 -1
  245. package/dist/client/assets/app-editor-3ukfAjBA.js +0 -1
  246. package/dist/client/assets/index-owpBJsp0.css +0 -1
  247. package/dist/client/assets/org-layout-gpkA9U-U.js +0 -1
  248. package/dist/client/assets/page-seo-form-BI1ZnjGb.js +0 -1
  249. package/dist/client/assets/record-editor-7dypTFm2.js +0 -1
  250. package/dist/client/assets/redirect-editor-BRzcJWDt.js +0 -1
  251. package/dist/client/assets/registry-DcsfzNo4.js +0 -2
  252. package/dist/client/assets/sections-editor-DCp2vwD_.js +0 -2
  253. package/dist/client/assets/settings-layout-BSdBJN-5.js +0 -1
  254. package/dist/client/assets/settings-sidebar-CYw8r_vv.js +0 -1
  255. package/dist/client/assets/store-registry-BM8xhd8d.js +0 -2
  256. package/dist/client/assets/useInfiniteQuery-9JeN2e62.js +0 -1
  257. package/dist/client/assets/useSuspenseInfiniteQuery-tto2zjOo.js +0 -1
@@ -1 +0,0 @@
1
- import{c as w,b as z,G as g,j as a,H as _,r as j,I as D,J as I,M as O,O as L,R as A,U as M}from"./index-iMHThdI5.js";import{S as T}from"./index-IILVq28E.js";import{u as H}from"./settings-sidebar-CYw8r_vv.js";import"./task-route-CheWHifs.js";import"./thread-route-CYrRQzf6.js";import"./dialog-CCRr4CCv.js";import"./Check-CA6oOwnk.js";import"./Copy01-DHhdbM_J.js";import"./Download01-R47mE7bD.js";import"./use-destination-route-BjLqPQzR.js";import"./constants-DNuUCxmW.js";import"./ChevronUp-BWJ43Ad_.js";import"./agent-icon-C7HwxMy2.js";import"./AlertCircle-DZjE_Y0H.js";import"./ThumbsUp-BFZZTKVU.js";import"./Tool01-Cz6q9HPW.js";import"./ArrowUp-UBHjzAp-.js";import"./ArrowLeft-BsR-6m6j.js";import"./Tool02-Dh-KcCDo.js";import"./XCircle-DQV3a8ui.js";import"./TrendUp01-gaB_ebZy.js";import"./ZoomOut-C3_0q9Na.js";import"./Users03-DOh7pHdk.js";import"./CheckCircle-BaphLiUh.js";import"./ChevronRight-C1PKtWq_.js";import"./ChevronSelectorVertical-uLPnhvHf.js";import"./DotsVertical-CuAwCaPW.js";import"./UserSquare-DXupINNG.js";import"./CreditCard01-BewJRmPb.js";import"./Settings02-CkPf5bSQ.js";import"./Eye-D3bCBJMo.js";import"./Share07-P3qF7VX0.js";import"./GitBranch01-CjfnHX9l.js";import"./Globe01-DeCmIrD5.js";import"./XClose-Dciq0-47.js";import"./HardDrive-BpRcIm2Z.js";import"./Image01-CStOAxG7.js";import"./Key01-ICcTBF9U.js";import"./Link01-CLzBJa_Z.js";import"./LinkExternal01-w2j8lCTU.js";import"./LockUnlocked01-CbuTs0EA.js";import"./Monitor01-CMjB6a1I.js";import"./Sun-ZKlmnxLK.js";import"./Package-BOH9DZQ0.js";import"./Palette-CVvoWFYM.js";import"./Play-Bn8_HZzx.js";import"./Plus-DZ-r7ICl.js";import"./SearchMd-BpXAT-eZ.js";import"./Shield01-BhVJtpaL.js";import"./Stars01-Dxt-GRKF.js";import"./Trash01-BDaDkc_-.js";import"./Upload01-BaOVc9nV.js";import"./User01-CvjutW7d.js";import"./Users01-BYJLxdvv.js";import"./Zap-BeDIMc43.js";import"./use-virtual-mcp-DfwA3vbI.js";import"./use-mcp-client-Cb-7Tc46.js";import"./auth-CyxtW7VU.js";import"./github-repo-BpKUwJal.js";import"./toolbar-icon-button-V4uX1cT4.js";import"./popover-BYvt0bxB.js";import"./drawer-EJ0baEzN.js";import"./github-repo-picker-BNDot8ZD.js";import"./collection-search-DytvMFFj.js";import"./use-debounced-value-B8nRETfv.js";import"./use-connection-BIoGt2fV.js";import"./authenticate-and-persist-oauth-BH26XKT9.js";import"./mcp-oauth-EeLwp5eX.js";import"./use-mcp-tools-yMcjeDP1.js";import"./extract-connection-data-Bgz74dk7.js";import"./metadata-dUsYcpuu.js";import"./connection-f2REUt95.js";import"./use-navigate-to-agent-BagpOb6G.js";import"./hooks-Ba0JKlx2.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./task-board-2M_cICbv.js";import"./schema-CalSBGUA.js";import"./thread-intent-D8J4loNV.js";import"./slugify-CEUa2lfQ.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./use-project-scope-BJGCHDw2.js";import"./shell-layout-fxaPPTq-.js";import"./avatar-CxjMK0xh.js";import"./use-panel-navigate-BbrwVdUf.js";import"./command-CeKckObX.js";import"./index-B3BkyrSZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DKUUs0wv.js";import"./use-organization-settings-LGG-1duj.js";import"./use-org-sso-BOX8tS6G.js";import"./connection-card-D3s_4e6c.js";import"./use-registry-connections-AvU1e53j.js";import"./useInfiniteQuery-9JeN2e62.js";import"./use-infinite-scroll-CKdXAA8A.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-C0qvOPer.js";import"./form-CJy6gOK9.js";import"./label-DRWhO--x.js";import"./input-CbnXHcO6.js";import"./select-DVuboUqa.js";import"./textarea-CQu-QtAR.js";import"./connection-form-helpers-CgOgzhG0.js";import"./collection-tabs-F2v4cUxR.js";import"./badge-Dx14P1uf.js";import"./useSuspenseInfiniteQuery-tto2zjOo.js";import"./use-ai-providers-DNmUp1KH.js";import"./dropdown-menu-iq7an5CR.js";import"./get-initials-D-f_fDFw.js";import"./config-DAEl2Fwz.js";import"./use-decopilot-events-Du05HBL-.js";import"./use-deployment-admin-BlhXkuuE.js";import"./invite-member-dialog-C5n5eTov.js";import"./use-org-auth-client-B4SqGhOd.js";import"./use-organization-roles-DWjijF9p.js";import"./scroll-area-DmdvWjmC.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-file-configs-BWXflqeG.js";import"./site-slug-uya6Wp4-.js";import"./create-organization-dialog-DUT9TDnz.js";import"./alert-dialog-1uO7Q1_D.js";import"./use-join-requests-BKm-Euhh.js";function N(t){const e=w.c(11),{onPointerDown:o,onDoubleClick:l}=t,i=z(),{isMobile:b}=g(),c=H();if(b||c)return null;let p;e[0]!==i?(p=i("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=i,e[1]=p):p=e[1];let r;e[2]!==i?(r=i("sidebar.sidebarResizeHandle.title"),e[2]=i,e[3]=r):r=e[3];let s,m;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},m=a.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[4]=s,e[5]=m):(s=e[4],m=e[5]);let n;return e[6]!==l||e[7]!==o||e[8]!==p||e[9]!==r?(n=a.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":p,title:r,onPointerDown:o,onDoubleClick:l,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:m}),e[6]=l,e[7]=o,e[8]=p,e[9]=r,e[10]=n):n=e[10],n}const v=240,W=400,C="sidebar.width";function S(t){return Math.max(v,Math.min(W,t))}function X(){const t=w.c(11),[e,o]=_(C,$),l=j.useRef(null);let i;t[0]!==o||t[1]!==e?(i=m=>{m.preventDefault();const n=m.clientX,d=S(e),f=l.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),u=f?Array.from(f.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const y of u)y.style.transition="none";const h=y=>{const x=S(d+(y.clientX-n));f?.style.setProperty("--sidebar-width",`${x}px`)},R=y=>{const x=S(d+(y.clientX-n));o(x);for(const E of u)E.style.transition="";window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",R),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",h),window.addEventListener("pointerup",R)},t[0]=o,t[1]=e,t[2]=i):i=t[2];const b=i;let c;t[3]!==o?(c=()=>{o(v)},t[3]=o,t[4]=c):c=t[4];const p=c;let r;t[5]!==e?(r=S(e),t[5]=e,t[6]=r):r=t[6];let s;return t[7]!==b||t[8]!==p||t[9]!==r?(s={width:r,wrapperRef:l,onStartResize:b,resetWidth:p},t[7]=b,t[8]=p,t[9]=r,t[10]=s):s=t[10],s}function $(t){return typeof t=="number"?S(t):v}const P="3.125rem";function pr(){const t=w.c(16),e=D();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=I.sidebarOpen(),t[0]=o):o=t[0];const[l,i]=_(o,!0),{width:b,wrapperRef:c,onStartResize:p,resetWidth:r}=X(),s=`${b}px`;let m;t[1]!==s?(m={"--sidebar-width":s,"--sidebar-width-icon":P},t[1]=s,t[2]=m):m=t[2];const n=m;let d;t[3]!==e||t[4]!==p||t[5]!==r?(d=!e&&a.jsxs(a.Fragment,{children:[a.jsx(T,{}),a.jsx(N,{onPointerDown:p,onDoubleClick:r})]}),t[3]=e,t[4]=p,t[5]=r,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(O,{className:"flex flex-col min-h-0",style:{background:"transparent",containerType:"inline-size"},children:a.jsx(L,{})}),t[7]=f):f=t[7];let u;t[8]!==n||t[9]!==d||t[10]!==c?(u=a.jsx("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:a.jsxs(A,{ref:c,className:"flex-1 bg-sidebar relative min-h-0",style:n,children:[d,f]})}),t[8]=n,t[9]=d,t[10]=c,t[11]=u):u=t[11];let h;return t[12]!==i||t[13]!==l||t[14]!==u?(h=a.jsx(M,{open:l,onOpenChange:i,children:u}),t[12]=i,t[13]=l,t[14]=u,t[15]=h):h=t[15],h}export{pr as default};
@@ -1 +0,0 @@
1
- import{c as w,n as D,K as k,b as L,j as i}from"./index-iMHThdI5.js";import{bo as P,d as $,bp as O,ay as N,bq as I,br as Q,bs as q}from"./index-De2AiSst.js";import{L as A}from"./label-DRWhO--x.js";import{S as K}from"./switch-D5j2S-4i.js";import{d as Y,a as z,b as M,c as U,S as W}from"./select-DVuboUqa.js";function _(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)}function G(c,e,s,d){if(c.kind==="page"){if(!_(s))return null;const h=s.seo!==void 0?s.seo:e.rawSeoData;return{...s,seo:d===null?null:P(d,h)}}return _(s)?e.siteKind==="block"?d:{...s,seo:d}:null}function le(c,e){const s=c.__resolveType;return typeof s=="string"&&s.length>0?s:e.seoResolveType}function oe(c){const e=w.c(23),{orgSlug:s,virtualMcpId:d,branch:h,target:o,resolved:t,onSaved:f}=c,r=D(),a=`${s}/${d}/${h}`;let m;e[0]!==h||e[1]!==s||e[2]!==d?(m={orgSlug:s,virtualMcpId:d,branch:h},e[0]=h,e[1]=s,e[2]=d,e[3]=m):m=e[3];let l;e[4]!==f?(l={onSaved:f},e[4]=f,e[5]=l):l=e[5];const{save:n,flush:u,isPending:p}=$(m,l);let y;e[6]!==a||e[7]!==r||e[8]!==t||e[9]!==n||e[10]!==o?(y=v=>{t&&n(t.blockKey,()=>{const x=r.getQueryData(k.decofile(a))?.[t.blockKey];return G(o,t,x,v)})},e[6]=a,e[7]=r,e[8]=t,e[9]=n,e[10]=o,e[11]=y):y=e[11];const g=y;let S;e[12]!==a||e[13]!==r||e[14]!==t||e[15]!==n||e[16]!==o?(S=v=>{!t||o.kind!=="page"||n(t.blockKey,()=>{const x=r.getQueryData(k.decofile(a))?.[t.blockKey];return _(x)?{...x,seo:v}:null})},e[12]=a,e[13]=r,e[14]=t,e[15]=n,e[16]=o,e[17]=S):S=e[17];const b=S;let j;return e[18]!==u||e[19]!==p||e[20]!==b||e[21]!==g?(j={persistSeo:g,persistRawSeo:b,flush:u,isPending:p},e[18]=u,e[19]=p,e[20]=b,e[21]=g,e[22]=j):j=e[22],j}const H="https://deco.cx/docs/en/performance/edge-async-render";function J(c){const e=w.c(23),{rawSeo:s,onEnableChange:d,onAsyncRenderChange:h,children:o}=c,t=L();let f;e[0]!==s?(f=N(s),e[0]=s,e[1]=f):f=e[1];const r=f;let a;e[2]!==s?(a=O(s),e[2]=s,e[3]=a):a=e[3];const m=a;let l;e[4]!==t?(l=t("sectionsEditor.seoFormChrome.enableLabel"),e[4]=t,e[5]=l):l=e[5];let n;e[6]!==l?(n=i.jsx(A,{htmlFor:"seo-enable",className:"text-sm font-medium",children:l}),e[6]=l,e[7]=n):n=e[7];let u;e[8]!==r||e[9]!==d?(u=i.jsx(K,{id:"seo-enable",checked:r,onCheckedChange:d}),e[8]=r,e[9]=d,e[10]=u):u=e[10];let p;e[11]!==n||e[12]!==u?(p=i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[n,u]}),e[11]=n,e[12]=u,e[13]=p):p=e[13];let y;e[14]!==m||e[15]!==o||e[16]!==r||e[17]!==h||e[18]!==t?(y=r&&i.jsxs(i.Fragment,{children:[o,i.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[i.jsxs("div",{className:"min-w-0 space-y-1",children:[i.jsx("p",{className:"text-sm font-medium",children:t("sectionsEditor.seoFormChrome.asyncRenderLabel")}),i.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",i.jsx("a",{href:H,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:t("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),i.jsx(K,{id:"seo-async-render",checked:m,onCheckedChange:h,className:"shrink-0"})]})]}),e[14]=m,e[15]=o,e[16]=r,e[17]=h,e[18]=t,e[19]=y):y=e[19];let g;return e[20]!==p||e[21]!==y?(g=i.jsxs("div",{className:"space-y-4",children:[p,y]}),e[20]=p,e[21]=y,e[22]=g):g=e[22],g}function V(c){const e=w.c(20),{options:s,value:d,onChange:h}=c,o=L();if(s.length<=1)return null;let t;e[0]!==o?(t=o("sectionsEditor.seoTypeSelect.label"),e[0]=o,e[1]=t):t=e[1];let f;e[2]!==t?(f=i.jsx(A,{className:"text-xs text-muted-foreground",children:t}),e[2]=t,e[3]=f):f=e[3];let r;e[4]!==o?(r=o("sectionsEditor.seoTypeSelect.placeholder"),e[4]=o,e[5]=r):r=e[5];let a;e[6]!==r?(a=i.jsx(z,{className:"w-full",children:i.jsx(M,{placeholder:r})}),e[6]=r,e[7]=a):a=e[7];let m;e[8]!==s?(m=s.filter(Z).map(X),e[8]=s,e[9]=m):m=e[9];let l;e[10]!==m?(l=i.jsx(U,{children:m}),e[10]=m,e[11]=l):l=e[11];let n;e[12]!==h||e[13]!==a||e[14]!==l||e[15]!==d?(n=i.jsxs(W,{value:d,onValueChange:h,children:[a,l]}),e[12]=h,e[13]=a,e[14]=l,e[15]=d,e[16]=n):n=e[16];let u;return e[17]!==f||e[18]!==n?(u=i.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[f,n]}),e[17]=f,e[18]=n,e[19]=u):u=e[19],u}function X(c){return i.jsx(Y,{value:c.resolveType,children:c.title},c.resolveType)}function Z(c){return c.resolveType.length>0}function re(c){const e=w.c(33),{rawSeo:s,innerSeo:d,defaultResolveType:h,seoSchema:o,activeResolveType:t,seoTypeOptions:f,formResetKey:r,siteDefaultSeo:a,onBreadcrumbChange:m,onPersistRaw:l,onInnerChange:n,onClearForm:u,onBumpFormKey:p,beforeFields:y}=c;let g;e[0]!==h||e[1]!==p||e[2]!==u||e[3]!==l?(g=C=>{if(C){const F=q(h);l(F),u(),p();return}l(null),u(),p()},e[0]=h,e[1]=p,e[2]=u,e[3]=l,e[4]=g):g=e[4];const S=g;let b;e[5]!==l||e[6]!==s?(b=C=>{const F=I(C,s);l(F)},e[5]=l,e[6]=s,e[7]=b):b=e[7];const j=b;let v;e[8]!==p||e[9]!==n?(v=C=>{n({__resolveType:C}),p()},e[8]=p,e[9]=n,e[10]=v):v=e[10];const T=v;let x;e[11]!==t||e[12]!==T||e[13]!==s||e[14]!==o||e[15]!==f?(x=N(s)&&o&&t&&f&&f.length>0&&i.jsx(V,{options:f,value:t,onChange:T}),e[11]=t,e[12]=T,e[13]=s,e[14]=o,e[15]=f,e[16]=x):x=e[16];let R;e[17]!==t||e[18]!==r||e[19]!==d||e[20]!==m||e[21]!==n||e[22]!==s||e[23]!==o||e[24]!==a?(R=N(s)&&o&&t&&i.jsx(Q,{schema:o,resolveType:t,value:d,formResetKey:r,onChange:C=>n(C),onBreadcrumbChange:m,siteDefaultSeo:a}),e[17]=t,e[18]=r,e[19]=d,e[20]=m,e[21]=n,e[22]=s,e[23]=o,e[24]=a,e[25]=R):R=e[25];let E;return e[26]!==y||e[27]!==j||e[28]!==S||e[29]!==s||e[30]!==x||e[31]!==R?(E=i.jsxs(J,{rawSeo:s,onEnableChange:S,onAsyncRenderChange:j,children:[y,x,R]}),e[26]=y,e[27]=j,e[28]=S,e[29]=s,e[30]=x,e[31]=R,e[32]=E):E=e[32],E}export{re as P,le as a,G as b,oe as u};
@@ -1 +0,0 @@
1
- import{c as B,b as L,j as r}from"./index-iMHThdI5.js";import{I as A}from"./input-CbnXHcO6.js";import{L as F}from"./label-DRWhO--x.js";import{S as R,a as z,b as J,c as O,d as V}from"./select-DVuboUqa.js";import{T as D}from"./textarea-CQu-QtAR.js";import{e as M,w as $,j as q,y as G,J as H}from"./index-De2AiSst.js";import{s as P}from"./primitives-B_XA7nYX.js";import{u as Q}from"./use-autosave-DAzXy6V3.js";import"./Check-CA6oOwnk.js";import"./ChevronUp-BWJ43Ad_.js";import"./ArrowUp-UBHjzAp-.js";import"./chat-context-mKzm57ri.js";import"./use-panel-navigate-BbrwVdUf.js";import"./use-destination-route-BjLqPQzR.js";import"./thread-route-CYrRQzf6.js";import"./dialog-CCRr4CCv.js";import"./Copy01-DHhdbM_J.js";import"./Download01-R47mE7bD.js";import"./constants-DNuUCxmW.js";import"./thread-intent-D8J4loNV.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Ba0JKlx2.js";import"./use-mcp-client-Cb-7Tc46.js";import"./auth-CyxtW7VU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./task-board-2M_cICbv.js";import"./schema-CalSBGUA.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DfwA3vbI.js";import"./use-ai-providers-DNmUp1KH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Du05HBL-.js";import"./use-organization-settings-LGG-1duj.js";import"./automation-runs-BPY4nydY.js";import"./agent-icon-C7HwxMy2.js";import"./AlertCircle-DZjE_Y0H.js";import"./ThumbsUp-BFZZTKVU.js";import"./Tool01-Cz6q9HPW.js";import"./ArrowLeft-BsR-6m6j.js";import"./Tool02-Dh-KcCDo.js";import"./XCircle-DQV3a8ui.js";import"./TrendUp01-gaB_ebZy.js";import"./ZoomOut-C3_0q9Na.js";import"./Users03-DOh7pHdk.js";import"./CheckCircle-BaphLiUh.js";import"./ChevronRight-C1PKtWq_.js";import"./ChevronSelectorVertical-uLPnhvHf.js";import"./DotsVertical-CuAwCaPW.js";import"./UserSquare-DXupINNG.js";import"./CreditCard01-BewJRmPb.js";import"./Settings02-CkPf5bSQ.js";import"./Eye-D3bCBJMo.js";import"./Share07-P3qF7VX0.js";import"./GitBranch01-CjfnHX9l.js";import"./Globe01-DeCmIrD5.js";import"./XClose-Dciq0-47.js";import"./HardDrive-BpRcIm2Z.js";import"./Image01-CStOAxG7.js";import"./Key01-ICcTBF9U.js";import"./Link01-CLzBJa_Z.js";import"./LinkExternal01-w2j8lCTU.js";import"./LockUnlocked01-CbuTs0EA.js";import"./Monitor01-CMjB6a1I.js";import"./Sun-ZKlmnxLK.js";import"./Package-BOH9DZQ0.js";import"./Palette-CVvoWFYM.js";import"./Play-Bn8_HZzx.js";import"./Plus-DZ-r7ICl.js";import"./SearchMd-BpXAT-eZ.js";import"./Shield01-BhVJtpaL.js";import"./Stars01-Dxt-GRKF.js";import"./Trash01-BDaDkc_-.js";import"./Upload01-BaOVc9nV.js";import"./User01-CvjutW7d.js";import"./Users01-BYJLxdvv.js";import"./Zap-BeDIMc43.js";import"./useInfiniteQuery-9JeN2e62.js";import"./use-infinite-scroll-CKdXAA8A.js";import"./use-connection-BIoGt2fV.js";import"./table-Bdl9_Fhf.js";import"./empty-state-sOUWi52v.js";import"./use-members-BfBQJknB.js";import"./use-org-auth-client-B4SqGhOd.js";import"./use-automations-BAS2bqab.js";import"./useSuspenseInfiniteQuery-tto2zjOo.js";import"./avatar-CxjMK0xh.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Bqne_Qou.js";import"./markdown-22Db80L5.js";import"./monaco-editor-CZowCy14.js";import"./editor-CLQxxGs0.js";import"./types-CSh-_-A-.js";import"./shell-layout-fxaPPTq-.js";import"./use-project-scope-BJGCHDw2.js";import"./github-repo-BpKUwJal.js";import"./command-CeKckObX.js";import"./index-B3BkyrSZ.js";import"./required-auth-layout-DKUUs0wv.js";import"./use-org-sso-BOX8tS6G.js";import"./integration-icon-C0qvOPer.js";import"./use-navigate-to-agent-BagpOb6G.js";import"./use-mcp-prompts-B4teZ13r.js";import"./form-CJy6gOK9.js";import"./file-type-icon-BZyWvek2.js";import"./drawer-EJ0baEzN.js";import"./collection-search-DytvMFFj.js";import"./use-mcp-tools-yMcjeDP1.js";import"./tabs-CJeYzOxp.js";import"./toggle-group-B5yffd6B.js";import"./task-route-CheWHifs.js";import"./toolbar-icon-button-V4uX1cT4.js";import"./popover-BYvt0bxB.js";import"./github-repo-picker-BNDot8ZD.js";import"./use-debounced-value-B8nRETfv.js";import"./authenticate-and-persist-oauth-BH26XKT9.js";import"./mcp-oauth-EeLwp5eX.js";import"./extract-connection-data-Bgz74dk7.js";import"./metadata-dUsYcpuu.js";import"./connection-f2REUt95.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D3s_4e6c.js";import"./use-registry-connections-AvU1e53j.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-CgOgzhG0.js";import"./collection-tabs-F2v4cUxR.js";import"./badge-Dx14P1uf.js";import"./dropdown-menu-iq7an5CR.js";import"./get-initials-D-f_fDFw.js";import"./config-DAEl2Fwz.js";import"./select-model-C1B_bzfv.js";import"./checkbox-BtMOjQuM.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-oUyx5_4o.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yJcdYzkO.js";import"./toolbar-BYn6hWQJ.js";import"./use-file-configs-BWXflqeG.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-bjmuW_A1.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-1uO7Q1_D.js";import"./use-debounced-autosave-kIKO71Tg.js";import"./scroll-area-DmdvWjmC.js";import"./search-input-aRZQtrr1.js";import"./use-mcp-auth-status-BBJKM7f_.js";import"./switch-D5j2S-4i.js";import"./use-secrets-C7MTfbp9.js";import"./client-icons-D7u-J_pd.js";import"./connect-layout-CmmdxzFu.js";import"./self-tool-result-DDDE2dgE.js";import"./track-DqsuBc-w.js";import"./use-tags-CIfiPRHF.js";import"./breadcrumb-B9-pZnD9.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-fcDYKNgJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OgvPGokO.js";import"./cards-BLVEB5RL.js";const U={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},W={authors:"sandbox.recordEditor.titleAuthor"};function Yr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=M(h);let g;t[4]!==f||t[5]!==a?(g=$(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:G(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=Q(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=W[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=U[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(J,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(V,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(D,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Yr as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as lt,b as at,j as r}from"./index-iMHThdI5.js";import{C as ct}from"./checkbox-BtMOjQuM.js";import{I as rt}from"./input-CbnXHcO6.js";import{L as et}from"./label-DRWhO--x.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-DVuboUqa.js";import{e as ut,bE as bt,j as yt,bF as jt,bG as vt}from"./index-De2AiSst.js";import{u as Et}from"./use-autosave-DAzXy6V3.js";import"./Check-CA6oOwnk.js";import"./ChevronUp-BWJ43Ad_.js";import"./ArrowUp-UBHjzAp-.js";import"./chat-context-mKzm57ri.js";import"./use-panel-navigate-BbrwVdUf.js";import"./use-destination-route-BjLqPQzR.js";import"./thread-route-CYrRQzf6.js";import"./dialog-CCRr4CCv.js";import"./Copy01-DHhdbM_J.js";import"./Download01-R47mE7bD.js";import"./constants-DNuUCxmW.js";import"./thread-intent-D8J4loNV.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Ba0JKlx2.js";import"./use-mcp-client-Cb-7Tc46.js";import"./auth-CyxtW7VU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./task-board-2M_cICbv.js";import"./schema-CalSBGUA.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DfwA3vbI.js";import"./use-ai-providers-DNmUp1KH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Du05HBL-.js";import"./use-organization-settings-LGG-1duj.js";import"./automation-runs-BPY4nydY.js";import"./agent-icon-C7HwxMy2.js";import"./AlertCircle-DZjE_Y0H.js";import"./ThumbsUp-BFZZTKVU.js";import"./Tool01-Cz6q9HPW.js";import"./ArrowLeft-BsR-6m6j.js";import"./Tool02-Dh-KcCDo.js";import"./XCircle-DQV3a8ui.js";import"./TrendUp01-gaB_ebZy.js";import"./ZoomOut-C3_0q9Na.js";import"./Users03-DOh7pHdk.js";import"./CheckCircle-BaphLiUh.js";import"./ChevronRight-C1PKtWq_.js";import"./ChevronSelectorVertical-uLPnhvHf.js";import"./DotsVertical-CuAwCaPW.js";import"./UserSquare-DXupINNG.js";import"./CreditCard01-BewJRmPb.js";import"./Settings02-CkPf5bSQ.js";import"./Eye-D3bCBJMo.js";import"./Share07-P3qF7VX0.js";import"./GitBranch01-CjfnHX9l.js";import"./Globe01-DeCmIrD5.js";import"./XClose-Dciq0-47.js";import"./HardDrive-BpRcIm2Z.js";import"./Image01-CStOAxG7.js";import"./Key01-ICcTBF9U.js";import"./Link01-CLzBJa_Z.js";import"./LinkExternal01-w2j8lCTU.js";import"./LockUnlocked01-CbuTs0EA.js";import"./Monitor01-CMjB6a1I.js";import"./Sun-ZKlmnxLK.js";import"./Package-BOH9DZQ0.js";import"./Palette-CVvoWFYM.js";import"./Play-Bn8_HZzx.js";import"./Plus-DZ-r7ICl.js";import"./SearchMd-BpXAT-eZ.js";import"./Shield01-BhVJtpaL.js";import"./Stars01-Dxt-GRKF.js";import"./Trash01-BDaDkc_-.js";import"./Upload01-BaOVc9nV.js";import"./User01-CvjutW7d.js";import"./Users01-BYJLxdvv.js";import"./Zap-BeDIMc43.js";import"./useInfiniteQuery-9JeN2e62.js";import"./use-infinite-scroll-CKdXAA8A.js";import"./use-connection-BIoGt2fV.js";import"./table-Bdl9_Fhf.js";import"./empty-state-sOUWi52v.js";import"./use-members-BfBQJknB.js";import"./use-org-auth-client-B4SqGhOd.js";import"./use-automations-BAS2bqab.js";import"./useSuspenseInfiniteQuery-tto2zjOo.js";import"./avatar-CxjMK0xh.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Bqne_Qou.js";import"./markdown-22Db80L5.js";import"./monaco-editor-CZowCy14.js";import"./editor-CLQxxGs0.js";import"./types-CSh-_-A-.js";import"./shell-layout-fxaPPTq-.js";import"./use-project-scope-BJGCHDw2.js";import"./github-repo-BpKUwJal.js";import"./command-CeKckObX.js";import"./index-B3BkyrSZ.js";import"./required-auth-layout-DKUUs0wv.js";import"./use-org-sso-BOX8tS6G.js";import"./integration-icon-C0qvOPer.js";import"./use-navigate-to-agent-BagpOb6G.js";import"./use-mcp-prompts-B4teZ13r.js";import"./form-CJy6gOK9.js";import"./file-type-icon-BZyWvek2.js";import"./drawer-EJ0baEzN.js";import"./collection-search-DytvMFFj.js";import"./use-mcp-tools-yMcjeDP1.js";import"./tabs-CJeYzOxp.js";import"./toggle-group-B5yffd6B.js";import"./task-route-CheWHifs.js";import"./toolbar-icon-button-V4uX1cT4.js";import"./popover-BYvt0bxB.js";import"./github-repo-picker-BNDot8ZD.js";import"./use-debounced-value-B8nRETfv.js";import"./authenticate-and-persist-oauth-BH26XKT9.js";import"./mcp-oauth-EeLwp5eX.js";import"./extract-connection-data-Bgz74dk7.js";import"./metadata-dUsYcpuu.js";import"./connection-f2REUt95.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D3s_4e6c.js";import"./use-registry-connections-AvU1e53j.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CQu-QtAR.js";import"./connection-form-helpers-CgOgzhG0.js";import"./collection-tabs-F2v4cUxR.js";import"./badge-Dx14P1uf.js";import"./dropdown-menu-iq7an5CR.js";import"./get-initials-D-f_fDFw.js";import"./config-DAEl2Fwz.js";import"./select-model-C1B_bzfv.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-oUyx5_4o.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yJcdYzkO.js";import"./toolbar-BYn6hWQJ.js";import"./use-file-configs-BWXflqeG.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-bjmuW_A1.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-1uO7Q1_D.js";import"./use-debounced-autosave-kIKO71Tg.js";import"./scroll-area-DmdvWjmC.js";import"./search-input-aRZQtrr1.js";import"./use-mcp-auth-status-BBJKM7f_.js";import"./switch-D5j2S-4i.js";import"./use-secrets-C7MTfbp9.js";import"./client-icons-D7u-J_pd.js";import"./connect-layout-CmmdxzFu.js";import"./self-tool-result-DDDE2dgE.js";import"./track-DqsuBc-w.js";import"./use-tags-CIfiPRHF.js";import"./breadcrumb-B9-pZnD9.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-fcDYKNgJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OgvPGokO.js";import"./cards-BLVEB5RL.js";const gt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function gi(it){const t=lt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let G;t[4]!==Z?(G=bt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let M;t[6]!==X||t[7]!==s?(M=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=M):M=t[8];const[o,tt]=Et(ot,M);let Y;t[9]!==o||t[10]!==tt?(Y=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=Y):Y=t[11];const m=Y;let p;t[12]!==e?(p=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=p):p=t[13];let l;t[14]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[14]=p,t[15]=l):l=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==l||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[19]=l,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let E;t[46]!==e?(E=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=E):E=t[47];let g;t[48]!==m?(g=i=>m({to:i.target.value}),t[48]=m,t[49]=g):g=t[49];let P;t[50]!==o.to||t[51]!==E||t[52]!==g?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:E,onChange:g,className:"h-10"}),t[50]=o.to,t[51]=E,t[52]=g,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const pt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=gt.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let F;t[74]!==_?(F=r.jsx(xt,{children:_}),t[74]=_,t[75]=F):F=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==F?(L=r.jsxs(ht,{value:pt,onValueChange:w,children:[I,F]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=F,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let K;t[86]!==m?(K=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=K):K=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==K?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:K}),t[88]=o.discardQueryParameters,t[89]=K,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{gi as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BzRjJS6o.js","assets/index-iMHThdI5.js","assets/index-owpBJsp0.css","assets/Tool02-Dh-KcCDo.js","assets/CheckCircle-BaphLiUh.js","assets/Settings02-CkPf5bSQ.js","assets/use-mcp-client-Cb-7Tc46.js","assets/constants-DNuUCxmW.js","assets/auth-CyxtW7VU.js","assets/useInfiniteQuery-9JeN2e62.js","assets/use-infinite-scroll-CKdXAA8A.js","assets/badge-Dx14P1uf.js","assets/input-CbnXHcO6.js","assets/dropdown-menu-iq7an5CR.js","assets/Check-CA6oOwnk.js","assets/ChevronRight-C1PKtWq_.js","assets/DotsVertical-CuAwCaPW.js","assets/table-Bdl9_Fhf.js","assets/toggle-group-B5yffd6B.js","assets/use-view-mode-C34ZcfuA.js","assets/Globe01-DeCmIrD5.js","assets/SearchMd-BpXAT-eZ.js","assets/dialog-CCRr4CCv.js","assets/AlertCircle-DZjE_Y0H.js","assets/Download01-R47mE7bD.js","assets/Upload01-BaOVc9nV.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-1uO7Q1_D.js","assets/Trash01-BDaDkc_-.js","assets/label-DRWhO--x.js","assets/select-DVuboUqa.js","assets/ChevronUp-BWJ43Ad_.js","assets/switch-D5j2S-4i.js","assets/textarea-CQu-QtAR.js","assets/ArrowLeft-BsR-6m6j.js","assets/XCircle-DQV3a8ui.js","assets/Link01-CLzBJa_Z.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-BtMOjQuM.js","assets/Eye-D3bCBJMo.js","assets/LinkExternal01-w2j8lCTU.js","assets/use-copy-Bqne_Qou.js","assets/Copy01-DHhdbM_J.js","assets/Key01-ICcTBF9U.js","assets/Plus-DZ-r7ICl.js","assets/mcp-oauth-EeLwp5eX.js","assets/Play-Bn8_HZzx.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,h as a,bn as o}from"./index-iMHThdI5.js";import{R as n}from"./require-capability-BeFbF8pl.js";import"./access-gate-asM9jXYM.js";import"./capability-load-error-CUNqj87m.js";const c=s.lazy(()=>o(()=>import("./registry-layout-BzRjJS6o.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 u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{className:"size-5 text-muted-foreground"})}),children:e.jsx(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,2 +0,0 @@
1
- import{c as st,b as Dt,r as R,l as Ue,j as n,aC as Xn,B as tt,a4 as wt,a1 as kt,a2 as Tt,h as es,n as Ca,t as J,K as Pa}from"./index-iMHThdI5.js";import{b as Ma}from"./chat-context-mKzm57ri.js";import{a7 as ts,a8 as La,a9 as Ka,aa as Oa,ab as ns,N as ss,O as Zt,ac as as,ad as os,P as is,Q as rs,ae as ls,af as Ba,_ as cs,$ as us,ag as Ia,ah as Fa,ai as ds,G as $a,U as ms,V as Lt,Y as fs,Z as ps,W as gs,a4 as hs,aj as za,ak as Kt,al as vs,am as Ha,an as Ua,ao as Ga,ap as qa,aq as Wa,d as Ya,e as Ja,ar as Qa,as as Za,at as Xa,au as eo,av as On,aw as to,ax as no,ay as so,a2 as qt,az as ao,aA as oo,aB as Wt,aC as io,aD as bt,aE as Ct,aF as ro,aG as lo,aH as nt,aI as Bn,aJ as co,g as uo,aK as In,aL as mo,aM as fo,aN as Pt,aO as Yt,aP as Fn,aQ as po,aR as fn,aS as go,aT as ht,aU as Et,aV as ho,aW as vo,aX as So,aY as bo,aZ as yo,a_ as yt,a$ as xo,b0 as _o,b1 as jo,i as Eo,b2 as $n,b3 as Mt,b4 as zn,b5 as Hn,b6 as Ro,b7 as wo,b8 as ko,b9 as To,ba as pn,bb as Un,bc as Gn,bd as Rt,be as Jt,bf as qn,bg as Do,bh as gn,bi as Vo,bj as No,bk as Ao,bl as Co,bm as Po,bn as Mo}from"./index-De2AiSst.js";import{n as Lo,t as Ko}from"./ChevronUp-BWJ43Ad_.js";import{af as vn,x as Oo,Z as Ss,D as Bo,w as Io,am as Fo,r as $o}from"./agent-icon-C7HwxMy2.js";import{i as zo}from"./ChevronRight-C1PKtWq_.js";import{i as Ho}from"./Globe01-DeCmIrD5.js";import{S as Qt}from"./scroll-area-DmdvWjmC.js";import{d as Uo,h as Go,c as qo,e as Wo,b as Yo,D as Jo}from"./dialog-CCRr4CCv.js";import{I as Qo}from"./input-CbnXHcO6.js";import{a as bs}from"./Copy01-DHhdbM_J.js";import{i as Zo}from"./Settings02-CkPf5bSQ.js";import{s as Xo}from"./Eye-D3bCBJMo.js";import{s as ei}from"./TrendUp01-gaB_ebZy.js";import{s as Sn}from"./Plus-DZ-r7ICl.js";import{s as ys}from"./Trash01-BDaDkc_-.js";import{i as ti}from"./Zap-BeDIMc43.js";import{D as xs,a as vt,c as _s,b as js,i as ni}from"./dropdown-menu-iq7an5CR.js";import{s as si}from"./safe-image-url-D5z803Ot.js";import{a as ai,P as oi,b as ii}from"./page-seo-form-BI1ZnjGb.js";import{a as ri}from"./Tool01-Cz6q9HPW.js";import{u as li,A as ci}from"./use-section-preview-base-CNJRRsrA.js";import"./use-panel-navigate-BbrwVdUf.js";import"./use-destination-route-BjLqPQzR.js";import"./thread-route-CYrRQzf6.js";import"./Check-CA6oOwnk.js";import"./Download01-R47mE7bD.js";import"./constants-DNuUCxmW.js";import"./thread-intent-D8J4loNV.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Ba0JKlx2.js";import"./use-mcp-client-Cb-7Tc46.js";import"./auth-CyxtW7VU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./task-board-2M_cICbv.js";import"./schema-CalSBGUA.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DfwA3vbI.js";import"./use-ai-providers-DNmUp1KH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Du05HBL-.js";import"./use-organization-settings-LGG-1duj.js";import"./ArrowUp-UBHjzAp-.js";import"./automation-runs-BPY4nydY.js";import"./useInfiniteQuery-9JeN2e62.js";import"./use-infinite-scroll-CKdXAA8A.js";import"./use-connection-BIoGt2fV.js";import"./table-Bdl9_Fhf.js";import"./empty-state-sOUWi52v.js";import"./use-members-BfBQJknB.js";import"./use-org-auth-client-B4SqGhOd.js";import"./AlertCircle-DZjE_Y0H.js";import"./CheckCircle-BaphLiUh.js";import"./DotsVertical-CuAwCaPW.js";import"./XCircle-DQV3a8ui.js";import"./use-automations-BAS2bqab.js";import"./useSuspenseInfiniteQuery-tto2zjOo.js";import"./avatar-CxjMK0xh.js";import"./User01-CvjutW7d.js";import"./Tool02-Dh-KcCDo.js";import"./Stars01-Dxt-GRKF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Bqne_Qou.js";import"./markdown-22Db80L5.js";import"./ZoomOut-C3_0q9Na.js";import"./monaco-editor-CZowCy14.js";import"./editor-CLQxxGs0.js";import"./types-CSh-_-A-.js";import"./XClose-Dciq0-47.js";import"./Share07-P3qF7VX0.js";import"./SearchMd-BpXAT-eZ.js";import"./shell-layout-fxaPPTq-.js";import"./Users03-DOh7pHdk.js";import"./use-project-scope-BJGCHDw2.js";import"./github-repo-BpKUwJal.js";import"./Monitor01-CMjB6a1I.js";import"./command-CeKckObX.js";import"./index-B3BkyrSZ.js";import"./required-auth-layout-DKUUs0wv.js";import"./use-org-sso-BOX8tS6G.js";import"./Image01-CStOAxG7.js";import"./LinkExternal01-w2j8lCTU.js";import"./integration-icon-C0qvOPer.js";import"./Palette-CVvoWFYM.js";import"./use-navigate-to-agent-BagpOb6G.js";import"./Link01-CLzBJa_Z.js";import"./use-mcp-prompts-B4teZ13r.js";import"./form-CJy6gOK9.js";import"./label-DRWhO--x.js";import"./file-type-icon-BZyWvek2.js";import"./drawer-EJ0baEzN.js";import"./collection-search-DytvMFFj.js";import"./use-mcp-tools-yMcjeDP1.js";import"./Upload01-BaOVc9nV.js";import"./select-DVuboUqa.js";import"./ThumbsUp-BFZZTKVU.js";import"./ArrowLeft-BsR-6m6j.js";import"./tabs-CJeYzOxp.js";import"./toggle-group-B5yffd6B.js";import"./task-route-CheWHifs.js";import"./toolbar-icon-button-V4uX1cT4.js";import"./popover-BYvt0bxB.js";import"./github-repo-picker-BNDot8ZD.js";import"./use-debounced-value-B8nRETfv.js";import"./authenticate-and-persist-oauth-BH26XKT9.js";import"./mcp-oauth-EeLwp5eX.js";import"./LockUnlocked01-CbuTs0EA.js";import"./extract-connection-data-Bgz74dk7.js";import"./metadata-dUsYcpuu.js";import"./connection-f2REUt95.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D3s_4e6c.js";import"./use-registry-connections-AvU1e53j.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CQu-QtAR.js";import"./UserSquare-DXupINNG.js";import"./connection-form-helpers-CgOgzhG0.js";import"./collection-tabs-F2v4cUxR.js";import"./badge-Dx14P1uf.js";import"./get-initials-D-f_fDFw.js";import"./config-DAEl2Fwz.js";import"./Shield01-BhVJtpaL.js";import"./select-model-C1B_bzfv.js";import"./checkbox-BtMOjQuM.js";import"./ChevronSelectorVertical-uLPnhvHf.js";import"./Key01-ICcTBF9U.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-oUyx5_4o.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yJcdYzkO.js";import"./toolbar-BYn6hWQJ.js";import"./GitBranch01-CjfnHX9l.js";import"./Package-BOH9DZQ0.js";import"./use-file-configs-BWXflqeG.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-bjmuW_A1.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-1uO7Q1_D.js";import"./Play-Bn8_HZzx.js";import"./use-debounced-autosave-kIKO71Tg.js";import"./search-input-aRZQtrr1.js";import"./use-mcp-auth-status-BBJKM7f_.js";import"./switch-D5j2S-4i.js";import"./Users01-BYJLxdvv.js";import"./use-secrets-C7MTfbp9.js";import"./client-icons-D7u-J_pd.js";import"./connect-layout-CmmdxzFu.js";import"./self-tool-result-DDDE2dgE.js";import"./track-DqsuBc-w.js";import"./use-tags-CIfiPRHF.js";import"./breadcrumb-B9-pZnD9.js";import"./automation-list-row-fcDYKNgJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OgvPGokO.js";import"./cards-BLVEB5RL.js";import"./CreditCard01-BewJRmPb.js";import"./HardDrive-BpRcIm2Z.js";import"./Sun-ZKlmnxLK.js";function ui(m){return m.schema?.definitions??m.schema?.$defs??{}}function Es(m,e){const o=ui(e),u=o[btoa(m)];if(!u)return[];const p=[u];if(Array.isArray(u.allOf)){const x=u.allOf.find(_=>typeof _.$ref=="string")?.$ref;if(typeof x=="string"){const _=o[x.replace("#/definitions/","")];_&&p.push(_)}}return p}function di(m,e){for(const o of Es(m,e)){const u=typeof o.image=="string"?o.image:void 0;if(u?.includes("{{{"))return u}}function mi(m,e){if(!e)return;const o=ts(m);if(!o)return;const u=di(o.resolveType,e);if(!u)return;const p=La(u,o.data);if(p)return si(p)}const fi={escape:Oa};function pi(m,e){for(const o of Es(m,e)){const u=typeof o.title=="string"?o.title:void 0;if(u?.includes("{{"))return u}}function gi(m,e){if(!e)return;const o=ts(m);if(o)try{const u=pi(o.resolveType,e);return u&&Ka.render(u,o.data,{},fi).trim()||void 0}catch{return}}const hi="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",vi="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Wn(m){return Array.from({length:m},(e,o)=>({id:crypto.randomUUID(),index:o}))}function Rs(m){return m.map((e,o)=>({...e,index:o}))}function Si(m,e){if(e===m.length)return m;if(e<m.length)return Rs(m.slice(0,e));const o=Array.from({length:e-m.length},(u,p)=>({id:crypto.randomUUID(),index:m.length+p}));return[...m,...o]}function ws(m){const e=st.c(25),{section:o,raw:u,meta:p}=m,x=o.isSavedBlock===!0,_=o.isMultivariate===!0;let v;e[0]!==p||e[1]!==u?(v=u&&p?mi(u,p):void 0,e[0]=p,e[1]=u,e[2]=v):v=e[2];const y=v;let g;e[3]!==p||e[4]!==_||e[5]!==u||e[6]!==x?(g=u&&p&&!x&&!_?gi(u,p):void 0,e[3]=p,e[4]=_,e[5]=u,e[6]=x,e[7]=g):g=e[7];const w=g;let K;e[8]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(Oo,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=K):K=e[8];let M;e[9]!==y?(M=y&&n.jsx("img",{src:y,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=y,e[10]=M):M=e[10];let k;e[11]!==_||e[12]!==x?(k=x?{color:$a}:_?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=_,e[12]=x,e[13]=k):k=e[13];let c;e[14]!==k?(c=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:k}),e[14]=k,e[15]=c):c=e[15];const b=o.isHidden&&"line-through opacity-50";let E;e[16]!==b?(E=Ue("min-w-0 flex-1 truncate text-sm font-medium",b),e[16]=b,e[17]=E):E=e[17];const l=w??o.label;let T;e[18]!==E||e[19]!==l?(T=n.jsx("span",{className:E,children:l}),e[18]=E,e[19]=l,e[20]=T):T=e[20];let i;return e[21]!==T||e[22]!==M||e[23]!==c?(i=n.jsxs(n.Fragment,{children:[K,M,c,T]}),e[21]=T,e[22]=M,e[23]=c,e[24]=i):i=e[24],i}const bi="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",yi="w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",xi="w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100";function hn(m,e){return Ue("h-7 shrink-0 overflow-hidden",e?bi:m?xi:yi)}function ks(m,e){const o=m.isSavedBlock===!0,u=m.isMultivariate===!0;return Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?hi:u?ds:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function _i(m){const e=st.c(89),{section:o,raw:u,meta:p,sortableId:x,selected:_,onSelect:v,onDelete:y,onDuplicate:g,onMakeReusable:w,onToggleHidden:K,onToggleLazy:M,onAddVariant:k,onDetach:c}=m,b=Dt(),E=u?ls(u.__resolveType??""):!1,l=o.isHidden===!0,T=E||l;let i;e[0]!==o?(i=Ba(o),e[0]=o,e[1]=i):i=e[1];const re=i,H=ns();let Q;e[2]!==x?(Q={id:x,animateLayoutChanges:ki},e[2]=x,e[3]=Q):Q=e[3];const{attributes:te,listeners:d,setNodeRef:L,transform:pe,isDragging:A}=cs(Q);let ee;e[4]!==pe?(ee=us.Transform.toString(pe?{...pe,x:0}:null),e[4]=pe,e[5]=ee):ee=e[5];const D=A?0:void 0;let oe;e[6]!==ee||e[7]!==D?(oe={transform:ee,opacity:D},e[6]=ee,e[7]=D,e[8]=oe):oe=e[8];const U=oe;let ye;e[9]!==o?(ye=Ia(o),e[9]=o,e[10]=ye):ye=e[10];const ge=ye;let we;e[11]!==te||e[12]!==H?(we=H?{}:te,e[11]=te,e[12]=H,e[13]=we):we=e[13];let G;e[14]!==d||e[15]!==H?(G=H?{}:d,e[14]=d,e[15]=H,e[16]=G):G=e[16];let ne;e[17]!==v?(ne=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v())},e[17]=v,e[18]=ne):ne=e[18];const Be=A?"cursor-grabbing":"cursor-pointer";let le;e[19]!==o||e[20]!==_||e[21]!==Be?(le=Ue("touch-none transition-colors",Be,ks(o,_)),e[19]=o,e[20]=_,e[21]=Be,e[22]=le):le=e[22];let O;e[23]!==p||e[24]!==u||e[25]!==o?(O=n.jsx(ws,{section:o,raw:u,meta:p}),e[23]=p,e[24]=u,e[25]=o,e[26]=O):O=e[26];let Ge;e[27]!==l||e[28]!==b?(Ge=b(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[27]=l,e[28]=b,e[29]=Ge):Ge=e[29];let We;e[30]!==K?(We=N=>{N.stopPropagation(),K()},e[30]=K,e[31]=We):We=e[31];let Me;e[32]!==l?(Me=l?n.jsx(Zo,{className:"h-3.5 w-3.5"}):n.jsx(Xo,{className:"h-3.5 w-3.5"}),e[32]=l,e[33]=Me):Me=e[33];let xe;e[34]!==l||e[35]!==b?(xe=b(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[34]=l,e[35]=b,e[36]=xe):xe=e[36];let I;e[37]!==xe?(I=n.jsx(Tt,{side:"bottom",children:xe}),e[37]=xe,e[38]=I):I=e[38];const Z=_s,Ne=xs,Ae=!0,ue=tt,Ce="button",ke="ghost",Le="icon";let he;e[39]!==b?(he=b("sectionsEditor.sectionList.sectionActionsMenu"),e[39]=b,e[40]=he):he=e[40];const Ie=Ue(hn(T,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let ce;e[41]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(Ss,{className:"h-3.5 w-3.5"}),e[41]=ce):ce=e[41];let _e;e[42]!==ue||e[43]!==H||e[44]!==he||e[45]!==Ie?(_e=n.jsx(ue,{type:Ce,variant:ke,size:Le,disabled:H,"aria-label":he,className:Ie,onClick:Ei,onPointerDown:ji,children:ce}),e[42]=ue,e[43]=H,e[44]=he,e[45]=Ie,e[46]=_e):_e=e[46];let je;e[47]!==Ne||e[48]!==_e?(je=n.jsx(Ne,{asChild:Ae,children:_e}),e[47]=Ne,e[48]=_e,e[49]=je):je=e[49];let de;e[50]!==g?(de=N=>{N.stopPropagation(),g()},e[50]=g,e[51]=de):de=e[51];let q;e[52]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx(bs,{className:"h-4 w-4"}),e[52]=q):q=e[52];let Ee;e[53]!==b?(Ee=b("sectionsEditor.sectionList.duplicateMenuItem"),e[53]=b,e[54]=Ee):Ee=e[54];let ve;e[55]!==de||e[56]!==Ee?(ve=n.jsxs(vt,{onClick:de,children:[q,Ee]}),e[55]=de,e[56]=Ee,e[57]=ve):ve=e[57];let se;e[58]!==re||e[59]!==k||e[60]!==b?(se=re&&n.jsxs(vt,{className:Fa,onClick:N=>{N.stopPropagation(),k()},children:[n.jsx(ei,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.addVariantMenuItem")]}),e[58]=re,e[59]=k,e[60]=b,e[61]=se):se=e[61];let me;e[62]!==ge||e[63]!==w||e[64]!==b?(me=ge&&n.jsxs(vt,{className:vi,onClick:N=>{N.stopPropagation(),w()},children:[n.jsx(vn,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[62]=ge,e[63]=w,e[64]=b,e[65]=me):me=e[65];let ie;e[66]!==c||e[67]!==o.isMultivariate||e[68]!==o.isSavedBlock||e[69]!==b?(ie=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(vt,{onClick:N=>{N.stopPropagation(),c()},children:[n.jsx(vn,{className:"h-4 w-4"}),b("sectionsEditor.sectionList.detachMenuItem")]}),e[66]=c,e[67]=o.isMultivariate,e[68]=o.isSavedBlock,e[69]=b,e[70]=ie):ie=e[70];let fe;e[71]!==y?(fe=N=>{N.stopPropagation(),y()},e[71]=y,e[72]=fe):fe=e[72];let Se;e[73]===Symbol.for("react.memo_cache_sentinel")?(Se=n.jsx(ys,{className:"h-4 w-4"}),e[73]=Se):Se=e[73];let Pe;e[74]!==b?(Pe=b("sectionsEditor.sectionList.deleteMenuItem"),e[74]=b,e[75]=Pe):Pe=e[75];let ae;e[76]!==fe||e[77]!==Pe?(ae=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:fe,children:[Se,Pe]}),e[76]=fe,e[77]=Pe,e[78]=ae):ae=e[78];let C;e[79]!==ve||e[80]!==se||e[81]!==me||e[82]!==ie||e[83]!==ae?(C=n.jsxs(js,{align:"end",className:"w-44",children:[ve,se,me,ie,ae]}),e[79]=ve,e[80]=se,e[81]=me,e[82]=ie,e[83]=ae,e[84]=C):C=e[84];let B;return e[85]!==Z||e[86]!==je||e[87]!==C?(B=n.jsxs(Z,{children:[je,C]}),e[85]=Z,e[86]=je,e[87]=C,e[88]=B):B=e[88],n.jsxs("div",{ref:L,style:U,...we,...G,role:"button",tabIndex:0,onClick:v,onKeyDown:ne,className:le,children:[O,!H&&!o.isMultivariate&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":b(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Ue(hn(T,E)),onClick:N=>{N.stopPropagation(),M()},onPointerDown:wi,children:n.jsx(ti,{className:Ue("h-3.5 w-3.5",E&&"text-yellow-500")})})}),n.jsx(Tt,{side:"bottom",children:b(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon",disabled:H,"aria-label":Ge,className:Ue(hn(T,l)),onClick:We,onPointerDown:Ri,children:Me})}),I]}),B]})}function ji(m){return m.stopPropagation()}function Ei(m){return m.stopPropagation()}function Ri(m){return m.stopPropagation()}function wi(m){return m.stopPropagation()}function ki(){return!1}function Ti(m){const e=st.c(104),{listKey:o,rawSections:u,sections:p,meta:x,selectedIndex:_,onSelect:v,onReorder:y,onDelete:g,onDuplicate:w,onMakeReusable:K,onToggleHidden:M,onToggleLazy:k,onAddVariant:c,onDetach:b,onAddSection:E,canAddSection:l}=m,T=l===void 0?!0:l,i=Dt(),re=ns();let H;e[0]!==p.length?(H=()=>Wn(p.length),e[0]=p.length,e[1]=H):H=e[1];const[Q,te]=R.useState(H),[d,L]=R.useState(null),[pe,A]=R.useState(o),[ee,D]=R.useState(p.length),oe=R.useRef(!1);pe!==o?(A(o),D(p.length),te(Wn(p.length))):ee!==p.length&&(D(p.length),te(ae=>Si(ae,p.length)));let U;e[2]===Symbol.for("react.memo_cache_sentinel")?(U={activationConstraint:{distance:8}},e[2]=U):U=e[2];let ye;e[3]===Symbol.for("react.memo_cache_sentinel")?(ye={coordinateGetter:ms},e[3]=ye):ye=e[3];const ge=ss(Zt(rs,U),Zt(is,ye));let we;e[4]!==Q?(we=Q.map(Di),e[4]=Q,e[5]=we):we=e[5];const G=we;let ne;e[6]===Symbol.for("react.memo_cache_sentinel")?(ne=ae=>{L(String(ae.active.id))},e[6]=ne):ne=e[6];const Be=ne;let le;e[7]!==G||e[8]!==y?(le=ae=>{L(null);const{active:C,over:B}=ae;if(!B||C.id===B.id)return;const N=G.indexOf(String(C.id)),Ke=G.indexOf(String(B.id));N===-1||Ke===-1||(te(ct=>Rs(Lt([...ct],N,Ke))),oe.current=!0,requestAnimationFrame(()=>{oe.current=!1}),y?.(N,Ke))},e[7]=G,e[8]=y,e[9]=le):le=e[9];const O=le;let Ge;e[10]===Symbol.for("react.memo_cache_sentinel")?(Ge=()=>{L(null)},e[10]=Ge):Ge=e[10];const We=Ge;let Me,xe,I,Z,Ne,Ae,ue,Ce,ke,Le,he,Ie,ce,_e,je;if(e[11]!==d||e[12]!==T||e[13]!==Q||e[14]!==G||e[15]!==O||e[16]!==x||e[17]!==E||e[18]!==c||e[19]!==g||e[20]!==b||e[21]!==w||e[22]!==K||e[23]!==v||e[24]!==M||e[25]!==k||e[26]!==u||e[27]!==p||e[28]!==_||e[29]!==ge||e[30]!==i){_e=Symbol.for("react.early_return_sentinel");e:{const ae=C=>{oe.current||v(C)};if(e[46]!==d||e[47]!==T||e[48]!==Q||e[49]!==E||e[50]!==u||e[51]!==p||e[52]!==i){const C=d?Q.find(B=>B.id===d):null;if(Z=C!=null?p[C.index]:null,I=C!=null?u[C.index]:void 0,Q.length===0){let B;e[56]!==i?(B=i("sectionsEditor.sectionList.noSections"),e[56]=i,e[57]=B):B=e[57];let N;e[58]!==B?(N=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:B}),e[58]=B,e[59]=N):N=e[59];const Ke=!T;let ct;e[60]===Symbol.for("react.memo_cache_sentinel")?(ct=n.jsx(Sn,{size:14}),e[60]=ct):ct=e[60];let Te;e[61]!==i?(Te=i("sectionsEditor.sectionList.addSectionButton"),e[61]=i,e[62]=Te):Te=e[62];let Ye;e[63]!==E||e[64]!==Ke||e[65]!==Te?(Ye=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ke,onClick:E,children:[ct,Te]}),e[63]=E,e[64]=Ke,e[65]=Te,e[66]=Ye):Ye=e[66];let Fe;e[67]!==N||e[68]!==Ye?(Fe=n.jsxs("div",{className:"space-y-2",children:[N,Ye]}),e[67]=N,e[68]=Ye,e[69]=Fe):Fe=e[69],_e=Fe;break e}ce=Ue(C&&"cursor-grabbing"),e[46]=d,e[47]=T,e[48]=Q,e[49]=E,e[50]=u,e[51]=p,e[52]=i,e[53]=I,e[54]=Z,e[55]=ce}else I=e[53],Z=e[54],ce=e[55];xe=fs,Ce=ge,ke=ps,Le=Be,he=O,Ie=We,Me=gs,Ae=G,ue=hs,je="space-y-1",Ne=Q.map(C=>{const B=p[C.index];return B?n.jsx(_i,{sortableId:C.id,section:B,raw:u[C.index],meta:x,selected:_===C.index,onSelect:()=>ae(C.index),onDelete:()=>g(C.index),onDuplicate:()=>w(C.index),onMakeReusable:()=>K(C.index),onToggleHidden:()=>M(C.index),onToggleLazy:()=>k(C.index),onAddVariant:()=>c(C.index),onDetach:()=>b(C.index)},C.id):null})}e[11]=d,e[12]=T,e[13]=Q,e[14]=G,e[15]=O,e[16]=x,e[17]=E,e[18]=c,e[19]=g,e[20]=b,e[21]=w,e[22]=K,e[23]=v,e[24]=M,e[25]=k,e[26]=u,e[27]=p,e[28]=_,e[29]=ge,e[30]=i,e[31]=Me,e[32]=xe,e[33]=I,e[34]=Z,e[35]=Ne,e[36]=Ae,e[37]=ue,e[38]=Ce,e[39]=ke,e[40]=Le,e[41]=he,e[42]=Ie,e[43]=ce,e[44]=_e,e[45]=je}else Me=e[31],xe=e[32],I=e[33],Z=e[34],Ne=e[35],Ae=e[36],ue=e[37],Ce=e[38],ke=e[39],Le=e[40],he=e[41],Ie=e[42],ce=e[43],_e=e[44],je=e[45];if(_e!==Symbol.for("react.early_return_sentinel"))return _e;let de;e[70]!==Ne||e[71]!==je?(de=n.jsx("div",{className:je,children:Ne}),e[70]=Ne,e[71]=je,e[72]=de):de=e[72];let q;e[73]!==Me||e[74]!==Ae||e[75]!==ue||e[76]!==de?(q=n.jsx(Me,{items:Ae,strategy:ue,children:de}),e[73]=Me,e[74]=Ae,e[75]=ue,e[76]=de,e[77]=q):q=e[77];let Ee;e[78]!==I||e[79]!==Z||e[80]!==x?(Ee=Z?n.jsx("div",{className:Ue("cursor-grabbing shadow-lg ring-1 ring-border/60",ks(Z,!1)),children:n.jsx(ws,{section:Z,raw:I,meta:x})}):null,e[78]=I,e[79]=Z,e[80]=x,e[81]=Ee):Ee=e[81];let ve;e[82]!==Ee?(ve=Xn.createPortal(n.jsx(as,{dropAnimation:os,children:Ee}),document.body),e[82]=Ee,e[83]=ve):ve=e[83];let se;e[84]!==xe||e[85]!==Ce||e[86]!==ke||e[87]!==Le||e[88]!==he||e[89]!==Ie||e[90]!==q||e[91]!==ve?(se=n.jsxs(xe,{sensors:Ce,collisionDetection:ke,onDragStart:Le,onDragEnd:he,onDragCancel:Ie,children:[q,ve]}),e[84]=xe,e[85]=Ce,e[86]=ke,e[87]=Le,e[88]=he,e[89]=Ie,e[90]=q,e[91]=ve,e[92]=se):se=e[92];const me=re||!T;let ie;e[93]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Sn,{size:14}),e[93]=ie):ie=e[93];let fe;e[94]!==i?(fe=i("sectionsEditor.sectionList.addSectionButton"),e[94]=i,e[95]=fe):fe=e[95];let Se;e[96]!==E||e[97]!==me||e[98]!==fe?(Se=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:me,onClick:E,children:[ie,fe]}),e[96]=E,e[97]=me,e[98]=fe,e[99]=Se):Se=e[99];let Pe;return e[100]!==ce||e[101]!==se||e[102]!==Se?(Pe=n.jsxs("div",{className:ce,children:[se,Se]}),e[100]=ce,e[101]=se,e[102]=Se,e[103]=Pe):Pe=e[103],Pe}function Di(m){return m.id}function Yn(m){const e=st.c(57),{open:o,initialName:u,autoLabel:p,isPending:x,onSubmit:_,onOpenChange:v}=m,y=x===void 0?!1:x,g=Dt(),[w,K]=R.useState(u),[M,k]=R.useState(o);o!==M&&(k(o),o&&K(u));let c;e[0]!==y||e[1]!==v?(c=ne=>{!ne&&!y&&v(!1)},e[0]=y,e[1]=v,e[2]=c):c=e[2];const b=c;let E;e[3]!==y||e[4]!==w||e[5]!==_?(E=async ne=>{ne.preventDefault(),!y&&await _(w.trim())},e[3]=y,e[4]=w,e[5]=_,e[6]=E):E=e[6];const l=E;let T;e[7]!==g?(T=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=T):T=e[8];let i;e[9]!==T?(i=n.jsx(Uo,{children:T}),e[9]=T,e[10]=i):i=e[10];let re;e[11]!==p||e[12]!==g?(re=g("sectionsEditor.variantRenameDialog.description",{fallback:p||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=g,e[13]=re):re=e[13];let H;e[14]!==re?(H=n.jsx(Go,{children:re}),e[14]=re,e[15]=H):H=e[15];let Q;e[16]!==i||e[17]!==H?(Q=n.jsxs(qo,{children:[i,H]}),e[16]=i,e[17]=H,e[18]=Q):Q=e[18];let te;e[19]!==g?(te=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=te):te=e[20];let d;e[21]!==te?(d=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:te}),e[21]=te,e[22]=d):d=e[22];let L;e[23]===Symbol.for("react.memo_cache_sentinel")?(L=ne=>K(ne.target.value),e[23]=L):L=e[23];let pe;e[24]!==p||e[25]!==y||e[26]!==w?(pe=n.jsx(Qo,{id:"variant-rename-name",value:w,onChange:L,placeholder:p,autoFocus:!0,disabled:y}),e[24]=p,e[25]=y,e[26]=w,e[27]=pe):pe=e[27];let A;e[28]!==d||e[29]!==pe?(A=n.jsxs("div",{className:"space-y-1.5 py-4",children:[d,pe]}),e[28]=d,e[29]=pe,e[30]=A):A=e[30];let ee;e[31]!==v?(ee=()=>v(!1),e[31]=v,e[32]=ee):ee=e[32];let D;e[33]!==g?(D=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=D):D=e[34];let oe;e[35]!==y||e[36]!==ee||e[37]!==D?(oe=n.jsx(tt,{type:"button",variant:"outline",onClick:ee,disabled:y,children:D}),e[35]=y,e[36]=ee,e[37]=D,e[38]=oe):oe=e[38];let U;e[39]!==y||e[40]!==g?(U=y?n.jsxs(n.Fragment,{children:[n.jsx(es,{className:"size-3.5"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=y,e[40]=g,e[41]=U):U=e[41];let ye;e[42]!==y||e[43]!==U?(ye=n.jsx(tt,{type:"submit",disabled:y,children:U}),e[42]=y,e[43]=U,e[44]=ye):ye=e[44];let ge;e[45]!==oe||e[46]!==ye?(ge=n.jsxs(Wo,{children:[oe,ye]}),e[45]=oe,e[46]=ye,e[47]=ge):ge=e[47];let we;e[48]!==l||e[49]!==A||e[50]!==ge||e[51]!==Q?(we=n.jsx(Yo,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:l,children:[Q,A,ge]})}),e[48]=l,e[49]=A,e[50]=ge,e[51]=Q,e[52]=we):we=e[52];let G;return e[53]!==b||e[54]!==o||e[55]!==we?(G=n.jsx(Jo,{open:o,onOpenChange:b,children:we}),e[53]=b,e[54]=o,e[55]=we,e[56]=G):G=e[56],G}function Ts(m){const e=st.c(5),{rule:o,matchers:u}=m,p=o?.__resolveType??"";let x;if(e[0]!==u||e[1]!==p){const g=u.find(w=>w.resolveType===p)?.iconName??za(p);x=Bo(g),e[0]=u,e[1]=p,e[2]=x}else x=e[2];const _=x;if(!_)return null;let v;return e[3]!==_?(v=n.jsx(_,{size:14,className:"shrink-0"}),e[3]=_,e[4]=v):v=e[4],v}function Jn(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function Qn(m){return m.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function Vi(m,e){const o=new Map;for(const u of m){const p=o.get(u.variant.label);p?p.push(u):o.set(u.variant.label,[u])}return e.map((u,p)=>({id:o.get(u.label)?.shift()?.id??crypto.randomUUID(),index:p,variant:u}))}function Ni(m){return m.map((e,o)=>({...e,index:o}))}function Ds(m){const e=st.c(17),{label:o,effectiveRule:u,matchers:p,canDelete:x,dragging:_,onRename:v,onDuplicate:y,onDelete:g}=m,w=Dt();let K;e[0]!==u||e[1]!==p?(K=n.jsx(Ts,{rule:u,matchers:p}),e[0]=u,e[1]=p,e[2]=K):K=e[2];let M;e[3]!==o?(M=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=M):M=e[4];let k;e[5]!==x||e[6]!==_||e[7]!==o||e[8]!==g||e[9]!==y||e[10]!==v||e[11]!==w?(k=!_&&n.jsxs(_s,{children:[n.jsx(xs,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":w("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:o}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Ci,onPointerDown:Ai,children:n.jsx(Ss,{size:14})})}),n.jsxs(js,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:b=>{b.stopPropagation(),v?.()},children:[n.jsx(ri,{size:14}),w("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:b=>{b.stopPropagation(),y?.()},children:[n.jsx(bs,{size:14}),w("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(ni,{}),n.jsxs(vt,{variant:"destructive",disabled:!x,onClick:b=>{b.stopPropagation(),g?.()},children:[n.jsx(ys,{size:14}),w("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=x,e[6]=_,e[7]=o,e[8]=g,e[9]=y,e[10]=v,e[11]=w,e[12]=k):k=e[12];let c;return e[13]!==K||e[14]!==M||e[15]!==k?(c=n.jsxs(n.Fragment,{children:[K,M,k]}),e[13]=K,e[14]=M,e[15]=k,e[16]=c):c=e[16],c}function Ai(m){return m.stopPropagation()}function Ci(m){return m.stopPropagation()}function Pi(m){const e=st.c(33),{entry:o,isActive:u,canDelete:p,decofile:x,meta:_,matchers:v,onSelect:y,onRename:g,onDuplicate:w,onDelete:K}=m;let M;e[0]!==o.id?(M={id:o.id,animateLayoutChanges:Mi},e[0]=o.id,e[1]=M):M=e[1];const{attributes:k,listeners:c,setNodeRef:b,transform:E,isDragging:l}=cs(M);let T;e[2]!==E?(T=us.Transform.toString(E?{...E,x:0}:null),e[2]=E,e[3]=T):T=e[3];const i=l?0:void 0;let re;e[4]!==T||e[5]!==i?(re={transform:T,opacity:i},e[4]=T,e[5]=i,e[6]=re):re=e[6];const H=re,Q=_??void 0;let te;e[7]!==x||e[8]!==o.variant.rule||e[9]!==Q?(te=Kt(o.variant.rule,x,Q),e[7]=x,e[8]=o.variant.rule,e[9]=Q,e[10]=te):te=e[10];const d=te;let L;e[11]!==y?(L=U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),y())},e[11]=y,e[12]=L):L=e[12];const pe=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",A=u?vs:ds;let ee;e[13]!==pe||e[14]!==A?(ee=Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",pe,A),e[13]=pe,e[14]=A,e[15]=ee):ee=e[15];let D;e[16]!==p||e[17]!==d||e[18]!==o.variant.label||e[19]!==v||e[20]!==K||e[21]!==w||e[22]!==g?(D=n.jsx(Ds,{label:o.variant.label,effectiveRule:d,matchers:v,canDelete:p,onRename:g,onDuplicate:w,onDelete:K}),e[16]=p,e[17]=d,e[18]=o.variant.label,e[19]=v,e[20]=K,e[21]=w,e[22]=g,e[23]=D):D=e[23];let oe;return e[24]!==k||e[25]!==c||e[26]!==y||e[27]!==b||e[28]!==H||e[29]!==ee||e[30]!==D||e[31]!==L?(oe=n.jsx("div",{ref:b,style:H,...k,...c,onClick:y,onKeyDown:L,className:ee,children:D}),e[24]=k,e[25]=c,e[26]=y,e[27]=b,e[28]=H,e[29]=ee,e[30]=D,e[31]=L,e[32]=oe):oe=e[32],oe}function Mi(){return!1}function Li(m){const e=st.c(9),{variant:o,decofile:u,meta:p,matchers:x}=m,_=p??void 0;let v;e[0]!==u||e[1]!==_||e[2]!==o.rule?(v=Kt(o.rule,u,_),e[0]=u,e[1]=_,e[2]=o.rule,e[3]=v):v=e[3];const y=v;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ue("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",vs),e[4]=g):g=e[4];let w;return e[5]!==y||e[6]!==x||e[7]!==o.label?(w=n.jsx("div",{className:g,children:n.jsx(Ds,{label:o.label,effectiveRule:y,matchers:x,canDelete:!1,dragging:!0})}),e[5]=y,e[6]=x,e[7]=o.label,e[8]=w):w=e[8],w}function Ki(m){const e=st.c(91),{listKey:o,variants:u,activeIndex:p,decofile:x,meta:_,matchers:v,onSelect:y,onReorder:g,onRename:w,onDuplicate:K,onDelete:M,onAdd:k}=m,c=Dt();let b;e[0]!==u?(b=()=>Qn(u),e[0]=u,e[1]=b):b=e[1];const[E,l]=R.useState(b),[T,i]=R.useState(null),[re,H]=R.useState(o),[Q,te]=R.useState(u.length);let d;e[2]!==u?(d=()=>Jn(u),e[2]=u,e[3]=d):d=e[3];const[L,pe]=R.useState(d),A=R.useRef(!1),ee=Jn(u);re!==o?(H(o),te(u.length),pe(ee),l(Qn(u))):(Q!==u.length||L!==ee)&&(te(u.length),pe(ee),l(ve=>Vi(ve,u)));let D;e[4]===Symbol.for("react.memo_cache_sentinel")?(D={activationConstraint:{distance:8}},e[4]=D):D=e[4];let oe;e[5]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:ms},e[5]=oe):oe=e[5];const U=ss(Zt(rs,D),Zt(is,oe));let ye;e[6]!==E?(ye=E.map(Oi),e[6]=E,e[7]=ye):ye=e[7];const ge=ye,we=u.length>1;let G;e[8]!==E?(G=ve=>{const se=String(ve.active.id);i(E.find(me=>me.id===se)??null)},e[8]=E,e[9]=G):G=e[9];const ne=G;let Be;e[10]!==ge||e[11]!==g?(Be=ve=>{i(null);const{active:se,over:me}=ve;if(!me||se.id===me.id)return;const ie=ge.indexOf(String(se.id)),fe=ge.indexOf(String(me.id));ie===-1||fe===-1||(l(Se=>Ni(Lt([...Se],ie,fe))),A.current=!0,requestAnimationFrame(()=>{A.current=!1}),g(ie,fe))},e[10]=ge,e[11]=g,e[12]=Be):Be=e[12];const le=Be;let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{i(null)},e[13]=O):O=e[13];const Ge=O;let We,Me,xe,I,Z,Ne,Ae,ue,Ce,ke,Le,he,Ie;if(e[14]!==p||e[15]!==we||e[16]!==x||e[17]!==E||e[18]!==ge||e[19]!==le||e[20]!==ne||e[21]!==v||e[22]!==_||e[23]!==k||e[24]!==M||e[25]!==K||e[26]!==w||e[27]!==y||e[28]!==U||e[29]!==c){const ve=B=>{A.current||y(B)};Le="space-y-1 border-b p-2";let se;e[43]!==c?(se=c("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=c,e[44]=se):se=e[44];let me;e[45]!==se?(me=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:se}),e[45]=se,e[46]=me):me=e[46];let ie;e[47]!==c?(ie=c("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=c,e[48]=ie):ie=e[48];let fe;e[49]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(Sn,{size:14}),e[49]=fe):fe=e[49];let Se;e[50]!==k||e[51]!==ie?(Se=n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":ie,className:"size-6",onClick:k,children:fe})}),e[50]=k,e[51]=ie,e[52]=Se):Se=e[52];let Pe;e[53]!==c?(Pe=c("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=c,e[54]=Pe):Pe=e[54];let ae;e[55]!==Pe?(ae=n.jsx(Tt,{children:Pe}),e[55]=Pe,e[56]=ae):ae=e[56];let C;e[57]!==Se||e[58]!==ae?(C=n.jsxs(wt,{children:[Se,ae]}),e[57]=Se,e[58]=ae,e[59]=C):C=e[59],e[60]!==me||e[61]!==C?(he=n.jsxs("div",{className:"flex items-center justify-between",children:[me,C]}),e[60]=me,e[61]=C,e[62]=he):he=e[62],Me=fs,Ne=U,Ae=ps,ue=ne,Ce=le,ke=Ge,We=gs,I=ge,Z=hs,Ie="space-y-0.5",xe=E.map(B=>n.jsx(Pi,{entry:B,isActive:B.index===p,canDelete:we,decofile:x,meta:_,matchers:v,onSelect:()=>ve(B.index),onRename:()=>w(B.index),onDuplicate:()=>K(B.index),onDelete:()=>M(B.index)},B.id)),e[14]=p,e[15]=we,e[16]=x,e[17]=E,e[18]=ge,e[19]=le,e[20]=ne,e[21]=v,e[22]=_,e[23]=k,e[24]=M,e[25]=K,e[26]=w,e[27]=y,e[28]=U,e[29]=c,e[30]=We,e[31]=Me,e[32]=xe,e[33]=I,e[34]=Z,e[35]=Ne,e[36]=Ae,e[37]=ue,e[38]=Ce,e[39]=ke,e[40]=Le,e[41]=he,e[42]=Ie}else We=e[30],Me=e[31],xe=e[32],I=e[33],Z=e[34],Ne=e[35],Ae=e[36],ue=e[37],Ce=e[38],ke=e[39],Le=e[40],he=e[41],Ie=e[42];let ce;e[63]!==xe||e[64]!==Ie?(ce=n.jsx("div",{className:Ie,children:xe}),e[63]=xe,e[64]=Ie,e[65]=ce):ce=e[65];let _e;e[66]!==We||e[67]!==I||e[68]!==Z||e[69]!==ce?(_e=n.jsx(We,{items:I,strategy:Z,children:ce}),e[66]=We,e[67]=I,e[68]=Z,e[69]=ce,e[70]=_e):_e=e[70];let je;e[71]!==T||e[72]!==x||e[73]!==v||e[74]!==_?(je=T?n.jsx(Li,{variant:T.variant,decofile:x,meta:_,matchers:v}):null,e[71]=T,e[72]=x,e[73]=v,e[74]=_,e[75]=je):je=e[75];let de;e[76]!==je?(de=Xn.createPortal(n.jsx(as,{dropAnimation:os,children:je}),document.body),e[76]=je,e[77]=de):de=e[77];let q;e[78]!==Me||e[79]!==Ne||e[80]!==Ae||e[81]!==ue||e[82]!==Ce||e[83]!==ke||e[84]!==_e||e[85]!==de?(q=n.jsxs(Me,{sensors:Ne,collisionDetection:Ae,onDragStart:ue,onDragEnd:Ce,onDragCancel:ke,children:[_e,de]}),e[78]=Me,e[79]=Ne,e[80]=Ae,e[81]=ue,e[82]=Ce,e[83]=ke,e[84]=_e,e[85]=de,e[86]=q):q=e[86];let Ee;return e[87]!==Le||e[88]!==he||e[89]!==q?(Ee=n.jsxs("div",{className:Le,children:[he,q]}),e[87]=Le,e[88]=he,e[89]=q,e[90]=Ee):Ee=e[90],Ee}function Oi(m){return m.id}function Zn(m){const e=st.c(21),{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:x,globals:_,onSelect:v,onSelectGlobal:y,schema:g,formValue:w,onChange:K,formKey:M,formWrapperClassName:k,meta:c,decofile:b,onSaveReferencedBlock:E,sandbox:l}=m;let T;e[0]!==p||e[1]!==u||e[2]!==o||e[3]!==_||e[4]!==x||e[5]!==v||e[6]!==y?(T=n.jsx(Ha,{currentRt:o,currentLabel:u,currentGlobalKey:p,matchers:x,globals:_,onSelect:v,onSelectGlobal:y}),e[0]=p,e[1]=u,e[2]=o,e[3]=_,e[4]=x,e[5]=v,e[6]=y,e[7]=T):T=e[7];let i;e[8]!==b||e[9]!==M||e[10]!==w||e[11]!==k||e[12]!==c||e[13]!==K||e[14]!==E||e[15]!==l||e[16]!==g?(i=g&&w&&n.jsx("div",{className:k,children:n.jsx(Ua,{schema:g,value:w,onChange:K,meta:c,decofile:b,onSaveReferencedBlock:E,sandbox:l},M)}),e[8]=b,e[9]=M,e[10]=w,e[11]=k,e[12]=c,e[13]=K,e[14]=E,e[15]=l,e[16]=g,e[17]=i):i=e[17];let re;return e[18]!==T||e[19]!==i?(re=n.jsxs(n.Fragment,{children:[T,i]}),e[18]=T,e[19]=i,e[20]=re):re=e[20],re}function Bc({orgSlug:m,virtualMcpId:e,branch:o,previewReady:u=!0,previewUrl:p,currentPath:x,activePageBlockKey:_=null,activeGlobalBlockKey:v=null,externalSelection:y,onSaved:g,initialEditSeo:w=!1,onExitSeo:K,onViewJsonFile:M,onVariantPreviewOverride:k}){const c=Dt(),b=Ma()?.taskId??null,E=u?{orgSlug:m,virtualMcpId:e,branch:o,threadId:b,previewUrl:p}:null,{data:l,isLoading:T}=Ga(E),{data:i,isLoading:re}=qa(E),H=Wa(),Q=H?.entity?.id===e?H.entity.metadata?.siteSlug??null:null,te=li({virtualMcpId:e,sandboxUrl:p}),[d,L]=R.useState(null),[pe,A]=R.useState(null),[ee,D]=R.useState(null),[oe,U]=R.useState(0),[ye,ge]=R.useState(void 0),[we,G]=R.useState(null),[ne,Be]=R.useState(null),[le,O]=R.useState([]),Ge=R.useRef(null),[We,Me]=R.useState(le.length);We!==le.length&&(Me(le.length),requestAnimationFrame(()=>{Ge.current&&(Ge.current.scrollTop=0)}));const[xe,I]=R.useState(0),[Z,Ne]=R.useState(null),[Ae,ue]=R.useState(null),[Ce,ke]=R.useState(null),[Le,he]=R.useState(!0),[Ie,ce]=R.useState(!1),[_e,je]=R.useState(!1),de=R.useRef(null),[q,Ee]=R.useState(w),[ve,se]=R.useState(w);w&&!ve&&(se(!0),Ee(!0),L(null),A(null),D(null),O([])),!w&&ve&&se(!1);const[me,ie]=R.useState(null),[fe,Se]=R.useState(void 0),[Pe,ae]=R.useState([]),[C,B]=R.useState(0),[N,Ke]=R.useState(0),[ct,Te]=R.useState(null),[Ye,Fe]=R.useState(null),[bn,yn]=R.useState(null),Vs=Ca(),Ns=`${m}/${e}/${o}`,Xt=Ya({orgSlug:m,virtualMcpId:e,branch:o}),[As,Cs]=R.useState(x),[Ps,Ms]=R.useState(_),[Ls,Ks]=R.useState(v);(As!==x||Ps!==_||Ls!==v)&&(queueMicrotask(()=>Xt.flush()),Cs(x),Ms(_),Ks(v),L(null),A(null),D(null),U(0),G(null),Be(null),Ke(0),Te(null),Fe(null),O([]),I(t=>t+1),Ee(!1),ie(null),Se(void 0),ae([]),B(t=>t+1));const De=Ja({orgSlug:m,virtualMcpId:e,branch:o}),Ot=Eo((t,s)=>{De.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:a=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),en=Qa({orgSlug:m,virtualMcpId:e,branch:o}),[Vt,Bt]=R.useState(!1),ze=R.useRef(null),at=R.useRef(null),ot=R.useRef(null),tn=R.useRef({}),Xe=R.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||T||re)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(es,{className:"size-5 text-muted-foreground"})});if(!l||!i)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Os=Za(l),Ve=!!v,Je=Ve?null:Xa(Os,x,_),j=Ve?v:Je?.key??null,nn=Ve&&v?l[v]:void 0,xn=Ve&&v&&nn?eo(v,nn):Ve&&v?v:"",It=!Ve&&j&&l[j]?l[j]:null,sn=q&&l&&i&&j&&Je?On(l,{kind:"page",pageKey:j,pageName:String(Je.name??""),path:String(Je.path??"")},i):null,Bs=q?It?.seo:void 0,an=fe!==void 0?fe:Bs,Is=q?to(an):void 0,Fs=sn?.seoTypeOptions??[],$s=q&&i?no(i):"",_n=me??Is??{},on=q&&sn?ai(_n,sn):null,zs=q&&on&&so(an)?qt(on,i):null,Hs=q?ao(l,i)?.seoData:void 0,qe=Ve?[{label:"Default",sections:[{__resolveType:v}]}]:oo(It?.sections,l??{}),Ft=qe.length>1,$e=Math.min(oe,qe.length-1),ut=qe[$e],W=ut?.sections??[],He=Wt(W,l),jn=!Ve&&io(It?.sections);if(Ve&&v&&bn!==v){yn(v);const t=W[0],s=He[0];if(t&&s){L(0),Ke(0),O([]);const a=bt(t,s,l);a&&(A(a.data),D(a.resolveType),Fe(null),Te(null))}}!Ve&&bn!==null&&yn(null),Xe.current={rawSections:W,parsedSections:He,decofile:l??{},activePageKey:j,pageVariants:qe,variantIndex:$e,sectionVariantIndex:N,selectedSectionIndex:d};const Us=()=>({multivariate:jn,index:$e,variants:qe.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!k)return;if(!j||!jn||t.length<=1){k(null);return}const a=qn(j,{multivariate:!0,index:s,variants:t},l,i);k(a.length>0?a:null)},xt=(t,s,a)=>{if(!k)return;if(!j){k(null);return}const r=Us(),f=qn(j,r,l,i);if(!t||s<0){k(f.length>0?f:null);return}const S=Do({pageKey:j,page:r,sectionIndex:s,sectionLazy:He[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:l,meta:i}),h=[...f,...S];k(h.length>0?h:null)},dt=(t,s,a,r=d??-1,f=!1)=>{const S=nt(t,s);if(!S){A(null),D(null),Fe(null),Te(null),f&&xt(null,r,a);return}const V=Bn(S,ht)[a];if(!V){A(null),D(null),Fe(null),Te(null),f&&xt(null,r,a);return}const X=ho(V.value,l);A(X?.data??null),D(X?.resolveType??null);const{resolveType:P,formValue:F}=Ct(V.rule,l,i??void 0);Fe(P),Te(F),f&&xt(S,r,a)},Nt=y?.index;if(y!==void 0&&(y?.seq??null)!==ye&&(ge(y?.seq??null),typeof Nt=="number")){const t=W[Nt],s=He[Nt];if(t&&s)if(L(Nt),Ke(0),O([]),I(a=>a+1),s.isMultivariate)dt(t,s,0,Nt);else{const a=bt(t,s,l);a?(A(a.data),D(a.resolveType)):(A(null),D(null)),Fe(null),Te(null)}}const $t={orgSlug:m,virtualMcpId:e,branch:o,threadId:b,previewUrl:p??void 0,siteSlug:Q},rn=ee&&i?qt(ee,i):null,Qe=(t,s)=>{if(!j)return;ze.current&&(clearTimeout(ze.current),ze.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null);const a=Mt(l,j,t,$e,qe);De.mutate({blockKey:j,data:a},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:r=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},_t=()=>{L(null),A(null),D(null),Ke(0),Te(null),Fe(null),O([]),I(t=>t+1)},Gs=(t,s)=>{ze.current&&clearTimeout(ze.current);const a=Xe.current.sectionVariantIndex;ze.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:V,variantIndex:X}=Xe.current,P=r[s];if(!P)return;const F=f[s];if(!F)return;if(F.isSavedBlock){const z=No(P,F);if(!z)return;De.mutate({blockKey:z,data:t},{onSuccess:()=>g?.(),onError:Y=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}if(!h)return;const $={...S[h]},Re=[...r];if(F.isMultivariate){const z=nt(P,F);if(!z||!h)return;const Y=Ao(z,a,t);Re[s]=yt(P,F,Y)}else if(F.isHidden){const z=ls(P.__resolveType),Y=z?{...P.section}:{...P},Oe=Array.isArray(Y.variants)?[...Y.variants]:[];Oe[0]&&(Oe[0]={...Oe[0],value:t}),Y.variants=Oe,z?Re[s]={...P,section:Y}:Re[s]=Y}else F.isLazy?Re[s]={...P,section:t}:Re[s]=t;if(V.length>1){const z=$.sections,Y=[...z?.variants??[]];Y[X]&&(Y[X]={...Y[X],value:Re}),$.sections={...z,variants:Y}}else $.sections=Re;De.mutate({blockKey:h,data:$},{onSuccess:()=>g?.(),onError:z=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:z.message}))})},gn)},qs=t=>{L(t),Ke(0),O([]),I(f=>f+1);const s=W[t],a=He[t];if(!s||!a)return;if(a.isMultivariate){dt(s,a,0,t);return}const r=bt(s,a,l);if(!r){A(null),D(null),Fe(null),Te(null),xt(null,t,0);return}A(r.data),D(r.resolveType),Fe(null),Te(null),xt(null,t,0)},Rn=t=>{const s=t;A(s),d!==null&&Gs(s,d)},ln=t=>{if(!j||!l||!i||!Je)return;const s={kind:"page",pageKey:j,pageName:String(Je.name??""),path:String(Je.path??"")},a=On(l,s,i);a&&Xt.save(j,()=>{const r=Vs.getQueryData(Pa.decofile(Ns))?.[j];if(!r||typeof r!="object"||r===null||Array.isArray(r))return null;const f={...r,...tn.current};return tn.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?ii(s,a,f,t.inner):f})},Ws=(t,s)=>{j&&(tn.current[t]=s,ln())},Ys=(t,s)=>{if(!j)return;const a=Lt([...W],t,s);d!==null&&(d===t?L(s):t<d&&s>=d?L(d-1):t>d&&s<=d&&L(d+1)),Qe(a)},Js=t=>{if(!j)return;const s=W.filter((a,r)=>r!==t);d===t?_t():d!==null&&d>t&&L(d-1),Qe(s)},Qs=t=>{if(!j)return;const s=W[t];if(!s)return;const a=[...W];a.splice(t+1,0,To(s)),d!==null&&d>t&&L(d+1),Qe(a)},Zs=t=>{if(!j)return;const s=W[t],a=He[t];if(!s||!a)return;const r=a.isHidden?wo(s):ko(s);if(!r)return;const f=[...W];f[t]=r,d===t&&_t(),Qe(f)},Xs=t=>{if(!j)return;const s=W[t],a=He[t];if(!s||!a||a.isMultivariate)return;const r=Ro(s);if(!r)return;const f=[...W];f[t]=r,d===t&&_t(),Qe(f)},ea=t=>{if(!j)return;const s=W[t],a=He[t];if(!s||!a?.isSavedBlock)return;const r=bt(s,a,l);if(!r?.data)return;const{name:f,...S}=r.data,h=[...W];a.isLazy?h[t]={...s,section:S}:h[t]=S,d===t&&_t(),Qe(h)},ta=t=>{if(!j)return;const s=[...W,{__resolveType:t.resolveType}],a=s.length-1;Qe(s,{onSuccess:()=>{ce(!1),L(a),Ke(0),O([]),I(h=>h+1);const r=s[a],f=Wt(s,l)[a];if(!r||!f)return;if(f.isMultivariate){dt(r,f,0);return}const S=bt(r,f,l);if(!S){A(null),D(null),Fe(null),Te(null);return}A(S.data),D(S.resolveType),Fe(null),Te(null)}})},wn=t=>{de.current=t.append,ce(!0)},na=t=>{const s=de.current;if(!s){ta(t);return}s({__resolveType:t.resolveType}),ce(!1),de.current=null},sa=t=>{if(d===null)return;const s=W[d],a=He[d];!s||!a?.isMultivariate||(Ke(t),O([]),I(r=>r+1),dt(s,a,t,d,!0))},aa=t=>{if(d===null||!j)return;const s=W[d],a=He[d];if(!s||!a?.isMultivariate)return;const r=nt(s,a);if(!r)return;const f=_o(r,t);if(!f){J.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const S=[...W];S[d]=yt(s,a,f);const h=f.variants;let V=N;t===N?V=Math.min(t,h.length-1):t<N&&(V=N-1),Ke(V),O([]),I(X=>X+1),dt(S[d],a,V),Qe(S)},oa=t=>{if(d===null||!j)return;const s=W[d],a=He[d];if(!s||!a?.isMultivariate)return;const r=nt(s,a);if(!r)return;const f=jo(r,t),S=[...W];S[d]=yt(s,a,f);const h=t+1;Ke(h),O([]),I(V=>V+1),dt(S[d],a,h),Qe(S)},ia=(t,s)=>{if(d===null||!j||t===s)return;const a=W[d],r=He[d];if(!a||!r?.isMultivariate)return;const f=nt(a,r);if(!f)return;const S=yo(f,t,s),h=[...W];h[d]=yt(a,r,S);let V=N;N===t?V=s:t<N&&s>=N?V=N-1:t>N&&s<=N&&(V=N+1),Ke(V),dt(h[d],r,V),Qe(h)},cn=t=>{const s=t??d;if(s===null||!j)return;const a=W[s],r=He[s];if(!a||!r)return;const f=vo(a,r);if(!f){J.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const S=[...W];S[s]=f.section;const h=Wt(S,l)[s];if(!h?.isMultivariate){J.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}L(s),Ke(f.newVariantIndex),O([]),I(V=>V+1),dt(f.section,h,f.newVariantIndex,s),Qe(S)},ra=()=>{if(d===null||!j)return;const t=W[d],s=He[d];if(!t||!s?.isMultivariate)return;const a=nt(t,s);if(!a)return;const r=xo(t,s,a);if(!r){J.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const f=[...W];f[d]=r;const S=Wt(f,l)[d];if(!S)return;Ke(0),Fe(null),Te(null),O([]),I(V=>V+1);const h=bt(r,S,l);h?(A(h.data),D(h.resolveType)):(A(null),D(null)),xt(null,d,0),Qe(f)},la=async t=>{if(Z===null||!j)return;const s=pn(t,l);if(s){J.error(s);return}const a=W[Z],r=He[Z];if(!a||!r)return;const f=bt(a,r,l);if(!f){J.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const S={...f.data,name:t};try{await De.mutateAsync({blockKey:t,data:S});const h=[...W];h[Z]={__resolveType:t},await De.mutateAsync({blockKey:j,data:Mt(l,j,h,$e,qe)}),d===Z&&_t(),Ne(null),J.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(h){J.error(h instanceof Error?h.message:c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=ut?.rule;if(Ft&&d===null&&ne===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,l??{},i??void 0);Be(t),G(s)}const zt=i?ro(i):[],Tn=i&&l?lo(i,l):[],ca=!Ve&&!!(te&&i&&l),ua=ne&&i?qt(ne,i):null,jt=()=>{at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null)},At=async(t,s)=>{if(!(Vo(s,t,i)>0))try{await en.mutateAsync({blockKey:t})}catch(a){J.error(a instanceof Error?a.message:c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Dn=t=>{at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:r}=Xe.current;if(!s)return;const f={...a[s]},S={...f.sections},h=[...S.variants??[]],V=h[r],X=V?.rule;if(Et(X,a,i)){const P=X?.__resolveType??"",F=a[P],$=typeof F?.name=="string"?F.name:P,{__resolveType:Re,...z}=t;De.mutate({blockKey:P,data:Rt(Re??"",z,$)},{onSuccess:()=>g?.(),onError:Y=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}V&&(h[r]={...V,rule:t}),f.sections={...S,variants:h},De.mutate({blockKey:s,data:f},{onSuccess:()=>g?.(),onError:P=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:P.message}))})},gn)},da=t=>{Be(t);const s=t?zn(t,i):{__resolveType:Hn};G(t?s:{}),Dn(s)},ma=t=>{const s=t;G(s);const a=ne?{__resolveType:ne,...s}:{...s};Dn(a)},fa=async t=>{jt();const{activePageKey:s,decofile:a,variantIndex:r}=Xe.current;if(!s)return;const f=a[s],S=f?.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],X=V[r];if(!X)return;const P=Pt(X.rule,a,i),F=Jt(t);V[r]={...X,rule:F};const $={...a,[s]:{...f,sections:{...h,variants:V}}},{resolveType:Re,formValue:z}=Ct(F,$,i??void 0);Be(Re),G(z);try{await De.mutateAsync({blockKey:s,data:$[s]}),P&&P!==t&&await At(P,$),g?.()}catch(Y){J.error(Y instanceof Error?Y.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{ot.current&&clearTimeout(ot.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=Xe.current;s!==null&&(ot.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:V,variantIndex:X}=Xe.current;if(!h)return;const P=r[s],F=f[s];if(!P||!F?.isMultivariate)return;const $=nt(P,F);if(!$)return;const z=($.variants??[])[a]?.rule;if(Et(z,S,i)){const be=z?.__resolveType??"",Ze=S[be],rt=typeof Ze?.name=="string"?Ze.name:be,{__resolveType:pt,...lt}=t;De.mutate({blockKey:be,data:Rt(pt??"",lt,rt)},{onSuccess:()=>g?.(),onError:gt=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const Y=$n($,a,t),Oe=[...r];Oe[s]=yt(P,F,Y);const et=Mt(S,h,Oe,X,V);De.mutate({blockKey:h,data:et},{onSuccess:()=>g?.(),onError:be=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:be.message}))})},gn))},pa=t=>{Fe(t);const s=t?zn(t,i):{__resolveType:Hn};Te(t?s:{}),Vn(s)},ga=t=>{const s=t;Te(s);const a=Ye?{__resolveType:Ye,...s}:{...s};Vn(a)},ha=async t=>{jt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:V,variantIndex:X}=Xe.current;if(s===null||!h)return;const P=r[s],F=f[s];if(!P||!F?.isMultivariate)return;const $=nt(P,F);if(!$)return;const Re=$.variants??[],z=Pt(Re[a]?.rule,S,i),Y=Jt(t),Oe=$n($,a,Y),et=[...r];et[s]=yt(P,F,Oe);const be=Mt(S,h,et,X,V),Ze={...S,[h]:be},{resolveType:rt,formValue:pt}=Ct(Y,Ze,i??void 0);Fe(rt),Te(pt);try{await De.mutateAsync({blockKey:h,data:be}),z&&z!==t&&await At(z,Ze),g?.()}catch(lt){J.error(lt instanceof Error?lt.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ve&&!Je)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:x})});if(Ve&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const mt=d!==null?He[d]??null:null,Nn=d!==null?W[d]:null,An=Nn&&mt?.isMultivariate?nt(Nn,mt):null,St=An?Bn(An,ht):[],un=Math.min(N,Math.max(St.length-1,0)),Ht=St[un]??null,ft=mt?.isMultivariate===!0,Cn=d!==null&&mt!==null,Ut=Cn&&(ft||!!(rn&&pe)),va=Ut&&!Ve&&mt?.isSavedBlock===!0,it=Ve||va,Sa=Ve?xn:mt?.label??"",ba=Ye&&i?qt(Ye,i):null,dn=Ut&&(!Ve||le.length>0)?Ve?[xn,...le]:[Je.name,mt.label,...ft&&Ht?[Ht.label]:[],...le]:[],ya=q&&Je?[Je.name,"SEO",...Pe]:[],Gt=q?ya:it?dn.length>0?dn:[Sa]:dn,xa=!q&&!Ve&&ft&&le.length===0,Pn=()=>{if(!j)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const t=l[j],s=So(t.sections,W);if(!s)return;const a=bo(s);De.mutate({blockKey:j,data:{...t,sections:s}},{onSuccess:()=>{U(a),L(null),A(null),D(null),O([]),G(null),Be(null)},onError:r=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},mn=(t,s,a)=>{if(!j)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const r=l[j],f=r.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const S=f;if(!Array.isArray(S.variants))return;const h=t([...S.variants]);if(!h)return;const V=Co(S,h),X={...l,[j]:{...r,sections:V}};De.mutate({blockKey:j,data:X[j]},{onSuccess:()=>{s?.(),a&&At(a,X)},onError:P=>J.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:P.message}))})},_a=t=>{ue(null),U(t),L(null),A(null),D(null),O([]);const s=qe[t]?.rule,{resolveType:a,formValue:r}=Ct(s,l??{},i??void 0);Be(a),G(r),En(qe.map(f=>({rule:f.rule})),t)},ja=(t,s)=>{if(t===s)return;let a=$e;$e===t?a=s:t<$e&&s>=$e?a=$e-1:t>$e&&s<=$e&&(a=$e+1),U(a);const r=Lt(qe.map(f=>({rule:f.rule})),t,s);En(r,a),mn(f=>Lt(f,t,s))},Ea=t=>{const s=qe[t]?.rule,a=Pt(s,l??{},i??void 0);mn(r=>r.length<=1?null:(r.splice(t,1),r),()=>{qe.length-1===1?U(0):t<$e?U($e-1):t===$e&&U(Math.max(0,t-1)),L(null),A(null),D(null),O([]),G(null),Be(null)},a)},Ra=t=>{mn(s=>Po(s,t),()=>{U(t+1),L(null),A(null),D(null),O([]),G(null),Be(null)})},wa=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const a=Xe.current.activePageKey,r=Xe.current.decofile;if(!a)return;const f=r[a],S=f.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const h=S;if(!Array.isArray(h.variants))return;const V=[...h.variants],X=V[t];if(!X?.rule||typeof X.rule!="object"){J.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const P=X.rule,F=s.trim();Bt(!0);try{if(!F){if(!Et(P,r,i)){ue(null);return}const et=P.__resolveType??"";V[t]={...X,rule:Un(P,r,i)};const be={...r,[a]:{...f,sections:{...h,variants:V}}};await De.mutateAsync({blockKey:a,data:be[a]}),await At(et,be),ue(null),g?.();return}const $=Gn(P,r,i);if(!$){J.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await De.mutateAsync({blockKey:$.blockKey,data:Rt($.resolveType,$.data,F)}),ue(null),g?.();return}const Re=fn(F),z=pn(Re,r);if(z){J.error(z);return}const Y=Rt($.resolveType,$.data,F);let Oe=null;try{await De.mutateAsync({blockKey:Re,data:Y}),Oe=Re,V[t]={...X,rule:Jt(Re)},await De.mutateAsync({blockKey:a,data:{...f,sections:{...h,variants:V}}}),Oe=null}catch(et){throw Oe&&await en.mutateAsync({blockKey:Oe}).catch(()=>{}),et}ue(null),J.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:F})),g?.()}catch($){J.error($ instanceof Error?$.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Bt(!1)}},ka=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const{selectedSectionIndex:a,rawSections:r,parsedSections:f,decofile:S,activePageKey:h,pageVariants:V,variantIndex:X}=Xe.current;if(a===null||!h)return;const P=r[a],F=f[a];if(!P||!F?.isMultivariate)return;const $=nt(P,F);if(!$)return;const Re=$.variants??[],z=Re[t];if(!z?.rule||typeof z.rule!="object"){J.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const Y=z.rule,Oe=s.trim();Bt(!0);const et=async be=>{const Ze={...$,variants:be},rt=[...r];rt[a]=yt(P,F,Ze);const pt=Mt(S,h,rt,X,V);return await De.mutateAsync({blockKey:h,data:pt}),{...S,[h]:pt}};try{if(!Oe){if(!Et(Y,S,i)){ke(null);return}const gt=Y.__resolveType??"",Kn=[...Re];Kn[t]={...z,rule:Un(Y,S,i)};const Aa=await et(Kn);await At(gt,Aa),ke(null),g?.();return}const be=Gn(Y,S,i);if(!be){J.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(be.blockKey){await De.mutateAsync({blockKey:be.blockKey,data:Rt(be.resolveType,be.data,Oe)}),ke(null),g?.();return}const Ze=fn(Oe),rt=pn(Ze,S);if(rt){J.error(rt);return}const pt=Rt(be.resolveType,be.data,Oe);let lt=null;try{await De.mutateAsync({blockKey:Ze,data:pt}),lt=Ze;const gt=[...Re];gt[t]={...z,rule:Jt(Ze)},await et(gt),lt=null}catch(gt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),gt}ke(null),J.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Oe})),g?.()}catch(be){J.error(be instanceof Error?be.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Bt(!1)}},Mn=()=>{_t()},Ta=t=>{ie(t),ln({inner:t})},Da=t=>{Se(t),ln({raw:t})},Va=()=>{ie(null),ae([])},Na=()=>B(t=>t+1),Ln=t=>{if(q){if(t===0){Xt.flush(),Ee(!1),ie(null),Se(void 0),ae([]),B(a=>a+1),K?.();return}if(t===1){ae([]),B(a=>a+1);return}ae(Pe.slice(0,t-1)),B(a=>a+1);return}if(Ve){O(le.slice(0,t)),I(a=>a+1);return}if(t===0){Mn();return}if(t===1){O([]),I(a=>a+1);return}if(ft&&t===2){O([]),I(a=>a+1);return}const s=ft?2:1;O(le.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:it||Ut||q?n.jsxs("div",{className:Ue("border-b px-3 py-2.5",it&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[Gt.length>1&&n.jsx("button",{type:"button",onClick:()=>Ln(Mo(Gt.length,{isMultivariateSectionTop:xa})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:Ue("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",it?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Io,{className:"size-4"})}),!Ve&&Ft&&ut&&n.jsxs("button",{type:"button",onClick:Mn,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Ue("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",co),children:[n.jsx(Ts,{rule:Kt(ut.rule,l??{},i??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.label})]}),n.jsx("nav",{"aria-label":c("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const a=s===Gt.length-1,r=uo(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(zo,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Ln(s),title:r,className:Ue("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",a?it?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":it?"text-foreground/80":"text-muted-foreground",it?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:r})]},`${r}-${s}`)})}),it&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ho,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!ft&&!mt?.isHidden&&j&&n.jsx(In,{onClick:()=>cn()})]}),it&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(mo,{pageKey:j,initialName:Je.name,initialPath:Je.path,onFieldChange:Ws})}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Fo,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>M&&j?M():je(!0),children:n.jsx($o,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(In,{onClick:Pn})]})}),q?n.jsx(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:It&&j?n.jsx(oi,{rawSeo:an,innerSeo:_n,defaultResolveType:$s,seoSchema:zs,activeResolveType:on,seoTypeOptions:Fs,formResetKey:C,siteDefaultSeo:Hs,onBreadcrumbChange:ae,onPersistRaw:Da,onInnerChange:Ta,onClearForm:Va,onBumpFormKey:Na}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:Ge,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&St.length>0&&le.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(fo,{listKey:`${j??""}:${d??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:sa,onRename:ke,onDuplicate:oa,onDelete:aa,onRemoveAll:ra,onReorder:ia,onAdd:()=>cn()}),ft&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Zn,{currentRt:Ye??"",currentLabel:Yt(Ht?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(Ht?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:pa,onSelectGlobal:ha,schema:ba,formValue:ct,onChange:ga,formKey:`${d??"none"}:${un}:${Ye??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:l,onSaveReferencedBlock:Ot,sandbox:$t})]})]}),n.jsx(Fn,{activeSchema:rn,formValue:pe,formResetKey:xe,onFormChange:Rn,onBreadcrumbChange:O,breadcrumbPath:le,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:i,decofile:l,onSaveReferencedBlock:Ot,sandbox:$t,previewBaseUrl:te,onRequestAddSection:wn})]},"editor-section-form"):Ve?n.jsx(Qt,{viewportRef:Ge,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Fn,{activeSchema:rn,formValue:pe,formResetKey:xe,onFormChange:Rn,onBreadcrumbChange:O,breadcrumbPath:le,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:i,decofile:l,onSaveReferencedBlock:Ot,sandbox:$t,previewBaseUrl:te,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ft&&j&&n.jsx(Ki,{listKey:j,variants:qe,activeIndex:$e,decofile:l??{},meta:i,matchers:zt,onSelect:_a,onReorder:ja,onRename:ue,onDuplicate:Ra,onDelete:Ea,onAdd:Pn}),Ft&&ne!==null&&n.jsxs("div",{className:Ue("px-3 border-b",Le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>he(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:c("sectionsEditor.sectionsEditor.variantRule")}),Le?n.jsx(Lo,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Ko,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),Le&&n.jsx("div",{className:Ue("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Zn,{currentRt:ne,currentLabel:Yt(ut?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(ut?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:da,onSelectGlobal:fa,schema:ua,formValue:we,onChange:ma,formKey:`${$e}:${ne??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:l,onSaveReferencedBlock:Ot,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Ti,{listKey:`${j??""}-${$e}`,rawSections:W,sections:He,meta:i,selectedIndex:d,onSelect:qs,onReorder:Ys,onDelete:Js,onDuplicate:Qs,onMakeReusable:Ne,onToggleHidden:Zs,onToggleLazy:Xs,onAddVariant:cn,onDetach:ea,onAddSection:()=>ce(!0),canAddSection:ca})})]},"editor-section-list"),n.jsx(po,{open:Z!==null,onOpenChange:t=>{t||Ne(null)},defaultBlockId:Z!==null?fn(He[Z]?.label??""):"",isPending:De.isPending,onSubmit:la}),te&&n.jsx(ci,{open:Ie,onOpenChange:t=>{ce(t),t||(de.current=null)},meta:i,decofile:l,previewBaseUrl:te,onSelect:na}),_e&&j&&l&&n.jsx(go,{open:_e,onOpenChange:je,pageKey:j,decofile:l}),Ae!==null&&n.jsx(Yn,{open:!0,initialName:Et(qe[Ae]?.rule,l??{},i??void 0)?Yt(qe[Ae]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Kt(qe[Ae]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await wa(Ae,t)},onOpenChange:t=>{!t&&!Vt&&ue(null)}}),Ce!==null&&n.jsx(Yn,{open:!0,initialName:Et(St[Ce]?.rule,l??{},i??void 0)?Yt(St[Ce]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Kt(St[Ce]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await ka(Ce,t)},onOpenChange:t=>{!t&&!Vt&&ke(null)}})]})}export{Bc as SectionsEditor};
@@ -1 +0,0 @@
1
- import{c as n,I as a,j as o,W as c,l as d,Y as f,bX as x,O as h}from"./index-iMHThdI5.js";import{h as u}from"./settings-sidebar-CYw8r_vv.js";import{T as p}from"./toolbar-BYn6hWQJ.js";import{S as j,M as b}from"./shell-controls-kOkRLWtG.js";import{u as S}from"./use-status-sounds-yJcdYzkO.js";import"./ChevronUp-BWJ43Ad_.js";import"./ChevronRight-C1PKtWq_.js";import"./TrendUp01-gaB_ebZy.js";import"./toolbar-icon-button-V4uX1cT4.js";import"./Check-CA6oOwnk.js";import"./ChevronSelectorVertical-uLPnhvHf.js";import"./Plus-DZ-r7ICl.js";import"./command-CeKckObX.js";import"./index-B3BkyrSZ.js";import"./dialog-CCRr4CCv.js";import"./SearchMd-BpXAT-eZ.js";import"./popover-BYvt0bxB.js";import"./agent-icon-C7HwxMy2.js";import"./AlertCircle-DZjE_Y0H.js";import"./ThumbsUp-BFZZTKVU.js";import"./Tool01-Cz6q9HPW.js";import"./ArrowUp-UBHjzAp-.js";import"./ArrowLeft-BsR-6m6j.js";import"./Tool02-Dh-KcCDo.js";import"./XCircle-DQV3a8ui.js";import"./ZoomOut-C3_0q9Na.js";import"./Users03-DOh7pHdk.js";import"./CheckCircle-BaphLiUh.js";import"./DotsVertical-CuAwCaPW.js";import"./UserSquare-DXupINNG.js";import"./Copy01-DHhdbM_J.js";import"./CreditCard01-BewJRmPb.js";import"./Download01-R47mE7bD.js";import"./Settings02-CkPf5bSQ.js";import"./Eye-D3bCBJMo.js";import"./Share07-P3qF7VX0.js";import"./GitBranch01-CjfnHX9l.js";import"./Globe01-DeCmIrD5.js";import"./XClose-Dciq0-47.js";import"./HardDrive-BpRcIm2Z.js";import"./Image01-CStOAxG7.js";import"./Key01-ICcTBF9U.js";import"./Link01-CLzBJa_Z.js";import"./LinkExternal01-w2j8lCTU.js";import"./LockUnlocked01-CbuTs0EA.js";import"./Monitor01-CMjB6a1I.js";import"./Sun-ZKlmnxLK.js";import"./Package-BOH9DZQ0.js";import"./Palette-CVvoWFYM.js";import"./Play-Bn8_HZzx.js";import"./Shield01-BhVJtpaL.js";import"./Stars01-Dxt-GRKF.js";import"./Trash01-BDaDkc_-.js";import"./Upload01-BaOVc9nV.js";import"./User01-CvjutW7d.js";import"./Users01-BYJLxdvv.js";import"./Zap-BeDIMc43.js";import"./create-organization-dialog-DUT9TDnz.js";import"./alert-dialog-1uO7Q1_D.js";import"./form-CJy6gOK9.js";import"./label-DRWhO--x.js";import"./input-CbnXHcO6.js";import"./use-destination-route-BjLqPQzR.js";import"./use-project-scope-BJGCHDw2.js";import"./constants-DNuUCxmW.js";import"./use-virtual-mcp-DfwA3vbI.js";import"./use-mcp-client-Cb-7Tc46.js";import"./auth-CyxtW7VU.js";import"./github-repo-BpKUwJal.js";import"./use-join-requests-BKm-Euhh.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-Du05HBL-.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./task-board-2M_cICbv.js";import"./schema-CalSBGUA.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:l}=c();S(l.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function At(){const t=n.c(10),r=a();let l;t[0]!==r?(l=r&&o.jsxs(p.Header,{children:[o.jsx(p.LeftColumn,{children:o.jsx(j,{})}),o.jsx(p.CenterSlot,{}),o.jsx(p.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=l):l=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==l?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[l,e]}),t[3]=l,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(p.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{At as default};
@@ -1 +0,0 @@
1
- import{G as xe,c as v,l as I,j as t,b as w,r as z,B as ge,a as q,t as A,w as Pe,bY as Oe,m as Ie,K as Te,bZ as Ae,W as ie,_ as ae,d as Re,s as qe,a1 as he,a2 as be,a4 as je,o as F,b0 as ve,L as Fe,a6 as ue,a5 as ne,b_ as Le,b$ as He,z as Ee,c0 as Me,f as De,k as Be,c1 as Ue,c2 as Ve,c3 as Ge,a0 as Ke}from"./index-iMHThdI5.js";import{t as We}from"./ChevronUp-BWJ43Ad_.js";import{i as Je}from"./ChevronRight-C1PKtWq_.js";import{h as Ye}from"./TrendUp01-gaB_ebZy.js";import{I as Qe,T as ke}from"./toolbar-icon-button-V4uX1cT4.js";import{i as G}from"./Check-CA6oOwnk.js";import{i as Ze}from"./ChevronSelectorVertical-uLPnhvHf.js";import{s as Xe}from"./Plus-DZ-r7ICl.js";import{c as me,e as te,d as K,b as es,C as ss,a as ts}from"./command-CeKckObX.js";import{a as as,b as ns,P as rs}from"./popover-BYvt0bxB.js";import{A as oe,e as is,d as os,aJ as ls,aK as cs}from"./agent-icon-C7HwxMy2.js";import{C as ds}from"./create-organization-dialog-DUT9TDnz.js";import{s as gs}from"./XClose-Dciq0-47.js";import{u as us}from"./use-destination-route-BjLqPQzR.js";import{u as Se,L as J}from"./use-project-scope-BJGCHDw2.js";import{d as ms}from"./use-virtual-mcp-DfwA3vbI.js";import{i as fs}from"./ArrowLeft-BsR-6m6j.js";import{t as ps,b as fe}from"./Users03-DOh7pHdk.js";import{i as xs}from"./CreditCard01-BewJRmPb.js";import{i as hs}from"./HardDrive-BpRcIm2Z.js";import{i as bs}from"./Key01-ICcTBF9U.js";import{n as js}from"./LinkExternal01-w2j8lCTU.js";import{t as vs}from"./Stars01-Dxt-GRKF.js";import{s as ks}from"./User01-CvjutW7d.js";import{i as Ss}from"./Zap-BeDIMc43.js";import{u as ys}from"./use-join-requests-BKm-Euhh.js";function ye(){const{state:a,isMobile:e}=xe();return a==="collapsed"&&!e}function Ns(a){let e=0;for(let d=0;d<a.length;d++)e=a.charCodeAt(d)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function le(a){const e=v.c(13),{org:s,size:d}=a,i=d===void 0?"sm":d,n=i==="xs"?"size-5":"size-6",r=i==="xs"?"text-[9px]":"text-xs";let o;e[0]!==n?(o=I(n,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=n,e[1]=o):o=e[1];let l;e[2]!==s.logo||e[3]!==s.name?(l=s.logo?void 0:Ns(s.name),e[2]=s.logo,e[3]=s.name,e[4]=l):l=e[4];let c;e[5]!==s.logo||e[6]!==s.name||e[7]!==r?(c=s.logo?t.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):t.jsx("span",{className:I("font-semibold leading-none",r),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=r,e[8]=c):c=e[8];let g;return e[9]!==o||e[10]!==l||e[11]!==c?(g=t.jsx("div",{className:o,style:l,children:c}),e[9]=o,e[10]=l,e[11]=c,e[12]=g):g=e[12],g}function $s({invitation:a,onChanged:e}){const s=w(),[d,i]=z.useState(!1),n=a.organizationName??s("header.orgSwitcher.unknownOrganization"),r=async()=>{i(!0);try{const c=await q.organization.acceptInvitation({invitationId:a.id});if(c.error){A.error(c.error.message),i(!1);return}}catch{A.error(s("header.orgSwitcher.failedToAcceptInvitation")),i(!1);return}A.success(s("header.orgSwitcher.joined",{name:n})),Pe();let l;try{l=(await q.organization.getFullOrganization({query:{organizationId:a.organizationId}}))?.data?.slug}catch{}window.location.href=l?`/${l}`:"/"},o=async()=>{i(!0);try{const l=await q.organization.rejectInvitation({invitationId:a.id});if(l.error){A.error(l.error.message),i(!1);return}A.success(s("header.orgSwitcher.invitationDeclined")),i(!1),e()}catch{A.error(s("header.orgSwitcher.failedToDeclineInvitation")),i(!1)}};return t.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[t.jsx(le,{org:{name:n},size:"sm"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate text-sm font-medium",children:n}),t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[t.jsx(ge,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:r,disabled:d,children:s("header.orgSwitcher.accept")}),t.jsx(ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:o,disabled:d,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:n}),children:t.jsx(gs,{size:14})})]})]})}function Ne(){const a=z.useContext(Oe),{data:e,refetch:s}=a.hooks.useListUserInvitations();return{invitations:(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date),refetch:()=>s?.()}}function _s(a){const e=v.c(13),s=a.trim(),{data:d}=q.useSession(),i=d?.user?.id??"",n=s.length>0&&!!i,r=Te.projectSearch(i,s);let o;e[0]!==s?(o=async k=>{const{signal:j}=k,S=await fetch(`/api/_me/projects/search?q=${encodeURIComponent(s)}`,{signal:j});if(!S.ok)throw new Error(`Project search failed: ${S.status}`);return await S.json()},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==n||e[3]!==r||e[4]!==o?(l={queryKey:r,queryFn:o,enabled:n,placeholderData:Ae,staleTime:3e4,retry:!1},e[2]=n,e[3]=r,e[4]=o,e[5]=l):l=e[5];const{data:c,isFetching:g,isPlaceholderData:u,isError:m}=Ie(l);let f;e[6]!==c?.items?(f=c?.items??[],e[6]=c?.items,e[7]=f):f=e[7];const p=n&&g,b=n&&u;let x;return e[8]!==m||e[9]!==f||e[10]!==p||e[11]!==b?(x={hits:f,isSearching:p,isStale:b,isError:m},e[8]=m,e[9]=f,e[10]=p,e[11]=b,e[12]=x):x=e[12],x}function pe(a){const e=v.c(15),{id:s,label:d,createLabel:i,onCreate:n}=a;let r;e[0]!==s||e[1]!==d?(r=t.jsx("span",{id:s,className:"truncate",children:d}),e[0]=s,e[1]=d,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Xe,{size:14}),e[3]=o):o=e[3];let l;e[4]!==i||e[5]!==n?(l=t.jsx(he,{asChild:!0,children:t.jsx("button",{type:"button","aria-label":i,className:"-my-1 shrink-0 cursor-pointer rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",onClick:n,children:o})}),e[4]=i,e[5]=n,e[6]=l):l=e[6];let c;e[7]!==i?(c=t.jsx(be,{side:"right",children:i}),e[7]=i,e[8]=c):c=e[8];let g;e[9]!==l||e[10]!==c?(g=t.jsxs(je,{children:[l,c]}),e[9]=l,e[10]=c,e[11]=g):g=e[11];let u;return e[12]!==r||e[13]!==g?(u=t.jsxs("div",{className:"flex w-full items-center justify-between gap-2 px-2 py-1.5 text-xs font-medium text-muted-foreground",children:[r,g]}),e[12]=r,e[13]=g,e[14]=u):u=e[14],u}const W="min-h-9 items-center",O={allProjects:"scope:__all__",project:a=>`scope:${a}`,org:a=>`org:${a}`,foreignProject:(a,e)=>`travel:${a}:${e}`};function zs(a){const e=v.c(11),{active:s,rows:d}=a,i=w();let n,r,o,l;if(e[0]!==s||e[1]!==d||e[2]!==i){l=Symbol.for("react.early_return_sentinel");e:{const g=d.get(s);if(g?.kind!=="travel"){l=null;break e}n="border-t border-border px-3 py-2 text-xs text-warning",r=i("sidebar.picker.verbTravel",{name:g.label}),o=g.leaves&&t.jsxs("span",{className:"text-muted-foreground",children:[" ",i("sidebar.picker.verbLeaves",{name:g.leaves})]})}e[0]=s,e[1]=d,e[2]=i,e[3]=n,e[4]=r,e[5]=o,e[6]=l}else n=e[3],r=e[4],o=e[5],l=e[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let c;return e[7]!==n||e[8]!==r||e[9]!==o?(c=t.jsxs("div",{className:n,children:[r,o]}),e[7]=n,e[8]=r,e[9]=o,e[10]=c):c=e[10],c}function Cs(a){const e=v.c(27),{onClose:s,onCreateOrg:d}=a,i=w(),n=z.useId(),r=z.useId(),o=Re(),{org:l}=ie(),{scopeId:c,projects:g,setScope:u}=Se(),{hasMore:m}=ms(),[f,p]=z.useState(""),[b,x]=z.useState(O.allProjects),k=z.useDeferredValue(f);let j;e[0]!==k?(j=k.trim(),e[0]=k,e[1]=j):j=e[1];const S=j,$=S.length>0,{data:_}=qe(),{invitations:y,refetch:P}=Ne();let C;e[2]!==l.slug?(C=(h,N)=>h.slug===l.slug?-1:N.slug===l.slug?1:0,e[2]=l.slug,e[3]=C):C=e[3];const L=(_??[]).slice().sort(C),{hits:Y,isSearching:ze,isStale:Ce,isError:Q}=_s($?S:""),Z=us();let H;e[4]!==Z?(H=Z.startsWith("/$org/settings"),e[4]=Z,e[5]=H):H=e[5];const E=H,R=new Map;let M;e[6]!==E||e[7]!==o||e[8]!==s||e[9]!==l.slug||e[10]!==u?(M=h=>{F("scope_set",{scoped:h!==null,fromSettings:E}),E?o({to:"/$org",params:{org:l.slug},search:{virtualmcpid:h??void 0}}):u(h),s()},e[6]=E,e[7]=o,e[8]=s,e[9]=l.slug,e[10]=u,e[11]=M):M=e[11];const X=M;let D;e[12]!==o||e[13]!==s?(D=(h,N)=>{F("org_project_travel",{scoped:!!N}),o({to:"/$org",params:{org:h},search:N?{virtualmcpid:N}:{}}),s()},e[12]=o,e[13]=s,e[14]=D):D=e[14];const ce=D;let B;e[15]!==o||e[16]!==s||e[17]!==l.slug?(B=()=>{F("picker_new_project"),o({to:"/$org/agents/{-$panel}",params:{org:l.slug,panel:void 0},search:{virtualmcpid:void 0}}),s()},e[15]=o,e[16]=s,e[17]=l.slug,e[18]=B):B=e[18];const we=B;R.set(O.allProjects,{kind:"scope",label:i("sidebar.scope.allProjects")});let T;e[19]!==i?(T=i("sidebar.picker.searchPlaceholder"),e[19]=i,e[20]=T):T=e[20];let U;e[21]!==f||e[22]!==T?(U=t.jsx(ts,{value:f,onValueChange:p,placeholder:T}),e[21]=f,e[22]=T,e[23]=U):U=e[23];const ee=es,se=$?t.jsxs(t.Fragment,{children:[Q&&t.jsx(me,{children:i("sidebar.picker.searchFailed")}),!Q&&!ze&&Y.length===0&&t.jsx(me,{children:i("sidebar.picker.noMatches",{query:S})}),!Q&&Y.length>0&&t.jsx(te,{heading:i("sidebar.picker.projectsHeading"),className:I(Ce&&"opacity-50"),children:Y.map(h=>t.jsx(ws,{hit:h,currentOrgSlug:l.slug,currentOrgName:l.name,scopeId:c,rows:R,onScope:X,onTravel:ce},`${h.orgSlug}:${h.id}`))})]}):t.jsxs(t.Fragment,{children:[t.jsx(pe,{id:n,label:i("sidebar.picker.projectsHeading"),createLabel:i("sidebar.picker.newProject"),onCreate:we}),t.jsxs(te,{"aria-labelledby":n,children:[t.jsxs(K,{value:O.allProjects,className:W,onSelect:()=>X(null),children:[t.jsx("span",{className:"min-w-0 flex-1 truncate",children:i("sidebar.scope.allProjects")}),c===null&&t.jsx(G,{size:14})]}),g.map(h=>{const N=O.project(h.id);return R.set(N,{kind:"scope",label:h.title}),t.jsxs(K,{value:N,className:W,onSelect:()=>X(h.id),children:[t.jsx(oe,{icon:h.icon,name:h.title,size:"2xs",className:"shrink-0"}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:h.title}),c===h.id&&t.jsx(G,{size:14})]},h.id)}),m&&t.jsx("p",{className:"px-3 py-1.5 text-xs text-muted-foreground",children:i("sidebar.picker.moreExist")})]}),t.jsx(pe,{id:r,label:i("sidebar.picker.orgsHeading"),createLabel:i("sidebar.picker.newOrganization"),onCreate:d}),t.jsxs(te,{"aria-labelledby":r,children:[y.map(h=>t.jsx($s,{invitation:h,onChanged:P},h.id)),L.map(h=>{const N=h.slug===l.slug,de=O.org(h.slug);return R.set(de,{kind:N?"scope":"travel",label:h.name,...N?{}:{leaves:l.name}}),t.jsxs(K,{value:de,className:W,onSelect:()=>N?s():ce(h.slug),children:[t.jsx(le,{org:h,size:"xs"}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:h.name}),N&&t.jsx(G,{size:14})]},h.id)})]})]});let V;return e[24]!==ee||e[25]!==se?(V=t.jsx(ee,{children:se}),e[24]=ee,e[25]=se,e[26]=V):V=e[26],t.jsxs(ss,{shouldFilter:!1,value:b,onValueChange:x,className:"max-h-[min(560px,70dvh)]",children:[U,V,t.jsx(zs,{active:b,rows:R})]})}function ws(a){const e=v.c(31),{hit:s,currentOrgSlug:d,currentOrgName:i,scopeId:n,rows:r,onScope:o,onTravel:l}=a,c=s.orgSlug===d;let g;e[0]!==i||e[1]!==s.id||e[2]!==s.orgSlug||e[3]!==s.title||e[4]!==c||e[5]!==r?(g=c?O.project(s.id):O.foreignProject(s.orgSlug,s.id),r.set(g,{kind:c?"scope":"travel",label:s.title,leaves:c?void 0:i}),e[0]=i,e[1]=s.id,e[2]=s.orgSlug,e[3]=s.title,e[4]=c,e[5]=r,e[6]=g):g=e[6];let u;e[7]!==s.id||e[8]!==s.orgSlug||e[9]!==c||e[10]!==o||e[11]!==l?(u=()=>c?o(s.id):l(s.orgSlug,s.id),e[7]=s.id,e[8]=s.orgSlug,e[9]=c,e[10]=o,e[11]=l,e[12]=u):u=e[12];let m;e[13]!==s.icon||e[14]!==s.title?(m=t.jsx(oe,{icon:s.icon,name:s.title,size:"2xs",className:"shrink-0"}),e[13]=s.icon,e[14]=s.title,e[15]=m):m=e[15];let f;e[16]!==s.title?(f=t.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.title}),e[16]=s.title,e[17]=f):f=e[17];let p;e[18]!==s.orgName?(p=t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:s.orgName}),e[18]=s.orgName,e[19]=p):p=e[19];let b;e[20]!==s.id||e[21]!==c||e[22]!==n?(b=c&&n===s.id&&t.jsx(G,{size:14}),e[20]=s.id,e[21]=c,e[22]=n,e[23]=b):b=e[23];let x;return e[24]!==u||e[25]!==m||e[26]!==f||e[27]!==p||e[28]!==b||e[29]!==g?(x=t.jsxs(K,{value:g,className:W,onSelect:u,children:[m,f,p,b]}),e[24]=u,e[25]=m,e[26]=f,e[27]=p,e[28]=b,e[29]=g,e[30]=x):x=e[30],x}function $e(a){const e=v.c(28),{collapsed:s}=a,d=s===void 0?!1:s,i=w(),{org:n}=ie(),{project:r}=Se(),{invitations:o}=Ne(),[l,c]=z.useState(!1),[g,u]=z.useState(!1);let m;if(e[0]!==d||e[1]!==o.length||e[2]!==n||e[3]!==r||e[4]!==i){const _=r?i("sidebar.picker.projectInOrg",{project:r.title,org:n.name}):n.name;let y;e[6]!==n||e[7]!==r?(y=r?t.jsx(oe,{icon:r.icon,name:r.title,size:"xs",className:"shrink-0"}):t.jsx(le,{org:n,size:"sm"}),e[6]=n,e[7]=r,e[8]=y):y=e[8];let P;e[9]!==o.length?(P=o.length>0&&t.jsx("span",{className:"absolute -right-1 -top-1 size-2.5 rounded-full bg-destructive ring-2 ring-background"}),e[9]=o.length,e[10]=P):P=e[10];let C;e[11]!==y||e[12]!==P?(C=t.jsxs("div",{className:"relative inline-flex shrink-0",children:[y,P]}),e[11]=y,e[12]=P,e[13]=C):C=e[13];const L=C;m=d?t.jsx(ae,{tooltip:_,"data-tour":J.switcher,children:L}):t.jsxs("button",{type:"button","data-tour":J.switcher,"aria-label":i("sidebar.picker.ariaLabel",{name:_}),className:I("flex min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pl-1 pr-1.5 text-left md:h-[34px] md:py-0","[transition:background-color_180ms_ease] hover:bg-sidebar-accent",Qe),children:[L,t.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:r?r.title:n.name}),t.jsx(Ze,{size:14,className:"shrink-0 text-muted-foreground"})]}),e[0]=d,e[1]=o.length,e[2]=n,e[3]=r,e[4]=i,e[5]=m}else m=e[5];const f=m;let p;e[14]!==f?(p=t.jsx(as,{asChild:!0,children:f}),e[14]=f,e[15]=p):p=e[15];const b=d?"right":"bottom";let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Cs,{onClose:()=>c(!1),onCreateOrg:()=>{c(!1),u(!0)}}),e[16]=x):x=e[16];let k;e[17]!==b?(k=t.jsx(ns,{side:b,align:"start",className:"w-[min(340px,calc(100vw-2rem))] p-0",children:x}),e[17]=b,e[18]=k):k=e[18];let j;e[19]!==l||e[20]!==p||e[21]!==k?(j=t.jsxs(rs,{open:l,onOpenChange:c,children:[p,k]}),e[19]=l,e[20]=p,e[21]=k,e[22]=j):j=e[22];let S;e[23]!==g?(S=t.jsx(ds,{open:g,onOpenChange:u}),e[23]=g,e[24]=S):S=e[24];let $;return e[25]!==j||e[26]!==S?($=t.jsxs(t.Fragment,{children:[j,S]}),e[25]=j,e[26]=S,e[27]=$):$=e[27],$}function ht(){const a=v.c(2),e=ye();let s;return a[0]!==e?(s=t.jsxs(t.Fragment,{children:[t.jsx($e,{collapsed:e}),t.jsx(Os,{collapsed:e})]}),a[0]=e,a[1]=s):s=a[1],s}function Ps(a){const e=v.c(11),{onClose:s,children:d}=a,i=w();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx($e,{}),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex-1"}),e[1]=r):r=e[1];let o;e[2]!==i?(o=i("sidebar.header.closeSidebar"),e[2]=i,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ve,{size:16}),e[4]=l):l=e[4];let c;e[5]!==s||e[6]!==o?(c=t.jsx(ke,{onClick:s,"aria-label":o,children:l}),e[5]=s,e[6]=o,e[7]=c):c=e[7];let g;return e[8]!==d||e[9]!==c?(g=t.jsxs(t.Fragment,{children:[n,d,r,c]}),e[8]=d,e[9]=c,e[10]=g):g=e[10],g}function Os(a){const e=v.c(12),{collapsed:s}=a,d=w(),{toggleSidebar:i}=xe();let n;e[0]!==d?(n=d("sidebar.header.toggleSidebar"),e[0]=d,e[1]=n):n=e[1];const r=n;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(ve,{size:16}),e[2]=o):o=e[2];let l;e[3]!==r||e[4]!==i?(l=t.jsx(he,{asChild:!0,children:t.jsx(ke,{"aria-label":r,onClick:i,className:"shrink-0 rounded-lg md:size-[34px] group-data-[state=collapsed]/sidebar:mx-auto",children:o})}),e[3]=r,e[4]=i,e[5]=l):l=e[5];const c=!s;let g;e[6]!==r||e[7]!==c?(g=t.jsx(be,{side:"right",hidden:c,children:r}),e[6]=r,e[7]=c,e[8]=g):g=e[8];let u;return e[9]!==l||e[10]!==g?(u=t.jsxs(je,{children:[l,g]}),e[9]=l,e[10]=g,e[11]=u):u=e[11],u}function re(a){const e=v.c(24),{icon:s,label:d,isActive:i,link:n,onSelect:r,ariaLabel:o,className:l,dataTour:c}=a,g=i===void 0?!1:i,u=ye(),m=o??d,f=u?m:void 0;let p;e[0]!==l||e[1]!==c||e[2]!==g||e[3]!==f?(p={isActive:g,tooltip:f,className:l,"data-tour":c},e[0]=l,e[1]=c,e[2]=g,e[3]=f,e[4]=p):p=e[4];const b=p;let x;e[5]!==d?(x=t.jsx("span",{className:"truncate",children:d}),e[5]=d,e[6]=x):x=e[6];let k;e[7]!==s||e[8]!==x?(k=t.jsxs(t.Fragment,{children:[s,x]}),e[7]=s,e[8]=x,e[9]=k):k=e[9];const j=k;if(n){const $=g?"page":void 0;let _;e[10]!==j||e[11]!==n||e[12]!==m||e[13]!==r||e[14]!==$?(_=t.jsx(Fe,{...n,"aria-label":m,"aria-current":$,onClick:r,children:j}),e[10]=j,e[11]=n,e[12]=m,e[13]=r,e[14]=$,e[15]=_):_=e[15];let y;return e[16]!==b||e[17]!==_?(y=t.jsx(ue,{children:t.jsx(ae,{asChild:!0,...b,children:_})}),e[16]=b,e[17]=_,e[18]=y):y=e[18],y}let S;return e[19]!==j||e[20]!==m||e[21]!==r||e[22]!==b?(S=t.jsx(ue,{children:t.jsx(ae,{...b,"aria-label":m,onClick:r,children:j})}),e[19]=j,e[20]=m,e[21]=r,e[22]=b,e[23]=S):S=e[23],S}function Is(a){const e=v.c(5),{label:s,link:d,onSelect:i}=a;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(fs,{size:16}),e[0]=n):n=e[0];let r;return e[1]!==s||e[2]!==d||e[3]!==i?(r=t.jsx("div",{className:"-mx-2 border-b border-sidebar-border px-2 py-2",children:t.jsx(ne,{className:"shrink-0",children:t.jsx(re,{icon:n,label:s,className:"text-sidebar-foreground/70",link:d,onSelect:i})})}),e[1]=s,e[2]=d,e[3]=i,e[4]=r):r=e[4],r}function Ts(){const a=v.c(8),e=w(),{capabilities:s,isPrivileged:d,loading:i,error:n}=Le(),r=ys().length,o=He();let l;return a[0]!==s||a[1]!==n||a[2]!==d||a[3]!==r||a[4]!==i||a[5]!==e||a[6]!==o?(l=[{key:"account",label:"",items:[{key:"profile",label:e("settings.nav.profile"),icon:t.jsx(ks,{size:14}),to:"/$org/settings/profile"}]},{key:"organization",label:e("settings.nav.organization"),items:[{key:"general",label:e("settings.nav.general"),icon:t.jsx(ps,{size:14}),to:"/$org/settings/general",requires:"org:manage"},{key:"billing",label:e("settings.nav.billing"),icon:t.jsx(xs,{size:14}),to:"/$org/settings/ai-providers",group:"billing"},{key:"connect",label:e("settings.nav.connect"),icon:t.jsx(js,{size:14}),to:"/$org/settings/connect",group:"connect"},{key:"tasks",label:e("settings.nav.tasks"),icon:t.jsx(is,{size:14}),to:"/$org/settings/task-board",requires:"org:manage"}]},{key:"build",label:e("settings.nav.build"),items:[{key:"connections",label:e("settings.nav.connections"),icon:t.jsx(os,{size:14}),to:"/$org/settings/connections"},{key:"agents",label:e("settings.nav.agents"),icon:t.jsx(fe,{size:14}),to:"/$org/settings/agents"},{key:"automations",label:e("settings.nav.automations"),icon:t.jsx(Ss,{size:14}),to:"/$org/settings/automations",requires:"automations:manage"},{key:"skills",label:e("settings.nav.skills"),icon:t.jsx(vs,{size:14}),to:"/$org/settings/skills"}]},{key:"manage",label:e("settings.nav.manage"),items:[{key:"monitor",label:e("settings.nav.monitor"),icon:t.jsx(ls,{size:14}),to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:e("settings.nav.members"),icon:t.jsx(fe,{size:14}),to:"/$org/settings/members",group:"members",badge:r}]},{key:"advanced",label:e("settings.nav.advanced"),collapsible:!0,items:[{key:"secrets",label:e("settings.nav.secrets"),icon:t.jsx(bs,{size:14}),to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"storage",label:e("settings.nav.storage"),icon:t.jsx(hs,{size:14}),to:"/$org/settings/buckets",group:"storage"},{key:"store",label:e("settings.nav.store"),icon:t.jsx(cs,{size:14}),to:"/$org/settings/store",requires:"registry:manage"},{key:"sso",label:e("settings.nav.security"),icon:t.jsx(Ee,{size:14}),to:"/$org/settings/sso",requires:"org:manage"}]}].map(g=>({...g,items:g.items.flatMap(u=>{if(u.group){const[m]=o[u.group];return m?[{...u,to:m.to}]:Me(u.group)?[]:[u]}return i||n?[u]:u.privilegedOnly?d?[u]:[]:u.requires?d||s[u.requires]?[u]:[]:[u]})})).filter(As),a[0]=s,a[1]=n,a[2]=d,a[3]=r,a[4]=i,a[5]=e,a[6]=o,a[7]=l):l=a[7],l}function As(a){return a.items.length>0}function _e(){const a=v.c(8);let e;a[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},a[0]=e):e=a[0];const{org:s}=De(e);let d;a[1]===Symbol.for("react.memo_cache_sentinel")?(d={select:Rs},a[1]=d):d=a[1];const i=Be(d);let n;if(a[2]!==s||a[3]!==i){const l=c=>{const g=c.replace("$org",s);return i===g||i.startsWith(`${g}/`)};n=c=>[c.to,...c.group?Ue(c.group):[]].some(l),a[2]=s,a[3]=i,a[4]=n}else n=a[4];const r=n;let o;return a[5]!==r||a[6]!==s?(o={org:s,isActive:r},a[5]=r,a[6]=s,a[7]=o):o=a[7],o}function Rs(a){return a.location.pathname}const qs="pt-1.5";function Fs(a){const e=v.c(15),{header:s,back:d,body:i,footer:n,sheet:r}=a;let o;e[0]!==s?(o=s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-2 group-data-[state=collapsed]/sidebar:h-auto group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:py-2",children:s}),t.jsx("div",{className:"mt-1.5 h-px shrink-0 bg-sidebar-border"})]}),e[0]=s,e[1]=o):o=e[1];let l;e[2]!==d?(l=d&&t.jsx("div",{className:"shrink-0 px-2",children:d}),e[2]=d,e[3]=l):l=e[3];let c;e[4]!==i?(c=t.jsx(Ve,{className:"gap-0 overflow-y-auto px-2 pt-2 pb-2 group-data-[state=collapsed]/sidebar:[scrollbar-width:none] group-data-[state=collapsed]/sidebar:[&::-webkit-scrollbar]:hidden",children:i}),e[4]=i,e[5]=c):c=e[5];let g;e[6]!==n||e[7]!==o||e[8]!==l||e[9]!==c?(g=t.jsxs(t.Fragment,{children:[o,l,c,n]}),e[6]=n,e[7]=o,e[8]=l,e[9]=c,e[10]=g):g=e[10];const u=g;if(r){let f;return e[11]!==u?(f=t.jsx("div",{className:"group/sidebar flex h-full w-full flex-col bg-sidebar text-sidebar-foreground","data-sidebar":"sidebar","data-state":"expanded","data-tour":J.nav,children:u}),e[11]=u,e[12]=f):f=e[12],f}let m;return e[13]!==u?(m=t.jsx(Ge,{className:qs,"data-tour":J.nav,children:u}),e[13]=u,e[14]=m):m=e[14],m}function Ls(){const a=v.c(9),{isActive:e}=_e();let s;a[0]===Symbol.for("react.memo_cache_sentinel")?(s={},a[0]=s):s=a[0];const[d,i]=z.useState(s);let n;a[1]!==e||a[2]!==d?(n=g=>d[g.key]??(!g.collapsible||g.items.some(e)),a[1]=e,a[2]=d,a[3]=n):n=a[3];const r=n;let o;a[4]!==r?(o=g=>i(u=>({...u,[g.key]:!r(g)})),a[4]=r,a[5]=o):o=a[5];const l=o;let c;return a[6]!==r||a[7]!==l?(c={isOpen:r,toggle:l},a[6]=r,a[7]=l,a[8]=c):c=a[8],c}function Hs(a){const e=v.c(21),{group:s,open:d,onToggle:i,className:n}=a;let r,o,l,c,g;if(e[0]!==n||e[1]!==s.collapsible||e[2]!==s.label||e[3]!==i||e[4]!==d){g=Symbol.for("react.early_return_sentinel");e:{const p=I("text-xs font-medium text-muted-foreground/60 truncate",n);if(!s.collapsible){g=t.jsx("p",{className:p,children:s.label});break e}r="button",o=i,l=d,c=I("flex w-full items-center gap-1 rounded-md hover:text-muted-foreground",p)}e[0]=n,e[1]=s.collapsible,e[2]=s.label,e[3]=i,e[4]=d,e[5]=r,e[6]=o,e[7]=l,e[8]=c,e[9]=g}else r=e[5],o=e[6],l=e[7],c=e[8],g=e[9];if(g!==Symbol.for("react.early_return_sentinel"))return g;let u;e[10]!==d?(u=d?t.jsx(We,{size:12}):t.jsx(Je,{size:12}),e[10]=d,e[11]=u):u=e[11];let m;e[12]!==s.label?(m=t.jsx("span",{className:"truncate",children:s.label}),e[12]=s.label,e[13]=m):m=e[13];let f;return e[14]!==r||e[15]!==o||e[16]!==l||e[17]!==c||e[18]!==u||e[19]!==m?(f=t.jsxs("button",{type:r,onClick:o,"aria-expanded":l,className:c,children:[u,m]}),e[14]=r,e[15]=o,e[16]=l,e[17]=c,e[18]=u,e[19]=m,e[20]=f):f=e[20],f}function Es(a){const e=v.c(5),{icon:s,badge:d}=a;let i;e[0]!==d?(i=d?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,e[0]=d,e[1]=i):i=e[1];let n;return e[2]!==s||e[3]!==i?(n=t.jsxs("span",{className:"relative shrink-0",children:[s,i]}),e[2]=s,e[3]=i,e[4]=n):n=e[4],n}function Ms(a){const e=v.c(22),{onNavigate:s}=a,d=w(),i=Ts(),{org:n,isActive:r}=_e(),{isOpen:o,toggle:l}=Ls();let c;if(e[0]!==i||e[1]!==r||e[2]!==o||e[3]!==s||e[4]!==n||e[5]!==l){let b;e[7]!==r||e[8]!==o||e[9]!==s||e[10]!==n||e[11]!==l?(b=(x,k)=>t.jsxs("div",{className:"flex flex-col",children:[x.label&&t.jsx(Hs,{group:x,open:o(x),onToggle:()=>l(x),className:I("px-2 pt-1.5 pb-0.5",k>0&&"mt-3")}),o(x)&&t.jsx(ne,{className:"gap-0.5",children:x.items.map(j=>t.jsx(re,{icon:t.jsx(Es,{icon:j.icon,badge:j.badge}),label:j.label,isActive:r(j),link:{to:j.to,params:{org:n}},className:"gap-2.5",onSelect:()=>{F("settings_nav_clicked",{section_key:j.key,group_key:x.key}),s?.()}},j.key))})]},x.key),e[7]=r,e[8]=o,e[9]=s,e[10]=n,e[11]=l,e[12]=b):b=e[12],c=i.map(b),e[0]=i,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=l,e[6]=c}else c=e[6];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[13]=g):g=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{className:"shrink-0",children:t.jsx(Ye,{size:14})}),e[14]=u):u=e[14];let m;e[15]!==d?(m=d("settings.nav.signOut"),e[15]=d,e[16]=m):m=e[16];let f;e[17]!==m?(f=t.jsxs("div",{className:"mt-auto flex flex-col",children:[g,t.jsx(ne,{className:"gap-0.5",children:t.jsx(re,{icon:u,label:m,className:"gap-2.5",onSelect:Ds})})]}),e[17]=m,e[18]=f):f=e[18];let p;return e[19]!==c||e[20]!==f?(p=t.jsxs(t.Fragment,{children:[c,f]}),e[19]=c,e[20]=f,e[21]=p):p=e[21],p}function Ds(){F("signed_out",{source:"settings_sidebar"}),Ke(),q.signOut()}function Bs(a){const e=v.c(8),{onNavigate:s}=a,d=w(),{org:i}=ie();let n;e[0]!==d?(n=d("settings.nav.backToHome"),e[0]=d,e[1]=n):n=e[1];let r;e[2]!==i.slug?(r={to:"/$org/home",params:{org:i.slug}},e[2]=i.slug,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==n||e[6]!==r?(o=t.jsx(Is,{label:n,link:r,onSelect:s}),e[4]=s,e[5]=n,e[6]=r,e[7]=o):o=e[7],o}function Us(){const a=v.c(1);let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.320.0"]})}),a[0]=e):e=a[0],e}function bt(a){const e=v.c(9),{onClose:s}=a;let d,i,n;e[0]!==s?(d=t.jsx(Ps,{onClose:s}),i=t.jsx(Bs,{onNavigate:s}),n=t.jsx(Ms,{onNavigate:s}),e[0]=s,e[1]=d,e[2]=i,e[3]=n):(d=e[1],i=e[2],n=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Us,{}),e[4]=r):r=e[4];let o;return e[5]!==d||e[6]!==i||e[7]!==n?(o=t.jsx(Fs,{sheet:!0,header:d,back:i,body:n,footer:r}),e[5]=d,e[6]=i,e[7]=n,e[8]=o):o=e[8],o}export{re as S,ht as a,Fs as b,Us as c,Ms as d,Bs as e,Ps as f,Is as g,bt as h,ye as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BzRjJS6o.js","assets/index-iMHThdI5.js","assets/index-owpBJsp0.css","assets/Tool02-Dh-KcCDo.js","assets/CheckCircle-BaphLiUh.js","assets/Settings02-CkPf5bSQ.js","assets/use-mcp-client-Cb-7Tc46.js","assets/constants-DNuUCxmW.js","assets/auth-CyxtW7VU.js","assets/useInfiniteQuery-9JeN2e62.js","assets/use-infinite-scroll-CKdXAA8A.js","assets/badge-Dx14P1uf.js","assets/input-CbnXHcO6.js","assets/dropdown-menu-iq7an5CR.js","assets/Check-CA6oOwnk.js","assets/ChevronRight-C1PKtWq_.js","assets/DotsVertical-CuAwCaPW.js","assets/table-Bdl9_Fhf.js","assets/toggle-group-B5yffd6B.js","assets/use-view-mode-C34ZcfuA.js","assets/Globe01-DeCmIrD5.js","assets/SearchMd-BpXAT-eZ.js","assets/dialog-CCRr4CCv.js","assets/AlertCircle-DZjE_Y0H.js","assets/Download01-R47mE7bD.js","assets/Upload01-BaOVc9nV.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-1uO7Q1_D.js","assets/Trash01-BDaDkc_-.js","assets/label-DRWhO--x.js","assets/select-DVuboUqa.js","assets/ChevronUp-BWJ43Ad_.js","assets/switch-D5j2S-4i.js","assets/textarea-CQu-QtAR.js","assets/ArrowLeft-BsR-6m6j.js","assets/XCircle-DQV3a8ui.js","assets/Link01-CLzBJa_Z.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-BtMOjQuM.js","assets/Eye-D3bCBJMo.js","assets/LinkExternal01-w2j8lCTU.js","assets/use-copy-Bqne_Qou.js","assets/Copy01-DHhdbM_J.js","assets/Key01-ICcTBF9U.js","assets/Plus-DZ-r7ICl.js","assets/mcp-oauth-EeLwp5eX.js","assets/Play-Bn8_HZzx.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bn as p}from"./index-iMHThdI5.js";import{R as u}from"./require-capability-BeFbF8pl.js";import"./access-gate-asM9jXYM.js";import"./capability-load-error-CUNqj87m.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BzRjJS6o.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 h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-CKdXAA8A.js";import{fh as i}from"./index-iMHThdI5.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-CKdXAA8A.js";import{fh as u,bV as n}from"./index-iMHThdI5.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};