decocms 4.211.3 → 4.211.4

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 (226) hide show
  1. package/dist/client/assets/{AlertCircle-YQxHSax5.js → AlertCircle-jR2ufOSs.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BuV6iscd.js → AreaChart-DJrWdLcJ.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-uKgU3ony.js → ArrowLeft-HHxaO-x-.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Bn390wTX.js → ArrowUp-9JT6117p.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-AmKbypZk.js → ArrowUpRight-Dv0YbmU1.js} +1 -1
  6. package/dist/client/assets/{Check-BIikNJHT.js → Check-BB-mG67V.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DQ9aTnwR.js → CheckCircle-nTHzEL3y.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-BCBD1lCM.js → ChevronDown-DZYeiuUi.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DyBO26qu.js → ChevronRight-CGVVsZ0j.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-4GrPVBXB.js → ChevronUp-9AnnISBn.js} +1 -1
  11. package/dist/client/assets/{Copy01-9ZEX7QwO.js → Copy01-D8MRQTNw.js} +1 -1
  12. package/dist/client/assets/{CpuChip01-XQAYs1Sv.js → CpuChip01-Cswz7eTH.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BuSrSVNX.js → CreditCard01-Am0UvN5a.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-80JuUbZo.js → DotsVertical-CDbJ7ei2.js} +1 -1
  15. package/dist/client/assets/{Eye-DxEzo7bk.js → Eye-DShXhx2L.js} +1 -1
  16. package/dist/client/assets/{FilterLines-Dr49DZdh.js → FilterLines-C4w7K1Al.js} +1 -1
  17. package/dist/client/assets/{Globe01-OCURl-jK.js → Globe01-cid7iBul.js} +1 -1
  18. package/dist/client/assets/{Globe04-DOEnsGSz.js → Globe04-BcR4dcBH.js} +1 -1
  19. package/dist/client/assets/{HardDrive-BwlXHIZ4.js → HardDrive-Iw8mdvUU.js} +1 -1
  20. package/dist/client/assets/{Key01-Dw63qjDV.js → Key01-Cll0bFkK.js} +1 -1
  21. package/dist/client/assets/{LayoutLeft-OMsE9TYG.js → LayoutLeft-CNwYUAbD.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DwkgpRm7.js → LinkExternal01-B0bVYuG-.js} +1 -1
  23. package/dist/client/assets/{LogOut01-CketKUOL.js → LogOut01-DdU_cj_w.js} +1 -1
  24. package/dist/client/assets/{Monitor01-D9SFiTbv.js → Monitor01-DwN_Z0Eh.js} +1 -1
  25. package/dist/client/assets/{Palette-DGu2Qwr3.js → Palette-CwiGkPyI.js} +1 -1
  26. package/dist/client/assets/{Play-sV8AcOZ6.js → Play-B3QzGUaw.js} +1 -1
  27. package/dist/client/assets/{Plus-DhOAxg-b.js → Plus-_26XTOQM.js} +1 -1
  28. package/dist/client/assets/{SearchLg-CMb8jZ3L.js → SearchLg-CVaDwdCX.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DDQExsKm.js → SearchMd-OJq8D7nX.js} +1 -1
  30. package/dist/client/assets/{Settings02-CC4ctYGk.js → Settings02-CoU-mbF1.js} +1 -1
  31. package/dist/client/assets/{Share07-Ctd9UEaD.js → Share07-i8lX5ZxP.js} +1 -1
  32. package/dist/client/assets/{Shield01-DEEoj92h.js → Shield01-c50ICrF7.js} +1 -1
  33. package/dist/client/assets/{Star01-DN9dLBmA.js → Star01-DsgzqTEC.js} +1 -1
  34. package/dist/client/assets/{Stars01-MSkdB_Sy.js → Stars01-qPBxExkL.js} +1 -1
  35. package/dist/client/assets/{Stars02-BLufGoBB.js → Stars02-CfHe89Cp.js} +1 -1
  36. package/dist/client/assets/{Sun-D4TkrfgI.js → Sun-f7drGT-7.js} +1 -1
  37. package/dist/client/assets/{SwitchHorizontal01-DK46CY_p.js → SwitchHorizontal01-Cqqk92ta.js} +1 -1
  38. package/dist/client/assets/{Tool01-wGGu0d_-.js → Tool01-cj1zSbUi.js} +1 -1
  39. package/dist/client/assets/{Tool02-CsZgjFzA.js → Tool02-B5qXJ3BA.js} +1 -1
  40. package/dist/client/assets/{Trash01-BTTdRvpb.js → Trash01-CmgQ3HpB.js} +1 -1
  41. package/dist/client/assets/{TrendUp01-Dfhb_je_.js → TrendUp01-BQspgFiP.js} +1 -1
  42. package/dist/client/assets/{Upload01-BsVyz4V9.js → Upload01-kn24SwqR.js} +1 -1
  43. package/dist/client/assets/{User01-DWNrJ7ro.js → User01-BauG7ACx.js} +1 -1
  44. package/dist/client/assets/{Users01-zuq4IJd2.js → Users01-CsLBclx4.js} +1 -1
  45. package/dist/client/assets/{Users03-34vwAFDC.js → Users03-C3pLPfgp.js} +1 -1
  46. package/dist/client/assets/{X-rREmtfNp.js → X-D6s7PvYJ.js} +1 -1
  47. package/dist/client/assets/{XCircle-Dzbm-V8w.js → XCircle-Du7-P3op.js} +1 -1
  48. package/dist/client/assets/{XClose-B7MSGuxK.js → XClose-BhqEpvrx.js} +1 -1
  49. package/dist/client/assets/{Zap-DZd0kyQ6.js → Zap-Lr_Z1C61.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-D6IAtemR.js → ZapSquare-BnO7gnl6.js} +1 -1
  51. package/dist/client/assets/{access-gate-BoYBSFfy.js → access-gate-BXe0MuMb.js} +1 -1
  52. package/dist/client/assets/{agent-icon-CPYTD7A0.js → agent-icon-BtTQ72td.js} +1 -1
  53. package/dist/client/assets/{agents-list-C-UK3C_n.js → agents-list-BFObEUv-.js} +1 -1
  54. package/dist/client/assets/{ai-providers-5HhBfwYF.js → ai-providers-CI0XocMG.js} +1 -1
  55. package/dist/client/assets/{alert-CvIVK9H7.js → alert-Tym9JeXm.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-6RY9OFMU.js → alert-dialog-C3AEHvvK.js} +1 -1
  57. package/dist/client/assets/{app-editor-Ru4AFaFP.js → app-editor-D-IFgIWs.js} +1 -1
  58. package/dist/client/assets/{auth-rpigiacl.js → auth-DZave-PK.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-x-j1U11n.js → auth-catchall-DKVJon4K.js} +1 -1
  60. package/dist/client/assets/{auth-entry-C6M6quTN.js → auth-entry-OMve9F8N.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-LI3FjImQ.js → auth-split-layout-CLhK-y4R.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-Cid_1ZHG.js → authenticate-and-persist-oauth-qDk_uHeB.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-D8O0BmM3.js → automation-list-row-jhGGuz-U.js} +1 -1
  64. package/dist/client/assets/{automation-runs-BX8E-GIK.js → automation-runs-xtghPNFH.js} +1 -1
  65. package/dist/client/assets/{automations-CMAKHvj_.js → automations-CC-CmsvY.js} +1 -1
  66. package/dist/client/assets/{avatar-BqVLmhpZ.js → avatar-BGrxtnrW.js} +1 -1
  67. package/dist/client/assets/{badge-Cas2bCNi.js → badge-DgbJ8Ppc.js} +1 -1
  68. package/dist/client/assets/{billing-BR5fQpvE.js → billing-B3zZmztN.js} +1 -1
  69. package/dist/client/assets/{block-document-BBpUSr08.js → block-document-fZ6Skug5.js} +1 -1
  70. package/dist/client/assets/{brand-context-CL0iPR0l.js → brand-context-lczdIXC5.js} +1 -1
  71. package/dist/client/assets/{buckets-A7igOQL-.js → buckets-BX2BrDDZ.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-hsHNtM5H.js → bulk-category-panel-761MRhxw.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-CEw4LpSO.js → capability-load-error-C279gN56.js} +1 -1
  74. package/dist/client/assets/{card-Ddv3KZ3L.js → card-BrlGx_Tc.js} +1 -1
  75. package/dist/client/assets/{cards-B3PZadzk.js → cards-CQi5drnI.js} +1 -1
  76. package/dist/client/assets/{category-editor-DtQ6eytX.js → category-editor-DJiD6Sbt.js} +1 -1
  77. package/dist/client/assets/{chat-context-CwfUfZeY.js → chat-context-BZeZ_zz_.js} +1 -1
  78. package/dist/client/assets/{checkbox-BoqoK7BS.js → checkbox-V83xqzje.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-4Xf9whoj.js → cli-auth-success-UF9aKNNK.js} +1 -1
  80. package/dist/client/assets/{collection-detail-BePpYFjL.js → collection-detail-BCa0HBfk.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-DqMj1Vuo.js → collection-display-button-DRDp-7ay.js} +1 -1
  82. package/dist/client/assets/{collection-search-0nMkOKMI.js → collection-search-DEaBBZ3n.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-IyUI5ibX.js → collection-table-wrapper-B-uAYKUU.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-BRL85QJe.js → collection-tabs-DkbyZ6u8.js} +1 -1
  85. package/dist/client/assets/{command-xyPdUuL5.js → command-YHm6mTr0.js} +1 -1
  86. package/dist/client/assets/commerce-onboarding-DNuC8dOV.js +1 -0
  87. package/dist/client/assets/{connect-cl29lV5_.js → connect-DJLGZIa9.js} +1 -1
  88. package/dist/client/assets/{connection-Da4RLjOf.js → connection-C_7m8af-.js} +1 -1
  89. package/dist/client/assets/{connection-card-5msPI8uA.js → connection-card-ByqR67_k.js} +1 -1
  90. package/dist/client/assets/{connection-detail-HerBqABE.js → connection-detail-B30XzwbK.js} +1 -1
  91. package/dist/client/assets/{connection-form-helpers-BfsHwXZh.js → connection-form-helpers-DKkP84qR.js} +1 -1
  92. package/dist/client/assets/{connections-2-bdMVbO.js → connections-Bu9ekbGA.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-B4Cu15ug.js → decopilot-sse-pool-C6gax0Fq.js} +1 -1
  94. package/dist/client/assets/{dialog-Dc18mYsw.js → dialog-DIQ8KaHl.js} +1 -1
  95. package/dist/client/assets/{domain-settings-D3KVoitF.js → domain-settings-Dyd6O2h7.js} +1 -1
  96. package/dist/client/assets/{drawer-CRxBrDDk.js → drawer-BAnAnsyv.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-Bfms7wBO.js → dropdown-menu-CfG6aQhQ.js} +1 -1
  98. package/dist/client/assets/{empty-state-CBvIWy4V.js → empty-state-Bk_NZOD8.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-BDI-HmBh.js → extract-connection-data-B2JJb-cZ.js} +1 -1
  100. package/dist/client/assets/{file-explorer-CO6NGSuH.js → file-explorer-DtWCXLIF.js} +1 -1
  101. package/dist/client/assets/{file-type-icon-YbpoHmSR.js → file-type-icon-a2hLw0wY.js} +1 -1
  102. package/dist/client/assets/{form-D-h36ALZ.js → form-DmrElV9f.js} +1 -1
  103. package/dist/client/assets/{general-D-8oOwso.js → general-CP7Oc8ew.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-Bo20cbN6.js → github-repo-picker-tpcUxw2K.js} +1 -1
  105. package/dist/client/assets/{hooks-CKBRVhOU.js → hooks-BIh9DcNQ.js} +1 -1
  106. package/dist/client/assets/{index-DIEgLR7Z.js → index-8rUDTktR.js} +1 -1
  107. package/dist/client/assets/{index-Co9vf3ZZ.js → index-BY_KvrTi.js} +1 -1
  108. package/dist/client/assets/{index-CDJPE-J-.js → index-BsZYblHu.js} +1 -1
  109. package/dist/client/assets/{index-DsDLKbNP.js → index-C_tJBurD.js} +1 -1
  110. package/dist/client/assets/{index-DmYaFsSJ.js → index-CeXI69_A.js} +5 -5
  111. package/dist/client/assets/{index-i1z27QeC.js → index-D3wovVLE.js} +1 -1
  112. package/dist/client/assets/{index-Dv5KkX4d.js → index-DJwLTNUT.js} +1 -1
  113. package/dist/client/assets/{index-C49gvOLF.js → index-DxQJZHjP.js} +1 -1
  114. package/dist/client/assets/{index-lpP5H9a5.js → index-KV37pyts.js} +1 -1
  115. package/dist/client/assets/{index-BBRJNtmH.js → index-fcnpw58m.js} +3 -3
  116. package/dist/client/assets/{index-redirect-BHSpr7PB.js → index-redirect-ymWYw_mi.js} +1 -1
  117. package/dist/client/assets/{input-CVWmJeP8.js → input-CAkp1QGP.js} +1 -1
  118. package/dist/client/assets/{integration-icon-Cljn3xYd.js → integration-icon-hAZ3DsHC.js} +1 -1
  119. package/dist/client/assets/{invite-member-dialog-DpdS4BX9.js → invite-member-dialog-DgFmwgba.js} +1 -1
  120. package/dist/client/assets/{label-dErkEvp_.js → label-USps6Nqt.js} +1 -1
  121. package/dist/client/assets/{layout-CctyNdth.js → layout-Cy5hTWwS.js} +1 -1
  122. package/dist/client/assets/{login-BrqKBBYh.js → login-C80kpS1A.js} +1 -1
  123. package/dist/client/assets/{mcp-oauth-CxL1q4pI.js → mcp-oauth-D8yXhpk6.js} +1 -1
  124. package/dist/client/assets/{members-DqamK9Mz.js → members-DKN26Z48.js} +1 -1
  125. package/dist/client/assets/{monaco-editor-CEm0VCyX.js → monaco-editor-4okVFuzh.js} +1 -1
  126. package/dist/client/assets/{monitoring-stats-row-B_l1RNTO.js → monitoring-stats-row-D2MtPFKw.js} +1 -1
  127. package/dist/client/assets/{multi-select-B0VMv_F2.js → multi-select-Bd8Sln2j.js} +1 -1
  128. package/dist/client/assets/{oauth-callback-B4YJNF0g.js → oauth-callback-BxP5Pt29.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-ai-provider-6GIAXTxL.js → oauth-callback-ai-provider-DXegDIfj.js} +1 -1
  130. package/dist/client/assets/{onboarding-WcNTWP1A.js → onboarding-DnVtKwUP.js} +1 -1
  131. package/dist/client/assets/{org-layout-D9lDH14-.js → org-layout-seX80TDT.js} +1 -1
  132. package/dist/client/assets/{organization-choice-NOZi1LIa.js → organization-choice-8YDxHy9H.js} +1 -1
  133. package/dist/client/assets/{orgs-B5dzaLst.js → orgs-dgL21f2s.js} +1 -1
  134. package/dist/client/assets/{page-seo-form-BMEAqDJQ.js → page-seo-form-8H_nbnFa.js} +1 -1
  135. package/dist/client/assets/{popover-YzKHMgNT.js → popover-DF3_Ldlv.js} +1 -1
  136. package/dist/client/assets/{post-editor-Dks9t3-3.js → post-editor-CE5X4qJk.js} +1 -1
  137. package/dist/client/assets/{primitives-BiTcJD_-.js → primitives-CbtI2_49.js} +1 -1
  138. package/dist/client/assets/{profile-CK6zayoP.js → profile-nF0SnUHp.js} +1 -1
  139. package/dist/client/assets/{project-app-view-DAsB9qMO.js → project-app-view-BE5BQtRv.js} +1 -1
  140. package/dist/client/assets/record-editor-BHVBNvBR.js +1 -0
  141. package/dist/client/assets/{redirect-editor-DFayCm3c.js → redirect-editor-Dd3JSdBV.js} +1 -1
  142. package/dist/client/assets/registry-9QOQAWyT.js +2 -0
  143. package/dist/client/assets/{registry-layout-BMOaLqvZ.js → registry-layout-nBAcb4G9.js} +1 -1
  144. package/dist/client/assets/{reports-CQcRBwRh.js → reports-CEk8VjrS.js} +1 -1
  145. package/dist/client/assets/{require-capability-oHIe20aN.js → require-capability-DsQ6nb9G.js} +1 -1
  146. package/dist/client/assets/{required-auth-layout-D3-uILtM.js → required-auth-layout-BGjY5Y-r.js} +1 -1
  147. package/dist/client/assets/{reset-password-BJBJ2SJp.js → reset-password-BOoo-gqL.js} +1 -1
  148. package/dist/client/assets/{roles-BqFarFSL.js → roles-3g9YGR4x.js} +1 -1
  149. package/dist/client/assets/{search-input-BIeI-whC.js → search-input-CwQVwOJh.js} +1 -1
  150. package/dist/client/assets/{secrets-D-AC_6us.js → secrets-BhS4qr26.js} +1 -1
  151. package/dist/client/assets/{sections-editor-D52vT-q3.js → sections-editor-BEwNGCPv.js} +1 -1
  152. package/dist/client/assets/{select-q9xgW4iO.js → select-Cp9v-gVg.js} +1 -1
  153. package/dist/client/assets/{select-model-CRmYuRGp.js → select-model-r4XFhhzX.js} +1 -1
  154. package/dist/client/assets/self-tool-result-Dcn5Tpr9.js +1 -0
  155. package/dist/client/assets/{seo-editor-B2oGkQOc.js → seo-editor-BwZ399Eg.js} +1 -1
  156. package/dist/client/assets/{settings-layout-BV5Nsy2f.js → settings-layout-D860idjO.js} +1 -1
  157. package/dist/client/assets/{settings-section-TcK0k_ej.js → settings-section-B_QopU-q.js} +1 -1
  158. package/dist/client/assets/{shell-controls-rFCtD8fc.js → shell-controls-CjfZ_YmZ.js} +1 -1
  159. package/dist/client/assets/{shell-layout-C9_TOlZF.js → shell-layout-BnBd8gKW.js} +1 -1
  160. package/dist/client/assets/{sidebar-BoRmvpqg.js → sidebar-GTydNhpW.js} +1 -1
  161. package/dist/client/assets/{skeleton-B0w8gwpm.js → skeleton-BcIlFAKF.js} +1 -1
  162. package/dist/client/assets/{spinner-InINl7Gn.js → spinner-CjTdbuC_.js} +1 -1
  163. package/dist/client/assets/{sso-BO-E7MP5.js → sso-CHSGNpAL.js} +1 -1
  164. package/dist/client/assets/{store-B6BXWL3X.js → store-CEJ7xbJQ.js} +1 -1
  165. package/dist/client/assets/store-registry-CnUHRIfv.js +2 -0
  166. package/dist/client/assets/{studio-tools-B6g4N5FI.js → studio-tools-DbaIX0Nl.js} +1 -1
  167. package/dist/client/assets/{switch-Bo7mhYiG.js → switch-Bk45HBj6.js} +1 -1
  168. package/dist/client/assets/{synced-repos-D-me4Pgx.js → synced-repos-ByWxQUeT.js} +1 -1
  169. package/dist/client/assets/{tab-id-C_xlF127.js → tab-id-Dhnz8flc.js} +1 -1
  170. package/dist/client/assets/{table-CKDYn3_9.js → table-B8W9Y7oy.js} +1 -1
  171. package/dist/client/assets/{tabs-B86qWQBY.js → tabs-BHrRaqEG.js} +1 -1
  172. package/dist/client/assets/{textarea-SYXzYI26.js → textarea-DjB7eZRj.js} +1 -1
  173. package/dist/client/assets/{toggle-group-CeQ4YWZf.js → toggle-group-1rR1LF__.js} +1 -1
  174. package/dist/client/assets/{toolbar-CZAE6tlG.js → toolbar-LWgQhiP6.js} +1 -1
  175. package/dist/client/assets/{tooltip-B1CrfINu.js → tooltip-BWaFodDB.js} +1 -1
  176. package/dist/client/assets/{use-ai-providers-B71xfWri.js → use-ai-providers-nkto2Knt.js} +1 -1
  177. package/dist/client/assets/{use-automations-ibWBtAFV.js → use-automations-_1DRisCE.js} +1 -1
  178. package/dist/client/assets/{use-autosave-H5mlAcJB.js → use-autosave-BB8_DgYp.js} +1 -1
  179. package/dist/client/assets/{use-capability-CrNEo5Cy.js → use-capability-DWD28Ayy.js} +1 -1
  180. package/dist/client/assets/{use-clock-tick-Dm6CrYFW.js → use-clock-tick-DK_5CzHA.js} +1 -1
  181. package/dist/client/assets/{use-connection-8rzgbFiU.js → use-connection-gAqNE2TO.js} +1 -1
  182. package/dist/client/assets/{use-copy-BYU5x0Qr.js → use-copy-G24JsdRQ.js} +1 -1
  183. package/dist/client/assets/{use-create-virtual-mcp-B5l_tuFP.js → use-create-virtual-mcp-6fyybFIN.js} +1 -1
  184. package/dist/client/assets/{use-debounced-autosave-U6NPZGRe.js → use-debounced-autosave-DGp38pjB.js} +1 -1
  185. package/dist/client/assets/{use-debounced-value-qQ-ntUbn.js → use-debounced-value-4lyu35Mp.js} +1 -1
  186. package/dist/client/assets/{use-deco-credits-CSPfGVpC.js → use-deco-credits-DbR8zFPq.js} +1 -1
  187. package/dist/client/assets/{use-decopilot-events-BFB5IlWw.js → use-decopilot-events-CIXQkZ0V.js} +1 -1
  188. package/dist/client/assets/{use-delete-connection-BJh8Ye-n.js → use-delete-connection-CBfcqjLi.js} +1 -1
  189. package/dist/client/assets/{use-deployment-admin-DCQ1ZcXU.js → use-deployment-admin-DMdcBC42.js} +1 -1
  190. package/dist/client/assets/{use-file-configs-BFleHqN0.js → use-file-configs-ZD_EnJ_2.js} +1 -1
  191. package/dist/client/assets/{use-infinite-scroll-ByIx5ouV.js → use-infinite-scroll-DyO173co.js} +1 -1
  192. package/dist/client/assets/{use-join-requests-CBpYPggn.js → use-join-requests-DVyTrJN2.js} +1 -1
  193. package/dist/client/assets/{use-mcp-client-DIdeBM-1.js → use-mcp-client-CJM3Gmtu.js} +1 -1
  194. package/dist/client/assets/{use-mcp-tools-aoE-sUPD.js → use-mcp-tools-CMTOiXG8.js} +1 -1
  195. package/dist/client/assets/{use-members-D5_oMRFc.js → use-members-C_sUfPA0.js} +1 -1
  196. package/dist/client/assets/{use-mobile-Dft3OSMG.js → use-mobile-BP85ulHL.js} +1 -1
  197. package/dist/client/assets/{use-navigate-to-agent-Cx3c7bwb.js → use-navigate-to-agent-Cn7nNVep.js} +1 -1
  198. package/dist/client/assets/{use-open-billing-url-C3ab3fTd.js → use-open-billing-url-s6evdlun.js} +1 -1
  199. package/dist/client/assets/{use-org-auth-client-D1cKJEa-.js → use-org-auth-client-C6aPPk82.js} +1 -1
  200. package/dist/client/assets/{use-org-sso-4fqm-P_C.js → use-org-sso-CK1b_8TR.js} +1 -1
  201. package/dist/client/assets/{use-organization-roles-DpfeuDJj.js → use-organization-roles-C6hbq3Av.js} +1 -1
  202. package/dist/client/assets/{use-organization-settings-DBKRs3vk.js → use-organization-settings-D1i3H1Fi.js} +1 -1
  203. package/dist/client/assets/{use-registry-connections-rWefAvnG.js → use-registry-connections-BbmCMFDn.js} +1 -1
  204. package/dist/client/assets/{use-secrets-C4wPquyr.js → use-secrets-BO7L_q1Q.js} +1 -1
  205. package/dist/client/assets/{use-section-preview-base-DcEDJrTR.js → use-section-preview-base-C9oKCaUA.js} +1 -1
  206. package/dist/client/assets/{use-status-sounds-DLwLSh-Q.js → use-status-sounds-fLCpv39R.js} +1 -1
  207. package/dist/client/assets/{use-tags-ABCkso76.js → use-tags-B_8ut_dt.js} +1 -1
  208. package/dist/client/assets/{use-view-mode-CUDayvHj.js → use-view-mode-C1kH8nkQ.js} +1 -1
  209. package/dist/client/assets/{use-virtual-mcp-DJnSOJvz.js → use-virtual-mcp-NJA9q1Dn.js} +1 -1
  210. package/dist/client/assets/useInfiniteQuery-DSR5327z.js +1 -0
  211. package/dist/client/assets/{useRouterState-DR3t_zAx.js → useRouterState-Hp_Iv37J.js} +1 -1
  212. package/dist/client/assets/useSuspenseInfiniteQuery-Dym1coUM.js +1 -0
  213. package/dist/client/assets/{users-DseKDLZ-.js → users-Cxl0DJz6.js} +1 -1
  214. package/dist/client/assets/{variant-calendar-C9ioJl_6.js → variant-calendar-I5aMnxJD.js} +1 -1
  215. package/dist/client/assets/{view-mode-toggle-CeICpVJu.js → view-mode-toggle-ClOIGbkG.js} +1 -1
  216. package/dist/client/index.html +1 -1
  217. package/dist/server/cli.js +1 -1
  218. package/dist/server/server.js +1 -1
  219. package/package.json +1 -1
  220. package/dist/client/assets/commerce-onboarding-Csmf1tiK.js +0 -1
  221. package/dist/client/assets/record-editor-D4ILq14a.js +0 -1
  222. package/dist/client/assets/registry--UsTKZBh.js +0 -2
  223. package/dist/client/assets/self-tool-result-Cj6diJN-.js +0 -1
  224. package/dist/client/assets/store-registry-BzquoNwM.js +0 -2
  225. package/dist/client/assets/useInfiniteQuery-BQiVV0oj.js +0 -1
  226. package/dist/client/assets/useSuspenseInfiniteQuery-DZyjvlSX.js +0 -1
@@ -1 +0,0 @@
1
- import{aS as pt,Y as Ie,aT as ht,X as bt,aU as Ye,o as Oe,aV as yt,aW as xt,r as H,aX as Ct,aY as St,aZ as Ot,a_ as vt,a$ as ze,b0 as jt,b1 as _t,b2 as Nt,Z as be,$ as oe,c as G,b as te,a2 as ye,a1 as xe,e as ve,j as n,a as Ze,B as Z,m as fe,k as Re,K as X,n as Se,ar as Tt,t as Ne,u as wt,x as _e,p as ue,Q as Et,E as It}from"./index-BBRJNtmH.js";import{A as kt,a as Rt,b as Lt,c as Ft,e as Dt,f as At,g as Kt}from"./alert-dialog-6RY9OFMU.js";import{d as ie,F as Ce,a as se,e as pe,b as re,f as Xe,c as ae}from"./form-D-h36ALZ.js";import{I as ge}from"./input-CVWmJeP8.js";import{S as Pt}from"./spinner-InINl7Gn.js";import{W as Je,g as Bt,u as Le,S as $t}from"./use-mcp-client-DIdeBM-1.js";import{I as Fe}from"./integration-icon-Cljn3xYd.js";import{c as he,b as et,a as tt,d as nt,e as ot,h as qt}from"./dialog-Dc18mYsw.js";import{c as De,T as Ae,a as Ke}from"./tooltip-B1CrfINu.js";import{m as it,e as st,Q as Ut}from"./agent-icon-CPYTD7A0.js";import{b as zt,c as Mt,e as Qt}from"./extract-connection-data-BDI-HmBh.js";import{a as Vt,f as rt,b as Ht,p as Gt,i as Wt}from"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import{g as at}from"./metadata-dUsYcpuu.js";import{i as lt}from"./CheckCircle-DQ9aTnwR.js";import{i as Yt}from"./Check-BIikNJHT.js";import{a as ct}from"./Copy01-9ZEX7QwO.js";import{i as Zt}from"./Settings02-CC4ctYGk.js";import{s as Xt}from"./Eye-DxEzo7bk.js";import{u as Jt}from"./use-debounced-value-qQ-ntUbn.js";import{n as en}from"./LinkExternal01-DwkgpRm7.js";import{a as tn}from"./authenticate-and-persist-oauth-Cid_1ZHG.js";function Me(o,e){const t=new Set(e);return o.filter(i=>!t.has(i))}function nn(o,e,t){const i=o.slice(0);return i[e]=t,i}var on=class extends pt{#i;#e;#s;#o;#t;#n;#r;#a;#l;#c=[];constructor(o,e,t){super(),this.#i=o,this.#o=t,this.#s=[],this.#t=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#t.forEach(o=>{o.subscribe(e=>{this.#f(o,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#t.forEach(o=>{o.destroy()})}setQueries(o,e){this.#s=o,this.#o=e,Ie.batch(()=>{const t=this.#t,i=this.#m(this.#s);i.forEach(d=>d.observer.setOptions(d.defaultedQueryOptions));const s=i.map(d=>d.observer),c=s.map(d=>d.getCurrentResult()),r=t.length!==s.length,a=s.some((d,l)=>d!==t[l]),u=r||a,p=u?!0:c.some((d,l)=>{const f=this.#e[l];return!f||!ht(d,f)});!u&&!p||(u&&(this.#c=i,this.#t=s),this.#e=c,this.hasListeners()&&(u&&(Me(t,s).forEach(d=>{d.destroy()}),Me(s,t).forEach(d=>{d.subscribe(l=>{this.#f(d,l)})})),this.#g()))})}getCurrentResult(){return this.#e}getQueries(){return this.#t.map(o=>o.getCurrentQuery())}getObservers(){return this.#t}getOptimisticResult(o,e){const t=this.#m(o),i=t.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions)),s=t.map(c=>c.defaultedQueryOptions.queryHash);return[i,c=>this.#u(c??i,e,s),()=>this.#d(i,t)]}#d(o,e){return e.map((t,i)=>{const s=o[i];return t.defaultedQueryOptions.notifyOnChangeProps?s:t.observer.trackResult(s,c=>{e.forEach(r=>{r.observer.trackProp(c)})})})}#u(o,e,t){if(e){const i=this.#l,s=t!==void 0&&i!==void 0&&(i.length!==t.length||t.some((c,r)=>c!==i[r]));return(!this.#n||this.#e!==this.#a||s||e!==this.#r)&&(this.#r=e,this.#a=this.#e,t!==void 0&&(this.#l=t),this.#n=bt(this.#n,e(o))),this.#n}return o}#p(){return this.#o?.combine!==void 0&&this.#t.some((o,e)=>o.options.suspense&&this.#e[e]?.data===void 0)}#m(o){const e=new Map;this.#t.forEach(i=>{const s=i.options.queryHash;if(!s)return;const c=e.get(s);c?c.push(i):e.set(s,[i])});const t=[];return o.forEach(i=>{const s=this.#i.defaultQueryOptions(i),r=e.get(s.queryHash)?.shift()??new Ye(this.#i,s);t.push({defaultedQueryOptions:s,observer:r})}),t}#f(o,e){const t=this.#t.indexOf(o);t!==-1&&(this.#e=nn(this.#e,t,e),this.#g())}#g(){if(this.hasListeners()){const o=this.#d(this.#e,this.#c),e=this.#p(),t=this.#n,i=e?t:this.#u(o,this.#o?.combine);(e||t!==i)&&Ie.batch(()=>{this.listeners.forEach(s=>{s(this.#e)})})}}};function sn({queries:o,...e},t){const i=Oe(t),s=yt(),c=xt(),r=H.useMemo(()=>o.map(x=>{const h=i.defaultQueryOptions(x);return h._optimisticResults=s?"isRestoring":"optimistic",h}),[o,i,s]);r.forEach(x=>{Ct(x);const h=i.getQueryCache().get(x.queryHash);St(x,c,h)}),Ot(c);const[a]=H.useState(()=>new on(i,r,e)),[u,p,d]=a.getOptimisticResult(r,e.combine),l=!s&&e.subscribed!==!1;H.useSyncExternalStore(H.useCallback(x=>l?a.subscribe(Ie.batchCalls(x)):vt,[a,l]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),H.useEffect(()=>{a.setQueries(r,e)},[r,e,a]);const m=u.some((x,h)=>ze(r[h],x))?u.flatMap((x,h)=>{const b=r[h];if(b&&ze(b,x)){const g=new Ye(i,b);return jt(b,g,c)}return[]}):[];if(m.length>0)throw Promise.all(m);const y=u.find((x,h)=>{const b=r[h];return b&&_t({result:x,errorResetBoundary:c,throwOnError:b.throwOnError,query:i.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(y?.error)throw y.error;return p(d())}function rn(o,e){return sn({...o,queries:o.queries.map(t=>({...t,suspense:!0,throwOnError:Nt,enabled:!0,placeholderData:void 0}))},e)}const an=/^[a-zA-Z][a-zA-Z\d+.-]*:/,ln=/^[a-zA-Z][a-zA-Z\d+.-]*:\/\//,cn=/^[^\s/:?#]+\.[^\s/:?#]+:\d+(?:[/?#]|$)/,dn=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i;function Te(o){const e=o.trim();if(!e)return{ok:!1,error:"Enter a website URL."};const t=an.test(e),i=ln.test(e),s=cn.test(e);if(t&&!i&&!s)return{ok:!1,error:"Use an HTTP or HTTPS website URL."};const c=i?e:`https://${e}`;let r;try{r=new URL(c)}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 a=r.hostname.split(".");return a.length<2||a.some(u=>!u||!dn.test(u))?{ok:!1,error:"Enter a valid website URL."}:(r.protocol="https:",{ok:!0,value:r.origin})}function Zo(o,e){if(!o.trim())return!0;const t=Te(o);if(!t.ok||!e)return!1;const i=Te(e);return i.ok&&i.value===t.value}function un(o){if(!o)return null;const e=Te(o);return e.ok?new URL(e.value).hostname:null}function Qe(o){return o.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const mn=be({name:oe().min(2,"Organization name is required")});function Xo(o){const e=G.c(66),{open:t,onOpenChange:i}=o,s=te();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={resolver:ye(mn),defaultValues:{name:""}},e[0]=c):c=e[0];const r=xe(c);let a;e[1]!==s?(a=async L=>{const K=Qe(L.name);if(!K)throw new Error(s("common.createOrganizationDialog.invalidSlug"));const P=await Ze.organization.create({name:L.name,slug:K});if(P?.error)throw new Error(P.error.message||s("common.createOrganizationDialog.failedToCreate"));const U=P?.data?.slug??K;if(!U)throw new Error(s("common.createOrganizationDialog.failedToCreate"));return{orgSlug:U}},e[1]=s,e[2]=a):a=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=fn,e[3]=u):u=e[3];let p;e[4]!==a?(p={mutationFn:a,onSuccess:u},e[4]=a,e[5]=p):p=e[5];const d=ve(p);let l;e[6]!==d.error||e[7]!==s?(l=d.error instanceof Error?d.error.message:d.error?s("common.createOrganizationDialog.failedToCreateGeneric"):null,e[6]=d.error,e[7]=s,e[8]=l):l=e[8];const f=l;let m;e[9]!==s?(m=s("common.createOrganizationDialog.title"),e[9]=s,e[10]=m):m=e[10];let y;e[11]!==m?(y=n.jsx(kt,{children:m}),e[11]=m,e[12]=y):y=e[12];let x;e[13]!==s?(x=s("common.createOrganizationDialog.description"),e[13]=s,e[14]=x):x=e[14];let h;e[15]!==x?(h=n.jsx(Rt,{children:x}),e[15]=x,e[16]=h):h=e[16];let b;e[17]!==y||e[18]!==h?(b=n.jsxs(Lt,{children:[y,h]}),e[17]=y,e[18]=h,e[19]=b):b=e[19];let g;if(e[20]!==d||e[21]!==r){let L;e[23]!==d?(L=K=>d.mutateAsync(K),e[23]=d,e[24]=L):L=e[24],g=r.handleSubmit(L),e[20]=d,e[21]=r,e[22]=g}else g=e[22];let S;e[25]!==r.formState.isSubmitting||e[26]!==s?(S=L=>{const{field:K}=L;return n.jsxs(se,{children:[n.jsx(pe,{children:s("common.createOrganizationDialog.nameLabel")}),n.jsx(re,{children:n.jsx(ge,{...K,placeholder:s("common.createOrganizationDialog.namePlaceholder"),disabled:r.formState.isSubmitting})}),n.jsx(Xe,{children:s("common.createOrganizationDialog.nameDescription")}),K.value&&n.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[s("common.createOrganizationDialog.urlLabel")," ",n.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",Qe(K.value)]})]}),n.jsx(ae,{})]})},e[25]=r.formState.isSubmitting,e[26]=s,e[27]=S):S=e[27];let C;e[28]!==r.control||e[29]!==S?(C=n.jsx(ie,{control:r.control,name:"name",render:S}),e[28]=r.control,e[29]=S,e[30]=C):C=e[30];let v;e[31]!==f?(v=f&&n.jsx("div",{className:"text-destructive text-sm mt-2",children:f}),e[31]=f,e[32]=v):v=e[32];const N=r.formState.isSubmitting;let j;e[33]!==d||e[34]!==r?(j=()=>{d.reset(),r.reset()},e[33]=d,e[34]=r,e[35]=j):j=e[35];let O;e[36]!==s?(O=s("common.createOrganizationDialog.cancel"),e[36]=s,e[37]=O):O=e[37];let w;e[38]!==r.formState.isSubmitting||e[39]!==j||e[40]!==O?(w=n.jsx(Ft,{disabled:N,onClick:j,children:O}),e[38]=r.formState.isSubmitting,e[39]=j,e[40]=O,e[41]=w):w=e[41];const E=!r.formState.isValid||r.formState.isSubmitting;let _;e[42]!==r.formState.isSubmitting||e[43]!==s?(_=r.formState.isSubmitting?n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(Pt,{size:"xs"})," ",s("common.createOrganizationDialog.creating")]}):s("common.createOrganizationDialog.createButton"),e[42]=r.formState.isSubmitting,e[43]=s,e[44]=_):_=e[44];let k;e[45]!==E||e[46]!==_?(k=n.jsx(Z,{type:"submit",variant:"default",disabled:E,children:_}),e[45]=E,e[46]=_,e[47]=k):k=e[47];let I;e[48]!==w||e[49]!==k?(I=n.jsxs(Dt,{children:[w,k]}),e[48]=w,e[49]=k,e[50]=I):I=e[50];let R;e[51]!==g||e[52]!==C||e[53]!==v||e[54]!==I?(R=n.jsxs("form",{className:"space-y-6",onSubmit:g,autoComplete:"off",children:[C,v,I]}),e[51]=g,e[52]=C,e[53]=v,e[54]=I,e[55]=R):R=e[55];let A;e[56]!==r||e[57]!==R?(A=n.jsx(Ce,{...r,children:R}),e[56]=r,e[57]=R,e[58]=A):A=e[58];let T;e[59]!==b||e[60]!==A?(T=n.jsxs(At,{children:[b,A]}),e[59]=b,e[60]=A,e[61]=T):T=e[61];let D;return e[62]!==i||e[63]!==t||e[64]!==T?(D=n.jsx(Kt,{open:t,onOpenChange:i,children:T}),e[62]=i,e[63]=t,e[64]=T,e[65]=D):D=e[65],D}function fn(o){const{orgSlug:e}=o;window.location.href=`/${e}`}function gn(o){const e=G.c(14),{children:t,className:i,wrapperClassName:s}=o,[c,r]=H.useState(!0);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=x=>{if(!x)return;const h=()=>{const g=x.scrollHeight-x.scrollTop-x.clientHeight<8;r(g)};h(),x.addEventListener("scroll",h,{passive:!0});const b=new ResizeObserver(h);b.observe(x);for(const g of Array.from(x.children))b.observe(g);return()=>{x.removeEventListener("scroll",h),b.disconnect()}},e[0]=a):a=e[0];const u=a;let p;e[1]!==s?(p=fe("relative",s),e[1]=s,e[2]=p):p=e[2];let d;e[3]!==t||e[4]!==i?(d=n.jsx("div",{ref:u,className:i,children:t}),e[3]=t,e[4]=i,e[5]=d):d=e[5];const l=c?"opacity-0":"opacity-100";let f;e[6]!==l?(f=fe("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",l),e[6]=l,e[7]=f):f=e[7];let m;e[8]!==f?(m=n.jsx("div",{"aria-hidden":!0,className:f}),e[8]=f,e[9]=m):m=e[9];let y;return e[10]!==p||e[11]!==d||e[12]!==m?(y=n.jsxs("div",{className:p,children:[d,m]}),e[10]=p,e[11]=d,e[12]=m,e[13]=y):y=e[13],y}const pn=new Set([]);function hn(o){if(o.boundVia==="sa")return!0;const{companionConfig:e,cdConfig:t}=o;switch(o.bindingType){case"vtex":return me(e?.accountName);case"shopify":return me(e?.storeDomain);case"google-analytics":return me(e?.propertyId);case"google-search-console":return me(e?.siteUrl);case"github":return me(t?.github_repo);default:return!0}}function bn(o){const{companionConfig:e,cdConfig:t}=o;switch(o.bindingType){case"vtex":return typeof e?.accountName=="string"?e.accountName:null;case"shopify":return typeof e?.storeDomain=="string"?e.storeDomain:null;case"google-analytics":return typeof e?.propertyId=="string"?e.propertyId:null;case"google-search-console":return typeof e?.siteUrl=="string"?e.siteUrl:null;case"github":return typeof t?.github_repo=="string"?t.github_repo:null;default:return null}}function yn(o){const e=o.properties;if(!e)return[];const t=[];for(const[i,s]of Object.entries(e)){const a=s?.properties?.__type?.const;typeof a=="string"&&a.length>0&&t.push({fieldKey:i,bindingType:a})}return t}const xn=[{fieldKey:"vtex",bindingType:"vtex"},{fieldKey:"shopify",bindingType:"shopify"},{fieldKey:"ga4",bindingType:"google-analytics"},{fieldKey:"gsc",bindingType:"google-search-console"},{fieldKey:"github",bindingType:"github"}];function Cn(o,e){const t=[];if(o.length&&t.push({field:["id"],operator:"in",value:o}),e.length&&t.push({field:["name"],operator:"in",value:e}),t.length!==0)return t.length===1?t[0]:{operator:"or",conditions:t}}function ee(o){const e=o;if(e.isError)throw new Error(e.content?.find(t=>t.text)?.text??"Tool call failed");return e.structuredContent??o}function Sn(o,e,t,i){return{...o??{},[e]:{__type:t,value:i}}}function me(o){return o==null?!1:typeof o=="string"?o.trim().length>0:typeof o=="number"||typeof o=="boolean"?!0:Array.isArray(o)?o.some(me):typeof o=="object"?Object.entries(o).some(([e,t])=>!e.startsWith("__")&&me(t)):!1}const On={accountName:"commerceOnboarding.companionCard.configField.accountName",appKey:"commerceOnboarding.companionCard.configField.appKey",appToken:"commerceOnboarding.companionCard.configField.appToken",propertyId:"commerceOnboarding.companionCard.configField.propertyId",siteUrl:"commerceOnboarding.companionCard.configField.siteUrl"};function vn(o,e){const t=On[o];return t?e(t):o.replace(/[_-]+/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\b\w/g,i=>i.toUpperCase())}function jn(o){return me(o)?typeof o=="string"?o.trim():typeof o=="number"||typeof o=="boolean"?String(o):JSON.stringify(o):null}function _n(o,e){return o?Object.entries(o).flatMap(([t,i])=>{if(t.startsWith("__"))return[];const s=jn(i);return s?[{key:t,label:vn(t,e),value:s}]:[]}):[]}function Ve({autoOpenFieldKey:o,card:e}){return o===e.fieldKey&&e.satisfied&&!!e.linkedConnectionId}function Nn(o,e,t){const i=o.filter(s=>(s.app_name===e||!!t&&s.app_id===t)&&Vt(s)===null);return i.length===0?null:(i.sort((s,c)=>{const r=a=>a.status==="active"?0:1;return r(s)!==r(c)?r(s)-r(c):(c.updated_at??"").localeCompare(s.updated_at??"")}),i[0].id)}function Tn(o){return o.server?.icons?.[0]?.src??zt(o.server?.repository)??null}function wn(o,e){const t=at(o._meta);return t?.friendlyName||t?.friendly_name||o.title||o.server?.title||o.server?.name||e}function En(o){const e=[],t=new Map(o.connections.map(i=>[i.id,i]));for(const i of o.requirements){const s=o.curated[i.bindingType],c=s?o.itemsById[s.registryAppId]:o.itemsByName[i.bindingType];if(!c)continue;const r=o.configurationState?.[i.fieldKey]?.value,a=r?t.get(r):void 0,u=r&&a?r:null,p=u?o.connectionReadiness?.[u]!==!1:!1,d=!!u&&p,l=d?void 0:o.saBindings?.[i.bindingType],f=d||!!l,m=d?"oauth":l?"sa":null,y=f&&hn({bindingType:i.bindingType,boundVia:m,companionConfig:a?.configuration_state??null,cdConfig:o.configurationState??null});e.push({fieldKey:i.fieldKey,bindingType:i.bindingType,registryItem:c,title:wn(c,i.bindingType),icon:Tn(c),headline:s?.headline??at(c._meta)?.short_description??null,area:s?.area??null,bullets:s?.bullets??[],satisfied:f,configured:y,required:pn.has(i.bindingType),candidateConnectionId:f?null:u||Nn(o.connections,i.bindingType,s?.registryAppId),linkedConnectionId:u,configurationState:a?.configuration_state??null,boundVia:m,boundResource:l?.resource??null,connectedDetail:f?bn({bindingType:i.bindingType,companionConfig:a?.configuration_state??null,cdConfig:o.configurationState??null}):null})}return e}function In(o,e){if(!o)return null;const t=s=>{const c=s.startsWith("sc-domain:")?s.substring(10):(()=>{try{return new URL(s.startsWith("http")?s:`https://${s}`).hostname}catch{return null}})();return c===null?s:c.startsWith("www.")?c.substring(4):c},i=t(o);for(const s of e)if(t(s.siteUrl)===i)return s.siteUrl;return null}function kn(o){return(o?.response?.accountSummaries??[]).map(i=>({account:i.account,options:(i.propertySummaries??[]).map(s=>({value:s.property,label:`${s.displayName} (${i.displayName})`}))}))}function Rn(o){const e=G.c(25),{icon:t,title:i,headline:s,required:c,attention:r,action:a}=o,u=te(),p=r?"border-warning/50 bg-warning/[0.04]":"border-border";let d;e[0]!==p?(d=fe("relative flex items-center justify-between gap-3 rounded-lg border bg-card p-3.5 sm:gap-4 sm:p-4",p),e[0]=p,e[1]=d):d=e[1];let l;e[2]!==c||e[3]!==u?(l=c&&n.jsx("span",{className:"absolute -top-3 right-4 rounded-full border border-input bg-background px-3 py-1 text-xs font-medium text-foreground",children:u("commerceOnboarding.companionCard.required")}),e[2]=c,e[3]=u,e[4]=l):l=e[4];let f;e[5]!==t||e[6]!==i?(f=n.jsx(Fe,{icon:t,name:i,size:"sm",fit:"contain",className:"shrink-0 p-1"}),e[5]=t,e[6]=i,e[7]=f):f=e[7];let m;e[8]!==i?(m=n.jsx("span",{className:"text-sm font-medium text-foreground",children:i}),e[8]=i,e[9]=m):m=e[9];let y;e[10]!==s?(y=s&&n.jsx("p",{className:"hidden text-sm leading-5 text-muted-foreground sm:block",children:s}),e[10]=s,e[11]=y):y=e[11];let x;e[12]!==m||e[13]!==y?(x=n.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[m,y]}),e[12]=m,e[13]=y,e[14]=x):x=e[14];let h;e[15]!==f||e[16]!==x?(h=n.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3 sm:items-start",children:[f,x]}),e[15]=f,e[16]=x,e[17]=h):h=e[17];let b;e[18]!==a?(b=n.jsx("div",{className:"shrink-0",children:a}),e[18]=a,e[19]=b):b=e[19];let g;return e[20]!==d||e[21]!==l||e[22]!==h||e[23]!==b?(g=n.jsxs("div",{className:d,children:[l,h,b]}),e[20]=d,e[21]=l,e[22]=h,e[23]=b,e[24]=g):g=e[24],g}function dt(o){const e=G.c(12),{connecting:t,disabled:i,title:s,primary:c,onConnect:r}=o,a=te(),u=c?"default":"outline",p=i||t;let d;e[0]!==a||e[1]!==s?(d=a("commerceOnboarding.companionCard.connectAriaLabel",{title:s}),e[0]=a,e[1]=s,e[2]=d):d=e[2];let l;e[3]!==t||e[4]!==a?(l=t?n.jsx(Re,{size:16,className:"animate-spin"}):a("commerceOnboarding.companionCard.connect"),e[3]=t,e[4]=a,e[5]=l):l=e[5];let f;return e[6]!==r||e[7]!==u||e[8]!==p||e[9]!==d||e[10]!==l?(f=n.jsx(Z,{type:"button",variant:u,size:"sm",disabled:p,onClick:r,"aria-label":d,children:l}),e[6]=r,e[7]=u,e[8]=p,e[9]=d,e[10]=l,e[11]=f):f=e[11],f}function Ln(o){const e=G.c(11),{disabled:t,title:i,onConfigure:s}=o,c=te();let r;e[0]!==c||e[1]!==i?(r=c("commerceOnboarding.companionCard.configureAriaLabel",{title:i}),e[0]=c,e[1]=i,e[2]=r):r=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(it,{size:16}),e[3]=a):a=e[3];let u;e[4]!==c?(u=c("commerceOnboarding.companionCard.finishSetup"),e[4]=c,e[5]=u):u=e[5];let p;return e[6]!==t||e[7]!==s||e[8]!==r||e[9]!==u?(p=n.jsxs(Z,{type:"button",variant:"outline",size:"sm",className:"border-warning/60 text-warning hover:bg-warning/10 hover:text-warning",disabled:t,onClick:s,"aria-label":r,children:[a,u]}),e[6]=t,e[7]=s,e[8]=r,e[9]=u,e[10]=p):p=e[10],p}function ut(o){const e=G.c(9),{detail:t,controls:i}=o,s=te();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(lt,{size:16,className:"text-success"}),e[0]=c):c=e[0];let r;e[1]!==t||e[2]!==s?(r=t?n.jsx("span",{className:"max-w-40 truncate text-foreground",children:t}):s("commerceOnboarding.companionCard.connected"),e[1]=t,e[2]=s,e[3]=r):r=e[3];let a;e[4]!==r?(a=n.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-muted-foreground",children:[c," ",r]}),e[4]=r,e[5]=a):a=e[5];let u;return e[6]!==i||e[7]!==a?(u=n.jsxs("div",{className:"flex items-center gap-1",children:[a,i]}),e[6]=i,e[7]=a,e[8]=u):u=e[8],u}function mt(o){const e=G.c(4),{ariaLabel:t,onClick:i}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(it,{size:16}),e[0]=s):s=e[0];let c;return e[1]!==t||e[2]!==i?(c=n.jsx(Z,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:i,"aria-label":t,children:s}),e[1]=t,e[2]=i,e[3]=c):c=e[3],c}function ke(o){const e=G.c(38);let t,i,s,c,r;e[0]!==o?({value:r,onChange:i,placeholder:s,className:t,...c}=o,e[0]=o,e[1]=t,e[2]=i,e[3]=s,e[4]=c,e[5]=r):(t=e[1],i=e[2],s=e[3],c=e[4],r=e[5]);const[a,u]=H.useState(!1),[p,d]=H.useState(!1);let l;e[6]!==r?(l=async()=>{if(r)try{await navigator.clipboard.writeText(r),d(!0),setTimeout(()=>d(!1),2e3)}catch(_){console.error("Failed to copy text: ",_)}},e[6]=r,e[7]=l):l=e[7];const f=l;let m;e[8]!==a?(m=()=>{u(!a)},e[8]=a,e[9]=m):m=e[9];const y=m,x=a?"text":"password";let h;e[10]!==t?(h=fe("pr-20",t),e[10]=t,e[11]=h):h=e[11];let b;e[12]!==i||e[13]!==s||e[14]!==c||e[15]!==x||e[16]!==h||e[17]!==r?(b=n.jsx(ge,{type:x,value:r,onChange:i,placeholder:s,className:h,...c}),e[12]=i,e[13]=s,e[14]=c,e[15]=x,e[16]=h,e[17]=r,e[18]=b):b=e[18];const g=a?"Hide password":"Show password";let S;e[19]!==a?(S=a?n.jsx(Zt,{size:16}):n.jsx(Xt,{size:16}),e[19]=a,e[20]=S):S=e[20];let C;e[21]!==g||e[22]!==S||e[23]!==y?(C=n.jsx(Z,{type:"button",variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:y,title:g,children:S}),e[21]=g,e[22]=S,e[23]=y,e[24]=C):C=e[24];const v=!r,N=p?"Copied!":"Copy token";let j;e[25]!==p?(j=p?n.jsx(Yt,{size:16}):n.jsx(ct,{size:16}),e[25]=p,e[26]=j):j=e[26];let O;e[27]!==f||e[28]!==N||e[29]!==j||e[30]!==v?(O=n.jsx(Z,{type:"button",variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:f,disabled:v,title:N,children:j}),e[27]=f,e[28]=N,e[29]=j,e[30]=v,e[31]=O):O=e[31];let w;e[32]!==O||e[33]!==C?(w=n.jsxs("div",{className:"absolute right-1 top-1 flex items-center gap-1 h-8",children:[C,O]}),e[32]=O,e[33]=C,e[34]=w):w=e[34];let E;return e[35]!==w||e[36]!==b?(E=n.jsxs("div",{className:"relative",children:[b,w]}),e[35]=w,e[36]=b,e[37]=E):E=e[37],E}function we(o){const e=G.c(19),{card:t,selfClient:i,org:s,onDone:c,onError:r}=o,a=Oe();let u;e[0]!==t||e[1]!==i?(u=async h=>{const{values:b,connectionToken:g}=h,C={configuration_state:{...t.configurationState??{},...b}};g!==void 0&&(C.connection_token=g),await i.callTool({name:"COLLECTION_CONNECTIONS_UPDATE",arguments:{id:t.linkedConnectionId||t.candidateConnectionId,data:C}})},e[0]=t,e[1]=i,e[2]=u):u=e[2];let p;e[3]!==c||e[4]!==s||e[5]!==a?(p=async()=>{await a.invalidateQueries({queryKey:X.commerceDiscoveryCompanionConnectionsPrefix(s.id)}),c()},e[3]=c,e[4]=s,e[5]=a,e[6]=p):p=e[6];let d;e[7]!==r?(d=h=>{r?.(h)},e[7]=r,e[8]=d):d=e[8];let l;e[9]!==u||e[10]!==p||e[11]!==d?(l={mutationFn:u,onSuccess:p,onError:d},e[9]=u,e[10]=p,e[11]=d,e[12]=l):l=e[12];const f=ve(l);let m;e[13]!==f?(m=(h,b)=>f.mutate({values:h,connectionToken:b?.connectionToken}),e[13]=f,e[14]=m):m=e[14];const y=m;let x;return e[15]!==f.error||e[16]!==f.isPending||e[17]!==y?(x={save:y,isPending:f.isPending,error:f.error},e[15]=f.error,e[16]=f.isPending,e[17]=y,e[18]=x):x=e[18],x}const Fn=be({accountName:oe().min(1,"Informe o nome da conta"),appKey:oe().optional(),appToken:oe().optional()});function Dn(o){const e=G.c(73),{card:t,selfClient:i,org:s,onDone:c,onIsPendingChange:r}=o,a=te();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=ye(Fn),e[0]=u):u=e[0];const p=t.configurationState?.accountName||"",d=t.configurationState?.appKey||"",l=t.configurationState?.appToken||"";let f;e[1]!==p||e[2]!==d||e[3]!==l?(f={resolver:u,defaultValues:{accountName:p,appKey:d,appToken:l}},e[1]=p,e[2]=d,e[3]=l,e[4]=f):f=e[4];const m=xe(f);let y;e[5]!==t.configurationState?.accountName||e[6]!==t.configurationState?.appKey||e[7]!==t.configurationState?.appToken||e[8]!==m?(y=()=>{m.reset({accountName:t.configurationState?.accountName||"",appKey:t.configurationState?.appKey||"",appToken:t.configurationState?.appToken||""})},e[5]=t.configurationState?.accountName,e[6]=t.configurationState?.appKey,e[7]=t.configurationState?.appToken,e[8]=m,e[9]=y):y=e[9];let x;e[10]!==t.configurationState||e[11]!==m?(x=[t.configurationState,m],e[10]=t.configurationState,e[11]=m,e[12]=x):x=e[12],H.useEffect(y,x);let h;e[13]!==t||e[14]!==c||e[15]!==s||e[16]!==i?(h={card:t,selfClient:i,org:s,onDone:c},e[13]=t,e[14]=c,e[15]=s,e[16]=i,e[17]=h):h=e[17];const{save:b,isPending:g,error:S}=we(h);let C,v;e[18]!==g||e[19]!==r?(v=()=>{r?.(g)},C=[g,r],e[18]=g,e[19]=r,e[20]=C,e[21]=v):(C=e[20],v=e[21]),H.useEffect(v,C);let N;if(e[22]!==m||e[23]!==b){let B;e[25]!==b?(B=async q=>{b(q)},e[25]=b,e[26]=B):B=e[26],N=m.handleSubmit(B),e[22]=m,e[23]=b,e[24]=N}else N=e[24];const j=N;let O;e[27]!==g||e[28]!==a?(O=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.vtexConfigForm.accountNameLabel")}),n.jsx(re,{children:n.jsx(ge,{placeholder:a("commerceOnboarding.vtexConfigForm.accountNamePlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[27]=g,e[28]=a,e[29]=O):O=e[29];let w;e[30]!==m.control||e[31]!==O?(w=n.jsx(ie,{control:m.control,name:"accountName",render:O}),e[30]=m.control,e[31]=O,e[32]=w):w=e[32];let E;e[33]!==g||e[34]!==a?(E=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.vtexConfigForm.appKeyLabel")}),n.jsx(re,{children:n.jsx(ke,{placeholder:a("commerceOnboarding.vtexConfigForm.appKeyPlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[33]=g,e[34]=a,e[35]=E):E=e[35];let _;e[36]!==m.control||e[37]!==E?(_=n.jsx(ie,{control:m.control,name:"appKey",render:E}),e[36]=m.control,e[37]=E,e[38]=_):_=e[38];let k;e[39]!==g||e[40]!==a?(k=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.vtexConfigForm.appTokenLabel")}),n.jsx(re,{children:n.jsx(ke,{placeholder:a("commerceOnboarding.vtexConfigForm.appTokenPlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[39]=g,e[40]=a,e[41]=k):k=e[41];let I;e[42]!==m.control||e[43]!==k?(I=n.jsx(ie,{control:m.control,name:"appToken",render:k}),e[42]=m.control,e[43]=k,e[44]=I):I=e[44];let R;e[45]!==m||e[46]!==w||e[47]!==_||e[48]!==I?(R=n.jsxs(Ce,{...m,children:[w,_,I]}),e[45]=m,e[46]=w,e[47]=_,e[48]=I,e[49]=R):R=e[49];let A;e[50]!==S||e[51]!==a?(A=S&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:S instanceof Error?S.message:a("commerceOnboarding.vtexConfigForm.savingError")}),e[50]=S,e[51]=a,e[52]=A):A=e[52];let T;e[53]!==a?(T=a("commerceOnboarding.vtexConfigForm.cancelButton"),e[53]=a,e[54]=T):T=e[54];let D;e[55]!==g||e[56]!==c||e[57]!==T?(D=n.jsx(Z,{type:"button",variant:"outline",onClick:c,disabled:g,children:T}),e[55]=g,e[56]=c,e[57]=T,e[58]=D):D=e[58];let L;e[59]!==g||e[60]!==a?(L=a(g?"commerceOnboarding.vtexConfigForm.savingButton":"commerceOnboarding.vtexConfigForm.saveButton"),e[59]=g,e[60]=a,e[61]=L):L=e[61];let K;e[62]!==g||e[63]!==L?(K=n.jsx(Z,{type:"submit",disabled:g,children:L}),e[62]=g,e[63]=L,e[64]=K):K=e[64];let P;e[65]!==D||e[66]!==K?(P=n.jsxs(he,{className:"pt-4",children:[D,K]}),e[65]=D,e[66]=K,e[67]=P):P=e[67];let U;return e[68]!==j||e[69]!==R||e[70]!==A||e[71]!==P?(U=n.jsxs("form",{onSubmit:j,className:"space-y-4",children:[R,A,P]}),e[68]=j,e[69]=R,e[70]=A,e[71]=P,e[72]=U):U=e[72],U}const An=(o,e)=>be({storeDomain:oe().min(1,e("commerceOnboarding.shopifyConfigForm.storeDomainRequired")),accessToken:oe().optional(),apiVersion:oe().optional()}).refine(t=>o||!!t.accessToken?.trim(),{path:["accessToken"],message:e("commerceOnboarding.shopifyConfigForm.accessTokenRequired")});function Kn(o){const e=G.c(76),{card:t,selfClient:i,org:s,onDone:c,onIsPendingChange:r}=o,a=te();let u;e[0]!==t.configured||e[1]!==a?(u=ye(An(t.configured,a)),e[0]=t.configured,e[1]=a,e[2]=u):u=e[2];const p=t.configurationState?.storeDomain||"",d=t.configurationState?.apiVersion||"";let l;e[3]!==p||e[4]!==d?(l={storeDomain:p,accessToken:"",apiVersion:d},e[3]=p,e[4]=d,e[5]=l):l=e[5];let f;e[6]!==u||e[7]!==l?(f={resolver:u,defaultValues:l},e[6]=u,e[7]=l,e[8]=f):f=e[8];const m=xe(f);let y;e[9]!==t.configurationState?.apiVersion||e[10]!==t.configurationState?.storeDomain||e[11]!==m?(y=()=>{m.reset({storeDomain:t.configurationState?.storeDomain||"",accessToken:"",apiVersion:t.configurationState?.apiVersion||""})},e[9]=t.configurationState?.apiVersion,e[10]=t.configurationState?.storeDomain,e[11]=m,e[12]=y):y=e[12];let x;e[13]!==t.configurationState||e[14]!==m?(x=[t.configurationState,m],e[13]=t.configurationState,e[14]=m,e[15]=x):x=e[15],H.useEffect(y,x);let h;e[16]!==t||e[17]!==c||e[18]!==s||e[19]!==i?(h={card:t,selfClient:i,org:s,onDone:c},e[16]=t,e[17]=c,e[18]=s,e[19]=i,e[20]=h):h=e[20];const{save:b,isPending:g,error:S}=we(h);let C,v;e[21]!==g||e[22]!==r?(v=()=>{r?.(g)},C=[g,r],e[21]=g,e[22]=r,e[23]=C,e[24]=v):(C=e[23],v=e[24]),H.useEffect(v,C);let N;if(e[25]!==m||e[26]!==b){let B;e[28]!==b?(B=async q=>{const $=q.apiVersion?.trim(),M=q.accessToken?.trim();b({storeDomain:q.storeDomain.trim(),...$?{apiVersion:$}:{}},M?{connectionToken:M}:void 0)},e[28]=b,e[29]=B):B=e[29],N=m.handleSubmit(B),e[25]=m,e[26]=b,e[27]=N}else N=e[27];const j=N;let O;e[30]!==g||e[31]!==a?(O=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.shopifyConfigForm.storeDomainLabel")}),n.jsx(re,{children:n.jsx(ge,{placeholder:a("commerceOnboarding.shopifyConfigForm.storeDomainPlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[30]=g,e[31]=a,e[32]=O):O=e[32];let w;e[33]!==m.control||e[34]!==O?(w=n.jsx(ie,{control:m.control,name:"storeDomain",render:O}),e[33]=m.control,e[34]=O,e[35]=w):w=e[35];let E;e[36]!==g||e[37]!==a?(E=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.shopifyConfigForm.accessTokenLabel")}),n.jsx(re,{children:n.jsx(ke,{placeholder:a("commerceOnboarding.shopifyConfigForm.accessTokenPlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[36]=g,e[37]=a,e[38]=E):E=e[38];let _;e[39]!==m.control||e[40]!==E?(_=n.jsx(ie,{control:m.control,name:"accessToken",render:E}),e[39]=m.control,e[40]=E,e[41]=_):_=e[41];let k;e[42]!==g||e[43]!==a?(k=B=>{const{field:q}=B;return n.jsxs(se,{children:[n.jsx(pe,{children:a("commerceOnboarding.shopifyConfigForm.apiVersionLabel")}),n.jsx(re,{children:n.jsx(ge,{placeholder:a("commerceOnboarding.shopifyConfigForm.apiVersionPlaceholder"),...q,disabled:g})}),n.jsx(ae,{})]})},e[42]=g,e[43]=a,e[44]=k):k=e[44];let I;e[45]!==m.control||e[46]!==k?(I=n.jsx(ie,{control:m.control,name:"apiVersion",render:k}),e[45]=m.control,e[46]=k,e[47]=I):I=e[47];let R;e[48]!==m||e[49]!==w||e[50]!==_||e[51]!==I?(R=n.jsxs(Ce,{...m,children:[w,_,I]}),e[48]=m,e[49]=w,e[50]=_,e[51]=I,e[52]=R):R=e[52];let A;e[53]!==S||e[54]!==a?(A=S&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:S instanceof Error?S.message:a("commerceOnboarding.shopifyConfigForm.savingError")}),e[53]=S,e[54]=a,e[55]=A):A=e[55];let T;e[56]!==a?(T=a("commerceOnboarding.shopifyConfigForm.cancelButton"),e[56]=a,e[57]=T):T=e[57];let D;e[58]!==g||e[59]!==c||e[60]!==T?(D=n.jsx(Z,{type:"button",variant:"outline",onClick:c,disabled:g,children:T}),e[58]=g,e[59]=c,e[60]=T,e[61]=D):D=e[61];let L;e[62]!==g||e[63]!==a?(L=a(g?"commerceOnboarding.shopifyConfigForm.savingButton":"commerceOnboarding.shopifyConfigForm.saveButton"),e[62]=g,e[63]=a,e[64]=L):L=e[64];let K;e[65]!==g||e[66]!==L?(K=n.jsx(Z,{type:"submit",disabled:g,children:L}),e[65]=g,e[66]=L,e[67]=K):K=e[67];let P;e[68]!==D||e[69]!==K?(P=n.jsxs(he,{className:"pt-4",children:[D,K]}),e[68]=D,e[69]=K,e[70]=P):P=e[70];let U;return e[71]!==j||e[72]!==R||e[73]!==A||e[74]!==P?(U=n.jsxs("form",{onSubmit:j,className:"space-y-4",children:[R,A,P]}),e[71]=j,e[72]=R,e[73]=A,e[74]=P,e[75]=U):U=e[75],U}function Pe(o){const e=G.c(31),{options:t,value:i,onChange:s,disabled:c,ariaLabel:r,searchPlaceholder:a,hideSearch:u}=o,p=u===void 0?!1:u,d=te(),[l,f]=H.useState("");let m,y,x;if(e[0]!==t||e[1]!==l||e[2]!==i){const j=l.trim().toLowerCase();m=j?t.filter(O=>O.label.toLowerCase().includes(j)):t,y=m.map(Pn),x=y.includes(i)?i:y[0]??"",e[0]=t,e[1]=l,e[2]=i,e[3]=m,e[4]=y,e[5]=x}else m=e[3],y=e[4],x=e[5];const h=x;let b;e[6]!==c||e[7]!==y||e[8]!==s?(b=function(O){if(c||!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft","Home","End"].includes(O.key))return;O.preventDefault();const E=O.currentTarget.dataset.value,_=y.indexOf(E),k=y.length;if(k===0)return;let I;O.key==="ArrowDown"||O.key==="ArrowRight"?I=(_+1)%k:O.key==="ArrowUp"||O.key==="ArrowLeft"?I=(_-1+k)%k:O.key==="Home"?I=0:I=k-1;const R=y[I];s(R),O.currentTarget.closest('[role="radiogroup"]')?.querySelector(`[data-value="${CSS.escape(R)}"]`)?.focus()},e[6]=c,e[7]=y,e[8]=s,e[9]=b):b=e[9];const g=b;let S;e[10]!==r||e[11]!==c||e[12]!==p||e[13]!==l||e[14]!==a||e[15]!==d?(S=p?null:n.jsxs("div",{className:"relative",children:[n.jsx(st,{size:16,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),n.jsx(ge,{type:"text",value:l,onChange:j=>f(j.target.value),disabled:c,placeholder:a??d("commerceOnboarding.selectableList.searchPlaceholder"),"aria-label":d("commerceOnboarding.selectableList.searchAriaLabel",{label:r}),className:"h-8 pl-8"})]}),e[10]=r,e[11]=c,e[12]=p,e[13]=l,e[14]=a,e[15]=d,e[16]=S):S=e[16];let C;e[17]!==c||e[18]!==m||e[19]!==g||e[20]!==s||e[21]!==d||e[22]!==h||e[23]!==i?(C=m.length===0?n.jsx("div",{className:"px-2 py-2 text-sm text-muted-foreground",children:d("commerceOnboarding.selectableList.noResults")}):m.map(j=>{const O=j.value===i;return n.jsxs("button",{type:"button",role:"radio","aria-checked":O,disabled:c,"data-value":j.value,tabIndex:j.value===h?0:-1,onClick:()=>s(j.value),onKeyDown:g,className:fe("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-2 text-left text-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",O?"bg-muted font-medium text-foreground":"text-foreground hover:bg-muted/50"),children:[n.jsx("span",{className:"truncate",children:j.label}),O?n.jsx(lt,{size:16,className:"shrink-0 text-primary"}):null]},j.value)}),e[17]=c,e[18]=m,e[19]=g,e[20]=s,e[21]=d,e[22]=h,e[23]=i,e[24]=C):C=e[24];let v;e[25]!==r||e[26]!==C?(v=n.jsx("div",{role:"radiogroup","aria-label":r,className:"max-h-[280px] overflow-y-auto",children:C}),e[25]=r,e[26]=C,e[27]=v):v=e[27];let N;return e[28]!==S||e[29]!==v?(N=n.jsxs("div",{className:"space-y-2",children:[S,v]}),e[28]=S,e[29]=v,e[30]=N):N=e[30],N}function Pn(o){return o.value}function Be(o){const e=G.c(16),{label:t,iconSize:i,className:s,iconClassName:c,labelClassName:r}=o,a=i===void 0?14:i;let u;e[0]!==s?(u=fe("inline-flex items-center gap-2",s),e[0]=s,e[1]=u):u=e[1];let p;e[2]!==c?(p=fe("shrink-0 animate-spin",c),e[2]=c,e[3]=p):p=e[3];let d;e[4]!==a||e[5]!==p?(d=n.jsx(Re,{size:a,className:p}),e[4]=a,e[5]=p,e[6]=d):d=e[6];let l;e[7]!==r?(l=fe("text-sm",r),e[7]=r,e[8]=l):l=e[8];let f;e[9]!==t||e[10]!==l?(f=n.jsx("span",{className:l,children:t}),e[9]=t,e[10]=l,e[11]=f):f=e[11];let m;return e[12]!==u||e[13]!==d||e[14]!==f?(m=n.jsxs("span",{className:u,children:[d,f]}),e[12]=u,e[13]=d,e[14]=f,e[15]=m):m=e[15],m}const Bn=be({propertyId:oe().min(1,"Selecione uma propriedade")});function $n(o){const e=G.c(68),{card:t,connectionId:i,companionClient:s,selfClient:c,org:r,onDone:a,onDisconnect:u,onIsPendingChange:p}=o;let d;e[0]!==i||e[1]!==r.id?(d=X.commerceDiscoveryCompanionGaProperties(r.id,i),e[0]=i,e[1]=r.id,e[2]=d):d=e[2];let l;e[3]!==s?(l=async()=>{const $=await s.callTool({name:"get-account-summaries",arguments:{}}),M=ee($);return kn(M)},e[3]=s,e[4]=l):l=e[4];let f;e[5]!==d||e[6]!==l?(f={queryKey:d,queryFn:l},e[5]=d,e[6]=l,e[7]=f):f=e[7];const m=Se(f);let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=ye(Bn),e[8]=y):y=e[8];const x=t.configurationState?.propertyId||"";let h;e[9]!==x?(h={resolver:y,defaultValues:{propertyId:x}},e[9]=x,e[10]=h):h=e[10];const b=xe(h);let g;e[11]!==t||e[12]!==a||e[13]!==r||e[14]!==c?(g={card:t,selfClient:c,org:r,onDone:a},e[11]=t,e[12]=a,e[13]=r,e[14]=c,e[15]=g):g=e[15];const{save:S,isPending:C,error:v}=we(g);let N,j;e[16]!==C||e[17]!==p?(N=()=>{p?.(C)},j=[C,p],e[16]=C,e[17]=p,e[18]=N,e[19]=j):(N=e[18],j=e[19]),H.useEffect(N,j);let O;if(e[20]!==b||e[21]!==S){let $;e[23]!==S?($=async M=>{S(M)},e[23]=S,e[24]=$):$=e[24],O=b.handleSubmit($),e[20]=b,e[21]=S,e[22]=O}else O=e[22];const w=O;if(m.isLoading){let $;return e[25]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx("div",{className:"flex min-h-[200px] items-center justify-center",children:n.jsx(Be,{label:"Carregando propriedades..."})}),e[25]=$):$=e[25],$}if(m.isError){let $;return e[26]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx("div",{className:"space-y-4",children:n.jsx("p",{className:"text-sm text-destructive",children:"Não foi possível carregar as propriedades do Google Analytics."})}),e[26]=$):$=e[26],$}let E;e[27]!==m.data?(E=m.data||[],e[27]=m.data,e[28]=E):E=e[28];const _=E;if(_.flatMap(Un).length===0){let $;e[29]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhuma propriedade do Google Analytics foi encontrada. Conecte uma conta do Google Analytics com propriedades."}),e[29]=$):$=e[29];let M;e[30]!==u?(M=u?n.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground underline underline-offset-2 hover:text-destructive",children:"Desconectar conta"}):n.jsx("span",{}),e[30]=u,e[31]=M):M=e[31];let z;e[32]!==a?(z=n.jsx(Z,{type:"button",variant:"outline",onClick:a,children:"Fechar"}),e[32]=a,e[33]=z):z=e[33];let Y;return e[34]!==M||e[35]!==z?(Y=n.jsxs("div",{className:"space-y-4",children:[$,n.jsxs(he,{className:"flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[M,z]})]}),e[34]=M,e[35]=z,e[36]=Y):Y=e[36],Y}let I;e[37]!==C||e[38]!==_?(I=$=>{const{field:M}=$;return n.jsxs(se,{children:[n.jsx(re,{children:n.jsx(Pe,{options:_.flatMap(qn),value:M.value,onChange:M.onChange,disabled:C,ariaLabel:"Propriedade do Google Analytics"})}),n.jsx(ae,{})]})},e[37]=C,e[38]=_,e[39]=I):I=e[39];let R;e[40]!==b.control||e[41]!==I?(R=n.jsx(ie,{control:b.control,name:"propertyId",render:I}),e[40]=b.control,e[41]=I,e[42]=R):R=e[42];let A;e[43]!==b||e[44]!==R?(A=n.jsx(Ce,{...b,children:R}),e[43]=b,e[44]=R,e[45]=A):A=e[45];let T;e[46]!==v?(T=v&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:v instanceof Error?v.message:"Não foi possível salvar a configuração"}),e[46]=v,e[47]=T):T=e[47];let D;e[48]!==C||e[49]!==u?(D=u?n.jsx("button",{type:"button",onClick:u,disabled:C,className:"text-xs text-muted-foreground underline underline-offset-2 hover:text-destructive disabled:opacity-50",children:"Desconectar conta"}):n.jsx("span",{}),e[48]=C,e[49]=u,e[50]=D):D=e[50];let L;e[51]!==C||e[52]!==a?(L=n.jsx(Z,{type:"button",variant:"outline",onClick:a,disabled:C,children:"Cancelar"}),e[51]=C,e[52]=a,e[53]=L):L=e[53];const K=C?"Salvando...":"Salvar";let P;e[54]!==C||e[55]!==K?(P=n.jsx(Z,{type:"submit",disabled:C,children:K}),e[54]=C,e[55]=K,e[56]=P):P=e[56];let U;e[57]!==L||e[58]!==P?(U=n.jsxs("div",{className:"flex gap-2",children:[L,P]}),e[57]=L,e[58]=P,e[59]=U):U=e[59];let B;e[60]!==D||e[61]!==U?(B=n.jsxs(he,{className:"flex-col gap-2 pt-4 sm:flex-row sm:items-center sm:justify-between",children:[D,U]}),e[60]=D,e[61]=U,e[62]=B):B=e[62];let q;return e[63]!==w||e[64]!==A||e[65]!==T||e[66]!==B?(q=n.jsxs("form",{onSubmit:w,className:"space-y-4",children:[A,T,B]}),e[63]=w,e[64]=A,e[65]=T,e[66]=B,e[67]=q):q=e[67],q}function qn(o){return o.options}function Un(o){return o.options}const zn=o=>be({siteUrl:oe().min(1,o("commerceOnboarding.googleSearchConsoleConfigForm.siteRequired"))});function Mn(o){const e=G.c(83),{card:t,connectionId:i,companionClient:s,selfClient:c,org:r,contextSiteUrl:a,onDone:u,onIsPendingChange:p}=o,d=te();let l;e[0]!==i||e[1]!==r.id?(l=X.commerceDiscoveryCompanionGscSites(r.id,i),e[0]=i,e[1]=r.id,e[2]=l):l=e[2];let f;e[3]!==s?(f=async()=>{const F=await s.callTool({name:"list_sites",arguments:{}});return ee(F).sites||[]},e[3]=s,e[4]=f):f=e[4];let m;e[5]!==l||e[6]!==f?(m={queryKey:l,queryFn:f},e[5]=l,e[6]=f,e[7]=m):m=e[7];const y=Se(m);let x;e[8]!==d?(x=ye(zn(d)),e[8]=d,e[9]=x):x=e[9];const h=t.configurationState?.siteUrl||"";let b;e[10]!==h?(b={siteUrl:h},e[10]=h,e[11]=b):b=e[11];let g;e[12]!==x||e[13]!==b?(g={resolver:x,defaultValues:b},e[12]=x,e[13]=b,e[14]=g):g=e[14];const S=xe(g);let C;e[15]!==t||e[16]!==u||e[17]!==r||e[18]!==c?(C={card:t,selfClient:c,org:r,onDone:u},e[15]=t,e[16]=u,e[17]=r,e[18]=c,e[19]=C):C=e[19];const{save:v,isPending:N,error:j}=we(C),O=H.useRef(!1),w=t.configurationState?.siteUrl;let E,_;e[20]!==N||e[21]!==p?(_=()=>{p?.(N)},E=[N,p],e[20]=N,e[21]=p,e[22]=E,e[23]=_):(E=e[22],_=e[23]),H.useEffect(_,E);let k,I;e[24]!==a||e[25]!==S||e[26]!==w||e[27]!==y.data||e[28]!==y.isSuccess?(k=()=>{if(!(O.current||!y.isSuccess)){if(O.current=!0,w){S.getValues("siteUrl")!==w&&S.setValue("siteUrl",w);return}if(!S.getValues("siteUrl")){const F=In(a,y.data??[]);F&&S.setValue("siteUrl",F)}}},I=[y.isSuccess,y.data,w,a,S],e[24]=a,e[25]=S,e[26]=w,e[27]=y.data,e[28]=y.isSuccess,e[29]=k,e[30]=I):(k=e[29],I=e[30]),H.useEffect(k,I);let R;if(e[31]!==S||e[32]!==v){let F;e[34]!==v?(F=async Q=>{v(Q)},e[34]=v,e[35]=F):F=e[35],R=S.handleSubmit(F),e[31]=S,e[32]=v,e[33]=R}else R=e[33];const A=R;if(y.isLoading){let F;e[36]!==d?(F=d("commerceOnboarding.googleSearchConsoleConfigForm.loadingSites"),e[36]=d,e[37]=F):F=e[37];let Q;return e[38]!==F?(Q=n.jsx("div",{className:"flex min-h-[200px] items-center justify-center",children:n.jsx(Be,{label:F})}),e[38]=F,e[39]=Q):Q=e[39],Q}if(y.isError){let F;e[40]!==d?(F=d("commerceOnboarding.googleSearchConsoleConfigForm.loadSitesError"),e[40]=d,e[41]=F):F=e[41];let Q;return e[42]!==F?(Q=n.jsx("div",{className:"space-y-4",children:n.jsx("p",{className:"text-sm text-destructive",children:F})}),e[42]=F,e[43]=Q):Q=e[43],Q}let T;e[44]!==y.data?(T=y.data||[],e[44]=y.data,e[45]=T):T=e[45];const D=T;if(D.length===0){let F;e[46]!==d?(F=d("commerceOnboarding.googleSearchConsoleConfigForm.noSitesFound"),e[46]=d,e[47]=F):F=e[47];let Q;return e[48]!==F?(Q=n.jsx("div",{className:"space-y-4",children:n.jsx("p",{className:"text-sm text-muted-foreground",children:F})}),e[48]=F,e[49]=Q):Q=e[49],Q}let L;e[50]!==N||e[51]!==D||e[52]!==d?(L=F=>{const{field:Q}=F;return n.jsxs(se,{children:[n.jsx(re,{children:n.jsx(Pe,{options:D.map(Qn),value:Q.value,onChange:Q.onChange,disabled:N,ariaLabel:d("commerceOnboarding.googleSearchConsoleConfigForm.siteAriaLabel")})}),n.jsx(ae,{})]})},e[50]=N,e[51]=D,e[52]=d,e[53]=L):L=e[53];let K;e[54]!==S.control||e[55]!==L?(K=n.jsx(ie,{control:S.control,name:"siteUrl",render:L}),e[54]=S.control,e[55]=L,e[56]=K):K=e[56];let P;e[57]!==S||e[58]!==K?(P=n.jsx(Ce,{...S,children:K}),e[57]=S,e[58]=K,e[59]=P):P=e[59];let U;e[60]!==j||e[61]!==d?(U=j&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:j instanceof Error?j.message:d("commerceOnboarding.googleSearchConsoleConfigForm.savingError")}),e[60]=j,e[61]=d,e[62]=U):U=e[62];let B;e[63]!==d?(B=d("commerceOnboarding.googleSearchConsoleConfigForm.cancelButton"),e[63]=d,e[64]=B):B=e[64];let q;e[65]!==N||e[66]!==u||e[67]!==B?(q=n.jsx(Z,{type:"button",variant:"outline",onClick:u,disabled:N,children:B}),e[65]=N,e[66]=u,e[67]=B,e[68]=q):q=e[68];let $;e[69]!==N||e[70]!==d?($=d(N?"commerceOnboarding.googleSearchConsoleConfigForm.savingButton":"commerceOnboarding.googleSearchConsoleConfigForm.saveButton"),e[69]=N,e[70]=d,e[71]=$):$=e[71];let M;e[72]!==N||e[73]!==$?(M=n.jsx(Z,{type:"submit",disabled:N,children:$}),e[72]=N,e[73]=$,e[74]=M):M=e[74];let z;e[75]!==q||e[76]!==M?(z=n.jsxs(he,{className:"pt-4",children:[q,M]}),e[75]=q,e[76]=M,e[77]=z):z=e[77];let Y;return e[78]!==A||e[79]!==P||e[80]!==U||e[81]!==z?(Y=n.jsxs("form",{onSubmit:A,className:"space-y-4",children:[P,U,z]}),e[78]=A,e[79]=P,e[80]=U,e[81]=z,e[82]=Y):Y=e[82],Y}function Qn(o){return{value:o.siteUrl,label:o.siteUrl}}function Vn(o){const[e,t]=o.split("/");return!e||!t?null:{owner:e,name:t}}function Hn(o){const{existingRepo:e,owner:t,name:i}=o;return e?.connectionId&&e.owner.toLowerCase()===t.toLowerCase()&&e.name.toLowerCase()===i.toLowerCase()?{connectionId:e.connectionId,installationId:e.installationId}:null}function Gn(o){const{existingRepo:e,existingConnections:t,repoConnectionId:i}=o,s=e?.connectionId&&e.connectionId!==i?e.connectionId:void 0,c=[...t.filter(r=>r.connection_id!==i&&r.connection_id!==s),{connection_id:i,selected_tools:[]}];return{staleConnectionId:s,mergedConnections:c}}const Wn=be({githubRepo:oe().min(1,"commerceOnboarding.githubConfigForm.selectRepository")}),Yn=15e3,Zn=/^[\w.-]+\/[\w.-]+$/;async function Xn(o,e,t,i){const{installations:s}=await rt(o,t),c=i.trim(),r=await Promise.allSettled(s.map(async d=>{const l=d.type==="User"?"user":"org",f=c?`${l}:${d.login} ${c} in:name`:`${l}:${d.login}`,y=await e.callTool({name:"search_repositories",arguments:{query:f,page:1,perPage:50}},void 0,{signal:AbortSignal.timeout(Yn)}),x=y.content?.[0]?.text;if(y.isError)throw new Error(x??"search_repositories failed");if(!x)throw new Error("empty search_repositories response");return JSON.parse(x).items??[]})),a=new Map;let u=0;for(const d of r){if(d.status==="rejected"){u+=1;continue}for(const l of d.value)l.full_name&&!a.has(l.full_name)&&a.set(l.full_name,l)}return{repos:Array.from(a.values()).sort((d,l)=>(l.updated_at??"").localeCompare(d.updated_at??"")).map(d=>d.full_name),failed:u,total:s.length}}function Jn({connectionId:o,companionClient:e,selfClient:t,org:i,onDone:s,onIsPendingChange:c}){const r=te(),a=Oe(),u=Je.COMMERCE_DISCOVERY(i.id),[p,d]=H.useState(""),l=Jt(p,300),f=H.useRef(!1),m=Se({queryKey:X.commerceDiscoveryCompanionGithubSelected(i.id,o),queryFn:async()=>{const _=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:u}}),k=ee(_).item?.configuration_state??null;return typeof k?.github_repo=="string"?k.github_repo:""}}),y=Se({queryKey:X.commerceDiscoveryCompanionGithubRepos(i.id,o,l.trim()),queryFn:()=>Xn(_=>t.callTool(_),e,o,l)}),x=xe({resolver:ye(Wn),defaultValues:{githubRepo:""}}),h=ve({mutationFn:async _=>{const k=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:u}}),R={...ee(k).item?.configuration_state??null??{},github_repo:_};await t.callTool({name:"COLLECTION_CONNECTIONS_UPDATE",arguments:{id:u,data:{configuration_state:R}}});const A=Vn(_);if(!A)throw new Error(r("commerceOnboarding.githubConfigForm.invalidRepository",{repo:_}));const{owner:T,name:D}=A,L=Bt(i.id),K=ee(await t.callTool({name:"COLLECTION_VIRTUAL_MCP_GET",arguments:{id:L}})).item,P=K?.metadata?.githubRepo,U=K?.connections??[],B=Hn({existingRepo:P,owner:T,name:D});let q=B?.connectionId,$=B?.installationId,M;if(!q){const{installations:F}=await rt(J=>t.callTool(J),o),Q=Ht(F,T);if(!Q)throw new Error(r("commerceOnboarding.githubConfigForm.noGithubInstallation",{owner:T}));$=Q.installationId;const ne=ee(await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:o}})).item;if(!ne)throw new Error(r("commerceOnboarding.githubConfigForm.githubConnectionNotFound"));const{childConnectionId:le,reused:W}=await Gt({orgSlug:i.slug,sourceConnection:ne,installationId:$,owner:T,repo:D,githubCallTool:J=>e.callTool(J),selfCallTool:J=>t.callTool(J)});q=le,M=W?void 0:le}const{staleConnectionId:z,mergedConnections:Y}=Gn({existingRepo:P,existingConnections:U,repoConnectionId:q});try{if(await t.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:L,data:{connections:Y,metadata:{githubRepo:{owner:T,name:D,url:`https://github.com/${_}`,installationId:$,connectionId:q}}}}}),z){const F=ee(await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:z}})).item;F&&!Wt(F)&&await t.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:z,force:!0}}).catch(()=>{})}}catch(F){throw M&&await t.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:M,force:!0}}).catch(()=>{}),F}},onSuccess:async()=>{await a.invalidateQueries({queryKey:X.commerceDiscoveryConnection(i.id,u)}),await a.invalidateQueries({queryKey:X.commerceDiscoveryCompanionConnectionsPrefix(i.id)}),Tt(a,i.id),s()}}),b=h.isPending;H.useEffect(()=>{c?.(b)},[b,c]);const g=m.data??"";H.useEffect(()=>{!m.isSuccess||f.current||(f.current=!0,m.data&&x.setValue("githubRepo",m.data))},[m.isSuccess,m.data,x]);const S=x.handleSubmit(async _=>{h.mutate(_.githubRepo)}),C=y.data?.repos??[],v=y.data?.failed??0,N=y.data?.total??0,j=l.trim(),O=[...C];j&&Zn.test(j)&&!O.includes(j)&&O.unshift(j),g&&!O.includes(g)&&O.push(g);const w=N>0&&v===N,E=y.isError||w?r("commerceOnboarding.githubConfigForm.searchFailedTotal"):v>0?r("commerceOnboarding.githubConfigForm.searchFailedPartial"):null;return n.jsxs("form",{onSubmit:S,className:"space-y-4",children:[n.jsxs("div",{className:"relative",children:[n.jsx(st,{size:16,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),n.jsx(ge,{type:"text",value:p,onChange:_=>d(_.target.value),disabled:b,placeholder:r("commerceOnboarding.githubConfigForm.searchRepositoryPlaceholder"),"aria-label":r("commerceOnboarding.githubConfigForm.searchRepositoryLabel"),className:"h-8 pl-8"})]}),y.isLoading?n.jsx("div",{className:"flex min-h-[160px] items-center justify-center",children:n.jsx(Be,{label:r("commerceOnboarding.githubConfigForm.loadingRepositories")})}):n.jsxs(n.Fragment,{children:[E&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:E}),O.length===0?!E&&n.jsx("p",{className:"text-sm text-muted-foreground",children:r("commerceOnboarding.githubConfigForm.noRepositoriesFound")}):n.jsx(Ce,{...x,children:n.jsx(ie,{control:x.control,name:"githubRepo",render:({field:_})=>n.jsxs(se,{children:[n.jsx(re,{children:n.jsx(Pe,{options:O.map(k=>({value:k,label:k})),value:_.value,onChange:_.onChange,disabled:b,ariaLabel:"Repositório",hideSearch:!0})}),n.jsx(ae,{})]})})})]}),h.error&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:h.error instanceof Error?h.error.message:r("commerceOnboarding.githubConfigForm.failedToSave")}),n.jsxs(he,{className:"pt-4",children:[n.jsx(Z,{type:"button",variant:"outline",onClick:s,disabled:b,children:r("commerceOnboarding.githubConfigForm.cancel")}),n.jsx(Z,{type:"submit",disabled:b,children:r(b?"commerceOnboarding.githubConfigForm.saving":"commerceOnboarding.githubConfigForm.save")})]})]})}const ft={vtex:Dn,shopify:Kn,"google-analytics":$n,"google-search-console":Mn,github:Jn},Ee="deco-reader@decocms.iam.gserviceaccount.com",gt={"google-analytics":"ga4","google-search-console":"gsc"},eo={ga4:{label:"Google Analytics",consoleUrl:"https://analytics.google.com/analytics/web/#/admin",consoleLinkKey:"commerceOnboarding.saBinding.ga4.openConsole",steps:["commerceOnboarding.saBinding.ga4.step1","commerceOnboarding.saBinding.ga4.step2","commerceOnboarding.saBinding.ga4.step3"],resourceLabelKey:"commerceOnboarding.saBinding.ga4.resourceLabel",resourcePlaceholderKey:"commerceOnboarding.saBinding.ga4.resourcePlaceholder",resourceHintKey:"commerceOnboarding.saBinding.ga4.resourceHint"},gsc:{label:"Google Search Console",consoleUrl:"https://search.google.com/search-console",consoleLinkKey:"commerceOnboarding.saBinding.gsc.openConsole",steps:["commerceOnboarding.saBinding.gsc.step1","commerceOnboarding.saBinding.gsc.step2","commerceOnboarding.saBinding.gsc.step3"],resourceLabelKey:"commerceOnboarding.saBinding.gsc.resourceLabel",resourcePlaceholderKey:"commerceOnboarding.saBinding.gsc.resourcePlaceholder",resourceHintKey:"commerceOnboarding.saBinding.gsc.resourceHint"}};function to(o,e){switch(e){case"no-access":return{titleKey:"commerceOnboarding.saBinding.remediation.noAccess.title",stepKeys:o==="ga4"?["commerceOnboarding.saBinding.remediation.noAccess.ga4.1","commerceOnboarding.saBinding.remediation.noAccess.ga4.2","commerceOnboarding.saBinding.remediation.noAccess.ga4.3"]:["commerceOnboarding.saBinding.remediation.noAccess.gsc.1","commerceOnboarding.saBinding.remediation.noAccess.gsc.2","commerceOnboarding.saBinding.remediation.noAccess.gsc.3"]};case"no-web-stream":return{titleKey:"commerceOnboarding.saBinding.remediation.noWebStream.title",stepKeys:["commerceOnboarding.saBinding.remediation.noWebStream.1","commerceOnboarding.saBinding.remediation.noWebStream.2","commerceOnboarding.saBinding.remediation.noWebStream.3","commerceOnboarding.saBinding.remediation.noWebStream.4"]};case"no-match":return{titleKey:"commerceOnboarding.saBinding.remediation.noMatch.title",stepKeys:o==="ga4"?["commerceOnboarding.saBinding.remediation.noMatch.ga4.1","commerceOnboarding.saBinding.remediation.noMatch.ga4.2"]:["commerceOnboarding.saBinding.remediation.noMatch.gsc.1","commerceOnboarding.saBinding.remediation.noMatch.gsc.2"]};case"resource_already_bound":return{titleKey:"commerceOnboarding.saBinding.remediation.alreadyBound.title",stepKeys:["commerceOnboarding.saBinding.remediation.alreadyBound.1","commerceOnboarding.saBinding.remediation.alreadyBound.2"]};default:return{titleKey:"commerceOnboarding.saBinding.remediation.unknown.title",stepKeys:["commerceOnboarding.saBinding.remediation.unknown.1","commerceOnboarding.saBinding.remediation.unknown.2"]}}}function no(o){const e=G.c(96),{provider:t,siteUrl:i,siteHost:s,selfClient:c,org:r,initialResourceId:a,onDone:u,onIsPendingChange:p,onOAuthInstead:d}=o,l=te(),f=eo[t],m=Oe(),[y,x]=H.useState(null);let h;e[0]!==s||e[1]!==l?(h=s||l("commerceOnboarding.saBinding.sampleDomain"),e[0]=s,e[1]=l,e[2]=h):h=e[2];const b=h;let g,S;if(e[3]!==f.resourceLabelKey||e[4]!==l){const W=be({resourceId:oe().trim().min(1,l("commerceOnboarding.saBindingForm.resourceIdRequired",{resourceLabel:l(f.resourceLabelKey).toLowerCase()}))});S=xe,g=ye(W),e[3]=f.resourceLabelKey,e[4]=l,e[5]=g,e[6]=S}else g=e[5],S=e[6];const C=a??"";let v;e[7]!==C?(v={resourceId:C},e[7]=C,e[8]=v):v=e[8];let N;e[9]!==g||e[10]!==v?(N={resolver:g,defaultValues:v},e[9]=g,e[10]=v,e[11]=N):N=e[11];const j=S(N);let O;e[12]!==t||e[13]!==c||e[14]!==i||e[15]!==l?(O=async W=>{if(!i)throw new Error(l("commerceOnboarding.saBindingForm.storeUrlUnavailable"));const J=await c.callTool({name:"COMMERCE_DISCOVERY_BIND",arguments:{siteUrl:i,provider:t,resourceId:W.resourceId}});return ee(J)},e[12]=t,e[13]=c,e[14]=i,e[15]=l,e[16]=O):O=e[16];let w,E;e[17]!==p?(w=()=>p?.(!0),E=()=>p?.(!1),e[17]=p,e[18]=w,e[19]=E):(w=e[18],E=e[19]);let _;e[20]!==f.label||e[21]!==u||e[22]!==r||e[23]!==t||e[24]!==m||e[25]!==i||e[26]!==l?(_=async W=>{if(W.ok){x(null),Ne.success(l("commerceOnboarding.saBindingForm.connectedSuccess",{label:f.label})),i&&await m.invalidateQueries({queryKey:X.commerceDiscoveryConnectionStatus(r.id,i)}),u();return}x({...to(t,W.reason??"unknown"),detail:W.detail})},e[20]=f.label,e[21]=u,e[22]=r,e[23]=t,e[24]=m,e[25]=i,e[26]=l,e[27]=_):_=e[27];let k;e[28]!==_||e[29]!==O||e[30]!==w||e[31]!==E?(k={mutationFn:O,onMutate:w,onSettled:E,onSuccess:_},e[28]=_,e[29]=O,e[30]=w,e[31]=E,e[32]=k):k=e[32];const I=ve(k);let R;if(e[33]!==j||e[34]!==I){let W;e[36]!==I?(W=J=>I.mutate(J),e[36]=I,e[37]=W):W=e[37],R=j.handleSubmit(W),e[33]=j,e[34]=I,e[35]=R}else R=e[35];const A=R,T=I.isPending;let D;e[38]!==l?(D=()=>{navigator.clipboard?.writeText(Ee),Ne.success(l("commerceOnboarding.saBindingForm.emailCopied"))},e[38]=l,e[39]=D):D=e[39];const L=D;let K;e[40]!==f.consoleLinkKey||e[41]!==f.consoleUrl||e[42]!==f.resourceHintKey||e[43]!==f.resourceLabelKey||e[44]!==f.resourcePlaceholderKey||e[45]!==L||e[46]!==j||e[47]!==b||e[48]!==T||e[49]!==l?(K=W=>W===0?n.jsxs("a",{href:f.consoleUrl,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground underline underline-offset-2 hover:text-foreground",children:[n.jsx(en,{size:14}),l(f.consoleLinkKey)]}):W===1?n.jsxs("div",{className:"flex w-full items-center gap-2 rounded-lg border border-input bg-muted/40 p-2",children:[n.jsx("code",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:Ee}),n.jsx(Z,{type:"button",variant:"ghost",size:"icon-sm",onClick:L,"aria-label":l("commerceOnboarding.saBindingForm.copyEmailLabel"),children:n.jsx(ct,{size:16})})]}):n.jsx(Ce,{...j,children:n.jsx(ie,{control:j.control,name:"resourceId",render:J=>{const{field:de}=J;return n.jsxs(se,{className:"w-full",children:[n.jsx(re,{children:n.jsx(ge,{...de,placeholder:l(f.resourcePlaceholderKey,{host:b}),disabled:T,autoComplete:"off","aria-label":l(f.resourceLabelKey)})}),n.jsx(Xe,{children:l(f.resourceHintKey,{host:b})}),n.jsx(ae,{})]})}})}),e[40]=f.consoleLinkKey,e[41]=f.consoleUrl,e[42]=f.resourceHintKey,e[43]=f.resourceLabelKey,e[44]=f.resourcePlaceholderKey,e[45]=L,e[46]=j,e[47]=b,e[48]=T,e[49]=l,e[50]=K):K=e[50];const P=K;let U;if(e[51]!==P||e[52]!==f.steps||e[53]!==b||e[54]!==l){let W;e[56]!==P||e[57]!==b||e[58]!==l?(W=(J,de)=>n.jsxs("li",{className:"flex gap-3 rounded-lg border border-border p-4",children:[n.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-muted text-sm font-medium text-foreground",children:de+1}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start gap-2",children:[n.jsx("p",{className:"text-sm leading-5 text-foreground",children:l(J,{host:b})}),P(de)]})]},J),e[56]=P,e[57]=b,e[58]=l,e[59]=W):W=e[59],U=f.steps.map(W),e[51]=P,e[52]=f.steps,e[53]=b,e[54]=l,e[55]=U}else U=e[55];let B;e[60]!==U?(B=n.jsx("ol",{className:"space-y-2",children:U}),e[60]=U,e[61]=B):B=e[61];let q;e[62]!==f.label||e[63]!==y||e[64]!==l?(q=y&&n.jsxs("div",{role:"alert",className:"space-y-2 rounded-lg border border-destructive/40 bg-destructive/5 p-3",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:l(y.titleKey,{label:f.label})}),n.jsx("ol",{className:"space-y-1 text-sm text-muted-foreground",children:y.stepKeys.map(W=>n.jsxs("li",{className:"flex gap-2",children:[n.jsx("span",{"aria-hidden":!0,children:"•"}),n.jsx("span",{children:l(W,{email:Ee})})]},W))})]}),e[62]=f.label,e[63]=y,e[64]=l,e[65]=q):q=e[65];let $;e[66]!==I.error||e[67]!==I.isError||e[68]!==l?($=I.isError&&n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:I.error instanceof Error?I.error.message:l("commerceOnboarding.saBindingForm.bindError")}),e[66]=I.error,e[67]=I.isError,e[68]=l,e[69]=$):$=e[69];let M;e[70]!==T||e[71]!==d||e[72]!==l?(M=d&&n.jsxs("p",{className:"text-sm leading-5 text-muted-foreground",children:[l("commerceOnboarding.saBinding.oauthNote")," ",n.jsx("button",{type:"button",onClick:d,disabled:T,className:"underline underline-offset-2 hover:text-foreground disabled:opacity-50",children:l("commerceOnboarding.saBindingForm.googleLoginAlternative")})]}),e[70]=T,e[71]=d,e[72]=l,e[73]=M):M=e[73];let z;e[74]!==l?(z=l("commerceOnboarding.saBindingForm.cancel"),e[74]=l,e[75]=z):z=e[75];let Y;e[76]!==T||e[77]!==u||e[78]!==z?(Y=n.jsx(Z,{type:"button",variant:"outline",onClick:u,disabled:T,children:z}),e[76]=T,e[77]=u,e[78]=z,e[79]=Y):Y=e[79];let F;e[80]!==T||e[81]!==l?(F=l(T?"commerceOnboarding.saBindingForm.verifying":"commerceOnboarding.saBindingForm.bind"),e[80]=T,e[81]=l,e[82]=F):F=e[82];let Q;e[83]!==T||e[84]!==F?(Q=n.jsx(Z,{type:"submit",disabled:T,children:F}),e[83]=T,e[84]=F,e[85]=Q):Q=e[85];let ne;e[86]!==Y||e[87]!==Q?(ne=n.jsxs(he,{className:"gap-2",children:[Y,Q]}),e[86]=Y,e[87]=Q,e[88]=ne):ne=e[88];let le;return e[89]!==A||e[90]!==B||e[91]!==q||e[92]!==$||e[93]!==M||e[94]!==ne?(le=n.jsxs("form",{onSubmit:A,className:"space-y-5",children:[B,q,$,M,ne]}),e[89]=A,e[90]=B,e[91]=q,e[92]=$,e[93]=M,e[94]=ne,e[95]=le):le=e[95],le}function oo(){const o=G.c(2);let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"size-9 shrink-0 animate-pulse rounded-lg bg-muted/60"}),o[0]=e):e=o[0];let t;return o[1]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{className:"flex items-center gap-3 rounded-2xl border border-border bg-card p-3 sm:h-full sm:flex-col sm:items-stretch sm:p-4",children:[e,n.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[n.jsx("div",{className:"h-4 w-24 animate-pulse rounded bg-muted/60"}),n.jsx("div",{className:"hidden h-3 w-full animate-pulse rounded bg-muted/60 sm:block"})]}),n.jsx("div",{className:"h-8 w-20 shrink-0 animate-pulse rounded-lg bg-muted/60 sm:mt-auto sm:w-full"})]}),o[1]=t):t=o[1],t}function He(o){const e=G.c(17),{title:t,disconnecting:i,disabled:s,onDisconnect:c}=o,r=te(),a=s||i;let u;e[0]!==r||e[1]!==t?(u=r("commerceOnboarding.companionCard.disconnectAriaLabel",{title:t}),e[0]=r,e[1]=t,e[2]=u):u=e[2];let p;e[3]!==i?(p=i?n.jsx(Re,{size:16,className:"animate-spin"}):n.jsx(Ut,{size:16}),e[3]=i,e[4]=p):p=e[4];let d;e[5]!==c||e[6]!==a||e[7]!==u||e[8]!==p?(d=n.jsx(Ae,{asChild:!0,children:n.jsx(Z,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0 text-muted-foreground hover:text-destructive",disabled:a,onClick:c,"aria-label":u,children:p})}),e[5]=c,e[6]=a,e[7]=u,e[8]=p,e[9]=d):d=e[9];let l;e[10]!==r?(l=r("commerceOnboarding.companionCard.disconnect"),e[10]=r,e[11]=l):l=e[11];let f;e[12]!==l?(f=n.jsx(Ke,{children:l}),e[12]=l,e[13]=f):f=e[13];let m;return e[14]!==d||e[15]!==f?(m=n.jsxs(De,{children:[d,f]}),e[14]=d,e[15]=f,e[16]=m):m=e[16],m}function io(o){const e=G.c(23),{card:t,connecting:i,disconnecting:s,disabled:c,onConnect:r,onDisconnect:a,org:u,selfClient:p,siteUrl:d,autoOpenConfigFieldKey:l,onAutoOpenConfigHandled:f}=o,m=t.linkedConnectionId,y=gt[t.bindingType],x=!!y&&t.boundVia!=="oauth",h=t.satisfied&&!t.configured;let b;e[0]!==l||e[1]!==t||e[2]!==i||e[3]!==c||e[4]!==s||e[5]!==m||e[6]!==h||e[7]!==f||e[8]!==r||e[9]!==a||e[10]!==u||e[11]!==y||e[12]!==p||e[13]!==d||e[14]!==x?(b=x&&y?n.jsx(so,{card:t,provider:y,org:u,selfClient:p,siteUrl:d,onOAuthInstead:r,disabled:c,connecting:i,primary:t.required}):t.satisfied&&m?h?n.jsxs("div",{className:"flex items-center justify-end gap-1 sm:justify-start",children:[n.jsx(H.Suspense,{fallback:n.jsx(Ge,{}),children:n.jsx(We,{card:t,org:u,selfClient:p,connectionId:m,contextSiteUrl:d,variant:"configure",disabled:c,autoOpen:Ve({autoOpenFieldKey:l,card:t}),onAutoOpenHandled:f})}),n.jsx(He,{title:t.title,disconnecting:s,disabled:c,onDisconnect:a})]}):n.jsx(ut,{detail:t.connectedDetail,controls:n.jsxs(n.Fragment,{children:[n.jsx(H.Suspense,{fallback:n.jsx(Ge,{}),children:n.jsx(We,{card:t,org:u,selfClient:p,connectionId:m,contextSiteUrl:d,variant:"gear",disabled:c,autoOpen:Ve({autoOpenFieldKey:l,card:t}),onAutoOpenHandled:f})}),n.jsx(He,{title:t.title,disconnecting:s,disabled:c,onDisconnect:a})]})}):n.jsx(dt,{connecting:i,disabled:c,title:t.title,primary:t.required,onConnect:r}),e[0]=l,e[1]=t,e[2]=i,e[3]=c,e[4]=s,e[5]=m,e[6]=h,e[7]=f,e[8]=r,e[9]=a,e[10]=u,e[11]=y,e[12]=p,e[13]=d,e[14]=x,e[15]=b):b=e[15];const g=b,S=t.required&&!t.satisfied;let C;return e[16]!==g||e[17]!==t.headline||e[18]!==t.icon||e[19]!==t.title||e[20]!==h||e[21]!==S?(C=n.jsx(n.Fragment,{children:n.jsx(Rn,{icon:t.icon,title:t.title,headline:t.headline,required:S,attention:h,action:g})}),e[16]=g,e[17]=t.headline,e[18]=t.icon,e[19]=t.title,e[20]=h,e[21]=S,e[22]=C):C=e[22],C}function so(o){const e=G.c(22),{card:t,provider:i,org:s,selfClient:c,siteUrl:r,onOAuthInstead:a,disabled:u,connecting:p,primary:d}=o,l=te(),[f,m]=H.useState(!1);let y;e[0]!==t.connectedDetail||e[1]!==t.satisfied||e[2]!==t.title||e[3]!==p||e[4]!==u||e[5]!==d||e[6]!==l?(y=t.satisfied?n.jsx(ut,{detail:t.connectedDetail,controls:n.jsxs(De,{children:[n.jsx(Ae,{asChild:!0,children:n.jsx(mt,{ariaLabel:l("commerceOnboarding.companionCard.configureAriaLabel",{title:t.title}),onClick:()=>m(!0)})}),n.jsx(Ke,{children:l("commerceOnboarding.companionCard.editConfiguration")})]})}):n.jsx(dt,{connecting:p,disabled:u,title:t.title,primary:d,onConnect:()=>m(!0)}),e[0]=t.connectedDetail,e[1]=t.satisfied,e[2]=t.title,e[3]=p,e[4]=u,e[5]=d,e[6]=l,e[7]=y):y=e[7];let x;e[8]!==t.satisfied||e[9]!==a?(x=t.satisfied?void 0:()=>{m(!1),a()},e[8]=t.satisfied,e[9]=a,e[10]=x):x=e[10];let h;e[11]!==t||e[12]!==f||e[13]!==s||e[14]!==i||e[15]!==c||e[16]!==r||e[17]!==x?(h=n.jsx(ro,{card:t,provider:i,org:s,selfClient:c,siteUrl:r,open:f,onOpenChange:m,onOAuthInstead:x}),e[11]=t,e[12]=f,e[13]=s,e[14]=i,e[15]=c,e[16]=r,e[17]=x,e[18]=h):h=e[18];let b;return e[19]!==y||e[20]!==h?(b=n.jsxs(n.Fragment,{children:[y,h]}),e[19]=y,e[20]=h,e[21]=b):b=e[21],b}function ro(o){const e=G.c(31),{card:t,provider:i,org:s,selfClient:c,siteUrl:r,open:a,onOpenChange:u,onOAuthInstead:p}=o,[d,l]=H.useState(!1);let f;e[0]!==u||e[1]!==d?(f=j=>{!j&&d||u(j)},e[0]=u,e[1]=d,e[2]=f):f=e[2];const m=f;let y;e[3]!==t.icon||e[4]!==t.title?(y=n.jsx(Fe,{icon:t.icon,name:t.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=t.icon,e[4]=t.title,e[5]=y):y=e[5];let x;e[6]!==t.title?(x=n.jsx(et,{className:"min-w-0 flex-1",children:t.title}),e[6]=t.title,e[7]=x):x=e[7];let h;e[8]!==y||e[9]!==x?(h=n.jsxs(tt,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[y,x]}),e[8]=y,e[9]=x,e[10]=h):h=e[10];let b;e[11]!==r?(b=un(r),e[11]=r,e[12]=b):b=e[12];const g=t.boundResource??void 0;let S;e[13]!==u?(S=()=>u(!1),e[13]=u,e[14]=S):S=e[14];let C;e[15]!==p||e[16]!==s||e[17]!==i||e[18]!==c||e[19]!==r||e[20]!==b||e[21]!==g||e[22]!==S?(C=n.jsx(no,{provider:i,siteUrl:r,siteHost:b,selfClient:c,org:s,initialResourceId:g,onDone:S,onIsPendingChange:l,onOAuthInstead:p}),e[15]=p,e[16]=s,e[17]=i,e[18]=c,e[19]=r,e[20]=b,e[21]=g,e[22]=S,e[23]=C):C=e[23];let v;e[24]!==h||e[25]!==C?(v=n.jsxs(nt,{"aria-describedby":void 0,className:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",children:[h,C]}),e[24]=h,e[25]=C,e[26]=v):v=e[26];let N;return e[27]!==m||e[28]!==a||e[29]!==v?(N=n.jsx(ot,{open:a,onOpenChange:m,children:v}),e[27]=m,e[28]=a,e[29]=v,e[30]=N):N=e[30],N}function Ge(){const o=G.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"size-8 shrink-0 animate-pulse rounded-lg bg-muted/60"}),o[0]=e):e=o[0],e}function We(o){const e=G.c(25),{card:t,org:i,selfClient:s,connectionId:c,contextSiteUrl:r,variant:a,disabled:u,autoOpen:p,onAutoOpenHandled:d}=o,l=te(),[f,m]=H.useState(p);let y;e[0]!==t.configurationState||e[1]!==l?(y=_n(t.configurationState,l),e[0]=t.configurationState,e[1]=l,e[2]=y):y=e[2];const x=y;let h;e[3]!==p||e[4]!==d?(h=()=>{m(!1),p&&d()},e[3]=p,e[4]=d,e[5]=h):h=e[5];const b=h;if(!ft[t.bindingType])return null;let g;e[6]!==t.title||e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==a?(g=a==="configure"?n.jsx(Ln,{disabled:u,title:t.title,onConfigure:()=>m(!0)}):n.jsxs(De,{children:[n.jsx(Ae,{asChild:!0,children:n.jsx(mt,{ariaLabel:l("commerceOnboarding.companionCard.configureAriaLabel",{title:t.title}),onClick:()=>m(!0)})}),n.jsx(Ke,{children:x.length>0?l("commerceOnboarding.companionCard.editConfiguration"):l("commerceOnboarding.companionCard.configure")})]}),e[6]=t.title,e[7]=u,e[8]=x,e[9]=l,e[10]=a,e[11]=g):g=e[11];const S=g;let C;e[12]!==b?(C=j=>j?m(!0):b(),e[12]=b,e[13]=C):C=e[13];let v;e[14]!==t||e[15]!==c||e[16]!==r||e[17]!==f||e[18]!==i||e[19]!==s||e[20]!==C?(v=n.jsx(ao,{card:t,org:i,selfClient:s,connectionId:c,contextSiteUrl:r,open:f,onOpenChange:C}),e[14]=t,e[15]=c,e[16]=r,e[17]=f,e[18]=i,e[19]=s,e[20]=C,e[21]=v):v=e[21];let N;return e[22]!==v||e[23]!==S?(N=n.jsxs(n.Fragment,{children:[S,v]}),e[22]=v,e[23]=S,e[24]=N):N=e[24],N}function ao(o){const e=G.c(59),{card:t,org:i,selfClient:s,connectionId:c,contextSiteUrl:r,open:a,onOpenChange:u}=o,p=te();let d;e[0]!==c||e[1]!==i.id||e[2]!==i.slug?(d={connectionId:c,orgId:i.id,orgSlug:i.slug},e[0]=c,e[1]=i.id,e[2]=i.slug,e[3]=d):d=e[3];const l=Le(d),[f,m]=H.useState(!1),y=Oe(),x=ft[t.bindingType];let h;e[4]!==c||e[5]!==s?(h=async()=>{await s.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:c,force:!0}})},e[4]=c,e[5]=s,e[6]=h):h=e[6];let b;e[7]!==t.title||e[8]!==u||e[9]!==i.id||e[10]!==y||e[11]!==p?(b=async()=>{await y.invalidateQueries({queryKey:X.commerceDiscoveryCompanionConnectionsPrefix(i.id)}),Ne.success(p("commerceOnboarding.companionCard.disconnectedSuccess",{title:t.title})),u(!1)},e[7]=t.title,e[8]=u,e[9]=i.id,e[10]=y,e[11]=p,e[12]=b):b=e[12];let g;e[13]!==p?(g=()=>{Ne.error(p("commerceOnboarding.companionCard.disconnectError"))},e[13]=p,e[14]=g):g=e[14];let S;e[15]!==h||e[16]!==b||e[17]!==g?(S={mutationFn:h,onSuccess:b,onError:g},e[15]=h,e[16]=b,e[17]=g,e[18]=S):S=e[18];const C=ve(S);if(!x)return null;let v;e[19]!==f||e[20]!==u?(v=L=>{!L&&f||u(L)},e[19]=f,e[20]=u,e[21]=v):v=e[21];const N=v;let j;e[22]!==t.icon||e[23]!==t.title?(j=n.jsx(Fe,{icon:t.icon,name:t.title,size:"sm",fit:"contain",className:"p-1"}),e[22]=t.icon,e[23]=t.title,e[24]=j):j=e[24];let O;e[25]!==t.title?(O=n.jsx(et,{children:t.title}),e[25]=t.title,e[26]=O):O=e[26];let w;e[27]!==t.title||e[28]!==p?(w=p("commerceOnboarding.companionCard.configureDescription",{title:t.title}),e[27]=t.title,e[28]=p,e[29]=w):w=e[29];let E;e[30]!==w?(E=n.jsx(qt,{children:w}),e[30]=w,e[31]=E):E=e[31];let _;e[32]!==E||e[33]!==O?(_=n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[O,E]}),e[32]=E,e[33]=O,e[34]=_):_=e[34];let k;e[35]!==_||e[36]!==j?(k=n.jsxs(tt,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[j,_]}),e[35]=_,e[36]=j,e[37]=k):k=e[37];let I;e[38]!==u?(I=()=>u(!1),e[38]=u,e[39]=I):I=e[39];let R;e[40]!==C?(R=()=>C.mutate(),e[40]=C,e[41]=R):R=e[41];let A;e[42]!==x||e[43]!==t||e[44]!==l||e[45]!==c||e[46]!==r||e[47]!==i||e[48]!==s||e[49]!==I||e[50]!==R?(A=n.jsx(x,{card:t,connectionId:c,companionClient:l,selfClient:s,org:i,contextSiteUrl:r,onDone:I,onDisconnect:R,onIsPendingChange:m}),e[42]=x,e[43]=t,e[44]=l,e[45]=c,e[46]=r,e[47]=i,e[48]=s,e[49]=I,e[50]=R,e[51]=A):A=e[51];let T;e[52]!==k||e[53]!==A?(T=n.jsxs(nt,{className:"sm:max-w-lg",children:[k,A]}),e[52]=k,e[53]=A,e[54]=T):T=e[54];let D;return e[55]!==N||e[56]!==a||e[57]!==T?(D=n.jsx(ot,{open:a,onOpenChange:N,children:T}),e[55]=N,e[56]=a,e[57]=T,e[58]=D):D=e[58],D}const $e={vtex:{registryAppId:"deco/vtex",area:"Catálogo",headline:"Rupturas e PDPs que travam suas vendas."},shopify:{registryAppId:"deco/shopify",area:"Catálogo",headline:"Pedidos, estoque e catálogo direto da sua Shopify."},"google-analytics":{registryAppId:"deco/google-analytics",area:"Funil",headline:"Onde a receita vaza no seu funil."},"google-search-console":{registryAppId:"deco/google-search-console",area:"Busca",headline:"O tráfego de busca que você deixa na mesa."},github:{registryAppId:"deco/mcp-github",area:"Engenharia",headline:"A saúde da entrega de código por trás da sua loja."}};function lo(o){const e=G.c(44),{selfClient:t,org:i,cdConnectionId:s,siteUrl:c}=o;let r;e[0]!==s||e[1]!==i.id||e[2]!==i.slug?(r={connectionId:s,orgId:i.id,orgSlug:i.slug},e[0]=s,e[1]=i.id,e[2]=i.slug,e[3]=r):r=e[3];const a=Le(r);let u;e[4]!==s||e[5]!==i.id?(u=X.commerceDiscoveryCompanionSchema(i.id,s),e[4]=s,e[5]=i.id,e[6]=u):u=e[6];let p;e[7]!==a?(p=async()=>{const V=await a.callTool({name:"MCP_CONFIGURATION",arguments:{}});return ee(V)},e[7]=a,e[8]=p):p=e[8];let d;e[9]!==u||e[10]!==p?(d={queryKey:u,queryFn:p,retry:!1},e[9]=u,e[10]=p,e[11]=d):d=e[11];const l=Se(d),f=l.data?.stateSchema?yn(l.data.stateSchema):null;let m;e[12]===Symbol.for("react.memo_cache_sentinel")?(m={strict:!1},e[12]=m):m=e[12];const{shopify:y}=wt(m);let x;e[13]!==y?(x=V=>V.bindingType!=="shopify"||y!=null,e[13]=y,e[14]=x):x=e[14];const h=(f&&f.length>0?f:xn).filter(x),b=h.map(xo),g=h.map(yo).filter(bo),S=h.filter(ho).map(po),C=[...g,...S].sort().join(",");let v;e[15]!==s||e[16]!==i.id?(v=X.commerceDiscoveryConnection(i.id,s),e[15]=s,e[16]=i.id,e[17]=v):v=e[17];let N;e[18]!==s||e[19]!==t?(N=async()=>{const V=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:s}});return ee(V)},e[18]=s,e[19]=t,e[20]=N):N=e[20];let j;e[21]!==v||e[22]!==N?(j={queryKey:v,queryFn:N},e[21]=v,e[22]=N,e[23]=j):j=e[23];const w=_e(j).data?.item?.configuration_state??null;let E;e[24]!==w?(E=V=>w?.[V.fieldKey]?.value,e[24]=w,e[25]=E):E=e[25];const _=h.map(E).filter(go),k=[...b.map(fo),...g.map(mo),..._.map(uo)].sort().join(","),R=_e({queryKey:X.commerceDiscoveryCompanionConnections(i.id,k),queryFn:async()=>{if(h.length===0)return{items:[]};const V=[{field:["app_name"],operator:"in",value:b},{field:["app_id"],operator:"in",value:g}];_.length>0&&V.push({field:["id"],operator:"in",value:_});const ce=await t.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{operator:"or",conditions:V},limit:1e3}});return ee(ce)}}).data?.items??[],A=new Set(_),T=R.filter(V=>A.has(V.id)),D=T.filter(co);let L;e[26]!==i.id||e[27]!==i.slug?(L=V=>({queryKey:X.commerceDiscoveryCompanionOAuthStatus(i.id,V.id),queryFn:async()=>{try{const ce=await fetch(`/api/${encodeURIComponent(i.slug)}/connections/${encodeURIComponent(V.id)}/oauth-token/status`,{credentials:"include"});return ce.ok?{hasToken:(await ce.json()).hasToken===!0}:{hasToken:!1}}catch{return{hasToken:!1}}},retry:!1}),e[26]=i.id,e[27]=i.slug,e[28]=L):L=e[28];const K=rn({queries:D.map(L)});let P;e[29]!==K?(P=(V,ce)=>[V.id,K[ce]?.data?.hasToken===!0],e[29]=K,e[30]=P):P=e[30];const U=new Map(D.map(P)),B={};for(const V of T)B[V.id]=!V.oauth_config||!!V.connection_token||U.get(V.id)===!0;const q=_e({queryKey:X.commerceDiscoveryCompanionRegistry(i.id,C),queryFn:async()=>{if(h.length===0)return{items:[]};const V=Cn(g,S),ce=await Mt(Je.REGISTRY(i.id),i.id,i.slug,"COLLECTION_REGISTRY_APP_LIST",{...V?{where:V}:{},limit:1e3});return ee(ce)}}),$={},M={};for(const V of q.data?.items??[])$[V.id]=V,V.server?.name&&(M[V.server.name]=V);let z;e[31]!==i.id||e[32]!==c?(z=X.commerceDiscoveryConnectionStatus(i.id,c??""),e[31]=i.id,e[32]=c,e[33]=z):z=e[33];const Y=!!c;let F;e[34]!==t||e[35]!==c?(F=async()=>{const V=await t.callTool({name:"COMMERCE_DISCOVERY_CONNECTION_STATUS",arguments:{siteUrl:c}});return ee(V)},e[34]=t,e[35]=c,e[36]=F):F=e[36];let Q;e[37]!==z||e[38]!==Y||e[39]!==F?(Q={queryKey:z,enabled:Y,queryFn:F},e[37]=z,e[38]=Y,e[39]=F,e[40]=Q):Q=e[40];const ne=Se(Q),le={};for(const[V,ce]of Object.entries(gt)){const je=ne.data?.providers?.[ce];je?.connected&&je.via==="sa"&&(le[V]={resource:je.resource??null})}const W=!!c&&(ne.isError||ne.data?.claimed===!1),J=En({requirements:h,itemsById:$,itemsByName:M,connections:R,connectionReadiness:B,configurationState:w,curated:$e,saBindings:le});let de;return e[41]!==J||e[42]!==W?(de={cards:J,saStatusUnavailable:W},e[41]=J,e[42]=W,e[43]=de):de=e[43],de}function co(o){return o.oauth_config&&!o.connection_token}function uo(o){return`linked:${o}`}function mo(o){return`app:${o}`}function fo(o){return`binding:${o}`}function go(o){return typeof o=="string"&&o.length>0}function po(o){return o.bindingType}function ho(o){return!$e[o.bindingType]}function bo(o){return!!o}function yo(o){return $e[o.bindingType]?.registryAppId}function xo(o){return o.bindingType}function Jo(o){const e=G.c(9),{selfClient:t,org:i,cdConnectionId:s}=o;let c;e[0]!==s||e[1]!==i.id?(c=X.commerceDiscoveryConnection(i.id,s),e[0]=s,e[1]=i.id,e[2]=c):c=e[2];let r;e[3]!==s||e[4]!==t?(r=async()=>{const d=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:s}});return ee(d)},e[3]=s,e[4]=t,e[5]=r):r=e[5];let a;e[6]!==c||e[7]!==r?(a={queryKey:c,queryFn:r,retry:!1},e[6]=c,e[7]=r,e[8]=a):a=e[8];const p=_e(a).data.item?.metadata?.siteUrl;return typeof p=="string"?p:void 0}function Co({selfClient:o,org:e,userId:t,cdConnectionId:i,domain:s,siteUrl:c}){const r=Oe(),[a,u]=H.useState(null),[p,d]=H.useState(null),[l,f]=H.useState(null),m=async(h,b)=>{const g=await o.callTool({name:"COLLECTION_CONNECTIONS_UPDATE",arguments:{id:h,data:b}});return ee(g)};async function y(h){u(h.fieldKey),f(null);const b={app_name:h.title,field_key:h.fieldKey,organization_id:e.id,domain:s,site_url:c};ue("commerce_onboarding_companion_connect_clicked",b);try{let g=h.candidateConnectionId;if(!g){const O=Qt(h.registryItem,e.id,t,{remoteIndex:0}),w=O.connection_type==="STDIO",E=!!O.connection_url,_=w&&O.connection_headers&&typeof O.connection_headers=="object"&&"command"in O.connection_headers;if(!E&&!_)return ue("commerce_onboarding_companion_connect_failed",{...b,error:"no_connection_method"}),f(`${h.title} cannot be connected: no connection method available`),!1;const k=await o.callTool({name:"COLLECTION_CONNECTIONS_CREATE",arguments:{data:O}});g=ee(k).item.id}const S=g,C=await tn({connectionId:S,orgId:e.id,orgSlug:e.slug,persistFallback:O=>m(S,{connection_token:O}).then(()=>{})});if(!C.ok)return ue("commerce_onboarding_companion_connect_failed",{...b,error:C.error}),f(`Couldn't sign in to ${h.title}: ${C.error}`),!1;const v=await o.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:i}}),N=ee(v).item?.configuration_state??null,j=Sn(N,h.fieldKey,h.bindingType,S);return h.bindingType==="github"&&delete j.github_repo,await m(i,{configuration_state:j}),await r.invalidateQueries({queryKey:X.commerceDiscoveryConnection(e.id,i)}),await r.invalidateQueries({queryKey:X.commerceDiscoveryCompanionConnectionsPrefix(e.id)}),ue("commerce_onboarding_companion_connected",b),!0}catch(g){return ue("commerce_onboarding_companion_connect_failed",{...b,error:g instanceof Error?g.message:String(g)}),f(g instanceof Error?g.message:String(g)),!1}finally{u(null)}}async function x(h){d(h.fieldKey),f(null);const b={app_name:h.title,field_key:h.fieldKey,organization_id:e.id,domain:s,site_url:c};ue("commerce_onboarding_companion_disconnect_clicked",b);try{const g=await o.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:i}}),C={...ee(g).item?.configuration_state??null??{}};return delete C[h.fieldKey],h.bindingType==="github"&&delete C.github_repo,await m(i,{configuration_state:C}),await r.invalidateQueries({queryKey:X.commerceDiscoveryConnection(e.id,i)}),await r.invalidateQueries({queryKey:X.commerceDiscoveryCompanionConnectionsPrefix(e.id)}),ue("commerce_onboarding_companion_disconnected",b),!0}catch(g){return ue("commerce_onboarding_companion_disconnect_failed",{...b,error:g instanceof Error?g.message:String(g)}),f(g instanceof Error?g.message:String(g)),!1}finally{d(null)}}return{connect:y,connectingFieldKey:a,disconnect:x,disconnectingFieldKey:p,error:l}}const qe="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function Ue(){const o=G.c(4),e=te();let t;o[0]!==e?(t=e("routes.commerceOnboarding.companionSection.title"),o[0]=e,o[1]=t):t=o[1];let i;return o[2]!==t?(i=n.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:t}),o[2]=t,o[3]=i):i=o[3],i}function So(){const o=G.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(Oo)}),o[0]=e):e=o[0],e}function Oo(o){return n.jsx(oo,{},o)}function vo(){const o=G.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsxs("div",{className:qe,children:[n.jsx(Ue,{}),n.jsx(So,{})]}),o[0]=e):e=o[0],e}function jo(o){const e=G.c(18),{onRetry:t}=o,i=te();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ue,{}),e[0]=s):s=e[0];let c;e[1]!==i?(c=i("routes.commerceOnboarding.companionSection.loadError"),e[1]=i,e[2]=c):c=e[2];let r;e[3]!==c?(r=n.jsx("p",{className:"text-sm text-foreground",children:c}),e[3]=c,e[4]=r):r=e[4];let a;e[5]!==i?(a=i("routes.commerceOnboarding.companionSection.loadErrorDescription"),e[5]=i,e[6]=a):a=e[6];let u;e[7]!==a?(u=n.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==i?(p=i("routes.commerceOnboarding.companionSection.retry"),e[9]=i,e[10]=p):p=e[10];let d;e[11]!==t||e[12]!==p?(d=n.jsx(Z,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:t,children:p}),e[11]=t,e[12]=p,e[13]=d):d=e[13];let l;return e[14]!==r||e[15]!==u||e[16]!==d?(l=n.jsxs("div",{className:qe,children:[s,n.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[r,u,d]})]}),e[14]=r,e[15]=u,e[16]=d,e[17]=l):l=e[17],l}function ei(o){const e=G.c(2);let t;return e[0]!==o?(t=n.jsx(Et,{children:i=>{const{reset:s}=i;return n.jsx(It,{fallback:c=>{const{resetError:r}=c;return n.jsx(jo,{onRetry:()=>{s(),r()}})},children:n.jsx(H.Suspense,{fallback:n.jsx(vo,{}),children:n.jsx(_o,{...o})})})}}),e[0]=o,e[1]=t):t=e[1],t}function _o(o){const e=G.c(60),{org:t,cdConnectionId:i,siteUrl:s,onReadinessChange:c}=o,r=te(),{data:a}=Ze.useSession(),u=a?.user?.id??"";let p;if(e[0]!==s){const U=s?Te(s):null;if(U?.ok)try{p=new URL(U.value).hostname}catch{p=void 0}e[0]=s,e[1]=p}else p=e[1];let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:$t,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const l=Le(d);let f;e[5]!==i||e[6]!==t||e[7]!==l||e[8]!==s?(f={selfClient:l,org:t,cdConnectionId:i,siteUrl:s},e[5]=i,e[6]=t,e[7]=l,e[8]=s,e[9]=f):f=e[9];const{cards:m,saStatusUnavailable:y}=lo(f);let x;e[10]!==i||e[11]!==t||e[12]!==l||e[13]!==p||e[14]!==s||e[15]!==u?(x={selfClient:l,org:t,userId:u,cdConnectionId:i,domain:p,siteUrl:s},e[10]=i,e[11]=t,e[12]=l,e[13]=p,e[14]=s,e[15]=u,e[16]=x):x=e[16];const{connect:h,connectingFieldKey:b,disconnect:g,disconnectingFieldKey:S,error:C}=Co(x),[v,N]=H.useState(null),j=wo;let O,w,E,_,k,I,R,A,T,D;if(e[17]!==v||e[18]!==m||e[19]!==h||e[20]!==C||e[21]!==b||e[22]!==g||e[23]!==S||e[24]!==c||e[25]!==t||e[26]!==y||e[27]!==l||e[28]!==s||e[29]!==r){_=Symbol.for("react.early_return_sentinel");e:{const U=m.filter(To),B=m.filter(No),q=y||(U.length>0?U.every(j):m.length===0||m.some(j));if(c?.(q),m.length===0){_=null;break e}const $=b!==null||S!==null,M=z=>{const Y=async()=>{await h(z)&&N(z.fieldKey)};return n.jsx(io,{card:z,connecting:b===z.fieldKey,disconnecting:S===z.fieldKey,disabled:$&&b!==z.fieldKey&&S!==z.fieldKey,org:t,selfClient:l,siteUrl:s,autoOpenConfigFieldKey:v,onAutoOpenConfigHandled:()=>N(F=>F===z.fieldKey?null:F),onConnect:()=>{Y()},onDisconnect:()=>{g(z)}},z.fieldKey)};w=qe,e[40]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(Ue,{}),e[40]=E):E=e[40],O=gn,R="flex min-h-0 flex-1 flex-col md:block",A="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==C?(T=C&&n.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:C}),e[41]=C,e[42]=T):T=e[42],e[43]!==y||e[44]!==r?(D=y&&n.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:r("routes.commerceOnboarding.companionSection.statusUnavailable")}),e[43]=y,e[44]=r,e[45]=D):D=e[45],k="flex flex-col gap-4 pt-3",I=[...U,...B].map(M)}e[17]=v,e[18]=m,e[19]=h,e[20]=C,e[21]=b,e[22]=g,e[23]=S,e[24]=c,e[25]=t,e[26]=y,e[27]=l,e[28]=s,e[29]=r,e[30]=O,e[31]=w,e[32]=E,e[33]=_,e[34]=k,e[35]=I,e[36]=R,e[37]=A,e[38]=T,e[39]=D}else O=e[30],w=e[31],E=e[32],_=e[33],k=e[34],I=e[35],R=e[36],A=e[37],T=e[38],D=e[39];if(_!==Symbol.for("react.early_return_sentinel"))return _;let L;e[46]!==k||e[47]!==I?(L=n.jsx("div",{className:k,children:I}),e[46]=k,e[47]=I,e[48]=L):L=e[48];let K;e[49]!==O||e[50]!==L||e[51]!==R||e[52]!==A||e[53]!==T||e[54]!==D?(K=n.jsxs(O,{wrapperClassName:R,className:A,children:[T,D,L]}),e[49]=O,e[50]=L,e[51]=R,e[52]=A,e[53]=T,e[54]=D,e[55]=K):K=e[55];let P;return e[56]!==w||e[57]!==E||e[58]!==K?(P=n.jsxs("div",{className:w,children:[E,K]}),e[56]=w,e[57]=E,e[58]=K,e[59]=P):P=e[59],P}function No(o){return!o.required}function To(o){return o.required}function wo(o){return o.satisfied&&o.configured}function Eo(o){return o.content?.find(e=>e.text)?.text??"A configuração do Commerce Discovery falhou."}function ti(o){const e=o;if(e.isError)throw new Error(Eo(e));return e.structuredContent??o}export{Xo as C,Be as L,gt as P,gn as S,vo as a,ei as b,sn as c,Jo as d,lo as e,Co as f,ao as g,ro as h,Zo as i,Te as n,ti as p,un as s,ee as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BMOaLqvZ.js","assets/index-BBRJNtmH.js","assets/index-DJP7bbyy.css","assets/Tool02-CsZgjFzA.js","assets/CheckCircle-DQ9aTnwR.js","assets/Settings02-CC4ctYGk.js","assets/use-mcp-client-DIdeBM-1.js","assets/auth-rpigiacl.js","assets/useInfiniteQuery-BQiVV0oj.js","assets/use-infinite-scroll-ByIx5ouV.js","assets/studio-tools-B6g4N5FI.js","assets/badge-Cas2bCNi.js","assets/input-CVWmJeP8.js","assets/dropdown-menu-Bfms7wBO.js","assets/Check-BIikNJHT.js","assets/ChevronRight-DyBO26qu.js","assets/DotsVertical-80JuUbZo.js","assets/table-CKDYn3_9.js","assets/toggle-group-CeQ4YWZf.js","assets/use-view-mode-CUDayvHj.js","assets/use-mobile-Dft3OSMG.js","assets/FilterLines-Dr49DZdh.js","assets/Globe01-OCURl-jK.js","assets/SearchMd-DDQExsKm.js","assets/dialog-Dc18mYsw.js","assets/X-rREmtfNp.js","assets/AlertCircle-YQxHSax5.js","assets/Upload01-BsVyz4V9.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-6RY9OFMU.js","assets/card-Ddv3KZ3L.js","assets/Trash01-BTTdRvpb.js","assets/label-dErkEvp_.js","assets/select-q9xgW4iO.js","assets/tooltip-B1CrfINu.js","assets/ChevronDown-BCBD1lCM.js","assets/ChevronUp-4GrPVBXB.js","assets/switch-Bo7mhYiG.js","assets/textarea-SYXzYI26.js","assets/ArrowLeft-uKgU3ony.js","assets/XCircle-Dzbm-V8w.js","assets/checkbox-BoqoK7BS.js","assets/Eye-DxEzo7bk.js","assets/LinkExternal01-DwkgpRm7.js","assets/use-copy-BYU5x0Qr.js","assets/Copy01-9ZEX7QwO.js","assets/Key01-Dw63qjDV.js","assets/Plus-DhOAxg-b.js","assets/mcp-oauth-CxL1q4pI.js","assets/Play-sV8AcOZ6.js"])))=>i.map(i=>d[i]);
2
- import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-BBRJNtmH.js";import{R as u}from"./require-capability-oHIe20aN.js";import"./use-capability-CrNEo5Cy.js";import"./access-gate-BoYBSFfy.js";import"./capability-load-error-CEw4LpSO.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BMOaLqvZ.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,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(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{j as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-ByIx5ouV.js";import{e5 as i}from"./index-BBRJNtmH.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-ByIx5ouV.js";import{e5 as u,b2 as n}from"./index-BBRJNtmH.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};