decocms 3.80.0 → 3.82.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 (214) hide show
  1. package/dist/client/assets/{AlertCircle-CzPpSV3W.js → AlertCircle-DifM-3Ys.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-BefNTATY.js → ArrowUpRight-DTNfyjlQ.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-BRNW9lmT.js → CheckCircle-DmLgOHHp.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-Di-ZHzN-.js → ChevronDown-BY59w4Qk.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-ByolOLbh.js → ChevronLeft-DVIgNVyn.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-CmB8MBzZ.js → ChevronRight-CM2UCxLV.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-BurUkCqE.js → ChevronUp-ELVqY6cz.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-Dsznav3Y.js → DotsVertical-FbZSolmB.js} +1 -1
  9. package/dist/client/assets/{Eye-B8NUm9Br.js → Eye-8PGvC0iK.js} +1 -1
  10. package/dist/client/assets/{FilterLines-DMbodALc.js → FilterLines-Cf2PdvFM.js} +1 -1
  11. package/dist/client/assets/{Globe01-BG9Wm5DJ.js → Globe01-B90chNia.js} +1 -1
  12. package/dist/client/assets/{Globe04-Fg_TSPLj.js → Globe04-Dw4nWd3A.js} +1 -1
  13. package/dist/client/assets/{HardDrive-BLr46_IN.js → HardDrive-CKn4i_9T.js} +1 -1
  14. package/dist/client/assets/{Key01-Dc0MTS9j.js → Key01-oftOkafI.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-nNhAa0Dy.js → LayoutLeft-Bij2Lb4X.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-D0OVTAOa.js → LinkExternal01-9FNotiMN.js} +1 -1
  17. package/dist/client/assets/{Monitor01-D_VMj6ZB.js → Monitor01-CR1JDEQ7.js} +1 -1
  18. package/dist/client/assets/{Palette-BmXFbt3l.js → Palette-ArrfZuOV.js} +1 -1
  19. package/dist/client/assets/{Play-CAiQqhjZ.js → Play-BB5dP1L8.js} +1 -1
  20. package/dist/client/assets/{Plus-DHDiWYHk.js → Plus-CglBKrb5.js} +1 -1
  21. package/dist/client/assets/{SearchMd-DaWHy1GV.js → SearchMd-Bmh_sD0S.js} +1 -1
  22. package/dist/client/assets/{Settings02-B7jENSJZ.js → Settings02-RazZjdiv.js} +1 -1
  23. package/dist/client/assets/{Shield01-YoAzrA51.js → Shield01-D44r3AdO.js} +1 -1
  24. package/dist/client/assets/{Star01-CaB7lNB9.js → Star01-C9VN0Du_.js} +1 -1
  25. package/dist/client/assets/{Stars01-a6WqibZn.js → Stars01-CoxwYWLP.js} +1 -1
  26. package/dist/client/assets/{Stars02-D2Vky1vN.js → Stars02-l9mDD3eo.js} +1 -1
  27. package/dist/client/assets/{Sun-vyxrPcie.js → Sun-D-fwbx_z.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-C3K-vKiU.js → SwitchHorizontal01-DO04KALD.js} +1 -1
  29. package/dist/client/assets/{Tool01-CTw8qR4v.js → Tool01-CqbO1hX2.js} +1 -1
  30. package/dist/client/assets/{Trash01-BzTEx-hS.js → Trash01-DUxygeaL.js} +1 -1
  31. package/dist/client/assets/{Upload01-DwgHgRix.js → Upload01-CEAuuYpa.js} +1 -1
  32. package/dist/client/assets/{User01-BtO-AoKy.js → User01-fdrqbZOX.js} +1 -1
  33. package/dist/client/assets/{Users01-BRTza8nY.js → Users01-BQH1rUR7.js} +1 -1
  34. package/dist/client/assets/{Users03-9LUo_raC.js → Users03-V7VYPOVz.js} +1 -1
  35. package/dist/client/assets/{X-1BuEzBGR.js → X-DH6rpzm4.js} +1 -1
  36. package/dist/client/assets/{XCircle-DtHr5hnB.js → XCircle-CNgW1bnA.js} +1 -1
  37. package/dist/client/assets/{XClose-qpXD94Yo.js → XClose-DY_H1WmQ.js} +1 -1
  38. package/dist/client/assets/{Zap-DluXKGP1.js → Zap-jC0lbn1q.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-C2q_71C5.js → ZapSquare-wbaFJ6J6.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-DHX-bR9F.js → ZoomOut-XI-iJG4j.js} +1 -1
  41. package/dist/client/assets/{access-gate-CGKEhEok.js → access-gate-DDQd7LZ9.js} +1 -1
  42. package/dist/client/assets/{add-section-modal-SzJO4niJ.js → add-section-modal-DbYQ6fO0.js} +1 -1
  43. package/dist/client/assets/{agent-icon-B8qJNw4_.js → agent-icon-BUISstKv.js} +1 -1
  44. package/dist/client/assets/{agents-list-BCVql_rD.js → agents-list-CLbNQC9z.js} +1 -1
  45. package/dist/client/assets/{ai-providers-DfbrzvnV.js → ai-providers-61qxW7f5.js} +1 -1
  46. package/dist/client/assets/{alert-BdFRtqYC.js → alert-VlhASuYO.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-CSRFWtbt.js → alert-dialog-Dh6V_14o.js} +1 -1
  48. package/dist/client/assets/{app-editor-CSxGjHmN.js → app-editor-BI1KpS86.js} +1 -1
  49. package/dist/client/assets/{auth-DOooeHhC.js → auth-COC6Da1O.js} +1 -1
  50. package/dist/client/assets/{auth-catchall-esDJNOF7.js → auth-catchall-DjeD5XiQ.js} +1 -1
  51. package/dist/client/assets/{auth-entry-CJkDGWB9.js → auth-entry-DDP2v7bj.js} +1 -1
  52. package/dist/client/assets/{auth-split-layout-BHOeLJSB.js → auth-split-layout-CYQ7PKOY.js} +1 -1
  53. package/dist/client/assets/{authenticate-and-persist-oauth-CAo_oHNJ.js → authenticate-and-persist-oauth-7kSYvcg8.js} +1 -1
  54. package/dist/client/assets/{automation-list-row-CBS-1Qac.js → automation-list-row-DCvQVGai.js} +1 -1
  55. package/dist/client/assets/{automation-runs-BhCrA9zN.js → automation-runs-DMkXGxyD.js} +1 -1
  56. package/dist/client/assets/{automations-DgOam79q.js → automations-CRTazwGA.js} +1 -1
  57. package/dist/client/assets/{avatar-BnBqk-2k.js → avatar-yxz7fyGH.js} +1 -1
  58. package/dist/client/assets/{badge-CpxlbcB7.js → badge-CQquKN9p.js} +1 -1
  59. package/dist/client/assets/{block-document-DJ0g8qfo.js → block-document-BBSIfcJ0.js} +1 -1
  60. package/dist/client/assets/{brand-context-COIa0n8O.js → brand-context-gRadlp6o.js} +1 -1
  61. package/dist/client/assets/{buckets-BINQS-Su.js → buckets-CHaLsSDx.js} +1 -1
  62. package/dist/client/assets/{capability-load-error-HdFgr5IE.js → capability-load-error-geYLJLvZ.js} +1 -1
  63. package/dist/client/assets/{card-DQnbTJFb.js → card-Bj8otFuN.js} +1 -1
  64. package/dist/client/assets/category-editor-UeZPwCgj.js +1 -0
  65. package/dist/client/assets/{chat-context-CmZjYRTw.js → chat-context-D2XCyHNy.js} +1 -1
  66. package/dist/client/assets/{checkbox-DokO2DXd.js → checkbox-Da1mUHNU.js} +1 -1
  67. package/dist/client/assets/{cli-auth-success-NPtl5xjH.js → cli-auth-success-DGCDjW3a.js} +1 -1
  68. package/dist/client/assets/{collection-detail-DgzIzvmX.js → collection-detail-B8ehy7SJ.js} +1 -1
  69. package/dist/client/assets/{collection-display-button-hKaFuGbc.js → collection-display-button-BbDeI4M_.js} +1 -1
  70. package/dist/client/assets/{collection-search-9oxtR-cY.js → collection-search-Bde6_LbH.js} +1 -1
  71. package/dist/client/assets/{collection-tabs-CvHGsfW_.js → collection-tabs-CmheS0lt.js} +1 -1
  72. package/dist/client/assets/{command-Bw5g6PzP.js → command-D_g4Qh6z.js} +1 -1
  73. package/dist/client/assets/commerce-onboarding-hTRnas9I.js +1 -0
  74. package/dist/client/assets/{connect-desktop-dialog-BktLGd3J.js → connect-desktop-dialog-CSA1yCDL.js} +1 -1
  75. package/dist/client/assets/{connection-card-BZz5WDR5.js → connection-card-BavDtRRe.js} +1 -1
  76. package/dist/client/assets/{connection-detail-DNAdeiIH.js → connection-detail-BluTRGVx.js} +1 -1
  77. package/dist/client/assets/{connection-form-helpers-CltinQul.js → connection-form-helpers-vW7WD93k.js} +1 -1
  78. package/dist/client/assets/{connections-BSiahnsQ.js → connections-C6JDIrTa.js} +1 -1
  79. package/dist/client/assets/{context-menu-ByPsUX7u.js → context-menu-CFoKwdsl.js} +1 -1
  80. package/dist/client/assets/{decopilot-DjAEZRNX.js → decopilot-DgdLPSeb.js} +1 -1
  81. package/dist/client/assets/{decopilot-sse-pool-R-AtQW2s.js → decopilot-sse-pool-BRv-o5yu.js} +1 -1
  82. package/dist/client/assets/{dialog-L9SFsS1U.js → dialog-D9WjjXCi.js} +1 -1
  83. package/dist/client/assets/{domain-settings-BDbjH98X.js → domain-settings-BzX_jmew.js} +1 -1
  84. package/dist/client/assets/{drawer-D-LP9Hh8.js → drawer-B07QIoON.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-ByaGrYAQ.js → dropdown-menu-Cym0YADL.js} +1 -1
  86. package/dist/client/assets/{empty-state-BoeIt5Fh.js → empty-state-Dc-tsC-2.js} +1 -1
  87. package/dist/client/assets/{extract-connection-data-Rczvmr_Y.js → extract-connection-data-BSTqgqHH.js} +1 -1
  88. package/dist/client/assets/{file-explorer-QNJW4EAt.js → file-explorer-BfDoSrZk.js} +1 -1
  89. package/dist/client/assets/{file-type-icon-C96ES1WD.js → file-type-icon-DtYuEk9O.js} +1 -1
  90. package/dist/client/assets/{files-CK2ZpMSb.js → files-Brjfptic.js} +1 -1
  91. package/dist/client/assets/{form-Ci3Mfx5E.js → form-2979wdxX.js} +1 -1
  92. package/dist/client/assets/{general-Dt135lsN.js → general-CTI0wRux.js} +1 -1
  93. package/dist/client/assets/{github-repo-picker-CLrsrBV_.js → github-repo-picker-BkDPWKjv.js} +1 -1
  94. package/dist/client/assets/{hooks-BBwQx9Hj.js → hooks-CMSXeMFL.js} +1 -1
  95. package/dist/client/assets/{import-from-deco-dialog-D3nDDNau.js → import-from-deco-dialog-D-c4LLRp.js} +1 -1
  96. package/dist/client/assets/{index-_BBnqQdQ.js → index-BYx78v24.js} +1 -1
  97. package/dist/client/assets/{index-Dtsr5F6p.js → index-CHiBkNe7.js} +1 -1
  98. package/dist/client/assets/{index-CuZWA4Jo.js → index-CcHBEZaL.js} +1 -1
  99. package/dist/client/assets/{index-DM3CipuA.js → index-CfQz19re.js} +1 -1
  100. package/dist/client/assets/{index-DUXTdmoE.js → index-CkgRi4X3.js} +1 -1
  101. package/dist/client/assets/{index-DF_aAsrE.js → index-D6hU96vm.js} +1 -1
  102. package/dist/client/assets/{index-JnEot5Hj.js → index-DFxFL0tW.js} +1 -1
  103. package/dist/client/assets/{index-BYWWr4r7.js → index-DXI2OWA9.js} +1 -1
  104. package/dist/client/assets/{index-28ylgXoe.js → index-Y-0r87FI.js} +1 -1
  105. package/dist/client/assets/{index-B-wtw2cV.js → index-eQTuHKl6.js} +1 -1
  106. package/dist/client/assets/{index-Y9nbouYw.js → index-gNo-Kuqg.js} +1 -1
  107. package/dist/client/assets/{index-BRqNUInJ.js → index-ndGiTd2H.js} +1 -1
  108. package/dist/client/assets/{index-D4eNxtKO.js → index-pvUD-kUc.js} +5 -5
  109. package/dist/client/assets/{index-redirect-DmPoZnz_.js → index-redirect-C7otwZuS.js} +1 -1
  110. package/dist/client/assets/{index-DrM3Gy-E.js → index-vUJ0Rroa.js} +3 -3
  111. package/dist/client/assets/index-xCrqP1qS.css +1 -0
  112. package/dist/client/assets/{input-BiM4A7Ep.js → input-D475ckPl.js} +1 -1
  113. package/dist/client/assets/{integration-icon-g_GK3RAr.js → integration-icon-DWC1E-NM.js} +1 -1
  114. package/dist/client/assets/{label-CjJncELr.js → label-Ds5L98Th.js} +1 -1
  115. package/dist/client/assets/{login-BOHERlR0.js → login-Bna6EQXB.js} +1 -1
  116. package/dist/client/assets/{mcp-oauth-CEKI9gHX.js → mcp-oauth-BuJKTbpq.js} +1 -1
  117. package/dist/client/assets/{members-BRt8WHan.js → members-CfxGG4ms.js} +1 -1
  118. package/dist/client/assets/{monaco-editor-BiUexVQ3.js → monaco-editor-BIbmj68Y.js} +1 -1
  119. package/dist/client/assets/{monitoring-stats-row-CwoDwl1p.js → monitoring-stats-row-FEqgyaSm.js} +1 -1
  120. package/dist/client/assets/{oauth-callback-BuVPnEYV.js → oauth-callback-BTT9yfsW.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-ai-provider-YJv6IQM9.js → oauth-callback-ai-provider-NTmJLpKs.js} +1 -1
  122. package/dist/client/assets/{onboarding-CYpSkBDm.js → onboarding-Bg6NNcXN.js} +1 -1
  123. package/dist/client/assets/{org-install-DCy7wocy.js → org-install-DU4xYSjy.js} +1 -1
  124. package/dist/client/assets/{org-layout-RT_U7zH8.js → org-layout-BI-1sw6-.js} +1 -1
  125. package/dist/client/assets/{organization-choice-bTsrQb1b.js → organization-choice-BKBCasUi.js} +1 -1
  126. package/dist/client/assets/{page-seo-form-oftq8ir_.js → page-seo-form-UXOt1Xq8.js} +1 -1
  127. package/dist/client/assets/page-seo-sheet-Cb5cCBSA.js +1 -0
  128. package/dist/client/assets/{popover-CdhOYhn4.js → popover-BEzlzjXA.js} +1 -1
  129. package/dist/client/assets/{post-editor-B3gQokNp.js → post-editor-Dlb8m7Iz.js} +1 -1
  130. package/dist/client/assets/{preview-dialog-vDgojfWg.js → preview-dialog-DtFiLW4L.js} +1 -1
  131. package/dist/client/assets/{primitives-CPVg2JCk.js → primitives-BSQDvGLE.js} +1 -1
  132. package/dist/client/assets/{profile-C8hjNf5c.js → profile-BnTQMGfC.js} +1 -1
  133. package/dist/client/assets/project-app-view-C9CksfQE.js +1 -0
  134. package/dist/client/assets/record-editor-BjHlAGT_.js +1 -0
  135. package/dist/client/assets/registry-Bq0zziYB.js +2 -0
  136. package/dist/client/assets/{registry-layout-BuJ69l8z.js → registry-layout-Che-hfuD.js} +1 -1
  137. package/dist/client/assets/{require-capability-7xlqOMAl.js → require-capability-BPVqafNl.js} +1 -1
  138. package/dist/client/assets/{required-auth-layout-DMkbzFqw.js → required-auth-layout-0H2r_sG0.js} +1 -1
  139. package/dist/client/assets/{reset-password-CANGclZQ.js → reset-password-BnD36W_y.js} +1 -1
  140. package/dist/client/assets/{roles-BsbFpQdA.js → roles-E1DxEKKj.js} +1 -1
  141. package/dist/client/assets/{save-status-BZrjQZNL.js → save-status-lTcRFIDk.js} +1 -1
  142. package/dist/client/assets/{scroll-area-DaDHqFsI.js → scroll-area-BcHB6NVX.js} +1 -1
  143. package/dist/client/assets/{search-input-CA0juGKQ.js → search-input-DLLGaO2O.js} +1 -1
  144. package/dist/client/assets/{secrets-2KI9BQIB.js → secrets-CPwF9JEQ.js} +1 -1
  145. package/dist/client/assets/{sections-editor-DAz_riff.js → sections-editor-C33mQAPq.js} +1 -1
  146. package/dist/client/assets/{select-model-DhPTkTLZ.js → select-model-DRzRHvEm.js} +1 -1
  147. package/dist/client/assets/{select-lfhjFS6i.js → select-wPD7z-7a.js} +1 -1
  148. package/dist/client/assets/{seo-editor-qYixYUVP.js → seo-editor-DVLMhS9K.js} +1 -1
  149. package/dist/client/assets/{settings-layout-D8_yU3Dv.js → settings-layout-D_rTN8X_.js} +1 -1
  150. package/dist/client/assets/{settings-section-uGwPOE8T.js → settings-section-DTFkKe0k.js} +1 -1
  151. package/dist/client/assets/{sheet-nKeubIDJ.js → sheet-D7Sq65N5.js} +1 -1
  152. package/dist/client/assets/{shell-controls-Nhg6txWq.js → shell-controls-MZoa2pcn.js} +1 -1
  153. package/dist/client/assets/{shell-layout-DJP1UAvL.js → shell-layout-CicMe8M5.js} +1 -1
  154. package/dist/client/assets/{shell-route-loading-BQkX9uZV.js → shell-route-loading-ALc0mrI8.js} +1 -1
  155. package/dist/client/assets/{sidebar-BDxhgXc-.js → sidebar-BBRwD7tX.js} +1 -1
  156. package/dist/client/assets/{skeleton-CQjs3VsL.js → skeleton-Et7A2pSm.js} +1 -1
  157. package/dist/client/assets/{sortable.esm-DaR8hxU_.js → sortable.esm-DHRoGvrT.js} +1 -1
  158. package/dist/client/assets/{sso-hQT21VNe.js → sso-C92vsbFf.js} +1 -1
  159. package/dist/client/assets/{store-BEmqzV80.js → store-BkJbUZAQ.js} +1 -1
  160. package/dist/client/assets/store-registry-Pmy6lYa3.js +2 -0
  161. package/dist/client/assets/{studio-tools-CAUx-JUt.js → studio-tools-BZzXzwRs.js} +1 -1
  162. package/dist/client/assets/{switch-Vf_P6Fjw.js → switch-CS7rft2F.js} +1 -1
  163. package/dist/client/assets/{table-Df43OI16.js → table-6zTgSv0k.js} +1 -1
  164. package/dist/client/assets/{tabs-B7LOh75O.js → tabs-NT5hIgye.js} +1 -1
  165. package/dist/client/assets/{task-status-CNl7XTqg.js → task-status-BGl9HRbw.js} +1 -1
  166. package/dist/client/assets/{textarea-CoSni5ST.js → textarea-Dv2h0FHy.js} +1 -1
  167. package/dist/client/assets/{toggle-group-Dpya1ElG.js → toggle-group-BlIuQKMU.js} +1 -1
  168. package/dist/client/assets/{toolbar-C-FtiPvy.js → toolbar-Dqn0u_dp.js} +1 -1
  169. package/dist/client/assets/{tooltip-Cs_BNuMF.js → tooltip-CMUaL9C1.js} +1 -1
  170. package/dist/client/assets/{types-GBPItn3L.js → types-BSxSWkiR.js} +1 -1
  171. package/dist/client/assets/{use-ai-providers-Cyy4e6Er.js → use-ai-providers-DzNi6Q_V.js} +1 -1
  172. package/dist/client/assets/{use-automations-jx__re2k.js → use-automations-DBCBw7t_.js} +1 -1
  173. package/dist/client/assets/{use-capability-_e3uVe_7.js → use-capability-hUlYEzZt.js} +1 -1
  174. package/dist/client/assets/{use-clock-tick-g2v6P087.js → use-clock-tick-BQWtBapt.js} +1 -1
  175. package/dist/client/assets/{use-collections-B_GMLsdD.js → use-collections-CmcFURA8.js} +1 -1
  176. package/dist/client/assets/{use-connection-DKt0DY8s.js → use-connection-BlyaSvk_.js} +1 -1
  177. package/dist/client/assets/{use-copy-CgtuLhVL.js → use-copy-Ck1s3Ly_.js} +1 -1
  178. package/dist/client/assets/{use-create-virtual-mcp-3Gcq1gem.js → use-create-virtual-mcp-C6iKxwna.js} +1 -1
  179. package/dist/client/assets/{use-debounced-autosave-EPMbx34N.js → use-debounced-autosave-B3PmQihS.js} +1 -1
  180. package/dist/client/assets/{use-delete-connection-CWY-Tuh_.js → use-delete-connection-QgWRMpRZ.js} +1 -1
  181. package/dist/client/assets/{use-file-configs-Ci1h3IZS.js → use-file-configs-D4iNPF8_.js} +1 -1
  182. package/dist/client/assets/{use-infinite-scroll-Dt6SxdrG.js → use-infinite-scroll-D0Uygp_Y.js} +1 -1
  183. package/dist/client/assets/{use-join-requests-Dtt8rzJS.js → use-join-requests-BVSkwLEZ.js} +1 -1
  184. package/dist/client/assets/{use-mcp-client-lyJJArps.js → use-mcp-client-CbMJzr4L.js} +1 -1
  185. package/dist/client/assets/{use-mcp-prompts-82Xtua4M.js → use-mcp-prompts-BCcxOooU.js} +1 -1
  186. package/dist/client/assets/{use-mcp-tools-CdHM3tvY.js → use-mcp-tools-CoU1W6We.js} +1 -1
  187. package/dist/client/assets/{use-members-CR5Y6qBg.js → use-members-BkVP92fJ.js} +1 -1
  188. package/dist/client/assets/{use-navigate-to-agent-DKc1WVEH.js → use-navigate-to-agent-DAdQNXr7.js} +1 -1
  189. package/dist/client/assets/{use-org-auth-client-DyCA15LL.js → use-org-auth-client-BVVEzYWX.js} +1 -1
  190. package/dist/client/assets/{use-org-sso-DzO_wPSE.js → use-org-sso-BwpmbYKY.js} +1 -1
  191. package/dist/client/assets/{use-organization-roles-CfNQzskd.js → use-organization-roles-CubNpt4Q.js} +1 -1
  192. package/dist/client/assets/{use-organization-settings-DmFrFel5.js → use-organization-settings-BlTbQ8o8.js} +1 -1
  193. package/dist/client/assets/{use-registry-connections-grv_p5nm.js → use-registry-connections-6RdLigQp.js} +1 -1
  194. package/dist/client/assets/{use-secrets-DzWb-lJi.js → use-secrets-fz_TrA3p.js} +1 -1
  195. package/dist/client/assets/{use-status-sounds-CeAiKW9f.js → use-status-sounds-BRVcePS8.js} +1 -1
  196. package/dist/client/assets/{use-view-mode-PWJQxDpL.js → use-view-mode-BHx0KhQn.js} +1 -1
  197. package/dist/client/assets/{use-virtual-mcp-Bglvu7_H.js → use-virtual-mcp-BgEUqJv7.js} +1 -1
  198. package/dist/client/assets/useInfiniteQuery-ChBCbSD3.js +1 -0
  199. package/dist/client/assets/useSuspenseInfiniteQuery-COloy4Cl.js +1 -0
  200. package/dist/client/assets/{variant-calendar-BwPeBwqf.js → variant-calendar-cujTqFIv.js} +1 -1
  201. package/dist/client/assets/{view-mode-toggle-B_Gx2-J_.js → view-mode-toggle-Bpaa83uS.js} +1 -1
  202. package/dist/client/index.html +2 -2
  203. package/dist/server/cli.js +530 -525
  204. package/package.json +1 -1
  205. package/dist/client/assets/category-editor-vCwJctBK.js +0 -1
  206. package/dist/client/assets/commerce-onboarding-QQ9bqrwx.js +0 -1
  207. package/dist/client/assets/index-Bh2oT8fz.css +0 -1
  208. package/dist/client/assets/page-seo-sheet-CAgRh54V.js +0 -1
  209. package/dist/client/assets/project-app-view-CVZVC5T9.js +0 -1
  210. package/dist/client/assets/record-editor-BZDypwa5.js +0 -1
  211. package/dist/client/assets/registry-BSMljcPA.js +0 -2
  212. package/dist/client/assets/store-registry-BoeF7jFP.js +0 -2
  213. package/dist/client/assets/useInfiniteQuery-v9qNAGwf.js +0 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-Bu3QWDEr.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "3.80.0",
3
+ "version": "3.82.0",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as st,j as e,B as mt}from"./index-DrM3Gy-E.js";import{i as lt}from"./XCircle-DtHr5hnB.js";import{U as pt}from"./agent-icon-B8qJNw4_.js";import{I as tt}from"./input-BiM4A7Ep.js";import{L as et}from"./label-CjJncELr.js";import{ar as at,as as nt,aA as ct,at as ft}from"./index-D4eNxtKO.js";import{u as dt,s as M,I as gt}from"./primitives-CPVg2JCk.js";import{S as ut}from"./save-status-BZrjQZNL.js";import{a as xt,B as ht,b as yt}from"./block-document-DJ0g8qfo.js";import"./AlertCircle-CzPpSV3W.js";import"./Tool01-CTw8qR4v.js";import"./SwitchHorizontal01-C3K-vKiU.js";import"./Settings02-B7jENSJZ.js";import"./ArrowUpRight-BefNTATY.js";import"./ZapSquare-C2q_71C5.js";import"./Users03-9LUo_raC.js";import"./CheckCircle-BRNW9lmT.js";import"./ChevronUp-BurUkCqE.js";import"./ChevronDown-Di-ZHzN-.js";import"./ChevronLeft-ByolOLbh.js";import"./ChevronRight-CmB8MBzZ.js";import"./DotsVertical-Dsznav3Y.js";import"./Stars02-D2Vky1vN.js";import"./Eye-B8NUm9Br.js";import"./ZoomOut-DHX-bR9F.js";import"./Globe01-BG9Wm5DJ.js";import"./FilterLines-DMbodALc.js";import"./Star01-CaB7lNB9.js";import"./Globe04-Fg_TSPLj.js";import"./HardDrive-BLr46_IN.js";import"./Key01-Dc0MTS9j.js";import"./LayoutLeft-nNhAa0Dy.js";import"./LinkExternal01-D0OVTAOa.js";import"./Monitor01-D_VMj6ZB.js";import"./Sun-vyxrPcie.js";import"./Palette-BmXFbt3l.js";import"./Play-CAiQqhjZ.js";import"./Plus-DHDiWYHk.js";import"./SearchMd-DaWHy1GV.js";import"./Shield01-YoAzrA51.js";import"./Stars01-a6WqibZn.js";import"./Trash01-BzTEx-hS.js";import"./Upload01-DwgHgRix.js";import"./User01-BtO-AoKy.js";import"./Users01-BRTza8nY.js";import"./XClose-qpXD94Yo.js";import"./X-1BuEzBGR.js";import"./Zap-DluXKGP1.js";import"./index-28ylgXoe.js";import"./chat-context-CmZjYRTw.js";import"./hooks-BBwQx9Hj.js";import"./use-mcp-client-lyJJArps.js";import"./auth-DOooeHhC.js";import"./decopilot-sse-pool-R-AtQW2s.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-Bglvu7_H.js";import"./use-collections-B_GMLsdD.js";import"./use-ai-providers-Cyy4e6Er.js";import"./studio-tools-CAUx-JUt.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-DmFrFel5.js";import"./scroll-area-DaDHqFsI.js";import"./use-clock-tick-g2v6P087.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CgtuLhVL.js";import"./tooltip-Cs_BNuMF.js";import"./file-type-icon-C96ES1WD.js";import"./dialog-L9SFsS1U.js";import"./content-blocks-o63cs2vh.js";import"./types-GBPItn3L.js";import"./shell-layout-DJP1UAvL.js";import"./avatar-BnBqk-2k.js";import"./required-auth-layout-DMkbzFqw.js";import"./use-org-sso-DzO_wPSE.js";import"./sheet-nKeubIDJ.js";import"./integration-icon-g_GK3RAr.js";import"./use-navigate-to-agent-DKc1WVEH.js";import"./use-connection-DKt0DY8s.js";import"./use-mcp-prompts-82Xtua4M.js";import"./form-Ci3Mfx5E.js";import"./select-lfhjFS6i.js";import"./drawer-D-LP9Hh8.js";import"./collection-search-9oxtR-cY.js";import"./tabs-B7LOh75O.js";import"./toggle-group-Dpya1ElG.js";import"./sortable.esm-DaR8hxU_.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BZz5WDR5.js";import"./use-registry-connections-grv_p5nm.js";import"./useInfiniteQuery-v9qNAGwf.js";import"./use-infinite-scroll-Dt6SxdrG.js";import"./extract-connection-data-Rczvmr_Y.js";import"./card-DQnbTJFb.js";import"./collection-tabs-CvHGsfW_.js";import"./badge-CpxlbcB7.js";import"./textarea-CoSni5ST.js";import"./connection-form-helpers-CltinQul.js";import"./authenticate-and-persist-oauth-CAo_oHNJ.js";import"./mcp-oauth-CEKI9gHX.js";import"./useSuspenseInfiniteQuery-Bu3QWDEr.js";import"./connect-desktop-dialog-BktLGd3J.js";import"./decopilot-DjAEZRNX.js";import"./checkbox-DokO2DXd.js";import"./skeleton-CQjs3VsL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-uGwPOE8T.js";import"./popover-CdhOYhn4.js";import"./command-Bw5g6PzP.js";import"./index-_BBnqQdQ.js";import"./dropdown-menu-ByaGrYAQ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CeAiKW9f.js";import"./empty-state-BoeIt5Fh.js";import"./toolbar-C-FtiPvy.js";import"./preview-dialog-vDgojfWg.js";import"./index-DF_aAsrE.js";import"./use-mcp-tools-CdHM3tvY.js";import"./use-capability-_e3uVe_7.js";import"./shell-route-loading-BQkX9uZV.js";import"./index-DUXTdmoE.js";import"./alert-dialog-CSRFWtbt.js";import"./switch-Vf_P6Fjw.js";import"./use-debounced-autosave-EPMbx34N.js";import"./index-BYWWr4r7.js";import"./sidebar-BDxhgXc-.js";import"./search-input-CA0juGKQ.js";import"./github-repo-picker-CLrsrBV_.js";import"./use-secrets-DzWb-lJi.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-B_Gx2-J_.js";import"./automation-runs-BhCrA9zN.js";import"./table-Df43OI16.js";import"./use-members-CR5Y6qBg.js";import"./use-org-auth-client-DyCA15LL.js";import"./task-status-CNl7XTqg.js";import"./use-automations-jx__re2k.js";import"./use-file-configs-Ci1h3IZS.js";import"./monaco-editor-BiUexVQ3.js";import"./select-model-DhPTkTLZ.js";import"./automation-list-row-CBS-1Qac.js";function Yi(it){const t=st.c(87),{orgSlug:l,virtualMcpId:p,branch:a,blockKey:z,block:G,decofile:H,meta:O,onManagePosts:Q}=it;let F;t[0]!==a||t[1]!==l||t[2]!==p?(F={orgSlug:l,virtualMcpId:p,branch:a},t[0]=a,t[1]=l,t[2]=p,t[3]=F):F=t[3];const m=at(F);let U;t[4]!==G?(U=nt(G,"categories"),t[4]=G,t[5]=U):U=t[5];const ot=U;let A;t[6]!==z||t[7]!==m?(A=o=>{m.mutate({blockKey:z,data:ft(z,"categories",o)})},t[6]=z,t[7]=m,t[8]=A):A=t[8];const[i,V]=dt(ot,A);let D;t[9]!==i||t[10]!==V?(D=(o,rt)=>V({...i,[o]:rt}),t[9]=i,t[10]=V,t[11]=D):D=t[11];const r=D;let s,L;t[12]!==i.slug||t[13]!==H?(s=M(i.slug),L=s?ct(H).filter(o=>o.categorySlugs.includes(s)).length:0,t[12]=i.slug,t[13]=H,t[14]=s,t[15]=L):(s=t[14],L=t[15]);const R=L;let n;t[16]!==i.name?(n=M(i.name)||"Untitled category",t[16]=i.name,t[17]=n):n=t[17];let c;t[18]!==n?(c=e.jsx("span",{className:"truncate text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let f;t[20]!==m.isError||t[21]!==m.isPending?(f=e.jsx(ut,{isPending:m.isPending,isError:m.isError}),t[20]=m.isError,t[21]=m.isPending,t[22]=f):f=t[22];let d;t[23]!==c||t[24]!==f?(d=e.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,f]}),t[23]=c,t[24]=f,t[25]=d):d=t[25];let g;t[26]!==i.name?(g=M(i.name),t[26]=i.name,t[27]=g):g=t[27];let u;t[28]!==r?(u=o=>r("name",o),t[28]=r,t[29]=u):u=t[29];let x;t[30]!==g||t[31]!==u?(x=e.jsx(gt,{value:g,onChange:u,placeholder:"Category name",className:"py-1 text-3xl font-bold text-foreground"}),t[30]=g,t[31]=u,t[32]=x):x=t[32];let T;t[33]===Symbol.for("react.memo_cache_sentinel")?(T=e.jsx(et,{htmlFor:"category-slug",children:"Slug"}),t[33]=T):T=t[33];let h;t[34]!==i.slug?(h=M(i.slug),t[34]=i.slug,t[35]=h):h=t[35];let y;t[36]!==r?(y=o=>r("slug",o.target.value),t[36]=r,t[37]=y):y=t[37];let j;t[38]!==h||t[39]!==y?(j=e.jsxs("div",{className:"mt-4 space-y-2",children:[T,e.jsx(tt,{id:"category-slug",value:h,onChange:y,placeholder:"my-category",className:"h-10"})]}),t[38]=h,t[39]=y,t[40]=j):j=t[40];let $;t[41]===Symbol.for("react.memo_cache_sentinel")?($=e.jsx(et,{htmlFor:"category-description",children:"Description"}),t[41]=$):$=t[41];let b;t[42]!==i.description?(b=M(i.description),t[42]=i.description,t[43]=b):b=t[43];let v;t[44]!==r?(v=o=>r("description",o.target.value),t[44]=r,t[45]=v):v=t[45];let N;t[46]!==b||t[47]!==v?(N=e.jsxs("div",{className:"mt-4 space-y-2",children:[$,e.jsx(tt,{id:"category-description",value:b,onChange:v,placeholder:"Short description for this category",className:"h-10"})]}),t[46]=b,t[47]=v,t[48]=N):N=t[48];let J;t[49]===Symbol.for("react.memo_cache_sentinel")?(J=e.jsx(pt,{size:16,className:"shrink-0 text-muted-foreground"}),t[49]=J):J=t[49];const X=R===1?"post":"posts";let S;t[50]!==R||t[51]!==X?(S=e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[J,e.jsxs("span",{className:"text-sm",children:[R," ",X," in this category"]})]}),t[50]=R,t[51]=X,t[52]=S):S=t[52];const Y=!s,Z=s?"Jump to the posts list filtered by this category":"Set a slug to manage this category's posts";let B;t[53]!==Q||t[54]!==s?(B=()=>Q(s),t[53]=Q,t[54]=s,t[55]=B):B=t[55];let K;t[56]===Symbol.for("react.memo_cache_sentinel")?(K=e.jsx(lt,{size:14}),t[56]=K):K=t[56];let k;t[57]!==Y||t[58]!==Z||t[59]!==B?(k=e.jsxs(mt,{type:"button",variant:"outline",size:"sm",disabled:Y,title:Z,onClick:B,children:["Manage posts",K]}),t[57]=Y,t[58]=Z,t[59]=B,t[60]=k):k=t[60];let _;t[61]!==S||t[62]!==k?(_=e.jsxs("div",{className:"mt-6 flex items-center justify-between gap-3 rounded-lg border bg-muted/30 px-4 py-3",children:[S,k]}),t[61]=S,t[62]=k,t[63]=_):_=t[63];let W;t[64]===Symbol.for("react.memo_cache_sentinel")?(W=e.jsx("div",{className:"mt-6 border-t"}),t[64]=W):W=t[64];let C;t[65]!==i.sections?(C=xt(i.sections),t[65]=i.sections,t[66]=C):C=t[66];let P;t[67]!==r?(P=o=>r("sections",o),t[67]=r,t[68]=P):P=t[68];let E;t[69]!==O||t[70]!==C||t[71]!==P?(E=e.jsx(ht,{value:C,onChange:P,meta:O,emptyMessage:"This category has no content yet. Use ⊕ to add your first block."}),t[69]=O,t[70]=C,t[71]=P,t[72]=E):E=t[72];let w;t[73]!==x||t[74]!==j||t[75]!==N||t[76]!==_||t[77]!==E?(w=e.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-3xl px-8 py-8",children:[x,j,N,_,W,E]})}),t[73]=x,t[74]=j,t[75]=N,t[76]=_,t[77]=E,t[78]=w):w=t[78];let I;t[79]!==w||t[80]!==d?(I=e.jsxs("div",{className:"flex h-full flex-col",children:[d,w]}),t[79]=w,t[80]=d,t[81]=I):I=t[81];let q;return t[82]!==a||t[83]!==l||t[84]!==I||t[85]!==p?(q=e.jsx(yt,{orgSlug:l,virtualMcpId:p,branch:a,children:I}),t[82]=a,t[83]=l,t[84]=I,t[85]=p,t[86]=q):q=t[86],q}export{Yi as CategoryEditor};
@@ -1 +0,0 @@
1
- import{c as R,r as k,l as Se,j as s,B as X,i as be,K,k as Z,m as Ae,a as Ie,u as $e,b as Te,n as De,d as Ee,o as Oe,L as Me}from"./index-DrM3Gy-E.js";import{A as Ke}from"./auth-entry-CJkDGWB9.js";import{A as q}from"./auth-split-layout-BHOeLJSB.js";import{O as _e}from"./organization-choice-bTsrQb1b.js";import{t as qe}from"./ChevronDown-Di-ZHzN-.js";import{f as He}from"./tab-id-BptcWVWa.js";import{I as Fe}from"./input-BiM4A7Ep.js";import{u as je,W as Re,S as we,g as Be,C as We}from"./use-mcp-client-lyJJArps.js";import{i as ze}from"./XCircle-DtHr5hnB.js";import{I as Qe}from"./integration-icon-g_GK3RAr.js";import{i as ke}from"./CheckCircle-BRNW9lmT.js";import{g as Ge,c as Ye,e as Ve}from"./extract-connection-data-Rczvmr_Y.js";import{a as Ze}from"./authenticate-and-persist-oauth-CAo_oHNJ.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./avatar-BnBqk-2k.js";import"./User01-BtO-AoKy.js";import"./auth-DOooeHhC.js";import"./agent-icon-B8qJNw4_.js";import"./AlertCircle-CzPpSV3W.js";import"./Tool01-CTw8qR4v.js";import"./SwitchHorizontal01-C3K-vKiU.js";import"./Settings02-B7jENSJZ.js";import"./ArrowUpRight-BefNTATY.js";import"./ZapSquare-C2q_71C5.js";import"./Users03-9LUo_raC.js";import"./ChevronUp-BurUkCqE.js";import"./ChevronLeft-ByolOLbh.js";import"./ChevronRight-CmB8MBzZ.js";import"./DotsVertical-Dsznav3Y.js";import"./Stars02-D2Vky1vN.js";import"./Eye-B8NUm9Br.js";import"./ZoomOut-DHX-bR9F.js";import"./Globe01-BG9Wm5DJ.js";import"./FilterLines-DMbodALc.js";import"./Star01-CaB7lNB9.js";import"./Globe04-Fg_TSPLj.js";import"./HardDrive-BLr46_IN.js";import"./Key01-Dc0MTS9j.js";import"./LayoutLeft-nNhAa0Dy.js";import"./LinkExternal01-D0OVTAOa.js";import"./Monitor01-D_VMj6ZB.js";import"./Sun-vyxrPcie.js";import"./Palette-BmXFbt3l.js";import"./Play-CAiQqhjZ.js";import"./Plus-DHDiWYHk.js";import"./SearchMd-DaWHy1GV.js";import"./Shield01-YoAzrA51.js";import"./Stars01-a6WqibZn.js";import"./Trash01-BzTEx-hS.js";import"./Upload01-DwgHgRix.js";import"./Users01-BRTza8nY.js";import"./XClose-qpXD94Yo.js";import"./X-1BuEzBGR.js";import"./Zap-DluXKGP1.js";import"./mcp-oauth-CEKI9gHX.js";const Je=/^[a-zA-Z][a-zA-Z\d+.-]*:/,Xe=/^[a-zA-Z][a-zA-Z\d+.-]*:\/\//,et=/^[^\s/:?#]+\.[^\s/:?#]+:\d+(?:[/?#]|$)/,tt=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i;function ye(i){const e=i.trim();if(!e)return{ok:!1,error:"Enter a website URL."};const t=Je.test(e),n=Xe.test(e),o=et.test(e);if(t&&!n&&!o)return{ok:!1,error:"Use an HTTP or HTTPS website URL."};const a=n?e:`https://${e}`;let r;try{r=new URL(a)}catch{return{ok:!1,error:"Enter a valid website URL."}}if(r.protocol!=="http:"&&r.protocol!=="https:")return{ok:!1,error:"Use an HTTP or HTTPS website URL."};const l=r.hostname.split(".");return l.length<2||l.some(d=>!d||!tt.test(d))?{ok:!1,error:"Enter a valid website URL."}:(r.protocol="https:",{ok:!0,value:r.origin})}function Ne(i){const e=R.c(23),{children:t,className:n,label:o}=i,a=o===void 0?"Show more":o,[r,l]=k.useState(null),[d,f]=k.useState(!0);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=T=>{if(l(T),!T)return;const I=()=>{const L=T.scrollHeight-T.scrollTop-T.clientHeight<8;f(L)};I(),T.addEventListener("scroll",I,{passive:!0});const U=new ResizeObserver(I);U.observe(T);for(const L of Array.from(T.children))U.observe(L);return()=>{T.removeEventListener("scroll",I),U.disconnect()}},e[0]=g):g=e[0];const u=g;let p;e[1]!==r?(p=()=>{r?.scrollBy({top:r.clientHeight*.8,behavior:"smooth"})},e[1]=r,e[2]=p):p=e[2];const x=p;let m;e[3]!==t||e[4]!==n?(m=s.jsx("div",{ref:u,className:n,children:t}),e[3]=t,e[4]=n,e[5]=m):m=e[5];const b=d?"opacity-0":"opacity-100";let y;e[6]!==b?(y=Se("pointer-events-none absolute inset-x-0 bottom-0 flex justify-center pb-2 pt-10","bg-gradient-to-t from-background to-transparent","transition-opacity duration-200",b),e[6]=b,e[7]=y):y=e[7];const S=d?-1:0,c=d?"pointer-events-none":"pointer-events-auto";let h;e[8]!==c?(h=Se("flex items-center gap-1 rounded-full border bg-background px-3 py-1","text-xs font-medium text-muted-foreground shadow-sm","transition-colors hover:text-foreground",c),e[8]=c,e[9]=h):h=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(qe,{size:14}),e[10]=j):j=e[10];let v;e[11]!==a||e[12]!==x||e[13]!==S||e[14]!==h?(v=s.jsxs("button",{type:"button",onClick:x,tabIndex:S,className:h,children:[a,j]}),e[11]=a,e[12]=x,e[13]=S,e[14]=h,e[15]=v):v=e[15];let E;e[16]!==d||e[17]!==v||e[18]!==y?(E=s.jsx("div",{"aria-hidden":d,className:y,children:v}),e[16]=d,e[17]=v,e[18]=y,e[19]=E):E=e[19];let _;return e[20]!==E||e[21]!==m?(_=s.jsxs("div",{className:"relative",children:[m,E]}),e[20]=E,e[21]=m,e[22]=_):_=e[22],_}function Ce(i){const e=R.c(3),{children:t}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ke,{size:14,className:"shrink-0 text-blue-500"}),e[0]=n):n=e[0];let o;return e[1]!==t?(o=s.jsxs("div",{className:"flex items-center gap-2 p-1",children:[n,s.jsx("p",{className:"text-sm text-foreground",children:t})]}),e[1]=t,e[2]=o):o=e[2],o}function nt(i){const e=R.c(33),{card:t,connecting:n,disabled:o,onConnect:a}=i;let r;e[0]!==t.icon||e[1]!==t.title?(r=s.jsx(Qe,{icon:t.icon,name:t.title,size:"md",fit:"contain",className:"p-2"}),e[0]=t.icon,e[1]=t.title,e[2]=r):r=e[2];let l;e[3]!==t.title?(l=s.jsx("p",{className:"flex-1 text-sm text-foreground",children:t.title}),e[3]=t.title,e[4]=l):l=e[4];let d;e[5]!==t.satisfied||e[6]!==t.title||e[7]!==n||e[8]!==o||e[9]!==a?(d=t.satisfied?s.jsxs("div",{className:"flex h-8 items-center gap-2 px-3 text-sm text-muted-foreground",children:[s.jsx(ke,{size:16})," Connected"]}):s.jsx(X,{type:"button",variant:"outline",size:"sm",disabled:o||n,onClick:a,"aria-label":`Connect ${t.title}`,children:n?s.jsx(be,{size:16,className:"animate-spin"}):"Connect"}),e[5]=t.satisfied,e[6]=t.title,e[7]=n,e[8]=o,e[9]=a,e[10]=d):d=e[10];let f;e[11]!==r||e[12]!==l||e[13]!==d?(f=s.jsxs("div",{className:"flex items-center gap-2",children:[r,l,d]}),e[11]=r,e[12]=l,e[13]=d,e[14]=f):f=e[14];let g;e[15]!==t.checks?(g=t.checks!==null&&s.jsxs(Ce,{children:["+ ",t.checks," checks"]}),e[15]=t.checks,e[16]=g):g=e[16];let u;e[17]!==t.headline?(u=t.headline&&s.jsx(Ce,{children:t.headline}),e[17]=t.headline,e[18]=u):u=e[18];let p;e[19]!==t.bullets?(p=t.bullets.map(st),e[19]=t.bullets,e[20]=p):p=e[20];let x;e[21]!==t.candidateConnectionId||e[22]!==t.satisfied||e[23]!==t.title?(x=!t.satisfied&&t.candidateConnectionId&&s.jsxs("p",{className:"px-1 text-xs text-muted-foreground",children:["Using your existing ",t.title]}),e[21]=t.candidateConnectionId,e[22]=t.satisfied,e[23]=t.title,e[24]=x):x=e[24];let m;e[25]!==g||e[26]!==u||e[27]!==p||e[28]!==x?(m=s.jsxs("div",{className:"flex flex-col gap-1 px-1 py-2",children:[g,u,p,x]}),e[25]=g,e[26]=u,e[27]=p,e[28]=x,e[29]=m):m=e[29];let b;return e[30]!==f||e[31]!==m?(b=s.jsxs("div",{className:"flex flex-col gap-2 rounded-2xl border border-border bg-card p-4",children:[f,m]}),e[30]=f,e[31]=m,e[32]=b):b=e[32],b}function st(i){return s.jsx(Ce,{children:i},i)}const ve={vtex:{registryAppId:"deco/vtex",checks:49,headline:"Out-of-stock, thin PDPs & attribute gaps across every SKU"},"google-analytics":{registryAppId:"deco/google-analytics",checks:49,headline:"Where revenue leaks between product view and checkout"},"google-search-console":{registryAppId:"deco/google-search-console",checks:49,headline:"Search visibility & indexing gaps across your catalog"}};function it(i){const e=i.properties;if(!e)return[];const t=[];for(const[n,o]of Object.entries(e)){const l=o?.properties?.__type?.const;typeof l=="string"&&l.length>0&&t.push({fieldKey:n,bindingType:l})}return t}function ot(i,e){const t=[];if(i.length&&t.push({field:["id"],operator:"in",value:i}),e.length&&t.push({field:["name"],operator:"in",value:e}),t.length!==0)return t.length===1?t[0]:{operator:"or",conditions:t}}function H(i){const e=i;if(e.isError)throw new Error(e.content?.find(t=>t.text)?.text??"Tool call failed");return e.structuredContent??i}function rt(i,e,t,n){return{...i??{},[e]:{__type:t,value:n}}}function lt(i,e,t){const n=i.filter(o=>o.app_name===e||!!t&&o.app_id===t);return n.length===0?null:(n.sort((o,a)=>{const r=l=>l.status==="active"?0:1;return r(o)!==r(a)?r(o)-r(a):(a.updated_at??"").localeCompare(o.updated_at??"")}),n[0].id)}function ct(i){return i.server?.icons?.[0]?.src??Ge(i.server?.repository)??null}function at(i,e){const t=i._meta?.["mcp.mesh"];return t?.friendlyName||t?.friendly_name||i.title||i.server?.title||i.server?.name||e}function dt(i){const e=[];for(const t of i.requirements){const n=i.curated[t.bindingType],o=n?i.itemsById[n.registryAppId]:i.itemsByName[t.bindingType];if(!o)continue;const r=!!i.configurationState?.[t.fieldKey]?.value;e.push({fieldKey:t.fieldKey,bindingType:t.bindingType,registryItem:o,title:at(o,t.bindingType),icon:ct(o),headline:n?.headline??o._meta?.["mcp.mesh"]?.short_description??null,checks:n?.checks??null,bullets:n?.bullets??[],satisfied:r,candidateConnectionId:r?null:lt(i.connections,t.bindingType,n?.registryAppId)})}return e}function mt(i){const e=R.c(25),{selfClient:t,org:n,cdConnectionId:o}=i;let a;e[0]!==o||e[1]!==n.id||e[2]!==n.slug?(a={connectionId:o,orgId:n.id,orgSlug:n.slug},e[0]=o,e[1]=n.id,e[2]=n.slug,e[3]=a):a=e[3];const r=je(a);let l;e[4]!==o||e[5]!==n.id?(l=K.commerceDiscoveryCompanionSchema(n.id,o),e[4]=o,e[5]=n.id,e[6]=l):l=e[6];let d;e[7]!==r?(d=async()=>{const N=await r.callTool({name:"MCP_CONFIGURATION",arguments:{}});return H(N)},e[7]=r,e[8]=d):d=e[8];let f;e[9]!==l||e[10]!==d?(f={queryKey:l,queryFn:d},e[9]=l,e[10]=d,e[11]=f):f=e[11];const g=Z(f),u=it(g.data?.stateSchema??{properties:{}}),p=u.map(ht),x=u.map(gt).filter(pt),m=u.filter(ft).map(ut),b=[...x,...m].sort().join(",");let y;e[12]!==o||e[13]!==n.id?(y=K.commerceDiscoveryConnection(n.id,o),e[12]=o,e[13]=n.id,e[14]=y):y=e[14];let S;e[15]!==o||e[16]!==t?(S=async()=>{const N=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:o}});return H(N)},e[15]=o,e[16]=t,e[17]=S):S=e[17];let c;e[18]!==y||e[19]!==S?(c={queryKey:y,queryFn:S},e[18]=y,e[19]=S,e[20]=c):c=e[20];const h=Z(c),j=Z({queryKey:K.commerceDiscoveryCompanionConnections(n.id),enabled:u.length>0,queryFn:async()=>{const N=await t.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{operator:"or",conditions:[{field:["app_name"],operator:"in",value:p},{field:["app_id"],operator:"in",value:x}]},limit:1e3}});return H(N)}}),v=Z({queryKey:K.commerceDiscoveryCompanionRegistry(n.id,b),enabled:u.length>0,queryFn:async()=>{const N=ot(x,m),F=await Ye(Re.REGISTRY(n.id),n.id,n.slug,"COLLECTION_REGISTRY_APP_LIST",{...N?{where:N}:{},limit:1e3});return H(F)}}),E={},_={};for(const N of v.data?.items??[])E[N.id]=N,N.server?.name&&(_[N.server.name]=N);const T=dt({requirements:u,itemsById:E,itemsByName:_,connections:j.data?.items??[],configurationState:h.data?.item?.configuration_state??null,curated:ve}),I=g.isPending||h.isPending||u.length>0&&(j.isPending||v.isPending),U=g.error??h.error??j.error??v.error??null;let L;return e[21]!==T||e[22]!==U||e[23]!==I?(L={cards:T,isLoading:I,error:U},e[21]=T,e[22]=U,e[23]=I,e[24]=L):L=e[24],L}function ut(i){return i.bindingType}function ft(i){return!ve[i.bindingType]}function pt(i){return!!i}function gt(i){return ve[i.bindingType]?.registryAppId}function ht(i){return i.bindingType}function xt({selfClient:i,org:e,userId:t,cdConnectionId:n}){const o=Ae(),[a,r]=k.useState(null),[l,d]=k.useState(null),f=async(u,p)=>{const x=await i.callTool({name:"COLLECTION_CONNECTIONS_UPDATE",arguments:{id:u,data:p}});return H(x)};async function g(u){r(u.fieldKey),d(null);try{let p=u.candidateConnectionId;if(!p){const c=Ve(u.registryItem,e.id,t,{remoteIndex:0}),h=c.connection_type==="STDIO",j=!!c.connection_url,v=h&&c.connection_headers&&typeof c.connection_headers=="object"&&"command"in c.connection_headers;if(!j&&!v){d(`${u.title} cannot be connected: no connection method available`);return}const E=await i.callTool({name:"COLLECTION_CONNECTIONS_CREATE",arguments:{data:c}});p=H(E).item.id}const x=p,m=await Ze({connectionId:x,orgId:e.id,orgSlug:e.slug,persistFallback:c=>f(x,{connection_token:c}).then(()=>{})});if(!m.ok){d(`Couldn't sign in to ${u.title}: ${m.error}`);return}const b=await i.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:n}}),y=H(b).item?.configuration_state??null,S=rt(y,u.fieldKey,u.bindingType,x);await f(n,{configuration_state:S}),await o.invalidateQueries({queryKey:K.commerceDiscoveryConnection(e.id,n)}),await o.invalidateQueries({queryKey:K.commerceDiscoveryCompanionConnections(e.id)})}catch(p){d(p instanceof Error?p.message:String(p))}finally{r(null)}}return{connect:g,connectingFieldKey:a,error:l}}function yt(i){const e=R.c(30),{org:t,cdConnectionId:n,reportDisabled:o,onOpenReport:a}=i,{data:r}=Ie.useSession(),l=r?.user?.id??"";let d;e[0]!==t.id||e[1]!==t.slug?(d={connectionId:we,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=d):d=e[2];const f=je(d);let g;e[3]!==n||e[4]!==t||e[5]!==f?(g={selfClient:f,org:t,cdConnectionId:n},e[3]=n,e[4]=t,e[5]=f,e[6]=g):g=e[6];const{cards:u,isLoading:p,error:x}=mt(g);let m;e[7]!==n||e[8]!==t||e[9]!==f||e[10]!==l?(m={selfClient:f,org:t,userId:l,cdConnectionId:n},e[7]=n,e[8]=t,e[9]=f,e[10]=l,e[11]=m):m=e[11];const{connect:b,connectingFieldKey:y,error:S}=xt(m);let c;e[12]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ze,{size:16}),e[12]=c):c=e[12];let h;e[13]!==a||e[14]!==o?(h=s.jsxs(X,{type:"button",size:"xl",className:"w-full",onClick:a,disabled:o,children:["See full report",c]}),e[13]=a,e[14]=o,e[15]=h):h=e[15];const j=h;if(!p&&!x&&u.length===0){let I;return e[16]!==j?(I=s.jsx("div",{className:"grid gap-10",children:j}),e[16]=j,e[17]=I):I=e[17],I}const v=y!==null;let E;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsxs("div",{className:"grid gap-1.5",children:[s.jsx("p",{className:"text-2xl font-medium text-foreground",children:"Unlock your full diagnostic"}),s.jsx("p",{className:"text-base text-muted-foreground",children:"Connect your tools to unlock 100+ checks across your funnel."})]}),e[18]=E):E=e[18];let _;e[19]!==v||e[20]!==u||e[21]!==b||e[22]!==S||e[23]!==y||e[24]!==x||e[25]!==p?(_=x?s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[s.jsx("p",{className:"text-sm text-foreground",children:"Couldn't load companion integrations."}),s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Reload the page to try again."})]}):p?s.jsx("div",{className:"grid gap-4",children:[0,1,2].map(Ct)}):s.jsxs("div",{className:"grid gap-4",children:[S&&s.jsx("p",{role:"alert",className:"text-sm text-destructive",children:S}),u.map(I=>s.jsx(nt,{card:I,connecting:y===I.fieldKey,disabled:v&&y!==I.fieldKey,onConnect:()=>{b(I)}},I.fieldKey))]}),e[19]=v,e[20]=u,e[21]=b,e[22]=S,e[23]=y,e[24]=x,e[25]=p,e[26]=_):_=e[26];let T;return e[27]!==j||e[28]!==_?(T=s.jsxs("div",{className:"grid gap-6",children:[E,_,j]}),e[27]=j,e[28]=_,e[29]=T):T=e[29],T}function Ct(i){return s.jsx("div",{className:"h-24 animate-pulse rounded-2xl border border-border bg-muted/40"},i)}function Le(i){const e=R.c(10),{host:t}=i,n=`https://www.google.com/s2/favicons?domain=${t}&sz=128`;let o,a,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 dark:hidden"}),a=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-7 w-7 hidden dark:block"}),r=s.jsx("div",{className:"h-6 w-px rotate-12 bg-border","aria-hidden":"true"}),e[0]=o,e[1]=a,e[2]=r):(o=e[0],a=e[1],r=e[2]);let l;e[3]!==n?(l=s.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border bg-white",children:s.jsx("img",{src:n,alt:"",className:"h-5 w-5",loading:"lazy"})}),e[3]=n,e[4]=l):l=e[4];let d;e[5]!==t?(d=s.jsx("span",{className:"text-lg font-medium text-foreground",children:t}),e[5]=t,e[6]=d):d=e[6];let f;return e[7]!==l||e[8]!==d?(f=s.jsxs("div",{className:"flex items-center gap-3",children:[o,a,r,l,d]}),e[7]=l,e[8]=d,e[9]=f):f=e[9],f}function kn(){const i=R.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(jt,{}),i[0]=e):e=i[0],e}const Pe=k.createContext(null),Ue=()=>k.useContext(Pe);function bt(i){if(!i)return null;const e=ye(i);return e.ok?new URL(e.value).hostname:null}function jt(){const i=R.c(9);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/commerce-onboarding"},i[0]=e):e=i[0];const t=$e(e),{org:n,siteUrl:o}=t;let a;i[1]!==o?(a=bt(o),i[1]=o,i[2]=a):a=i[2];const r=a;let l;i[3]!==n||i[4]!==o?(l=s.jsx(vt,{requestedOrgSlug:n,siteUrl:o}),i[3]=n,i[4]=o,i[5]=l):l=i[5];let d;return i[6]!==r||i[7]!==l?(d=s.jsx(Pe.Provider,{value:r,children:l}),i[6]=r,i[7]=l,i[8]=d):d=i[8],d}function vt(i){const e=R.c(8),{requestedOrgSlug:t,siteUrl:n}=i,{data:o,isPending:a}=Ie.useSession(),r=Ue();if(a){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(q,{children:s.jsx(J,{label:"Preparing commerce onboarding..."})}),e[0]=d):d=e[0],d}if(!o){const d=typeof window>"u"?"/commerce-onboarding":`${window.location.pathname}${window.location.search}`;let f;e[1]!==r?(f=r?s.jsx(Le,{host:r}):void 0,e[1]=r,e[2]=f):f=e[2];let g;return e[3]!==f?(g=s.jsx(q,{children:s.jsx(Ke,{callbackUrl:d,allowAutoLogin:!1,title:"Unlock your full diagnostic",subtitle:null,brand:f})}),e[3]=f,e[4]=g):g=e[4],g}let l;return e[5]!==t||e[6]!==n?(l=s.jsx(St,{requestedOrgSlug:t,siteUrl:n}),e[5]=t,e[6]=n,e[7]=l):l=e[7],l}function St(i){const e=R.c(40),{requestedOrgSlug:t,siteUrl:n}=i,o=Te(),a=De(),[r,l]=k.useState(null),[d,f]=k.useState(null),g=a.data?.map(Nt)??[];let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={mutationFn:_t,retry:!1,onSuccess:c=>{f(c)}},e[0]=u):u=e[0];const p=Ee(u);if(a.isPending){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(q,{children:s.jsx(J,{label:"Preparing commerce onboarding..."})}),e[1]=c):c=e[1],c}if(a.error){let c;return e[2]!==a?(c=s.jsx(ae,{title:"We could not load your organizations",description:"Retry to continue commerce setup from this page.",actionLabel:"Retry",onRetry:()=>a.refetch()}),e[2]=a,e[3]=c):c=e[3],c}const x=t?g.find(c=>c.slug===t):null;if(x){let c;return e[4]!==x||e[5]!==n?(c=s.jsx(ce,{org:x,initialSiteUrl:n}),e[4]=x,e[5]=n,e[6]=c):c=e[6],c}if(t){let c;return e[7]!==a?(c=s.jsx(ae,{title:"Organization not found",description:"We could not find that organization for your account.",actionLabel:"Retry",onRetry:()=>a.refetch()}),e[7]=a,e[8]=c):c=e[8],c}if(r){let c;return e[9]!==r||e[10]!==n?(c=s.jsx(ce,{org:r,initialSiteUrl:n}),e[9]=r,e[10]=n,e[11]=c):c=e[11],c}if(g.length===1&&g[0]){let c;return e[12]!==g[0]||e[13]!==n?(c=s.jsx(ce,{org:g[0],initialSiteUrl:n}),e[12]=g[0],e[13]=n,e[14]=c):c=e[14],c}if(g.length>1){let c;e[15]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(M,{title:"Choose an organization",description:"Select where commerce diagnostics should continue."}),e[15]=c):c=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=v=>l(v),e[16]=h):h=e[16];let j;return e[17]!==g?(j=s.jsx(q,{children:s.jsxs("div",{className:"grid gap-10",children:[c,s.jsx(Ne,{className:"-mx-1 max-h-[60vh] overflow-y-auto px-1",children:s.jsx(_e,{organizations:g,selectLabel:"Continue",onSelected:h})})]})}),e[17]=g,e[18]=j):j=e[18],j}if(!d){let c;e[19]!==p?(c=()=>{p.reset(),p.mutate()},e[19]=p,e[20]=c):c=e[20];let h;return e[21]!==p||e[22]!==c?(h=s.jsx(It,{mutation:p,onRetry:c}),e[21]=p,e[22]=c,e[23]=h):h=e[23],h}const m=d;if(m?.success&&(m.status==="created"||m.status==="joined"||m.status==="already_has_organization")&&m.organization){let c;return e[24]!==m.organization||e[25]!==n?(c=s.jsx(ce,{org:m.organization,initialSiteUrl:n}),e[24]=m.organization,e[25]=n,e[26]=c):c=e[26],c}if(m?.status==="ambiguous"&&m.organizations&&m.organizations.length>0){let c;e[27]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(M,{title:"Choose an organization",description:"Your email can access more than one organization. Choose where commerce setup should continue."}),e[27]=c):c=e[27];const h=m.domain??void 0;let j;e[28]!==o||e[29]!==n?(j=(E,_)=>{Oe(),l({...E,slug:_}),o({to:"/commerce-onboarding",search:{org:_,siteUrl:n}})},e[28]=o,e[29]=n,e[30]=j):j=e[30];let v;return e[31]!==m.organizations||e[32]!==h||e[33]!==j?(v=s.jsx(q,{children:s.jsxs("div",{className:"grid gap-10",children:[c,s.jsx(Ne,{className:"-mx-1 max-h-[60vh] overflow-y-auto px-1",children:s.jsx(_e,{organizations:m.organizations,domain:h,onJoined:j})})]})}),e[31]=m.organizations,e[32]=h,e[33]=j,e[34]=v):v=e[34],v}const b=m?.error??"We could not determine a commerce organization for this account.";let y;e[35]!==p?(y=()=>{f(null),p.reset()},e[35]=p,e[36]=y):y=e[36];let S;return e[37]!==b||e[38]!==y?(S=s.jsx(ae,{title:"Commerce onboarding needs support",description:b,actionLabel:"Try again",onRetry:y}),e[37]=b,e[38]=y,e[39]=S):S=e[39],S}async function _t(){const e=await(await fetch("/api/auth/custom/ensure-organization",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e.success&&(e.status==="created"||e.status==="joined"||e.status==="already_has_organization")&&e.organization&&Oe(),e}function Nt(i){return{id:i.id,name:i.name,slug:i.slug,logo:i.logo??null}}function It(i){const e=R.c(7),{mutation:t,onRetry:n}=i,o=k.useRef(!1);let a;e[0]!==t?(a=f=>{!f||o.current||(o.current=!0,t.mutate())},e[0]=t,e[1]=a):a=e[1];const r=a;if(t.error){let f;return e[2]!==n?(f=s.jsx(ae,{title:"Commerce onboarding is unavailable",description:"We could not prepare an organization for commerce setup. Retry from this page or contact support.",actionLabel:"Retry",onRetry:n}),e[2]=n,e[3]=f):f=e[3],f}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(J,{label:"Preparing your commerce workspace..."}),e[4]=l):l=e[4];let d;return e[5]!==r?(d=s.jsx(q,{children:s.jsx("div",{ref:r,children:l})}),e[5]=r,e[6]=d):d=e[6],d}function M(i){const e=R.c(8),{title:t,description:n}=i,o=Ue();let a;e[0]!==o?(a=o?s.jsx(Le,{host:o}):s.jsxs("div",{children:[s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),e[0]=o,e[1]=a):a=e[1];let r;e[2]!==n||e[3]!==t?(r=(t||n)&&s.jsxs("div",{className:"space-y-2",children:[t&&s.jsx("h1",{className:"text-2xl font-medium leading-8",children:t}),n&&s.jsx("p",{className:"text-base text-muted-foreground leading-6",children:n})]}),e[2]=n,e[3]=t,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=s.jsxs("div",{className:"grid gap-10",children:[a,r]}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function J(i){const e=R.c(3),{label:t}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(be,{size:14,className:"animate-spin text-muted-foreground"}),e[0]=n):n=e[0];let o;return e[1]!==t?(o=s.jsxs("div",{className:"flex items-center gap-2 py-4",role:"status","aria-live":"polite",children:[n,s.jsx("span",{className:"text-sm text-muted-foreground",children:t})]}),e[1]=t,e[2]=o):o=e[2],o}function ae(i){const e=R.c(9),{title:t,description:n,actionLabel:o,onRetry:a}=i;let r;e[0]!==n||e[1]!==t?(r=s.jsx(M,{title:t,description:n}),e[0]=n,e[1]=t,e[2]=r):r=e[2];let l;e[3]!==o||e[4]!==a?(l=s.jsx(X,{type:"button",size:"xl",className:"w-full",onClick:a,children:o}),e[3]=o,e[4]=a,e[5]=l):l=e[5];let d;return e[6]!==r||e[7]!==l?(d=s.jsx(q,{children:s.jsxs("div",{className:"grid gap-10",children:[r,l]})}),e[6]=r,e[7]=l,e[8]=d):d=e[8],d}function Tt(i){return i.content?.find(e=>e.text)?.text??"Commerce Discovery setup failed."}function he(i){const e=i;if(e.isError)throw new Error(Tt(e));return e.structuredContent??i}function ce(i){const e=R.c(5),{org:t,initialSiteUrl:n}=i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(J,{label:"Connecting workspace..."}),e[0]=o):o=e[0];const a=`${t.id}:${n??""}`;let r;return e[1]!==n||e[2]!==t||e[3]!==a?(r=s.jsx(q,{children:s.jsx(k.Suspense,{fallback:o,children:s.jsx(Et,{org:t,initialSiteUrl:n},a)})}),e[1]=n,e[2]=t,e[3]=a,e[4]=r):r=e[4],r}function Et(i){const e=R.c(100),{org:t,initialSiteUrl:n}=i,o=Te();let a;e[0]!==t.id||e[1]!==t.slug?(a={connectionId:we,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=a):a=e[2];const r=je(a),[l,d]=k.useState(n??""),[f,g]=k.useState(null),[u,p]=k.useState(null),x=k.useRef(!1),m=Re.COMMERCE_DISCOVERY(t.id),b=Be(t.id),y=K.commerceDiscoveryConnection(t.id,m);let S;e[3]!==m||e[4]!==r?(S=async()=>{const C=await r.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:m}});return he(C)},e[3]=m,e[4]=r,e[5]=S):S=e[5];let c;e[6]!==y||e[7]!==S?(c={queryKey:y,queryFn:S,retry:!1},e[6]=y,e[7]=S,e[8]=c):c=e[8];const h=Z(c),j=K.commerceDiscoveryVirtualMcp(t.id,b);let v;e[9]!==r||e[10]!==b?(v=async()=>{const C=await r.callTool({name:"COLLECTION_VIRTUAL_MCP_GET",arguments:{id:b}});return he(C)},e[9]=r,e[10]=b,e[11]=v):v=e[11];let E;e[12]!==j||e[13]!==v?(E={queryKey:j,queryFn:v,retry:!1},e[12]=j,e[13]=v,e[14]=E):E=e[14];const _=Z(E);let T;e[15]!==r?(T=async C=>{const O=await r.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:C}});return he(O)},e[15]=r,e[16]=T):T=e[16];let I;e[17]!==h||e[18]!==_?(I=C=>{g(C),p(null),h.refetch(),_.refetch()},e[17]=h,e[18]=_,e[19]=I):I=e[19];let U;e[20]===Symbol.for("react.memo_cache_sentinel")?(U=C=>{p(C instanceof Error?C.message:"Commerce Discovery setup failed.")},e[20]=U):U=e[20];let L;e[21]!==T||e[22]!==I?(L={mutationFn:T,retry:!1,onSuccess:I,onError:U},e[21]=T,e[22]=I,e[23]=L):L=e[23];const N=Ee(L),F=h.isPending||_.isPending,me=h.error??_.error,ee=!!h.data?.item&&!!_.data?.item;let te;e[24]!==N?(te=C=>{const O=ye(C);if(!O.ok){p(O.error);return}p(null),N.mutate(O.value)},e[24]=N,e[25]=te):te=e[25];const B=te;let ne;e[26]!==n||e[27]!==B||e[28]!==F||e[29]!==ee?(ne=C=>{!C||x.current||F||ee||!n||(x.current=!0,B(n))},e[26]=n,e[27]=B,e[28]=F,e[29]=ee,e[30]=ne):ne=e[30];const ue=ne;let se;e[31]!==B||e[32]!==l?(se=C=>{C.preventDefault(),B(l)},e[31]=B,e[32]=l,e[33]=se):se=e[33];const $=se;let ie;e[34]!==m||e[35]!==f?.reportApp||e[36]!==b?(ie=f?.reportApp??{connectionId:m,virtualMcpId:b,toolName:We},e[34]=m,e[35]=f?.reportApp,e[36]=b,e[37]=ie):ie=e[37];const A=ie;let oe;e[38]!==o||e[39]!==t.slug||e[40]!==A.connectionId||e[41]!==A.toolName||e[42]!==A.virtualMcpId?(oe=()=>{localStorage.setItem(Me.sidebarOpen(),JSON.stringify(!1)),o({to:"/$org/$taskId",params:{org:t.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:A.virtualMcpId,main:He(A.connectionId,A.toolName),chat:0}})},e[38]=o,e[39]=t.slug,e[40]=A.connectionId,e[41]=A.toolName,e[42]=A.virtualMcpId,e[43]=oe):oe=e[43];const fe=oe;if(F){const C=`Commerce setup will continue for ${t.name}.`;let O;e[44]!==C?(O=s.jsx(M,{title:"Commerce diagnostics",description:C}),e[44]=C,e[45]=O):O=e[45];let z;e[46]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(J,{label:"Checking Commerce Discovery setup..."}),e[46]=z):z=e[46];let w;return e[47]!==O?(w=s.jsxs("div",{className:"grid gap-10",children:[O,z]}),e[47]=O,e[48]=w):w=e[48],w}if(me){const C=me instanceof Error?me.message:"We could not check Commerce Discovery setup.",O=`Commerce setup will continue for ${t.name}.`;let z;e[49]!==O?(z=s.jsx(M,{title:"Commerce diagnostics",description:O}),e[49]=O,e[50]=z):z=e[50];let w;e[51]!==C?(w=s.jsx(de,{message:C}),e[51]=C,e[52]=w):w=e[52];let P;e[53]!==h||e[54]!==_?(P=s.jsx(X,{type:"button",size:"xl",className:"w-full",onClick:()=>{h.refetch(),_.refetch()},children:"Retry"}),e[53]=h,e[54]=_,e[55]=P):P=e[55];let D;return e[56]!==z||e[57]!==w||e[58]!==P?(D=s.jsxs("div",{className:"grid gap-10",children:[z,w,P]}),e[56]=z,e[57]=w,e[58]=P,e[59]=D):D=e[59],D}if(ee){let C;return e[60]!==fe||e[61]!==t||e[62]!==A?(C=s.jsx(Ot,{org:t,reportApp:A,onOpenReport:fe}),e[60]=fe,e[61]=t,e[62]=A,e[63]=C):C=e[63],C}if(n){let C;e[64]!==n?(C=ye(n),e[64]=n,e[65]=C):C=e[65];const O=C;if(!O.ok){const ge=`Commerce setup will continue for ${t.name}.`;let G;e[66]!==ge?(G=s.jsx(M,{title:"Commerce diagnostics",description:ge}),e[66]=ge,e[67]=G):G=e[67];let Y;e[68]!==O.error?(Y=s.jsx(de,{message:O.error}),e[68]=O.error,e[69]=Y):Y=e[69];let V;e[70]!==$||e[71]!==u||e[72]!==N.isPending||e[73]!==l?(V=s.jsx(xe,{siteUrl:l,error:u,isSubmitting:N.isPending,onSiteUrlChange:d,onSubmit:$}),e[70]=$,e[71]=u,e[72]=N.isPending,e[73]=l,e[74]=V):V=e[74];let le;return e[75]!==G||e[76]!==Y||e[77]!==V?(le=s.jsxs("div",{className:"grid gap-10",children:[G,Y,V]}),e[75]=G,e[76]=Y,e[77]=V,e[78]=le):le=e[78],le}const z=`Commerce Discovery is being prepared for ${O.value}.`;let w;e[79]!==z?(w=s.jsx(M,{title:"Commerce diagnostics",description:z}),e[79]=z,e[80]=w):w=e[80];let P;e[81]!==$||e[82]!==u||e[83]!==N||e[84]!==l?(P=u?s.jsxs(s.Fragment,{children:[s.jsx(de,{message:u}),s.jsx(xe,{siteUrl:l,error:null,isSubmitting:N.isPending,onSiteUrlChange:d,onSubmit:$})]}):s.jsx(J,{label:"Setting up Commerce Discovery..."}),e[81]=$,e[82]=u,e[83]=N,e[84]=l,e[85]=P):P=e[85];let D;return e[86]!==w||e[87]!==P||e[88]!==ue?(D=s.jsxs("div",{ref:ue,className:"grid gap-10",children:[w,P]}),e[86]=w,e[87]=P,e[88]=ue,e[89]=D):D=e[89],D}const pe=`Commerce setup will continue for ${t.name}.`;let W;e[90]!==pe?(W=s.jsx(M,{title:"Commerce diagnostics",description:pe}),e[90]=pe,e[91]=W):W=e[91];let Q;e[92]!==$||e[93]!==u||e[94]!==N.isPending||e[95]!==l?(Q=s.jsx(xe,{siteUrl:l,error:u,isSubmitting:N.isPending,onSiteUrlChange:d,onSubmit:$}),e[92]=$,e[93]=u,e[94]=N.isPending,e[95]=l,e[96]=Q):Q=e[96];let re;return e[97]!==W||e[98]!==Q?(re=s.jsxs("div",{className:"grid gap-10",children:[W,Q]}),e[97]=W,e[98]=Q,e[99]=re):re=e[99],re}function xe(i){const e=R.c(22),{siteUrl:t,error:n,isSubmitting:o,onSiteUrlChange:a,onSubmit:r}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("label",{className:"text-sm font-medium",htmlFor:"commerce-site-url",children:"Website URL"}),e[0]=l):l=e[0];let d;e[1]!==a?(d=y=>a(y.target.value),e[1]=a,e[2]=d):d=e[2];const f=!!n;let g;e[3]!==o||e[4]!==t||e[5]!==d||e[6]!==f?(g=s.jsx(Fe,{id:"commerce-site-url",type:"text",inputMode:"url",value:t,onChange:d,placeholder:"https://example.com","aria-invalid":f,disabled:o}),e[3]=o,e[4]=t,e[5]=d,e[6]=f,e[7]=g):g=e[7];let u;e[8]!==n?(u=n?s.jsx(de,{message:n}):null,e[8]=n,e[9]=u):u=e[9];let p;e[10]!==g||e[11]!==u?(p=s.jsxs("div",{className:"grid gap-2",children:[l,g,u]}),e[10]=g,e[11]=u,e[12]=p):p=e[12];let x;e[13]!==o?(x=o?s.jsxs(s.Fragment,{children:[s.jsx(be,{size:14,className:"animate-spin"}),"Setting up"]}):s.jsxs(s.Fragment,{children:["Continue",s.jsx(ze,{size:16})]}),e[13]=o,e[14]=x):x=e[14];let m;e[15]!==o||e[16]!==x?(m=s.jsx(X,{type:"submit",size:"xl",className:"w-full",disabled:o,children:x}),e[15]=o,e[16]=x,e[17]=m):m=e[17];let b;return e[18]!==r||e[19]!==p||e[20]!==m?(b=s.jsxs("form",{className:"grid gap-4",onSubmit:r,children:[p,m]}),e[18]=r,e[19]=p,e[20]=m,e[21]=b):b=e[21],b}function Ot(i){const e=R.c(6),{org:t,reportApp:n,onOpenReport:o}=i;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0];const r=!n.virtualMcpId;let l;return e[1]!==o||e[2]!==t||e[3]!==n.connectionId||e[4]!==r?(l=s.jsxs("div",{className:"grid gap-10",children:[a,s.jsx(yt,{org:t,cdConnectionId:n.connectionId,reportDisabled:r,onOpenReport:o})]}),e[1]=o,e[2]=t,e[3]=n.connectionId,e[4]=r,e[5]=l):l=e[5],l}function de(i){const e=R.c(2),{message:t}=i;let n;return e[0]!==t?(n=s.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:t}),e[0]=t,e[1]=n):n=e[1],n}export{kn as default};