decocms 4.277.2 → 4.278.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/client/assets/{AlertCircle-6tWU7wYa.js → AlertCircle-v8fMNriz.js} +1 -1
  2. package/dist/client/assets/{AreaChart-SMaPcNXw.js → AreaChart-B9V5nURY.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CfuiIq5H.js → ArrowLeft-Npp6hG6h.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-D3mIhiFm.js → ArrowUp-BWHgYGAi.js} +1 -1
  5. package/dist/client/assets/{Check-BIWtIuCf.js → Check-DWZ740y8.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-DWInED8p.js → CheckCircle-COrgrT6l.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-CVbb0r_e.js → ChevronDown-CWJ9JErq.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DDyA5W9O.js → ChevronRight-DyQIrKTD.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-CeVOSRh7.js → ChevronSelectorVertical-3t4I-rX4.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BFhKV90E.js → ChevronUp-D1hzk8dN.js} +1 -1
  11. package/dist/client/assets/{Copy01-Dd6exwRm.js → Copy01-Jlghnbuk.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-COkd7l4h.js → CreditCard01-DkEBMnnR.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-BWFsb5qJ.js → DotsVertical-BF66n5eI.js} +1 -1
  14. package/dist/client/assets/{Download01-ByYWlv8P.js → Download01-C4Qc9N3I.js} +1 -1
  15. package/dist/client/assets/{Eye-CoYKR0nI.js → Eye-CMkMKams.js} +1 -1
  16. package/dist/client/assets/{FilterLines-CIgGkBSe.js → FilterLines-Cqi0BW62.js} +1 -1
  17. package/dist/client/assets/{Globe01-sUFldSbl.js → Globe01-D6aW3Uev.js} +1 -1
  18. package/dist/client/assets/{Globe04-DUXrz6XD.js → Globe04-BusVz23y.js} +1 -1
  19. package/dist/client/assets/{HardDrive-Cx4T9PNd.js → HardDrive-DNOYRJQU.js} +1 -1
  20. package/dist/client/assets/{Key01-CRJ_Etjs.js → Key01-zK1D1sqm.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BMTo98Dx.js → LinkExternal01-YzEu81ID.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-BYZjwbAR.js → LockUnlocked01-ixiwdeGN.js} +1 -1
  23. package/dist/client/assets/{LogOut01-4jTBHB4S.js → LogOut01-dJ6EgXGv.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DkkiUD9G.js → Monitor01-Cne_Y8mg.js} +1 -1
  25. package/dist/client/assets/{Palette-fIe3ZXln.js → Palette-DhXNXt05.js} +1 -1
  26. package/dist/client/assets/{Play-DvUOD8qW.js → Play-BMaFKxXP.js} +1 -1
  27. package/dist/client/assets/{Plus-Ns4_pIbl.js → Plus-DwD65rmB.js} +1 -1
  28. package/dist/client/assets/{SearchLg-Dx0A_3zi.js → SearchLg-HIa3QhaQ.js} +1 -1
  29. package/dist/client/assets/{SearchMd-Cn4Bukdn.js → SearchMd-BAZ9nMEZ.js} +1 -1
  30. package/dist/client/assets/{Settings02-Dspvirmc.js → Settings02-52fb6H5D.js} +1 -1
  31. package/dist/client/assets/{Share07-DTtbdEzm.js → Share07-DuVrrhTb.js} +1 -1
  32. package/dist/client/assets/{Shield01-Boe32FKW.js → Shield01-DJyhXvrh.js} +1 -1
  33. package/dist/client/assets/{Stars01-hOH5qHG7.js → Stars01-CxkNaTg4.js} +1 -1
  34. package/dist/client/assets/{Stars02-aJgerMdO.js → Stars02-q7wwk1en.js} +1 -1
  35. package/dist/client/assets/{Sun-cD-kH109.js → Sun-NTNtnr7x.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-CMlk6d1K.js → SwitchHorizontal01-BMDX56Pz.js} +1 -1
  37. package/dist/client/assets/{Tool01-55e9Pzj9.js → Tool01-Bn5sQ3cN.js} +1 -1
  38. package/dist/client/assets/{Tool02-HLpWqOaY.js → Tool02-D6336hR4.js} +1 -1
  39. package/dist/client/assets/{Trash01-CyoK4MU5.js → Trash01-MovncRVo.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-MTqfV8xG.js → TrendUp01-Bpy6TdnO.js} +1 -1
  41. package/dist/client/assets/{Upload01-Cxy07oQg.js → Upload01-BF5d7vXt.js} +1 -1
  42. package/dist/client/assets/{User01-oIs-vUGA.js → User01-CXrM7AMp.js} +1 -1
  43. package/dist/client/assets/{UserSquare-DR98X7-R.js → UserSquare-CQKfRmeM.js} +1 -1
  44. package/dist/client/assets/{Users01-Fr1ZQuZu.js → Users01-sIZgN8cj.js} +1 -1
  45. package/dist/client/assets/{Users03-DeTmNZEn.js → Users03-DoII_J3k.js} +1 -1
  46. package/dist/client/assets/{XCircle-9IEiQ4L2.js → XCircle-CM7DlBEY.js} +1 -1
  47. package/dist/client/assets/{XClose-C_dHeH17.js → XClose-CkJJ5Qv5.js} +1 -1
  48. package/dist/client/assets/{YAxis-aqhzk5Fu.js → YAxis-BsQgPHsE.js} +1 -1
  49. package/dist/client/assets/{Zap-i23d8bq2.js → Zap-DJT0rSGL.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-Dc-rKzAG.js → ZapSquare-C2ZJxHbM.js} +1 -1
  51. package/dist/client/assets/{access-gate-B-12I7Fo.js → access-gate-DQaMSvsa.js} +1 -1
  52. package/dist/client/assets/{agent-icon-BD4ir4AJ.js → agent-icon-B5DHtXHe.js} +1 -1
  53. package/dist/client/assets/{agents-list-OaLSaOqd.js → agents-list-Ccfv_j-W.js} +1 -1
  54. package/dist/client/assets/{ai-providers-BZ5DCQax.js → ai-providers-DisnIpET.js} +1 -1
  55. package/dist/client/assets/{alert-BKH3qmtb.js → alert-T2HaKg5P.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-B4ltP1Zu.js → alert-dialog-XEF69z36.js} +1 -1
  57. package/dist/client/assets/{api-keys-C6jhaE5W.js → api-keys-xQrWiVcG.js} +1 -1
  58. package/dist/client/assets/app-editor-B_8s5q33.js +1 -0
  59. package/dist/client/assets/{auth-catchall-CI6LpmIg.js → auth-catchall-B9Qp-nXA.js} +1 -1
  60. package/dist/client/assets/{auth-entry-Bxt0RfFN.js → auth-entry-DIqf1A21.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-DbwomzZl.js → auth-split-layout-BZiYj9cN.js} +1 -1
  62. package/dist/client/assets/{auth-iZ8bZTve.js → auth-v-RUElOF.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-CSSCn7ah.js → authenticate-and-persist-oauth-DzVatwtJ.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-DtJ3vlU6.js → automation-list-row-BFPoVnfX.js} +1 -1
  65. package/dist/client/assets/{automation-runs-o4xufCd8.js → automation-runs-BWX3epGD.js} +1 -1
  66. package/dist/client/assets/{automations-BVCzkA9O.js → automations-Clm7ZUeO.js} +1 -1
  67. package/dist/client/assets/{avatar-WApsR2TX.js → avatar-LmU2UuLS.js} +1 -1
  68. package/dist/client/assets/{badge-DHZdaANE.js → badge-nN_EtFX3.js} +1 -1
  69. package/dist/client/assets/{block-document-D-iyYRO2.js → block-document-C0hHVqbA.js} +1 -1
  70. package/dist/client/assets/{buckets-CX2gWTX6.js → buckets-DpyXyKld.js} +1 -1
  71. package/dist/client/assets/bulk-category-panel-kZ5K7chz.js +1 -0
  72. package/dist/client/assets/{capability-load-error-BI676ir-.js → capability-load-error-2Us1Lwx7.js} +1 -1
  73. package/dist/client/assets/{cards-kEvnJEN2.js → cards-CdQh5ina.js} +1 -1
  74. package/dist/client/assets/category-editor-sl2IQ5yw.js +1 -0
  75. package/dist/client/assets/{chart-B5D871qx.js → chart-gCLrqBZC.js} +4 -4
  76. package/dist/client/assets/{chat-context-DjYbmLav.js → chat-context-CEP09m4a.js} +1 -1
  77. package/dist/client/assets/{checkbox-DEpjJOPP.js → checkbox-i9fR-npW.js} +1 -1
  78. package/dist/client/assets/{choose-editor-Dy8AVodb.js → choose-editor-CC9A462E.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-tPZiJED1.js → cli-auth-success-J4EmTEHx.js} +1 -1
  80. package/dist/client/assets/collection-detail-OD9zo4dA.js +1 -0
  81. package/dist/client/assets/{collection-display-button-CIELt-_6.js → collection-display-button-BC9jr7k1.js} +1 -1
  82. package/dist/client/assets/{collection-search-bSeQdzpX.js → collection-search-DrUvH_5n.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-DMHO68IL.js → collection-table-wrapper-CZapTgzC.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-BKfmiSOC.js → collection-tabs-DzW94Hy1.js} +1 -1
  85. package/dist/client/assets/{command-lZx7XmuN.js → command-Dy2HO77F.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-CbtRbMEj.js → commerce-onboarding-rqUTn8pD.js} +1 -1
  87. package/dist/client/assets/{connect-DF2NVAE3.js → connect-DlRyQ_ii.js} +1 -1
  88. package/dist/client/assets/{connection-C5iuGmwz.js → connection-Cfz74IqW.js} +1 -1
  89. package/dist/client/assets/{connection-card-ClDZwlDp.js → connection-card-DMrqqNqH.js} +1 -1
  90. package/dist/client/assets/connection-detail-D562ck5e.js +1 -0
  91. package/dist/client/assets/{connection-form-helpers-DdNo9Syk.js → connection-form-helpers-CiugFKrh.js} +1 -1
  92. package/dist/client/assets/{connections-DMuXb1iu.js → connections-DuOD3GIO.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-DoVi8VY1.js → decopilot-sse-pool-BJumw45X.js} +1 -1
  94. package/dist/client/assets/{dialog-BBPJC7yY.js → dialog-ljnzZavy.js} +1 -1
  95. package/dist/client/assets/{domain-settings-DKyAf_7c.js → domain-settings-0GWRa7JO.js} +1 -1
  96. package/dist/client/assets/{drawer-QXmPtU62.js → drawer-DD6YpTGL.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-B_78l2v6.js → dropdown-menu-pWB0nubv.js} +1 -1
  98. package/dist/client/assets/{empty-state-Cm37ZiLn.js → empty-state-DapPFVEJ.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-k9CE5liA.js → extract-connection-data-CSTpDZtq.js} +1 -1
  100. package/dist/client/assets/file-explorer-Dro4b3lZ.js +2 -0
  101. package/dist/client/assets/{file-type-icon-CzJDfNY8.js → file-type-icon-DQgNU2Yc.js} +1 -1
  102. package/dist/client/assets/{form-CbBceGEv.js → form-CJ-cEs6U.js} +1 -1
  103. package/dist/client/assets/{general-C8rN-PTk.js → general-DQZWwTkj.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-Cybw3Ow4.js → github-repo-picker-ByuS_XNy.js} +1 -1
  105. package/dist/client/assets/{hooks-DUQfZTL_.js → hooks-BjsPfcI_.js} +1 -1
  106. package/dist/client/assets/{index-BqWFtpxV.js → index-BLErH5MN.js} +1 -1
  107. package/dist/client/assets/{index-utjlg1Pu.js → index-BQXRGS-f.js} +1 -1
  108. package/dist/client/assets/{index-EXr1UIv6.js → index-Bh-xO_bO.js} +1 -1
  109. package/dist/client/assets/index-BnUcr63C.js +1 -0
  110. package/dist/client/assets/index-CT0xBlIh.css +1 -0
  111. package/dist/client/assets/{index-BfphVVNB.js → index-Cms6Zm_G.js} +1 -1
  112. package/dist/client/assets/{index-C5NUTMdB.js → index-Con677tP.js} +1 -1
  113. package/dist/client/assets/{index-J7-Vf5K9.js → index-DA9dkxmu.js} +1 -1
  114. package/dist/client/assets/{index-11Axpbvx.js → index-DIDvVa8k.js} +5 -5
  115. package/dist/client/assets/{index-O4AqjsPe.js → index-Dr-sOexb.js} +1 -1
  116. package/dist/client/assets/{index-Beuv5tb0.js → index-QiUlATaf.js} +49 -49
  117. package/dist/client/assets/{index-redirect-Cmm8Rnl3.js → index-redirect-FDjHQpim.js} +1 -1
  118. package/dist/client/assets/{infra-billing-2u0oT5dJ.js → infra-billing-CyJY86O9.js} +1 -1
  119. package/dist/client/assets/{input-CmWpGJPZ.js → input-Cx92h0Kn.js} +1 -1
  120. package/dist/client/assets/{integration-icon-BTaqQLeL.js → integration-icon-DpwOPnrc.js} +1 -1
  121. package/dist/client/assets/{invite-member-dialog-DqvSzDfV.js → invite-member-dialog-CqIhh61U.js} +1 -1
  122. package/dist/client/assets/{label-9fOXKvHw.js → label-B7_ye5dS.js} +1 -1
  123. package/dist/client/assets/{layout-DlBlIxyA.js → layout-ZUbqBy4G.js} +1 -1
  124. package/dist/client/assets/{login-C3SKmn2o.js → login-De8CdReW.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-CrH_sNAB.js → mcp-oauth-CoG_Khez.js} +1 -1
  126. package/dist/client/assets/{members-BmH9aVKZ.js → members-BjFN6Olq.js} +1 -1
  127. package/dist/client/assets/{monaco-editor-DGH_uddi.js → monaco-editor-9zsh1pmj.js} +1 -1
  128. package/dist/client/assets/{monitoring-stats-row-D26_pyLB.js → monitoring-stats-row-B_EFHAx7.js} +1 -1
  129. package/dist/client/assets/{multi-select-CrjO7fm0.js → multi-select-B_bZvWcA.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-BuP6nKLt.js → oauth-callback-DzP7BSBw.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-ai-provider-mp-Dif9b.js → oauth-callback-ai-provider-CN_i6625.js} +1 -1
  132. package/dist/client/assets/{onboarding-CfF0_VLr.js → onboarding-BBTDDmZf.js} +1 -1
  133. package/dist/client/assets/{org-layout-P0WG-MLl.js → org-layout-eaefJMPL.js} +1 -1
  134. package/dist/client/assets/{organization-choice-Cj78bBch.js → organization-choice-CpotnwyG.js} +1 -1
  135. package/dist/client/assets/{orgs-BWqrQOE-.js → orgs-lesxqCf8.js} +1 -1
  136. package/dist/client/assets/page-seo-form-wXtnmYEy.js +1 -0
  137. package/dist/client/assets/{popover-DvqYGJ6a.js → popover-lT5R5LRh.js} +1 -1
  138. package/dist/client/assets/post-calendar-CAjzXpry.js +1 -0
  139. package/dist/client/assets/post-editor-B27__PQd.js +1 -0
  140. package/dist/client/assets/{primitives-fNAqchsO.js → primitives-SD-T9qoH.js} +1 -1
  141. package/dist/client/assets/{profile-BUYxIM0c.js → profile-C_cWQjru.js} +1 -1
  142. package/dist/client/assets/project-app-view-DHnVRBzg.js +1 -0
  143. package/dist/client/assets/{prompts-DmN5rIix.js → prompts-DjsJwUX6.js} +1 -1
  144. package/dist/client/assets/record-editor-D53DLSEz.js +1 -0
  145. package/dist/client/assets/redirect-editor-BDMJrbxD.js +1 -0
  146. package/dist/client/assets/registry-Cw2XqsSc.js +2 -0
  147. package/dist/client/assets/{registry-layout-DsKkWGEq.js → registry-layout-B2AmIOcj.js} +1 -1
  148. package/dist/client/assets/{reports-C0hISp-d.js → reports-DYfZNUH3.js} +1 -1
  149. package/dist/client/assets/{require-capability-CYU1nEvM.js → require-capability-Chj6fY_O.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-UoP_VLdg.js → required-auth-layout-EVXeXvZH.js} +1 -1
  151. package/dist/client/assets/{reset-password-DQdukdt2.js → reset-password-C_hGzwAO.js} +1 -1
  152. package/dist/client/assets/{review-settings-CDlHP-7V.js → review-settings-CuGiVvtt.js} +1 -1
  153. package/dist/client/assets/{roles-DGEfUBoI.js → roles-BcTkaqJP.js} +1 -1
  154. package/dist/client/assets/{search-input-CBIAknoS.js → search-input-BQj9X4w3.js} +1 -1
  155. package/dist/client/assets/{secrets-z5YAHNDJ.js → secrets-C7FBQCzl.js} +1 -1
  156. package/dist/client/assets/sections-editor-DHeHMP3n.js +2 -0
  157. package/dist/client/assets/select-B6q0AMAc.js +1 -0
  158. package/dist/client/assets/{select-model-D3ApOsFk.js → select-model-hJUk9DEJ.js} +1 -1
  159. package/dist/client/assets/{self-tool-result-BsMOoqp1.js → self-tool-result-DimIwwIz.js} +1 -1
  160. package/dist/client/assets/seo-editor-CXG2DLIG.js +1 -0
  161. package/dist/client/assets/{settings-layout-38yEBMcG.js → settings-layout-B0PK1QpF.js} +1 -1
  162. package/dist/client/assets/{shell-controls-DMuzMgg0.js → shell-controls-DXi-8Slt.js} +1 -1
  163. package/dist/client/assets/{shell-layout-BjqyiyfI.js → shell-layout-C1VLqpGw.js} +1 -1
  164. package/dist/client/assets/{spinner-5sgFnmTJ.js → spinner-BLKi8P8K.js} +1 -1
  165. package/dist/client/assets/{sso-qjQsmRot.js → sso-CCfYmzZ0.js} +1 -1
  166. package/dist/client/assets/{store-DF69uPgt.js → store-082jvGUM.js} +1 -1
  167. package/dist/client/assets/store-registry-CPSM3z4O.js +2 -0
  168. package/dist/client/assets/{switch-DJ3fHjlZ.js → switch-IUmVVDRF.js} +1 -1
  169. package/dist/client/assets/{synced-repos-DmQJ015Q.js → synced-repos-GiFLW8ll.js} +1 -1
  170. package/dist/client/assets/{tab-id-DTQBZsSu.js → tab-id-DIe1Nijm.js} +1 -1
  171. package/dist/client/assets/{table-CDNSisGr.js → table-BYh1MtS_.js} +1 -1
  172. package/dist/client/assets/{tabs-DyZN3F6n.js → tabs-DNRBTIL1.js} +1 -1
  173. package/dist/client/assets/{tasks-D3XReqMa.js → tasks-Cd8VAscb.js} +1 -1
  174. package/dist/client/assets/{textarea-CKGtBy6P.js → textarea-hoarzJY0.js} +1 -1
  175. package/dist/client/assets/{toggle-group-CY548Ail.js → toggle-group-hLAGRLlY.js} +1 -1
  176. package/dist/client/assets/{toolbar-BXqDit6n.js → toolbar-D9CX4OwI.js} +1 -1
  177. package/dist/client/assets/{track-CAP9UGRM.js → track-BcLfb7j-.js} +1 -1
  178. package/dist/client/assets/{types-v-KFI9T9.js → types-DL1u6s93.js} +3 -3
  179. package/dist/client/assets/{use-ai-providers-C7-CezpT.js → use-ai-providers-BttXRxlj.js} +1 -1
  180. package/dist/client/assets/{use-api-keys-CWRqrQ8N.js → use-api-keys-1DXOdjU6.js} +1 -1
  181. package/dist/client/assets/{use-automations-CJls2uog.js → use-automations-yELoWtQL.js} +1 -1
  182. package/dist/client/assets/{use-autosave-BInQ1G8J.js → use-autosave-C2mvbIvv.js} +1 -1
  183. package/dist/client/assets/{use-clock-tick-C-fvo9-8.js → use-clock-tick-FTW32S7S.js} +1 -1
  184. package/dist/client/assets/{use-commerce-diagnostic-DGoxaXzu.js → use-commerce-diagnostic-Dd9rxs3f.js} +1 -1
  185. package/dist/client/assets/{use-connection-BT0yI2N1.js → use-connection-Dke1W-MN.js} +1 -1
  186. package/dist/client/assets/{use-copy-D_i4k6QZ.js → use-copy-7MhyLyP3.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-DxccahsJ.js → use-create-virtual-mcp-CfF213oO.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-CTxtKrwS.js → use-debounced-autosave-DBVA3ONY.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-BMmQGk2i.js → use-debounced-value-CWJBeEO4.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-DduusyI4.js → use-decopilot-events-DPQ0Z1kc.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-DlG10yM3.js → use-delete-connection-CU3icALm.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-DGtM1OY2.js → use-deployment-admin-DVIBY0i9.js} +1 -1
  193. package/dist/client/assets/{use-file-configs-RpYJRWfY.js → use-file-configs-AsB0iU0o.js} +1 -1
  194. package/dist/client/assets/{use-infinite-scroll-czLvmTC2.js → use-infinite-scroll-CImsH6dI.js} +1 -1
  195. package/dist/client/assets/{use-join-requests-CrM3fR1L.js → use-join-requests-SCbfewiT.js} +1 -1
  196. package/dist/client/assets/use-mcp-auth-status-BiK_LMM-.js +1 -0
  197. package/dist/client/assets/{use-mcp-client-Ccznzs5K.js → use-mcp-client-CNj9UP6h.js} +1 -1
  198. package/dist/client/assets/{use-mcp-tools-Dis5cPUY.js → use-mcp-tools-BwivqAv9.js} +1 -1
  199. package/dist/client/assets/{use-members-BrkFmrC2.js → use-members-C_qJEHPM.js} +1 -1
  200. package/dist/client/assets/{use-navigate-to-agent-CEI397ME.js → use-navigate-to-agent-CNDnIlgR.js} +1 -1
  201. package/dist/client/assets/{use-org-auth-client-BQCacaH4.js → use-org-auth-client-B72rzozH.js} +1 -1
  202. package/dist/client/assets/{use-org-repo-syncs-Fzi2yap-.js → use-org-repo-syncs-NzU2qMQj.js} +1 -1
  203. package/dist/client/assets/{use-org-sso-DictyNVb.js → use-org-sso-Cw6Q4qF1.js} +1 -1
  204. package/dist/client/assets/{use-organization-roles-3VLYSoij.js → use-organization-roles-CtefXf2i.js} +1 -1
  205. package/dist/client/assets/{use-organization-settings-BbsRSP2t.js → use-organization-settings-kuyc2bmW.js} +1 -1
  206. package/dist/client/assets/{use-registry-connections-C0BMOjmC.js → use-registry-connections-Bz6Ua2A3.js} +1 -1
  207. package/dist/client/assets/{use-secrets-DvM46U6Y.js → use-secrets-DJPeA-Fd.js} +1 -1
  208. package/dist/client/assets/{use-section-preview-base-DzEMM7gE.js → use-section-preview-base-BCHzxoux.js} +1 -1
  209. package/dist/client/assets/{use-status-sounds-BC-Y3Qkm.js → use-status-sounds-C9VgXEEx.js} +1 -1
  210. package/dist/client/assets/{use-tags-BJEZBtxG.js → use-tags-NInDmENg.js} +1 -1
  211. package/dist/client/assets/{use-task-board-items-D2yKMw6C.js → use-task-board-items-DQqSS9zt.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-1QIIASYP.js → use-view-mode-Darug4uL.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-myrJninv.js → use-virtual-mcp-lpZZNueP.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-YaU99gd-.js +1 -0
  215. package/dist/client/assets/useSuspenseInfiniteQuery-BCbtGBrH.js +1 -0
  216. package/dist/client/assets/{users-D_3Ci4vh.js → users-B_W2L_TS.js} +1 -1
  217. package/dist/client/assets/variant-calendar-Dlq2QlJE.js +1 -0
  218. package/dist/client/assets/{view-mode-toggle-CDp1vlBH.js → view-mode-toggle-TX_wgotG.js} +1 -1
  219. package/dist/client/index.html +2 -2
  220. package/dist/server/cli.js +441 -441
  221. package/dist/server/server.js +313 -313
  222. package/package.json +1 -1
  223. package/dist/client/assets/app-editor-C99QxbVr.js +0 -1
  224. package/dist/client/assets/bulk-category-panel-dkuuzrOK.js +0 -1
  225. package/dist/client/assets/category-editor-DFe_8kh7.js +0 -1
  226. package/dist/client/assets/collection-detail-D44aYgaU.js +0 -1
  227. package/dist/client/assets/connection-detail-Bcp5xAJw.js +0 -1
  228. package/dist/client/assets/file-explorer-5HGX_HFH.js +0 -2
  229. package/dist/client/assets/index-D9Pbmk9A.css +0 -1
  230. package/dist/client/assets/index-V6-hWSaI.js +0 -1
  231. package/dist/client/assets/page-seo-form-CUYpPPow.js +0 -1
  232. package/dist/client/assets/post-calendar-Bh07OXFP.js +0 -1
  233. package/dist/client/assets/post-editor-4ebsIKyN.js +0 -1
  234. package/dist/client/assets/project-app-view-D7FUQg4b.js +0 -1
  235. package/dist/client/assets/record-editor-DmFVSnVz.js +0 -1
  236. package/dist/client/assets/redirect-editor-BrlCQjiO.js +0 -1
  237. package/dist/client/assets/registry-I40z-v1u.js +0 -2
  238. package/dist/client/assets/sections-editor-NQ2NE_IT.js +0 -2
  239. package/dist/client/assets/select-DCFOCjoX.js +0 -1
  240. package/dist/client/assets/seo-editor-CMk3v5B7.js +0 -1
  241. package/dist/client/assets/store-registry-fgxo6Bz0.js +0 -2
  242. package/dist/client/assets/useInfiniteQuery-CbKuLMPg.js +0 -1
  243. package/dist/client/assets/useSuspenseInfiniteQuery-C33Ws-pQ.js +0 -1
  244. package/dist/client/assets/variant-calendar-D50appzS.js +0 -1
@@ -1 +0,0 @@
1
- import{c as w,b as z,D as V,b1 as W,j as a,ab as k,a8 as _,a9 as E,aa as X,H as Y,K as Q,z as J,r as R,bp as Z,bn as ee,co as oe,bk as x,bo as I,cp as te,bq as C,cq as S,cr as re,bm as A,cn as se,cm as ae}from"./index-11Axpbvx.js";import{B as P}from"./badge-DHZdaANE.js";import{g as ne}from"./types-v-KFI9T9.js";import{s as ie}from"./Eye-CoYKR0nI.js";import{s as ce,aX as le}from"./agent-icon-BD4ir4AJ.js";import{i as de}from"./mcp-oauth-CrH_sNAB.js";const ue=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:ie,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:V,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:W,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:ce,variant:"outline"}];function Ee(d){const e=w.c(22),{annotations:t,_meta:n}=d,o=z();let r;e[0]!==n?(r=ne(n),e[0]=n,e[1]=r):r=e[1];const s=!!r;let i,c,l,f,u;if(e[2]!==t||e[3]!==s||e[4]!==o){u=Symbol.for("react.early_return_sentinel");e:{const m=t?ue.filter(y=>t[y.key]===!0):[];if(m.length===0&&!s){u=null;break e}i=X,c="flex gap-1 flex-nowrap",e[10]!==s||e[11]!==o?(l=s&&a.jsxs(k,{children:[a.jsx(_,{asChild:!0,children:a.jsx(P,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:a.jsx(le,{})})}),a.jsx(E,{children:o("tools.toolsList.interactive")})]}),e[10]=s,e[11]=o,e[12]=l):l=e[12];let h;e[13]!==o?(h=y=>{const{labelKey:j,Icon:H,variant:$}=y;return a.jsxs(k,{children:[a.jsx(_,{asChild:!0,children:a.jsx(P,{asChild:!0,variant:$,className:"size-6 p-1",children:a.jsx(H,{})})}),a.jsx(E,{children:o(j)})]},j)},e[13]=o,e[14]=h):h=e[14],f=m.map(h)}e[2]=t,e[3]=s,e[4]=o,e[5]=i,e[6]=c,e[7]=l,e[8]=f,e[9]=u}else i=e[5],c=e[6],l=e[7],f=e[8],u=e[9];if(u!==Symbol.for("react.early_return_sentinel"))return u;let v;e[15]!==c||e[16]!==l||e[17]!==f?(v=a.jsxs("div",{className:c,children:[l,f]}),e[15]=c,e[16]=l,e[17]=f,e[18]=v):v=e[18];let p;return e[19]!==i||e[20]!==v?(p=a.jsx(i,{children:v}),e[19]=i,e[20]=v,e[21]=p):p=e[21],p}function Pe(d){const e=w.c(11),{connectionId:t}=d,{org:n}=Y();let o,r,s;e[0]!==t||e[1]!==n.slug?(o=new URL(`/api/${n.slug}/mcp/${t}`,window.location.origin),s=J,r=Q.isMCPAuthenticated(o.href,null),e[0]=t,e[1]=n.slug,e[2]=o,e[3]=r,e[4]=s):(o=e[2],r=e[3],s=e[4]);let i;e[5]!==o||e[6]!==n.id?(i=()=>de({url:o.href,token:null,orgId:n.id}),e[5]=o,e[6]=n.id,e[7]=i):i=e[7];let c;e[8]!==r||e[9]!==i?(c={queryKey:r,queryFn:i},e[8]=r,e[9]=i,e[10]=c):c=e[10];const{data:l}=s(c);return l}var g="Radio",[pe,N]=A(g),[fe,ve]=pe(g),G=R.forwardRef((d,e)=>{const{__scopeRadio:t,name:n,checked:o=!1,required:r,disabled:s,value:i="on",onCheck:c,form:l,...f}=d,[u,v]=R.useState(null),p=I(e,y=>v(y)),m=R.useRef(!1),h=u?l||!!u.closest("form"):!0;return a.jsxs(fe,{scope:t,checked:o,disabled:s,children:[a.jsx(x.button,{type:"button",role:"radio","aria-checked":o,"data-state":D(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:p,onClick:C(d.onClick,y=>{o||c?.(),h&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),h&&a.jsx(L,{control:u,bubbles:!m.current,name:n,value:i,checked:o,required:r,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});G.displayName=g;var T="RadioIndicator",K=R.forwardRef((d,e)=>{const{__scopeRadio:t,forceMount:n,...o}=d,r=ve(T,t);return a.jsx(re,{present:n||r.checked,children:a.jsx(x.span,{"data-state":D(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:e})})});K.displayName=T;var me="RadioBubbleInput",L=R.forwardRef(({__scopeRadio:d,control:e,checked:t,bubbles:n=!0,...o},r)=>{const s=R.useRef(null),i=I(s,r),c=se(t),l=ae(e);return R.useEffect(()=>{const f=s.current;if(!f)return;const u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==t&&p){const m=new Event("click",{bubbles:n});p.call(f,t),f.dispatchEvent(m)}},[c,t,n]),a.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});L.displayName=me;function D(d){return d?"checked":"unchecked"}var Re=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[he]=A(b,[S,N]),O=S(),M=N(),[ye,xe]=he(b),U=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,name:n,defaultValue:o,value:r,required:s=!1,disabled:i=!1,orientation:c,dir:l,loop:f=!0,onValueChange:u,...v}=d,p=O(t),m=Z(l),[h,y]=ee({prop:r,defaultProp:o??null,onChange:u,caller:b});return a.jsx(ye,{scope:t,name:n,required:s,disabled:i,value:h,onValueChange:y,children:a.jsx(oe,{asChild:!0,...p,orientation:c,dir:m,loop:f,children:a.jsx(x.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:m,...v,ref:e})})})});U.displayName=b;var q="RadioGroupItem",B=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,disabled:n,...o}=d,r=xe(q,t),s=r.disabled||n,i=O(t),c=M(t),l=R.useRef(null),f=I(e,l),u=r.value===o.value,v=R.useRef(!1);return R.useEffect(()=>{const p=h=>{Re.includes(h.key)&&(v.current=!0)},m=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),a.jsx(te,{asChild:!0,...i,focusable:!s,active:u,children:a.jsx(G,{disabled:s,required:r.required,checked:u,...c,...o,name:r.name,ref:f,onCheck:()=>r.onValueChange(o.value),onKeyDown:C(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:C(o.onFocus,()=>{v.current&&l.current?.click()})})})});B.displayName=q;var be="RadioGroupIndicator",F=R.forwardRef((d,e)=>{const{__scopeRadioGroup:t,...n}=d,o=M(t);return a.jsx(K,{...o,...n,ref:e})});F.displayName=be;var we=U,Se=B,Ae=F;export{Se as I,we as R,Ee as T,Ae as a,Pe as u};
@@ -1 +0,0 @@
1
- import{c as w,p as A,K as k,b as L,j as i}from"./index-11Axpbvx.js";import{bM as D,F as $,bN as O,aX as N,bO as Q,bP as I,bQ as M}from"./index-Beuv5tb0.js";import{L as P}from"./label-9fOXKvHw.js";import{S as K}from"./switch-DJ3fHjlZ.js";import{d as Y,a as q,b as z,c as U,S as W}from"./select-DCFOCjoX.js";function _(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)}function X(c,e,t,d){if(c.kind==="page"){if(!_(t))return null;const h=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:d===null?null:D(d,h)}}return _(t)?e.siteKind==="block"?d:{...t,seo:d}:null}function le(c,e){const t=c.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function oe(c){const e=w.c(23),{orgSlug:t,virtualMcpId:d,branch:h,target:o,resolved:s,onSaved:f}=c,r=A(),a=`${t}/${d}/${h}`;let m;e[0]!==h||e[1]!==t||e[2]!==d?(m={orgSlug:t,virtualMcpId:d,branch:h},e[0]=h,e[1]=t,e[2]=d,e[3]=m):m=e[3];let l;e[4]!==f?(l={onSaved:f},e[4]=f,e[5]=l):l=e[5];const{save:n,flush:u,isPending:p}=$(m,l);let y;e[6]!==a||e[7]!==r||e[8]!==s||e[9]!==n||e[10]!==o?(y=v=>{s&&n(s.blockKey,()=>{const x=r.getQueryData(k.decofile(a))?.[s.blockKey];return X(o,s,x,v)})},e[6]=a,e[7]=r,e[8]=s,e[9]=n,e[10]=o,e[11]=y):y=e[11];const g=y;let S;e[12]!==a||e[13]!==r||e[14]!==s||e[15]!==n||e[16]!==o?(S=v=>{!s||o.kind!=="page"||n(s.blockKey,()=>{const x=r.getQueryData(k.decofile(a))?.[s.blockKey];return _(x)?{...x,seo:v}:null})},e[12]=a,e[13]=r,e[14]=s,e[15]=n,e[16]=o,e[17]=S):S=e[17];const b=S;let j;return e[18]!==u||e[19]!==p||e[20]!==b||e[21]!==g?(j={persistSeo:g,persistRawSeo:b,flush:u,isPending:p},e[18]=u,e[19]=p,e[20]=b,e[21]=g,e[22]=j):j=e[22],j}const G="https://deco.cx/docs/en/performance/edge-async-render";function H(c){const e=w.c(23),{rawSeo:t,onEnableChange:d,onAsyncRenderChange:h,children:o}=c,s=L();let f;e[0]!==t?(f=N(t),e[0]=t,e[1]=f):f=e[1];const r=f;let a;e[2]!==t?(a=O(t),e[2]=t,e[3]=a):a=e[3];const m=a;let l;e[4]!==s?(l=s("sectionsEditor.seoFormChrome.enableLabel"),e[4]=s,e[5]=l):l=e[5];let n;e[6]!==l?(n=i.jsx(P,{htmlFor:"seo-enable",className:"text-sm font-medium",children:l}),e[6]=l,e[7]=n):n=e[7];let u;e[8]!==r||e[9]!==d?(u=i.jsx(K,{id:"seo-enable",checked:r,onCheckedChange:d}),e[8]=r,e[9]=d,e[10]=u):u=e[10];let p;e[11]!==n||e[12]!==u?(p=i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[n,u]}),e[11]=n,e[12]=u,e[13]=p):p=e[13];let y;e[14]!==m||e[15]!==o||e[16]!==r||e[17]!==h||e[18]!==s?(y=r&&i.jsxs(i.Fragment,{children:[o,i.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[i.jsxs("div",{className:"min-w-0 space-y-1",children:[i.jsx("p",{className:"text-sm font-medium",children:s("sectionsEditor.seoFormChrome.asyncRenderLabel")}),i.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",i.jsx("a",{href:G,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:s("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),i.jsx(K,{id:"seo-async-render",checked:m,onCheckedChange:h,className:"shrink-0"})]})]}),e[14]=m,e[15]=o,e[16]=r,e[17]=h,e[18]=s,e[19]=y):y=e[19];let g;return e[20]!==p||e[21]!==y?(g=i.jsxs("div",{className:"space-y-4",children:[p,y]}),e[20]=p,e[21]=y,e[22]=g):g=e[22],g}function J(c){const e=w.c(20),{options:t,value:d,onChange:h}=c,o=L();if(t.length<=1)return null;let s;e[0]!==o?(s=o("sectionsEditor.seoTypeSelect.label"),e[0]=o,e[1]=s):s=e[1];let f;e[2]!==s?(f=i.jsx(P,{className:"text-xs text-muted-foreground",children:s}),e[2]=s,e[3]=f):f=e[3];let r;e[4]!==o?(r=o("sectionsEditor.seoTypeSelect.placeholder"),e[4]=o,e[5]=r):r=e[5];let a;e[6]!==r?(a=i.jsx(q,{className:"w-full",children:i.jsx(z,{placeholder:r})}),e[6]=r,e[7]=a):a=e[7];let m;e[8]!==t?(m=t.filter(Z).map(V),e[8]=t,e[9]=m):m=e[9];let l;e[10]!==m?(l=i.jsx(U,{children:m}),e[10]=m,e[11]=l):l=e[11];let n;e[12]!==h||e[13]!==a||e[14]!==l||e[15]!==d?(n=i.jsxs(W,{value:d,onValueChange:h,children:[a,l]}),e[12]=h,e[13]=a,e[14]=l,e[15]=d,e[16]=n):n=e[16];let u;return e[17]!==f||e[18]!==n?(u=i.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[f,n]}),e[17]=f,e[18]=n,e[19]=u):u=e[19],u}function V(c){return i.jsx(Y,{value:c.resolveType,children:c.title},c.resolveType)}function Z(c){return c.resolveType.length>0}function re(c){const e=w.c(33),{rawSeo:t,innerSeo:d,defaultResolveType:h,seoSchema:o,activeResolveType:s,seoTypeOptions:f,formResetKey:r,siteDefaultSeo:a,onBreadcrumbChange:m,onPersistRaw:l,onInnerChange:n,onClearForm:u,onBumpFormKey:p,beforeFields:y}=c;let g;e[0]!==h||e[1]!==p||e[2]!==u||e[3]!==l?(g=C=>{if(C){const F=M(h);l(F),u(),p();return}l(null),u(),p()},e[0]=h,e[1]=p,e[2]=u,e[3]=l,e[4]=g):g=e[4];const S=g;let b;e[5]!==l||e[6]!==t?(b=C=>{const F=Q(C,t);l(F)},e[5]=l,e[6]=t,e[7]=b):b=e[7];const j=b;let v;e[8]!==p||e[9]!==n?(v=C=>{n({__resolveType:C}),p()},e[8]=p,e[9]=n,e[10]=v):v=e[10];const T=v;let x;e[11]!==s||e[12]!==T||e[13]!==t||e[14]!==o||e[15]!==f?(x=N(t)&&o&&s&&f&&f.length>0&&i.jsx(J,{options:f,value:s,onChange:T}),e[11]=s,e[12]=T,e[13]=t,e[14]=o,e[15]=f,e[16]=x):x=e[16];let R;e[17]!==s||e[18]!==r||e[19]!==d||e[20]!==m||e[21]!==n||e[22]!==t||e[23]!==o||e[24]!==a?(R=N(t)&&o&&s&&i.jsx(I,{schema:o,resolveType:s,value:d,formResetKey:r,onChange:C=>n(C),onBreadcrumbChange:m,siteDefaultSeo:a}),e[17]=s,e[18]=r,e[19]=d,e[20]=m,e[21]=n,e[22]=t,e[23]=o,e[24]=a,e[25]=R):R=e[25];let E;return e[26]!==y||e[27]!==j||e[28]!==S||e[29]!==t||e[30]!==x||e[31]!==R?(E=i.jsxs(H,{rawSeo:t,onEnableChange:S,onAsyncRenderChange:j,children:[y,x,R]}),e[26]=y,e[27]=j,e[28]=S,e[29]=t,e[30]=x,e[31]=R,e[32]=E):E=e[32],E}export{re as P,le as a,X as b,oe as u};
@@ -1 +0,0 @@
1
- import{c as ne,b as ce,r as fe,x as we,n as X,j as t,B as ae}from"./index-11Axpbvx.js";import{i as Te}from"./AlertCircle-6tWU7wYa.js";import{aC as ze,w as Ee}from"./agent-icon-BD4ir4AJ.js";import{i as Pe}from"./ChevronRight-DDyA5W9O.js";import{s as _e}from"./Plus-Ns4_pIbl.js";import{a as Ae,b as Me,A as Ue}from"./alert-BKH3qmtb.js";import{S as Ie}from"./use-clock-tick-C-fvo9-8.js";import{_ as Le,bY as $e,as as Oe,bT as He,bU as Re,bZ as Be,bS as be,bW as he,b_ as Fe,b$ as We}from"./index-Beuv5tb0.js";import"./Tool01-55e9Pzj9.js";import"./ArrowUp-D3mIhiFm.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./Check-BIWtIuCf.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./ChevronUp-BFhKV90E.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./Copy01-Dd6exwRm.js";import"./CreditCard01-COkd7l4h.js";import"./Download01-ByYWlv8P.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LinkExternal01-BMTo98Dx.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./select-DCFOCjoX.js";import"./chat-context-DjYbmLav.js";import"./tab-id-DTQBZsSu.js";import"./dialog-BBPJC7yY.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./automation-runs-o4xufCd8.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./shell-layout-BjqyiyfI.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./integration-icon-BTaqQLeL.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./label-9fOXKvHw.js";import"./input-CmWpGJPZ.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CKGtBy6P.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./select-model-D3ApOsFk.js";import"./checkbox-DEpjJOPP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.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 Ke(f){const e=ne.c(17),{support:x}=f,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(Ae,{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:We}),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(Ue,{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 $o(f){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=f,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Le(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=fe.useState(null),[N]=we(),[b,w]=fe.useState(Ve),h=N.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 u=D;let j,C,T,z,k,E,P,_,A,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==u||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ce=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ne,undated:me}=$e(Oe(x)),de=He(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 H;e[29]!==r?(H=r("sandbox.postCalendar.today"),e[29]=r,e[30]=H):H=e[30];let R;e[31]!==H?(R=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:H}),e[31]=H,e[32]=R):R=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(Ge),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(Ee,{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(qe),e[39]=se):se=e[39];let W;e[40]!==r?(W=r("sandbox.postCalendar.next"),e[40]=r,e[41]=W):W=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Pe,{size:16}),e[42]=ie):ie=e[42];let K;e[43]!==W?(K=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":W,children:ie}),e[43]=W,e[44]=K):K=e[44];let q;e[45]!==u?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:u}),e[45]=u,e[46]=q):q=e[46];let G;e[47]!==r?(G=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=G):G=e[48];let V;e[49]!==G?(V=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=V):V=e[50];let Y;e[51]!==r?(Y=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=Y):Y=e[52];let Z;e[53]!==Y?(Z=t.jsx(xe,{className:ye,label:Y}),e[53]=Y,e[54]=Z):Z=e[54];let J;e[55]!==V||e[56]!==Z?(J=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[V,Z]}),e[55]=V,e[56]=Z,e[57]=J):J=e[57],e[58]!==R||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==J?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[R,F,K,q,J]}),e[58]=R,e[59]=F,e[60]=K,e[61]=q,e[62]=J,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Ie;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=X("h-full",pe),e[64]=pe,e[65]=S):S=e[65],C=!m,A="flex min-w-[880px] gap-4 p-4";let Q;e[66]!==r?(Q=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Q):Q=e[67];let le;e[68]!==Q?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Q}),e[68]=Q,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=Ne.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const ue=v.dataTransfer.getData("text/plain");y(null),ue&&c(ue,p)},className:X("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:X("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:Ce.format(p)}),children:t.jsx(_e,{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]}),E="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",P=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),_=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]=u,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=C,e[19]=T,e[20]=z,e[21]=k,e[22]=E,e[23]=P,e[24]=_,e[25]=A,e[26]=M,e[27]=S}else j=e[17],C=e[18],T=e[19],z=e[20],k=e[21],E=e[22],P=e[23],_=e[24],A=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==_?(U=t.jsxs("div",{className:E,children:[P,_]}),e[70]=E,e[71]=P,e[72]=_,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==A||e[76]!==M?(I=t.jsxs("div",{className:A,children:[M,U]}),e[74]=U,e[75]=A,e[76]=M,e[77]=I):I=e[77];let L;e[78]!==j||e[79]!==C||e[80]!==I||e[81]!==S?(L=t.jsx(j,{className:S,inert:C,children:I}),e[78]=j,e[79]=C,e[80]=I,e[81]=S,e[82]=L):L=e[82];let $;e[83]!==m||e[84]!==i?($=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=$):$=e[85];let O;e[86]!==T||e[87]!==L||e[88]!==$?(O=t.jsxs("div",{className:T,children:[L,$]}),e[86]=T,e[87]=L,e[88]=$,e[89]=O):O=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==O?(ee=t.jsxs("div",{className:z,children:[k,O]}),e[90]=z,e[91]=k,e[92]=O,e[93]=ee):ee=e[93],ee}function qe(f){return he(f,1)}function Ge(f){return he(f,-1)}function Ve(){return be(new Date)}function xe(f){const e=ne.c(7),{className:x,label:i}=f;let o;e[0]!==x?(o=X("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(f){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=f,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=C=>{C.dataTransfer.setData("text/plain",s.key),C.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 N;e[8]!==l||e[9]!==s.key?(N=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=N):N=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 u;e[11]!==w||e[12]!==h||e[13]!==D?(u=X("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]=u):u=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==u||e[18]!==g||e[19]!==y||e[20]!==N||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:N,title:b,className:u,children:s.title}),e[15]=o,e[16]=s.title,e[17]=u,e[18]=g,e[19]=y,e[20]=N,e[21]=b,e[22]=j):j=e[22],j}export{$o as PostCalendar};
@@ -1 +0,0 @@
1
- import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-11Axpbvx.js";import{b as Be}from"./chat-context-DjYbmLav.js";import{i as Ie}from"./AlertCircle-6tWU7wYa.js";import{n as Ae}from"./LinkExternal01-BMTo98Dx.js";import{bb as Re,m as De}from"./agent-icon-BD4ir4AJ.js";import{I as ue}from"./input-CmWpGJPZ.js";import{L as xe}from"./label-9fOXKvHw.js";import{M as $e}from"./multi-select-CrjO7fm0.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-DyZN3F6n.js";import{S as Se}from"./switch-DJ3fHjlZ.js";import{T as Le}from"./textarea-CKGtBy6P.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-Beuv5tb0.js";import{b as Qe,a as et,B as tt}from"./block-document-D-iyYRO2.js";import{u as st}from"./use-autosave-BInQ1G8J.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-fNAqchsO.js";import"./tab-id-DTQBZsSu.js";import"./dialog-BBPJC7yY.js";import"./Check-BIWtIuCf.js";import"./Copy01-Dd6exwRm.js";import"./Download01-ByYWlv8P.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./Tool01-55e9Pzj9.js";import"./ArrowUp-D3mIhiFm.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronRight-DDyA5W9O.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./ChevronUp-BFhKV90E.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./CreditCard01-COkd7l4h.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./Plus-Ns4_pIbl.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./badge-DHZdaANE.js";import"./checkbox-DEpjJOPP.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./popover-DvqYGJ6a.js";import"./automation-runs-o4xufCd8.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-clock-tick-C-fvo9-8.js";import"./select-DCFOCjoX.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./shell-layout-BjqyiyfI.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./integration-icon-BTaqQLeL.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./select-model-D3ApOsFk.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function li(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{li as PostEditor};
@@ -1 +0,0 @@
1
- import{c as U,b as B,j as r,r as L,E as X,H as K,a as Z,B as ee,k as te}from"./index-11Axpbvx.js";import{a as oe,g as q,s as H}from"./automation-runs-o4xufCd8.js";import{u as z}from"./use-mcp-client-Ccznzs5K.js";import{W as ie,S as se,p as re}from"./constants-z9Iog-sb.js";import{b as ne,c as le}from"./use-mcp-tools-Dis5cPUY.js";import{u as me}from"./index-Beuv5tb0.js";import{c as ce}from"./monaco-editor-DGH_uddi.js";import{g as ae,M as pe,a as Y}from"./types-v-KFI9T9.js";import{a as de,u as fe}from"./chat-context-DjYbmLav.js";import{u as ue}from"./shell-layout-BjqyiyfI.js";import{O as ge}from"./tab-id-DTQBZsSu.js";import{c as xe,e as he,s as Ce,f as je,P as Se,g as Ie,h as be}from"./self-tool-result-BsMOoqp1.js";import{b as G,a as W,d as J,e as Q}from"./dialog-BBPJC7yY.js";import{I as Ne}from"./integration-icon-BTaqQLeL.js";import{u as De}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-BD4ir4AJ.js";import"./AlertCircle-6tWU7wYa.js";import"./Tool01-55e9Pzj9.js";import"./ArrowUp-D3mIhiFm.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./Check-BIWtIuCf.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronRight-DDyA5W9O.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./ChevronUp-BFhKV90E.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./Copy01-Dd6exwRm.js";import"./CreditCard01-COkd7l4h.js";import"./Download01-ByYWlv8P.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LinkExternal01-BMTo98Dx.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./Plus-Ns4_pIbl.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./use-virtual-mcp-myrJninv.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-clock-tick-C-fvo9-8.js";import"./select-DCFOCjoX.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./hooks-DUQfZTL_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./label-9fOXKvHw.js";import"./input-CmWpGJPZ.js";import"./spinner-5sgFnmTJ.js";import"./file-type-icon-CzJDfNY8.js";import"./auth-iZ8bZTve.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./use-organization-settings-BbsRSP2t.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CKGtBy6P.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./use-ai-providers-C7-CezpT.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./alert-dialog-B4ltP1Zu.js";import"./select-model-D3ApOsFk.js";import"./checkbox-DEpjJOPP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-decopilot-events-DduusyI4.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./track-CAP9UGRM.js";const ve="studio://navigate",Me=new Set(["vtex","ga4","gsc","github"]);function _e(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(ve))return{isNavigate:!1};let o=null,i=null;try{const s=new URL(e.uri).searchParams;o=s.get("main"),i=s.get("field")}catch{}return{isNavigate:!0,tab:o&&ge.has(o)?o:null,field:i&&Me.has(i)?i:null}}function $(N){const e=U.c(12),{onClose:o,children:i}=N,s=B();let t;e[0]!==o?(t=g=>!g&&o(),e[0]=o,e[1]=t):t=e[1];let c;e[2]!==s?(c=s("commerceOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=c):c=e[3];let l;e[4]!==c?(l=r.jsx(W,{children:r.jsx(G,{children:c})}),e[4]=c,e[5]=l):l=e[5];let p;e[6]!==i||e[7]!==l?(p=r.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=p):p=e[8];let n;return e[9]!==t||e[10]!==p?(n=r.jsx(Q,{open:!0,onOpenChange:t,children:p}),e[9]=t,e[10]=p,e[11]=n):n=e[11],n}function F(N){const e=U.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(te,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=r.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,r.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function Oe(N){const e=U.c(19),{field:o,onClose:i}=N,s=B();let t;e[0]!==i||e[1]!==s?(t=()=>r.jsx($,{onClose:i,children:r.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let c;e[3]!==s?(c=s("commerceOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=c):c=e[4];let l;e[5]!==c?(l=r.jsx(F,{label:c}),e[5]=c,e[6]=l):l=e[6];let p;e[7]!==i||e[8]!==l?(p=r.jsx($,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=p):p=e[9];let n;e[10]!==o||e[11]!==i?(n=r.jsx(ye,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let g;e[13]!==p||e[14]!==n?(g=r.jsx(L.Suspense,{fallback:p,children:n}),e[13]=p,e[14]=n,e[15]=g):g=e[15];let x;return e[16]!==t||e[17]!==g?(x=r.jsx(X,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=x):x=e[18],x}function ye(N){const e=U.c(75),{field:o,onClose:i}=N,s=B(),{org:t}=K();let c;e[0]!==t.id?(c=ie.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=c):c=e[1];const l=c;let p;e[2]!==t.id||e[3]!==t.slug?(p={connectionId:se,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=p):p=e[4];const n=z(p),{data:g}=Z.useSession(),x=g?.user?.id??"";let C;e[5]!==l||e[6]!==t||e[7]!==n?(C={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=C):C=e[8];const m=xe(C);let u;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(u={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=u):u=e[13];const{cards:S}=he(u);let h;e[14]!==m?(h=Ce(m)??void 0,e[14]=m,e[15]=h):h=e[15];let D;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==x?(D={selfClient:n,org:t,userId:x,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=x,e[22]=D):D=e[22];const{connect:I,connectingFieldKey:b,error:_}=je(D);let E;if(e[23]!==S||e[24]!==o){let d;e[26]!==o?(d=f=>f.fieldKey===o,e[26]=o,e[27]=d):d=e[27],E=S.find(d),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const a=E;if(!a){let d;e[28]!==s?(d=s("routes.commerceOnboarding.connectModal.loadError"),e[28]=s,e[29]=d):d=e[29];let f;e[30]!==d?(f=r.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[30]=d,e[31]=f):f=e[31];let j;return e[32]!==i||e[33]!==f?(j=r.jsx($,{onClose:i,children:f}),e[32]=i,e[33]=f,e[34]=j):j=e[34],j}const O=Se[a.bindingType];if(O&&a.boundVia!=="oauth"){let d;e[35]!==i?(d=v=>!v&&i(),e[35]=i,e[36]=d):d=e[36];let f;e[37]!==a||e[38]!==I?(f=a.satisfied?void 0:()=>{I(a)},e[37]=a,e[38]=I,e[39]=f):f=e[39];let j;return e[40]!==a||e[41]!==t||e[42]!==O||e[43]!==n||e[44]!==m||e[45]!==d||e[46]!==f?(j=r.jsx(be,{card:a,provider:O,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:d,onOAuthInstead:f}),e[40]=a,e[41]=t,e[42]=O,e[43]=n,e[44]=m,e[45]=d,e[46]=f,e[47]=j):j=e[47],j}if(a.satisfied&&a.linkedConnectionId){let d;e[48]!==s?(d=s("commerceOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=d):d=e[49];let f;e[50]!==d?(f=r.jsx(F,{label:d}),e[50]=d,e[51]=f):f=e[51];let j;e[52]!==i||e[53]!==f?(j=r.jsx($,{onClose:i,children:f}),e[52]=i,e[53]=f,e[54]=j):j=e[54];let v;e[55]!==i?(v=k=>!k&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==a||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=r.jsx(Ie,{card:a,org:t,selfClient:n,connectionId:a.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=a,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let y;return e[63]!==j||e[64]!==M?(y=r.jsx(L.Suspense,{fallback:j,children:M}),e[63]=j,e[64]=M,e[65]=y):y=e[65],y}const R=b===a.fieldKey;let P;e[66]!==a||e[67]!==I?(P=()=>{I(a)},e[66]=a,e[67]=I,e[68]=P):P=e[68];let T;return e[69]!==a||e[70]!==_||e[71]!==i||e[72]!==R||e[73]!==P?(T=r.jsx(Ee,{card:a,connecting:R,error:_,onConnect:P,onClose:i}),e[69]=a,e[70]=_,e[71]=i,e[72]=R,e[73]=P,e[74]=T):T=e[74],T}function Ee(N){const e=U.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:c}=N,l=B(),[p,n]=L.useState(!1);p||(n(!0),queueMicrotask(t));let g;e[0]!==i||e[1]!==c?(g=D=>{!D&&i||D||c()},e[0]=i,e[1]=c,e[2]=g):g=e[2];let x;e[3]!==o.icon||e[4]!==o.title?(x=r.jsx(Ne,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=x):x=e[5];let C;e[6]!==o.title?(C=r.jsx(G,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=C):C=e[7];let m;e[8]!==x||e[9]!==C?(m=r.jsxs(W,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[x,C]}),e[8]=x,e[9]=C,e[10]=m):m=e[10];let u;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==l?(u=s?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),r.jsx(ee,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):r.jsx(F,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=l,e[15]=u):u=e[15];let S;e[16]!==m||e[17]!==u?(S=r.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,u]}),e[16]=m,e[17]=u,e[18]=S):S=e[18];let h;return e[19]!==g||e[20]!==S?(h=r.jsx(Q,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Te(N){const e=U.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:c,args:l}=N,{sendMessage:p}=de(),{setAppContext:n,clearAppContext:g}=fe(),{openSidePanel:x,openTab:C}=ue(),m=`${t}:${s.name}`,[u,S]=L.useState(null);let h;e[0]!==C?(h=A=>A==="inline"?(C("0"),"inline"):"fullscreen",e[0]=C,e[1]=h):h=e[1];const D=h,I=l??Pe;let b;e[2]!==o||e[3]!==s.name||e[4]!==I?(b={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=b):b=e[5];const{data:_}=le(b);let E;if(e[6]!==s._meta||e[7]!==s.name){const A=q(s._meta);E=H(s.name,A),e[6]=s._meta,e[7]=s.name,e[8]=E}else E=e[8];const a=E;let O;e[9]!==s.inputSchema?(O=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=O):O=e[10];let R;e[11]!==a||e[12]!==O||e[13]!==s?(R={...s,name:a,inputSchema:O},e[11]=a,e[12]=O,e[13]=s,e[14]=R):R=e[14];const P=R;let T;e[15]!==x||e[16]!==C||e[17]!==p?(T=A=>{const w=_e(A.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?S(w.field):w.tab&&C(w.tab);return}const V=ce(A.content);V.content.length>0&&(x("chat"),p({tiptapDoc:V}))},e[15]=x,e[16]=C,e[17]=p,e[18]=T):T=e[18];const d=T;let f;e[19]!==P?(f={tool:P},e[19]=P,e[20]=f):f=e[20];let j;e[21]!==n||e[22]!==m?(j=A=>n(m,A),e[21]=n,e[22]=m,e[23]=j):j=e[23];let v;e[24]!==g||e[25]!==m?(v=()=>g(m),e[24]=g,e[25]=m,e[26]=v):v=e[26];let M;e[27]!==o||e[28]!==d||e[29]!==D||e[30]!==c||e[31]!==i||e[32]!==f||e[33]!==j||e[34]!==v||e[35]!==I||e[36]!==_?(M=r.jsx(pe,{resourceURI:i,orgId:c,toolInfo:f,toolInput:I,toolResult:_,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:d,onUpdateModelContext:j,onTeardown:v,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=d,e[29]=D,e[30]=c,e[31]=i,e[32]=f,e[33]=j,e[34]=v,e[35]=I,e[36]=_,e[37]=M):M=e[37];let y;e[38]!==u?(y=u&&r.jsx(Oe,{field:u,onClose:()=>S(null)}),e[38]=u,e[39]=y):y=e[39];let k;return e[40]!==M||e[41]!==y?(k=r.jsxs(r.Fragment,{children:[M,y]}),e[40]=M,e[41]=y,e[42]=k):k=e[42],k}function Ii(N){const e=U.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=K(),c=me(),l=De();let p;e[0]!==o||e[1]!==l||e[2]!==c?(p=re(o)&&l?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=c,e[3]=p):p=e[3];const n=p;let g;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(g={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=g):g=e[8];const x=z(g);let C;e[9]!==x?(C={client:x},e[9]=x,e[10]=C):C=e[10];const{data:m}=ne(C);let u,S,h;e[11]!==i||e[12]!==m.tools?(u=oe(decodeURIComponent(i)),h=m.tools.find(b=>b.name===u)??m.tools.find(b=>{const _=q(b._meta);if(!_)return!1;if(H(b.name,_)===u)return!0;const a=H(u,_);return a!==u&&b.name===a}),S=h?._meta?ae(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=u,e[14]=S,e[15]=h):(u=e[13],S=e[14],h=e[15]);const D=S;if(!h||!D){let b;return e[16]!==u?(b=r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',u,'" not found or has no UI']})}),e[16]=u,e[17]=b):b=e[17],b}let I;return e[18]!==s||e[19]!==x||e[20]!==o||e[21]!==t.id||e[22]!==D||e[23]!==h?(I=r.jsx(Te,{client:x,resourceURI:D,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=x,e[20]=o,e[21]=t.id,e[22]=D,e[23]=h,e[24]=I):I=e[24],I}export{Ii as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as B,b as L,j as r}from"./index-11Axpbvx.js";import{I as A}from"./input-CmWpGJPZ.js";import{L as F}from"./label-9fOXKvHw.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-DCFOCjoX.js";import{T as G}from"./textarea-CKGtBy6P.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-Beuv5tb0.js";import{s as P}from"./primitives-fNAqchsO.js";import{u as H}from"./use-autosave-BInQ1G8J.js";import"./Check-BIWtIuCf.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronUp-BFhKV90E.js";import"./ArrowUp-D3mIhiFm.js";import"./chat-context-DjYbmLav.js";import"./tab-id-DTQBZsSu.js";import"./dialog-BBPJC7yY.js";import"./Copy01-Dd6exwRm.js";import"./Download01-ByYWlv8P.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./automation-runs-o4xufCd8.js";import"./agent-icon-BD4ir4AJ.js";import"./AlertCircle-6tWU7wYa.js";import"./Tool01-55e9Pzj9.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./ChevronRight-DDyA5W9O.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./CreditCard01-COkd7l4h.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LinkExternal01-BMTo98Dx.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./Plus-Ns4_pIbl.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-clock-tick-C-fvo9-8.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./shell-layout-BjqyiyfI.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./integration-icon-BTaqQLeL.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./select-model-D3ApOsFk.js";import"./checkbox-DEpjJOPP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.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-11Axpbvx.js";import{C as ct}from"./checkbox-DEpjJOPP.js";import{I as rt}from"./input-CmWpGJPZ.js";import{L as et}from"./label-9fOXKvHw.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-DCFOCjoX.js";import{G as ut,c0 as yt,K as bt,c1 as jt,c2 as vt}from"./index-Beuv5tb0.js";import{u as gt}from"./use-autosave-BInQ1G8J.js";import"./Check-BIWtIuCf.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronUp-BFhKV90E.js";import"./ArrowUp-D3mIhiFm.js";import"./chat-context-DjYbmLav.js";import"./tab-id-DTQBZsSu.js";import"./dialog-BBPJC7yY.js";import"./Copy01-Dd6exwRm.js";import"./Download01-ByYWlv8P.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./automation-runs-o4xufCd8.js";import"./agent-icon-BD4ir4AJ.js";import"./AlertCircle-6tWU7wYa.js";import"./Tool01-55e9Pzj9.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./ChevronRight-DDyA5W9O.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./CreditCard01-COkd7l4h.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LinkExternal01-BMTo98Dx.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./Plus-Ns4_pIbl.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-clock-tick-C-fvo9-8.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./shell-layout-BjqyiyfI.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./integration-icon-BTaqQLeL.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CKGtBy6P.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./select-model-D3ApOsFk.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.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=yt(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(bt,{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 y;t[36]!==u?(y=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=y):y=t[37];let b;t[38]!==n||t[39]!==h||t[40]!==y?(b=r.jsxs("div",{className:"space-y-2",children:[n,h,y]}),t[38]=n,t[39]=h,t[40]=y,t[41]=b):b=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 w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let K;t[74]!==_?(K=r.jsx(xt,{children:_}),t[74]=_,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,K]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=K,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let 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]!==b||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[b,C,Q,O]})}),t[98]=b,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{di as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DsKkWGEq.js","assets/index-11Axpbvx.js","assets/index-D9Pbmk9A.css","assets/Tool02-HLpWqOaY.js","assets/CheckCircle-DWInED8p.js","assets/Settings02-Dspvirmc.js","assets/use-mcp-client-Ccznzs5K.js","assets/constants-z9Iog-sb.js","assets/auth-iZ8bZTve.js","assets/useInfiniteQuery-CbKuLMPg.js","assets/use-infinite-scroll-czLvmTC2.js","assets/badge-DHZdaANE.js","assets/input-CmWpGJPZ.js","assets/dropdown-menu-B_78l2v6.js","assets/Check-BIWtIuCf.js","assets/ChevronRight-DDyA5W9O.js","assets/DotsVertical-BWFsb5qJ.js","assets/table-CDNSisGr.js","assets/toggle-group-CY548Ail.js","assets/use-view-mode-1QIIASYP.js","assets/FilterLines-CIgGkBSe.js","assets/Globe01-sUFldSbl.js","assets/SearchMd-Cn4Bukdn.js","assets/dialog-BBPJC7yY.js","assets/AlertCircle-6tWU7wYa.js","assets/Download01-ByYWlv8P.js","assets/Upload01-Cxy07oQg.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-B4ltP1Zu.js","assets/Trash01-CyoK4MU5.js","assets/label-9fOXKvHw.js","assets/select-DCFOCjoX.js","assets/ChevronDown-CVbb0r_e.js","assets/ChevronUp-BFhKV90E.js","assets/switch-DJ3fHjlZ.js","assets/textarea-CKGtBy6P.js","assets/ArrowLeft-CfuiIq5H.js","assets/XCircle-9IEiQ4L2.js","assets/checkbox-DEpjJOPP.js","assets/Eye-CoYKR0nI.js","assets/LinkExternal01-BMTo98Dx.js","assets/use-copy-D_i4k6QZ.js","assets/Copy01-Dd6exwRm.js","assets/Key01-CRJ_Etjs.js","assets/Plus-Ns4_pIbl.js","assets/mcp-oauth-CrH_sNAB.js","assets/Play-DvUOD8qW.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,k as a,bi as o}from"./index-11Axpbvx.js";import{R as n}from"./require-capability-CYU1nEvM.js";import"./access-gate-B-12I7Fo.js";import"./capability-load-error-BI676ir-.js";const c=s.lazy(()=>o(()=>import("./registry-layout-DsKkWGEq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,2 +0,0 @@
1
- import{c as st,b as Dt,r as w,n as Ue,j as n,aI as Zn,B as tt,ab as wt,a8 as kt,a9 as Tt,k as es,p as Co,t as q,K as Po}from"./index-11Axpbvx.js";import{b as Mo}from"./chat-context-DjYbmLav.js";import{aw as ts,ax as Lo,ay as Ko,az as Io,aA as Bo,ab as ns,ac as Xt,aB as ss,aC as os,ad as as,ae as is,aD as rs,aE as Oo,al as ls,am as cs,aF as Fo,aG as $o,aH as us,P as zo,af as ds,ag as Lt,aj as ms,ak as fs,ah as ps,ar as gs,aI as Ho,aJ as Kt,aK as hs,aL as Uo,aM as Go,aN as qo,aO as Wo,aP as Jo,F as Yo,G as Qo,aQ as Xo,aR as Zo,aS as ea,aT as ta,aU as In,aV as na,aW as sa,aX as oa,ap as qt,aY as aa,aZ as ia,a_ as Wt,a$ as ra,b0 as St,b1 as Ct,b2 as la,b3 as ca,b4 as nt,b5 as Bn,b6 as ua,H as da,b7 as On,b8 as ma,b9 as fa,ba as Pt,bb as Jt,bc as Fn,bd as pa,be as fn,bf as ga,bg as ht,bh as Et,bi as ha,bj as va,bk as ba,bl as Sa,bm as ya,bn as yt,bo as xa,bp as _a,bq as ja,J as Ea,br as $n,bs as Mt,bt as zn,bu as Hn,bv as Ra,bw as wa,bx as ka,by as Ta,bz as pn,bA as Un,bB as Gn,bC as Rt,bD as Yt,bE as qn,bF as Da,bG as gn,bH as Va,bI as Na,bJ as Aa,bK as Ca,bL as Pa}from"./index-Beuv5tb0.js";import{t as Ma}from"./ChevronDown-CVbb0r_e.js";import{ao as vn,x as La,V as vs,G as Ka,w as Ia,av as Ba,r as Oa}from"./agent-icon-BD4ir4AJ.js";import{i as Fa}from"./ChevronRight-DDyA5W9O.js";import{n as $a}from"./ChevronUp-BFhKV90E.js";import{i as za}from"./Globe01-sUFldSbl.js";import{S as Qt}from"./use-clock-tick-C-fvo9-8.js";import{b as Ha,h as Ua,a as Ga,c as qa,d as Wa,e as Ja}from"./dialog-BBPJC7yY.js";import{I as Ya}from"./input-CmWpGJPZ.js";import{a as bs}from"./Copy01-Dd6exwRm.js";import{i as Qa}from"./Settings02-Dspvirmc.js";import{s as Xa}from"./Eye-CoYKR0nI.js";import{s as Za}from"./TrendUp01-MTqfV8xG.js";import{s as bn}from"./Plus-Ns4_pIbl.js";import{s as Ss}from"./Trash01-CyoK4MU5.js";import{i as ei}from"./Zap-i23d8bq2.js";import{D as ys,a as vt,c as xs,b as _s,i as ti}from"./dropdown-menu-B_78l2v6.js";import{a as ni,P as si,b as oi}from"./page-seo-form-CUYpPPow.js";import{b as ai}from"./Tool01-55e9Pzj9.js";import{u as ii,A as ri}from"./use-section-preview-base-DzEMM7gE.js";import"./tab-id-DTQBZsSu.js";import"./Check-BIWtIuCf.js";import"./Download01-ByYWlv8P.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./ArrowUp-D3mIhiFm.js";import"./automation-runs-o4xufCd8.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./User01-oIs-vUGA.js";import"./Tool02-HLpWqOaY.js";import"./Stars01-hOH5qHG7.js";import"./XCircle-9IEiQ4L2.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./AlertCircle-6tWU7wYa.js";import"./XClose-C_dHeH17.js";import"./Share07-DTtbdEzm.js";import"./Monitor01-DkkiUD9G.js";import"./SearchMd-Cn4Bukdn.js";import"./shell-layout-BjqyiyfI.js";import"./Users03-DeTmNZEn.js";import"./SearchLg-Dx0A_3zi.js";import"./Stars02-aJgerMdO.js";import"./CheckCircle-DWInED8p.js";import"./FilterLines-CIgGkBSe.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./LinkExternal01-BMTo98Dx.js";import"./integration-icon-BTaqQLeL.js";import"./Palette-fIe3ZXln.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./label-9fOXKvHw.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./Upload01-Cxy07oQg.js";import"./select-DCFOCjoX.js";import"./UserSquare-DR98X7-R.js";import"./ArrowLeft-CfuiIq5H.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./LockUnlocked01-BYZjwbAR.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CKGtBy6P.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./select-model-D3ApOsFk.js";import"./checkbox-DEpjJOPP.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./Key01-CRJ_Etjs.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./DotsVertical-BWFsb5qJ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./ZapSquare-Dc-rKzAG.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./Play-DvUOD8qW.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./Users01-Fr1ZQuZu.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./Shield01-Boe32FKW.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.js";import"./CreditCard01-COkd7l4h.js";import"./Globe04-DUXrz6XD.js";import"./HardDrive-Cx4T9PNd.js";import"./LogOut01-4jTBHB4S.js";import"./Sun-cD-kH109.js";function li(d){return d.schema?.definitions??d.schema?.$defs??{}}function js(d,e){const a=li(e),u=a[btoa(d)];if(!u)return[];const p=[u];if(Array.isArray(u.allOf)){const x=u.allOf.find(j=>typeof j.$ref=="string")?.$ref;if(typeof x=="string"){const j=a[x.replace("#/definitions/","")];j&&p.push(j)}}return p}function ci(d,e){for(const a of js(d,e)){const u=typeof a.image=="string"?a.image:void 0;if(u?.includes("{{{"))return u}}function ui(d,e){if(!e)return;const a=ts(d);if(!a)return;const u=ci(a.resolveType,e);if(!u)return;const p=Lo(u,a.data);if(p)return Ko(p)}const di={escape:Bo};function mi(d,e){for(const a of js(d,e)){const u=typeof a.title=="string"?a.title:void 0;if(u?.includes("{{"))return u}}function fi(d,e){if(!e)return;const a=ts(d);if(a)try{const u=mi(a.resolveType,e);return u&&Io.render(u,a.data,{},di).trim()||void 0}catch{return}}const pi="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",gi="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function Wn(d){return Array.from({length:d},(e,a)=>({id:crypto.randomUUID(),index:a}))}function Es(d){return d.map((e,a)=>({...e,index:a}))}function hi(d,e){if(e===d.length)return d;if(e<d.length)return Es(d.slice(0,e));const a=Array.from({length:e-d.length},(u,p)=>({id:crypto.randomUUID(),index:d.length+p}));return[...d,...a]}function Rs(d){const e=st.c(25),{section:a,raw:u,meta:p}=d,x=a.isSavedBlock===!0,j=a.isMultivariate===!0;let v;e[0]!==p||e[1]!==u?(v=u&&p?ui(u,p):void 0,e[0]=p,e[1]=u,e[2]=v):v=e[2];const y=v;let g;e[3]!==p||e[4]!==j||e[5]!==u||e[6]!==x?(g=u&&p&&!x&&!j?fi(u,p):void 0,e[3]=p,e[4]=j,e[5]=u,e[6]=x,e[7]=g):g=e[7];const k=g;let K;e[8]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(La,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[8]=K):K=e[8];let M;e[9]!==y?(M=y&&n.jsx("img",{src:y,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[9]=y,e[10]=M):M=e[10];let D;e[11]!==j||e[12]!==x?(D=x?{color:zo}:j?{color:"oklch(0.65 0.15 160)"}:void 0,e[11]=j,e[12]=x,e[13]=D):D=e[13];let c;e[14]!==D?(c=n.jsx(vn,{className:"h-4 w-4 shrink-0",style:D}),e[14]=D,e[15]=c):c=e[15];const S=a.isHidden&&"line-through opacity-50";let R;e[16]!==S?(R=Ue("min-w-0 flex-1 truncate text-sm font-medium",S),e[16]=S,e[17]=R):R=e[17];const l=k??a.label;let V;e[18]!==R||e[19]!==l?(V=n.jsx("span",{className:R,children:l}),e[18]=R,e[19]=l,e[20]=V):V=e[20];let i;return e[21]!==V||e[22]!==M||e[23]!==c?(i=n.jsxs(n.Fragment,{children:[K,M,c,V]}),e[21]=V,e[22]=M,e[23]=c,e[24]=i):i=e[24],i}const vi="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",bi="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]",Si="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(d,e){return Ue("h-7 shrink-0 overflow-hidden",e?vi:d?Si:bi)}function ws(d,e){const a=d.isSavedBlock===!0,u=d.isMultivariate===!0;return Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":a?pi:u?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function yi(d){const e=st.c(82),{section:a,raw:u,meta:p,sortableId:x,selected:j,onSelect:v,onDelete:y,onDuplicate:g,onMakeReusable:k,onToggleHidden:K,onToggleLazy:M,onAddVariant:D,onDetach:c}=d,S=Dt(),R=u?rs(u.__resolveType??""):!1,l=a.isHidden===!0,V=R||l;let i;e[0]!==a?(i=Oo(a),e[0]=a,e[1]=i):i=e[1];const J=i;let U;e[2]!==x?(U={id:x,animateLayoutChanges:Ri},e[2]=x,e[3]=U):U=e[3];const{attributes:Le,listeners:Y,setNodeRef:m,transform:P,isDragging:we}=ls(U);let N;e[4]!==P?(N=cs.Transform.toString(P?{...P,x:0}:null),e[4]=P,e[5]=N):N=e[5];const Z=we?0:void 0;let T;e[6]!==N||e[7]!==Z?(T={transform:N,opacity:Z},e[6]=N,e[7]=Z,e[8]=T):T=e[8];const ae=T;let I;e[9]!==a?(I=Fo(a),e[9]=a,e[10]=I):I=e[10];const Ce=I;let ee;e[11]!==v?(ee=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),v())},e[11]=v,e[12]=ee):ee=e[12];const de=we?"cursor-grabbing":"cursor-pointer";let Q;e[13]!==a||e[14]!==j||e[15]!==de?(Q=Ue("touch-none transition-colors",de,ws(a,j)),e[13]=a,e[14]=j,e[15]=de,e[16]=Q):Q=e[16];let ie;e[17]!==p||e[18]!==u||e[19]!==a?(ie=n.jsx(Rs,{section:a,raw:u,meta:p}),e[17]=p,e[18]=u,e[19]=a,e[20]=ie):ie=e[20];let ye;e[21]!==l||e[22]!==S?(ye=S(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[21]=l,e[22]=S,e[23]=ye):ye=e[23];let re;e[24]!==K?(re=_=>{_.stopPropagation(),K()},e[24]=K,e[25]=re):re=e[25];let L;e[26]!==l?(L=l?n.jsx(Qa,{className:"h-3.5 w-3.5"}):n.jsx(Xa,{className:"h-3.5 w-3.5"}),e[26]=l,e[27]=L):L=e[27];let qe;e[28]!==l||e[29]!==S?(qe=S(l?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[28]=l,e[29]=S,e[30]=qe):qe=e[30];let Ke;e[31]!==qe?(Ke=n.jsx(Tt,{side:"bottom",children:qe}),e[31]=qe,e[32]=Ke):Ke=e[32];const Be=xs,ke=ys,F=!0,te=tt,Oe="button",Pe="ghost",xe="icon";let ne;e[33]!==S?(ne=S("sectionsEditor.sectionList.sectionActionsMenu"),e[33]=S,e[34]=ne):ne=e[34];const me=Ue(hn(V,!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 _e;e[35]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(vs,{className:"h-3.5 w-3.5"}),e[35]=_e):_e=e[35];let fe;e[36]!==te||e[37]!==ne||e[38]!==me?(fe=n.jsx(te,{type:Oe,variant:Pe,size:xe,"aria-label":ne,className:me,onClick:_i,onPointerDown:xi,children:_e}),e[36]=te,e[37]=ne,e[38]=me,e[39]=fe):fe=e[39];let pe;e[40]!==ke||e[41]!==fe?(pe=n.jsx(ke,{asChild:F,children:fe}),e[40]=ke,e[41]=fe,e[42]=pe):pe=e[42];let se;e[43]!==g?(se=_=>{_.stopPropagation(),g()},e[43]=g,e[44]=se):se=e[44];let Me;e[45]===Symbol.for("react.memo_cache_sentinel")?(Me=n.jsx(bs,{className:"h-4 w-4"}),e[45]=Me):Me=e[45];let je;e[46]!==S?(je=S("sectionsEditor.sectionList.duplicateMenuItem"),e[46]=S,e[47]=je):je=e[47];let le;e[48]!==se||e[49]!==je?(le=n.jsxs(vt,{onClick:se,children:[Me,je]}),e[48]=se,e[49]=je,e[50]=le):le=e[50];let B;e[51]!==J||e[52]!==D||e[53]!==S?(B=J&&n.jsxs(vt,{className:$o,onClick:_=>{_.stopPropagation(),D()},children:[n.jsx(Za,{className:"h-4 w-4"}),S("sectionsEditor.sectionList.addVariantMenuItem")]}),e[51]=J,e[52]=D,e[53]=S,e[54]=B):B=e[54];let Ee;e[55]!==Ce||e[56]!==k||e[57]!==S?(Ee=Ce&&n.jsxs(vt,{className:gi,onClick:_=>{_.stopPropagation(),k()},children:[n.jsx(vn,{className:"h-4 w-4"}),S("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[55]=Ce,e[56]=k,e[57]=S,e[58]=Ee):Ee=e[58];let ge;e[59]!==c||e[60]!==a.isMultivariate||e[61]!==a.isSavedBlock||e[62]!==S?(ge=a.isSavedBlock===!0&&!a.isMultivariate&&n.jsxs(vt,{onClick:_=>{_.stopPropagation(),c()},children:[n.jsx(vn,{className:"h-4 w-4"}),S("sectionsEditor.sectionList.detachMenuItem")]}),e[59]=c,e[60]=a.isMultivariate,e[61]=a.isSavedBlock,e[62]=S,e[63]=ge):ge=e[63];let ce;e[64]!==y?(ce=_=>{_.stopPropagation(),y()},e[64]=y,e[65]=ce):ce=e[65];let he;e[66]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(Ss,{className:"h-4 w-4"}),e[66]=he):he=e[66];let X;e[67]!==S?(X=S("sectionsEditor.sectionList.deleteMenuItem"),e[67]=S,e[68]=X):X=e[68];let ue;e[69]!==ce||e[70]!==X?(ue=n.jsxs(vt,{className:"text-destructive focus:text-destructive",onClick:ce,children:[he,X]}),e[69]=ce,e[70]=X,e[71]=ue):ue=e[71];let ve;e[72]!==le||e[73]!==B||e[74]!==Ee||e[75]!==ge||e[76]!==ue?(ve=n.jsxs(_s,{align:"end",className:"w-44",children:[le,B,Ee,ge,ue]}),e[72]=le,e[73]=B,e[74]=Ee,e[75]=ge,e[76]=ue,e[77]=ve):ve=e[77];let Te;return e[78]!==Be||e[79]!==pe||e[80]!==ve?(Te=n.jsxs(Be,{children:[pe,ve]}),e[78]=Be,e[79]=pe,e[80]=ve,e[81]=Te):Te=e[81],n.jsxs("div",{ref:m,style:ae,...Le,...Y,role:"button",tabIndex:0,onClick:v,onKeyDown:ee,className:Q,children:[ie,!a.isMultivariate&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":S(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:Ue(hn(V,R)),onClick:_=>{_.stopPropagation(),M()},onPointerDown:Ei,children:n.jsx(ei,{className:Ue("h-3.5 w-3.5",R&&"text-yellow-500")})})}),n.jsx(Tt,{side:"bottom",children:S(R?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":ye,className:Ue(hn(V,l)),onClick:re,onPointerDown:ji,children:L})}),Ke]}),Te]})}function xi(d){return d.stopPropagation()}function _i(d){return d.stopPropagation()}function ji(d){return d.stopPropagation()}function Ei(d){return d.stopPropagation()}function Ri(){return!1}function wi(d){const e=st.c(104),{listKey:a,rawSections:u,sections:p,meta:x,selectedIndex:j,onSelect:v,onReorder:y,onDelete:g,onDuplicate:k,onMakeReusable:K,onToggleHidden:M,onToggleLazy:D,onAddVariant:c,onDetach:S,onAddSection:R,canAddSection:l}=d,V=l===void 0?!0:l,i=Dt();let J;e[0]!==p.length?(J=()=>Wn(p.length),e[0]=p.length,e[1]=J):J=e[1];const[U,Le]=w.useState(J),[Y,m]=w.useState(null),[P,we]=w.useState(a),[N,Z]=w.useState(p.length),T=w.useRef(!1);P!==a?(we(a),Z(p.length),Le(Wn(p.length))):N!==p.length&&(Z(p.length),Le(Te=>hi(Te,p.length)));let ae;e[2]===Symbol.for("react.memo_cache_sentinel")?(ae={activationConstraint:{distance:8}},e[2]=ae):ae=e[2];let I;e[3]===Symbol.for("react.memo_cache_sentinel")?(I={coordinateGetter:ds},e[3]=I):I=e[3];const Ce=ns(Xt(is,ae),Xt(as,I));let ee;e[4]!==U?(ee=U.map(ki),e[4]=U,e[5]=ee):ee=e[5];const de=ee;let Q;e[6]===Symbol.for("react.memo_cache_sentinel")?(Q=Te=>{m(String(Te.active.id))},e[6]=Q):Q=e[6];const ie=Q;let ye;e[7]!==de||e[8]!==y?(ye=Te=>{m(null);const{active:_,over:be}=Te;if(!be||_.id===be.id)return;const oe=de.indexOf(String(_.id)),De=de.indexOf(String(be.id));oe===-1||De===-1||(Le(Fe=>Es(Lt([...Fe],oe,De))),T.current=!0,requestAnimationFrame(()=>{T.current=!1}),y?.(oe,De))},e[7]=de,e[8]=y,e[9]=ye):ye=e[9];const re=ye;let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{m(null)},e[10]=L):L=e[10];const qe=L;let Ke,Be,ke,F,te,Oe,Pe,xe,ne,me,_e,fe,pe,se,Me;if(e[11]!==Y||e[12]!==V||e[13]!==U||e[14]!==de||e[15]!==re||e[16]!==x||e[17]!==R||e[18]!==c||e[19]!==g||e[20]!==S||e[21]!==k||e[22]!==K||e[23]!==v||e[24]!==M||e[25]!==D||e[26]!==u||e[27]!==p||e[28]!==j||e[29]!==Ce||e[30]!==i){se=Symbol.for("react.early_return_sentinel");e:{const Te=_=>{T.current||v(_)};if(e[46]!==Y||e[47]!==V||e[48]!==U||e[49]!==R||e[50]!==u||e[51]!==p||e[52]!==i){const _=Y?U.find(be=>be.id===Y):null;if(F=_!=null?p[_.index]:null,ke=_!=null?u[_.index]:void 0,U.length===0){let be;e[56]!==i?(be=i("sectionsEditor.sectionList.noSections"),e[56]=i,e[57]=be):be=e[57];let oe;e[58]!==be?(oe=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:be}),e[58]=be,e[59]=oe):oe=e[59];const De=!V;let Fe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Fe=n.jsx(bn,{size:14}),e[60]=Fe):Fe=e[60];let ct;e[61]!==i?(ct=i("sectionsEditor.sectionList.addSectionButton"),e[61]=i,e[62]=ct):ct=e[62];let Ve;e[63]!==R||e[64]!==De||e[65]!==ct?(Ve=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:De,onClick:R,children:[Fe,ct]}),e[63]=R,e[64]=De,e[65]=ct,e[66]=Ve):Ve=e[66];let Xe;e[67]!==oe||e[68]!==Ve?(Xe=n.jsxs("div",{className:"space-y-2",children:[oe,Ve]}),e[67]=oe,e[68]=Ve,e[69]=Xe):Xe=e[69],se=Xe;break e}pe=Ue(_&&"cursor-grabbing"),e[46]=Y,e[47]=V,e[48]=U,e[49]=R,e[50]=u,e[51]=p,e[52]=i,e[53]=ke,e[54]=F,e[55]=pe}else ke=e[53],F=e[54],pe=e[55];Be=ms,xe=Ce,ne=fs,me=ie,_e=re,fe=qe,Ke=ps,Oe=de,Pe=gs,Me="space-y-1",te=U.map(_=>{const be=p[_.index];return be?n.jsx(yi,{sortableId:_.id,section:be,raw:u[_.index],meta:x,selected:j===_.index,onSelect:()=>Te(_.index),onDelete:()=>g(_.index),onDuplicate:()=>k(_.index),onMakeReusable:()=>K(_.index),onToggleHidden:()=>M(_.index),onToggleLazy:()=>D(_.index),onAddVariant:()=>c(_.index),onDetach:()=>S(_.index)},_.id):null})}e[11]=Y,e[12]=V,e[13]=U,e[14]=de,e[15]=re,e[16]=x,e[17]=R,e[18]=c,e[19]=g,e[20]=S,e[21]=k,e[22]=K,e[23]=v,e[24]=M,e[25]=D,e[26]=u,e[27]=p,e[28]=j,e[29]=Ce,e[30]=i,e[31]=Ke,e[32]=Be,e[33]=ke,e[34]=F,e[35]=te,e[36]=Oe,e[37]=Pe,e[38]=xe,e[39]=ne,e[40]=me,e[41]=_e,e[42]=fe,e[43]=pe,e[44]=se,e[45]=Me}else Ke=e[31],Be=e[32],ke=e[33],F=e[34],te=e[35],Oe=e[36],Pe=e[37],xe=e[38],ne=e[39],me=e[40],_e=e[41],fe=e[42],pe=e[43],se=e[44],Me=e[45];if(se!==Symbol.for("react.early_return_sentinel"))return se;let je;e[70]!==te||e[71]!==Me?(je=n.jsx("div",{className:Me,children:te}),e[70]=te,e[71]=Me,e[72]=je):je=e[72];let le;e[73]!==Ke||e[74]!==Oe||e[75]!==Pe||e[76]!==je?(le=n.jsx(Ke,{items:Oe,strategy:Pe,children:je}),e[73]=Ke,e[74]=Oe,e[75]=Pe,e[76]=je,e[77]=le):le=e[77];let B;e[78]!==ke||e[79]!==F||e[80]!==x?(B=F?n.jsx("div",{className:Ue("cursor-grabbing shadow-lg ring-1 ring-border/60",ws(F,!1)),children:n.jsx(Rs,{section:F,raw:ke,meta:x})}):null,e[78]=ke,e[79]=F,e[80]=x,e[81]=B):B=e[81];let Ee;e[82]!==B?(Ee=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:B}),document.body),e[82]=B,e[83]=Ee):Ee=e[83];let ge;e[84]!==Be||e[85]!==xe||e[86]!==ne||e[87]!==me||e[88]!==_e||e[89]!==fe||e[90]!==le||e[91]!==Ee?(ge=n.jsxs(Be,{sensors:xe,collisionDetection:ne,onDragStart:me,onDragEnd:_e,onDragCancel:fe,children:[le,Ee]}),e[84]=Be,e[85]=xe,e[86]=ne,e[87]=me,e[88]=_e,e[89]=fe,e[90]=le,e[91]=Ee,e[92]=ge):ge=e[92];const ce=!V;let he;e[93]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(bn,{size:14}),e[93]=he):he=e[93];let X;e[94]!==i?(X=i("sectionsEditor.sectionList.addSectionButton"),e[94]=i,e[95]=X):X=e[95];let ue;e[96]!==R||e[97]!==ce||e[98]!==X?(ue=n.jsxs(tt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:ce,onClick:R,children:[he,X]}),e[96]=R,e[97]=ce,e[98]=X,e[99]=ue):ue=e[99];let ve;return e[100]!==pe||e[101]!==ge||e[102]!==ue?(ve=n.jsxs("div",{className:pe,children:[ge,ue]}),e[100]=pe,e[101]=ge,e[102]=ue,e[103]=ve):ve=e[103],ve}function ki(d){return d.id}function Jn(d){const e=st.c(57),{open:a,initialName:u,autoLabel:p,isPending:x,onSubmit:j,onOpenChange:v}=d,y=x===void 0?!1:x,g=Dt(),[k,K]=w.useState(u),[M,D]=w.useState(a);a!==M&&(D(a),a&&K(u));let c;e[0]!==y||e[1]!==v?(c=ie=>{!ie&&!y&&v(!1)},e[0]=y,e[1]=v,e[2]=c):c=e[2];const S=c;let R;e[3]!==y||e[4]!==k||e[5]!==j?(R=async ie=>{ie.preventDefault(),!y&&await j(k.trim())},e[3]=y,e[4]=k,e[5]=j,e[6]=R):R=e[6];const l=R;let V;e[7]!==g?(V=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=V):V=e[8];let i;e[9]!==V?(i=n.jsx(Ha,{children:V}),e[9]=V,e[10]=i):i=e[10];let J;e[11]!==p||e[12]!==g?(J=g("sectionsEditor.variantRenameDialog.description",{fallback:p||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=p,e[12]=g,e[13]=J):J=e[13];let U;e[14]!==J?(U=n.jsx(Ua,{children:J}),e[14]=J,e[15]=U):U=e[15];let Le;e[16]!==i||e[17]!==U?(Le=n.jsxs(Ga,{children:[i,U]}),e[16]=i,e[17]=U,e[18]=Le):Le=e[18];let Y;e[19]!==g?(Y=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=Y):Y=e[20];let m;e[21]!==Y?(m=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:Y}),e[21]=Y,e[22]=m):m=e[22];let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=ie=>K(ie.target.value),e[23]=P):P=e[23];let we;e[24]!==p||e[25]!==y||e[26]!==k?(we=n.jsx(Ya,{id:"variant-rename-name",value:k,onChange:P,placeholder:p,autoFocus:!0,disabled:y}),e[24]=p,e[25]=y,e[26]=k,e[27]=we):we=e[27];let N;e[28]!==m||e[29]!==we?(N=n.jsxs("div",{className:"space-y-1.5 py-4",children:[m,we]}),e[28]=m,e[29]=we,e[30]=N):N=e[30];let Z;e[31]!==v?(Z=()=>v(!1),e[31]=v,e[32]=Z):Z=e[32];let T;e[33]!==g?(T=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=T):T=e[34];let ae;e[35]!==y||e[36]!==Z||e[37]!==T?(ae=n.jsx(tt,{type:"button",variant:"outline",onClick:Z,disabled:y,children:T}),e[35]=y,e[36]=Z,e[37]=T,e[38]=ae):ae=e[38];let I;e[39]!==y||e[40]!==g?(I=y?n.jsxs(n.Fragment,{children:[n.jsx(es,{size:14,className:"animate-spin"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=y,e[40]=g,e[41]=I):I=e[41];let Ce;e[42]!==y||e[43]!==I?(Ce=n.jsx(tt,{type:"submit",disabled:y,children:I}),e[42]=y,e[43]=I,e[44]=Ce):Ce=e[44];let ee;e[45]!==ae||e[46]!==Ce?(ee=n.jsxs(qa,{children:[ae,Ce]}),e[45]=ae,e[46]=Ce,e[47]=ee):ee=e[47];let de;e[48]!==l||e[49]!==N||e[50]!==ee||e[51]!==Le?(de=n.jsx(Wa,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:l,children:[Le,N,ee]})}),e[48]=l,e[49]=N,e[50]=ee,e[51]=Le,e[52]=de):de=e[52];let Q;return e[53]!==S||e[54]!==a||e[55]!==de?(Q=n.jsx(Ja,{open:a,onOpenChange:S,children:de}),e[53]=S,e[54]=a,e[55]=de,e[56]=Q):Q=e[56],Q}function ks(d){const e=st.c(5),{rule:a,matchers:u}=d,p=a?.__resolveType??"";let x;if(e[0]!==u||e[1]!==p){const g=u.find(k=>k.resolveType===p)?.iconName??Ho(p);x=Ka(g),e[0]=u,e[1]=p,e[2]=x}else x=e[2];const j=x;if(!j)return null;let v;return e[3]!==j?(v=n.jsx(j,{size:14,className:"shrink-0"}),e[3]=j,e[4]=v):v=e[4],v}function Yn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
2
- `)}function Qn(d){return d.map((e,a)=>({id:crypto.randomUUID(),index:a,variant:e}))}function Ti(d,e){const a=new Map;for(const u of d){const p=a.get(u.variant.label);p?p.push(u):a.set(u.variant.label,[u])}return e.map((u,p)=>({id:a.get(u.label)?.shift()?.id??crypto.randomUUID(),index:p,variant:u}))}function Di(d){return d.map((e,a)=>({...e,index:a}))}function Ts(d){const e=st.c(17),{label:a,effectiveRule:u,matchers:p,canDelete:x,dragging:j,onRename:v,onDuplicate:y,onDelete:g}=d,k=Dt();let K;e[0]!==u||e[1]!==p?(K=n.jsx(ks,{rule:u,matchers:p}),e[0]=u,e[1]=p,e[2]=K):K=e[2];let M;e[3]!==a?(M=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:a}),e[3]=a,e[4]=M):M=e[4];let D;e[5]!==x||e[6]!==j||e[7]!==a||e[8]!==g||e[9]!==y||e[10]!==v||e[11]!==k?(D=!j&&n.jsxs(xs,{children:[n.jsx(ys,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":k("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:a}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Ni,onPointerDown:Vi,children:n.jsx(vs,{size:14})})}),n.jsxs(_s,{align:"end",className:"w-36",children:[n.jsxs(vt,{onClick:S=>{S.stopPropagation(),v?.()},children:[n.jsx(ai,{size:14}),k("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(vt,{onClick:S=>{S.stopPropagation(),y?.()},children:[n.jsx(bs,{size:14}),k("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(ti,{}),n.jsxs(vt,{variant:"destructive",disabled:!x,onClick:S=>{S.stopPropagation(),g?.()},children:[n.jsx(Ss,{size:14}),k("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=x,e[6]=j,e[7]=a,e[8]=g,e[9]=y,e[10]=v,e[11]=k,e[12]=D):D=e[12];let c;return e[13]!==K||e[14]!==M||e[15]!==D?(c=n.jsxs(n.Fragment,{children:[K,M,D]}),e[13]=K,e[14]=M,e[15]=D,e[16]=c):c=e[16],c}function Vi(d){return d.stopPropagation()}function Ni(d){return d.stopPropagation()}function Ai(d){const e=st.c(33),{entry:a,isActive:u,canDelete:p,decofile:x,meta:j,matchers:v,onSelect:y,onRename:g,onDuplicate:k,onDelete:K}=d;let M;e[0]!==a.id?(M={id:a.id,animateLayoutChanges:Ci},e[0]=a.id,e[1]=M):M=e[1];const{attributes:D,listeners:c,setNodeRef:S,transform:R,isDragging:l}=ls(M);let V;e[2]!==R?(V=cs.Transform.toString(R?{...R,x:0}:null),e[2]=R,e[3]=V):V=e[3];const i=l?0:void 0;let J;e[4]!==V||e[5]!==i?(J={transform:V,opacity:i},e[4]=V,e[5]=i,e[6]=J):J=e[6];const U=J,Le=j??void 0;let Y;e[7]!==x||e[8]!==a.variant.rule||e[9]!==Le?(Y=Kt(a.variant.rule,x,Le),e[7]=x,e[8]=a.variant.rule,e[9]=Le,e[10]=Y):Y=e[10];const m=Y;let P;e[11]!==y?(P=I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),y())},e[11]=y,e[12]=P):P=e[12];const we=l?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",N=u?hs:us;let Z;e[13]!==we||e[14]!==N?(Z=Ue("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",we,N),e[13]=we,e[14]=N,e[15]=Z):Z=e[15];let T;e[16]!==p||e[17]!==m||e[18]!==a.variant.label||e[19]!==v||e[20]!==K||e[21]!==k||e[22]!==g?(T=n.jsx(Ts,{label:a.variant.label,effectiveRule:m,matchers:v,canDelete:p,onRename:g,onDuplicate:k,onDelete:K}),e[16]=p,e[17]=m,e[18]=a.variant.label,e[19]=v,e[20]=K,e[21]=k,e[22]=g,e[23]=T):T=e[23];let ae;return e[24]!==D||e[25]!==c||e[26]!==y||e[27]!==S||e[28]!==U||e[29]!==Z||e[30]!==T||e[31]!==P?(ae=n.jsx("div",{ref:S,style:U,...D,...c,onClick:y,onKeyDown:P,className:Z,children:T}),e[24]=D,e[25]=c,e[26]=y,e[27]=S,e[28]=U,e[29]=Z,e[30]=T,e[31]=P,e[32]=ae):ae=e[32],ae}function Ci(){return!1}function Pi(d){const e=st.c(9),{variant:a,decofile:u,meta:p,matchers:x}=d,j=p??void 0;let v;e[0]!==u||e[1]!==j||e[2]!==a.rule?(v=Kt(a.rule,u,j),e[0]=u,e[1]=j,e[2]=a.rule,e[3]=v):v=e[3];const y=v;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=Ue("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",hs),e[4]=g):g=e[4];let k;return e[5]!==y||e[6]!==x||e[7]!==a.label?(k=n.jsx("div",{className:g,children:n.jsx(Ts,{label:a.label,effectiveRule:y,matchers:x,canDelete:!1,dragging:!0})}),e[5]=y,e[6]=x,e[7]=a.label,e[8]=k):k=e[8],k}function Mi(d){const e=st.c(91),{listKey:a,variants:u,activeIndex:p,decofile:x,meta:j,matchers:v,onSelect:y,onReorder:g,onRename:k,onDuplicate:K,onDelete:M,onAdd:D}=d,c=Dt();let S;e[0]!==u?(S=()=>Qn(u),e[0]=u,e[1]=S):S=e[1];const[R,l]=w.useState(S),[V,i]=w.useState(null),[J,U]=w.useState(a),[Le,Y]=w.useState(u.length);let m;e[2]!==u?(m=()=>Yn(u),e[2]=u,e[3]=m):m=e[3];const[P,we]=w.useState(m),N=w.useRef(!1),Z=Yn(u);J!==a?(U(a),Y(u.length),we(Z),l(Qn(u))):(Le!==u.length||P!==Z)&&(Y(u.length),we(Z),l(ge=>Ti(ge,u)));let T;e[4]===Symbol.for("react.memo_cache_sentinel")?(T={activationConstraint:{distance:8}},e[4]=T):T=e[4];let ae;e[5]===Symbol.for("react.memo_cache_sentinel")?(ae={coordinateGetter:ds},e[5]=ae):ae=e[5];const I=ns(Xt(is,T),Xt(as,ae));let Ce;e[6]!==R?(Ce=R.map(Li),e[6]=R,e[7]=Ce):Ce=e[7];const ee=Ce,de=u.length>1;let Q;e[8]!==R?(Q=ge=>{const ce=String(ge.active.id);i(R.find(he=>he.id===ce)??null)},e[8]=R,e[9]=Q):Q=e[9];const ie=Q;let ye;e[10]!==ee||e[11]!==g?(ye=ge=>{i(null);const{active:ce,over:he}=ge;if(!he||ce.id===he.id)return;const X=ee.indexOf(String(ce.id)),ue=ee.indexOf(String(he.id));X===-1||ue===-1||(l(ve=>Di(Lt([...ve],X,ue))),N.current=!0,requestAnimationFrame(()=>{N.current=!1}),g(X,ue))},e[10]=ee,e[11]=g,e[12]=ye):ye=e[12];const re=ye;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{i(null)},e[13]=L):L=e[13];const qe=L;let Ke,Be,ke,F,te,Oe,Pe,xe,ne,me,_e,fe,pe;if(e[14]!==p||e[15]!==de||e[16]!==x||e[17]!==R||e[18]!==ee||e[19]!==re||e[20]!==ie||e[21]!==v||e[22]!==j||e[23]!==D||e[24]!==M||e[25]!==K||e[26]!==k||e[27]!==y||e[28]!==I||e[29]!==c){const ge=oe=>{N.current||y(oe)};_e="space-y-1 border-b p-2";let ce;e[43]!==c?(ce=c("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=c,e[44]=ce):ce=e[44];let he;e[45]!==ce?(he=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:ce}),e[45]=ce,e[46]=he):he=e[46];let X;e[47]!==c?(X=c("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=c,e[48]=X):X=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]!==D||e[51]!==X?(ve=n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":X,className:"size-6",onClick:D,children:ue})}),e[50]=D,e[51]=X,e[52]=ve):ve=e[52];let Te;e[53]!==c?(Te=c("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=c,e[54]=Te):Te=e[54];let _;e[55]!==Te?(_=n.jsx(Tt,{children:Te}),e[55]=Te,e[56]=_):_=e[56];let be;e[57]!==ve||e[58]!==_?(be=n.jsxs(wt,{children:[ve,_]}),e[57]=ve,e[58]=_,e[59]=be):be=e[59],e[60]!==he||e[61]!==be?(fe=n.jsxs("div",{className:"flex items-center justify-between",children:[he,be]}),e[60]=he,e[61]=be,e[62]=fe):fe=e[62],Be=ms,Oe=I,Pe=fs,xe=ie,ne=re,me=qe,Ke=ps,F=ee,te=gs,pe="space-y-0.5",ke=R.map(oe=>n.jsx(Ai,{entry:oe,isActive:oe.index===p,canDelete:de,decofile:x,meta:j,matchers:v,onSelect:()=>ge(oe.index),onRename:()=>k(oe.index),onDuplicate:()=>K(oe.index),onDelete:()=>M(oe.index)},oe.id)),e[14]=p,e[15]=de,e[16]=x,e[17]=R,e[18]=ee,e[19]=re,e[20]=ie,e[21]=v,e[22]=j,e[23]=D,e[24]=M,e[25]=K,e[26]=k,e[27]=y,e[28]=I,e[29]=c,e[30]=Ke,e[31]=Be,e[32]=ke,e[33]=F,e[34]=te,e[35]=Oe,e[36]=Pe,e[37]=xe,e[38]=ne,e[39]=me,e[40]=_e,e[41]=fe,e[42]=pe}else Ke=e[30],Be=e[31],ke=e[32],F=e[33],te=e[34],Oe=e[35],Pe=e[36],xe=e[37],ne=e[38],me=e[39],_e=e[40],fe=e[41],pe=e[42];let se;e[63]!==ke||e[64]!==pe?(se=n.jsx("div",{className:pe,children:ke}),e[63]=ke,e[64]=pe,e[65]=se):se=e[65];let Me;e[66]!==Ke||e[67]!==F||e[68]!==te||e[69]!==se?(Me=n.jsx(Ke,{items:F,strategy:te,children:se}),e[66]=Ke,e[67]=F,e[68]=te,e[69]=se,e[70]=Me):Me=e[70];let je;e[71]!==V||e[72]!==x||e[73]!==v||e[74]!==j?(je=V?n.jsx(Pi,{variant:V.variant,decofile:x,meta:j,matchers:v}):null,e[71]=V,e[72]=x,e[73]=v,e[74]=j,e[75]=je):je=e[75];let le;e[76]!==je?(le=Zn.createPortal(n.jsx(ss,{dropAnimation:os,children:je}),document.body),e[76]=je,e[77]=le):le=e[77];let B;e[78]!==Be||e[79]!==Oe||e[80]!==Pe||e[81]!==xe||e[82]!==ne||e[83]!==me||e[84]!==Me||e[85]!==le?(B=n.jsxs(Be,{sensors:Oe,collisionDetection:Pe,onDragStart:xe,onDragEnd:ne,onDragCancel:me,children:[Me,le]}),e[78]=Be,e[79]=Oe,e[80]=Pe,e[81]=xe,e[82]=ne,e[83]=me,e[84]=Me,e[85]=le,e[86]=B):B=e[86];let Ee;return e[87]!==_e||e[88]!==fe||e[89]!==B?(Ee=n.jsxs("div",{className:_e,children:[fe,B]}),e[87]=_e,e[88]=fe,e[89]=B,e[90]=Ee):Ee=e[90],Ee}function Li(d){return d.id}function Xn(d){const e=st.c(21),{currentRt:a,currentLabel:u,currentGlobalKey:p,matchers:x,globals:j,onSelect:v,onSelectGlobal:y,schema:g,formValue:k,onChange:K,formKey:M,formWrapperClassName:D,meta:c,decofile:S,onSaveReferencedBlock:R,sandbox:l}=d;let V;e[0]!==p||e[1]!==u||e[2]!==a||e[3]!==j||e[4]!==x||e[5]!==v||e[6]!==y?(V=n.jsx(Uo,{currentRt:a,currentLabel:u,currentGlobalKey:p,matchers:x,globals:j,onSelect:v,onSelectGlobal:y}),e[0]=p,e[1]=u,e[2]=a,e[3]=j,e[4]=x,e[5]=v,e[6]=y,e[7]=V):V=e[7];let i;e[8]!==S||e[9]!==M||e[10]!==k||e[11]!==D||e[12]!==c||e[13]!==K||e[14]!==R||e[15]!==l||e[16]!==g?(i=g&&k&&n.jsx("div",{className:D,children:n.jsx(Go,{schema:g,value:k,onChange:K,meta:c,decofile:S,onSaveReferencedBlock:R,sandbox:l},M)}),e[8]=S,e[9]=M,e[10]=k,e[11]=D,e[12]=c,e[13]=K,e[14]=R,e[15]=l,e[16]=g,e[17]=i):i=e[17];let J;return e[18]!==V||e[19]!==i?(J=n.jsxs(n.Fragment,{children:[V,i]}),e[18]=V,e[19]=i,e[20]=J):J=e[20],J}function wc({orgSlug:d,virtualMcpId:e,branch:a,previewReady:u=!0,previewUrl:p,currentPath:x,activePageBlockKey:j=null,activeGlobalBlockKey:v=null,externalSelection:y,onSaved:g,initialEditSeo:k=!1,onExitSeo:K,onViewJsonFile:M,onVariantPreviewOverride:D}){const c=Dt(),S=Mo()?.taskId??null,R=u?{orgSlug:d,virtualMcpId:e,branch:a,threadId:S,previewUrl:p}:null,{data:l,isLoading:V}=qo(R),{data:i,isLoading:J}=Wo(R),U=Jo(),Le=U?.entity?.id===e?U.entity.metadata?.siteSlug??null:null,Y=ii({virtualMcpId:e,sandboxUrl:p}),[m,P]=w.useState(null),[we,N]=w.useState(null),[Z,T]=w.useState(null),[ae,I]=w.useState(0),[Ce,ee]=w.useState(void 0),[de,Q]=w.useState(null),[ie,ye]=w.useState(null),[re,L]=w.useState([]),qe=w.useRef(null),[Ke,Be]=w.useState(re.length);Ke!==re.length&&(Be(re.length),requestAnimationFrame(()=>{qe.current&&(qe.current.scrollTop=0)}));const[ke,F]=w.useState(0),[te,Oe]=w.useState(null),[Pe,xe]=w.useState(null),[ne,me]=w.useState(null),[_e,fe]=w.useState(!0),[pe,se]=w.useState(!1),[Me,je]=w.useState(!1),le=w.useRef(null),[B,Ee]=w.useState(k),[ge,ce]=w.useState(k);k&&!ge&&(ce(!0),Ee(!0),P(null),N(null),T(null),L([])),!k&&ge&&ce(!1);const[he,X]=w.useState(null),[ue,ve]=w.useState(void 0),[Te,_]=w.useState([]),[be,oe]=w.useState(0),[De,Fe]=w.useState(0),[ct,Ve]=w.useState(null),[Xe,We]=w.useState(null),[Sn,yn]=w.useState(null),Ds=Co(),Vs=`${d}/${e}/${a}`,Zt=Yo({orgSlug:d,virtualMcpId:e,branch:a}),[Ns,As]=w.useState(x),[Cs,Ps]=w.useState(j),[Ms,Ls]=w.useState(v);(Ns!==x||Cs!==j||Ms!==v)&&(queueMicrotask(()=>Zt.flush()),As(x),Ps(j),Ls(v),P(null),N(null),T(null),I(0),Q(null),ye(null),Fe(0),Ve(null),We(null),L([]),F(t=>t+1),Ee(!1),X(null),ve(void 0),_([]),oe(t=>t+1));const Ne=Qo({orgSlug:d,virtualMcpId:e,branch:a}),It=Ea((t,s)=>{Ne.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:o=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:o.message}))})}),en=Xo({orgSlug:d,virtualMcpId:e,branch:a}),[Vt,Bt]=w.useState(!1),ze=w.useRef(null),ot=w.useRef(null),at=w.useRef(null),tn=w.useRef({}),Ze=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!u||V||J)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(!l||!i)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Ks=Zo(l),Ae=!!v,Je=Ae?null:ea(Ks,x,j),E=Ae?v:Je?.key??null,nn=Ae&&v?l[v]:void 0,xn=Ae&&v&&nn?ta(v,nn):Ae&&v?v:"",Ot=!Ae&&E&&l[E]?l[E]:null,sn=B&&l&&i&&E&&Je?In(l,{kind:"page",pageKey:E,pageName:String(Je.name??""),path:String(Je.path??"")},i):null,Is=B?Ot?.seo:void 0,on=ue!==void 0?ue:Is,Bs=B?na(on):void 0,Os=sn?.seoTypeOptions??[],Fs=B&&i?sa(i):"",_n=he??Bs??{},an=B&&sn?ni(_n,sn):null,$s=B&&an&&oa(on)?qt(an,i):null,zs=B?aa(l,i)?.seoData:void 0,Ge=Ae?[{label:"Default",sections:[{__resolveType:v}]}]:ia(Ot?.sections,l??{}),Ft=Ge.length>1,$e=Math.min(ae,Ge.length-1),ut=Ge[$e],z=ut?.sections??[],He=Wt(z,l),jn=!Ae&&ra(Ot?.sections);if(Ae&&v&&Sn!==v){yn(v);const t=z[0],s=He[0];if(t&&s){P(0),Fe(0),L([]);const o=St(t,s,l);o&&(N(o.data),T(o.resolveType),We(null),Ve(null))}}!Ae&&Sn!==null&&yn(null),Ze.current={rawSections:z,parsedSections:He,decofile:l??{},activePageKey:E,pageVariants:Ge,variantIndex:$e,sectionVariantIndex:De,selectedSectionIndex:m};const Hs=()=>({multivariate:jn,index:$e,variants:Ge.map(t=>({rule:t.rule}))}),En=(t,s)=>{if(!D)return;if(!E||!jn||t.length<=1){D(null);return}const o=qn(E,{multivariate:!0,index:s,variants:t},l,i);D(o.length>0?o:null)},xt=(t,s,o)=>{if(!D)return;if(!E){D(null);return}const r=Hs(),f=qn(E,r,l,i);if(!t||s<0){D(f.length>0?f:null);return}const b=Da({pageKey:E,page:r,sectionIndex:s,sectionLazy:He[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:o,decofile:l,meta:i}),h=[...f,...b];D(h.length>0?h:null)},dt=(t,s,o,r=m??-1,f=!1)=>{const b=nt(t,s);if(!b){N(null),T(null),We(null),Ve(null),f&&xt(null,r,o);return}const A=Bn(b,ht)[o];if(!A){N(null),T(null),We(null),Ve(null),f&&xt(null,r,o);return}const W=ha(A.value,l);N(W?.data??null),T(W?.resolveType??null);const{resolveType:C,formValue:O}=Ct(A.rule,l,i??void 0);We(C),Ve(O),f&&xt(b,r,o)},Nt=y?.index;if(y!==void 0&&(y?.seq??null)!==Ce&&(ee(y?.seq??null),typeof Nt=="number")){const t=z[Nt],s=He[Nt];if(t&&s)if(P(Nt),Fe(0),L([]),F(o=>o+1),s.isMultivariate)dt(t,s,0,Nt);else{const o=St(t,s,l);o?(N(o.data),T(o.resolveType)):(N(null),T(null)),We(null),Ve(null)}}const $t={orgSlug:d,virtualMcpId:e,branch:a,threadId:S,previewUrl:p??void 0,siteSlug:Le},rn=Z&&i?qt(Z,i):null,Ye=(t,s)=>{if(!E)return;ze.current&&(clearTimeout(ze.current),ze.current=null),at.current&&(clearTimeout(at.current),at.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null);const o=Mt(l,E,t,$e,Ge);Ne.mutate({blockKey:E,data:o},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:r=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},_t=()=>{P(null),N(null),T(null),Fe(0),Ve(null),We(null),L([]),F(t=>t+1)},Us=(t,s)=>{ze.current&&clearTimeout(ze.current);const o=Ze.current.sectionVariantIndex;ze.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:b,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current,C=r[s];if(!C)return;const O=f[s];if(!O)return;if(O.isSavedBlock){const H=O.isLazy?C.section?.__resolveType??C.__resolveType:C.__resolveType;Ne.mutate({blockKey:H,data:t},{onSuccess:()=>g?.(),onError:G=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}if(!h)return;const $={...b[h]},Re=[...r];if(O.isMultivariate){const H=nt(C,O);if(!H||!h)return;const G=Na(H,o,t);Re[s]=yt(C,O,G)}else if(O.isHidden){const H=rs(C.__resolveType),G=H?{...C.section}:{...C},Ie=Array.isArray(G.variants)?[...G.variants]:[];Ie[0]&&(Ie[0]={...Ie[0],value:t}),G.variants=Ie,H?Re[s]={...C,section:G}:Re[s]=G}else O.isLazy?Re[s]={...C,section:t}:Re[s]=t;if(A.length>1){const H=$.sections,G=[...H?.variants??[]];G[W]&&(G[W]={...G[W],value:Re}),$.sections={...H,variants:G}}else $.sections=Re;Ne.mutate({blockKey:h,data:$},{onSuccess:()=>g?.(),onError:H=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:H.message}))})},gn)},Gs=t=>{P(t),Fe(0),L([]),F(f=>f+1);const s=z[t],o=He[t];if(!s||!o)return;if(o.isMultivariate){dt(s,o,0,t);return}const r=St(s,o,l);if(!r){N(null),T(null),We(null),Ve(null),xt(null,t,0);return}N(r.data),T(r.resolveType),We(null),Ve(null),xt(null,t,0)},Rn=t=>{const s=t;N(s),m!==null&&Us(s,m)},ln=t=>{if(!E||!l||!i||!Je)return;const s={kind:"page",pageKey:E,pageName:String(Je.name??""),path:String(Je.path??"")},o=In(l,s,i);o&&Zt.save(E,()=>{const r=Ds.getQueryData(Po.decofile(Vs))?.[E];if(!r||typeof r!="object"||r===null||Array.isArray(r))return null;const f={...r,...tn.current};return tn.current={},t?.raw!==void 0?{...f,seo:t.raw}:t?.inner!==void 0?oi(s,o,f,t.inner):f})},qs=(t,s)=>{E&&(tn.current[t]=s,ln())},Ws=(t,s)=>{if(!E)return;const o=Lt([...z],t,s);m!==null&&(m===t?P(s):t<m&&s>=m?P(m-1):t>m&&s<=m&&P(m+1)),Ye(o)},Js=t=>{if(!E)return;const s=z.filter((o,r)=>r!==t);m===t?_t():m!==null&&m>t&&P(m-1),Ye(s)},Ys=t=>{if(!E)return;const s=z[t];if(!s)return;const o=[...z];o.splice(t+1,0,Ta(s)),m!==null&&m>t&&P(m+1),Ye(o)},Qs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o)return;const r=o.isHidden?wa(s):ka(s);if(!r)return;const f=[...z];f[t]=r,m===t&&_t(),Ye(f)},Xs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o||o.isMultivariate)return;const r=Ra(s);if(!r)return;const f=[...z];f[t]=r,m===t&&_t(),Ye(f)},Zs=t=>{if(!E)return;const s=z[t],o=He[t];if(!s||!o?.isSavedBlock)return;const r=St(s,o,l);if(!r?.data)return;const{name:f,...b}=r.data,h=[...z];o.isLazy?h[t]={...s,section:b}:h[t]=b,m===t&&_t(),Ye(h)},eo=t=>{if(!E)return;const s=[...z,{__resolveType:t.resolveType}],o=s.length-1;Ye(s,{onSuccess:()=>{se(!1),P(o),Fe(0),L([]),F(h=>h+1);const r=s[o],f=Wt(s,l)[o];if(!r||!f)return;if(f.isMultivariate){dt(r,f,0);return}const b=St(r,f,l);if(!b){N(null),T(null),We(null),Ve(null);return}N(b.data),T(b.resolveType),We(null),Ve(null)}})},wn=t=>{le.current=t.append,se(!0)},to=t=>{const s=le.current;if(!s){eo(t);return}s({__resolveType:t.resolveType}),se(!1),le.current=null},no=t=>{if(m===null)return;const s=z[m],o=He[m];!s||!o?.isMultivariate||(Fe(t),L([]),F(r=>r+1),dt(s,o,t,m,!0))},so=t=>{if(m===null||!E)return;const s=z[m],o=He[m];if(!s||!o?.isMultivariate)return;const r=nt(s,o);if(!r)return;const f=_a(r,t);if(!f){q.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const b=[...z];b[m]=yt(s,o,f);const h=f.variants;let A=De;t===De?A=Math.min(t,h.length-1):t<De&&(A=De-1),Fe(A),L([]),F(W=>W+1),dt(b[m],o,A),Ye(b)},oo=t=>{if(m===null||!E)return;const s=z[m],o=He[m];if(!s||!o?.isMultivariate)return;const r=nt(s,o);if(!r)return;const f=ja(r,t),b=[...z];b[m]=yt(s,o,f);const h=t+1;Fe(h),L([]),F(A=>A+1),dt(b[m],o,h),Ye(b)},ao=(t,s)=>{if(m===null||!E||t===s)return;const o=z[m],r=He[m];if(!o||!r?.isMultivariate)return;const f=nt(o,r);if(!f)return;const b=ya(f,t,s),h=[...z];h[m]=yt(o,r,b);let A=De;De===t?A=s:t<De&&s>=De?A=De-1:t>De&&s<=De&&(A=De+1),Fe(A),dt(h[m],r,A),Ye(h)},cn=t=>{const s=t??m;if(s===null||!E)return;const o=z[s],r=He[s];if(!o||!r)return;const f=va(o,r);if(!f){q.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const b=[...z];b[s]=f.section;const h=Wt(b,l)[s];if(!h?.isMultivariate){q.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}P(s),Fe(f.newVariantIndex),L([]),F(A=>A+1),dt(f.section,h,f.newVariantIndex,s),Ye(b)},io=()=>{if(m===null||!E)return;const t=z[m],s=He[m];if(!t||!s?.isMultivariate)return;const o=nt(t,s);if(!o)return;const r=xa(t,s,o);if(!r){q.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const f=[...z];f[m]=r;const b=Wt(f,l)[m];if(!b)return;Fe(0),We(null),Ve(null),L([]),F(A=>A+1);const h=St(r,b,l);h?(N(h.data),T(h.resolveType)):(N(null),T(null)),xt(null,m,0),Ye(f)},ro=async t=>{if(te===null||!E)return;const s=pn(t,l);if(s){q.error(s);return}const o=z[te],r=He[te];if(!o||!r)return;const f=St(o,r,l);if(!f){q.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const b={...f.data,name:t};try{await Ne.mutateAsync({blockKey:t,data:b});const h=[...z];h[te]={__resolveType:t},await Ne.mutateAsync({blockKey:E,data:Mt(l,E,h,$e,Ge)}),m===te&&_t(),Oe(null),q.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(h){q.error(h instanceof Error?h.message:c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},kn=ut?.rule;if(Ft&&m===null&&ie===null&&kn){const{resolveType:t,formValue:s}=Ct(kn,l??{},i??void 0);ye(t),Q(s)}const zt=i?la(i):[],Tn=i&&l?ca(i,l):[],lo=!Ae&&!!(Y&&i&&l),co=ie&&i?qt(ie,i):null,jt=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),at.current&&(clearTimeout(at.current),at.current=null)},At=async(t,s)=>{if(!(Va(s,t,i)>0))try{await en.mutateAsync({blockKey:t})}catch(o){q.error(o instanceof Error?o.message:c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},Dn=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:o,variantIndex:r}=Ze.current;if(!s)return;const f={...o[s]},b={...f.sections},h=[...b.variants??[]],A=h[r],W=A?.rule;if(Et(W,o,i)){const C=W?.__resolveType??"",O=o[C],$=typeof O?.name=="string"?O.name:C,{__resolveType:Re,...H}=t;Ne.mutate({blockKey:C,data:Rt(Re??"",H,$)},{onSuccess:()=>g?.(),onError:G=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:G.message}))});return}A&&(h[r]={...A,rule:t}),f.sections={...b,variants:h},Ne.mutate({blockKey:s,data:f},{onSuccess:()=>g?.(),onError:C=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},gn)},uo=t=>{ye(t);const s=t?zn(t,i):{__resolveType:Hn};Q(t?s:{}),Dn(s)},mo=t=>{const s=t;Q(s);const o=ie?{__resolveType:ie,...s}:{...s};Dn(o)},fo=async t=>{jt();const{activePageKey:s,decofile:o,variantIndex:r}=Ze.current;if(!s)return;const f=o[s],b=f?.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const h=b;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[r];if(!W)return;const C=Pt(W.rule,o,i),O=Yt(t);A[r]={...W,rule:O};const $={...o,[s]:{...f,sections:{...h,variants:A}}},{resolveType:Re,formValue:H}=Ct(O,$,i??void 0);ye(Re),Q(H);try{await Ne.mutateAsync({blockKey:s,data:$[s]}),C&&C!==t&&await At(C,$),g?.()}catch(G){q.error(G instanceof Error?G.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Vn=t=>{at.current&&clearTimeout(at.current);const{selectedSectionIndex:s,sectionVariantIndex:o}=Ze.current;s!==null&&(at.current=setTimeout(()=>{const{rawSections:r,parsedSections:f,decofile:b,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(!h)return;const C=r[s],O=f[s];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const H=($.variants??[])[o]?.rule;if(Et(H,b,i)){const Se=H?.__resolveType??"",Qe=b[Se],rt=typeof Qe?.name=="string"?Qe.name:Se,{__resolveType:pt,...lt}=t;Ne.mutate({blockKey:Se,data:Rt(pt??"",lt,rt)},{onSuccess:()=>g?.(),onError:gt=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:gt.message}))});return}const G=$n($,o,t),Ie=[...r];Ie[s]=yt(C,O,G);const et=Mt(b,h,Ie,W,A);Ne.mutate({blockKey:h,data:et},{onSuccess:()=>g?.(),onError:Se=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:Se.message}))})},gn))},po=t=>{We(t);const s=t?zn(t,i):{__resolveType:Hn};Ve(t?s:{}),Vn(s)},go=t=>{const s=t;Ve(s);const o=Xe?{__resolveType:Xe,...s}:{...s};Vn(o)},ho=async t=>{jt();const{selectedSectionIndex:s,sectionVariantIndex:o,rawSections:r,parsedSections:f,decofile:b,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(s===null||!h)return;const C=r[s],O=f[s];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const Re=$.variants??[],H=Pt(Re[o]?.rule,b,i),G=Yt(t),Ie=$n($,o,G),et=[...r];et[s]=yt(C,O,Ie);const Se=Mt(b,h,et,W,A),Qe={...b,[h]:Se},{resolveType:rt,formValue:pt}=Ct(G,Qe,i??void 0);We(rt),Ve(pt);try{await Ne.mutateAsync({blockKey:h,data:Se}),H&&H!==t&&await At(H,Qe),g?.()}catch(lt){q.error(lt instanceof Error?lt.message:c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ae&&!Je)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:x})});if(Ae&&!nn)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const mt=m!==null?He[m]??null:null,Nn=m!==null?z[m]:null,An=Nn&&mt?.isMultivariate?nt(Nn,mt):null,bt=An?Bn(An,ht):[],un=Math.min(De,Math.max(bt.length-1,0)),Ht=bt[un]??null,ft=mt?.isMultivariate===!0,Cn=m!==null&&mt!==null,Ut=Cn&&(ft||!!(rn&&we)),vo=Ut&&!Ae&&mt?.isSavedBlock===!0,it=Ae||vo,bo=Ae?xn:mt?.label??"",So=Xe&&i?qt(Xe,i):null,dn=Ut&&(!Ae||re.length>0)?Ae?[xn,...re]:[Je.name,mt.label,...ft&&Ht?[Ht.label]:[],...re]:[],yo=B&&Je?[Je.name,"SEO",...Te]:[],Gt=B?yo:it?dn.length>0?dn:[bo]:dn,xo=!B&&!Ae&&ft&&re.length===0,Pn=()=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const t=l[E],s=ba(t.sections,z);if(!s)return;const o=Sa(s);Ne.mutate({blockKey:E,data:{...t,sections:s}},{onSuccess:()=>{I(o),P(null),N(null),T(null),L([]),Q(null),ye(null)},onError:r=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:r.message}))})},mn=(t,s,o)=>{if(!E)return;jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const r=l[E],f=r.sections;if(!f||typeof f!="object"||Array.isArray(f))return;const b=f;if(!Array.isArray(b.variants))return;const h=t([...b.variants]);if(!h)return;const A=Aa(b,h),W={...l,[E]:{...r,sections:A}};Ne.mutate({blockKey:E,data:W[E]},{onSuccess:()=>{s?.(),o&&At(o,W)},onError:C=>q.error(c("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},_o=t=>{xe(null),I(t),P(null),N(null),T(null),L([]);const s=Ge[t]?.rule,{resolveType:o,formValue:r}=Ct(s,l??{},i??void 0);ye(o),Q(r),En(Ge.map(f=>({rule:f.rule})),t)},jo=(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),I(o);const r=Lt(Ge.map(f=>({rule:f.rule})),t,s);En(r,o),mn(f=>Lt(f,t,s))},Eo=t=>{const s=Ge[t]?.rule,o=Pt(s,l??{},i??void 0);mn(r=>r.length<=1?null:(r.splice(t,1),r),()=>{Ge.length-1===1?I(0):t<$e?I($e-1):t===$e&&I(Math.max(0,t-1)),P(null),N(null),T(null),L([]),Q(null),ye(null)},o)},Ro=t=>{mn(s=>Ca(s,t),()=>{I(t+1),P(null),N(null),T(null),L([]),Q(null),ye(null)})},wo=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const o=Ze.current.activePageKey,r=Ze.current.decofile;if(!o)return;const f=r[o],b=f.sections;if(!b||typeof b!="object"||Array.isArray(b))return;const h=b;if(!Array.isArray(h.variants))return;const A=[...h.variants],W=A[t];if(!W?.rule||typeof W.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const C=W.rule,O=s.trim();Bt(!0);try{if(!O){if(!Et(C,r,i)){xe(null);return}const et=C.__resolveType??"";A[t]={...W,rule:Un(C,r,i)};const Se={...r,[o]:{...f,sections:{...h,variants:A}}};await Ne.mutateAsync({blockKey:o,data:Se[o]}),await At(et,Se),xe(null),g?.();return}const $=Gn(C,r,i);if(!$){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await Ne.mutateAsync({blockKey:$.blockKey,data:Rt($.resolveType,$.data,O)}),xe(null),g?.();return}const Re=fn(O),H=pn(Re,r);if(H){q.error(H);return}const G=Rt($.resolveType,$.data,O);let Ie=null;try{await Ne.mutateAsync({blockKey:Re,data:G}),Ie=Re,A[t]={...W,rule:Yt(Re)},await Ne.mutateAsync({blockKey:o,data:{...f,sections:{...h,variants:A}}}),Ie=null}catch(et){throw Ie&&await en.mutateAsync({blockKey:Ie}).catch(()=>{}),et}xe(null),q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:O})),g?.()}catch($){q.error($ instanceof Error?$.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Bt(!1)}},ko=async(t,s)=>{jt(),ze.current&&(clearTimeout(ze.current),ze.current=null);const{selectedSectionIndex:o,rawSections:r,parsedSections:f,decofile:b,activePageKey:h,pageVariants:A,variantIndex:W}=Ze.current;if(o===null||!h)return;const C=r[o],O=f[o];if(!C||!O?.isMultivariate)return;const $=nt(C,O);if(!$)return;const Re=$.variants??[],H=Re[t];if(!H?.rule||typeof H.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const G=H.rule,Ie=s.trim();Bt(!0);const et=async Se=>{const Qe={...$,variants:Se},rt=[...r];rt[o]=yt(C,O,Qe);const pt=Mt(b,h,rt,W,A);return await Ne.mutateAsync({blockKey:h,data:pt}),{...b,[h]:pt}};try{if(!Ie){if(!Et(G,b,i)){me(null);return}const gt=G.__resolveType??"",Kn=[...Re];Kn[t]={...H,rule:Un(G,b,i)};const Ao=await et(Kn);await At(gt,Ao),me(null),g?.();return}const Se=Gn(G,b,i);if(!Se){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(Se.blockKey){await Ne.mutateAsync({blockKey:Se.blockKey,data:Rt(Se.resolveType,Se.data,Ie)}),me(null),g?.();return}const Qe=fn(Ie),rt=pn(Qe,b);if(rt){q.error(rt);return}const pt=Rt(Se.resolveType,Se.data,Ie);let lt=null;try{await Ne.mutateAsync({blockKey:Qe,data:pt}),lt=Qe;const gt=[...Re];gt[t]={...H,rule:Yt(Qe)},await et(gt),lt=null}catch(gt){throw lt&&await en.mutateAsync({blockKey:lt}).catch(()=>{}),gt}me(null),q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Ie})),g?.()}catch(Se){q.error(Se instanceof Error?Se.message:c("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{Bt(!1)}},Mn=()=>{_t()},To=t=>{X(t),ln({inner:t})},Do=t=>{ve(t),ln({raw:t})},Vo=()=>{X(null),_([])},No=()=>oe(t=>t+1),Ln=t=>{if(B){if(t===0){Zt.flush(),Ee(!1),X(null),ve(void 0),_([]),oe(o=>o+1),K?.();return}if(t===1){_([]),oe(o=>o+1);return}_(Te.slice(0,t-1)),oe(o=>o+1);return}if(Ae){L(re.slice(0,t)),F(o=>o+1);return}if(t===0){Mn();return}if(t===1){L([]),F(o=>o+1);return}if(ft&&t===2){L([]),F(o=>o+1);return}const s=ft?2:1;L(re.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:it||Ut||B?n.jsxs("div",{className:Ue("border-b px-3 py-2.5",it&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[Gt.length>1&&n.jsx("button",{type:"button",onClick:()=>Ln(Pa(Gt.length,{isMultivariateSectionTop:xo})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:Ue("shrink-0 inline-flex size-6 items-center justify-center rounded-md transition-colors",it?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Ia,{className:"size-4"})}),!Ae&&Ft&&ut&&n.jsxs("button",{type:"button",onClick:Mn,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:ut.label}),className:Ue("shrink-0 inline-flex items-center gap-1 rounded-md h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",ua),children:[n.jsx(ks,{rule:Kt(ut.rule,l??{},i??void 0),matchers:zt}),n.jsx("span",{className:"max-w-[160px] truncate",children:ut.label})]}),n.jsx("nav",{"aria-label":c("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Gt.map((t,s)=>{const o=s===Gt.length-1,r=da(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Fa,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>Ln(s),title:r,className:Ue("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",o?it?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":it?"text-foreground/80":"text-muted-foreground",it?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:r})]},`${r}-${s}`)})}),it&&n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(za,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Cn&&!ft&&!mt?.isHidden&&E&&n.jsx(On,{onClick:()=>cn()})]}),it&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(ma,{pageKey:E,initialName:Je.name,initialPath:Je.path,onFieldChange:qs})}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>Ee(!0),children:n.jsx(Ba,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(wt,{children:[n.jsx(kt,{asChild:!0,children:n.jsx(tt,{type:"button",variant:"ghost",size:"icon","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>M&&E?M(E):je(!0),children:n.jsx(Oa,{size:14})})}),n.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(On,{onClick:Pn})]})}),B?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:Ot&&E?n.jsx(si,{rawSeo:on,innerSeo:_n,defaultResolveType:Fs,seoSchema:$s,activeResolveType:an,seoTypeOptions:Os,formResetKey:be,siteDefaultSeo:zs,onBreadcrumbChange:_,onPersistRaw:Do,onInnerChange:To,onClearForm:Vo,onBumpFormKey:No}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Ut?n.jsxs(Qt,{viewportRef:qe,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[ft&&bt.length>0&&re.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(fa,{listKey:`${E??""}:${m??""}`,variants:bt.map((t,s)=>({index:s,label:t.label})),selectedIndex:un,onSelect:no,onRename:me,onDuplicate:oo,onDelete:so,onRemoveAll:io,onReorder:ao,onAdd:()=>cn()}),ft&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(Xn,{currentRt:Xe??"",currentLabel:Jt(Ht?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(Ht?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:po,onSelectGlobal:ho,schema:So,formValue:ct,onChange:go,formKey:`${m??"none"}:${un}:${Xe??""}`,formWrapperClassName:"pt-1",meta:i??void 0,decofile:l,onSaveReferencedBlock:It,sandbox:$t})]})]}),n.jsx(Fn,{activeSchema:rn,formValue:we,formResetKey:ke,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:re,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:i,decofile:l,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:Y,onRequestAddSection:wn})]},"editor-section-form"):Ae?n.jsx(Qt,{viewportRef:qe,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Fn,{activeSchema:rn,formValue:we,formResetKey:ke,onFormChange:Rn,onBreadcrumbChange:L,breadcrumbPath:re,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:i,decofile:l,onSaveReferencedBlock:It,sandbox:$t,previewBaseUrl:Y,onRequestAddSection:wn})},"editor-global-block"):n.jsxs(Qt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Ft&&E&&n.jsx(Mi,{listKey:E,variants:Ge,activeIndex:$e,decofile:l??{},meta:i,matchers:zt,onSelect:_o,onReorder:jo,onRename:xe,onDuplicate:Ro,onDelete:Eo,onAdd:Pn}),Ft&&ie!==null&&n.jsxs("div",{className:Ue("px-3 border-b",_e?"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":_e,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),_e?n.jsx($a,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Ma,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),_e&&n.jsx("div",{className:Ue("space-y-3",Vt&&"pointer-events-none opacity-50"),children:n.jsx(Xn,{currentRt:ie,currentLabel:Jt(ut?.rule,l??{},ht,i??void 0),currentGlobalKey:Pt(ut?.rule,l??{},i??void 0)??void 0,matchers:zt,globals:Tn,onSelect:uo,onSelectGlobal:fo,schema:co,formValue:de,onChange:mo,formKey:`${$e}:${ie??""}`,formWrapperClassName:"space-y-3",meta:i??void 0,decofile:l,onSaveReferencedBlock:It,sandbox:$t})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(wi,{listKey:`${E??""}-${$e}`,rawSections:z,sections:He,meta:i,selectedIndex:m,onSelect:Gs,onReorder:Ws,onDelete:Js,onDuplicate:Ys,onMakeReusable:Oe,onToggleHidden:Qs,onToggleLazy:Xs,onAddVariant:cn,onDetach:Zs,onAddSection:()=>se(!0),canAddSection:lo})})]},"editor-section-list"),n.jsx(pa,{open:te!==null,onOpenChange:t=>{t||Oe(null)},defaultBlockId:te!==null?fn(He[te]?.label??""):"",isPending:Ne.isPending,onSubmit:ro}),Y&&n.jsx(ri,{open:pe,onOpenChange:t=>{se(t),t||(le.current=null)},meta:i,decofile:l,previewBaseUrl:Y,onSelect:to}),Me&&E&&l&&n.jsx(ga,{open:Me,onOpenChange:je,pageKey:E,decofile:l}),Pe!==null&&n.jsx(Jn,{open:!0,initialName:Et(Ge[Pe]?.rule,l??{},i??void 0)?Jt(Ge[Pe]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Kt(Ge[Pe]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await wo(Pe,t)},onOpenChange:t=>{!t&&!Vt&&xe(null)}}),ne!==null&&n.jsx(Jn,{open:!0,initialName:Et(bt[ne]?.rule,l??{},i??void 0)?Jt(bt[ne]?.rule,l??{},ht,i??void 0):"",autoLabel:ht(Kt(bt[ne]?.rule,l??{},i??void 0)),isPending:Vt,onSubmit:async t=>{await ko(ne,t)},onOpenChange:t=>{!t&&!Vt&&me(null)}})]})}export{wc as SectionsEditor};
@@ -1 +0,0 @@
1
- import{r as i,bp as nt,bn as Pe,j as d,dN as rt,br as Ie,bo as k,dO as st,bk as j,bq as N,cw as $,dP as lt,aI as _e,dQ as Ee,bl as at,cn as ct,dR as it,cy as dt,dS as ut,dT as pt,dU as ft,dV as mt,dW as ht,bm as vt,dX as gt,dY as xt,dZ as St,c as ee,n as oe}from"./index-11Axpbvx.js";import{i as wt}from"./Check-BIWtIuCf.js";import{t as Re}from"./ChevronDown-CVbb0r_e.js";import{n as yt}from"./ChevronUp-BFhKV90E.js";function Ne(r,[e,t]){return Math.min(t,Math.max(e,r))}var Ct=[" ","Enter","ArrowUp","ArrowDown"],bt=[" ","Enter"],Q="Select",[de,ue,It]=at(Q),[ne]=vt(Q,[It,Ee]),pe=Ee(),[Tt,G]=ne(Q),[Pt,Nt]=ne(Q),je=r=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:n,onOpenChange:c,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:I,required:w,form:S}=r,p=pe(e),[v,y]=i.useState(null),[m,x]=i.useState(null),[U,M]=i.useState(!1),re=nt(u),[_,O]=Pe({prop:o,defaultProp:n??!1,onChange:c,caller:Q}),[F,q]=Pe({prop:s,defaultProp:l,onChange:a,caller:Q}),L=i.useRef(null),B=v?S||!!v.closest("form"):!0,[W,V]=i.useState(new Set),H=Array.from(W).map(E=>E.props.value).join(";");return d.jsx(rt,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:Ie(),value:F,onValueChange:q,open:_,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:I,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Pt,{scope:r.__scopeSelect,onNativeOptionAdd:i.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:i.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Je,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:F,onChange:E=>q(E.target.value),disabled:I,form:S,children:[F===void 0?d.jsx("option",{value:""}):null,Array.from(W)]},H):null]})})};je.displayName=Q;var Me="SelectTrigger",Ae=i.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:o=!1,...n}=r,c=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=i.useRef("touch"),[g,I,w]=tt(p=>{const v=u().filter(x=>!x.disabled),y=v.find(x=>x.value===s.value),m=ot(v,p,y);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(st,{asChild:!0,...c,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...n,ref:a,onClick:N(n.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:N(n.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:N(n.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&I(p.key),!(v&&p.key===" ")&&Ct.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=i.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,children:c,placeholder:s="",...l}=r,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=c!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):c})});De.displayName=Oe;var _t="SelectIcon",ke=i.forwardRef((r,e)=>{const{__scopeSelect:t,children:o,...n}=r;return d.jsx(j.span,{"aria-hidden":!0,...n,ref:e,children:o||"▼"})});ke.displayName=_t;var Et="SelectPortal",Le=r=>d.jsx(lt,{asChild:!0,...r});Le.displayName=Et;var J="SelectContent",Be=i.forwardRef((r,e)=>{const t=G(J,r.__scopeSelect),[o,n]=i.useState();if($(()=>{n(new DocumentFragment)},[]),!t.open){const c=o;return c?_e.createPortal(d.jsx(Ve,{scope:r.__scopeSelect,children:d.jsx(de.Slot,{scope:r.__scopeSelect,children:d.jsx("div",{children:r.children})})}),c):null}return d.jsx(He,{...r,ref:e})});Be.displayName=J;var A=10,[Ve,Y]=ne(J),Rt="SelectContentImpl",jt=gt("SelectContent.RemoveScroll"),He=i.forwardRef((r,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:c,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...y}=r,m=G(J,t),[x,U]=i.useState(null),[M,re]=i.useState(null),_=k(e,f=>U(f)),[O,F]=i.useState(null),[q,L]=i.useState(null),B=ue(t),[W,V]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=i.useCallback(f=>{const[T,...R]=B().map(P=>P.ref.current),[C]=R.slice(-1),b=document.activeElement;for(const P of f)if(P===b||(P?.scrollIntoView({block:"nearest"}),P===T&&M&&(M.scrollTop=0),P===C&&M&&(M.scrollTop=M.scrollHeight),P?.focus(),document.activeElement!==b))return},[B,M]),D=i.useCallback(()=>E([O,x]),[E,O,x]);i.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;i.useEffect(()=>{if(x){let f={x:0,y:0};const T=C=>{f={x:Math.abs(Math.round(C.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(C.pageY)-(K.current?.y??0))}},R=C=>{f.x<=10&&f.y<=10?C.preventDefault():x.contains(C.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),i.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(b=>!b.disabled),R=T.find(b=>b.ref.current===document.activeElement),C=ot(T,f,R);C&&setTimeout(()=>C.ref.current.focus())}),me=i.useCallback((f,T,R)=>{const C=!H.current&&!R;(m.value!==void 0&&m.value===T||C)&&(F(f),C&&(H.current=!0))},[m.value]),he=i.useCallback(()=>x?.focus(),[x]),te=i.useCallback((f,T,R)=>{const C=!H.current&&!R;(m.value!==void 0&&m.value===T||C)&&L(f)},[m.value]),ce=o==="popper"?Se:ze,se=ce===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:W,searchRef:fe,children:d.jsx(ft,{as:jt,allowPinchZoom:!0,children:d.jsx(mt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:N(n,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ce,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...y,...se,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let C=B().filter(b=>!b.disabled).map(b=>b.ref.current);if(["ArrowUp","End"].includes(f.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const b=f.target,P=C.indexOf(b);C=C.slice(P+1)}setTimeout(()=>E(C)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=i.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:o,...n}=r,c=G(J,t),s=Y(J,t),[l,a]=i.useState(null),[u,h]=i.useState(null),g=k(e,_=>h(_)),I=ue(t),w=i.useRef(!1),S=i.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:m}=s,x=i.useCallback(()=>{if(c.trigger&&c.valueNode&&l&&u&&p&&v&&y){const _=c.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),F=c.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(c.dir!=="rtl"){const b=q.left-O.left,P=F.left-b,X=_.left-P,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const b=O.right-q.right,P=window.innerWidth-F.right-b,X=window.innerWidth-_.right-P,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=I(),B=window.innerHeight-A*2,W=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+W+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ce=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const b=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const P=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ce,se+(b?he:0)+P+D),Z=T+X;l.style.height=Z+"px"}else{const b=L.length>0&&v===L[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(b?me:0)+se)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[I,c.trigger,c.valueNode,l,u,p,v,y,c.dir,o]);$(()=>x(),[x]);const[U,M]=i.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=i.useCallback(_=>{_&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...n,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=i.forwardRef((r,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:n=A,...c}=r,s=pe(t);return d.jsx(xt,{...s,...c,ref:e,align:o,collisionPadding:n,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(J,{}),we="SelectViewport",Ue=i.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:o,...n}=r,c=Y(we,t),s=Te(we,t),l=k(e,c.onViewportChange),a=i.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:N(n.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:I}=s;if(I?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),y=Math.max(p,v);if(y<S){const m=y+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var Fe="SelectGroup",[Dt,kt]=ne(Fe),Lt=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=Ie();return d.jsx(Dt,{scope:t,id:n,children:d.jsx(j.div,{role:"group","aria-labelledby":n,...o,ref:e})})});Lt.displayName=Fe;var We="SelectLabel",Bt=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=kt(We,t);return d.jsx(j.div,{id:n.id,...o,ref:e})});Bt.displayName=We;var ie="SelectItem",[Vt,Ke]=ne(ie),$e=i.forwardRef((r,e)=>{const{__scopeSelect:t,value:o,disabled:n=!1,textValue:c,...s}=r,l=G(ie,t),a=Y(ie,t),u=l.value===o,[h,g]=i.useState(c??""),[I,w]=i.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,n)),p=Ie(),v=i.useRef("touch"),y=()=>{n||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:n,textId:p,isSelected:u,onItemTextChange:i.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:n,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":I?"":void 0,"aria-selected":u&&I,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:S,onFocus:N(s.onFocus,()=>w(!0)),onBlur:N(s.onBlur,()=>w(!1)),onClick:N(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:N(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:N(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:N(s.onPointerMove,m=>{v.current=m.pointerType,n?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(bt.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ie;var le="SelectItemText",Ge=i.forwardRef((r,e)=>{const{__scopeSelect:t,className:o,style:n,...c}=r,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=Nt(le,t),[h,g]=i.useState(null),I=k(e,y=>g(y),a.onItemTextChange,y=>l.itemTextRefCallback?.(y,a.value,a.disabled)),w=h?.textContent,S=i.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...c,ref:I}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?_e.createPortal(c.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});qe.displayName=Ye;var ye="SelectScrollUpButton",Xe=i.forwardRef((r,e)=>{const t=Y(ye,r.__scopeSelect),o=Te(ye,r.__scopeSelect),[n,c]=i.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;c(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?d.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Xe.displayName=ye;var Ce="SelectScrollDownButton",Ze=i.forwardRef((r,e)=>{const t=Y(Ce,r.__scopeSelect),o=Te(Ce,r.__scopeSelect),[n,c]=i.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;c(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),n?d.jsx(Qe,{...r,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=Ce;var Qe=i.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:o,...n}=r,c=Y("SelectScrollButton",t),s=i.useRef(null),l=ue(t),a=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...n,ref:e,style:{flexShrink:0,...n.style},onPointerDown:N(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:N(n.onPointerMove,()=>{c.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:N(n.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var be="SelectArrow",Ut=i.forwardRef((r,e)=>{const{__scopeSelect:t,...o}=r,n=pe(t),c=G(be,t),s=Y(be,t);return c.open&&s.position==="popper"?d.jsx(St,{...n,...o,ref:e}):null});Ut.displayName=be;var Ft="SelectBubbleInput",Je=i.forwardRef(({__scopeSelect:r,value:e,...t},o)=>{const n=i.useRef(null),c=k(o,n),s=ct(e);return i.useEffect(()=>{const l=n.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...it,...t.style},ref:c,defaultValue:e})});Je.displayName=Ft;function et(r){return r===""||r===void 0}function tt(r){const e=dt(r),t=i.useRef(""),o=i.useRef(0),n=i.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),c=i.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,n,c]}function ot(r,e,t){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,c=t?r.indexOf(t):-1;let s=Wt(r,Math.max(c,0));n.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==t?a:void 0}function Wt(r,e){return r.map((t,o)=>r[(e+o)%r.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,qt=Le,Xt=Be,Zt=Ue,Qt=$e,Jt=Ge,eo=qe,to=Xe,oo=Ze;function io(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(r){const e=ee.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(r){const e=ee.c(13);let t,o,n,c;e[0]!==r?({className:o,size:c,children:t,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c):(t=e[1],o=e[2],n=e[3],c=e[4]);const s=c===void 0?"default":c;let l;e[5]!==o?(l=oe("data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg bg-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=xs]:h-6 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==n||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...n,children:[t,a]}),e[8]=t,e[9]=n,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(r){const e=ee.c(25);let t,o,n,c,s;e[0]!==r?({className:o,children:t,position:c,hideScrollButtons:s,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c,e[5]=s):(t=e[1],o=e[2],n=e[3],c=e[4],s=e[5]);const l=c===void 0?"popper":c,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const I=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==I?(w=oe("p-1",I),e[11]=I,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==n||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(qt,{children:d.jsxs(Xt,{"data-slot":"select-content",translate:"no",className:h,position:l,...n,children:[g,S,p]})}),e[18]=l,e[19]=n,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(r){const e=ee.c(16);let t,o,n,c;e[0]!==r?({className:o,children:t,hideCheck:c,...n}=r,e[0]=r,e[1]=t,e[2]=o,e[3]=n,e[4]=c):(t=e[1],o=e[2],n=e[3],c=e[4]);const s=c===void 0?!1:c;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(wt,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Jt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==n||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Qt,{"data-slot":"select-item",className:l,...n,children:[a,u]}),e[11]=n,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(yt,{className:"size-4"}),e[5]=c):c=e[5];let s;return e[6]!==o||e[7]!==n?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:n,...o,children:c}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}function ro(r){const e=ee.c(9);let t,o;e[0]!==r?({className:t,...o}=r,e[0]=r,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let n;e[3]!==t?(n=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=n):n=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx(Re,{className:"size-4"}),e[5]=c):c=e[5];let s;return e[6]!==o||e[7]!==n?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:n,...o,children:c}),e[6]=o,e[7]=n,e[8]=s):s=e[8],s}export{io as S,po as a,uo as b,fo as c,mo as d,Ne as e};
@@ -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-11Axpbvx.js";import{i as ke}from"./ChevronRight-DDyA5W9O.js";import{av as fe}from"./agent-icon-BD4ir4AJ.js";import{S as xe}from"./use-clock-tick-C-fvo9-8.js";import{ay as ue,aU as Ne,aV as we,aX as _e,ap as Ee,aW as Pe,aY as Te,bP as Fe}from"./index-Beuv5tb0.js";import{u as Re,a as Ce,P as Ke}from"./page-seo-form-CUYpPPow.js";import{a as ye}from"./Tool01-55e9Pzj9.js";import"./AlertCircle-6tWU7wYa.js";import"./ArrowUp-D3mIhiFm.js";import"./ArrowLeft-CfuiIq5H.js";import"./Tool02-HLpWqOaY.js";import"./XCircle-9IEiQ4L2.js";import"./TrendUp01-MTqfV8xG.js";import"./ZapSquare-Dc-rKzAG.js";import"./Users03-DeTmNZEn.js";import"./CheckCircle-DWInED8p.js";import"./Check-BIWtIuCf.js";import"./ChevronDown-CVbb0r_e.js";import"./ChevronSelectorVertical-CeVOSRh7.js";import"./ChevronUp-BFhKV90E.js";import"./DotsVertical-BWFsb5qJ.js";import"./Stars02-aJgerMdO.js";import"./UserSquare-DR98X7-R.js";import"./Copy01-Dd6exwRm.js";import"./CreditCard01-COkd7l4h.js";import"./Download01-ByYWlv8P.js";import"./Settings02-Dspvirmc.js";import"./Eye-CoYKR0nI.js";import"./FilterLines-CIgGkBSe.js";import"./Share07-DTtbdEzm.js";import"./Globe01-sUFldSbl.js";import"./Globe04-DUXrz6XD.js";import"./SwitchHorizontal01-CMlk6d1K.js";import"./HardDrive-Cx4T9PNd.js";import"./Key01-CRJ_Etjs.js";import"./LinkExternal01-BMTo98Dx.js";import"./LockUnlocked01-BYZjwbAR.js";import"./LogOut01-4jTBHB4S.js";import"./Monitor01-DkkiUD9G.js";import"./Sun-cD-kH109.js";import"./Palette-fIe3ZXln.js";import"./Play-DvUOD8qW.js";import"./Plus-Ns4_pIbl.js";import"./SearchLg-Dx0A_3zi.js";import"./SearchMd-Cn4Bukdn.js";import"./Shield01-Boe32FKW.js";import"./Stars01-hOH5qHG7.js";import"./Trash01-CyoK4MU5.js";import"./Upload01-Cxy07oQg.js";import"./User01-oIs-vUGA.js";import"./Users01-Fr1ZQuZu.js";import"./XClose-C_dHeH17.js";import"./Zap-i23d8bq2.js";import"./select-DCFOCjoX.js";import"./chat-context-DjYbmLav.js";import"./tab-id-DTQBZsSu.js";import"./dialog-BBPJC7yY.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DUQfZTL_.js";import"./use-mcp-client-Ccznzs5K.js";import"./constants-z9Iog-sb.js";import"./auth-iZ8bZTve.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DoVi8VY1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-myrJninv.js";import"./use-ai-providers-C7-CezpT.js";import"./use-decopilot-events-DduusyI4.js";import"./use-organization-settings-BbsRSP2t.js";import"./automation-runs-o4xufCd8.js";import"./useInfiniteQuery-CbKuLMPg.js";import"./use-infinite-scroll-czLvmTC2.js";import"./use-connection-BT0yI2N1.js";import"./table-CDNSisGr.js";import"./empty-state-Cm37ZiLn.js";import"./use-members-BrkFmrC2.js";import"./use-org-auth-client-BQCacaH4.js";import"./use-automations-CJls2uog.js";import"./useSuspenseInfiniteQuery-C33Ws-pQ.js";import"./avatar-WApsR2TX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D_i4k6QZ.js";import"./monaco-editor-DGH_uddi.js";import"./spinner-5sgFnmTJ.js";import"./types-v-KFI9T9.js";import"./shell-layout-BjqyiyfI.js";import"./required-auth-layout-UoP_VLdg.js";import"./use-org-sso-DictyNVb.js";import"./integration-icon-BTaqQLeL.js";import"./use-navigate-to-agent-CEI397ME.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-B5D871qx.js";import"./index-C5NUTMdB.js";import"./form-CbBceGEv.js";import"./label-9fOXKvHw.js";import"./input-CmWpGJPZ.js";import"./file-type-icon-CzJDfNY8.js";import"./drawer-QXmPtU62.js";import"./collection-search-bSeQdzpX.js";import"./tabs-DyZN3F6n.js";import"./toggle-group-CY548Ail.js";import"./use-commerce-diagnostic-DGoxaXzu.js";import"./popover-DvqYGJ6a.js";import"./self-tool-result-BsMOoqp1.js";import"./alert-dialog-B4ltP1Zu.js";import"./extract-connection-data-k9CE5liA.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-BMmQGk2i.js";import"./authenticate-and-persist-oauth-CSSCn7ah.js";import"./mcp-oauth-CrH_sNAB.js";import"./track-CAP9UGRM.js";import"./toolbar-BXqDit6n.js";import"./github-repo-picker-Cybw3Ow4.js";import"./use-mcp-tools-Dis5cPUY.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-ClDZwlDp.js";import"./use-registry-connections-C0BMOjmC.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CKGtBy6P.js";import"./connection-form-helpers-DdNo9Syk.js";import"./collection-tabs-BKfmiSOC.js";import"./badge-DHZdaANE.js";import"./command-lZx7XmuN.js";import"./index-BqWFtpxV.js";import"./select-model-D3ApOsFk.js";import"./checkbox-DEpjJOPP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-kEvnJEN2.js";import"./dropdown-menu-B_78l2v6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BC-Y3Qkm.js";import"./use-file-configs-RpYJRWfY.js";import"./pt-BR-CLy76QW2.js";import"./switch-DJ3fHjlZ.js";import"./use-debounced-autosave-CTxtKrwS.js";import"./search-input-CBIAknoS.js";import"./index-V6-hWSaI.js";import"./use-secrets-DvM46U6Y.js";import"./AreaChart-SMaPcNXw.js";import"./use-task-board-items-D2yKMw6C.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BJEZBtxG.js";import"./task-key-BCHdFiOO.js";import"./automation-list-row-DtJ3vlU6.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-Fzi2yap-.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:c,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]!==c||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:c,style:m}),e[1]=c,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 n;return e[7]!==c||e[8]!==i?(n=o.jsx("div",{className:c,style:s,children:i}),e[7]=c,e[8]=i,e[9]=n):n=e[9],n}function Ie(d){const e=T.c(33),{seo:t,host:c,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 n;e[2]!==t.favicon?(n=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]=n):n=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]!==c?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:c}),e[5]=c,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]!==c||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[c,v]}),e[8]=c,e[9]=v,e[10]=l):l=e[10];let a;e[11]!==p||e[12]!==l?(a=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=a):a=e[13];let h;e[14]!==n||e[15]!==a?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[n,a]}),e[14]=n,e[15]=a,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 Le(d){const e=T.c(26),{seo:t,host:c,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 n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n={color:"#8a9099"},e[4]=n):n=e[4];let m;e[5]!==c?(m=o.jsx("div",{className:"truncate text-[11px]",style:n,children:c}),e[5]=c,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 a;e[13]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#60666c"},e[13]=a):a=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:a,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 Ue(d){const e=T.c(36),{seo:t,host:c,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 n;e[2]!==r?(n=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=n):n=e[3];let m;e[4]!==n?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:n}),e[4]=n,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 a;e[10]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#1c2024"},e[10]=a):a=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:a,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]!==c?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:c}),e[23]=c,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 Be(d){const e=T.c(39),{seo:t,host:c,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",n=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 a=`3px solid ${v}`;let h;e[3]!==a?(h={borderLeft:a,borderRadius:2},e[3]=a,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]!==c||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:c}),e[7]=c,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==n?(u={color:n},e[10]=n,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 Oe(d){const e=T.c(21),{platform:t,seo:c,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]!==c||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:c,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:c,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Ue,{seo:c,host:v,path:r,accent:t.color,t:s}):o.jsx(Be,{seo:c,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]=c,e[6]=s,e[7]=i):i=e[7];const n=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 a;return e[18]!==n||e[19]!==l?(a=o.jsxs("div",{children:[l,n]}),e[18]=n,e[19]=l,e[20]=a):a=e[20],a}function Ae(d){const e=T.c(18),{seo:t,url:c,path:v}=d,r=v===void 0?"/":v,s=ve();let i,n,m;if(e[0]!==t||e[1]!==c){const u=ze(t);i=u,n=he(u.image,c),m=he(u.favicon,c),e[0]=t,e[1]=c,e[2]=i,e[3]=n,e[4]=m}else i=e[2],n=e[3],m=e[4];let p;e[5]!==i||e[6]!==n||e[7]!==m?(p={...i,image:n,favicon:m},e[5]=i,e[6]=n,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==c?(l=De(c),e[9]=c,e[10]=l):l=e[10];const a=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==a||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Oe,{platform:u,seo:f,host:a,path:h,t:s},u.id)),e[11]=h,e[12]=a,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:c,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:n,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),a=Ne(r,i,s),h=a?.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(Ve));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=Re({orgSlug:t,virtualMcpId:c,branch:v,target:i,resolved:a,onSaved:m}),M=i.kind==="page",ge=M?a?.rawSeoData:void 0,O=k!==void 0?k:ge,be=M?we(O)??void 0:void 0,E=S??be??h??{},F=a?Ce(E,a):null,K=F&&(!M||_e(O))?Ee(F,s):null;let V;e[0]!==s?(V=Pe(s),e[0]=s,e[1]=V):V=e[1];const oe=V;let R,G;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Te(r,s)?.seoData??{}:{},G=i.kind==="page"?He(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=G):(R=e[6],G=e[7]);const ie=G;let H;e[8]!==w||e[9]!==a||e[10]!==g?(H=C=>{if(!a)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=a,e[10]=g,e[11]=H):H=e[11];const se=H;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let X;e[14]!==j?(X=()=>j(Me),e[14]=j,e[15]=X):X=e[15];const re=X;let Y;e[16]!==P||e[17]!==f?(Y=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=Y):Y=e[18];const ae=Y,z=i.kind==="page"?i.path:"/";let q;e[19]!==z||e[20]!==n||e[21]!==i.kind?(q=i.kind==="page"&&n?Ge(z,n):n??null,e[19]=z,e[20]=n,e[21]=i.kind,e[22]=q):q=e[22];const ce=q;let J;e[23]!==a||e[24]!==l||e[25]!==i.kind?(J=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(a?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=a,e[24]=l,e[25]=i.kind,e[26]=J):J=e[26];const ne=J,Q=M&&a,me=i.kind==="site"&&a&&K;let D;e[27]!==ae||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:ae,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]=ae,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 I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=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]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let U;e[41]!==L||e[42]!==D?(U=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=U):U=e[43];let B;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==O||e[49]!==E||e[50]!==ne||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ce||e[58]!==a||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Q||e[63]!==me||e[64]!==R||e[65]!==l?(B=!a||!Q&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ne}):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:Q?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Ke,{rawSeo:O,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:a.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Fe,{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:ce,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=O,e[49]=E,e[50]=ne,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ce,e[58]=a,e[59]=K,e[60]=g,e[61]=N,e[62]=Q,e[63]=me,e[64]=R,e[65]=l,e[66]=B):B=e[66];let Z;return e[67]!==U||e[68]!==B?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[U,B]}),e[67]=U,e[68]=B,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ve(d){return d+1}function Ge(d,e){try{return new URL(d,e).href}catch{return e}}function He(d,e){const t=e.__resolveType,c=d.__resolveType;if(typeof t=="string"&&typeof c=="string"&&t!==c)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-DsKkWGEq.js","assets/index-11Axpbvx.js","assets/index-D9Pbmk9A.css","assets/Tool02-HLpWqOaY.js","assets/CheckCircle-DWInED8p.js","assets/Settings02-Dspvirmc.js","assets/use-mcp-client-Ccznzs5K.js","assets/constants-z9Iog-sb.js","assets/auth-iZ8bZTve.js","assets/useInfiniteQuery-CbKuLMPg.js","assets/use-infinite-scroll-czLvmTC2.js","assets/badge-DHZdaANE.js","assets/input-CmWpGJPZ.js","assets/dropdown-menu-B_78l2v6.js","assets/Check-BIWtIuCf.js","assets/ChevronRight-DDyA5W9O.js","assets/DotsVertical-BWFsb5qJ.js","assets/table-CDNSisGr.js","assets/toggle-group-CY548Ail.js","assets/use-view-mode-1QIIASYP.js","assets/FilterLines-CIgGkBSe.js","assets/Globe01-sUFldSbl.js","assets/SearchMd-Cn4Bukdn.js","assets/dialog-BBPJC7yY.js","assets/AlertCircle-6tWU7wYa.js","assets/Download01-ByYWlv8P.js","assets/Upload01-Cxy07oQg.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-B4ltP1Zu.js","assets/Trash01-CyoK4MU5.js","assets/label-9fOXKvHw.js","assets/select-DCFOCjoX.js","assets/ChevronDown-CVbb0r_e.js","assets/ChevronUp-BFhKV90E.js","assets/switch-DJ3fHjlZ.js","assets/textarea-CKGtBy6P.js","assets/ArrowLeft-CfuiIq5H.js","assets/XCircle-9IEiQ4L2.js","assets/checkbox-DEpjJOPP.js","assets/Eye-CoYKR0nI.js","assets/LinkExternal01-BMTo98Dx.js","assets/use-copy-D_i4k6QZ.js","assets/Copy01-Dd6exwRm.js","assets/Key01-CRJ_Etjs.js","assets/Plus-Ns4_pIbl.js","assets/mcp-oauth-CrH_sNAB.js","assets/Play-DvUOD8qW.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,k as f,r as l,bi as p}from"./index-11Axpbvx.js";import{R as u}from"./require-capability-CYU1nEvM.js";import"./access-gate-B-12I7Fo.js";import"./capability-load-error-BI676ir-.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DsKkWGEq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{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-czLvmTC2.js";import{eU as i}from"./index-11Axpbvx.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-czLvmTC2.js";import{eU as u,bJ as n}from"./index-11Axpbvx.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};