decocms 4.400.5 → 4.401.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/dist/client/assets/{AlertCircle-DAwsTYRk.js → AlertCircle-D1gV07Oe.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CY-F46Be.js → AreaChart-lv4gftWl.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-tvLjkuWF.js → ArrowLeft-Bpb3sor7.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-z0a_5OhC.js → ArrowRight-BFyYdKNd.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Lg4NvWzc.js → ArrowUp-COLR6KTW.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-BoMqHHQt.js → CartesianChart-CJGGumCB.js} +1 -1
  7. package/dist/client/assets/{Check-BQZy9c_F.js → Check-C-Vn17o5.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-Czw2y_F3.js → CheckCircle-CyKBJceB.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BYljQT_d.js → ChevronUp-Dto8qCq2.js} +1 -1
  10. package/dist/client/assets/{Copy01-6I1_Aion.js → Copy01-B2GuMU9Q.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-DargNaAR.js → CreditCard01-CoMSE38C.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CN_Dg-j8.js → DotsVertical-R1tuLE9v.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-BT3n9Mmx.js → ErrorBarContext-viPSAyu4.js} +1 -1
  14. package/dist/client/assets/{Eye-B4QzGCZN.js → Eye-BhTmzCKr.js} +1 -1
  15. package/dist/client/assets/{Globe04-CXTO7_iP.js → Globe04-BLoVxWaz.js} +1 -1
  16. package/dist/client/assets/{Image01-9AXWgviq.js → Image01-D02_x5mu.js} +1 -1
  17. package/dist/client/assets/{Key01-DFgwFBUs.js → Key01-BuudAO_W.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-SQ7j1egP.js → LayoutLeft-CuG2yJZR.js} +1 -1
  19. package/dist/client/assets/{Line-_W3oVo8E.js → Line-CsKmpStn.js} +1 -1
  20. package/dist/client/assets/{Link01-V3TqRs3C.js → Link01-CVUd8ZSz.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-CPO90J3S.js → LinkExternal01-Bo5cppL4.js} +1 -1
  22. package/dist/client/assets/{Monitor01-C9DSVDfs.js → Monitor01-Cj93oSbT.js} +1 -1
  23. package/dist/client/assets/{Palette-D0rqSgjT.js → Palette-CEa7GqA9.js} +1 -1
  24. package/dist/client/assets/{Plus-BU--LXol.js → Plus-Ch1uJBgh.js} +1 -1
  25. package/dist/client/assets/{SearchMd-BpFEap-1.js → SearchMd-B_MXZ22A.js} +1 -1
  26. package/dist/client/assets/{Sector-uvc125JQ.js → Sector-CNfzRqjQ.js} +1 -1
  27. package/dist/client/assets/{Share07-B29GBkjP.js → Share07-D6XgmppM.js} +1 -1
  28. package/dist/client/assets/{Sun-t-nvniXl.js → Sun-Dy_rDhHe.js} +1 -1
  29. package/dist/client/assets/{Tool01-B8crh1aV.js → Tool01-BoO1X0ZH.js} +1 -1
  30. package/dist/client/assets/{Trash01-DdWmWubI.js → Trash01-D4CwdSy9.js} +1 -1
  31. package/dist/client/assets/{Upload01-CsQlMBfP.js → Upload01-hQyKBWZL.js} +1 -1
  32. package/dist/client/assets/{User01-B4ccibs0.js → User01-gmEyKvLo.js} +1 -1
  33. package/dist/client/assets/{UserSquare-CAO2KcuZ.js → UserSquare-DXqYCX9F.js} +1 -1
  34. package/dist/client/assets/{Users01-D4csSmiF.js → Users01-BBb4-Wbt.js} +1 -1
  35. package/dist/client/assets/{X-lSFSs7wx.js → X-CEngH8b7.js} +1 -1
  36. package/dist/client/assets/{XClose-BEOYWQzz.js → XClose-Dvx_qcsQ.js} +1 -1
  37. package/dist/client/assets/{Zap-BZmnDtce.js → Zap-DkS3ccHw.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-DwQzEWYf.js → ZoomOut-D3wne5dx.js} +1 -1
  39. package/dist/client/assets/{access-gate-CeyEk8D6.js → access-gate-D2mi3EXZ.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-BwKHIeY0.js → add-connection-dialog-mm-WrmAR.js} +1 -1
  41. package/dist/client/assets/agent-analytics-IX3kP91L.js +2 -0
  42. package/dist/client/assets/agent-app-CliE0mM3.js +1 -0
  43. package/dist/client/assets/agent-assets-BbU_YrcZ.js +1 -0
  44. package/dist/client/assets/agent-automation-v13d06rk.js +20 -0
  45. package/dist/client/assets/agent-automations-yzTI8Hoc.js +1 -0
  46. package/dist/client/assets/agent-connect-sources-CEF4jbih.js +1 -0
  47. package/dist/client/assets/agent-deck-rRdXFIQU.js +1 -0
  48. package/dist/client/assets/agent-e2e-SKpj9Qv7.js +1 -0
  49. package/dist/client/assets/agent-experiments-DPD7MHX9.js +1 -0
  50. package/dist/client/assets/agent-file-CBIwfV0H.js +1 -0
  51. package/dist/client/assets/{agent-git-Dm-Aa993.js → agent-git-N-SzMySX.js} +2 -2
  52. package/dist/client/assets/agent-hosting-BnzsqBpZ.js +1 -0
  53. package/dist/client/assets/{agent-icon-Uyip_c6M.js → agent-icon-CjNFk4Bw.js} +1 -1
  54. package/dist/client/assets/agent-library-file-DHUyHSwO.js +1 -0
  55. package/dist/client/assets/agent-monitor-BeURekaz.js +1 -0
  56. package/dist/client/assets/agent-overview-By923wES.js +1 -0
  57. package/dist/client/assets/agent-settings-DiYW6DT3.js +1 -0
  58. package/dist/client/assets/{agent-site-editor-CisoB_8z.js → agent-site-editor-B7WR4KwZ.js} +13 -13
  59. package/dist/client/assets/agent-site-editor-code-A3lMFnBk.js +2 -0
  60. package/dist/client/assets/agent-site-editor-content-CTyxs9-E.js +9 -0
  61. package/dist/client/assets/agent-site-editor-preview-Db1buU8G.js +518 -0
  62. package/dist/client/assets/agent-view-Ct7YMMW7.js +1 -0
  63. package/dist/client/assets/{agent-view-guard-CW2E0Nya.js → agent-view-guard-BpwecHVM.js} +1 -1
  64. package/dist/client/assets/agents-list-XIrdiWMz.js +1 -0
  65. package/dist/client/assets/{ai-providers-aALsTmcr.js → ai-providers-CsYNRATt.js} +2 -2
  66. package/dist/client/assets/{alert-Cj3mDHfa.js → alert-BYraKSPm.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-ScZSd_g9.js → alert-dialog-DpzgB-Ls.js} +1 -1
  68. package/dist/client/assets/analytics-sections-C2rbPWDv.js +1 -0
  69. package/dist/client/assets/api-keys-B9Lt-UrM.js +1 -0
  70. package/dist/client/assets/api-keys-CzlAuC7_.js +1 -0
  71. package/dist/client/assets/app-editor-tD7rn_1-.js +1 -0
  72. package/dist/client/assets/{asset-utils-zuPagV4t.js → asset-utils-4p52RC3c.js} +1 -1
  73. package/dist/client/assets/{auth-IJXSFSKo.js → auth-Dafjkfpj.js} +1 -1
  74. package/dist/client/assets/{auth-catchall-_ZlrnKe5.js → auth-catchall-DD401U-a.js} +1 -1
  75. package/dist/client/assets/auth-entry-CEr7Y2wf.js +1 -0
  76. package/dist/client/assets/{auth-split-layout-RzXa3xC3.js → auth-split-layout-DLRovWby.js} +1 -1
  77. package/dist/client/assets/{authenticate-and-persist-oauth-2rXUqvh1.js → authenticate-and-persist-oauth-DIl2N_8B.js} +1 -1
  78. package/dist/client/assets/{automation-list-row-DXlvb1Ba.js → automation-list-row-ueTfZfDa.js} +1 -1
  79. package/dist/client/assets/{automation-runs-bP6fMSYg.js → automation-runs-iTxxsepZ.js} +1 -1
  80. package/dist/client/assets/{automations-Cc87rLF5.js → automations-Cad12Ows.js} +1 -1
  81. package/dist/client/assets/{autosend-n3O0UdBS.js → autosend-DeYn5nkP.js} +1 -1
  82. package/dist/client/assets/{avatar-BdlFnSU8.js → avatar-B6HmPhM4.js} +1 -1
  83. package/dist/client/assets/{badge-Bhd7Yjxv.js → badge-4kURMy-V.js} +1 -1
  84. package/dist/client/assets/block-document-CgGOvOyl.js +3 -0
  85. package/dist/client/assets/{blocks-preview-workspace-context-CPHwvzb5.js → blocks-preview-workspace-context-Bm8P7H4k.js} +1 -1
  86. package/dist/client/assets/{buckets-D8dvVOSB.js → buckets-CK1WY8Rz.js} +1 -1
  87. package/dist/client/assets/{build-improve-prompt-doc-B6eWxg8K.js → build-improve-prompt-doc-BYdufdhy.js} +1 -1
  88. package/dist/client/assets/{calendar-BBDqyYcl.js → calendar-CZsGTekl.js} +1 -1
  89. package/dist/client/assets/{capability-load-error-DtKGgHck.js → capability-load-error-CaE4aliY.js} +1 -1
  90. package/dist/client/assets/{use-org-repo-syncs-DhQYfFtK.js → cards-DaNm0Rmg.js} +3 -3
  91. package/dist/client/assets/category-editor-CyFQk1RV.js +1 -0
  92. package/dist/client/assets/{chart-E7ehfHUF.js → chart-_YADtzsN.js} +1 -1
  93. package/dist/client/assets/{chat-context-SUJKu-XN.js → chat-context-v9O7Tar9.js} +5 -5
  94. package/dist/client/assets/{chat-draft-D9u5CYEW.js → chat-draft-BSL5UQWs.js} +1 -1
  95. package/dist/client/assets/{checkbox-CC9zkEff.js → checkbox-BMxilLAm.js} +1 -1
  96. package/dist/client/assets/{choose-editor-B5Rx7Zk5.js → choose-editor-TgQWBIvA.js} +1 -1
  97. package/dist/client/assets/{claim-phase-copy-Chi823Vj.js → claim-phase-copy-DHsomph6.js} +1 -1
  98. package/dist/client/assets/{cli-auth-success-QqvzIrWg.js → cli-auth-success-Bsu7TVxL.js} +1 -1
  99. package/dist/client/assets/{client-icons-CPgcSrwC.js → client-icons-PiLBRjl7.js} +1 -1
  100. package/dist/client/assets/{collapsible-CMMGBTfa.js → collapsible-bc19817o.js} +1 -1
  101. package/dist/client/assets/collection-detail-DpwCwzTH.js +1 -0
  102. package/dist/client/assets/{collection-display-button-c-WnLfEk.js → collection-display-button-BBRywDRf.js} +1 -1
  103. package/dist/client/assets/{collection-search-3XS3AdJ3.js → collection-search-kj64tBFw.js} +1 -1
  104. package/dist/client/assets/{collection-table-wrapper-DhxAGzgU.js → collection-table-wrapper-D2tmoW8T.js} +1 -1
  105. package/dist/client/assets/collection-tabs-DCLfzEOA.js +1 -0
  106. package/dist/client/assets/{combobox-q-ECrVO-.js → combobox-DlQnH8_N.js} +1 -1
  107. package/dist/client/assets/command-vKgGCoFF.js +1 -0
  108. package/dist/client/assets/{companion-mcps-section-DQRFd5L_.js → companion-mcps-section-Dpcawwvl.js} +1 -1
  109. package/dist/client/assets/connect-Dick3000.js +8 -0
  110. package/dist/client/assets/{connect-layout-DtbA5xEp.js → connect-layout-BfLs3zCI.js} +1 -1
  111. package/dist/client/assets/{connection-D_fwf_le.js → connection-CTAV5crm.js} +1 -1
  112. package/dist/client/assets/{connection-card-wq7ff65-.js → connection-card-DXWUKoxP.js} +1 -1
  113. package/dist/client/assets/connection-detail-BsIDB4zB.js +1 -0
  114. package/dist/client/assets/{connection-form-helpers-D8LXn1d-.js → connection-form-helpers-BrejHCrx.js} +1 -1
  115. package/dist/client/assets/connections-dBKfZKZY.js +1 -0
  116. package/dist/client/assets/{context-B092rba-.js → context-VbsY_yj4.js} +1 -1
  117. package/dist/client/assets/{create-organization-dialog-CyGYpJhs.js → create-organization-dialog-BCpMYw7e.js} +1 -1
  118. package/dist/client/assets/{decofile-api-BQi9jV2r.js → decofile-api-5Nr0-h_v.js} +1 -1
  119. package/dist/client/assets/{decopilot-D9YGMtj1.js → decopilot-DlmPNMn_.js} +2 -2
  120. package/dist/client/assets/dialog-CEiE0rPQ.js +1 -0
  121. package/dist/client/assets/discover-BvxkrONV.js +1 -0
  122. package/dist/client/assets/{domain-settings-BaQvjI4O.js → domain-settings-D1tynvCC.js} +1 -1
  123. package/dist/client/assets/{download-app-dialog-hSU8H3Vj.js → download-app-dialog-fmWolHKD.js} +1 -1
  124. package/dist/client/assets/{drawer-DeP9v70y.js → drawer-mNZA6mOf.js} +1 -1
  125. package/dist/client/assets/{editor-B7C6vwjS.js → editor-BGAJHie_.js} +1 -1
  126. package/dist/client/assets/{empty-state-CaK4RTlm.js → empty-state-BJxP56xq.js} +1 -1
  127. package/dist/client/assets/{empty-state-Bd7rwiDP.js → empty-state-BgjUu2bT.js} +1 -1
  128. package/dist/client/assets/{extract-connection-data-v71aWs18.js → extract-connection-data-erEsLv_0.js} +1 -1
  129. package/dist/client/assets/{feature-gate-LTW2kwcy.js → feature-gate-BdRUy7K_.js} +1 -1
  130. package/dist/client/assets/{feature-paywall-1lut-OZA.js → feature-paywall-Tj9HTPlX.js} +1 -1
  131. package/dist/client/assets/{file-explorer-CaKgHoMf.js → file-explorer-0KdYuesc.js} +2 -2
  132. package/dist/client/assets/{file-preview-DK07f0Bu.js → file-preview-i5I4Vmk2.js} +1 -1
  133. package/dist/client/assets/file-share-button-FS8XJyOj.js +3 -0
  134. package/dist/client/assets/{file-type-icon-BV5PHbD1.js → file-type-icon-Cv10yXI0.js} +1 -1
  135. package/dist/client/assets/{folder-icon-1-1m6gFV.js → folder-icon-DJuQAXN-.js} +1 -1
  136. package/dist/client/assets/{form-BT-p7abF.js → form-CCT2OtgN.js} +1 -1
  137. package/dist/client/assets/{gateway-client-Bunqz-v_.js → gateway-client-hbsOo-al.js} +1 -1
  138. package/dist/client/assets/{general-fOjVxBHu.js → general-B_HDEt1Q.js} +1 -1
  139. package/dist/client/assets/{github-icon-B7EzOW44.js → github-icon-BpCOzzV8.js} +1 -1
  140. package/dist/client/assets/home-CMRSzFNz.js +1 -0
  141. package/dist/client/assets/{hooks-ZDl1T3YR.js → hooks-CcmbiBeQ.js} +4 -4
  142. package/dist/client/assets/{icon-button-CH4FIKTp.js → icon-button-B8KzCtPE.js} +1 -1
  143. package/dist/client/assets/index-BeJdXzSv.css +1 -0
  144. package/dist/client/assets/{index-DGrB0yWK.js → index-BpvXUNGE.js} +27 -27
  145. package/dist/client/assets/index-BsLVRPrU.js +26 -0
  146. package/dist/client/assets/{index-C6jf5hj5.js → index-CDe2yrwT.js} +1 -1
  147. package/dist/client/assets/index-CGxhGPsv.js +5 -0
  148. package/dist/client/assets/{index-Cbxez_uk.js → index-CKZ6XrRd.js} +1 -1
  149. package/dist/client/assets/{index--xKIMIg3.js → index-CWksyNR9.js} +1 -1
  150. package/dist/client/assets/{index-4aLH0qvl.js → index-ClooW3Im.js} +1 -1
  151. package/dist/client/assets/{index-C_kk8c78.js → index-DVgj8U7g.js} +1 -1
  152. package/dist/client/assets/index-D_lD_4br.js +1 -0
  153. package/dist/client/assets/{index-Ck4x2-t2.js → index-De5sr9zh.js} +44 -44
  154. package/dist/client/assets/{index-Bg7kKf4r.js → index-Kwx27vNK.js} +1 -1
  155. package/dist/client/assets/index-bMw4G7-h.js +1 -0
  156. package/dist/client/assets/{index-Om_Krpb0.js → index-gldwodyc.js} +1 -1
  157. package/dist/client/assets/{index-nUsHjtAT.js → index-ldS2WUeM.js} +1 -1
  158. package/dist/client/assets/index-redirect-CfY3ykU_.js +1 -0
  159. package/dist/client/assets/{infiniteQueryObserver-DJPW5pCw.js → infiniteQueryObserver-CwgE9ndj.js} +1 -1
  160. package/dist/client/assets/{infra-billing-CHwTXFTp.js → infra-billing-TzlPUT1_.js} +1 -1
  161. package/dist/client/assets/{input-BBpmUhtR.js → input-B-DIEGoS.js} +1 -1
  162. package/dist/client/assets/{input-CsRLFWsE.js → input-CogQggtY.js} +1 -1
  163. package/dist/client/assets/input-DMbK8B2u.js +8 -0
  164. package/dist/client/assets/{integration-icon-CXxe2Nmz.js → integration-icon-CsYMgjoT.js} +1 -1
  165. package/dist/client/assets/{label-BasQfmGn.js → label-Baft7ecp.js} +1 -1
  166. package/dist/client/assets/{last-preview-page-tC_ec-8v.js → last-preview-page-DkIjQnDn.js} +1 -1
  167. package/dist/client/assets/{layout-BCBVVsx8.js → layout-CI3O4gkp.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-DJ3dRrzM.js → legacy-agents-deep-BvWpwcOc.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-C7QpzNdk.js → legacy-main-redirect-CQgWSIje.js} +1 -1
  170. package/dist/client/assets/library-CAwdTP4-.js +161 -0
  171. package/dist/client/assets/{login-BtJlygis.js → login-DJ5PeYOE.js} +1 -1
  172. package/dist/client/assets/{markdown-D9JYtNvk.js → markdown-UaZeehfy.js} +2 -2
  173. package/dist/client/assets/{mcp-app-renderer-CK8AdoIv.js → mcp-app-renderer-DVXFXjZU.js} +2 -2
  174. package/dist/client/assets/{mcp-oauth-CCvVH2OB.js → mcp-oauth-DpJ1IX9I.js} +1 -1
  175. package/dist/client/assets/members-CXM5jx_X.js +1 -0
  176. package/dist/client/assets/message-templates-54foej4h.js +1 -0
  177. package/dist/client/assets/{mini-report-page-CCQFv7lr.js → mini-report-page-B1sFW1ww.js} +1 -1
  178. package/dist/client/assets/mock-board-BbS_eZEl.js +10 -0
  179. package/dist/client/assets/{monaco-editor-CLYybS8B.js → monaco-editor-B9FUV1NZ.js} +2 -2
  180. package/dist/client/assets/{monitoring-stats-row-avCjcK0F.js → monitoring-stats-row-Cl5_OBZ5.js} +1 -1
  181. package/dist/client/assets/multi-select-VDMM47xB.js +1 -0
  182. package/dist/client/assets/{mustache-C9rsi357.js → mustache-DZ4FV0Nc.js} +1 -1
  183. package/dist/client/assets/{oauth-callback-ivL7RrDf.js → oauth-callback-OoZf3jL0.js} +1 -1
  184. package/dist/client/assets/{oauth-callback-ai-provider-DyQmwFrI.js → oauth-callback-ai-provider-foDaIFwI.js} +1 -1
  185. package/dist/client/assets/{onboarding-Bu2705eX.js → onboarding-Dq71FOpN.js} +1 -1
  186. package/dist/client/assets/{optimistic-project-sidebar-views-lIiVbcFU.js → optimistic-project-sidebar-views-CgB8Gy1s.js} +1 -1
  187. package/dist/client/assets/org-file-open-context-Mx8jC4-P.js +1 -0
  188. package/dist/client/assets/{organization-choice-Cqq6hiux.js → organization-choice-ZqNf00EY.js} +1 -1
  189. package/dist/client/assets/{orgs-DjPk91H4.js → orgs-B8y0HHqF.js} +1 -1
  190. package/dist/client/assets/page-seo-form-DPObRKD4.js +1 -0
  191. package/dist/client/assets/{pair-DW_WRb6G.js → pair-D39JYx1G.js} +5 -5
  192. package/dist/client/assets/{plan-ladder-BXJ0swZ2.js → plan-ladder-D85oNnSr.js} +1 -1
  193. package/dist/client/assets/{popover-K1ZrYG78.js → popover-DCaw39mN.js} +1 -1
  194. package/dist/client/assets/{post-calendar-2v4vqP8p.js → post-calendar-Dpixo2IP.js} +1 -1
  195. package/dist/client/assets/{post-editor-B2FiOFhN.js → post-editor-BivV74bZ.js} +1 -1
  196. package/dist/client/assets/{preview-content-CpPj1JH3.js → preview-content-ziDhpr9V.js} +1 -1
  197. package/dist/client/assets/{preview-dialog-Clu5ydVv.js → preview-dialog-DHJShsrA.js} +1 -1
  198. package/dist/client/assets/profile-C9xI3KvS.js +1 -0
  199. package/dist/client/assets/{project-app-view-1zY3x0YR.js → project-app-view-CFWAaKq_.js} +1 -1
  200. package/dist/client/assets/project-feed-D6D6bSHY.js +1 -0
  201. package/dist/client/assets/{project-icon-CjBJRgr0.js → project-icon-CXM68zVZ.js} +1 -1
  202. package/dist/client/assets/project-reports-8SYQbI2J.js +1 -0
  203. package/dist/client/assets/project-tasks-DrEyprGU.js +1 -0
  204. package/dist/client/assets/{prompts-rF3K-sXx.js → prompts-CVNAEIJB.js} +1 -1
  205. package/dist/client/assets/record-editor-CKxwz78L.js +1 -0
  206. package/dist/client/assets/{redirect-editor-C8SiyMIE.js → redirect-editor-Dy1UJRrv.js} +1 -1
  207. package/dist/client/assets/{reports-yWFVxw0Z.js → reports-BvZHk8Hk.js} +2 -2
  208. package/dist/client/assets/reports-DyvsxSR9.js +1 -0
  209. package/dist/client/assets/{reports-onboarding-N2pt6gNg.js → reports-onboarding-D4Uaui5Y.js} +1 -1
  210. package/dist/client/assets/reports-tab-CwwTWlIS.js +2 -0
  211. package/dist/client/assets/{repositories-CaSms5FF.js → repositories-CqbcdDdH.js} +1 -1
  212. package/dist/client/assets/{repository-import-picker-Kal2nH0n.js → repository-import-picker-BXQhU82J.js} +1 -1
  213. package/dist/client/assets/{repository-picker-DxgY__Tu.js → repository-picker-D1hSYB_G.js} +1 -1
  214. package/dist/client/assets/require-capability-Cab5QyjH.js +1 -0
  215. package/dist/client/assets/{required-auth-layout-BWh5q3u2.js → required-auth-layout-scRrBHKS.js} +1 -1
  216. package/dist/client/assets/{reset-password-aeaUD9hZ.js → reset-password-CDE1iX3h.js} +1 -1
  217. package/dist/client/assets/{resizable-C3GNt7qd.js → resizable-D2L182YF.js} +1 -1
  218. package/dist/client/assets/{review-settings-DTVyO-Pc.js → review-settings-B98rLFs_.js} +1 -1
  219. package/dist/client/assets/{rich-text-link-control-CWGtfixK.js → rich-text-link-control-DwRx0-0K.js} +1 -1
  220. package/dist/client/assets/roles-CZvYgdUZ.js +1 -0
  221. package/dist/client/assets/route-B9TApoqS.js +1 -0
  222. package/dist/client/assets/route-N926-QRJ.js +1 -0
  223. package/dist/client/assets/route-OKy5_TxY.js +1 -0
  224. package/dist/client/assets/route-page-header-ErgCCo2N.js +1 -0
  225. package/dist/client/assets/runnable-block-editor-C2YphDcL.js +17 -0
  226. package/dist/client/assets/{sandbox-lifecycle-context-DIc5m19C.js → sandbox-lifecycle-context-o4KKoGrI.js} +2 -2
  227. package/dist/client/assets/{schema-C2l7sv-S.js → schema-DkZUkArz.js} +1 -1
  228. package/dist/client/assets/{scroll-area-CTv9WE1l.js → scroll-area-Ca9Mo_QH.js} +1 -1
  229. package/dist/client/assets/{search-input-yrvqqqa5.js → search-input-DRWRYRPs.js} +1 -1
  230. package/dist/client/assets/{search-toggle-g6PUq9ya.js → search-toggle-B5FB44XX.js} +1 -1
  231. package/dist/client/assets/{secret-picker-BxxQ42cR.js → secret-picker-DLap6vTC.js} +1 -1
  232. package/dist/client/assets/secrets-jZp-bTCf.js +1 -0
  233. package/dist/client/assets/sections-editor-BFbkxXEt.js +1 -0
  234. package/dist/client/assets/{select-BoR29t6W.js → select-BZ6sktb7.js} +1 -1
  235. package/dist/client/assets/select-model-BIWsu5PV.js +1 -0
  236. package/dist/client/assets/{seo-editor-BMB6shx2.js → seo-editor-PDlEaSFK.js} +1 -1
  237. package/dist/client/assets/{separator-Di6srp9Z.js → separator-D_UVaWw6.js} +1 -1
  238. package/dist/client/assets/settings-tab-BBHI-Kul.js +5 -0
  239. package/dist/client/assets/{sheet-C9bl1oJW.js → sheet-Kja83qKC.js} +1 -1
  240. package/dist/client/assets/shell-layout-ynqF32RZ.js +1 -0
  241. package/dist/client/assets/{skill-preview-CjSzB6zf.js → skill-preview-BjeMKh94.js} +1 -1
  242. package/dist/client/assets/skills-BVNUFN8s.js +1 -0
  243. package/dist/client/assets/{sso-CT9ELyZE.js → sso-CbvzPnGh.js} +1 -1
  244. package/dist/client/assets/{suggestion-BSo5OP_j.js → suggestion-DMGPIg87.js} +1 -1
  245. package/dist/client/assets/{switch-wAm3D1I6.js → switch-CSgTLkLq.js} +1 -1
  246. package/dist/client/assets/synced-repos-DkDa4E03.js +1 -0
  247. package/dist/client/assets/{table-3nkTB4Np.js → table-BNlBwUw8.js} +1 -1
  248. package/dist/client/assets/{tabs-Z84fQLpa.js → tabs-DWl7SNDG.js} +1 -1
  249. package/dist/client/assets/{task-board-CIQEQ9gq.js → task-board-C6TTBmRS.js} +1 -1
  250. package/dist/client/assets/{task-route-BYXl_z5M.js → task-route-Bz3woGSP.js} +1 -1
  251. package/dist/client/assets/{task-status-B6zn5x63.js → task-status-CnFMIlt_.js} +1 -1
  252. package/dist/client/assets/taskboard-analytics-DoJw1Xfg.js +1 -0
  253. package/dist/client/assets/tasks-CIdMsSLJ.js +1 -0
  254. package/dist/client/assets/{tasks-3RHZzkFK.js → tasks-Cqz8mQiU.js} +2 -2
  255. package/dist/client/assets/{textarea-DmhWadvL.js → textarea-CufiKBr1.js} +1 -1
  256. package/dist/client/assets/thread-analytics-CC-_zVgm.js +1 -0
  257. package/dist/client/assets/thread-button-Ds-0KssI.js +1 -0
  258. package/dist/client/assets/{thread-intent-BuxfElu5.js → thread-intent-rbLXiRX-.js} +1 -1
  259. package/dist/client/assets/{thread-route-CmEEfnPs.js → thread-route-B3__WRb1.js} +1 -1
  260. package/dist/client/assets/thread-route-D_-4E_Qa.js +1 -0
  261. package/dist/client/assets/{thread-sheet-body-BpOJ-mpg.js → thread-sheet-body-C6Nvo-gY.js} +1 -1
  262. package/dist/client/assets/toggle-group-CEb1zCbt.js +1 -0
  263. package/dist/client/assets/toolbar-icon-button-B7ENG3u2.js +1 -0
  264. package/dist/client/assets/{tooltip-D_t5agRT.js → tooltip-Bdu4_ay-.js} +1 -1
  265. package/dist/client/assets/{track-CWcmFBdJ.js → track-DYcNrkYj.js} +1 -1
  266. package/dist/client/assets/{types-EnXetskt.js → types-C1lh-7rD.js} +3 -3
  267. package/dist/client/assets/{usage-stats-Gv-3x4Ta.js → usage-stats-C8kdutYl.js} +1 -1
  268. package/dist/client/assets/{use-ai-providers-BOtkBAHJ.js → use-ai-providers-DdvmCGxF.js} +1 -1
  269. package/dist/client/assets/{use-automations-C_H2RSDu.js → use-automations-By-N-e6c.js} +1 -1
  270. package/dist/client/assets/{use-autosave-CtwCn4lm.js → use-autosave-tkO4DMDZ.js} +1 -1
  271. package/dist/client/assets/use-connect-companion-CRgCDVPT.js +1 -0
  272. package/dist/client/assets/{use-connection-CK-5Lpbl.js → use-connection-CzhqmkxY.js} +1 -1
  273. package/dist/client/assets/{use-copy-CWcw9y0f.js → use-copy-D35bNj5j.js} +1 -1
  274. package/dist/client/assets/{use-create-virtual-mcp-0s6caXAs.js → use-create-virtual-mcp-DSS6KW-Y.js} +1 -1
  275. package/dist/client/assets/{use-date-fns-locale-DeGGdClH.js → use-date-fns-locale-B65-a3KP.js} +1 -1
  276. package/dist/client/assets/{use-debounced-autosave-l-fa5dGN.js → use-debounced-autosave-UCDN4Lw3.js} +1 -1
  277. package/dist/client/assets/{use-debounced-value-BAmcCwZ4.js → use-debounced-value-CWshbX7F.js} +1 -1
  278. package/dist/client/assets/{use-deco-credits-BAtSd5iZ.js → use-deco-credits-DTu_Qf20.js} +1 -1
  279. package/dist/client/assets/{use-decopilot-events-BzhXXQi3.js → use-decopilot-events-BvKgG5Ws.js} +1 -1
  280. package/dist/client/assets/{use-delete-connection-AWBlHZP0.js → use-delete-connection-1XhxmMPF.js} +1 -1
  281. package/dist/client/assets/{use-deployment-admin-sAUdKDqS.js → use-deployment-admin-DMXwbJU8.js} +1 -1
  282. package/dist/client/assets/{use-entitlements-Dql2buFj.js → use-entitlements-Da1bmf67.js} +1 -1
  283. package/dist/client/assets/{use-fast-preview-draft-url-BxezoKmd.js → use-fast-preview-draft-url-C7L3VsQn.js} +1 -1
  284. package/dist/client/assets/{use-file-configs-Dr0d27aT.js → use-file-configs-C7xVU8E2.js} +1 -1
  285. package/dist/client/assets/use-in-settings-icIKIpSR.js +1 -0
  286. package/dist/client/assets/{use-infinite-scroll-CAp6PiC0.js → use-infinite-scroll-7-m4dXi3.js} +1 -1
  287. package/dist/client/assets/{use-join-requests-CMqjWeBG.js → use-join-requests-D_x3dmzZ.js} +1 -1
  288. package/dist/client/assets/use-main-panel-tabs-B5g6e1MJ.js +1 -0
  289. package/dist/client/assets/{use-mcp-auth-status-CH7YPNve.js → use-mcp-auth-status-nDkEwx2c.js} +1 -1
  290. package/dist/client/assets/{use-mcp-client-DDIocHT6.js → use-mcp-client-CkjkRUta.js} +1 -1
  291. package/dist/client/assets/{use-mcp-prompts-D8MzpgAT.js → use-mcp-prompts-D2XJcis0.js} +1 -1
  292. package/dist/client/assets/{use-mcp-tools-CFGrhbrB.js → use-mcp-tools-DZlo67bQ.js} +1 -1
  293. package/dist/client/assets/{use-members-BtxsC9V3.js → use-members-CdPjttiy.js} +1 -1
  294. package/dist/client/assets/{use-mobile-CdzCnkMt.js → use-mobile-DVMuGaln.js} +1 -1
  295. package/dist/client/assets/{use-navigate-to-agent-CK2ojcHr.js → use-navigate-to-agent-BCcYux8q.js} +1 -1
  296. package/dist/client/assets/{use-open-billing-url-ptdTbbBm.js → use-open-billing-url-CJn1G7pV.js} +1 -1
  297. package/dist/client/assets/{use-org-auth-client-B2Mz39Ds.js → use-org-auth-client-D8dxsLtj.js} +1 -1
  298. package/dist/client/assets/{use-org-fs-B5SsMM_1.js → use-org-fs-3jzMRDSK.js} +1 -1
  299. package/dist/client/assets/{use-org-sso-Bg9XoWeE.js → use-org-sso-Bb_2_N0Z.js} +1 -1
  300. package/dist/client/assets/{use-organization-roles-Q61E1tJN.js → use-organization-roles-ixSaPxG5.js} +1 -1
  301. package/dist/client/assets/{use-organization-settings-DYk5FZJw.js → use-organization-settings-B0mobgxG.js} +1 -1
  302. package/dist/client/assets/{use-panel-navigate-wv77dcM5.js → use-panel-navigate-CjSWJCy4.js} +1 -1
  303. package/dist/client/assets/{use-project-native-view-presence-gzbdZMHU.js → use-project-native-view-presence-_PPun-xm.js} +1 -1
  304. package/dist/client/assets/{use-project-scope-DHDkFc-g.js → use-project-scope-CJnr8HCi.js} +1 -1
  305. package/dist/client/assets/{use-releases-h152tw9n.js → use-releases-CT-nVxtd.js} +1 -1
  306. package/dist/client/assets/{use-reports-diagnostic-DldYivxc.js → use-reports-diagnostic-AsJIEIvt.js} +1 -1
  307. package/dist/client/assets/{use-route-default-main-BWkjTfSK.js → use-route-default-main-CQGz2KW9.js} +1 -1
  308. package/dist/client/assets/{use-secrets-DQHJ4cVA.js → use-secrets-DgNcVRY9.js} +1 -1
  309. package/dist/client/assets/use-section-preview-base-mIL7vKdH.js +1 -0
  310. package/dist/client/assets/{use-session-runtime-D_Z0r9x6.js → use-session-runtime-B9eFlXyW.js} +1 -1
  311. package/dist/client/assets/{use-tags-DEpNJldS.js → use-tags-BM82Yu0K.js} +1 -1
  312. package/dist/client/assets/{use-task-board-analytics-Cw3-V-U_.js → use-task-board-analytics-D_ruF5p9.js} +1 -1
  313. package/dist/client/assets/{use-task-metadata-B8IWdSS_.js → use-task-metadata-qZ-qzNT-.js} +1 -1
  314. package/dist/client/assets/{use-thread-analytics-CW55-Xe0.js → use-thread-analytics-BcEpZDI1.js} +1 -1
  315. package/dist/client/assets/{use-thread-outputs-C4iYsVj1.js → use-thread-outputs-CIF4-tq_.js} +1 -1
  316. package/dist/client/assets/{use-virtual-mcp-CfvZlIda.js → use-virtual-mcp-BKP1YfD8.js} +1 -1
  317. package/dist/client/assets/useInfiniteQuery-DhVx-Xnv.js +1 -0
  318. package/dist/client/assets/{useQueries-Cd_bJN_E.js → useQueries-CbuhlNe5.js} +1 -1
  319. package/dist/client/assets/useSuspenseInfiniteQuery-CB90sByh.js +1 -0
  320. package/dist/client/assets/{users-DHJxjXSq.js → users-CDy-vhRi.js} +1 -1
  321. package/dist/client/assets/{utils-DMlJ8ARz.js → utils-VRidfAJX.js} +1 -1
  322. package/dist/client/assets/{variant-calendar-DghqPTU4.js → variant-calendar-C5Yhhu_f.js} +1 -1
  323. package/dist/client/assets/{variant-matcher-override-BL815r4E.js → variant-matcher-override-NRDTBNQG.js} +1 -1
  324. package/dist/client/assets/view-mode-toggle-P-VmNhrj.js +1 -0
  325. package/dist/client/assets/{virtual-mcp-CcUa7C54.js → virtual-mcp-DXr1jTLu.js} +1 -1
  326. package/dist/client/index.html +2 -2
  327. package/dist/server/cli.js +6 -6
  328. package/dist/server/server.js +6 -6
  329. package/package.json +1 -1
  330. package/dist/client/assets/agent-analytics-5H0k6n1D.js +0 -2
  331. package/dist/client/assets/agent-app-Cw9tbDuz.js +0 -1
  332. package/dist/client/assets/agent-assets-YP1dibLm.js +0 -1
  333. package/dist/client/assets/agent-automation-Bp39QN0z.js +0 -20
  334. package/dist/client/assets/agent-automations-CcIjwuOa.js +0 -1
  335. package/dist/client/assets/agent-connect-sources-gwlJwqxl.js +0 -1
  336. package/dist/client/assets/agent-deck-DjA8jeH7.js +0 -1
  337. package/dist/client/assets/agent-e2e-BiBmSSMh.js +0 -1
  338. package/dist/client/assets/agent-experiments-C0aMSCki.js +0 -1
  339. package/dist/client/assets/agent-file-C8oUDbru.js +0 -1
  340. package/dist/client/assets/agent-hosting-CrRHqit9.js +0 -1
  341. package/dist/client/assets/agent-library-file-DHksNut0.js +0 -1
  342. package/dist/client/assets/agent-monitor-BfRZolsZ.js +0 -1
  343. package/dist/client/assets/agent-overview-B71w2k7g.js +0 -1
  344. package/dist/client/assets/agent-settings-DLjV3KWn.js +0 -1
  345. package/dist/client/assets/agent-site-editor-code-HV34X_yY.js +0 -2
  346. package/dist/client/assets/agent-site-editor-content-BcZDuxlX.js +0 -9
  347. package/dist/client/assets/agent-site-editor-preview-B9JYzQCZ.js +0 -518
  348. package/dist/client/assets/agent-view-BTwtHRZF.js +0 -1
  349. package/dist/client/assets/agents-list-BOyqXgKJ.js +0 -1
  350. package/dist/client/assets/analytics-sections-DtS7EZgf.js +0 -1
  351. package/dist/client/assets/api-keys-CuyD-Z5R.js +0 -1
  352. package/dist/client/assets/api-keys-DrMp2tSJ.js +0 -1
  353. package/dist/client/assets/app-editor-CIFNTD8w.js +0 -1
  354. package/dist/client/assets/auth-entry-Bt2xP80T.js +0 -1
  355. package/dist/client/assets/block-document-B66z-LAv.js +0 -3
  356. package/dist/client/assets/breadcrumb-CTYBDQ2Q.js +0 -1
  357. package/dist/client/assets/category-editor-BzKSt8vB.js +0 -1
  358. package/dist/client/assets/collection-detail-CNH0TqEJ.js +0 -1
  359. package/dist/client/assets/collection-tabs-B6d-4IcJ.js +0 -1
  360. package/dist/client/assets/command-BNNuUVzL.js +0 -1
  361. package/dist/client/assets/connect-B67H5sTV.js +0 -8
  362. package/dist/client/assets/connection-detail-CGeE1NL9.js +0 -1
  363. package/dist/client/assets/connections-JoHYlluM.js +0 -1
  364. package/dist/client/assets/dialog-DP1MSxJH.js +0 -1
  365. package/dist/client/assets/discover-BV0HsgaI.js +0 -1
  366. package/dist/client/assets/file-share-button-rEL9QTqo.js +0 -3
  367. package/dist/client/assets/home-D2-wyRKJ.js +0 -1
  368. package/dist/client/assets/index-Cba7I4uA.js +0 -26
  369. package/dist/client/assets/index-DK8MJmup.js +0 -1
  370. package/dist/client/assets/index-DQQ8_5-n.css +0 -1
  371. package/dist/client/assets/index-g9QoTWAS.js +0 -1
  372. package/dist/client/assets/index-redirect-Cl6Yu5tU.js +0 -1
  373. package/dist/client/assets/index-xK_UxIbV.js +0 -5
  374. package/dist/client/assets/input-BpZKxjG2.js +0 -8
  375. package/dist/client/assets/library-B502b1z4.js +0 -161
  376. package/dist/client/assets/members-BoGXKcke.js +0 -1
  377. package/dist/client/assets/message-templates-D0vFWbXr.js +0 -1
  378. package/dist/client/assets/mock-board-CLLyx2N9.js +0 -10
  379. package/dist/client/assets/multi-select--1a2IkR7.js +0 -1
  380. package/dist/client/assets/org-file-open-context-BGwxOJ5f.js +0 -1
  381. package/dist/client/assets/page-seo-form-C1Rgy6PR.js +0 -1
  382. package/dist/client/assets/profile-r8hRIBVU.js +0 -1
  383. package/dist/client/assets/project-feed-DminiBzl.js +0 -1
  384. package/dist/client/assets/project-reports-JmbfgpKz.js +0 -1
  385. package/dist/client/assets/project-tasks-2GTKjWCp.js +0 -1
  386. package/dist/client/assets/record-editor-B-ETGxA0.js +0 -1
  387. package/dist/client/assets/reports-Dd7XY9fp.js +0 -1
  388. package/dist/client/assets/reports-tab-CoNw5u9A.js +0 -2
  389. package/dist/client/assets/require-capability-3QFnbaVg.js +0 -1
  390. package/dist/client/assets/roles-CesqgDGr.js +0 -1
  391. package/dist/client/assets/route-BXF3hfx7.js +0 -1
  392. package/dist/client/assets/route-CH1X1P-P.js +0 -1
  393. package/dist/client/assets/route-page-header-BHR-ItxW.js +0 -1
  394. package/dist/client/assets/route-utJJlEy1.js +0 -1
  395. package/dist/client/assets/runnable-block-editor-D_EKjpsM.js +0 -17
  396. package/dist/client/assets/secrets-CTexxl38.js +0 -1
  397. package/dist/client/assets/sections-editor-8OIVL9zx.js +0 -1
  398. package/dist/client/assets/select-model-baGNpvTB.js +0 -1
  399. package/dist/client/assets/settings-tab-DSJnx2cf.js +0 -5
  400. package/dist/client/assets/shell-layout-PUnaTk6G.js +0 -1
  401. package/dist/client/assets/sidebar-gH44_aFR.js +0 -1
  402. package/dist/client/assets/skills-CEarjmfu.js +0 -1
  403. package/dist/client/assets/synced-repos-B5N_C_En.js +0 -1
  404. package/dist/client/assets/taskboard-analytics-BDhMfBmv.js +0 -1
  405. package/dist/client/assets/tasks-L4O6RNHu.js +0 -1
  406. package/dist/client/assets/thread-analytics-CWolaSZq.js +0 -1
  407. package/dist/client/assets/thread-button-C353BNO6.js +0 -1
  408. package/dist/client/assets/thread-route-Bx6eqAUQ.js +0 -1
  409. package/dist/client/assets/toggle-group-WpqscYaw.js +0 -1
  410. package/dist/client/assets/toolbar-icon-button-DAFKD_pK.js +0 -1
  411. package/dist/client/assets/use-connect-companion-v6osDnhK.js +0 -1
  412. package/dist/client/assets/use-in-settings-BA5Od6zt.js +0 -1
  413. package/dist/client/assets/use-main-panel-tabs-CtoMsbfs.js +0 -1
  414. package/dist/client/assets/use-section-preview-base-CdEeBhgs.js +0 -1
  415. package/dist/client/assets/useInfiniteQuery-DfdWdULq.js +0 -1
  416. package/dist/client/assets/useSuspenseInfiniteQuery-ByyP6gL-.js +0 -1
  417. package/dist/client/assets/view-mode-toggle-Czn_wQOw.js +0 -1
@@ -1 +1 @@
1
- import{c as Ne,V as Ke,X as Ge}from"./index-Ck4x2-t2.js";import{s as Ae}from"./thread-intent-BuxfElu5.js";function Pt(e){const t=Ne.c(12);let r;t[0]!==e?(r=Ge.localPreviewUrl(e??""),t[0]=e,t[1]=r):r=t[1];const n=r,[c,o]=Ke(n,null);let a;t[2]!==c||t[3]!==e?(a=e?Ae(c):null,t[2]=c,t[3]=e,t[4]=a):a=t[4];const f=a;let m,S;t[5]!==o?(m=k=>o(Ae(k)),S=()=>o(null),t[5]=o,t[6]=m,t[7]=S):(m=t[6],S=t[7]);let C;return t[8]!==m||t[9]!==S||t[10]!==f?(C={url:f,setUrl:m,clear:S},t[8]=m,t[9]=S,t[10]=f,t[11]=C):C=t[11],C}function He(e){return e.replace(/\/+$/,"")||"/"}function kt(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Xe(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function $t(e){const t=e.trim();return t?Xe(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const te=/:([A-Za-z0-9_-]+)|\*/g;function jt(e){const t=[];for(const r of e.matchAll(te)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function Oe(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function wt(e){e=Oe(e);const t=[];let r=0;for(const n of e.matchAll(te))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function Bt(e,t){return Oe(e).replace(te,(r,n)=>{const c=t[n??"*"]?.trim();return c?n!==void 0?encodeURIComponent(c):c.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}function ve(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Lt(e){return e.includes("@")}function be(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Ct(e,t){if(e===t)return!0;const r=be(e);return r?t===r||be(t)===r:!1}function re(e,t){const r=e.manifest?.blocks??{};for(const[n,c]of Object.entries(r))if(t in c)return n;return null}function ne(e,t){const r=re(e,t);return r!==null&&r.includes("sections")}function ze(e,t){const r=re(e,t);return r!==null&&r.includes("apps")}function xt(e,t){const r=re(e,t);return r!==null&&r.includes("matchers")}function Re(e){return!(!e||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Pe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Ut="oklch(0.7278 0.151 289)",Qe="website/matchers/always.ts",It="website/matchers/never.ts",Ze="website/flags/multivariate.ts",ke="website/flags/multivariate/section.ts";function Mt(){return{__resolveType:Qe}}function V(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Je=12,et=8,z=32,tt=40,rt="__SECTION_REF__";function Q(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Te(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const c=r.properties?.__resolveType?.enum;return Array.isArray(c)&&typeof c[0]=="string"}const nt="VideoWidget";function D(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function $e(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function ie(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function oe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function je(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function se(e,t){const r=t.manifest?.blocks??{};for(const f of Object.values(r))if(f[e])return f[e];const n=ie(e)??oe(e);if(n){for(const f of je(n.vendor,n.app))for(const m of Object.values(r))if(m[f])return m[f]}const c=$e(e);for(const f of Object.values(r))if(f[c])return f[c];const o=t.schema??{};return(o.$defs??o.definitions??{})[c]?{$ref:`#/definitions/${c}`}:{}}function we(e,t){if(ze(e,t))return!0;const r=ie(t)??oe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(je(r.vendor,r.app).some(a=>a in n))return!0;const c=$e(t),o=e.schema?.$defs??e.schema?.definitions??{};return c in o}function it(e){return e==="site/apps/site.ts"?!1:ie(e)!==null||oe(e)!==null}function ot(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=r.root??{},a=s=>{if(s.startsWith("#/root/")){const i=s.slice(7);return o[i]??{}}const y=s.split("/").pop()??"",g=c[y];return g||(y===rt?o.sections??{}:{})};let f;typeof n.$ref=="string"?f=a(n.$ref):Object.keys(n).length>0?f=n:f=r;const m=s=>typeof s.$ref=="string"?a(s.$ref):s,S=s=>{const g=m(s).properties?.type;if(g){if(typeof g.const=="string")return g.const;if(typeof g.default=="string")return g.default;if(Array.isArray(g.enum)&&typeof g.enum[0]=="string")return g.enum[0]}},C=(s,y)=>{const g=m(s);return typeof g.title=="string"&&!g.title.startsWith("#")?g.title:y},k=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const g=s.$ref.split("/").pop()??"";return!g||y.has(g)?s:k(a(s.$ref),new Set([...y,g]))},j=s=>{const y=s.hide;return y===!0||y==="true"},fe=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),q=(s,y=new Set,g=0)=>{if(g>Je)return{};if(typeof s.$ref=="string"){const R=s.$ref.split("/").pop()??"";return y.has(R)?{}:q(a(s.$ref),new Set([...y,R]),g+1)}let i={};s.properties&&typeof s.properties=="object"&&(i={...i,...s.properties}),Array.isArray(s.required)&&(i.__required=[...D(i.__required),...D(s.required)]);for(const R of["allOf","anyOf","oneOf"]){const O=s[R];if(Array.isArray(O))for(const w of O){const B=D(i.__required),I=q(w,y,g+1);i={...i,...I};const $=R==="allOf"?[...B,...D(I.__required)]:B;$.length>0?i.__required=$:delete i.__required}}return i},x=(s,y=0,g=new Set)=>{let i=s,R;if(typeof s.$ref=="string"){i=a(s.$ref);const A=s.$ref.split("/").pop()??"";R=A,A===nt&&!i.format&&(i={...i,format:"video-uri"})}i=k(i);const O=R!==void 0&&g.has(R),w=R!==void 0?new Set([...g,R]):g,B=(A,u,v,_=!0)=>!O&&(!_||v<=tt)&&u<et?x(A,u,w):void 0;let I;{const A=i.anyOf??i.oneOf;if(Array.isArray(A)){const u=A.filter(_=>!(_.type==="null"||_.type===null)),v=_=>{if(typeof _.const=="string"||typeof _.const=="number")return _.const;if(Array.isArray(_.enum)&&_.enum.length===1&&(typeof _.enum[0]=="string"||typeof _.enum[0]=="number"))return _.enum[0]};u.length>0&&u.every(_=>v(_)!==void 0)&&(I=u.map(_=>v(_)))}}let $,W,ye=!1;if(i.type)$=Array.isArray(i.type)?String(i.type.find(A=>A!=="null")??i.type[0]):String(i.type);else if(i.anyOf||i.oneOf){const u=(i.anyOf??i.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(u.length===0)$="null";else if(u.length===1){const v=u[0];W=v,$=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(I){const p=l=>typeof s[l]=="string"?s[l]:typeof i[l]=="string"?i[l]:void 0;return{type:"string",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,enum:I,format:p("format"),options:p("options")}}const v=u.filter(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&typeof l[0]=="string"}),_=u.map(p=>k(p)).find(Q),H=u.filter(p=>!Q(k(p))).every(p=>typeof p.$ref=="string"||v.includes(p)),Ye=v.some(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&l[0]===Ze});if(_){if(!Te(_,a)&&u.length>1&&H){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}if(Ye){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}}if(v.length>0){const p=v.map(h=>{const P=h.properties?.__resolveType?.enum??[],L=String(P[0]);return{resolveType:L,title:typeof h.title=="string"?h.title:V(L),description:typeof h.description=="string"?h.description:void 0,schema:B(h,y+1,u.length)}}),l=[];for(const h of u){if(v.includes(h)||typeof h.$ref!="string")continue;const T=a(h.$ref);let P;const L=T.properties?.__resolveType;if(Array.isArray(L?.enum)&&typeof L.enum[0]=="string"&&(P=L.enum[0]),!P&&Array.isArray(T.allOf))for(const Fe of T.allOf){const X=Fe.properties?.__resolveType?.enum;if(Array.isArray(X)&&typeof X[0]=="string"){P=X[0];break}}P&&l.push({resolveType:P,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:V(P),description:typeof T.description=="string"?T.description:void 0,schema:B(T,y+1,u.length)})}const d=new Set(p.map(h=>h.resolveType)),b=[...p,...l.filter(h=>!d.has(h.resolveType))],E=u.filter(h=>!v.includes(h)),U=E.length===1&&!O?x(E[0],y+1,w):void 0;return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:b,plainSchema:U,hidden:j(i)||j(s)?!0:void 0}}const ge=p=>{const l=m(p);if(typeof l.title=="string"&&ve(l.title))return!0;const d=l.properties?.__resolveType?.enum;if(Array.isArray(d)&&typeof d[0]=="string")return!0;if(Array.isArray(l.allOf))for(const b of l.allOf){const E=b.properties?.__resolveType?.enum;if(Array.isArray(E)&&typeof E[0]=="string")return!0}return!1},me=u.map(p=>S(p));if(u.length>1&&me.every(p=>typeof p=="string")&&!u.some(ge)){const p=u.map((l,d)=>{const b=m(l),E=me[d];return{resolveType:E,title:C(l,E),description:typeof b.description=="string"?b.description:void 0,discriminatorValue:E,schema:B(b,y+1,u.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:void 0,discriminatorKey:"type",anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}const _e=p=>{if(ge(p))return!1;const l=m(p);return l.type==="object"||!!l.properties},qe=p=>{const l=k(p);return Q(l)?!Te(l,a):!1},he=y<z&&u.every(p=>_e(p)||qe(p))&&u.some(_e);if(u.every(p=>typeof p.$ref=="string")&&!he){const p=[];for(const l of u){const d=a(l.$ref);let b,E;if(typeof d.title=="string"){const h=ve(d.title);h&&(b=h.blockId,E=h.blockId)}if(!b&&Array.isArray(d.allOf))for(const h of d.allOf){const L=((h.properties??{}).__resolveType??{}).enum;if(Array.isArray(L)&&typeof L[0]=="string"){b=L[0];break}}if(!b){const T=d.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(b=T[0])}b||(b=l.$ref.split("/").pop()??"");const U=b.includes("/")?void 0:S(l);!U&&!b.includes("/")||p.push({resolveType:U??b,title:E??(typeof d.title=="string"&&!d.title.startsWith("#")?d.title:V(b)),description:typeof d.description=="string"?d.description:void 0,discriminatorValue:U,schema:B(d,y+1,u.length)})}return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}if(he){const p=d=>{if(typeof d.const=="string"||typeof d.const=="number"||typeof d.const=="boolean")return d.const;if(Array.isArray(d.enum)&&d.enum.length===1&&(typeof d.enum[0]=="string"||typeof d.enum[0]=="number"||typeof d.enum[0]=="boolean"))return d.enum[0]},l=u.map((d,b)=>{const E=m(d).properties??{},U={};for(const[h,T]of Object.entries(E)){const P=p(T);P!==void 0&&(U[h]=P)}return{title:C(d,`Option ${b+1}`),schema:x(d,y+1),discriminators:Object.keys(U).length?U:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,inlineUnionBranches:l,hidden:j(i)||j(s)?!0:void 0}}$="object"}}else i.allOf?($="object",ye=fe(i.title)):typeof s.$ref=="string"&&($="object");let K,de;if(y<z){const A=q(i),u=D(A.__required);u.length>0&&(de=u);const v=Object.entries(A).filter(([_])=>!_.startsWith("__")&&_!=="@type");if(v.length>0){K={};for(const[_,H]of v)K[_]=x(H,y+1,w)}}let G;if(($==="array"||i.type==="array")&&y<z){let A=i.items;A&&(typeof A.$ref=="string"&&(A=a(A.$ref)),G=x(A,y+1,w),typeof A.title=="string"&&A.title.includes("{{")&&(G.titleBy=A.title))}const M=A=>{const u=W?.[A];return typeof u=="string"?u:void 0},We=()=>{if("default"in s)return s.default;if("default"in i)return i.default;if(W&&"default"in W)return W.default};return{type:$??"string",title:typeof s.title=="string"?s.title:!ye&&typeof i.title=="string"?i.title:M("title"),description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:M("description"),default:We(),enum:Array.isArray(i.enum)?i.enum:I??void 0,format:typeof s.format=="string"?s.format:typeof i.format=="string"?i.format:M("format"),properties:K,required:de,items:G,hidden:j(i)||j(s)?!0:void 0,titleBy:typeof i.titleBy=="string"?i.titleBy:M("titleBy"),image:typeof i.image=="string"?i.image:M("image"),options:typeof s.options=="string"?s.options:typeof i.options=="string"?i.options:M("options")}},le=f.properties??{},Ve=Object.keys(le).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&Ve){const s=le.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const g of f.allOf){const i=k(g);if(!(Array.isArray(i.anyOf)||Array.isArray(i.oneOf))||i.properties)continue;const O=x(i,0);if(O.type==="inline-union"&&O.inlineUnionBranches){const w=fe(O.title);return{...O,title:w?void 0:O.title,inlineUnionBranches:y?O.inlineUnionBranches.map(B=>({...B,discriminators:{...B.discriminators??{},__resolveType:y}})):O.inlineUnionBranches}}}}const pe=q(f),N={};for(const[s,y]of Object.entries(pe))s.startsWith("__")||s==="@type"||(N[s]=x(y,0));if(Object.keys(N).length===0)return null;const ue=D(pe.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:N,required:ue.length>0?ue:void 0}}function Dt(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:n,a=o.properties??{};if(Object.keys(a).some(S=>!S.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const m=a.__resolveType;return!!m&&Array.isArray(m.enum)&&m.enum[0]===e}function Vt(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const c={};for(const[o,a]of Object.entries(n))o.startsWith("__")||(c[o]=t(a));return{type:"object",properties:c}}default:return{type:"string"}}},r={};for(const[n,c]of Object.entries(e))n.startsWith("__")||(r[n]=t(c));return Object.keys(r).length===0?null:{type:"object",properties:r}}function ce(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=o.icon,f=o.logo,m=o,S=k=>k===!0||k==="true",C=S(m.hide)||S(m.ignore)||S(m.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof f=="string"?f:void 0,hidden:C||void 0}}const st=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Wt="website/sections/Rendering/Lazy.tsx";function Be(e){return st.some(t=>e.endsWith(t))}const Le=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Ce=new Set(Le),ct=new Set(["site/sections/Theme/Theme.tsx"]);function F(e){return!!(ct.has(e)||Be(e)||e.toLowerCase().includes("preview"))}function at(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(Ce.has(n))return n;return Le[0]}function Z(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Z(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...Z(r));return t}return[]}function ft(e){const t=e.manifest?.blocks??{},r=[];for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c)){if(F(o))continue;const a=ce(o,e);r.push({resolveType:o,title:a.title??V(o),description:a.description,previewBlock:o,isSavedBlock:!1})}return r}function Yt(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c))F(o)||r.has(o)||r.set(o,{resolveType:o,title:V(o)});return[...r.values()].sort((n,c)=>n.title.localeCompare(c.title))}function xe(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==ke)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const c of n){const o=c?.value;if(!o)continue;let a=o.__resolveType;if(typeof a=="string"&&Be(a)&&(a=o.section?.__resolveType??a),typeof a=="string"&&ne(e,a))return a}return r}function lt(e,t){return xe(e,t)!==t.__resolveType}function Ue(e,t){const r=[];for(const[n,c]of Object.entries(t)){if(n.includes("/")||Pe(n)||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a!="string"||Ce.has(a)||typeof o.path=="string"||F(a)||!(ne(e,a)||a===ke&&lt(e,o))||r.push({resolveType:n,title:n,description:typeof o.name=="string"?o.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pt(e,t){const r=Re(t.resolveType),n=r?{}:ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||V(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function qt(e,t){const r=at(e),n=ot(r,e),c=Z(n?.properties?.sections),o=new Map,a=f=>{if(!F(f.resolveType)){if(Re(f.resolveType)){Pe(f.resolveType)||o.set(f.resolveType,f);return}ne(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of ft(e))a(f);for(const f of c)a(pt(e,f));for(const f of Ue(e,t))a(f);return[...o.values()].sort((f,m)=>f.title.localeCompare(m.title))}function Ft(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const ae="website/loaders/redirect.ts",Nt=new Set([ae,"website/loaders/redirects.ts"]),Kt={temporary:307,permanent:301},Se=e=>typeof e=="string"?e:"",ut=e=>e==="permanent"?"permanent":"temporary";function Ie(e){const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:Se(t.from),to:Se(t.to),type:ut(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function yt(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const c=n;if(c.__resolveType!==ae)continue;const{from:o,to:a,type:f,discardQueryParameters:m}=Ie(c);t.push({key:r,from:o,to:a,type:f,discardQueryParameters:m})}return t}function Gt(e){return Ie(e)}function Ht(e){const t={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(t.discardQueryParameters=!0),{redirect:t,__resolveType:ae}}function dt(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const gt=1e3;function Xt(e,t){const r=dt(t);for(let n=0;n<gt;n++){const c=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,c))return c}throw new Error("Could not generate a unique redirect block key")}function mt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function zt(e,t){const{pageId:r,path:n,pathTemplate:c}=t;if(r){const o=e.find(f=>f.key===r);if(o)return o;const a=e.find(f=>f.key.endsWith(`-${r}`));if(a)return a}if(c){const o=Ee(e,c);if(o)return o}if(n){const o=Ee(e,n);if(o)return o}return null}function Ee(e,t,r){const n=He;if(r){const o=e.find(a=>a.key===r);if(o)return o}const c=e.filter(o=>n(o.path)===n(t));return c.length===0?null:c.length===1?c[0]??null:[...c].sort((o,a)=>o.key.localeCompare(a.key))[0]??null}const Me=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),Y="site",De="site/apps/site.ts";function J(e,t){return e===Y?!0:t.__resolveType===De}function Qt(e,t){return e?ht(e).length>0||yt(e).length>0?!0:t?Tt(e,t).length>0||vt(e,t)?!0:bt(e,t).length>0:!1:!1}function _t(e,t){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Me.has(r.__resolveType)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:mt(e),path:r.path}}function ht(e){const t=[];for(const[r,n]of Object.entries(e)){const c=_t(r,n);c&&t.push(c)}return t}function At(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function ee(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",c=n?ce(n,r):{};if(c.title)return c.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function vt(e,t){const r=e[Y];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,c=n.__resolveType;if(typeof c=="string"&&(J(Y,n)||we(t,c)))return{key:Y,name:ee(Y,n,t),resolveType:c}}for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c;if(!J(n,o))continue;const a=typeof o.__resolveType=="string"?o.__resolveType:De;return{key:n,name:ee(n,o,t),resolveType:a}}return null}function bt(e,t){const r=[];for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a=="string"&&(Me.has(a)||typeof o.path!="string"&&(J(n,o)||!we(t,a)&&!it(a)||r.push({key:n,name:ee(n,o,t),resolveType:a})))}return r.sort((n,c)=>n.name.localeCompare(c.name))}function Tt(e,t){return Ue(t,e).map(r=>{const n=e[r.resolveType],c=xe(t,n);return{key:r.resolveType,name:r.description??At(r.resolveType,n),resolveType:c}}).sort((r,n)=>r.name.localeCompare(n.name))}const Zt={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};export{Re as A,Pe as B,Zt as C,xt as D,ke as E,V as F,Ut as G,Mt as H,Nt as I,Ct as J,ve as K,Wt as L,be as M,It as N,Qe as O,Ze as P,Lt as Q,Kt as R,De as S,Z as T,qt as U,Dt as V,Vt as W,Ft as X,jt as Y,Gt as Z,mt as a,Be as b,kt as c,Tt as d,ht as e,Bt as f,At as g,Qt as h,J as i,Ee as j,at as k,ce as l,it as m,He as n,ee as o,_t as p,zt as q,ot as r,wt as s,yt as t,Pt as u,$t as v,Yt as w,vt as x,Xt as y,Ht as z};
1
+ import{c as Ne,U as Ke,V as Ge}from"./index-De5sr9zh.js";import{s as Ae}from"./thread-intent-rbLXiRX-.js";function Pt(e){const t=Ne.c(12);let r;t[0]!==e?(r=Ge.localPreviewUrl(e??""),t[0]=e,t[1]=r):r=t[1];const n=r,[c,o]=Ke(n,null);let a;t[2]!==c||t[3]!==e?(a=e?Ae(c):null,t[2]=c,t[3]=e,t[4]=a):a=t[4];const f=a;let m,S;t[5]!==o?(m=k=>o(Ae(k)),S=()=>o(null),t[5]=o,t[6]=m,t[7]=S):(m=t[6],S=t[7]);let C;return t[8]!==m||t[9]!==S||t[10]!==f?(C={url:f,setUrl:m,clear:S},t[8]=m,t[9]=S,t[10]=f,t[11]=C):C=t[11],C}function He(e){return e.replace(/\/+$/,"")||"/"}function kt(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ze(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function $t(e){const t=e.trim();return t?ze(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const te=/:([A-Za-z0-9_-]+)|\*/g;function jt(e){const t=[];for(const r of e.matchAll(te)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function Oe(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function wt(e){e=Oe(e);const t=[];let r=0;for(const n of e.matchAll(te))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function Bt(e,t){return Oe(e).replace(te,(r,n)=>{const c=t[n??"*"]?.trim();return c?n!==void 0?encodeURIComponent(c):c.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}function ve(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Lt(e){return e.includes("@")}function be(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Ct(e,t){if(e===t)return!0;const r=be(e);return r?t===r||be(t)===r:!1}function re(e,t){const r=e.manifest?.blocks??{};for(const[n,c]of Object.entries(r))if(t in c)return n;return null}function ne(e,t){const r=re(e,t);return r!==null&&r.includes("sections")}function Xe(e,t){const r=re(e,t);return r!==null&&r.includes("apps")}function xt(e,t){const r=re(e,t);return r!==null&&r.includes("matchers")}function Re(e){return!(!e||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Pe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Ut="oklch(0.7278 0.151 289)",Qe="website/matchers/always.ts",It="website/matchers/never.ts",Ze="website/flags/multivariate.ts",ke="website/flags/multivariate/section.ts";function Mt(){return{__resolveType:Qe}}function V(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Je=12,et=8,X=32,tt=40,rt="__SECTION_REF__";function Q(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Te(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const c=r.properties?.__resolveType?.enum;return Array.isArray(c)&&typeof c[0]=="string"}const nt="VideoWidget";function D(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function $e(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function ie(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function oe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function je(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function se(e,t){const r=t.manifest?.blocks??{};for(const f of Object.values(r))if(f[e])return f[e];const n=ie(e)??oe(e);if(n){for(const f of je(n.vendor,n.app))for(const m of Object.values(r))if(m[f])return m[f]}const c=$e(e);for(const f of Object.values(r))if(f[c])return f[c];const o=t.schema??{};return(o.$defs??o.definitions??{})[c]?{$ref:`#/definitions/${c}`}:{}}function we(e,t){if(Xe(e,t))return!0;const r=ie(t)??oe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(je(r.vendor,r.app).some(a=>a in n))return!0;const c=$e(t),o=e.schema?.$defs??e.schema?.definitions??{};return c in o}function it(e){return e==="site/apps/site.ts"?!1:ie(e)!==null||oe(e)!==null}function ot(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=r.root??{},a=s=>{if(s.startsWith("#/root/")){const i=s.slice(7);return o[i]??{}}const y=s.split("/").pop()??"",g=c[y];return g||(y===rt?o.sections??{}:{})};let f;typeof n.$ref=="string"?f=a(n.$ref):Object.keys(n).length>0?f=n:f=r;const m=s=>typeof s.$ref=="string"?a(s.$ref):s,S=s=>{const g=m(s).properties?.type;if(g){if(typeof g.const=="string")return g.const;if(typeof g.default=="string")return g.default;if(Array.isArray(g.enum)&&typeof g.enum[0]=="string")return g.enum[0]}},C=(s,y)=>{const g=m(s);return typeof g.title=="string"&&!g.title.startsWith("#")?g.title:y},k=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const g=s.$ref.split("/").pop()??"";return!g||y.has(g)?s:k(a(s.$ref),new Set([...y,g]))},j=s=>{const y=s.hide;return y===!0||y==="true"},fe=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),q=(s,y=new Set,g=0)=>{if(g>Je)return{};if(typeof s.$ref=="string"){const R=s.$ref.split("/").pop()??"";return y.has(R)?{}:q(a(s.$ref),new Set([...y,R]),g+1)}let i={};s.properties&&typeof s.properties=="object"&&(i={...i,...s.properties}),Array.isArray(s.required)&&(i.__required=[...D(i.__required),...D(s.required)]);for(const R of["allOf","anyOf","oneOf"]){const O=s[R];if(Array.isArray(O))for(const w of O){const B=D(i.__required),I=q(w,y,g+1);i={...i,...I};const $=R==="allOf"?[...B,...D(I.__required)]:B;$.length>0?i.__required=$:delete i.__required}}return i},x=(s,y=0,g=new Set)=>{let i=s,R;if(typeof s.$ref=="string"){i=a(s.$ref);const A=s.$ref.split("/").pop()??"";R=A,A===nt&&!i.format&&(i={...i,format:"video-uri"})}i=k(i);const O=R!==void 0&&g.has(R),w=R!==void 0?new Set([...g,R]):g,B=(A,u,v,_=!0)=>!O&&(!_||v<=tt)&&u<et?x(A,u,w):void 0;let I;{const A=i.anyOf??i.oneOf;if(Array.isArray(A)){const u=A.filter(_=>!(_.type==="null"||_.type===null)),v=_=>{if(typeof _.const=="string"||typeof _.const=="number")return _.const;if(Array.isArray(_.enum)&&_.enum.length===1&&(typeof _.enum[0]=="string"||typeof _.enum[0]=="number"))return _.enum[0]};u.length>0&&u.every(_=>v(_)!==void 0)&&(I=u.map(_=>v(_)))}}let $,W,ye=!1;if(i.type)$=Array.isArray(i.type)?String(i.type.find(A=>A!=="null")??i.type[0]):String(i.type);else if(i.anyOf||i.oneOf){const u=(i.anyOf??i.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(u.length===0)$="null";else if(u.length===1){const v=u[0];W=v,$=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(I){const p=l=>typeof s[l]=="string"?s[l]:typeof i[l]=="string"?i[l]:void 0;return{type:"string",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,enum:I,format:p("format"),options:p("options")}}const v=u.filter(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&typeof l[0]=="string"}),_=u.map(p=>k(p)).find(Q),H=u.filter(p=>!Q(k(p))).every(p=>typeof p.$ref=="string"||v.includes(p)),Ye=v.some(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&l[0]===Ze});if(_){if(!Te(_,a)&&u.length>1&&H){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}if(Ye){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}}if(v.length>0){const p=v.map(h=>{const P=h.properties?.__resolveType?.enum??[],L=String(P[0]);return{resolveType:L,title:typeof h.title=="string"?h.title:V(L),description:typeof h.description=="string"?h.description:void 0,schema:B(h,y+1,u.length)}}),l=[];for(const h of u){if(v.includes(h)||typeof h.$ref!="string")continue;const T=a(h.$ref);let P;const L=T.properties?.__resolveType;if(Array.isArray(L?.enum)&&typeof L.enum[0]=="string"&&(P=L.enum[0]),!P&&Array.isArray(T.allOf))for(const Fe of T.allOf){const z=Fe.properties?.__resolveType?.enum;if(Array.isArray(z)&&typeof z[0]=="string"){P=z[0];break}}P&&l.push({resolveType:P,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:V(P),description:typeof T.description=="string"?T.description:void 0,schema:B(T,y+1,u.length)})}const d=new Set(p.map(h=>h.resolveType)),b=[...p,...l.filter(h=>!d.has(h.resolveType))],E=u.filter(h=>!v.includes(h)),U=E.length===1&&!O?x(E[0],y+1,w):void 0;return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:b,plainSchema:U,hidden:j(i)||j(s)?!0:void 0}}const ge=p=>{const l=m(p);if(typeof l.title=="string"&&ve(l.title))return!0;const d=l.properties?.__resolveType?.enum;if(Array.isArray(d)&&typeof d[0]=="string")return!0;if(Array.isArray(l.allOf))for(const b of l.allOf){const E=b.properties?.__resolveType?.enum;if(Array.isArray(E)&&typeof E[0]=="string")return!0}return!1},me=u.map(p=>S(p));if(u.length>1&&me.every(p=>typeof p=="string")&&!u.some(ge)){const p=u.map((l,d)=>{const b=m(l),E=me[d];return{resolveType:E,title:C(l,E),description:typeof b.description=="string"?b.description:void 0,discriminatorValue:E,schema:B(b,y+1,u.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:void 0,discriminatorKey:"type",anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}const _e=p=>{if(ge(p))return!1;const l=m(p);return l.type==="object"||!!l.properties},qe=p=>{const l=k(p);return Q(l)?!Te(l,a):!1},he=y<X&&u.every(p=>_e(p)||qe(p))&&u.some(_e);if(u.every(p=>typeof p.$ref=="string")&&!he){const p=[];for(const l of u){const d=a(l.$ref);let b,E;if(typeof d.title=="string"){const h=ve(d.title);h&&(b=h.blockId,E=h.blockId)}if(!b&&Array.isArray(d.allOf))for(const h of d.allOf){const L=((h.properties??{}).__resolveType??{}).enum;if(Array.isArray(L)&&typeof L[0]=="string"){b=L[0];break}}if(!b){const T=d.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(b=T[0])}b||(b=l.$ref.split("/").pop()??"");const U=b.includes("/")?void 0:S(l);!U&&!b.includes("/")||p.push({resolveType:U??b,title:E??(typeof d.title=="string"&&!d.title.startsWith("#")?d.title:V(b)),description:typeof d.description=="string"?d.description:void 0,discriminatorValue:U,schema:B(d,y+1,u.length)})}return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}if(he){const p=d=>{if(typeof d.const=="string"||typeof d.const=="number"||typeof d.const=="boolean")return d.const;if(Array.isArray(d.enum)&&d.enum.length===1&&(typeof d.enum[0]=="string"||typeof d.enum[0]=="number"||typeof d.enum[0]=="boolean"))return d.enum[0]},l=u.map((d,b)=>{const E=m(d).properties??{},U={};for(const[h,T]of Object.entries(E)){const P=p(T);P!==void 0&&(U[h]=P)}return{title:C(d,`Option ${b+1}`),schema:x(d,y+1),discriminators:Object.keys(U).length?U:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,inlineUnionBranches:l,hidden:j(i)||j(s)?!0:void 0}}$="object"}}else i.allOf?($="object",ye=fe(i.title)):typeof s.$ref=="string"&&($="object");let K,de;if(y<X){const A=q(i),u=D(A.__required);u.length>0&&(de=u);const v=Object.entries(A).filter(([_])=>!_.startsWith("__")&&_!=="@type");if(v.length>0){K={};for(const[_,H]of v)K[_]=x(H,y+1,w)}}let G;if(($==="array"||i.type==="array")&&y<X){let A=i.items;A&&(typeof A.$ref=="string"&&(A=a(A.$ref)),G=x(A,y+1,w),typeof A.title=="string"&&A.title.includes("{{")&&(G.titleBy=A.title))}const M=A=>{const u=W?.[A];return typeof u=="string"?u:void 0},We=()=>{if("default"in s)return s.default;if("default"in i)return i.default;if(W&&"default"in W)return W.default};return{type:$??"string",title:typeof s.title=="string"?s.title:!ye&&typeof i.title=="string"?i.title:M("title"),description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:M("description"),default:We(),enum:Array.isArray(i.enum)?i.enum:I??void 0,format:typeof s.format=="string"?s.format:typeof i.format=="string"?i.format:M("format"),properties:K,required:de,items:G,hidden:j(i)||j(s)?!0:void 0,titleBy:typeof i.titleBy=="string"?i.titleBy:M("titleBy"),image:typeof i.image=="string"?i.image:M("image"),options:typeof s.options=="string"?s.options:typeof i.options=="string"?i.options:M("options")}},le=f.properties??{},Ve=Object.keys(le).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&Ve){const s=le.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const g of f.allOf){const i=k(g);if(!(Array.isArray(i.anyOf)||Array.isArray(i.oneOf))||i.properties)continue;const O=x(i,0);if(O.type==="inline-union"&&O.inlineUnionBranches){const w=fe(O.title);return{...O,title:w?void 0:O.title,inlineUnionBranches:y?O.inlineUnionBranches.map(B=>({...B,discriminators:{...B.discriminators??{},__resolveType:y}})):O.inlineUnionBranches}}}}const pe=q(f),N={};for(const[s,y]of Object.entries(pe))s.startsWith("__")||s==="@type"||(N[s]=x(y,0));if(Object.keys(N).length===0)return null;const ue=D(pe.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:N,required:ue.length>0?ue:void 0}}function Dt(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:n,a=o.properties??{};if(Object.keys(a).some(S=>!S.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const m=a.__resolveType;return!!m&&Array.isArray(m.enum)&&m.enum[0]===e}function Vt(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const c={};for(const[o,a]of Object.entries(n))o.startsWith("__")||(c[o]=t(a));return{type:"object",properties:c}}default:return{type:"string"}}},r={};for(const[n,c]of Object.entries(e))n.startsWith("__")||(r[n]=t(c));return Object.keys(r).length===0?null:{type:"object",properties:r}}function ce(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=o.icon,f=o.logo,m=o,S=k=>k===!0||k==="true",C=S(m.hide)||S(m.ignore)||S(m.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof f=="string"?f:void 0,hidden:C||void 0}}const st=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Wt="website/sections/Rendering/Lazy.tsx";function Be(e){return st.some(t=>e.endsWith(t))}const Le=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Ce=new Set(Le),ct=new Set(["site/sections/Theme/Theme.tsx"]);function F(e){return!!(ct.has(e)||Be(e)||e.toLowerCase().includes("preview"))}function at(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(Ce.has(n))return n;return Le[0]}function Z(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Z(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...Z(r));return t}return[]}function ft(e){const t=e.manifest?.blocks??{},r=[];for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c)){if(F(o))continue;const a=ce(o,e);r.push({resolveType:o,title:a.title??V(o),description:a.description,previewBlock:o,isSavedBlock:!1})}return r}function Yt(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c))F(o)||r.has(o)||r.set(o,{resolveType:o,title:V(o)});return[...r.values()].sort((n,c)=>n.title.localeCompare(c.title))}function xe(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==ke)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const c of n){const o=c?.value;if(!o)continue;let a=o.__resolveType;if(typeof a=="string"&&Be(a)&&(a=o.section?.__resolveType??a),typeof a=="string"&&ne(e,a))return a}return r}function lt(e,t){return xe(e,t)!==t.__resolveType}function Ue(e,t){const r=[];for(const[n,c]of Object.entries(t)){if(n.includes("/")||Pe(n)||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a!="string"||Ce.has(a)||typeof o.path=="string"||F(a)||!(ne(e,a)||a===ke&&lt(e,o))||r.push({resolveType:n,title:n,description:typeof o.name=="string"?o.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pt(e,t){const r=Re(t.resolveType),n=r?{}:ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||V(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function qt(e,t){const r=at(e),n=ot(r,e),c=Z(n?.properties?.sections),o=new Map,a=f=>{if(!F(f.resolveType)){if(Re(f.resolveType)){Pe(f.resolveType)||o.set(f.resolveType,f);return}ne(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of ft(e))a(f);for(const f of c)a(pt(e,f));for(const f of Ue(e,t))a(f);return[...o.values()].sort((f,m)=>f.title.localeCompare(m.title))}function Ft(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const ae="website/loaders/redirect.ts",Nt=new Set([ae,"website/loaders/redirects.ts"]),Kt={temporary:307,permanent:301},Se=e=>typeof e=="string"?e:"",ut=e=>e==="permanent"?"permanent":"temporary";function Ie(e){const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:Se(t.from),to:Se(t.to),type:ut(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function yt(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const c=n;if(c.__resolveType!==ae)continue;const{from:o,to:a,type:f,discardQueryParameters:m}=Ie(c);t.push({key:r,from:o,to:a,type:f,discardQueryParameters:m})}return t}function Gt(e){return Ie(e)}function Ht(e){const t={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(t.discardQueryParameters=!0),{redirect:t,__resolveType:ae}}function dt(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const gt=1e3;function zt(e,t){const r=dt(t);for(let n=0;n<gt;n++){const c=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,c))return c}throw new Error("Could not generate a unique redirect block key")}function mt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function Xt(e,t){const{pageId:r,path:n,pathTemplate:c}=t;if(r){const o=e.find(f=>f.key===r);if(o)return o;const a=e.find(f=>f.key.endsWith(`-${r}`));if(a)return a}if(c){const o=Ee(e,c);if(o)return o}if(n){const o=Ee(e,n);if(o)return o}return null}function Ee(e,t,r){const n=He;if(r){const o=e.find(a=>a.key===r);if(o)return o}const c=e.filter(o=>n(o.path)===n(t));return c.length===0?null:c.length===1?c[0]??null:[...c].sort((o,a)=>o.key.localeCompare(a.key))[0]??null}const Me=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),Y="site",De="site/apps/site.ts";function J(e,t){return e===Y?!0:t.__resolveType===De}function Qt(e,t){return e?ht(e).length>0||yt(e).length>0?!0:t?Tt(e,t).length>0||vt(e,t)?!0:bt(e,t).length>0:!1:!1}function _t(e,t){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Me.has(r.__resolveType)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:mt(e),path:r.path}}function ht(e){const t=[];for(const[r,n]of Object.entries(e)){const c=_t(r,n);c&&t.push(c)}return t}function At(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function ee(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",c=n?ce(n,r):{};if(c.title)return c.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function vt(e,t){const r=e[Y];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,c=n.__resolveType;if(typeof c=="string"&&(J(Y,n)||we(t,c)))return{key:Y,name:ee(Y,n,t),resolveType:c}}for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c;if(!J(n,o))continue;const a=typeof o.__resolveType=="string"?o.__resolveType:De;return{key:n,name:ee(n,o,t),resolveType:a}}return null}function bt(e,t){const r=[];for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a=="string"&&(Me.has(a)||typeof o.path!="string"&&(J(n,o)||!we(t,a)&&!it(a)||r.push({key:n,name:ee(n,o,t),resolveType:a})))}return r.sort((n,c)=>n.name.localeCompare(c.name))}function Tt(e,t){return Ue(t,e).map(r=>{const n=e[r.resolveType],c=xe(t,n);return{key:r.resolveType,name:r.description??At(r.resolveType,n),resolveType:c}}).sort((r,n)=>r.name.localeCompare(n.name))}const Zt={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};export{Re as A,Pe as B,Zt as C,xt as D,ke as E,V as F,Ut as G,Mt as H,Nt as I,Ct as J,ve as K,Wt as L,be as M,It as N,Qe as O,Ze as P,Lt as Q,Kt as R,De as S,Z as T,qt as U,Dt as V,Vt as W,Ft as X,jt as Y,Gt as Z,mt as a,Be as b,kt as c,Tt as d,ht as e,Bt as f,At as g,Qt as h,J as i,Ee as j,at as k,ce as l,it as m,He as n,ee as o,_t as p,Xt as q,ot as r,wt as s,yt as t,Pt as u,$t as v,Yt as w,vt as x,zt as y,Ht as z};
@@ -1 +1 @@
1
- import{c as a,a as c,r as m,j as o}from"./index-Ck4x2-t2.js";import{A as u}from"./auth-split-layout-RzXa3xC3.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
1
+ import{c as a,a as c,r as m,j as o}from"./index-De5sr9zh.js";import{A as u}from"./auth-split-layout-DLRovWby.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
@@ -1 +1 @@
1
- import{c as l,j as n}from"./index-Ck4x2-t2.js";function a(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function d(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function h(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}export{a as C,h as a,d as b};
1
+ import{c as l,j as n}from"./index-De5sr9zh.js";function a(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function d(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function h(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}export{a as C,h as a,d as b};
@@ -1 +1 @@
1
- import{r as a,bt as O,j as i,bq as g,bp as $,br as S,dl as D,bo as M,bw as L,bH as k,c as v,l as F}from"./index-Ck4x2-t2.js";var f="Collapsible",[q,J]=k(f),[B,x]=q(f),A=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:s,disabled:l,onOpenChange:c,...b}=o,[d,p]=O({prop:n,defaultProp:s??!1,onChange:c,caller:f});return i.jsx(B,{scope:t,disabled:l,contentId:$(),open:d,onOpenToggle:a.useCallback(()=>p(C=>!C),[p]),children:i.jsx(g.div,{"data-state":y(d),"data-disabled":l?"":void 0,...b,ref:e})})});A.displayName=f;var I="CollapsibleTrigger",R=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,...n}=o,s=x(I,t);return i.jsx(g.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":y(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:S(o.onClick,s.onOpenToggle)})});R.displayName=I;var h="CollapsibleContent",N=a.forwardRef((o,e)=>{const{forceMount:t,...n}=o,s=x(h,o.__scopeCollapsible);return i.jsx(D,{present:t||s.open,children:({present:l})=>i.jsx(G,{...n,ref:e,present:l})})});N.displayName=h;var G=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,present:n,children:s,...l}=o,c=x(h,t),[b,d]=a.useState(n),p=a.useRef(null),C=M(e,p),P=a.useRef(0),E=P.current,j=a.useRef(0),w=j.current,m=c.open||b,_=a.useRef(m),u=a.useRef(void 0);return a.useEffect(()=>{const r=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(r)},[]),L(()=>{const r=p.current;if(r){u.current=u.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const T=r.getBoundingClientRect();P.current=T.height,j.current=T.width,_.current||(r.style.transitionDuration=u.current.transitionDuration,r.style.animationName=u.current.animationName),d(n)}},[c.open,n]),i.jsx(g.div,{"data-state":y(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m,...l,ref:C,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...o.style},children:m&&s})});function y(o){return o?"open":"closed"}var H=A,K=R,Q=N;function U(o){const e=v.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=i.jsx(H,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=n):n=e[3],n}function V(o){const e=v.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=i.jsx(R,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=n):n=e[3],n}function W(o){const e=v.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s;e[3]!==t?(s=F("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down motion-reduce:animate-none",t),e[3]=t,e[4]=s):s=e[4];let l;return e[5]!==n||e[6]!==s?(l=i.jsx(N,{"data-slot":"collapsible-content",className:s,...n}),e[5]=n,e[6]=s,e[7]=l):l=e[7],l}export{V as C,H as R,K as T,W as a,U as b,J as c,Q as d};
1
+ import{r as a,bs as O,j as i,bp as g,bo as $,bq as S,dk as D,bn as M,bv as k,bG as L,c as v,l as F}from"./index-De5sr9zh.js";var f="Collapsible",[G,J]=L(f),[q,x]=G(f),A=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:s,disabled:l,onOpenChange:c,...b}=o,[d,p]=O({prop:n,defaultProp:s??!1,onChange:c,caller:f});return i.jsx(q,{scope:t,disabled:l,contentId:$(),open:d,onOpenToggle:a.useCallback(()=>p(C=>!C),[p]),children:i.jsx(g.div,{"data-state":y(d),"data-disabled":l?"":void 0,...b,ref:e})})});A.displayName=f;var I="CollapsibleTrigger",R=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,...n}=o,s=x(I,t);return i.jsx(g.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":y(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:S(o.onClick,s.onOpenToggle)})});R.displayName=I;var h="CollapsibleContent",N=a.forwardRef((o,e)=>{const{forceMount:t,...n}=o,s=x(h,o.__scopeCollapsible);return i.jsx(D,{present:t||s.open,children:({present:l})=>i.jsx(B,{...n,ref:e,present:l})})});N.displayName=h;var B=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,present:n,children:s,...l}=o,c=x(h,t),[b,d]=a.useState(n),p=a.useRef(null),C=M(e,p),P=a.useRef(0),E=P.current,j=a.useRef(0),_=j.current,m=c.open||b,w=a.useRef(m),u=a.useRef(void 0);return a.useEffect(()=>{const r=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(r)},[]),k(()=>{const r=p.current;if(r){u.current=u.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const T=r.getBoundingClientRect();P.current=T.height,j.current=T.width,w.current||(r.style.transitionDuration=u.current.transitionDuration,r.style.animationName=u.current.animationName),d(n)}},[c.open,n]),i.jsx(g.div,{"data-state":y(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m,...l,ref:C,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...o.style},children:m&&s})});function y(o){return o?"open":"closed"}var H=A,K=R,Q=N;function U(o){const e=v.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=i.jsx(H,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=n):n=e[3],n}function V(o){const e=v.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=i.jsx(R,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=n):n=e[3],n}function W(o){const e=v.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s;e[3]!==t?(s=F("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down motion-reduce:animate-none",t),e[3]=t,e[4]=s):s=e[4];let l;return e[5]!==n||e[6]!==s?(l=i.jsx(N,{"data-slot":"collapsible-content",className:s,...n}),e[5]=n,e[6]=s,e[7]=l):l=e[7],l}export{V as C,H as R,K as T,W as a,U as b,J as c,Q as d};
@@ -0,0 +1 @@
1
+ import{c as A,j as t,B as K,h as Z,an as Ge,ao as re,b as W,E as Ee,r as E,X as fe,d7 as Ze,d6 as Oe,am as et,n as Re,l as Y,be as tt,ak as st,u as ot,L as se,t as lt,f as he,b_ as Me}from"./index-De5sr9zh.js";import{E as Fe}from"./empty-state-BJxP56xq.js";import{u as ge}from"./use-mcp-client-CkjkRUta.js";import{F as ae,a as nt,b as ce,d as de}from"./form-CCT2OtgN.js";import{I as pe}from"./input-B-DIEGoS.js";import{T as xe}from"./textarea-CufiKBr1.js";import{D as je,O as it,M as rt}from"./index-BsLVRPrU.js";import{bh as at,a5 as ct,br as dt,O as mt,I as ut,J as pt,aM as xt,C as ye,as as ft}from"./agent-icon-CjNFk4Bw.js";import{M as ht}from"./mcp-app-renderer-DVXFXjZU.js";import{g as gt,M as we}from"./types-C1lh-7rD.js";import{a as jt,b as bt,A as Nt}from"./alert-BYraKSPm.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-BZ6sktb7.js";import{b as vt,c as Pe,T as ke,a as De}from"./tooltip-Bdu4_ay-.js";import{i as St}from"./AlertCircle-D1gV07Oe.js";import{a as yt}from"./Copy01-B2GuMU9Q.js";import{i as wt}from"./Sun-Dy_rDhHe.js";import{g as Ct}from"./connection-slug-CITJ0kGN.js";import{u as It,T as Tt}from"./use-mcp-auth-status-nDkEwx2c.js";import{a as ze,u as Be}from"./use-connection-CzhqmkxY.js";import{u as $t}from"./use-mcp-tools-DZlo67bQ.js";import{c as Pt}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-CsYMgjoT.js";import{f as kt,r as Dt}from"./chat-context-v9O7Tar9.js";import{a as At}from"./shell-layout-ynqF32RZ.js";import{M as Et}from"./monaco-editor-B9FUV1NZ.js";import{E as Ot}from"./empty-state-BgjUu2bT.js";import"./auth-Dafjkfpj.js";import"./label-Baft7ecp.js";import"./Key01-BuudAO_W.js";import"./extract-connection-data-erEsLv_0.js";import"./metadata-D72DunRR.js";import"./connection-CTAV5crm.js";import"./Plus-Ch1uJBgh.js";import"./index-gldwodyc.js";import"./index-CDe2yrwT.js";import"./index-Kwx27vNK.js";import"./popover-DCaw39mN.js";import"./use-virtual-mcp-BKP1YfD8.js";import"./Check-C-Vn17o5.js";import"./SearchMd-B_MXZ22A.js";import"./use-mobile-DVMuGaln.js";import"./use-create-virtual-mcp-DSS6KW-Y.js";import"./use-navigate-to-agent-BCcYux8q.js";import"./hooks-CcmbiBeQ.js";import"./backoff-8mStPHYB.js";import"./task-board-C6TTBmRS.js";import"./schema-DkZUkArz.js";import"./thread-intent-rbLXiRX-.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-BoO1X0ZH.js";import"./ArrowUp-COLR6KTW.js";import"./ArrowLeft-Bpb3sor7.js";import"./ArrowRight-BFyYdKNd.js";import"./ZoomOut-D3wne5dx.js";import"./Globe04-BLoVxWaz.js";import"./CheckCircle-CyKBJceB.js";import"./ChevronUp-Dto8qCq2.js";import"./UserSquare-DXqYCX9F.js";import"./CreditCard01-CoMSE38C.js";import"./DotsVertical-R1tuLE9v.js";import"./Eye-BhTmzCKr.js";import"./Share07-D6XgmppM.js";import"./XClose-Dvx_qcsQ.js";import"./Image01-D02_x5mu.js";import"./LayoutLeft-CuG2yJZR.js";import"./Link01-CVUd8ZSz.js";import"./LinkExternal01-Bo5cppL4.js";import"./Monitor01-Cj93oSbT.js";import"./Palette-CEa7GqA9.js";import"./Trash01-D4CwdSy9.js";import"./Upload01-hQyKBWZL.js";import"./User01-gmEyKvLo.js";import"./Users01-BBb4-Wbt.js";import"./X-CEngH8b7.js";import"./Zap-DkS3ccHw.js";import"./index-DVgj8U7g.js";import"./badge-4kURMy-V.js";import"./mcp-oauth-DpJ1IX9I.js";import"./use-panel-navigate-CjSWJCy4.js";import"./thread-route-B3__WRb1.js";import"./use-project-scope-CJnr8HCi.js";import"./autosend-DeYn5nkP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Da1bmf67.js";import"./use-ai-providers-DdvmCGxF.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BvKgG5Ws.js";import"./use-organization-settings-B0mobgxG.js";import"./avatar-B6HmPhM4.js";import"./download-app-dialog-fmWolHKD.js";import"./dialog-CEiE0rPQ.js";import"./command-vKgGCoFF.js";import"./project-icon-CXM68zVZ.js";import"./required-auth-layout-scRrBHKS.js";import"./use-org-sso-Bb_2_N0Z.js";import"./editor-BGAJHie_.js";function Rt(s){const e=A.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let g;e[1]!==i||e[2]!==o||e[3]!==r?(g=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=g):g=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,e[14]=p):p=e[14],p}Ge({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Mt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Ft(s){const e=A.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=w=>{const{field:b}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=w=>{const{field:b}=w;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let f;e[22]!==u?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=f):f=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=w=>{const{field:b}=w;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let S;e[30]!==n.control||e[31]!==N?(S=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(nt,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function zt(s){const e=A.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),g=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let f;e[6]!==u?(f={values:u},e[6]=u,e[7]=f):f=e[7];const p=et(f);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!r){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==$?(y=()=>{$()},e[22]=$,e[23]=y):y=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==g||e[26]!==N||e[27]!==y?(P=t.jsx(Rt,{onSave:y,onUndo:N,isDirty:p.formState.isDirty,isSaving:g}),e[24]=p.formState.isDirty,e[25]=g,e[26]=N,e[27]=y,e[28]=P):P=e[28];let w;e[29]!==r.title||e[30]!==P?(w=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=w):w=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let k;e[34]!==b||e[35]!==w?(k=t.jsxs(t.Fragment,{children:[w,b]}),e[34]=b,e[35]=w,e[36]=k):k=e[36];let D;e[37]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(Ft,{form:p})}),e[37]=p,e[38]=D):D=e[38];let O;return e[39]!==k||e[40]!==D?(O=t.jsxs(je,{children:[k,D]}),e[39]=k,e[40]=D,e[41]=O):O=e[41],O}function Bt(s){const e=A.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=A.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=Y("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=A.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=Y("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function X(s){const e=A.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=Y("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=A.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=Y("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=A.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=Y("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=A.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=Y("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=A.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=It(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(g=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=g):g=e[11],g}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,h=sessionStorage.getItem(m);if(!h)return null;sessionStorage.removeItem(m);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?m[h]=JSON.stringify(T,null,2):m[h]=T;return m})(),[d,r]=E.useState(c??{}),[x,g]=E.useState(a?JSON.stringify(a,null,2):"{}"),[u,f]=E.useState(null),[p,j]=E.useState(null),[N,S]=E.useState(null),[$,y]=E.useState(null),[P,w]=E.useState(!1),[b,k]=E.useState(null),{org:D}=fe(),O=ze(e),C=kt(),I=Dt(),{openSidePanel:R}=At(),U=`${e}:${s}`,F=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=$t({client:F}),v=_.data?.tools?.find(m=>m.name===s),M=gt(v?._meta),V=m=>{if(!C)return;const h=Pt(m.content);h.content.length>0&&(R(),C.sendMessage({tiptapDoc:h}))},[z,B]=E.useState("json"),[q,Q]=E.useState(!1);M&&!q&&(B("ui"),Q(!0));const J=v?.inputSchema?.properties,be=J?Object.keys(J):[],G=be.length>0,ee={};if(G&&v?.inputSchema?.properties)for(const m of be)ee[m]=v.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const m=performance.now();try{if(!F)throw new Error("MCP client is not available");const h=G?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();G&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[L]=="string")try{h[L]=JSON.parse(h[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[L]=="string"&&h[L]!==""){const Se=Number(h[L]);Number.isNaN(Se)||(h[L]=Se)}});const T=await F.callTool({name:s,arguments:h}),te=T.structuredContent??T,Qe=performance.now(),Xe=Math.round(Qe-m);f(te),j(T),S(h);const Ye=JSON.stringify(te),ve=new TextEncoder().encode(Ye).length;k({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const te=performance.now();k({duration:`${Math.round(te-m)}ms`})}finally{w(!1)}},ie=(m,h)=>{r(T=>({...T,[m]:h}))},Ve=()=>{f(null),j(null),S(null),y(null),k(null)},qe=v?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:Ct(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(X,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:l("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([m,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[m,v.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:T=>ie(m,T.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):h.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:T=>ie(m,T==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:T=>ie(m,T.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):v?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>g(m.target.value),placeholder:l("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Je,children:[t.jsx(wt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),M&&t.jsx(vt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(jt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(St,{className:"h-4 w-4"}),t.jsx(bt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(Nt,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:M&&z==="ui"&&F?t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(Z,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:M,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:F,onMessage:V,onUpdateModelContext:m=>I?.setAppContext(U,m),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(yt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(Z,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(Tt,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ke}),We]})})]})})}function Jt(s){const e=A.c(20),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=E.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let u;return e[15]!==r||e[16]!==l||e[17]!==o||e[18]!==n?(u=t.jsx(E.Suspense,{fallback:g,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:c,onBack:l})}),e[15]=r,e[16]=l,e[17]=o,e[18]=n,e[19]=u):u=e[19],u}const Vt={prompt:Bt};function qt(){const s=A.c(9),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=A.c(52),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,f=u?.id??"",p=f||"no-connection",j=f??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const S=ge(N),$=Oe(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async J=>{a&&await $.update.mutateAsync({id:a,data:J})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Vt[b];let D;s[14]!==i?(D=Kt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let C;s[16]!==r.slug?(C=t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(X,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let F;s[26]!==R||s[27]!==U||s[28]!==C?(F=t.jsx(Le,{children:t.jsxs(Ue,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=F):F=s[29];const _=F;if(k){let J;return s[30]!==k||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:d,onUpdate:P}),s[30]=k,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ft,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==B?(q=t.jsx(Ot,{icon:v,title:M,description:V,buttonProps:B}),s[45]=M,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=A.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Lo(){const s=A.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Lo as default};
@@ -1 +1 @@
1
- import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-Ck4x2-t2.js";import{i as I,n as L}from"./ArrowUp-Lg4NvWzc.js";import{i as F}from"./Check-BQZy9c_F.js";import{a as O,i as P,c as Y}from"./XClose-BEOYWQzz.js";import{T as G,a as H,b as K,c as W}from"./tooltip-D_t5agRT.js";import{V as q}from"./view-mode-toggle-Czn_wQOw.js";import{B as J}from"./badge-Bhd7Yjxv.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
1
+ import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-De5sr9zh.js";import{i as I,n as L}from"./ArrowUp-COLR6KTW.js";import{i as F}from"./Check-C-Vn17o5.js";import{a as O,i as P,c as Y}from"./XClose-Dvx_qcsQ.js";import{T as G,a as H,b as K,c as W}from"./tooltip-Bdu4_ay-.js";import{V as q}from"./view-mode-toggle-P-VmNhrj.js";import{B as J}from"./badge-4kURMy-V.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-Ck4x2-t2.js";import{i as C}from"./SearchMd-BpFEap-1.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=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 p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,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]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-De5sr9zh.js";import{i as C}from"./SearchMd-B_MXZ22A.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=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 p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,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]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as S,j as n,l as y,b as D}from"./index-Ck4x2-t2.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-3nkTB4Np.js";import{i as W,n as z}from"./ArrowUp-Lg4NvWzc.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
1
+ import{c as S,j as n,l as y,b as D}from"./index-De5sr9zh.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-BNlBwUw8.js";import{i as W,n as z}from"./ArrowUp-COLR6KTW.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
@@ -0,0 +1 @@
1
+ import{c as b,j as r,n as p,P as j,l as h}from"./index-De5sr9zh.js";import{B as v}from"./badge-4kURMy-V.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
@@ -1 +1 @@
1
- import{c as J,r as K,j as s,l as y,B as Q}from"./index-Ck4x2-t2.js";import{i as U}from"./Check-BQZy9c_F.js";import{i as V}from"./Tool01-B8crh1aV.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-BNNuUVzL.js";import{a as se,P as te,b as le}from"./popover-K1ZrYG78.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
1
+ import{c as J,r as K,j as s,l as y,B as Q}from"./index-De5sr9zh.js";import{i as U}from"./Check-C-Vn17o5.js";import{i as V}from"./Tool01-BoO1X0ZH.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-vKgGCoFF.js";import{a as se,P as te,b as le}from"./popover-DCaw39mN.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
@@ -0,0 +1 @@
1
+ import{c as f,l as u,j as n,aB as j}from"./index-De5sr9zh.js";import{_ as x}from"./index-Kwx27vNK.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-CEiE0rPQ.js";import{i as D}from"./SearchMd-B_MXZ22A.js";function $(a){const e=f.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 l;e[3]!==t?(l=u("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function L(a){const e=f.c(28);let t,s,l,o,g,i,d;e[0]!==a?({title:i,description:d,children:t,className:s,filter:l,shouldFilter:g,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=g,e[6]=i,e[7]=d):(t=e[1],s=e[2],l=e[3],o=e[4],g=e[5],i=e[6],d=e[7]);const p=i===void 0?"Command Palette":i,m=d===void 0?"Search for a command to run...":d;let r;e[8]!==p?(r=n.jsx(w,{children:p}),e[8]=p,e[9]=r):r=e[9];let c;e[10]!==m?(c=n.jsx(y,{children:m}),e[10]=m,e[11]=c):c=e[11];let h;e[12]!==r||e[13]!==c?(h=n.jsxs(C,{className:"sr-only",children:[r,c]}),e[12]=r,e[13]=c,e[14]=h):h=e[14];let _;e[15]!==s?(_=u("overflow-hidden p-0",s),e[15]=s,e[16]=_):_=e[16];let v;e[17]!==t||e[18]!==l||e[19]!==g?(v=n.jsx($,{filter:l,shouldFilter:g,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:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=l,e[19]=g,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(z,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function R(a){const e=f.c(18);let t,s,l,o;e[0]!==a?({className:s,size:o,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const i=(o===void 0?"default":o)==="sm"?"h-9":"h-10";let d;e[5]!==i?(d=u("flex items-center gap-2 border-b px-3",i),e[5]=i,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=p):p=e[7];let m;e[8]!==s||e[9]!==i?(m=u("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",i,s),e[8]=s,e[9]=i,e[10]=m):m=e[10];let r;e[11]!==l||e[12]!==m?(r=n.jsx(x.Input,{"data-slot":"command-input",className:m,...l}),e[11]=l,e[12]=m,e[13]=r):r=e[13];let c;return e[14]!==t||e[15]!==d||e[16]!==r?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:d,children:[p,r,t]}),e[14]=t,e[15]=d,e[16]=r,e[17]=c):c=e[17],c}function V(a){const e=f.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 l;e[3]!==t?(l=u("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(a){const e=f.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(x.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 H(a){const e=f.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 l;e[3]!==t?(l=u("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]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function P(a){const e=f.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 l;e[3]!==t?(l=u("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const I=j("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer 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",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{highlight:"selected"}});function T(a){const e=f.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 l;e[3]!==t?(l=u(I(),t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{F as C,H as a,T as b,V as c,$ as d,R as e,L as f,I as g,P as h};
@@ -1 +1 @@
1
- import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-Ck4x2-t2.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-DDIocHT6.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-v6osDnhK.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
1
+ import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-De5sr9zh.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-CkjkRUta.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CRgCDVPT.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
@@ -0,0 +1,8 @@
1
+ import{c as _,b as D,r as G,l as ee,j as s,fq as te,X as se,ac as ne,Y as ie,B as F,t as X,eK as oe,dW as le,ak as ae}from"./index-De5sr9zh.js";import{a as re,A as ce}from"./alert-BYraKSPm.js";import{a as de,b as ue,c as V,d as fe,S as pe}from"./select-BZ6sktb7.js";import{T as me,c as xe,a as ge,b as he}from"./tabs-DWl7SNDG.js";import{u as Y}from"./use-copy-D35bNj5j.js";import{i as J}from"./Check-C-Vn17o5.js";import{a as Q}from"./Copy01-B2GuMU9Q.js";import{i as ye}from"./Key01-BuudAO_W.js";import{i as Ce}from"./Link01-CVUd8ZSz.js";import{C as je,a as be,b as ve}from"./client-icons-PiLBRjl7.js";import{u as we,a as Ne,A as $e}from"./api-keys-CzlAuC7_.js";import{R as ke}from"./require-capability-Cab5QyjH.js";import"./index-DVgj8U7g.js";import"./ChevronUp-Dto8qCq2.js";import"./AlertCircle-D1gV07Oe.js";import"./Plus-Ch1uJBgh.js";import"./Trash01-D4CwdSy9.js";import"./alert-dialog-DpzgB-Ls.js";import"./dialog-CEiE0rPQ.js";import"./X-CEngH8b7.js";import"./input-B-DIEGoS.js";import"./label-Baft7ecp.js";import"./use-mcp-client-CkjkRUta.js";import"./auth-Dafjkfpj.js";import"./access-gate-D2mi3EXZ.js";import"./capability-load-error-CaE4aliY.js";function Ke(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Se(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Ke();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
2
+ --header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
3
+ `)}}return e==="oauth"?{language:"text",code:`${r}
4
+
5
+ # OAuth: clients that support MCP OAuth 2.1 will discover
6
+ # the auth flow via the WWW-Authenticate header on 401.`}:{language:"text",code:`${r}
7
+
8
+ Authorization: Bearer ${i}`}}function ze(t){const e=_.c(32),{client:r,mode:c,url:i,apiKey:a}=t,n=D();let d;e[0]!==a||e[1]!==r||e[2]!==c||e[3]!==i?(d=_e({client:r,mode:c,url:i,apiKey:a}),e[0]=a,e[1]=r,e[2]=c,e[3]=i,e[4]=d):d=e[4];const o=d,{handleCopy:u,copied:l}=Y(),f=G.useId(),p=G.useId();let m;e[5]!==u||e[6]!==o.code?(m=()=>u(o.code),e[5]=u,e[6]=o.code,e[7]=m):m=e[7];const C=`${f} ${p}`;let x;e[8]!==n?(x=n("settings.connectClients.copy"),e[8]=n,e[9]=x):x=e[9];let h;e[10]!==f||e[11]!==x?(h=s.jsx("span",{id:f,className:"sr-only",children:x}),e[10]=f,e[11]=x,e[12]=h):h=e[12];const y=o.pathHint??o.language;let j;e[13]!==y?(j=s.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] leading-none text-muted-foreground",children:y}),e[13]=y,e[14]=j):j=e[14];const K=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let S;e[15]!==K?(S=ee("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",K),e[15]=K,e[16]=S):S=e[16];let v;e[17]!==l?(v=l?s.jsx(J,{size:13}):s.jsx(Q,{size:13}),e[17]=l,e[18]=v):v=e[18];let N;e[19]!==v||e[20]!==S?(N=s.jsx("span",{"aria-hidden":"true",className:S,children:v}),e[19]=v,e[20]=S,e[21]=N):N=e[21];let b;e[22]!==p||e[23]!==o.code?(b=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:p,children:o.code})}),e[22]=p,e[23]=o.code,e[24]=b):b=e[24];let w;return e[25]!==N||e[26]!==b||e[27]!==m||e[28]!==C||e[29]!==h||e[30]!==j?(w=s.jsxs("button",{type:"button",onClick:m,"aria-labelledby":C,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[h,j,N,b]}),e[25]=N,e[26]=b,e[27]=m,e[28]=C,e[29]=h,e[30]=j,e[31]=w):w=e[31],w}const q="Connect: ",U=[{id:"claude-code",label:"Claude",Icon:je},{id:"cursor",label:"Cursor",Icon:be},{id:"codex",label:"Codex",Icon:ve},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Ce}];function Z(t){return U.find(e=>e.id===t)?.label??t}function Ae(){return typeof window>"u"?"unknown":window.location.hostname}function Ie(t){const e=_.c(11),{text:r}=t,c=D(),{handleCopy:i,copied:a}=Y();let n;e[0]!==i||e[1]!==r?(n=()=>i(r),e[0]=i,e[1]=r,e[2]=n):n=e[2];let d;e[3]!==c?(d=c("settings.connectClients.copy"),e[3]=c,e[4]=d):d=e[4];let o;e[5]!==a?(o=a?s.jsx(J,{size:14}):s.jsx(Q,{size:14}),e[5]=a,e[6]=o):o=e[6];let u;return e[7]!==n||e[8]!==d||e[9]!==o?(u=s.jsx(F,{variant:"ghost",size:"icon",className:"size-7 shrink-0",onClick:n,"aria-label":d,children:o}),e[7]=n,e[8]=d,e[9]=o,e[10]=u):u=e[10],u}function Oe(t){const e=_.c(17),{url:r}=t,c=D(),i=`${r}/.well-known/oauth-protected-resource`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ae,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=a):a=e[0];let n;e[1]!==c?(n=c("settings.connectClients.oauthDiscoveryDetails"),e[1]=c,e[2]=n):n=e[2];let d;e[3]!==n?(d=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[a,n]}),e[3]=n,e[4]=d):d=e[4];let o;e[5]!==c?(o=c("settings.connectClients.oauthMetadataHint"),e[5]=c,e[6]=o):o=e[6];let u;e[7]!==o?(u=s.jsx("p",{children:o}),e[7]=o,e[8]=u):u=e[8];let l;e[9]!==i?(l=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-[11px]",children:i}),s.jsx(Ie,{text:i})]}),e[9]=i,e[10]=l):l=e[10];let f;e[11]!==u||e[12]!==l?(f=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[u,l]}),e[11]=u,e[12]=l,e[13]=f):f=e[13];let p;return e[14]!==d||e[15]!==f?(p=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[d,f]}),e[14]=d,e[15]=f,e[16]=p):p=e[16],p}function Me(t){const e=_.c(23),{mode:r,onModeChange:c}=t,i=D();let a;e[0]!==c?(a=x=>{(x==="oauth"||x==="api-key")&&c(x)},e[0]=c,e[1]=a):a=e[1];let n;e[2]!==i?(n=i("settings.connectClients.installMethod"),e[2]=i,e[3]=n):n=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(de,{}),e[4]=d):d=e[4];let o;e[5]!==n?(o=s.jsx(ue,{size:"sm",className:"text-xs","aria-label":n,children:d}),e[5]=n,e[6]=o):o=e[6];let u;e[7]!==i?(u=i("settings.connectClients.oauthOption"),e[7]=i,e[8]=u):u=e[8];let l;e[9]!==u?(l=s.jsx(V,{value:"oauth",className:"text-xs",children:u}),e[9]=u,e[10]=l):l=e[10];let f;e[11]!==i?(f=i("settings.connectClients.apiKeyOption"),e[11]=i,e[12]=f):f=e[12];let p;e[13]!==f?(p=s.jsx(V,{value:"api-key",className:"text-xs",children:f}),e[13]=f,e[14]=p):p=e[14];let m;e[15]!==l||e[16]!==p?(m=s.jsxs(fe,{children:[l,p]}),e[15]=l,e[16]=p,e[17]=m):m=e[17];let C;return e[18]!==r||e[19]!==a||e[20]!==o||e[21]!==m?(C=s.jsxs(pe,{value:r,onValueChange:a,children:[o,m]}),e[18]=r,e[19]=a,e[20]=o,e[21]=m,e[22]=C):C=e[22],C}function Te(t){const e=_.c(26),{client:r,url:c,mode:i,newKey:a,canManageKeys:n,onGenerate:d,isGenerating:o,onClearNewKey:u}=t,l=D(),f=i==="api-key"&&a!==null,p=r==="raw";let m;e[0]!==f||e[1]!==l?(m=f&&s.jsxs(re,{variant:"warning",className:"text-xs",children:[s.jsx(ie,{}),s.jsx(ce,{children:l("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=f,e[1]=l,e[2]=m):m=e[2];const C=f&&a?a:void 0;let x;e[3]!==r||e[4]!==i||e[5]!==C||e[6]!==c?(x=s.jsx(ze,{client:r,mode:i,url:c,apiKey:C}),e[3]=r,e[4]=i,e[5]=C,e[6]=c,e[7]=x):x=e[7];let h;e[8]!==p||e[9]!==c?(h=p&&s.jsx(Oe,{url:c}),e[8]=p,e[9]=c,e[10]=h):h=e[10];let y;e[11]!==n||e[12]!==r||e[13]!==o||e[14]!==p||e[15]!==i||e[16]!==u||e[17]!==d||e[18]!==f||e[19]!==l?(y=i==="api-key"&&n&&s.jsx("div",{children:f?s.jsx(F,{variant:"ghost",size:"sm",onClick:u,className:"text-xs",children:l("settings.connectClients.doneHideKey")}):s.jsxs(F,{size:"sm",onClick:d,disabled:o,className:"gap-1.5",children:[s.jsx(ye,{size:14}),o?l("settings.connectClients.generatingKey"):p?l("settings.connectClients.generateKey"):l("settings.connectClients.generateKeyFor",{client:Z(r)})]})}),e[11]=n,e[12]=r,e[13]=o,e[14]=p,e[15]=i,e[16]=u,e[17]=d,e[18]=f,e[19]=l,e[20]=y):y=e[20];let j;return e[21]!==m||e[22]!==x||e[23]!==h||e[24]!==y?(j=s.jsxs("div",{className:"flex flex-col gap-3",children:[m,x,h,y]}),e[21]=m,e[22]=x,e[23]=h,e[24]=y,e[25]=j):j=e[25],j}function Ee(){const t=_.c(51),e=D(),{org:r}=se();let c;t[0]!==r.slug?(c=Se(r.slug),t[0]=r.slug,t[1]=c):c=t[1];const i=c,a=we(),{granted:n}=ne("api-keys:manage");let d;t[2]!==n?(d={enabled:n},t[2]=n,t[3]=d):d=t[3];const{data:o,dataUpdatedAt:u}=Ne(d),[l,f]=G.useState("oauth");let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={},t[4]=p):p=t[4];const[m,C]=G.useState(p);let x;t[5]!==u||t[6]!==m||t[7]!==o?(x=$=>{const g=m[$];return g&&(!o||u<g.at||o.some(k=>k.id===g.id))?g.key:null},t[5]=u,t[6]=m,t[7]=o,t[8]=x):x=t[8];const h=x,[y,j]=G.useState("claude-code");let K;t[9]===Symbol.for("react.memo_cache_sentinel")?(K=$=>{const g=U.find(k=>k.id===$);g&&j(g.id)},t[9]=K):K=t[9];const S=K;let v;t[10]!==a||t[11]!==e?(v=$=>{const g=`${q}${Z($)} on ${Ae()}`;a.mutate({name:g,permissions:{"*":["*"]}},{onSuccess:k=>{C(B=>({...B,[$]:{id:k.id,key:k.key,at:Date.now()}})),X.success(e("settings.connectClients.keyCreated"))},onError:He})},t[10]=a,t[11]=e,t[12]=v):v=t[12];const N=v;let b;t[13]!==e?(b=e("settings.connectClients.connectAClient"),t[13]=e,t[14]=b):b=t[14];let w;t[15]!==e?(w=U.map($=>{const{id:g,label:k,labelKey:B,Icon:W}=$;return s.jsxs(me,{value:g,variant:"underline",className:"gap-2",children:[s.jsx(W,{size:16}),B?e(B):k]},g)}),t[15]=e,t[16]=w):w=t[16];let z;t[17]!==w?(z=s.jsx(ge,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:w}),t[17]=w,t[18]=z):z=t[18];let A;t[19]!==l?(A=s.jsx(Me,{mode:l,onModeChange:f}),t[19]=l,t[20]=A):A=t[20];let I;t[21]!==z||t[22]!==A?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[z,A]}),t[21]=z,t[22]=A,t[23]=I):I=t[23];let O;t[24]!==n||t[25]!==a||t[26]!==N||t[27]!==h||t[28]!==l||t[29]!==i?(O=U.map($=>{const{id:g,label:k}=$;return s.jsx(xe,{value:g,className:"p-2",children:s.jsx(Te,{client:g,url:i,mode:l,newKey:h(g),canManageKeys:n,onGenerate:()=>N(g),isGenerating:a.isPending&&a.variables?.name?.startsWith(`${q}${k}`)===!0,onClearNewKey:()=>C(B=>{const W={...B};return delete W[g],W})})},g)}),t[24]=n,t[25]=a,t[26]=N,t[27]=h,t[28]=l,t[29]=i,t[30]=O):O=t[30];let M;t[31]!==y||t[32]!==I||t[33]!==O?(M=s.jsx(oe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(he,{value:y,onValueChange:S,variant:"underline",className:"gap-0",children:[I,O]})}),t[31]=y,t[32]=I,t[33]=O,t[34]=M):M=t[34];let T;t[35]!==l||t[36]!==e?(T=e(l==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[35]=l,t[36]=e,t[37]=T):T=t[37];let E;t[38]!==T?(E=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:T}),t[38]=T,t[39]=E):E=t[39];let H;t[40]!==y||t[41]!==e?(H=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[40]=y,t[41]=e,t[42]=H):H=t[42];let P;t[43]!==M||t[44]!==E||t[45]!==H||t[46]!==b?(P=s.jsxs(le,{headerClassName:"px-0",title:b,children:[M,E,H]}),t[43]=M,t[44]=E,t[45]=H,t[46]=b,t[47]=P):P=t[47];let L;t[48]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ke,{capability:"api-keys:manage",area:"api-keys",children:s.jsx($e,{})}),t[48]=L):L=t[48];let R;return t[49]!==P?(R=s.jsxs(s.Fragment,{children:[P,L]}),t[49]=P,t[50]=R):R=t[50],R}function He(t){return X.error(t.message)}function Pe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{group:"connect",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function ut(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Pe,{}),t[0]=e):e=t[0],e}export{ut as default};
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,a8 as w,al as k,B as y}from"./index-Ck4x2-t2.js";import{i as z}from"./X-lSFSs7wx.js";import{aB as _,at as C}from"./agent-icon-Uyip_c6M.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function B(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{A as C,B as a};
1
+ import{c as v,b as N,j as s,a7 as w,ak as k,B as y}from"./index-De5sr9zh.js";import{i as z}from"./X-CEngH8b7.js";import{aB as _,at as C}from"./agent-icon-CjNFk4Bw.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function B(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{A as C,B as a};
@@ -1 +1 @@
1
- import{ao as o,bN as a,bO as t,ap as e,bP as i,bQ as r,cW as p,dB as b,cS as m}from"./index-Ck4x2-t2.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({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:a(["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:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.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()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
1
+ import{an as o,bM as a,bN as t,ao as e,bO as i,bP as r,cV as p,dA as b,cR as m}from"./index-De5sr9zh.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({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:a(["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:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.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()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
@@ -1 +1 @@
1
- import{c as M,Y as S,a4 as $,K as F,a6 as R,b as K,l as A,j as c,eL as q}from"./index-Ck4x2-t2.js";import{u as O}from"./useInfiniteQuery-DfdWdULq.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as Y}from"./integration-icon-CXxe2Nmz.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:L}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:L,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function V(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,L=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(Y,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==L||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:L,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=L,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
1
+ import{c as M,X as S,a3 as $,K as F,a5 as K,b as R,l as A,j as c,eK as q}from"./index-De5sr9zh.js";import{u as O}from"./useInfiniteQuery-DhVx-Xnv.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-CsYMgjoT.js";function W(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:K,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=R(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,W as u};