decocms 4.243.2 → 4.243.3

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 (236) hide show
  1. package/dist/client/assets/{AlertCircle-DUlfht_8.js → AlertCircle-CuSxtNeK.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Cb6V67gW.js → AreaChart-BhInMTEb.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-xr5VbHB2.js → ArrowLeft-yTJ7VhMO.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CsCHH_fH.js → ArrowUp-B0kiHs6M.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-M9WAVHfb.js → ArrowUpRight-BjeBnQVZ.js} +1 -1
  6. package/dist/client/assets/{Check-BXav60Vy.js → Check-BWhEi7Rw.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-C2PmPe-o.js → CheckCircle-Cl3Ju3Sg.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-CauLatdX.js → ChevronDown-Dkh4z_Q1.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-BGcGReEM.js → ChevronRight-CcnXyfrQ.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-CvdZht1v.js → ChevronSelectorVertical-DWTdcOUT.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-D_tIdiJb.js → ChevronUp-BiCZM38g.js} +1 -1
  12. package/dist/client/assets/{Copy01-CV1JugLX.js → Copy01-D8j7FbTr.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-B_w5eexh.js → CreditCard01-BbexFch7.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-fn24sGZC.js → DotsVertical-CeLFQvGz.js} +1 -1
  15. package/dist/client/assets/{Download01-D3eJDAEO.js → Download01-OSJdhzs0.js} +1 -1
  16. package/dist/client/assets/{Eye-BhHZY2CZ.js → Eye-DED_vrlB.js} +1 -1
  17. package/dist/client/assets/{FilterLines-BWjLIxVc.js → FilterLines-Jo1sXCBM.js} +1 -1
  18. package/dist/client/assets/{Globe01-DdUoMsv3.js → Globe01-BEBqbxVK.js} +1 -1
  19. package/dist/client/assets/{Globe04-B-w3WEq9.js → Globe04-Cr0sBpJ3.js} +1 -1
  20. package/dist/client/assets/{HardDrive-BFP4nRun.js → HardDrive-BfnitxKr.js} +1 -1
  21. package/dist/client/assets/{Key01-Cfe0Tudx.js → Key01-D7jDDN63.js} +1 -1
  22. package/dist/client/assets/{LayoutLeft-BEpfII_o.js → LayoutLeft-DptfEqfx.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-D25gdGqj.js → LinkExternal01-GrKKBhvU.js} +1 -1
  24. package/dist/client/assets/{LockUnlocked01-P_wfDROK.js → LockUnlocked01-BlcehP5l.js} +1 -1
  25. package/dist/client/assets/{LogOut01-DBKmS50y.js → LogOut01-DGM6h5Gc.js} +1 -1
  26. package/dist/client/assets/{Monitor01-BhLjoS2b.js → Monitor01-DgmwLiwU.js} +1 -1
  27. package/dist/client/assets/{Palette-aeV8tQ28.js → Palette-Dw_H03tG.js} +1 -1
  28. package/dist/client/assets/{Play-BdOAMmIp.js → Play-DljDr1nY.js} +1 -1
  29. package/dist/client/assets/{Plus-D1J2FK4h.js → Plus-CsECKBMf.js} +1 -1
  30. package/dist/client/assets/{SearchLg-BzCLzG8R.js → SearchLg-ofEWcNI2.js} +1 -1
  31. package/dist/client/assets/{SearchMd-xpLLk_pA.js → SearchMd-8SfAOvdD.js} +1 -1
  32. package/dist/client/assets/{Settings02-DjFkLPe4.js → Settings02-Blmgs5fo.js} +1 -1
  33. package/dist/client/assets/{Share07-Caa0Im56.js → Share07-DSvCzHkq.js} +1 -1
  34. package/dist/client/assets/{Shield01-D5NbAsUv.js → Shield01-D6VUNXFt.js} +1 -1
  35. package/dist/client/assets/{Stars01-CCBcRCds.js → Stars01-BME_OpjX.js} +1 -1
  36. package/dist/client/assets/{Stars02-DtoiSIcu.js → Stars02-qDjx3qRw.js} +1 -1
  37. package/dist/client/assets/{Sun-Dpvmek-4.js → Sun-CVd4NlmJ.js} +1 -1
  38. package/dist/client/assets/{SwitchHorizontal01-C5wQU73g.js → SwitchHorizontal01-CHaAGJb5.js} +1 -1
  39. package/dist/client/assets/{Tool01-XzYGP86W.js → Tool01-CZcPEql4.js} +1 -1
  40. package/dist/client/assets/{Tool02-CE2ZdUr1.js → Tool02-D94HhDSt.js} +1 -1
  41. package/dist/client/assets/{Trash01-BnQQflAa.js → Trash01-DfFghvja.js} +1 -1
  42. package/dist/client/assets/{TrendUp01-BdIQtpYk.js → TrendUp01-D2icRO71.js} +1 -1
  43. package/dist/client/assets/{Upload01-Bhqh3Tbq.js → Upload01-ChI2cFzq.js} +1 -1
  44. package/dist/client/assets/{User01-C1NHQ-ZR.js → User01-DKPUJiII.js} +1 -1
  45. package/dist/client/assets/{Users01-CMhcYnus.js → Users01-CqGkFGjh.js} +1 -1
  46. package/dist/client/assets/{Users03-BNksnLQf.js → Users03-DW0z1cHZ.js} +1 -1
  47. package/dist/client/assets/{X-DY9FeXqi.js → X-BtFSIdFW.js} +1 -1
  48. package/dist/client/assets/{XCircle-_aQH9vJz.js → XCircle-BQeEwYoS.js} +1 -1
  49. package/dist/client/assets/{XClose-DdNRdfWH.js → XClose-CM76fdj5.js} +1 -1
  50. package/dist/client/assets/{YAxis-DLOWdC_A.js → YAxis-DmPlF37P.js} +1 -1
  51. package/dist/client/assets/{Zap-DDihnv3P.js → Zap-D75NTam5.js} +1 -1
  52. package/dist/client/assets/{ZapSquare-Bv6t7Fg1.js → ZapSquare-npbtUsou.js} +1 -1
  53. package/dist/client/assets/{access-gate-wLBW4P-Z.js → access-gate-Bm5-g285.js} +1 -1
  54. package/dist/client/assets/{agent-icon-5ZYno8Im.js → agent-icon-C6CE6B1A.js} +1 -1
  55. package/dist/client/assets/{agents-list-7wqeXOXn.js → agents-list-BEws5GXl.js} +1 -1
  56. package/dist/client/assets/{ai-providers-BJDhlXiK.js → ai-providers-Bgd799GQ.js} +1 -1
  57. package/dist/client/assets/{alert-B6Fmol8n.js → alert-cnnpPo_c.js} +1 -1
  58. package/dist/client/assets/{alert-dialog-BOUVk-xM.js → alert-dialog-CnMgtfdW.js} +1 -1
  59. package/dist/client/assets/{api-keys-DGMyGe_V.js → api-keys-DHYf5t_K.js} +1 -1
  60. package/dist/client/assets/{app-editor-BQTeUJlT.js → app-editor-DTF8cpn_.js} +1 -1
  61. package/dist/client/assets/{auth-Clf3KXjv.js → auth-DFdi28KE.js} +1 -1
  62. package/dist/client/assets/{auth-catchall-CPPqDGgA.js → auth-catchall-C7_pZGo8.js} +1 -1
  63. package/dist/client/assets/{auth-entry-PFcfNCN7.js → auth-entry-BmAyPYZA.js} +1 -1
  64. package/dist/client/assets/{auth-split-layout-5_o-m_dm.js → auth-split-layout-C3AbOxQI.js} +1 -1
  65. package/dist/client/assets/{authenticate-and-persist-oauth-BUQ1Xi6C.js → authenticate-and-persist-oauth-CVy8SmOS.js} +1 -1
  66. package/dist/client/assets/{automation-list-row-DRZedCha.js → automation-list-row-D3LLXeW2.js} +1 -1
  67. package/dist/client/assets/{automation-runs-DaNWyAAB.js → automation-runs-Cdbs80Nd.js} +1 -1
  68. package/dist/client/assets/{automations-BBd2nZBY.js → automations-DYOKnIPu.js} +1 -1
  69. package/dist/client/assets/{avatar-CsESGb5P.js → avatar-B3ZGJil4.js} +1 -1
  70. package/dist/client/assets/{badge-BtBZ1HPJ.js → badge-C8fPXo-a.js} +1 -1
  71. package/dist/client/assets/{billing-Bgr3WIC0.js → billing-BKttQ7lV.js} +1 -1
  72. package/dist/client/assets/{block-document-BKnVO5ZG.js → block-document-BV-Mh0s9.js} +1 -1
  73. package/dist/client/assets/{buckets-Cg0MlwAj.js → buckets-DzUhlTvc.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-BHhnBX-y.js → bulk-category-panel-BtHm8_Pg.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BasK1UyG.js → capability-load-error-CufiHkz1.js} +1 -1
  76. package/dist/client/assets/{card-CKXxuGX6.js → card-Ddaqd3Zk.js} +1 -1
  77. package/dist/client/assets/{cards-BIJ-5lG1.js → cards-wK6-56Nx.js} +1 -1
  78. package/dist/client/assets/{category-editor-BInGd-ra.js → category-editor-H4n3VLkb.js} +1 -1
  79. package/dist/client/assets/{chart-CkOpSzxv.js → chart-DBZ1RgLk.js} +1 -1
  80. package/dist/client/assets/{chat-context-DAVuFXb-.js → chat-context-De4L0q1Y.js} +1 -1
  81. package/dist/client/assets/{checkbox-BmMgY8o7.js → checkbox-0ZGq3_WX.js} +1 -1
  82. package/dist/client/assets/{choose-editor-BGZ5cx6T.js → choose-editor-Di32NUDr.js} +1 -1
  83. package/dist/client/assets/{cli-auth-success-CRaZ-XOY.js → cli-auth-success-k2V7fWga.js} +1 -1
  84. package/dist/client/assets/{collection-detail-CjMlAcj7.js → collection-detail-Bg6wE0u2.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-C5Ypy8cN.js → collection-display-button-BtqBrVbv.js} +1 -1
  86. package/dist/client/assets/{collection-search-Dc8oos2w.js → collection-search-CK7O8FdH.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-BqCUWVdp.js → collection-table-wrapper-BG4wVZP6.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-DQs6Id7F.js → collection-tabs-FIQJwRaW.js} +1 -1
  89. package/dist/client/assets/{command-CckioSee.js → command-vPhfY36h.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-D33mAwVV.js → commerce-onboarding-CtIDsigO.js} +1 -1
  91. package/dist/client/assets/{connect-B2Kdp8ut.js → connect-MVEyB_DY.js} +1 -1
  92. package/dist/client/assets/{connection-DawcOkII.js → connection-BvgHOLyz.js} +1 -1
  93. package/dist/client/assets/{connection-card-JINQJoK5.js → connection-card-BLIw_a1j.js} +1 -1
  94. package/dist/client/assets/{connection-detail-Db3nTX8u.js → connection-detail-Dsmv667U.js} +1 -1
  95. package/dist/client/assets/{connection-form-helpers-Shqj1MAl.js → connection-form-helpers-Cw35M10D.js} +1 -1
  96. package/dist/client/assets/{connections-BcEtHf8S.js → connections-yU5SBqu6.js} +1 -1
  97. package/dist/client/assets/{decopilot-sse-pool-DLTV1od0.js → decopilot-sse-pool-kwySiqKG.js} +1 -1
  98. package/dist/client/assets/{dialog-U03ZiuXk.js → dialog-BK6S7VwB.js} +1 -1
  99. package/dist/client/assets/{domain-settings-CDI7Fjmq.js → domain-settings-CwRNHpIw.js} +1 -1
  100. package/dist/client/assets/{drawer-qjynKTFN.js → drawer-FqIoDVIr.js} +1 -1
  101. package/dist/client/assets/{dropdown-menu-BmoCpvnT.js → dropdown-menu-B1JSlTD_.js} +1 -1
  102. package/dist/client/assets/{empty-state-PrJglZio.js → empty-state-CxAWbdY-.js} +1 -1
  103. package/dist/client/assets/{extract-connection-data-GB3welMi.js → extract-connection-data-00PBSu9m.js} +1 -1
  104. package/dist/client/assets/{file-explorer-BUj_Z3iJ.js → file-explorer-By8vco7j.js} +1 -1
  105. package/dist/client/assets/{file-type-icon-DNO6EG6W.js → file-type-icon-CXxndZ83.js} +1 -1
  106. package/dist/client/assets/{form-BlkhuHf9.js → form-BNi0RaBk.js} +1 -1
  107. package/dist/client/assets/{general-BSW7_Voe.js → general-DmAnTR4-.js} +1 -1
  108. package/dist/client/assets/{github-repo-picker-D56QHlTy.js → github-repo-picker-0Zs4vHpN.js} +1 -1
  109. package/dist/client/assets/{hooks-B2woSXLe.js → hooks-DbnDcmhx.js} +1 -1
  110. package/dist/client/assets/{index-CToZ4kbL.js → index-CGNN36Wl.js} +1 -1
  111. package/dist/client/assets/{index-CY3hVAON.js → index-CKdjonaE.js} +1 -1
  112. package/dist/client/assets/{index-DLyxjIYw.js → index-CpgCWtjx.js} +3 -3
  113. package/dist/client/assets/{index-Chdg8Asw.js → index-D4Ub7xVy.js} +1 -1
  114. package/dist/client/assets/{index-Djodm3GI.js → index-DCq5o1FM.js} +1 -1
  115. package/dist/client/assets/{index-DlSq7kji.js → index-DRHw4bnY.js} +1 -1
  116. package/dist/client/assets/{index-D-cW_7z2.js → index-DeJebm9f.js} +1 -1
  117. package/dist/client/assets/{index-AXIuo6hf.js → index-DeaF485t.js} +1 -1
  118. package/dist/client/assets/{index-j097lZOT.js → index-Dj5G-Wd_.js} +5 -5
  119. package/dist/client/assets/{index-D5A_cbaj.js → index-E5vfXAxq.js} +1 -1
  120. package/dist/client/assets/{index-redirect-C__5RhjR.js → index-redirect-BRJtROcY.js} +1 -1
  121. package/dist/client/assets/{infra-billing-CI8pxTWO.js → infra-billing-fJt1hRFw.js} +1 -1
  122. package/dist/client/assets/{input-BH7zyD0i.js → input-C6rsOog9.js} +1 -1
  123. package/dist/client/assets/{integration-icon-BolSFCMJ.js → integration-icon-DydPPrfR.js} +1 -1
  124. package/dist/client/assets/{invite-member-dialog-Cfb_Sthq.js → invite-member-dialog-T6-FgGbs.js} +1 -1
  125. package/dist/client/assets/{label-Cwuc9phK.js → label-D6Yx_7uP.js} +1 -1
  126. package/dist/client/assets/{layout-BEPQVUxl.js → layout-B10ecSfc.js} +1 -1
  127. package/dist/client/assets/{login-C2AFfDb-.js → login-WH7hiK4U.js} +1 -1
  128. package/dist/client/assets/{mcp-oauth-BmzTS1ua.js → mcp-oauth-Cui8s0cH.js} +1 -1
  129. package/dist/client/assets/{members-D7MXmyE1.js → members--mTkFhho.js} +1 -1
  130. package/dist/client/assets/{monaco-editor-DBmhJ8Ys.js → monaco-editor-BEAC220f.js} +1 -1
  131. package/dist/client/assets/{monitoring-stats-row-DfEDCsLl.js → monitoring-stats-row-DoixcCOl.js} +1 -1
  132. package/dist/client/assets/{multi-select-C2Dia25c.js → multi-select-DzY9-Blg.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-D_WAqpRo.js → oauth-callback-C2XzKFZm.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-BhA1cp1j.js → oauth-callback-ai-provider-BcETnJjH.js} +1 -1
  135. package/dist/client/assets/{onboarding-uuvWd04L.js → onboarding-BI0Axo10.js} +1 -1
  136. package/dist/client/assets/{org-layout-D-9MtDux.js → org-layout-C0wabVjK.js} +1 -1
  137. package/dist/client/assets/{organization-choice-YKPoOAc0.js → organization-choice-DMdWOo0N.js} +1 -1
  138. package/dist/client/assets/{orgs-DgzYCdTa.js → orgs-0DCDAYKy.js} +1 -1
  139. package/dist/client/assets/{page-seo-form-GRyqYD3q.js → page-seo-form-D07jUxis.js} +1 -1
  140. package/dist/client/assets/{popover-9hL99Gs4.js → popover-BGQD6--h.js} +1 -1
  141. package/dist/client/assets/{post-editor-B2P499Gv.js → post-editor-7-EOJs-h.js} +1 -1
  142. package/dist/client/assets/{primitives-5VVvVXDP.js → primitives-C2KzRm7k.js} +1 -1
  143. package/dist/client/assets/{profile-CyKGXLmf.js → profile-JIY96r-U.js} +1 -1
  144. package/dist/client/assets/{project-app-view-kVyS_ky4.js → project-app-view-ChRy98GR.js} +1 -1
  145. package/dist/client/assets/record-editor-TN54LxOZ.js +1 -0
  146. package/dist/client/assets/{redirect-editor-wh6KUQar.js → redirect-editor-H13pevTZ.js} +1 -1
  147. package/dist/client/assets/registry-CeE2WTyU.js +2 -0
  148. package/dist/client/assets/{registry-layout-BqclQM58.js → registry-layout-CE1L7sQB.js} +1 -1
  149. package/dist/client/assets/{reports-ezYEoj8-.js → reports-DhYRSFIH.js} +1 -1
  150. package/dist/client/assets/{require-capability-daZd2Avq.js → require-capability-CphCRw1Y.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-tPpYmfR1.js → required-auth-layout-BkO0ta5X.js} +1 -1
  152. package/dist/client/assets/{reset-password-B_cu2DBW.js → reset-password-CHlikCW0.js} +1 -1
  153. package/dist/client/assets/{roles-CnMuEzXy.js → roles-CA9Mf7sb.js} +1 -1
  154. package/dist/client/assets/{search-input-Dlrgn3SA.js → search-input-B_a15TCn.js} +1 -1
  155. package/dist/client/assets/{secrets-DHhUnvN3.js → secrets-C-7svEAy.js} +1 -1
  156. package/dist/client/assets/{sections-editor-D2V-U5oa.js → sections-editor-DC7W62BJ.js} +1 -1
  157. package/dist/client/assets/{select-BhNhFGIm.js → select-D8ieVVuM.js} +1 -1
  158. package/dist/client/assets/{select-model-BbkxZygk.js → select-model-BxkAffQj.js} +1 -1
  159. package/dist/client/assets/{self-tool-result-Bjns9v-D.js → self-tool-result-CEDFRKz8.js} +1 -1
  160. package/dist/client/assets/{seo-editor-_sQ6ViyP.js → seo-editor-BApVhR4P.js} +1 -1
  161. package/dist/client/assets/{settings-layout-CihM6Z5f.js → settings-layout-Cm_6uBKS.js} +1 -1
  162. package/dist/client/assets/{settings-section-BIT7uWjs.js → settings-section-k6duNl96.js} +1 -1
  163. package/dist/client/assets/{settings-subnav-DobJGu7Z.js → settings-subnav-D8ai7ntt.js} +1 -1
  164. package/dist/client/assets/{shell-controls-BOR8V5VI.js → shell-controls-F6IAlp8D.js} +1 -1
  165. package/dist/client/assets/{shell-layout-Dpz4gldn.js → shell-layout-B3OLItBg.js} +1 -1
  166. package/dist/client/assets/{sidebar-_myHCEzH.js → sidebar-CQyrHm0A.js} +1 -1
  167. package/dist/client/assets/{skeleton-CfDgtd5M.js → skeleton-cnGxBWOI.js} +1 -1
  168. package/dist/client/assets/{spinner-CgvhsPnS.js → spinner-D5s4_j9p.js} +1 -1
  169. package/dist/client/assets/{sso-CzK_Pk8F.js → sso-1L68iw3h.js} +1 -1
  170. package/dist/client/assets/{store-Cu4INizs.js → store-BM8kTobl.js} +1 -1
  171. package/dist/client/assets/store-registry-C_7grRSo.js +2 -0
  172. package/dist/client/assets/{studio-tools-ThQ_rcsF.js → studio-tools-DUHGIbyJ.js} +1 -1
  173. package/dist/client/assets/{switch-BCRtcgA0.js → switch-4dqru6_9.js} +1 -1
  174. package/dist/client/assets/{synced-repos-DkuvF9QR.js → synced-repos-BHc8E6oY.js} +1 -1
  175. package/dist/client/assets/{tab-id-DM8k_HA-.js → tab-id-V3AOxFRt.js} +1 -1
  176. package/dist/client/assets/{table-C5eCsrvC.js → table-eI14Aj5G.js} +1 -1
  177. package/dist/client/assets/{tabs-D-zNditx.js → tabs-DKH221Dt.js} +1 -1
  178. package/dist/client/assets/{tasks-CwCxAFhU.js → tasks-BPQqAlFh.js} +1 -1
  179. package/dist/client/assets/{textarea-BfUIS--d.js → textarea-SMIV5VpP.js} +1 -1
  180. package/dist/client/assets/{toggle-group-DvojD61A.js → toggle-group-DT5--vV1.js} +1 -1
  181. package/dist/client/assets/{toolbar-C6N7bX1O.js → toolbar-D5X27hXQ.js} +1 -1
  182. package/dist/client/assets/{tooltip-B-y9isox.js → tooltip-C_T_6gNE.js} +1 -1
  183. package/dist/client/assets/{track-Bwp-FwAP.js → track-D4UrkVyG.js} +1 -1
  184. package/dist/client/assets/{types-D6tOWfuo.js → types-C0vwjPn5.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-Bb772HOL.js → use-ai-providers-B5rkDm6F.js} +1 -1
  186. package/dist/client/assets/{use-api-keys-CX7vmPa_.js → use-api-keys-UhTRz9HM.js} +1 -1
  187. package/dist/client/assets/{use-automations-DyLBCDVI.js → use-automations-B8Mvh2j9.js} +1 -1
  188. package/dist/client/assets/{use-autosave-DnhwLkb4.js → use-autosave-BKg5YLZQ.js} +1 -1
  189. package/dist/client/assets/{use-capability-DxO7qy1z.js → use-capability-DwIBoGF1.js} +1 -1
  190. package/dist/client/assets/{use-clock-tick-DS1Jl_N9.js → use-clock-tick-C9SORRS7.js} +1 -1
  191. package/dist/client/assets/{use-commerce-diagnostic-DtF4_mte.js → use-commerce-diagnostic-_lOyaBmJ.js} +1 -1
  192. package/dist/client/assets/{use-connection-DmmNo1LM.js → use-connection-Cepsq2qy.js} +1 -1
  193. package/dist/client/assets/{use-copy-CSIcq8z_.js → use-copy-s87wiPlt.js} +1 -1
  194. package/dist/client/assets/{use-create-virtual-mcp-CR_IUdwo.js → use-create-virtual-mcp-Cwp82Xp8.js} +1 -1
  195. package/dist/client/assets/{use-debounced-autosave-DjJh5yYH.js → use-debounced-autosave-DR9DMiAi.js} +1 -1
  196. package/dist/client/assets/{use-debounced-value-19BtC7Bb.js → use-debounced-value-3PboZNp2.js} +1 -1
  197. package/dist/client/assets/{use-decopilot-events-Bb_7qSC-.js → use-decopilot-events-IIZfAJbe.js} +1 -1
  198. package/dist/client/assets/{use-delete-connection-keAeE1I9.js → use-delete-connection-UlwbroVf.js} +1 -1
  199. package/dist/client/assets/{use-deployment-admin-GvqoWv58.js → use-deployment-admin-UPjXLJ6I.js} +1 -1
  200. package/dist/client/assets/{use-file-configs-IFt3zoqI.js → use-file-configs-D2TfMkdp.js} +1 -1
  201. package/dist/client/assets/{use-infinite-scroll-C1T3wjaO.js → use-infinite-scroll-CWrtmVN5.js} +1 -1
  202. package/dist/client/assets/{use-join-requests-BeMEoip1.js → use-join-requests-CU4N-582.js} +1 -1
  203. package/dist/client/assets/{use-mcp-client-_o9o88xf.js → use-mcp-client-DNTUxbuY.js} +1 -1
  204. package/dist/client/assets/{use-mcp-tools-CRMPw5o_.js → use-mcp-tools-CnL2gXKb.js} +1 -1
  205. package/dist/client/assets/{use-members-BeAeYksa.js → use-members-Dk-yo84p.js} +1 -1
  206. package/dist/client/assets/{use-mobile-H1cEPaVS.js → use-mobile-CBozShYk.js} +1 -1
  207. package/dist/client/assets/{use-navigate-to-agent-BqMCqmam.js → use-navigate-to-agent-DZ2113k-.js} +1 -1
  208. package/dist/client/assets/{use-open-billing-url-BWzY_VeB.js → use-open-billing-url-Bib0eJAW.js} +1 -1
  209. package/dist/client/assets/{use-org-auth-client-A_fhg4VK.js → use-org-auth-client-DVw_niu7.js} +1 -1
  210. package/dist/client/assets/{use-org-repo-syncs-DboNdEwi.js → use-org-repo-syncs-75coG3jy.js} +1 -1
  211. package/dist/client/assets/{use-org-sso-D-BEPABI.js → use-org-sso-BTOd4dBT.js} +1 -1
  212. package/dist/client/assets/{use-organization-roles-ABd_zIJY.js → use-organization-roles-RJZI6Fvm.js} +1 -1
  213. package/dist/client/assets/{use-organization-settings-DPRJ0ATL.js → use-organization-settings-BQUTcHKO.js} +1 -1
  214. package/dist/client/assets/{use-registry-connections-Y17SLNHX.js → use-registry-connections-CA6OKZ6u.js} +1 -1
  215. package/dist/client/assets/{use-secrets-DH31aTTe.js → use-secrets-BKD2Az3I.js} +1 -1
  216. package/dist/client/assets/{use-section-preview-base-Csrv-VqV.js → use-section-preview-base-RmvMknKS.js} +1 -1
  217. package/dist/client/assets/{use-settings-tabs-CGwARRFk.js → use-settings-tabs-DZpP8vVS.js} +1 -1
  218. package/dist/client/assets/{use-status-sounds-BeFWP6sc.js → use-status-sounds-4XsqXVv5.js} +1 -1
  219. package/dist/client/assets/{use-tags-BkefASeN.js → use-tags-Bvuw5lx5.js} +1 -1
  220. package/dist/client/assets/{use-view-mode-BLj18CVK.js → use-view-mode-vQZ1DU1V.js} +1 -1
  221. package/dist/client/assets/{use-virtual-mcp-B0LtGhD8.js → use-virtual-mcp-DRTx2YE8.js} +1 -1
  222. package/dist/client/assets/useInfiniteQuery-wmyZYwlL.js +1 -0
  223. package/dist/client/assets/{useRouterState-um8-mtPt.js → useRouterState-G4LfvtoF.js} +1 -1
  224. package/dist/client/assets/useSuspenseInfiniteQuery-DHr4cf4b.js +1 -0
  225. package/dist/client/assets/{users-CWvqMFcP.js → users-Dl8fUcIk.js} +1 -1
  226. package/dist/client/assets/{variant-calendar-B1xj6WY-.js → variant-calendar-BbAjLw9s.js} +1 -1
  227. package/dist/client/assets/{view-mode-toggle-B1CxI2v1.js → view-mode-toggle-BNUqSO-i.js} +1 -1
  228. package/dist/client/index.html +1 -1
  229. package/dist/server/cli.js +2 -2
  230. package/dist/server/server.js +2 -2
  231. package/package.json +1 -1
  232. package/dist/client/assets/record-editor-DHsX7f85.js +0 -1
  233. package/dist/client/assets/registry-BCU9YbQl.js +0 -2
  234. package/dist/client/assets/store-registry-OC_7xuUK.js +0 -2
  235. package/dist/client/assets/useInfiniteQuery-BTBdPVyZ.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-C3uzz_IX.js +0 -1
@@ -1 +1 @@
1
- import{c as k,m as b,j as n,k as v}from"./index-DLyxjIYw.js";import{i as w}from"./SearchMd-xpLLk_pA.js";function S(j){const e=k.c(21),{value:m,onChange:d,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?n.jsx(v,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(w,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==d?(r=N=>d(N.target.value),e[6]=d,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==m?(o=n.jsx("input",{type:"text",value:m,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=m,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
1
+ import{c as k,m as b,j as n,k as v}from"./index-CpgCWtjx.js";import{i as w}from"./SearchMd-8SfAOvdD.js";function S(j){const e=k.c(21),{value:m,onChange:d,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?n.jsx(v,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(w,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==d?(r=N=>d(N.target.value),e[6]=d,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==m?(o=n.jsx("input",{type:"text",value:m,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=m,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
@@ -1 +1 @@
1
- import{c as k,j as r,m as C,b as S}from"./index-DLyxjIYw.js";import{d as R,e as H,a as T,T as I,b as W,c as z}from"./table-C5eCsrvC.js";import{i as D,n as E}from"./ArrowUp-CsCHH_fH.js";function K(y){const e=k.c(29),{columns:n,data:f,sortKey:u,sortDirection:x,onSort:c,onRowClick:a,rowClassName:d}=y;let p;e[0]!==x?(p=function(s,h){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&x&&(x==="asc"?r.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=x,e[1]=p):p=e[1];const b=p;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=function(s,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return s===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=o):o=e[2];const g=o;let t;if(e[3]!==n||e[4]!==c||e[5]!==b||e[6]!==u){let i;e[8]!==n.length||e[9]!==c||e[10]!==b||e[11]!==u?(i=(s,h)=>{const N=u===s.id;return r.jsx(R,{className:C(g(h,n.length),"group transition-colors select-none",s.sortable&&"hover:bg-accent cursor-pointer",s.rowClassName,s.cellClassName),onClick:s.sortable&&c?()=>c(s.id):void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[s.header,s.sortable&&b(s.id,N)]})},s.id)},e[8]=n.length,e[9]=c,e[10]=b,e[11]=u,e[12]=i):i=e[12],t=n.map(i),e[3]=n,e[4]=c,e[5]=b,e[6]=u,e[7]=t}else t=e[7];let l;e[13]!==t?(l=r.jsx(H,{className:"border-b-0",children:r.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:t})}),e[13]=t,e[14]=l):l=e[14];let j;if(e[15]!==n||e[16]!==f||e[17]!==a||e[18]!==d){let i;e[20]!==n||e[21]!==a||e[22]!==d?(i=(s,h)=>{const N=d?.(s);return r.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",a?"cursor-pointer":"",N),onClick:a?()=>a(s):void 0,children:n.map(m=>r.jsx(I,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(s):m.accessor?m.accessor(s):null})},m.id))},h)},e[20]=n,e[21]=a,e[22]=d,e[23]=i):i=e[23],j=f.map(i),e[15]=n,e[16]=f,e[17]=a,e[18]=d,e[19]=j}else j=e[19];let w;e[24]!==j?(w=r.jsx(W,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==l||e[27]!==w?(v=r.jsxs(z,{className:"w-full border-collapse",children:[l,w]}),e[26]=l,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(16),{columns:n,data:f,isLoading:u,sortKey:x,sortDirection:c,onSort:a,onRowClick:d,emptyState:p}=y,b=u===void 0?!1:u,o=S();if(b){let t;e[0]!==o?(t=o("collections.collectionTableWrapper.loading"),e[0]=o,e[1]=t):t=e[1];let l;return e[2]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:t})}),e[2]=t,e[3]=l):l=e[3],l}if(f.length===0){let t;e[4]!==p||e[5]!==o?(t=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:o("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=o,e[6]=t):t=e[6];let l;return e[7]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:t}),e[7]=t,e[8]=l):l=e[8],l}let g;return e[9]!==n||e[10]!==f||e[11]!==d||e[12]!==a||e[13]!==c||e[14]!==x?(g=r.jsx("div",{className:"flex-1",children:r.jsx(K,{columns:n,data:f,sortKey:x,sortDirection:c,onSort:a,onRowClick:d})}),e[9]=n,e[10]=f,e[11]=d,e[12]=a,e[13]=c,e[14]=x,e[15]=g):g=e[15],g}export{B as C};
1
+ import{c as k,j as r,m as C,b as S}from"./index-CpgCWtjx.js";import{d as R,e as H,a as T,T as I,b as W,c as z}from"./table-eI14Aj5G.js";import{i as D,n as E}from"./ArrowUp-B0kiHs6M.js";function K(y){const e=k.c(29),{columns:n,data:f,sortKey:u,sortDirection:x,onSort:c,onRowClick:a,rowClassName:d}=y;let p;e[0]!==x?(p=function(s,h){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&x&&(x==="asc"?r.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=x,e[1]=p):p=e[1];const b=p;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=function(s,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return s===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=o):o=e[2];const g=o;let t;if(e[3]!==n||e[4]!==c||e[5]!==b||e[6]!==u){let i;e[8]!==n.length||e[9]!==c||e[10]!==b||e[11]!==u?(i=(s,h)=>{const N=u===s.id;return r.jsx(R,{className:C(g(h,n.length),"group transition-colors select-none",s.sortable&&"hover:bg-accent cursor-pointer",s.rowClassName,s.cellClassName),onClick:s.sortable&&c?()=>c(s.id):void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[s.header,s.sortable&&b(s.id,N)]})},s.id)},e[8]=n.length,e[9]=c,e[10]=b,e[11]=u,e[12]=i):i=e[12],t=n.map(i),e[3]=n,e[4]=c,e[5]=b,e[6]=u,e[7]=t}else t=e[7];let l;e[13]!==t?(l=r.jsx(H,{className:"border-b-0",children:r.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:t})}),e[13]=t,e[14]=l):l=e[14];let j;if(e[15]!==n||e[16]!==f||e[17]!==a||e[18]!==d){let i;e[20]!==n||e[21]!==a||e[22]!==d?(i=(s,h)=>{const N=d?.(s);return r.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",a?"cursor-pointer":"",N),onClick:a?()=>a(s):void 0,children:n.map(m=>r.jsx(I,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(s):m.accessor?m.accessor(s):null})},m.id))},h)},e[20]=n,e[21]=a,e[22]=d,e[23]=i):i=e[23],j=f.map(i),e[15]=n,e[16]=f,e[17]=a,e[18]=d,e[19]=j}else j=e[19];let w;e[24]!==j?(w=r.jsx(W,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==l||e[27]!==w?(v=r.jsxs(z,{className:"w-full border-collapse",children:[l,w]}),e[26]=l,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(16),{columns:n,data:f,isLoading:u,sortKey:x,sortDirection:c,onSort:a,onRowClick:d,emptyState:p}=y,b=u===void 0?!1:u,o=S();if(b){let t;e[0]!==o?(t=o("collections.collectionTableWrapper.loading"),e[0]=o,e[1]=t):t=e[1];let l;return e[2]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:t})}),e[2]=t,e[3]=l):l=e[3],l}if(f.length===0){let t;e[4]!==p||e[5]!==o?(t=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:o("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=o,e[6]=t):t=e[6];let l;return e[7]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:t}),e[7]=t,e[8]=l):l=e[8],l}let g;return e[9]!==n||e[10]!==f||e[11]!==d||e[12]!==a||e[13]!==c||e[14]!==x?(g=r.jsx("div",{className:"flex-1",children:r.jsx(K,{columns:n,data:f,sortKey:x,sortDirection:c,onSort:a,onRowClick:d})}),e[9]=n,e[10]=f,e[11]=d,e[12]=a,e[13]=c,e[14]=x,e[15]=g):g=e[15],g}export{B as C};
@@ -1 +1 @@
1
- import{c as f,m as u,j as m}from"./index-DLyxjIYw.js";import{B as g}from"./badge-BtBZ1HPJ.js";function h(x){const e=f.c(12),{tabs:l,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==l){let c;e[6]!==n||e[7]!==s?(c=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
1
+ import{c as f,m as u,j as m}from"./index-CpgCWtjx.js";import{B as g}from"./badge-C8fPXo-a.js";function h(x){const e=f.c(12),{tabs:l,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==l){let c;e[6]!==n||e[7]!==s?(c=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
@@ -1 +1 @@
1
- import{c as d,m as i,j as n}from"./index-DLyxjIYw.js";import{_ as m}from"./index-AXIuo6hf.js";import{e as N,b as j,h as b,a as w,d as y}from"./dialog-U03ZiuXk.js";import{i as C}from"./SearchMd-xpLLk_pA.js";function $(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function z(a){const e=d.c(26);let t,s,o,l,r,h;e[0]!==a?({title:r,description:h,children:t,className:s,filter:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r,e[6]=h):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5],h=e[6]);const v=r===void 0?"Command Palette":r,k=h===void 0?"Search for a command to run...":h;let c;e[7]!==v?(c=n.jsx(j,{children:v}),e[7]=v,e[8]=c):c=e[8];let p;e[9]!==k?(p=n.jsx(b,{children:k}),e[9]=k,e[10]=p):p=e[10];let u;e[11]!==c||e[12]!==p?(u=n.jsxs(w,{className:"sr-only",children:[c,p]}),e[11]=c,e[12]=p,e[13]=u):u=e[13];let f;e[14]!==s?(f=i("overflow-hidden p-0",s),e[14]=s,e[15]=f):f=e[15];let x;e[16]!==t||e[17]!==o?(x=n.jsx($,{filter:o,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=o,e[18]=x):x=e[18];let g;e[19]!==f||e[20]!==x?(g=n.jsx(y,{className:f,closeButtonClassName:"hidden",children:x}),e[19]=f,e[20]=x,e[21]=g):g=e[21];let _;return e[22]!==l||e[23]!==u||e[24]!==g?(_=n.jsxs(N,{...l,children:[u,g]}),e[22]=l,e[23]=u,e[24]=g,e[25]=_):_=e[25],_}function G(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(C,{className:"size-4 shrink-0 text-muted-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function L(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function R(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function P(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{G as C,R as a,P as b,B as c,L as d,$ as e,z as f,H as g};
1
+ import{c as d,m as i,j as n}from"./index-CpgCWtjx.js";import{_ as m}from"./index-DeaF485t.js";import{e as N,b as j,h as b,a as w,d as y}from"./dialog-BK6S7VwB.js";import{i as C}from"./SearchMd-8SfAOvdD.js";function $(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function z(a){const e=d.c(26);let t,s,o,l,r,h;e[0]!==a?({title:r,description:h,children:t,className:s,filter:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r,e[6]=h):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5],h=e[6]);const v=r===void 0?"Command Palette":r,k=h===void 0?"Search for a command to run...":h;let c;e[7]!==v?(c=n.jsx(j,{children:v}),e[7]=v,e[8]=c):c=e[8];let p;e[9]!==k?(p=n.jsx(b,{children:k}),e[9]=k,e[10]=p):p=e[10];let u;e[11]!==c||e[12]!==p?(u=n.jsxs(w,{className:"sr-only",children:[c,p]}),e[11]=c,e[12]=p,e[13]=u):u=e[13];let f;e[14]!==s?(f=i("overflow-hidden p-0",s),e[14]=s,e[15]=f):f=e[15];let x;e[16]!==t||e[17]!==o?(x=n.jsx($,{filter:o,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=o,e[18]=x):x=e[18];let g;e[19]!==f||e[20]!==x?(g=n.jsx(y,{className:f,closeButtonClassName:"hidden",children:x}),e[19]=f,e[20]=x,e[21]=g):g=e[21];let _;return e[22]!==l||e[23]!==u||e[24]!==g?(_=n.jsxs(N,{...l,children:[u,g]}),e[22]=l,e[23]=u,e[24]=g,e[25]=_):_=e[25],_}function G(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(C,{className:"size-4 shrink-0 text-muted-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function L(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function R(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function P(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{G as C,R as a,P as b,B as c,L as d,$ as e,z as f,H as g};
@@ -1 +1 @@
1
- import{c as N,b as Q,j as o,m as Te,p as ue,B as Ne,u as Xe,r as Y,a as Ae,q as st,d as nt,s as lt,e as Ze,v as Ee,w as Se,Q as at,E as ct,K as He,x as Be,N as mt}from"./index-DLyxjIYw.js";import{L as dt,s as Me,S as We,C as qe,i as ut,n as ze,a as et,p as Le}from"./self-tool-result-Bjns9v-D.js";import{A as gt}from"./auth-entry-PFcfNCN7.js";import{A as ft}from"./auth-split-layout-5_o-m_dm.js";import{O as Ve}from"./organization-choice-YKPoOAc0.js";import{r as pt}from"./track-Bwp-FwAP.js";import{I as ht}from"./input-BH7zyD0i.js";import{D as bt,a as Ke,b as xt,c as yt}from"./dropdown-menu-BmoCpvnT.js";import{S as Ct,u as jt,W as Ot,g as vt,a as St}from"./use-mcp-client-_o9o88xf.js";import{i as _t}from"./XCircle-_aQH9vJz.js";import{i as wt}from"./ArrowUpRight-M9WAVHfb.js";import"./alert-dialog-BOUVk-xM.js";import"./form-BlkhuHf9.js";import"./label-Cwuc9phK.js";import"./spinner-CgvhsPnS.js";import"./integration-icon-BolSFCMJ.js";import"./Tool02-CE2ZdUr1.js";import"./agent-icon-5ZYno8Im.js";import"./AlertCircle-DUlfht_8.js";import"./Tool01-XzYGP86W.js";import"./ArrowUp-CsCHH_fH.js";import"./ArrowLeft-xr5VbHB2.js";import"./TrendUp01-BdIQtpYk.js";import"./ZapSquare-Bv6t7Fg1.js";import"./Users03-BNksnLQf.js";import"./CheckCircle-C2PmPe-o.js";import"./Check-BXav60Vy.js";import"./ChevronDown-CauLatdX.js";import"./ChevronRight-BGcGReEM.js";import"./ChevronSelectorVertical-CvdZht1v.js";import"./ChevronUp-D_tIdiJb.js";import"./DotsVertical-fn24sGZC.js";import"./Stars02-DtoiSIcu.js";import"./Copy01-CV1JugLX.js";import"./CreditCard01-B_w5eexh.js";import"./Download01-D3eJDAEO.js";import"./Settings02-DjFkLPe4.js";import"./Eye-BhHZY2CZ.js";import"./FilterLines-BWjLIxVc.js";import"./Share07-Caa0Im56.js";import"./Globe01-DdUoMsv3.js";import"./Globe04-B-w3WEq9.js";import"./SwitchHorizontal01-C5wQU73g.js";import"./HardDrive-BFP4nRun.js";import"./Key01-Cfe0Tudx.js";import"./LayoutLeft-BEpfII_o.js";import"./LinkExternal01-D25gdGqj.js";import"./LockUnlocked01-P_wfDROK.js";import"./LogOut01-DBKmS50y.js";import"./Monitor01-BhLjoS2b.js";import"./Sun-Dpvmek-4.js";import"./Palette-aeV8tQ28.js";import"./Play-BdOAMmIp.js";import"./Plus-D1J2FK4h.js";import"./SearchLg-BzCLzG8R.js";import"./SearchMd-xpLLk_pA.js";import"./Shield01-D5NbAsUv.js";import"./Stars01-CCBcRCds.js";import"./Trash01-BnQQflAa.js";import"./Upload01-Bhqh3Tbq.js";import"./User01-C1NHQ-ZR.js";import"./Users01-CMhcYnus.js";import"./XClose-DdNRdfWH.js";import"./X-DY9FeXqi.js";import"./Zap-DDihnv3P.js";import"./dialog-U03ZiuXk.js";import"./tooltip-B-y9isox.js";import"./extract-connection-data-GB3welMi.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./use-debounced-value-19BtC7Bb.js";import"./authenticate-and-persist-oauth-BUQ1Xi6C.js";import"./mcp-oauth-BmzTS1ua.js";import"./auth-Clf3KXjv.js";import"./use-is-desktop-app-BNujXJc_.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./avatar-CsESGb5P.js";const Qe={"pt-BR":"https://decocms.com/agendar",en:"https://www.decocms.com/en/schedule"},Ge=["https://decoims.com/image?src=decocms%2Fb07a1c19-0cd6-49c8-b326-86055ee78605%2Fauthor-1763423987973-baby.jpeg&quality=original&fit=cover&width=200&height=200","https://decoims.com/decocms/07c2daf4-a3c2-485e-a1a8-341585a06e3b/cecilia.png","https://decoims.com/decocms/48013ca2-3277-464b-b0f1-dd5f1f08d986/tavano.png"],Nt="var(--brand-green-dark)";function De({siteUrl:t,email:e,locale:s}){const i=(s&&Qe[s])??Qe["pt-BR"]??"https://decocms.com/agendar",r=new URL(i);return t&&r.searchParams.set("siteUrl",t),e&&r.searchParams.set("email",e),r.toString()}function Et(t){const e=N.c(15),{href:s,size:i,className:r,orgId:l}=t,a=i===void 0?"lg":i,n=Q();let c;e[0]!==r?(c=Te("w-full",r),e[0]=r,e[1]=c):c=e[1];let m;e[2]!==l?(m=()=>ue("commerce_onboarding_meeting_cta_clicked",{placement:"visual_card",organization_id:l}),e[2]=l,e[3]=m):m=e[3];let d;e[4]!==n?(d=n("routes.commerceOnboarding.scheduleMeeting.scheduleButton"),e[4]=n,e[5]=d):d=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(wt,{size:16}),e[6]=u):u=e[6];let f;e[7]!==s||e[8]!==m||e[9]!==d?(f=o.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",onClick:m,children:[d,u]}),e[7]=s,e[8]=m,e[9]=d,e[10]=f):f=e[10];let p;return e[11]!==a||e[12]!==c||e[13]!==f?(p=o.jsx(Ne,{asChild:!0,variant:"outline",size:a,className:c,children:f}),e[11]=a,e[12]=c,e[13]=f,e[14]=p):p=e[14],p}function Ut(t){const e=N.c(13),{size:s}=t,i=s===void 0?72:s,r=Q();let l;e[0]!==r?(l=r("routes.commerceOnboarding.scheduleMeeting.expertAlt"),e[0]=r,e[1]=l):l=e[1];const a=l;let n;e[2]!==i?(n=Math.round(i*.3),e[2]=i,e[3]=n):n=e[3];const c=n;let m;e[4]!==i?(m={height:i},e[4]=i,e[5]=m):m=e[5];let d;e[6]!==a||e[7]!==c||e[8]!==i?(d=Ge.map((f,p)=>o.jsxs("div",{className:"relative shrink-0",style:{width:i,height:i,marginLeft:p===0?0:-c,zIndex:Ge.length-p},children:[o.jsx("div",{className:"h-full w-full overflow-hidden rounded-full border-4 border-card bg-muted",children:o.jsx("img",{src:f,alt:a,className:"h-full w-full object-cover",loading:"lazy"})}),p===0&&o.jsxs("span",{className:"absolute bottom-1.5 right-1.5 flex h-3.5 w-3.5",children:[o.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-success opacity-60 motion-safe:animate-ping","aria-hidden":!0}),o.jsx("span",{className:"relative inline-flex h-3.5 w-3.5 rounded-full border-2 border-card bg-success"})]})]},f)),e[6]=a,e[7]=c,e[8]=i,e[9]=d):d=e[9];let u;return e[10]!==m||e[11]!==d?(u=o.jsx("div",{className:"flex items-end",style:m,children:d}),e[10]=m,e[11]=d,e[12]=u):u=e[12],u}function Fe(t){const e=N.c(19),{href:s,orgId:i}=t,r=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"h-20",style:{backgroundColor:Nt}}),e[0]=l):l=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"-mt-9 mb-4",children:o.jsx(Ut,{})}),e[1]=a):a=e[1];let n;e[2]!==r?(n=r("routes.commerceOnboarding.scheduleMeeting.headline"),e[2]=r,e[3]=n):n=e[3];let c;e[4]!==n?(c=o.jsx("h2",{className:"text-lg font-medium leading-6 text-foreground",children:n}),e[4]=n,e[5]=c):c=e[5];let m;e[6]!==r?(m=r("routes.commerceOnboarding.scheduleMeeting.body"),e[6]=r,e[7]=m):m=e[7];let d;e[8]!==m?(d=o.jsx("p",{className:"text-sm leading-5 text-muted-foreground",children:m}),e[8]=m,e[9]=d):d=e[9];let u;e[10]!==c||e[11]!==d?(u=o.jsxs("div",{className:"grid gap-1.5",children:[c,d]}),e[10]=c,e[11]=d,e[12]=u):u=e[12];let f;e[13]!==s||e[14]!==i?(f=o.jsx(Et,{href:s,size:"lg",className:"mt-6",orgId:i}),e[13]=s,e[14]=i,e[15]=f):f=e[15];let p;return e[16]!==u||e[17]!==f?(p=o.jsx("div",{className:"relative flex h-full w-full items-center justify-center p-10",children:o.jsxs("div",{className:"w-full max-w-[440px] overflow-hidden rounded-3xl border border-border bg-card card-shadow",children:[l,o.jsxs("div",{className:"px-8 pb-8",children:[a,u,f]})]})}),e[16]=u,e[17]=f,e[18]=p):p=e[18],p}function tt(t){const e=N.c(10),{host:s}=t,i=`https://www.google.com/s2/favicons?domain=${s}&sz=128`;let r,l,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 dark:hidden"}),l=o.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-7 w-7 hidden dark:block"}),a=o.jsx("div",{className:"h-6 w-px rotate-12 bg-border","aria-hidden":"true"}),e[0]=r,e[1]=l,e[2]=a):(r=e[0],l=e[1],a=e[2]);let n;e[3]!==i?(n=o.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border bg-white",children:o.jsx("img",{src:i,alt:"",className:"h-5 w-5",loading:"lazy"})}),e[3]=i,e[4]=n):n=e[4];let c;e[5]!==s?(c=o.jsx("span",{className:"text-lg font-medium text-foreground",children:s}),e[5]=s,e[6]=c):c=e[6];let m;return e[7]!==n||e[8]!==c?(m=o.jsxs("div",{className:"flex items-center gap-3",children:[r,l,a,n,c]}),e[7]=n,e[8]=c,e[9]=m):m=e[9],m}function $e(t){const e=N.c(5),{variant:s}=t,i=Q();let r;e[0]!==i||e[1]!==s?(r=i(s==="workspace"?"routes.commerceOnboarding.loading.preparingWorkspace":"routes.commerceOnboarding.loading.preparing"),e[0]=i,e[1]=s,e[2]=r):r=e[2];const l=r;let a;return e[3]!==l?(a=o.jsx("div",{className:"flex justify-center py-4",role:"status","aria-live":"polite",children:o.jsx(dt,{label:l,className:"text-muted-foreground"})}),e[3]=l,e[4]=a):a=e[4],a}function fo(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Lt,{}),t[0]=e):e=t[0],e}const rt=Y.createContext(null),ot=()=>Y.useContext(rt);function Pt(){const t=N.c(22),[e,s]=Ee(),i=e.language==="pt-BR"?"PT-BR":"EN";let r;t[0]!==i?(r=o.jsx(bt,{asChild:!0,children:o.jsx("button",{className:"text-sm font-medium text-foreground/70 hover:text-foreground transition-colors",type:"button",children:i})}),t[0]=i,t[1]=r):r=t[1];let l;t[2]!==s?(l=()=>{s(Rt)},t[2]=s,t[3]=l):l=t[3];const a=e.language==="en"&&"bg-accent";let n;t[4]!==a?(n=Te(a),t[4]=a,t[5]=n):n=t[5];let c;t[6]!==l||t[7]!==n?(c=o.jsx(Ke,{onClick:l,className:n,children:"English"}),t[6]=l,t[7]=n,t[8]=c):c=t[8];let m;t[9]!==s?(m=()=>{s(It)},t[9]=s,t[10]=m):m=t[10];const d=e.language==="pt-BR"&&"bg-accent";let u;t[11]!==d?(u=Te(d),t[11]=d,t[12]=u):u=t[12];let f;t[13]!==m||t[14]!==u?(f=o.jsx(Ke,{onClick:m,className:u,children:"Português (Brasil)"}),t[13]=m,t[14]=u,t[15]=f):f=t[15];let p;t[16]!==c||t[17]!==f?(p=o.jsxs(xt,{align:"end",children:[c,f]}),t[16]=c,t[17]=f,t[18]=p):p=t[18];let O;return t[19]!==r||t[20]!==p?(O=o.jsxs(yt,{children:[r,p]}),t[19]=r,t[20]=p,t[21]=O):O=t[21],O}function It(t){return{...t,language:"pt-BR"}}function Rt(t){return{...t,language:"en"}}function B(t){const e=N.c(17);let s,i,r;e[0]!==t?({visual:r,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/commerce-onboarding"},e[4]=l):l=e[4];const a=Xe(l),{data:n}=Ae.useSession(),[c]=Ee(),m=n?.user?.email;let d;e[5]!==c.language||e[6]!==a.siteUrl||e[7]!==m?(d=De({siteUrl:a.siteUrl,email:m,locale:c.language}),e[5]=c.language,e[6]=a.siteUrl,e[7]=m,e[8]=d):d=e[8];const u=d;let f;e[9]!==u||e[10]!==r?(f=r??o.jsx(Fe,{href:u}),e[9]=u,e[10]=r,e[11]=f):f=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs("div",{className:"flex justify-between items-start mb-8",children:[o.jsx("div",{}),o.jsx(Pt,{})]}),e[12]=p):p=e[12];let O;return e[13]!==s||e[14]!==i||e[15]!==f?(O=o.jsxs(ft,{...i,visual:f,children:[p,s]}),e[13]=s,e[14]=i,e[15]=f,e[16]=O):O=e[16],O}function zt(t){return{signUpFailed:t("routes.commerceOnboarding.authCopy.signUpFailed"),signInFailed:t("routes.commerceOnboarding.authCopy.signInFailed"),authenticationFailed:t("routes.commerceOnboarding.authCopy.authenticationFailed"),resetEmailFailed:t("routes.commerceOnboarding.authCopy.resetEmailFailed"),otpSendFailed:t("routes.commerceOnboarding.authCopy.otpSendFailed"),invalidCode:t("routes.commerceOnboarding.authCopy.invalidCode"),invalidEmail:t("routes.commerceOnboarding.authCopy.invalidEmail"),invalidEmailOrPassword:t("routes.commerceOnboarding.authCopy.invalidEmailOrPassword"),accountExists:t("routes.commerceOnboarding.authCopy.accountExists"),networkError:t("routes.commerceOnboarding.authCopy.networkError"),tooManyAttempts:t("routes.commerceOnboarding.authCopy.tooManyAttempts"),invalidOrExpiredCode:t("routes.commerceOnboarding.authCopy.invalidOrExpiredCode"),genericError:t("routes.commerceOnboarding.authCopy.genericError"),resetPasswordTitle:t("routes.commerceOnboarding.authCopy.resetPasswordTitle"),verificationCodeTitle:t("routes.commerceOnboarding.authCopy.verificationCodeTitle"),welcomeTitle:t("routes.commerceOnboarding.authCopy.welcomeTitle"),resetPasswordSubtitle:t("routes.commerceOnboarding.authCopy.resetPasswordSubtitle"),codeSentTo:e=>t("routes.commerceOnboarding.authCopy.codeSentTo",{email:e}),defaultSubtitle:t("routes.commerceOnboarding.authCopy.defaultSubtitle"),resetEmailSent:t("routes.commerceOnboarding.authCopy.resetEmailSent"),continueWith:e=>t("routes.commerceOnboarding.authCopy.continueWith",{provider:e}),divider:t("routes.commerceOnboarding.authCopy.divider"),emailLabel:t("routes.commerceOnboarding.authCopy.emailLabel"),emailPlaceholder:t("routes.commerceOnboarding.authCopy.emailPlaceholder"),sending:t("routes.commerceOnboarding.authCopy.sending"),sendCode:t("routes.commerceOnboarding.authCopy.sendCode"),verificationCodeLabel:t("routes.commerceOnboarding.authCopy.verificationCodeLabel"),enterCodePlaceholder:t("routes.commerceOnboarding.authCopy.enterCodePlaceholder"),verifying:t("routes.commerceOnboarding.authCopy.verifying"),verify:t("routes.commerceOnboarding.authCopy.verify"),useDifferentEmail:t("routes.commerceOnboarding.authCopy.useDifferentEmail"),sendResetLink:t("routes.commerceOnboarding.authCopy.sendResetLink"),nameLabel:t("routes.commerceOnboarding.authCopy.nameLabel"),namePlaceholder:t("routes.commerceOnboarding.authCopy.namePlaceholder"),passwordLabel:t("routes.commerceOnboarding.authCopy.passwordLabel"),forgotPassword:t("routes.commerceOnboarding.authCopy.forgotPassword"),creatingAccount:t("routes.commerceOnboarding.authCopy.creatingAccount"),signingIn:t("routes.commerceOnboarding.authCopy.signingIn"),continue:t("routes.commerceOnboarding.authCopy.continue"),backToSignIn:t("routes.commerceOnboarding.authCopy.backToSignIn"),signInWithPassword:t("routes.commerceOnboarding.authCopy.signInWithPassword"),alreadyHaveAccount:t("routes.commerceOnboarding.authCopy.alreadyHaveAccount"),dontHaveAccount:t("routes.commerceOnboarding.authCopy.dontHaveAccount"),signIn:t("routes.commerceOnboarding.authCopy.signIn"),signUp:t("routes.commerceOnboarding.authCopy.signUp"),signInWithEmailCode:t("routes.commerceOnboarding.authCopy.signInWithEmailCode")}}function Ye(t,e){switch(e){case"Enter a website URL.":return t("routes.commerceOnboarding.siteUrl.enterUrl");case"Use an HTTP or HTTPS website URL.":return t("routes.commerceOnboarding.siteUrl.useHttpOrHttps");case"Enter a valid website URL.":return t("routes.commerceOnboarding.siteUrl.enterValidUrl");case"__configurationFailed":return t("routes.commerceOnboarding.configurationFailed");default:return e}}let Je=!1;function Lt(){const t=Xe({from:"/commerce-onboarding"}),{org:e,siteUrl:s}=t,i=Me(s);if(!Je&&st()){Je=!0;const r=pt(window.location.search);ue("commerce_onboarding_viewed",{site_url:s,domain:i??void 0,...r,...i?{$set:{last_scanned_domain:i}}:{}})}return o.jsx(rt.Provider,{value:i,children:o.jsx(kt,{requestedOrgSlug:e,siteUrl:s})})}function kt(t){const e=N.c(14),{requestedOrgSlug:s,siteUrl:i}=t,r=Q(),{data:l,isPending:a}=Ae.useSession(),n=ot();if(a){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(B,{children:o.jsx($e,{variant:"generic"})}),e[0]=m):m=e[0],m}if(!l){const m=typeof window>"u"?"/commerce-onboarding":`${window.location.pathname}${window.location.search}`;let d;e[1]!==r?(d=r("routes.commerceOnboarding.unlockDiagnostic"),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==n?(u=n?o.jsx(tt,{host:n}):void 0,e[3]=n,e[4]=u):u=e[4];let f;e[5]!==r?(f=zt(r),e[5]=r,e[6]=f):f=e[6];let p;return e[7]!==d||e[8]!==u||e[9]!==f?(p=o.jsx(B,{children:o.jsx(gt,{callbackUrl:m,allowAutoLogin:!1,title:d,subtitle:null,brand:u,copy:f})}),e[7]=d,e[8]=u,e[9]=f,e[10]=p):p=e[10],p}let c;return e[11]!==s||e[12]!==i?(c=o.jsx(Tt,{requestedOrgSlug:s,siteUrl:i}),e[11]=s,e[12]=i,e[13]=c):c=e[13],c}function Tt(t){const e=N.c(121),{requestedOrgSlug:s,siteUrl:i}=t,r=Q(),l=nt(),a=lt(),[n,c]=Y.useState(null),[m,d]=Y.useState(null),[u,f]=Y.useState(!1),p=a.data?.map(At)??[];let O;e[0]===Symbol.for("react.memo_cache_sentinel")?(O={mutationFn:Mt,retry:!1,onSuccess:g=>{d(g)}},e[0]=O):O=e[0];const v=Ze(O);if(a.isPending){let g;return e[1]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(B,{children:o.jsx($e,{variant:"workspace"})}),e[1]=g):g=e[1],g}if(a.error){let g;e[2]!==r?(g=r("routes.commerceOnboarding.couldNotLoadOrgs"),e[2]=r,e[3]=g):g=e[3];let h;e[4]!==r?(h=r("routes.commerceOnboarding.retryToConfigureCommerce"),e[4]=r,e[5]=h):h=e[5];let x;e[6]!==r?(x=r("routes.commerceOnboarding.retryAgain"),e[6]=r,e[7]=x):x=e[7];let b;e[8]!==a?(b=()=>a.refetch(),e[8]=a,e[9]=b):b=e[9];let _;return e[10]!==g||e[11]!==h||e[12]!==x||e[13]!==b?(_=o.jsx(_e,{title:g,description:h,actionLabel:x,onRetry:b}),e[10]=g,e[11]=h,e[12]=x,e[13]=b,e[14]=_):_=e[14],_}const w=s?p.find(g=>g.slug===s):null;if(w){let g;return e[15]!==w||e[16]!==i?(g=o.jsx(ve,{org:w,initialSiteUrl:i}),e[15]=w,e[16]=i,e[17]=g):g=e[17],g}if(s){let g;e[18]!==r?(g=r("routes.commerceOnboarding.orgNotFound"),e[18]=r,e[19]=g):g=e[19];let h;e[20]!==r?(h=r("routes.commerceOnboarding.couldNotFindOrg"),e[20]=r,e[21]=h):h=e[21];let x;e[22]!==r?(x=r("routes.commerceOnboarding.retryAgain"),e[22]=r,e[23]=x):x=e[23];let b;e[24]!==a?(b=()=>a.refetch(),e[24]=a,e[25]=b):b=e[25];let _;return e[26]!==g||e[27]!==h||e[28]!==x||e[29]!==b?(_=o.jsx(_e,{title:g,description:h,actionLabel:x,onRetry:b}),e[26]=g,e[27]=h,e[28]=x,e[29]=b,e[30]=_):_=e[30],_}if(n){let g;return e[31]!==n||e[32]!==i?(g=o.jsx(ve,{org:n,initialSiteUrl:i}),e[31]=n,e[32]=i,e[33]=g):g=e[33],g}if(p.length===1&&p[0]){let g;return e[34]!==p[0]||e[35]!==i?(g=o.jsx(ve,{org:p[0],initialSiteUrl:i}),e[34]=p[0],e[35]=i,e[36]=g):g=e[36],g}if(p.length>1){let g;e[37]!==r?(g=r("routes.commerceOnboarding.chooseOrg"),e[37]=r,e[38]=g):g=e[38];let h;e[39]!==r?(h=r("routes.commerceOnboarding.selectWhereCommerceContinues"),e[39]=r,e[40]=h):h=e[40];let x;e[41]!==g||e[42]!==h?(x=o.jsx(J,{title:g,description:h}),e[41]=g,e[42]=h,e[43]=x):x=e[43];let b;e[44]!==r?(b=r("routes.commerceOnboarding.authCopy.continue"),e[44]=r,e[45]=b):b=e[45];let _;e[46]!==l||e[47]!==i?(_=j=>l({to:"/commerce-onboarding",search:{org:j.slug,siteUrl:i}}),e[46]=l,e[47]=i,e[48]=_):_=e[48];let T;e[49]===Symbol.for("react.memo_cache_sentinel")?(T=()=>f(!0),e[49]=T):T=e[49];let z;e[50]!==r?(z=r("routes.commerceOnboarding.createNewOrg"),e[50]=r,e[51]=z):z=e[51];let R;e[52]!==p||e[53]!==b||e[54]!==_||e[55]!==z?(R=o.jsx(We,{className:"-mx-1 -my-1 max-h-[60vh] overflow-y-auto px-1 py-1",children:o.jsx(Ve,{organizations:p,selectLabel:b,onSelected:_,onCreateNew:T,createNewLabel:z})}),e[52]=p,e[53]=b,e[54]=_,e[55]=z,e[56]=R):R=e[56];let U;e[57]!==x||e[58]!==R?(U=o.jsxs("div",{className:"grid gap-10",children:[x,R]}),e[57]=x,e[58]=R,e[59]=U):U=e[59];let M;e[60]!==l||e[61]!==i?(M=j=>{Se(),l({to:"/commerce-onboarding",search:{org:j,siteUrl:i}})},e[60]=l,e[61]=i,e[62]=M):M=e[62];let P;e[63]!==u||e[64]!==M?(P=o.jsx(qe,{open:u,onOpenChange:f,onCreated:M}),e[63]=u,e[64]=M,e[65]=P):P=e[65];let L;return e[66]!==U||e[67]!==P?(L=o.jsxs(B,{children:[U,P]}),e[66]=U,e[67]=P,e[68]=L):L=e[68],L}if(!m){let g;e[69]!==v?(g=()=>{v.reset(),v.mutate()},e[69]=v,e[70]=g):g=e[70];let h;return e[71]!==v||e[72]!==g?(h=o.jsx(Dt,{mutation:v,onRetry:g}),e[71]=v,e[72]=g,e[73]=h):h=e[73],h}const C=m;if(C?.success&&(C.status==="created"||C.status==="joined"||C.status==="already_has_organization")&&C.organization){let g;return e[74]!==C.organization||e[75]!==i?(g=o.jsx(ve,{org:C.organization,initialSiteUrl:i}),e[74]=C.organization,e[75]=i,e[76]=g):g=e[76],g}if(C?.status==="ambiguous"&&C.organizations&&C.organizations.length>0){let g;e[77]!==r?(g=r("routes.commerceOnboarding.chooseOrg"),e[77]=r,e[78]=g):g=e[78];let h;e[79]!==r?(h=r("routes.commerceOnboarding.emailAccessMultipleOrgs"),e[79]=r,e[80]=h):h=e[80];let x;e[81]!==g||e[82]!==h?(x=o.jsx(J,{title:g,description:h}),e[81]=g,e[82]=h,e[83]=x):x=e[83];const b=C.organizations,_=C.domain??void 0;let T;e[84]!==l||e[85]!==i?(T=(X,Z)=>{Se(),c({...X,slug:Z}),l({to:"/commerce-onboarding",search:{org:Z,siteUrl:i}})},e[84]=l,e[85]=i,e[86]=T):T=e[86];let z;e[87]===Symbol.for("react.memo_cache_sentinel")?(z=()=>f(!0),e[87]=z):z=e[87];let R;e[88]!==r?(R=r("routes.commerceOnboarding.createNewOrg"),e[88]=r,e[89]=R):R=e[89];let U;e[90]!==C.organizations||e[91]!==_||e[92]!==T||e[93]!==R?(U=o.jsx(We,{className:"-mx-1 -my-1 max-h-[60vh] overflow-y-auto px-1 py-1",children:o.jsx(Ve,{organizations:b,domain:_,onJoined:T,onCreateNew:z,createNewLabel:R})}),e[90]=C.organizations,e[91]=_,e[92]=T,e[93]=R,e[94]=U):U=e[94];let M;e[95]!==U||e[96]!==x?(M=o.jsxs("div",{className:"grid gap-10",children:[x,U]}),e[95]=U,e[96]=x,e[97]=M):M=e[97];let P;e[98]!==l||e[99]!==i?(P=X=>{Se(),l({to:"/commerce-onboarding",search:{org:X,siteUrl:i}})},e[98]=l,e[99]=i,e[100]=P):P=e[100];let L;e[101]!==u||e[102]!==P?(L=o.jsx(qe,{open:u,onOpenChange:f,onCreated:P}),e[101]=u,e[102]=P,e[103]=L):L=e[103];let j;return e[104]!==M||e[105]!==L?(j=o.jsxs(B,{children:[M,L]}),e[104]=M,e[105]=L,e[106]=j):j=e[106],j}let I;e[107]!==r?(I=r("routes.commerceOnboarding.onboardingNeedsSupport"),e[107]=r,e[108]=I):I=e[108];let E;e[109]!==C?.error||e[110]!==r?(E=C?.error??r("routes.commerceOnboarding.couldNotDetermineOrg"),e[109]=C?.error,e[110]=r,e[111]=E):E=e[111];let A;e[112]!==r?(A=r("routes.commerceOnboarding.retryAgain"),e[112]=r,e[113]=A):A=e[113];let W;e[114]!==v?(W=()=>{d(null),v.reset()},e[114]=v,e[115]=W):W=e[115];let q;return e[116]!==I||e[117]!==E||e[118]!==A||e[119]!==W?(q=o.jsx(_e,{title:I,description:E,actionLabel:A,onRetry:W}),e[116]=I,e[117]=E,e[118]=A,e[119]=W,e[120]=q):q=e[120],q}async function Mt(){const e=await(await fetch("/api/auth/custom/ensure-organization",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e.success&&(e.status==="created"||e.status==="joined"||e.status==="already_has_organization")&&e.organization&&Se(),e}function At(t){return{id:t.id,name:t.name,slug:t.slug,logo:t.logo??null}}function Dt(t){const e=N.c(16),{mutation:s,onRetry:i}=t,r=Q(),l=Y.useRef(!1);let a;e[0]!==s?(a=d=>{!d||l.current||(l.current=!0,s.mutate())},e[0]=s,e[1]=a):a=e[1];const n=a;if(s.error){let d;e[2]!==r?(d=r("routes.commerceOnboarding.onboardingUnavailable"),e[2]=r,e[3]=d):d=e[3];let u;e[4]!==r?(u=r("routes.commerceOnboarding.couldNotPrepareOrg"),e[4]=r,e[5]=u):u=e[5];let f;e[6]!==r?(f=r("routes.commerceOnboarding.retryAgain"),e[6]=r,e[7]=f):f=e[7];let p;return e[8]!==i||e[9]!==d||e[10]!==u||e[11]!==f?(p=o.jsx(_e,{title:d,description:u,actionLabel:f,onRetry:i}),e[8]=i,e[9]=d,e[10]=u,e[11]=f,e[12]=p):p=e[12],p}let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx($e,{variant:"generic"}),e[13]=c):c=e[13];let m;return e[14]!==n?(m=o.jsx(B,{children:o.jsx("div",{ref:n,children:c})}),e[14]=n,e[15]=m):m=e[15],m}function J(t){const e=N.c(8),{title:s,description:i}=t,r=ot();let l;e[0]!==r?(l=r?o.jsx(tt,{host:r}):o.jsxs("div",{children:[o.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),o.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),e[0]=r,e[1]=l):l=e[1];let a;e[2]!==i||e[3]!==s?(a=(s||i)&&o.jsxs("div",{className:"space-y-2",children:[s&&o.jsx("h1",{className:"text-2xl font-medium leading-8",children:s}),i&&o.jsx("p",{className:"text-base text-muted-foreground leading-6",children:i})]}),e[2]=i,e[3]=s,e[4]=a):a=e[4];let n;return e[5]!==l||e[6]!==a?(n=o.jsxs("div",{className:"grid gap-10",children:[l,a]}),e[5]=l,e[6]=a,e[7]=n):n=e[7],n}function _e(t){const e=N.c(9),{title:s,description:i,actionLabel:r,onRetry:l}=t;let a;e[0]!==i||e[1]!==s?(a=o.jsx(J,{title:s,description:i}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let n;e[3]!==r||e[4]!==l?(n=o.jsx(Ne,{type:"button",size:"xl",className:"w-full",onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=n):n=e[5];let c;return e[6]!==a||e[7]!==n?(c=o.jsx(B,{children:o.jsxs("div",{className:"grid gap-10",children:[a,n]})}),e[6]=a,e[7]=n,e[8]=c):c=e[8],c}function ve(t){const e=N.c(13),{org:s,initialSiteUrl:i}=t,r=Q(),{data:l}=Ae.useSession(),[a]=Ee(),n=l?.user?.email;let c;e[0]!==i||e[1]!==a.language||e[2]!==n?(c=De({siteUrl:i,email:n,locale:a.language}),e[0]=i,e[1]=a.language,e[2]=n,e[3]=c):c=e[3];const m=c;let d;e[4]!==m||e[5]!==s.id?(d=o.jsx(Fe,{href:m,orgId:s.id}),e[4]=m,e[5]=s.id,e[6]=d):d=e[6];const u=d;let f;return e[7]!==i||e[8]!==u||e[9]!==s||e[10]!==l?.user?.email||e[11]!==r?(f=o.jsx(at,{children:p=>{const{reset:O}=p;return o.jsx(ct,{fallback:v=>{const{error:w,resetError:C}=v;return o.jsx(B,{visual:u,children:o.jsx(Ft,{orgName:s.name,message:w instanceof Error?w.message:r("routes.commerceOnboarding.couldNotVerifyCommerceSetting"),onRetry:()=>{O(),C()}})})},children:o.jsx(Y.Suspense,{fallback:o.jsx(it,{visual:u}),children:o.jsx($t,{org:s,initialSiteUrl:i,sessionEmail:l?.user?.email},`${s.id}:${i??""}`)})})}}),e[7]=i,e[8]=u,e[9]=s,e[10]=l?.user?.email,e[11]=r,e[12]=f):f=e[12],f}function it(t){const e=N.c(3),{visual:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 md:grid md:gap-4",children:[o.jsx(J,{}),o.jsx(et,{})]}),e[0]=i):i=e[0];let r;return e[1]!==s?(r=o.jsx(B,{align:"fill",visual:s,children:i}),e[1]=s,e[2]=r):r=e[2],r}function Ft(t){const e=N.c(19),{orgName:s,message:i,onRetry:r}=t,l=Q();let a;e[0]!==l?(a=l("routes.commerceOnboarding.commerceDiagnostic"),e[0]=l,e[1]=a):a=e[1];let n;e[2]!==s||e[3]!==l?(n=l("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s}),e[2]=s,e[3]=l,e[4]=n):n=e[4];let c;e[5]!==a||e[6]!==n?(c=o.jsx(J,{title:a,description:n}),e[5]=a,e[6]=n,e[7]=c):c=e[7];let m;e[8]!==i?(m=o.jsx(we,{message:i}),e[8]=i,e[9]=m):m=e[9];let d;e[10]!==l?(d=l("routes.commerceOnboarding.retryAgain"),e[10]=l,e[11]=d):d=e[11];let u;e[12]!==r||e[13]!==d?(u=o.jsx(Ne,{type:"button",size:"xl",className:"w-full",onClick:r,children:d}),e[12]=r,e[13]=d,e[14]=u):u=e[14];let f;return e[15]!==c||e[16]!==m||e[17]!==u?(f=o.jsxs("div",{className:"grid gap-10",children:[c,m,u]}),e[15]=c,e[16]=m,e[17]=u,e[18]=f):f=e[18],f}function $t(t){const e=N.c(135),{org:s,initialSiteUrl:i,sessionEmail:r}=t;let l;e[0]!==s.id||e[1]!==s.slug?(l={connectionId:Ct,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l):l=e[2];const a=jt(l),[n,c]=Y.useState(i??""),[m,d]=Y.useState(null),u=Y.useRef(!1),f=Ot.COMMERCE_DISCOVERY(s.id),p=vt(s.id),O=He.commerceDiscoveryConnection(s.id,f);let v;e[3]!==f||e[4]!==a?(v=async()=>{const y=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:f}});return Le(y)},e[3]=f,e[4]=a,e[5]=v):v=e[5];let w;e[6]!==O||e[7]!==v?(w={queryKey:O,queryFn:v,retry:!1},e[6]=O,e[7]=v,e[8]=w):w=e[8];const C=Be(w),I=He.commerceDiscoveryVirtualMcp(s.id,p);let E;e[9]!==a||e[10]!==p?(E=async()=>{const y=await a.callTool({name:"COLLECTION_VIRTUAL_MCP_GET",arguments:{id:p}});return Le(y)},e[9]=a,e[10]=p,e[11]=E):E=e[11];let A;e[12]!==I||e[13]!==E?(A={queryKey:I,queryFn:E,retry:!1},e[12]=I,e[13]=E,e[14]=A):A=e[14];const W=Be(A);let q;e[15]!==a?(q=async y=>{const S=await a.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:y}});return Le(S)},e[15]=a,e[16]=q):q=e[16];let g;e[17]!==C||e[18]!==s.id||e[19]!==W?(g=(y,S)=>{ue("commerce_onboarding_setup_succeeded",{domain:Me(S)??void 0,organization_id:s.id}),d(null),C.refetch(),W.refetch()},e[17]=C,e[18]=s.id,e[19]=W,e[20]=g):g=e[20];let h;e[21]!==s.id?(h=(y,S)=>{ue("commerce_onboarding_setup_failed",{domain:Me(S)??void 0,organization_id:s.id,error:y instanceof Error?y.message:String(y)}),d(y instanceof Error?y.message:"__configurationFailed")},e[21]=s.id,e[22]=h):h=e[22];let x;e[23]!==h||e[24]!==q||e[25]!==g?(x={mutationFn:q,retry:!1,onSuccess:g,onError:h},e[23]=h,e[24]=q,e[25]=g,e[26]=x):x=e[26];const b=Ze(x),_=!!C.data.item&&!!W.data.item,T=C.data.item,z=typeof T?.metadata?.siteUrl=="string"?T.metadata.siteUrl:void 0,R=i||n||"";let U;e[27]!==z||e[28]!==R?(U=ut(R,z),e[27]=z,e[28]=R,e[29]=U):U=e[29];const P=_&&U,L=i||n||z||"",j=Q(),[X]=Ee();let Z;e[30]!==L||e[31]!==X.language||e[32]!==r?(Z=De({siteUrl:L,email:r,locale:X.language}),e[30]=L,e[31]=X.language,e[32]=r,e[33]=Z):Z=e[33];const Ue=Z;let ge;e[34]!==Ue||e[35]!==s.id?(ge=o.jsx(Fe,{href:Ue,orgId:s.id}),e[34]=Ue,e[35]=s.id,e[36]=ge):ge=e[36];const $=ge;let fe;e[37]!==m||e[38]!==j?(fe=m?Ye(j,m):null,e[37]=m,e[38]=j,e[39]=fe):fe=e[39];const H=fe;let pe;e[40]!==b?(pe=y=>{const S=ze(y);if(!S.ok){d(S.error);return}d(null),b.mutate(S.value)},e[40]=b,e[41]=pe):pe=e[41];const ee=pe;let he;e[42]!==i||e[43]!==ee||e[44]!==P?(he=y=>{!y||u.current||P||!i||(u.current=!0,ee(i))},e[42]=i,e[43]=ee,e[44]=P,e[45]=he):he=e[45];const Pe=he;let be;e[46]!==s.id||e[47]!==ee||e[48]!==n?(be=y=>{y.preventDefault();const S=ze(n);S.ok&&ue("commerce_onboarding_site_url_submitted",{domain:new URL(S.value).hostname,organization_id:s.id}),ee(n)},e[46]=s.id,e[47]=ee,e[48]=n,e[49]=be):be=e[49];const V=be;if(P){const y=s.slug;let S;e[50]===Symbol.for("react.memo_cache_sentinel")?(S=crypto.randomUUID(),e[50]=S):S=e[50];let k;e[51]!==s.slug?(k={org:y,taskId:S},e[51]=s.slug,e[52]=k):k=e[52];let D;e[53]!==s.id?(D=St(s.id),e[53]=s.id,e[54]=D):D=e[54];const G=L||void 0;let F;e[55]!==D.id||e[56]!==G?(F={virtualmcpid:D.id,connect:"1",siteUrl:G},e[55]=D.id,e[56]=G,e[57]=F):F=e[57];let K;return e[58]!==k||e[59]!==F?(K=o.jsx(mt,{to:"/$org/$taskId",params:k,search:F,replace:!0}),e[58]=k,e[59]=F,e[60]=K):K=e[60],K}if(b.isPending){let y;return e[61]!==$?(y=o.jsx(it,{visual:$}),e[61]=$,e[62]=y):y=e[62],y}if(i){let y,S,k,D,G,F,K,ne;if(e[63]!==$||e[64]!==V||e[65]!==i||e[66]!==s.name||e[67]!==b.isPending||e[68]!==n||e[69]!==j||e[70]!==H||e[71]!==Pe){ne=Symbol.for("react.early_return_sentinel");e:{const Ie=ze(i);if(!Ie.ok){let me;e[80]!==j?(me=j("routes.commerceOnboarding.commerceDiagnostic"),e[80]=j,e[81]=me):me=e[81];let de;e[82]!==s.name||e[83]!==j?(de=j("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s.name}),e[82]=s.name,e[83]=j,e[84]=de):de=e[84];let Ce;e[85]!==me||e[86]!==de?(Ce=o.jsx(J,{title:me,description:de}),e[85]=me,e[86]=de,e[87]=Ce):Ce=e[87];let je;e[88]!==V||e[89]!==b.isPending||e[90]!==n||e[91]!==H?(je=o.jsx(ke,{siteUrl:n,error:H,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V}),e[88]=V,e[89]=b.isPending,e[90]=n,e[91]=H,e[92]=je):je=e[92];const Re=o.jsxs("div",{className:"grid gap-10",children:[Ce,o.jsx(we,{message:Ye(j,Ie.error)}),je]});let Oe;e[93]!==$||e[94]!==Re?(Oe=o.jsx(B,{visual:$,children:Re}),e[93]=$,e[94]=Re,e[95]=Oe):Oe=e[95],ne=Oe;break e}S=B,K=$,G=Pe,F="grid gap-10",y=J,e[96]!==j?(k=j("routes.commerceOnboarding.commerceDiagnostic"),e[96]=j,e[97]=k):k=e[97],D=j("routes.commerceOnboarding.commerceDiscoveryBeingPrepared",{url:Ie.value})}e[63]=$,e[64]=V,e[65]=i,e[66]=s.name,e[67]=b.isPending,e[68]=n,e[69]=j,e[70]=H,e[71]=Pe,e[72]=y,e[73]=S,e[74]=k,e[75]=D,e[76]=G,e[77]=F,e[78]=K,e[79]=ne}else y=e[72],S=e[73],k=e[74],D=e[75],G=e[76],F=e[77],K=e[78],ne=e[79];if(ne!==Symbol.for("react.early_return_sentinel"))return ne;let le;e[98]!==y||e[99]!==k||e[100]!==D?(le=o.jsx(y,{title:k,description:D}),e[98]=y,e[99]=k,e[100]=D,e[101]=le):le=e[101];let ae;e[102]!==V||e[103]!==b.isPending||e[104]!==n||e[105]!==H?(ae=H?o.jsxs(o.Fragment,{children:[o.jsx(we,{message:H}),o.jsx(ke,{siteUrl:n,error:null,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V})]}):o.jsx(et,{}),e[102]=V,e[103]=b.isPending,e[104]=n,e[105]=H,e[106]=ae):ae=e[106];let ce;e[107]!==G||e[108]!==F||e[109]!==le||e[110]!==ae?(ce=o.jsxs("div",{ref:G,className:F,children:[le,ae]}),e[107]=G,e[108]=F,e[109]=le,e[110]=ae,e[111]=ce):ce=e[111];let ye;return e[112]!==S||e[113]!==K||e[114]!==ce?(ye=o.jsx(S,{visual:K,children:ce}),e[112]=S,e[113]=K,e[114]=ce,e[115]=ye):ye=e[115],ye}let te;e[116]!==j?(te=j("routes.commerceOnboarding.commerceDiagnostic"),e[116]=j,e[117]=te):te=e[117];let re;e[118]!==s.name||e[119]!==j?(re=j("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s.name}),e[118]=s.name,e[119]=j,e[120]=re):re=e[120];let oe;e[121]!==te||e[122]!==re?(oe=o.jsx(J,{title:te,description:re}),e[121]=te,e[122]=re,e[123]=oe):oe=e[123];let ie;e[124]!==V||e[125]!==b.isPending||e[126]!==n||e[127]!==H?(ie=o.jsx(ke,{siteUrl:n,error:H,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V}),e[124]=V,e[125]=b.isPending,e[126]=n,e[127]=H,e[128]=ie):ie=e[128];let se;e[129]!==oe||e[130]!==ie?(se=o.jsxs("div",{className:"grid gap-10",children:[oe,ie]}),e[129]=oe,e[130]=ie,e[131]=se):se=e[131];let xe;return e[132]!==$||e[133]!==se?(xe=o.jsx(B,{visual:$,children:se}),e[132]=$,e[133]=se,e[134]=xe):xe=e[134],xe}function ke(t){const e=N.c(30),{siteUrl:s,error:i,isSubmitting:r,onSiteUrlChange:l,onSubmit:a}=t,n=Q();let c;e[0]!==n?(c=n("routes.commerceOnboarding.siteUrlLabel"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==c?(m=o.jsx("label",{className:"text-sm font-medium",htmlFor:"commerce-site-url",children:c}),e[2]=c,e[3]=m):m=e[3];let d;e[4]!==l?(d=A=>l(A.target.value),e[4]=l,e[5]=d):d=e[5];let u;e[6]!==n?(u=n("routes.commerceOnboarding.siteUrlPlaceholder"),e[6]=n,e[7]=u):u=e[7];const f=!!i;let p;e[8]!==r||e[9]!==s||e[10]!==d||e[11]!==u||e[12]!==f?(p=o.jsx(ht,{id:"commerce-site-url",type:"text",inputMode:"url",value:s,onChange:d,placeholder:u,"aria-invalid":f,disabled:r}),e[8]=r,e[9]=s,e[10]=d,e[11]=u,e[12]=f,e[13]=p):p=e[13];let O;e[14]!==i?(O=i?o.jsx(we,{message:i}):null,e[14]=i,e[15]=O):O=e[15];let v;e[16]!==m||e[17]!==p||e[18]!==O?(v=o.jsxs("div",{className:"grid gap-2",children:[m,p,O]}),e[16]=m,e[17]=p,e[18]=O,e[19]=v):v=e[19];let w;e[20]!==n?(w=n("routes.commerceOnboarding.authCopy.continue"),e[20]=n,e[21]=w):w=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(_t,{size:16}),e[22]=C):C=e[22];let I;e[23]!==r||e[24]!==w?(I=o.jsxs(Ne,{type:"submit",size:"xl",className:"w-full",disabled:r,children:[w,C]}),e[23]=r,e[24]=w,e[25]=I):I=e[25];let E;return e[26]!==a||e[27]!==I||e[28]!==v?(E=o.jsxs("form",{className:"grid gap-4",onSubmit:a,children:[v,I]}),e[26]=a,e[27]=I,e[28]=v,e[29]=E):E=e[29],E}function we(t){const e=N.c(2),{message:s}=t;let i;return e[0]!==s?(i=o.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:s}),e[0]=s,e[1]=i):i=e[1],i}export{fo as default};
1
+ import{c as N,b as Q,j as o,m as Te,p as ue,B as Ne,u as Xe,r as Y,a as Ae,q as st,d as nt,s as lt,e as Ze,v as Ee,w as Se,Q as at,E as ct,K as He,x as Be,N as mt}from"./index-CpgCWtjx.js";import{L as dt,s as Me,S as We,C as qe,i as ut,n as ze,a as et,p as Le}from"./self-tool-result-CEDFRKz8.js";import{A as gt}from"./auth-entry-BmAyPYZA.js";import{A as ft}from"./auth-split-layout-C3AbOxQI.js";import{O as Ve}from"./organization-choice-DMdWOo0N.js";import{r as pt}from"./track-D4UrkVyG.js";import{I as ht}from"./input-C6rsOog9.js";import{D as bt,a as Ke,b as xt,c as yt}from"./dropdown-menu-B1JSlTD_.js";import{S as Ct,u as jt,W as Ot,g as vt,a as St}from"./use-mcp-client-DNTUxbuY.js";import{i as _t}from"./XCircle-BQeEwYoS.js";import{i as wt}from"./ArrowUpRight-BjeBnQVZ.js";import"./alert-dialog-CnMgtfdW.js";import"./form-BNi0RaBk.js";import"./label-D6Yx_7uP.js";import"./spinner-D5s4_j9p.js";import"./integration-icon-DydPPrfR.js";import"./Tool02-D94HhDSt.js";import"./agent-icon-C6CE6B1A.js";import"./AlertCircle-CuSxtNeK.js";import"./Tool01-CZcPEql4.js";import"./ArrowUp-B0kiHs6M.js";import"./ArrowLeft-yTJ7VhMO.js";import"./TrendUp01-D2icRO71.js";import"./ZapSquare-npbtUsou.js";import"./Users03-DW0z1cHZ.js";import"./CheckCircle-Cl3Ju3Sg.js";import"./Check-BWhEi7Rw.js";import"./ChevronDown-Dkh4z_Q1.js";import"./ChevronRight-CcnXyfrQ.js";import"./ChevronSelectorVertical-DWTdcOUT.js";import"./ChevronUp-BiCZM38g.js";import"./DotsVertical-CeLFQvGz.js";import"./Stars02-qDjx3qRw.js";import"./Copy01-D8j7FbTr.js";import"./CreditCard01-BbexFch7.js";import"./Download01-OSJdhzs0.js";import"./Settings02-Blmgs5fo.js";import"./Eye-DED_vrlB.js";import"./FilterLines-Jo1sXCBM.js";import"./Share07-DSvCzHkq.js";import"./Globe01-BEBqbxVK.js";import"./Globe04-Cr0sBpJ3.js";import"./SwitchHorizontal01-CHaAGJb5.js";import"./HardDrive-BfnitxKr.js";import"./Key01-D7jDDN63.js";import"./LayoutLeft-DptfEqfx.js";import"./LinkExternal01-GrKKBhvU.js";import"./LockUnlocked01-BlcehP5l.js";import"./LogOut01-DGM6h5Gc.js";import"./Monitor01-DgmwLiwU.js";import"./Sun-CVd4NlmJ.js";import"./Palette-Dw_H03tG.js";import"./Play-DljDr1nY.js";import"./Plus-CsECKBMf.js";import"./SearchLg-ofEWcNI2.js";import"./SearchMd-8SfAOvdD.js";import"./Shield01-D6VUNXFt.js";import"./Stars01-BME_OpjX.js";import"./Trash01-DfFghvja.js";import"./Upload01-ChI2cFzq.js";import"./User01-DKPUJiII.js";import"./Users01-CqGkFGjh.js";import"./XClose-CM76fdj5.js";import"./X-BtFSIdFW.js";import"./Zap-D75NTam5.js";import"./dialog-BK6S7VwB.js";import"./tooltip-C_T_6gNE.js";import"./extract-connection-data-00PBSu9m.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./use-debounced-value-3PboZNp2.js";import"./authenticate-and-persist-oauth-CVy8SmOS.js";import"./mcp-oauth-Cui8s0cH.js";import"./auth-DFdi28KE.js";import"./use-is-desktop-app-BNujXJc_.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./avatar-B3ZGJil4.js";const Qe={"pt-BR":"https://decocms.com/agendar",en:"https://www.decocms.com/en/schedule"},Ge=["https://decoims.com/image?src=decocms%2Fb07a1c19-0cd6-49c8-b326-86055ee78605%2Fauthor-1763423987973-baby.jpeg&quality=original&fit=cover&width=200&height=200","https://decoims.com/decocms/07c2daf4-a3c2-485e-a1a8-341585a06e3b/cecilia.png","https://decoims.com/decocms/48013ca2-3277-464b-b0f1-dd5f1f08d986/tavano.png"],Nt="var(--brand-green-dark)";function De({siteUrl:t,email:e,locale:s}){const i=(s&&Qe[s])??Qe["pt-BR"]??"https://decocms.com/agendar",r=new URL(i);return t&&r.searchParams.set("siteUrl",t),e&&r.searchParams.set("email",e),r.toString()}function Et(t){const e=N.c(15),{href:s,size:i,className:r,orgId:l}=t,a=i===void 0?"lg":i,n=Q();let c;e[0]!==r?(c=Te("w-full",r),e[0]=r,e[1]=c):c=e[1];let m;e[2]!==l?(m=()=>ue("commerce_onboarding_meeting_cta_clicked",{placement:"visual_card",organization_id:l}),e[2]=l,e[3]=m):m=e[3];let d;e[4]!==n?(d=n("routes.commerceOnboarding.scheduleMeeting.scheduleButton"),e[4]=n,e[5]=d):d=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(wt,{size:16}),e[6]=u):u=e[6];let f;e[7]!==s||e[8]!==m||e[9]!==d?(f=o.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",onClick:m,children:[d,u]}),e[7]=s,e[8]=m,e[9]=d,e[10]=f):f=e[10];let p;return e[11]!==a||e[12]!==c||e[13]!==f?(p=o.jsx(Ne,{asChild:!0,variant:"outline",size:a,className:c,children:f}),e[11]=a,e[12]=c,e[13]=f,e[14]=p):p=e[14],p}function Ut(t){const e=N.c(13),{size:s}=t,i=s===void 0?72:s,r=Q();let l;e[0]!==r?(l=r("routes.commerceOnboarding.scheduleMeeting.expertAlt"),e[0]=r,e[1]=l):l=e[1];const a=l;let n;e[2]!==i?(n=Math.round(i*.3),e[2]=i,e[3]=n):n=e[3];const c=n;let m;e[4]!==i?(m={height:i},e[4]=i,e[5]=m):m=e[5];let d;e[6]!==a||e[7]!==c||e[8]!==i?(d=Ge.map((f,p)=>o.jsxs("div",{className:"relative shrink-0",style:{width:i,height:i,marginLeft:p===0?0:-c,zIndex:Ge.length-p},children:[o.jsx("div",{className:"h-full w-full overflow-hidden rounded-full border-4 border-card bg-muted",children:o.jsx("img",{src:f,alt:a,className:"h-full w-full object-cover",loading:"lazy"})}),p===0&&o.jsxs("span",{className:"absolute bottom-1.5 right-1.5 flex h-3.5 w-3.5",children:[o.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-success opacity-60 motion-safe:animate-ping","aria-hidden":!0}),o.jsx("span",{className:"relative inline-flex h-3.5 w-3.5 rounded-full border-2 border-card bg-success"})]})]},f)),e[6]=a,e[7]=c,e[8]=i,e[9]=d):d=e[9];let u;return e[10]!==m||e[11]!==d?(u=o.jsx("div",{className:"flex items-end",style:m,children:d}),e[10]=m,e[11]=d,e[12]=u):u=e[12],u}function Fe(t){const e=N.c(19),{href:s,orgId:i}=t,r=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"h-20",style:{backgroundColor:Nt}}),e[0]=l):l=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"-mt-9 mb-4",children:o.jsx(Ut,{})}),e[1]=a):a=e[1];let n;e[2]!==r?(n=r("routes.commerceOnboarding.scheduleMeeting.headline"),e[2]=r,e[3]=n):n=e[3];let c;e[4]!==n?(c=o.jsx("h2",{className:"text-lg font-medium leading-6 text-foreground",children:n}),e[4]=n,e[5]=c):c=e[5];let m;e[6]!==r?(m=r("routes.commerceOnboarding.scheduleMeeting.body"),e[6]=r,e[7]=m):m=e[7];let d;e[8]!==m?(d=o.jsx("p",{className:"text-sm leading-5 text-muted-foreground",children:m}),e[8]=m,e[9]=d):d=e[9];let u;e[10]!==c||e[11]!==d?(u=o.jsxs("div",{className:"grid gap-1.5",children:[c,d]}),e[10]=c,e[11]=d,e[12]=u):u=e[12];let f;e[13]!==s||e[14]!==i?(f=o.jsx(Et,{href:s,size:"lg",className:"mt-6",orgId:i}),e[13]=s,e[14]=i,e[15]=f):f=e[15];let p;return e[16]!==u||e[17]!==f?(p=o.jsx("div",{className:"relative flex h-full w-full items-center justify-center p-10",children:o.jsxs("div",{className:"w-full max-w-[440px] overflow-hidden rounded-3xl border border-border bg-card card-shadow",children:[l,o.jsxs("div",{className:"px-8 pb-8",children:[a,u,f]})]})}),e[16]=u,e[17]=f,e[18]=p):p=e[18],p}function tt(t){const e=N.c(10),{host:s}=t,i=`https://www.google.com/s2/favicons?domain=${s}&sz=128`;let r,l,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 dark:hidden"}),l=o.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-7 w-7 hidden dark:block"}),a=o.jsx("div",{className:"h-6 w-px rotate-12 bg-border","aria-hidden":"true"}),e[0]=r,e[1]=l,e[2]=a):(r=e[0],l=e[1],a=e[2]);let n;e[3]!==i?(n=o.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border bg-white",children:o.jsx("img",{src:i,alt:"",className:"h-5 w-5",loading:"lazy"})}),e[3]=i,e[4]=n):n=e[4];let c;e[5]!==s?(c=o.jsx("span",{className:"text-lg font-medium text-foreground",children:s}),e[5]=s,e[6]=c):c=e[6];let m;return e[7]!==n||e[8]!==c?(m=o.jsxs("div",{className:"flex items-center gap-3",children:[r,l,a,n,c]}),e[7]=n,e[8]=c,e[9]=m):m=e[9],m}function $e(t){const e=N.c(5),{variant:s}=t,i=Q();let r;e[0]!==i||e[1]!==s?(r=i(s==="workspace"?"routes.commerceOnboarding.loading.preparingWorkspace":"routes.commerceOnboarding.loading.preparing"),e[0]=i,e[1]=s,e[2]=r):r=e[2];const l=r;let a;return e[3]!==l?(a=o.jsx("div",{className:"flex justify-center py-4",role:"status","aria-live":"polite",children:o.jsx(dt,{label:l,className:"text-muted-foreground"})}),e[3]=l,e[4]=a):a=e[4],a}function fo(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Lt,{}),t[0]=e):e=t[0],e}const rt=Y.createContext(null),ot=()=>Y.useContext(rt);function Pt(){const t=N.c(22),[e,s]=Ee(),i=e.language==="pt-BR"?"PT-BR":"EN";let r;t[0]!==i?(r=o.jsx(bt,{asChild:!0,children:o.jsx("button",{className:"text-sm font-medium text-foreground/70 hover:text-foreground transition-colors",type:"button",children:i})}),t[0]=i,t[1]=r):r=t[1];let l;t[2]!==s?(l=()=>{s(Rt)},t[2]=s,t[3]=l):l=t[3];const a=e.language==="en"&&"bg-accent";let n;t[4]!==a?(n=Te(a),t[4]=a,t[5]=n):n=t[5];let c;t[6]!==l||t[7]!==n?(c=o.jsx(Ke,{onClick:l,className:n,children:"English"}),t[6]=l,t[7]=n,t[8]=c):c=t[8];let m;t[9]!==s?(m=()=>{s(It)},t[9]=s,t[10]=m):m=t[10];const d=e.language==="pt-BR"&&"bg-accent";let u;t[11]!==d?(u=Te(d),t[11]=d,t[12]=u):u=t[12];let f;t[13]!==m||t[14]!==u?(f=o.jsx(Ke,{onClick:m,className:u,children:"Português (Brasil)"}),t[13]=m,t[14]=u,t[15]=f):f=t[15];let p;t[16]!==c||t[17]!==f?(p=o.jsxs(xt,{align:"end",children:[c,f]}),t[16]=c,t[17]=f,t[18]=p):p=t[18];let O;return t[19]!==r||t[20]!==p?(O=o.jsxs(yt,{children:[r,p]}),t[19]=r,t[20]=p,t[21]=O):O=t[21],O}function It(t){return{...t,language:"pt-BR"}}function Rt(t){return{...t,language:"en"}}function B(t){const e=N.c(17);let s,i,r;e[0]!==t?({visual:r,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=i,e[3]=r):(s=e[1],i=e[2],r=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/commerce-onboarding"},e[4]=l):l=e[4];const a=Xe(l),{data:n}=Ae.useSession(),[c]=Ee(),m=n?.user?.email;let d;e[5]!==c.language||e[6]!==a.siteUrl||e[7]!==m?(d=De({siteUrl:a.siteUrl,email:m,locale:c.language}),e[5]=c.language,e[6]=a.siteUrl,e[7]=m,e[8]=d):d=e[8];const u=d;let f;e[9]!==u||e[10]!==r?(f=r??o.jsx(Fe,{href:u}),e[9]=u,e[10]=r,e[11]=f):f=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs("div",{className:"flex justify-between items-start mb-8",children:[o.jsx("div",{}),o.jsx(Pt,{})]}),e[12]=p):p=e[12];let O;return e[13]!==s||e[14]!==i||e[15]!==f?(O=o.jsxs(ft,{...i,visual:f,children:[p,s]}),e[13]=s,e[14]=i,e[15]=f,e[16]=O):O=e[16],O}function zt(t){return{signUpFailed:t("routes.commerceOnboarding.authCopy.signUpFailed"),signInFailed:t("routes.commerceOnboarding.authCopy.signInFailed"),authenticationFailed:t("routes.commerceOnboarding.authCopy.authenticationFailed"),resetEmailFailed:t("routes.commerceOnboarding.authCopy.resetEmailFailed"),otpSendFailed:t("routes.commerceOnboarding.authCopy.otpSendFailed"),invalidCode:t("routes.commerceOnboarding.authCopy.invalidCode"),invalidEmail:t("routes.commerceOnboarding.authCopy.invalidEmail"),invalidEmailOrPassword:t("routes.commerceOnboarding.authCopy.invalidEmailOrPassword"),accountExists:t("routes.commerceOnboarding.authCopy.accountExists"),networkError:t("routes.commerceOnboarding.authCopy.networkError"),tooManyAttempts:t("routes.commerceOnboarding.authCopy.tooManyAttempts"),invalidOrExpiredCode:t("routes.commerceOnboarding.authCopy.invalidOrExpiredCode"),genericError:t("routes.commerceOnboarding.authCopy.genericError"),resetPasswordTitle:t("routes.commerceOnboarding.authCopy.resetPasswordTitle"),verificationCodeTitle:t("routes.commerceOnboarding.authCopy.verificationCodeTitle"),welcomeTitle:t("routes.commerceOnboarding.authCopy.welcomeTitle"),resetPasswordSubtitle:t("routes.commerceOnboarding.authCopy.resetPasswordSubtitle"),codeSentTo:e=>t("routes.commerceOnboarding.authCopy.codeSentTo",{email:e}),defaultSubtitle:t("routes.commerceOnboarding.authCopy.defaultSubtitle"),resetEmailSent:t("routes.commerceOnboarding.authCopy.resetEmailSent"),continueWith:e=>t("routes.commerceOnboarding.authCopy.continueWith",{provider:e}),divider:t("routes.commerceOnboarding.authCopy.divider"),emailLabel:t("routes.commerceOnboarding.authCopy.emailLabel"),emailPlaceholder:t("routes.commerceOnboarding.authCopy.emailPlaceholder"),sending:t("routes.commerceOnboarding.authCopy.sending"),sendCode:t("routes.commerceOnboarding.authCopy.sendCode"),verificationCodeLabel:t("routes.commerceOnboarding.authCopy.verificationCodeLabel"),enterCodePlaceholder:t("routes.commerceOnboarding.authCopy.enterCodePlaceholder"),verifying:t("routes.commerceOnboarding.authCopy.verifying"),verify:t("routes.commerceOnboarding.authCopy.verify"),useDifferentEmail:t("routes.commerceOnboarding.authCopy.useDifferentEmail"),sendResetLink:t("routes.commerceOnboarding.authCopy.sendResetLink"),nameLabel:t("routes.commerceOnboarding.authCopy.nameLabel"),namePlaceholder:t("routes.commerceOnboarding.authCopy.namePlaceholder"),passwordLabel:t("routes.commerceOnboarding.authCopy.passwordLabel"),forgotPassword:t("routes.commerceOnboarding.authCopy.forgotPassword"),creatingAccount:t("routes.commerceOnboarding.authCopy.creatingAccount"),signingIn:t("routes.commerceOnboarding.authCopy.signingIn"),continue:t("routes.commerceOnboarding.authCopy.continue"),backToSignIn:t("routes.commerceOnboarding.authCopy.backToSignIn"),signInWithPassword:t("routes.commerceOnboarding.authCopy.signInWithPassword"),alreadyHaveAccount:t("routes.commerceOnboarding.authCopy.alreadyHaveAccount"),dontHaveAccount:t("routes.commerceOnboarding.authCopy.dontHaveAccount"),signIn:t("routes.commerceOnboarding.authCopy.signIn"),signUp:t("routes.commerceOnboarding.authCopy.signUp"),signInWithEmailCode:t("routes.commerceOnboarding.authCopy.signInWithEmailCode")}}function Ye(t,e){switch(e){case"Enter a website URL.":return t("routes.commerceOnboarding.siteUrl.enterUrl");case"Use an HTTP or HTTPS website URL.":return t("routes.commerceOnboarding.siteUrl.useHttpOrHttps");case"Enter a valid website URL.":return t("routes.commerceOnboarding.siteUrl.enterValidUrl");case"__configurationFailed":return t("routes.commerceOnboarding.configurationFailed");default:return e}}let Je=!1;function Lt(){const t=Xe({from:"/commerce-onboarding"}),{org:e,siteUrl:s}=t,i=Me(s);if(!Je&&st()){Je=!0;const r=pt(window.location.search);ue("commerce_onboarding_viewed",{site_url:s,domain:i??void 0,...r,...i?{$set:{last_scanned_domain:i}}:{}})}return o.jsx(rt.Provider,{value:i,children:o.jsx(kt,{requestedOrgSlug:e,siteUrl:s})})}function kt(t){const e=N.c(14),{requestedOrgSlug:s,siteUrl:i}=t,r=Q(),{data:l,isPending:a}=Ae.useSession(),n=ot();if(a){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(B,{children:o.jsx($e,{variant:"generic"})}),e[0]=m):m=e[0],m}if(!l){const m=typeof window>"u"?"/commerce-onboarding":`${window.location.pathname}${window.location.search}`;let d;e[1]!==r?(d=r("routes.commerceOnboarding.unlockDiagnostic"),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==n?(u=n?o.jsx(tt,{host:n}):void 0,e[3]=n,e[4]=u):u=e[4];let f;e[5]!==r?(f=zt(r),e[5]=r,e[6]=f):f=e[6];let p;return e[7]!==d||e[8]!==u||e[9]!==f?(p=o.jsx(B,{children:o.jsx(gt,{callbackUrl:m,allowAutoLogin:!1,title:d,subtitle:null,brand:u,copy:f})}),e[7]=d,e[8]=u,e[9]=f,e[10]=p):p=e[10],p}let c;return e[11]!==s||e[12]!==i?(c=o.jsx(Tt,{requestedOrgSlug:s,siteUrl:i}),e[11]=s,e[12]=i,e[13]=c):c=e[13],c}function Tt(t){const e=N.c(121),{requestedOrgSlug:s,siteUrl:i}=t,r=Q(),l=nt(),a=lt(),[n,c]=Y.useState(null),[m,d]=Y.useState(null),[u,f]=Y.useState(!1),p=a.data?.map(At)??[];let O;e[0]===Symbol.for("react.memo_cache_sentinel")?(O={mutationFn:Mt,retry:!1,onSuccess:g=>{d(g)}},e[0]=O):O=e[0];const v=Ze(O);if(a.isPending){let g;return e[1]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(B,{children:o.jsx($e,{variant:"workspace"})}),e[1]=g):g=e[1],g}if(a.error){let g;e[2]!==r?(g=r("routes.commerceOnboarding.couldNotLoadOrgs"),e[2]=r,e[3]=g):g=e[3];let h;e[4]!==r?(h=r("routes.commerceOnboarding.retryToConfigureCommerce"),e[4]=r,e[5]=h):h=e[5];let x;e[6]!==r?(x=r("routes.commerceOnboarding.retryAgain"),e[6]=r,e[7]=x):x=e[7];let b;e[8]!==a?(b=()=>a.refetch(),e[8]=a,e[9]=b):b=e[9];let _;return e[10]!==g||e[11]!==h||e[12]!==x||e[13]!==b?(_=o.jsx(_e,{title:g,description:h,actionLabel:x,onRetry:b}),e[10]=g,e[11]=h,e[12]=x,e[13]=b,e[14]=_):_=e[14],_}const w=s?p.find(g=>g.slug===s):null;if(w){let g;return e[15]!==w||e[16]!==i?(g=o.jsx(ve,{org:w,initialSiteUrl:i}),e[15]=w,e[16]=i,e[17]=g):g=e[17],g}if(s){let g;e[18]!==r?(g=r("routes.commerceOnboarding.orgNotFound"),e[18]=r,e[19]=g):g=e[19];let h;e[20]!==r?(h=r("routes.commerceOnboarding.couldNotFindOrg"),e[20]=r,e[21]=h):h=e[21];let x;e[22]!==r?(x=r("routes.commerceOnboarding.retryAgain"),e[22]=r,e[23]=x):x=e[23];let b;e[24]!==a?(b=()=>a.refetch(),e[24]=a,e[25]=b):b=e[25];let _;return e[26]!==g||e[27]!==h||e[28]!==x||e[29]!==b?(_=o.jsx(_e,{title:g,description:h,actionLabel:x,onRetry:b}),e[26]=g,e[27]=h,e[28]=x,e[29]=b,e[30]=_):_=e[30],_}if(n){let g;return e[31]!==n||e[32]!==i?(g=o.jsx(ve,{org:n,initialSiteUrl:i}),e[31]=n,e[32]=i,e[33]=g):g=e[33],g}if(p.length===1&&p[0]){let g;return e[34]!==p[0]||e[35]!==i?(g=o.jsx(ve,{org:p[0],initialSiteUrl:i}),e[34]=p[0],e[35]=i,e[36]=g):g=e[36],g}if(p.length>1){let g;e[37]!==r?(g=r("routes.commerceOnboarding.chooseOrg"),e[37]=r,e[38]=g):g=e[38];let h;e[39]!==r?(h=r("routes.commerceOnboarding.selectWhereCommerceContinues"),e[39]=r,e[40]=h):h=e[40];let x;e[41]!==g||e[42]!==h?(x=o.jsx(J,{title:g,description:h}),e[41]=g,e[42]=h,e[43]=x):x=e[43];let b;e[44]!==r?(b=r("routes.commerceOnboarding.authCopy.continue"),e[44]=r,e[45]=b):b=e[45];let _;e[46]!==l||e[47]!==i?(_=j=>l({to:"/commerce-onboarding",search:{org:j.slug,siteUrl:i}}),e[46]=l,e[47]=i,e[48]=_):_=e[48];let T;e[49]===Symbol.for("react.memo_cache_sentinel")?(T=()=>f(!0),e[49]=T):T=e[49];let z;e[50]!==r?(z=r("routes.commerceOnboarding.createNewOrg"),e[50]=r,e[51]=z):z=e[51];let R;e[52]!==p||e[53]!==b||e[54]!==_||e[55]!==z?(R=o.jsx(We,{className:"-mx-1 -my-1 max-h-[60vh] overflow-y-auto px-1 py-1",children:o.jsx(Ve,{organizations:p,selectLabel:b,onSelected:_,onCreateNew:T,createNewLabel:z})}),e[52]=p,e[53]=b,e[54]=_,e[55]=z,e[56]=R):R=e[56];let U;e[57]!==x||e[58]!==R?(U=o.jsxs("div",{className:"grid gap-10",children:[x,R]}),e[57]=x,e[58]=R,e[59]=U):U=e[59];let M;e[60]!==l||e[61]!==i?(M=j=>{Se(),l({to:"/commerce-onboarding",search:{org:j,siteUrl:i}})},e[60]=l,e[61]=i,e[62]=M):M=e[62];let P;e[63]!==u||e[64]!==M?(P=o.jsx(qe,{open:u,onOpenChange:f,onCreated:M}),e[63]=u,e[64]=M,e[65]=P):P=e[65];let L;return e[66]!==U||e[67]!==P?(L=o.jsxs(B,{children:[U,P]}),e[66]=U,e[67]=P,e[68]=L):L=e[68],L}if(!m){let g;e[69]!==v?(g=()=>{v.reset(),v.mutate()},e[69]=v,e[70]=g):g=e[70];let h;return e[71]!==v||e[72]!==g?(h=o.jsx(Dt,{mutation:v,onRetry:g}),e[71]=v,e[72]=g,e[73]=h):h=e[73],h}const C=m;if(C?.success&&(C.status==="created"||C.status==="joined"||C.status==="already_has_organization")&&C.organization){let g;return e[74]!==C.organization||e[75]!==i?(g=o.jsx(ve,{org:C.organization,initialSiteUrl:i}),e[74]=C.organization,e[75]=i,e[76]=g):g=e[76],g}if(C?.status==="ambiguous"&&C.organizations&&C.organizations.length>0){let g;e[77]!==r?(g=r("routes.commerceOnboarding.chooseOrg"),e[77]=r,e[78]=g):g=e[78];let h;e[79]!==r?(h=r("routes.commerceOnboarding.emailAccessMultipleOrgs"),e[79]=r,e[80]=h):h=e[80];let x;e[81]!==g||e[82]!==h?(x=o.jsx(J,{title:g,description:h}),e[81]=g,e[82]=h,e[83]=x):x=e[83];const b=C.organizations,_=C.domain??void 0;let T;e[84]!==l||e[85]!==i?(T=(X,Z)=>{Se(),c({...X,slug:Z}),l({to:"/commerce-onboarding",search:{org:Z,siteUrl:i}})},e[84]=l,e[85]=i,e[86]=T):T=e[86];let z;e[87]===Symbol.for("react.memo_cache_sentinel")?(z=()=>f(!0),e[87]=z):z=e[87];let R;e[88]!==r?(R=r("routes.commerceOnboarding.createNewOrg"),e[88]=r,e[89]=R):R=e[89];let U;e[90]!==C.organizations||e[91]!==_||e[92]!==T||e[93]!==R?(U=o.jsx(We,{className:"-mx-1 -my-1 max-h-[60vh] overflow-y-auto px-1 py-1",children:o.jsx(Ve,{organizations:b,domain:_,onJoined:T,onCreateNew:z,createNewLabel:R})}),e[90]=C.organizations,e[91]=_,e[92]=T,e[93]=R,e[94]=U):U=e[94];let M;e[95]!==U||e[96]!==x?(M=o.jsxs("div",{className:"grid gap-10",children:[x,U]}),e[95]=U,e[96]=x,e[97]=M):M=e[97];let P;e[98]!==l||e[99]!==i?(P=X=>{Se(),l({to:"/commerce-onboarding",search:{org:X,siteUrl:i}})},e[98]=l,e[99]=i,e[100]=P):P=e[100];let L;e[101]!==u||e[102]!==P?(L=o.jsx(qe,{open:u,onOpenChange:f,onCreated:P}),e[101]=u,e[102]=P,e[103]=L):L=e[103];let j;return e[104]!==M||e[105]!==L?(j=o.jsxs(B,{children:[M,L]}),e[104]=M,e[105]=L,e[106]=j):j=e[106],j}let I;e[107]!==r?(I=r("routes.commerceOnboarding.onboardingNeedsSupport"),e[107]=r,e[108]=I):I=e[108];let E;e[109]!==C?.error||e[110]!==r?(E=C?.error??r("routes.commerceOnboarding.couldNotDetermineOrg"),e[109]=C?.error,e[110]=r,e[111]=E):E=e[111];let A;e[112]!==r?(A=r("routes.commerceOnboarding.retryAgain"),e[112]=r,e[113]=A):A=e[113];let W;e[114]!==v?(W=()=>{d(null),v.reset()},e[114]=v,e[115]=W):W=e[115];let q;return e[116]!==I||e[117]!==E||e[118]!==A||e[119]!==W?(q=o.jsx(_e,{title:I,description:E,actionLabel:A,onRetry:W}),e[116]=I,e[117]=E,e[118]=A,e[119]=W,e[120]=q):q=e[120],q}async function Mt(){const e=await(await fetch("/api/auth/custom/ensure-organization",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e.success&&(e.status==="created"||e.status==="joined"||e.status==="already_has_organization")&&e.organization&&Se(),e}function At(t){return{id:t.id,name:t.name,slug:t.slug,logo:t.logo??null}}function Dt(t){const e=N.c(16),{mutation:s,onRetry:i}=t,r=Q(),l=Y.useRef(!1);let a;e[0]!==s?(a=d=>{!d||l.current||(l.current=!0,s.mutate())},e[0]=s,e[1]=a):a=e[1];const n=a;if(s.error){let d;e[2]!==r?(d=r("routes.commerceOnboarding.onboardingUnavailable"),e[2]=r,e[3]=d):d=e[3];let u;e[4]!==r?(u=r("routes.commerceOnboarding.couldNotPrepareOrg"),e[4]=r,e[5]=u):u=e[5];let f;e[6]!==r?(f=r("routes.commerceOnboarding.retryAgain"),e[6]=r,e[7]=f):f=e[7];let p;return e[8]!==i||e[9]!==d||e[10]!==u||e[11]!==f?(p=o.jsx(_e,{title:d,description:u,actionLabel:f,onRetry:i}),e[8]=i,e[9]=d,e[10]=u,e[11]=f,e[12]=p):p=e[12],p}let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx($e,{variant:"generic"}),e[13]=c):c=e[13];let m;return e[14]!==n?(m=o.jsx(B,{children:o.jsx("div",{ref:n,children:c})}),e[14]=n,e[15]=m):m=e[15],m}function J(t){const e=N.c(8),{title:s,description:i}=t,r=ot();let l;e[0]!==r?(l=r?o.jsx(tt,{host:r}):o.jsxs("div",{children:[o.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),o.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),e[0]=r,e[1]=l):l=e[1];let a;e[2]!==i||e[3]!==s?(a=(s||i)&&o.jsxs("div",{className:"space-y-2",children:[s&&o.jsx("h1",{className:"text-2xl font-medium leading-8",children:s}),i&&o.jsx("p",{className:"text-base text-muted-foreground leading-6",children:i})]}),e[2]=i,e[3]=s,e[4]=a):a=e[4];let n;return e[5]!==l||e[6]!==a?(n=o.jsxs("div",{className:"grid gap-10",children:[l,a]}),e[5]=l,e[6]=a,e[7]=n):n=e[7],n}function _e(t){const e=N.c(9),{title:s,description:i,actionLabel:r,onRetry:l}=t;let a;e[0]!==i||e[1]!==s?(a=o.jsx(J,{title:s,description:i}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let n;e[3]!==r||e[4]!==l?(n=o.jsx(Ne,{type:"button",size:"xl",className:"w-full",onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=n):n=e[5];let c;return e[6]!==a||e[7]!==n?(c=o.jsx(B,{children:o.jsxs("div",{className:"grid gap-10",children:[a,n]})}),e[6]=a,e[7]=n,e[8]=c):c=e[8],c}function ve(t){const e=N.c(13),{org:s,initialSiteUrl:i}=t,r=Q(),{data:l}=Ae.useSession(),[a]=Ee(),n=l?.user?.email;let c;e[0]!==i||e[1]!==a.language||e[2]!==n?(c=De({siteUrl:i,email:n,locale:a.language}),e[0]=i,e[1]=a.language,e[2]=n,e[3]=c):c=e[3];const m=c;let d;e[4]!==m||e[5]!==s.id?(d=o.jsx(Fe,{href:m,orgId:s.id}),e[4]=m,e[5]=s.id,e[6]=d):d=e[6];const u=d;let f;return e[7]!==i||e[8]!==u||e[9]!==s||e[10]!==l?.user?.email||e[11]!==r?(f=o.jsx(at,{children:p=>{const{reset:O}=p;return o.jsx(ct,{fallback:v=>{const{error:w,resetError:C}=v;return o.jsx(B,{visual:u,children:o.jsx(Ft,{orgName:s.name,message:w instanceof Error?w.message:r("routes.commerceOnboarding.couldNotVerifyCommerceSetting"),onRetry:()=>{O(),C()}})})},children:o.jsx(Y.Suspense,{fallback:o.jsx(it,{visual:u}),children:o.jsx($t,{org:s,initialSiteUrl:i,sessionEmail:l?.user?.email},`${s.id}:${i??""}`)})})}}),e[7]=i,e[8]=u,e[9]=s,e[10]=l?.user?.email,e[11]=r,e[12]=f):f=e[12],f}function it(t){const e=N.c(3),{visual:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 md:grid md:gap-4",children:[o.jsx(J,{}),o.jsx(et,{})]}),e[0]=i):i=e[0];let r;return e[1]!==s?(r=o.jsx(B,{align:"fill",visual:s,children:i}),e[1]=s,e[2]=r):r=e[2],r}function Ft(t){const e=N.c(19),{orgName:s,message:i,onRetry:r}=t,l=Q();let a;e[0]!==l?(a=l("routes.commerceOnboarding.commerceDiagnostic"),e[0]=l,e[1]=a):a=e[1];let n;e[2]!==s||e[3]!==l?(n=l("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s}),e[2]=s,e[3]=l,e[4]=n):n=e[4];let c;e[5]!==a||e[6]!==n?(c=o.jsx(J,{title:a,description:n}),e[5]=a,e[6]=n,e[7]=c):c=e[7];let m;e[8]!==i?(m=o.jsx(we,{message:i}),e[8]=i,e[9]=m):m=e[9];let d;e[10]!==l?(d=l("routes.commerceOnboarding.retryAgain"),e[10]=l,e[11]=d):d=e[11];let u;e[12]!==r||e[13]!==d?(u=o.jsx(Ne,{type:"button",size:"xl",className:"w-full",onClick:r,children:d}),e[12]=r,e[13]=d,e[14]=u):u=e[14];let f;return e[15]!==c||e[16]!==m||e[17]!==u?(f=o.jsxs("div",{className:"grid gap-10",children:[c,m,u]}),e[15]=c,e[16]=m,e[17]=u,e[18]=f):f=e[18],f}function $t(t){const e=N.c(135),{org:s,initialSiteUrl:i,sessionEmail:r}=t;let l;e[0]!==s.id||e[1]!==s.slug?(l={connectionId:Ct,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l):l=e[2];const a=jt(l),[n,c]=Y.useState(i??""),[m,d]=Y.useState(null),u=Y.useRef(!1),f=Ot.COMMERCE_DISCOVERY(s.id),p=vt(s.id),O=He.commerceDiscoveryConnection(s.id,f);let v;e[3]!==f||e[4]!==a?(v=async()=>{const y=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:f}});return Le(y)},e[3]=f,e[4]=a,e[5]=v):v=e[5];let w;e[6]!==O||e[7]!==v?(w={queryKey:O,queryFn:v,retry:!1},e[6]=O,e[7]=v,e[8]=w):w=e[8];const C=Be(w),I=He.commerceDiscoveryVirtualMcp(s.id,p);let E;e[9]!==a||e[10]!==p?(E=async()=>{const y=await a.callTool({name:"COLLECTION_VIRTUAL_MCP_GET",arguments:{id:p}});return Le(y)},e[9]=a,e[10]=p,e[11]=E):E=e[11];let A;e[12]!==I||e[13]!==E?(A={queryKey:I,queryFn:E,retry:!1},e[12]=I,e[13]=E,e[14]=A):A=e[14];const W=Be(A);let q;e[15]!==a?(q=async y=>{const S=await a.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:y}});return Le(S)},e[15]=a,e[16]=q):q=e[16];let g;e[17]!==C||e[18]!==s.id||e[19]!==W?(g=(y,S)=>{ue("commerce_onboarding_setup_succeeded",{domain:Me(S)??void 0,organization_id:s.id}),d(null),C.refetch(),W.refetch()},e[17]=C,e[18]=s.id,e[19]=W,e[20]=g):g=e[20];let h;e[21]!==s.id?(h=(y,S)=>{ue("commerce_onboarding_setup_failed",{domain:Me(S)??void 0,organization_id:s.id,error:y instanceof Error?y.message:String(y)}),d(y instanceof Error?y.message:"__configurationFailed")},e[21]=s.id,e[22]=h):h=e[22];let x;e[23]!==h||e[24]!==q||e[25]!==g?(x={mutationFn:q,retry:!1,onSuccess:g,onError:h},e[23]=h,e[24]=q,e[25]=g,e[26]=x):x=e[26];const b=Ze(x),_=!!C.data.item&&!!W.data.item,T=C.data.item,z=typeof T?.metadata?.siteUrl=="string"?T.metadata.siteUrl:void 0,R=i||n||"";let U;e[27]!==z||e[28]!==R?(U=ut(R,z),e[27]=z,e[28]=R,e[29]=U):U=e[29];const P=_&&U,L=i||n||z||"",j=Q(),[X]=Ee();let Z;e[30]!==L||e[31]!==X.language||e[32]!==r?(Z=De({siteUrl:L,email:r,locale:X.language}),e[30]=L,e[31]=X.language,e[32]=r,e[33]=Z):Z=e[33];const Ue=Z;let ge;e[34]!==Ue||e[35]!==s.id?(ge=o.jsx(Fe,{href:Ue,orgId:s.id}),e[34]=Ue,e[35]=s.id,e[36]=ge):ge=e[36];const $=ge;let fe;e[37]!==m||e[38]!==j?(fe=m?Ye(j,m):null,e[37]=m,e[38]=j,e[39]=fe):fe=e[39];const H=fe;let pe;e[40]!==b?(pe=y=>{const S=ze(y);if(!S.ok){d(S.error);return}d(null),b.mutate(S.value)},e[40]=b,e[41]=pe):pe=e[41];const ee=pe;let he;e[42]!==i||e[43]!==ee||e[44]!==P?(he=y=>{!y||u.current||P||!i||(u.current=!0,ee(i))},e[42]=i,e[43]=ee,e[44]=P,e[45]=he):he=e[45];const Pe=he;let be;e[46]!==s.id||e[47]!==ee||e[48]!==n?(be=y=>{y.preventDefault();const S=ze(n);S.ok&&ue("commerce_onboarding_site_url_submitted",{domain:new URL(S.value).hostname,organization_id:s.id}),ee(n)},e[46]=s.id,e[47]=ee,e[48]=n,e[49]=be):be=e[49];const V=be;if(P){const y=s.slug;let S;e[50]===Symbol.for("react.memo_cache_sentinel")?(S=crypto.randomUUID(),e[50]=S):S=e[50];let k;e[51]!==s.slug?(k={org:y,taskId:S},e[51]=s.slug,e[52]=k):k=e[52];let D;e[53]!==s.id?(D=St(s.id),e[53]=s.id,e[54]=D):D=e[54];const G=L||void 0;let F;e[55]!==D.id||e[56]!==G?(F={virtualmcpid:D.id,connect:"1",siteUrl:G},e[55]=D.id,e[56]=G,e[57]=F):F=e[57];let K;return e[58]!==k||e[59]!==F?(K=o.jsx(mt,{to:"/$org/$taskId",params:k,search:F,replace:!0}),e[58]=k,e[59]=F,e[60]=K):K=e[60],K}if(b.isPending){let y;return e[61]!==$?(y=o.jsx(it,{visual:$}),e[61]=$,e[62]=y):y=e[62],y}if(i){let y,S,k,D,G,F,K,ne;if(e[63]!==$||e[64]!==V||e[65]!==i||e[66]!==s.name||e[67]!==b.isPending||e[68]!==n||e[69]!==j||e[70]!==H||e[71]!==Pe){ne=Symbol.for("react.early_return_sentinel");e:{const Ie=ze(i);if(!Ie.ok){let me;e[80]!==j?(me=j("routes.commerceOnboarding.commerceDiagnostic"),e[80]=j,e[81]=me):me=e[81];let de;e[82]!==s.name||e[83]!==j?(de=j("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s.name}),e[82]=s.name,e[83]=j,e[84]=de):de=e[84];let Ce;e[85]!==me||e[86]!==de?(Ce=o.jsx(J,{title:me,description:de}),e[85]=me,e[86]=de,e[87]=Ce):Ce=e[87];let je;e[88]!==V||e[89]!==b.isPending||e[90]!==n||e[91]!==H?(je=o.jsx(ke,{siteUrl:n,error:H,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V}),e[88]=V,e[89]=b.isPending,e[90]=n,e[91]=H,e[92]=je):je=e[92];const Re=o.jsxs("div",{className:"grid gap-10",children:[Ce,o.jsx(we,{message:Ye(j,Ie.error)}),je]});let Oe;e[93]!==$||e[94]!==Re?(Oe=o.jsx(B,{visual:$,children:Re}),e[93]=$,e[94]=Re,e[95]=Oe):Oe=e[95],ne=Oe;break e}S=B,K=$,G=Pe,F="grid gap-10",y=J,e[96]!==j?(k=j("routes.commerceOnboarding.commerceDiagnostic"),e[96]=j,e[97]=k):k=e[97],D=j("routes.commerceOnboarding.commerceDiscoveryBeingPrepared",{url:Ie.value})}e[63]=$,e[64]=V,e[65]=i,e[66]=s.name,e[67]=b.isPending,e[68]=n,e[69]=j,e[70]=H,e[71]=Pe,e[72]=y,e[73]=S,e[74]=k,e[75]=D,e[76]=G,e[77]=F,e[78]=K,e[79]=ne}else y=e[72],S=e[73],k=e[74],D=e[75],G=e[76],F=e[77],K=e[78],ne=e[79];if(ne!==Symbol.for("react.early_return_sentinel"))return ne;let le;e[98]!==y||e[99]!==k||e[100]!==D?(le=o.jsx(y,{title:k,description:D}),e[98]=y,e[99]=k,e[100]=D,e[101]=le):le=e[101];let ae;e[102]!==V||e[103]!==b.isPending||e[104]!==n||e[105]!==H?(ae=H?o.jsxs(o.Fragment,{children:[o.jsx(we,{message:H}),o.jsx(ke,{siteUrl:n,error:null,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V})]}):o.jsx(et,{}),e[102]=V,e[103]=b.isPending,e[104]=n,e[105]=H,e[106]=ae):ae=e[106];let ce;e[107]!==G||e[108]!==F||e[109]!==le||e[110]!==ae?(ce=o.jsxs("div",{ref:G,className:F,children:[le,ae]}),e[107]=G,e[108]=F,e[109]=le,e[110]=ae,e[111]=ce):ce=e[111];let ye;return e[112]!==S||e[113]!==K||e[114]!==ce?(ye=o.jsx(S,{visual:K,children:ce}),e[112]=S,e[113]=K,e[114]=ce,e[115]=ye):ye=e[115],ye}let te;e[116]!==j?(te=j("routes.commerceOnboarding.commerceDiagnostic"),e[116]=j,e[117]=te):te=e[117];let re;e[118]!==s.name||e[119]!==j?(re=j("routes.commerceOnboarding.configurationWillContinueIn",{orgName:s.name}),e[118]=s.name,e[119]=j,e[120]=re):re=e[120];let oe;e[121]!==te||e[122]!==re?(oe=o.jsx(J,{title:te,description:re}),e[121]=te,e[122]=re,e[123]=oe):oe=e[123];let ie;e[124]!==V||e[125]!==b.isPending||e[126]!==n||e[127]!==H?(ie=o.jsx(ke,{siteUrl:n,error:H,isSubmitting:b.isPending,onSiteUrlChange:c,onSubmit:V}),e[124]=V,e[125]=b.isPending,e[126]=n,e[127]=H,e[128]=ie):ie=e[128];let se;e[129]!==oe||e[130]!==ie?(se=o.jsxs("div",{className:"grid gap-10",children:[oe,ie]}),e[129]=oe,e[130]=ie,e[131]=se):se=e[131];let xe;return e[132]!==$||e[133]!==se?(xe=o.jsx(B,{visual:$,children:se}),e[132]=$,e[133]=se,e[134]=xe):xe=e[134],xe}function ke(t){const e=N.c(30),{siteUrl:s,error:i,isSubmitting:r,onSiteUrlChange:l,onSubmit:a}=t,n=Q();let c;e[0]!==n?(c=n("routes.commerceOnboarding.siteUrlLabel"),e[0]=n,e[1]=c):c=e[1];let m;e[2]!==c?(m=o.jsx("label",{className:"text-sm font-medium",htmlFor:"commerce-site-url",children:c}),e[2]=c,e[3]=m):m=e[3];let d;e[4]!==l?(d=A=>l(A.target.value),e[4]=l,e[5]=d):d=e[5];let u;e[6]!==n?(u=n("routes.commerceOnboarding.siteUrlPlaceholder"),e[6]=n,e[7]=u):u=e[7];const f=!!i;let p;e[8]!==r||e[9]!==s||e[10]!==d||e[11]!==u||e[12]!==f?(p=o.jsx(ht,{id:"commerce-site-url",type:"text",inputMode:"url",value:s,onChange:d,placeholder:u,"aria-invalid":f,disabled:r}),e[8]=r,e[9]=s,e[10]=d,e[11]=u,e[12]=f,e[13]=p):p=e[13];let O;e[14]!==i?(O=i?o.jsx(we,{message:i}):null,e[14]=i,e[15]=O):O=e[15];let v;e[16]!==m||e[17]!==p||e[18]!==O?(v=o.jsxs("div",{className:"grid gap-2",children:[m,p,O]}),e[16]=m,e[17]=p,e[18]=O,e[19]=v):v=e[19];let w;e[20]!==n?(w=n("routes.commerceOnboarding.authCopy.continue"),e[20]=n,e[21]=w):w=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(_t,{size:16}),e[22]=C):C=e[22];let I;e[23]!==r||e[24]!==w?(I=o.jsxs(Ne,{type:"submit",size:"xl",className:"w-full",disabled:r,children:[w,C]}),e[23]=r,e[24]=w,e[25]=I):I=e[25];let E;return e[26]!==a||e[27]!==I||e[28]!==v?(E=o.jsxs("form",{className:"grid gap-4",onSubmit:a,children:[v,I]}),e[26]=a,e[27]=I,e[28]=v,e[29]=E):E=e[29],E}function we(t){const e=N.c(2),{message:s}=t;let i;return e[0]!==s?(i=o.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:s}),e[0]=s,e[1]=i):i=e[1],i}export{fo as default};
@@ -1,4 +1,4 @@
1
- import{c as D,j as s,B as R,b as U,F as oe,r as ae,z as ce,t as I}from"./index-DLyxjIYw.js";import{A as de,b as me}from"./alert-B6Fmol8n.js";import{C as ue}from"./card-CKXxuGX6.js";import{c as ee,T as X,b as q,a as te}from"./tabs-D-zNditx.js";import{u as se}from"./use-copy-CSIcq8z_.js";import{i as ne}from"./Check-BXav60Vy.js";import{a as ie}from"./Copy01-CV1JugLX.js";import{i as fe}from"./Key01-Cfe0Tudx.js";import{n as pe}from"./LinkExternal01-D25gdGqj.js";import{s as xe}from"./Trash01-BnQQflAa.js";import{P as V}from"./index-D-cW_7z2.js";import{c as he}from"./settings-section-BIT7uWjs.js";import{u as ge,a as je,b as ye}from"./use-api-keys-CX7vmPa_.js";import{S as be}from"./settings-subnav-DobJGu7Z.js";import"./sidebar-_myHCEzH.js";import"./LayoutLeft-BEpfII_o.js";import"./use-mobile-H1cEPaVS.js";import"./X-DY9FeXqi.js";import"./tooltip-B-y9isox.js";import"./ArrowUpRight-M9WAVHfb.js";import"./use-mcp-client-_o9o88xf.js";import"./auth-Clf3KXjv.js";import"./useRouterState-um8-mtPt.js";import"./use-settings-tabs-CGwARRFk.js";import"./use-capability-DxO7qy1z.js";import"./studio-tools-ThQ_rcsF.js";function Ce(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function ve(e){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${e}/mcp/self`}function Ne({client:e,mode:t,url:a,apiKey:m}){const r=m??"<paste-your-api-key>",c=Ce();if(e==="claude-code")return t==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${a}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${a} \\
1
+ import{c as D,j as s,B as R,b as U,F as oe,r as ae,z as ce,t as I}from"./index-CpgCWtjx.js";import{A as de,b as me}from"./alert-cnnpPo_c.js";import{C as ue}from"./card-Ddaqd3Zk.js";import{c as ee,T as X,b as q,a as te}from"./tabs-DKH221Dt.js";import{u as se}from"./use-copy-s87wiPlt.js";import{i as ne}from"./Check-BWhEi7Rw.js";import{a as ie}from"./Copy01-D8j7FbTr.js";import{i as fe}from"./Key01-D7jDDN63.js";import{n as pe}from"./LinkExternal01-GrKKBhvU.js";import{s as xe}from"./Trash01-DfFghvja.js";import{P as V}from"./index-DeJebm9f.js";import{c as he}from"./settings-section-k6duNl96.js";import{u as ge,a as je,b as ye}from"./use-api-keys-UhTRz9HM.js";import{S as be}from"./settings-subnav-D8ai7ntt.js";import"./sidebar-CQyrHm0A.js";import"./LayoutLeft-DptfEqfx.js";import"./use-mobile-CBozShYk.js";import"./X-BtFSIdFW.js";import"./tooltip-C_T_6gNE.js";import"./ArrowUpRight-BjeBnQVZ.js";import"./use-mcp-client-DNTUxbuY.js";import"./auth-DFdi28KE.js";import"./useRouterState-G4LfvtoF.js";import"./use-settings-tabs-DZpP8vVS.js";import"./use-capability-DwIBoGF1.js";import"./studio-tools-DUHGIbyJ.js";function Ce(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function ve(e){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${e}/mcp/self`}function Ne({client:e,mode:t,url:a,apiKey:m}){const r=m??"<paste-your-api-key>",c=Ce();if(e==="claude-code")return t==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${a}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${a} \\
2
2
  --header "Authorization: Bearer ${r}"`};if(e==="cursor"){const l={url:a};return t==="api-key"&&(l.headers={Authorization:`Bearer ${r}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[c]:l}},null,2)}}if(e==="codex"){const l=[`[mcp_servers.${c}]`,`url = "${a}"`];return t==="api-key"&&l.push(`http_headers = { "Authorization" = "Bearer ${r}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:l.join(`
3
3
  `)}}if(e==="claude-desktop"){const l={type:"http",url:a};return t==="api-key"&&(l.headers={Authorization:`Bearer ${r}`}),{language:"json",pathHint:"claude_desktop_config.json",code:JSON.stringify({mcpServers:{[c]:l}},null,2)}}return t==="oauth"?{language:"text",code:`${a}
4
4
 
@@ -1 +1 @@
1
- import{X as i,_ as r,Y as t,Z as e,a1 as o,b7 as a,bj as d,ca as l,bi as u}from"./index-DLyxjIYw.js";const p=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:r(["authorization_code","client_credentials"])}),c=i({type:d("object"),properties:o(e(),a()).optional(),required:t(e()).optional()}).catchall(a()),b=l.extend({inputSchema:c,outputSchema:c.optional()}),m=i({headers:o(e(),e()).optional()}),h=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:o(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),s=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:r(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:u([h,m]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:p.nullable().describe("OAuth configuration"),configuration_state:o(e(),a()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:o(e(),a()).nullable().describe("Additional metadata (includes repository info)"),tools:t(b).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:r(["active","inactive","error"]).describe("Current status")});s.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});s.partial();function f(n){return n!=null&&"command"in n}function g(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as i,g as p};
1
+ import{X as i,_ as r,Y as t,Z as e,a1 as o,b7 as a,bj as d,ca as l,bi as u}from"./index-CpgCWtjx.js";const p=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:r(["authorization_code","client_credentials"])}),c=i({type:d("object"),properties:o(e(),a()).optional(),required:t(e()).optional()}).catchall(a()),b=l.extend({inputSchema:c,outputSchema:c.optional()}),m=i({headers:o(e(),e()).optional()}),h=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:o(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),s=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:r(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:u([h,m]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:p.nullable().describe("OAuth configuration"),configuration_state:o(e(),a()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:o(e(),a()).nullable().describe("Additional metadata (includes repository info)"),tools:t(b).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:r(["active","inactive","error"]).describe("Current status")});s.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});s.partial();function f(n){return n!=null&&"command"in n}function g(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as i,g as p};
@@ -1 +1 @@
1
- import{c as S,F as K,b6 as Q,K as H,b as q,m as $,j as x}from"./index-DLyxjIYw.js";import{u as G}from"./use-registry-connections-Y17SLNHX.js";import{g as U}from"./use-organization-settings-DPRJ0ATL.js";import{S as k,n as V}from"./use-mcp-client-_o9o88xf.js";import{u as X}from"./useInfiniteQuery-BTBdPVyZ.js";import{i as Y,f as z}from"./extract-connection-data-GB3welMi.js";import{r as B,R as W}from"./retry-CErkP7V6.js";import{g as A}from"./connection-slug-eyAPH6o3.js";import{C as Z}from"./card-CKXxuGX6.js";import{I as J}from"./integration-icon-BolSFCMJ.js";function ye(){const s=S.c(6),e=G(),t=U(),o=K().project.enabledPlugins??[];let n;if(s[0]!==o||s[1]!==t||s[2]!==e){let a;s[4]!==t?(a=r=>t(r.id),s[4]=t,s[5]=a):a=s[5],n=e.filter(a).map(O),o.includes("private-registry")&&t(k)&&n.push({id:k,title:"Private Registry",icon:null}),s[0]=o,s[1]=t,s[2]=e,s[3]=n}else n=s[3];return n}function O(s){return{id:s.id,title:s.title,icon:s.icon}}const ee=24,L=3;function F(s){return s.id.includes("community-registry")}function te(s){const e=s?.trim().split(/\s+/).filter(Boolean)??[];if(e.length===0)return;const t=[["title"],["description"],["name"],["server","title"]];return{operator:"or",conditions:e.flatMap(o=>t.map(n=>({field:n,operator:"contains",value:o})))}}function D(s,e,t,o,n){const a=s.map(l=>l.id).sort().join(","),r=te(n),{data:p,fetchNextPage:f,hasNextPage:d,isFetchingNextPage:g,isLoading:b}=X({queryKey:H.storeDiscovery(e,`${a}:${n??""}`),queryFn:async({pageParam:l})=>{const c=l??{};return await Promise.all(s.map(async i=>{const y=c[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const C=Y(i.id,e);try{return await B(async()=>{let u=null;try{u=await V({connectionId:i.id,orgId:e,orgSlug:t});const h={limit:ee};y&&(h.cursor=y),r&&(h.where=r);const N=await u.callTool({name:C,arguments:h}),v=N.structuredContent??N,P=v.nextCursor||v.cursor||void 0,R=z(v?[v]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:R,nextCursor:P}}finally{await u?.close().catch(()=>{})}},{maxAttempts:L,minTimeout:0,maxTimeout:1e3,jitter:0})}catch(u){return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${L} attempts:`,u instanceof W?u.cause:u),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}}))},initialPageParam:{},getNextPageParam:l=>{const c={};let m=!1;for(const i of l)i.registryId&&(i.nextCursor?(c[i.registryId]=i.nextCursor,m=!0):c[i.registryId]="EXHAUSTED");return m?c:void 0},staleTime:3600*1e3,placeholderData:Q,retry:!1,enabled:s.length>0}),I=[];if(p?.pages)for(const l of p.pages)for(const c of l)for(const m of c.items)I.push({...m,_sourceName:m._sourceName??c.registryTitle,_sourceIcon:m._sourceIcon??c.registryIcon,_registryId:m._registryId??c.registryId});return{items:I,hasMore:d??!1,isLoadingMore:g,isInitialLoading:b,fetchNextPage:()=>{d&&!g&&f()}}}function he(s,e){const t=S.c(16),{org:o}=K();let n;t[0]!==s?(n=s.filter(ie),t[0]=s,t[1]=n):n=t[1];const a=n;let r;t[2]!==s?(r=s.filter(se),t[2]=s,t[3]=r):r=t[3];const p=r,f=D(a,o.id,o.slug,!0,e),d=D(p,o.id,o.slug,!0,e);let g;if(t[4]!==d.items||t[5]!==f.items){const y=new Set;g=[];const C=[...f.items,...d.items];for(const u of C){const h=`${u._registryId}:${u.id}`;y.has(h)||(y.add(h),g.push(u))}t[4]=d.items,t[5]=f.items,t[6]=g}else g=t[6];const b=f.isInitialLoading||d.isInitialLoading,I=f.isLoadingMore||d.isLoadingMore,l=f.hasMore||d.hasMore;let c;t[7]!==d||t[8]!==f?(c=()=>{f.hasMore&&f.fetchNextPage(),d.hasMore&&d.fetchNextPage()},t[7]=d,t[8]=f,t[9]=c):c=t[9];const m=c;let i;return t[10]!==l||t[11]!==b||t[12]!==I||t[13]!==g||t[14]!==m?(i={items:g,hasMore:l,isLoadingMore:I,isInitialLoading:b,loadMore:m},t[10]=l,t[11]=b,t[12]=I,t[13]=g,t[14]=m,t[15]=i):i=t[15],i}function se(s){return F(s)}function ie(s){return!F(s)}function xe(s){const e=new Map;for(const n of s){const a=A(n),r=e.get(a);r?r.push(n):e.set(a,[n])}const t=[],o=new Set;for(const n of s){const a=A(n);if(o.has(a))continue;o.add(a);const r=e.get(a),p=r[0];r.length===1?t.push({type:"single",connection:p}):t.push({type:"group",key:a,icon:p.icon,title:p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title,connections:r})}return t}function ve(s){const e=S.c(43),{connection:t,onClick:o,headerActions:n,headerActionsAlwaysVisible:a,footer:r,className:p,fallbackIcon:f,selected:d}=s,g=a===void 0?!1:a,b=q(),I=o&&"cursor-pointer hover:bg-muted/50";let l;e[0]!==p||e[1]!==I?(l=$("transition-colors group overflow-hidden flex flex-col h-full",I,p),e[0]=p,e[1]=I,e[2]=l):l=e[2];const c=o?"button":void 0,m=o?0:void 0,i=o&&d!==void 0?d:void 0;let y;e[3]!==o?(y=o?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),o())}:void 0,e[3]=o,e[4]=y):y=e[4];let C;e[5]!==t.icon||e[6]!==t.title||e[7]!==f?(C=x.jsx(J,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[5]=t.icon,e[6]=t.title,e[7]=f,e[8]=C):C=e[8];let u;e[9]!==n||e[10]!==g?(u=n&&x.jsx("div",{className:$("transition-opacity",!g&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:ne,children:n}),e[9]=n,e[10]=g,e[11]=u):u=e[11];let h;e[12]!==u?(h=x.jsx("div",{className:"relative",children:u}),e[12]=u,e[13]=h):h=e[13];let N;e[14]!==h||e[15]!==C?(N=x.jsxs("div",{className:"flex items-start justify-between",children:[C,h]}),e[14]=h,e[15]=C,e[16]=N):N=e[16];let v;e[17]!==t.title?(v=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[17]=t.title,e[18]=v):v=e[18];let P;e[19]!==t.description||e[20]!==b?(P=t.description||b("connections.connectionCard.noDescription"),e[19]=t.description,e[20]=b,e[21]=P):P=e[21];let R;e[22]!==P?(R=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=R):R=e[23];let j;e[24]!==v||e[25]!==R?(j=x.jsxs("div",{className:"flex flex-col gap-1",children:[v,R]}),e[24]=v,e[25]=R,e[26]=j):j=e[26];let M;e[27]!==N||e[28]!==j?(M=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,j]}),e[27]=N,e[28]=j,e[29]=M):M=e[29];let w;e[30]!==r?(w=r&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:oe,children:r})}),e[30]=r,e[31]=w):w=e[31];let T;e[32]!==M||e[33]!==w?(T=x.jsxs("div",{className:"flex flex-col flex-1",children:[M,w]}),e[32]=M,e[33]=w,e[34]=T):T=e[34];let _;return e[35]!==o||e[36]!==T||e[37]!==l||e[38]!==c||e[39]!==m||e[40]!==i||e[41]!==y?(_=x.jsx(Z,{className:l,onClick:o,role:c,tabIndex:m,"aria-pressed":i,onKeyDown:y,children:T}),e[35]=o,e[36]=T,e[37]=l,e[38]=c,e[39]=m,e[40]=i,e[41]=y,e[42]=_):_=e[42],_}function oe(s){return s.stopPropagation()}function ne(s){return s.stopPropagation()}export{ve as C,he as a,xe as g,ye as u};
1
+ import{c as S,F as K,b6 as Q,K as H,b as q,m as $,j as x}from"./index-CpgCWtjx.js";import{u as G}from"./use-registry-connections-CA6OKZ6u.js";import{g as U}from"./use-organization-settings-BQUTcHKO.js";import{S as k,n as V}from"./use-mcp-client-DNTUxbuY.js";import{u as X}from"./useInfiniteQuery-wmyZYwlL.js";import{i as Y,f as z}from"./extract-connection-data-00PBSu9m.js";import{r as B,R as W}from"./retry-CErkP7V6.js";import{g as A}from"./connection-slug-eyAPH6o3.js";import{C as Z}from"./card-Ddaqd3Zk.js";import{I as J}from"./integration-icon-DydPPrfR.js";function ye(){const s=S.c(6),e=G(),t=U(),o=K().project.enabledPlugins??[];let n;if(s[0]!==o||s[1]!==t||s[2]!==e){let a;s[4]!==t?(a=r=>t(r.id),s[4]=t,s[5]=a):a=s[5],n=e.filter(a).map(O),o.includes("private-registry")&&t(k)&&n.push({id:k,title:"Private Registry",icon:null}),s[0]=o,s[1]=t,s[2]=e,s[3]=n}else n=s[3];return n}function O(s){return{id:s.id,title:s.title,icon:s.icon}}const ee=24,L=3;function F(s){return s.id.includes("community-registry")}function te(s){const e=s?.trim().split(/\s+/).filter(Boolean)??[];if(e.length===0)return;const t=[["title"],["description"],["name"],["server","title"]];return{operator:"or",conditions:e.flatMap(o=>t.map(n=>({field:n,operator:"contains",value:o})))}}function D(s,e,t,o,n){const a=s.map(l=>l.id).sort().join(","),r=te(n),{data:p,fetchNextPage:f,hasNextPage:d,isFetchingNextPage:g,isLoading:b}=X({queryKey:H.storeDiscovery(e,`${a}:${n??""}`),queryFn:async({pageParam:l})=>{const c=l??{};return await Promise.all(s.map(async i=>{const y=c[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const C=Y(i.id,e);try{return await B(async()=>{let u=null;try{u=await V({connectionId:i.id,orgId:e,orgSlug:t});const h={limit:ee};y&&(h.cursor=y),r&&(h.where=r);const N=await u.callTool({name:C,arguments:h}),v=N.structuredContent??N,P=v.nextCursor||v.cursor||void 0,R=z(v?[v]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:R,nextCursor:P}}finally{await u?.close().catch(()=>{})}},{maxAttempts:L,minTimeout:0,maxTimeout:1e3,jitter:0})}catch(u){return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${L} attempts:`,u instanceof W?u.cause:u),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}}))},initialPageParam:{},getNextPageParam:l=>{const c={};let m=!1;for(const i of l)i.registryId&&(i.nextCursor?(c[i.registryId]=i.nextCursor,m=!0):c[i.registryId]="EXHAUSTED");return m?c:void 0},staleTime:3600*1e3,placeholderData:Q,retry:!1,enabled:s.length>0}),I=[];if(p?.pages)for(const l of p.pages)for(const c of l)for(const m of c.items)I.push({...m,_sourceName:m._sourceName??c.registryTitle,_sourceIcon:m._sourceIcon??c.registryIcon,_registryId:m._registryId??c.registryId});return{items:I,hasMore:d??!1,isLoadingMore:g,isInitialLoading:b,fetchNextPage:()=>{d&&!g&&f()}}}function he(s,e){const t=S.c(16),{org:o}=K();let n;t[0]!==s?(n=s.filter(ie),t[0]=s,t[1]=n):n=t[1];const a=n;let r;t[2]!==s?(r=s.filter(se),t[2]=s,t[3]=r):r=t[3];const p=r,f=D(a,o.id,o.slug,!0,e),d=D(p,o.id,o.slug,!0,e);let g;if(t[4]!==d.items||t[5]!==f.items){const y=new Set;g=[];const C=[...f.items,...d.items];for(const u of C){const h=`${u._registryId}:${u.id}`;y.has(h)||(y.add(h),g.push(u))}t[4]=d.items,t[5]=f.items,t[6]=g}else g=t[6];const b=f.isInitialLoading||d.isInitialLoading,I=f.isLoadingMore||d.isLoadingMore,l=f.hasMore||d.hasMore;let c;t[7]!==d||t[8]!==f?(c=()=>{f.hasMore&&f.fetchNextPage(),d.hasMore&&d.fetchNextPage()},t[7]=d,t[8]=f,t[9]=c):c=t[9];const m=c;let i;return t[10]!==l||t[11]!==b||t[12]!==I||t[13]!==g||t[14]!==m?(i={items:g,hasMore:l,isLoadingMore:I,isInitialLoading:b,loadMore:m},t[10]=l,t[11]=b,t[12]=I,t[13]=g,t[14]=m,t[15]=i):i=t[15],i}function se(s){return F(s)}function ie(s){return!F(s)}function xe(s){const e=new Map;for(const n of s){const a=A(n),r=e.get(a);r?r.push(n):e.set(a,[n])}const t=[],o=new Set;for(const n of s){const a=A(n);if(o.has(a))continue;o.add(a);const r=e.get(a),p=r[0];r.length===1?t.push({type:"single",connection:p}):t.push({type:"group",key:a,icon:p.icon,title:p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title,connections:r})}return t}function ve(s){const e=S.c(43),{connection:t,onClick:o,headerActions:n,headerActionsAlwaysVisible:a,footer:r,className:p,fallbackIcon:f,selected:d}=s,g=a===void 0?!1:a,b=q(),I=o&&"cursor-pointer hover:bg-muted/50";let l;e[0]!==p||e[1]!==I?(l=$("transition-colors group overflow-hidden flex flex-col h-full",I,p),e[0]=p,e[1]=I,e[2]=l):l=e[2];const c=o?"button":void 0,m=o?0:void 0,i=o&&d!==void 0?d:void 0;let y;e[3]!==o?(y=o?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),o())}:void 0,e[3]=o,e[4]=y):y=e[4];let C;e[5]!==t.icon||e[6]!==t.title||e[7]!==f?(C=x.jsx(J,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[5]=t.icon,e[6]=t.title,e[7]=f,e[8]=C):C=e[8];let u;e[9]!==n||e[10]!==g?(u=n&&x.jsx("div",{className:$("transition-opacity",!g&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:ne,children:n}),e[9]=n,e[10]=g,e[11]=u):u=e[11];let h;e[12]!==u?(h=x.jsx("div",{className:"relative",children:u}),e[12]=u,e[13]=h):h=e[13];let N;e[14]!==h||e[15]!==C?(N=x.jsxs("div",{className:"flex items-start justify-between",children:[C,h]}),e[14]=h,e[15]=C,e[16]=N):N=e[16];let v;e[17]!==t.title?(v=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[17]=t.title,e[18]=v):v=e[18];let P;e[19]!==t.description||e[20]!==b?(P=t.description||b("connections.connectionCard.noDescription"),e[19]=t.description,e[20]=b,e[21]=P):P=e[21];let R;e[22]!==P?(R=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=R):R=e[23];let j;e[24]!==v||e[25]!==R?(j=x.jsxs("div",{className:"flex flex-col gap-1",children:[v,R]}),e[24]=v,e[25]=R,e[26]=j):j=e[26];let M;e[27]!==N||e[28]!==j?(M=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,j]}),e[27]=N,e[28]=j,e[29]=M):M=e[29];let w;e[30]!==r?(w=r&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:oe,children:r})}),e[30]=r,e[31]=w):w=e[31];let T;e[32]!==M||e[33]!==w?(T=x.jsxs("div",{className:"flex flex-col flex-1",children:[M,w]}),e[32]=M,e[33]=w,e[34]=T):T=e[34];let _;return e[35]!==o||e[36]!==T||e[37]!==l||e[38]!==c||e[39]!==m||e[40]!==i||e[41]!==y?(_=x.jsx(Z,{className:l,onClick:o,role:c,tabIndex:m,"aria-pressed":i,onKeyDown:y,children:T}),e[35]=o,e[36]=T,e[37]=l,e[38]=c,e[39]=m,e[40]=i,e[41]=y,e[42]=_):_=e[42],_}function oe(s){return s.stopPropagation()}function ne(s){return s.stopPropagation()}export{ve as C,he as a,xe as g,ye as u};