decocms 4.260.11 → 4.261.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 (230) hide show
  1. package/dist/client/assets/{AlertCircle-CSEIne9l.js → AlertCircle-BjJfoLZp.js} +1 -1
  2. package/dist/client/assets/{AreaChart-COGo7TxM.js → AreaChart-EITOVm2-.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CbfCqJdZ.js → ArrowLeft-CDU4iVXZ.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DyPL9xPJ.js → ArrowUp-DRgLiuN2.js} +1 -1
  5. package/dist/client/assets/{Check-BxucN0Gw.js → Check-BLEk3GMu.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-VNVIYnH7.js → CheckCircle-BR7WBK28.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-D6BdQEgw.js → ChevronDown-tn1Pegu7.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CrPCFy_x.js → ChevronRight-CCTskFZK.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-DlWDazVs.js → ChevronSelectorVertical-IjjsYOYZ.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-Dqfi-sH7.js → ChevronUp-COr7ke0D.js} +1 -1
  11. package/dist/client/assets/{Copy01-wsmZIanj.js → Copy01-UWv4E-FO.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-DEV4CGvu.js → CreditCard01-DEAHUEc4.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-CvXTa3XH.js → DotsVertical-BnxeXYa8.js} +1 -1
  14. package/dist/client/assets/{Download01-BWUcUjhf.js → Download01-CtOXVT4c.js} +1 -1
  15. package/dist/client/assets/{Eye-BMUypGwD.js → Eye-CZlPmXol.js} +1 -1
  16. package/dist/client/assets/{FilterLines-DIX2_9KD.js → FilterLines-Ar-Qa31N.js} +1 -1
  17. package/dist/client/assets/{Globe01-CAjGWx0n.js → Globe01-CpbQGeYv.js} +1 -1
  18. package/dist/client/assets/{Globe04-K5GBgNsQ.js → Globe04-BugH9-So.js} +1 -1
  19. package/dist/client/assets/{HardDrive-Bgbdhhmh.js → HardDrive-DyzI1HiP.js} +1 -1
  20. package/dist/client/assets/{Key01-i3dmQivg.js → Key01-BjDF6-xw.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-D-ihrY5a.js → LinkExternal01-CxXfpdvB.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-CZqpb5dJ.js → LockUnlocked01-DTT5AUTs.js} +1 -1
  23. package/dist/client/assets/{LogOut01-ifg23-Up.js → LogOut01-7rRMtRT_.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CcUZ9B12.js → Monitor01-CWS5jc9n.js} +1 -1
  25. package/dist/client/assets/{Palette-BTQNLMfZ.js → Palette-_NTg-GC5.js} +1 -1
  26. package/dist/client/assets/{Play-CipJ89X2.js → Play-7Y8P8Kmq.js} +1 -1
  27. package/dist/client/assets/{Plus-6ufO2ceF.js → Plus-DtGDOvIM.js} +1 -1
  28. package/dist/client/assets/{SearchLg-BJEGJalu.js → SearchLg-DZ9dxM7X.js} +1 -1
  29. package/dist/client/assets/{SearchMd-rGZZrU06.js → SearchMd-MIB0wnib.js} +1 -1
  30. package/dist/client/assets/{Settings02-BrcKmw4p.js → Settings02-Bq6G6fP6.js} +1 -1
  31. package/dist/client/assets/{Share07-Dj_oa1CN.js → Share07-D3AhR0wf.js} +1 -1
  32. package/dist/client/assets/{Shield01-FVobuL5f.js → Shield01-BMr9yuwU.js} +1 -1
  33. package/dist/client/assets/{Stars01-Cj5kmeWe.js → Stars01-CijiHE61.js} +1 -1
  34. package/dist/client/assets/{Stars02-XwHNS_gs.js → Stars02-CeAZPwBm.js} +1 -1
  35. package/dist/client/assets/{Sun-DYJ5Beud.js → Sun-Dopi6Hdm.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-B9it-p1c.js → SwitchHorizontal01-DqGPRVdg.js} +1 -1
  37. package/dist/client/assets/{Tool01-B4pZO0G8.js → Tool01-DBitm7pN.js} +1 -1
  38. package/dist/client/assets/{Tool02-D98EZtI2.js → Tool02-BH29q0f9.js} +1 -1
  39. package/dist/client/assets/{Trash01-DWnyS5iA.js → Trash01-kgCRPxRz.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-Dk4Kxq_O.js → TrendUp01-JC8kqCSX.js} +1 -1
  41. package/dist/client/assets/{Upload01-DYfpe6C7.js → Upload01-DgvPJdOf.js} +1 -1
  42. package/dist/client/assets/{User01-qulsGYg8.js → User01-C-9dslQh.js} +1 -1
  43. package/dist/client/assets/UserSquare-DQmocZck.js +1 -0
  44. package/dist/client/assets/{Users01-rfN1e84C.js → Users01-DngWICOr.js} +1 -1
  45. package/dist/client/assets/{Users03-BVYf68R7.js → Users03-BalzCs0u.js} +1 -1
  46. package/dist/client/assets/{XCircle-CeEaSz5m.js → XCircle-CKW0vCEJ.js} +1 -1
  47. package/dist/client/assets/{XClose-CbSO0KMg.js → XClose-BMVL5DKM.js} +1 -1
  48. package/dist/client/assets/{YAxis-CPWE6bpw.js → YAxis-B8P_Tsr1.js} +1 -1
  49. package/dist/client/assets/{Zap-K17zODm6.js → Zap-GHc1ORa0.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-CVdjJYta.js → ZapSquare-B5qdnyRV.js} +1 -1
  51. package/dist/client/assets/{access-gate-BtRxutd5.js → access-gate-DsQEJU69.js} +1 -1
  52. package/dist/client/assets/agent-icon-ysYaoi9z.js +1 -0
  53. package/dist/client/assets/{agents-list-BNJRPcEb.js → agents-list-D5Gv0Xli.js} +1 -1
  54. package/dist/client/assets/{ai-providers-CRWed8vg.js → ai-providers-DIsddaBl.js} +1 -1
  55. package/dist/client/assets/{alert-C75zTvWy.js → alert-QRk00IuK.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-CDtnpId-.js → alert-dialog-C3LGQI4E.js} +1 -1
  57. package/dist/client/assets/{api-keys-CK-6jZZD.js → api-keys-bHZLNkgZ.js} +1 -1
  58. package/dist/client/assets/{app-editor-CKjfhbLL.js → app-editor-Bs8y7SNa.js} +1 -1
  59. package/dist/client/assets/{auth-DAum_Zp1.js → auth-CZQx4xmU.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-CkAs_F__.js → auth-catchall-DG-TV-VH.js} +1 -1
  61. package/dist/client/assets/{auth-entry-CyajcgWt.js → auth-entry-DIa19GLq.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-CdvAiKXv.js → auth-split-layout-CFfpqOaM.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-DkAnhPvg.js → authenticate-and-persist-oauth-CwqlvKoc.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-Bm_C4xBG.js → automation-list-row-eOKmpvTH.js} +1 -1
  65. package/dist/client/assets/{automation-runs-MPdr_Lx7.js → automation-runs-jSc2ftJh.js} +1 -1
  66. package/dist/client/assets/{automations-BQGReD1Y.js → automations-DWDqGV_P.js} +1 -1
  67. package/dist/client/assets/{avatar-C5Fp2HQg.js → avatar-BAzrP85j.js} +1 -1
  68. package/dist/client/assets/{badge-BQrBvwMr.js → badge-BBNJFRBM.js} +1 -1
  69. package/dist/client/assets/{block-document-zjhl0I7I.js → block-document-B5Sikwj1.js} +1 -1
  70. package/dist/client/assets/{buckets-C-4PvUEp.js → buckets-9dC1bssK.js} +1 -1
  71. package/dist/client/assets/{bulk-category-panel-yLfz-fPa.js → bulk-category-panel-BER_-SPn.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-Ce6ATNPi.js → capability-load-error-DtX1zgCB.js} +1 -1
  73. package/dist/client/assets/{cards-BBVHWAEb.js → cards-DomYQxQo.js} +1 -1
  74. package/dist/client/assets/{category-editor-tjVprin5.js → category-editor-CzSdKhcJ.js} +1 -1
  75. package/dist/client/assets/{chart-Dbl0u53s.js → chart-C1ZLDSIi.js} +1 -1
  76. package/dist/client/assets/{chat-context-_9TWwPoV.js → chat-context-sFnpfjH9.js} +1 -1
  77. package/dist/client/assets/{checkbox-Ctd62zey.js → checkbox-0_BgdGs3.js} +1 -1
  78. package/dist/client/assets/{choose-editor-CMPtjsk4.js → choose-editor-C8Z2oqIF.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-CJy4Hw4y.js → cli-auth-success-70t4OIy7.js} +1 -1
  80. package/dist/client/assets/{collection-detail-CbT5DDKH.js → collection-detail-C2Y4_R3F.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-BrNxRDCr.js → collection-display-button-D9qCg3LO.js} +1 -1
  82. package/dist/client/assets/{collection-search-BiRqCWJc.js → collection-search-DYX7kXiE.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-CxHyQroC.js → collection-table-wrapper-BjgizM38.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-DWNMEqGP.js → collection-tabs-DOCwqCIc.js} +1 -1
  85. package/dist/client/assets/{command-DV7TLXKL.js → command-CPkrTYy9.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-hDQsD8ET.js → commerce-onboarding-DG8ZHB1t.js} +1 -1
  87. package/dist/client/assets/{connect-BMseVcIY.js → connect-JNMf5e1T.js} +1 -1
  88. package/dist/client/assets/{connection-4m85oa5u.js → connection-BBxe0Fzy.js} +1 -1
  89. package/dist/client/assets/{connection-card-Bl5iuJ-k.js → connection-card-yMG9zeZ-.js} +1 -1
  90. package/dist/client/assets/{connection-detail-Bxpr3Bs2.js → connection-detail-BuywZtth.js} +1 -1
  91. package/dist/client/assets/{connection-form-helpers--cSZi-9q.js → connection-form-helpers-BE6EXnuK.js} +1 -1
  92. package/dist/client/assets/{connections-ByUnn5ww.js → connections-4VZjocaE.js} +1 -1
  93. package/dist/client/assets/{decopilot-sse-pool-CXVyDh9s.js → decopilot-sse-pool-CdP64L5c.js} +1 -1
  94. package/dist/client/assets/{dialog-DXOQw7Q9.js → dialog-DEyhgDKw.js} +1 -1
  95. package/dist/client/assets/{domain-settings-B5ykNfnY.js → domain-settings-C2ZFrcX3.js} +1 -1
  96. package/dist/client/assets/{drawer-a-90LmnY.js → drawer-gIplTq2U.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-Coj1oJhQ.js → dropdown-menu-T0wkT07V.js} +1 -1
  98. package/dist/client/assets/{empty-state-KWU2c9aq.js → empty-state-DP1ywBGI.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-BVrmrnqC.js → extract-connection-data-B6Afo4Yr.js} +1 -1
  100. package/dist/client/assets/{file-explorer-D1CvAmM3.js → file-explorer-px_K4c5M.js} +1 -1
  101. package/dist/client/assets/{file-type-icon-C9c33TAC.js → file-type-icon-FebZH27L.js} +1 -1
  102. package/dist/client/assets/{form-D6N6c8KY.js → form-DdGC9nPi.js} +1 -1
  103. package/dist/client/assets/{general-Utm8110Q.js → general-Fb2w8pZe.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-C48OFlvT.js → github-repo-picker-BNrbVjch.js} +1 -1
  105. package/dist/client/assets/{hooks-B4Y-27dk.js → hooks-C3hvnaKe.js} +1 -1
  106. package/dist/client/assets/{index-yK9HaiSq.js → index-B68ChNJm.js} +1 -1
  107. package/dist/client/assets/{index-eQAcz757.js → index-BNBTCRpT.js} +1 -1
  108. package/dist/client/assets/index-C5fmY0H2.js +1 -0
  109. package/dist/client/assets/{index-BIjLkKIL.js → index-CSEc-AgR.js} +10 -10
  110. package/dist/client/assets/{index-BYDn8tSK.js → index-CsXRGdi8.js} +1 -1
  111. package/dist/client/assets/{index-DmupevWM.js → index-D3lUK8eD.js} +4 -4
  112. package/dist/client/assets/{index-BnqqO_CW.js → index-DqWipG5J.js} +1 -1
  113. package/dist/client/assets/{index-vo5OoZ2e.js → index-DqokQodW.js} +1 -1
  114. package/dist/client/assets/{index-DbjJlZR6.js → index-DyCHOXD7.js} +1 -1
  115. package/dist/client/assets/{index-C2vNRzRG.js → index-hh_Z1E0O.js} +1 -1
  116. package/dist/client/assets/{index-redirect-BERElDSA.js → index-redirect-D92HQ5wC.js} +1 -1
  117. package/dist/client/assets/{infra-billing-Bc2t4ssq.js → infra-billing-DMygUd5R.js} +1 -1
  118. package/dist/client/assets/{input-D70-s6Lp.js → input-BQ5TJLvF.js} +1 -1
  119. package/dist/client/assets/{integration-icon-DkLjC-y8.js → integration-icon-DoQPCkK5.js} +1 -1
  120. package/dist/client/assets/{invite-member-dialog-BhZqEcH6.js → invite-member-dialog-p9Tswx0S.js} +1 -1
  121. package/dist/client/assets/{label-DgSm7c-x.js → label-C0bjrjGC.js} +1 -1
  122. package/dist/client/assets/{layout-0yyo4_gu.js → layout-D8_HwL7K.js} +1 -1
  123. package/dist/client/assets/{login-BgB2Bgru.js → login-DNChvlOb.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-D8ex8-sG.js → mcp-oauth-Oe2pPqDr.js} +1 -1
  125. package/dist/client/assets/{members-DawHhNRN.js → members-BwYznPXy.js} +1 -1
  126. package/dist/client/assets/{monaco-editor-BxRxySpc.js → monaco-editor-CsXvft5H.js} +1 -1
  127. package/dist/client/assets/{monitoring-stats-row-Pn-OTmsv.js → monitoring-stats-row-8zXTB6N5.js} +1 -1
  128. package/dist/client/assets/{multi-select-bPlYHeAI.js → multi-select-CYdN_BBm.js} +1 -1
  129. package/dist/client/assets/{oauth-callback-C_NKxtXg.js → oauth-callback-DX1mJj6l.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-ai-provider-BxaUzHSD.js → oauth-callback-ai-provider-BxjZiKrH.js} +1 -1
  131. package/dist/client/assets/{onboarding-BeJC6pOO.js → onboarding-DBwYbyp0.js} +1 -1
  132. package/dist/client/assets/{org-layout-BNoRhc9b.js → org-layout-P2k9xUp6.js} +1 -1
  133. package/dist/client/assets/{organization-choice-CCf6j7sC.js → organization-choice-D3bwg0zC.js} +1 -1
  134. package/dist/client/assets/{orgs-CneZrrZA.js → orgs-BdzXReTP.js} +1 -1
  135. package/dist/client/assets/{page-seo-form-CkqTUNTu.js → page-seo-form-CWY5urZZ.js} +1 -1
  136. package/dist/client/assets/{popover-nuVYiQ4L.js → popover-q78V7HIs.js} +1 -1
  137. package/dist/client/assets/{post-calendar-H7mHWLW5.js → post-calendar-CZWY1Xgx.js} +1 -1
  138. package/dist/client/assets/{post-editor-CP7GbVJn.js → post-editor-Cv4aqYnD.js} +1 -1
  139. package/dist/client/assets/{primitives-CMuOhu_D.js → primitives-BLfiKsXy.js} +1 -1
  140. package/dist/client/assets/{profile-CM2q3ye4.js → profile-jlJE4Tm2.js} +1 -1
  141. package/dist/client/assets/{project-app-view-B8mREzm4.js → project-app-view-BJtDJWI4.js} +1 -1
  142. package/dist/client/assets/record-editor-pfHYr5fU.js +1 -0
  143. package/dist/client/assets/{redirect-editor-DLmAi65e.js → redirect-editor-Ds-UhUig.js} +1 -1
  144. package/dist/client/assets/registry-D3hddu6r.js +2 -0
  145. package/dist/client/assets/{registry-layout-RhO1P3bU.js → registry-layout-CVtQ2cz-.js} +1 -1
  146. package/dist/client/assets/{reports-6dpA8wJa.js → reports-fJR92Zah.js} +1 -1
  147. package/dist/client/assets/{require-capability-B39rQdpQ.js → require-capability-BwEG5LlS.js} +1 -1
  148. package/dist/client/assets/{required-auth-layout-DR5ftNoT.js → required-auth-layout-cNcUkQn6.js} +1 -1
  149. package/dist/client/assets/{reset-password-C1XHoGEV.js → reset-password-Dno8pOoq.js} +1 -1
  150. package/dist/client/assets/{roles-Da0mN-cW.js → roles-CjSwY2W9.js} +1 -1
  151. package/dist/client/assets/{search-input-D3LmXNJV.js → search-input-BL8STgGW.js} +1 -1
  152. package/dist/client/assets/{secrets-CfFKPfa5.js → secrets-Emn5JA4s.js} +1 -1
  153. package/dist/client/assets/{sections-editor-BepCov2b.js → sections-editor-C6NqiuzL.js} +1 -1
  154. package/dist/client/assets/{select-C9ri1M2-.js → select-BmucFIUV.js} +1 -1
  155. package/dist/client/assets/{select-model-DJLUqG0_.js → select-model-rrWRd8uh.js} +1 -1
  156. package/dist/client/assets/{self-tool-result-DbpuphTm.js → self-tool-result-N9v7RqYq.js} +1 -1
  157. package/dist/client/assets/{seo-editor-CyPCqF0y.js → seo-editor-CW6SqU5A.js} +1 -1
  158. package/dist/client/assets/{settings-layout-BFvNIyjp.js → settings-layout-B6BTb98p.js} +1 -1
  159. package/dist/client/assets/{shell-controls-Bu52cR8C.js → shell-controls-rOB_GymC.js} +1 -1
  160. package/dist/client/assets/{shell-layout-QWBBZpBa.js → shell-layout-oyBBd5s9.js} +1 -1
  161. package/dist/client/assets/{spinner-DeHFaXJR.js → spinner-Dden4zNH.js} +1 -1
  162. package/dist/client/assets/{sprints-CQcaKkBi.js → sprints-G1I-NBRl.js} +1 -1
  163. package/dist/client/assets/{sso-BvtFWky5.js → sso-ZQ1aEsgL.js} +1 -1
  164. package/dist/client/assets/{store-B1oygXka.js → store-DG0fNdzf.js} +1 -1
  165. package/dist/client/assets/store-registry-D_z9odhp.js +2 -0
  166. package/dist/client/assets/{switch-Iiz2pu8a.js → switch-CY7Ndzki.js} +1 -1
  167. package/dist/client/assets/{synced-repos-tF_mJAji.js → synced-repos-kg1mK1F_.js} +1 -1
  168. package/dist/client/assets/tab-id-Bk9E01em.js +1 -0
  169. package/dist/client/assets/{table-D0iTfjzx.js → table-R-6YiB-M.js} +1 -1
  170. package/dist/client/assets/{tabs-BWCmUqZx.js → tabs-B1oQoQwT.js} +1 -1
  171. package/dist/client/assets/{task-key-CQFKZ4tZ.js → task-key-O6XtgoRc.js} +1 -1
  172. package/dist/client/assets/tasks-Cgt1dDVu.js +1 -0
  173. package/dist/client/assets/{textarea-C6vvoxGM.js → textarea-B--R1VbU.js} +1 -1
  174. package/dist/client/assets/{toggle-group-BCetwO7P.js → toggle-group-DP3NWGoV.js} +1 -1
  175. package/dist/client/assets/{toolbar-DZRlpReI.js → toolbar-B-vzbVgX.js} +1 -1
  176. package/dist/client/assets/{track-BgzvmxEr.js → track-BjreP7HA.js} +1 -1
  177. package/dist/client/assets/{types-Coctadaz.js → types-CPvnLtRQ.js} +1 -1
  178. package/dist/client/assets/{use-ai-providers-lagj7gGO.js → use-ai-providers-DJmSNFvE.js} +1 -1
  179. package/dist/client/assets/{use-api-keys-jeDRQEx8.js → use-api-keys-kH1szT2a.js} +1 -1
  180. package/dist/client/assets/{use-automations-DWADA5-D.js → use-automations-D3QtmNNS.js} +1 -1
  181. package/dist/client/assets/{use-autosave-C-Q3_F0Z.js → use-autosave-Da_TIZOh.js} +1 -1
  182. package/dist/client/assets/{use-clock-tick-mt6A2GEq.js → use-clock-tick-CgLDdTKg.js} +1 -1
  183. package/dist/client/assets/{use-commerce-diagnostic-MyEG9Xpf.js → use-commerce-diagnostic-PIQyHTqJ.js} +1 -1
  184. package/dist/client/assets/{use-connection-Bh2muL5C.js → use-connection-CiXLlanX.js} +1 -1
  185. package/dist/client/assets/{use-copy-B-DVssSv.js → use-copy-uAWL1SkO.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-DbiEcQvK.js → use-create-virtual-mcp-C63LuyrW.js} +1 -1
  187. package/dist/client/assets/{use-debounced-autosave-BpaI0aIp.js → use-debounced-autosave-DeKFU4WQ.js} +1 -1
  188. package/dist/client/assets/{use-debounced-value-B-Urwt8n.js → use-debounced-value-Cr0YSEqW.js} +1 -1
  189. package/dist/client/assets/{use-decopilot-events-B43friLn.js → use-decopilot-events-WeK7T359.js} +1 -1
  190. package/dist/client/assets/{use-delete-connection-Ch7yky65.js → use-delete-connection-BWMc6vdi.js} +1 -1
  191. package/dist/client/assets/{use-deployment-admin-DjLZNPT3.js → use-deployment-admin-DnaKSjXt.js} +1 -1
  192. package/dist/client/assets/{use-file-configs-9e0BASTI.js → use-file-configs-CWIbC_rl.js} +1 -1
  193. package/dist/client/assets/{use-infinite-scroll-BfrvLRgk.js → use-infinite-scroll-BqoPURrS.js} +1 -1
  194. package/dist/client/assets/{use-join-requests-D9lhUNda.js → use-join-requests-C3sJBHEc.js} +1 -1
  195. package/dist/client/assets/{use-mcp-client-Dfy6vmh9.js → use-mcp-client-CnnqcHsn.js} +1 -1
  196. package/dist/client/assets/{use-mcp-tools-CS0TRcXs.js → use-mcp-tools-CpBOjH84.js} +1 -1
  197. package/dist/client/assets/{use-members-DxBZLVw9.js → use-members-Ap1ION25.js} +1 -1
  198. package/dist/client/assets/{use-navigate-to-agent-Bsc7rB4q.js → use-navigate-to-agent-CAcOwVvo.js} +1 -1
  199. package/dist/client/assets/{use-org-auth-client-DNRMtd_T.js → use-org-auth-client-BF6zXPsz.js} +1 -1
  200. package/dist/client/assets/{use-org-repo-syncs-DDlZcaeJ.js → use-org-repo-syncs-Dk2jVrq9.js} +1 -1
  201. package/dist/client/assets/{use-org-sso-D9vQYyjU.js → use-org-sso-CSd8Lul9.js} +1 -1
  202. package/dist/client/assets/{use-organization-roles-BjmJmNja.js → use-organization-roles-Bz85xbEw.js} +1 -1
  203. package/dist/client/assets/use-organization-settings-BUFJGZyK.js +1 -0
  204. package/dist/client/assets/{use-registry-connections-Dw2y1k0e.js → use-registry-connections-ByU6rE6L.js} +1 -1
  205. package/dist/client/assets/{use-secrets-_cI0Te8y.js → use-secrets-CnsHn0Gu.js} +1 -1
  206. package/dist/client/assets/{use-section-preview-base-BrivvfGf.js → use-section-preview-base-BKxq2BY8.js} +1 -1
  207. package/dist/client/assets/{use-status-sounds-71OdpXHB.js → use-status-sounds-BE40USMG.js} +1 -1
  208. package/dist/client/assets/{use-tags-BZu1gEDB.js → use-tags-BNa6lNGM.js} +1 -1
  209. package/dist/client/assets/{use-view-mode-DgZ7h5_g.js → use-view-mode-BmfvHvEd.js} +1 -1
  210. package/dist/client/assets/{use-virtual-mcp-DA13Pz4C.js → use-virtual-mcp-DeRW3H8m.js} +1 -1
  211. package/dist/client/assets/useInfiniteQuery-C96MPHVH.js +1 -0
  212. package/dist/client/assets/useSuspenseInfiniteQuery-D9tl30rp.js +1 -0
  213. package/dist/client/assets/{users-Bf6wAslJ.js → users-Bu6S-wP4.js} +1 -1
  214. package/dist/client/assets/{variant-calendar-AGfAeheL.js → variant-calendar-DkY7wL7L.js} +1 -1
  215. package/dist/client/assets/{view-mode-toggle-Uo9uwDAg.js → view-mode-toggle-q6WshuMZ.js} +1 -1
  216. package/dist/client/index.html +1 -1
  217. package/dist/server/cli.js +514 -514
  218. package/dist/server/server.js +351 -351
  219. package/package.json +1 -1
  220. package/dist/client/assets/UserSquare-B5tn5j3o.js +0 -1
  221. package/dist/client/assets/agent-icon-Cv0qfELn.js +0 -1
  222. package/dist/client/assets/index-CvDpf0By.js +0 -1
  223. package/dist/client/assets/record-editor-BZAwZl3h.js +0 -1
  224. package/dist/client/assets/registry-BSpywCM7.js +0 -2
  225. package/dist/client/assets/store-registry-ByGGxMMY.js +0 -2
  226. package/dist/client/assets/tab-id-DNMIj3f5.js +0 -1
  227. package/dist/client/assets/tasks-CS6df-QZ.js +0 -1
  228. package/dist/client/assets/use-organization-settings-T1YTxopv.js +0 -1
  229. package/dist/client/assets/useInfiniteQuery-C6gECLrc.js +0 -1
  230. package/dist/client/assets/useSuspenseInfiniteQuery-DPjJmkul.js +0 -1
@@ -1 +0,0 @@
1
- import{c as C,d as Y,H as G,b as A,I as It,j as s,B as rt,r as L,E as at,J as Et,z as Tt,K as Rt,e as Ye,q as V,M as K,R as ct,U as Te,W as Re,X as U,Y as W,n as z,Z as E,_ as T,$ as mt,a0 as Ft,a1 as dt,a2 as Lt,a3 as Fe,a as ue,a4 as Ut,x as Bt,a5 as ft,t as ut,a6 as Gt,a7 as Ht,a8 as pt,a9 as xt,aa as ht,ab as bt,ac as Ae,u as Le,ad as Wt,O as Vt,ae as Kt,af as Yt,ag as Xt}from"./index-DmupevWM.js";import{a as qt,p as ze,s as Qt,b as Jt,n as Zt}from"./self-tool-result-DbpuphTm.js";import{f as es,b as ts,e as ss,g as ls}from"./dialog-DXOQw7Q9.js";import{f as gt,i as os,a as Xe,D as is}from"./tab-id-DNMIj3f5.js";import{u as ns}from"./use-mcp-client-Dfy6vmh9.js";import{C as jt,W as vt,g as rs,S as as,a as cs}from"./constants-_08zpzmT.js";import{i as St}from"./XCircle-CeEaSz5m.js";import{u as ms,a as Ue,b as Be}from"./use-organization-settings-T1YTxopv.js";import{C as ds,a as fs,O as ke,A as Ge,u as us,b as ps,c as xs,d as yt,e as _t,T as hs,f as bs,g as gs,h as js}from"./use-commerce-diagnostic-MyEG9Xpf.js";import{T as He,a as me}from"./toolbar-DZRlpReI.js";import{P as vs,a as Ss,b as ys}from"./popover-nuVYiQ4L.js";import{D as _s,a as Ns,b as Cs}from"./drawer-a-90LmnY.js";import{A as Ie}from"./avatar-C5Fp2HQg.js";import{a as ws}from"./Copy01-wsmZIanj.js";import{n as ks}from"./Download01-BWUcUjhf.js";import{i as $s,a as Ds,b as Ms,c as Os,t as Nt,d as qe,e as Ps,f as zs,g as As,A as Is}from"./agent-icon-Cv0qfELn.js";import{i as Es}from"./Globe01-CAjGWx0n.js";import{n as Ts}from"./LinkExternal01-D-ihrY5a.js";import{i as Qe}from"./LogOut01-ifg23-Up.js";import{i as Rs}from"./Monitor01-CcUZ9B12.js";import{n as Fs,a as Ls}from"./Sun-DYJ5Beud.js";import{a as $e}from"./Settings02-BrcKmw4p.js";import{i as Us}from"./Shield01-FVobuL5f.js";import{t as Bs}from"./UserSquare-B5tn5j3o.js";import{a as Gs}from"./Users03-BVYf68R7.js";import{u as Hs}from"./use-deployment-admin-DjLZNPT3.js";import{u as Ws}from"./use-is-desktop-app-BNujXJc_.js";import{a as Vs,n as Ks}from"./ZapSquare-CVdjJYta.js";import{I as Ct}from"./invite-member-dialog-BhZqEcH6.js";import{S as We,M as Ys}from"./shell-controls-Bu52cR8C.js";import{i as Xs}from"./Share07-Dj_oa1CN.js";import{u as qs}from"./use-virtual-mcp-DA13Pz4C.js";import{a as Qs,g as Js}from"./agent-capabilities-C4tLW0Za.js";import{u as wt,T as Zs}from"./hooks-B4Y-27dk.js";import{u as kt}from"./shell-layout-QWBBZpBa.js";import{f as $t}from"./reusable-new-chat-CzvRy4Pe.js";import{d as el}from"./session-runtime-wVXsCwcJ.js";import{S as Dt}from"./use-navigate-to-agent-Bsc7rB4q.js";import{C as tl}from"./chat-context-_9TWwPoV.js";import"./alert-dialog-CDtnpId-.js";import"./form-D6N6c8KY.js";import"./label-DgSm7c-x.js";import"./input-D70-s6Lp.js";import"./spinner-DeHFaXJR.js";import"./integration-icon-DkLjC-y8.js";import"./Tool02-D98EZtI2.js";import"./extract-connection-data-BVrmrnqC.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./CheckCircle-VNVIYnH7.js";import"./Check-BxucN0Gw.js";import"./Eye-BMUypGwD.js";import"./use-debounced-value-B-Urwt8n.js";import"./authenticate-and-persist-oauth-DkAnhPvg.js";import"./mcp-oauth-D8ex8-sG.js";import"./auth-DAum_Zp1.js";import"./track-BgzvmxEr.js";import"./ChevronRight-CrPCFy_x.js";import"./ChevronDown-D6BdQEgw.js";import"./Plus-6ufO2ceF.js";import"./SearchMd-rGZZrU06.js";import"./XClose-CbSO0KMg.js";import"./github-repo-picker-C48OFlvT.js";import"./collection-search-BiRqCWJc.js";import"./use-connection-Bh2muL5C.js";import"./ArrowLeft-CbfCqJdZ.js";import"./LockUnlocked01-CZqpb5dJ.js";import"./use-mcp-tools-CS0TRcXs.js";import"./connection-card-Bl5iuJ-k.js";import"./use-registry-connections-Dw2y1k0e.js";import"./useInfiniteQuery-C6gECLrc.js";import"./use-infinite-scroll-BfrvLRgk.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./connection-slug-eyAPH6o3.js";import"./select-C9ri1M2-.js";import"./ChevronUp-Dqfi-sH7.js";import"./textarea-C6vvoxGM.js";import"./connection-form-helpers--cSZi-9q.js";import"./Trash01-DWnyS5iA.js";import"./collection-tabs-DWNMEqGP.js";import"./badge-BQrBvwMr.js";import"./useSuspenseInfiniteQuery-DPjJmkul.js";import"./use-ai-providers-lagj7gGO.js";import"./FilterLines-DIX2_9KD.js";import"./toggle-group-BCetwO7P.js";import"./command-DV7TLXKL.js";import"./index-yK9HaiSq.js";import"./Zap-K17zODm6.js";import"./Stars02-XwHNS_gs.js";import"./use-clock-tick-mt6A2GEq.js";import"./AlertCircle-CSEIne9l.js";import"./DotsVertical-CvXTa3XH.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./User01-qulsGYg8.js";import"./Tool01-B4pZO0G8.js";import"./ArrowUp-DyPL9xPJ.js";import"./TrendUp01-Dk4Kxq_O.js";import"./ChevronSelectorVertical-DlWDazVs.js";import"./CreditCard01-DEV4CGvu.js";import"./Globe04-K5GBgNsQ.js";import"./SwitchHorizontal01-B9it-p1c.js";import"./HardDrive-Bgbdhhmh.js";import"./Key01-i3dmQivg.js";import"./Palette-BTQNLMfZ.js";import"./Play-CipJ89X2.js";import"./SearchLg-BJEGJalu.js";import"./Stars01-Cj5kmeWe.js";import"./Upload01-DYfpe6C7.js";import"./Users01-rfN1e84C.js";import"./use-org-auth-client-DNRMtd_T.js";import"./use-organization-roles-BjmJmNja.js";import"./decopilot-sse-pool-CXVyDh9s.js";import"./required-auth-layout-DR5ftNoT.js";import"./use-org-sso-D9vQYyjU.js";import"./use-decopilot-events-B43friLn.js";function sl(t){const e=C.c(22),{siteUrl:l}=t,i=Y(),{org:o}=G(),n=A();let a;e[0]!==i||e[1]!==o.id||e[2]!==o.slug?(a=()=>{localStorage.setItem(It.sidebarOpen(),JSON.stringify(!1)),i({to:"/$org/$taskId",params:{org:o.slug,taskId:crypto.randomUUID()},search:{virtualmcpid:rs(o.id),main:gt(vt.COMMERCE_DISCOVERY(o.id),jt),sidepanel:0}})},e[0]=i,e[1]=o.id,e[2]=o.slug,e[3]=a):a=e[3];const r=a;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(es,{className:"bg-black/15 backdrop-blur-sm"}),e[4]=d):d=e[4];let c;e[5]!==n?(c=n("routes.commerceOnboarding.connectModal.dialogTitle"),e[5]=n,e[6]=c):c=e[6];let f;e[7]!==c?(f=s.jsx(ts,{className:"sr-only",children:c}),e[7]=c,e[8]=f):f=e[8];let m;e[9]!==r||e[10]!==n?(m=()=>s.jsxs("div",{className:"grid gap-4 p-6",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:n("routes.commerceOnboarding.connectModal.loadError")}),s.jsxs(rt,{type:"button",size:"xl",className:"w-full",onClick:r,children:[n("routes.commerceOnboarding.connectModal.continueButton"),s.jsx(St,{size:18})]})]}),e[9]=r,e[10]=n,e[11]=m):m=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(qt,{}),e[12]=u):u=e[12];let p;e[13]!==r||e[14]!==l?(p=s.jsx(L.Suspense,{fallback:u,children:s.jsx(nl,{siteUrlFromUrl:l,onComplete:r})}),e[13]=r,e[14]=l,e[15]=p):p=e[15];let x;e[16]!==m||e[17]!==p?(x=s.jsx(at,{fallback:m,children:p}),e[16]=m,e[17]=p,e[18]=x):x=e[18];let b;return e[19]!==f||e[20]!==x?(b=s.jsx(ss,{open:!0,children:s.jsxs(ls,{children:[d,s.jsxs(Et,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:il,onPointerDownOutside:ol,onInteractOutside:ll,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[f,x]})]})}),e[19]=f,e[20]=x,e[21]=b):b=e[21],b}function ll(t){return t.preventDefault()}function ol(t){return t.preventDefault()}function il(t){return t.preventDefault()}function nl({siteUrlFromUrl:t,onComplete:e}){const l=A(),{org:i}=G(),o=vt.COMMERCE_DISCOVERY(i.id),n=ns({connectionId:as,orgId:i.id,orgSlug:i.slug}),r=Tt({queryKey:Rt.commerceDiscoveryConnection(i.id,o),queryFn:async()=>{const j=await n.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:o}});return ze(j)},retry:!1}).data.item,d=typeof r?.metadata?.siteUrl=="string"?r.metadata.siteUrl:void 0,c=t||d,f=Qt(c),[m,u]=L.useState(!0),[p,x]=L.useState(null),b=Ye({mutationFn:async j=>ze(await n.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:j}})),retry:!1}),h=Ye({mutationFn:async j=>ze(await n.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:j}})),retry:!1}),g=async()=>{x(null),V("commerce_onboarding_open_report_clicked",{domain:f??void 0,organization_id:i.id});const j=c?Zt(c):null;if(j?.ok)try{let v=await h.mutateAsync(j.value);if(v.triggered||(V("commerce_onboarding_run_reclaim",{domain:f??void 0,organization_id:i.id,reason:v.reason??"not_upgraded"}),await b.mutateAsync(j.value),v=await h.mutateAsync(j.value)),!v.triggered){V("commerce_onboarding_run_failed",{domain:f??void 0,organization_id:i.id,error:v.reason??"not_triggered"}),x(l("routes.commerceOnboarding.connectModal.couldNotGenerateReport"));return}}catch(v){V("commerce_onboarding_run_failed",{domain:f??void 0,organization_id:i.id,error:v instanceof Error?v.message:String(v)}),x(l("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}e()},y=ms("demo_mode"),S=m||y;return s.jsx(ds,{siteHost:f,footer:s.jsxs(s.Fragment,{children:[p?s.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:p}):null,s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(fs,{ready:S,pending:h.isPending,label:h.isPending?l("routes.commerceOnboarding.connectModal.openingReport"):l("routes.commerceOnboarding.connectModal.viewDiagnostic"),onClick:()=>{g()},children:s.jsx(St,{size:18})})}),S?null:s.jsx(rt,{type:"button",variant:"secondary",size:"lg",className:"h-auto min-h-12 shrink-0 rounded-lg py-3 text-base font-medium leading-tight",disabled:h.isPending,onClick:()=>{g()},children:l("routes.commerceOnboarding.connectModal.skip")})]})]}),children:s.jsx(Jt,{org:i,cdConnectionId:o,siteUrl:c,onReadinessChange:u})})}function rl(t){const e=C.c(11),{onPointerDown:l,onDoubleClick:i}=t,o=A(),{state:n,isMobile:a}=K();if(a||n==="collapsed")return null;let r;e[0]!==o?(r=o("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=o,e[1]=r):r=e[1];let d;e[2]!==o?(d=o("sidebar.sidebarResizeHandle.title"),e[2]=o,e[3]=d):d=e[3];let c,f;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={left:"var(--sidebar-width)"},f=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[4]=c,e[5]=f):(c=e[4],f=e[5]);let m;return e[6]!==i||e[7]!==l||e[8]!==r||e[9]!==d?(m=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":r,title:d,onPointerDown:l,onDoubleClick:i,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:c,children:f}),e[6]=i,e[7]=l,e[8]=r,e[9]=d,e[10]=m):m=e[10],m}const Ve=240,al=400,cl="sidebar.width";function fe(t){return Math.max(Ve,Math.min(al,t))}function ml(){const t=C.c(11),[e,l]=ct(cl,dl),i=L.useRef(null);let o;t[0]!==l||t[1]!==e?(o=f=>{f.preventDefault();const m=f.clientX,u=fe(e),p=i.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=p?Array.from(p.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of x)g.style.transition="none";const b=g=>{const y=fe(u+(g.clientX-m));p?.style.setProperty("--sidebar-width",`${y}px`)},h=g=>{const y=fe(u+(g.clientX-m));l(y);for(const S of x)S.style.transition="";window.removeEventListener("pointermove",b),window.removeEventListener("pointerup",h),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",b),window.addEventListener("pointerup",h)},t[0]=l,t[1]=e,t[2]=o):o=t[2];const n=o;let a;t[3]!==l?(a=()=>{l(Ve)},t[3]=l,t[4]=a):a=t[4];const r=a;let d;t[5]!==e?(d=fe(e),t[5]=e,t[6]=d):d=t[6];let c;return t[7]!==n||t[8]!==r||t[9]!==d?(c={width:d,wrapperRef:i,onStartResize:n,resetWidth:r},t[7]=n,t[8]=r,t[9]=d,t[10]=c):c=t[10],c}function dl(t){return typeof t=="number"?fe(t):Ve}function Mt(){return[]}function Ot(t){const e=C.c(3),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=i):i=e[0];let o;return e[1]!==l?(o=s.jsxs(Te,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[i,s.jsx(Re,{children:s.jsx(U,{className:"gap-0.5",children:l})})]}),e[1]=l,e[2]=o):o=e[2],o}function Pt(t){const e=C.c(18),{item:l}=t,{isMobile:i,setOpenMobile:o}=K();let n;e[0]!==i||e[1]!==l||e[2]!==o?(n=()=>{V("nav_item_clicked",{nav_key:l.key,nav_label:l.label,is_active:!!l.isActive,is_mobile:i}),l.onClick?.(),i&&o(!1)},e[0]=i,e[1]=l,e[2]=o,e[3]=n):n=e[3];const a=n,r=l.key,d=l.isActive&&"z-10";let c;e[4]!==d?(c=z(d),e[4]=d,e[5]=c):c=e[5];let f;e[6]!==l.label?(f=s.jsx("span",{children:l.label}),e[6]=l.label,e[7]=f):f=e[7];let m;e[8]!==a||e[9]!==l.icon||e[10]!==l.isActive||e[11]!==l.label||e[12]!==f?(m=s.jsxs(E,{onClick:a,isActive:l.isActive,tooltip:l.label,children:[l.icon,f]}),e[8]=a,e[9]=l.icon,e[10]=l.isActive,e[11]=l.label,e[12]=f,e[13]=m):m=e[13];let u;return e[14]!==l.key||e[15]!==c||e[16]!==m?(u=s.jsx(T,{className:c,children:m},r),e[14]=l.key,e[15]=c,e[16]=m,e[17]=u):u=e[17],u}function fl(t){const e=C.c(12),{section:l}=t;switch(l.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(mt,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=l.group.label,o=l.group.defaultExpanded;let n;e[2]!==l.group.items?(n=l.group.items.map(pl),e[2]=l.group.items,e[3]=n):n=e[3];let a;return e[4]!==l.group.defaultExpanded||e[5]!==l.group.label||e[6]!==n?(a=s.jsx(Ot,{label:i,defaultExpanded:o,children:n}),e[4]=l.group.defaultExpanded,e[5]=l.group.label,e[6]=n,e[7]=a):a=e[7],a}case"items":{let i;e[8]!==l.items?(i=l.items.map(ul),e[8]=l.items,e[9]=i):i=e[9];let o;return e[10]!==i?(o=s.jsx(Te,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Re,{children:s.jsx(U,{className:"gap-1.5",children:i})})}),e[10]=i,e[11]=o):o=e[11],o}case"custom":return l.content}}function ul(t){return s.jsx(Pt,{item:t},t.key)}function pl(t){return s.jsx(Pt,{item:t},t.key)}function xl(t){const e=C.c(17),{sections:l,footer:i,additionalContent:o,header:n,variant:a,contentClassName:r}=t,d=a===void 0?"sidebar":a;let c;e[0]!==n?(c=n&&s.jsx(Ft,{className:"shrink-0 h-12 flex flex-row items-center px-2 py-0 group-data-[collapsible=icon]/sidebar:hidden",children:n}),e[0]=n,e[1]=c):c=e[1];let f;e[2]!==r?(f=z("flex flex-col flex-1 px-2 pb-2 gap-0.5",r),e[2]=r,e[3]=f):f=e[3];let m;e[4]!==l?(m=l.map(hl),e[4]=l,e[5]=m):m=e[5];let u;e[6]!==o?(u=o&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:o}),e[6]=o,e[7]=u):u=e[7];let p;e[8]!==f||e[9]!==m||e[10]!==u?(p=s.jsxs(dt,{className:f,children:[m,u]}),e[8]=f,e[9]=m,e[10]=u,e[11]=p):p=e[11];let x;return e[12]!==i||e[13]!==c||e[14]!==p||e[15]!==d?(x=s.jsxs(Lt,{variant:d,children:[c,p,i]}),e[12]=i,e[13]=c,e[14]=p,e[15]=d,e[16]=x):x=e[16],x}function hl(t,e){return s.jsx(fl,{section:t},e)}function zt(t){const e=C.c(2);let l;return e[0]!==t?(l=s.jsx(xl,{...t}),e[0]=t,e[1]=l):l=e[1],l}zt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,l)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(W,{className:"h-full bg-sidebar-accent rounded-md"})},l))})};function Je(t){const e=C.c(18),{item:l,onClose:i}=t,o=l.isActive&&"z-10";let n;e[0]!==o?(n=z(o),e[0]=o,e[1]=n):n=e[1];let a;e[2]!==l||e[3]!==i?(a=()=>{l.onClick?.(),i()},e[2]=l,e[3]=i,e[4]=a):a=e[4];let r;e[5]!==l.icon?(r=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:l.icon}),e[5]=l.icon,e[6]=r):r=e[6];let d;e[7]!==l.label?(d=s.jsx("span",{children:l.label}),e[7]=l.label,e[8]=d):d=e[8];let c;e[9]!==l.isActive||e[10]!==l.label||e[11]!==a||e[12]!==r||e[13]!==d?(c=s.jsxs(E,{onClick:a,isActive:l.isActive,tooltip:l.label,className:"h-10! text-sm!",children:[r,d]}),e[9]=l.isActive,e[10]=l.label,e[11]=a,e[12]=r,e[13]=d,e[14]=c):c=e[14];let f;return e[15]!==n||e[16]!==c?(f=s.jsx(T,{className:n,children:c}),e[15]=n,e[16]=c,e[17]=f):f=e[17],f}function bl(t){const e=C.c(18),{section:l,onClose:i}=t;switch(l.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(mt,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=l.group.label,n=l.group.defaultExpanded;let a;if(e[2]!==i||e[3]!==l.group.items){let d;e[5]!==i?(d=c=>s.jsx(Je,{item:c,onClose:i},c.key),e[5]=i,e[6]=d):d=e[6],a=l.group.items.map(d),e[2]=i,e[3]=l.group.items,e[4]=a}else a=e[4];let r;return e[7]!==l.group.defaultExpanded||e[8]!==l.group.label||e[9]!==a?(r=s.jsx(Ot,{label:o,defaultExpanded:n,children:a}),e[7]=l.group.defaultExpanded,e[8]=l.group.label,e[9]=a,e[10]=r):r=e[10],r}case"items":{let o;if(e[11]!==i||e[12]!==l.items){let a;e[14]!==i?(a=r=>s.jsx(Je,{item:r,onClose:i},r.key),e[14]=i,e[15]=a):a=e[15],o=l.items.map(a),e[11]=i,e[12]=l.items,e[13]=o}else o=e[13];let n;return e[16]!==o?(n=s.jsx(Te,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Re,{children:s.jsx(U,{className:"gap-1.5",children:o})})}),e[16]=o,e[17]=n):n=e[17],n}case"custom":return l.content}}function gl(t){const e=C.c(27),{sections:l,onClose:i,footer:o,additionalContent:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ke,{}),e[0]=a):a=e[0];let r;e[1]!==i?(r=s.jsx(Ge,{onNavigate:i}),e[1]=i,e[2]=r):r=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"flex-1"}),e[3]=d):d=e[3];const c=A();let f;e[4]!==c?(f=c("sidebar.navigationMobile.closeSidebar"),e[4]=c,e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Fe,{size:16}),e[6]=m):m=e[6];let u;e[7]!==i||e[8]!==f?(u=s.jsx(He,{onClick:i,"aria-label":f,children:m}),e[7]=i,e[8]=f,e[9]=u):u=e[9];let p;e[10]!==r||e[11]!==u?(p=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-0.5 px-1.5",children:[a,r,d,u]}),e[10]=r,e[11]=u,e[12]=p):p=e[12];let x;if(e[13]!==i||e[14]!==l){let y;e[16]!==i?(y=(S,j)=>s.jsx(bl,{section:S,onClose:i},j),e[16]=i,e[17]=y):y=e[17],x=l.map(y),e[13]=i,e[14]=l,e[15]=x}else x=e[15];let b;e[18]!==n?(b=n&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:n}),e[18]=n,e[19]=b):b=e[19];let h;e[20]!==b||e[21]!==x?(h=s.jsxs(dt,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[x,b]}),e[20]=b,e[21]=x,e[22]=h):h=e[22];let g;return e[23]!==o||e[24]!==h||e[25]!==p?(g=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[p,h,o]}),e[23]=o,e[24]=h,e[25]=p,e[26]=g):g=e[26],g}function de(t){const e=C.c(26),{item:l,onClose:i}=t;let o;e[0]!==l.className?(o=z("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",l.className),e[0]=l.className,e[1]=o):o=e[1];const n=o;if(l.href){const f=l.external?"_blank":void 0,m=l.external?"noopener noreferrer":void 0;let u;e[2]!==l.icon?(u=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:l.icon}),e[2]=l.icon,e[3]=u):u=e[3];let p;e[4]!==l.label?(p=s.jsx("span",{className:"flex-1",children:l.label}),e[4]=l.label,e[5]=p):p=e[5];let x;return e[6]!==n||e[7]!==l.href||e[8]!==i||e[9]!==f||e[10]!==m||e[11]!==u||e[12]!==p?(x=s.jsxs("a",{href:l.href,target:f,rel:m,className:n,onClick:i,children:[u,p]}),e[6]=n,e[7]=l.href,e[8]=i,e[9]=f,e[10]=m,e[11]=u,e[12]=p,e[13]=x):x=e[13],x}let a;e[14]!==l||e[15]!==i?(a=()=>{l.onClick?.(),i()},e[14]=l,e[15]=i,e[16]=a):a=e[16];let r;e[17]!==l.icon?(r=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:l.icon}),e[17]=l.icon,e[18]=r):r=e[18];let d;e[19]!==l.label?(d=s.jsx("span",{className:"flex-1",children:l.label}),e[19]=l.label,e[20]=d):d=e[20];let c;return e[21]!==n||e[22]!==a||e[23]!==r||e[24]!==d?(c=s.jsxs("button",{type:"button",onClick:a,className:n,children:[r,d]}),e[21]=n,e[22]=a,e[23]=r,e[24]=d,e[25]=c):c=e[25],c}function jl(){const t=C.c(4),e=A();let l;t[0]!==e?(l=e("common.accountPopover.impersonating"),t[0]=e,t[1]=l):l=t[1];let i;return t[2]!==l?(i=s.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-[10px] font-medium text-warning",children:l}),t[2]=l,t[3]=i):i=t[3],i}function Ze(t){const e=C.c(38),{user:l,userImage:i,isImpersonating:o,isMobile:n}=t,a=A(),r=n?"py-4 border-b border-border":"py-3 mx-1 mt-1";let d;e[0]!==r?(d=z("flex items-center gap-3 px-4",r),e[0]=r,e[1]=d):d=e[1];const c=l?.name??"U";let f;e[2]!==c||e[3]!==i?(f=s.jsx(Ie,{url:i,fallback:c,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=c,e[3]=i,e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==l?.name?(m=l?.name??a("common.accountPopover.defaultUserName"),e[5]=a,e[6]=l?.name,e[7]=m):m=e[7];let u;e[8]!==m?(u=s.jsx("p",{className:"text-sm font-medium truncate",children:m}),e[8]=m,e[9]=u):u=e[9];let p;e[10]!==o?(p=o&&s.jsx(jl,{}),e[10]=o,e[11]=p):p=e[11];let x;e[12]!==u||e[13]!==p?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,p]}),e[12]=u,e[13]=p,e[14]=x):x=e[14];const b=l?.email;let h;e[15]!==b?(h=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:b}),e[15]=b,e[16]=h):h=e[16];let g;e[17]!==h||e[18]!==x?(g=s.jsxs("div",{className:"flex-1 min-w-0",children:[x,h]}),e[17]=h,e[18]=x,e[19]=g):g=e[19];let y;e[20]!==a||e[21]!==l?(y=()=>{l?.id&&navigator.clipboard.writeText(l.id).then(()=>{ut.success(a("common.accountPopover.userIdCopied"))})},e[20]=a,e[21]=l,e[22]=y):y=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ws,{size:14}),e[23]=S):S=e[23];let j;e[24]!==y?(j=s.jsx(pt,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:y,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:S})}),e[24]=y,e[25]=j):j=e[25];let v;e[26]!==a?(v=a("common.accountPopover.copyUserId"),e[26]=a,e[27]=v):v=e[27];let w;e[28]!==v?(w=s.jsx(xt,{side:"right",children:s.jsx("p",{className:"text-xs",children:v})}),e[28]=v,e[29]=w):w=e[29];let N;e[30]!==j||e[31]!==w?(N=s.jsx(ht,{delayDuration:300,children:s.jsxs(bt,{children:[j,w]})}),e[30]=j,e[31]=w,e[32]=N):N=e[32];let _;return e[33]!==g||e[34]!==N||e[35]!==d||e[36]!==f?(_=s.jsxs("div",{className:d,children:[f,g,N]}),e[33]=g,e[34]=N,e[35]=d,e[36]=f,e[37]=_):_=e[37],_}function et(t){const e=C.c(35),{themeOptions:l,preferences:i,setPreferences:o,isMobile:n}=t,a=A(),r=n?"size-8":"size-7",d=n?"px-3 py-3":"px-2 py-1.5";let c;e[0]!==d?(c=z("flex items-center justify-between border-t border-border/50",d),e[0]=d,e[1]=c):c=e[1];let f;if(e[2]!==r||e[3]!==i.theme||e[4]!==o||e[5]!==l){let v;e[7]!==r||e[8]!==i.theme||e[9]!==o?(v=w=>{const{value:N,icon:_,label:k}=w;return s.jsx("button",{type:"button","aria-label":k,onClick:()=>o($=>({...$,theme:N})),className:z(r,"rounded-md flex items-center justify-center transition-colors",i.theme===N?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:_},N)},e[7]=r,e[8]=i.theme,e[9]=o,e[10]=v):v=e[10],f=l.map(v),e[2]=r,e[3]=i.theme,e[4]=o,e[5]=l,e[6]=f}else f=e[6];let m;e[11]!==f?(m=s.jsx("div",{className:"flex items-center gap-0.5",children:f}),e[11]=f,e[12]=m):m=e[12];let u;e[13]!==i.enableSounds||e[14]!==a?(u=i.enableSounds?a("common.accountPopover.disableSounds"):a("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=a,e[15]=u):u=e[15];let p;e[16]!==o?(p=()=>o(vl),e[16]=o,e[17]=p):p=e[17];const x=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let b;e[18]!==r||e[19]!==x?(b=z(r,"rounded-md flex items-center justify-center transition-colors",x),e[18]=r,e[19]=x,e[20]=b):b=e[20];let h;e[21]!==i.enableSounds?(h=i.enableSounds?s.jsx(Ds,{size:14}):s.jsx(Ms,{size:14}),e[21]=i.enableSounds,e[22]=h):h=e[22];let g;e[23]!==u||e[24]!==p||e[25]!==b||e[26]!==h?(g=s.jsx("button",{type:"button","aria-label":u,onClick:p,className:b,children:h}),e[23]=u,e[24]=p,e[25]=b,e[26]=h,e[27]=g):g=e[27];let y;e[28]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.260.11"]}),e[28]=y):y=e[28];let S;e[29]!==g?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[g,y]}),e[29]=g,e[30]=S):S=e[30];let j;return e[31]!==S||e[32]!==c||e[33]!==m?(j=s.jsxs("div",{className:c,children:[m,S]}),e[31]=S,e[32]=c,e[33]=m,e[34]=j):j=e[34],j}function vl(t){return{...t,enableSounds:!t.enableSounds}}function tt(t){const e=C.c(54),{user:l,userImage:i,menuItems:o,signOutItem:n,stopImpersonatingItem:a,isImpersonating:r,themeOptions:d,preferences:c,setPreferences:f,close:m,isMobile:u}=t;if(u){let j;e[0]!==r||e[1]!==l||e[2]!==i?(j=s.jsx(Ze,{user:l,userImage:i,isImpersonating:r,isMobile:!0}),e[0]=r,e[1]=l,e[2]=i,e[3]=j):j=e[3];let v;if(e[4]!==m||e[5]!==o){let D;e[7]!==m?(D=M=>s.jsx(de,{item:M,onClose:m},M.key),e[7]=m,e[8]=D):D=e[8],v=o.map(D),e[4]=m,e[5]=o,e[6]=v}else v=e[6];let w;e[9]!==m||e[10]!==a?(w=a&&s.jsx(de,{item:a,onClose:m}),e[9]=m,e[10]=a,e[11]=w):w=e[11];let N;e[12]!==m||e[13]!==n?(N=s.jsx(de,{item:n,onClose:m}),e[12]=m,e[13]=n,e[14]=N):N=e[14];let _;e[15]!==v||e[16]!==w||e[17]!==N?(_=s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[v,w,N]})}),e[15]=v,e[16]=w,e[17]=N,e[18]=_):_=e[18];let k;e[19]!==c||e[20]!==f||e[21]!==d?(k=s.jsx(et,{themeOptions:d,preferences:c,setPreferences:f,isMobile:!0}),e[19]=c,e[20]=f,e[21]=d,e[22]=k):k=e[22];let $;return e[23]!==j||e[24]!==_||e[25]!==k?($=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[j,_,k]}),e[23]=j,e[24]=_,e[25]=k,e[26]=$):$=e[26],$}let p;e[27]!==r||e[28]!==l||e[29]!==i?(p=s.jsx(Ze,{user:l,userImage:i,isImpersonating:r,isMobile:!1}),e[27]=r,e[28]=l,e[29]=i,e[30]=p):p=e[30];let x;if(e[31]!==m||e[32]!==o){let j;e[34]!==m?(j=v=>s.jsx(de,{item:v,onClose:m},v.key),e[34]=m,e[35]=j):j=e[35],x=o.map(j),e[31]=m,e[32]=o,e[33]=x}else x=e[33];let b;e[36]!==m||e[37]!==a?(b=a&&s.jsx(de,{item:a,onClose:m}),e[36]=m,e[37]=a,e[38]=b):b=e[38];let h;e[39]!==m||e[40]!==n?(h=s.jsx(de,{item:n,onClose:m}),e[39]=m,e[40]=n,e[41]=h):h=e[41];let g;e[42]!==x||e[43]!==b||e[44]!==h?(g=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[x,b,h]}),e[42]=x,e[43]=b,e[44]=h,e[45]=g):g=e[45];let y;e[46]!==c||e[47]!==f||e[48]!==d?(y=s.jsx(et,{themeOptions:d,preferences:c,setPreferences:f,isMobile:!1}),e[46]=c,e[47]=f,e[48]=d,e[49]=y):y=e[49];let S;return e[50]!==p||e[51]!==g||e[52]!==y?(S=s.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:s.jsxs("div",{className:"flex flex-col",children:[p,g,y]})}),e[50]=p,e[51]=g,e[52]=y,e[53]=S):S=e[53],S}function Ee(){const t=C.c(107),e=A(),{data:l}=ue.useSession(),{org:i}=G(),o=Y();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org",shouldThrow:!1},t[0]=n):n=t[0];const r=Ut(n)?.params.org,[d,c]=Bt(),f=ft(),{isAdmin:m}=Hs(),u=Ws(),[p,x]=L.useState(!1),[b,h]=L.useState(!1),g=l?.user,y=g?.image,S=!!l?.session?.impersonatedBy;let j;t[1]===Symbol.for("react.memo_cache_sentinel")?(j=()=>x(!1),t[1]=j):j=t[1];const v=j;let w;t[2]!==e?(w=e("common.accountPopover.preferences"),t[2]=e,t[3]=w):w=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx($e,{size:16}),t[4]=N):N=t[4];let _;t[5]!==o||t[6]!==r?(_=()=>{o({to:"/$org/settings/profile",params:{org:r??""}})},t[5]=o,t[6]=r,t[7]=_):_=t[7];let k;t[8]!==w||t[9]!==_?(k={key:"preferences",label:w,icon:N,onClick:_},t[8]=w,t[9]=_,t[10]=k):k=t[10];let $;t[11]!==i||t[12]!==o?($=i?[{key:"connect-clients",label:"Connect to Agents",icon:s.jsx(Ts,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=o,t[13]=$):$=t[13];let D;t[14]!==u||t[15]!==e?(D=(os()||Xe())&&!u?[{key:"install-desktop-app",label:Xe()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:s.jsx(ks,{size:16}),onClick:()=>h(!0)}]:[],t[14]=u,t[15]=e,t[16]=D):D=t[16];let M;t[17]!==e?(M=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=M):M=t[18];let I;t[19]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx($s,{size:16}),t[19]=I):I=t[19];let O;t[20]!==M?(O={key:"terms",label:M,icon:I,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=M,t[21]=O):O=t[21];let P;t[22]!==e?(P=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=P):P=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Us,{size:16}),t[24]=B):B=t[24];let R;t[25]!==P?(R={key:"privacy",label:P,icon:B,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=P,t[26]=R):R=t[26];let F;t[27]!==e?(F=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=F):F=t[28];let H;t[29]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Gt,{className:"w-4 h-4"}),t[29]=H):H=t[29];let X;t[30]!==F?(X={key:"github",label:F,icon:H,href:"https://github.com/decocms/studio",external:!0},t[30]=F,t[31]=X):X=t[31];let q;t[32]!==e?(q=e("common.accountPopover.community"),t[32]=e,t[33]=q):q=t[33];let pe;t[34]===Symbol.for("react.memo_cache_sentinel")?(pe=s.jsx(Gs,{size:16}),t[34]=pe):pe=t[34];let Q;t[35]!==q?(Q={key:"community",label:q,icon:pe,href:"https://decocms.com/discord",external:!0},t[35]=q,t[36]=Q):Q=t[36];let J;t[37]!==e?(J=e("common.accountPopover.homepage"),t[37]=e,t[38]=J):J=t[38];let xe;t[39]===Symbol.for("react.memo_cache_sentinel")?(xe=s.jsx(Es,{size:16}),t[39]=xe):xe=t[39];let Z;t[40]!==J?(Z={key:"homepage",label:J,icon:xe,href:"https://decocms.com",external:!0},t[40]=J,t[41]=Z):Z=t[41];let ee;t[42]!==m||t[43]!==o||t[44]!==e?(ee=m?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:s.jsx(Bs,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[42]=m,t[43]=o,t[44]=e,t[45]=ee):ee=t[45];let he;t[46]!==O||t[47]!==R||t[48]!==X||t[49]!==Q||t[50]!==Z||t[51]!==ee||t[52]!==k||t[53]!==$||t[54]!==D?(he=[k,...$,...D,O,R,X,Q,Z,...ee],t[46]=O,t[47]=R,t[48]=X,t[49]=Q,t[50]=Z,t[51]=ee,t[52]=k,t[53]=$,t[54]=D,t[55]=he):he=t[55];const De=he;let te;t[56]!==e?(te=e("common.accountPopover.signOut"),t[56]=e,t[57]=te):te=t[57];let be;t[58]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx(Qe,{size:16}),t[58]=be):be=t[58];let ge;t[59]!==te?(ge={key:"logout",label:te,icon:be,onClick:yl},t[59]=te,t[60]=ge):ge=t[60];const Me=ge;let je;t[61]!==S||t[62]!==e?(je=S?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:s.jsx(Qe,{size:16}),onClick:async()=>{const{error:Ke}=await ue.admin.stopImpersonating();if(Ke){ut.error(Ke.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=S,t[62]=e,t[63]=je):je=t[63];const Oe=je;let ve;t[64]===Symbol.for("react.memo_cache_sentinel")?(ve=s.jsx(Fs,{size:14}),t[64]=ve):ve=t[64];let se;t[65]!==e?(se=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=se):se=t[66];let le;t[67]!==se?(le={value:"light",icon:ve,label:se},t[67]=se,t[68]=le):le=t[68];let Se;t[69]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx(Ls,{size:14}),t[69]=Se):Se=t[69];let oe;t[70]!==e?(oe=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=oe):oe=t[71];let ie;t[72]!==oe?(ie={value:"dark",icon:Se,label:oe},t[72]=oe,t[73]=ie):ie=t[73];let ye;t[74]===Symbol.for("react.memo_cache_sentinel")?(ye=s.jsx(Rs,{size:14}),t[74]=ye):ye=t[74];let ne;t[75]!==e?(ne=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=ne):ne=t[76];let re;t[77]!==ne?(re={value:"system",icon:ye,label:ne},t[77]=ne,t[78]=re):re=t[78];let _e;t[79]!==le||t[80]!==ie||t[81]!==re?(_e=[le,ie,re],t[79]=le,t[80]=ie,t[81]=re,t[82]=_e):_e=t[82];const Pe=_e;let Ne;t[83]!==S||t[84]!==f||t[85]!==De||t[86]!==d||t[87]!==c||t[88]!==Me||t[89]!==Oe||t[90]!==Pe||t[91]!==g||t[92]!==y?(Ne={user:g,userImage:y,menuItems:De,signOutItem:Me,stopImpersonatingItem:Oe,isImpersonating:S,themeOptions:Pe,preferences:d,setPreferences:c,close:v,isMobile:f},t[83]=S,t[84]=f,t[85]=De,t[86]=d,t[87]=c,t[88]=Me,t[89]=Oe,t[90]=Pe,t[91]=g,t[92]=y,t[93]=Ne):Ne=t[93];const Ce=Ne;let ae;t[94]!==S||t[95]!==f||t[96]!==p||t[97]!==Ce||t[98]!==e||t[99]!==g?.name||t[100]!==y?(ae=f?s.jsxs(_s,{open:p,onOpenChange:x,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>x(!0),className:z("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",S&&"border-2 border-dashed border-warning"),children:[s.jsx(Ie,{url:y,fallback:g?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:g?.name??e("common.accountPopover.defaultAccountLabel")})]}),s.jsxs(Ns,{className:"h-[80dvh] p-0",children:[s.jsx(Cs,{className:"sr-only",children:e("common.accountPopover.account")}),s.jsx(tt,{...Ce})]})]}):s.jsxs(vs,{open:p,onOpenChange:x,children:[s.jsx(Ss,{asChild:!0,children:s.jsxs(E,{tooltip:g?.name??e("common.accountPopover.defaultAccountLabel"),className:z("rounded-md",S&&"border-2 border-dashed border-warning"),children:[s.jsx(Ie,{url:y,fallback:g?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:g?.name??e("common.accountPopover.defaultAccountLabel")})]})}),s.jsx(ys,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Sl,children:s.jsx(tt,{...Ce})})]}),t[94]=S,t[95]=f,t[96]=p,t[97]=Ce,t[98]=e,t[99]=g?.name,t[100]=y,t[101]=ae):ae=t[101];let ce;t[102]!==b?(ce=s.jsx(is,{open:b,onOpenChange:h}),t[102]=b,t[103]=ce):ce=t[103];let we;return t[104]!==ae||t[105]!==ce?(we=s.jsxs(s.Fragment,{children:[ae,ce]}),t[104]=ae,t[105]=ce,t[106]=we):we=t[106],we}function Sl(t){return t.preventDefault()}function yl(){V("signed_out",{source:"account_popover"}),Ht(),ue.signOut()}class _l extends L.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,l){}render(){return this.state.hasError?null:this.props.children}}function Nl(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Cl(){const t=C.c(17),e=Y(),{org:l}=G(),{hasDecoKey:i,balanceDollars:o}=us();if(!i)return null;let n;t[0]!==o?(n=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=n):n=t[1];let a;t[2]!==o?(a=z(o!=null&&Nl(o)),t[2]=o,t[3]=a):a=t[3];let r;t[4]!==e||t[5]!==l.slug?(r=()=>e({to:"/$org/settings/ai-providers",params:{org:l.slug}}),t[4]=e,t[5]=l.slug,t[6]=r):r=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Os,{}),t[7]=d):d=t[7];let c;t[8]!==o?(c=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=c):c=t[9];let f;t[10]!==c?(f=s.jsx("span",{children:c}),t[10]=c,t[11]=f):f=t[11];let m;return t[12]!==n||t[13]!==a||t[14]!==r||t[15]!==f?(m=s.jsx(U,{children:s.jsx(T,{children:s.jsxs(E,{tooltip:n,className:a,onClick:r,children:[d,f]})})}),t[12]=n,t[13]=a,t[14]=r,t[15]=f,t[16]=m):m=t[16],m}function st(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(_l,{children:s.jsx(L.Suspense,{fallback:null,children:s.jsx(Cl,{})})}),t[0]=e):e=t[0],e}function wl(){const t=C.c(14),e=A(),l=Y(),{org:i}=G();let o;t[0]!==e?(o=e("sidebar.sidebarFooter.settings"),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==l||t[3]!==i.slug?(n=()=>l({to:"/$org/settings",params:{org:i.slug}}),t[2]=l,t[3]=i.slug,t[4]=n):n=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx($e,{}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("sidebar.sidebarFooter.settings"),t[6]=e,t[7]=r):r=t[7];let d;t[8]!==r?(d=s.jsx("span",{children:r}),t[8]=r,t[9]=d):d=t[9];let c;return t[10]!==o||t[11]!==n||t[12]!==d?(c=s.jsxs(E,{tooltip:o,onClick:n,children:[a,d]}),t[10]=o,t[11]=n,t[12]=d,t[13]=c):c=t[13],c}function kl(){const t=C.c(9),e=A(),l=Y(),{org:i}=G();let o;t[0]!==e?(o=e("sidebar.sidebarFooter.settings"),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==l||t[3]!==i.slug?(n=()=>l({to:"/$org/settings",params:{org:i.slug}}),t[2]=l,t[3]=i.slug,t[4]=n):n=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx($e,{size:15}),t[5]=a):a=t[5];let r;return t[6]!==o||t[7]!==n?(r=s.jsx("button",{type:"button","aria-label":o,onClick:n,className:"shrink-0 flex items-center justify-center size-7 rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",children:a}),t[6]=o,t[7]=n,t[8]=r):r=t[8],r}function lt(){const t=C.c(29),e=A(),[l,i]=L.useState(!1);let o;t[0]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=o):o=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Nt,{}),t[2]=n):n=t[2];let a;t[3]!==e?(a=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=a):a=t[4];let r;t[5]!==a?(r=s.jsx("span",{children:a}),t[5]=a,t[6]=r):r=t[6];let d;t[7]!==o||t[8]!==r?(d=s.jsx(T,{children:s.jsx(Ct,{trigger:s.jsxs(E,{tooltip:o,children:[n,r]})})}),t[7]=o,t[8]=r,t[9]=d):d=t[9];let c;t[10]!==e?(c=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=c):c=t[11];let f,m;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>i(!0),m=s.jsx(Vs,{}),t[12]=f,t[13]=m):(f=t[12],m=t[13]);let u;t[14]!==e?(u=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=u):u=t[15];let p;t[16]!==u?(p=s.jsx("span",{children:u}),t[16]=u,t[17]=p):p=t[17];let x;t[18]!==c||t[19]!==p?(x=s.jsx(T,{children:s.jsxs(E,{tooltip:c,onClick:f,children:[m,p]})}),t[18]=c,t[19]=p,t[20]=x):x=t[20];let b;t[21]!==x||t[22]!==d?(b=s.jsxs(U,{className:"gap-0.5",children:[d,x]}),t[21]=x,t[22]=d,t[23]=b):b=t[23];let h;t[24]!==l?(h=s.jsx(ps,{open:l,onOpenChange:i,mode:"browse"}),t[24]=l,t[25]=h):h=t[25];let g;return t[26]!==b||t[27]!==h?(g=s.jsxs(s.Fragment,{children:[b,h]}),t[26]=b,t[27]=h,t[28]=g):g=t[28],g}function ot(){const t=C.c(10),e=A();let l;t[0]!==e?(l=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=l):l=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Nt,{}),t[2]=i):i=t[2];let o;t[3]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=o):o=t[4];let n;t[5]!==o?(n=s.jsx("span",{children:o}),t[5]=o,t[6]=n):n=t[6];let a;return t[7]!==l||t[8]!==n?(a=s.jsx(U,{className:"gap-0.5",children:s.jsx(T,{children:s.jsx(Ct,{trigger:s.jsxs(E,{tooltip:l,children:[i,n]})})})}),t[7]=l,t[8]=n,t[9]=a):a=t[9],a}function $l(){const t=C.c(17),{state:e}=K(),l=e==="collapsed",i=Ue(),o=!i;if(l){let c;t[0]!==o?(c=o&&s.jsx(st,{}),t[0]=o,t[1]=c):c=t[1];let f;t[2]!==i?(f=i?s.jsx(ot,{}):s.jsx(lt,{}),t[2]=i,t[3]=f):f=t[3];let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(T,{children:s.jsx(wl,{})}),t[4]=m):m=t[4];let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs(U,{children:[m,s.jsx(T,{children:s.jsx(Ee,{})})]}),t[5]=u):u=t[5];let p;return t[6]!==c||t[7]!==f?(p=s.jsxs(Ae,{className:"px-2 pb-3 gap-1",children:[c,f,u]}),t[6]=c,t[7]=f,t[8]=p):p=t[8],p}let n;t[9]!==o?(n=o&&s.jsx(st,{}),t[9]=o,t[10]=n):n=t[10];let a;t[11]!==i?(a=i?s.jsx(ot,{}):s.jsx(lt,{}),t[11]=i,t[12]=a):a=t[12];let r;t[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(U,{className:"gap-0.5",children:s.jsx(T,{children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ee,{})}),s.jsx(kl,{})]})})}),t[13]=r):r=t[13];let d;return t[14]!==n||t[15]!==a?(d=s.jsxs(Ae,{className:"px-2 pb-3 gap-0.5",children:[n,a,r]}),t[14]=n,t[15]=a,t[16]=d):d=t[16],d}function Dl(){const t=C.c(11),e=A(),l=Y(),{org:i}=G(),{setOpenMobile:o}=K();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(U,{children:s.jsx(T,{children:s.jsx(Ee,{})})})}),t[0]=n):n=t[0];let a;t[1]!==e?(a=e("sidebar.sidebarFooterMobile.settings"),t[1]=e,t[2]=a):a=t[2];let r;t[3]!==l||t[4]!==i.slug||t[5]!==o?(r=()=>{l({to:"/$org/settings",params:{org:i.slug}}),o(!1)},t[3]=l,t[4]=i.slug,t[5]=o,t[6]=r):r=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx($e,{className:"size-4"}),t[7]=d):d=t[7];let c;return t[8]!==a||t[9]!==r?(c=s.jsx(Ae,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[n,s.jsx(He,{"aria-label":a,onClick:r,children:d})]})}),t[8]=a,t[9]=r,t[10]=c):c=t[10],c}function it(t){const e=C.c(15),{className:l,wrapperClassName:i,children:o}=t,[n,a]=L.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=g=>{g&&a(g.scrollHeight>g.clientHeight+1)},e[0]=r):r=e[0];const d=r;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=g=>{const y=g.currentTarget;a(y.scrollHeight-y.scrollTop>y.clientHeight+1)},e[1]=c):c=e[1];const f=c;let m;e[2]!==i?(m=z("relative",i),e[2]=i,e[3]=m):m=e[3];let u;e[4]!==o||e[5]!==l?(u=s.jsx("div",{ref:d,onScroll:f,className:l,children:o}),e[4]=o,e[5]=l,e[6]=u):u=e[6];const p=n?"opacity-100":"opacity-0";let x;e[7]!==p?(x=z("pointer-events-none absolute right-0 bottom-0 left-0 h-10 bg-gradient-to-t from-sidebar to-transparent transition-opacity duration-150",p),e[7]=p,e[8]=x):x=e[8];let b;e[9]!==x?(b=s.jsx("div",{"aria-hidden":!0,className:x}),e[9]=x,e[10]=b):b=e[10];let h;return e[11]!==m||e[12]!==u||e[13]!==b?(h=s.jsxs("div",{className:m,children:[u,b]}),e[11]=m,e[12]=u,e[13]=b,e[14]=h):h=e[14],h}function nt(t){const e=C.c(17),{label:l,onClick:i,active:o,children:n}=t,[a,r]=L.useState(!1);let d,c,f,m;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>r(!0),c=()=>r(!1),f=()=>r(!0),m=()=>r(!1),e[0]=d,e[1]=c,e[2]=f,e[3]=m):(d=e[0],c=e[1],f=e[2],m=e[3]);const u=o&&"bg-sidebar-accent text-foreground";let p;e[4]!==u?(p=z("md:size-[34px] rounded-lg",u),e[4]=u,e[5]=p):p=e[5];let x;e[6]!==n||e[7]!==l||e[8]!==i||e[9]!==p?(x=s.jsx(pt,{asChild:!0,children:s.jsx(He,{"aria-label":l,onClick:i,onPointerEnter:d,onPointerLeave:c,onFocus:f,onBlur:m,className:p,children:n})}),e[6]=n,e[7]=l,e[8]=i,e[9]=p,e[10]=x):x=e[10];let b;e[11]!==l?(b=s.jsx(xt,{side:"bottom",children:l}),e[11]=l,e[12]=b):b=e[12];let h;return e[13]!==a||e[14]!==x||e[15]!==b?(h=s.jsxs(bt,{open:a,children:[x,b]}),e[13]=a,e[14]=x,e[15]=b,e[16]=h):h=e[16],h}function Ml(t){const e=C.c(61);let l;e[0]!==t?(l=t===void 0?{}:t,e[0]=t,e[1]=l):l=e[1];const{onNavigate:i}=l,o=A(),{org:n}=G();let a;e[2]!==i?(a={onNavigate:i},e[2]=i,e[3]=a):a=e[3];const r=xs(a),{state:d,isMobile:c,toggleSidebar:f}=K();if(d==="collapsed"&&!c){let S;e[4]!==n?(S=s.jsx(_t,{org:n,size:"sm"}),e[4]=n,e[5]=S):S=e[5];let j;e[6]!==n.name||e[7]!==S?(j=s.jsx(E,{tooltip:n.name,children:S}),e[6]=n.name,e[7]=S,e[8]=j):j=e[8];let v;e[9]!==n.slug||e[10]!==j?(v=s.jsx("div",{className:"flex h-12 shrink-0 items-center justify-center",children:s.jsx(yt,{orgParam:n.slug,side:"right",align:"start",trigger:j})}),e[9]=n.slug,e[10]=j,e[11]=v):v=e[11];let w;e[12]!==o?(w=o("sidebar.taskGroupsList.toggleSidebar"),e[12]=o,e[13]=w):w=e[13];let N;e[14]!==o?(N=o("sidebar.taskGroupsList.toggleSidebar"),e[14]=o,e[15]=N):N=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Fe,{size:16}),e[16]=_):_=e[16];let k;e[17]!==w||e[18]!==N||e[19]!==f?(k=s.jsx(T,{children:s.jsx(E,{"aria-label":w,tooltip:N,onClick:f,children:_})}),e[17]=w,e[18]=N,e[19]=f,e[20]=k):k=e[20];let $;e[21]!==o?($=o("sidebar.taskGroupsList.searchChats"),e[21]=o,e[22]=$):$=e[22];let D;e[23]!==o?(D=o("sidebar.taskGroupsList.searchChats"),e[23]=o,e[24]=D):D=e[24];let M;e[25]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(qe,{size:16}),e[25]=M):M=e[25];let I;e[26]!==r.openSearch||e[27]!==$||e[28]!==D?(I=s.jsx(T,{children:s.jsx(E,{"aria-label":$,tooltip:D,onClick:r.openSearch,children:M})}),e[26]=r.openSearch,e[27]=$,e[28]=D,e[29]=I):I=e[29];let O;e[30]!==I||e[31]!==k?(O=s.jsxs(U,{className:"mt-2 min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[k,I]}),e[30]=I,e[31]=k,e[32]=O):O=e[32];let P;return e[33]!==r.reclaimDialog||e[34]!==r.searchDialog||e[35]!==O||e[36]!==v?(P=s.jsxs("div",{className:"flex flex-col min-h-0 flex-1 -mt-1 w-[calc(var(--sidebar-width-icon)-1rem)]",children:[v,O,r.searchDialog,r.reclaimDialog]}),e[33]=r.reclaimDialog,e[34]=r.searchDialog,e[35]=O,e[36]=v,e[37]=P):P=e[37],P}let u;e[38]!==r||e[39]!==o?(u=S=>s.jsx(ht,{delayDuration:300,children:s.jsxs("div",{className:z("shrink-0 flex items-center justify-between",S?"h-10":"h-10 md:h-[34px] mb-2"),children:[s.jsxs("div",{className:"flex items-center gap-0.5",children:[!S&&s.jsx(We,{className:"md:size-[34px] rounded-lg"}),s.jsx(hs,{panel:r})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(nt,{label:o("sidebar.taskGroupsList.searchChats"),onClick:r.openSearch,children:s.jsx(qe,{size:16})}),s.jsx(nt,{label:o("sidebar.taskGroupsList.newChat"),onClick:r.newThread,children:s.jsx(Ps,{size:16})})]})]})}),e[38]=r,e[39]=o,e[40]=u):u=e[40];const p=u;let x;e[41]!==r?(x=s.jsx(bs,{panel:r}),e[41]=r,e[42]=x):x=e[42];const b=x;if(c){let S;e[43]!==p?(S=p(!0),e[43]=p,e[44]=S):S=e[44];let j;e[45]!==b?(j=s.jsx(it,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain px-1 h-full",children:b}),e[45]=b,e[46]=j):j=e[46];let v;return e[47]!==r.reclaimDialog||e[48]!==r.searchDialog||e[49]!==S||e[50]!==j?(v=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[S,j,r.searchDialog,r.reclaimDialog]}),e[47]=r.reclaimDialog,e[48]=r.searchDialog,e[49]=S,e[50]=j,e[51]=v):v=e[51],v}let h;e[52]!==p?(h=p(!1),e[52]=p,e[53]=h):h=e[53];let g;e[54]!==b?(g=s.jsx("div",{className:"flex-1 min-h-0 flex flex-col gap-0.5 -mr-2 pr-2",children:s.jsx(it,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain h-full",children:b})}),e[54]=b,e[55]=g):g=e[55];let y;return e[56]!==r.reclaimDialog||e[57]!==r.searchDialog||e[58]!==h||e[59]!==g?(y=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[h,g,r.searchDialog,r.reclaimDialog]}),e[56]=r.reclaimDialog,e[57]=r.searchDialog,e[58]=h,e[59]=g,e[60]=y):y=e[60],y}const Ol=5,Pl=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function zl(){const t=C.c(3),{state:e}=K();if(e==="collapsed"){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:Ol}).map(El)}),t[0]=o):o=t[0],o}let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(W,{className:"size-6 rounded-md"}),s.jsx(W,{className:"size-6 rounded-md"}),s.jsx(W,{className:"size-6 rounded-md"})]}),s.jsx(W,{className:"h-6 w-20 rounded-md"})]}),t[1]=l):l=t[1];let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[l,s.jsx("div",{className:"flex flex-col gap-0.5",children:Pl.map(Al)})]}),t[2]=i):i=t[2],i}function Al(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(W,{className:"size-5 rounded-full shrink-0"}),s.jsx(W,{className:z("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(Il)})]},e)}function Il(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(W,{className:"h-3 flex-1 rounded-sm"})},e)}function El(t,e){return s.jsx(W,{className:"size-10 rounded-lg mx-auto"},e)}function Tl(){const t=C.c(2),{org:e}=G();let l;return t[0]!==e.id?(l=cs(e.id),t[0]=e.id,t[1]=l):l=t[1],l.id}function Rl(t){const e=C.c(38);let l;e[0]!==t?(l=t===void 0?{}:t,e[0]=t,e[1]=l):l=e[1];const{onNavigate:i}=l,o=A(),n=Y();let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[2]=a):a=e[2];const r=Le(a),{diagnostic:d,connectionId:c}=gs(),f=Tl(),{threads:m}=wt(),{data:u}=ue.useSession(),{setTaskId:p,createNewTask:x}=kt(),b=js(),h=!r.virtualmcpid||r.virtualmcpid===f;let g;e[3]!==x||e[4]!==f||e[5]!==n||e[6]!==i||e[7]!==h||e[8]!==b||e[9]!==u?.user?.id||e[10]!==p||e[11]!==m?(g=_=>{if(V("nav_destination_clicked",{destination:_}),i?.(),h){n({to:".",search:$=>({...$,main:_}),replace:!0});return}const k=$t(m,f,u?.user?.id,b(f));k?p(k.id,f,{main:_}):x(f,void 0,{main:_})},e[3]=x,e[4]=f,e[5]=n,e[6]=i,e[7]=h,e[8]=b,e[9]=u?.user?.id,e[10]=p,e[11]=m,e[12]=g):g=e[12];const y=g,S=r.main===0||!r.main?h?"overview":null:r.main;let j;e[13]!==S||e[14]!==y?(j=(_,k,$)=>({key:_,label:k,icon:$,isActive:S===_,onSelect:()=>y(_)}),e[13]=S,e[14]=y,e[15]=j):j=e[15];const v=j;let w;if(e[16]!==v||e[17]!==o){let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(zs,{size:16}),e[19]=_):_=e[19],w=v("overview",o("sidebar.navDestinations.home"),_),e[16]=v,e[17]=o,e[18]=w}else w=e[18];let N;if(e[20]!==c||e[21]!==v||e[22]!==d||e[23]!==o||e[24]!==w){N=[w];let _;if(e[26]!==c||e[27]!==v||e[28]!==d||e[29]!==o){let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(As,{size:16}),e[31]=D):D=e[31],_=v(d?gt(c,jt):"reports",o("sidebar.navDestinations.reports"),D),e[26]=c,e[27]=v,e[28]=d,e[29]=o,e[30]=_}else _=e[30];N.push(_);let k,$;if(e[32]!==v||e[33]!==o){let D;e[36]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Ks,{size:16}),e[36]=D):D=e[36],k=v("board",o("sidebar.navDestinations.tasks"),D);let M;e[37]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Xs,{size:16}),e[37]=M):M=e[37],$=v("files",o("sidebar.navDestinations.library"),M),e[32]=v,e[33]=o,e[34]=k,e[35]=$}else k=e[34],$=e[35];N.push(k,$),e[20]=c,e[21]=v,e[22]=d,e[23]=o,e[24]=w,e[25]=N}else N=e[25];return N}function Fl(t){const e=C.c(10);let l;e[0]!==t?(l=t===void 0?{}:t,e[0]=t,e[1]=l):l=e[1];const{onNavigate:i}=l;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[2]=o):o=e[2];const n=Le(o),a=qs()??[],{threads:r}=wt(),{data:d}=ue.useSession(),{setTaskId:c,createNewTask:f}=kt();let m;return e[3]!==f||e[4]!==i||e[5]!==n||e[6]!==d?.user?.id||e[7]!==c||e[8]!==r?(m=u=>{const p=Js(u);return{key:u.id,label:u.title||p?.name||"",icon:s.jsx(Is,{icon:u.icon,name:u.title,size:"2xs",className:"shrink-0"}),isActive:n.virtualmcpid===u.id,onSelect:()=>{V("nav_destination_clicked",{destination:"coding_agent"}),i?.();const x=$t(r,u.id,d?.user?.id,el(u.metadata));x?c(x.id,u.id):f(u.id)}}},e[3]=f,e[4]=i,e[5]=n,e[6]=d?.user?.id,e[7]=c,e[8]=r,e[9]=m):m=e[9],a.filter(Ll).map(m)}function Ll(t){return Qs(t.metadata)}function Ul(t){const e=C.c(18),{onNavigate:l}=t;let i;e[0]!==l?(i={onNavigate:l},e[0]=l,e[1]=i):i=e[1];const o=Rl(i);let n;e[2]!==l?(n={onNavigate:l},e[2]=l,e[3]=n):n=e[3];const a=Fl(n),{state:r,isMobile:d}=K(),c=r==="collapsed"&&!d;let f;e[4]!==c?(f=h=>s.jsx(T,{children:s.jsxs(E,{onClick:h.onSelect,isActive:h.isActive,"aria-current":h.isActive?"page":void 0,tooltip:c?h.label:void 0,children:[h.icon,s.jsx("span",{className:"truncate",children:h.label})]})},h.key),e[4]=c,e[5]=f):f=e[5];const m=f;let u;e[6]!==o||e[7]!==m?(u=o.map(m),e[6]=o,e[7]=m,e[8]=u):u=e[8];let p;e[9]!==a.length?(p=a.length>0&&s.jsx("li",{"aria-hidden":!0,className:"h-2"}),e[9]=a.length,e[10]=p):p=e[10];let x;e[11]!==a||e[12]!==m?(x=a.map(m),e[11]=a,e[12]=m,e[13]=x):x=e[13];let b;return e[14]!==u||e[15]!==p||e[16]!==x?(b=s.jsxs(U,{className:"gap-1",children:[u,p,x]}),e[14]=u,e[15]=p,e[16]=x,e[17]=b):b=e[17],b}function Bl(t){const e=C.c(29);let l;e[0]!==t?(l=t===void 0?{}:t,e[0]=t,e[1]=l):l=e[1];const{onNavigate:i}=l,o=A(),{org:n}=G(),{state:a,isMobile:r,toggleSidebar:d}=K(),c=a==="collapsed"&&!r;let f;e[2]!==i?(f=s.jsx(Ul,{onNavigate:i}),e[2]=i,e[3]=f):f=e[3];const m=f;if(c){let p;e[4]!==n?(p=s.jsx(_t,{org:n,size:"sm"}),e[4]=n,e[5]=p):p=e[5];let x;e[6]!==n.name||e[7]!==p?(x=s.jsx(E,{tooltip:n.name,children:p}),e[6]=n.name,e[7]=p,e[8]=x):x=e[8];let b;e[9]!==n.slug||e[10]!==x?(b=s.jsx("div",{className:"flex h-12 shrink-0 items-center justify-center",children:s.jsx(yt,{orgParam:n.slug,side:"right",align:"start",trigger:x})}),e[9]=n.slug,e[10]=x,e[11]=b):b=e[11];let h;e[12]!==o?(h=o("sidebar.taskGroupsList.toggleSidebar"),e[12]=o,e[13]=h):h=e[13];let g;e[14]!==o?(g=o("sidebar.taskGroupsList.toggleSidebar"),e[14]=o,e[15]=g):g=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Fe,{size:16}),e[16]=y):y=e[16];let S;e[17]!==h||e[18]!==g||e[19]!==d?(S=s.jsx(U,{className:"mt-2 gap-1.5",children:s.jsx(T,{children:s.jsx(E,{"aria-label":h,tooltip:g,onClick:d,children:y})})}),e[17]=h,e[18]=g,e[19]=d,e[20]=S):S=e[20];let j;e[21]!==m?(j=s.jsx("div",{className:"mt-1.5 min-h-0 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:m}),e[21]=m,e[22]=j):j=e[22];let v;return e[23]!==j||e[24]!==b||e[25]!==S?(v=s.jsxs("div",{className:"flex flex-col min-h-0 flex-1 -mt-1 w-[calc(var(--sidebar-width-icon)-1rem)]",children:[b,S,j]}),e[23]=j,e[24]=b,e[25]=S,e[26]=v):v=e[26],v}let u;return e[27]!==m?(u=s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:m})}),e[27]=m,e[28]=u):u=e[28],u}function Gl(){const t=C.c(3),e=Ue();if(Be()){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(s.Fragment,{children:[s.jsx(ke,{showName:!0}),s.jsx(We,{className:"ml-auto md:size-[34px] rounded-lg"})]}),t[0]=o):o=t[0],o}if(e){let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ke,{showName:!0}),t[1]=o):o=t[1],o}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(s.Fragment,{children:[s.jsx(ke,{}),s.jsx(Ge,{})]}),t[2]=i):i=t[2],i}function At(t){const e=C.c(4),{onNavigate:l}=t,i=Be();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(zl,{}),e[0]=o):o=e[0];let n;return e[1]!==i||e[2]!==l?(n=s.jsx(at,{children:s.jsx(L.Suspense,{fallback:o,children:i?s.jsx(Bl,{onNavigate:l}):s.jsx(Ml,{onNavigate:l})})}),e[1]=i,e[2]=l,e[3]=n):n=e[3],n}function Hl(){const t=C.c(5),e=Mt();let l,i,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx($l,{}),i=s.jsx(Gl,{}),o=s.jsx(At,{}),t[0]=l,t[1]=i,t[2]=o):(l=t[0],i=t[1],o=t[2]);let n;return t[3]!==e?(n=s.jsx(Dt,{children:s.jsx(zt,{sections:e,footer:l,header:i,additionalContent:o})}),t[3]=e,t[4]=n):n=t[4],n}function Wl(t){const e=C.c(7),{onClose:l}=t,i=Mt();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Dl,{}),e[0]=o):o=e[0];let n;e[1]!==l?(n=s.jsx(At,{onNavigate:l}),e[1]=l,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==i||e[5]!==n?(a=s.jsx(Dt,{children:s.jsx(gl,{sections:i,onClose:l,footer:o,additionalContent:n})}),e[3]=l,e[4]=i,e[5]=n,e[6]=a):a=e[6],a}const Vl="sidebar.open";function Kl(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Xt,{}),t[0]=e):e=t[0],e}function rn(){const t=C.c(37),e=ft(),l=Ue(),i=Be();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const{connect:n,siteUrl:a}=Le(o),r=n==="1",[d,c]=ct(Vl,!1),{width:f,wrapperRef:m,onStartResize:u,resetWidth:p}=ml(),x=e;let b;t[1]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(We,{}),t[1]=b):b=t[1];let h;t[2]!==i||t[3]!==l?(h=!l&&!i&&s.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:s.jsx(Ge,{})}),t[2]=i,t[3]=l,t[4]=h):h=t[4];let g,y,S,j;t[5]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(me.TogglesSlot,{}),y=s.jsx(me.TabsSlot,{className:"shrink-0"}),S=s.jsx(me.CenterSlot,{}),j=s.jsx(me.RightSlot,{}),t[5]=g,t[6]=y,t[7]=S,t[8]=j):(g=t[5],y=t[6],S=t[7],j=t[8]);let v;t[9]!==h?(v=s.jsx(me.Header,{className:"grid-cols-1 px-1",children:s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[b,h,g,y,S,j]})}),t[9]=h,t[10]=v):v=t[10];const w=v;let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N={background:"transparent",containerType:"inline-size"},t[11]=N):N=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Wt,{className:"flex flex-col min-h-0",style:N,children:s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s.jsx(L.Suspense,{fallback:s.jsx(Kl,{}),children:s.jsx(Vt,{})})})})}),t[12]=_):_=t[12];const k=_,$=x&&w,D=`${f}px`;let M;t[13]!==D?(M={"--sidebar-width":D,"--sidebar-width-icon":"3.125rem"},t[13]=D,t[14]=M):M=t[14];const I=M;let O;t[15]!==e||t[16]!==u||t[17]!==p?(O=!e&&s.jsxs(s.Fragment,{children:[s.jsx(Hl,{}),s.jsx(rl,{onPointerDown:u,onDoubleClick:p})]}),t[15]=e,t[16]=u,t[17]=p,t[18]=O):O=t[18];let P;t[19]!==I||t[20]!==O||t[21]!==m?(P=s.jsxs(Kt,{ref:m,className:"flex-1 bg-sidebar relative min-h-0",style:I,children:[O,k]}),t[19]=I,t[20]=O,t[21]=m,t[22]=P):P=t[22];let B;t[23]!==e?(B=e&&s.jsx(Ys,{renderSidebar:Yl}),t[23]=e,t[24]=B):B=t[24];let R;t[25]!==a||t[26]!==r?(R=r&&s.jsx(sl,{siteUrl:a}),t[25]=a,t[26]=r,t[27]=R):R=t[27];let F;t[28]!==$||t[29]!==P||t[30]!==B||t[31]!==R?(F=s.jsx(tl,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[$,P,B,R]})}),t[28]=$,t[29]=P,t[30]=B,t[31]=R,t[32]=F):F=t[32];let H;return t[33]!==c||t[34]!==d||t[35]!==F?(H=s.jsx(Zs,{children:s.jsx(me.Provider,{children:s.jsx(Yt,{open:d,onOpenChange:c,children:F})})}),t[33]=c,t[34]=d,t[35]=F,t[36]=H):H=t[36],H}function Yl(t){const{onClose:e}=t;return s.jsx("div",{className:"flex h-full",children:s.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:s.jsx(Wl,{onClose:e})})})}export{rn as default};
@@ -1 +0,0 @@
1
- import{c as B,b as L,j as r}from"./index-DmupevWM.js";import{I as A}from"./input-D70-s6Lp.js";import{L as F}from"./label-DgSm7c-x.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-C9ri1M2-.js";import{T as G}from"./textarea-C6vvoxGM.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-BIjLkKIL.js";import{s as P}from"./primitives-CMuOhu_D.js";import{u as H}from"./use-autosave-C-Q3_F0Z.js";import"./Check-BxucN0Gw.js";import"./ChevronDown-D6BdQEgw.js";import"./ChevronUp-Dqfi-sH7.js";import"./ArrowUp-DyPL9xPJ.js";import"./chat-context-_9TWwPoV.js";import"./tab-id-DNMIj3f5.js";import"./dialog-DXOQw7Q9.js";import"./Copy01-wsmZIanj.js";import"./Download01-BWUcUjhf.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-B4Y-27dk.js";import"./use-mcp-client-Dfy6vmh9.js";import"./constants-_08zpzmT.js";import"./auth-DAum_Zp1.js";import"./decopilot-sse-pool-CXVyDh9s.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DA13Pz4C.js";import"./use-ai-providers-lagj7gGO.js";import"./use-decopilot-events-B43friLn.js";import"./use-organization-settings-T1YTxopv.js";import"./automation-runs-MPdr_Lx7.js";import"./agent-icon-Cv0qfELn.js";import"./AlertCircle-CSEIne9l.js";import"./Tool01-B4pZO0G8.js";import"./ArrowLeft-CbfCqJdZ.js";import"./Tool02-D98EZtI2.js";import"./XCircle-CeEaSz5m.js";import"./TrendUp01-Dk4Kxq_O.js";import"./ZapSquare-CVdjJYta.js";import"./Users03-BVYf68R7.js";import"./UserSquare-B5tn5j3o.js";import"./CheckCircle-VNVIYnH7.js";import"./ChevronRight-CrPCFy_x.js";import"./ChevronSelectorVertical-DlWDazVs.js";import"./DotsVertical-CvXTa3XH.js";import"./Stars02-XwHNS_gs.js";import"./CreditCard01-DEV4CGvu.js";import"./Settings02-BrcKmw4p.js";import"./Eye-BMUypGwD.js";import"./FilterLines-DIX2_9KD.js";import"./Share07-Dj_oa1CN.js";import"./Globe01-CAjGWx0n.js";import"./Globe04-K5GBgNsQ.js";import"./SwitchHorizontal01-B9it-p1c.js";import"./HardDrive-Bgbdhhmh.js";import"./Key01-i3dmQivg.js";import"./LinkExternal01-D-ihrY5a.js";import"./LockUnlocked01-CZqpb5dJ.js";import"./LogOut01-ifg23-Up.js";import"./Monitor01-CcUZ9B12.js";import"./Sun-DYJ5Beud.js";import"./Palette-BTQNLMfZ.js";import"./Play-CipJ89X2.js";import"./Plus-6ufO2ceF.js";import"./SearchLg-BJEGJalu.js";import"./SearchMd-rGZZrU06.js";import"./Shield01-FVobuL5f.js";import"./Stars01-Cj5kmeWe.js";import"./Trash01-DWnyS5iA.js";import"./Upload01-DYfpe6C7.js";import"./User01-qulsGYg8.js";import"./Users01-rfN1e84C.js";import"./XClose-CbSO0KMg.js";import"./Zap-K17zODm6.js";import"./useInfiniteQuery-C6gECLrc.js";import"./use-infinite-scroll-BfrvLRgk.js";import"./use-connection-Bh2muL5C.js";import"./table-D0iTfjzx.js";import"./empty-state-KWU2c9aq.js";import"./use-members-DxBZLVw9.js";import"./use-org-auth-client-DNRMtd_T.js";import"./use-clock-tick-mt6A2GEq.js";import"./use-automations-DWADA5-D.js";import"./useSuspenseInfiniteQuery-DPjJmkul.js";import"./avatar-C5Fp2HQg.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-B-DVssSv.js";import"./monaco-editor-BxRxySpc.js";import"./spinner-DeHFaXJR.js";import"./types-Coctadaz.js";import"./shell-layout-QWBBZpBa.js";import"./required-auth-layout-DR5ftNoT.js";import"./use-org-sso-D9vQYyjU.js";import"./integration-icon-DkLjC-y8.js";import"./use-navigate-to-agent-Bsc7rB4q.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-Dbl0u53s.js";import"./index-BYDn8tSK.js";import"./form-D6N6c8KY.js";import"./file-type-icon-C9c33TAC.js";import"./drawer-a-90LmnY.js";import"./collection-search-BiRqCWJc.js";import"./tabs-BWCmUqZx.js";import"./toggle-group-BCetwO7P.js";import"./use-commerce-diagnostic-MyEG9Xpf.js";import"./popover-nuVYiQ4L.js";import"./self-tool-result-DbpuphTm.js";import"./alert-dialog-CDtnpId-.js";import"./extract-connection-data-BVrmrnqC.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-B-Urwt8n.js";import"./authenticate-and-persist-oauth-DkAnhPvg.js";import"./mcp-oauth-D8ex8-sG.js";import"./track-BgzvmxEr.js";import"./toolbar-DZRlpReI.js";import"./github-repo-picker-C48OFlvT.js";import"./use-mcp-tools-CS0TRcXs.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-Bl5iuJ-k.js";import"./use-registry-connections-Dw2y1k0e.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers--cSZi-9q.js";import"./collection-tabs-DWNMEqGP.js";import"./badge-BQrBvwMr.js";import"./command-DV7TLXKL.js";import"./index-yK9HaiSq.js";import"./select-model-DJLUqG0_.js";import"./checkbox-Ctd62zey.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BBVHWAEb.js";import"./dropdown-menu-Coj1oJhQ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-71OdpXHB.js";import"./use-file-configs-9e0BASTI.js";import"./pt-BR-CLy76QW2.js";import"./switch-Iiz2pu8a.js";import"./use-debounced-autosave-BpaI0aIp.js";import"./search-input-D3LmXNJV.js";import"./index-eQAcz757.js";import"./use-secrets-_cI0Te8y.js";import"./AreaChart-COGo7TxM.js";import"./task-key-CQFKZ4tZ.js";import"./sprints-CQcaKkBi.js";import"./use-tags-BZu1gEDB.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-Bm_C4xBG.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DDlZcaeJ.js";const Q={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Dr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=J(h);let g;t[4]!==f||t[5]!==a?(g=M(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=U[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(X,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=Q[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(G,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Dr as RecordEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-RhO1P3bU.js","assets/index-DmupevWM.js","assets/index-DfOjcoHJ.css","assets/Tool02-D98EZtI2.js","assets/CheckCircle-VNVIYnH7.js","assets/Settings02-BrcKmw4p.js","assets/use-mcp-client-Dfy6vmh9.js","assets/constants-_08zpzmT.js","assets/auth-DAum_Zp1.js","assets/useInfiniteQuery-C6gECLrc.js","assets/use-infinite-scroll-BfrvLRgk.js","assets/badge-BQrBvwMr.js","assets/input-D70-s6Lp.js","assets/dropdown-menu-Coj1oJhQ.js","assets/Check-BxucN0Gw.js","assets/ChevronRight-CrPCFy_x.js","assets/DotsVertical-CvXTa3XH.js","assets/table-D0iTfjzx.js","assets/toggle-group-BCetwO7P.js","assets/use-view-mode-DgZ7h5_g.js","assets/FilterLines-DIX2_9KD.js","assets/Globe01-CAjGWx0n.js","assets/SearchMd-rGZZrU06.js","assets/dialog-DXOQw7Q9.js","assets/AlertCircle-CSEIne9l.js","assets/Download01-BWUcUjhf.js","assets/Upload01-DYfpe6C7.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CDtnpId-.js","assets/Trash01-DWnyS5iA.js","assets/label-DgSm7c-x.js","assets/select-C9ri1M2-.js","assets/ChevronDown-D6BdQEgw.js","assets/ChevronUp-Dqfi-sH7.js","assets/switch-Iiz2pu8a.js","assets/textarea-C6vvoxGM.js","assets/ArrowLeft-CbfCqJdZ.js","assets/XCircle-CeEaSz5m.js","assets/checkbox-Ctd62zey.js","assets/Eye-BMUypGwD.js","assets/LinkExternal01-D-ihrY5a.js","assets/use-copy-B-DVssSv.js","assets/Copy01-wsmZIanj.js","assets/Key01-i3dmQivg.js","assets/Plus-6ufO2ceF.js","assets/mcp-oauth-D8ex8-sG.js","assets/Play-CipJ89X2.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,k as a,bc as o}from"./index-DmupevWM.js";import{R as c}from"./require-capability-B39rQdpQ.js";import"./access-gate-BtRxutd5.js";import"./capability-load-error-Ce6ATNPi.js";const n=s.lazy(()=>o(()=>import("./registry-layout-RhO1P3bU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-RhO1P3bU.js","assets/index-DmupevWM.js","assets/index-DfOjcoHJ.css","assets/Tool02-D98EZtI2.js","assets/CheckCircle-VNVIYnH7.js","assets/Settings02-BrcKmw4p.js","assets/use-mcp-client-Dfy6vmh9.js","assets/constants-_08zpzmT.js","assets/auth-DAum_Zp1.js","assets/useInfiniteQuery-C6gECLrc.js","assets/use-infinite-scroll-BfrvLRgk.js","assets/badge-BQrBvwMr.js","assets/input-D70-s6Lp.js","assets/dropdown-menu-Coj1oJhQ.js","assets/Check-BxucN0Gw.js","assets/ChevronRight-CrPCFy_x.js","assets/DotsVertical-CvXTa3XH.js","assets/table-D0iTfjzx.js","assets/toggle-group-BCetwO7P.js","assets/use-view-mode-DgZ7h5_g.js","assets/FilterLines-DIX2_9KD.js","assets/Globe01-CAjGWx0n.js","assets/SearchMd-rGZZrU06.js","assets/dialog-DXOQw7Q9.js","assets/AlertCircle-CSEIne9l.js","assets/Download01-BWUcUjhf.js","assets/Upload01-DYfpe6C7.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CDtnpId-.js","assets/Trash01-DWnyS5iA.js","assets/label-DgSm7c-x.js","assets/select-C9ri1M2-.js","assets/ChevronDown-D6BdQEgw.js","assets/ChevronUp-Dqfi-sH7.js","assets/switch-Iiz2pu8a.js","assets/textarea-C6vvoxGM.js","assets/ArrowLeft-CbfCqJdZ.js","assets/XCircle-CeEaSz5m.js","assets/checkbox-Ctd62zey.js","assets/Eye-BMUypGwD.js","assets/LinkExternal01-D-ihrY5a.js","assets/use-copy-B-DVssSv.js","assets/Copy01-wsmZIanj.js","assets/Key01-i3dmQivg.js","assets/Plus-6ufO2ceF.js","assets/mcp-oauth-D8ex8-sG.js","assets/Play-CipJ89X2.js"])))=>i.map(i=>d[i]);
2
- import{c,d as n,f as m,j as t,k as f,r as l,bc as p}from"./index-DmupevWM.js";import{R as u}from"./require-capability-B39rQdpQ.js";import"./access-gate-BtRxutd5.js";import"./capability-load-error-Ce6ATNPi.js";const g=l.lazy(()=>p(()=>import("./registry-layout-RhO1P3bU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function h(){const e=c.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{c as w,b as S,j as l,B as C,r as I,I as E}from"./index-DmupevWM.js";import{b as L,h as N,a as O,d as k,e as R}from"./dialog-DXOQw7Q9.js";import{i as U}from"./Check-BxucN0Gw.js";import{a as $}from"./Copy01-wsmZIanj.js";import{n as W}from"./Download01-BWUcUjhf.js";const M="https://github.com/decocms/studio/releases";function F(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function P(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 B(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function V(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function D(e){const t=w.c(12),{copiedLabel:n}=e,s=S(),[r,i]=I.useState(!1);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=F(),t[0]=c):c=t[0];const o=c;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=l.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:o}),t[1]=a):a=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{V(navigator.clipboard,o).then(p=>{p&&(i(!0),setTimeout(()=>i(!1),2e3))})},t[2]=u):u=t[2];let d;t[3]!==r?(d=r?l.jsx(U,{size:16}):l.jsx($,{size:16}),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==r||t[6]!==n||t[7]!==s?(f=r?n:s("downloadApp.copyLabel"),t[5]=r,t[6]=n,t[7]=s,t[8]=f):f=t[8];let m;return t[9]!==d||t[10]!==f?(m=l.jsxs("div",{className:"flex flex-col gap-3",children:[a,l.jsxs(C,{type:"button",className:"w-full gap-2",onClick:u,children:[d,f]})]}),t[9]=d,t[10]=f,t[11]=m):m=t[11],m}function Y(){const e=w.c(18),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let r;e[4]!==t?(r=t("downloadApp.terminalHint"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=l.jsx("p",{children:r}),e[6]=r,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;return e[15]!==s||e[16]!==a?(u=l.jsxs(l.Fragment,{children:[s,a]}),e[15]=s,e[16]=a,e[17]=u):u=e[17],u}function H(){const e=w.c(42),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let r;e[4]!==t?(r=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=l.jsx("p",{children:r}),e[6]=r,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;e[15]!==t?(u=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=u):u=e[16];let d;e[17]!==u?(d=l.jsx("p",{children:u}),e[17]=u,e[18]=d):d=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=P("4.260.11"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(W,{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 h;e[23]!==p?(h=l.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let g;e[25]!==t?(g=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=g):g=e[26];let x;e[27]!==g?(x=l.jsx("p",{children:g}),e[27]=g,e[28]=x):x=e[28];let A;e[29]!==t?(A=t("downloadApp.allReleases"),e[29]=t,e[30]=A):A=e[30];let y;e[31]!==A?(y=l.jsx("a",{href:M,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:A}),e[31]=A,e[32]=y):y=e[32];let T;e[33]!==h||e[34]!==x||e[35]!==y||e[36]!==d?(T=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[d,h,x,y]}),e[33]=h,e[34]=x,e[35]=y,e[36]=d,e[37]=T):T=e[37];let b;return e[38]!==s||e[39]!==T||e[40]!==a?(b=l.jsxs(l.Fragment,{children:[s,a,T]}),e[38]=s,e[39]=T,e[40]=a,e[41]=b):b=e[41],b}function oe(e){const t=w.c(19),{open:n,onOpenChange:s}=e,r=S();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=B(),t[0]=i):i=t[0];const c=i;let o;t[1]!==r?(o=r("downloadApp.title"),t[1]=r,t[2]=o):o=t[2];let a;t[3]!==o?(a=l.jsx(L,{children:o}),t[3]=o,t[4]=a):a=t[4];let u;t[5]!==r?(u=r(c?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=r,t[6]=u):u=t[6];let d;t[7]!==u?(d=l.jsx(N,{children:u}),t[7]=u,t[8]=d):d=t[8];let f;t[9]!==a||t[10]!==d?(f=l.jsxs(O,{children:[a,d]}),t[9]=a,t[10]=d,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=c?l.jsx(H,{}):l.jsx(Y,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=l.jsxs(k,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==s||t[16]!==n||t[17]!==p?(h=l.jsx(R,{open:n,onOpenChange:s,children:p}),t[15]=s,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const z=1e4,ae="true",j=2;function v(e,t){return E.chatAutosend(e,t)}function G(e){return e==="pending"||e==="sending"}function J(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 s=0;n.status==="sending"?s=n.retryAt===void 0?1:j:n.retryAt!==void 0&&(s=1);const r=n.attempt===void 0?s:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!G(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>j?null:{...t,attempt:r}}function ce(e,t,n,s,r=Date.now()){const i={message:s,createdAt:r,status:"pending",attempt:0};return e.setItem(v(t,n),JSON.stringify(i)),i}function X(e,t,n){const s=v(t,n),r=J(e.getItem(s));return r||(e.removeItem(s),null)}function ue(e,t,n,s=Date.now()){const r=v(t,n),i=X(e,t,n);if(!i||i.status!=="pending")return null;if(i.attempt>=j)return e.removeItem(r),null;const c=i.retryAt??i.createdAt;if(s-c>=z)return e.removeItem(r),null;const o={...i,status:"sending",attempt:i.attempt+1};return e.setItem(r,JSON.stringify(o)),{message:o.message,createdAt:o.createdAt,attempt:o.attempt}}function de(e,t,n){e.removeItem(v(t,n))}function K(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function q(e,t){return`app:${e}:${t}`}function fe(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const s=t.slice(0,n),r=t.slice(n+1);return!s||!r?null:{connectionId:s,toolName:r}}function pe(e){return`deck:${encodeURIComponent(e)}`}function me(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function he(e){return`file:${encodeURIComponent(e)}`}function ge(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function xe(e){return`library-file:${encodeURIComponent(e)}`}function Ae(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function ye(e){return`code:${encodeURIComponent(e)}`}function Te(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const Q=["overview","settings","automations","preview","code","content","assets","git"],Z=new Set(Q),be=new Set(["board","files","connect-sources","reports"]);function we(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const _=new Set(["instructions","connections","layout","settings"]);function Se(e){return!!e&&_.has(e)}function ee(e){const t=e?.defaultMainView??null;if(!t||_.has(t.type))return"settings";if(Z.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return q(t.id,t.toolName);const n=e?.tabs?.map(s=>s.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function ve(e){const t=e.mainParam===0?"0":e.mainParam,n=ee(e.metadata);if(t==="0")return{mainOpen:!1,activeTab:n};if(t===void 0){const s=e.metadata?.defaultMainView??null;return{mainOpen:!(s==null||s.type==="chat"),activeTab:n}}return _.has(t)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:t}}function je(e){return e.mainOpen&&e.clickedId===e.activeTab?0:e.clickedId}function _e(e){return e.mainOpen?e.activeTab==="automations"?!0:K(e.activeTab)!==null:!1}function Ce(e){return e.mainOpen&&e.activeTab==="automations"?0:"automations"}export{ae as A,oe as D,Q as F,be as O,B as a,ve as b,ge as c,me as d,Ae as e,q as f,je as g,ye as h,le as i,xe as j,Se as k,Te as l,fe as m,_e as n,Ce as o,K as p,pe as q,ee as r,he as s,we as t,ue as u,de as v,ce as w};
@@ -1 +0,0 @@
1
- import{c as _,r as J,j as n,n as Z,B as V,b as A,d8 as L,t as I,d6 as ne,d7 as ee,H as W,av as H,K as Q,o as le,p as ae,e as re,P as te,d9 as pe,Y as fe,s as je}from"./index-DmupevWM.js";import{I as G}from"./input-D70-s6Lp.js";import{i as me}from"./Check-BxucN0Gw.js";import{i as ue}from"./ChevronSelectorVertical-DlWDazVs.js";import{C as xe,a as he,b as be,c as ye,d as Se,e as ve}from"./command-DV7TLXKL.js";import{a as we,P as _e,b as Ne}from"./popover-nuVYiQ4L.js";import{S as se}from"./switch-Iiz2pu8a.js";import{c as Ce,d as ke,b as De,f as Te,g as Pe,e as Ie,a as Re,A as Ae}from"./alert-dialog-CDtnpId-.js";import{S as Ee,a as $e,b as Ke,c as Fe,d as ce}from"./select-C9ri1M2-.js";import{c as Me,D as Oe,b as qe,g as Be,h as Le}from"./dropdown-menu-Coj1oJhQ.js";import{c as ze,i as Je,t as Ue,d as Ve,b as Ge,a as We,e as He}from"./UserSquare-B5tn5j3o.js";import{t as Qe}from"./ChevronDown-D6BdQEgw.js";import{n as Ye,o as Xe,p as Ze,u as et,k as tt}from"./use-organization-settings-T1YTxopv.js";import{m as st,a as it,s as nt,D as lt,S as at}from"./sprints-CQcaKkBi.js";import{t as rt}from"./cards-BBVHWAEb.js";import{R as ot}from"./require-capability-B39rQdpQ.js";import"./index-yK9HaiSq.js";import"./dialog-DXOQw7Q9.js";import"./SearchMd-rGZZrU06.js";import"./ChevronUp-Dqfi-sH7.js";import"./ChevronRight-CrPCFy_x.js";import"./DotsVertical-CvXTa3XH.js";import"./constants-_08zpzmT.js";import"./Download01-BWUcUjhf.js";import"./Share07-Dj_oa1CN.js";import"./Globe01-CAjGWx0n.js";import"./Key01-i3dmQivg.js";import"./Palette-BTQNLMfZ.js";import"./Trash01-DWnyS5iA.js";import"./Zap-K17zODm6.js";import"./file-type-icon-C9c33TAC.js";import"./Eye-BMUypGwD.js";import"./access-gate-BtRxutd5.js";import"./capability-load-error-Ce6ATNPi.js";function ct(t){const e=_.c(41),{options:l,value:s,onChange:a,placeholder:i,triggerClassName:r,contentClassName:o,width:g,renderTrigger:c,renderItem:f,emptyMessage:p,searchPlaceholder:d,filter:u}=t,x=i===void 0?"Select...":i,m=g===void 0?"w-[200px]":g,j=p===void 0?"No results found.":p,h=d===void 0?"Search...":d;let b;e[0]!==s?(b=B=>B.value===s,e[0]=s,e[1]=b):b=e[1];const y=l.find(b),[v,w]=J.useState(!1),k=_e,N=we,D=!0,C=c?n.jsx("div",{className:Z("cursor-pointer",r),children:c(y)}):n.jsxs(V,{variant:"outline",role:"combobox",className:Z("justify-between",m,r),children:[y?y.label:x,n.jsx(ue,{className:"opacity-50"})]});let P;e[2]!==N||e[3]!==C?(P=n.jsx(N,{asChild:D,children:C}),e[2]=N,e[3]=C,e[4]=P):P=e[4];let T;e[5]!==o?(T=Z("p-0",o),e[5]=o,e[6]=T):T=e[6];let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R={width:"var(--radix-popover-trigger-width)"},e[7]=R):R=e[7];let S;e[8]!==h?(S=n.jsx(xe,{placeholder:h,className:"h-9"}),e[8]=h,e[9]=S):S=e[9];let $;e[10]!==j?($=n.jsx(he,{children:j}),e[10]=j,e[11]=$):$=e[11];let K;if(e[12]!==a||e[13]!==l||e[14]!==f||e[15]!==w||e[16]!==s){let B;e[18]!==a||e[19]!==f||e[20]!==w||e[21]!==s?(B=E=>{const oe=s===E.value;return n.jsx(be,{value:E.label,onSelect:()=>{a(E.value===s?"":E.value),w(!1)},children:f?f(E,oe):n.jsxs(n.Fragment,{children:[E.label,n.jsx(me,{className:Z("ml-auto",oe?"opacity-100":"opacity-0")})]})},E.value)},e[18]=a,e[19]=f,e[20]=w,e[21]=s,e[22]=B):B=e[22],K=l.map(B),e[12]=a,e[13]=l,e[14]=f,e[15]=w,e[16]=s,e[17]=K}else K=e[17];let F;e[23]!==K?(F=n.jsx(ye,{children:K}),e[23]=K,e[24]=F):F=e[24];let z;e[25]!==$||e[26]!==F?(z=n.jsxs(Se,{children:[$,F]}),e[25]=$,e[26]=F,e[27]=z):z=e[27];let M;e[28]!==u||e[29]!==S||e[30]!==z?(M=n.jsxs(ve,{filter:u,children:[S,z]}),e[28]=u,e[29]=S,e[30]=z,e[31]=M):M=e[31];let O;e[32]!==M||e[33]!==T?(O=n.jsx(Ne,{className:T,style:R,children:M}),e[32]=M,e[33]=T,e[34]=O):O=e[34];let q;return e[35]!==k||e[36]!==v||e[37]!==w||e[38]!==O||e[39]!==P?(q=n.jsxs(k,{open:v,onOpenChange:w,children:[P,O]}),e[35]=k,e[36]=v,e[37]=w,e[38]=O,e[39]=P,e[40]=q):q=e[40],q}function dt(t){const e=_.c(4),{size:l,className:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=a):a=e[0];let i;return e[1]!==s||e[2]!==l?(i=n.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:a}),e[1]=s,e[2]=l,e[3]=i):i=e[3],i}function ft(){const t=_.c(35),e=A(),{config:l,isLoaded:s}=Ye(),a=Xe(),[i,r]=J.useState(null);let o,g,c,f,p,d;if(t[0]!==s||t[1]!==i||t[2]!==l||t[3]!==e||t[4]!==a){const m=l??{enabled:!1,weeks:lt,startDate:st(new Date)},j=a.isPending||!s,h=S=>a.mutate({...m,...S},{onError:()=>I.error(e("settings.sprints.updateError"))}),b=()=>{const S=i;r(null),!(!S||S===m.startDate)&&Ze(S)!==null&&h({startDate:S})};let y;t[11]!==e?(y=S=>S===1?e("settings.sprints.weeksValueOne"):e("settings.sprints.weeksValue",{count:String(S)}),t[11]=e,t[12]=y):y=t[12];const v=y,w=m.enabled?it(m,new Date):null,k=w===null?null:nt(m,w);g=ne,t[13]!==e?(p=e("settings.sprints.title"),t[13]=e,t[14]=p):p=t[14],t[15]!==e?(d=e("settings.sprints.description"),t[15]=e,t[16]=d):d=t[16],o=ee;let N;t[17]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(Je,{size:16}),t[17]=N):N=t[17];let D;t[18]!==e?(D=e("settings.sprints.enabledTitle"),t[18]=e,t[19]=D):D=t[19];let C;t[20]!==e?(C=e("settings.sprints.enabledDescription"),t[20]=e,t[21]=C):C=t[21];const P=m.enabled;let T;t[22]!==e?(T=e("settings.sprints.enabledTitle"),t[22]=e,t[23]=T):T=t[23];let R;t[24]!==h?(R=S=>h({enabled:S}),t[24]=h,t[25]=R):R=t[25],c=n.jsx(L,{icon:N,title:D,description:C,action:n.jsx(se,{checked:P,disabled:j,"aria-label":T,onCheckedChange:R})}),f=m.enabled&&n.jsx(L,{icon:n.jsx(ze,{size:16}),title:e("settings.sprints.cadenceTitle"),description:w!==null&&k?e("settings.sprints.cadenceCurrent",{number:String(w),start:k.start,end:k.end}):e("settings.sprints.cadenceDescription"),children:n.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[n.jsxs(Me,{children:[n.jsx(Oe,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex h-9 items-center gap-1.5 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted",children:[v(m.weeks),n.jsx(Qe,{size:12,className:"opacity-60"})]})}),n.jsx(qe,{align:"start",className:"w-40",children:n.jsx(Be,{value:String(m.weeks),onValueChange:S=>h({weeks:Number(S)}),children:at.map(S=>n.jsx(Le,{value:String(S),disabled:j,children:v(S)},S))})})]}),n.jsx(G,{type:"date",value:i??m.startDate,disabled:j,"aria-label":e("settings.sprints.startDateLabel"),onChange:S=>r(S.target.value),onBlur:b,onKeyDown:mt,className:"h-9 w-40"})]})}),t[0]=s,t[1]=i,t[2]=l,t[3]=e,t[4]=a,t[5]=o,t[6]=g,t[7]=c,t[8]=f,t[9]=p,t[10]=d}else o=t[5],g=t[6],c=t[7],f=t[8],p=t[9],d=t[10];let u;t[26]!==o||t[27]!==c||t[28]!==f?(u=n.jsxs(o,{children:[c,f]}),t[26]=o,t[27]=c,t[28]=f,t[29]=u):u=t[29];let x;return t[30]!==g||t[31]!==p||t[32]!==d||t[33]!==u?(x=n.jsx(g,{title:p,description:d,children:u}),t[30]=g,t[31]=p,t[32]=d,t[33]=u,t[34]=x):x=t[34],x}function mt(t){t.key==="Enter"&&t.currentTarget.blur()}function ut(){const t=_.c(12),e=A();let l;t[0]!==e?(l=e("settings.review.title"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==e?(s=e("settings.review.description"),t[2]=e,t[3]=s):s=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(X,{flag:"qa_agent_enabled",icon:n.jsx(Ue,{size:16}),titleKey:"settings.review.qaAgentTitle",descriptionKey:"settings.review.qaAgentDescription"}),t[4]=a):a=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(X,{flag:"code_reviewer_enabled",icon:n.jsx(Ve,{size:16}),titleKey:"settings.review.codeReviewerTitle",descriptionKey:"settings.review.codeReviewerDescription"}),t[5]=i):i=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(X,{flag:"cheap_reviewer_model",icon:n.jsx(Ge,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),t[6]=r):r=t[6];let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(X,{flag:"auto_merge",icon:n.jsx(We,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),t[7]=o):o=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs(ee,{children:[a,i,r,o,n.jsx(X,{flag:"auto_assign_report_tasks_to_super_agent",icon:n.jsx(He,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),t[8]=g):g=t[8];let c;return t[9]!==l||t[10]!==s?(c=n.jsx(ne,{title:l,description:s,children:g}),t[9]=l,t[10]=s,t[11]=c):c=t[11],c}function X(t){const e=_.c(23),{flag:l,icon:s,titleKey:a,descriptionKey:i}=t,r=A(),o=et(l),g=tt();let c;e[0]!==r||e[1]!==a?(c=r(a),e[0]=r,e[1]=a,e[2]=c):c=e[2];let f;e[3]!==i||e[4]!==r?(f=r(i),e[3]=i,e[4]=r,e[5]=f):f=e[5];const p=g.isPending;let d;e[6]!==r||e[7]!==a?(d=r(a),e[6]=r,e[7]=a,e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==g||e[11]!==r?(u=j=>g.mutate(l,j,{onError:()=>I.error(r("settings.review.updateError"))}),e[9]=l,e[10]=g,e[11]=r,e[12]=u):u=e[12];let x;e[13]!==o||e[14]!==g.isPending||e[15]!==d||e[16]!==u?(x=n.jsx(se,{checked:o,disabled:p,"aria-label":d,onCheckedChange:u}),e[13]=o,e[14]=g.isPending,e[15]=d,e[16]=u,e[17]=x):x=e[17];let m;return e[18]!==s||e[19]!==c||e[20]!==f||e[21]!==x?(m=n.jsx(L,{icon:s,title:c,description:f,action:x}),e[18]=s,e[19]=c,e[20]=f,e[21]=x,e[22]=m):m=e[22],m}function ge(t){const e=t.projectName?.replace(/\s+/g," ").trim(),l=t.name.trim();return e?{primary:e,secondary:[l,t.projectKey].filter(Boolean).join(" · ")}:{primary:l,secondary:t.projectKey??""}}function gt(t){const{primary:e,secondary:l}=ge(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function de(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function pt(t,e){const l=de(e).trim();if(!l)return 1;const s=de(t);return l.split(/\s+/).every(a=>s.includes(a))?1:0}function jt(){const t=_.c(7),{org:e}=W(),l=H();let s;t[0]!==e.id?(s=Q.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let a;t[2]!==l?(a=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=a):a=t[3];let i;return t[4]!==s||t[5]!==a?(i={queryKey:s,queryFn:a},t[4]=s,t[5]=a,t[6]=i):i=t[6],le(i)}function Y(){const t=_.c(8),{org:e}=W(),l=H(),s=ae();let a;t[0]!==l?(a=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=a):a=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==a||t[6]!==i?(r={mutationFn:a,onSettled:i},t[5]=a,t[6]=i,t[7]=r):r=t[7],re(r)}function xt(){const t=_.c(8),{org:e}=W(),l=H(),s=ae();let a;t[0]!==l?(a=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=a):a=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==a||t[6]!==i?(r={mutationFn:a,onSettled:i},t[5]=a,t[6]=i,t[7]=r):r=t[7],re(r)}function ht(t){const e=_.c(8),{org:l}=W(),s=H();let a;e[0]!==l.id?(a=Q.jiraBoards(l.id),e[0]=l.id,e[1]=a):a=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==a||e[6]!==i?(r={queryKey:a,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=a,e[6]=i,e[7]=r):r=e[7],le(r)}function bt(t){const e=_.c(10),{org:l}=W(),s=H();let a;e[0]!==t||e[1]!==l.id?(a=Q.jiraBoardColumns(l.id,t??""),e[0]=t,e[1]=l.id,e[2]=a):a=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==a||e[7]!==i||e[8]!==r?(o={queryKey:a,enabled:i,staleTime:6e4,queryFn:r},e[6]=a,e[7]=i,e[8]=r,e[9]=o):o=e[9],le(o)}function yt(){const t=_.c(8),{org:e}=W(),l=H(),s=ae();let a;t[0]!==l?(a=async()=>(await l.call("JIRA_SYNC_RUN",{})).result,t[0]=l,t[1]=a):a=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==a||t[6]!==i?(r={mutationFn:a,onSettled:i},t[5]=a,t[6]=i,t[7]=r):r=t[7],re(r)}const St=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}],ie="__dont_sync__";function U(t,e){return t instanceof Error?t.message:e}const vt="https://id.atlassian.com/manage-profile/security/api-tokens";function wt(t){const e=_.c(7),{stepKeys:l}=t,s=A();let a;if(e[0]!==l||e[1]!==s){let r;e[3]!==s?(r=o=>n.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],a=l.map(r),e[0]=l,e[1]=s,e[2]=a}else a=e[2];let i;return e[5]!==a?(i=n.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=i):i=e[6],i}function _t(){const t=_.c(69),e=A(),l=Y(),[s,a]=J.useState(""),[i,r]=J.useState(""),[o,g]=J.useState("");let c;t[0]!==o||t[1]!==i||t[2]!==s?(c=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=c):c=t[3];const f=c;let p;t[4]!==e?(p=e("settings.jira.siteLabel"),t[4]=e,t[5]=p):p=t[5];let d;t[6]!==p?(d=n.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:p}),t[6]=p,t[7]=d):d=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=E=>a(E.target.value),t[8]=u):u=t[8];let x;t[9]!==e?(x=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=x):x=t[10];let m;t[11]!==s||t[12]!==x?(m=n.jsx(G,{value:s,onChange:u,placeholder:x,autoComplete:"off"}),t[11]=s,t[12]=x,t[13]=m):m=t[13];let j;t[14]!==d||t[15]!==m?(j=n.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,m]}),t[14]=d,t[15]=m,t[16]=j):j=t[16];let h;t[17]!==e?(h=e("settings.jira.emailLabel"),t[17]=e,t[18]=h):h=t[18];let b;t[19]!==h?(b=n.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:h}),t[19]=h,t[20]=b):b=t[20];let y;t[21]===Symbol.for("react.memo_cache_sentinel")?(y=E=>r(E.target.value),t[21]=y):y=t[21];let v;t[22]!==e?(v=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=v):v=t[23];let w;t[24]!==i||t[25]!==v?(w=n.jsx(G,{value:i,onChange:y,placeholder:v,autoComplete:"off"}),t[24]=i,t[25]=v,t[26]=w):w=t[26];let k;t[27]!==w||t[28]!==b?(k=n.jsxs("div",{className:"flex flex-col gap-1.5",children:[b,w]}),t[27]=w,t[28]=b,t[29]=k):k=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let D;t[32]!==N?(D=n.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=D):D=t[33];let C;t[34]!==e?(C=e("settings.jira.createTokenLink"),t[34]=e,t[35]=C):C=t[35];let P;t[36]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(je,{size:12}),t[36]=P):P=t[36];let T;t[37]!==C?(T=n.jsxs("a",{href:vt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[C,P]}),t[37]=C,t[38]=T):T=t[38];let R;t[39]!==D||t[40]!==T?(R=n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[D,T]}),t[39]=D,t[40]=T,t[41]=R):R=t[41];let S;t[42]===Symbol.for("react.memo_cache_sentinel")?(S=E=>g(E.target.value),t[42]=S):S=t[42];let $;t[43]!==e?($=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=$):$=t[44];let K;t[45]!==o||t[46]!==$?(K=n.jsx(G,{type:"password",value:o,onChange:S,placeholder:$,autoComplete:"off"}),t[45]=o,t[46]=$,t[47]=K):K=t[47];let F;t[48]!==R||t[49]!==K?(F=n.jsxs("div",{className:"flex flex-col gap-1.5",children:[R,K]}),t[48]=R,t[49]=K,t[50]=F):F=t[50];const z=!f||l.isPending;let M;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==l?(M=()=>l.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>I.success(e("settings.jira.connected")),onError:E=>I.error(U(E,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=l,t[56]=M):M=t[56];let O;t[57]!==e||t[58]!==l.isPending?(O=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=O):O=t[59];let q;t[60]!==z||t[61]!==M||t[62]!==O?(q=n.jsx(V,{size:"sm",className:"w-fit",disabled:z,onClick:M,children:O}),t[60]=z,t[61]=M,t[62]=O,t[63]=q):q=t[63];let B;return t[64]!==k||t[65]!==F||t[66]!==q||t[67]!==j?(B=n.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[j,k,F,q]}),t[64]=k,t[65]=F,t[66]=q,t[67]=j,t[68]=B):B=t[68],B}function Nt(t){const e=_.c(7),{integration:l}=t,s=A();if(l.lastSyncError){let r;return e[0]!==l.lastSyncError?(r=n.jsx("p",{className:"text-xs text-destructive truncate",children:l.lastSyncError}),e[0]=l.lastSyncError,e[1]=r):r=e[1],r}let a;e[2]!==l.lastSyncedAt||e[3]!==s?(a=l.lastSyncedAt?s("settings.jira.lastSynced",{ago:rt(l.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=l.lastSyncedAt,e[3]=s,e[4]=a):a=e[4];let i;return e[5]!==a?(i=n.jsx("p",{className:"text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=i):i=e[6],i}function Ct(t){const e=_.c(23),{integration:l}=t,s=A(),a=Y(),i=bt(l.boardId),[r,o]=J.useState(l.statusMapping),[g,c]=J.useState(l);if(g!==l&&(c(l),o(l.statusMapping)),i.isPending){let m;return e[0]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(fe,{className:"h-24 w-full mt-3"}),e[0]=m):m=e[0],m}if(i.isError){let m;e[1]!==i.error||e[2]!==s?(m=U(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=m):m=e[3];let j;return e[4]!==m?(j=n.jsx("p",{className:"text-xs text-destructive mt-3",children:m}),e[4]=m,e[5]=j):j=e[5],j}let f;e[6]!==r||e[7]!==s||e[8]!==a?(f=function(j,h){const b={...r};for(const y of j)h===ie?delete b[y]:b[y]=h;o(b),a.mutate({statusMapping:b},{onError:y=>I.error(U(y,s("settings.jira.saveFailed")))})},e[6]=r,e[7]=s,e[8]=a,e[9]=f):f=e[9];const p=f;let d;e[10]!==i.data?(d=i.data??[],e[10]=i.data,e[11]=d):d=e[11];let u;if(e[12]!==r||e[13]!==p||e[14]!==s||e[15]!==d){let m;e[17]!==r||e[18]!==p||e[19]!==s?(m=j=>n.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("span",{className:"text-sm truncate",children:j.name}),(j.statuses.length>1||j.statuses[0]!==j.name)&&n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:j.statuses.join(", ")})]}),n.jsxs(Ee,{value:(j.statuses[0]&&r[j.statuses[0]])??ie,onValueChange:h=>p(j.statuses,h),children:[n.jsx($e,{className:"w-44 shrink-0",children:n.jsx(Ke,{})}),n.jsxs(Fe,{children:[n.jsx(ce,{value:ie,children:s("settings.jira.dontSync")}),St.map(h=>n.jsx(ce,{value:h.value,children:s(h.labelKey)},h.value))]})]})]},j.name),e[17]=r,e[18]=p,e[19]=s,e[20]=m):m=e[20],u=d.map(m),e[12]=r,e[13]=p,e[14]=s,e[15]=d,e[16]=u}else u=e[16];let x;return e[21]!==u?(x=n.jsx("div",{className:"flex flex-col mt-3",children:u}),e[21]=u,e[22]=x):x=e[22],x}function kt(t){const e=_.c(44),{integration:l}=t,s=A(),a=xt(),[i,r]=J.useState(!1),o=l.siteUrl,g=l.email;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(!0),e[0]=c):c=e[0];let f;e[1]!==s?(f=s("settings.jira.disconnect"),e[1]=s,e[2]=f):f=e[2];let p;e[3]!==f?(p=n.jsx(V,{variant:"outline",size:"sm",onClick:c,children:f}),e[3]=f,e[4]=p):p=e[4];let d;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==p?(d=n.jsx(L,{title:o,description:g,action:p}),e[5]=l.email,e[6]=l.siteUrl,e[7]=p,e[8]=d):d=e[8];let u;e[9]!==s?(u=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=u):u=e[10];let x;e[11]!==u?(x=n.jsx(Ce,{children:u}),e[11]=u,e[12]=x):x=e[12];let m;e[13]!==s?(m=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=m):m=e[14];let j;e[15]!==m?(j=n.jsx(ke,{children:m}),e[15]=m,e[16]=j):j=e[16];let h;e[17]!==j||e[18]!==x?(h=n.jsxs(De,{children:[x,j]}),e[17]=j,e[18]=x,e[19]=h):h=e[19];let b;e[20]!==s?(b=s("settings.jira.cancel"),e[20]=s,e[21]=b):b=e[21];let y;e[22]!==b?(y=n.jsx(Te,{children:b}),e[22]=b,e[23]=y):y=e[23];let v;e[24]!==a||e[25]!==s?(v=()=>a.mutate(void 0,{onSuccess:()=>I.success(s("settings.jira.disconnected")),onError:T=>I.error(U(T,s("settings.jira.saveFailed")))}),e[24]=a,e[25]=s,e[26]=v):v=e[26];let w;e[27]!==s?(w=s("settings.jira.disconnect"),e[27]=s,e[28]=w):w=e[28];let k;e[29]!==v||e[30]!==w?(k=n.jsx(Pe,{onClick:v,children:w}),e[29]=v,e[30]=w,e[31]=k):k=e[31];let N;e[32]!==y||e[33]!==k?(N=n.jsxs(Ie,{children:[y,k]}),e[32]=y,e[33]=k,e[34]=N):N=e[34];let D;e[35]!==h||e[36]!==N?(D=n.jsxs(Re,{children:[h,N]}),e[35]=h,e[36]=N,e[37]=D):D=e[37];let C;e[38]!==i||e[39]!==D?(C=n.jsx(Ae,{open:i,onOpenChange:r,children:D}),e[38]=i,e[39]=D,e[40]=C):C=e[40];let P;return e[41]!==C||e[42]!==d?(P=n.jsxs(n.Fragment,{children:[d,C]}),e[41]=C,e[42]=d,e[43]=P):P=e[43],P}function Dt(t){const e=_.c(36),{integration:l}=t,s=A(),a=Y(),i=ht(!0);let r,o;e[0]!==i.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(i.data??[]).map(Pt),o=l.boardId?r.find(y=>y.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=i.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const g=o;let c;e[5]!==s?(c=s("settings.jira.boardLabel"),e[5]=s,e[6]=c):c=e[6];let f;e[7]!==s?(f=s("settings.jira.boardDescription"),e[7]=s,e[8]=f):f=e[8];const p=l.boardId??"";let d;e[9]!==s?(d=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=d):d=e[10];let u;e[11]!==s?(u=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=u):u=e[12];let x;e[13]!==i.isPending||e[14]!==s?(x=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=x):x=e[15];let m;e[16]!==g||e[17]!==s?(m=()=>n.jsxs(V,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[n.jsx("span",{className:"truncate",children:g??s("settings.jira.boardPlaceholder")}),n.jsx(ue,{className:"opacity-50 shrink-0"})]}),e[16]=g,e[17]=s,e[18]=m):m=e[18];let j;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==a?(j=y=>{!y||y===l.boardId||a.mutate({boardId:y,boardName:r.find(v=>v.value===y)?.primary??null,statusMapping:{},enabled:!1},{onError:v=>I.error(U(v,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=a,e[23]=j):j=e[23];let h;e[24]!==r||e[25]!==p||e[26]!==d||e[27]!==u||e[28]!==x||e[29]!==m||e[30]!==j?(h=n.jsx(ct,{options:r,value:p,width:"w-72",triggerClassName:"shrink-0",placeholder:d,searchPlaceholder:u,filter:pt,emptyMessage:x,renderTrigger:m,renderItem:Tt,onChange:j}),e[24]=r,e[25]=p,e[26]=d,e[27]=u,e[28]=x,e[29]=m,e[30]=j,e[31]=h):h=e[31];let b;return e[32]!==h||e[33]!==c||e[34]!==f?(b=n.jsx(L,{title:c,description:f,action:h}),e[32]=h,e[33]=c,e[34]=f,e[35]=b):b=e[35],b}function Tt(t,e){return n.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"truncate",children:t.primary}),n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),n.jsx(me,{className:Z("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function Pt(t){const{primary:e,secondary:l}=ge(t);return{value:String(t.id),label:gt(t),primary:e,secondary:l}}function It(t){const e=_.c(10),{integration:l}=t,s=A();let a;e[0]!==s?(a=s("settings.jira.mappingLabel"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==s?(i=s("settings.jira.mappingDescription"),e[2]=s,e[3]=i):i=e[3];let r;e[4]!==l?(r=n.jsx(Ct,{integration:l}),e[4]=l,e[5]=r):r=e[5];let o;return e[6]!==a||e[7]!==i||e[8]!==r?(o=n.jsx(L,{title:a,description:i,children:r}),e[6]=a,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}function Rt(t){const e=_.c(29),{integration:l}=t,s=A(),a=Y(),[i,r]=J.useState(l.jqlFilter??"");let o;e[0]!==i?(o=i.trim(),e[0]=i,e[1]=o):o=e[1];const g=o!==(l.jqlFilter??"");let c;e[2]!==s?(c=s("settings.jira.jqlLabel"),e[2]=s,e[3]=c):c=e[3];let f;e[4]!==s?(f=s("settings.jira.jqlDescription"),e[4]=s,e[5]=f):f=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=v=>r(v.target.value),e[6]=p):p=e[6];let d;e[7]!==s?(d=s("settings.jira.jqlPlaceholder"),e[7]=s,e[8]=d):d=e[8];let u;e[9]!==d||e[10]!==i?(u=n.jsx(G,{value:i,onChange:p,placeholder:d,className:"font-mono text-xs"}),e[9]=d,e[10]=i,e[11]=u):u=e[11];const x=!g||a.isPending;let m;e[12]!==s||e[13]!==a||e[14]!==i?(m=()=>a.mutate({jqlFilter:i.trim()===""?null:i.trim()},{onSuccess:()=>I.success(s("settings.jira.jqlSaved")),onError:v=>I.error(U(v,s("settings.jira.saveFailed")))}),e[12]=s,e[13]=a,e[14]=i,e[15]=m):m=e[15];let j;e[16]!==s?(j=s("settings.jira.jqlSave"),e[16]=s,e[17]=j):j=e[17];let h;e[18]!==x||e[19]!==m||e[20]!==j?(h=n.jsx(V,{variant:"outline",size:"sm",className:"shrink-0",disabled:x,onClick:m,children:j}),e[18]=x,e[19]=m,e[20]=j,e[21]=h):h=e[21];let b;e[22]!==h||e[23]!==u?(b=n.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[u,h]}),e[22]=h,e[23]=u,e[24]=b):b=e[24];let y;return e[25]!==b||e[26]!==c||e[27]!==f?(y=n.jsx(L,{title:c,description:f,children:b}),e[25]=b,e[26]=c,e[27]=f,e[28]=y):y=e[28],y}function At(t){const e=_.c(15),{integration:l}=t,s=A(),a=Y();let i;e[0]!==s?(i=s("settings.jira.autoDelegateLabel"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.autoDelegateDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==s||e[5]!==a?(o=f=>a.mutate({autoDelegate:f},{onError:p=>I.error(U(p,s("settings.jira.saveFailed")))}),e[4]=s,e[5]=a,e[6]=o):o=e[6];let g;e[7]!==l.autoDelegate||e[8]!==o||e[9]!==a.isPending?(g=n.jsx(se,{checked:l.autoDelegate,disabled:a.isPending,onCheckedChange:o}),e[7]=l.autoDelegate,e[8]=o,e[9]=a.isPending,e[10]=g):g=e[10];let c;return e[11]!==i||e[12]!==r||e[13]!==g?(c=n.jsx(L,{title:i,description:r,action:g}),e[11]=i,e[12]=r,e[13]=g,e[14]=c):c=e[14],c}function Et(t){const e=_.c(32),{integration:l}=t,s=A(),a=Y(),i=yt();let r;e[0]!==l.statusMapping?(r=Object.keys(l.statusMapping),e[0]=l.statusMapping,e[1]=r):r=e[1];const o=r.length>0;let g;e[2]!==s?(g=s("settings.jira.enableLabel"),e[2]=s,e[3]=g):g=e[3];let c;e[4]!==l?(c=n.jsx(Nt,{integration:l}),e[4]=l,e[5]=c):c=e[5];const f=!l.enabled||i.isPending;let p;e[6]!==i||e[7]!==s?(p=()=>i.mutate(void 0,{onSuccess:b=>{"error"in b?I.error(b.error):I.success(s("settings.jira.syncDone",{created:String(b.created),updated:String(b.updated)}))},onError:b=>I.error(U(b,s("settings.jira.syncFailed")))}),e[6]=i,e[7]=s,e[8]=p):p=e[8];let d;e[9]!==i.isPending||e[10]!==s?(d=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[9]=i.isPending,e[10]=s,e[11]=d):d=e[11];let u;e[12]!==f||e[13]!==p||e[14]!==d?(u=n.jsx(V,{variant:"outline",size:"sm",disabled:f,onClick:p,children:d}),e[12]=f,e[13]=p,e[14]=d,e[15]=u):u=e[15];let x;e[16]!==o||e[17]!==l.boardId||e[18]!==s||e[19]!==a?(x=b=>{if(b&&(!l.boardId||!o)){I.error(s("settings.jira.enableRequirements"));return}a.mutate({enabled:b},{onError:y=>I.error(U(y,s("settings.jira.saveFailed")))})},e[16]=o,e[17]=l.boardId,e[18]=s,e[19]=a,e[20]=x):x=e[20];let m;e[21]!==l.enabled||e[22]!==x||e[23]!==a.isPending?(m=n.jsx(se,{checked:l.enabled,disabled:a.isPending,onCheckedChange:x}),e[21]=l.enabled,e[22]=x,e[23]=a.isPending,e[24]=m):m=e[24];let j;e[25]!==u||e[26]!==m?(j=n.jsxs("div",{className:"flex items-center gap-3",children:[u,m]}),e[25]=u,e[26]=m,e[27]=j):j=e[27];let h;return e[28]!==j||e[29]!==g||e[30]!==c?(h=n.jsx(L,{title:g,description:c,action:j}),e[28]=j,e[29]=g,e[30]=c,e[31]=h):h=e[31],h}function $t(t){const e=_.c(24),{integration:l}=t,s=A(),a=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==a?(o=n.jsx(G,{readOnly:!0,value:a,className:"font-mono text-xs"}),e[4]=a,e[5]=o):o=e[5];let g;e[6]!==s||e[7]!==a?(g=()=>{navigator.clipboard.writeText(a),I.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=a,e[8]=g):g=e[8];let c;e[9]!==s?(c=s("settings.jira.webhookCopy"),e[9]=s,e[10]=c):c=e[10];let f;e[11]!==g||e[12]!==c?(f=n.jsx(V,{variant:"outline",size:"sm",className:"shrink-0",onClick:g,children:c}),e[11]=g,e[12]=c,e[13]=f):f=e[13];let p;e[14]!==o||e[15]!==f?(p=n.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=p):p=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wt,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=d):d=e[17];let u;e[18]!==p?(u=n.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[p,d]}),e[18]=p,e[19]=u):u=e[19];let x;return e[20]!==i||e[21]!==r||e[22]!==u?(x=n.jsx(L,{title:i,description:r,children:u}),e[20]=i,e[21]=r,e[22]=u,e[23]=x):x=e[23],x}function Kt(){const t=_.c(28),e=A(),l=jt();if(l.isPending){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(ee,{children:n.jsx("div",{className:"p-4",children:n.jsx(fe,{className:"h-40 w-full"})})}),t[0]=d):d=t[0],d}if(!l.data){let d;t[1]!==e?(d=e("settings.jira.connectTitle"),t[1]=e,t[2]=d):d=t[2];let u;t[3]!==e?(u=e("settings.jira.connectDescription"),t[3]=e,t[4]=u):u=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(_t,{}),t[5]=x):x=t[5];let m;return t[6]!==d||t[7]!==u?(m=n.jsx(ee,{children:n.jsx(L,{title:d,description:u,children:x})}),t[6]=d,t[7]=u,t[8]=m):m=t[8],m}const s=l.data;let a,i,r;t[9]!==s?(a=n.jsx(kt,{integration:s}),i=n.jsx(Dt,{integration:s}),r=s.boardId&&n.jsx(It,{integration:s}),t[9]=s,t[10]=a,t[11]=i,t[12]=r):(a=t[10],i=t[11],r=t[12]);let o;t[13]!==s?(o=s.boardId&&n.jsx(Rt,{integration:s}),t[13]=s,t[14]=o):o=t[14];let g;t[15]!==s?(g=s.boardId&&n.jsx(At,{integration:s}),t[15]=s,t[16]=g):g=t[16];let c,f;t[17]!==s?(c=n.jsx(Et,{integration:s}),f=n.jsx($t,{integration:s}),t[17]=s,t[18]=c,t[19]=f):(c=t[18],f=t[19]);let p;return t[20]!==a||t[21]!==i||t[22]!==r||t[23]!==o||t[24]!==g||t[25]!==c||t[26]!==f?(p=n.jsxs(ee,{children:[a,i,r,o,g,c,f]}),t[20]=a,t[21]=i,t[22]=r,t[23]=o,t[24]=g,t[25]=c,t[26]=f,t[27]=p):p=t[27],p}function Ft(){const t=_.c(17),e=A();let l;t[0]!==e?(l=e("settings.nav.tasks"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==l?(s=n.jsx(te.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let a,i;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ut,{}),i=n.jsx(ft,{}),t[4]=a,t[5]=i):(a=t[4],i=t[5]);let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(dt,{size:18}),t[6]=r):r=t[6];let o;t[7]!==e?(o=e("settings.jira.sectionTitle"),t[7]=e,t[8]=o):o=t[8];let g;t[9]!==o?(g=n.jsxs("span",{className:"flex items-center gap-2",children:[r,o]}),t[9]=o,t[10]=g):g=t[10];let c;t[11]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Kt,{}),t[11]=c):c=t[11];let f;t[12]!==g?(f=n.jsx(ne,{title:g,children:c}),t[12]=g,t[13]=f):f=t[13];let p;return t[14]!==s||t[15]!==f?(p=n.jsx(te,{children:n.jsx(te.Content,{children:n.jsx(te.Body,{children:n.jsxs(pe,{children:[s,a,i,f]})})})}),t[14]=s,t[15]=f,t[16]=p):p=t[16],p}function hs(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ot,{capability:"org:manage",area:"settings",children:n.jsx(Ft,{})}),t[0]=e):e=t[0],e}export{hs as default};
@@ -1 +0,0 @@
1
- import{ak as c,am as r,al as C,aq as k,ar as d,an as D,bl as q,bL as T,c as u,H as S,o as E,aQ as z,K as y,av as G,p as O,e as L,r as Q}from"./index-DmupevWM.js";import{W as U}from"./constants-_08zpzmT.js";c({title:r(),url:r(),icon:r()});c({registries:k(r(),c({enabled:d()})).describe("Per-registry enabled/disabled state. Key is connection ID. Absent registries are treated as enabled."),blockedMcps:C(r()).describe("List of MCP app_name or app_id values to hide from the store.")});const f=c({keyId:r(),modelId:r(),title:r().optional()}).nullable();D(["fast","smart","thinking","image","web_search","deep_research"]);D(["fast","smart","thinking"]);const ie=c({tiers:c({fast:f,smart:f,thinking:f,image:f,web_search:f,deep_research:f})});c({tiers:c({fast:f.optional(),smart:f.optional(),thinking:f.optional()})});c({ids:C(r()).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});function W(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;const t=Date.parse(`${e}T00:00:00.000Z`);return Number.isNaN(t)?null:new Date(t).toISOString().slice(0,10)===e?t:null}c({enabled:d().describe("Whether the board shows the sprint property and its filter. Off hides both; tasks keep any sprint already assigned."),weeks:q().int().min(1).max(12).describe("How many weeks one sprint lasts."),startDate:r().regex(/^\d{4}-\d{2}-\d{2}$/).refine(e=>W(e)!==null,{message:"startDate must be a real calendar day"}).describe("Calendar day sprint 1 starts on (YYYY-MM-DD, read as UTC). Every later sprint is counted from here.")});c({demo_mode:d().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:d().optional().describe("Curated commerce (reports) look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),nav_v2:d().optional().describe("First-class navigation: the sidebar lists destinations (Reports, Library, Tasks) instead of chat threads, and the thread list moves into a menu at the top of the chat panel. Seeded on for newly created orgs (see NEW_ORG_DEFAULT_FLAGS) and defaults on for reports_only orgs; an explicit false wins over both."),qa_agent_enabled:d().optional().describe("Run the QA Agent on a task's pull request once it's In Review — it verifies the task actually solved the problem (exercises the feature, not just the diff)."),code_reviewer_enabled:d().optional().describe("Run the Code Reviewer on a task's pull request once it's In Review — it reviews the code using the repo's stack-appropriate review skills."),auto_merge:d().optional().describe("When every enabled reviewer (QA Agent / Code Reviewer) approves a task's pull request, merge it automatically instead of leaving the merge to a human. If the merge is blocked by a conflict with the base branch, hand the PR back to the Super Agent to resolve the conflict (check out the branch, merge the base, push) so it can then merge."),cheap_reviewer_model:d().optional().describe("Run the QA Agent and Code Reviewer on a cheaper model than the Super Agent. A review reads a diff and reaches a verdict; it does not need the model that wrote the code. Off by default — turning it on trades some review depth for cost."),auto_assign_report_tasks_to_super_agent:d().optional().describe("When a report import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned.")});const x=new Set(["qa_agent_enabled","code_reviewer_enabled"]);function Y(e,t){const n=e?.[t];return x.has(t)?n!==!1:n===!0}c({id:r().describe("Brand context ID"),name:r().describe("Company name"),domain:r().describe("Company domain (e.g. example.com)"),overview:r().describe("Company overview / description"),logo:r().nullable().optional().describe("Logo URL"),favicon:r().nullable().optional().describe("Favicon URL"),ogImage:r().nullable().optional().describe("OG image URL"),fonts:c({heading:r().optional().describe("Font family for headings"),body:r().optional().describe("Font family for body text"),code:r().optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:c({primary:r().optional().describe("Primary brand color (hex)"),secondary:r().optional().describe("Secondary brand color (hex)"),accent:r().optional().describe("Accent / highlight color (hex)"),background:r().optional().describe("Background color (hex)"),foreground:r().optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:C(k(r(),T())).nullable().optional().describe("Brand images"),metadata:k(r(),T()).nullable().optional().describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:r().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:d().optional().describe("Whether this is the default brand for the organization")});const M={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null,main_agent_id:null,sprint_config:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function $(e,t){return{queryKey:y.organizationSettings(t),queryFn:async()=>{try{return await z(e,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...M,organizationId:t}}},staleTime:6e4}}function g(e){const t=u.c(6),{org:n}=S();let a;t[0]!==n.id||t[1]!==n.slug?(a=$(n.slug,n.id),t[0]=n.id,t[1]=n.slug,t[2]=a):a=t[2];const s=e;let o;return t[3]!==a||t[4]!==s?(o={...a,select:s},t[3]=a,t[4]=s,t[5]=o):o=t[5],E(o)}function re(e,t){const n=u.c(3);let a;n[0]!==e||n[1]!==t?(a=$(t,e),n[0]=e,n[1]=t,n[2]=a):a=n[2];const{data:s}=E(a);return s??null}function p(){const e=u.c(9),{org:t}=S(),n=G(),a=O();let s;e[0]!==t||e[1]!==n?(s=async l=>{const m=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t.id,...l});if(!m)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return m},e[0]=t,e[1]=n,e[2]=s):s=e[2];let o;e[3]!==t||e[4]!==a?(o=l=>{a.setQueryData(y.organizationSettings(t.id),m=>({...m??M,...l}))},e[3]=t,e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==s||e[7]!==o?(i={mutationFn:s,onSuccess:o},e[6]=s,e[7]=o,e[8]=i):i=e[8],L(i)}function K(e){return e?.tiers?{tiers:{fast:e.tiers.fast??null,smart:e.tiers.smart??null,thinking:e.tiers.thinking??null,image:e.tiers.image??null,web_search:e.tiers.web_search??null,deep_research:e.tiers.deep_research??null}}:N}function le(){const{data:e}=g(H);return e??N}function H(e){return K(e.simple_mode)}function ce(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(o,i)=>t.mutate({simple_mode:o},i),a=(o,i)=>t.mutateAsync({simple_mode:o},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let s;return e[3]!==t||e[4]!==n||e[5]!==a?(s={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=s):s=e[6],s}function ue(){return B("reports_only")}function de(){const{data:e}=g(j);return e??!1}function j(e){return e.flags?.nav_v2??e.flags?.reports_only??!1}function B(e){const t=u.c(5);let n;t[0]!==e?(n=o=>Y(o.flags,e),t[0]=e,t[1]=n):n=t[1];const{data:a}=g(n);let s;return t[2]!==a||t[3]!==e?(s=a??x.has(e),t[2]=a,t[3]=e,t[4]=s):s=t[4],s}function me(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(o,i,l)=>t.mutate({flags:{[o]:i}},l),a=(o,i,l)=>t.mutateAsync({flags:{[o]:i}},l),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let s;return e[3]!==t||e[4]!==n||e[5]!==a?(s={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=s):s=e[6],s}function fe(){const{data:e}=g(Z);return e??null}function Z(e){return e.sprint_config}function ge(){const e=u.c(3),{data:t,isSuccess:n}=g(V),a=t??null;let s;return e[0]!==n||e[1]!==a?(s={config:a,isLoaded:n},e[0]=n,e[1]=a,e[2]=s):s=e[2],s}function V(e){return e.sprint_config}function pe(){const e=u.c(5),t=p();let n;e[0]!==t?(n=(s,o)=>t.mutate({sprint_config:s},o),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==t||e[3]!==n?(a={...t,mutate:n},e[2]=t,e[3]=n,e[4]=a):a=e[4],a}function J(){const{data:e}=g(X);return e??null}function X(e){return e.registry_config}function he(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(o,i)=>t.mutate({registry_config:o},i),a=(o,i)=>t.mutateAsync({registry_config:o},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let s;return e[3]!==t||e[4]!==n||e[5]!==a?(s={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=s):s=e[6],s}function be(){const{data:e}=g(ee);return e??null}function ee(e){return e.default_home_agents}function te(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(o,i)=>t.mutate({default_home_agents:o},i),a=(o,i)=>t.mutateAsync({default_home_agents:o},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let s;return e[3]!==t||e[4]!==n||e[5]!==a?(s={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=s):s=e[6],s}function _e(){const e=u.c(14),{org:t}=S(),n=te(),a=O();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Promise.resolve(),e[0]=s):s=e[0];const o=Q.useRef(s);let i;e[1]!==t.id?(i=y.organizationSettings(t.id),e[1]=t.id,e[2]=i):i=e[2];const l=i;let m;e[3]!==l||e[4]!==a?(m=()=>a.getQueryData(l)?.default_home_agents?.ids??[],e[3]=l,e[4]=a,e[5]=m):m=e[5];const v=m;let b;e[6]!==l||e[7]!==t.slug||e[8]!==a||e[9]!==n?(b=F=>{const I=o.current.then(async()=>{const R=a.getQueryData(l),w=F(R?.default_home_agents?.ids??[]);if(w!==null){a.setQueryData(l,h=>h&&{...h,default_home_agents:{ids:w}});try{await n.mutateAsync({ids:w}),await a.refetchQueries({queryKey:y.homeNextActions(t.slug),type:"active"})}catch(h){const P=h;throw a.setQueryData(l,R),P}}});return o.current=I.catch(ne),I},e[6]=l,e[7]=t.slug,e[8]=a,e[9]=n,e[10]=b):b=e[10];const A=b;let _;return e[11]!==A||e[12]!==v?(_={currentIds:v,apply:A},e[11]=A,e[12]=v,e[13]=_):_=e[13],_}function ne(){}function ye(){const e=u.c(3),{data:t,isPending:n}=g(ae),a=t??null;let s;return e[0]!==n||e[1]!==a?(s={mainAgentId:a,isPending:n},e[0]=n,e[1]=a,e[2]=s):s=e[2],s}function ae(e){return e.main_agent_id??null}function Se(){const e=u.c(7),t=p();let n,a;e[0]!==t?(n=(o,i)=>t.mutate({main_agent_id:o},i),a=(o,i)=>t.mutateAsync({main_agent_id:o},i),e[0]=t,e[1]=n,e[2]=a):(n=e[1],a=e[2]);let s;return e[3]!==t||e[4]!==n||e[5]!==a?(s={...t,mutate:n,mutateAsync:a},e[3]=t,e[4]=n,e[5]=a,e[6]=s):s=e[6],s}function ve(){const e=u.c(5),{org:t}=S(),n=J();let a;e[0]!==t.id?(a=U.REGISTRY(t.id),e[0]=t.id,e[1]=a):a=e[1];const s=a;let o;return e[2]!==s||e[3]!==n?(o=i=>{if(!n)return i===s;const l=n.registries[i];return l?l.enabled:i===s},e[2]=s,e[3]=n,e[4]=o):o=e[4],o}export{ie as S,ue as a,de as b,le as c,be as d,_e as e,fe as f,ye as g,ve as h,re as i,Se as j,me as k,ce as l,J as m,ge as n,pe as o,W as p,he as q,B as u};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-BfrvLRgk.js";import{eR as i}from"./index-DmupevWM.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./use-infinite-scroll-BfrvLRgk.js";import{eR as u,bD as n}from"./index-DmupevWM.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};