decocms 4.294.4 → 4.295.1

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 (249) hide show
  1. package/dist/client/assets/{AlertCircle-COfoHlYo.js → AlertCircle-BVWJug5I.js} +1 -1
  2. package/dist/client/assets/{AreaChart-k1GdGLk3.js → AreaChart-3uW6yDd3.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DvfIRo1L.js → ArrowLeft-CuOJLpYp.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CukalgWz.js → ArrowUp-3VjPGHwe.js} +1 -1
  5. package/dist/client/assets/{Check-CQfGOUkn.js → Check-xum6ttaQ.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-B5B8UVD6.js → CheckCircle-DvVxqf27.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-DJW5HhkM.js → ChevronDown-DPpA8Dbp.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CdylS1le.js → ChevronRight-eURWqwf-.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-DjiLaY0h.js → ChevronSelectorVertical-BJ_tEAoM.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DOnt1lNa.js → ChevronUp-BOTFm6bq.js} +1 -1
  11. package/dist/client/assets/{Copy01-DT_VNucR.js → Copy01-DY0oXPux.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-Bi19p04V.js → CreditCard01-CWAomrlK.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-veJCsKg6.js → DotsVertical-CmWdjVkt.js} +1 -1
  14. package/dist/client/assets/{Download01-BC66vxkd.js → Download01-ZL7h20oZ.js} +1 -1
  15. package/dist/client/assets/{Eye-DhvNNTcF.js → Eye-Cxiih4tN.js} +1 -1
  16. package/dist/client/assets/{FilterLines-DCFzTCRB.js → FilterLines-DikSwaCj.js} +1 -1
  17. package/dist/client/assets/{Globe01-CnIzUI9D.js → Globe01-CkMctzyc.js} +1 -1
  18. package/dist/client/assets/{Globe04-DtNi2ZyL.js → Globe04-B-iLPaaJ.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CLNcCFxS.js → HardDrive-Tx05rxiS.js} +1 -1
  20. package/dist/client/assets/{Key01-28MkH09O.js → Key01-COjyAPgn.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BmdVn0um.js → LinkExternal01-CjCwMazO.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-xbaMcbOK.js → LockUnlocked01-oqX2g_Co.js} +1 -1
  23. package/dist/client/assets/{LogOut01-CUumDUY-.js → LogOut01-Dt_DOR7D.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DnWcZI3D.js → Monitor01-BdcGfSWn.js} +1 -1
  25. package/dist/client/assets/{Palette-BbL1PNN-.js → Palette-CwA2z-1Z.js} +1 -1
  26. package/dist/client/assets/{Play-DWeLA7lK.js → Play-BGkoV72U.js} +1 -1
  27. package/dist/client/assets/{Plus-DEP38EYY.js → Plus-CQqghpHx.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BO_-rqE7.js → SearchLg-BJbx8ng6.js} +1 -1
  29. package/dist/client/assets/{SearchMd-B7xHuJq4.js → SearchMd-Ch1B_n1t.js} +1 -1
  30. package/dist/client/assets/{Settings02-DE8fnfTk.js → Settings02-Dbk7MmVQ.js} +1 -1
  31. package/dist/client/assets/{Share07-Bk8835lK.js → Share07-D-5TVy6X.js} +1 -1
  32. package/dist/client/assets/{Shield01-BUK8VCxJ.js → Shield01-B60BPmpa.js} +1 -1
  33. package/dist/client/assets/{Stars01-C5onyQkg.js → Stars01-RU0hnDJY.js} +1 -1
  34. package/dist/client/assets/{Stars02-b1P1T_48.js → Stars02-DKadbM7f.js} +1 -1
  35. package/dist/client/assets/{Sun-B_-yVQ2_.js → Sun-Cit4FdTC.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-rtsYQduN.js → SwitchHorizontal01-BYjWAqvz.js} +1 -1
  37. package/dist/client/assets/{Tool01-BMVX3tOF.js → Tool01-DdZkcfvV.js} +1 -1
  38. package/dist/client/assets/{Tool02-WBvKkURX.js → Tool02-2iK-m_KO.js} +1 -1
  39. package/dist/client/assets/{Trash01-CiqyPob_.js → Trash01-D4Gmo3CK.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-CahTnQ2p.js → TrendUp01-5QvTgHWQ.js} +1 -1
  41. package/dist/client/assets/{Upload01-CWR5PH57.js → Upload01-TxI8Lmy1.js} +1 -1
  42. package/dist/client/assets/{User01-S_RGxi2I.js → User01-DVgIitgv.js} +1 -1
  43. package/dist/client/assets/{UserSquare-nHDcwF_u.js → UserSquare-Beayep0j.js} +1 -1
  44. package/dist/client/assets/{Users01-OC7kfFvk.js → Users01-CZYotbm_.js} +1 -1
  45. package/dist/client/assets/{Users03-CasZyOXJ.js → Users03-C3U-X-mI.js} +1 -1
  46. package/dist/client/assets/{XCircle-BrD26F_t.js → XCircle-BGJFc73T.js} +1 -1
  47. package/dist/client/assets/{XClose-DbkY8wiR.js → XClose-2vlpUf7f.js} +1 -1
  48. package/dist/client/assets/{YAxis-DrMnrLGw.js → YAxis-C6I8wCAR.js} +1 -1
  49. package/dist/client/assets/{Zap-uo4AxzhY.js → Zap-BBaRxr9a.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-BXyJZB2H.js → ZapSquare-D-EFq_dE.js} +1 -1
  51. package/dist/client/assets/{access-gate-Doy8MTWW.js → access-gate-p1U5MuOF.js} +1 -1
  52. package/dist/client/assets/{agent-icon-BK-LdAbb.js → agent-icon-DNwubGAI.js} +1 -1
  53. package/dist/client/assets/agents-list-CcFRTcF2.js +1 -0
  54. package/dist/client/assets/{ai-providers-ByfOx-iG.js → ai-providers-BO1nnCe1.js} +2 -2
  55. package/dist/client/assets/{alert-DHk1Duu5.js → alert-CAvU2YD9.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-EuQzy5n4.js → alert-dialog-0Ff1N_Jf.js} +1 -1
  57. package/dist/client/assets/{api-keys-CkO4l_xX.js → api-keys-C9vd3o7_.js} +1 -1
  58. package/dist/client/assets/app-editor-CInqFgYe.js +1 -0
  59. package/dist/client/assets/{auth-Ck-CYI0s.js → auth-B5Pc1e6R.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-Bwnt6nAM.js → auth-catchall-B4TJYG5W.js} +1 -1
  61. package/dist/client/assets/{auth-entry-xKtC3zLP.js → auth-entry-vB3qCTEe.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-BQ1bEHAM.js → auth-split-layout-CHUc3qQM.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-Bnxs7yjQ.js → authenticate-and-persist-oauth-B2nf3Lk8.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-CbU006h8.js → automation-list-row-B537ivCl.js} +1 -1
  65. package/dist/client/assets/{automation-runs-DJXgmGit.js → automation-runs-Bi878PB7.js} +1 -1
  66. package/dist/client/assets/automations-CTz3KQir.js +1 -0
  67. package/dist/client/assets/{avatar-BGhjOwGM.js → avatar-DU7Vu6NF.js} +1 -1
  68. package/dist/client/assets/{badge-Db5xIffE.js → badge-Dq1BymaB.js} +1 -1
  69. package/dist/client/assets/{block-document-BreIOxf_.js → block-document-BuFfhv2K.js} +1 -1
  70. package/dist/client/assets/{breadcrumb-yuTxiBYX.js → breadcrumb-CaPOirRc.js} +1 -1
  71. package/dist/client/assets/{buckets-DpGmU5zM.js → buckets-CEjWu-Pv.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel--UILFV7T.js → bulk-category-panel-DvW0LXsj.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-D0M3HC9t.js → capability-load-error-B8M2WPia.js} +1 -1
  74. package/dist/client/assets/{cards-DjdS8mnO.js → cards-C9JcVEfr.js} +1 -1
  75. package/dist/client/assets/category-editor-CZ-mA5vV.js +1 -0
  76. package/dist/client/assets/{chart-CsLoGKFV.js → chart-C70QnzNs.js} +1 -1
  77. package/dist/client/assets/{chat-context-BaV72O1g.js → chat-context-Dkhobhg8.js} +1 -1
  78. package/dist/client/assets/{checkbox-YMTFrO1r.js → checkbox-DKTB3o_P.js} +1 -1
  79. package/dist/client/assets/{choose-editor-BlU5Wexq.js → choose-editor-jIOruXT-.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-z65wjSmk.js → cli-auth-success-BkKPhwm8.js} +1 -1
  81. package/dist/client/assets/collection-detail-Dt-BKNEu.js +1 -0
  82. package/dist/client/assets/{collection-display-button-CUsSTflP.js → collection-display-button-CwMPC8sw.js} +1 -1
  83. package/dist/client/assets/{collection-search-CiPLUXMb.js → collection-search-CBCqztFu.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-ClqU84Kc.js → collection-table-wrapper-BORrzZy-.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-B32iAo6N.js → collection-tabs-BrljmoEr.js} +1 -1
  86. package/dist/client/assets/{command-DOfXQ3iQ.js → command-CrzPyVjB.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-BhfT16ic.js → commerce-onboarding-BkKXA_bg.js} +1 -1
  88. package/dist/client/assets/{config-sObTbFZQ.js → config-r2ebsbnu.js} +1 -1
  89. package/dist/client/assets/{connect-C5xAKAEp.js → connect-DAXsF0D1.js} +1 -1
  90. package/dist/client/assets/{connection-RGa3bMYb.js → connection-BjG6PbL-.js} +1 -1
  91. package/dist/client/assets/{connection-card-CaXPkEtx.js → connection-card-C2s3R2Pt.js} +1 -1
  92. package/dist/client/assets/connection-detail-CHGjnQZp.js +1 -0
  93. package/dist/client/assets/{connection-form-helpers-CAJu7GAu.js → connection-form-helpers-CT3f9bhy.js} +1 -1
  94. package/dist/client/assets/connection-slug-CITJ0kGN.js +1 -0
  95. package/dist/client/assets/connections--0WIi-ED.js +1 -0
  96. package/dist/client/assets/{decopilot-sse-pool-RJKXQFNl.js → decopilot-sse-pool-B1qPmScV.js} +1 -1
  97. package/dist/client/assets/{dialog-v9lm8kV3.js → dialog-CzFdWv_E.js} +1 -1
  98. package/dist/client/assets/{domain-settings-DtzQhB08.js → domain-settings-CLwxbx3n.js} +1 -1
  99. package/dist/client/assets/{drawer-DBmJy2OH.js → drawer-Dfgm8c49.js} +1 -1
  100. package/dist/client/assets/{dropdown-menu-kAhQsmIq.js → dropdown-menu-CTvkGFhl.js} +1 -1
  101. package/dist/client/assets/{empty-state-DGfgLPT9.js → empty-state-DU62aVcj.js} +1 -1
  102. package/dist/client/assets/{extract-connection-data-BPW_Djea.js → extract-connection-data-BO9kKqC1.js} +1 -1
  103. package/dist/client/assets/file-explorer-pVYfuOSH.js +2 -0
  104. package/dist/client/assets/{file-type-icon-Cp2yVzTz.js → file-type-icon-u56W7YOH.js} +1 -1
  105. package/dist/client/assets/{form-KfWVSNEC.js → form-CPEc4S5u.js} +1 -1
  106. package/dist/client/assets/{general-Cq15YFKz.js → general-cRk5kQ6G.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-BgSzUzWL.js → github-repo-picker-DZzmAPvj.js} +1 -1
  108. package/dist/client/assets/{hooks-ndMd0rOE.js → hooks-TEwkOdLN.js} +1 -1
  109. package/dist/client/assets/{index-kc-p0Tho.js → index-4YcsQ5rT.js} +3 -3
  110. package/dist/client/assets/{index-Cvq1ebr1.js → index-4w7w8tlw.js} +1 -1
  111. package/dist/client/assets/{index-BMtomEba.js → index-BuE-JEwS.js} +1 -1
  112. package/dist/client/assets/{index-BUlvC5Z0.js → index-C0kOoNCv.js} +13 -13
  113. package/dist/client/assets/index-CYZjCaiM.js +1 -0
  114. package/dist/client/assets/{index-DkH2JDxv.js → index-DR6jHEN9.js} +2 -2
  115. package/dist/client/assets/{index-BAkM-bvY.js → index-Dgb4ZYkH.js} +1 -1
  116. package/dist/client/assets/{index-Gwx_pD8S.js → index-Dtkox_-Y.js} +1 -1
  117. package/dist/client/assets/{index-BLOTG8F6.js → index-T9A9xC_R.js} +1 -1
  118. package/dist/client/assets/{index-redirect-Dtrld574.js → index-redirect-DvG0mTt7.js} +1 -1
  119. package/dist/client/assets/{infra-billing-CiXyqP0z.js → infra-billing-DHHwz9E5.js} +1 -1
  120. package/dist/client/assets/{input-CoA1YEYW.js → input-Ct0sUIqh.js} +1 -1
  121. package/dist/client/assets/{integration-icon-Db_3_1Xt.js → integration-icon-6OgCKSdV.js} +1 -1
  122. package/dist/client/assets/{invite-member-dialog--rStSant.js → invite-member-dialog-BJOV1mYd.js} +1 -1
  123. package/dist/client/assets/{label-COrU7OvG.js → label-AWSh-duW.js} +1 -1
  124. package/dist/client/assets/{layout-Dw5HsV5p.js → layout-DQV4E_IB.js} +1 -1
  125. package/dist/client/assets/{login-zSNYYLrC.js → login-f1pDs8L0.js} +1 -1
  126. package/dist/client/assets/{mcp-oauth-KDpSMvkd.js → mcp-oauth-fRqby3CY.js} +1 -1
  127. package/dist/client/assets/{members-DBUg3WK3.js → members-ENgRMxLY.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-C37CkGWQ.js → monaco-editor-D_A_sL1e.js} +1 -1
  129. package/dist/client/assets/{monitoring-stats-row-4aj-ddP2.js → monitoring-stats-row-pIIUUSft.js} +1 -1
  130. package/dist/client/assets/{multi-select-CNe6aWif.js → multi-select-BFdWTP29.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-CplvzY-h.js → oauth-callback-BKc9D-cC.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-ai-provider-xi9UFQxQ.js → oauth-callback-ai-provider-B4LO-PMl.js} +1 -1
  133. package/dist/client/assets/{onboarding-D0Phxs-H.js → onboarding-Bv_j0BEU.js} +1 -1
  134. package/dist/client/assets/{org-layout-BMiLJodT.js → org-layout-COO_Icq8.js} +1 -1
  135. package/dist/client/assets/{organization-choice-BM0bUwZh.js → organization-choice-Dqnn0nZN.js} +1 -1
  136. package/dist/client/assets/{orgs-B3KfLtXg.js → orgs-CKYqpywO.js} +1 -1
  137. package/dist/client/assets/{page-seo-form-B-kTujwr.js → page-seo-form-EQgU9mHY.js} +1 -1
  138. package/dist/client/assets/{popover-B0YbN5z6.js → popover-A0lefVmu.js} +1 -1
  139. package/dist/client/assets/post-calendar-94b_Y_D7.js +1 -0
  140. package/dist/client/assets/post-editor-DX9NBkUe.js +1 -0
  141. package/dist/client/assets/{primitives-Xx0pIitg.js → primitives-_IUW5Ba7.js} +1 -1
  142. package/dist/client/assets/{profile-DytMpCX8.js → profile-Brgdx8Ak.js} +1 -1
  143. package/dist/client/assets/project-app-view-6o-UL20K.js +1 -0
  144. package/dist/client/assets/{prompts-DGB_aYxK.js → prompts-B_fUSfOw.js} +1 -1
  145. package/dist/client/assets/record-editor-Be6xNRr5.js +1 -0
  146. package/dist/client/assets/redirect-editor-UHSACS2X.js +1 -0
  147. package/dist/client/assets/registry-B4rDoQRi.js +2 -0
  148. package/dist/client/assets/{registry-layout-BObW66Mi.js → registry-layout-BmgKZjUM.js} +1 -1
  149. package/dist/client/assets/{reports-BKQhqTCw.js → reports-DgRTFRuA.js} +1 -1
  150. package/dist/client/assets/{require-capability-B-toWf1T.js → require-capability-BN_IBqan.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-CPEZLxXW.js → required-auth-layout--21owtc0.js} +1 -1
  152. package/dist/client/assets/{reset-password-B2xsPOz7.js → reset-password-BYveWssM.js} +1 -1
  153. package/dist/client/assets/{review-settings-CQcW0UJP.js → review-settings-CRsu1Jz2.js} +1 -1
  154. package/dist/client/assets/{roles-BahMe3Yj.js → roles-txB64sI5.js} +1 -1
  155. package/dist/client/assets/{scroll-area-Dy82C7p_.js → scroll-area-uX6yPQML.js} +1 -1
  156. package/dist/client/assets/{search-input-BupwGxLP.js → search-input-BzaZGMYY.js} +1 -1
  157. package/dist/client/assets/{secrets-CMSdKJ02.js → secrets-CVb-m3ia.js} +1 -1
  158. package/dist/client/assets/{sections-editor-K0jU5DNu.js → sections-editor-Dtie35JH.js} +2 -2
  159. package/dist/client/assets/{select-model-D3_B27r5.js → select-model-Bhci4rxp.js} +1 -1
  160. package/dist/client/assets/{select-DwECBvqm.js → select-wTdyc29Q.js} +1 -1
  161. package/dist/client/assets/{self-tool-result-BWeTClq7.js → self-tool-result-DUmeGarD.js} +1 -1
  162. package/dist/client/assets/seo-editor-CqDBcwSg.js +1 -0
  163. package/dist/client/assets/session-runtime-C-KTDVeQ.js +1 -0
  164. package/dist/client/assets/{settings-layout-BdmXRuID.js → settings-layout-HQmwbtfP.js} +1 -1
  165. package/dist/client/assets/{shell-controls-Be5eyBnD.js → shell-controls-DoaRrdmS.js} +1 -1
  166. package/dist/client/assets/{shell-layout-Btlvd1G3.js → shell-layout-D0u14owK.js} +1 -1
  167. package/dist/client/assets/slugify-CEUa2lfQ.js +1 -0
  168. package/dist/client/assets/{spinner-Ba0CkhBN.js → spinner-B2GG7Xys.js} +1 -1
  169. package/dist/client/assets/{sso-zfNVjVfI.js → sso-DVZ3yceM.js} +1 -1
  170. package/dist/client/assets/{store-CgKz3-lQ.js → store-Bz9cUtoJ.js} +1 -1
  171. package/dist/client/assets/store-registry-DuQsnesn.js +2 -0
  172. package/dist/client/assets/{super-agent-icon-f5MMUEZI.js → super-agent-icon-BkJvMRAY.js} +1 -1
  173. package/dist/client/assets/{switch-CvaUzcu8.js → switch-BDugjHf1.js} +1 -1
  174. package/dist/client/assets/synced-repos-BnmVwvXY.js +1 -0
  175. package/dist/client/assets/{table-CNWQQ1ny.js → table-UizEAfeR.js} +1 -1
  176. package/dist/client/assets/{tabs---ylShNh.js → tabs-Hq5jo9A8.js} +1 -1
  177. package/dist/client/assets/{task-board-d9aI3xON.js → task-board-jDm9sccs.js} +1 -1
  178. package/dist/client/assets/{tasks-CqsZedy1.js → tasks-DL_gKqwg.js} +1 -1
  179. package/dist/client/assets/{textarea-CvXIGUrZ.js → textarea-BNbtdPGO.js} +1 -1
  180. package/dist/client/assets/{toggle-group-9H7MENld.js → toggle-group-DT3qKYLM.js} +1 -1
  181. package/dist/client/assets/{toolbar-CFGjTZKp.js → toolbar-wStg-dwL.js} +1 -1
  182. package/dist/client/assets/{track-rDKtvIJ6.js → track-BgyeiT2x.js} +1 -1
  183. package/dist/client/assets/{types-BR-rJmTQ.js → types-BnP9IxnK.js} +1 -1
  184. package/dist/client/assets/{use-ai-providers-D-DLX2r-.js → use-ai-providers-BfwKWlNT.js} +1 -1
  185. package/dist/client/assets/{use-api-keys-Ba1kau-j.js → use-api-keys-Cw0VueVn.js} +1 -1
  186. package/dist/client/assets/{use-automations-DCQErfJY.js → use-automations-CXhG4SKN.js} +1 -1
  187. package/dist/client/assets/{use-autosave-COQ2KNxK.js → use-autosave-Bi1TUTmh.js} +1 -1
  188. package/dist/client/assets/{use-connection-DN4iufew.js → use-connection-C113P3D4.js} +1 -1
  189. package/dist/client/assets/{use-copy-BrNQw893.js → use-copy-BzPCc3PP.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-mTrVU1Cr.js → use-create-virtual-mcp-pVPMgAh-.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-C96mZ7FL.js → use-debounced-autosave-XwXwMzB2.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-w4-tTzSs.js → use-debounced-value-nXb2UNEo.js} +1 -1
  193. package/dist/client/assets/{use-decopilot-events-DQphD5G3.js → use-decopilot-events-Brdzi0_P.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-B2YaAVmg.js → use-delete-connection-CQdVh6KF.js} +1 -1
  195. package/dist/client/assets/{use-deployment-admin-ChQMmdpu.js → use-deployment-admin-DHckgTZm.js} +1 -1
  196. package/dist/client/assets/{use-destination-route-DwR5EZdM.js → use-destination-route-CBTLua1E.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-BQA5pT_r.js → use-file-configs-BSJydygI.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-xFY_A5TW.js → use-infinite-scroll-B0eZAkT1.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-BVeSRkzW.js → use-join-requests-XPI7Qp7H.js} +1 -1
  200. package/dist/client/assets/{use-mcp-auth-status-g4f-5p6M.js → use-mcp-auth-status--vNhx8Ad.js} +1 -1
  201. package/dist/client/assets/{use-mcp-client-C2WpJqGp.js → use-mcp-client-Cw8yw85P.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools-D2jDyaSa.js → use-mcp-tools-BmjVf4Hf.js} +1 -1
  203. package/dist/client/assets/{use-members-D3qbSIYx.js → use-members-CEcihkaF.js} +1 -1
  204. package/dist/client/assets/{use-navigate-to-agent-BnGGkvww.js → use-navigate-to-agent-BN4ABUpI.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-6ydcGnsW.js → use-org-auth-client-BQqSTGwN.js} +1 -1
  206. package/dist/client/assets/{use-org-repo-syncs-ioAfxmUp.js → use-org-repo-syncs-CX2lVaeE.js} +1 -1
  207. package/dist/client/assets/{use-org-sso-DMKUn11x.js → use-org-sso-B2rwowB_.js} +1 -1
  208. package/dist/client/assets/{use-organization-roles-JJdzyzc2.js → use-organization-roles-CNjYTmPl.js} +1 -1
  209. package/dist/client/assets/{use-organization-settings-BqyTxtql.js → use-organization-settings-DMPoIn3U.js} +1 -1
  210. package/dist/client/assets/{use-panel-navigate-DSXuFDWh.js → use-panel-navigate-D6GXyAPi.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-owrgLOps.js → use-registry-connections-CBwgsQEm.js} +1 -1
  212. package/dist/client/assets/{use-secrets-D8LOTarp.js → use-secrets-Bziurutw.js} +1 -1
  213. package/dist/client/assets/{use-section-preview-base-BWjBzoZV.js → use-section-preview-base-Dy2Wshxq.js} +1 -1
  214. package/dist/client/assets/{use-status-sounds-BxmwD3Ts.js → use-status-sounds-BhYpuE_H.js} +1 -1
  215. package/dist/client/assets/{use-tags-CsnYBdZ3.js → use-tags-4f6KarKj.js} +1 -1
  216. package/dist/client/assets/{use-view-mode-Ce8VSwQi.js → use-view-mode-DNIV9i7m.js} +1 -1
  217. package/dist/client/assets/{use-virtual-mcp-C1lgXcOb.js → use-virtual-mcp-2VMmnGJl.js} +1 -1
  218. package/dist/client/assets/useInfiniteQuery-CO269PLd.js +1 -0
  219. package/dist/client/assets/useSuspenseInfiniteQuery-CS69VFug.js +1 -0
  220. package/dist/client/assets/{users-WlHHd84i.js → users-CrPRhb27.js} +1 -1
  221. package/dist/client/assets/variant-calendar-DkLce2QG.js +1 -0
  222. package/dist/client/assets/{view-mode-toggle-SNjppYRr.js → view-mode-toggle-3AQ3ptOl.js} +1 -1
  223. package/dist/client/index.html +1 -1
  224. package/dist/server/cli.js +468 -468
  225. package/dist/server/server.js +335 -335
  226. package/package.json +1 -1
  227. package/dist/client/assets/agents-list-BExPOUFd.js +0 -1
  228. package/dist/client/assets/app-editor-BqXRQEpA.js +0 -1
  229. package/dist/client/assets/automations-4WtbAMRr.js +0 -1
  230. package/dist/client/assets/category-editor-BVw0za2r.js +0 -1
  231. package/dist/client/assets/collection-detail-Bqyrlcae.js +0 -1
  232. package/dist/client/assets/connection-detail-j6Hg2C9_.js +0 -1
  233. package/dist/client/assets/connection-slug-eyAPH6o3.js +0 -1
  234. package/dist/client/assets/connections-BFlBx3eR.js +0 -1
  235. package/dist/client/assets/file-explorer-D9vNN4Ai.js +0 -2
  236. package/dist/client/assets/index-AYOlfrqu.js +0 -1
  237. package/dist/client/assets/post-calendar-Dtrz1ddb.js +0 -1
  238. package/dist/client/assets/post-editor-DsQuK9Oa.js +0 -1
  239. package/dist/client/assets/project-app-view-CgtJDq_r.js +0 -1
  240. package/dist/client/assets/record-editor-BKnPZeAl.js +0 -1
  241. package/dist/client/assets/redirect-editor-5tWecuOB.js +0 -1
  242. package/dist/client/assets/registry-BH-InggM.js +0 -2
  243. package/dist/client/assets/seo-editor-Bv2R8igF.js +0 -1
  244. package/dist/client/assets/session-runtime-wVXsCwcJ.js +0 -1
  245. package/dist/client/assets/store-registry-CXJ_5Ae5.js +0 -2
  246. package/dist/client/assets/synced-repos-VI3iwOU2.js +0 -1
  247. package/dist/client/assets/useInfiniteQuery-PqMaSXlJ.js +0 -1
  248. package/dist/client/assets/useSuspenseInfiniteQuery-BO55lV73.js +0 -1
  249. package/dist/client/assets/variant-calendar-BbU1vB51.js +0 -1
@@ -1 +1 @@
1
- import{u as R}from"./use-org-auth-client-6ydcGnsW.js";import{H as b,o as P,K as y}from"./index-kc-p0Tho.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
1
+ import{u as R}from"./use-org-auth-client-BQqSTGwN.js";import{H as b,o as P,K as y}from"./index-4YcsQ5rT.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
@@ -1 +1 @@
1
- import{c as o,H as y,o as T,aY as $,K as _,ac as z,p as I,e as D,r as M}from"./index-kc-p0Tho.js";import{W as G}from"./constants-dLUUoWH7.js";import{d as P,o as Q,r as C}from"./task-board-d9aI3xON.js";const O={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null,main_agent_id:null},w={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function N(t,e){return{queryKey:_.organizationSettings(e),queryFn:async()=>{try{return await $(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...O,organizationId:e}}},staleTime:6e4}}function c(t){const e=o.c(6),{org:s}=y();let n;e[0]!==s.id||e[1]!==s.slug?(n=N(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const i=t;let a;return e[3]!==n||e[4]!==i?(a={...n,select:i},e[3]=n,e[4]=i,e[5]=a):a=e[5],T(a)}function B(t,e){const s=o.c(3);let n;s[0]!==t||s[1]!==e?(n=N(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:i}=T(n);return i??null}function f(){const t=o.c(9),{org:e}=y(),s=z(),n=I();let i;t[0]!==e||t[1]!==s?(i=async u=>{const l=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...u});if(!l)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return l},t[0]=e,t[1]=s,t[2]=i):i=t[2];let a;t[3]!==e||t[4]!==n?(a=u=>{n.setQueryData(_.organizationSettings(e.id),l=>({...l??O,...u}))},t[3]=e,t[4]=n,t[5]=a):a=t[5];let r;return t[6]!==i||t[7]!==a?(r={mutationFn:i,onSuccess:a},t[6]=i,t[7]=a,t[8]=r):r=t[8],D(r)}function F(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:w}function J(){const{data:t}=c(U);return t??w}function U(t){return F(t.simple_mode)}function V(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({simple_mode:a},r),n=(a,r)=>e.mutateAsync({simple_mode:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function X(){return k("reports_only")}function k(t){const e=o.c(5);let s;e[0]!==t?(s=a=>Q(a.flags,t),e[0]=t,e[1]=s):s=e[1];const{data:n}=c(s);let i;return e[2]!==n||e[3]!==t?(i=n??P.has(t),e[2]=n,e[3]=t,e[4]=i):i=e[4],i}function tt(){const{data:t}=c(x);return t??!0}function x(t){return C(t.flags)}function et(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r,u)=>e.mutate({flags:{[a]:r}},u),n=(a,r,u)=>e.mutateAsync({flags:{[a]:r}},u),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function q(){const{data:t}=c(K);return t??null}function K(t){return t.registry_config}function nt(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({registry_config:a},r),n=(a,r)=>e.mutateAsync({registry_config:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function st(){const{data:t}=c(Y);return t??null}function Y(t){return t.default_home_agents}function H(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({default_home_agents:a},r),n=(a,r)=>e.mutateAsync({default_home_agents:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function it(){const t=o.c(14),{org:e}=y(),s=H(),n=I();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Promise.resolve(),t[0]=i):i=t[0];const a=M.useRef(i);let r;t[1]!==e.id?(r=_.organizationSettings(e.id),t[1]=e.id,t[2]=r):r=t[2];const u=r;let l;t[3]!==u||t[4]!==n?(l=()=>n.getQueryData(u)?.default_home_agents?.ids??[],t[3]=u,t[4]=n,t[5]=l):l=t[5];const p=l;let d;t[6]!==u||t[7]!==e.slug||t[8]!==n||t[9]!==s?(d=b=>{const S=a.current.then(async()=>{const E=n.getQueryData(u),A=b(E?.default_home_agents?.ids??[]);if(A!==null){n.setQueryData(u,m=>m&&{...m,default_home_agents:{ids:A}});try{await s.mutateAsync({ids:A}),await n.refetchQueries({queryKey:_.homeNextActions(e.slug),type:"active"})}catch(m){const R=m;throw n.setQueryData(u,E),R}}});return a.current=S.catch(L),S},t[6]=u,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=d):d=t[10];const h=d;let g;return t[11]!==h||t[12]!==p?(g={currentIds:p,apply:h},t[11]=h,t[12]=p,t[13]=g):g=t[13],g}function L(){}function at(){const t=o.c(3),{data:e,isPending:s}=c(W),n=e??null;let i;return t[0]!==s||t[1]!==n?(i={mainAgentId:n,isPending:s},t[0]=s,t[1]=n,t[2]=i):i=t[2],i}function W(t){return t.main_agent_id??null}function rt(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({main_agent_id:a},r),n=(a,r)=>e.mutateAsync({main_agent_id:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function ut(){const t=o.c(5),{org:e}=y(),s=q();let n;t[0]!==e.id?(n=G.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const i=n;let a;return t[2]!==i||t[3]!==s?(a=r=>{if(!s)return r===i;const u=s.registries[r];return u?u.enabled:r===i},t[2]=i,t[3]=s,t[4]=a):a=t[4],a}export{X as a,J as b,st as c,it as d,tt as e,at as f,ut as g,B as h,rt as i,V as j,q as k,et as l,nt as m,k as u};
1
+ import{c as o,H as y,o as T,aY as $,K as _,ac as z,p as I,e as D,r as M}from"./index-4YcsQ5rT.js";import{W as G}from"./constants-dLUUoWH7.js";import{d as P,o as Q,r as C}from"./task-board-jDm9sccs.js";const O={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null,main_agent_id:null},w={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function N(t,e){return{queryKey:_.organizationSettings(e),queryFn:async()=>{try{return await $(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...O,organizationId:e}}},staleTime:6e4}}function c(t){const e=o.c(6),{org:s}=y();let n;e[0]!==s.id||e[1]!==s.slug?(n=N(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const i=t;let a;return e[3]!==n||e[4]!==i?(a={...n,select:i},e[3]=n,e[4]=i,e[5]=a):a=e[5],T(a)}function B(t,e){const s=o.c(3);let n;s[0]!==t||s[1]!==e?(n=N(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:i}=T(n);return i??null}function f(){const t=o.c(9),{org:e}=y(),s=z(),n=I();let i;t[0]!==e||t[1]!==s?(i=async u=>{const l=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...u});if(!l)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return l},t[0]=e,t[1]=s,t[2]=i):i=t[2];let a;t[3]!==e||t[4]!==n?(a=u=>{n.setQueryData(_.organizationSettings(e.id),l=>({...l??O,...u}))},t[3]=e,t[4]=n,t[5]=a):a=t[5];let r;return t[6]!==i||t[7]!==a?(r={mutationFn:i,onSuccess:a},t[6]=i,t[7]=a,t[8]=r):r=t[8],D(r)}function F(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:w}function J(){const{data:t}=c(U);return t??w}function U(t){return F(t.simple_mode)}function V(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({simple_mode:a},r),n=(a,r)=>e.mutateAsync({simple_mode:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function X(){return k("reports_only")}function k(t){const e=o.c(5);let s;e[0]!==t?(s=a=>Q(a.flags,t),e[0]=t,e[1]=s):s=e[1];const{data:n}=c(s);let i;return e[2]!==n||e[3]!==t?(i=n??P.has(t),e[2]=n,e[3]=t,e[4]=i):i=e[4],i}function tt(){const{data:t}=c(x);return t??!0}function x(t){return C(t.flags)}function et(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r,u)=>e.mutate({flags:{[a]:r}},u),n=(a,r,u)=>e.mutateAsync({flags:{[a]:r}},u),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function q(){const{data:t}=c(K);return t??null}function K(t){return t.registry_config}function nt(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({registry_config:a},r),n=(a,r)=>e.mutateAsync({registry_config:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function st(){const{data:t}=c(Y);return t??null}function Y(t){return t.default_home_agents}function H(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({default_home_agents:a},r),n=(a,r)=>e.mutateAsync({default_home_agents:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function it(){const t=o.c(14),{org:e}=y(),s=H(),n=I();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Promise.resolve(),t[0]=i):i=t[0];const a=M.useRef(i);let r;t[1]!==e.id?(r=_.organizationSettings(e.id),t[1]=e.id,t[2]=r):r=t[2];const u=r;let l;t[3]!==u||t[4]!==n?(l=()=>n.getQueryData(u)?.default_home_agents?.ids??[],t[3]=u,t[4]=n,t[5]=l):l=t[5];const p=l;let d;t[6]!==u||t[7]!==e.slug||t[8]!==n||t[9]!==s?(d=b=>{const S=a.current.then(async()=>{const E=n.getQueryData(u),A=b(E?.default_home_agents?.ids??[]);if(A!==null){n.setQueryData(u,m=>m&&{...m,default_home_agents:{ids:A}});try{await s.mutateAsync({ids:A}),await n.refetchQueries({queryKey:_.homeNextActions(e.slug),type:"active"})}catch(m){const R=m;throw n.setQueryData(u,E),R}}});return a.current=S.catch(L),S},t[6]=u,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=d):d=t[10];const h=d;let g;return t[11]!==h||t[12]!==p?(g={currentIds:p,apply:h},t[11]=h,t[12]=p,t[13]=g):g=t[13],g}function L(){}function at(){const t=o.c(3),{data:e,isPending:s}=c(W),n=e??null;let i;return t[0]!==s||t[1]!==n?(i={mainAgentId:n,isPending:s},t[0]=s,t[1]=n,t[2]=i):i=t[2],i}function W(t){return t.main_agent_id??null}function rt(){const t=o.c(7),e=f();let s,n;t[0]!==e?(s=(a,r)=>e.mutate({main_agent_id:a},r),n=(a,r)=>e.mutateAsync({main_agent_id:a},r),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function ut(){const t=o.c(5),{org:e}=y(),s=q();let n;t[0]!==e.id?(n=G.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const i=n;let a;return t[2]!==i||t[3]!==s?(a=r=>{if(!s)return r===i;const u=s.registries[r];return u?u.enabled:r===i},t[2]=i,t[3]=s,t[4]=a):a=t[4],a}export{X as a,J as b,st as c,it as d,tt as e,at as f,ut as g,B as h,rt as i,V as j,q as k,et as l,nt as m,k as u};
@@ -1 +1 @@
1
- import{c as y,b as D,j as d,B as E,r as B,I as z,u as k,f as _,H as $,d as M,a4 as F,bM as L,dF as C,dG as K,dH as G,dI as J}from"./index-kc-p0Tho.js";import{b as Y,h as Q,a as W,d as X,e as q}from"./dialog-v9lm8kV3.js";import{i as Z}from"./Check-CQfGOUkn.js";import{a as ee}from"./Copy01-DT_VNucR.js";import{n as te}from"./Download01-BC66vxkd.js";import{u as O,D as b}from"./use-destination-route-DwR5EZdM.js";import{a as U}from"./constants-dLUUoWH7.js";const ne="https://github.com/decocms/studio/releases";function ae(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function Le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function oe(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function se(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function V(e){const t=y.c(12),{copiedLabel:n}=e,a=D(),[r,o]=B.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=ae(),t[0]=l):l=t[0];const s=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:s}),t[1]=c):c=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{se(navigator.clipboard,s).then(p=>{p&&(o(!0),setTimeout(()=>o(!1),2e3))})},t[2]=i):i=t[2];let u;t[3]!==r?(u=r?d.jsx(Z,{size:16}):d.jsx(ee,{size:16}),t[3]=r,t[4]=u):u=t[4];let f;t[5]!==r||t[6]!==n||t[7]!==a?(f=r?n:a("downloadApp.copyLabel"),t[5]=r,t[6]=n,t[7]=a,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=d.jsxs("div",{className:"flex flex-col gap-3",children:[c,d.jsxs(E,{type:"button",className:"w-full gap-2",onClick:i,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function le(){const e=y.c(18),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.terminalHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;return e[15]!==a||e[16]!==c?(i=d.jsxs(d.Fragment,{children:[a,c]}),e[15]=a,e[16]=c,e[17]=i):i=e[17],i}function ce(){const e=y.c(42),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;e[15]!==t?(i=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=i):i=e[16];let u;e[17]!==i?(u=d.jsx("p",{children:i}),e[17]=i,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.294.4"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(te,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let x;e[23]!==p?(x=d.jsx(E,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:d.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=x):x=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let h;e[27]!==v?(h=d.jsx("p",{children:v}),e[27]=v,e[28]=h):h=e[28];let S;e[29]!==t?(S=t("downloadApp.allReleases"),e[29]=t,e[30]=S):S=e[30];let g;e[31]!==S?(g=d.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:S}),e[31]=S,e[32]=g):g=e[32];let I;e[33]!==x||e[34]!==h||e[35]!==g||e[36]!==u?(I=d.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,x,h,g]}),e[33]=x,e[34]=h,e[35]=g,e[36]=u,e[37]=I):I=e[37];let j;return e[38]!==a||e[39]!==I||e[40]!==c?(j=d.jsxs(d.Fragment,{children:[a,c,I]}),e[38]=a,e[39]=I,e[40]=c,e[41]=j):j=e[41],j}function Re(e){const t=y.c(19),{open:n,onOpenChange:a}=e,r=D();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=oe(),t[0]=o):o=t[0];const l=o;let s;t[1]!==r?(s=r("downloadApp.title"),t[1]=r,t[2]=s):s=t[2];let c;t[3]!==s?(c=d.jsx(Y,{children:s}),t[3]=s,t[4]=c):c=t[4];let i;t[5]!==r?(i=r(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=r,t[6]=i):i=t[6];let u;t[7]!==i?(u=d.jsx(Q,{children:i}),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=d.jsxs(W,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?d.jsx(ce,{}):d.jsx(le,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=d.jsxs(X,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let x;return t[15]!==a||t[16]!==n||t[17]!==p?(x=d.jsx(q,{open:n,onOpenChange:a,children:p}),t[15]=a,t[16]=n,t[17]=p,t[18]=x):x=t[18],x}const ie=1e4,Ee="true",P=2;function N(e,t){return z.chatAutosend(e,t)}function de(e){return e==="pending"||e==="sending"}function ue(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:P:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!de(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>P?null:{...t,attempt:r}}function $e(e,t,n,a,r=Date.now()){const o={message:a,createdAt:r,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(o)),o}function fe(e,t,n){const a=N(t,n),r=ue(e.getItem(a));return r||(e.removeItem(a),null)}function Me(e,t,n,a=Date.now()){const r=N(t,n),o=fe(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=P)return e.removeItem(r),null;const l=o.retryAt??o.createdAt;if(a-l>=ie)return e.removeItem(r),null;const s={...o,status:"sending",attempt:o.attempt+1};return e.setItem(r,JSON.stringify(s)),{message:s.message,createdAt:s.createdAt,attempt:s.attempt}}function Ce(e,t,n){e.removeItem(N(t,n))}const pe="/shell/$org/org-shell/agent-shell";function me(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function he(e){return e.taskIdParam??e.threadSearch??null}function Oe(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;return e[2]!==n.taskId||e[3]!==r.thread?(o=he({taskIdParam:n.taskId,threadSearch:r.thread}),e[2]=n.taskId,e[3]=r.thread,e[4]=o):o=e[4],o}function ge(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function H(){const e=y.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]!==n.panel||e[2]!==n.project?(a=L({project:n.project,panel:n.panel}),e[1]=n.panel,e[2]=n.project,e[3]=a):a=e[3],a}function xe(){return H().project}function je(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],_(t).taskId!==void 0}function Ie(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),a=xe(),r=je();let o;return e[1]!==r||e[2]!==a||e[3]!==n.virtualmcpid?(o=ge({projectParam:a,virtualMcpIdSearch:n.virtualmcpid,legacyRoute:r}),e[1]=r,e[2]=a,e[3]=n.virtualmcpid,e[4]=o):o=e[4],o}function Ue(){const e=y.c(3),{org:t}=$(),n=Ie();let a;return e[0]!==t||e[1]!==n?(a=n??U(t.id).id,e[0]=t,e[1]=n,e[2]=a):a=e[2],a}function Se(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function Ve(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ve(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function ye(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a={from:pe,shouldThrow:!1},e[1]=a):a=e[1],!!F(a)&&n.taskId===void 0}function He(){const e=y.c(12),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n),r=ye(),{org:o}=$(),l=a.org??"",{project:s,panel:c}=H(),i=s!==void 0,u=O()===b.agents;let f;e[1]!==o.id?(f=U(o.id),e[1]=o.id,e[2]=f):f=e[2];const m=f.id;let p;return e[3]!==c||e[4]!==s||e[5]!==m||e[6]!==t||e[7]!==u||e[8]!==l||e[9]!==i||e[10]!==r?(p=(x,v,h)=>{const S=me({threadInSearch:r,orgSlug:l,threadId:x}),g=h?.replace??!1;if(S.to==="/$org/$taskId")return t({to:S.to,params:S.params,search:v,replace:g});const I=ve({currentProject:s,targetVirtualMcpId:h?.virtualMcpId,decopilotId:m}),j=h?.view&&h.view.tabId!==void 0?C(h.view.tabId):h?.view?{panel:void 0,payload:K()}:null,T=I.kind==="relocate"&&!u,w=A=>Se({prev:T?{sidepanel:A.sidepanel}:A,changes:{...v(A),...j?.payload??{}},threadId:x});return I.kind==="relocate"?t({to:b.agents,params:{org:l,project:I.project,panel:j?j.panel:c},search:w,replace:g}):t({to:".",params:A=>{const R=i?{...A,project:I.project}:A;return j?{...R,panel:j.panel}:R},search:w,replace:g})},e[3]=c,e[4]=s,e[5]=m,e[6]=t,e[7]=u,e[8]=l,e[9]=i,e[10]=r,e[11]=p):p=e[11],p}const Ae={board:b.tasks,files:b.library,reports:b.reports,overview:b.home};function Be(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;if(e[2]!==n.panel||e[3]!==n.project||e[4]!==r){const{panel:l}=L({project:n.project,panel:n.panel});o=G(l,r),e[2]=n.panel,e[3]=n.project,e[4]=r,e[5]=o}else o=e[5];return o}function ze(){const e=y.c(17),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n);let r;e[1]!==a.panel||e[2]!==a.project?(r=L({project:a.project,panel:a.panel}),e[1]=a.panel,e[2]=a.project,e[3]=r):r=e[3];const{project:o}=r,l=a.org??"",s=O()===b.agents,c=a.taskId;let i;e[4]!==c?(i=(h,S,g)=>I=>{const j=S?{...I}:{thread:I.thread,sidepanel:I.sidepanel};return c&&(j.thread=c),{...g?.search?g.search(j):j,...h,mainpanel:void 0}},e[4]=c,e[5]=i):i=e[5];const u=i;let f;e[6]!==o||e[7]!==t||e[8]!==u||e[9]!==s||e[10]!==l?(f=(h,S)=>{const{panel:g,payload:I}=C(h),j=S?.replace??!0,T=!!g&&J(g),w=u(I,s&&!T,S);if(g&&T){const A=Ae[g];if(A===b.tasks){t({to:A,params:{org:l,taskKey:void 0},search:w,replace:j});return}t({to:A,params:{org:l},search:w,replace:j});return}t({to:b.agents,params:{org:l,project:S?.project??o,panel:g},search:w,replace:j})},e[6]=o,e[7]=t,e[8]=u,e[9]=s,e[10]=l,e[11]=f):f=e[11];const m=f;let p;e[12]!==t?(p=h=>t({to:".",search:be,replace:h?.replace??!0}),e[12]=t,e[13]=p):p=e[13];const x=p;let v;return e[14]!==x||e[15]!==m?(v={openPanel:m,closePanel:x},e[14]=x,e[15]=m,e[16]=v):v=e[16],v}function be(e){return{...e,mainpanel:!1}}export{Ee as A,Re as D,oe as a,Oe as b,ze as c,He as d,Be as e,Ie as f,Ue as g,Me as h,Le as i,Ce as j,Ve as r,xe as u,$e as w};
1
+ import{c as y,b as D,j as d,B as E,r as B,I as z,u as k,f as _,H as $,d as M,a4 as F,bM as L,dF as C,dG as K,dH as G,dI as J}from"./index-4YcsQ5rT.js";import{b as Y,h as Q,a as W,d as X,e as q}from"./dialog-CzFdWv_E.js";import{i as Z}from"./Check-xum6ttaQ.js";import{a as ee}from"./Copy01-DY0oXPux.js";import{n as te}from"./Download01-ZL7h20oZ.js";import{u as O,D as b}from"./use-destination-route-CBTLua1E.js";import{a as U}from"./constants-dLUUoWH7.js";const ne="https://github.com/decocms/studio/releases";function ae(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function Le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function oe(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function se(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function V(e){const t=y.c(12),{copiedLabel:n}=e,a=D(),[r,o]=B.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=ae(),t[0]=l):l=t[0];const s=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:s}),t[1]=c):c=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{se(navigator.clipboard,s).then(p=>{p&&(o(!0),setTimeout(()=>o(!1),2e3))})},t[2]=i):i=t[2];let u;t[3]!==r?(u=r?d.jsx(Z,{size:16}):d.jsx(ee,{size:16}),t[3]=r,t[4]=u):u=t[4];let f;t[5]!==r||t[6]!==n||t[7]!==a?(f=r?n:a("downloadApp.copyLabel"),t[5]=r,t[6]=n,t[7]=a,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=d.jsxs("div",{className:"flex flex-col gap-3",children:[c,d.jsxs(E,{type:"button",className:"w-full gap-2",onClick:i,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function le(){const e=y.c(18),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.terminalHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;return e[15]!==a||e[16]!==c?(i=d.jsxs(d.Fragment,{children:[a,c]}),e[15]=a,e[16]=c,e[17]=i):i=e[17],i}function ce(){const e=y.c(42),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;e[15]!==t?(i=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=i):i=e[16];let u;e[17]!==i?(u=d.jsx("p",{children:i}),e[17]=i,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.295.1"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(te,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let x;e[23]!==p?(x=d.jsx(E,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:d.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=x):x=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let h;e[27]!==v?(h=d.jsx("p",{children:v}),e[27]=v,e[28]=h):h=e[28];let S;e[29]!==t?(S=t("downloadApp.allReleases"),e[29]=t,e[30]=S):S=e[30];let g;e[31]!==S?(g=d.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:S}),e[31]=S,e[32]=g):g=e[32];let I;e[33]!==x||e[34]!==h||e[35]!==g||e[36]!==u?(I=d.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,x,h,g]}),e[33]=x,e[34]=h,e[35]=g,e[36]=u,e[37]=I):I=e[37];let j;return e[38]!==a||e[39]!==I||e[40]!==c?(j=d.jsxs(d.Fragment,{children:[a,c,I]}),e[38]=a,e[39]=I,e[40]=c,e[41]=j):j=e[41],j}function Re(e){const t=y.c(19),{open:n,onOpenChange:a}=e,r=D();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=oe(),t[0]=o):o=t[0];const l=o;let s;t[1]!==r?(s=r("downloadApp.title"),t[1]=r,t[2]=s):s=t[2];let c;t[3]!==s?(c=d.jsx(Y,{children:s}),t[3]=s,t[4]=c):c=t[4];let i;t[5]!==r?(i=r(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=r,t[6]=i):i=t[6];let u;t[7]!==i?(u=d.jsx(Q,{children:i}),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=d.jsxs(W,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?d.jsx(ce,{}):d.jsx(le,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=d.jsxs(X,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let x;return t[15]!==a||t[16]!==n||t[17]!==p?(x=d.jsx(q,{open:n,onOpenChange:a,children:p}),t[15]=a,t[16]=n,t[17]=p,t[18]=x):x=t[18],x}const ie=1e4,Ee="true",P=2;function N(e,t){return z.chatAutosend(e,t)}function de(e){return e==="pending"||e==="sending"}function ue(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:P:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!de(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>P?null:{...t,attempt:r}}function $e(e,t,n,a,r=Date.now()){const o={message:a,createdAt:r,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(o)),o}function fe(e,t,n){const a=N(t,n),r=ue(e.getItem(a));return r||(e.removeItem(a),null)}function Me(e,t,n,a=Date.now()){const r=N(t,n),o=fe(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=P)return e.removeItem(r),null;const l=o.retryAt??o.createdAt;if(a-l>=ie)return e.removeItem(r),null;const s={...o,status:"sending",attempt:o.attempt+1};return e.setItem(r,JSON.stringify(s)),{message:s.message,createdAt:s.createdAt,attempt:s.attempt}}function Ce(e,t,n){e.removeItem(N(t,n))}const pe="/shell/$org/org-shell/agent-shell";function me(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function he(e){return e.taskIdParam??e.threadSearch??null}function Oe(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;return e[2]!==n.taskId||e[3]!==r.thread?(o=he({taskIdParam:n.taskId,threadSearch:r.thread}),e[2]=n.taskId,e[3]=r.thread,e[4]=o):o=e[4],o}function ge(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function H(){const e=y.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]!==n.panel||e[2]!==n.project?(a=L({project:n.project,panel:n.panel}),e[1]=n.panel,e[2]=n.project,e[3]=a):a=e[3],a}function xe(){return H().project}function je(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],_(t).taskId!==void 0}function Ie(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),a=xe(),r=je();let o;return e[1]!==r||e[2]!==a||e[3]!==n.virtualmcpid?(o=ge({projectParam:a,virtualMcpIdSearch:n.virtualmcpid,legacyRoute:r}),e[1]=r,e[2]=a,e[3]=n.virtualmcpid,e[4]=o):o=e[4],o}function Ue(){const e=y.c(3),{org:t}=$(),n=Ie();let a;return e[0]!==t||e[1]!==n?(a=n??U(t.id).id,e[0]=t,e[1]=n,e[2]=a):a=e[2],a}function Se(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function Ve(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ve(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function ye(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a={from:pe,shouldThrow:!1},e[1]=a):a=e[1],!!F(a)&&n.taskId===void 0}function He(){const e=y.c(12),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n),r=ye(),{org:o}=$(),l=a.org??"",{project:s,panel:c}=H(),i=s!==void 0,u=O()===b.agents;let f;e[1]!==o.id?(f=U(o.id),e[1]=o.id,e[2]=f):f=e[2];const m=f.id;let p;return e[3]!==c||e[4]!==s||e[5]!==m||e[6]!==t||e[7]!==u||e[8]!==l||e[9]!==i||e[10]!==r?(p=(x,v,h)=>{const S=me({threadInSearch:r,orgSlug:l,threadId:x}),g=h?.replace??!1;if(S.to==="/$org/$taskId")return t({to:S.to,params:S.params,search:v,replace:g});const I=ve({currentProject:s,targetVirtualMcpId:h?.virtualMcpId,decopilotId:m}),j=h?.view&&h.view.tabId!==void 0?C(h.view.tabId):h?.view?{panel:void 0,payload:K()}:null,T=I.kind==="relocate"&&!u,w=A=>Se({prev:T?{sidepanel:A.sidepanel}:A,changes:{...v(A),...j?.payload??{}},threadId:x});return I.kind==="relocate"?t({to:b.agents,params:{org:l,project:I.project,panel:j?j.panel:c},search:w,replace:g}):t({to:".",params:A=>{const R=i?{...A,project:I.project}:A;return j?{...R,panel:j.panel}:R},search:w,replace:g})},e[3]=c,e[4]=s,e[5]=m,e[6]=t,e[7]=u,e[8]=l,e[9]=i,e[10]=r,e[11]=p):p=e[11],p}const Ae={board:b.tasks,files:b.library,reports:b.reports,overview:b.home};function Be(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;if(e[2]!==n.panel||e[3]!==n.project||e[4]!==r){const{panel:l}=L({project:n.project,panel:n.panel});o=G(l,r),e[2]=n.panel,e[3]=n.project,e[4]=r,e[5]=o}else o=e[5];return o}function ze(){const e=y.c(17),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n);let r;e[1]!==a.panel||e[2]!==a.project?(r=L({project:a.project,panel:a.panel}),e[1]=a.panel,e[2]=a.project,e[3]=r):r=e[3];const{project:o}=r,l=a.org??"",s=O()===b.agents,c=a.taskId;let i;e[4]!==c?(i=(h,S,g)=>I=>{const j=S?{...I}:{thread:I.thread,sidepanel:I.sidepanel};return c&&(j.thread=c),{...g?.search?g.search(j):j,...h,mainpanel:void 0}},e[4]=c,e[5]=i):i=e[5];const u=i;let f;e[6]!==o||e[7]!==t||e[8]!==u||e[9]!==s||e[10]!==l?(f=(h,S)=>{const{panel:g,payload:I}=C(h),j=S?.replace??!0,T=!!g&&J(g),w=u(I,s&&!T,S);if(g&&T){const A=Ae[g];if(A===b.tasks){t({to:A,params:{org:l,taskKey:void 0},search:w,replace:j});return}t({to:A,params:{org:l},search:w,replace:j});return}t({to:b.agents,params:{org:l,project:S?.project??o,panel:g},search:w,replace:j})},e[6]=o,e[7]=t,e[8]=u,e[9]=s,e[10]=l,e[11]=f):f=e[11];const m=f;let p;e[12]!==t?(p=h=>t({to:".",search:be,replace:h?.replace??!0}),e[12]=t,e[13]=p):p=e[13];const x=p;let v;return e[14]!==x||e[15]!==m?(v={openPanel:m,closePanel:x},e[14]=x,e[15]=m,e[16]=v):v=e[16],v}function be(e){return{...e,mainpanel:!1}}export{Ee as A,Re as D,oe as a,Oe as b,ze as c,He as d,Be as e,Ie as f,Ue as g,Me as h,Le as i,Ce as j,Ve as r,xe as u,$e as w};
@@ -1 +1 @@
1
- import{c as C,H as R}from"./index-kc-p0Tho.js";import{u as p}from"./use-connection-DN4iufew.js";import{W as a}from"./constants-dLUUoWH7.js";import{k as y}from"./use-organization-settings-BqyTxtql.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
1
+ import{c as C,H as R}from"./index-4YcsQ5rT.js";import{u as p}from"./use-connection-C113P3D4.js";import{W as a}from"./constants-dLUUoWH7.js";import{k as y}from"./use-organization-settings-DMPoIn3U.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
@@ -1 +1 @@
1
- import{c as o,H as u,ac as r,K as l,z as d,p as f,e as S}from"./index-kc-p0Tho.js";function C(){const e=o.c(7),{org:a}=u(),c=r();let i;e[0]!==a.id?(i=l.secrets(a.id),e[0]=a.id,e[1]=i):i=e[1];let t;e[2]!==c?(t=async()=>await c.call("SECRET_LIST",{}),e[2]=c,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=o.c(8),{org:a}=u(),c=r(),i=f();let t;e[0]!==c?(t=async y=>await c.call("SECRET_CREATE",{...y}),e[0]=c,e[1]=t):t=e[1];let s;e[2]!==a||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(a.id)})},e[2]=a,e[3]=i,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
1
+ import{c as o,H as u,ac as r,K as l,z as d,p as f,e as S}from"./index-4YcsQ5rT.js";function C(){const e=o.c(7),{org:a}=u(),c=r();let i;e[0]!==a.id?(i=l.secrets(a.id),e[0]=a.id,e[1]=i):i=e[1];let t;e[2]!==c?(t=async()=>await c.call("SECRET_LIST",{}),e[2]=c,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=o.c(8),{org:a}=u(),c=r(),i=f();let t;e[0]!==c?(t=async y=>await c.call("SECRET_CREATE",{...y}),e[0]=c,e[1]=t):t=e[1];let s;e[2]!==a||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(a.id)})},e[2]=a,e[3]=i,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
@@ -1 +1 @@
1
- import{c as D,b as J,r as w,j as s,n as K}from"./index-kc-p0Tho.js";import{ag as q}from"./agent-icon-BK-LdAbb.js";import{i as Y}from"./SearchMd-B7xHuJq4.js";import{e as Z,d as ee,b as te,a as se}from"./dialog-v9lm8kV3.js";import{I as re}from"./input-CoA1YEYW.js";import{L as le,M as oe,N as ie,O as Q,P as ne,Q as ce,R as ae}from"./index-BUlvC5Z0.js";const fe=12,z=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return z.has(r)?!0:z.size>=fe?!1:(z.add(r),!0)}function X(r){z.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(X(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=D.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=D.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=K("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=D.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=J(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,P;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&_)for(const p of W)H.set(p.resolveType,Q(f,_,p.previewBlock,G));const E=a.trim().toLowerCase(),V=E?W.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):W;h=Z,C=t,P=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let M;e[27]!==a||e[28]!==B?(M=s.jsxs("div",{className:"relative pt-2",children:[k,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=M):M=e[29],e[30]!==A||e[31]!==M?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,M]}),e[30]=A,e[31]=M,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??Q(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=P}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],P=e[18];let T;e[33]!==S||e[34]!==b?(T=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==P?(O=s.jsx(h,{open:C,onOpenChange:P,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=P,e[50]=O):O=e[50],O}function Re(r){const e=D.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
1
+ import{c as D,b as J,r as w,j as s,n as K}from"./index-4YcsQ5rT.js";import{ag as q}from"./agent-icon-DNwubGAI.js";import{i as Y}from"./SearchMd-Ch1B_n1t.js";import{e as Z,d as ee,b as te,a as se}from"./dialog-CzFdWv_E.js";import{I as re}from"./input-Ct0sUIqh.js";import{L as le,M as oe,N as ie,O as Q,P as ne,Q as ce,R as ae}from"./index-C0kOoNCv.js";const fe=12,z=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return z.has(r)?!0:z.size>=fe?!1:(z.add(r),!0)}function X(r){z.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(X(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=D.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=D.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=K("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=D.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=J(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,P;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&_)for(const p of W)H.set(p.resolveType,Q(f,_,p.previewBlock,G));const E=a.trim().toLowerCase(),V=E?W.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):W;h=Z,C=t,P=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let M;e[27]!==a||e[28]!==B?(M=s.jsxs("div",{className:"relative pt-2",children:[k,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=M):M=e[29],e[30]!==A||e[31]!==M?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,M]}),e[30]=A,e[31]=M,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??Q(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=P}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],P=e[18];let T;e[33]!==S||e[34]!==b?(T=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==P?(O=s.jsx(h,{open:C,onOpenChange:P,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=P,e[50]=O):O=e[50],O}function Re(r){const e=D.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
@@ -1 +1 @@
1
- import{c as r,x as u}from"./index-kc-p0Tho.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-DQphD5G3.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{c as r,x as u}from"./index-4YcsQ5rT.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-Brdzi0_P.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{c as u,H as f,ac as y,o as m,p as g,e as T,K as l,t as E}from"./index-kc-p0Tho.js";function F(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function K(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{K as a,C as b,M as c,A as d,F as u};
1
+ import{c as u,H as f,ac as y,o as m,p as g,e as T,K as l,t as E}from"./index-4YcsQ5rT.js";function F(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function K(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{K as a,C as b,M as c,A as d,F as u};
@@ -1 +1 @@
1
- import{c as p,a5 as w,r as f}from"./index-kc-p0Tho.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
1
+ import{c as p,a5 as w,r as f}from"./index-4YcsQ5rT.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
@@ -1 +1 @@
1
- import{c as d,H as a,fe as P,cc as p,K as L,cb as S,o as V}from"./index-kc-p0Tho.js";import{u as g}from"./use-mcp-client-C2WpJqGp.js";import{S as f}from"./constants-dLUUoWH7.js";function y(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:f,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=g(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);return S(e.id,"VIRTUAL_MCP",s??void 0,i)}function R(s){const t=d.c(15),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);let o,l,u;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),u=V,l=L.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=u):(o=t[5],l=t[6],u=t[7]);const C=o.length>0;let c;t[8]!==i||t[9]!==o?(c=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=c):c=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==c?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:c},t[11]=l,t[12]=C,t[13]=c,t[14]=r):r=t[14],u(r)}function E(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:f,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=g(e);return p(t.id,"VIRTUAL_MCP",n)}export{b as a,E as b,R as c,y as u};
1
+ import{c as d,H as a,fe as P,cc as p,K as L,cb as S,o as V}from"./index-4YcsQ5rT.js";import{u as g}from"./use-mcp-client-Cw8yw85P.js";import{S as f}from"./constants-dLUUoWH7.js";function y(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:f,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=g(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);return S(e.id,"VIRTUAL_MCP",s??void 0,i)}function R(s){const t=d.c(15),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);let o,l,u;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),u=V,l=L.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=u):(o=t[5],l=t[6],u=t[7]);const C=o.length>0;let c;t[8]!==i||t[9]!==o?(c=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=c):c=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==c?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:c},t[11]=l,t[12]=C,t[13]=c,t[14]=r):r=t[14],u(r)}function E(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:f,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=g(e);return p(t.id,"VIRTUAL_MCP",n)}export{b as a,E as b,R as c,y as u};
@@ -0,0 +1 @@
1
+ import{I as i}from"./use-infinite-scroll-B0eZAkT1.js";import{fi as u}from"./index-4YcsQ5rT.js";function t(e,r){return u(e,i,r)}export{t as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./use-infinite-scroll-B0eZAkT1.js";import{fi as u,b$ as n}from"./index-4YcsQ5rT.js";function i(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{i as u};
@@ -1 +1 @@
1
- import{c as V,b as q,r as z,a as O,o as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-kc-p0Tho.js";import{C as G}from"./collection-table-wrapper-ClqU84Kc.js";import{E as L}from"./empty-state-DGfgLPT9.js";import{S as H}from"./search-input-BupwGxLP.js";import{A as X}from"./avatar-BGhjOwGM.js";import{B as D}from"./badge-Db5xIffE.js";import{u as Z}from"./use-debounced-value-w4-tTzSs.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-CNWQQ1ny.js";import"./ArrowUp-CukalgWz.js";import"./SearchMd-B7xHuJq4.js";import"./User01-S_RGxi2I.js";import"./differenceInSeconds-NQ4PDo0z.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
1
+ import{c as V,b as q,r as z,a as O,o as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-4YcsQ5rT.js";import{C as G}from"./collection-table-wrapper-BORrzZy-.js";import{E as L}from"./empty-state-DU62aVcj.js";import{S as H}from"./search-input-BzaZGMYY.js";import{A as X}from"./avatar-DU7Vu6NF.js";import{B as D}from"./badge-Dq1BymaB.js";import{u as Z}from"./use-debounced-value-nXb2UNEo.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-UizEAfeR.js";import"./ArrowUp-3VjPGHwe.js";import"./SearchMd-Ch1B_n1t.js";import"./User01-DVgIitgv.js";import"./differenceInSeconds-NQ4PDo0z.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
@@ -0,0 +1 @@
1
+ import{c as K,b as X,r as Z,j as o,n as rt,a8 as ut,ab as ht,B as tt,a9 as xt}from"./index-4YcsQ5rT.js";import{r as gt,a6 as at,aF as bt}from"./agent-icon-DNwubGAI.js";import{i as vt}from"./ChevronRight-eURWqwf-.js";import{L as yt}from"./label-AWSh-duW.js";import{S as lt}from"./scroll-area-uX6yPQML.js";import{S as jt}from"./switch-BDugjHf1.js";import{V as Tt}from"./view-mode-toggle-3AQ3ptOl.js";import{bP as ct,bQ as mt,bR as Nt,bS as _t,bT as kt,bU as U,bV as wt}from"./index-C0kOoNCv.js";import"./AlertCircle-BVWJug5I.js";import"./UserSquare-Beayep0j.js";import"./Tool01-DdZkcfvV.js";import"./ArrowUp-3VjPGHwe.js";import"./ArrowLeft-CuOJLpYp.js";import"./Tool02-2iK-m_KO.js";import"./XCircle-BGJFc73T.js";import"./TrendUp01-5QvTgHWQ.js";import"./ZapSquare-D-EFq_dE.js";import"./Users03-C3U-X-mI.js";import"./CheckCircle-DvVxqf27.js";import"./Check-xum6ttaQ.js";import"./ChevronDown-DPpA8Dbp.js";import"./ChevronSelectorVertical-BJ_tEAoM.js";import"./ChevronUp-BOTFm6bq.js";import"./DotsVertical-CmWdjVkt.js";import"./Stars02-DKadbM7f.js";import"./Copy01-DY0oXPux.js";import"./CreditCard01-CWAomrlK.js";import"./Download01-ZL7h20oZ.js";import"./Settings02-Dbk7MmVQ.js";import"./Eye-Cxiih4tN.js";import"./FilterLines-DikSwaCj.js";import"./Share07-D-5TVy6X.js";import"./Globe01-CkMctzyc.js";import"./Globe04-B-iLPaaJ.js";import"./SwitchHorizontal01-BYjWAqvz.js";import"./HardDrive-Tx05rxiS.js";import"./Key01-COjyAPgn.js";import"./LinkExternal01-CjCwMazO.js";import"./LockUnlocked01-oqX2g_Co.js";import"./LogOut01-Dt_DOR7D.js";import"./Monitor01-BdcGfSWn.js";import"./Sun-Cit4FdTC.js";import"./Palette-CwA2z-1Z.js";import"./Play-BGkoV72U.js";import"./Plus-CQqghpHx.js";import"./SearchLg-BJbx8ng6.js";import"./SearchMd-Ch1B_n1t.js";import"./Shield01-B60BPmpa.js";import"./Stars01-RU0hnDJY.js";import"./Trash01-D4Gmo3CK.js";import"./Upload01-TxI8Lmy1.js";import"./User01-DVgIitgv.js";import"./Users01-CZYotbm_.js";import"./XClose-2vlpUf7f.js";import"./Zap-BBaRxr9a.js";import"./select-wTdyc29Q.js";import"./chat-context-Dkhobhg8.js";import"./use-panel-navigate-D6GXyAPi.js";import"./dialog-CzFdWv_E.js";import"./use-destination-route-CBTLua1E.js";import"./constants-dLUUoWH7.js";import"./session-runtime-C-KTDVeQ.js";import"./slugify-CEUa2lfQ.js";import"./hooks-TEwkOdLN.js";import"./use-mcp-client-Cw8yw85P.js";import"./auth-B5Pc1e6R.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B1qPmScV.js";import"./task-board-jDm9sccs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-2VMmnGJl.js";import"./use-ai-providers-BfwKWlNT.js";import"./use-decopilot-events-Brdzi0_P.js";import"./use-organization-settings-DMPoIn3U.js";import"./automation-runs-Bi878PB7.js";import"./useInfiniteQuery-CO269PLd.js";import"./use-infinite-scroll-B0eZAkT1.js";import"./use-connection-C113P3D4.js";import"./table-UizEAfeR.js";import"./empty-state-DU62aVcj.js";import"./use-members-CEcihkaF.js";import"./use-org-auth-client-BQqSTGwN.js";import"./use-automations-CXhG4SKN.js";import"./useSuspenseInfiniteQuery-CS69VFug.js";import"./avatar-DU7Vu6NF.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BzPCc3PP.js";import"./monaco-editor-D_A_sL1e.js";import"./spinner-B2GG7Xys.js";import"./types-BnP9IxnK.js";import"./shell-layout-D0u14owK.js";import"./required-auth-layout--21owtc0.js";import"./use-org-sso-B2rwowB_.js";import"./integration-icon-6OgCKSdV.js";import"./use-navigate-to-agent-BN4ABUpI.js";import"./chart-C70QnzNs.js";import"./index-BuE-JEwS.js";import"./form-CPEc4S5u.js";import"./input-Ct0sUIqh.js";import"./file-type-icon-u56W7YOH.js";import"./drawer-Dfgm8c49.js";import"./collection-search-CBCqztFu.js";import"./tabs-Hq5jo9A8.js";import"./toggle-group-DT3qKYLM.js";import"./super-agent-icon-BkJvMRAY.js";import"./self-tool-result-DUmeGarD.js";import"./alert-dialog-0Ff1N_Jf.js";import"./extract-connection-data-BO9kKqC1.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-nXb2UNEo.js";import"./authenticate-and-persist-oauth-B2nf3Lk8.js";import"./mcp-oauth-fRqby3CY.js";import"./track-BgyeiT2x.js";import"./popover-A0lefVmu.js";import"./toolbar-wStg-dwL.js";import"./github-repo-picker-DZzmAPvj.js";import"./use-mcp-tools-BmjVf4Hf.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-C2s3R2Pt.js";import"./use-registry-connections-CBwgsQEm.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BNbtdPGO.js";import"./connection-form-helpers-CT3f9bhy.js";import"./collection-tabs-BrljmoEr.js";import"./badge-Dq1BymaB.js";import"./select-model-Bhci4rxp.js";import"./checkbox-DKTB3o_P.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-C9JcVEfr.js";import"./dropdown-menu-CTvkGFhl.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BhYpuE_H.js";import"./use-file-configs-BSJydygI.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-XwXwMzB2.js";import"./search-input-BzaZGMYY.js";import"./use-mcp-auth-status--vNhx8Ad.js";import"./use-secrets-Bziurutw.js";import"./AreaChart-3uW6yDd3.js";import"./config-r2ebsbnu.js";import"./breadcrumb-CaPOirRc.js";import"./command-CrzPyVjB.js";import"./index-4w7w8tlw.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-4f6KarKj.js";import"./automation-list-row-B537ivCl.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CX2lVaeE.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Rt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Lt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,n=typeof t=="string",s=typeof r=="string";if(!n&&!s)return null;const i=n?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||n&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!n,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const n=Lt(e);n&&t.push(n);return}if(St.has(r)){const n=e.matchers;if(Array.isArray(n))for(const s of n)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Pt(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Ot(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function J(e,t,r,n,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Ot(n);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Pt(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&J(m.value,t,r,[...n,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)J(e[i],t,r,[...n,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&J(a,t,r,[...n,i],s)}function Vt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))J(n,r,Rt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function It(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,s)=>{const i=s*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const nt=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):nt.format(e.start),n=e.openEnd?t("sandbox.variantCalendar.ongoing"):nt.format(e.end);return`${r} → ${n}`}function Ft(e){const t=K.c(18),{variant:r}=e,n=X();let s;t[0]!==r.blockLabel?(s=o.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==n||t[9]!==r?(c=Bt(r,n),t[8]=n,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=o.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=o.jsx(xt,{children:o.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const ot=16;function zt(e,t){const r=e?"transparent":"#000 0",n=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${ot}px, #000 calc(100% - ${ot}px), ${n})`}function ft(e){const t=K.c(26),{variant:r,color:n,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==n.bg||t[10]!==n.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:n.bg,color:n.text,borderRadius:4,...f,...g,...u,...s},t[9]=n.bg,t[10]=n.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=o.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=o.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=o.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function Qn(e){const t=K.c(72),{decofile:r}=e,n=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const V=Vt(r);p=V.filter(Ut).length,f=l?V:V.filter(Gt),h=It(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(V=>s==="calendar"?U(V,-1):U(V,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(V=>s==="calendar"?U(V,1):U(V,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==n?(v=n("sandbox.variantCalendar.today"),t[10]=n,t[11]=v):v=t[11];let y;t[12]!==v?(y=o.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==n?(N=n("sandbox.variantCalendar.previous"),t[14]=n,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==n?(k=n("sandbox.variantCalendar.next"),t[20]=n,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const R=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==R||t[29]!==M?(w=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",M]}),t[28]=R,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let L;t[36]!==p||t[37]!==l||t[38]!==n?(L=p>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),o.jsx(yt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:n("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=n,t[39]=L):L=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=o.jsx(at,{}),t[40]=B):B=t[40];let I;t[41]!==n?(I=n("sandbox.variantCalendar.calendarMode"),t[41]=n,t[42]=I):I=t[42];let S;t[43]!==I?(S={value:"calendar",icon:B,label:I},t[43]=I,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=o.jsx(bt,{}),t[45]=F):F=t[45];let D;t[46]!==n?(D=n("sandbox.variantCalendar.timelineMode"),t[46]=n,t[47]=D):D=t[47];let P;t[48]!==D?(P={value:"timeline",icon:F,label:D},t[48]=D,t[49]=P):P=t[49];let O;t[50]!==S||t[51]!==P?(O=[S,P],t[50]=S,t[51]=P,t[52]=O):O=t[52];let H;t[53]!==O||t[54]!==s?(H=o.jsx(Tt,{value:s,onValueChange:i,options:O}),t[53]=O,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==L||t[57]!==H?(z=o.jsxs("div",{className:"flex items-center gap-4",children:[L,H]}),t[56]=L,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?o.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?o.jsx(qt,{monthStart:a,variants:f,colorMap:g}):o.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let Q;return t[69]!==W||t[70]!==G?(Q=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=Q):Q=t[71],Q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,n=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==n||t[2]!==s?(a=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,n>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:n})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=n,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,Qt=6;function qt(e){const t=K.c(17),{monthStart:r,variants:n,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==n){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,n),E=b.reduce(Jt,0),T=st+E*(et+it)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return o.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return o.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=o.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=o.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:n,colorMap:s}=e,i=r,a=U(r,q),c=new Date,l=new Map;for(const w of n){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(ne),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:q},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=o.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,L]=w,B=dt(s,j),I=L[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:Y},children:I})}),L.map((S,F)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),P=Math.min(S.end.getTime(),a.getTime());if(P<=D)return null;const O=h(new Date(D)),H=h(new Date(P))-O;return o.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let R;t[16]!==k||t[17]!==C||t[18]!==$?(R=o.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=R):R=t[19];let M;return t[20]!==b||t[21]!==R?(M=o.jsx(b,{className:E,children:R}),t[20]=b,t[21]=R,t[22]=M):M=t[22],M}function ee(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function ne(e,t){return e[0].localeCompare(t[0])}export{Qn as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as C,n as f,j as i,ab as k,a8 as I,a9 as P}from"./index-kc-p0Tho.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const n=M[_];let l;t[6]!==z?(l=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=l):l=t[7];let a;t[8]!==n||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(n.buttonWithLabel,"px-3"):n.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",n.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=n,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":n.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==l||t[25]!==a?(v=i.jsxs("div",{className:l,children:[a,u]}),t[23]=u,t[24]=l,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
1
+ import{c as $,r as C,n as f,j as i,ab as k,a8 as I,a9 as P}from"./index-4YcsQ5rT.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const n=M[_];let l;t[6]!==z?(l=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=l):l=t[7];let a;t[8]!==n||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(n.buttonWithLabel,"px-3"):n.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",n.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=n,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":n.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==l||t[25]!==a?(v=i.jsxs("div",{className:l,children:[a,u]}),t[23]=u,t[24]=l,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
@@ -50,7 +50,7 @@
50
50
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
51
51
  <meta name="twitter:image" content="/og-image.png" />
52
52
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
53
- <script type="module" crossorigin src="/assets/index-kc-p0Tho.js"></script>
53
+ <script type="module" crossorigin src="/assets/index-4YcsQ5rT.js"></script>
54
54
  <link rel="stylesheet" crossorigin href="/assets/index-DJSuP9VA.css">
55
55
  </head>
56
56
  <body>