decocms 4.329.1 → 4.329.2

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 (245) hide show
  1. package/dist/client/assets/{AlertCircle-glTagKnn.js → AlertCircle-B_1bwOez.js} +1 -1
  2. package/dist/client/assets/{AreaChart-U7aGDAcR.js → AreaChart-CxY2iUbX.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-D3GFMfBi.js → ArrowLeft-BjExvx0V.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-B7KxewK2.js → ArrowUp-DgVT42kZ.js} +1 -1
  5. package/dist/client/assets/{Check-BkGdJKSE.js → Check-BmP0GDvn.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-CphNcOq6.js → CheckCircle-CeGWrtMp.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DldrqT_5.js → ChevronRight-CNXUEnI5.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-BkGHSJFm.js → ChevronSelectorVertical-BpxuGhOG.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-fc1U9Ia7.js → ChevronUp-xfjXJ2sT.js} +1 -1
  10. package/dist/client/assets/{Copy01-Bgs4Qu4I.js → Copy01-LcV42o-X.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-zMRzLvdG.js → CreditCard01-D3g2E8yg.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-DVS5jGYn.js → DotsVertical-BhgzOJWF.js} +1 -1
  13. package/dist/client/assets/{Download01-Bh_wFZGF.js → Download01-C0UjxGyP.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-Qmy0570t.js → ErrorBarContext-DTKrWFlx.js} +1 -1
  15. package/dist/client/assets/{Eye-CkqwKuDn.js → Eye-C3r9wtre.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-CBvrqVgH.js → GitBranch01-DT4AbL-m.js} +1 -1
  17. package/dist/client/assets/{Globe01-Cgjujgie.js → Globe01-BYv9cftf.js} +1 -1
  18. package/dist/client/assets/{HardDrive-BnWTu1c8.js → HardDrive-CgsFhwaQ.js} +1 -1
  19. package/dist/client/assets/{Image01-BlgHok8c.js → Image01-GxWtLpiI.js} +1 -1
  20. package/dist/client/assets/{Key01-Cjrz8YCe.js → Key01-C57Lez_q.js} +1 -1
  21. package/dist/client/assets/{Link01-B831bX1S.js → Link01-EBlmMRZH.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-BwL4MRbw.js → LinkExternal01-DHh1KWUs.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DqiGTsqJ.js → Monitor01-Bnd-_HOM.js} +1 -1
  24. package/dist/client/assets/{Package-oDI7QzRv.js → Package-ClC-jxvu.js} +1 -1
  25. package/dist/client/assets/{Palette-CLEY0-M8.js → Palette-BptcDBZA.js} +1 -1
  26. package/dist/client/assets/{Play-BeJRFaGI.js → Play-Bf6Clcfo.js} +1 -1
  27. package/dist/client/assets/{Plus-CKVw1bnc.js → Plus-DiEyY1MZ.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BpLi-D08.js → SearchMd-BHekLPNH.js} +1 -1
  29. package/dist/client/assets/{Sector-mQR4Ets_.js → Sector-BP06-zu3.js} +1 -1
  30. package/dist/client/assets/{Settings02-DM7IaDwr.js → Settings02-B6haVyjm.js} +1 -1
  31. package/dist/client/assets/{Share07-BUqvxgUi.js → Share07-BMtuKCEW.js} +1 -1
  32. package/dist/client/assets/{Shield01-BhnBTI-m.js → Shield01-BNPD8ohV.js} +1 -1
  33. package/dist/client/assets/{Stars01-BcN6cAUG.js → Stars01-BGfTKNXr.js} +1 -1
  34. package/dist/client/assets/{Sun-C69M4-p0.js → Sun-C0UUghdd.js} +1 -1
  35. package/dist/client/assets/{Tool01-CFaN6H7u.js → Tool01-yoc-dG2k.js} +1 -1
  36. package/dist/client/assets/{Tool02-CojvwMIx.js → Tool02-B6CDeSio.js} +1 -1
  37. package/dist/client/assets/{Trash01-B3CBFwQu.js → Trash01-jVgJ4fGm.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-DFzG5dv4.js → TrendUp01-C4D9k0-P.js} +1 -1
  39. package/dist/client/assets/{Upload01-4OH0nHlo.js → Upload01-DZZoXNq4.js} +1 -1
  40. package/dist/client/assets/{User01-BC-DBefx.js → User01-BfsxZ17b.js} +1 -1
  41. package/dist/client/assets/{UserSquare-C6AqPITK.js → UserSquare-D50MJT5y.js} +1 -1
  42. package/dist/client/assets/{Users01-CYxsovzS.js → Users01-DpM48CGG.js} +1 -1
  43. package/dist/client/assets/{Users03-DLDUqBHf.js → Users03-CIxXVNij.js} +1 -1
  44. package/dist/client/assets/{XCircle-DsBDZDDG.js → XCircle-CGhaHWix.js} +1 -1
  45. package/dist/client/assets/{XClose-CjvkH3S8.js → XClose-B-5LFTLX.js} +1 -1
  46. package/dist/client/assets/{Zap-B-_4m1wg.js → Zap-ChFDF4ng.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-PyUsaMfH.js → ZoomOut-CY6Sh2Fl.js} +1 -1
  48. package/dist/client/assets/{access-gate-EAQsEsVC.js → access-gate-BAjtlg6r.js} +1 -1
  49. package/dist/client/assets/{agent-icon-B7TYykkr.js → agent-icon-BVAqzTse.js} +1 -1
  50. package/dist/client/assets/{agents-list-B-k9nJxo.js → agents-list-ClLmApbx.js} +1 -1
  51. package/dist/client/assets/{ai-providers-DHsQh-cH.js → ai-providers-CIsXi9IW.js} +1 -1
  52. package/dist/client/assets/{alert-DnLB_O9h.js → alert-DsVjZo62.js} +1 -1
  53. package/dist/client/assets/{alert-dialog-DHahvYoS.js → alert-dialog-B7BPLPwk.js} +1 -1
  54. package/dist/client/assets/{analytics-tab-Cg1Uf91d.js → analytics-tab-D4NGGIf8.js} +1 -1
  55. package/dist/client/assets/api-keys-BxOjbpem.js +1 -0
  56. package/dist/client/assets/{api-keys-CCwkxaNi.js → api-keys-DzCMi9Yp.js} +1 -1
  57. package/dist/client/assets/{app-editor-B6sIJYV8.js → app-editor-CmLu7M_9.js} +1 -1
  58. package/dist/client/assets/{auth-DZ7suyaW.js → auth-DSeksT1d.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-rTppL3aN.js → auth-catchall-DYCMQmyd.js} +1 -1
  60. package/dist/client/assets/{auth-entry-OexzlA7E.js → auth-entry-C5_Vfv9J.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-BcnzAhG2.js → auth-split-layout-BtYmRkYL.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-X6dHyEra.js → authenticate-and-persist-oauth-DvyQQzuy.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-BmhzO0Gc.js → automation-list-row-BlgZvE4S.js} +1 -1
  64. package/dist/client/assets/{automation-runs-B1-CwSL7.js → automation-runs-CKCntpAP.js} +1 -1
  65. package/dist/client/assets/automations-CVf5lVeq.js +1 -0
  66. package/dist/client/assets/{avatar-NShmjW8N.js → avatar-2bUzCm0h.js} +1 -1
  67. package/dist/client/assets/{badge-CnnV1Ji7.js → badge-CvFiYVx2.js} +1 -1
  68. package/dist/client/assets/{block-document-CJRwurkC.js → block-document-Dx24Y5u4.js} +1 -1
  69. package/dist/client/assets/{breadcrumb-BNZo3TmX.js → breadcrumb-BVIqnGKs.js} +1 -1
  70. package/dist/client/assets/{buckets-BCwZL4En.js → buckets-DicvI4cK.js} +1 -1
  71. package/dist/client/assets/{bulk-category-panel-CUoNCchc.js → bulk-category-panel-CgXreOf9.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-862E3fES.js → capability-load-error-CuZhrMXL.js} +1 -1
  73. package/dist/client/assets/{cards-Ca28ZIFm.js → cards-BQKYAaKA.js} +1 -1
  74. package/dist/client/assets/{category-editor-H8I5sfyi.js → category-editor-3o-Hv1HI.js} +1 -1
  75. package/dist/client/assets/{cdn-tab-tON2b9fd.js → cdn-tab-BHefx8Ex.js} +1 -1
  76. package/dist/client/assets/{chart-DNoBmMC9.js → chart-cUhkAL1G.js} +1 -1
  77. package/dist/client/assets/{chat-context-DuFN4EeO.js → chat-context-xWb098gj.js} +1 -1
  78. package/dist/client/assets/{checkbox-Dm0ArtDP.js → checkbox-CoCRtkFw.js} +1 -1
  79. package/dist/client/assets/{choose-editor-BqlCYbQg.js → choose-editor-BuBIsIXz.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-B8E981Cy.js → cli-auth-success-BKYN6nOE.js} +1 -1
  81. package/dist/client/assets/{client-icons-DCtEf6LD.js → client-icons-rl1L1bR8.js} +1 -1
  82. package/dist/client/assets/{collection-detail-DGLdi7va.js → collection-detail-CCycwWOj.js} +1 -1
  83. package/dist/client/assets/{collection-display-button-Rc7ctvU2.js → collection-display-button-DXjHMVgB.js} +1 -1
  84. package/dist/client/assets/{collection-search-Dl7mFyG3.js → collection-search-BtpPnHgt.js} +1 -1
  85. package/dist/client/assets/{collection-table-wrapper-C9Tn92xK.js → collection-table-wrapper-g7HZKvPh.js} +1 -1
  86. package/dist/client/assets/{collection-tabs-DjiJAB6y.js → collection-tabs-DXXidg_g.js} +1 -1
  87. package/dist/client/assets/{command-DzuuFKPg.js → command-BwEtvqmz.js} +1 -1
  88. package/dist/client/assets/{commerce-onboarding-DtNdSY6_.js → commerce-onboarding-CMZ4VqOe.js} +1 -1
  89. package/dist/client/assets/{connect-BkHLKUe0.js → connect-BNp45oxd.js} +1 -1
  90. package/dist/client/assets/{connect-layout-TUA0Pf0L.js → connect-layout-Dcn3JiSG.js} +1 -1
  91. package/dist/client/assets/{connection-BCj3V21T.js → connection-B7psEj97.js} +1 -1
  92. package/dist/client/assets/{connection-card-C8twukKV.js → connection-card-DmTfQY0Z.js} +1 -1
  93. package/dist/client/assets/{connection-detail-bHwZkydF.js → connection-detail-C_CI7Eq_.js} +1 -1
  94. package/dist/client/assets/{connection-form-helpers-a2liYWOG.js → connection-form-helpers-Bisy7nah.js} +1 -1
  95. package/dist/client/assets/{connections-DALEMPKM.js → connections-Dc5vYbiK.js} +1 -1
  96. package/dist/client/assets/{create-organization-dialog-XLD1VOzz.js → create-organization-dialog-jyb5Hqvo.js} +1 -1
  97. package/dist/client/assets/{decopilot-sse-pool-DS_lNrti.js → decopilot-sse-pool-8OMuGjSu.js} +1 -1
  98. package/dist/client/assets/{dialog-uJAshKHm.js → dialog-C9MkeCLW.js} +1 -1
  99. package/dist/client/assets/{domain-settings-C1C2u89d.js → domain-settings-xgmBYF6d.js} +1 -1
  100. package/dist/client/assets/{download-app-dialog-DUZmkw6s.js → download-app-dialog-DoJFTyCS.js} +1 -1
  101. package/dist/client/assets/{drawer-BxLMQKrQ.js → drawer-DDx_r4uI.js} +1 -1
  102. package/dist/client/assets/{dropdown-menu-D4Trqrfg.js → dropdown-menu-Cmn8nT21.js} +1 -1
  103. package/dist/client/assets/{e2e-tab-PpTwVvCy.js → e2e-tab-CofrEmHd.js} +1 -1
  104. package/dist/client/assets/{editor-CSTGuz_W.js → editor-BgxyaCx1.js} +1 -1
  105. package/dist/client/assets/{empty-state-DsEdSn9I.js → empty-state-BzrUSZJH.js} +1 -1
  106. package/dist/client/assets/{empty-state-DQ2juxQ-.js → empty-state-DgYUOiXi.js} +1 -1
  107. package/dist/client/assets/{extract-connection-data-BG1m52JH.js → extract-connection-data-Ta5CfWdX.js} +1 -1
  108. package/dist/client/assets/{file-explorer-Ci2oBBz4.js → file-explorer-my9Ey5gp.js} +1 -1
  109. package/dist/client/assets/{file-type-icon-D76m9e9r.js → file-type-icon-9SiPScqt.js} +1 -1
  110. package/dist/client/assets/{folder-icon-DFD_wmIj.js → folder-icon-BYpDtu9r.js} +1 -1
  111. package/dist/client/assets/{form--mQmddL0.js → form-DQRYyHuE.js} +1 -1
  112. package/dist/client/assets/{general-DNQXb-Gl.js → general-BiyU04cf.js} +1 -1
  113. package/dist/client/assets/{github-repo-picker-DE7Pjo4O.js → github-repo-picker-jjkr6gM_.js} +1 -1
  114. package/dist/client/assets/{hooks-hDI0cnVE.js → hooks-Cbo6FV71.js} +1 -1
  115. package/dist/client/assets/{hosting-tab-Dm9W-MD0.js → hosting-tab-BsX_gWvo.js} +1 -1
  116. package/dist/client/assets/{index-B6TuqJzq.js → index-2KFtIyPv.js} +1 -1
  117. package/dist/client/assets/{index-CXP_jLrf.js → index-5gf5YDcB.js} +1 -1
  118. package/dist/client/assets/{index-BNIJkTs4.js → index-BaV56Hgf.js} +1 -1
  119. package/dist/client/assets/{index-CsP49IEW.js → index-BhIEf0YW.js} +36 -36
  120. package/dist/client/assets/{index-Jix3MGlr.js → index-Bk9nLl13.js} +1 -1
  121. package/dist/client/assets/{index-qvpq0R0S.js → index-BpVGJw8l.js} +1 -1
  122. package/dist/client/assets/{index-Bg6k01CD.js → index-DLcFGlgD.js} +1 -1
  123. package/dist/client/assets/{index-Dg3MDkI1.js → index-DjGKlDpc.js} +2 -2
  124. package/dist/client/assets/{index-DzBORLlH.js → index-Mhox33WS.js} +1 -1
  125. package/dist/client/assets/{index-BqXOlHvm.js → index-pjDOZ5YX.js} +1 -1
  126. package/dist/client/assets/{index-redirect-fBeQCmcx.js → index-redirect-B1BOKmdt.js} +1 -1
  127. package/dist/client/assets/{infra-billing-BEd-Z5HJ.js → infra-billing-C9VaHH74.js} +1 -1
  128. package/dist/client/assets/{input-Cd4ivG-h.js → input-wd-O5AQ7.js} +1 -1
  129. package/dist/client/assets/{integration-icon-Coxc3tMG.js → integration-icon-MYNRHpB-.js} +1 -1
  130. package/dist/client/assets/{invite-member-dialog-DnkoSNVH.js → invite-member-dialog-Cb6lFc9U.js} +1 -1
  131. package/dist/client/assets/{label-igQY4yJP.js → label-DNcrpS3C.js} +1 -1
  132. package/dist/client/assets/{layout-CLt7SzNs.js → layout-BEM6tPG1.js} +1 -1
  133. package/dist/client/assets/{login-Caa3zeY3.js → login-BSt01fYl.js} +1 -1
  134. package/dist/client/assets/{markdown-l8IKDOgx.js → markdown-1HpDfl48.js} +1 -1
  135. package/dist/client/assets/{mcp-oauth-DBFGEu2L.js → mcp-oauth-C6B-bjEy.js} +1 -1
  136. package/dist/client/assets/{members-DeQivpnT.js → members-DRSBNGx_.js} +1 -1
  137. package/dist/client/assets/{monaco-editor-DxoB_WYn.js → monaco-editor-q9GZqpdG.js} +1 -1
  138. package/dist/client/assets/{monitoring-stats-row-CWTiKwAh.js → monitoring-stats-row-DLyCVKva.js} +1 -1
  139. package/dist/client/assets/{multi-select-XYS9AW25.js → multi-select-CFuJRMVa.js} +1 -1
  140. package/dist/client/assets/{oauth-callback-DzR8lBgk.js → oauth-callback-CFW0QFWH.js} +1 -1
  141. package/dist/client/assets/{oauth-callback-ai-provider-XP1TmLTG.js → oauth-callback-ai-provider-BuikBThI.js} +1 -1
  142. package/dist/client/assets/{onboarding-BVrWJYuW.js → onboarding-BKUV8oZu.js} +1 -1
  143. package/dist/client/assets/org-layout-428-HISQ.js +1 -0
  144. package/dist/client/assets/{organization-choice-CnQ7QVFa.js → organization-choice-Dbl5MksN.js} +1 -1
  145. package/dist/client/assets/{orgs-BVWqqZUS.js → orgs-C0--1SUX.js} +1 -1
  146. package/dist/client/assets/{page-seo-form-_XIXm9WO.js → page-seo-form-Iusc4dPm.js} +1 -1
  147. package/dist/client/assets/{popover-BBnlDYWg.js → popover-Bz4u0as0.js} +1 -1
  148. package/dist/client/assets/{post-calendar-C3cSxEJk.js → post-calendar-DUPmrQG0.js} +1 -1
  149. package/dist/client/assets/{post-editor-CR1o0BtB.js → post-editor-jhLQgMRM.js} +1 -1
  150. package/dist/client/assets/{primitives-CF2d7rym.js → primitives-DMgGeEfu.js} +1 -1
  151. package/dist/client/assets/{profile-By-xkVuU.js → profile-BO2Mz7sb.js} +1 -1
  152. package/dist/client/assets/{project-app-view-Bpm75GRM.js → project-app-view-DwBS62sZ.js} +1 -1
  153. package/dist/client/assets/{project-icon-CWP_8qk4.js → project-icon-B-AwUdvh.js} +1 -1
  154. package/dist/client/assets/{prompts-7b5JRLSr.js → prompts-DV7pN-FS.js} +1 -1
  155. package/dist/client/assets/record-editor-DZeep4ET.js +1 -0
  156. package/dist/client/assets/{redirect-editor-CJV99pdK.js → redirect-editor-C7hGM4lQ.js} +1 -1
  157. package/dist/client/assets/registry-DXli8D0x.js +2 -0
  158. package/dist/client/assets/{registry-layout-DpapqlO0.js → registry-layout-CzoCdmsR.js} +1 -1
  159. package/dist/client/assets/{reports-BcokFfCl.js → reports-DYLkD6Dm.js} +1 -1
  160. package/dist/client/assets/{require-capability-Bq6f109r.js → require-capability-BLOwhWCj.js} +1 -1
  161. package/dist/client/assets/{required-auth-layout-Bh5tcCa4.js → required-auth-layout-B3AAI2XB.js} +1 -1
  162. package/dist/client/assets/{reset-password-B2H4sN7h.js → reset-password-BeVMvjdU.js} +1 -1
  163. package/dist/client/assets/{review-settings-CqCF1K3f.js → review-settings-Cg2MRufY.js} +1 -1
  164. package/dist/client/assets/{roles-DgOByvtV.js → roles-BiFvg0Qy.js} +1 -1
  165. package/dist/client/assets/{schema-B7XR7qK3.js → schema-D4FcgO9F.js} +1 -1
  166. package/dist/client/assets/{scroll-area-BZBy1fGK.js → scroll-area-BPYhikGx.js} +1 -1
  167. package/dist/client/assets/{search-input-DCJwgAly.js → search-input-DMnK-NPB.js} +1 -1
  168. package/dist/client/assets/{secrets-C64mIDuu.js → secrets-B6BaGjxv.js} +1 -1
  169. package/dist/client/assets/{sections-editor-DxSNcAl5.js → sections-editor-CmR9GU6k.js} +1 -1
  170. package/dist/client/assets/{select-Dd7AR-Pc.js → select-9uMZ0JuU.js} +1 -1
  171. package/dist/client/assets/{select-model-BAZxHTFZ.js → select-model-DQhM2Ar1.js} +1 -1
  172. package/dist/client/assets/{self-tool-result-DIvytlXf.js → self-tool-result-D9twr-TH.js} +1 -1
  173. package/dist/client/assets/{seo-editor-CjLev9oJ.js → seo-editor-CJx6il94.js} +1 -1
  174. package/dist/client/assets/settings-layout-DRV9zQn7.js +1 -0
  175. package/dist/client/assets/{settings-sidebar-CaQ34vO3.js → settings-sidebar-Cyg-XKsj.js} +1 -1
  176. package/dist/client/assets/{shell-controls-B7n5NO-R.js → shell-controls-Bv0fBNdH.js} +1 -1
  177. package/dist/client/assets/{shell-layout-Es2gcPgj.js → shell-layout---e9WdOL.js} +1 -1
  178. package/dist/client/assets/{skill-preview-B-cVW8Ti.js → skill-preview-CQYKB_27.js} +1 -1
  179. package/dist/client/assets/{skills-DrFlL9xT.js → skills-BaZab3oz.js} +1 -1
  180. package/dist/client/assets/{sso-Be5oZv1I.js → sso-B6yfDwAs.js} +1 -1
  181. package/dist/client/assets/{store-C6LsJkgI.js → store-7yKkTFSQ.js} +1 -1
  182. package/dist/client/assets/store-registry-DJ7tHYY4.js +2 -0
  183. package/dist/client/assets/{switch-CM6VOqN2.js → switch-9AlGcAky.js} +1 -1
  184. package/dist/client/assets/{synced-repos-BY1cf0F3.js → synced-repos-DFMyqW_b.js} +1 -1
  185. package/dist/client/assets/{table-DEasb1oj.js → table-CT63GHWc.js} +1 -1
  186. package/dist/client/assets/{tabs-Bq1EfIB0.js → tabs-CTSf8Cbz.js} +1 -1
  187. package/dist/client/assets/{task-board-CFWERcPX.js → task-board-BIak1E3v.js} +1 -1
  188. package/dist/client/assets/{task-route-CcwyXkS8.js → task-route-CrxQp2Eb.js} +1 -1
  189. package/dist/client/assets/{tasks-C207PYtx.js → tasks-BRTXgOTF.js} +1 -1
  190. package/dist/client/assets/{textarea-DZn9bcqF.js → textarea-BPPpFkS7.js} +1 -1
  191. package/dist/client/assets/{toggle-group-YLq58Nhp.js → toggle-group-Djr9teJe.js} +1 -1
  192. package/dist/client/assets/{toolbar-CG7UaDiu.js → toolbar-DwOwcSY_.js} +1 -1
  193. package/dist/client/assets/{toolbar-icon-button-DOV4tAPT.js → toolbar-icon-button-DLOAX-UT.js} +1 -1
  194. package/dist/client/assets/{track-D5AT2HY9.js → track-BYurtGbZ.js} +1 -1
  195. package/dist/client/assets/{types-D5cSIo5A.js → types-Bx3gHThq.js} +1 -1
  196. package/dist/client/assets/{use-ai-providers-C4KvUz4Q.js → use-ai-providers-Cw0K6TIk.js} +1 -1
  197. package/dist/client/assets/{use-automations-CLTrDbBR.js → use-automations-DIaz55Fi.js} +1 -1
  198. package/dist/client/assets/{use-autosave-CF-pnZV7.js → use-autosave-Dwf53x3t.js} +1 -1
  199. package/dist/client/assets/{use-connection-BP7A4Wgv.js → use-connection-ChhNbk9M.js} +1 -1
  200. package/dist/client/assets/{use-copy-BeEwIY4h.js → use-copy-D7-xsCp4.js} +1 -1
  201. package/dist/client/assets/{use-create-virtual-mcp-DtiD_sLJ.js → use-create-virtual-mcp-DUUBAraH.js} +1 -1
  202. package/dist/client/assets/{use-debounced-autosave-bUkHJSPB.js → use-debounced-autosave-B-u5R3yy.js} +1 -1
  203. package/dist/client/assets/{use-debounced-value-5HRghJeG.js → use-debounced-value-Dv61_1Jd.js} +1 -1
  204. package/dist/client/assets/{use-decopilot-events-CprSnZyJ.js → use-decopilot-events-rltJCsXB.js} +1 -1
  205. package/dist/client/assets/{use-delete-connection-DkYC2cpV.js → use-delete-connection-CPGh_oYO.js} +1 -1
  206. package/dist/client/assets/{use-deployment-admin-DZc0DplR.js → use-deployment-admin-DR4qWEyy.js} +1 -1
  207. package/dist/client/assets/{use-destination-route-ZIZLPtGf.js → use-destination-route-DeG1VNie.js} +1 -1
  208. package/dist/client/assets/{use-file-configs-gP4J68v3.js → use-file-configs-5cG2k75J.js} +1 -1
  209. package/dist/client/assets/{use-infinite-scroll-BXSZ15e5.js → use-infinite-scroll-BuWiD3LM.js} +1 -1
  210. package/dist/client/assets/{use-join-requests-Bxo8Zfup.js → use-join-requests-C8CIUv51.js} +1 -1
  211. package/dist/client/assets/{use-mcp-auth-status-B5s_Nuiq.js → use-mcp-auth-status-KH3_aj7J.js} +1 -1
  212. package/dist/client/assets/{use-mcp-client-DOpmujvp.js → use-mcp-client-Co1Whr4B.js} +1 -1
  213. package/dist/client/assets/{use-mcp-prompts-BTYEgxzc.js → use-mcp-prompts-Dp5vD0OR.js} +1 -1
  214. package/dist/client/assets/{use-members-Hm5MJ_kb.js → use-members-BLCC6OcQ.js} +1 -1
  215. package/dist/client/assets/{use-navigate-to-agent-j5VE0Q04.js → use-navigate-to-agent-C2LAOCet.js} +3 -3
  216. package/dist/client/assets/{use-org-auth-client-BR76EYdr.js → use-org-auth-client-Dbwoi3Jr.js} +1 -1
  217. package/dist/client/assets/{use-org-sso-CqE2pmEN.js → use-org-sso-SxJRk-2L.js} +1 -1
  218. package/dist/client/assets/{use-organization-roles-CW1fkF2L.js → use-organization-roles-C-uZzGUJ.js} +1 -1
  219. package/dist/client/assets/{use-organization-settings-BtWG9tgs.js → use-organization-settings-BCG7WYXv.js} +1 -1
  220. package/dist/client/assets/{use-panel-navigate-CDaKzjBp.js → use-panel-navigate-CrFXFTDL.js} +1 -1
  221. package/dist/client/assets/{use-registry-connections-BnQ35ezt.js → use-registry-connections-340wegZj.js} +1 -1
  222. package/dist/client/assets/{use-secrets-S6gOwFAK.js → use-secrets-C1YeU41p.js} +1 -1
  223. package/dist/client/assets/{use-section-preview-base-B6ddh5nu.js → use-section-preview-base-CW_kpp0-.js} +1 -1
  224. package/dist/client/assets/{use-status-sounds-DCoeV7as.js → use-status-sounds-BuH2UnfF.js} +1 -1
  225. package/dist/client/assets/{use-tags-Bux2oT93.js → use-tags-CaXsZm3v.js} +1 -1
  226. package/dist/client/assets/{use-view-mode-CtXnIo7C.js → use-view-mode-xqNzfTBB.js} +1 -1
  227. package/dist/client/assets/{use-virtual-mcp-Cu0Tg71h.js → use-virtual-mcp-AIb-B8yK.js} +1 -1
  228. package/dist/client/assets/useInfiniteQuery-DbIFSpRo.js +1 -0
  229. package/dist/client/assets/useSuspenseInfiniteQuery-ESs36XTk.js +1 -0
  230. package/dist/client/assets/{users-CjA9sMgm.js → users-CWOt6Jd4.js} +1 -1
  231. package/dist/client/assets/{variant-calendar-DrdKAza6.js → variant-calendar-DgVO4w0k.js} +1 -1
  232. package/dist/client/assets/{view-mode-toggle-CB__tVCM.js → view-mode-toggle-BOXOYJpA.js} +1 -1
  233. package/dist/client/index.html +1 -1
  234. package/dist/server/cli.js +1 -1
  235. package/dist/server/server.js +1 -1
  236. package/package.json +1 -1
  237. package/dist/client/assets/api-keys-CCZ-S6_6.js +0 -1
  238. package/dist/client/assets/automations-DTylj-IF.js +0 -1
  239. package/dist/client/assets/org-layout-30NUnemc.js +0 -1
  240. package/dist/client/assets/record-editor-D9p-OWj2.js +0 -1
  241. package/dist/client/assets/registry-D5coVGUU.js +0 -2
  242. package/dist/client/assets/settings-layout-fDv9J5GW.js +0 -1
  243. package/dist/client/assets/store-registry-D9inFs_t.js +0 -2
  244. package/dist/client/assets/useInfiniteQuery-BaNnDXl3.js +0 -1
  245. package/dist/client/assets/useSuspenseInfiniteQuery-CL_Ty1NE.js +0 -1
@@ -1 +1 @@
1
- import{c as k,d as _e,W as R,o as E,Z as Ye,b as A,a as le,v as jt,I as vt,r as D,j as n,t as Xe,l as z,_ as ae,$ as yt,a0 as St,a1 as Nt,a2 as kt,a3 as _t,a4 as Pt,a5 as O,a6 as M,a7 as Ze,n as wt,e as It,K as Ct,B as At,a8 as ze,a9 as Ke,aa as $t,m as Tt,ab as Ot,L as zt,E as Mt}from"./index-Dg3MDkI1.js";import{u as Dt,t as et,S as Rt,A as Et,a as tt,e as Ft,r as st,b as Vt,s as Bt,p as Kt,P as Lt,c as qt,d as Ut,f as Ht,i as Qt,g as Wt,h as Gt,j as nt,k as Jt}from"./task-route-CcwyXkS8.js";import{u as Pe,r as Me,D as $,a as Yt}from"./use-destination-route-ZIZLPtGf.js";import{u as we,L as re,a as Ie,b as ot,P as Xt}from"./project-icon-CWP_8qk4.js";import{u as Zt}from"./hooks-hDI0cnVE.js";import{P as it,a as Re,b as at}from"./popover-BBnlDYWg.js";import{D as es,a as ts,b as ss}from"./drawer-BxLMQKrQ.js";import{A as ke}from"./avatar-NShmjW8N.js";import{a as ns}from"./Copy01-Bgs4Qu4I.js";import{n as os}from"./Download01-Bh_wFZGF.js";import{t as is,i as as,a as rs,b as ls,c as cs,n as Ee,d as rt,e as ds,f as ms,g as lt,h as us,j as fs,s as xs,k as ps}from"./agent-icon-B7TYykkr.js";import{i as bs}from"./Globe01-Cgjujgie.js";import{n as hs}from"./LinkExternal01-BwL4MRbw.js";import{h as Le,f as gs}from"./TrendUp01-DFzG5dv4.js";import{i as ct}from"./Monitor01-DqiGTsqJ.js";import{n as js,a as vs}from"./Sun-C69M4-p0.js";import{a as dt}from"./Settings02-DM7IaDwr.js";import{i as ys}from"./Shield01-BhnBTI-m.js";import{b as Ss}from"./Users03-DLDUqBHf.js";import{u as Ns}from"./use-deployment-admin-DZc0DplR.js";import{u as ks}from"./use-is-desktop-app-BNujXJc_.js";import{i as _s,a as qe,D as Ps}from"./download-app-dialog-DUZmkw6s.js";import{I as mt}from"./invite-member-dialog-DnkoSNVH.js";import{a as ws}from"./use-organization-settings-BtWG9tgs.js";import{u as Fe,S as Ce,a as Is,b as ut,c as Cs,d as As,e as $s,f as Ts,g as Os}from"./settings-sidebar-CaQ34vO3.js";import{S as zs}from"./scroll-area-BZBy1fGK.js";import{u as Ms}from"./useInfiniteQuery-BaNnDXl3.js";import{n as Ds}from"./decopilot-sse-pool-DS_lNrti.js";import{i as Rs}from"./ChevronRight-DldrqT_5.js";import{g as Es}from"./get-initials-D-f_fDFw.js";import{a as Fs}from"./format-time-BnbuEtat.js";import{i as Vs}from"./Share07-BUqvxgUi.js";import{u as Ve}from"./use-navigate-to-agent-j5VE0Q04.js";import{c as Bs}from"./XClose-CjvkH3S8.js";import{a as Ks}from"./Image01-BlgHok8c.js";import{u as Ls}from"./use-panel-navigate-CDaKzjBp.js";import{i as qs}from"./shell-layout-Es2gcPgj.js";function Us(){const t=k.c(6),e=_e(),{org:s}=R(),{setScope:i}=we(),o=Zt(),r=Pe();let a;return t[0]!==r||t[1]!==e||t[2]!==s||t[3]!==o||t[4]!==i?(a=()=>{const l=o!==void 0?"route_resolves_scope":Me(r,null)?null:"route_needs_scope",c=l!==null;if(E("scope_cleared",{relocated:c,reason:l}),!c){i(null);return}e({to:$.home,params:{org:s.slug},search:{virtualmcpid:void 0}})},t[0]=r,t[1]=e,t[2]=s,t[3]=o,t[4]=i,t[5]=a):a=t[5],a}function Hs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Ye(e)}function ie(t){const e=k.c(26),{item:s,onClose:i}=t;let o;e[0]!==s.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",s.className),e[0]=s.className,e[1]=o):o=e[1];const r=o;if(s.href){const u=s.external?"_blank":void 0,d=s.external?"noopener noreferrer":void 0;let x;e[2]!==s.icon?(x=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[2]=s.icon,e[3]=x):x=e[3];let p;e[4]!==s.label?(p=n.jsx("span",{className:"flex-1",children:s.label}),e[4]=s.label,e[5]=p):p=e[5];let h;return e[6]!==r||e[7]!==s.href||e[8]!==i||e[9]!==u||e[10]!==d||e[11]!==x||e[12]!==p?(h=n.jsxs("a",{href:s.href,target:u,rel:d,className:r,onClick:i,children:[x,p]}),e[6]=r,e[7]=s.href,e[8]=i,e[9]=u,e[10]=d,e[11]=x,e[12]=p,e[13]=h):h=e[13],h}let a;e[14]!==s||e[15]!==i?(a=()=>{s.onClick?.(),i()},e[14]=s,e[15]=i,e[16]=a):a=e[16];let l;e[17]!==s.icon?(l=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[17]=s.icon,e[18]=l):l=e[18];let c;e[19]!==s.label?(c=n.jsx("span",{className:"flex-1",children:s.label}),e[19]=s.label,e[20]=c):c=e[20];let m;return e[21]!==r||e[22]!==a||e[23]!==l||e[24]!==c?(m=n.jsxs("button",{type:"button",onClick:a,className:r,children:[l,c]}),e[21]=r,e[22]=a,e[23]=l,e[24]=c,e[25]=m):m=e[25],m}function Qs(){const t=k.c(4),e=A();let s;t[0]!==e?(s=e("common.accountPopover.impersonating"),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==s?(i=n.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:s}),t[2]=s,t[3]=i):i=t[3],i}function Ue(t){const e=k.c(38),{user:s,userImage:i,isImpersonating:o,isMobile:r}=t,a=A(),l=r?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==l?(c=z("flex items-center gap-3 px-4",l),e[0]=l,e[1]=c):c=e[1];const m=s?.name??"U";let u;e[2]!==m||e[3]!==i?(u=n.jsx(ke,{url:i,fallback:m,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=m,e[3]=i,e[4]=u):u=e[4];let d;e[5]!==a||e[6]!==s?.name?(d=s?.name??a("common.accountPopover.defaultUserName"),e[5]=a,e[6]=s?.name,e[7]=d):d=e[7];let x;e[8]!==d?(x=n.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[8]=d,e[9]=x):x=e[9];let p;e[10]!==o?(p=o&&n.jsx(Qs,{}),e[10]=o,e[11]=p):p=e[11];let h;e[12]!==x||e[13]!==p?(h=n.jsxs("div",{className:"flex items-center gap-2",children:[x,p]}),e[12]=x,e[13]=p,e[14]=h):h=e[14];const g=s?.email;let f;e[15]!==g?(f=n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:g}),e[15]=g,e[16]=f):f=e[16];let b;e[17]!==f||e[18]!==h?(b=n.jsxs("div",{className:"flex-1 min-w-0",children:[h,f]}),e[17]=f,e[18]=h,e[19]=b):b=e[19];let j;e[20]!==a||e[21]!==s?(j=()=>{s?.id&&navigator.clipboard.writeText(s.id).then(()=>{Xe.success(a("common.accountPopover.userIdCopied"))})},e[20]=a,e[21]=s,e[22]=j):j=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(ns,{size:14}),e[23]=y):y=e[23];let v;e[24]!==j?(v=n.jsx(Nt,{asChild:!0,children:n.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:y})}),e[24]=j,e[25]=v):v=e[25];let S;e[26]!==a?(S=a("common.accountPopover.copyUserId"),e[26]=a,e[27]=S):S=e[27];let N;e[28]!==S?(N=n.jsx(kt,{side:"right",children:n.jsx("p",{className:"text-xs",children:S})}),e[28]=S,e[29]=N):N=e[29];let _;e[30]!==v||e[31]!==N?(_=n.jsx(_t,{delayDuration:300,children:n.jsxs(Pt,{children:[v,N]})}),e[30]=v,e[31]=N,e[32]=_):_=e[32];let P;return e[33]!==b||e[34]!==_||e[35]!==c||e[36]!==u?(P=n.jsxs("div",{className:c,children:[u,b,_]}),e[33]=b,e[34]=_,e[35]=c,e[36]=u,e[37]=P):P=e[37],P}function He(t){const e=k.c(35),{themeOptions:s,preferences:i,setPreferences:o,isMobile:r}=t,a=A(),l=r?"size-8":"size-7",c=r?"px-3 py-3":"px-2 py-1.5";let m;e[0]!==c?(m=z("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=m):m=e[1];let u;if(e[2]!==l||e[3]!==i.theme||e[4]!==o||e[5]!==s){let S;e[7]!==l||e[8]!==i.theme||e[9]!==o?(S=N=>{const{value:_,icon:P,label:w}=N;return n.jsx("button",{type:"button","aria-label":w,onClick:()=>o(I=>({...I,theme:_})),className:z(l,"rounded-md flex items-center justify-center transition-colors",i.theme===_?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:P},_)},e[7]=l,e[8]=i.theme,e[9]=o,e[10]=S):S=e[10],u=s.map(S),e[2]=l,e[3]=i.theme,e[4]=o,e[5]=s,e[6]=u}else u=e[6];let d;e[11]!==u?(d=n.jsx("div",{className:"flex items-center gap-0.5",children:u}),e[11]=u,e[12]=d):d=e[12];let x;e[13]!==i.enableSounds||e[14]!==a?(x=i.enableSounds?a("common.accountPopover.disableSounds"):a("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=a,e[15]=x):x=e[15];let p;e[16]!==o?(p=()=>o(Ws),e[16]=o,e[17]=p):p=e[17];const h=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let g;e[18]!==l||e[19]!==h?(g=z(l,"rounded-md flex items-center justify-center transition-colors",h),e[18]=l,e[19]=h,e[20]=g):g=e[20];let f;e[21]!==i.enableSounds?(f=i.enableSounds?n.jsx(rs,{size:14}):n.jsx(ls,{size:14}),e[21]=i.enableSounds,e[22]=f):f=e[22];let b;e[23]!==x||e[24]!==p||e[25]!==g||e[26]!==f?(b=n.jsx("button",{type:"button","aria-label":x,onClick:p,className:g,children:f}),e[23]=x,e[24]=p,e[25]=g,e[26]=f,e[27]=b):b=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.329.1"]}),e[28]=j):j=e[28];let y;e[29]!==b?(y=n.jsxs("div",{className:"flex items-center gap-2",children:[b,j]}),e[29]=b,e[30]=y):y=e[30];let v;return e[31]!==y||e[32]!==m||e[33]!==d?(v=n.jsxs("div",{className:m,children:[d,y]}),e[31]=y,e[32]=m,e[33]=d,e[34]=v):v=e[34],v}function Ws(t){return{...t,enableSounds:!t.enableSounds}}function Qe(t){const e=k.c(54),{user:s,userImage:i,menuItems:o,signOutItem:r,stopImpersonatingItem:a,isImpersonating:l,themeOptions:c,preferences:m,setPreferences:u,close:d,isMobile:x}=t;if(x){let v;e[0]!==l||e[1]!==s||e[2]!==i?(v=n.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!0}),e[0]=l,e[1]=s,e[2]=i,e[3]=v):v=e[3];let S;if(e[4]!==d||e[5]!==o){let C;e[7]!==d?(C=T=>n.jsx(ie,{item:T,onClose:d},T.key),e[7]=d,e[8]=C):C=e[8],S=o.map(C),e[4]=d,e[5]=o,e[6]=S}else S=e[6];let N;e[9]!==d||e[10]!==a?(N=a&&n.jsx(ie,{item:a,onClose:d}),e[9]=d,e[10]=a,e[11]=N):N=e[11];let _;e[12]!==d||e[13]!==r?(_=n.jsx(ie,{item:r,onClose:d}),e[12]=d,e[13]=r,e[14]=_):_=e[14];let P;e[15]!==S||e[16]!==N||e[17]!==_?(P=n.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:n.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[S,N,_]})}),e[15]=S,e[16]=N,e[17]=_,e[18]=P):P=e[18];let w;e[19]!==m||e[20]!==u||e[21]!==c?(w=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!0}),e[19]=m,e[20]=u,e[21]=c,e[22]=w):w=e[22];let I;return e[23]!==v||e[24]!==P||e[25]!==w?(I=n.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,P,w]}),e[23]=v,e[24]=P,e[25]=w,e[26]=I):I=e[26],I}let p;e[27]!==l||e[28]!==s||e[29]!==i?(p=n.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!1}),e[27]=l,e[28]=s,e[29]=i,e[30]=p):p=e[30];let h;if(e[31]!==d||e[32]!==o){let v;e[34]!==d?(v=S=>n.jsx(ie,{item:S,onClose:d},S.key),e[34]=d,e[35]=v):v=e[35],h=o.map(v),e[31]=d,e[32]=o,e[33]=h}else h=e[33];let g;e[36]!==d||e[37]!==a?(g=a&&n.jsx(ie,{item:a,onClose:d}),e[36]=d,e[37]=a,e[38]=g):g=e[38];let f;e[39]!==d||e[40]!==r?(f=n.jsx(ie,{item:r,onClose:d}),e[39]=d,e[40]=r,e[41]=f):f=e[41];let b;e[42]!==h||e[43]!==g||e[44]!==f?(b=n.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[h,g,f]}),e[42]=h,e[43]=g,e[44]=f,e[45]=b):b=e[45];let j;e[46]!==m||e[47]!==u||e[48]!==c?(j=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!1}),e[46]=m,e[47]=u,e[48]=c,e[49]=j):j=e[49];let y;return e[50]!==p||e[51]!==b||e[52]!==j?(y=n.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:n.jsxs("div",{className:"flex flex-col",children:[p,b,j]})}),e[50]=p,e[51]=b,e[52]=j,e[53]=y):y=e[53],y}function De(){const t=k.c(107),e=A(),{data:s}=le.useSession(),{org:i}=R(),o=_e();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org",shouldThrow:!1},t[0]=r):r=t[0];const l=Ye(r)?.params.org,[c,m]=jt(),u=vt(),{isAdmin:d}=Ns(),x=ks(),[p,h]=D.useState(!1),[g,f]=D.useState(!1),b=s?.user,j=b?.image,y=!!s?.session?.impersonatedBy;let v;t[1]===Symbol.for("react.memo_cache_sentinel")?(v=()=>h(!1),t[1]=v):v=t[1];const S=v;let N;t[2]!==e?(N=e("common.accountPopover.preferences"),t[2]=e,t[3]=N):N=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(dt,{size:16}),t[4]=_):_=t[4];let P;t[5]!==o||t[6]!==l?(P=()=>{o({to:"/$org/settings/profile",params:{org:l??""}})},t[5]=o,t[6]=l,t[7]=P):P=t[7];let w;t[8]!==N||t[9]!==P?(w={key:"preferences",label:N,icon:_,onClick:P},t[8]=N,t[9]=P,t[10]=w):w=t[10];let I;t[11]!==i||t[12]!==o?(I=i?[{key:"connect-clients",label:"Connect to Agents",icon:n.jsx(hs,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=o,t[13]=I):I=t[13];let C;t[14]!==x||t[15]!==e?(C=(_s()||qe())&&!x?[{key:"install-desktop-app",label:qe()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:n.jsx(os,{size:16}),onClick:()=>f(!0)}]:[],t[14]=x,t[15]=e,t[16]=C):C=t[16];let T;t[17]!==e?(T=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=T):T=t[18];let F;t[19]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(as,{size:16}),t[19]=F):F=t[19];let V;t[20]!==T?(V={key:"terms",label:T,icon:F,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=T,t[21]=V):V=t[21];let B;t[22]!==e?(B=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=B):B=t[23];let ce;t[24]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(ys,{size:16}),t[24]=ce):ce=t[24];let K;t[25]!==B?(K={key:"privacy",label:B,icon:ce,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=B,t[26]=K):K=t[26];let L;t[27]!==e?(L=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=L):L=t[28];let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(yt,{className:"w-4 h-4"}),t[29]=de):de=t[29];let q;t[30]!==L?(q={key:"github",label:L,icon:de,href:"https://github.com/decocms/studio",external:!0},t[30]=L,t[31]=q):q=t[31];let U;t[32]!==e?(U=e("common.accountPopover.community"),t[32]=e,t[33]=U):U=t[33];let me;t[34]===Symbol.for("react.memo_cache_sentinel")?(me=n.jsx(Ss,{size:16}),t[34]=me):me=t[34];let H;t[35]!==U?(H={key:"community",label:U,icon:me,href:"https://decocms.com/discord",external:!0},t[35]=U,t[36]=H):H=t[36];let Q;t[37]!==e?(Q=e("common.accountPopover.homepage"),t[37]=e,t[38]=Q):Q=t[38];let ue;t[39]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(bs,{size:16}),t[39]=ue):ue=t[39];let W;t[40]!==Q?(W={key:"homepage",label:Q,icon:ue,href:"https://decocms.com",external:!0},t[40]=Q,t[41]=W):W=t[41];let G;t[42]!==d||t[43]!==o||t[44]!==e?(G=d?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:n.jsx(is,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[42]=d,t[43]=o,t[44]=e,t[45]=G):G=t[45];let fe;t[46]!==V||t[47]!==K||t[48]!==q||t[49]!==H||t[50]!==W||t[51]!==G||t[52]!==w||t[53]!==I||t[54]!==C?(fe=[w,...I,...C,V,K,q,H,W,...G],t[46]=V,t[47]=K,t[48]=q,t[49]=H,t[50]=W,t[51]=G,t[52]=w,t[53]=I,t[54]=C,t[55]=fe):fe=t[55];const Ae=fe;let J;t[56]!==e?(J=e("common.accountPopover.signOut"),t[56]=e,t[57]=J):J=t[57];let xe;t[58]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx(Le,{size:16}),t[58]=xe):xe=t[58];let pe;t[59]!==J?(pe={key:"logout",label:J,icon:xe,onClick:Js},t[59]=J,t[60]=pe):pe=t[60];const $e=pe;let be;t[61]!==y||t[62]!==e?(be=y?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:n.jsx(Le,{size:16}),onClick:async()=>{const{error:Be}=await le.admin.stopImpersonating();if(Be){Xe.error(Be.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=y,t[62]=e,t[63]=be):be=t[63];const Te=be;let he;t[64]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(js,{size:14}),t[64]=he):he=t[64];let Y;t[65]!==e?(Y=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=Y):Y=t[66];let X;t[67]!==Y?(X={value:"light",icon:he,label:Y},t[67]=Y,t[68]=X):X=t[68];let ge;t[69]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(vs,{size:14}),t[69]=ge):ge=t[69];let Z;t[70]!==e?(Z=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=Z):Z=t[71];let ee;t[72]!==Z?(ee={value:"dark",icon:ge,label:Z},t[72]=Z,t[73]=ee):ee=t[73];let je;t[74]===Symbol.for("react.memo_cache_sentinel")?(je=n.jsx(ct,{size:14}),t[74]=je):je=t[74];let te;t[75]!==e?(te=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=te):te=t[76];let se;t[77]!==te?(se={value:"system",icon:je,label:te},t[77]=te,t[78]=se):se=t[78];let ve;t[79]!==X||t[80]!==ee||t[81]!==se?(ve=[X,ee,se],t[79]=X,t[80]=ee,t[81]=se,t[82]=ve):ve=t[82];const Oe=ve;let ye;t[83]!==y||t[84]!==u||t[85]!==Ae||t[86]!==c||t[87]!==m||t[88]!==$e||t[89]!==Te||t[90]!==Oe||t[91]!==b||t[92]!==j?(ye={user:b,userImage:j,menuItems:Ae,signOutItem:$e,stopImpersonatingItem:Te,isImpersonating:y,themeOptions:Oe,preferences:c,setPreferences:m,close:S,isMobile:u},t[83]=y,t[84]=u,t[85]=Ae,t[86]=c,t[87]=m,t[88]=$e,t[89]=Te,t[90]=Oe,t[91]=b,t[92]=j,t[93]=ye):ye=t[93];const Se=ye;let ne;t[94]!==y||t[95]!==u||t[96]!==p||t[97]!==Se||t[98]!==e||t[99]!==b?.name||t[100]!==j?(ne=u?n.jsxs(es,{open:p,onOpenChange:h,direction:"bottom",children:[n.jsxs("button",{type:"button",onClick:()=>h(!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",y&&"border-2 border-dashed border-warning"),children:[n.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]}),n.jsxs(ts,{className:"h-[80dvh] p-0",children:[n.jsx(ss,{className:"sr-only",children:e("common.accountPopover.account")}),n.jsx(Qe,{...Se})]})]}):n.jsxs(it,{open:p,onOpenChange:h,children:[n.jsx(Re,{asChild:!0,children:n.jsxs(ae,{"data-tour":re.account,tooltip:b?.name??e("common.accountPopover.defaultAccountLabel"),className:z("rounded-md",y&&"border-2 border-dashed border-warning"),children:[n.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]})}),n.jsx(at,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Gs,children:n.jsx(Qe,{...Se})})]}),t[94]=y,t[95]=u,t[96]=p,t[97]=Se,t[98]=e,t[99]=b?.name,t[100]=j,t[101]=ne):ne=t[101];let oe;t[102]!==g?(oe=n.jsx(Ps,{open:g,onOpenChange:f}),t[102]=g,t[103]=oe):oe=t[103];let Ne;return t[104]!==ne||t[105]!==oe?(Ne=n.jsxs(n.Fragment,{children:[ne,oe]}),t[104]=ne,t[105]=oe,t[106]=Ne):Ne=t[106],Ne}function Gs(t){return t.preventDefault()}function Js(){E("signed_out",{source:"account_popover"}),St(),le.signOut()}class Ys extends D.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?null:this.props.children}}function Xs(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Zs(){const t=k.c(17),e=_e(),{org:s}=R(),{hasDecoKey:i,balanceDollars:o}=Dt();if(!i)return null;let r;t[0]!==o?(r=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=r):r=t[1];let a;t[2]!==o?(a=z(o!=null&&Xs(o)),t[2]=o,t[3]=a):a=t[3];let l;t[4]!==e||t[5]!==s.slug?(l=()=>e({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[4]=e,t[5]=s.slug,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(cs,{}),t[7]=c):c=t[7];let m;t[8]!==o?(m=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=m):m=t[9];let u;t[10]!==m?(u=n.jsx("span",{children:m}),t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==r||t[13]!==a||t[14]!==l||t[15]!==u?(d=n.jsx(O,{children:n.jsx(M,{children:n.jsxs(ae,{tooltip:r,className:a,onClick:l,children:[c,u]})})}),t[12]=r,t[13]=a,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function We(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Ys,{children:n.jsx(D.Suspense,{fallback:null,children:n.jsx(Zs,{})})}),t[0]=e):e=t[0],e}const en=6e4;function tn(t,e){return t.call("NOTIFICATION_LIST",e?{cursor:e}:{})}function sn(t,e){if(!t)return t;const s=e?new Set(e):null;let i=0;const o=t.pages.map(a=>{const l=a.notifications.filter(c=>s&&!s.has(c.id)?!0:(i++,!1));return{...a,notifications:l}}),r=s?Math.max(0,(t.pages[0]?.unreadCount??0)-i):0;return{...t,pages:o.map(a=>({...a,unreadCount:r}))}}function nn(t,e){const s=k.c(4),{data:i}=le.useSession(),o=i?.user?.id;let r;s[0]!==e||s[1]!==t||s[2]!==o?(r=a=>!t||!o?rn:Ds.subscribe(t,c=>{try{if(JSON.parse(c.data).subject!==o)return}catch{return}e(),a()},e),s[0]=e,s[1]=t,s[2]=o,s[3]=r):r=s[3],D.useSyncExternalStore(r,an,on)}function on(){return 0}function an(){return 0}function rn(){}function ft(){const t=k.c(37),{locator:e,org:s}=R(),i=Ze(),o=wt();let r;t[0]!==e?(r=Ct.notifications(e),t[0]=e,t[1]=r):r=t[1];const a=r;let l;t[2]!==i?(l=P=>{const{pageParam:w}=P;return tn(i,w)},t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a||t[5]!==l?(c={queryKey:a,queryFn:l,initialPageParam:void 0,getNextPageParam:dn,refetchInterval:en},t[4]=a,t[5]=l,t[6]=c):c=t[6];const m=Ms(c);let u;t[7]!==o||t[8]!==a?(u=()=>o.invalidateQueries({queryKey:a,refetchType:"active"}),t[7]=o,t[8]=a,t[9]=u):u=t[9],nn(s.slug,u);let d;t[10]!==i?(d=P=>i.call("NOTIFICATION_MARK_READ",P?{ids:P}:{}),t[10]=i,t[11]=d):d=t[11];let x,p;t[12]!==o||t[13]!==a?(x=async P=>{await o.cancelQueries({queryKey:a}),o.setQueryData(a,w=>sn(w,P))},p=()=>o.invalidateQueries({queryKey:a}),t[12]=o,t[13]=a,t[14]=x,t[15]=p):(x=t[14],p=t[15]);let h;t[16]!==d||t[17]!==x||t[18]!==p?(h={mutationFn:d,onMutate:x,onSettled:p},t[16]=d,t[17]=x,t[18]=p,t[19]=h):h=t[19];const g=It(h);let f;t[20]!==m.data?.pages?(f=m.data?.pages??[],t[20]=m.data?.pages,t[21]=f):f=t[21];const b=f;let j;t[22]!==b?(j=b.flatMap(ln),t[22]=b,t[23]=j):j=t[23];const y=b[0]?.unreadCount??0;let v;t[24]!==m?(v=()=>{m.hasNextPage&&!m.isFetchingNextPage&&m.fetchNextPage()},t[24]=m,t[25]=v):v=t[25];let S,N;t[26]!==g?(S=()=>g.mutate(null),N=P=>g.mutate([P]),t[26]=g,t[27]=S,t[28]=N):(S=t[27],N=t[28]);let _;return t[29]!==m.hasNextPage||t[30]!==m.isFetchingNextPage||t[31]!==y||t[32]!==v||t[33]!==S||t[34]!==N||t[35]!==j?(_={updates:j,redDotCount:y,hasMore:m.hasNextPage,isFetchingMore:m.isFetchingNextPage,fetchMore:v,markAllRead:S,markRead:N},t[29]=m.hasNextPage,t[30]=m.isFetchingNextPage,t[31]=y,t[32]=v,t[33]=S,t[34]=N,t[35]=j,t[36]=_):_=t[36],_}function ln(t){return t.notifications.map(cn)}function cn(t){return{id:t.id,taskBoardItemId:t.taskBoardItemId,taskTitle:t.taskTitle,taskKeySeq:t.taskKeySeq,action:t.type,actorName:t.actorName,actorImage:t.actorImage,occurredAt:t.createdAt}}function dn(t){return t.nextCursor??void 0}function mn(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");default:{const s=t.action;return String(s)}}}function un(t){const e=k.c(28),{update:s,orgSlug:i,onSelect:o}=t,r=A();let a;e[0]!==i||e[1]!==s.taskKeySeq?(a=et(i,s.taskKeySeq),e[0]=i,e[1]=s.taskKeySeq,e[2]=a):a=e[2];const l=a,c=!s.actorName;let m;e[3]!==c||e[4]!==s.actorImage||e[5]!==s.actorName?(m=c?n.jsx(Rt,{size:24,className:"shrink-0"}):n.jsx(ke,{url:s.actorImage??void 0,fallback:Es(s.actorName??void 0),shape:"circle",size:"xs",className:"shrink-0"}),e[3]=c,e[4]=s.actorImage,e[5]=s.actorName,e[6]=m):m=e[6];const u=l?`${l} · `:"";let d;e[7]!==u||e[8]!==s.taskTitle?(d=n.jsxs("p",{className:"truncate text-xs text-muted-foreground",children:[u,s.taskTitle]}),e[7]=u,e[8]=s.taskTitle,e[9]=d):d=e[9];let x;e[10]!==r||e[11]!==s?(x=mn(s,r),e[10]=r,e[11]=s,e[12]=x):x=e[12];let p;e[13]!==x?(p=n.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:x}),e[13]=x,e[14]=p):p=e[14];let h;e[15]!==d||e[16]!==p?(h=n.jsxs("div",{className:"min-w-0 flex-1",children:[d,p]}),e[15]=d,e[16]=p,e[17]=h):h=e[17];let g;e[18]!==s.occurredAt?(g=Fs(new Date(s.occurredAt)),e[18]=s.occurredAt,e[19]=g):g=e[19];let f;e[20]!==g?(f=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:g}),e[20]=g,e[21]=f):f=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Rs,{size:16,className:"shrink-0 text-muted-foreground"}),e[22]=b):b=e[22];let j;return e[23]!==o||e[24]!==m||e[25]!==h||e[26]!==f?(j=n.jsxs("button",{type:"button",onClick:o,className:"flex w-full items-center gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-muted/25",children:[m,h,f,b]}),e[23]=o,e[24]=m,e[25]=h,e[26]=f,e[27]=j):j=e[27],j}function fn(t){const e=k.c(2),{onReach:s}=t;let i;return e[0]!==s?(i=n.jsx("div",{className:"h-8 shrink-0",ref:o=>{if(!o)return;const r=new IntersectionObserver(a=>{a.some(xn)&&s()});return r.observe(o),()=>r.disconnect()}}),e[0]=s,e[1]=i):i=e[1],i}function xn(t){return t.isIntersecting}function pn(t){const e=k.c(23),{onClose:s}=t,i=A(),o=_e(),{org:r}=R(),{updates:a,markAllRead:l,markRead:c,hasMore:m,fetchMore:u}=ft();let d;e[0]!==i?(d=i("sidebar.inbox.title"),e[0]=i,e[1]=d):d=e[1];let x;e[2]!==d?(x=n.jsx("h3",{className:"text-sm font-medium",children:d}),e[2]=d,e[3]=x):x=e[3];let p;e[4]!==l||e[5]!==i||e[6]!==a.length?(p=a.length>0&&n.jsx(At,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs text-muted-foreground",onClick:l,children:i("sidebar.inbox.markAllRead")}),e[4]=l,e[5]=i,e[6]=a.length,e[7]=p):p=e[7];let h;e[8]!==x||e[9]!==p?(h=n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[x,p]}),e[8]=x,e[9]=p,e[10]=h):h=e[10];let g;e[11]!==u||e[12]!==m||e[13]!==c||e[14]!==o||e[15]!==s||e[16]!==r||e[17]!==i||e[18]!==a?(g=a.length===0?n.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[n.jsx(Ee,{size:24,className:"text-muted-foreground/50"}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:i("sidebar.inbox.emptyTitle")}),n.jsx("p",{className:"text-xs text-muted-foreground",children:i("sidebar.inbox.emptyBody")})]}):n.jsxs(zs,{className:"min-h-0 flex-1",children:[a.map(b=>{const j=et(r.slug,b.taskKeySeq);return n.jsx(un,{update:b,orgSlug:r.slug,onSelect:()=>{c(b.id),s(),j&&o({to:"/$org/tasks/{-$taskKey}",params:{org:r.slug,taskKey:j}})}},b.id)}),m&&n.jsx(fn,{onReach:u})]}),e[11]=u,e[12]=m,e[13]=c,e[14]=o,e[15]=s,e[16]=r,e[17]=i,e[18]=a,e[19]=g):g=e[19];let f;return e[20]!==h||e[21]!==g?(f=n.jsxs(n.Fragment,{children:[h,g]}),e[20]=h,e[21]=g,e[22]=f):f=e[22],f}function xt(){const t=k.c(1),{redDotCount:e}=ft();if(e===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function pt(t){const e=k.c(11),{open:s,onOpenChange:i,side:o,children:r}=t;let a;e[0]!==i||e[1]!==s?(a=s&&n.jsx(pn,{onClose:()=>i(!1)}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let l;e[3]!==o||e[4]!==a?(l=n.jsx(at,{side:o,align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(400px,calc(100vw-2rem))] flex-col p-0",children:a}),e[3]=o,e[4]=a,e[5]=l):l=e[5];let c;return e[6]!==r||e[7]!==i||e[8]!==s||e[9]!==l?(c=n.jsxs(it,{open:s,onOpenChange:i,children:[r,l]}),e[6]=r,e[7]=i,e[8]=s,e[9]=l,e[10]=c):c=e[10],c}function bt(){const t=k.c(9),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.inbox.title"),t[0]=e,t[1]=o):o=t[1];let r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ee,{size:15}),a=n.jsx(xt,{}),t[2]=r,t[3]=a):(r=t[2],a=t[3]);let l;t[4]!==o?(l=n.jsx(Re,{asChild:!0,children:n.jsxs("button",{type:"button","aria-label":o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[r,a]})}),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==s||t[7]!==l?(c=n.jsx(pt,{open:s,onOpenChange:i,side:"top",children:l}),t[6]=s,t[7]=l,t[8]=c):c=t[8],c}function bn(){const t=k.c(15),e=A(),[s,i]=D.useState(!1),o=Fe();let r;t[0]!==o||t[1]!==e?(r=o?e("sidebar.inbox.title"):void 0,t[0]=o,t[1]=e,t[2]=r):r=t[2];let a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ee,{}),l=n.jsx(xt,{}),t[3]=a,t[4]=l):(a=t[3],l=t[4]);let c;t[5]!==e?(c=e("sidebar.inbox.title"),t[5]=e,t[6]=c):c=t[6];let m;t[7]!==c?(m=n.jsx("span",{className:"truncate",children:c}),t[7]=c,t[8]=m):m=t[8];let u;t[9]!==r||t[10]!==m?(u=n.jsx(Re,{asChild:!0,children:n.jsxs(ae,{tooltip:r,className:"relative",children:[a,l,m]})}),t[9]=r,t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==s||t[13]!==u?(d=n.jsx(pt,{open:s,onOpenChange:i,side:"right",children:u}),t[12]=s,t[13]=u,t[14]=d):d=t[14],d}function Ge(){const t=k.c(29),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=o):o=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(rt,{}),t[2]=r):r=t[2];let a;t[3]!==e?(a=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=a):a=t[4];let l;t[5]!==a?(l=n.jsx("span",{children:a}),t[5]=a,t[6]=l):l=t[6];let c;t[7]!==o||t[8]!==l?(c=n.jsx(M,{children:n.jsx(mt,{trigger:n.jsxs(ae,{tooltip:o,children:[r,l]})})}),t[7]=o,t[8]=l,t[9]=c):c=t[9];let m;t[10]!==e?(m=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=m):m=t[11];let u,d;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>i(!0),d=n.jsx(ds,{}),t[12]=u,t[13]=d):(u=t[12],d=t[13]);let x;t[14]!==e?(x=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=x):x=t[15];let p;t[16]!==x?(p=n.jsx("span",{children:x}),t[16]=x,t[17]=p):p=t[17];let h;t[18]!==m||t[19]!==p?(h=n.jsx(M,{children:n.jsxs(ae,{tooltip:m,onClick:u,children:[d,p]})}),t[18]=m,t[19]=p,t[20]=h):h=t[20];let g;t[21]!==h||t[22]!==c?(g=n.jsxs(O,{className:"gap-0.5",children:[c,h]}),t[21]=h,t[22]=c,t[23]=g):g=t[23];let f;t[24]!==s?(f=s&&n.jsx(Et,{open:s,onOpenChange:i,mode:"browse"}),t[24]=s,t[25]=f):f=t[25];let b;return t[26]!==g||t[27]!==f?(b=n.jsxs(n.Fragment,{children:[g,f]}),t[26]=g,t[27]=f,t[28]=b):b=t[28],b}function Je(){const t=k.c(10),e=A();let s;t[0]!==e?(s=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(rt,{}),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 r;t[5]!==o?(r=n.jsx("span",{children:o}),t[5]=o,t[6]=r):r=t[6];let a;return t[7]!==s||t[8]!==r?(a=n.jsx(O,{className:"gap-0.5",children:n.jsx(M,{children:n.jsx(mt,{trigger:n.jsxs(ae,{tooltip:s,children:[i,r]})})})}),t[7]=s,t[8]=r,t[9]=a):a=t[9],a}function hn(){const t=k.c(17),e=Fe(),s=ws(),i=!s;if(e){let c;t[0]!==i?(c=i&&n.jsx(We,{}),t[0]=i,t[1]=c):c=t[1];let m;t[2]!==s?(m=s?n.jsx(Je,{}):n.jsx(Ge,{}),t[2]=s,t[3]=m):m=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(M,{children:n.jsx(bn,{})}),t[4]=u):u=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsxs(O,{children:[u,n.jsx(M,{children:n.jsx(De,{})})]}),t[5]=d):d=t[5];let x;return t[6]!==c||t[7]!==m?(x=n.jsxs(ze,{className:"px-2 pb-3 gap-1",children:[c,m,d]}),t[6]=c,t[7]=m,t[8]=x):x=t[8],x}let o;t[9]!==i?(o=i&&n.jsx(We,{}),t[9]=i,t[10]=o):o=t[10];let r;t[11]!==s?(r=s?n.jsx(Je,{}):n.jsx(Ge,{}),t[11]=s,t[12]=r):r=t[12];let a;t[13]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(O,{className:"gap-0.5",children:n.jsx(M,{children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(De,{})}),n.jsx(bt,{})]})})}),t[13]=a):a=t[13];let l;return t[14]!==o||t[15]!==r?(l=n.jsxs(ze,{className:"px-2 pb-3 gap-0.5",children:[o,r,a]}),t[14]=o,t[15]=r,t[16]=l):l=t[16],l}function gn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ze,{className:"px-2 pb-3",children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(O,{children:n.jsx(M,{children:n.jsx(De,{})})})}),n.jsx(bt,{})]})}),t[0]=e):e=t[0],e}const jn="settings",vn=["overview","reports","board","files"];function yn(t,e){return!t||!e?!1:!ot(e.metadata)}function Sn(t,e,s,i){if(!t||!e)return!0;const o=i!==void 0;return Ft(o?i:st(e.metadata),o?1:e.metadata?.sidebarViewsVersion).includes(s)}function Nn(){const t=k.c(14),e=A(),{org:s}=R(),i=Pe(),o=Ie(),{project:r}=we(),a=tt(r?.id);let l;t[0]!==r||t[1]!==o?(l=yn(o,r),t[0]=r,t[1]=o,t[2]=l):l=t[2];const c=l;let m;t[3]!==a||t[4]!==r||t[5]!==o?(m=x=>Sn(o,r,x,a),t[3]=a,t[4]=r,t[5]=o,t[6]=m):m=t[6];const u=m;let d;if(t[7]!==u||t[8]!==c||t[9]!==i||t[10]!==s||t[11]!==o||t[12]!==e){const x={overview:c||!u("overview")?null:{key:"overview",label:e("sidebar.navDestinations.home"),icon:n.jsx(us,{size:16}),isActive:i===$.home||i===$.orgIndex,trackAs:"overview",link:{to:$.home,params:{org:s.slug}}},reports:Me($.reports,o)&&!c&&u("reports")?{key:"reports",label:e("sidebar.navDestinations.reports"),icon:n.jsx(lt,{size:16}),isActive:i===$.reports,trackAs:"reports",link:{to:$.reports,params:{org:s.slug}}}:null,board:c||!u("board")?null:{key:"board",label:e("sidebar.navDestinations.tasks"),icon:n.jsx(ms,{size:16}),isActive:i===$.tasks,trackAs:"board",dataTour:re.tasks,link:{to:$.tasks,params:{org:s.slug,taskKey:void 0}}},files:Me($.library,o)?{key:"files",label:e("sidebar.navDestinations.library"),icon:n.jsx(Vs,{size:16}),isActive:i===$.library,trackAs:"files",link:{to:$.library,params:{org:s.slug}}}:null};d=vn.map(p=>x[p]).filter(kn),t[7]=u,t[8]=c,t[9]=i,t[10]=s,t[11]=o,t[12]=e,t[13]=d}else d=t[13];return d}function kn(t){return t!==null}function _n(t){const e=k.c(7),{onNavigate:s}=t,i=Nn();let o;if(e[0]!==i||e[1]!==s){let a;e[3]!==s?(a=l=>n.jsx(Ce,{icon:l.icon,label:l.label,dataTour:l.dataTour,isActive:l.isActive,link:l.link,onSelect:()=>{E("nav_destination_clicked",{destination:l.trackAs}),s?.()}},l.key),e[3]=s,e[4]=a):a=e[4],o=i.map(a),e[0]=i,e[1]=s,e[2]=o}else o=e[2];let r;return e[5]!==o?(r=n.jsx(O,{className:"gap-1",children:o}),e[5]=o,e[6]=r):r=e[6],r}function Pn(t){const e=k.c(18),{onNavigate:s}=t,i=A(),{org:o}=R(),r=Ie(),a=Ve(),l=Pe(),c=Yt();let m;e[0]!==c||e[1]!==l?(m=l.startsWith("/$org/settings")||l===$.agents&&c==="settings",e[0]=c,e[1]=l,e[2]=m):m=e[2];const u=m;let d;e[3]!==i?(d=i("sidebar.navDestinations.settings"),e[3]=i,e[4]=d):d=e[4];const x=d;let p;e[5]!==o||e[6]!==r?(p=r?void 0:{to:"/$org/settings",params:{org:o.slug}},e[5]=o,e[6]=r,e[7]=p):p=e[7];const h=p;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(dt,{size:16}),e[8]=g):g=e[8];let f;e[9]!==a||e[10]!==s||e[11]!==r?(f=()=>{E("nav_destination_clicked",{destination:jn,target:r?"project":"org"}),r&&a(r,{panel:"settings"}),s?.()},e[9]=a,e[10]=s,e[11]=r,e[12]=f):f=e[12];let b;return e[13]!==u||e[14]!==x||e[15]!==h||e[16]!==f?(b=n.jsx(O,{className:"gap-1",children:n.jsx(Ce,{dataTour:re.settings,icon:g,label:x,isActive:u,link:h,onSelect:f})}),e[13]=u,e[14]=x,e[15]=h,e[16]=f,e[17]=b):b=e[17],b}function wn(t,e){const s=new Set(e);return s.size===0?t:t.filter(i=>s.has(i.connectionId))}function In(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"):[]}function Cn(t){const e=k.c(12),{onNavigate:s}=t,i=A(),{project:o}=we(),r=Ve(),a=Pe(),l=Ls(),c=Vt(o),m=tt(o?.id);if(!o)return null;let u;if(e[0]!==c.presence||e[1]!==m||e[2]!==o.metadata){const p=ot(o.metadata),h=m??st(o.metadata);u=new Set(Bt(h,Kt(p,c.presence),m!==void 0?1:o.metadata.sidebarViewsVersion)),e[0]=c.presence,e[1]=m,e[2]=o.metadata,e[3]=u}else u=e[3];const d=u;let x;if(e[4]!==l||e[5]!==a||e[6]!==r||e[7]!==s||e[8]!==o||e[9]!==d||e[10]!==i){const p=[];d.has("site-editor")&&p.push({key:"site-editor",label:i("sidebar.projectNav.siteEditor"),icon:n.jsx(ct,{size:16}),panel:"site-editor",isActive:Tn,dataTour:re.siteEditor});const h={assets:{label:i("common.mainPanelTabs.assets"),icon:n.jsx(Ks,{size:16})},hosting:{label:i("common.mainPanelTabs.hosting"),icon:n.jsx(ps,{size:16})},e2e:{label:i("common.mainPanelTabs.e2e"),icon:n.jsx(gs,{size:16})},analytics:{label:i("common.mainPanelTabs.analytics"),icon:n.jsx(lt,{size:16})},cdn:{label:i("common.mainPanelTabs.cdn"),icon:n.jsx(xs,{size:16})}};for(const f of Lt){if(!d.has(f))continue;const b=h[f];p.push({key:f,label:b.label,icon:b.icon,panel:f,isActive:j=>j===f})}for(const f of wn(In(o),(o.connections??[]).map($n)))f.toolName!=="fetch_assets"&&p.push({key:`pinned:${f.connectionId}:${f.toolName}`,label:f.label||f.toolName,icon:f.icon?n.jsx("img",{src:f.icon,alt:"",className:"size-4 rounded-[3px]"}):n.jsx(Bs,{size:16}),panel:Ke(f.connectionId,f.toolName),isActive:b=>b===Ke(f.connectionId,f.toolName)});d.has("automations")&&p.push({key:"automations",label:i("sidebar.projectNav.automations"),icon:n.jsx(fs,{size:16}),panel:"automations",isActive:An,dataTour:re.automations});const g=a===$.agents;x=n.jsx(O,{className:"gap-1",children:p.map(f=>n.jsx(Ce,{icon:f.icon,label:f.label,dataTour:f.dataTour,isActive:g&&f.isActive(l),onSelect:()=>{E("project_nav_clicked",{surface:f.key}),r(o.id,{panel:f.panel}),s?.()}},f.key))}),e[4]=l,e[5]=a,e[6]=r,e[7]=s,e[8]=o,e[9]=d,e[10]=i,e[11]=x}else x=e[11];return x}function An(t){return t==="automations"||$t(t)!==null}function $n(t){return t.connection_id}function Tn(t){return!!t&&qs(t)}const On=3;function zn(t,e){return t.status==="archived"||t.status==="done"?!1:e&&t.assigneeId===e?!0:Qt(t)||Wt(t)}function Mn(t,e,s){const i=new Map;for(const r of e){if(!zn(r,s))continue;const a=Ut(r,t);for(const l of a){const c=i.get(l.id)??[];c.push({task:r,only:a.length===1}),i.set(l.id,c)}}const o=new Map;for(const[r,a]of i)a.sort((l,c)=>Number(c.only)-Number(l.only)||(c.task.updatedAt??"").localeCompare(l.task.updatedAt??"")),o.set(r,a.slice(0,On).map(l=>l.task));return o}function Dn(t){const e=k.c(21),{task:s,orgSlug:i,isLast:o,onNavigate:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("span",{"aria-hidden":"true",className:"absolute top-0 left-4 h-1/2 w-3 rounded-bl-lg border-b border-l border-sidebar-border"}),e[0]=a):a=e[0];let l;e[1]!==o?(l=!o&&n.jsx("span",{"aria-hidden":"true",className:"absolute top-1/2 bottom-0 left-4 border-l border-sidebar-border"}),e[1]=o,e[2]=l):l=e[2];let c;e[3]!==i||e[4]!==s?(c=Ht(i,s),e[3]=i,e[4]=s,e[5]=c):c=e[5];let m;e[6]!==i||e[7]!==c?(m={org:i,taskKey:c},e[6]=i,e[7]=c,e[8]=m):m=e[8];let u;e[9]!==r||e[10]!==s.status?(u=()=>{E("sidebar_attention_task_clicked",{status:s.status}),r?.()},e[9]=r,e[10]=s.status,e[11]=u):u=e[11];let d;e[12]!==s.title?(d=n.jsx("span",{className:"truncate",children:s.title}),e[12]=s.title,e[13]=d):d=e[13];let x;e[14]!==m||e[15]!==u||e[16]!==d?(x=n.jsx(zt,{to:"/$org/tasks/{-$taskKey}",params:m,onClick:u,className:"flex h-8 items-center rounded-lg pr-2 pl-9 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:d}),e[14]=m,e[15]=u,e[16]=d,e[17]=x):x=e[17];let p;return e[18]!==l||e[19]!==x?(p=n.jsxs("li",{className:"relative",children:[a,l,x]}),e[18]=l,e[19]=x,e[20]=p):p=e[20],p}function Rn(t){const e=k.c(35),{onNavigate:s}=t,i=A(),o=Fe(),{org:r,locator:a}=R(),l=Ze(),{projects:c}=we(),m=Ie(),u=Ve(),{data:d}=le.useSession();let x;e[0]!==a||e[1]!==l?(x=Gt(a,l),e[0]=a,e[1]=l,e[2]=x):x=e[2];const p=!o&&!m;let h;e[3]!==x||e[4]!==p?(h={...x,enabled:p},e[3]=x,e[4]=p,e[5]=h):h=e[5];const{data:g}=Tt(h);if(m||c.length===0)return null;let f,b,j,y,v,S;if(e[6]!==o||e[7]!==g?.items||e[8]!==u||e[9]!==s||e[10]!==r||e[11]!==c||e[12]!==m||e[13]!==d?.user?.id||e[14]!==i){const P=Mn(qt(c),g?.items??[],d?.user?.id),w=o&&"pt-3";e[21]!==w?(y=z("flex flex-col gap-1",w),e[21]=w,e[22]=y):y=e[22],v=re.projects,e[23]!==o||e[24]!==i?(S=!o&&n.jsx("p",{className:"px-2 pt-5 pb-0.5 text-xs font-medium text-muted-foreground/60",children:i("sidebar.projects.heading")}),e[23]=o,e[24]=i,e[25]=S):S=e[25],f=O,b="gap-1",j=c.map(I=>{const C=P.get(I.id)??[];return n.jsx(Ce,{icon:n.jsx(Xt,{icon:I.icon,name:I.title}),label:I.title,isActive:I.id===m,onSelect:()=>{E("sidebar_project_clicked"),u(I.id,{panel:Ot(I.metadata?.ui?.layout)}),s?.()},children:!o&&C.length>0&&n.jsx("ul",{className:"flex flex-col",children:C.map((T,F)=>n.jsx(Dn,{task:T,orgSlug:r.slug,isLast:F===C.length-1,onNavigate:s},T.id))})},I.id)}),e[6]=o,e[7]=g?.items,e[8]=u,e[9]=s,e[10]=r,e[11]=c,e[12]=m,e[13]=d?.user?.id,e[14]=i,e[15]=f,e[16]=b,e[17]=j,e[18]=y,e[19]=v,e[20]=S}else f=e[15],b=e[16],j=e[17],y=e[18],v=e[19],S=e[20];let N;e[26]!==f||e[27]!==b||e[28]!==j?(N=n.jsx(f,{className:b,children:j}),e[26]=f,e[27]=b,e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==y||e[31]!==v||e[32]!==S||e[33]!==N?(_=n.jsxs("div",{className:y,"data-tour":v,children:[S,N]}),e[30]=y,e[31]=v,e[32]=S,e[33]=N,e[34]=_):_=e[34],_}function En(t){const e=k.c(5),{onClose:s}=t;let i;e[0]!==s?(i=n.jsx(Jt,{onNavigate:s}),e[0]=s,e[1]=i):i=e[1];let o;return e[2]!==s||e[3]!==i?(o=n.jsx(Ts,{onClose:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4],o}function ht(t){const e=k.c(8),{onNavigate:s}=t,i=A(),o=Ie(),r=Us();if(!o)return null;let a;e[0]!==i?(a=i("sidebar.scope.allProjects"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==r||e[3]!==s?(l=()=>{r(),s?.()},e[2]=r,e[3]=s,e[4]=l):l=e[4];let c;return e[5]!==a||e[6]!==l?(c=n.jsx(Os,{label:a,onSelect:l}),e[5]=a,e[6]=l,e[7]=c):c=e[7],c}function gt(t){const e=k.c(2),{onNavigate:s}=t;let i;return e[0]!==s?(i=n.jsx(Mt,{children:n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx(_n,{onNavigate:s}),n.jsx(Cn,{onNavigate:s}),n.jsx(Pn,{onNavigate:s}),n.jsx(Rn,{onNavigate:s})]})}),e[0]=s,e[1]=i):i=e[1],i}function No(){const t=k.c(3),e=Hs();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Is,{}),t[0]=s):s=t[0];let i;return t[1]!==e?(i=n.jsx(nt,{children:n.jsx(ut,{header:s,back:e?n.jsx($s,{}):n.jsx(ht,{}),body:e?n.jsx(As,{}):n.jsx(gt,{}),footer:e?n.jsx(Cs,{}):n.jsx(hn,{})})}),t[1]=e,t[2]=i):i=t[2],i}function ko(t){const e=k.c(9),{onClose:s}=t;let i,o,r;e[0]!==s?(i=n.jsx(En,{onClose:s}),o=n.jsx(ht,{onNavigate:s}),r=n.jsx(gt,{onNavigate:s}),e[0]=s,e[1]=i,e[2]=o,e[3]=r):(i=e[1],o=e[2],r=e[3]);let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(gn,{}),e[4]=a):a=e[4];let l;return e[5]!==i||e[6]!==o||e[7]!==r?(l=n.jsx(nt,{children:n.jsx(ut,{sheet:!0,header:i,back:o,body:r,footer:a})}),e[5]=i,e[6]=o,e[7]=r,e[8]=l):l=e[8],l}export{No as S,ko as a};
1
+ import{c as k,d as _e,W as R,o as E,Z as Ye,b as A,a as le,v as jt,I as vt,r as D,j as n,t as Xe,l as z,_ as ae,$ as yt,a0 as St,a1 as Nt,a2 as kt,a3 as _t,a4 as Pt,a5 as O,a6 as M,a7 as Ze,n as wt,e as It,K as Ct,B as At,a8 as ze,a9 as Ke,aa as $t,m as Tt,ab as Ot,L as zt,E as Mt}from"./index-DjGKlDpc.js";import{u as Dt,t as et,S as Rt,A as Et,a as tt,e as Ft,r as st,b as Vt,s as Bt,p as Kt,P as Lt,c as qt,d as Ut,f as Ht,i as Qt,g as Wt,h as Gt,j as nt,k as Jt}from"./task-route-CrxQp2Eb.js";import{u as Pe,r as Me,D as $,a as Yt}from"./use-destination-route-DeG1VNie.js";import{u as we,L as re,a as Ie,b as ot,P as Xt}from"./project-icon-B-AwUdvh.js";import{u as Zt}from"./hooks-Cbo6FV71.js";import{P as it,a as Re,b as at}from"./popover-Bz4u0as0.js";import{D as es,a as ts,b as ss}from"./drawer-DDx_r4uI.js";import{A as ke}from"./avatar-2bUzCm0h.js";import{a as ns}from"./Copy01-LcV42o-X.js";import{n as os}from"./Download01-C0UjxGyP.js";import{t as is,i as as,a as rs,b as ls,c as cs,n as Ee,d as rt,e as ds,f as ms,g as lt,h as us,j as fs,s as xs,k as ps}from"./agent-icon-BVAqzTse.js";import{i as bs}from"./Globe01-BYv9cftf.js";import{n as hs}from"./LinkExternal01-DHh1KWUs.js";import{h as Le,f as gs}from"./TrendUp01-C4D9k0-P.js";import{i as ct}from"./Monitor01-Bnd-_HOM.js";import{n as js,a as vs}from"./Sun-C0UUghdd.js";import{a as dt}from"./Settings02-B6haVyjm.js";import{i as ys}from"./Shield01-BNPD8ohV.js";import{b as Ss}from"./Users03-CIxXVNij.js";import{u as Ns}from"./use-deployment-admin-DR4qWEyy.js";import{u as ks}from"./use-is-desktop-app-BNujXJc_.js";import{i as _s,a as qe,D as Ps}from"./download-app-dialog-DoJFTyCS.js";import{I as mt}from"./invite-member-dialog-Cb6lFc9U.js";import{a as ws}from"./use-organization-settings-BCG7WYXv.js";import{u as Fe,S as Ce,a as Is,b as ut,c as Cs,d as As,e as $s,f as Ts,g as Os}from"./settings-sidebar-Cyg-XKsj.js";import{S as zs}from"./scroll-area-BPYhikGx.js";import{u as Ms}from"./useInfiniteQuery-DbIFSpRo.js";import{n as Ds}from"./decopilot-sse-pool-8OMuGjSu.js";import{i as Rs}from"./ChevronRight-CNXUEnI5.js";import{g as Es}from"./get-initials-D-f_fDFw.js";import{a as Fs}from"./format-time-BnbuEtat.js";import{i as Vs}from"./Share07-BMtuKCEW.js";import{u as Ve}from"./use-navigate-to-agent-C2LAOCet.js";import{c as Bs}from"./XClose-B-5LFTLX.js";import{a as Ks}from"./Image01-GxWtLpiI.js";import{u as Ls}from"./use-panel-navigate-CrFXFTDL.js";import{i as qs}from"./shell-layout---e9WdOL.js";function Us(){const t=k.c(6),e=_e(),{org:s}=R(),{setScope:i}=we(),o=Zt(),r=Pe();let a;return t[0]!==r||t[1]!==e||t[2]!==s||t[3]!==o||t[4]!==i?(a=()=>{const l=o!==void 0?"route_resolves_scope":Me(r,null)?null:"route_needs_scope",c=l!==null;if(E("scope_cleared",{relocated:c,reason:l}),!c){i(null);return}e({to:$.home,params:{org:s.slug},search:{virtualmcpid:void 0}})},t[0]=r,t[1]=e,t[2]=s,t[3]=o,t[4]=i,t[5]=a):a=t[5],a}function Hs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Ye(e)}function ie(t){const e=k.c(26),{item:s,onClose:i}=t;let o;e[0]!==s.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",s.className),e[0]=s.className,e[1]=o):o=e[1];const r=o;if(s.href){const u=s.external?"_blank":void 0,d=s.external?"noopener noreferrer":void 0;let x;e[2]!==s.icon?(x=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[2]=s.icon,e[3]=x):x=e[3];let p;e[4]!==s.label?(p=n.jsx("span",{className:"flex-1",children:s.label}),e[4]=s.label,e[5]=p):p=e[5];let h;return e[6]!==r||e[7]!==s.href||e[8]!==i||e[9]!==u||e[10]!==d||e[11]!==x||e[12]!==p?(h=n.jsxs("a",{href:s.href,target:u,rel:d,className:r,onClick:i,children:[x,p]}),e[6]=r,e[7]=s.href,e[8]=i,e[9]=u,e[10]=d,e[11]=x,e[12]=p,e[13]=h):h=e[13],h}let a;e[14]!==s||e[15]!==i?(a=()=>{s.onClick?.(),i()},e[14]=s,e[15]=i,e[16]=a):a=e[16];let l;e[17]!==s.icon?(l=n.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[17]=s.icon,e[18]=l):l=e[18];let c;e[19]!==s.label?(c=n.jsx("span",{className:"flex-1",children:s.label}),e[19]=s.label,e[20]=c):c=e[20];let m;return e[21]!==r||e[22]!==a||e[23]!==l||e[24]!==c?(m=n.jsxs("button",{type:"button",onClick:a,className:r,children:[l,c]}),e[21]=r,e[22]=a,e[23]=l,e[24]=c,e[25]=m):m=e[25],m}function Qs(){const t=k.c(4),e=A();let s;t[0]!==e?(s=e("common.accountPopover.impersonating"),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==s?(i=n.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:s}),t[2]=s,t[3]=i):i=t[3],i}function Ue(t){const e=k.c(38),{user:s,userImage:i,isImpersonating:o,isMobile:r}=t,a=A(),l=r?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==l?(c=z("flex items-center gap-3 px-4",l),e[0]=l,e[1]=c):c=e[1];const m=s?.name??"U";let u;e[2]!==m||e[3]!==i?(u=n.jsx(ke,{url:i,fallback:m,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=m,e[3]=i,e[4]=u):u=e[4];let d;e[5]!==a||e[6]!==s?.name?(d=s?.name??a("common.accountPopover.defaultUserName"),e[5]=a,e[6]=s?.name,e[7]=d):d=e[7];let x;e[8]!==d?(x=n.jsx("p",{className:"text-sm font-medium truncate",children:d}),e[8]=d,e[9]=x):x=e[9];let p;e[10]!==o?(p=o&&n.jsx(Qs,{}),e[10]=o,e[11]=p):p=e[11];let h;e[12]!==x||e[13]!==p?(h=n.jsxs("div",{className:"flex items-center gap-2",children:[x,p]}),e[12]=x,e[13]=p,e[14]=h):h=e[14];const g=s?.email;let f;e[15]!==g?(f=n.jsx("p",{className:"text-xs text-muted-foreground truncate",children:g}),e[15]=g,e[16]=f):f=e[16];let b;e[17]!==f||e[18]!==h?(b=n.jsxs("div",{className:"flex-1 min-w-0",children:[h,f]}),e[17]=f,e[18]=h,e[19]=b):b=e[19];let j;e[20]!==a||e[21]!==s?(j=()=>{s?.id&&navigator.clipboard.writeText(s.id).then(()=>{Xe.success(a("common.accountPopover.userIdCopied"))})},e[20]=a,e[21]=s,e[22]=j):j=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(ns,{size:14}),e[23]=y):y=e[23];let v;e[24]!==j?(v=n.jsx(Nt,{asChild:!0,children:n.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:y})}),e[24]=j,e[25]=v):v=e[25];let S;e[26]!==a?(S=a("common.accountPopover.copyUserId"),e[26]=a,e[27]=S):S=e[27];let N;e[28]!==S?(N=n.jsx(kt,{side:"right",children:n.jsx("p",{className:"text-xs",children:S})}),e[28]=S,e[29]=N):N=e[29];let _;e[30]!==v||e[31]!==N?(_=n.jsx(_t,{delayDuration:300,children:n.jsxs(Pt,{children:[v,N]})}),e[30]=v,e[31]=N,e[32]=_):_=e[32];let P;return e[33]!==b||e[34]!==_||e[35]!==c||e[36]!==u?(P=n.jsxs("div",{className:c,children:[u,b,_]}),e[33]=b,e[34]=_,e[35]=c,e[36]=u,e[37]=P):P=e[37],P}function He(t){const e=k.c(35),{themeOptions:s,preferences:i,setPreferences:o,isMobile:r}=t,a=A(),l=r?"size-8":"size-7",c=r?"px-3 py-3":"px-2 py-1.5";let m;e[0]!==c?(m=z("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=m):m=e[1];let u;if(e[2]!==l||e[3]!==i.theme||e[4]!==o||e[5]!==s){let S;e[7]!==l||e[8]!==i.theme||e[9]!==o?(S=N=>{const{value:_,icon:P,label:w}=N;return n.jsx("button",{type:"button","aria-label":w,onClick:()=>o(I=>({...I,theme:_})),className:z(l,"rounded-md flex items-center justify-center transition-colors",i.theme===_?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:P},_)},e[7]=l,e[8]=i.theme,e[9]=o,e[10]=S):S=e[10],u=s.map(S),e[2]=l,e[3]=i.theme,e[4]=o,e[5]=s,e[6]=u}else u=e[6];let d;e[11]!==u?(d=n.jsx("div",{className:"flex items-center gap-0.5",children:u}),e[11]=u,e[12]=d):d=e[12];let x;e[13]!==i.enableSounds||e[14]!==a?(x=i.enableSounds?a("common.accountPopover.disableSounds"):a("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=a,e[15]=x):x=e[15];let p;e[16]!==o?(p=()=>o(Ws),e[16]=o,e[17]=p):p=e[17];const h=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let g;e[18]!==l||e[19]!==h?(g=z(l,"rounded-md flex items-center justify-center transition-colors",h),e[18]=l,e[19]=h,e[20]=g):g=e[20];let f;e[21]!==i.enableSounds?(f=i.enableSounds?n.jsx(rs,{size:14}):n.jsx(ls,{size:14}),e[21]=i.enableSounds,e[22]=f):f=e[22];let b;e[23]!==x||e[24]!==p||e[25]!==g||e[26]!==f?(b=n.jsx("button",{type:"button","aria-label":x,onClick:p,className:g,children:f}),e[23]=x,e[24]=p,e[25]=g,e[26]=f,e[27]=b):b=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.329.2"]}),e[28]=j):j=e[28];let y;e[29]!==b?(y=n.jsxs("div",{className:"flex items-center gap-2",children:[b,j]}),e[29]=b,e[30]=y):y=e[30];let v;return e[31]!==y||e[32]!==m||e[33]!==d?(v=n.jsxs("div",{className:m,children:[d,y]}),e[31]=y,e[32]=m,e[33]=d,e[34]=v):v=e[34],v}function Ws(t){return{...t,enableSounds:!t.enableSounds}}function Qe(t){const e=k.c(54),{user:s,userImage:i,menuItems:o,signOutItem:r,stopImpersonatingItem:a,isImpersonating:l,themeOptions:c,preferences:m,setPreferences:u,close:d,isMobile:x}=t;if(x){let v;e[0]!==l||e[1]!==s||e[2]!==i?(v=n.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!0}),e[0]=l,e[1]=s,e[2]=i,e[3]=v):v=e[3];let S;if(e[4]!==d||e[5]!==o){let C;e[7]!==d?(C=T=>n.jsx(ie,{item:T,onClose:d},T.key),e[7]=d,e[8]=C):C=e[8],S=o.map(C),e[4]=d,e[5]=o,e[6]=S}else S=e[6];let N;e[9]!==d||e[10]!==a?(N=a&&n.jsx(ie,{item:a,onClose:d}),e[9]=d,e[10]=a,e[11]=N):N=e[11];let _;e[12]!==d||e[13]!==r?(_=n.jsx(ie,{item:r,onClose:d}),e[12]=d,e[13]=r,e[14]=_):_=e[14];let P;e[15]!==S||e[16]!==N||e[17]!==_?(P=n.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:n.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[S,N,_]})}),e[15]=S,e[16]=N,e[17]=_,e[18]=P):P=e[18];let w;e[19]!==m||e[20]!==u||e[21]!==c?(w=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!0}),e[19]=m,e[20]=u,e[21]=c,e[22]=w):w=e[22];let I;return e[23]!==v||e[24]!==P||e[25]!==w?(I=n.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,P,w]}),e[23]=v,e[24]=P,e[25]=w,e[26]=I):I=e[26],I}let p;e[27]!==l||e[28]!==s||e[29]!==i?(p=n.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!1}),e[27]=l,e[28]=s,e[29]=i,e[30]=p):p=e[30];let h;if(e[31]!==d||e[32]!==o){let v;e[34]!==d?(v=S=>n.jsx(ie,{item:S,onClose:d},S.key),e[34]=d,e[35]=v):v=e[35],h=o.map(v),e[31]=d,e[32]=o,e[33]=h}else h=e[33];let g;e[36]!==d||e[37]!==a?(g=a&&n.jsx(ie,{item:a,onClose:d}),e[36]=d,e[37]=a,e[38]=g):g=e[38];let f;e[39]!==d||e[40]!==r?(f=n.jsx(ie,{item:r,onClose:d}),e[39]=d,e[40]=r,e[41]=f):f=e[41];let b;e[42]!==h||e[43]!==g||e[44]!==f?(b=n.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[h,g,f]}),e[42]=h,e[43]=g,e[44]=f,e[45]=b):b=e[45];let j;e[46]!==m||e[47]!==u||e[48]!==c?(j=n.jsx(He,{themeOptions:c,preferences:m,setPreferences:u,isMobile:!1}),e[46]=m,e[47]=u,e[48]=c,e[49]=j):j=e[49];let y;return e[50]!==p||e[51]!==b||e[52]!==j?(y=n.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:n.jsxs("div",{className:"flex flex-col",children:[p,b,j]})}),e[50]=p,e[51]=b,e[52]=j,e[53]=y):y=e[53],y}function De(){const t=k.c(107),e=A(),{data:s}=le.useSession(),{org:i}=R(),o=_e();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org",shouldThrow:!1},t[0]=r):r=t[0];const l=Ye(r)?.params.org,[c,m]=jt(),u=vt(),{isAdmin:d}=Ns(),x=ks(),[p,h]=D.useState(!1),[g,f]=D.useState(!1),b=s?.user,j=b?.image,y=!!s?.session?.impersonatedBy;let v;t[1]===Symbol.for("react.memo_cache_sentinel")?(v=()=>h(!1),t[1]=v):v=t[1];const S=v;let N;t[2]!==e?(N=e("common.accountPopover.preferences"),t[2]=e,t[3]=N):N=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(dt,{size:16}),t[4]=_):_=t[4];let P;t[5]!==o||t[6]!==l?(P=()=>{o({to:"/$org/settings/profile",params:{org:l??""}})},t[5]=o,t[6]=l,t[7]=P):P=t[7];let w;t[8]!==N||t[9]!==P?(w={key:"preferences",label:N,icon:_,onClick:P},t[8]=N,t[9]=P,t[10]=w):w=t[10];let I;t[11]!==i||t[12]!==o?(I=i?[{key:"connect-clients",label:"Connect to Agents",icon:n.jsx(hs,{size:16}),onClick:()=>{o({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=o,t[13]=I):I=t[13];let C;t[14]!==x||t[15]!==e?(C=(_s()||qe())&&!x?[{key:"install-desktop-app",label:qe()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:n.jsx(os,{size:16}),onClick:()=>f(!0)}]:[],t[14]=x,t[15]=e,t[16]=C):C=t[16];let T;t[17]!==e?(T=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=T):T=t[18];let F;t[19]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(as,{size:16}),t[19]=F):F=t[19];let V;t[20]!==T?(V={key:"terms",label:T,icon:F,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=T,t[21]=V):V=t[21];let B;t[22]!==e?(B=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=B):B=t[23];let ce;t[24]===Symbol.for("react.memo_cache_sentinel")?(ce=n.jsx(ys,{size:16}),t[24]=ce):ce=t[24];let K;t[25]!==B?(K={key:"privacy",label:B,icon:ce,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=B,t[26]=K):K=t[26];let L;t[27]!==e?(L=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=L):L=t[28];let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(yt,{className:"w-4 h-4"}),t[29]=de):de=t[29];let q;t[30]!==L?(q={key:"github",label:L,icon:de,href:"https://github.com/decocms/studio",external:!0},t[30]=L,t[31]=q):q=t[31];let U;t[32]!==e?(U=e("common.accountPopover.community"),t[32]=e,t[33]=U):U=t[33];let me;t[34]===Symbol.for("react.memo_cache_sentinel")?(me=n.jsx(Ss,{size:16}),t[34]=me):me=t[34];let H;t[35]!==U?(H={key:"community",label:U,icon:me,href:"https://decocms.com/discord",external:!0},t[35]=U,t[36]=H):H=t[36];let Q;t[37]!==e?(Q=e("common.accountPopover.homepage"),t[37]=e,t[38]=Q):Q=t[38];let ue;t[39]===Symbol.for("react.memo_cache_sentinel")?(ue=n.jsx(bs,{size:16}),t[39]=ue):ue=t[39];let W;t[40]!==Q?(W={key:"homepage",label:Q,icon:ue,href:"https://decocms.com",external:!0},t[40]=Q,t[41]=W):W=t[41];let G;t[42]!==d||t[43]!==o||t[44]!==e?(G=d?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:n.jsx(is,{size:16}),onClick:()=>o({to:"/_admin"}),className:"text-warning"}]:[],t[42]=d,t[43]=o,t[44]=e,t[45]=G):G=t[45];let fe;t[46]!==V||t[47]!==K||t[48]!==q||t[49]!==H||t[50]!==W||t[51]!==G||t[52]!==w||t[53]!==I||t[54]!==C?(fe=[w,...I,...C,V,K,q,H,W,...G],t[46]=V,t[47]=K,t[48]=q,t[49]=H,t[50]=W,t[51]=G,t[52]=w,t[53]=I,t[54]=C,t[55]=fe):fe=t[55];const Ae=fe;let J;t[56]!==e?(J=e("common.accountPopover.signOut"),t[56]=e,t[57]=J):J=t[57];let xe;t[58]===Symbol.for("react.memo_cache_sentinel")?(xe=n.jsx(Le,{size:16}),t[58]=xe):xe=t[58];let pe;t[59]!==J?(pe={key:"logout",label:J,icon:xe,onClick:Js},t[59]=J,t[60]=pe):pe=t[60];const $e=pe;let be;t[61]!==y||t[62]!==e?(be=y?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:n.jsx(Le,{size:16}),onClick:async()=>{const{error:Be}=await le.admin.stopImpersonating();if(Be){Xe.error(Be.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=y,t[62]=e,t[63]=be):be=t[63];const Te=be;let he;t[64]===Symbol.for("react.memo_cache_sentinel")?(he=n.jsx(js,{size:14}),t[64]=he):he=t[64];let Y;t[65]!==e?(Y=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=Y):Y=t[66];let X;t[67]!==Y?(X={value:"light",icon:he,label:Y},t[67]=Y,t[68]=X):X=t[68];let ge;t[69]===Symbol.for("react.memo_cache_sentinel")?(ge=n.jsx(vs,{size:14}),t[69]=ge):ge=t[69];let Z;t[70]!==e?(Z=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=Z):Z=t[71];let ee;t[72]!==Z?(ee={value:"dark",icon:ge,label:Z},t[72]=Z,t[73]=ee):ee=t[73];let je;t[74]===Symbol.for("react.memo_cache_sentinel")?(je=n.jsx(ct,{size:14}),t[74]=je):je=t[74];let te;t[75]!==e?(te=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=te):te=t[76];let se;t[77]!==te?(se={value:"system",icon:je,label:te},t[77]=te,t[78]=se):se=t[78];let ve;t[79]!==X||t[80]!==ee||t[81]!==se?(ve=[X,ee,se],t[79]=X,t[80]=ee,t[81]=se,t[82]=ve):ve=t[82];const Oe=ve;let ye;t[83]!==y||t[84]!==u||t[85]!==Ae||t[86]!==c||t[87]!==m||t[88]!==$e||t[89]!==Te||t[90]!==Oe||t[91]!==b||t[92]!==j?(ye={user:b,userImage:j,menuItems:Ae,signOutItem:$e,stopImpersonatingItem:Te,isImpersonating:y,themeOptions:Oe,preferences:c,setPreferences:m,close:S,isMobile:u},t[83]=y,t[84]=u,t[85]=Ae,t[86]=c,t[87]=m,t[88]=$e,t[89]=Te,t[90]=Oe,t[91]=b,t[92]=j,t[93]=ye):ye=t[93];const Se=ye;let ne;t[94]!==y||t[95]!==u||t[96]!==p||t[97]!==Se||t[98]!==e||t[99]!==b?.name||t[100]!==j?(ne=u?n.jsxs(es,{open:p,onOpenChange:h,direction:"bottom",children:[n.jsxs("button",{type:"button",onClick:()=>h(!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",y&&"border-2 border-dashed border-warning"),children:[n.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]}),n.jsxs(ts,{className:"h-[80dvh] p-0",children:[n.jsx(ss,{className:"sr-only",children:e("common.accountPopover.account")}),n.jsx(Qe,{...Se})]})]}):n.jsxs(it,{open:p,onOpenChange:h,children:[n.jsx(Re,{asChild:!0,children:n.jsxs(ae,{"data-tour":re.account,tooltip:b?.name??e("common.accountPopover.defaultAccountLabel"),className:z("rounded-md",y&&"border-2 border-dashed border-warning"),children:[n.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),n.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]})}),n.jsx(at,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Gs,children:n.jsx(Qe,{...Se})})]}),t[94]=y,t[95]=u,t[96]=p,t[97]=Se,t[98]=e,t[99]=b?.name,t[100]=j,t[101]=ne):ne=t[101];let oe;t[102]!==g?(oe=n.jsx(Ps,{open:g,onOpenChange:f}),t[102]=g,t[103]=oe):oe=t[103];let Ne;return t[104]!==ne||t[105]!==oe?(Ne=n.jsxs(n.Fragment,{children:[ne,oe]}),t[104]=ne,t[105]=oe,t[106]=Ne):Ne=t[106],Ne}function Gs(t){return t.preventDefault()}function Js(){E("signed_out",{source:"account_popover"}),St(),le.signOut()}class Ys extends D.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?null:this.props.children}}function Xs(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Zs(){const t=k.c(17),e=_e(),{org:s}=R(),{hasDecoKey:i,balanceDollars:o}=Dt();if(!i)return null;let r;t[0]!==o?(r=o!=null?`Credits: $${o.toFixed(2)}`:"Credits",t[0]=o,t[1]=r):r=t[1];let a;t[2]!==o?(a=z(o!=null&&Xs(o)),t[2]=o,t[3]=a):a=t[3];let l;t[4]!==e||t[5]!==s.slug?(l=()=>e({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[4]=e,t[5]=s.slug,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(cs,{}),t[7]=c):c=t[7];let m;t[8]!==o?(m=o!=null?`$${o.toFixed(2)}`:"Credits",t[8]=o,t[9]=m):m=t[9];let u;t[10]!==m?(u=n.jsx("span",{children:m}),t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==r||t[13]!==a||t[14]!==l||t[15]!==u?(d=n.jsx(O,{children:n.jsx(M,{children:n.jsxs(ae,{tooltip:r,className:a,onClick:l,children:[c,u]})})}),t[12]=r,t[13]=a,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function We(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Ys,{children:n.jsx(D.Suspense,{fallback:null,children:n.jsx(Zs,{})})}),t[0]=e):e=t[0],e}const en=6e4;function tn(t,e){return t.call("NOTIFICATION_LIST",e?{cursor:e}:{})}function sn(t,e){if(!t)return t;const s=e?new Set(e):null;let i=0;const o=t.pages.map(a=>{const l=a.notifications.filter(c=>s&&!s.has(c.id)?!0:(i++,!1));return{...a,notifications:l}}),r=s?Math.max(0,(t.pages[0]?.unreadCount??0)-i):0;return{...t,pages:o.map(a=>({...a,unreadCount:r}))}}function nn(t,e){const s=k.c(4),{data:i}=le.useSession(),o=i?.user?.id;let r;s[0]!==e||s[1]!==t||s[2]!==o?(r=a=>!t||!o?rn:Ds.subscribe(t,c=>{try{if(JSON.parse(c.data).subject!==o)return}catch{return}e(),a()},e),s[0]=e,s[1]=t,s[2]=o,s[3]=r):r=s[3],D.useSyncExternalStore(r,an,on)}function on(){return 0}function an(){return 0}function rn(){}function ft(){const t=k.c(37),{locator:e,org:s}=R(),i=Ze(),o=wt();let r;t[0]!==e?(r=Ct.notifications(e),t[0]=e,t[1]=r):r=t[1];const a=r;let l;t[2]!==i?(l=P=>{const{pageParam:w}=P;return tn(i,w)},t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a||t[5]!==l?(c={queryKey:a,queryFn:l,initialPageParam:void 0,getNextPageParam:dn,refetchInterval:en},t[4]=a,t[5]=l,t[6]=c):c=t[6];const m=Ms(c);let u;t[7]!==o||t[8]!==a?(u=()=>o.invalidateQueries({queryKey:a,refetchType:"active"}),t[7]=o,t[8]=a,t[9]=u):u=t[9],nn(s.slug,u);let d;t[10]!==i?(d=P=>i.call("NOTIFICATION_MARK_READ",P?{ids:P}:{}),t[10]=i,t[11]=d):d=t[11];let x,p;t[12]!==o||t[13]!==a?(x=async P=>{await o.cancelQueries({queryKey:a}),o.setQueryData(a,w=>sn(w,P))},p=()=>o.invalidateQueries({queryKey:a}),t[12]=o,t[13]=a,t[14]=x,t[15]=p):(x=t[14],p=t[15]);let h;t[16]!==d||t[17]!==x||t[18]!==p?(h={mutationFn:d,onMutate:x,onSettled:p},t[16]=d,t[17]=x,t[18]=p,t[19]=h):h=t[19];const g=It(h);let f;t[20]!==m.data?.pages?(f=m.data?.pages??[],t[20]=m.data?.pages,t[21]=f):f=t[21];const b=f;let j;t[22]!==b?(j=b.flatMap(ln),t[22]=b,t[23]=j):j=t[23];const y=b[0]?.unreadCount??0;let v;t[24]!==m?(v=()=>{m.hasNextPage&&!m.isFetchingNextPage&&m.fetchNextPage()},t[24]=m,t[25]=v):v=t[25];let S,N;t[26]!==g?(S=()=>g.mutate(null),N=P=>g.mutate([P]),t[26]=g,t[27]=S,t[28]=N):(S=t[27],N=t[28]);let _;return t[29]!==m.hasNextPage||t[30]!==m.isFetchingNextPage||t[31]!==y||t[32]!==v||t[33]!==S||t[34]!==N||t[35]!==j?(_={updates:j,redDotCount:y,hasMore:m.hasNextPage,isFetchingMore:m.isFetchingNextPage,fetchMore:v,markAllRead:S,markRead:N},t[29]=m.hasNextPage,t[30]=m.isFetchingNextPage,t[31]=y,t[32]=v,t[33]=S,t[34]=N,t[35]=j,t[36]=_):_=t[36],_}function ln(t){return t.notifications.map(cn)}function cn(t){return{id:t.id,taskBoardItemId:t.taskBoardItemId,taskTitle:t.taskTitle,taskKeySeq:t.taskKeySeq,action:t.type,actorName:t.actorName,actorImage:t.actorImage,occurredAt:t.createdAt}}function dn(t){return t.nextCursor??void 0}function mn(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");default:{const s=t.action;return String(s)}}}function un(t){const e=k.c(28),{update:s,orgSlug:i,onSelect:o}=t,r=A();let a;e[0]!==i||e[1]!==s.taskKeySeq?(a=et(i,s.taskKeySeq),e[0]=i,e[1]=s.taskKeySeq,e[2]=a):a=e[2];const l=a,c=!s.actorName;let m;e[3]!==c||e[4]!==s.actorImage||e[5]!==s.actorName?(m=c?n.jsx(Rt,{size:24,className:"shrink-0"}):n.jsx(ke,{url:s.actorImage??void 0,fallback:Es(s.actorName??void 0),shape:"circle",size:"xs",className:"shrink-0"}),e[3]=c,e[4]=s.actorImage,e[5]=s.actorName,e[6]=m):m=e[6];const u=l?`${l} · `:"";let d;e[7]!==u||e[8]!==s.taskTitle?(d=n.jsxs("p",{className:"truncate text-xs text-muted-foreground",children:[u,s.taskTitle]}),e[7]=u,e[8]=s.taskTitle,e[9]=d):d=e[9];let x;e[10]!==r||e[11]!==s?(x=mn(s,r),e[10]=r,e[11]=s,e[12]=x):x=e[12];let p;e[13]!==x?(p=n.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:x}),e[13]=x,e[14]=p):p=e[14];let h;e[15]!==d||e[16]!==p?(h=n.jsxs("div",{className:"min-w-0 flex-1",children:[d,p]}),e[15]=d,e[16]=p,e[17]=h):h=e[17];let g;e[18]!==s.occurredAt?(g=Fs(new Date(s.occurredAt)),e[18]=s.occurredAt,e[19]=g):g=e[19];let f;e[20]!==g?(f=n.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:g}),e[20]=g,e[21]=f):f=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Rs,{size:16,className:"shrink-0 text-muted-foreground"}),e[22]=b):b=e[22];let j;return e[23]!==o||e[24]!==m||e[25]!==h||e[26]!==f?(j=n.jsxs("button",{type:"button",onClick:o,className:"flex w-full items-center gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-muted/25",children:[m,h,f,b]}),e[23]=o,e[24]=m,e[25]=h,e[26]=f,e[27]=j):j=e[27],j}function fn(t){const e=k.c(2),{onReach:s}=t;let i;return e[0]!==s?(i=n.jsx("div",{className:"h-8 shrink-0",ref:o=>{if(!o)return;const r=new IntersectionObserver(a=>{a.some(xn)&&s()});return r.observe(o),()=>r.disconnect()}}),e[0]=s,e[1]=i):i=e[1],i}function xn(t){return t.isIntersecting}function pn(t){const e=k.c(23),{onClose:s}=t,i=A(),o=_e(),{org:r}=R(),{updates:a,markAllRead:l,markRead:c,hasMore:m,fetchMore:u}=ft();let d;e[0]!==i?(d=i("sidebar.inbox.title"),e[0]=i,e[1]=d):d=e[1];let x;e[2]!==d?(x=n.jsx("h3",{className:"text-sm font-medium",children:d}),e[2]=d,e[3]=x):x=e[3];let p;e[4]!==l||e[5]!==i||e[6]!==a.length?(p=a.length>0&&n.jsx(At,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs text-muted-foreground",onClick:l,children:i("sidebar.inbox.markAllRead")}),e[4]=l,e[5]=i,e[6]=a.length,e[7]=p):p=e[7];let h;e[8]!==x||e[9]!==p?(h=n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[x,p]}),e[8]=x,e[9]=p,e[10]=h):h=e[10];let g;e[11]!==u||e[12]!==m||e[13]!==c||e[14]!==o||e[15]!==s||e[16]!==r||e[17]!==i||e[18]!==a?(g=a.length===0?n.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[n.jsx(Ee,{size:24,className:"text-muted-foreground/50"}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:i("sidebar.inbox.emptyTitle")}),n.jsx("p",{className:"text-xs text-muted-foreground",children:i("sidebar.inbox.emptyBody")})]}):n.jsxs(zs,{className:"min-h-0 flex-1",children:[a.map(b=>{const j=et(r.slug,b.taskKeySeq);return n.jsx(un,{update:b,orgSlug:r.slug,onSelect:()=>{c(b.id),s(),j&&o({to:"/$org/tasks/{-$taskKey}",params:{org:r.slug,taskKey:j}})}},b.id)}),m&&n.jsx(fn,{onReach:u})]}),e[11]=u,e[12]=m,e[13]=c,e[14]=o,e[15]=s,e[16]=r,e[17]=i,e[18]=a,e[19]=g):g=e[19];let f;return e[20]!==h||e[21]!==g?(f=n.jsxs(n.Fragment,{children:[h,g]}),e[20]=h,e[21]=g,e[22]=f):f=e[22],f}function xt(){const t=k.c(1),{redDotCount:e}=ft();if(e===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function pt(t){const e=k.c(11),{open:s,onOpenChange:i,side:o,children:r}=t;let a;e[0]!==i||e[1]!==s?(a=s&&n.jsx(pn,{onClose:()=>i(!1)}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let l;e[3]!==o||e[4]!==a?(l=n.jsx(at,{side:o,align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(400px,calc(100vw-2rem))] flex-col p-0",children:a}),e[3]=o,e[4]=a,e[5]=l):l=e[5];let c;return e[6]!==r||e[7]!==i||e[8]!==s||e[9]!==l?(c=n.jsxs(it,{open:s,onOpenChange:i,children:[r,l]}),e[6]=r,e[7]=i,e[8]=s,e[9]=l,e[10]=c):c=e[10],c}function bt(){const t=k.c(9),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.inbox.title"),t[0]=e,t[1]=o):o=t[1];let r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ee,{size:15}),a=n.jsx(xt,{}),t[2]=r,t[3]=a):(r=t[2],a=t[3]);let l;t[4]!==o?(l=n.jsx(Re,{asChild:!0,children:n.jsxs("button",{type:"button","aria-label":o,className:"relative flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[r,a]})}),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==s||t[7]!==l?(c=n.jsx(pt,{open:s,onOpenChange:i,side:"top",children:l}),t[6]=s,t[7]=l,t[8]=c):c=t[8],c}function bn(){const t=k.c(15),e=A(),[s,i]=D.useState(!1),o=Fe();let r;t[0]!==o||t[1]!==e?(r=o?e("sidebar.inbox.title"):void 0,t[0]=o,t[1]=e,t[2]=r):r=t[2];let a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ee,{}),l=n.jsx(xt,{}),t[3]=a,t[4]=l):(a=t[3],l=t[4]);let c;t[5]!==e?(c=e("sidebar.inbox.title"),t[5]=e,t[6]=c):c=t[6];let m;t[7]!==c?(m=n.jsx("span",{className:"truncate",children:c}),t[7]=c,t[8]=m):m=t[8];let u;t[9]!==r||t[10]!==m?(u=n.jsx(Re,{asChild:!0,children:n.jsxs(ae,{tooltip:r,className:"relative",children:[a,l,m]})}),t[9]=r,t[10]=m,t[11]=u):u=t[11];let d;return t[12]!==s||t[13]!==u?(d=n.jsx(pt,{open:s,onOpenChange:i,side:"right",children:u}),t[12]=s,t[13]=u,t[14]=d):d=t[14],d}function Ge(){const t=k.c(29),e=A(),[s,i]=D.useState(!1);let o;t[0]!==e?(o=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=o):o=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(rt,{}),t[2]=r):r=t[2];let a;t[3]!==e?(a=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=a):a=t[4];let l;t[5]!==a?(l=n.jsx("span",{children:a}),t[5]=a,t[6]=l):l=t[6];let c;t[7]!==o||t[8]!==l?(c=n.jsx(M,{children:n.jsx(mt,{trigger:n.jsxs(ae,{tooltip:o,children:[r,l]})})}),t[7]=o,t[8]=l,t[9]=c):c=t[9];let m;t[10]!==e?(m=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=m):m=t[11];let u,d;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>i(!0),d=n.jsx(ds,{}),t[12]=u,t[13]=d):(u=t[12],d=t[13]);let x;t[14]!==e?(x=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=x):x=t[15];let p;t[16]!==x?(p=n.jsx("span",{children:x}),t[16]=x,t[17]=p):p=t[17];let h;t[18]!==m||t[19]!==p?(h=n.jsx(M,{children:n.jsxs(ae,{tooltip:m,onClick:u,children:[d,p]})}),t[18]=m,t[19]=p,t[20]=h):h=t[20];let g;t[21]!==h||t[22]!==c?(g=n.jsxs(O,{className:"gap-0.5",children:[c,h]}),t[21]=h,t[22]=c,t[23]=g):g=t[23];let f;t[24]!==s?(f=s&&n.jsx(Et,{open:s,onOpenChange:i,mode:"browse"}),t[24]=s,t[25]=f):f=t[25];let b;return t[26]!==g||t[27]!==f?(b=n.jsxs(n.Fragment,{children:[g,f]}),t[26]=g,t[27]=f,t[28]=b):b=t[28],b}function Je(){const t=k.c(10),e=A();let s;t[0]!==e?(s=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(rt,{}),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 r;t[5]!==o?(r=n.jsx("span",{children:o}),t[5]=o,t[6]=r):r=t[6];let a;return t[7]!==s||t[8]!==r?(a=n.jsx(O,{className:"gap-0.5",children:n.jsx(M,{children:n.jsx(mt,{trigger:n.jsxs(ae,{tooltip:s,children:[i,r]})})})}),t[7]=s,t[8]=r,t[9]=a):a=t[9],a}function hn(){const t=k.c(17),e=Fe(),s=ws(),i=!s;if(e){let c;t[0]!==i?(c=i&&n.jsx(We,{}),t[0]=i,t[1]=c):c=t[1];let m;t[2]!==s?(m=s?n.jsx(Je,{}):n.jsx(Ge,{}),t[2]=s,t[3]=m):m=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(M,{children:n.jsx(bn,{})}),t[4]=u):u=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsxs(O,{children:[u,n.jsx(M,{children:n.jsx(De,{})})]}),t[5]=d):d=t[5];let x;return t[6]!==c||t[7]!==m?(x=n.jsxs(ze,{className:"px-2 pb-3 gap-1",children:[c,m,d]}),t[6]=c,t[7]=m,t[8]=x):x=t[8],x}let o;t[9]!==i?(o=i&&n.jsx(We,{}),t[9]=i,t[10]=o):o=t[10];let r;t[11]!==s?(r=s?n.jsx(Je,{}):n.jsx(Ge,{}),t[11]=s,t[12]=r):r=t[12];let a;t[13]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(O,{className:"gap-0.5",children:n.jsx(M,{children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(De,{})}),n.jsx(bt,{})]})})}),t[13]=a):a=t[13];let l;return t[14]!==o||t[15]!==r?(l=n.jsxs(ze,{className:"px-2 pb-3 gap-0.5",children:[o,r,a]}),t[14]=o,t[15]=r,t[16]=l):l=t[16],l}function gn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ze,{className:"px-2 pb-3",children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(O,{children:n.jsx(M,{children:n.jsx(De,{})})})}),n.jsx(bt,{})]})}),t[0]=e):e=t[0],e}const jn="settings",vn=["overview","reports","board","files"];function yn(t,e){return!t||!e?!1:!ot(e.metadata)}function Sn(t,e,s,i){if(!t||!e)return!0;const o=i!==void 0;return Ft(o?i:st(e.metadata),o?1:e.metadata?.sidebarViewsVersion).includes(s)}function Nn(){const t=k.c(14),e=A(),{org:s}=R(),i=Pe(),o=Ie(),{project:r}=we(),a=tt(r?.id);let l;t[0]!==r||t[1]!==o?(l=yn(o,r),t[0]=r,t[1]=o,t[2]=l):l=t[2];const c=l;let m;t[3]!==a||t[4]!==r||t[5]!==o?(m=x=>Sn(o,r,x,a),t[3]=a,t[4]=r,t[5]=o,t[6]=m):m=t[6];const u=m;let d;if(t[7]!==u||t[8]!==c||t[9]!==i||t[10]!==s||t[11]!==o||t[12]!==e){const x={overview:c||!u("overview")?null:{key:"overview",label:e("sidebar.navDestinations.home"),icon:n.jsx(us,{size:16}),isActive:i===$.home||i===$.orgIndex,trackAs:"overview",link:{to:$.home,params:{org:s.slug}}},reports:Me($.reports,o)&&!c&&u("reports")?{key:"reports",label:e("sidebar.navDestinations.reports"),icon:n.jsx(lt,{size:16}),isActive:i===$.reports,trackAs:"reports",link:{to:$.reports,params:{org:s.slug}}}:null,board:c||!u("board")?null:{key:"board",label:e("sidebar.navDestinations.tasks"),icon:n.jsx(ms,{size:16}),isActive:i===$.tasks,trackAs:"board",dataTour:re.tasks,link:{to:$.tasks,params:{org:s.slug,taskKey:void 0}}},files:Me($.library,o)?{key:"files",label:e("sidebar.navDestinations.library"),icon:n.jsx(Vs,{size:16}),isActive:i===$.library,trackAs:"files",link:{to:$.library,params:{org:s.slug}}}:null};d=vn.map(p=>x[p]).filter(kn),t[7]=u,t[8]=c,t[9]=i,t[10]=s,t[11]=o,t[12]=e,t[13]=d}else d=t[13];return d}function kn(t){return t!==null}function _n(t){const e=k.c(7),{onNavigate:s}=t,i=Nn();let o;if(e[0]!==i||e[1]!==s){let a;e[3]!==s?(a=l=>n.jsx(Ce,{icon:l.icon,label:l.label,dataTour:l.dataTour,isActive:l.isActive,link:l.link,onSelect:()=>{E("nav_destination_clicked",{destination:l.trackAs}),s?.()}},l.key),e[3]=s,e[4]=a):a=e[4],o=i.map(a),e[0]=i,e[1]=s,e[2]=o}else o=e[2];let r;return e[5]!==o?(r=n.jsx(O,{className:"gap-1",children:o}),e[5]=o,e[6]=r):r=e[6],r}function Pn(t){const e=k.c(18),{onNavigate:s}=t,i=A(),{org:o}=R(),r=Ie(),a=Ve(),l=Pe(),c=Yt();let m;e[0]!==c||e[1]!==l?(m=l.startsWith("/$org/settings")||l===$.agents&&c==="settings",e[0]=c,e[1]=l,e[2]=m):m=e[2];const u=m;let d;e[3]!==i?(d=i("sidebar.navDestinations.settings"),e[3]=i,e[4]=d):d=e[4];const x=d;let p;e[5]!==o||e[6]!==r?(p=r?void 0:{to:"/$org/settings",params:{org:o.slug}},e[5]=o,e[6]=r,e[7]=p):p=e[7];const h=p;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(dt,{size:16}),e[8]=g):g=e[8];let f;e[9]!==a||e[10]!==s||e[11]!==r?(f=()=>{E("nav_destination_clicked",{destination:jn,target:r?"project":"org"}),r&&a(r,{panel:"settings"}),s?.()},e[9]=a,e[10]=s,e[11]=r,e[12]=f):f=e[12];let b;return e[13]!==u||e[14]!==x||e[15]!==h||e[16]!==f?(b=n.jsx(O,{className:"gap-1",children:n.jsx(Ce,{dataTour:re.settings,icon:g,label:x,isActive:u,link:h,onSelect:f})}),e[13]=u,e[14]=x,e[15]=h,e[16]=f,e[17]=b):b=e[17],b}function wn(t,e){const s=new Set(e);return s.size===0?t:t.filter(i=>s.has(i.connectionId))}function In(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"):[]}function Cn(t){const e=k.c(12),{onNavigate:s}=t,i=A(),{project:o}=we(),r=Ve(),a=Pe(),l=Ls(),c=Vt(o),m=tt(o?.id);if(!o)return null;let u;if(e[0]!==c.presence||e[1]!==m||e[2]!==o.metadata){const p=ot(o.metadata),h=m??st(o.metadata);u=new Set(Bt(h,Kt(p,c.presence),m!==void 0?1:o.metadata.sidebarViewsVersion)),e[0]=c.presence,e[1]=m,e[2]=o.metadata,e[3]=u}else u=e[3];const d=u;let x;if(e[4]!==l||e[5]!==a||e[6]!==r||e[7]!==s||e[8]!==o||e[9]!==d||e[10]!==i){const p=[];d.has("site-editor")&&p.push({key:"site-editor",label:i("sidebar.projectNav.siteEditor"),icon:n.jsx(ct,{size:16}),panel:"site-editor",isActive:Tn,dataTour:re.siteEditor});const h={assets:{label:i("common.mainPanelTabs.assets"),icon:n.jsx(Ks,{size:16})},hosting:{label:i("common.mainPanelTabs.hosting"),icon:n.jsx(ps,{size:16})},e2e:{label:i("common.mainPanelTabs.e2e"),icon:n.jsx(gs,{size:16})},analytics:{label:i("common.mainPanelTabs.analytics"),icon:n.jsx(lt,{size:16})},cdn:{label:i("common.mainPanelTabs.cdn"),icon:n.jsx(xs,{size:16})}};for(const f of Lt){if(!d.has(f))continue;const b=h[f];p.push({key:f,label:b.label,icon:b.icon,panel:f,isActive:j=>j===f})}for(const f of wn(In(o),(o.connections??[]).map($n)))f.toolName!=="fetch_assets"&&p.push({key:`pinned:${f.connectionId}:${f.toolName}`,label:f.label||f.toolName,icon:f.icon?n.jsx("img",{src:f.icon,alt:"",className:"size-4 rounded-[3px]"}):n.jsx(Bs,{size:16}),panel:Ke(f.connectionId,f.toolName),isActive:b=>b===Ke(f.connectionId,f.toolName)});d.has("automations")&&p.push({key:"automations",label:i("sidebar.projectNav.automations"),icon:n.jsx(fs,{size:16}),panel:"automations",isActive:An,dataTour:re.automations});const g=a===$.agents;x=n.jsx(O,{className:"gap-1",children:p.map(f=>n.jsx(Ce,{icon:f.icon,label:f.label,dataTour:f.dataTour,isActive:g&&f.isActive(l),onSelect:()=>{E("project_nav_clicked",{surface:f.key}),r(o.id,{panel:f.panel}),s?.()}},f.key))}),e[4]=l,e[5]=a,e[6]=r,e[7]=s,e[8]=o,e[9]=d,e[10]=i,e[11]=x}else x=e[11];return x}function An(t){return t==="automations"||$t(t)!==null}function $n(t){return t.connection_id}function Tn(t){return!!t&&qs(t)}const On=3;function zn(t,e){return t.status==="archived"||t.status==="done"?!1:e&&t.assigneeId===e?!0:Qt(t)||Wt(t)}function Mn(t,e,s){const i=new Map;for(const r of e){if(!zn(r,s))continue;const a=Ut(r,t);for(const l of a){const c=i.get(l.id)??[];c.push({task:r,only:a.length===1}),i.set(l.id,c)}}const o=new Map;for(const[r,a]of i)a.sort((l,c)=>Number(c.only)-Number(l.only)||(c.task.updatedAt??"").localeCompare(l.task.updatedAt??"")),o.set(r,a.slice(0,On).map(l=>l.task));return o}function Dn(t){const e=k.c(21),{task:s,orgSlug:i,isLast:o,onNavigate:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("span",{"aria-hidden":"true",className:"absolute top-0 left-4 h-1/2 w-3 rounded-bl-lg border-b border-l border-sidebar-border"}),e[0]=a):a=e[0];let l;e[1]!==o?(l=!o&&n.jsx("span",{"aria-hidden":"true",className:"absolute top-1/2 bottom-0 left-4 border-l border-sidebar-border"}),e[1]=o,e[2]=l):l=e[2];let c;e[3]!==i||e[4]!==s?(c=Ht(i,s),e[3]=i,e[4]=s,e[5]=c):c=e[5];let m;e[6]!==i||e[7]!==c?(m={org:i,taskKey:c},e[6]=i,e[7]=c,e[8]=m):m=e[8];let u;e[9]!==r||e[10]!==s.status?(u=()=>{E("sidebar_attention_task_clicked",{status:s.status}),r?.()},e[9]=r,e[10]=s.status,e[11]=u):u=e[11];let d;e[12]!==s.title?(d=n.jsx("span",{className:"truncate",children:s.title}),e[12]=s.title,e[13]=d):d=e[13];let x;e[14]!==m||e[15]!==u||e[16]!==d?(x=n.jsx(zt,{to:"/$org/tasks/{-$taskKey}",params:m,onClick:u,className:"flex h-8 items-center rounded-lg pr-2 pl-9 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:d}),e[14]=m,e[15]=u,e[16]=d,e[17]=x):x=e[17];let p;return e[18]!==l||e[19]!==x?(p=n.jsxs("li",{className:"relative",children:[a,l,x]}),e[18]=l,e[19]=x,e[20]=p):p=e[20],p}function Rn(t){const e=k.c(35),{onNavigate:s}=t,i=A(),o=Fe(),{org:r,locator:a}=R(),l=Ze(),{projects:c}=we(),m=Ie(),u=Ve(),{data:d}=le.useSession();let x;e[0]!==a||e[1]!==l?(x=Gt(a,l),e[0]=a,e[1]=l,e[2]=x):x=e[2];const p=!o&&!m;let h;e[3]!==x||e[4]!==p?(h={...x,enabled:p},e[3]=x,e[4]=p,e[5]=h):h=e[5];const{data:g}=Tt(h);if(m||c.length===0)return null;let f,b,j,y,v,S;if(e[6]!==o||e[7]!==g?.items||e[8]!==u||e[9]!==s||e[10]!==r||e[11]!==c||e[12]!==m||e[13]!==d?.user?.id||e[14]!==i){const P=Mn(qt(c),g?.items??[],d?.user?.id),w=o&&"pt-3";e[21]!==w?(y=z("flex flex-col gap-1",w),e[21]=w,e[22]=y):y=e[22],v=re.projects,e[23]!==o||e[24]!==i?(S=!o&&n.jsx("p",{className:"px-2 pt-5 pb-0.5 text-xs font-medium text-muted-foreground/60",children:i("sidebar.projects.heading")}),e[23]=o,e[24]=i,e[25]=S):S=e[25],f=O,b="gap-1",j=c.map(I=>{const C=P.get(I.id)??[];return n.jsx(Ce,{icon:n.jsx(Xt,{icon:I.icon,name:I.title}),label:I.title,isActive:I.id===m,onSelect:()=>{E("sidebar_project_clicked"),u(I.id,{panel:Ot(I.metadata?.ui?.layout)}),s?.()},children:!o&&C.length>0&&n.jsx("ul",{className:"flex flex-col",children:C.map((T,F)=>n.jsx(Dn,{task:T,orgSlug:r.slug,isLast:F===C.length-1,onNavigate:s},T.id))})},I.id)}),e[6]=o,e[7]=g?.items,e[8]=u,e[9]=s,e[10]=r,e[11]=c,e[12]=m,e[13]=d?.user?.id,e[14]=i,e[15]=f,e[16]=b,e[17]=j,e[18]=y,e[19]=v,e[20]=S}else f=e[15],b=e[16],j=e[17],y=e[18],v=e[19],S=e[20];let N;e[26]!==f||e[27]!==b||e[28]!==j?(N=n.jsx(f,{className:b,children:j}),e[26]=f,e[27]=b,e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==y||e[31]!==v||e[32]!==S||e[33]!==N?(_=n.jsxs("div",{className:y,"data-tour":v,children:[S,N]}),e[30]=y,e[31]=v,e[32]=S,e[33]=N,e[34]=_):_=e[34],_}function En(t){const e=k.c(5),{onClose:s}=t;let i;e[0]!==s?(i=n.jsx(Jt,{onNavigate:s}),e[0]=s,e[1]=i):i=e[1];let o;return e[2]!==s||e[3]!==i?(o=n.jsx(Ts,{onClose:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4],o}function ht(t){const e=k.c(8),{onNavigate:s}=t,i=A(),o=Ie(),r=Us();if(!o)return null;let a;e[0]!==i?(a=i("sidebar.scope.allProjects"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==r||e[3]!==s?(l=()=>{r(),s?.()},e[2]=r,e[3]=s,e[4]=l):l=e[4];let c;return e[5]!==a||e[6]!==l?(c=n.jsx(Os,{label:a,onSelect:l}),e[5]=a,e[6]=l,e[7]=c):c=e[7],c}function gt(t){const e=k.c(2),{onNavigate:s}=t;let i;return e[0]!==s?(i=n.jsx(Mt,{children:n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx(_n,{onNavigate:s}),n.jsx(Cn,{onNavigate:s}),n.jsx(Pn,{onNavigate:s}),n.jsx(Rn,{onNavigate:s})]})}),e[0]=s,e[1]=i):i=e[1],i}function No(){const t=k.c(3),e=Hs();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Is,{}),t[0]=s):s=t[0];let i;return t[1]!==e?(i=n.jsx(nt,{children:n.jsx(ut,{header:s,back:e?n.jsx($s,{}):n.jsx(ht,{}),body:e?n.jsx(As,{}):n.jsx(gt,{}),footer:e?n.jsx(Cs,{}):n.jsx(hn,{})})}),t[1]=e,t[2]=i):i=t[2],i}function ko(t){const e=k.c(9),{onClose:s}=t;let i,o,r;e[0]!==s?(i=n.jsx(En,{onClose:s}),o=n.jsx(ht,{onNavigate:s}),r=n.jsx(gt,{onNavigate:s}),e[0]=s,e[1]=i,e[2]=o,e[3]=r):(i=e[1],o=e[2],r=e[3]);let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(gn,{}),e[4]=a):a=e[4];let l;return e[5]!==i||e[6]!==o||e[7]!==r?(l=n.jsx(nt,{children:n.jsx(ut,{sheet:!0,header:i,back:o,body:r,footer:a})}),e[5]=i,e[6]=o,e[7]=r,e[8]=l):l=e[8],l}export{No as S,ko as a};
@@ -1 +1 @@
1
- import{r as s,br as F,bp as L,j as d,dw as q,bm as C,bq as E,du as K,bs as y,dv as w,cG as T,bo as _,cC as U,cB as V}from"./index-Dg3MDkI1.js";var I="Radio",[z,P]=_(I),[H,W]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(c,h=>m(h)),u=s.useRef(!1),b=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(C.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:y(t.onClick,h=>{e||f?.(),b&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),b&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var G="RadioIndicator",g=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(G,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(C.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});g.displayName=G;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(C.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x="RadioGroup",[J]=_(x,[w,P]),j=w(),N=P(),[Q,Z]=J(x),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=F(R),[b,h]=L({prop:r,defaultProp:e??null,onChange:p,caller:x});return d.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:b,onValueChange:h,children:d.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(C.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=x;var M="RadioGroupItem",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=b=>{Y.includes(b.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:y(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:y(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",B=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(g,{...e,...n,ref:c})});B.displayName=$;var oe=D,re=O,te=B;export{re as I,oe as R,te as a};
1
+ import{r as s,br as F,bp as L,j as d,dw as q,bm as C,bq as E,du as K,bs as y,dv as w,cG as T,bo as _,cC as U,cB as V}from"./index-DjGKlDpc.js";var I="Radio",[z,P]=_(I),[H,W]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(c,h=>m(h)),u=s.useRef(!1),b=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(C.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:y(t.onClick,h=>{e||f?.(),b&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),b&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var G="RadioIndicator",g=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(G,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(C.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});g.displayName=G;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(C.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x="RadioGroup",[J]=_(x,[w,P]),j=w(),N=P(),[Q,Z]=J(x),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=F(R),[b,h]=L({prop:r,defaultProp:e??null,onChange:p,caller:x});return d.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:b,onValueChange:h,children:d.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(C.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=x;var M="RadioGroupItem",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=b=>{Y.includes(b.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:y(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:y(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",B=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(g,{...e,...n,ref:c})});B.displayName=$;var oe=D,re=O,te=B;export{re as I,oe as R,te as a};