decocms 4.261.3 → 4.262.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 (229) hide show
  1. package/dist/client/assets/{AlertCircle-CEae1uhC.js → AlertCircle-Cy7oFTB3.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BQbgsWv6.js → AreaChart-C2UbsuMp.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BuwLOd6U.js → ArrowLeft-RGI7d94j.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DvLj1Yir.js → ArrowUp-BdmxjulG.js} +1 -1
  5. package/dist/client/assets/{Check-DzIWDSUl.js → Check-CNkqGaOZ.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-B1K_NLcg.js → CheckCircle-DWIJGe1F.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BgZE4xRe.js → ChevronDown-Byst6X-M.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CgAkolPx.js → ChevronRight-DbV0ExZ-.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-Dw397LVR.js → ChevronSelectorVertical-czYyo0Jc.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BTVDLk21.js → ChevronUp-B66SCMiE.js} +1 -1
  11. package/dist/client/assets/{Copy01-Lb9FASYv.js → Copy01-Bp5_7w1Z.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-CD7q6Dfu.js → CreditCard01-DrDWvbgg.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-Bp9Eoa1l.js → DotsVertical-C87nJzBb.js} +1 -1
  14. package/dist/client/assets/{Download01-1CGe2HqK.js → Download01-BLXNtOTp.js} +1 -1
  15. package/dist/client/assets/{Eye-CxgFziiX.js → Eye-BUiNEycU.js} +1 -1
  16. package/dist/client/assets/{FilterLines-BaHGWDco.js → FilterLines-DKtt-38g.js} +1 -1
  17. package/dist/client/assets/{Globe01-CB8SzdUm.js → Globe01-CVYKugot.js} +1 -1
  18. package/dist/client/assets/{Globe04--VrGgFPe.js → Globe04-l1JQaeo7.js} +1 -1
  19. package/dist/client/assets/{HardDrive-B-Pzoa-K.js → HardDrive-BCMDy7nW.js} +1 -1
  20. package/dist/client/assets/{Key01-APQXat0l.js → Key01-C1NwT2vF.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BecPvCEX.js → LinkExternal01-BiOgKGoU.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-CiQCCmkp.js → LockUnlocked01-D9pofUfD.js} +1 -1
  23. package/dist/client/assets/{LogOut01-CDFiTGut.js → LogOut01-CeH4FEXG.js} +1 -1
  24. package/dist/client/assets/{Monitor01-BQZWVxBb.js → Monitor01-CCNGy7_8.js} +1 -1
  25. package/dist/client/assets/{Palette-BVZgLJCB.js → Palette-uLW1Msrn.js} +1 -1
  26. package/dist/client/assets/{Play-D5eSZsgf.js → Play-CFBu1Uai.js} +1 -1
  27. package/dist/client/assets/{Plus-CoP6L2hk.js → Plus-B4-MzaEX.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BgRlG5wl.js → SearchLg-D6aWTAn0.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BgNDxst6.js → SearchMd-U7gvGopH.js} +1 -1
  30. package/dist/client/assets/{Settings02-Dt5iXjmd.js → Settings02-l3zf5p3j.js} +1 -1
  31. package/dist/client/assets/{Share07-CES-lR0w.js → Share07-CP247mq3.js} +1 -1
  32. package/dist/client/assets/{Shield01-Ckr0CXcj.js → Shield01-C0v0VO93.js} +1 -1
  33. package/dist/client/assets/{Stars01-CZHa1wG3.js → Stars01-CO_2V7xJ.js} +1 -1
  34. package/dist/client/assets/{Stars02-BRTKYlY7.js → Stars02-DtK_AoJb.js} +1 -1
  35. package/dist/client/assets/{Sun-DmhKmGoO.js → Sun-ChklYK1J.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-CcRMoc4G.js → SwitchHorizontal01-CNdB1W5l.js} +1 -1
  37. package/dist/client/assets/{Tool01-cFhHzNlQ.js → Tool01-zNBJ_EjG.js} +1 -1
  38. package/dist/client/assets/{Tool02-6uCneSGU.js → Tool02-D_k-aAz5.js} +1 -1
  39. package/dist/client/assets/{Trash01-3DOOzrXC.js → Trash01-yLsryaeM.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-DTFytCG8.js → TrendUp01-DJwgRCsf.js} +1 -1
  41. package/dist/client/assets/{Upload01-bkmkd0Oy.js → Upload01-OIp6eUuv.js} +1 -1
  42. package/dist/client/assets/{User01-Ca8dp473.js → User01-DYFCn4C3.js} +1 -1
  43. package/dist/client/assets/{UserSquare-DLmOZ-KA.js → UserSquare-VFt2LMJP.js} +1 -1
  44. package/dist/client/assets/{Users01-LKnSwR83.js → Users01-BQgIXrcE.js} +1 -1
  45. package/dist/client/assets/{Users03-CFcxcAHk.js → Users03-Bjg_Hn3h.js} +1 -1
  46. package/dist/client/assets/{XCircle-DKa2fDUo.js → XCircle-C87SboB2.js} +1 -1
  47. package/dist/client/assets/{XClose-DjsajqK1.js → XClose-DoTQ_zQh.js} +1 -1
  48. package/dist/client/assets/{YAxis-DQNN67or.js → YAxis-BYqU4m40.js} +1 -1
  49. package/dist/client/assets/{Zap-DbVkB7V9.js → Zap-B1Got31Y.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-lEOVMKsK.js → ZapSquare-DpbONbNP.js} +1 -1
  51. package/dist/client/assets/{access-gate-B98__zsY.js → access-gate-OZSkx3BV.js} +1 -1
  52. package/dist/client/assets/{agent-icon-DHs-6pCm.js → agent-icon-D0Q6jvST.js} +1 -1
  53. package/dist/client/assets/{agents-list-CZRz7-9s.js → agents-list-CL4GpFiH.js} +1 -1
  54. package/dist/client/assets/{ai-providers-Br1yrqCz.js → ai-providers-LZwS6oZI.js} +1 -1
  55. package/dist/client/assets/{alert-59GrEthk.js → alert-BDEMK75_.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-B3JtJ-MY.js → alert-dialog-l8KXVd-s.js} +1 -1
  57. package/dist/client/assets/{api-keys-DcIDdyLu.js → api-keys-kmavSP_L.js} +1 -1
  58. package/dist/client/assets/{app-editor-BD5VP9I4.js → app-editor-A8ygRBfV.js} +1 -1
  59. package/dist/client/assets/{auth-CDJktmRv.js → auth-CDQyXdg-.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-DUYOXI72.js → auth-catchall-D2H5RV6_.js} +1 -1
  61. package/dist/client/assets/{auth-entry-DGLGavRF.js → auth-entry-SaIvb2mp.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-DrmX2mA0.js → auth-split-layout-Cf8oT9pr.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-C-UGi48J.js → authenticate-and-persist-oauth-B35eKag7.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-C6sfzgNJ.js → automation-list-row-DU1U5Pw5.js} +1 -1
  65. package/dist/client/assets/{automation-runs-vIkYpjEv.js → automation-runs-C7v_2QHl.js} +1 -1
  66. package/dist/client/assets/{automations-C-nBoeMd.js → automations-DZGq3n4U.js} +1 -1
  67. package/dist/client/assets/{avatar-Chc0pGfc.js → avatar-CFcyikvM.js} +1 -1
  68. package/dist/client/assets/{badge-CpzknPex.js → badge-D_w0Pr7X.js} +1 -1
  69. package/dist/client/assets/{block-document-DwyVrNoo.js → block-document-2G7w5An2.js} +1 -1
  70. package/dist/client/assets/{buckets-kXbWgGNN.js → buckets-Cb1_EWOC.js} +1 -1
  71. package/dist/client/assets/{bulk-category-panel-BCte-ow7.js → bulk-category-panel-AgARsoHn.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-Dte2p87T.js → capability-load-error-CkuubVa8.js} +1 -1
  73. package/dist/client/assets/{cards-CL8FPhnk.js → cards-3GgICG-3.js} +1 -1
  74. package/dist/client/assets/{category-editor-C5gizoPy.js → category-editor-AM5exBb3.js} +1 -1
  75. package/dist/client/assets/{chart-CP-H3lBv.js → chart-Bhs-unQi.js} +1 -1
  76. package/dist/client/assets/{chat-context-CZWMhJUR.js → chat-context-SATa7jvn.js} +1 -1
  77. package/dist/client/assets/{checkbox-B3ID1MwL.js → checkbox-DMHN5LX5.js} +1 -1
  78. package/dist/client/assets/{choose-editor-GPJ4FowU.js → choose-editor-DCLtr_qz.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-fYr-6BM4.js → cli-auth-success-BQiViHJM.js} +1 -1
  80. package/dist/client/assets/{collection-detail-BqzuVqka.js → collection-detail-DGpHxFT3.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-BHmId3t2.js → collection-display-button-8bYE3nvL.js} +1 -1
  82. package/dist/client/assets/{collection-search-BY9vC5GI.js → collection-search-CLZQG-b8.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-DzXPN8xW.js → collection-table-wrapper-BzqThiKl.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-CYssF2Pe.js → collection-tabs-BzFtasQi.js} +1 -1
  85. package/dist/client/assets/{command-CX03u_Rc.js → command-FE9hLuuD.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-q8dmpBgD.js → commerce-onboarding-DOxXy-7n.js} +1 -1
  87. package/dist/client/assets/{connect-C64ucZff.js → connect-Cb-KcPTk.js} +1 -1
  88. package/dist/client/assets/{connection-Bb3xR6n8.js → connection-CbVj01Yy.js} +1 -1
  89. package/dist/client/assets/{connection-card-lZJegbZE.js → connection-card-B4t2xHvz.js} +1 -1
  90. package/dist/client/assets/{connection-detail-BCj22Aq1.js → connection-detail-BCNEtIiR.js} +1 -1
  91. package/dist/client/assets/{connection-form-helpers-Dh1Fmq8R.js → connection-form-helpers-CGhCLTPa.js} +1 -1
  92. package/dist/client/assets/{connections-BBGOTl0N.js → connections-q3Fkssb4.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-B5rC4Sp4.js → decopilot-sse-pool-Da0p4GM_.js} +1 -1
  94. package/dist/client/assets/{dialog-B_Yo0zLl.js → dialog-Op5qOw2T.js} +1 -1
  95. package/dist/client/assets/{domain-settings-j5u6QPQE.js → domain-settings-CDJLL0kD.js} +1 -1
  96. package/dist/client/assets/{drawer-BWhcwlAU.js → drawer-oaFjopWn.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-6ZdFCCbd.js → dropdown-menu-CYKYKuMw.js} +1 -1
  98. package/dist/client/assets/{empty-state-p68nOBgH.js → empty-state-uJYsGh0B.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-DC_rLlfS.js → extract-connection-data-B1iFAdzR.js} +1 -1
  100. package/dist/client/assets/{file-explorer-DqSTGtMI.js → file-explorer-CeazzhKs.js} +1 -1
  101. package/dist/client/assets/{file-type-icon-4ILChaRO.js → file-type-icon-DjP05ubV.js} +1 -1
  102. package/dist/client/assets/{form-CWuSdM-E.js → form-CII0aUGc.js} +1 -1
  103. package/dist/client/assets/{general-DrHU33EJ.js → general-Bg85EcMC.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-D9_bSbhh.js → github-repo-picker-Brqes-F9.js} +1 -1
  105. package/dist/client/assets/{hooks-CPr5EU39.js → hooks-Cr3l3hl_.js} +1 -1
  106. package/dist/client/assets/{index-cpDVxYFI.js → index-24pj1g_w.js} +1 -1
  107. package/dist/client/assets/{index-C2e0PKbG.js → index-B2rgNF_L.js} +3 -3
  108. package/dist/client/assets/{index-C3wz6kzx.js → index-B7to8ZlC.js} +1 -1
  109. package/dist/client/assets/{index-Dco0Z0_U.js → index-BK1yTP-D.js} +1 -1
  110. package/dist/client/assets/{index-BuCuHdjV.js → index-BL-G2F4_.js} +1 -1
  111. package/dist/client/assets/{index-C0RFo7jI.js → index-BdcsAInY.js} +1 -1
  112. package/dist/client/assets/{index-DT3JBqpR.js → index-CDX_Xyys.js} +62 -62
  113. package/dist/client/assets/{index-CXh4JzJ2.js → index-CgkKX_CI.js} +1 -1
  114. package/dist/client/assets/{index-DI-XJgrt.js → index-CiPtkCFD.js} +1 -1
  115. package/dist/client/assets/{index-C2lKb2N2.js → index-D7Nhv_dL.js} +1 -1
  116. package/dist/client/assets/{index-redirect-aB7v-llB.js → index-redirect-BeuCug26.js} +1 -1
  117. package/dist/client/assets/{infra-billing-DLB8L7Eg.js → infra-billing-Xj06_tek.js} +1 -1
  118. package/dist/client/assets/{input-Dvg-q7zZ.js → input-BPpF5ECy.js} +1 -1
  119. package/dist/client/assets/{integration-icon-CEE1gfwv.js → integration-icon-Cl4k3QTh.js} +1 -1
  120. package/dist/client/assets/{invite-member-dialog-Ciwwko_7.js → invite-member-dialog-BizNO7Nd.js} +1 -1
  121. package/dist/client/assets/{label-b_VH9dS0.js → label-CmXmzEmC.js} +1 -1
  122. package/dist/client/assets/{layout-ix2BkmgR.js → layout-Dbmq3Njn.js} +1 -1
  123. package/dist/client/assets/{login-DLd664hZ.js → login-Cv3wNLt0.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-rRtIbhyb.js → mcp-oauth-Xanau987.js} +1 -1
  125. package/dist/client/assets/{members-Cg1Vomxs.js → members-DxeVFUYQ.js} +1 -1
  126. package/dist/client/assets/{monaco-editor-CAJhNo3M.js → monaco-editor-DN3AH1iE.js} +1 -1
  127. package/dist/client/assets/{monitoring-stats-row-CbiGS37d.js → monitoring-stats-row-Df3XYXNj.js} +1 -1
  128. package/dist/client/assets/{multi-select-C9sF4qze.js → multi-select-BeTnZ2xD.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-t1KCrwaS.js → oauth-callback-DkzyEi6t.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-B5fgJm5M.js → oauth-callback-ai-provider-DbvPDzD6.js} +1 -1
  131. package/dist/client/assets/{onboarding-oHLsQR_H.js → onboarding-CEy4P_cH.js} +1 -1
  132. package/dist/client/assets/{org-layout-mboLYjct.js → org-layout-Z2uRYrgd.js} +1 -1
  133. package/dist/client/assets/{organization-choice-l60e57CR.js → organization-choice-CB9P8YDB.js} +1 -1
  134. package/dist/client/assets/{orgs-dnJ1DAXJ.js → orgs-t3UA34-b.js} +1 -1
  135. package/dist/client/assets/page-seo-form-D5TTpAmx.js +1 -0
  136. package/dist/client/assets/{popover-CThnLHOx.js → popover-Bvnw1y4c.js} +1 -1
  137. package/dist/client/assets/post-calendar-1N_tNaTJ.js +1 -0
  138. package/dist/client/assets/{post-editor-DQhQx0h4.js → post-editor--KeI_K-w.js} +1 -1
  139. package/dist/client/assets/{primitives-71eYG7TZ.js → primitives-DFaAUeZk.js} +1 -1
  140. package/dist/client/assets/{profile-BPfUqJK3.js → profile-C-qO1y_v.js} +1 -1
  141. package/dist/client/assets/{project-app-view-CVwWBzoV.js → project-app-view-UxMFlWrH.js} +1 -1
  142. package/dist/client/assets/record-editor-CX84Ccei.js +1 -0
  143. package/dist/client/assets/redirect-editor-CcnaMZh3.js +1 -0
  144. package/dist/client/assets/registry-ENV4xi4Z.js +2 -0
  145. package/dist/client/assets/{registry-layout-CtvYuw8V.js → registry-layout-Dd_ggH9_.js} +1 -1
  146. package/dist/client/assets/{reports-xp2rF3k3.js → reports-DzDHnYig.js} +1 -1
  147. package/dist/client/assets/{require-capability-DQ8G7iDt.js → require-capability-BX3M2RHM.js} +1 -1
  148. package/dist/client/assets/{required-auth-layout-BGUUKuY5.js → required-auth-layout-B6v0ZQLQ.js} +1 -1
  149. package/dist/client/assets/{reset-password-ka0LrXqK.js → reset-password-B4SL0AST.js} +1 -1
  150. package/dist/client/assets/{roles-BA8t4fXD.js → roles-ZMSAX5Zw.js} +1 -1
  151. package/dist/client/assets/{search-input-BF2xp1bX.js → search-input-X56koyR4.js} +1 -1
  152. package/dist/client/assets/{secrets-Cl8ei-Xh.js → secrets-I3q1Xxgo.js} +1 -1
  153. package/dist/client/assets/sections-editor-jyFAl9pA.js +2 -0
  154. package/dist/client/assets/{select-BR8metsL.js → select-BWvOvzmC.js} +1 -1
  155. package/dist/client/assets/{select-model-Bui8_ENH.js → select-model-B-b5n8_s.js} +1 -1
  156. package/dist/client/assets/{self-tool-result-C015H85R.js → self-tool-result-CjXlsWjJ.js} +1 -1
  157. package/dist/client/assets/seo-editor-DUAJQNi4.js +1 -0
  158. package/dist/client/assets/{settings-layout-CbqxLaez.js → settings-layout-JzVahV2c.js} +1 -1
  159. package/dist/client/assets/{shell-controls-Br2PVc4a.js → shell-controls-Z94-asG3.js} +1 -1
  160. package/dist/client/assets/{shell-layout-B4XV3Pk0.js → shell-layout-DcVym81y.js} +1 -1
  161. package/dist/client/assets/{spinner-Dm0Ec7XH.js → spinner-CkVRKT_-.js} +1 -1
  162. package/dist/client/assets/{sprints-CmH0A5lG.js → sprints-BaDROK3s.js} +1 -1
  163. package/dist/client/assets/{sso-Da-1Gb_4.js → sso-DrMKFOcs.js} +1 -1
  164. package/dist/client/assets/{store-BHT130pY.js → store-DCGaYPOy.js} +1 -1
  165. package/dist/client/assets/store-registry-CVXa99TP.js +2 -0
  166. package/dist/client/assets/{switch-ldvu1ch5.js → switch-CeRyi-LW.js} +1 -1
  167. package/dist/client/assets/{synced-repos-CXcJ82vh.js → synced-repos-BUpJOYiU.js} +1 -1
  168. package/dist/client/assets/{tab-id-DfhH4pcg.js → tab-id-azbcA0JR.js} +1 -1
  169. package/dist/client/assets/{table-D3gF_YIW.js → table-DAE077oe.js} +1 -1
  170. package/dist/client/assets/{tabs-DNU9uubZ.js → tabs-CNrUbmDi.js} +1 -1
  171. package/dist/client/assets/{task-key-DXFgZRz5.js → task-key-CFQR7KAm.js} +1 -1
  172. package/dist/client/assets/{tasks-BGGtxACu.js → tasks-DaHjgljY.js} +1 -1
  173. package/dist/client/assets/{textarea-BChO2eZA.js → textarea-BgwH6v8Q.js} +1 -1
  174. package/dist/client/assets/{toggle-group-Be0OOlcQ.js → toggle-group-D_O2Qbfw.js} +1 -1
  175. package/dist/client/assets/{toolbar-DJ3DOccP.js → toolbar-75YEKXXs.js} +1 -1
  176. package/dist/client/assets/{track-DsrR5Shd.js → track-IYxcRPnO.js} +1 -1
  177. package/dist/client/assets/{types-9qOaizG3.js → types-DJhBysZs.js} +1 -1
  178. package/dist/client/assets/{use-ai-providers-B-3JoHuK.js → use-ai-providers-Dqtp4F0g.js} +1 -1
  179. package/dist/client/assets/{use-api-keys-D7wp-h_G.js → use-api-keys-CyzeDxts.js} +1 -1
  180. package/dist/client/assets/{use-automations-BGkDkVNw.js → use-automations-BsglmV9J.js} +1 -1
  181. package/dist/client/assets/{use-autosave-6KjI_5n5.js → use-autosave-AI7FCUa9.js} +1 -1
  182. package/dist/client/assets/{use-clock-tick-B8gdkHLP.js → use-clock-tick-OV71bnSy.js} +1 -1
  183. package/dist/client/assets/{use-commerce-diagnostic-CURG88FB.js → use-commerce-diagnostic-B2U0AK03.js} +1 -1
  184. package/dist/client/assets/{use-connection-4jED9yq-.js → use-connection-CGVdj1Na.js} +1 -1
  185. package/dist/client/assets/{use-copy-Dla-5nN5.js → use-copy-y6mX7lY_.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-Cch-GpyA.js → use-create-virtual-mcp-HmmIlBNF.js} +1 -1
  187. package/dist/client/assets/{use-debounced-autosave-BvNbEt7H.js → use-debounced-autosave-ReRlcVxL.js} +1 -1
  188. package/dist/client/assets/{use-debounced-value-D25rJTsS.js → use-debounced-value-ieGzCUZ6.js} +1 -1
  189. package/dist/client/assets/{use-decopilot-events-DG8KjCOy.js → use-decopilot-events-CbnjcNzx.js} +1 -1
  190. package/dist/client/assets/{use-delete-connection-BNEfVgjz.js → use-delete-connection-TC1ho7EQ.js} +1 -1
  191. package/dist/client/assets/{use-deployment-admin-B1-xbOQB.js → use-deployment-admin-3PMX8zH_.js} +1 -1
  192. package/dist/client/assets/{use-file-configs-CiqW_sIJ.js → use-file-configs-CzfvO2kW.js} +1 -1
  193. package/dist/client/assets/{use-infinite-scroll-CWtSKvq6.js → use-infinite-scroll-CUCn3G4l.js} +1 -1
  194. package/dist/client/assets/{use-join-requests-B9N6nuKu.js → use-join-requests-AZZUE1sS.js} +1 -1
  195. package/dist/client/assets/{use-mcp-client-Cll5rmN-.js → use-mcp-client-CsRBcSqu.js} +1 -1
  196. package/dist/client/assets/{use-mcp-tools-Dr020OrW.js → use-mcp-tools-CsWoUK82.js} +1 -1
  197. package/dist/client/assets/{use-members-n1XYDwqh.js → use-members-DdluiPyH.js} +1 -1
  198. package/dist/client/assets/{use-navigate-to-agent-DcVHHvW8.js → use-navigate-to-agent-CaSAdQKa.js} +1 -1
  199. package/dist/client/assets/{use-org-auth-client-BtiAtI9u.js → use-org-auth-client-B_6Gte_2.js} +1 -1
  200. package/dist/client/assets/{use-org-repo-syncs-OyBz2ep6.js → use-org-repo-syncs-BTVrkbli.js} +1 -1
  201. package/dist/client/assets/{use-org-sso-CNy-8P49.js → use-org-sso-DIeURWQa.js} +1 -1
  202. package/dist/client/assets/{use-organization-roles-CMD70PJk.js → use-organization-roles-DFdg9ZWC.js} +1 -1
  203. package/dist/client/assets/{use-organization-settings-SkJwSdGF.js → use-organization-settings-zPkeLKV0.js} +1 -1
  204. package/dist/client/assets/{use-registry-connections-B1gbzBko.js → use-registry-connections-DowUtdFx.js} +1 -1
  205. package/dist/client/assets/{use-secrets-D78WIhbb.js → use-secrets-DkbwudpY.js} +1 -1
  206. package/dist/client/assets/{use-section-preview-base-CntPzeG0.js → use-section-preview-base-CRYUuuSf.js} +1 -1
  207. package/dist/client/assets/{use-status-sounds-L5g_Fs-5.js → use-status-sounds-CuHmWHwm.js} +1 -1
  208. package/dist/client/assets/{use-tags-Cg7-QAvQ.js → use-tags-DnFIHf8g.js} +1 -1
  209. package/dist/client/assets/{use-view-mode-Sb1ZfxCj.js → use-view-mode-BsrSwXQQ.js} +1 -1
  210. package/dist/client/assets/{use-virtual-mcp-D04UN4OF.js → use-virtual-mcp-BdYI7s9_.js} +1 -1
  211. package/dist/client/assets/useInfiniteQuery-CjkJeu2b.js +1 -0
  212. package/dist/client/assets/useSuspenseInfiniteQuery-B9AWsADw.js +1 -0
  213. package/dist/client/assets/{users-DhyJ-Ths.js → users-Mb2XfZY-.js} +1 -1
  214. package/dist/client/assets/{variant-calendar-BiBuC7YP.js → variant-calendar-C6ImwSuF.js} +1 -1
  215. package/dist/client/assets/{view-mode-toggle-H-alzknW.js → view-mode-toggle-Bm9nOdK2.js} +1 -1
  216. package/dist/client/index.html +1 -1
  217. package/dist/server/cli.js +472 -472
  218. package/dist/server/server.js +326 -326
  219. package/package.json +1 -1
  220. package/dist/client/assets/page-seo-form-Cq_TIFx6.js +0 -1
  221. package/dist/client/assets/post-calendar-Dx2iffi_.js +0 -1
  222. package/dist/client/assets/record-editor-CC_-YEYD.js +0 -1
  223. package/dist/client/assets/redirect-editor-CW6xrZ31.js +0 -1
  224. package/dist/client/assets/registry-DQdyTWEM.js +0 -2
  225. package/dist/client/assets/sections-editor-CqbQzL7f.js +0 -2
  226. package/dist/client/assets/seo-editor-DV3DmrHZ.js +0 -1
  227. package/dist/client/assets/store-registry-CcoCSVwK.js +0 -2
  228. package/dist/client/assets/useInfiniteQuery-yyhUTgSy.js +0 -1
  229. package/dist/client/assets/useSuspenseInfiniteQuery-keWsE91S.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.261.3",
3
+ "version": "4.262.1",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as O,p as se,K as z,b as V,j as p,r as G,n as oe}from"./index-C2e0PKbG.js";import{aD as re,M as ie,ap as Q,bC as le,bD as ce,F as ae,bE as ue,S as fe}from"./index-DT3JBqpR.js";import{L as B}from"./label-b_VH9dS0.js";import{S as w}from"./switch-ldvu1ch5.js";import{d as pe,a as de,b as ye,c as he,S as me}from"./select-BR8metsL.js";const Se="website/sections/Rendering/Lazy.tsx";function k(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function $(t){if(!k(t))return!1;const e=t.__resolveType;return typeof e=="string"&&re(e)}function N(t){return t!=null}function I(t){if(t==null)return t;if($(t)){const e=t.section;return e==null?null:k(e)?e:{}}return k(t)?t:void 0}function q(t,e){return t===null?null:$(e)?{...e,section:t}:t}function ge(t){return{__resolveType:t}}function ve(t,e){if(!N(e))return null;if(t){const n=I(e)??{};return{__resolveType:Se,section:n}}return $(e)?I(e)??null:k(e)?e:null}const be="General";function L(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function W(t,e){return t===C?be:e}function Z(t){const e=le(t),n=new Set,s=[];for(const o of e)L(o.resolveType)&&(ce(o.resolveType)||n.has(o.resolveType)||(n.add(o.resolveType),s.push({resolveType:o.resolveType,title:W(o.resolveType,o.title),description:o.description})));return s}function M(t){const e=ie(t),n=Q(e,t),s=Z(n?.properties?.seo);return s.length>0?s:Te(t)}function Te(t){const e=t.manifest?.blocks??{},n=[];for(const[s,o]of Object.entries(e))if(s.includes("sections"))for(const i of Object.keys(o)){if(!L(i))continue;const r=i.split("/").pop()?.replace(/\.tsx?$/,"")??i;n.push({resolveType:i,title:W(i,r)})}return n}function H(t){const e=M(t),n=e.find(s=>s.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function J(t,e){const n=e.__resolveType;if(typeof n=="string"){const s=Q(n,t),o=Z(s?.properties?.seo);if(o.length>0)return o}return M(t)}function xe(t,e){const n=J(t,e),s=n.find(o=>o.resolveType===C);return s?s.resolveType:n[0]?.resolveType??H(t)}function _e(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:H(t)}function Ee(t,e,n){const s=n.__resolveType;return typeof s=="string"&&L(s)?s:xe(t,e)}const Re=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",je=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function De(t){return typeof t.__resolveType=="string"&&L(t.__resolveType)?!0:je.some(e=>e in t)}function Ce(t,e){for(const[n,s]of Object.entries(t)){if(!K(s))continue;const o=s,i=o.__resolveType;if(typeof i=="string"&&Re.has(i))continue;const r=o.seo;if(K(r)){const c=r;if(De(c))return{blockKey:n,kind:"nested",seoData:c,blockData:o,seoResolveType:e?Ee(e,o,c):typeof c.__resolveType=="string"&&L(c.__resolveType)?c.__resolveType:C}}}for(const[n,s]of Object.entries(t)){if(!K(s))continue;const o=s;if(typeof o.__resolveType=="string"&&L(o.__resolveType))return{blockKey:n,kind:"block",seoData:o,blockData:o,seoResolveType:o.__resolveType}}return null}function Pe(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function He(t,e,n){if(e.kind==="site"){const l=Ce(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?J(n,l.blockData):void 0,build:d=>Pe(l,d)}:null}const s=t[e.pageKey];if(!K(s))return null;const o=s,i=o.seo,r=I(i),c=r&&K(r)?r:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:i,seoResolveType:n?_e(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?M(n):void 0,build:l=>({...o,seo:l===null?null:q(l,i)})}}function Y(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Fe(t,e,n,s){if(t.kind==="page"){if(!Y(n))return null;const o=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:s===null?null:q(s,o)}}return Y(n)?e.siteKind==="block"?s:{...n,seo:s}:null}function Je(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function Xe(t){const e=O.c(23),{orgSlug:n,virtualMcpId:s,branch:o,target:i,resolved:r,onSaved:c}=t,l=se(),d=`${n}/${s}/${o}`;let h;e[0]!==o||e[1]!==n||e[2]!==s?(h={orgSlug:n,virtualMcpId:s,branch:o},e[0]=o,e[1]=n,e[2]=s,e[3]=h):h=e[3];let a;e[4]!==c?(a={onSaved:c},e[4]=c,e[5]=a):a=e[5];const{save:u,flush:m,isPending:S}=ae(h,a);let y;e[6]!==d||e[7]!==l||e[8]!==r||e[9]!==u||e[10]!==i?(y=T=>{r&&u(r.blockKey,()=>{const x=l.getQueryData(z.decofile(d))?.[r.blockKey];return Fe(i,r,x,T)})},e[6]=d,e[7]=l,e[8]=r,e[9]=u,e[10]=i,e[11]=y):y=e[11];const g=y;let v;e[12]!==d||e[13]!==l||e[14]!==r||e[15]!==u||e[16]!==i?(v=T=>{!r||i.kind!=="page"||u(r.blockKey,()=>{const x=l.getQueryData(z.decofile(d))?.[r.blockKey];return Y(x)?{...x,seo:T}:null})},e[12]=d,e[13]=l,e[14]=r,e[15]=u,e[16]=i,e[17]=v):v=e[17];const b=v;let _;return e[18]!==m||e[19]!==S||e[20]!==b||e[21]!==g?(_={persistSeo:g,persistRawSeo:b,flush:m,isPending:S},e[18]=m,e[19]=S,e[20]=b,e[21]=g,e[22]=_):_=e[22],_}const Le="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=O.c(23),{rawSeo:n,onEnableChange:s,onAsyncRenderChange:o,children:i}=t,r=V();let c;e[0]!==n?(c=N(n),e[0]=n,e[1]=c):c=e[1];const l=c;let d;e[2]!==n?(d=$(n),e[2]=n,e[3]=d):d=e[3];const h=d;let a;e[4]!==r?(a=r("sectionsEditor.seoFormChrome.enableLabel"),e[4]=r,e[5]=a):a=e[5];let u;e[6]!==a?(u=p.jsx(B,{htmlFor:"seo-enable",className:"text-sm font-medium",children:a}),e[6]=a,e[7]=u):u=e[7];let m;e[8]!==l||e[9]!==s?(m=p.jsx(w,{id:"seo-enable",checked:l,onCheckedChange:s}),e[8]=l,e[9]=s,e[10]=m):m=e[10];let S;e[11]!==u||e[12]!==m?(S=p.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u,m]}),e[11]=u,e[12]=m,e[13]=S):S=e[13];let y;e[14]!==h||e[15]!==i||e[16]!==l||e[17]!==o||e[18]!==r?(y=l&&p.jsxs(p.Fragment,{children:[i,p.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[p.jsxs("div",{className:"min-w-0 space-y-1",children:[p.jsx("p",{className:"text-sm font-medium",children:r("sectionsEditor.seoFormChrome.asyncRenderLabel")}),p.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",p.jsx("a",{href:Le,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:r("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),p.jsx(w,{id:"seo-async-render",checked:h,onCheckedChange:o,className:"shrink-0"})]})]}),e[14]=h,e[15]=i,e[16]=l,e[17]=o,e[18]=r,e[19]=y):y=e[19];let g;return e[20]!==S||e[21]!==y?(g=p.jsxs("div",{className:"space-y-4",children:[S,y]}),e[20]=S,e[21]=y,e[22]=g):g=e[22],g}const U=["type","title","description","canonical","favicon","image","themeColor"],Ke=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],ke=["jsonLD","title","description","noIndexing","configJsonLD"];function X(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ne(t){switch(t){case"general":return U;case"pdp":return Ke;case"plp":return ke;default:return null}}function ee(t,e){const n=Ne(X(e));if(!n||!t.properties)return t;const s={};for(const o of n){const i=t.properties[o];i&&(s[o]=i)}return{...t,properties:s}}function $e(){return U.filter(t=>t!=="type")}function Ae(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function we(t,e){return t[e]===void 0}function Ie(t){const e=O.c(13),{schema:n,value:s,onChange:o,siteDefaultSeo:i,formResetKey:r}=t,c=V(),d=ee(n,C).properties??{},h=$e();let a;e[0]!==i?(a=!!i&&Object.keys(i).length>0,e[0]=i,e[1]=a):a=e[1];const u=a,[m,S]=G.useState(r);let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y={},e[2]=y):y=e[2];const[g,v]=G.useState(y);m!==r&&(S(r),v({}));let b;e[3]!==g||e[4]!==s?(b=f=>g[f]!==void 0?g[f]:we(s,f),e[3]=g,e[4]=s,e[5]=b):b=e[5];const _=b;let T;e[6]!==o||e[7]!==i||e[8]!==s?(T=(f,R)=>{v(j=>({...j,[f]:R}));const F={...s};if(R)delete F[f];else{const j=i?.[f];F[f]=j??(f==="type"?"website":"")}o(F)},e[6]=o,e[7]=i,e[8]=s,e[9]=T):T=e[9];const P=T,x="min-w-0 space-y-6",E=U.map(f=>{const R=d[f];if(!R)return null;const F=u&&h.includes(f),j=F&&_(f),te=j?i?.[f]??s[f]:s[f],ne=R.title??Ae(f);return p.jsxs("div",{className:"space-y-2",children:[p.jsx("div",{className:oe(j&&"pointer-events-none opacity-60"),children:ue({schema:R,value:te,onChange:A=>{j||o({...s,[f]:A})},path:f,label:ne,required:f==="type",breadcrumbPath:[],onBreadcrumbChange:Ye})}),F&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(w,{id:`seo-use-default-${f}`,checked:j,onCheckedChange:A=>P(f,A)}),p.jsx(B,{htmlFor:`seo-use-default-${f}`,className:"text-xs font-normal text-muted-foreground",children:c("sectionsEditor.generalSeoForm.useDefault")})]})]},f)});let D;return e[10]!==r||e[11]!==E?(D=p.jsx("div",{className:x,children:E},r),e[10]=r,e[11]=E,e[12]=D):D=e[12],D}function Ye(){}function Ve(t){const e=O.c(18),{schema:n,resolveType:s,value:o,formResetKey:i,onChange:r,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(X(s)==="general"){let y;e[0]!==r?(y=v=>r(v),e[0]=r,e[1]=y):y=e[1];let g;return e[2]!==i||e[3]!==n||e[4]!==l||e[5]!==y||e[6]!==o?(g=p.jsx(Ie,{schema:n,value:o,onChange:y,siteDefaultSeo:l,formResetKey:i}),e[2]=i,e[3]=n,e[4]=l,e[5]=y,e[6]=o,e[7]=g):g=e[7],g}let h;e[8]!==s||e[9]!==n?(h=ee(n,s),e[8]=s,e[9]=n,e[10]=h):h=e[10];const a=h;let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=[],e[11]=u):u=e[11];const m=c??Be;let S;return e[12]!==a||e[13]!==i||e[14]!==r||e[15]!==m||e[16]!==o?(S=p.jsx(fe,{schema:a,value:o,onChange:r,basePath:"",breadcrumbPath:u,onBreadcrumbChange:m},i),e[12]=a,e[13]=i,e[14]=r,e[15]=m,e[16]=o,e[17]=S):S=e[17],S}function Be(){}function Me(t){const e=O.c(20),{options:n,value:s,onChange:o}=t,i=V();if(n.length<=1)return null;let r;e[0]!==i?(r=i("sectionsEditor.seoTypeSelect.label"),e[0]=i,e[1]=r):r=e[1];let c;e[2]!==r?(c=p.jsx(B,{className:"text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=c):c=e[3];let l;e[4]!==i?(l=i("sectionsEditor.seoTypeSelect.placeholder"),e[4]=i,e[5]=l):l=e[5];let d;e[6]!==l?(d=p.jsx(de,{className:"w-full",children:p.jsx(ye,{placeholder:l})}),e[6]=l,e[7]=d):d=e[7];let h;e[8]!==n?(h=n.filter(ze).map(Ue),e[8]=n,e[9]=h):h=e[9];let a;e[10]!==h?(a=p.jsx(he,{children:h}),e[10]=h,e[11]=a):a=e[11];let u;e[12]!==o||e[13]!==d||e[14]!==a||e[15]!==s?(u=p.jsxs(me,{value:s,onValueChange:o,children:[d,a]}),e[12]=o,e[13]=d,e[14]=a,e[15]=s,e[16]=u):u=e[16];let m;return e[17]!==c||e[18]!==u?(m=p.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[c,u]}),e[17]=c,e[18]=u,e[19]=m):m=e[19],m}function Ue(t){return p.jsx(pe,{value:t.resolveType,children:t.title},t.resolveType)}function ze(t){return t.resolveType.length>0}function et(t){const e=O.c(33),{rawSeo:n,innerSeo:s,defaultResolveType:o,seoSchema:i,activeResolveType:r,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:h,onPersistRaw:a,onInnerChange:u,onClearForm:m,onBumpFormKey:S,beforeFields:y}=t;let g;e[0]!==o||e[1]!==S||e[2]!==m||e[3]!==a?(g=f=>{if(f){const R=ge(o);a(R),m(),S();return}a(null),m(),S()},e[0]=o,e[1]=S,e[2]=m,e[3]=a,e[4]=g):g=e[4];const v=g;let b;e[5]!==a||e[6]!==n?(b=f=>{const R=ve(f,n);a(R)},e[5]=a,e[6]=n,e[7]=b):b=e[7];const _=b;let T;e[8]!==S||e[9]!==u?(T=f=>{u({__resolveType:f}),S()},e[8]=S,e[9]=u,e[10]=T):T=e[10];const P=T;let x;e[11]!==r||e[12]!==P||e[13]!==n||e[14]!==i||e[15]!==c?(x=N(n)&&i&&r&&c&&c.length>0&&p.jsx(Me,{options:c,value:r,onChange:P}),e[11]=r,e[12]=P,e[13]=n,e[14]=i,e[15]=c,e[16]=x):x=e[16];let E;e[17]!==r||e[18]!==l||e[19]!==s||e[20]!==h||e[21]!==u||e[22]!==n||e[23]!==i||e[24]!==d?(E=N(n)&&i&&r&&p.jsx(Ve,{schema:i,resolveType:r,value:s,formResetKey:l,onChange:f=>u(f),onBreadcrumbChange:h,siteDefaultSeo:d}),e[17]=r,e[18]=l,e[19]=s,e[20]=h,e[21]=u,e[22]=n,e[23]=i,e[24]=d,e[25]=E):E=e[25];let D;return e[26]!==y||e[27]!==_||e[28]!==v||e[29]!==n||e[30]!==x||e[31]!==E?(D=p.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:_,children:[y,x,E]}),e[26]=y,e[27]=_,e[28]=v,e[29]=n,e[30]=x,e[31]=E,e[32]=D):D=e[32],D}export{et as P,Ve as S,Je as a,Fe as b,Xe as c,H as d,Ce as f,N as i,He as r,I as u};
@@ -1 +0,0 @@
1
- import{c as ne,b as ce,r as ue,x as we,n as Z,j as t,B as ae}from"./index-C2e0PKbG.js";import{i as Te}from"./AlertCircle-CEae1uhC.js";import{c as ze}from"./UserSquare-DLmOZ-KA.js";import{w as Pe}from"./agent-icon-DHs-6pCm.js";import{i as Ee}from"./ChevronRight-CgAkolPx.js";import{s as Ae}from"./Plus-CoP6L2hk.js";import{a as _e,b as Me,A as Ie}from"./alert-59GrEthk.js";import{B as Le}from"./automation-runs-vIkYpjEv.js";import{_ as Oe,bM as Ue,as as He,bH as $e,bI as Re,bN as Be,bG as be,bK as he,bO as Fe,bP as Ke}from"./index-DT3JBqpR.js";import"./Tool01-cFhHzNlQ.js";import"./ArrowUp-DvLj1Yir.js";import"./ArrowLeft-BuwLOd6U.js";import"./Tool02-6uCneSGU.js";import"./XCircle-DKa2fDUo.js";import"./TrendUp01-DTFytCG8.js";import"./ZapSquare-lEOVMKsK.js";import"./Users03-CFcxcAHk.js";import"./CheckCircle-B1K_NLcg.js";import"./Check-DzIWDSUl.js";import"./ChevronDown-BgZE4xRe.js";import"./ChevronSelectorVertical-Dw397LVR.js";import"./ChevronUp-BTVDLk21.js";import"./DotsVertical-Bp9Eoa1l.js";import"./Stars02-BRTKYlY7.js";import"./Copy01-Lb9FASYv.js";import"./CreditCard01-CD7q6Dfu.js";import"./Download01-1CGe2HqK.js";import"./Settings02-Dt5iXjmd.js";import"./Eye-CxgFziiX.js";import"./FilterLines-BaHGWDco.js";import"./Share07-CES-lR0w.js";import"./Globe01-CB8SzdUm.js";import"./Globe04--VrGgFPe.js";import"./SwitchHorizontal01-CcRMoc4G.js";import"./HardDrive-B-Pzoa-K.js";import"./Key01-APQXat0l.js";import"./LinkExternal01-BecPvCEX.js";import"./LockUnlocked01-CiQCCmkp.js";import"./LogOut01-CDFiTGut.js";import"./Monitor01-BQZWVxBb.js";import"./Sun-DmhKmGoO.js";import"./Palette-BVZgLJCB.js";import"./Play-D5eSZsgf.js";import"./SearchLg-BgRlG5wl.js";import"./SearchMd-BgNDxst6.js";import"./Shield01-Ckr0CXcj.js";import"./Stars01-CZHa1wG3.js";import"./Trash01-3DOOzrXC.js";import"./Upload01-bkmkd0Oy.js";import"./User01-Ca8dp473.js";import"./Users01-LKnSwR83.js";import"./XClose-DjsajqK1.js";import"./Zap-DbVkB7V9.js";import"./select-BR8metsL.js";import"./useInfiniteQuery-yyhUTgSy.js";import"./use-infinite-scroll-CWtSKvq6.js";import"./use-connection-4jED9yq-.js";import"./use-mcp-client-Cll5rmN-.js";import"./constants-_08zpzmT.js";import"./auth-CDJktmRv.js";import"./use-virtual-mcp-D04UN4OF.js";import"./table-D3gF_YIW.js";import"./empty-state-p68nOBgH.js";import"./use-members-n1XYDwqh.js";import"./use-org-auth-client-BtiAtI9u.js";import"./use-clock-tick-B8gdkHLP.js";import"./use-automations-BGkDkVNw.js";import"./useSuspenseInfiniteQuery-keWsE91S.js";import"./avatar-Chc0pGfc.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dla-5nN5.js";import"./dialog-B_Yo0zLl.js";import"./tab-id-DfhH4pcg.js";import"./hooks-CPr5EU39.js";import"./decopilot-sse-pool-B5rC4Sp4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-CZWMhJUR.js";import"./session-runtime-wVXsCwcJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-B-3JoHuK.js";import"./use-decopilot-events-DG8KjCOy.js";import"./use-organization-settings-SkJwSdGF.js";import"./monaco-editor-CAJhNo3M.js";import"./spinner-Dm0Ec7XH.js";import"./types-9qOaizG3.js";import"./shell-layout-B4XV3Pk0.js";import"./required-auth-layout-BGUUKuY5.js";import"./use-org-sso-CNy-8P49.js";import"./integration-icon-CEE1gfwv.js";import"./use-navigate-to-agent-DcVHHvW8.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CP-H3lBv.js";import"./index-C0RFo7jI.js";import"./form-CWuSdM-E.js";import"./label-b_VH9dS0.js";import"./input-Dvg-q7zZ.js";import"./file-type-icon-4ILChaRO.js";import"./drawer-BWhcwlAU.js";import"./collection-search-BY9vC5GI.js";import"./tabs-DNU9uubZ.js";import"./toggle-group-Be0OOlcQ.js";import"./use-commerce-diagnostic-CURG88FB.js";import"./popover-CThnLHOx.js";import"./self-tool-result-C015H85R.js";import"./alert-dialog-B3JtJ-MY.js";import"./extract-connection-data-DC_rLlfS.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D25rJTsS.js";import"./authenticate-and-persist-oauth-C-UGi48J.js";import"./mcp-oauth-rRtIbhyb.js";import"./track-DsrR5Shd.js";import"./toolbar-DJ3DOccP.js";import"./github-repo-picker-D9_bSbhh.js";import"./use-mcp-tools-Dr020OrW.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-lZJegbZE.js";import"./use-registry-connections-B1gbzBko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BChO2eZA.js";import"./connection-form-helpers-Dh1Fmq8R.js";import"./collection-tabs-CYssF2Pe.js";import"./badge-CpzknPex.js";import"./command-CX03u_Rc.js";import"./index-C2lKb2N2.js";import"./select-model-Bui8_ENH.js";import"./checkbox-B3ID1MwL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-CL8FPhnk.js";import"./dropdown-menu-6ZdFCCbd.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-L5g_Fs-5.js";import"./use-file-configs-CiqW_sIJ.js";import"./pt-BR-CLy76QW2.js";import"./switch-ldvu1ch5.js";import"./use-debounced-autosave-BvNbEt7H.js";import"./search-input-BF2xp1bX.js";import"./index-CXh4JzJ2.js";import"./use-secrets-D78WIhbb.js";import"./AreaChart-BQbgsWv6.js";import"./task-key-DXFgZRz5.js";import"./sprints-CmH0A5lG.js";import"./use-tags-Cg7-QAvQ.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C6sfzgNJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OyBz2ep6.js";const je="border-success/30 bg-success/10 text-success hover:bg-success/20",ye="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Ge(u){const e=ne.c(17),{support:x}=u,i=ce(),o=x.kind==="unsupported-runtime";let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Te,{}),e[0]=l):l=e[0];const a=o?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.outdatedAppsTitle";let c;e[1]!==i||e[2]!==a?(c=i(a),e[1]=i,e[2]=a,e[3]=c):c=e[3];let s;e[4]!==c?(s=t.jsx(_e,{children:c}),e[4]=c,e[5]=s):s=e[5];let d;e[6]!==o||e[7]!==i?(d=o?i("sandbox.postCalendar.unsupportedRuntimeDescription"):i("sandbox.postCalendar.outdatedAppsDescription",{required:Fe}),e[6]=o,e[7]=i,e[8]=d):d=e[8];let r;e[9]!==d?(r=t.jsx(Me,{children:d}),e[9]=d,e[10]=r):r=e[10];let n;e[11]!==o?(n=!o&&t.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:Ke}),e[11]=o,e[12]=n):n=e[12];let m;return e[13]!==s||e[14]!==r||e[15]!==n?(m=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/30 p-6",children:t.jsxs(Ie,{variant:"warning",className:"max-w-md bg-background/95 shadow-lg backdrop-blur",children:[l,t.jsxs("div",{children:[s,r,n]})]})}),e[13]=s,e[14]=r,e[15]=n,e[16]=m):m=e[16],m}function Uo(u){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=u,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Oe(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=ue.useState(null),[C]=we(),[b,w]=ue.useState(Ve),h=C.language;let D;e[2]!==b||e[3]!==h?(D=new Intl.DateTimeFormat(h,{month:"long",year:"numeric"}).format(b),e[2]=b,e[3]=h,e[4]=D):D=e[4];const f=D;let j,N,T,z,k,P,E,A,_,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==f||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ne=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ce,undated:me}=Ue(He(x)),de=$e(b),De=Re(new Date);z="flex h-full w-full flex-col";let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=()=>w(be(new Date)),e[28]=te):te=e[28];let $;e[29]!==r?($=r("sandbox.postCalendar.today"),e[29]=r,e[30]=$):$=e[30];let R;e[31]!==$?(R=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:$}),e[31]=$,e[32]=R):R=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(qe),e[33]=re):re=e[33];let B;e[34]!==r?(B=r("sandbox.postCalendar.previous"),e[34]=r,e[35]=B):B=e[35];let oe;e[36]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(Pe,{size:16}),e[36]=oe):oe=e[36];let F;e[37]!==B?(F=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:re,"aria-label":B,children:oe}),e[37]=B,e[38]=F):F=e[38];let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=()=>w(We),e[39]=se):se=e[39];let K;e[40]!==r?(K=r("sandbox.postCalendar.next"),e[40]=r,e[41]=K):K=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Ee,{size:16}),e[42]=ie):ie=e[42];let G;e[43]!==K?(G=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":K,children:ie}),e[43]=K,e[44]=G):G=e[44];let W;e[45]!==f?(W=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:f}),e[45]=f,e[46]=W):W=e[46];let q;e[47]!==r?(q=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=q):q=e[48];let V;e[49]!==q?(V=t.jsx(xe,{className:je,label:q}),e[49]=q,e[50]=V):V=e[50];let J;e[51]!==r?(J=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=J):J=e[52];let Q;e[53]!==J?(Q=t.jsx(xe,{className:ye,label:J}),e[53]=J,e[54]=Q):Q=e[54];let X;e[55]!==V||e[56]!==Q?(X=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[V,Q]}),e[55]=V,e[56]=Q,e[57]=X):X=e[57],e[58]!==R||e[59]!==F||e[60]!==G||e[61]!==W||e[62]!==X?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[R,F,G,W,X]}),e[58]=R,e[59]=F,e[60]=G,e[61]=W,e[62]=X,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Le;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=Z("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,_="flex min-w-[880px] gap-4 p-4";let Y;e[66]!==r?(Y=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Y):Y=e[67];let le;e[68]!==Y?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Y}),e[68]=Y,e[69]=le):le=e[69],M=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:de[0]?.map(p=>t.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ve.format(p)},p.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:de.flat().map(p=>{const ke=p.getMonth()===b.getMonth(),Se=Ce.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const fe=v.dataTransfer.getData("text/plain");y(null),fe&&c(fe,p)},className:Z("group/day min-h-28 space-y-1 p-2 transition-colors",ke?"bg-background":"bg-muted/40",g&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:Z("grid size-6 place-items-center rounded-full text-xs",p.getTime()===De.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:p.getDate()}),m&&t.jsx(ae,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:d,onClick:()=>a(p),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ne.format(p)}),children:t.jsx(Ae,{size:14})})]}),Se.map(v=>t.jsx(ge,{entry:v,active:v.post.key===o,draggable:m&&v.scheduled,onSelect:l,onDragStateChange:y},v.post.key))]},p.getTime())})}),le]}),P="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",E=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),A=me.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(ze,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):me.map(p=>t.jsx(ge,{entry:p,active:p.post.key===o,draggable:!1,onSelect:l,onDragStateChange:y},p.post.key)),e[5]=m,e[6]=b,e[7]=x,e[8]=g,e[9]=d,e[10]=h,e[11]=f,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=N,e[19]=T,e[20]=z,e[21]=k,e[22]=P,e[23]=E,e[24]=A,e[25]=_,e[26]=M,e[27]=S}else j=e[17],N=e[18],T=e[19],z=e[20],k=e[21],P=e[22],E=e[23],A=e[24],_=e[25],M=e[26],S=e[27];let I;e[70]!==P||e[71]!==E||e[72]!==A?(I=t.jsxs("div",{className:P,children:[E,A]}),e[70]=P,e[71]=E,e[72]=A,e[73]=I):I=e[73];let L;e[74]!==I||e[75]!==_||e[76]!==M?(L=t.jsxs("div",{className:_,children:[M,I]}),e[74]=I,e[75]=_,e[76]=M,e[77]=L):L=e[77];let O;e[78]!==j||e[79]!==N||e[80]!==L||e[81]!==S?(O=t.jsx(j,{className:S,inert:N,children:L}),e[78]=j,e[79]=N,e[80]=L,e[81]=S,e[82]=O):O=e[82];let U;e[83]!==m||e[84]!==i?(U=!m&&t.jsx(Ge,{support:i}),e[83]=m,e[84]=i,e[85]=U):U=e[85];let H;e[86]!==T||e[87]!==O||e[88]!==U?(H=t.jsxs("div",{className:T,children:[O,U]}),e[86]=T,e[87]=O,e[88]=U,e[89]=H):H=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==H?(ee=t.jsxs("div",{className:z,children:[k,H]}),e[90]=z,e[91]=k,e[92]=H,e[93]=ee):ee=e[93],ee}function We(u){return he(u,1)}function qe(u){return he(u,-1)}function Ve(){return be(new Date)}function xe(u){const e=ne.c(7),{className:x,label:i}=u;let o;e[0]!==x?(o=Z("size-3 rounded-sm border",x),e[0]=x,e[1]=o):o=e[1];let l;e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3];let a;return e[4]!==i||e[5]!==l?(a=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,i]}),e[4]=i,e[5]=l,e[6]=a):a=e[6],a}function ge(u){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=u,c=ce(),{post:s,scheduled:d}=x,r=d?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let n;e[0]!==c||e[1]!==r?(n=c(r),e[0]=c,e[1]=r,e[2]=n):n=e[2];const m=n;let g;e[3]!==a||e[4]!==s.key?(g=N=>{N.dataTransfer.setData("text/plain",s.key),N.dataTransfer.effectAllowed="move",a(s.key)},e[3]=a,e[4]=s.key,e[5]=g):g=e[5];let y;e[6]!==a?(y=()=>a(null),e[6]=a,e[7]=y):y=e[7];let C;e[8]!==l||e[9]!==s.key?(C=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=C):C=e[10];const b=`${s.title} · ${m}`,w=d?je:ye,h=o&&"cursor-grab active:cursor-grabbing",D=i&&"ring-2 ring-primary";let f;e[11]!==w||e[12]!==h||e[13]!==D?(f=Z("w-full truncate rounded-md border px-2 py-1 text-left text-xs font-medium transition-colors",w,h,D),e[11]=w,e[12]=h,e[13]=D,e[14]=f):f=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==f||e[18]!==g||e[19]!==y||e[20]!==C||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:C,title:b,className:f,children:s.title}),e[15]=o,e[16]=s.title,e[17]=f,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{Uo as PostCalendar};
@@ -1 +0,0 @@
1
- import{c as B,b as L,j as r}from"./index-C2e0PKbG.js";import{I as A}from"./input-Dvg-q7zZ.js";import{L as F}from"./label-b_VH9dS0.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-BR8metsL.js";import{T as G}from"./textarea-BChO2eZA.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-DT3JBqpR.js";import{s as P}from"./primitives-71eYG7TZ.js";import{u as H}from"./use-autosave-6KjI_5n5.js";import"./Check-DzIWDSUl.js";import"./ChevronDown-BgZE4xRe.js";import"./ChevronUp-BTVDLk21.js";import"./ArrowUp-DvLj1Yir.js";import"./chat-context-CZWMhJUR.js";import"./tab-id-DfhH4pcg.js";import"./dialog-B_Yo0zLl.js";import"./Copy01-Lb9FASYv.js";import"./Download01-1CGe2HqK.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CPr5EU39.js";import"./use-mcp-client-Cll5rmN-.js";import"./constants-_08zpzmT.js";import"./auth-CDJktmRv.js";import"./decopilot-sse-pool-B5rC4Sp4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-D04UN4OF.js";import"./use-ai-providers-B-3JoHuK.js";import"./use-decopilot-events-DG8KjCOy.js";import"./use-organization-settings-SkJwSdGF.js";import"./automation-runs-vIkYpjEv.js";import"./agent-icon-DHs-6pCm.js";import"./AlertCircle-CEae1uhC.js";import"./Tool01-cFhHzNlQ.js";import"./ArrowLeft-BuwLOd6U.js";import"./Tool02-6uCneSGU.js";import"./XCircle-DKa2fDUo.js";import"./TrendUp01-DTFytCG8.js";import"./ZapSquare-lEOVMKsK.js";import"./Users03-CFcxcAHk.js";import"./UserSquare-DLmOZ-KA.js";import"./CheckCircle-B1K_NLcg.js";import"./ChevronRight-CgAkolPx.js";import"./ChevronSelectorVertical-Dw397LVR.js";import"./DotsVertical-Bp9Eoa1l.js";import"./Stars02-BRTKYlY7.js";import"./CreditCard01-CD7q6Dfu.js";import"./Settings02-Dt5iXjmd.js";import"./Eye-CxgFziiX.js";import"./FilterLines-BaHGWDco.js";import"./Share07-CES-lR0w.js";import"./Globe01-CB8SzdUm.js";import"./Globe04--VrGgFPe.js";import"./SwitchHorizontal01-CcRMoc4G.js";import"./HardDrive-B-Pzoa-K.js";import"./Key01-APQXat0l.js";import"./LinkExternal01-BecPvCEX.js";import"./LockUnlocked01-CiQCCmkp.js";import"./LogOut01-CDFiTGut.js";import"./Monitor01-BQZWVxBb.js";import"./Sun-DmhKmGoO.js";import"./Palette-BVZgLJCB.js";import"./Play-D5eSZsgf.js";import"./Plus-CoP6L2hk.js";import"./SearchLg-BgRlG5wl.js";import"./SearchMd-BgNDxst6.js";import"./Shield01-Ckr0CXcj.js";import"./Stars01-CZHa1wG3.js";import"./Trash01-3DOOzrXC.js";import"./Upload01-bkmkd0Oy.js";import"./User01-Ca8dp473.js";import"./Users01-LKnSwR83.js";import"./XClose-DjsajqK1.js";import"./Zap-DbVkB7V9.js";import"./useInfiniteQuery-yyhUTgSy.js";import"./use-infinite-scroll-CWtSKvq6.js";import"./use-connection-4jED9yq-.js";import"./table-D3gF_YIW.js";import"./empty-state-p68nOBgH.js";import"./use-members-n1XYDwqh.js";import"./use-org-auth-client-BtiAtI9u.js";import"./use-clock-tick-B8gdkHLP.js";import"./use-automations-BGkDkVNw.js";import"./useSuspenseInfiniteQuery-keWsE91S.js";import"./avatar-Chc0pGfc.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dla-5nN5.js";import"./monaco-editor-CAJhNo3M.js";import"./spinner-Dm0Ec7XH.js";import"./types-9qOaizG3.js";import"./shell-layout-B4XV3Pk0.js";import"./required-auth-layout-BGUUKuY5.js";import"./use-org-sso-CNy-8P49.js";import"./integration-icon-CEE1gfwv.js";import"./use-navigate-to-agent-DcVHHvW8.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CP-H3lBv.js";import"./index-C0RFo7jI.js";import"./form-CWuSdM-E.js";import"./file-type-icon-4ILChaRO.js";import"./drawer-BWhcwlAU.js";import"./collection-search-BY9vC5GI.js";import"./tabs-DNU9uubZ.js";import"./toggle-group-Be0OOlcQ.js";import"./use-commerce-diagnostic-CURG88FB.js";import"./popover-CThnLHOx.js";import"./self-tool-result-C015H85R.js";import"./alert-dialog-B3JtJ-MY.js";import"./extract-connection-data-DC_rLlfS.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D25rJTsS.js";import"./authenticate-and-persist-oauth-C-UGi48J.js";import"./mcp-oauth-rRtIbhyb.js";import"./track-DsrR5Shd.js";import"./toolbar-DJ3DOccP.js";import"./github-repo-picker-D9_bSbhh.js";import"./use-mcp-tools-Dr020OrW.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-lZJegbZE.js";import"./use-registry-connections-B1gbzBko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-Dh1Fmq8R.js";import"./collection-tabs-CYssF2Pe.js";import"./badge-CpzknPex.js";import"./command-CX03u_Rc.js";import"./index-C2lKb2N2.js";import"./select-model-Bui8_ENH.js";import"./checkbox-B3ID1MwL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-CL8FPhnk.js";import"./dropdown-menu-6ZdFCCbd.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-L5g_Fs-5.js";import"./use-file-configs-CiqW_sIJ.js";import"./pt-BR-CLy76QW2.js";import"./switch-ldvu1ch5.js";import"./use-debounced-autosave-BvNbEt7H.js";import"./search-input-BF2xp1bX.js";import"./index-CXh4JzJ2.js";import"./use-secrets-D78WIhbb.js";import"./AreaChart-BQbgsWv6.js";import"./task-key-DXFgZRz5.js";import"./sprints-CmH0A5lG.js";import"./use-tags-Cg7-QAvQ.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C6sfzgNJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OyBz2ep6.js";const Q={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"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Dr(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=J(h);let g;t[4]!==f||t[5]!==a?(g=M(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:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(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=U[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(X,{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=Q[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(q,{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(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{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(G,{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{Dr as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as pt,b as at,j as r}from"./index-C2e0PKbG.js";import{C as ct}from"./checkbox-B3ID1MwL.js";import{I as rt}from"./input-Dvg-q7zZ.js";import{L as et}from"./label-b_VH9dS0.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-BR8metsL.js";import{G as ut,bQ as bt,K as yt,bR as jt,bS as vt}from"./index-DT3JBqpR.js";import{u as gt}from"./use-autosave-6KjI_5n5.js";import"./Check-DzIWDSUl.js";import"./ChevronDown-BgZE4xRe.js";import"./ChevronUp-BTVDLk21.js";import"./ArrowUp-DvLj1Yir.js";import"./chat-context-CZWMhJUR.js";import"./tab-id-DfhH4pcg.js";import"./dialog-B_Yo0zLl.js";import"./Copy01-Lb9FASYv.js";import"./Download01-1CGe2HqK.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CPr5EU39.js";import"./use-mcp-client-Cll5rmN-.js";import"./constants-_08zpzmT.js";import"./auth-CDJktmRv.js";import"./decopilot-sse-pool-B5rC4Sp4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-D04UN4OF.js";import"./use-ai-providers-B-3JoHuK.js";import"./use-decopilot-events-DG8KjCOy.js";import"./use-organization-settings-SkJwSdGF.js";import"./automation-runs-vIkYpjEv.js";import"./agent-icon-DHs-6pCm.js";import"./AlertCircle-CEae1uhC.js";import"./Tool01-cFhHzNlQ.js";import"./ArrowLeft-BuwLOd6U.js";import"./Tool02-6uCneSGU.js";import"./XCircle-DKa2fDUo.js";import"./TrendUp01-DTFytCG8.js";import"./ZapSquare-lEOVMKsK.js";import"./Users03-CFcxcAHk.js";import"./UserSquare-DLmOZ-KA.js";import"./CheckCircle-B1K_NLcg.js";import"./ChevronRight-CgAkolPx.js";import"./ChevronSelectorVertical-Dw397LVR.js";import"./DotsVertical-Bp9Eoa1l.js";import"./Stars02-BRTKYlY7.js";import"./CreditCard01-CD7q6Dfu.js";import"./Settings02-Dt5iXjmd.js";import"./Eye-CxgFziiX.js";import"./FilterLines-BaHGWDco.js";import"./Share07-CES-lR0w.js";import"./Globe01-CB8SzdUm.js";import"./Globe04--VrGgFPe.js";import"./SwitchHorizontal01-CcRMoc4G.js";import"./HardDrive-B-Pzoa-K.js";import"./Key01-APQXat0l.js";import"./LinkExternal01-BecPvCEX.js";import"./LockUnlocked01-CiQCCmkp.js";import"./LogOut01-CDFiTGut.js";import"./Monitor01-BQZWVxBb.js";import"./Sun-DmhKmGoO.js";import"./Palette-BVZgLJCB.js";import"./Play-D5eSZsgf.js";import"./Plus-CoP6L2hk.js";import"./SearchLg-BgRlG5wl.js";import"./SearchMd-BgNDxst6.js";import"./Shield01-Ckr0CXcj.js";import"./Stars01-CZHa1wG3.js";import"./Trash01-3DOOzrXC.js";import"./Upload01-bkmkd0Oy.js";import"./User01-Ca8dp473.js";import"./Users01-LKnSwR83.js";import"./XClose-DjsajqK1.js";import"./Zap-DbVkB7V9.js";import"./useInfiniteQuery-yyhUTgSy.js";import"./use-infinite-scroll-CWtSKvq6.js";import"./use-connection-4jED9yq-.js";import"./table-D3gF_YIW.js";import"./empty-state-p68nOBgH.js";import"./use-members-n1XYDwqh.js";import"./use-org-auth-client-BtiAtI9u.js";import"./use-clock-tick-B8gdkHLP.js";import"./use-automations-BGkDkVNw.js";import"./useSuspenseInfiniteQuery-keWsE91S.js";import"./avatar-Chc0pGfc.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dla-5nN5.js";import"./monaco-editor-CAJhNo3M.js";import"./spinner-Dm0Ec7XH.js";import"./types-9qOaizG3.js";import"./shell-layout-B4XV3Pk0.js";import"./required-auth-layout-BGUUKuY5.js";import"./use-org-sso-CNy-8P49.js";import"./integration-icon-CEE1gfwv.js";import"./use-navigate-to-agent-DcVHHvW8.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CP-H3lBv.js";import"./index-C0RFo7jI.js";import"./form-CWuSdM-E.js";import"./file-type-icon-4ILChaRO.js";import"./drawer-BWhcwlAU.js";import"./collection-search-BY9vC5GI.js";import"./tabs-DNU9uubZ.js";import"./toggle-group-Be0OOlcQ.js";import"./use-commerce-diagnostic-CURG88FB.js";import"./popover-CThnLHOx.js";import"./self-tool-result-C015H85R.js";import"./alert-dialog-B3JtJ-MY.js";import"./extract-connection-data-DC_rLlfS.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D25rJTsS.js";import"./authenticate-and-persist-oauth-C-UGi48J.js";import"./mcp-oauth-rRtIbhyb.js";import"./track-DsrR5Shd.js";import"./toolbar-DJ3DOccP.js";import"./github-repo-picker-D9_bSbhh.js";import"./use-mcp-tools-Dr020OrW.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-lZJegbZE.js";import"./use-registry-connections-B1gbzBko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BChO2eZA.js";import"./connection-form-helpers-Dh1Fmq8R.js";import"./collection-tabs-CYssF2Pe.js";import"./badge-CpzknPex.js";import"./command-CX03u_Rc.js";import"./index-C2lKb2N2.js";import"./select-model-Bui8_ENH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-CL8FPhnk.js";import"./dropdown-menu-6ZdFCCbd.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-L5g_Fs-5.js";import"./use-file-configs-CiqW_sIJ.js";import"./pt-BR-CLy76QW2.js";import"./switch-ldvu1ch5.js";import"./use-debounced-autosave-BvNbEt7H.js";import"./search-input-BF2xp1bX.js";import"./index-CXh4JzJ2.js";import"./use-secrets-D78WIhbb.js";import"./AreaChart-BQbgsWv6.js";import"./task-key-DXFgZRz5.js";import"./sprints-CmH0A5lG.js";import"./use-tags-Cg7-QAvQ.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C6sfzgNJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OyBz2ep6.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function di(it){const t=pt.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]=gt(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 l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=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]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,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 g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,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 lt=o.type;let R;t[66]!==m?(R=i=>m({type:i}),t[66]=m,t[67]=R):R=t[67];let w;t[68]!==e?(w=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=w):w=t[69];let I;t[70]!==w?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:w})}),t[70]=w,t[71]=I):I=t[71];let Q;t[72]!==e?(Q=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=Q):Q=t[73];let _;t[74]!==Q?(_=r.jsx(xt,{children:Q}),t[74]=Q,t[75]=_):_=t[75];let K;t[76]!==o.type||t[77]!==R||t[78]!==I||t[79]!==_?(K=r.jsxs(ht,{value:lt,onValueChange:R,children:[I,_]}),t[76]=o.type,t[77]=R,t[78]=I,t[79]=_,t[80]=K):K=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 L;t[83]!==k||t[84]!==K?(L=r.jsxs("div",{className:"space-y-2",children:[k,K,q]}),t[83]=k,t[84]=K,t[85]=L):L=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,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]!==L||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,L,O]})}),t[98]=y,t[99]=C,t[100]=L,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{di as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CtvYuw8V.js","assets/index-C2e0PKbG.js","assets/index-DfOjcoHJ.css","assets/Tool02-6uCneSGU.js","assets/CheckCircle-B1K_NLcg.js","assets/Settings02-Dt5iXjmd.js","assets/use-mcp-client-Cll5rmN-.js","assets/constants-_08zpzmT.js","assets/auth-CDJktmRv.js","assets/useInfiniteQuery-yyhUTgSy.js","assets/use-infinite-scroll-CWtSKvq6.js","assets/badge-CpzknPex.js","assets/input-Dvg-q7zZ.js","assets/dropdown-menu-6ZdFCCbd.js","assets/Check-DzIWDSUl.js","assets/ChevronRight-CgAkolPx.js","assets/DotsVertical-Bp9Eoa1l.js","assets/table-D3gF_YIW.js","assets/toggle-group-Be0OOlcQ.js","assets/use-view-mode-Sb1ZfxCj.js","assets/FilterLines-BaHGWDco.js","assets/Globe01-CB8SzdUm.js","assets/SearchMd-BgNDxst6.js","assets/dialog-B_Yo0zLl.js","assets/AlertCircle-CEae1uhC.js","assets/Download01-1CGe2HqK.js","assets/Upload01-bkmkd0Oy.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-B3JtJ-MY.js","assets/Trash01-3DOOzrXC.js","assets/label-b_VH9dS0.js","assets/select-BR8metsL.js","assets/ChevronDown-BgZE4xRe.js","assets/ChevronUp-BTVDLk21.js","assets/switch-ldvu1ch5.js","assets/textarea-BChO2eZA.js","assets/ArrowLeft-BuwLOd6U.js","assets/XCircle-DKa2fDUo.js","assets/checkbox-B3ID1MwL.js","assets/Eye-CxgFziiX.js","assets/LinkExternal01-BecPvCEX.js","assets/use-copy-Dla-5nN5.js","assets/Copy01-Lb9FASYv.js","assets/Key01-APQXat0l.js","assets/Plus-CoP6L2hk.js","assets/mcp-oauth-rRtIbhyb.js","assets/Play-D5eSZsgf.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,k as a,bc as o}from"./index-C2e0PKbG.js";import{R as c}from"./require-capability-DQ8G7iDt.js";import"./access-gate-B98__zsY.js";import"./capability-load-error-Dte2p87T.js";const n=s.lazy(()=>o(()=>import("./registry-layout-CtvYuw8V.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(c,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,2 +0,0 @@
1
- import{c as We,b as ut,r as T,n as ze,j as n,aC as Zn,ab as _t,a8 as jt,B as Ze,a9 as Et,k as es,p as Ko,t as Y,K as Fo}from"./index-C2e0PKbG.js";import{b as Io}from"./chat-context-CZWMhJUR.js";import{aw as ts,ax as Oo,ay as $o,az as zo,aA as Ho,ab as ns,ac as Xt,aB as ss,aC as os,ad as as,ae as rs,aD as is,aE as Uo,al as ls,am as cs,aF as Go,aG as qo,aH as us,P as Wo,af as ds,ag as Bt,aj as ms,ak as fs,ah as ps,ar as gs,aI as Jo,aJ as Lt,aK as hs,aL as Yo,S as vs,aM as ct,H as bs,aN as Qo,aO as Xo,aP as Zo,aQ as ea,F as ta,G as na,aR as sa,aS as oa,aT as aa,aU as ra,ap as qt,aV as Wt,aW as ia,aX as xt,aY as Ct,aZ as la,a_ as ca,a$ as st,b0 as Kn,b1 as ua,b2 as At,b3 as Jt,b4 as da,b5 as fn,b6 as ma,b7 as Tt,b8 as fa,b9 as pa,ba as ga,bb as ha,bc as va,bd as yt,be as ba,bf as Sa,bg as xa,J as ya,bh as Fn,bi as Mt,bj as In,bk as On,bl as _a,bm as ja,bn as Ea,bo as Ra,bp as pn,bq as $n,br as zn,bs as Nt,bt as Yt,bu as Hn,bv as wa,bw as gn,bx as ka,by as Ta,bz as Na,bA as Va,bB as Da}from"./index-DT3JBqpR.js";import{t as Pa}from"./ChevronDown-BgZE4xRe.js";import{ah as vn,x as Ca,V as Ss,G as Aa,w as xs,ao as Ma,r as Ba}from"./agent-icon-DHs-6pCm.js";import{i as ys}from"./ChevronRight-CgAkolPx.js";import{n as La}from"./ChevronUp-BTVDLk21.js";import{i as Ka}from"./Globe01-CB8SzdUm.js";import{B as Qt}from"./automation-runs-vIkYpjEv.js";import{b as Fa,h as Ia,a as Oa,c as $a,d as za,e as Ha}from"./dialog-B_Yo0zLl.js";import{I as Ua}from"./input-Dvg-q7zZ.js";import{a as _s}from"./Copy01-Lb9FASYv.js";import{i as Ga}from"./Settings02-Dt5iXjmd.js";import{s as qa}from"./Eye-CxgFziiX.js";import{s as js}from"./TrendUp01-DTFytCG8.js";import{s as bn}from"./Plus-CoP6L2hk.js";import{s as Es}from"./Trash01-3DOOzrXC.js";import{i as Wa}from"./Zap-DbVkB7V9.js";import{D as Rs,a as bt,c as ws,b as ks,i as Ja}from"./dropdown-menu-6ZdFCCbd.js";import{S as Ya,r as Un,u as Qa,d as Xa,a as Za,i as er,f as tr,P as nr,b as sr}from"./page-seo-form-Cq_TIFx6.js";import{b as or}from"./Tool01-cFhHzNlQ.js";import{u as ar,A as rr}from"./use-section-preview-base-CntPzeG0.js";import"./tab-id-DfhH4pcg.js";import"./Check-DzIWDSUl.js";import"./Download01-1CGe2HqK.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CPr5EU39.js";import"./use-mcp-client-Cll5rmN-.js";import"./constants-_08zpzmT.js";import"./auth-CDJktmRv.js";import"./decopilot-sse-pool-B5rC4Sp4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-D04UN4OF.js";import"./use-ai-providers-B-3JoHuK.js";import"./use-decopilot-events-DG8KjCOy.js";import"./use-organization-settings-SkJwSdGF.js";import"./ArrowUp-DvLj1Yir.js";import"./spinner-Dm0Ec7XH.js";import"./drawer-BWhcwlAU.js";import"./collection-search-BY9vC5GI.js";import"./SearchMd-BgNDxst6.js";import"./chart-CP-H3lBv.js";import"./index-C0RFo7jI.js";import"./shell-layout-B4XV3Pk0.js";import"./avatar-Chc0pGfc.js";import"./User01-Ca8dp473.js";import"./Users03-CFcxcAHk.js";import"./SearchLg-BgRlG5wl.js";import"./Stars02-BRTKYlY7.js";import"./XClose-DjsajqK1.js";import"./CheckCircle-B1K_NLcg.js";import"./FilterLines-BaHGWDco.js";import"./Monitor01-BQZWVxBb.js";import"./required-auth-layout-BGUUKuY5.js";import"./use-org-sso-CNy-8P49.js";import"./XCircle-DKa2fDUo.js";import"./Upload01-bkmkd0Oy.js";import"./AlertCircle-CEae1uhC.js";import"./form-CWuSdM-E.js";import"./label-b_VH9dS0.js";import"./select-BR8metsL.js";import"./UserSquare-DLmOZ-KA.js";import"./ArrowLeft-BuwLOd6U.js";import"./tabs-DNU9uubZ.js";import"./Tool02-6uCneSGU.js";import"./toggle-group-Be0OOlcQ.js";import"./use-commerce-diagnostic-CURG88FB.js";import"./popover-CThnLHOx.js";import"./self-tool-result-C015H85R.js";import"./alert-dialog-B3JtJ-MY.js";import"./integration-icon-CEE1gfwv.js";import"./extract-connection-data-DC_rLlfS.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D25rJTsS.js";import"./LinkExternal01-BecPvCEX.js";import"./authenticate-and-persist-oauth-C-UGi48J.js";import"./mcp-oauth-rRtIbhyb.js";import"./track-DsrR5Shd.js";import"./toolbar-DJ3DOccP.js";import"./github-repo-picker-D9_bSbhh.js";import"./use-connection-4jED9yq-.js";import"./LockUnlocked01-CiQCCmkp.js";import"./use-mcp-tools-Dr020OrW.js";import"./use-navigate-to-agent-DcVHHvW8.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-lZJegbZE.js";import"./use-registry-connections-B1gbzBko.js";import"./useInfiniteQuery-yyhUTgSy.js";import"./use-infinite-scroll-CWtSKvq6.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BChO2eZA.js";import"./connection-form-helpers-Dh1Fmq8R.js";import"./collection-tabs-CYssF2Pe.js";import"./badge-CpzknPex.js";import"./useSuspenseInfiniteQuery-keWsE91S.js";import"./command-CX03u_Rc.js";import"./index-C2lKb2N2.js";import"./use-clock-tick-B8gdkHLP.js";import"./DotsVertical-Bp9Eoa1l.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-model-Bui8_ENH.js";import"./checkbox-B3ID1MwL.js";import"./ChevronSelectorVertical-Dw397LVR.js";import"./Key01-APQXat0l.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Stars01-CZHa1wG3.js";import"./cards-CL8FPhnk.js";import"./Share07-CES-lR0w.js";import"./Palette-BVZgLJCB.js";import"./file-type-icon-4ILChaRO.js";import"./question-004-sINsf4GQ.js";import"./use-members-n1XYDwqh.js";import"./use-org-auth-client-BtiAtI9u.js";import"./use-status-sounds-L5g_Fs-5.js";import"./empty-state-p68nOBgH.js";import"./ZapSquare-lEOVMKsK.js";import"./types-9qOaizG3.js";import"./use-file-configs-CiqW_sIJ.js";import"./monaco-editor-CAJhNo3M.js";import"./pt-BR-CLy76QW2.js";import"./switch-ldvu1ch5.js";import"./Play-D5eSZsgf.js";import"./use-debounced-autosave-BvNbEt7H.js";import"./search-input-BF2xp1bX.js";import"./index-CXh4JzJ2.js";import"./Users01-LKnSwR83.js";import"./use-secrets-D78WIhbb.js";import"./AreaChart-BQbgsWv6.js";import"./task-key-DXFgZRz5.js";import"./sprints-CmH0A5lG.js";import"./use-copy-Dla-5nN5.js";import"./SwitchHorizontal01-CcRMoc4G.js";import"./use-tags-Cg7-QAvQ.js";import"./get-initials-D-f_fDFw.js";import"./use-automations-BGkDkVNw.js";import"./automation-list-row-C6sfzgNJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OyBz2ep6.js";import"./CreditCard01-CD7q6Dfu.js";import"./Globe04--VrGgFPe.js";import"./HardDrive-B-Pzoa-K.js";import"./LogOut01-CDFiTGut.js";import"./Sun-DmhKmGoO.js";import"./Shield01-Ckr0CXcj.js";import"./table-D3gF_YIW.js";function ir(m){return m.schema?.definitions??m.schema?.$defs??{}}function Ts(m,e){const a=ir(e),l=a[btoa(m)];if(!l)return[];const d=[l];if(Array.isArray(l.allOf)){const h=l.allOf.find(b=>typeof b.$ref=="string")?.$ref;if(typeof h=="string"){const b=a[h.replace("#/definitions/","")];b&&d.push(b)}}return d}function lr(m,e){for(const a of Ts(m,e)){const l=typeof a.image=="string"?a.image:void 0;if(l?.includes("{{{"))return l}}function cr(m,e){if(!e)return;const a=ts(m);if(!a)return;const l=lr(a.resolveType,e);if(!l)return;const d=Oo(l,a.data);if(d)return $o(d)}const ur={escape:Ho};function dr(m,e){for(const a of Ts(m,e)){const l=typeof a.title=="string"?a.title:void 0;if(l?.includes("{{"))return l}}function mr(m,e){if(!e)return;const a=ts(m);if(a)try{const l=dr(a.resolveType,e);return l&&zo.render(l,a.data,{},ur).trim()||void 0}catch{return}}const fr="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",pr="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 Gn(m){return Array.from({length:m},(e,a)=>({id:crypto.randomUUID(),index:a}))}function Ns(m){return m.map((e,a)=>({...e,index:a}))}function gr(m,e){if(e===m.length)return m;if(e<m.length)return Ns(m.slice(0,e));const a=Array.from({length:e-m.length},(l,d)=>({id:crypto.randomUUID(),index:m.length+d}));return[...m,...a]}function Vs(m){const e=We.c(25),{section:a,raw:l,meta:d}=m,h=a.isSavedBlock===!0,b=a.isMultivariate===!0;let p;e[0]!==d||e[1]!==l?(p=l&&d?cr(l,d):void 0,e[0]=d,e[1]=l,e[2]=p):p=e[2];const v=p;let f;e[3]!==d||e[4]!==b||e[5]!==l||e[6]!==h?(f=l&&d&&!h&&!b?mr(l,d):void 0,e[3]=d,e[4]=b,e[5]=l,e[6]=h,e[7]=f):f=e[7];const R=f;let V;e[8]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(Ca,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=V):V=e[8];let D;e[9]!==v?(D=v&&n.jsx("img",{src:v,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=v,e[10]=D):D=e[10];let j;e[11]!==b||e[12]!==h?(j=h?{color:Wo}:b?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=b,e[12]=h,e[13]=j):j=e[13];let i;e[14]!==j?(i=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:j}),e[14]=j,e[15]=i):i=e[15];const x=a.isHidden&&"line-through opacity-50";let E;e[16]!==x?(E=ze("min-w-0 flex-1 truncate text-sm font-medium",x),e[16]=x,e[17]=E):E=e[17];const c=R??a.label;let w;e[18]!==E||e[19]!==c?(w=n.jsx("span",{className:E,children:c}),e[18]=E,e[19]=c,e[20]=w):w=e[20];let r;return e[21]!==w||e[22]!==D||e[23]!==i?(r=n.jsxs(n.Fragment,{children:[V,D,i,w]}),e[21]=w,e[22]=D,e[23]=i,e[24]=r):r=e[24],r}const hr="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",vr="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]",br="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 ze("h-7 shrink-0 overflow-hidden",e?hr:m?br:vr)}function Ds(m,e){const a=m.isSavedBlock===!0,l=m.isMultivariate===!0;return ze("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":a?fr:l?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Sr(m){const e=We.c(82),{section:a,raw:l,meta:d,sortableId:h,selected:b,onSelect:p,onDelete:v,onDuplicate:f,onMakeReusable:R,onToggleHidden:V,onToggleLazy:D,onAddVariant:j,onDetach:i}=m,x=ut(),E=l?is(l.__resolveType??""):!1,c=a.isHidden===!0,w=E||c;let r;e[0]!==a?(r=Uo(a),e[0]=a,e[1]=r):r=e[1];const B=r;let I;e[2]!==h?(I={id:h,animateLayoutChanges:Er},e[2]=h,e[3]=I):I=e[3];const{attributes:X,listeners:K,setNodeRef:g,transform:L,isDragging:ke}=ls(I);let C;e[4]!==L?(C=cs.Transform.toString(L?{...L,x:0}:null),e[4]=L,e[5]=C):C=e[5];const te=ke?0:void 0;let P;e[6]!==C||e[7]!==te?(P={transform:C,opacity:te},e[6]=C,e[7]=te,e[8]=P):P=e[8];const ne=P;let O;e[9]!==a?(O=Go(a),e[9]=a,e[10]=O):O=e[10];const Ae=O,xe="button",Te=0;let W;e[11]!==p?(W=k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),p())},e[11]=p,e[12]=W):W=e[12];const de=ke?"cursor-grabbing":"cursor-pointer";let re;e[13]!==a||e[14]!==b||e[15]!==de?(re=ze("touch-none transition-colors",de,Ds(a,b)),e[13]=a,e[14]=b,e[15]=de,e[16]=re):re=e[16];let se;e[17]!==d||e[18]!==l||e[19]!==a?(se=n.jsx(Vs,{section:a,raw:l,meta:d}),e[17]=d,e[18]=l,e[19]=a,e[20]=se):se=e[20];const F=!a.isMultivariate&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":x(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:ze(hn(w,E)),onClick:k=>{k.stopPropagation(),D()},onPointerDown:jr,children:n.jsx(Wa,{className:ze("h-3.5 w-3.5",E&&"text-yellow-500")})})}),n.jsx(Et,{side:"bottom",children:x(E?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),Ye=!a.isMultivariate&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":x(c?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:ze(hn(w,c)),onClick:k=>{k.stopPropagation(),V()},onPointerDown:_r,children:c?n.jsx(Ga,{className:"h-3.5 w-3.5"}):n.jsx(qa,{className:"h-3.5 w-3.5"})})}),n.jsx(Et,{side:"bottom",children:x(c?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),Ke=ws,Fe=Rs,Be=!0,$=Ze,me="button",Ie="ghost",Me="icon";let ee;e[21]!==x?(ee=x("sectionsEditor.sectionList.sectionActionsMenu"),e[21]=x,e[22]=ee):ee=e[22];const ye=ze(hn(w,!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 ie;e[23]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Ss,{className:"h-3.5 w-3.5"}),e[23]=ie):ie=e[23];let le;e[24]!==$||e[25]!==ee||e[26]!==ye?(le=n.jsx($,{type:me,variant:Ie,size:Me,"aria-label":ee,className:ye,onClick:yr,onPointerDown:xr,children:ie}),e[24]=$,e[25]=ee,e[26]=ye,e[27]=le):le=e[27];let fe;e[28]!==Fe||e[29]!==le?(fe=n.jsx(Fe,{asChild:Be,children:le}),e[28]=Fe,e[29]=le,e[30]=fe):fe=e[30];let pe;e[31]!==f?(pe=k=>{k.stopPropagation(),f()},e[31]=f,e[32]=pe):pe=e[32];let ge;e[33]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(_s,{className:"h-4 w-4"}),e[33]=ge):ge=e[33];let _e;e[34]!==x?(_e=x("sectionsEditor.sectionList.duplicateMenuItem"),e[34]=x,e[35]=_e):_e=e[35];let je;e[36]!==pe||e[37]!==_e?(je=n.jsxs(bt,{onClick:pe,children:[ge,_e]}),e[36]=pe,e[37]=_e,e[38]=je):je=e[38];let ce;e[39]!==B||e[40]!==j||e[41]!==x?(ce=B&&n.jsxs(bt,{className:qo,onClick:k=>{k.stopPropagation(),j()},children:[n.jsx(js,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.addVariantMenuItem")]}),e[39]=B,e[40]=j,e[41]=x,e[42]=ce):ce=e[42];let z;e[43]!==Ae||e[44]!==R||e[45]!==x?(z=Ae&&n.jsxs(bt,{className:pr,onClick:k=>{k.stopPropagation(),R()},children:[n.jsx(vn,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[43]=Ae,e[44]=R,e[45]=x,e[46]=z):z=e[46];let Ee;e[47]!==i||e[48]!==a.isMultivariate||e[49]!==a.isSavedBlock||e[50]!==x?(Ee=a.isSavedBlock===!0&&!a.isMultivariate&&n.jsxs(bt,{onClick:k=>{k.stopPropagation(),i()},children:[n.jsx(vn,{className:"h-4 w-4"}),x("sectionsEditor.sectionList.detachMenuItem")]}),e[47]=i,e[48]=a.isMultivariate,e[49]=a.isSavedBlock,e[50]=x,e[51]=Ee):Ee=e[51];let he;e[52]!==v?(he=k=>{k.stopPropagation(),v()},e[52]=v,e[53]=he):he=e[53];let Re;e[54]===Symbol.for("react.memo_cache_sentinel")?(Re=n.jsx(Es,{className:"h-4 w-4"}),e[54]=Re):Re=e[54];let oe;e[55]!==x?(oe=x("sectionsEditor.sectionList.deleteMenuItem"),e[55]=x,e[56]=oe):oe=e[56];let Z;e[57]!==he||e[58]!==oe?(Z=n.jsxs(bt,{className:"text-destructive focus:text-destructive",onClick:he,children:[Re,oe]}),e[57]=he,e[58]=oe,e[59]=Z):Z=e[59];let ue;e[60]!==je||e[61]!==ce||e[62]!==z||e[63]!==Ee||e[64]!==Z?(ue=n.jsxs(ks,{align:"end",className:"w-44",children:[je,ce,z,Ee,Z]}),e[60]=je,e[61]=ce,e[62]=z,e[63]=Ee,e[64]=Z,e[65]=ue):ue=e[65];let ve;e[66]!==Ke||e[67]!==fe||e[68]!==ue?(ve=n.jsxs(Ke,{children:[fe,ue]}),e[66]=Ke,e[67]=fe,e[68]=ue,e[69]=ve):ve=e[69];let Ne;return e[70]!==X||e[71]!==K||e[72]!==p||e[73]!==g||e[74]!==ne||e[75]!==re||e[76]!==se||e[77]!==F||e[78]!==Ye||e[79]!==ve||e[80]!==W?(Ne=n.jsxs("div",{ref:g,style:ne,...X,...K,role:xe,tabIndex:Te,onClick:p,onKeyDown:W,className:re,children:[se,F,Ye,ve]}),e[70]=X,e[71]=K,e[72]=p,e[73]=g,e[74]=ne,e[75]=re,e[76]=se,e[77]=F,e[78]=Ye,e[79]=ve,e[80]=W,e[81]=Ne):Ne=e[81],Ne}function xr(m){return m.stopPropagation()}function yr(m){return m.stopPropagation()}function _r(m){return m.stopPropagation()}function jr(m){return m.stopPropagation()}function Er(){return!1}function Rr(m){const e=We.c(104),{listKey:a,rawSections:l,sections:d,meta:h,selectedIndex:b,onSelect:p,onReorder:v,onDelete:f,onDuplicate:R,onMakeReusable:V,onToggleHidden:D,onToggleLazy:j,onAddVariant:i,onDetach:x,onAddSection:E,canAddSection:c}=m,w=c===void 0?!0:c,r=ut();let B;e[0]!==d.length?(B=()=>Gn(d.length),e[0]=d.length,e[1]=B):B=e[1];const[I,X]=T.useState(B),[K,g]=T.useState(null),[L,ke]=T.useState(a),[C,te]=T.useState(d.length),P=T.useRef(!1);L!==a?(ke(a),te(d.length),X(Gn(d.length))):C!==d.length&&(te(d.length),X(Ne=>gr(Ne,d.length)));let ne;e[2]===Symbol.for("react.memo_cache_sentinel")?(ne={activationConstraint:{distance:8}},e[2]=ne):ne=e[2];let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O={coordinateGetter:ds},e[3]=O):O=e[3];const Ae=ns(Xt(rs,ne),Xt(as,O));let xe;e[4]!==I?(xe=I.map(wr),e[4]=I,e[5]=xe):xe=e[5];const Te=xe;let W;e[6]===Symbol.for("react.memo_cache_sentinel")?(W=Ne=>{g(String(Ne.active.id))},e[6]=W):W=e[6];const de=W;let re;e[7]!==Te||e[8]!==v?(re=Ne=>{g(null);const{active:k,over:be}=Ne;if(!be||k.id===be.id)return;const ae=Te.indexOf(String(k.id)),Ve=Te.indexOf(String(be.id));ae===-1||Ve===-1||(X(Oe=>Ns(Bt([...Oe],ae,Ve))),P.current=!0,requestAnimationFrame(()=>{P.current=!1}),v?.(ae,Ve))},e[7]=Te,e[8]=v,e[9]=re):re=e[9];const se=re;let F;e[10]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{g(null)},e[10]=F):F=e[10];const Ye=F;let Ke,Fe,Be,$,me,Ie,Me,ee,ye,ie,le,fe,pe,ge,_e;if(e[11]!==K||e[12]!==w||e[13]!==I||e[14]!==Te||e[15]!==se||e[16]!==h||e[17]!==E||e[18]!==i||e[19]!==f||e[20]!==x||e[21]!==R||e[22]!==V||e[23]!==p||e[24]!==D||e[25]!==j||e[26]!==l||e[27]!==d||e[28]!==b||e[29]!==Ae||e[30]!==r){ge=Symbol.for("react.early_return_sentinel");e:{const Ne=k=>{P.current||p(k)};if(e[46]!==K||e[47]!==w||e[48]!==I||e[49]!==E||e[50]!==l||e[51]!==d||e[52]!==r){const k=K?I.find(be=>be.id===K):null;if($=k!=null?d[k.index]:null,Be=k!=null?l[k.index]:void 0,I.length===0){let be;e[56]!==r?(be=r("sectionsEditor.sectionList.noSections"),e[56]=r,e[57]=be):be=e[57];let ae;e[58]!==be?(ae=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:be}),e[58]=be,e[59]=ae):ae=e[59];const Ve=!w;let Oe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Oe=n.jsx(bn,{size:14}),e[60]=Oe):Oe=e[60];let dt;e[61]!==r?(dt=r("sectionsEditor.sectionList.addSectionButton"),e[61]=r,e[62]=dt):dt=e[62];let De;e[63]!==E||e[64]!==Ve||e[65]!==dt?(De=n.jsxs(Ze,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ve,onClick:E,children:[Oe,dt]}),e[63]=E,e[64]=Ve,e[65]=dt,e[66]=De):De=e[66];let et;e[67]!==ae||e[68]!==De?(et=n.jsxs("div",{className:"space-y-2",children:[ae,De]}),e[67]=ae,e[68]=De,e[69]=et):et=e[69],ge=et;break e}pe=ze(k&&"cursor-grabbing"),e[46]=K,e[47]=w,e[48]=I,e[49]=E,e[50]=l,e[51]=d,e[52]=r,e[53]=Be,e[54]=$,e[55]=pe}else Be=e[53],$=e[54],pe=e[55];Fe=ms,ee=Ae,ye=fs,ie=de,le=se,fe=Ye,Ke=ps,Ie=Te,Me=gs,_e="space-y-1",me=I.map(k=>{const be=d[k.index];return be?n.jsx(Sr,{sortableId:k.id,section:be,raw:l[k.index],meta:h,selected:b===k.index,onSelect:()=>Ne(k.index),onDelete:()=>f(k.index),onDuplicate:()=>R(k.index),onMakeReusable:()=>V(k.index),onToggleHidden:()=>D(k.index),onToggleLazy:()=>j(k.index),onAddVariant:()=>i(k.index),onDetach:()=>x(k.index)},k.id):null})}e[11]=K,e[12]=w,e[13]=I,e[14]=Te,e[15]=se,e[16]=h,e[17]=E,e[18]=i,e[19]=f,e[20]=x,e[21]=R,e[22]=V,e[23]=p,e[24]=D,e[25]=j,e[26]=l,e[27]=d,e[28]=b,e[29]=Ae,e[30]=r,e[31]=Ke,e[32]=Fe,e[33]=Be,e[34]=$,e[35]=me,e[36]=Ie,e[37]=Me,e[38]=ee,e[39]=ye,e[40]=ie,e[41]=le,e[42]=fe,e[43]=pe,e[44]=ge,e[45]=_e}else Ke=e[31],Fe=e[32],Be=e[33],$=e[34],me=e[35],Ie=e[36],Me=e[37],ee=e[38],ye=e[39],ie=e[40],le=e[41],fe=e[42],pe=e[43],ge=e[44],_e=e[45];if(ge!==Symbol.for("react.early_return_sentinel"))return ge;let je;e[70]!==me||e[71]!==_e?(je=n.jsx("div",{className:_e,children:me}),e[70]=me,e[71]=_e,e[72]=je):je=e[72];let ce;e[73]!==Ke||e[74]!==Ie||e[75]!==Me||e[76]!==je?(ce=n.jsx(Ke,{items:Ie,strategy:Me,children:je}),e[73]=Ke,e[74]=Ie,e[75]=Me,e[76]=je,e[77]=ce):ce=e[77];let z;e[78]!==Be||e[79]!==$||e[80]!==h?(z=$?n.jsx("div",{className:ze("cursor-grabbing shadow-lg ring-1 ring-border/60",Ds($,!1)),children:n.jsx(Vs,{section:$,raw:Be,meta:h})}):null,e[78]=Be,e[79]=$,e[80]=h,e[81]=z):z=e[81];let Ee;e[82]!==z?(Ee=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:z}),document.body),e[82]=z,e[83]=Ee):Ee=e[83];let he;e[84]!==Fe||e[85]!==ee||e[86]!==ye||e[87]!==ie||e[88]!==le||e[89]!==fe||e[90]!==ce||e[91]!==Ee?(he=n.jsxs(Fe,{sensors:ee,collisionDetection:ye,onDragStart:ie,onDragEnd:le,onDragCancel:fe,children:[ce,Ee]}),e[84]=Fe,e[85]=ee,e[86]=ye,e[87]=ie,e[88]=le,e[89]=fe,e[90]=ce,e[91]=Ee,e[92]=he):he=e[92];const Re=!w;let oe;e[93]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(bn,{size:14}),e[93]=oe):oe=e[93];let Z;e[94]!==r?(Z=r("sectionsEditor.sectionList.addSectionButton"),e[94]=r,e[95]=Z):Z=e[95];let ue;e[96]!==E||e[97]!==Re||e[98]!==Z?(ue=n.jsxs(Ze,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:Re,onClick:E,children:[oe,Z]}),e[96]=E,e[97]=Re,e[98]=Z,e[99]=ue):ue=e[99];let ve;return e[100]!==pe||e[101]!==he||e[102]!==ue?(ve=n.jsxs("div",{className:pe,children:[he,ue]}),e[100]=pe,e[101]=he,e[102]=ue,e[103]=ve):ve=e[103],ve}function wr(m){return m.id}function qn(m){const e=We.c(57),{open:a,initialName:l,autoLabel:d,isPending:h,onSubmit:b,onOpenChange:p}=m,v=h===void 0?!1:h,f=ut(),[R,V]=T.useState(l),[D,j]=T.useState(a);a!==D&&(j(a),a&&V(l));let i;e[0]!==v||e[1]!==p?(i=de=>{!de&&!v&&p(!1)},e[0]=v,e[1]=p,e[2]=i):i=e[2];const x=i;let E;e[3]!==v||e[4]!==R||e[5]!==b?(E=async de=>{de.preventDefault(),!v&&await b(R.trim())},e[3]=v,e[4]=R,e[5]=b,e[6]=E):E=e[6];const c=E;let w;e[7]!==f?(w=f("sectionsEditor.variantRenameDialog.title"),e[7]=f,e[8]=w):w=e[8];let r;e[9]!==w?(r=n.jsx(Fa,{children:w}),e[9]=w,e[10]=r):r=e[10];let B;e[11]!==d||e[12]!==f?(B=f("sectionsEditor.variantRenameDialog.description",{fallback:d||f("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=d,e[12]=f,e[13]=B):B=e[13];let I;e[14]!==B?(I=n.jsx(Ia,{children:B}),e[14]=B,e[15]=I):I=e[15];let X;e[16]!==r||e[17]!==I?(X=n.jsxs(Oa,{children:[r,I]}),e[16]=r,e[17]=I,e[18]=X):X=e[18];let K;e[19]!==f?(K=f("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=f,e[20]=K):K=e[20];let g;e[21]!==K?(g=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:K}),e[21]=K,e[22]=g):g=e[22];let L;e[23]===Symbol.for("react.memo_cache_sentinel")?(L=de=>V(de.target.value),e[23]=L):L=e[23];let ke;e[24]!==d||e[25]!==v||e[26]!==R?(ke=n.jsx(Ua,{id:"variant-rename-name",value:R,onChange:L,placeholder:d,autoFocus:!0,disabled:v}),e[24]=d,e[25]=v,e[26]=R,e[27]=ke):ke=e[27];let C;e[28]!==g||e[29]!==ke?(C=n.jsxs("div",{className:"space-y-1.5 py-4",children:[g,ke]}),e[28]=g,e[29]=ke,e[30]=C):C=e[30];let te;e[31]!==p?(te=()=>p(!1),e[31]=p,e[32]=te):te=e[32];let P;e[33]!==f?(P=f("sectionsEditor.variantRenameDialog.cancel"),e[33]=f,e[34]=P):P=e[34];let ne;e[35]!==v||e[36]!==te||e[37]!==P?(ne=n.jsx(Ze,{type:"button",variant:"outline",onClick:te,disabled:v,children:P}),e[35]=v,e[36]=te,e[37]=P,e[38]=ne):ne=e[38];let O;e[39]!==v||e[40]!==f?(O=v?n.jsxs(n.Fragment,{children:[n.jsx(es,{size:14,className:"animate-spin"}),f("sectionsEditor.variantRenameDialog.saving")]}):f("sectionsEditor.variantRenameDialog.save"),e[39]=v,e[40]=f,e[41]=O):O=e[41];let Ae;e[42]!==v||e[43]!==O?(Ae=n.jsx(Ze,{type:"submit",disabled:v,children:O}),e[42]=v,e[43]=O,e[44]=Ae):Ae=e[44];let xe;e[45]!==ne||e[46]!==Ae?(xe=n.jsxs($a,{children:[ne,Ae]}),e[45]=ne,e[46]=Ae,e[47]=xe):xe=e[47];let Te;e[48]!==c||e[49]!==C||e[50]!==xe||e[51]!==X?(Te=n.jsx(za,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:c,children:[X,C,xe]})}),e[48]=c,e[49]=C,e[50]=xe,e[51]=X,e[52]=Te):Te=e[52];let W;return e[53]!==x||e[54]!==a||e[55]!==Te?(W=n.jsx(Ha,{open:a,onOpenChange:x,children:Te}),e[53]=x,e[54]=a,e[55]=Te,e[56]=W):W=e[56],W}function Ps(m){const e=We.c(5),{rule:a,matchers:l}=m,d=a?.__resolveType??"";let h;if(e[0]!==l||e[1]!==d){const f=l.find(R=>R.resolveType===d)?.iconName??Jo(d);h=Aa(f),e[0]=l,e[1]=d,e[2]=h}else h=e[2];const b=h;if(!b)return null;let p;return e[3]!==b?(p=n.jsx(b,{size:14,className:"shrink-0"}),e[3]=b,e[4]=p):p=e[4],p}function Wn(m){return m.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function Jn(m){return m.map((e,a)=>({id:crypto.randomUUID(),index:a,variant:e}))}function kr(m,e){const a=new Map;for(const l of m){const d=a.get(l.variant.label);d?d.push(l):a.set(l.variant.label,[l])}return e.map((l,d)=>({id:a.get(l.label)?.shift()?.id??crypto.randomUUID(),index:d,variant:l}))}function Tr(m){return m.map((e,a)=>({...e,index:a}))}function Cs(m){const e=We.c(17),{label:a,effectiveRule:l,matchers:d,canDelete:h,dragging:b,onRename:p,onDuplicate:v,onDelete:f}=m,R=ut();let V;e[0]!==l||e[1]!==d?(V=n.jsx(Ps,{rule:l,matchers:d}),e[0]=l,e[1]=d,e[2]=V):V=e[2];let D;e[3]!==a?(D=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:a}),e[3]=a,e[4]=D):D=e[4];let j;e[5]!==h||e[6]!==b||e[7]!==a||e[8]!==f||e[9]!==v||e[10]!==p||e[11]!==R?(j=!b&&n.jsxs(ws,{children:[n.jsx(Rs,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":R("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:a}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Vr,onPointerDown:Nr,children:n.jsx(Ss,{size:14})})}),n.jsxs(ks,{align:"end",className:"w-36",children:[n.jsxs(bt,{onClick:x=>{x.stopPropagation(),p?.()},children:[n.jsx(or,{size:14}),R("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(bt,{onClick:x=>{x.stopPropagation(),v?.()},children:[n.jsx(_s,{size:14}),R("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(Ja,{}),n.jsxs(bt,{variant:"destructive",disabled:!h,onClick:x=>{x.stopPropagation(),f?.()},children:[n.jsx(Es,{size:14}),R("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=h,e[6]=b,e[7]=a,e[8]=f,e[9]=v,e[10]=p,e[11]=R,e[12]=j):j=e[12];let i;return e[13]!==V||e[14]!==D||e[15]!==j?(i=n.jsxs(n.Fragment,{children:[V,D,j]}),e[13]=V,e[14]=D,e[15]=j,e[16]=i):i=e[16],i}function Nr(m){return m.stopPropagation()}function Vr(m){return m.stopPropagation()}function Dr(m){const e=We.c(33),{entry:a,isActive:l,canDelete:d,decofile:h,meta:b,matchers:p,onSelect:v,onRename:f,onDuplicate:R,onDelete:V}=m;let D;e[0]!==a.id?(D={id:a.id,animateLayoutChanges:Pr},e[0]=a.id,e[1]=D):D=e[1];const{attributes:j,listeners:i,setNodeRef:x,transform:E,isDragging:c}=ls(D);let w;e[2]!==E?(w=cs.Transform.toString(E?{...E,x:0}:null),e[2]=E,e[3]=w):w=e[3];const r=c?0:void 0;let B;e[4]!==w||e[5]!==r?(B={transform:w,opacity:r},e[4]=w,e[5]=r,e[6]=B):B=e[6];const I=B,X=b??void 0;let K;e[7]!==h||e[8]!==a.variant.rule||e[9]!==X?(K=Lt(a.variant.rule,h,X),e[7]=h,e[8]=a.variant.rule,e[9]=X,e[10]=K):K=e[10];const g=K;let L;e[11]!==v?(L=O=>{O.target===O.currentTarget&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),v())},e[11]=v,e[12]=L):L=e[12];const ke=c?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",C=l?hs:us;let te;e[13]!==ke||e[14]!==C?(te=ze("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",ke,C),e[13]=ke,e[14]=C,e[15]=te):te=e[15];let P;e[16]!==d||e[17]!==g||e[18]!==a.variant.label||e[19]!==p||e[20]!==V||e[21]!==R||e[22]!==f?(P=n.jsx(Cs,{label:a.variant.label,effectiveRule:g,matchers:p,canDelete:d,onRename:f,onDuplicate:R,onDelete:V}),e[16]=d,e[17]=g,e[18]=a.variant.label,e[19]=p,e[20]=V,e[21]=R,e[22]=f,e[23]=P):P=e[23];let ne;return e[24]!==j||e[25]!==i||e[26]!==v||e[27]!==x||e[28]!==I||e[29]!==te||e[30]!==P||e[31]!==L?(ne=n.jsx("div",{ref:x,style:I,...j,...i,onClick:v,onKeyDown:L,className:te,children:P}),e[24]=j,e[25]=i,e[26]=v,e[27]=x,e[28]=I,e[29]=te,e[30]=P,e[31]=L,e[32]=ne):ne=e[32],ne}function Pr(){return!1}function Cr(m){const e=We.c(9),{variant:a,decofile:l,meta:d,matchers:h}=m,b=d??void 0;let p;e[0]!==l||e[1]!==b||e[2]!==a.rule?(p=Lt(a.rule,l,b),e[0]=l,e[1]=b,e[2]=a.rule,e[3]=p):p=e[3];const v=p;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=ze("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",hs),e[4]=f):f=e[4];let R;return e[5]!==v||e[6]!==h||e[7]!==a.label?(R=n.jsx("div",{className:f,children:n.jsx(Cs,{label:a.label,effectiveRule:v,matchers:h,canDelete:!1,dragging:!0})}),e[5]=v,e[6]=h,e[7]=a.label,e[8]=R):R=e[8],R}function Ar(m){const e=We.c(91),{listKey:a,variants:l,activeIndex:d,decofile:h,meta:b,matchers:p,onSelect:v,onReorder:f,onRename:R,onDuplicate:V,onDelete:D,onAdd:j}=m,i=ut();let x;e[0]!==l?(x=()=>Jn(l),e[0]=l,e[1]=x):x=e[1];const[E,c]=T.useState(x),[w,r]=T.useState(null),[B,I]=T.useState(a),[X,K]=T.useState(l.length);let g;e[2]!==l?(g=()=>Wn(l),e[2]=l,e[3]=g):g=e[3];const[L,ke]=T.useState(g),C=T.useRef(!1),te=Wn(l);B!==a?(I(a),K(l.length),ke(te),c(Jn(l))):(X!==l.length||L!==te)&&(K(l.length),ke(te),c(he=>kr(he,l)));let P;e[4]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[4]=P):P=e[4];let ne;e[5]===Symbol.for("react.memo_cache_sentinel")?(ne={coordinateGetter:ds},e[5]=ne):ne=e[5];const O=ns(Xt(rs,P),Xt(as,ne));let Ae;e[6]!==E?(Ae=E.map(Mr),e[6]=E,e[7]=Ae):Ae=e[7];const xe=Ae,Te=l.length>1;let W;e[8]!==E?(W=he=>{const Re=String(he.active.id);r(E.find(oe=>oe.id===Re)??null)},e[8]=E,e[9]=W):W=e[9];const de=W;let re;e[10]!==xe||e[11]!==f?(re=he=>{r(null);const{active:Re,over:oe}=he;if(!oe||Re.id===oe.id)return;const Z=xe.indexOf(String(Re.id)),ue=xe.indexOf(String(oe.id));Z===-1||ue===-1||(c(ve=>Tr(Bt([...ve],Z,ue))),C.current=!0,requestAnimationFrame(()=>{C.current=!1}),f(Z,ue))},e[10]=xe,e[11]=f,e[12]=re):re=e[12];const se=re;let F;e[13]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{r(null)},e[13]=F):F=e[13];const Ye=F;let Ke,Fe,Be,$,me,Ie,Me,ee,ye,ie,le,fe,pe;if(e[14]!==d||e[15]!==Te||e[16]!==h||e[17]!==E||e[18]!==xe||e[19]!==se||e[20]!==de||e[21]!==p||e[22]!==b||e[23]!==j||e[24]!==D||e[25]!==V||e[26]!==R||e[27]!==v||e[28]!==O||e[29]!==i){const he=ae=>{C.current||v(ae)};le="space-y-1 border-b p-2";let Re;e[43]!==i?(Re=i("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=i,e[44]=Re):Re=e[44];let oe;e[45]!==Re?(oe=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Re}),e[45]=Re,e[46]=oe):oe=e[46];let Z;e[47]!==i?(Z=i("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=i,e[48]=Z):Z=e[48];let ue;e[49]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(bn,{size:14}),e[49]=ue):ue=e[49];let ve;e[50]!==j||e[51]!==Z?(ve=n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":Z,className:"size-6",onClick:j,children:ue})}),e[50]=j,e[51]=Z,e[52]=ve):ve=e[52];let Ne;e[53]!==i?(Ne=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=i,e[54]=Ne):Ne=e[54];let k;e[55]!==Ne?(k=n.jsx(Et,{children:Ne}),e[55]=Ne,e[56]=k):k=e[56];let be;e[57]!==ve||e[58]!==k?(be=n.jsxs(_t,{children:[ve,k]}),e[57]=ve,e[58]=k,e[59]=be):be=e[59],e[60]!==oe||e[61]!==be?(fe=n.jsxs("div",{className:"flex items-center justify-between",children:[oe,be]}),e[60]=oe,e[61]=be,e[62]=fe):fe=e[62],Fe=ms,Ie=O,Me=fs,ee=de,ye=se,ie=Ye,Ke=ps,$=xe,me=gs,pe="space-y-0.5",Be=E.map(ae=>n.jsx(Dr,{entry:ae,isActive:ae.index===d,canDelete:Te,decofile:h,meta:b,matchers:p,onSelect:()=>he(ae.index),onRename:()=>R(ae.index),onDuplicate:()=>V(ae.index),onDelete:()=>D(ae.index)},ae.id)),e[14]=d,e[15]=Te,e[16]=h,e[17]=E,e[18]=xe,e[19]=se,e[20]=de,e[21]=p,e[22]=b,e[23]=j,e[24]=D,e[25]=V,e[26]=R,e[27]=v,e[28]=O,e[29]=i,e[30]=Ke,e[31]=Fe,e[32]=Be,e[33]=$,e[34]=me,e[35]=Ie,e[36]=Me,e[37]=ee,e[38]=ye,e[39]=ie,e[40]=le,e[41]=fe,e[42]=pe}else Ke=e[30],Fe=e[31],Be=e[32],$=e[33],me=e[34],Ie=e[35],Me=e[36],ee=e[37],ye=e[38],ie=e[39],le=e[40],fe=e[41],pe=e[42];let ge;e[63]!==Be||e[64]!==pe?(ge=n.jsx("div",{className:pe,children:Be}),e[63]=Be,e[64]=pe,e[65]=ge):ge=e[65];let _e;e[66]!==Ke||e[67]!==$||e[68]!==me||e[69]!==ge?(_e=n.jsx(Ke,{items:$,strategy:me,children:ge}),e[66]=Ke,e[67]=$,e[68]=me,e[69]=ge,e[70]=_e):_e=e[70];let je;e[71]!==w||e[72]!==h||e[73]!==p||e[74]!==b?(je=w?n.jsx(Cr,{variant:w.variant,decofile:h,meta:b,matchers:p}):null,e[71]=w,e[72]=h,e[73]=p,e[74]=b,e[75]=je):je=e[75];let ce;e[76]!==je?(ce=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:je}),document.body),e[76]=je,e[77]=ce):ce=e[77];let z;e[78]!==Fe||e[79]!==Ie||e[80]!==Me||e[81]!==ee||e[82]!==ye||e[83]!==ie||e[84]!==_e||e[85]!==ce?(z=n.jsxs(Fe,{sensors:Ie,collisionDetection:Me,onDragStart:ee,onDragEnd:ye,onDragCancel:ie,children:[_e,ce]}),e[78]=Fe,e[79]=Ie,e[80]=Me,e[81]=ee,e[82]=ye,e[83]=ie,e[84]=_e,e[85]=ce,e[86]=z):z=e[86];let Ee;return e[87]!==le||e[88]!==fe||e[89]!==z?(Ee=n.jsxs("div",{className:le,children:[fe,z]}),e[87]=le,e[88]=fe,e[89]=z,e[90]=Ee):Ee=e[90],Ee}function Mr(m){return m.id}function Br(m){const e=We.c(16),{schema:a,value:l,onChange:d,meta:h,decofile:b,onSaveReferencedBlock:p,sandbox:v}=m,f=ut();let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R=[],e[0]=R):R=e[0];const[V,D]=T.useState(R);let j;e[1]!==V||e[2]!==f?(j=V.length>0&&n.jsxs("nav",{"aria-label":f("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[n.jsx("button",{type:"button",onClick:()=>D([]),className:"flex shrink-0 items-center gap-0.5 rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:f("sectionsEditor.sectionsEditorPanels.backToRule"),children:n.jsx(xs,{className:"size-3.5"})}),V.map((E,c)=>{const w=c===V.length-1,r=bs(E);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[c>0&&n.jsx(ys,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>D(V.slice(0,c+1)),title:r,className:ze("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",w?"font-medium text-foreground":"text-muted-foreground"),children:r})]},`${r}-${c}`)})]}),e[1]=V,e[2]=f,e[3]=j):j=e[3];let i;e[4]!==V||e[5]!==b||e[6]!==h||e[7]!==d||e[8]!==p||e[9]!==v||e[10]!==a||e[11]!==l?(i=n.jsx(vs,{schema:a,value:l,onChange:d,basePath:"",breadcrumbPath:V,onBreadcrumbChange:D,meta:h,decofile:b,onSaveReferencedBlock:p,sandbox:v}),e[4]=V,e[5]=b,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=a,e[11]=l,e[12]=i):i=e[12];let x;return e[13]!==j||e[14]!==i?(x=n.jsxs("div",{className:"space-y-2",children:[j,i]}),e[13]=j,e[14]=i,e[15]=x):x=e[15],x}function Yn(m){const e=We.c(23),{activeSchema:a,formValue:l,formResetKey:d,onFormChange:h,onBreadcrumbChange:b,breadcrumbPath:p,emptyMessage:v,beforeForm:f,seoResolveType:R,siteDefaultSeo:V,meta:D,decofile:j,onSaveReferencedBlock:i,sandbox:x,previewBaseUrl:E,onRequestAddSection:c}=m;let w;e[0]!==p?(w=p===void 0?[]:p,e[0]=p,e[1]=w):w=e[1];const r=w;let B;e[2]!==a||e[3]!==r||e[4]!==j||e[5]!==d||e[6]!==l||e[7]!==D||e[8]!==b||e[9]!==h||e[10]!==c||e[11]!==i||e[12]!==E||e[13]!==x||e[14]!==R||e[15]!==V?(B=a&&l?R?n.jsx(Ya,{schema:a,resolveType:R,value:l,formResetKey:d,onChange:h,onBreadcrumbChange:b,siteDefaultSeo:V}):n.jsx(vs,{schema:a,value:l,onChange:h,basePath:"",breadcrumbPath:r,onBreadcrumbChange:b,meta:D,decofile:j,onSaveReferencedBlock:i,sandbox:x,previewBaseUrl:E,onRequestAddSection:c},d):null,e[2]=a,e[3]=r,e[4]=j,e[5]=d,e[6]=l,e[7]=D,e[8]=b,e[9]=h,e[10]=c,e[11]=i,e[12]=E,e[13]=x,e[14]=R,e[15]=V,e[16]=B):B=e[16];const I=B;let X;e[17]!==v||e[18]!==I?(X=I??n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=I,e[19]=X):X=e[19];let K;return e[20]!==f||e[21]!==X?(K=n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsxs("div",{className:"mx-auto max-w-2xl",children:[f,X]})}),e[20]=f,e[21]=X,e[22]=K):K=e[22],K}const Lr="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function Kr(m,e){return Yo(m,e,ct)}function Fr(m){const e=We.c(19),{pageKey:a,initialName:l,initialPath:d,onFieldChange:h}=m,b=ut(),[p,v]=T.useState(l),[f,R]=T.useState(d),[V,D]=T.useState(a);V!==a&&(D(a),v(l),R(d));let j;e[0]!==h?(j=B=>{v(B.target.value),h("name",B.target.value)},e[0]=h,e[1]=j):j=e[1];let i;e[2]!==b?(i=b("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[2]=b,e[3]=i):i=e[3];let x;e[4]!==p||e[5]!==j||e[6]!==i?(x=n.jsx("input",{type:"text",value:p,onChange:j,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:i}),e[4]=p,e[5]=j,e[6]=i,e[7]=x):x=e[7];let E;e[8]!==h?(E=B=>{R(B.target.value),h("path",B.target.value)},e[8]=h,e[9]=E):E=e[9];let c;e[10]!==b?(c=b("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[10]=b,e[11]=c):c=e[11];let w;e[12]!==f||e[13]!==E||e[14]!==c?(w=n.jsx("input",{type:"text",value:f,onChange:E,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:c}),e[12]=f,e[13]=E,e[14]=c,e[15]=w):w=e[15];let r;return e[16]!==x||e[17]!==w?(r=n.jsxs("div",{className:"space-y-1",children:[x,w]}),e[16]=x,e[17]=w,e[18]=r):r=e[18],r}function Qn(m){const e=We.c(13),{onClick:a}=m,l=ut();let d;e[0]!==l?(d=l("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=l,e[1]=d):d=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(js,{size:14}),e[2]=h):h=e[2];let b;e[3]!==a||e[4]!==d?(b=n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":d,className:"size-7 shrink-0 text-[oklch(0.65_0.15_160)]",onClick:a,children:h})}),e[3]=a,e[4]=d,e[5]=b):b=e[5];let p;e[6]!==l?(p=l("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=l,e[7]=p):p=e[7];let v;e[8]!==p?(v=n.jsx(Et,{side:"bottom",children:p}),e[8]=p,e[9]=v):v=e[9];let f;return e[10]!==b||e[11]!==v?(f=n.jsxs(_t,{children:[b,v]}),e[10]=b,e[11]=v,e[12]=f):f=e[12],f}function Xn(m){const e=We.c(21),{currentRt:a,currentLabel:l,currentGlobalKey:d,matchers:h,globals:b,onSelect:p,onSelectGlobal:v,schema:f,formValue:R,onChange:V,formKey:D,formWrapperClassName:j,meta:i,decofile:x,onSaveReferencedBlock:E,sandbox:c}=m;let w;e[0]!==d||e[1]!==l||e[2]!==a||e[3]!==b||e[4]!==h||e[5]!==p||e[6]!==v?(w=n.jsx(Qo,{currentRt:a,currentLabel:l,currentGlobalKey:d,matchers:h,globals:b,onSelect:p,onSelectGlobal:v}),e[0]=d,e[1]=l,e[2]=a,e[3]=b,e[4]=h,e[5]=p,e[6]=v,e[7]=w):w=e[7];let r;e[8]!==x||e[9]!==D||e[10]!==R||e[11]!==j||e[12]!==i||e[13]!==V||e[14]!==E||e[15]!==c||e[16]!==f?(r=f&&R&&n.jsx("div",{className:j,children:n.jsx(Br,{schema:f,value:R,onChange:V,meta:i,decofile:x,onSaveReferencedBlock:E,sandbox:c},D)}),e[8]=x,e[9]=D,e[10]=R,e[11]=j,e[12]=i,e[13]=V,e[14]=E,e[15]=c,e[16]=f,e[17]=r):r=e[17];let B;return e[18]!==w||e[19]!==r?(B=n.jsxs(n.Fragment,{children:[w,r]}),e[18]=w,e[19]=r,e[20]=B):B=e[20],B}function Nc({orgSlug:m,virtualMcpId:e,branch:a,previewReady:l=!0,previewUrl:d,currentPath:h,activePageBlockKey:b=null,activeGlobalBlockKey:p=null,externalSelection:v,onSaved:f,initialEditSeo:R=!1,onExitSeo:V,onViewJsonFile:D,onVariantPreviewOverride:j}){const i=ut(),x=Io()?.taskId??null,E=l?{orgSlug:m,virtualMcpId:e,branch:a,threadId:x,previewUrl:d}:null,{data:c,isLoading:w}=Xo(E),{data:r,isLoading:B}=Zo(E),I=ea(),X=I?.entity?.id===e?I.entity.metadata?.siteSlug??null:null,K=ar({virtualMcpId:e,sandboxUrl:d}),[g,L]=T.useState(null),[ke,C]=T.useState(null),[te,P]=T.useState(null),[ne,O]=T.useState(0),[Ae,xe]=T.useState(void 0),[Te,W]=T.useState(null),[de,re]=T.useState(null),[se,F]=T.useState([]),Ye=T.useRef(null),[Ke,Fe]=T.useState(se.length);Ke!==se.length&&(Fe(se.length),requestAnimationFrame(()=>{Ye.current&&(Ye.current.scrollTop=0)}));const[Be,$]=T.useState(0),[me,Ie]=T.useState(null),[Me,ee]=T.useState(null),[ye,ie]=T.useState(null),[le,fe]=T.useState(!0),[pe,ge]=T.useState(!1),[_e,je]=T.useState(!1),ce=T.useRef(null),[z,Ee]=T.useState(R),[he,Re]=T.useState(R);R&&!he&&(Re(!0),Ee(!0),L(null),C(null),P(null),F([])),!R&&he&&Re(!1);const[oe,Z]=T.useState(null),[ue,ve]=T.useState(void 0),[Ne,k]=T.useState([]),[be,ae]=T.useState(0),[Ve,Oe]=T.useState(0),[dt,De]=T.useState(null),[et,qe]=T.useState(null),[Sn,xn]=T.useState(null),As=Ko(),Ms=`${m}/${e}/${a}`,Zt=ta({orgSlug:m,virtualMcpId:e,branch:a}),[Bs,Ls]=T.useState(h),[Ks,Fs]=T.useState(b),[Is,Os]=T.useState(p);(Bs!==h||Ks!==b||Is!==p)&&(queueMicrotask(()=>Zt.flush()),Ls(h),Fs(b),Os(p),L(null),C(null),P(null),O(0),W(null),re(null),Oe(0),De(null),qe(null),F([]),$(t=>t+1),Ee(!1),Z(null),ve(void 0),k([]),ae(t=>t+1));const Pe=na({orgSlug:m,virtualMcpId:e,branch:a}),Kt=ya((t,s)=>{Pe.mutate({blockKey:t,data:s},{onSuccess:()=>f?.(),onError:o=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})}),en=sa({orgSlug:m,virtualMcpId:e,branch:a}),[Vt,Ft]=T.useState(!1),He=T.useRef(null),ot=T.useRef(null),at=T.useRef(null),tn=T.useRef({}),tt=T.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!l||w||B)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(es,{size:20,className:"animate-spin text-muted-foreground"})});if(!c||!r)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const $s=oa(c),Ce=!!p,Je=Ce?null:aa($s,h,b),N=Ce?p:Je?.key??null,nn=Ce&&p?c[p]:void 0,yn=Ce&&p&&nn?ra(p,nn):Ce&&p?p:"",It=!Ce&&N&&c[N]?c[N]:null,sn=z&&c&&r&&N&&Je?Un(c,{kind:"page",pageKey:N,pageName:String(Je.name??""),path:String(Je.path??"")},r):null,zs=z?It?.seo:void 0,on=ue!==void 0?ue:zs,Hs=z?Qa(on):void 0,Us=sn?.seoTypeOptions??[],Gs=z&&r?Xa(r):"",_n=oe??Hs??{},an=z&&sn?Za(_n,sn):null,qs=z&&an&&er(on)?qt(an,r):null,Ws=z?tr(c,r)?.seoData:void 0,Ge=Ce?[{label:"Default",sections:[{__resolveType:p}]}]:Kr(It?.sections,c??{}),Ot=Ge.length>1,$e=Math.min(ne,Ge.length-1),mt=Ge[$e],G=mt?.sections??[],Ue=Wt(G,c),jn=!Ce&&ia(It?.sections);if(Ce&&p&&Sn!==p){xn(p);const t=G[0],s=Ue[0];if(t&&s){L(0),Oe(0),F([]);const o=xt(t,s,c);o&&(C(o.data),P(o.resolveType),qe(null),De(null))}}!Ce&&Sn!==null&&xn(null),tt.current={rawSections:G,parsedSections:Ue,decofile:c??{},activePageKey:N,pageVariants:Ge,variantIndex:$e,sectionVariantIndex:Ve,selectedSectionIndex:g};const Js=()=>({multivariate:jn,index:$e,variants:Ge.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!j)return;if(!N||!jn||t.length<=1){j(null);return}const o=Hn(N,{multivariate:!0,index:s,variants:t},c,r);j(o.length>0?o:null)},Rt=(t,s,o)=>{if(!j)return;if(!N){j(null);return}const u=Js(),S=Hn(N,u,c,r);if(!t||s<0){j(S.length>0?S:null);return}const _=wa({pageKey:N,page:u,sectionIndex:s,sectionLazy:Ue[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:o,decofile:c,meta:r}),y=[...S,..._];j(y.length>0?y:null)},ft=(t,s,o,u=g??-1,S=!1)=>{const _=st(t,s);if(!_){C(null),P(null),qe(null),De(null),S&&Rt(null,u,o);return}const A=Kn(_,ct)[o];if(!A){C(null),P(null),qe(null),De(null),S&&Rt(null,u,o);return}const Q=fa(A.value,c);C(Q?.data??null),P(Q?.resolveType??null);const{resolveType:M,formValue:H}=Ct(A.rule,c,r??void 0);qe(M),De(H),S&&Rt(_,u,o)},Dt=v?.index;if(v!==void 0&&(v?.seq??null)!==Ae&&(xe(v?.seq??null),typeof Dt=="number")){const t=G[Dt],s=Ue[Dt];if(t&&s)if(L(Dt),Oe(0),F([]),$(o=>o+1),s.isMultivariate)ft(t,s,0,Dt);else{const o=xt(t,s,c);o?(C(o.data),P(o.resolveType)):(C(null),P(null)),qe(null),De(null)}}const $t={orgSlug:m,virtualMcpId:e,branch:a,threadId:x,previewUrl:d??void 0,siteSlug:X},rn=te&&r?qt(te,r):null,Qe=(t,s)=>{if(!N)return;He.current&&(clearTimeout(He.current),He.current=null),at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null);const o=Mt(c,N,t,$e,Ge);Pe.mutate({blockKey:N,data:o},{onSuccess:()=>s?.onSuccess?.()??f?.(),onError:u=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:u.message}))})},wt=()=>{L(null),C(null),P(null),Oe(0),De(null),qe(null),F([]),$(t=>t+1)},Ys=(t,s)=>{He.current&&clearTimeout(He.current);const o=tt.current.sectionVariantIndex;He.current=setTimeout(()=>{const{rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current,M=u[s];if(!M)return;const H=S[s];if(!H)return;if(H.isSavedBlock){const q=H.isLazy?M.section?.__resolveType??M.__resolveType:M.__resolveType;Pe.mutate({blockKey:q,data:t},{onSuccess:()=>f?.(),onError:J=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:J.message}))});return}if(!y)return;const U={..._[y]},we=[...u];if(H.isMultivariate){const q=st(M,H);if(!q||!y)return;const J=Ta(q,o,t);we[s]=yt(M,H,J)}else if(H.isHidden){const q=is(M.__resolveType),J=q?{...M.section}:{...M},Le=Array.isArray(J.variants)?[...J.variants]:[];Le[0]&&(Le[0]={...Le[0],value:t}),J.variants=Le,q?we[s]={...M,section:J}:we[s]=J}else H.isLazy?we[s]={...M,section:t}:we[s]=t;if(A.length>1){const q=U.sections,J=[...q?.variants??[]];J[Q]&&(J[Q]={...J[Q],value:we}),U.sections={...q,variants:J}}else U.sections=we;Pe.mutate({blockKey:y,data:U},{onSuccess:()=>f?.(),onError:q=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:q.message}))})},gn)},Qs=t=>{L(t),Oe(0),F([]),$(S=>S+1);const s=G[t],o=Ue[t];if(!s||!o)return;if(o.isMultivariate){ft(s,o,0,t);return}const u=xt(s,o,c);if(!u){C(null),P(null),qe(null),De(null),Rt(null,t,0);return}C(u.data),P(u.resolveType),qe(null),De(null),Rt(null,t,0)},Rn=t=>{const s=t;C(s),g!==null&&Ys(s,g)},ln=t=>{if(!N||!c||!r||!Je)return;const s={kind:"page",pageKey:N,pageName:String(Je.name??""),path:String(Je.path??"")},o=Un(c,s,r);o&&Zt.save(N,()=>{const u=As.getQueryData(Fo.decofile(Ms))?.[N];if(!u||typeof u!="object"||u===null||Array.isArray(u))return null;const S={...u,...tn.current};return tn.current={},t?.raw!==void 0?{...S,seo:t.raw}:t?.inner!==void 0?sr(s,o,S,t.inner):S})},Xs=(t,s)=>{N&&(tn.current[t]=s,ln())},Zs=(t,s)=>{if(!N)return;const o=Bt([...G],t,s);g!==null&&(g===t?L(s):t<g&&s>=g?L(g-1):t>g&&s<=g&&L(g+1)),Qe(o)},eo=t=>{if(!N)return;const s=G.filter((o,u)=>u!==t);g===t?wt():g!==null&&g>t&&L(g-1),Qe(s)},to=t=>{if(!N)return;const s=G[t];if(!s)return;const o=[...G];o.splice(t+1,0,Ra(s)),g!==null&&g>t&&L(g+1),Qe(o)},no=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o||o.isMultivariate)return;const u=o.isHidden?ja(s):Ea(s);if(!u)return;const S=[...G];S[t]=u,g===t&&wt(),Qe(S)},so=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o||o.isMultivariate)return;const u=_a(s);if(!u)return;const S=[...G];S[t]=u,g===t&&wt(),Qe(S)},oo=t=>{if(!N)return;const s=G[t],o=Ue[t];if(!s||!o?.isSavedBlock)return;const u=xt(s,o,c);if(!u?.data)return;const{name:S,..._}=u.data,y=[...G];o.isLazy?y[t]={...s,section:_}:y[t]=_,g===t&&wt(),Qe(y)},ao=t=>{if(!N)return;const s=[...G,{__resolveType:t.resolveType}],o=s.length-1;Qe(s,{onSuccess:()=>{ge(!1),L(o),Oe(0),F([]),$(y=>y+1);const u=s[o],S=Wt(s,c)[o];if(!u||!S)return;if(S.isMultivariate){ft(u,S,0);return}const _=xt(u,S,c);if(!_){C(null),P(null),qe(null),De(null);return}C(_.data),P(_.resolveType),qe(null),De(null)}})},wn=t=>{ce.current=t.append,ge(!0)},ro=t=>{const s=ce.current;if(!s){ao(t);return}s({__resolveType:t.resolveType}),ge(!1),ce.current=null},io=t=>{if(g===null)return;const s=G[g],o=Ue[g];!s||!o?.isMultivariate||(Oe(t),F([]),$(u=>u+1),ft(s,o,t,g,!0))},lo=t=>{if(g===null||!N)return;const s=G[g],o=Ue[g];if(!s||!o?.isMultivariate)return;const u=st(s,o);if(!u)return;const S=Sa(u,t);if(!S){Y.error(i("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const _=[...G];_[g]=yt(s,o,S);const y=S.variants;let A=Ve;t===Ve?A=Math.min(t,y.length-1):t<Ve&&(A=Ve-1),Oe(A),F([]),$(Q=>Q+1),ft(_[g],o,A),Qe(_)},co=t=>{if(g===null||!N)return;const s=G[g],o=Ue[g];if(!s||!o?.isMultivariate)return;const u=st(s,o);if(!u)return;const S=xa(u,t),_=[...G];_[g]=yt(s,o,S);const y=t+1;Oe(y),F([]),$(A=>A+1),ft(_[g],o,y),Qe(_)},uo=(t,s)=>{if(g===null||!N||t===s)return;const o=G[g],u=Ue[g];if(!o||!u?.isMultivariate)return;const S=st(o,u);if(!S)return;const _=va(S,t,s),y=[...G];y[g]=yt(o,u,_);let A=Ve;Ve===t?A=s:t<Ve&&s>=Ve?A=Ve-1:t>Ve&&s<=Ve&&(A=Ve+1),Oe(A),ft(y[g],u,A),Qe(y)},cn=t=>{const s=t??g;if(s===null||!N)return;const o=G[s],u=Ue[s];if(!o||!u)return;const S=pa(o,u);if(!S){Y.error(i("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const _=[...G];_[s]=S.section;const y=Wt(_,c)[s];if(!y?.isMultivariate){Y.error(i("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}L(s),Oe(S.newVariantIndex),F([]),$(A=>A+1),ft(S.section,y,S.newVariantIndex,s),Qe(_)},mo=()=>{if(g===null||!N)return;const t=G[g],s=Ue[g];if(!t||!s?.isMultivariate)return;const o=st(t,s);if(!o)return;const u=ba(t,s,o);if(!u){Y.error(i("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const S=[...G];S[g]=u;const _=Wt(S,c)[g];if(!_)return;Oe(0),qe(null),De(null),F([]),$(A=>A+1);const y=xt(u,_,c);y?(C(y.data),P(y.resolveType)):(C(null),P(null)),Rt(null,g,0),Qe(S)},fo=async t=>{if(me===null||!N)return;const s=pn(t,c);if(s){Y.error(s);return}const o=G[me],u=Ue[me];if(!o||!u)return;const S=xt(o,u,c);if(!S){Y.error(i("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const _={...S.data,name:t};try{await Pe.mutateAsync({blockKey:t,data:_});const y=[...G];y[me]={__resolveType:t},await Pe.mutateAsync({blockKey:N,data:Mt(c,N,y,$e,Ge)}),g===me&&wt(),Ie(null),Y.success(i("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),f?.()}catch(y){Y.error(y instanceof Error?y.message:i("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=mt?.rule;if(Ot&&g===null&&de===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,c??{},r??void 0);re(t),W(s)}const zt=r?la(r):[],Tn=r&&c?ca(r,c):[],po=!Ce&&!!(K&&r&&c),go=de&&r?qt(de,r):null,kt=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null)},Pt=async(t,s)=>{if(!(ka(s,t,r)>0))try{await en.mutateAsync({blockKey:t})}catch(o){Y.error(o instanceof Error?o.message:i("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Nn=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:o,variantIndex:u}=tt.current;if(!s)return;const S={...o[s]},_={...S.sections},y=[..._.variants??[]],A=y[u],Q=A?.rule;if(Tt(Q,o,r)){const M=Q?.__resolveType??"",H=o[M],U=typeof H?.name=="string"?H.name:M,{__resolveType:we,...q}=t;Pe.mutate({blockKey:M,data:Nt(we??"",q,U)},{onSuccess:()=>f?.(),onError:J=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:J.message}))});return}A&&(y[u]={...A,rule:t}),S.sections={..._,variants:y},Pe.mutate({blockKey:s,data:S},{onSuccess:()=>f?.(),onError:M=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},gn)},ho=t=>{re(t);const s=t?In(t,r):{__resolveType:On};W(t?s:{}),Nn(s)},vo=t=>{const s=t;W(s);const o=de?{__resolveType:de,...s}:{...s};Nn(o)},bo=async t=>{kt();const{activePageKey:s,decofile:o,variantIndex:u}=tt.current;if(!s)return;const S=o[s],_=S?.sections;if(!_||typeof _!="object"||Array.isArray(_))return;const y=_;if(!Array.isArray(y.variants))return;const A=[...y.variants],Q=A[u];if(!Q)return;const M=At(Q.rule,o,r),H=Yt(t);A[u]={...Q,rule:H};const U={...o,[s]:{...S,sections:{...y,variants:A}}},{resolveType:we,formValue:q}=Ct(H,U,r??void 0);re(we),W(q);try{await Pe.mutateAsync({blockKey:s,data:U[s]}),M&&M!==t&&await Pt(M,U),f?.()}catch(J){Y.error(J instanceof Error?J.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:o}=tt.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(!y)return;const M=u[s],H=S[s];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const q=(U.variants??[])[o]?.rule;if(Tt(q,_,r)){const Se=q?.__resolveType??"",Xe=_[Se],it=typeof Xe?.name=="string"?Xe.name:Se,{__resolveType:ht,...lt}=t;Pe.mutate({blockKey:Se,data:Nt(ht??"",lt,it)},{onSuccess:()=>f?.(),onError:vt=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:vt.message}))});return}const J=Fn(U,o,t),Le=[...u];Le[s]=yt(M,H,J);const nt=Mt(_,y,Le,Q,A);Pe.mutate({blockKey:y,data:nt},{onSuccess:()=>f?.(),onError:Se=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:Se.message}))})},gn))},So=t=>{qe(t);const s=t?In(t,r):{__resolveType:On};De(t?s:{}),Vn(s)},xo=t=>{const s=t;De(s);const o=et?{__resolveType:et,...s}:{...s};Vn(o)},yo=async t=>{kt();const{selectedSectionIndex:s,sectionVariantIndex:o,rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(s===null||!y)return;const M=u[s],H=S[s];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const we=U.variants??[],q=At(we[o]?.rule,_,r),J=Yt(t),Le=Fn(U,o,J),nt=[...u];nt[s]=yt(M,H,Le);const Se=Mt(_,y,nt,Q,A),Xe={..._,[y]:Se},{resolveType:it,formValue:ht}=Ct(J,Xe,r??void 0);qe(it),De(ht);try{await Pe.mutateAsync({blockKey:y,data:Se}),q&&q!==t&&await Pt(q,Xe),f?.()}catch(lt){Y.error(lt instanceof Error?lt.message:i("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ce&&!Je)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.noPageFound",{currentPath:h})});if(Ce&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:i("sectionsEditor.sectionsEditor.globalBlockNotFound")});const pt=g!==null?Ue[g]??null:null,Dn=g!==null?G[g]:null,Pn=Dn&&pt?.isMultivariate?st(Dn,pt):null,St=Pn?Kn(Pn,ct):[],un=Math.min(Ve,Math.max(St.length-1,0)),Ht=St[un]??null,gt=pt?.isMultivariate===!0,Cn=g!==null&&pt!==null,Ut=Cn&&(gt||!!(rn&&ke)),_o=Ut&&!Ce&&pt?.isSavedBlock===!0,rt=Ce||_o,jo=Ce?yn:pt?.label??"",Eo=et&&r?qt(et,r):null,dn=Ut&&(!Ce||se.length>0)?Ce?[yn,...se]:[Je.name,pt.label,...gt&&Ht?[Ht.label]:[],...se]:[],Ro=z&&Je?[Je.name,"SEO",...Ne]:[],Gt=z?Ro:rt?dn.length>0?dn:[jo]:dn,wo=!z&&!Ce&&gt&&se.length===0,An=()=>{if(!N)return;kt(),He.current&&(clearTimeout(He.current),He.current=null);const t=c[N],s=ga(t.sections,G);if(!s)return;const o=ha(s);Pe.mutate({blockKey:N,data:{...t,sections:s}},{onSuccess:()=>{O(o),L(null),C(null),P(null),F([]),W(null),re(null)},onError:u=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:u.message}))})},mn=(t,s,o)=>{if(!N)return;kt(),He.current&&(clearTimeout(He.current),He.current=null);const u=c[N],S=u.sections;if(!S||typeof S!="object"||Array.isArray(S))return;const _=S;if(!Array.isArray(_.variants))return;const y=t([..._.variants]);if(!y)return;const A=Na(_,y),Q={...c,[N]:{...u,sections:A}};Pe.mutate({blockKey:N,data:Q[N]},{onSuccess:()=>{s?.(),o&&Pt(o,Q)},onError:M=>Y.error(i("sectionsEditor.sectionsEditor.saveFailed",{error:M.message}))})},ko=t=>{ee(null),O(t),L(null),C(null),P(null),F([]);const s=Ge[t]?.rule,{resolveType:o,formValue:u}=Ct(s,c??{},r??void 0);re(o),W(u),En(Ge.map(S=>({rule:S.rule})),t)},To=(t,s)=>{if(t===s)return;let o=$e;$e===t?o=s:t<$e&&s>=$e?o=$e-1:t>$e&&s<=$e&&(o=$e+1),O(o);const u=Bt(Ge.map(S=>({rule:S.rule})),t,s);En(u,o),mn(S=>Bt(S,t,s))},No=t=>{const s=Ge[t]?.rule,o=At(s,c??{},r??void 0);mn(u=>u.length<=1?null:(u.splice(t,1),u),()=>{Ge.length-1===1?O(0):t<$e?O($e-1):t===$e&&O(Math.max(0,t-1)),L(null),C(null),P(null),F([]),W(null),re(null)},o)},Vo=t=>{mn(s=>Va(s,t),()=>{O(t+1),L(null),C(null),P(null),F([]),W(null),re(null)})},Do=async(t,s)=>{kt(),He.current&&(clearTimeout(He.current),He.current=null);const o=tt.current.activePageKey,u=tt.current.decofile;if(!o)return;const S=u[o],_=S.sections;if(!_||typeof _!="object"||Array.isArray(_))return;const y=_;if(!Array.isArray(y.variants))return;const A=[...y.variants],Q=A[t];if(!Q?.rule||typeof Q.rule!="object"){Y.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const M=Q.rule,H=s.trim();Ft(!0);try{if(!H){if(!Tt(M,u,r)){ee(null);return}const nt=M.__resolveType??"";A[t]={...Q,rule:$n(M,u,r)};const Se={...u,[o]:{...S,sections:{...y,variants:A}}};await Pe.mutateAsync({blockKey:o,data:Se[o]}),await Pt(nt,Se),ee(null),f?.();return}const U=zn(M,u,r);if(!U){Y.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(U.blockKey){await Pe.mutateAsync({blockKey:U.blockKey,data:Nt(U.resolveType,U.data,H)}),ee(null),f?.();return}const we=fn(H),q=pn(we,u);if(q){Y.error(q);return}const J=Nt(U.resolveType,U.data,H);let Le=null;try{await Pe.mutateAsync({blockKey:we,data:J}),Le=we,A[t]={...Q,rule:Yt(we)},await Pe.mutateAsync({blockKey:o,data:{...S,sections:{...y,variants:A}}}),Le=null}catch(nt){throw Le&&await en.mutateAsync({blockKey:Le}).catch(()=>{}),nt}ee(null),Y.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:H})),f?.()}catch(U){Y.error(U instanceof Error?U.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Ft(!1)}},Po=async(t,s)=>{kt(),He.current&&(clearTimeout(He.current),He.current=null);const{selectedSectionIndex:o,rawSections:u,parsedSections:S,decofile:_,activePageKey:y,pageVariants:A,variantIndex:Q}=tt.current;if(o===null||!y)return;const M=u[o],H=S[o];if(!M||!H?.isMultivariate)return;const U=st(M,H);if(!U)return;const we=U.variants??[],q=we[t];if(!q?.rule||typeof q.rule!="object"){Y.error(i("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const J=q.rule,Le=s.trim();Ft(!0);const nt=async Se=>{const Xe={...U,variants:Se},it=[...u];it[o]=yt(M,H,Xe);const ht=Mt(_,y,it,Q,A);return await Pe.mutateAsync({blockKey:y,data:ht}),{..._,[y]:ht}};try{if(!Le){if(!Tt(J,_,r)){ie(null);return}const vt=J.__resolveType??"",Ln=[...we];Ln[t]={...q,rule:$n(J,_,r)};const Lo=await nt(Ln);await Pt(vt,Lo),ie(null),f?.();return}const Se=zn(J,_,r);if(!Se){Y.error(i("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Se.blockKey){await Pe.mutateAsync({blockKey:Se.blockKey,data:Nt(Se.resolveType,Se.data,Le)}),ie(null),f?.();return}const Xe=fn(Le),it=pn(Xe,_);if(it){Y.error(it);return}const ht=Nt(Se.resolveType,Se.data,Le);let lt=null;try{await Pe.mutateAsync({blockKey:Xe,data:ht}),lt=Xe;const vt=[...we];vt[t]={...q,rule:Yt(Xe)},await nt(vt),lt=null}catch(vt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),vt}ie(null),Y.success(i("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Le})),f?.()}catch(Se){Y.error(Se instanceof Error?Se.message:i("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Ft(!1)}},Mn=()=>{wt()},Co=t=>{Z(t),ln({inner:t})},Ao=t=>{ve(t),ln({raw:t})},Mo=()=>{Z(null),k([])},Bo=()=>ae(t=>t+1),Bn=t=>{if(z){if(t===0){Zt.flush(),Ee(!1),Z(null),ve(void 0),k([]),ae(o=>o+1),V?.();return}if(t===1){k([]),ae(o=>o+1);return}k(Ne.slice(0,t-1)),ae(o=>o+1);return}if(Ce){F(se.slice(0,t)),$(o=>o+1);return}if(t===0){Mn();return}if(t===1){F([]),$(o=>o+1);return}if(gt&&t===2){F([]),$(o=>o+1);return}const s=gt?2:1;F(se.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:rt||Ut||z?n.jsxs("div",{className:ze("border-b px-3 py-2.5",rt&&"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:()=>Bn(Da(Gt.length,{isMultivariateSectionTop:wo})),title:i("sectionsEditor.sectionsEditor.back"),"aria-label":i("sectionsEditor.sectionsEditor.back"),className:ze("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",rt?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(xs,{className:"size-4"})}),!Ce&&Ot&&mt&&n.jsxs("button",{type:"button",onClick:Mn,title:i("sectionsEditor.sectionsEditor.editingInVariant",{variant:mt.label}),className:ze("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",Lr),children:[n.jsx(Ps,{rule:Lt(mt.rule,c??{},r??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:mt.label})]}),n.jsx("nav",{"aria-label":i("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const o=s===Gt.length-1,u=bs(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(ys,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Bn(s),title:u,className:ze("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",o?rt?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":rt?"text-foreground/80":"text-muted-foreground",rt?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:u})]},`${u}-${s}`)})}),rt&&n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ka,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Et,{side:"bottom",className:"max-w-[260px]",children:i("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!gt&&!pt?.isHidden&&N&&n.jsx(Qn,{onClick:()=>cn()})]}),rt&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:i("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Fr,{pageKey:N,initialName:Je.name,initialPath:Je.path,onFieldChange:Xs})}),n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Ma,{size:14})})}),n.jsx(Et,{side:"bottom",children:i("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(_t,{children:[n.jsx(jt,{asChild:!0,children:n.jsx(Ze,{type:"button",variant:"ghost",size:"icon","aria-label":i("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>D&&N?D(N):je(!0),children:n.jsx(Ba,{size:14})})}),n.jsx(Et,{side:"bottom",children:i("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(Qn,{onClick:An})]})}),z?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&&N?n.jsx(nr,{rawSeo:on,innerSeo:_n,defaultResolveType:Gs,seoSchema:qs,activeResolveType:an,seoTypeOptions:Us,formResetKey:be,siteDefaultSeo:Ws,onBreadcrumbChange:k,onPersistRaw:Ao,onInnerChange:Co,onClearForm:Mo,onBumpFormKey:Bo}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:Ye,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[gt&&St.length>0&&se.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(ua,{listKey:`${N??""}:${g??""}`,variants:St.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:io,onRename:ie,onDuplicate:co,onDelete:lo,onRemoveAll:mo,onReorder:uo,onAdd:()=>cn()}),gt&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Xn,{currentRt:et??"",currentLabel:Jt(Ht?.rule,c??{},ct,r??void 0),currentGlobalKey:At(Ht?.rule,c??{},r??void 0)??void 0,matchers:zt,globals:Tn,onSelect:So,onSelectGlobal:yo,schema:Eo,formValue:dt,onChange:xo,formKey:`${g??"none"}:${un}:${et??""}`,formWrapperClassName:"pt-1",meta:r??void 0,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t})]})]}),n.jsx(Yn,{activeSchema:rn,formValue:ke,formResetKey:Be,onFormChange:Rn,onBreadcrumbChange:F,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:r,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:K,onRequestAddSection:wn})]},"editor-section-form"):Ce?n.jsx(Qt,{viewportRef:Ye,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Yn,{activeSchema:rn,formValue:ke,formResetKey:Be,onFormChange:Rn,onBreadcrumbChange:F,breadcrumbPath:se,emptyMessage:i("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:r,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t,previewBaseUrl:K,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ot&&N&&n.jsx(Ar,{listKey:N,variants:Ge,activeIndex:$e,decofile:c??{},meta:r,matchers:zt,onSelect:ko,onReorder:To,onRename:ee,onDuplicate:Vo,onDelete:No,onAdd:An}),Ot&&de!==null&&n.jsxs("div",{className:ze("px-3 border-b",le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>fe(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:i("sectionsEditor.sectionsEditor.variantRule")}),le?n.jsx(La,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Pa,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),le&&n.jsx("div",{className:ze("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Xn,{currentRt:de,currentLabel:Jt(mt?.rule,c??{},ct,r??void 0),currentGlobalKey:At(mt?.rule,c??{},r??void 0)??void 0,matchers:zt,globals:Tn,onSelect:ho,onSelectGlobal:bo,schema:go,formValue:Te,onChange:vo,formKey:`${$e}:${de??""}`,formWrapperClassName:"space-y-3",meta:r??void 0,decofile:c,onSaveReferencedBlock:Kt,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Rr,{listKey:`${N??""}-${$e}`,rawSections:G,sections:Ue,meta:r,selectedIndex:g,onSelect:Qs,onReorder:Zs,onDelete:eo,onDuplicate:to,onMakeReusable:Ie,onToggleHidden:no,onToggleLazy:so,onAddVariant:cn,onDetach:oo,onAddSection:()=>ge(!0),canAddSection:po})})]},"editor-section-list"),n.jsx(da,{open:me!==null,onOpenChange:t=>{t||Ie(null)},defaultBlockId:me!==null?fn(Ue[me]?.label??""):"",isPending:Pe.isPending,onSubmit:fo}),K&&n.jsx(rr,{open:pe,onOpenChange:t=>{ge(t),t||(ce.current=null)},meta:r,decofile:c,previewBaseUrl:K,onSelect:ro}),_e&&N&&c&&n.jsx(ma,{open:_e,onOpenChange:je,pageKey:N,decofile:c}),Me!==null&&n.jsx(qn,{open:!0,initialName:Tt(Ge[Me]?.rule,c??{},r??void 0)?Jt(Ge[Me]?.rule,c??{},ct,r??void 0):"",autoLabel:ct(Lt(Ge[Me]?.rule,c??{},r??void 0)),isPending:Vt,onSubmit:async t=>{await Do(Me,t)},onOpenChange:t=>{!t&&!Vt&&ee(null)}}),ye!==null&&n.jsx(qn,{open:!0,initialName:Tt(St[ye]?.rule,c??{},r??void 0)?Jt(St[ye]?.rule,c??{},ct,r??void 0):"",autoLabel:ct(Lt(St[ye]?.rule,c??{},r??void 0)),isPending:Vt,onSubmit:async t=>{await Po(ye,t)},onOpenChange:t=>{!t&&!Vt&&ie(null)}})]})}export{Nc as SectionsEditor};
@@ -1 +0,0 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-C2e0PKbG.js";import{i as ke}from"./ChevronRight-CgAkolPx.js";import{ao as fe}from"./agent-icon-DHs-6pCm.js";import{B as xe}from"./automation-runs-vIkYpjEv.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-Cq_TIFx6.js";import{ay as ue,ap as Ke}from"./index-DT3JBqpR.js";import{a as ye}from"./Tool01-cFhHzNlQ.js";import"./AlertCircle-CEae1uhC.js";import"./ArrowUp-DvLj1Yir.js";import"./ArrowLeft-BuwLOd6U.js";import"./Tool02-6uCneSGU.js";import"./XCircle-DKa2fDUo.js";import"./TrendUp01-DTFytCG8.js";import"./ZapSquare-lEOVMKsK.js";import"./Users03-CFcxcAHk.js";import"./UserSquare-DLmOZ-KA.js";import"./CheckCircle-B1K_NLcg.js";import"./Check-DzIWDSUl.js";import"./ChevronDown-BgZE4xRe.js";import"./ChevronSelectorVertical-Dw397LVR.js";import"./ChevronUp-BTVDLk21.js";import"./DotsVertical-Bp9Eoa1l.js";import"./Stars02-BRTKYlY7.js";import"./Copy01-Lb9FASYv.js";import"./CreditCard01-CD7q6Dfu.js";import"./Download01-1CGe2HqK.js";import"./Settings02-Dt5iXjmd.js";import"./Eye-CxgFziiX.js";import"./FilterLines-BaHGWDco.js";import"./Share07-CES-lR0w.js";import"./Globe01-CB8SzdUm.js";import"./Globe04--VrGgFPe.js";import"./SwitchHorizontal01-CcRMoc4G.js";import"./HardDrive-B-Pzoa-K.js";import"./Key01-APQXat0l.js";import"./LinkExternal01-BecPvCEX.js";import"./LockUnlocked01-CiQCCmkp.js";import"./LogOut01-CDFiTGut.js";import"./Monitor01-BQZWVxBb.js";import"./Sun-DmhKmGoO.js";import"./Palette-BVZgLJCB.js";import"./Play-D5eSZsgf.js";import"./Plus-CoP6L2hk.js";import"./SearchLg-BgRlG5wl.js";import"./SearchMd-BgNDxst6.js";import"./Shield01-Ckr0CXcj.js";import"./Stars01-CZHa1wG3.js";import"./Trash01-3DOOzrXC.js";import"./Upload01-bkmkd0Oy.js";import"./User01-Ca8dp473.js";import"./Users01-LKnSwR83.js";import"./XClose-DjsajqK1.js";import"./Zap-DbVkB7V9.js";import"./select-BR8metsL.js";import"./useInfiniteQuery-yyhUTgSy.js";import"./use-infinite-scroll-CWtSKvq6.js";import"./use-connection-4jED9yq-.js";import"./use-mcp-client-Cll5rmN-.js";import"./constants-_08zpzmT.js";import"./auth-CDJktmRv.js";import"./use-virtual-mcp-D04UN4OF.js";import"./table-D3gF_YIW.js";import"./empty-state-p68nOBgH.js";import"./use-members-n1XYDwqh.js";import"./use-org-auth-client-BtiAtI9u.js";import"./use-clock-tick-B8gdkHLP.js";import"./use-automations-BGkDkVNw.js";import"./useSuspenseInfiniteQuery-keWsE91S.js";import"./avatar-Chc0pGfc.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Dla-5nN5.js";import"./dialog-B_Yo0zLl.js";import"./tab-id-DfhH4pcg.js";import"./hooks-CPr5EU39.js";import"./decopilot-sse-pool-B5rC4Sp4.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-CZWMhJUR.js";import"./session-runtime-wVXsCwcJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-B-3JoHuK.js";import"./use-decopilot-events-DG8KjCOy.js";import"./use-organization-settings-SkJwSdGF.js";import"./monaco-editor-CAJhNo3M.js";import"./spinner-Dm0Ec7XH.js";import"./types-9qOaizG3.js";import"./shell-layout-B4XV3Pk0.js";import"./required-auth-layout-BGUUKuY5.js";import"./use-org-sso-CNy-8P49.js";import"./integration-icon-CEE1gfwv.js";import"./use-navigate-to-agent-DcVHHvW8.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-CP-H3lBv.js";import"./index-C0RFo7jI.js";import"./form-CWuSdM-E.js";import"./label-b_VH9dS0.js";import"./input-Dvg-q7zZ.js";import"./file-type-icon-4ILChaRO.js";import"./switch-ldvu1ch5.js";import"./drawer-BWhcwlAU.js";import"./collection-search-BY9vC5GI.js";import"./tabs-DNU9uubZ.js";import"./toggle-group-Be0OOlcQ.js";import"./use-commerce-diagnostic-CURG88FB.js";import"./popover-CThnLHOx.js";import"./self-tool-result-C015H85R.js";import"./alert-dialog-B3JtJ-MY.js";import"./extract-connection-data-DC_rLlfS.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D25rJTsS.js";import"./authenticate-and-persist-oauth-C-UGi48J.js";import"./mcp-oauth-rRtIbhyb.js";import"./track-DsrR5Shd.js";import"./toolbar-DJ3DOccP.js";import"./github-repo-picker-D9_bSbhh.js";import"./use-mcp-tools-Dr020OrW.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-lZJegbZE.js";import"./use-registry-connections-B1gbzBko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BChO2eZA.js";import"./connection-form-helpers-Dh1Fmq8R.js";import"./collection-tabs-CYssF2Pe.js";import"./badge-CpzknPex.js";import"./command-CX03u_Rc.js";import"./index-C2lKb2N2.js";import"./select-model-Bui8_ENH.js";import"./checkbox-B3ID1MwL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-CL8FPhnk.js";import"./dropdown-menu-6ZdFCCbd.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-L5g_Fs-5.js";import"./use-file-configs-CiqW_sIJ.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-BvNbEt7H.js";import"./search-input-BF2xp1bX.js";import"./index-CXh4JzJ2.js";import"./use-secrets-D78WIhbb.js";import"./AreaChart-BQbgsWv6.js";import"./task-key-DXFgZRz5.js";import"./sprints-CmH0A5lG.js";import"./use-tags-Cg7-QAvQ.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C6sfzgNJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-OyBz2ep6.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Be(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Ie(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Le(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Be,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Le,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function $i(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let B;e[34]!==p||e[35]!==l||e[36]!==i.kind?(B=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=B):B=e[37];let I;e[38]!==$||e[39]!==B?(I=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,B]}),e[38]=$,e[39]=B,e[40]=I):I=e[40];let L;e[41]!==I||e[42]!==D?(L=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,I]}),e[41]=I,e[42]=D,e[43]=L):L=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==L||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[L,O]}),e[67]=L,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{$i as SeoEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CtvYuw8V.js","assets/index-C2e0PKbG.js","assets/index-DfOjcoHJ.css","assets/Tool02-6uCneSGU.js","assets/CheckCircle-B1K_NLcg.js","assets/Settings02-Dt5iXjmd.js","assets/use-mcp-client-Cll5rmN-.js","assets/constants-_08zpzmT.js","assets/auth-CDJktmRv.js","assets/useInfiniteQuery-yyhUTgSy.js","assets/use-infinite-scroll-CWtSKvq6.js","assets/badge-CpzknPex.js","assets/input-Dvg-q7zZ.js","assets/dropdown-menu-6ZdFCCbd.js","assets/Check-DzIWDSUl.js","assets/ChevronRight-CgAkolPx.js","assets/DotsVertical-Bp9Eoa1l.js","assets/table-D3gF_YIW.js","assets/toggle-group-Be0OOlcQ.js","assets/use-view-mode-Sb1ZfxCj.js","assets/FilterLines-BaHGWDco.js","assets/Globe01-CB8SzdUm.js","assets/SearchMd-BgNDxst6.js","assets/dialog-B_Yo0zLl.js","assets/AlertCircle-CEae1uhC.js","assets/Download01-1CGe2HqK.js","assets/Upload01-bkmkd0Oy.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-B3JtJ-MY.js","assets/Trash01-3DOOzrXC.js","assets/label-b_VH9dS0.js","assets/select-BR8metsL.js","assets/ChevronDown-BgZE4xRe.js","assets/ChevronUp-BTVDLk21.js","assets/switch-ldvu1ch5.js","assets/textarea-BChO2eZA.js","assets/ArrowLeft-BuwLOd6U.js","assets/XCircle-DKa2fDUo.js","assets/checkbox-B3ID1MwL.js","assets/Eye-CxgFziiX.js","assets/LinkExternal01-BecPvCEX.js","assets/use-copy-Dla-5nN5.js","assets/Copy01-Lb9FASYv.js","assets/Key01-APQXat0l.js","assets/Plus-CoP6L2hk.js","assets/mcp-oauth-rRtIbhyb.js","assets/Play-D5eSZsgf.js"])))=>i.map(i=>d[i]);
2
- import{c,d as n,f as m,j as t,k as f,r as l,bc as p}from"./index-C2e0PKbG.js";import{R as u}from"./require-capability-DQ8G7iDt.js";import"./access-gate-B98__zsY.js";import"./capability-load-error-Dte2p87T.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CtvYuw8V.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=c.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=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,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-CWtSKvq6.js";import{eR as i}from"./index-C2e0PKbG.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-CWtSKvq6.js";import{eR as u,bD as n}from"./index-C2e0PKbG.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};