decocms 4.344.7 → 4.345.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/client/assets/{AlertCircle-CUcQGJWg.js → AlertCircle-piOaFPQJ.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Bjc6phYY.js → AreaChart-C754kxxt.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CSPpZjix.js → ArrowLeft-EySzpaMt.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CpVx9ViU.js → ArrowRight-CN1prjjJ.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DSGIlxLY.js → ArrowUp-39D5k7I2.js} +1 -1
  6. package/dist/client/assets/{Check-1zXE7wWA.js → Check-CmgBwUGv.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DgtK-Ftc.js → CheckCircle-CwJqWx0e.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DprZKKxq.js → ChevronRight-Dk9nR_C7.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-Bva6hXFn.js → ChevronSelectorVertical-X68ci9mX.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DwjhbMCo.js → ChevronUp-DLLvYK07.js} +1 -1
  11. package/dist/client/assets/{Copy01-BVJCFNfp.js → Copy01-DlxhdgMn.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-DJQ89VL7.js → CreditCard01-CGG5tsm6.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-B1zgMGCf.js → DotsVertical-Bk31Y8qH.js} +1 -1
  14. package/dist/client/assets/{Download01-d7QlNeIi.js → Download01-CxTJDArl.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-DjQRwN1B.js → ErrorBarContext-DAIYWYhf.js} +1 -1
  16. package/dist/client/assets/{Eye-sLXfRAsu.js → Eye-UEYlbIHb.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-Cevd7IY5.js → GitBranch01-DRT2X7Dj.js} +1 -1
  18. package/dist/client/assets/{Globe01-YMmGLMrH.js → Globe01-Z6BbST4r.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CBNkuV5p.js → HardDrive--vlQvWpi.js} +1 -1
  20. package/dist/client/assets/{Image01-_jew13y9.js → Image01-rCxXluf6.js} +1 -1
  21. package/dist/client/assets/{Key01-DxL7RaRt.js → Key01-By90Yq6k.js} +1 -1
  22. package/dist/client/assets/{Link01-BsnNRJbd.js → Link01-CUe3c6G0.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-CHynaVJX.js → LinkExternal01-D2pSy7v4.js} +1 -1
  24. package/dist/client/assets/{Monitor01-D384tcCL.js → Monitor01-CY2DbFkD.js} +1 -1
  25. package/dist/client/assets/{Package-CICmKbed.js → Package-Bb4KYw9O.js} +1 -1
  26. package/dist/client/assets/{Palette-C3wV8GbF.js → Palette-o-NEtwsW.js} +1 -1
  27. package/dist/client/assets/{Play-DyY4uqsk.js → Play-DpmIDjD8.js} +1 -1
  28. package/dist/client/assets/{Plus-BtzuFXpa.js → Plus-CgVmxzR4.js} +1 -1
  29. package/dist/client/assets/{SearchMd-RzdqOTz6.js → SearchMd-Cjr4mqh9.js} +1 -1
  30. package/dist/client/assets/{Sector-BbXsKxpS.js → Sector-3UpSGQVE.js} +1 -1
  31. package/dist/client/assets/{Settings02-Czze_bb5.js → Settings02-Dss_LnvC.js} +1 -1
  32. package/dist/client/assets/{Share07-DDpIIfsq.js → Share07-CgTNZ1dk.js} +1 -1
  33. package/dist/client/assets/{Shield01-B4pGOGci.js → Shield01-CNbrlPDI.js} +1 -1
  34. package/dist/client/assets/{Stars01-CjHCSDX3.js → Stars01-Dno5l14o.js} +1 -1
  35. package/dist/client/assets/{Sun-Dq3o46U_.js → Sun-DAVD-A5B.js} +1 -1
  36. package/dist/client/assets/{Tool01-DVKwxNl0.js → Tool01-DdmZi7j_.js} +1 -1
  37. package/dist/client/assets/{Tool02-DDmfltgM.js → Tool02-KStnzngn.js} +1 -1
  38. package/dist/client/assets/{Trash01-LsgvHH60.js → Trash01-BevWobXU.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-DioIZ0XZ.js → TrendUp01-NTK3Zf_M.js} +1 -1
  40. package/dist/client/assets/{Upload01-9qmJgRWz.js → Upload01-By19QANP.js} +1 -1
  41. package/dist/client/assets/{User01-AzXDuWJx.js → User01-CDRv3_oY.js} +1 -1
  42. package/dist/client/assets/{UserSquare-BVL5WuNS.js → UserSquare-l4Q5fPEZ.js} +1 -1
  43. package/dist/client/assets/{Users01-twdbMWRY.js → Users01-sAr72jTU.js} +1 -1
  44. package/dist/client/assets/{Users03-B9ZuJ2UL.js → Users03-CrZajyAo.js} +1 -1
  45. package/dist/client/assets/{XCircle-BCL9MwCk.js → XCircle-BTj4-tdv.js} +1 -1
  46. package/dist/client/assets/{XClose-CeiPTewB.js → XClose-C-bbcgCJ.js} +1 -1
  47. package/dist/client/assets/{Zap-CKLZSOSt.js → Zap-D6-O3NZl.js} +1 -1
  48. package/dist/client/assets/{ZoomOut-BIvjfxkI.js → ZoomOut-DpAkOD8e.js} +1 -1
  49. package/dist/client/assets/{access-gate-Co7Qfch9.js → access-gate-DQan09qj.js} +1 -1
  50. package/dist/client/assets/{agent-icon-BpEwOiGV.js → agent-icon-BrQLA9dC.js} +1 -1
  51. package/dist/client/assets/{agents-list-Cwvzogc_.js → agents-list-BIlHhg8F.js} +1 -1
  52. package/dist/client/assets/{ai-providers-DxCToBOI.js → ai-providers-D9jubp2s.js} +1 -1
  53. package/dist/client/assets/{alert-C2fyV676.js → alert-DI_JsgmI.js} +1 -1
  54. package/dist/client/assets/{alert-dialog-DNgGWz87.js → alert-dialog-DuVJ7GC7.js} +1 -1
  55. package/dist/client/assets/{analytics-tab-PHu6l59L.js → analytics-tab-gxTnWc1L.js} +1 -1
  56. package/dist/client/assets/{api-keys-BhwK48l0.js → api-keys-BJORgq17.js} +1 -1
  57. package/dist/client/assets/api-keys-DM-VC8Ks.js +1 -0
  58. package/dist/client/assets/app-editor-ueQwisxj.js +1 -0
  59. package/dist/client/assets/{auth-Dgy_FfAZ.js → auth-CRmM4ftp.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-ekkwg0sn.js → auth-catchall-D9f22qVk.js} +1 -1
  61. package/dist/client/assets/{auth-entry-CIwP8Rqn.js → auth-entry-Z1av5utg.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-inykjGhF.js → auth-split-layout-Dhyl4Mok.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-CHh3ra8X.js → authenticate-and-persist-oauth-DEZCdj-t.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-BZVMG0s5.js → automation-list-row-CJo0GDE_.js} +1 -1
  65. package/dist/client/assets/{automation-runs-DuP-wdLK.js → automation-runs-Ge9BW9cQ.js} +1 -1
  66. package/dist/client/assets/{automations-Bi1i3HXW.js → automations-AOZDTTBB.js} +1 -1
  67. package/dist/client/assets/{autosend-DQFcN1uS.js → autosend-CI7ToXd3.js} +1 -1
  68. package/dist/client/assets/{avatar-p5OetRNi.js → avatar-ncVfbaUx.js} +1 -1
  69. package/dist/client/assets/{badge-DpkiDIOC.js → badge-rtLQpibV.js} +1 -1
  70. package/dist/client/assets/{block-document-DobdtgLr.js → block-document-WxPy4zHY.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-C8vZ3frM.js → breadcrumb-d7wNqsyt.js} +1 -1
  72. package/dist/client/assets/{buckets-Dr-obDzL.js → buckets-NBI_IEuj.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-BD6uCEcf.js → bulk-category-panel-B8uZmKXZ.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-DzIqZGl0.js → capability-load-error-BAq8tXOS.js} +1 -1
  75. package/dist/client/assets/{cards-Bzy1Xtvb.js → cards-CgpdHb-U.js} +1 -1
  76. package/dist/client/assets/{category-editor-DERpB4vz.js → category-editor-DrNCa6L7.js} +1 -1
  77. package/dist/client/assets/{cdn-tab-C9cGMfIc.js → cdn-tab-BflNT2VL.js} +1 -1
  78. package/dist/client/assets/{chart-rcdPf4fQ.js → chart-C7j_btUB.js} +1 -1
  79. package/dist/client/assets/{chat-context-avJOfrtu.js → chat-context-BcY08VKG.js} +1 -1
  80. package/dist/client/assets/{checkbox-D9o3_hf-.js → checkbox-D0oTwa58.js} +1 -1
  81. package/dist/client/assets/{choose-editor-Cx_Q-V5I.js → choose-editor-B2cOrwQv.js} +1 -1
  82. package/dist/client/assets/{cli-auth-success-BD12raYd.js → cli-auth-success-G8Y4SVGK.js} +1 -1
  83. package/dist/client/assets/{client-icons-BgRgSWI4.js → client-icons-BE3evb-i.js} +1 -1
  84. package/dist/client/assets/{collection-detail-DHMLnwRz.js → collection-detail-DCICjiwT.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-D7uyuLOA.js → collection-display-button-C4HtW9B5.js} +1 -1
  86. package/dist/client/assets/{collection-search-Dn7QEyUJ.js → collection-search-UW0xDxmi.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-apDDwogq.js → collection-table-wrapper-STLb6VjQ.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-5dU7fGdE.js → collection-tabs-644rp01A.js} +1 -1
  89. package/dist/client/assets/{command-CENaHYOX.js → command-CTH7s7Ya.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-CyPVgfTY.js → commerce-onboarding-CxUaxjg3.js} +1 -1
  91. package/dist/client/assets/{connect-2lJ0CWwS.js → connect-DEIsBWg2.js} +1 -1
  92. package/dist/client/assets/{connect-layout-DHtZKhj-.js → connect-layout-CmuGJ6zd.js} +1 -1
  93. package/dist/client/assets/{connection-BXj1lf6L.js → connection-CU1s53fy.js} +1 -1
  94. package/dist/client/assets/{connection-card-xtbTrH0z.js → connection-card-B-DQLE2m.js} +1 -1
  95. package/dist/client/assets/{connection-detail-_tAXd69l.js → connection-detail-C3OYxb5o.js} +1 -1
  96. package/dist/client/assets/{connection-form-helpers-DbWPqpmc.js → connection-form-helpers-B-auMXZc.js} +1 -1
  97. package/dist/client/assets/{connections-LDx4JE2z.js → connections-DPnFX966.js} +1 -1
  98. package/dist/client/assets/{create-organization-dialog-CkEoogzg.js → create-organization-dialog-xnwS5290.js} +1 -1
  99. package/dist/client/assets/{decopilot-sse-pool-DIjPP0nf.js → decopilot-sse-pool-CnHcYfZj.js} +1 -1
  100. package/dist/client/assets/{dialog-BGZ5Hg3Q.js → dialog-DKxWMb0-.js} +1 -1
  101. package/dist/client/assets/{domain-settings-Co45KpqJ.js → domain-settings-yEjTU5K7.js} +1 -1
  102. package/dist/client/assets/{drawer-3JQ45fRR.js → drawer-BaA_lu4x.js} +1 -1
  103. package/dist/client/assets/{dropdown-menu-CTqjAJHc.js → dropdown-menu-CC8IMYtS.js} +1 -1
  104. package/dist/client/assets/{e2e-tab-CVeKwP0K.js → e2e-tab-CyxfrSC2.js} +1 -1
  105. package/dist/client/assets/{editor-yboX_q5K.js → editor-Cm-sI42p.js} +1 -1
  106. package/dist/client/assets/{empty-state-BlkGmg_f.js → empty-state-BioEMyZp.js} +1 -1
  107. package/dist/client/assets/{empty-state-DNkmU35f.js → empty-state-DA8cnNqW.js} +1 -1
  108. package/dist/client/assets/{extract-connection-data-C6uzSv1P.js → extract-connection-data-BdnZZmxw.js} +1 -1
  109. package/dist/client/assets/{file-explorer-BLjo6fOf.js → file-explorer-jXzlywVk.js} +1 -1
  110. package/dist/client/assets/{file-type-icon-BLgP8JAi.js → file-type-icon-ChIQfzaN.js} +1 -1
  111. package/dist/client/assets/{folder-icon-75w1BOQR.js → folder-icon-_4CbErMC.js} +1 -1
  112. package/dist/client/assets/{form-BQfZ_wMX.js → form-CorLMse0.js} +1 -1
  113. package/dist/client/assets/{general-CEPG7r1N.js → general-BCDanvgJ.js} +1 -1
  114. package/dist/client/assets/{github-icon-BfYLFe-E.js → github-icon-CeFWgmVz.js} +1 -1
  115. package/dist/client/assets/{hooks-Dtkl47gt.js → hooks-BOHEAk9Y.js} +1 -1
  116. package/dist/client/assets/{hosting-tab-DA0OMdEY.js → hosting-tab-BktIiwOH.js} +1 -1
  117. package/dist/client/assets/{index-A8aKaNa1.js → index-B8l7Wp2b.js} +1 -1
  118. package/dist/client/assets/{index-qHW_5WLU.js → index-BAPa6G_8.js} +1 -1
  119. package/dist/client/assets/{index-C6TPg4UC.js → index-BlP07NoC.js} +6 -6
  120. package/dist/client/assets/{index-C7-k65cq.js → index-BrCtIPlH.js} +1 -1
  121. package/dist/client/assets/{index-CZn7QLbC.js → index-CYWX8R5H.js} +1 -1
  122. package/dist/client/assets/{index-aGsG7oyA.js → index-D0wjsDWq.js} +1 -1
  123. package/dist/client/assets/{index-HrCtDpMK.js → index-ObIlqSDZ.js} +1 -1
  124. package/dist/client/assets/{index-DwEbGAs2.js → index-YZeWKaou.js} +1 -1
  125. package/dist/client/assets/{index-CFc50fBU.js → index-fS0pDoNW.js} +4 -4
  126. package/dist/client/assets/{index-redirect-Cr7P0vqQ.js → index-redirect-CfbLeyNL.js} +1 -1
  127. package/dist/client/assets/{index-Dr4MBhJ_.js → index-w12TFwlK.js} +1 -1
  128. package/dist/client/assets/{infiniteQueryObserver-C2474thX.js → infiniteQueryObserver-B62setNi.js} +1 -1
  129. package/dist/client/assets/{infra-billing-BmtbdCGi.js → infra-billing-BtMbkXjN.js} +1 -1
  130. package/dist/client/assets/{input-DzyddHML.js → input-DaMV0yqT.js} +1 -1
  131. package/dist/client/assets/{integration-icon-CBipnYKk.js → integration-icon-BFx8Gs71.js} +1 -1
  132. package/dist/client/assets/{invite-member-dialog-CR-r4ixW.js → invite-member-dialog-erQjr6Dv.js} +1 -1
  133. package/dist/client/assets/{label-BNKcfQJl.js → label-Cznjg7Mb.js} +1 -1
  134. package/dist/client/assets/{layout-DFxnRLE_.js → layout-CwmaRw9Y.js} +1 -1
  135. package/dist/client/assets/{login-BP4-jfy7.js → login-DYTFtcpb.js} +1 -1
  136. package/dist/client/assets/{markdown-CtZT5hKm.js → markdown-BNMHtGi6.js} +1 -1
  137. package/dist/client/assets/{mcp-app-renderer-CCUBqyqA.js → mcp-app-renderer-Df-LUzfK.js} +1 -1
  138. package/dist/client/assets/{mcp-oauth-DZRe9Xrr.js → mcp-oauth-CDjOqnrq.js} +1 -1
  139. package/dist/client/assets/{members-DopbgyyL.js → members-s02j5DFH.js} +1 -1
  140. package/dist/client/assets/{monaco-editor-DS9r540U.js → monaco-editor-7CBGfDCH.js} +1 -1
  141. package/dist/client/assets/{monitoring-stats-row-CI8-MHz1.js → monitoring-stats-row-CO2-hLq6.js} +1 -1
  142. package/dist/client/assets/{multi-select-BAWuWZsA.js → multi-select-D1MP7iDa.js} +1 -1
  143. package/dist/client/assets/{oauth-callback-ai-provider-BpnHSb_f.js → oauth-callback-ai-provider-Ce5MHp3r.js} +1 -1
  144. package/dist/client/assets/{oauth-callback-CRBq17FH.js → oauth-callback-t2WmO9-v.js} +1 -1
  145. package/dist/client/assets/{onboarding-CDIl2VPN.js → onboarding-Dg8pqQh4.js} +1 -1
  146. package/dist/client/assets/{org-layout-UBcPgsMB.js → org-layout-dq0fDq-h.js} +1 -1
  147. package/dist/client/assets/{organization-choice-DL8LmN_P.js → organization-choice-Bnr-wpFe.js} +1 -1
  148. package/dist/client/assets/{orgs-rQ-2EkJt.js → orgs-DJfci181.js} +1 -1
  149. package/dist/client/assets/{page-seo-form-BqNS5DgU.js → page-seo-form-B1ADwpo8.js} +1 -1
  150. package/dist/client/assets/{popover-BBlLuKf7.js → popover-sPMAt4On.js} +1 -1
  151. package/dist/client/assets/{post-calendar-BD_Aoold.js → post-calendar-B4Z9Jz7b.js} +1 -1
  152. package/dist/client/assets/{post-editor-1A12IdOK.js → post-editor-CcXinFIi.js} +1 -1
  153. package/dist/client/assets/{primitives-iFjsEhaw.js → primitives-CGxQwrae.js} +1 -1
  154. package/dist/client/assets/{profile-DgSLrn8k.js → profile-C9bBchUu.js} +1 -1
  155. package/dist/client/assets/{project-app-view-79YOW9gG.js → project-app-view-DudFJRxH.js} +1 -1
  156. package/dist/client/assets/{project-icon-BY6IQTkk.js → project-icon-DD8-TjG9.js} +1 -1
  157. package/dist/client/assets/{prompts-DMZfJhvl.js → prompts-CAxx1TcH.js} +1 -1
  158. package/dist/client/assets/record-editor-CQ7QMoAf.js +1 -0
  159. package/dist/client/assets/redirect-editor-B68PccpU.js +1 -0
  160. package/dist/client/assets/registry-CWd0I8mg.js +2 -0
  161. package/dist/client/assets/{registry-layout-BZ5XxgHX.js → registry-layout-Bcal-jx7.js} +1 -1
  162. package/dist/client/assets/{reports-CPPm416A.js → reports-BbDmvyvn.js} +1 -1
  163. package/dist/client/assets/{repositories-XRBoZAlQ.js → repositories-DoZh9xWv.js} +1 -1
  164. package/dist/client/assets/{repository-import-picker-RSPbbE4k.js → repository-import-picker-TTmQRKgM.js} +1 -1
  165. package/dist/client/assets/{repository-picker-biyctM_B.js → repository-picker-Be7NfZEA.js} +1 -1
  166. package/dist/client/assets/{require-capability-BRFbNz3Q.js → require-capability-q7uVdBbT.js} +1 -1
  167. package/dist/client/assets/{required-auth-layout-B9X15pWP.js → required-auth-layout-CR5eG3sF.js} +1 -1
  168. package/dist/client/assets/{reset-password-BEQWew2k.js → reset-password-DnIxE4MM.js} +1 -1
  169. package/dist/client/assets/{review-settings-B8jUIsy8.js → review-settings-Bit87Ep6.js} +1 -1
  170. package/dist/client/assets/roles-CYck8jTX.js +1 -0
  171. package/dist/client/assets/{schema-D92LbIMM.js → schema-CVS6b6X8.js} +1 -1
  172. package/dist/client/assets/{scroll-area-B-ln5xLH.js → scroll-area-DIJ4XfEc.js} +1 -1
  173. package/dist/client/assets/{search-input-D9YW35Vs.js → search-input-BN_fecvo.js} +1 -1
  174. package/dist/client/assets/{secrets-BloGTEAu.js → secrets-Dr0vdQ4d.js} +1 -1
  175. package/dist/client/assets/{sections-editor-BZEfeGQC.js → sections-editor-BsuMEuNO.js} +1 -1
  176. package/dist/client/assets/{select-BaouCTwA.js → select-BJ0Gkkka.js} +1 -1
  177. package/dist/client/assets/{select-model-HYeKeaT4.js → select-model-D8CTPoiO.js} +1 -1
  178. package/dist/client/assets/{self-tool-result-BbupoY5Z.js → self-tool-result-KOheC4HD.js} +1 -1
  179. package/dist/client/assets/{seo-editor-FnjL-Vzx.js → seo-editor-CSFxllkC.js} +1 -1
  180. package/dist/client/assets/settings-layout-DyOsDVbj.js +1 -0
  181. package/dist/client/assets/{settings-sidebar-z3qYuGo6.js → settings-sidebar-C_Tz8rbX.js} +1 -1
  182. package/dist/client/assets/{shell-controls-CfSHSeBw.js → shell-controls-5f0FnXKd.js} +1 -1
  183. package/dist/client/assets/{shell-layout-eEmjDldg.js → shell-layout-D-M6_Jkf.js} +1 -1
  184. package/dist/client/assets/{skill-preview-D76FKEy1.js → skill-preview-5YIvamOb.js} +1 -1
  185. package/dist/client/assets/{skills-CXrKoyD0.js → skills-DMmhWXLy.js} +1 -1
  186. package/dist/client/assets/{sso-D310rMfh.js → sso-nVCDDH4k.js} +1 -1
  187. package/dist/client/assets/{store-BDrmnwCb.js → store-LfRhnjNM.js} +1 -1
  188. package/dist/client/assets/store-registry-D-puuJzT.js +2 -0
  189. package/dist/client/assets/{switch-Caly0pjz.js → switch-C0tiHttS.js} +1 -1
  190. package/dist/client/assets/{synced-repos-BuP48XMW.js → synced-repos-D5wTALWx.js} +1 -1
  191. package/dist/client/assets/{table-CJqB3MCP.js → table-D4dLAB1m.js} +1 -1
  192. package/dist/client/assets/{tabs-BZq41GwT.js → tabs-CDFENeRa.js} +1 -1
  193. package/dist/client/assets/{task-board-3nbsbA9F.js → task-board-B4aUIKJI.js} +1 -1
  194. package/dist/client/assets/{task-route-CxNYrjWE.js → task-route-BUYfM-Mq.js} +1 -1
  195. package/dist/client/assets/tasks-COtpdI-R.js +1 -0
  196. package/dist/client/assets/{textarea-Bt1l-v-4.js → textarea-DIJRp6Ds.js} +1 -1
  197. package/dist/client/assets/{thread-intent-Dvv1EpiP.js → thread-intent-DK53ivxy.js} +1 -1
  198. package/dist/client/assets/{thread-route-CvNO1pt5.js → thread-route-m3qiCJQP.js} +1 -1
  199. package/dist/client/assets/{toggle-group-BIHRiejF.js → toggle-group-BSxkMDRS.js} +1 -1
  200. package/dist/client/assets/{toolbar-wrA0hnju.js → toolbar-DQ2YVpXF.js} +1 -1
  201. package/dist/client/assets/{toolbar-icon-button-HUU3DeDv.js → toolbar-icon-button-DeXrhkGe.js} +1 -1
  202. package/dist/client/assets/{track-BFy8EZMU.js → track-J__dE1p5.js} +1 -1
  203. package/dist/client/assets/{types-BbudkrCP.js → types-C9oYptqr.js} +1 -1
  204. package/dist/client/assets/{use-ai-providers-CygbvKpH.js → use-ai-providers-DMdw1ZKm.js} +1 -1
  205. package/dist/client/assets/{use-automations-Dq9Ujnel.js → use-automations-BrJQYtfT.js} +1 -1
  206. package/dist/client/assets/{use-autosave-D-Inw3HB.js → use-autosave-DXppOUIw.js} +1 -1
  207. package/dist/client/assets/{use-connection-De6kXusM.js → use-connection-DueV7Dd9.js} +1 -1
  208. package/dist/client/assets/{use-copy-CVL8ezCn.js → use-copy-DsM8BkMO.js} +1 -1
  209. package/dist/client/assets/{use-create-virtual-mcp-R1xLoNkw.js → use-create-virtual-mcp-CXxjUZ5c.js} +1 -1
  210. package/dist/client/assets/{use-date-fns-locale-DaHZoCLk.js → use-date-fns-locale-I1vziWnN.js} +1 -1
  211. package/dist/client/assets/{use-debounced-autosave-BMhSKDju.js → use-debounced-autosave-Bep9W3RF.js} +1 -1
  212. package/dist/client/assets/{use-debounced-value-D0HOX65a.js → use-debounced-value-CjFrELYP.js} +1 -1
  213. package/dist/client/assets/{use-decopilot-events-CayI0kWz.js → use-decopilot-events-BxzD46W5.js} +1 -1
  214. package/dist/client/assets/{use-delete-connection-CnWS9tSJ.js → use-delete-connection-BBL_RJLP.js} +1 -1
  215. package/dist/client/assets/{use-deployment-admin-BmIOGiCV.js → use-deployment-admin--_f948uh.js} +1 -1
  216. package/dist/client/assets/{use-destination-route-CSS03xNU.js → use-destination-route-WysfeR7S.js} +1 -1
  217. package/dist/client/assets/{use-file-configs-U1N7vmMJ.js → use-file-configs-BByTBhTa.js} +1 -1
  218. package/dist/client/assets/{use-infinite-scroll-BxDzsK0q.js → use-infinite-scroll-p1RdGJsc.js} +1 -1
  219. package/dist/client/assets/{use-join-requests-BfxTPvq1.js → use-join-requests-D9qT6ziM.js} +1 -1
  220. package/dist/client/assets/{use-mcp-auth-status-Dzn7LvyX.js → use-mcp-auth-status-CTnEpyYI.js} +1 -1
  221. package/dist/client/assets/{use-mcp-client-BSfC7B4l.js → use-mcp-client-DtsRGdvB.js} +1 -1
  222. package/dist/client/assets/{use-mcp-prompts-QVLv6nAF.js → use-mcp-prompts-CD_IWJeZ.js} +1 -1
  223. package/dist/client/assets/{use-mcp-tools-BsEArfgg.js → use-mcp-tools-BKHgcAxL.js} +1 -1
  224. package/dist/client/assets/{use-members-wJ4JxWh4.js → use-members-NWhv5vIl.js} +1 -1
  225. package/dist/client/assets/{use-navigate-to-agent-CP-K3KIR.js → use-navigate-to-agent-Bnmnhqje.js} +1 -1
  226. package/dist/client/assets/{use-org-auth-client-DWK2XwV1.js → use-org-auth-client-CShcDth4.js} +1 -1
  227. package/dist/client/assets/{use-org-notice-B5aH6jEO.js → use-org-notice-B64MrAd9.js} +1 -1
  228. package/dist/client/assets/{use-org-sso-C-CIgBnX.js → use-org-sso-DzsFzLff.js} +1 -1
  229. package/dist/client/assets/{use-organization-roles-BB-gdlQ0.js → use-organization-roles-7PFmB_rs.js} +1 -1
  230. package/dist/client/assets/{use-organization-settings-BL3ZQVJG.js → use-organization-settings-nKtEvYQd.js} +1 -1
  231. package/dist/client/assets/{use-panel-navigate-DtIO2LK2.js → use-panel-navigate-BNmxrdjd.js} +1 -1
  232. package/dist/client/assets/{use-registry-connections-Chb8MZQ9.js → use-registry-connections-Bb6pjxJh.js} +1 -1
  233. package/dist/client/assets/{use-secrets-bCQiMi0L.js → use-secrets-CTUki73i.js} +1 -1
  234. package/dist/client/assets/{use-section-preview-base-DylvTrFU.js → use-section-preview-base-BHSNiN-i.js} +1 -1
  235. package/dist/client/assets/{use-status-sounds-DlTpiOV2.js → use-status-sounds-k-y4u-Dp.js} +1 -1
  236. package/dist/client/assets/{use-tags-3pJUBLb_.js → use-tags-BOUHc_F8.js} +1 -1
  237. package/dist/client/assets/{use-view-mode-054OP7Xj.js → use-view-mode-4DXLgMpz.js} +1 -1
  238. package/dist/client/assets/{use-virtual-mcp-DZn4-6Z9.js → use-virtual-mcp-C5Zt0ewM.js} +1 -1
  239. package/dist/client/assets/useInfiniteQuery-CU7gRlof.js +1 -0
  240. package/dist/client/assets/useSuspenseInfiniteQuery-rXQ07VfR.js +1 -0
  241. package/dist/client/assets/{users-ClG9LEpP.js → users-DRzgVGBP.js} +1 -1
  242. package/dist/client/assets/{variant-calendar-a4eYe0no.js → variant-calendar-TLlf4rAo.js} +1 -1
  243. package/dist/client/assets/{view-mode-toggle-CmvSb5ck.js → view-mode-toggle-CZECgOYC.js} +1 -1
  244. package/dist/client/index.html +1 -1
  245. package/dist/server/cli.js +606 -606
  246. package/dist/server/server.js +395 -395
  247. package/package.json +1 -1
  248. package/dist/client/assets/api-keys-Bc76I_rG.js +0 -1
  249. package/dist/client/assets/app-editor-U_AVP6OL.js +0 -1
  250. package/dist/client/assets/record-editor-BcCUO4IF.js +0 -1
  251. package/dist/client/assets/redirect-editor-L5GxxHxY.js +0 -1
  252. package/dist/client/assets/registry-CBnPiUVh.js +0 -2
  253. package/dist/client/assets/roles-DHyBcYNG.js +0 -1
  254. package/dist/client/assets/settings-layout-DBS_ejWk.js +0 -1
  255. package/dist/client/assets/store-registry-BKZeS0UB.js +0 -2
  256. package/dist/client/assets/tasks-BcAM9xVw.js +0 -1
  257. package/dist/client/assets/useInfiniteQuery-Uy7lOi7c.js +0 -1
  258. package/dist/client/assets/useSuspenseInfiniteQuery-BvETpOBx.js +0 -1
@@ -1 +1 @@
1
- import{c as m,m as g,bD as E,K as S,G as U,d as $,n as D,a as K,y as H}from"./index-CFc50fBU.js";import{D as O}from"./use-destination-route-CSS03xNU.js";import{d as Q,g as M}from"./use-virtual-mcp-DZn4-6Z9.js";import{a as V}from"./hooks-Dtkl47gt.js";import{p as j,d as P,w as z}from"./thread-intent-Dvv1EpiP.js";import{h as C,b as _,g as B,r as Y}from"./github-repo-CTPv5ZM2.js";function F(t,e){if(!e)return!0;if(t.partial)return!1;const n=j(t.metadata?.runtime);return n===null||n===e}function y(t,e,n,a,s,o){let r=null;for(const i of t)i.virtual_mcp_id===e&&i.created_by===n&&(i.hidden||F(i,a)&&(s&&(!i.branch||!s.has(i.branch))||o&&i.branch===o||(!r||i.updated_at>r.updated_at)&&(r=i)));return r}function J(t,e,n,a){return t.find(s=>!s.hidden&&s.virtual_mcp_id===e&&s.created_by===n&&s.title==="New chat"&&!s.harness_id&&F(s,a))}function W(t,e,n,a,s,o){if(!s)return y(t,e,n,a)??void 0;if(o?.draftsMode)return y(t,e,n,a,void 0,o?.baseBranch)??void 0;const r=o?.knownBranches;return(r&&r.size>0?y(t,e,n,a,r)??void 0:void 0)??y(t,e,n,a)??J(t,e,n,a)}const X=6e4,q=3e4;function N(t){return{number:t.number,title:t.title,body:t.body,state:t.state==="open"?"open":"closed",merged:t.state==="merged",mergedAt:t.mergedAt,base:t.base,head:t.head,headSha:t.headSha,headRepoFullName:t.headRepoPath,htmlUrl:t.url,author:t.author,changedFiles:t.changedFiles}}function Z(t){return{id:t.id,name:t.name,status:t.state==="running"?"in_progress":t.state,conclusion:t.conclusion,htmlUrl:t.url??"",durationMs:t.durationMs}}function w(t){const{orgSlug:e,target:n,owner:a,repo:s,branch:o}=t;return{queryKey:S.githubPrState(e,_(n),a,s,o),queryFn:()=>E(e,"CHANGE_REQUEST_STATE",{...n,branch:o}),enabled:!!o&&C(n)&&!!a&&!!s,refetchInterval:X,refetchIntervalInBackground:!1,staleTime:q}}function x(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:I},e[2]=n,e[3]=a):a=e[3],g(a)}function I(t){return t.changeRequest?N(t.changeRequest):null}function ye(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:ee},e[2]=n,e[3]=a):a=e[3],g(a)}function ee(t){return t.changeRequest?.state==="open"?t.changeRequest.checkRuns.map(Z):[]}function Ee(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:te},e[2]=n,e[3]=a):a=e[3],g(a)}function te(t){return(t.changeRequest?.comments??[]).map(ne)}function ne(t){return{id:t.id,author:t.author,body:t.body,createdAt:t.createdAt,htmlUrl:t.url}}const ae=5*6e4;function Se(t){const e=m.c(20),{orgSlug:n,target:a,owner:s,repo:o,base:r}=t;let i;e[0]!==r||e[1]!==n||e[2]!==s||e[3]!==o||e[4]!==a?(i=S.githubLastPublishedPr(n,_(a),s,o,r),e[0]=r,e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=i):i=e[5];let u;e[6]!==r||e[7]!==n||e[8]!==a?(u=()=>E(n,"CHANGE_REQUEST_LAST_MERGED",{...a,base:r}),e[6]=r,e[7]=n,e[8]=a,e[9]=u):u=e[9];let l;e[10]!==t.enabled||e[11]!==r||e[12]!==s||e[13]!==o||e[14]!==a?(l=(t.enabled??!0)&&!!r&&C(a)&&!!s&&!!o,e[10]=t.enabled,e[11]=r,e[12]=s,e[13]=o,e[14]=a,e[15]=l):l=e[15];let c;return e[16]!==i||e[17]!==u||e[18]!==l?(c={queryKey:i,queryFn:u,enabled:l,staleTime:ae,select:re},e[16]=i,e[17]=u,e[18]=l,e[19]=c):c=e[19],g(c)}function re(t){return t.changeRequest?N(t.changeRequest):null}const se=50;function _e(t){const e=m.c(17),{orgSlug:n,target:a,owner:s,repo:o}=t;let r;e[0]!==n||e[1]!==s||e[2]!==o||e[3]!==a?(r=S.githubOpenPrs(n,_(a),s,o),e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=r):r=e[4];let i;e[5]!==n||e[6]!==a?(i=()=>E(n,"CHANGE_REQUEST_LIST_OPEN",{...a,limit:se}),e[5]=n,e[6]=a,e[7]=i):i=e[7];let u;e[8]!==t.enabled||e[9]!==s||e[10]!==o||e[11]!==a?(u=(t.enabled??!0)&&C(a)&&!!s&&!!o,e[8]=t.enabled,e[9]=s,e[10]=o,e[11]=a,e[12]=u):u=e[12];let l;return e[13]!==r||e[14]!==i||e[15]!==u?(l={queryKey:r,queryFn:i,enabled:u,staleTime:q,select:oe},e[13]=r,e[14]=i,e[15]=u,e[16]=l):l=e[16],g(l)}function oe(t){return t.changeRequests.map(N)}function Re(t){const e=m.c(14),{orgSlug:n,target:a,owner:s,repo:o,checkRunId:r}=t;let i;e[0]!==r||e[1]!==n||e[2]!==s||e[3]!==o||e[4]!==a?(i=S.githubCheckRun(n,_(a),s,o,r),e[0]=r,e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=i):i=e[5];let u;e[6]!==r||e[7]!==n||e[8]!==a?(u=()=>E(n,"CHANGE_REQUEST_CHECK_LOG",{...a,checkId:r}),e[6]=r,e[7]=n,e[8]=a,e[9]=u):u=e[9];const l=t.enabled&&!!r;let c;return e[10]!==i||e[11]!==u||e[12]!==l?(c={queryKey:i,queryFn:u,enabled:l,staleTime:q,select:ie},e[10]=i,e[11]=u,e[12]=l,e[13]=c):c=e[13],g(c)}function ie(t){return{title:null,summary:t.report,text:null}}function ue(t,e){const{org:n}=U(),a=B(t);return x({orgId:n.id,orgSlug:n.slug,target:Y(a),owner:a?.owner??"",repo:a?.name??"",branch:e??null}).data?.base??"main"}function le(t){return t?.metadata?.draftsMode===!0}const ce=[];function Ae(){const t=m.c(13),e=$(),{org:n,locator:a}=U(),s=D(),o=Q(),{data:r}=K.useSession(),i=V(),u=ue(void 0,null);let l;t[0]!==u||t[1]!==o||t[2]!==a||t[3]!==i?.threads||t[4]!==e||t[5]!==n.slug||t[6]!==r?.user?.id?(l=(h,f,p)=>{const d=(o??[]).find(G=>G.id===h),R=!!(d&&B(d)),v=!f?.runtime,k=v?void 0:W(i?.threads.get()??ce,h,r?.user?.id,p??(d?P(d.metadata):void 0),R,{knownBranches:new Set([u,...(d?.metadata?.releases??[]).map(fe)]),draftsMode:le(d),baseBranch:u}),T=v?void 0:k?.id??crypto.randomUUID();T&&!k&&f?.runtime&&z(sessionStorage,a,T,{runtime:f.runtime});const L=T?{thread:T}:{},A=f?.panel?H(f.panel):null;if(!A?.panel){e({to:O.home,params:{org:n.slug},search:{virtualmcpid:h,...L}});return}e({to:O.agents,params:{org:n.slug,panel:A.panel},search:{...A.payload,virtualmcpid:h,...L}})},t[0]=u,t[1]=o,t[2]=a,t[3]=i?.threads,t[4]=e,t[5]=n.slug,t[6]=r?.user?.id,t[7]=l):l=t[7];const c=l;let b;return t[8]!==o||t[9]!==c||t[10]!==n||t[11]!==s?(b=(h,f)=>{const p=o.find(d=>d.id===h);if(f?.runtime)return c(h,f,f.runtime);if(p)return c(h,f,P(p.metadata));M(s,n).then(d=>d.find(R=>R.id===h)).catch(de).then(d=>c(h,f,d?P(d.metadata):void 0))},t[8]=o,t[9]=c,t[10]=n,t[11]=s,t[12]=b):b=t[12],b}function de(){}function fe(t){return t.branch}export{x as a,ye as b,Re as c,Ee as d,Se as e,le as f,_e as g,ue as h,J as i,W as j,w as p,Ae as u};
1
+ import{c as m,m as g,bD as E,K as S,G as U,d as $,n as D,a as K,y as H}from"./index-fS0pDoNW.js";import{D as O}from"./use-destination-route-WysfeR7S.js";import{d as Q,g as M}from"./use-virtual-mcp-C5Zt0ewM.js";import{a as V}from"./hooks-BOHEAk9Y.js";import{p as j,d as P,w as z}from"./thread-intent-DK53ivxy.js";import{h as C,b as _,g as B,r as Y}from"./github-repo-CTPv5ZM2.js";function F(t,e){if(!e)return!0;if(t.partial)return!1;const n=j(t.metadata?.runtime);return n===null||n===e}function y(t,e,n,a,s,o){let r=null;for(const i of t)i.virtual_mcp_id===e&&i.created_by===n&&(i.hidden||F(i,a)&&(s&&(!i.branch||!s.has(i.branch))||o&&i.branch===o||(!r||i.updated_at>r.updated_at)&&(r=i)));return r}function J(t,e,n,a){return t.find(s=>!s.hidden&&s.virtual_mcp_id===e&&s.created_by===n&&s.title==="New chat"&&!s.harness_id&&F(s,a))}function W(t,e,n,a,s,o){if(!s)return y(t,e,n,a)??void 0;if(o?.draftsMode)return y(t,e,n,a,void 0,o?.baseBranch)??void 0;const r=o?.knownBranches;return(r&&r.size>0?y(t,e,n,a,r)??void 0:void 0)??y(t,e,n,a)??J(t,e,n,a)}const X=6e4,q=3e4;function N(t){return{number:t.number,title:t.title,body:t.body,state:t.state==="open"?"open":"closed",merged:t.state==="merged",mergedAt:t.mergedAt,base:t.base,head:t.head,headSha:t.headSha,headRepoFullName:t.headRepoPath,htmlUrl:t.url,author:t.author,changedFiles:t.changedFiles}}function Z(t){return{id:t.id,name:t.name,status:t.state==="running"?"in_progress":t.state,conclusion:t.conclusion,htmlUrl:t.url??"",durationMs:t.durationMs}}function w(t){const{orgSlug:e,target:n,owner:a,repo:s,branch:o}=t;return{queryKey:S.githubPrState(e,_(n),a,s,o),queryFn:()=>E(e,"CHANGE_REQUEST_STATE",{...n,branch:o}),enabled:!!o&&C(n)&&!!a&&!!s,refetchInterval:X,refetchIntervalInBackground:!1,staleTime:q}}function x(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:I},e[2]=n,e[3]=a):a=e[3],g(a)}function I(t){return t.changeRequest?N(t.changeRequest):null}function ye(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:ee},e[2]=n,e[3]=a):a=e[3],g(a)}function ee(t){return t.changeRequest?.state==="open"?t.changeRequest.checkRuns.map(Z):[]}function Ee(t){const e=m.c(4);let n;e[0]!==t?(n=w(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:te},e[2]=n,e[3]=a):a=e[3],g(a)}function te(t){return(t.changeRequest?.comments??[]).map(ne)}function ne(t){return{id:t.id,author:t.author,body:t.body,createdAt:t.createdAt,htmlUrl:t.url}}const ae=5*6e4;function Se(t){const e=m.c(20),{orgSlug:n,target:a,owner:s,repo:o,base:r}=t;let i;e[0]!==r||e[1]!==n||e[2]!==s||e[3]!==o||e[4]!==a?(i=S.githubLastPublishedPr(n,_(a),s,o,r),e[0]=r,e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=i):i=e[5];let u;e[6]!==r||e[7]!==n||e[8]!==a?(u=()=>E(n,"CHANGE_REQUEST_LAST_MERGED",{...a,base:r}),e[6]=r,e[7]=n,e[8]=a,e[9]=u):u=e[9];let l;e[10]!==t.enabled||e[11]!==r||e[12]!==s||e[13]!==o||e[14]!==a?(l=(t.enabled??!0)&&!!r&&C(a)&&!!s&&!!o,e[10]=t.enabled,e[11]=r,e[12]=s,e[13]=o,e[14]=a,e[15]=l):l=e[15];let c;return e[16]!==i||e[17]!==u||e[18]!==l?(c={queryKey:i,queryFn:u,enabled:l,staleTime:ae,select:re},e[16]=i,e[17]=u,e[18]=l,e[19]=c):c=e[19],g(c)}function re(t){return t.changeRequest?N(t.changeRequest):null}const se=50;function _e(t){const e=m.c(17),{orgSlug:n,target:a,owner:s,repo:o}=t;let r;e[0]!==n||e[1]!==s||e[2]!==o||e[3]!==a?(r=S.githubOpenPrs(n,_(a),s,o),e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=r):r=e[4];let i;e[5]!==n||e[6]!==a?(i=()=>E(n,"CHANGE_REQUEST_LIST_OPEN",{...a,limit:se}),e[5]=n,e[6]=a,e[7]=i):i=e[7];let u;e[8]!==t.enabled||e[9]!==s||e[10]!==o||e[11]!==a?(u=(t.enabled??!0)&&C(a)&&!!s&&!!o,e[8]=t.enabled,e[9]=s,e[10]=o,e[11]=a,e[12]=u):u=e[12];let l;return e[13]!==r||e[14]!==i||e[15]!==u?(l={queryKey:r,queryFn:i,enabled:u,staleTime:q,select:oe},e[13]=r,e[14]=i,e[15]=u,e[16]=l):l=e[16],g(l)}function oe(t){return t.changeRequests.map(N)}function Re(t){const e=m.c(14),{orgSlug:n,target:a,owner:s,repo:o,checkRunId:r}=t;let i;e[0]!==r||e[1]!==n||e[2]!==s||e[3]!==o||e[4]!==a?(i=S.githubCheckRun(n,_(a),s,o,r),e[0]=r,e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=i):i=e[5];let u;e[6]!==r||e[7]!==n||e[8]!==a?(u=()=>E(n,"CHANGE_REQUEST_CHECK_LOG",{...a,checkId:r}),e[6]=r,e[7]=n,e[8]=a,e[9]=u):u=e[9];const l=t.enabled&&!!r;let c;return e[10]!==i||e[11]!==u||e[12]!==l?(c={queryKey:i,queryFn:u,enabled:l,staleTime:q,select:ie},e[10]=i,e[11]=u,e[12]=l,e[13]=c):c=e[13],g(c)}function ie(t){return{title:null,summary:t.report,text:null}}function ue(t,e){const{org:n}=U(),a=B(t);return x({orgId:n.id,orgSlug:n.slug,target:Y(a),owner:a?.owner??"",repo:a?.name??"",branch:e??null}).data?.base??"main"}function le(t){return t?.metadata?.draftsMode===!0}const ce=[];function Ae(){const t=m.c(13),e=$(),{org:n,locator:a}=U(),s=D(),o=Q(),{data:r}=K.useSession(),i=V(),u=ue(void 0,null);let l;t[0]!==u||t[1]!==o||t[2]!==a||t[3]!==i?.threads||t[4]!==e||t[5]!==n.slug||t[6]!==r?.user?.id?(l=(h,f,p)=>{const d=(o??[]).find(G=>G.id===h),R=!!(d&&B(d)),v=!f?.runtime,k=v?void 0:W(i?.threads.get()??ce,h,r?.user?.id,p??(d?P(d.metadata):void 0),R,{knownBranches:new Set([u,...(d?.metadata?.releases??[]).map(fe)]),draftsMode:le(d),baseBranch:u}),T=v?void 0:k?.id??crypto.randomUUID();T&&!k&&f?.runtime&&z(sessionStorage,a,T,{runtime:f.runtime});const L=T?{thread:T}:{},A=f?.panel?H(f.panel):null;if(!A?.panel){e({to:O.home,params:{org:n.slug},search:{virtualmcpid:h,...L}});return}e({to:O.agents,params:{org:n.slug,panel:A.panel},search:{...A.payload,virtualmcpid:h,...L}})},t[0]=u,t[1]=o,t[2]=a,t[3]=i?.threads,t[4]=e,t[5]=n.slug,t[6]=r?.user?.id,t[7]=l):l=t[7];const c=l;let b;return t[8]!==o||t[9]!==c||t[10]!==n||t[11]!==s?(b=(h,f)=>{const p=o.find(d=>d.id===h);if(f?.runtime)return c(h,f,f.runtime);if(p)return c(h,f,P(p.metadata));M(s,n).then(d=>d.find(R=>R.id===h)).catch(de).then(d=>c(h,f,d?P(d.metadata):void 0))},t[8]=o,t[9]=c,t[10]=n,t[11]=s,t[12]=b):b=t[12],b}function de(){}function fe(t){return t.branch}export{x as a,ye as b,Re as c,Ee as d,Se as e,le as f,_e as g,ue as h,J as i,W as j,w as p,Ae as u};
@@ -1 +1 @@
1
- import{c as x,G as j,a as i}from"./index-CFc50fBU.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
1
+ import{c as x,G as j,a as i}from"./index-fS0pDoNW.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
@@ -1 +1 @@
1
- import{c as a,m as r,K as l}from"./index-CFc50fBU.js";function y(t){const e=a.c(8);let n;e[0]!==t?(n=l.orgNotice(t??""),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const o=await fetch(`/api/${t}/notice`,{credentials:"include"});return o.ok?(await o.json()).notice??null:null},e[2]=t,e[3]=s):s=e[3];const c=!!t;let i;return e[4]!==n||e[5]!==s||e[6]!==c?(i={queryKey:n,queryFn:s,enabled:c,staleTime:6e4},e[4]=n,e[5]=s,e[6]=c,e[7]=i):i=e[7],r(i)}export{y as u};
1
+ import{c as a,m as r,K as l}from"./index-fS0pDoNW.js";function y(t){const e=a.c(8);let n;e[0]!==t?(n=l.orgNotice(t??""),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const o=await fetch(`/api/${t}/notice`,{credentials:"include"});return o.ok?(await o.json()).notice??null:null},e[2]=t,e[3]=s):s=e[3];const c=!!t;let i;return e[4]!==n||e[5]!==s||e[6]!==c?(i={queryKey:n,queryFn:s,enabled:c,staleTime:6e4},e[4]=n,e[5]=s,e[6]=c,e[7]=i):i=e[7],r(i)}export{y as u};
@@ -1 +1 @@
1
- import{c as u,m as S,n as r,e as y,K as c}from"./index-CFc50fBU.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,h as d,m as u};
1
+ import{c as u,m as S,n as r,e as y,K as c}from"./index-fS0pDoNW.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,h as d,m as u};
@@ -1 +1 @@
1
- import{u as R}from"./use-org-auth-client-DWK2XwV1.js";import{G as b,m as P,K as y}from"./index-CFc50fBU.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
1
+ import{u as R}from"./use-org-auth-client-CShcDth4.js";import{G as b,m as P,K as y}from"./index-fS0pDoNW.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
@@ -1 +1 @@
1
- import{a as h,c as l,G as p,m as E,bD as R,K as T,bu as w,a7 as M,n as N,e as F}from"./index-CFc50fBU.js";import{W as P}from"./constants-Daqiz8AS.js";import{D as z,o as D,a as $}from"./schema-D92LbIMM.js";import{r as U}from"./task-board-3nbsbA9F.js";const b={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null},A={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function O(t,e){return{queryKey:T.organizationSettings(e),queryFn:async()=>{try{return await R(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...b,organizationId:e}}},staleTime:6e4}}function f(t){const e=l.c(6),{org:n}=p();let s;e[0]!==n.id||e[1]!==n.slug?(s=O(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t;let i;return e[3]!==s||e[4]!==o?(i={...s,select:o},e[3]=s,e[4]=o,e[5]=i):i=e[5],E(i)}function j(t,e){const n=l.c(3);let s;n[0]!==t||n[1]!==e?(s=O(e,t),n[0]=t,n[1]=e,n[2]=s):s=n[2];const{data:o}=E(s);return o??null}function S(){const t=l.c(9),{org:e}=p(),n=M(),s=N();let o;t[0]!==e||t[1]!==n?(o=async r=>{const u=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...r});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=n,t[2]=o):o=t[2];let i;t[3]!==e||t[4]!==s?(i=r=>{s.setQueryData(T.organizationSettings(e.id),u=>({...u??b,...r}))},t[3]=e,t[4]=s,t[5]=i):i=t[5];let a;return t[6]!==o||t[7]!==i?(a={mutationFn:o,onSuccess:i},t[6]=o,t[7]=i,t[8]=a):a=t[8],F(a)}function k(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:A}function B(){const{data:t}=f(L);return t??A}function L(t){return k(t.simple_mode)}function V(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({simple_mode:i},a),s=(i,a)=>e.mutateAsync({simple_mode:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function H(){return c("reports_only")}function c(t){const e=l.c(5);let n;e[0]!==t?(n=i=>D(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=f(n);let o;return e[2]!==s||e[3]!==t?(o=s??z.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function G(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function J(){const{data:t}=h.useSession();return G(t?.user?.email)}function X(){const t=l.c(8),{data:e}=h.useSession(),n=w();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||G(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,i=n.hostingControlPlaneGa===!0,a=n.monitorGa===!0,r=c("hosting_enabled"),u=c("deco_analytics_enabled"),C=c("e2e_enabled"),I=c("monitor_enabled"),d=o||i||r,g=o||i||u,_=o||i||C,y=o||a||I;let m;return t[3]!==d||t[4]!==g||t[5]!==_||t[6]!==y?(m={hosting:d,analytics:g,e2e:_,monitor:y},t[3]=d,t[4]=g,t[5]=_,t[6]=y,t[7]=m):m=t[7],m}function tt(){const{data:t}=f(v);return t??!1}function v(t){return $(t.flags)}function et(){const{data:t}=f(x);return t??!0}function x(t){return U(t.flags)}function nt(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a,r)=>e.mutate({flags:{[i]:a}},r),s=(i,a,r)=>e.mutateAsync({flags:{[i]:a}},r),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function K(){const{data:t}=f(Q);return t??null}function Q(t){return t.registry_config}function st(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({registry_config:i},a),s=(i,a)=>e.mutateAsync({registry_config:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function ot(){const t=l.c(5),{org:e}=p(),n=K();let s;t[0]!==e.id?(s=P.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const o=s;let i;return t[2]!==o||t[3]!==n?(i=a=>{if(!n)return a===o;const r=n.registries[a];return r?r.enabled:a===o},t[2]=o,t[3]=n,t[4]=i):i=t[4],i}export{H as a,B as b,et as c,X as d,ot as e,j as f,V as g,K as h,tt as i,nt as j,st as k,J as l,c as u};
1
+ import{a as h,c as l,G as p,m as E,bD as R,K as T,bu as w,a7 as M,n as N,e as F}from"./index-fS0pDoNW.js";import{W as P}from"./constants-Daqiz8AS.js";import{D as z,o as D,a as $}from"./schema-CVS6b6X8.js";import{r as U}from"./task-board-B4aUIKJI.js";const b={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null,flags:null},A={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function O(t,e){return{queryKey:T.organizationSettings(e),queryFn:async()=>{try{return await R(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...b,organizationId:e}}},staleTime:6e4}}function f(t){const e=l.c(6),{org:n}=p();let s;e[0]!==n.id||e[1]!==n.slug?(s=O(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t;let i;return e[3]!==s||e[4]!==o?(i={...s,select:o},e[3]=s,e[4]=o,e[5]=i):i=e[5],E(i)}function j(t,e){const n=l.c(3);let s;n[0]!==t||n[1]!==e?(s=O(e,t),n[0]=t,n[1]=e,n[2]=s):s=n[2];const{data:o}=E(s);return o??null}function S(){const t=l.c(9),{org:e}=p(),n=M(),s=N();let o;t[0]!==e||t[1]!==n?(o=async r=>{const u=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...r});if(!u)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return u},t[0]=e,t[1]=n,t[2]=o):o=t[2];let i;t[3]!==e||t[4]!==s?(i=r=>{s.setQueryData(T.organizationSettings(e.id),u=>({...u??b,...r}))},t[3]=e,t[4]=s,t[5]=i):i=t[5];let a;return t[6]!==o||t[7]!==i?(a={mutationFn:o,onSuccess:i},t[6]=o,t[7]=i,t[8]=a):a=t[8],F(a)}function k(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:A}function B(){const{data:t}=f(L);return t??A}function L(t){return k(t.simple_mode)}function V(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({simple_mode:i},a),s=(i,a)=>e.mutateAsync({simple_mode:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function H(){return c("reports_only")}function c(t){const e=l.c(5);let n;e[0]!==t?(n=i=>D(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=f(n);let o;return e[2]!==s||e[3]!==t?(o=s??z.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function G(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function J(){const{data:t}=h.useSession();return G(t?.user?.email)}function X(){const t=l.c(8),{data:e}=h.useSession(),n=w();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||G(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,i=n.hostingControlPlaneGa===!0,a=n.monitorGa===!0,r=c("hosting_enabled"),u=c("deco_analytics_enabled"),C=c("e2e_enabled"),I=c("monitor_enabled"),d=o||i||r,g=o||i||u,_=o||i||C,y=o||a||I;let m;return t[3]!==d||t[4]!==g||t[5]!==_||t[6]!==y?(m={hosting:d,analytics:g,e2e:_,monitor:y},t[3]=d,t[4]=g,t[5]=_,t[6]=y,t[7]=m):m=t[7],m}function tt(){const{data:t}=f(v);return t??!1}function v(t){return $(t.flags)}function et(){const{data:t}=f(x);return t??!0}function x(t){return U(t.flags)}function nt(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a,r)=>e.mutate({flags:{[i]:a}},r),s=(i,a,r)=>e.mutateAsync({flags:{[i]:a}},r),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function K(){const{data:t}=f(Q);return t??null}function Q(t){return t.registry_config}function st(){const t=l.c(7),e=S();let n,s;t[0]!==e?(n=(i,a)=>e.mutate({registry_config:i},a),s=(i,a)=>e.mutateAsync({registry_config:i},a),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function ot(){const t=l.c(5),{org:e}=p(),n=K();let s;t[0]!==e.id?(s=P.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const o=s;let i;return t[2]!==o||t[3]!==n?(i=a=>{if(!n)return a===o;const r=n.registries[a];return r?r.enabled:a===o},t[2]=o,t[3]=n,t[4]=i):i=t[4],i}export{H as a,B as b,et as c,X as d,ot as e,j as f,V as g,K as h,tt as i,nt as j,st as k,J as l,c as u};
@@ -1 +1 @@
1
- import{c as g,k as E,f as R,u as N,eM as k,d as x,y as O,eN as $,aS as M}from"./index-CFc50fBU.js";import{u as L,D as l}from"./use-destination-route-CSS03xNU.js";function F(){const e=g.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:U},e[0]=t):t=e[0],E(t)}function U(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData.defaultMain;if(a)return a}return null}const j={board:l.tasks,files:l.library,reports:l.reports,overview:l.home,discover:l.discover};function w(){const e=g.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=R(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const s=N(r);let n;return e[2]!==a.panel||e[3]!==s?(n=k(a.panel,s),e[2]=a.panel,e[3]=s,e[4]=n):n=e[4],n}function Y(e){const t=g.c(6),a=w(),r=F();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=N(s);let c;return t[1]!==e||t[2]!==a||t[3]!==r||t[4]!==n.mainpanel?(c=M({panelTabId:a,mainPanelParam:n.mainpanel,routeDefaultMain:r,metadata:e}),t[1]=e,t[2]=a,t[3]=r,t[4]=n.mainpanel,t[5]=c):c=t[5],c.activeTab}function q(){const e=g.c(15),t=x();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const r=R(a);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=N(s).virtualmcpid,c=r.org??"",S=L()===l.agents,d=r.taskId;let h;e[2]!==d?(h=(m,u,o)=>f=>{const i=u?{...f}:{thread:f.thread,sidepanel:f.sidepanel};return d&&(i.thread=d),{...o?.search?o.search(i):i,...m,mainpanel:void 0}},e[2]=d,e[3]=h):h=e[3];const T=h;let b;e[4]!==n||e[5]!==t||e[6]!==T||e[7]!==S||e[8]!==c?(b=(m,u)=>{const{panel:o,payload:f}=O(m),i=u?.replace??!0,I=!!o&&$(o),D=T(f,S&&!I,u);if(o&&I){const p=j[o];if(p===l.tasks){t({to:p,params:{org:c,taskKey:void 0},search:D,replace:i});return}t({to:p,params:{org:c},search:D,replace:i});return}const A=u?.virtualmcpid??n;t({to:l.agents,params:{org:c,panel:o},search:p=>({...D(p),virtualmcpid:A}),replace:i})},e[4]=n,e[5]=t,e[6]=T,e[7]=S,e[8]=c,e[9]=b):b=e[9];const P=b;let _;e[10]!==t?(_=m=>t({to:".",search:B,replace:m?.replace??!0}),e[10]=t,e[11]=_):_=e[11];const y=_;let v;return e[12]!==y||e[13]!==P?(v={openPanel:P,closePanel:y},e[12]=y,e[13]=P,e[14]=v):v=e[14],v}function B(e){return{...e,mainpanel:!1}}export{q as a,F as b,Y as c,w as u};
1
+ import{c as g,k as E,f as R,u as N,eM as k,d as x,y as O,eN as $,aS as M}from"./index-fS0pDoNW.js";import{u as L,D as l}from"./use-destination-route-WysfeR7S.js";function F(){const e=g.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:U},e[0]=t):t=e[0],E(t)}function U(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData.defaultMain;if(a)return a}return null}const j={board:l.tasks,files:l.library,reports:l.reports,overview:l.home,discover:l.discover};function w(){const e=g.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=R(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const s=N(r);let n;return e[2]!==a.panel||e[3]!==s?(n=k(a.panel,s),e[2]=a.panel,e[3]=s,e[4]=n):n=e[4],n}function Y(e){const t=g.c(6),a=w(),r=F();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=N(s);let c;return t[1]!==e||t[2]!==a||t[3]!==r||t[4]!==n.mainpanel?(c=M({panelTabId:a,mainPanelParam:n.mainpanel,routeDefaultMain:r,metadata:e}),t[1]=e,t[2]=a,t[3]=r,t[4]=n.mainpanel,t[5]=c):c=t[5],c.activeTab}function q(){const e=g.c(15),t=x();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const r=R(a);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=N(s).virtualmcpid,c=r.org??"",S=L()===l.agents,d=r.taskId;let h;e[2]!==d?(h=(m,u,o)=>f=>{const i=u?{...f}:{thread:f.thread,sidepanel:f.sidepanel};return d&&(i.thread=d),{...o?.search?o.search(i):i,...m,mainpanel:void 0}},e[2]=d,e[3]=h):h=e[3];const T=h;let b;e[4]!==n||e[5]!==t||e[6]!==T||e[7]!==S||e[8]!==c?(b=(m,u)=>{const{panel:o,payload:f}=O(m),i=u?.replace??!0,I=!!o&&$(o),D=T(f,S&&!I,u);if(o&&I){const p=j[o];if(p===l.tasks){t({to:p,params:{org:c,taskKey:void 0},search:D,replace:i});return}t({to:p,params:{org:c},search:D,replace:i});return}const A=u?.virtualmcpid??n;t({to:l.agents,params:{org:c,panel:o},search:p=>({...D(p),virtualmcpid:A}),replace:i})},e[4]=n,e[5]=t,e[6]=T,e[7]=S,e[8]=c,e[9]=b):b=e[9];const P=b;let _;e[10]!==t?(_=m=>t({to:".",search:B,replace:m?.replace??!0}),e[10]=t,e[11]=_):_=e[11];const y=_;let v;return e[12]!==y||e[13]!==P?(v={openPanel:P,closePanel:y},e[12]=y,e[13]=P,e[14]=v):v=e[14],v}function B(e){return{...e,mainpanel:!1}}export{q as a,F as b,Y as c,w as u};
@@ -1 +1 @@
1
- import{c as C,G as R}from"./index-CFc50fBU.js";import{u as p}from"./use-connection-De6kXusM.js";import{W as a}from"./constants-Daqiz8AS.js";import{h as y}from"./use-organization-settings-BL3ZQVJG.js";function G(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{G as u};
1
+ import{c as C,G as R}from"./index-fS0pDoNW.js";import{u as p}from"./use-connection-DueV7Dd9.js";import{W as a}from"./constants-Daqiz8AS.js";import{h as y}from"./use-organization-settings-nKtEvYQd.js";function G(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{G as u};
@@ -1 +1 @@
1
- import{c as u,G as c,a7 as r,K as l,x as d,n as f,e as S}from"./index-CFc50fBU.js";function C(){const e=u.c(7),{org:n}=c(),a=r();let i;e[0]!==n.id?(i=l.secrets(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==a?(t=async()=>await a.call("SECRET_LIST",{}),e[2]=a,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:n}=c(),a=r(),i=f();let t;e[0]!==a?(t=async y=>await a.call("SECRET_CREATE",{...y}),e[0]=a,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
1
+ import{c as u,G as c,a7 as r,K as l,x as d,n as f,e as S}from"./index-fS0pDoNW.js";function C(){const e=u.c(7),{org:n}=c(),a=r();let i;e[0]!==n.id?(i=l.secrets(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==a?(t=async()=>await a.call("SECRET_LIST",{}),e[2]=a,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:n}=c(),a=r(),i=f();let t;e[0]!==a?(t=async y=>await a.call("SECRET_CREATE",{...y}),e[0]=a,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
@@ -1 +1 @@
1
- import{c as q,b as K,r as w,j as s,l as Q}from"./index-CFc50fBU.js";import{ai as _}from"./agent-icon-BpEwOiGV.js";import{i as Y}from"./SearchMd-RzdqOTz6.js";import{D as Z,b as ee,d as te,c as se}from"./dialog-BGZ5Hg3Q.js";import{I as re}from"./input-DzyddHML.js";import{k as le,l as oe,m as ie,o as X,G as ne,p as ce,q as ae}from"./index-C6TPg4UC.js";const fe=12,D=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return D.has(r)?!0:D.size>=fe?!1:(D.add(r),!0)}function J(r){D.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=q.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(_,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(_,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=q.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(_,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=q.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const z=t&&i&&o?le(i,o):[],W=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&W)for(const p of z)H.set(p.resolveType,X(f,W,p.previewBlock,G));const M=a.trim().toLowerCase(),V=M?z.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):z;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=s.jsxs("div",{className:"relative pt-2",children:[O,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??X(f,W,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=s.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Re(r){const e=q.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
1
+ import{c as q,b as K,r as w,j as s,l as Q}from"./index-fS0pDoNW.js";import{ai as _}from"./agent-icon-BrQLA9dC.js";import{i as Y}from"./SearchMd-Cjr4mqh9.js";import{D as Z,b as ee,d as te,c as se}from"./dialog-DKxWMb0-.js";import{I as re}from"./input-DaMV0yqT.js";import{k as le,l as oe,m as ie,o as X,G as ne,p as ce,q as ae}from"./index-BlP07NoC.js";const fe=12,D=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return D.has(r)?!0:D.size>=fe?!1:(D.add(r),!0)}function J(r){D.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=q.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(_,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(_,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=q.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(_,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=q.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const z=t&&i&&o?le(i,o):[],W=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&W)for(const p of z)H.set(p.resolveType,X(f,W,p.previewBlock,G));const M=a.trim().toLowerCase(),V=M?z.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):z;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=s.jsxs("div",{className:"relative pt-2",children:[O,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??X(f,W,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=s.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Re(r){const e=q.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
@@ -1 +1 @@
1
- import{c as r,v as u}from"./index-CFc50fBU.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-CayI0kWz.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{c as r,v as u}from"./index-fS0pDoNW.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-BxzD46W5.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{c as u,G as f,a7 as y,m,n as g,e as T,K as l,t as E}from"./index-CFc50fBU.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function G(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function M(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,G as c,M as d,K as u};
1
+ import{c as u,G as f,a7 as y,m,n as g,e as T,K as l,t as E}from"./index-fS0pDoNW.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function G(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function M(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,G as c,M as d,K as u};
@@ -1 +1 @@
1
- import{c as p,J as w,r as f}from"./index-CFc50fBU.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
1
+ import{c as p,J as w,r as f}from"./index-fS0pDoNW.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
@@ -1 +1 @@
1
- import{c as C,G as I,eO as S,c8 as _,K as A,eP as y,m as M,eQ as L,c7 as T,eR as U}from"./index-CFc50fBU.js";import{u as p,e as V,m as R}from"./use-mcp-client-BSfC7B4l.js";import{S as g}from"./constants-Daqiz8AS.js";function h(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);return S(s.id,"VIRTUAL_MCP",l,n)}function O(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;return t[12]!==d?(a=d??[],t[12]=d,t[13]=a):a=t[13],a}function w(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=y(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let r;t[7]!==l||t[8]!==c?(r={...l,enabled:c},t[7]=l,t[8]=c,t[9]=r):r=t[9];const{data:u}=M(r);return u?.item??null}async function E(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function k(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;t[12]!==d?.items?(a=d?.items??[],t[12]=d?.items,t[13]=a):a=t[13];const P=d?.totalCount,m=d?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==m?(f={items:a,totalCount:P,hasMore:m},t[14]=a,t[15]=P,t[16]=m,t[17]=f):f=t[17],f}function v(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function x(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=M,l=A.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const r=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},m=new Map;for(const f of P.items)m.set(f.id,f);return m},t[8]=s,t[9]=i,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==r||t[13]!==u?(d={queryKey:l,enabled:r,staleTime:3e4,queryFn:u},t[11]=l,t[12]=r,t[13]=u,t[14]=d):d=t[14],c(d)}function B(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=p(e);return _(t.id,"VIRTUAL_MCP",n)}export{h as a,B as b,x as c,O as d,k as e,w as f,E as g,v as u};
1
+ import{c as C,G as I,eO as S,c8 as _,K as A,eP as y,m as M,eQ as L,c7 as T,eR as U}from"./index-fS0pDoNW.js";import{u as p,e as V,m as R}from"./use-mcp-client-DtsRGdvB.js";import{S as g}from"./constants-Daqiz8AS.js";function h(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);return S(s.id,"VIRTUAL_MCP",l,n)}function O(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;return t[12]!==d?(a=d??[],t[12]=d,t[13]=a):a=t[13],a}function w(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=y(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let r;t[7]!==l||t[8]!==c?(r={...l,enabled:c},t[7]=l,t[8]=c,t[9]=r):r=t[9];const{data:u}=M(r);return u?.item??null}async function E(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function k(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;t[12]!==d?.items?(a=d?.items??[],t[12]=d?.items,t[13]=a):a=t[13];const P=d?.totalCount,m=d?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==m?(f={items:a,totalCount:P,hasMore:m},t[14]=a,t[15]=P,t[16]=m,t[17]=f):f=t[17],f}function v(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function x(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=M,l=A.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const r=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},m=new Map;for(const f of P.items)m.set(f.id,f);return m},t[8]=s,t[9]=i,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==r||t[13]!==u?(d={queryKey:l,enabled:r,staleTime:3e4,queryFn:u},t[11]=l,t[12]=r,t[13]=u,t[14]=d):d=t[14],c(d)}function B(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=p(e);return _(t.id,"VIRTUAL_MCP",n)}export{h as a,B as b,x as c,O as d,k as e,w as f,E as g,v as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-B62setNi.js";import{fc as i}from"./index-fS0pDoNW.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-B62setNi.js";import{fc as u,bT as n}from"./index-fS0pDoNW.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-CFc50fBU.js";import{C as G}from"./collection-table-wrapper-apDDwogq.js";import{E as L}from"./empty-state-DNkmU35f.js";import{S as H}from"./search-input-D9YW35Vs.js";import{A as X}from"./avatar-p5OetRNi.js";import{B as D}from"./badge-DpkiDIOC.js";import{u as Z}from"./use-debounced-value-D0HOX65a.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-CJqB3MCP.js";import"./ArrowUp-DSGIlxLY.js";import"./SearchMd-RzdqOTz6.js";import"./User01-AzXDuWJx.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
1
+ import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-fS0pDoNW.js";import{C as G}from"./collection-table-wrapper-STLb6VjQ.js";import{E as L}from"./empty-state-DA8cnNqW.js";import{S as H}from"./search-input-BN_fecvo.js";import{A as X}from"./avatar-ncVfbaUx.js";import{B as D}from"./badge-rtLQpibV.js";import{u as Z}from"./use-debounced-value-CjFrELYP.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-D4dLAB1m.js";import"./ArrowUp-39D5k7I2.js";import"./SearchMd-Cjr4mqh9.js";import"./User01-CDRv3_oY.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
@@ -1 +1 @@
1
- import{c as K,b as X,r as Z,j as n,l as rt,a1 as ut,a4 as ht,B as tt,a2 as xt}from"./index-CFc50fBU.js";import{z as gt,a5 as at,aF as bt}from"./agent-icon-BpEwOiGV.js";import{i as vt}from"./ChevronRight-DprZKKxq.js";import{L as yt}from"./label-BNKcfQJl.js";import{S as lt}from"./scroll-area-B-ln5xLH.js";import{S as jt}from"./switch-Caly0pjz.js";import{V as Tt}from"./view-mode-toggle-CmvSb5ck.js";import{bs as ct,bt as mt,bu as Nt,bv as _t,bw as kt,bx as U,by as wt}from"./index-C6TPg4UC.js";import"./AlertCircle-CUcQGJWg.js";import"./Tool01-DVKwxNl0.js";import"./ArrowUp-DSGIlxLY.js";import"./ArrowLeft-CSPpZjix.js";import"./Tool02-DDmfltgM.js";import"./ArrowRight-CpVx9ViU.js";import"./TrendUp01-DioIZ0XZ.js";import"./ZoomOut-BIvjfxkI.js";import"./Users03-B9ZuJ2UL.js";import"./CheckCircle-DgtK-Ftc.js";import"./Check-1zXE7wWA.js";import"./ChevronUp-DwjhbMCo.js";import"./ChevronSelectorVertical-Bva6hXFn.js";import"./DotsVertical-B1zgMGCf.js";import"./UserSquare-BVL5WuNS.js";import"./Copy01-BVJCFNfp.js";import"./CreditCard01-DJQ89VL7.js";import"./Download01-d7QlNeIi.js";import"./Settings02-Czze_bb5.js";import"./Eye-sLXfRAsu.js";import"./Share07-DDpIIfsq.js";import"./GitBranch01-Cevd7IY5.js";import"./Globe01-YMmGLMrH.js";import"./XClose-CeiPTewB.js";import"./HardDrive-CBNkuV5p.js";import"./Image01-_jew13y9.js";import"./Key01-DxL7RaRt.js";import"./Link01-BsnNRJbd.js";import"./LinkExternal01-CHynaVJX.js";import"./Monitor01-D384tcCL.js";import"./Sun-Dq3o46U_.js";import"./Package-CICmKbed.js";import"./Palette-C3wV8GbF.js";import"./Play-DyY4uqsk.js";import"./Plus-BtzuFXpa.js";import"./SearchMd-RzdqOTz6.js";import"./Shield01-B4pGOGci.js";import"./Stars01-CjHCSDX3.js";import"./Trash01-LsgvHH60.js";import"./Upload01-9qmJgRWz.js";import"./User01-AzXDuWJx.js";import"./Users01-twdbMWRY.js";import"./XCircle-BCL9MwCk.js";import"./Zap-CKLZSOSt.js";import"./select-BaouCTwA.js";import"./chat-context-avJOfrtu.js";import"./use-panel-navigate-DtIO2LK2.js";import"./use-destination-route-CSS03xNU.js";import"./autosend-DQFcN1uS.js";import"./thread-intent-Dvv1EpiP.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Dtkl47gt.js";import"./use-mcp-client-BSfC7B4l.js";import"./constants-Daqiz8AS.js";import"./auth-Dgy_FfAZ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DIjPP0nf.js";import"./task-board-3nbsbA9F.js";import"./schema-D92LbIMM.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DZn4-6Z9.js";import"./use-ai-providers-CygbvKpH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CayI0kWz.js";import"./thread-route-CvNO1pt5.js";import"./dialog-BGZ5Hg3Q.js";import"./use-organization-settings-BL3ZQVJG.js";import"./automation-runs-DuP-wdLK.js";import"./useInfiniteQuery-Uy7lOi7c.js";import"./infiniteQueryObserver-C2474thX.js";import"./use-connection-De6kXusM.js";import"./table-CJqB3MCP.js";import"./empty-state-DNkmU35f.js";import"./use-infinite-scroll-BxDzsK0q.js";import"./use-members-wJ4JxWh4.js";import"./use-org-auth-client-DWK2XwV1.js";import"./use-automations-Dq9Ujnel.js";import"./useSuspenseInfiniteQuery-BvETpOBx.js";import"./avatar-p5OetRNi.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-CVL8ezCn.js";import"./markdown-CtZT5hKm.js";import"./monaco-editor-DS9r540U.js";import"./editor-yboX_q5K.js";import"./mcp-app-renderer-CCUBqyqA.js";import"./types-BbudkrCP.js";import"./shell-layout-eEmjDldg.js";import"./project-icon-BY6IQTkk.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CENaHYOX.js";import"./index-DwEbGAs2.js";import"./required-auth-layout-B9X15pWP.js";import"./use-org-sso-C-CIgBnX.js";import"./use-org-notice-B5aH6jEO.js";import"./integration-icon-CBipnYKk.js";import"./use-navigate-to-agent-CP-K3KIR.js";import"./use-mcp-prompts-QVLv6nAF.js";import"./form-BQfZ_wMX.js";import"./input-DzyddHML.js";import"./file-type-icon-BLgP8JAi.js";import"./drawer-3JQ45fRR.js";import"./collection-search-Dn7QEyUJ.js";import"./tabs-BZq41GwT.js";import"./toggle-group-BIHRiejF.js";import"./task-route-CxNYrjWE.js";import"./extract-connection-data-C6uzSv1P.js";import"./metadata-dUsYcpuu.js";import"./connection-BXj1lf6L.js";import"./connection-card-xtbTrH0z.js";import"./use-registry-connections-Chb8MZQ9.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Bt1l-v-4.js";import"./connection-form-helpers-DbWPqpmc.js";import"./authenticate-and-persist-oauth-CHh3ra8X.js";import"./mcp-oauth-DZRe9Xrr.js";import"./collection-tabs-5dU7fGdE.js";import"./badge-DpkiDIOC.js";import"./use-file-configs-U1N7vmMJ.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-CTqjAJHc.js";import"./popover-BBlLuKf7.js";import"./github-icon-BfYLFe-E.js";import"./get-initials-D-f_fDFw.js";import"./select-model-HYeKeaT4.js";import"./checkbox-D9o3_hf-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-75w1BOQR.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DlTpiOV2.js";import"./toolbar-wrA0hnju.js";import"./use-mcp-tools-BsEArfgg.js";import"./skill-preview-D76FKEy1.js";import"./use-date-fns-locale-DaHZoCLk.js";import"./alert-dialog-DNgGWz87.js";import"./use-debounced-autosave-BMhSKDju.js";import"./search-input-D9YW35Vs.js";import"./use-mcp-auth-status-Dzn7LvyX.js";import"./repository-import-picker-RSPbbE4k.js";import"./repository-picker-biyctM_B.js";import"./use-debounced-value-D0HOX65a.js";import"./use-secrets-bCQiMi0L.js";import"./client-icons-BgRgSWI4.js";import"./connect-layout-DHtZKhj-.js";import"./self-tool-result-BbupoY5Z.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-BFy8EZMU.js";import"./use-tags-3pJUBLb_.js";import"./breadcrumb-C8vZ3frM.js";import"./toolbar-icon-button-HUU3DeDv.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-BZVMG0s5.js";import"./site-error--i37Vnuw.js";import"./cards-Bzy1Xtvb.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(xt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(ut,{asChild:!0,children:n.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function cn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=n.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(yt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(bt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=n.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+it)+8;return n.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return n.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:n.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=n.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=n.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=n.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&n.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:n.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return n.jsxs("div",{children:[n.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=n.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{cn as VariantCalendar};
1
+ import{c as K,b as X,r as Z,j as n,l as rt,a1 as ut,a4 as ht,B as tt,a2 as xt}from"./index-fS0pDoNW.js";import{z as gt,a5 as at,aF as bt}from"./agent-icon-BrQLA9dC.js";import{i as vt}from"./ChevronRight-Dk9nR_C7.js";import{L as yt}from"./label-Cznjg7Mb.js";import{S as lt}from"./scroll-area-DIJ4XfEc.js";import{S as jt}from"./switch-C0tiHttS.js";import{V as Tt}from"./view-mode-toggle-CZECgOYC.js";import{bs as ct,bt as mt,bu as Nt,bv as _t,bw as kt,bx as U,by as wt}from"./index-BlP07NoC.js";import"./AlertCircle-piOaFPQJ.js";import"./Tool01-DdmZi7j_.js";import"./ArrowUp-39D5k7I2.js";import"./ArrowLeft-EySzpaMt.js";import"./Tool02-KStnzngn.js";import"./ArrowRight-CN1prjjJ.js";import"./TrendUp01-NTK3Zf_M.js";import"./ZoomOut-DpAkOD8e.js";import"./Users03-CrZajyAo.js";import"./CheckCircle-CwJqWx0e.js";import"./Check-CmgBwUGv.js";import"./ChevronUp-DLLvYK07.js";import"./ChevronSelectorVertical-X68ci9mX.js";import"./DotsVertical-Bk31Y8qH.js";import"./UserSquare-l4Q5fPEZ.js";import"./Copy01-DlxhdgMn.js";import"./CreditCard01-CGG5tsm6.js";import"./Download01-CxTJDArl.js";import"./Settings02-Dss_LnvC.js";import"./Eye-UEYlbIHb.js";import"./Share07-CgTNZ1dk.js";import"./GitBranch01-DRT2X7Dj.js";import"./Globe01-Z6BbST4r.js";import"./XClose-C-bbcgCJ.js";import"./HardDrive--vlQvWpi.js";import"./Image01-rCxXluf6.js";import"./Key01-By90Yq6k.js";import"./Link01-CUe3c6G0.js";import"./LinkExternal01-D2pSy7v4.js";import"./Monitor01-CY2DbFkD.js";import"./Sun-DAVD-A5B.js";import"./Package-Bb4KYw9O.js";import"./Palette-o-NEtwsW.js";import"./Play-DpmIDjD8.js";import"./Plus-CgVmxzR4.js";import"./SearchMd-Cjr4mqh9.js";import"./Shield01-CNbrlPDI.js";import"./Stars01-Dno5l14o.js";import"./Trash01-BevWobXU.js";import"./Upload01-By19QANP.js";import"./User01-CDRv3_oY.js";import"./Users01-sAr72jTU.js";import"./XCircle-BTj4-tdv.js";import"./Zap-D6-O3NZl.js";import"./select-BJ0Gkkka.js";import"./chat-context-BcY08VKG.js";import"./use-panel-navigate-BNmxrdjd.js";import"./use-destination-route-WysfeR7S.js";import"./autosend-CI7ToXd3.js";import"./thread-intent-DK53ivxy.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BOHEAk9Y.js";import"./use-mcp-client-DtsRGdvB.js";import"./constants-Daqiz8AS.js";import"./auth-CRmM4ftp.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CnHcYfZj.js";import"./task-board-B4aUIKJI.js";import"./schema-CVS6b6X8.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-C5Zt0ewM.js";import"./use-ai-providers-DMdw1ZKm.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BxzD46W5.js";import"./thread-route-m3qiCJQP.js";import"./dialog-DKxWMb0-.js";import"./use-organization-settings-nKtEvYQd.js";import"./automation-runs-Ge9BW9cQ.js";import"./useInfiniteQuery-CU7gRlof.js";import"./infiniteQueryObserver-B62setNi.js";import"./use-connection-DueV7Dd9.js";import"./table-D4dLAB1m.js";import"./empty-state-DA8cnNqW.js";import"./use-infinite-scroll-p1RdGJsc.js";import"./use-members-NWhv5vIl.js";import"./use-org-auth-client-CShcDth4.js";import"./use-automations-BrJQYtfT.js";import"./useSuspenseInfiniteQuery-rXQ07VfR.js";import"./avatar-ncVfbaUx.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DsM8BkMO.js";import"./markdown-BNMHtGi6.js";import"./monaco-editor-7CBGfDCH.js";import"./editor-Cm-sI42p.js";import"./mcp-app-renderer-Df-LUzfK.js";import"./types-C9oYptqr.js";import"./shell-layout-D-M6_Jkf.js";import"./project-icon-DD8-TjG9.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CTH7s7Ya.js";import"./index-YZeWKaou.js";import"./required-auth-layout-CR5eG3sF.js";import"./use-org-sso-DzsFzLff.js";import"./use-org-notice-B64MrAd9.js";import"./integration-icon-BFx8Gs71.js";import"./use-navigate-to-agent-Bnmnhqje.js";import"./use-mcp-prompts-CD_IWJeZ.js";import"./form-CorLMse0.js";import"./input-DaMV0yqT.js";import"./file-type-icon-ChIQfzaN.js";import"./drawer-BaA_lu4x.js";import"./collection-search-UW0xDxmi.js";import"./tabs-CDFENeRa.js";import"./toggle-group-BSxkMDRS.js";import"./task-route-BUYfM-Mq.js";import"./extract-connection-data-BdnZZmxw.js";import"./metadata-dUsYcpuu.js";import"./connection-CU1s53fy.js";import"./connection-card-B-DQLE2m.js";import"./use-registry-connections-Bb6pjxJh.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DIJRp6Ds.js";import"./connection-form-helpers-B-auMXZc.js";import"./authenticate-and-persist-oauth-DEZCdj-t.js";import"./mcp-oauth-CDjOqnrq.js";import"./collection-tabs-644rp01A.js";import"./badge-rtLQpibV.js";import"./use-file-configs-BByTBhTa.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-CC8IMYtS.js";import"./popover-sPMAt4On.js";import"./github-icon-CeFWgmVz.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D8CTPoiO.js";import"./checkbox-D0oTwa58.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-_4CbErMC.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-k-y4u-Dp.js";import"./toolbar-DQ2YVpXF.js";import"./use-mcp-tools-BKHgcAxL.js";import"./skill-preview-5YIvamOb.js";import"./use-date-fns-locale-I1vziWnN.js";import"./alert-dialog-DuVJ7GC7.js";import"./use-debounced-autosave-Bep9W3RF.js";import"./search-input-BN_fecvo.js";import"./use-mcp-auth-status-CTnEpyYI.js";import"./repository-import-picker-TTmQRKgM.js";import"./repository-picker-Be7NfZEA.js";import"./use-debounced-value-CjFrELYP.js";import"./use-secrets-CTUki73i.js";import"./client-icons-BE3evb-i.js";import"./connect-layout-CmuGJ6zd.js";import"./self-tool-result-KOheC4HD.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-J__dE1p5.js";import"./use-tags-BOUHc_F8.js";import"./breadcrumb-d7wNqsyt.js";import"./toolbar-icon-button-DeXrhkGe.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CJo0GDE_.js";import"./site-error--i37Vnuw.js";import"./cards-CgpdHb-U.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(xt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(ut,{asChild:!0,children:n.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function cn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=n.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(yt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(bt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=n.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+it)+8;return n.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return n.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:n.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=n.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=n.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=n.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&n.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:n.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return n.jsxs("div",{children:[n.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=n.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{cn as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as C,l as f,j as i,a4 as k,a1 as I,a2 as P}from"./index-CFc50fBU.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
1
+ import{c as $,r as C,l as f,j as i,a4 as k,a1 as I,a2 as P}from"./index-fS0pDoNW.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
@@ -50,7 +50,7 @@
50
50
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
51
51
  <meta name="twitter:image" content="/og-image.png" />
52
52
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
53
- <script type="module" crossorigin src="/assets/index-CFc50fBU.js"></script>
53
+ <script type="module" crossorigin src="/assets/index-fS0pDoNW.js"></script>
54
54
  <link rel="stylesheet" crossorigin href="/assets/index-MAAh901k.css">
55
55
  </head>
56
56
  <body>