decocms 4.348.0 → 4.350.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/client/assets/{AlertCircle-U9pv2NJQ.js → AlertCircle-BMk6q2FA.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CC-EQfkr.js → AreaChart-BLsqA7uB.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-FEKnVEE6.js → ArrowLeft-CBdaifdY.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-YeNm0TCu.js → ArrowRight-k7OlY3ZV.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-zrcAFzEu.js → ArrowUp-BrUqWSUA.js} +1 -1
  6. package/dist/client/assets/{Check-H7Mmr0MJ.js → Check-BRo4TcYL.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DA8ScrFC.js → CheckCircle-ByifJ5DN.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DO3RC1pd.js → ChevronRight-CL-1AW54.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical--A8HrUqB.js → ChevronSelectorVertical-D89G1wQX.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-BP8TOpcT.js → ChevronUp-DRrtPFPU.js} +1 -1
  11. package/dist/client/assets/{Copy01-C3i-U8ZG.js → Copy01-Cz84dNWo.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-CNl0cUX6.js → CreditCard01-16ccuHl7.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-Bt-VkXeN.js → DotsVertical-CUeujFxe.js} +1 -1
  14. package/dist/client/assets/{Download01-B_WTEIkC.js → Download01-BY5nFlV8.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-DXwUT8Pm.js → ErrorBarContext-laRz9pMB.js} +1 -1
  16. package/dist/client/assets/{Eye-ikYAyCJB.js → Eye-DSfFTZ0l.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-ClVrLal8.js → GitBranch01-CzoRmimO.js} +1 -1
  18. package/dist/client/assets/{Globe01-BwbIv0-p.js → Globe01-DhXQEmKy.js} +1 -1
  19. package/dist/client/assets/{HardDrive-CXyeDYVm.js → HardDrive-Dz1jdiPQ.js} +1 -1
  20. package/dist/client/assets/{Image01-EEtalrwj.js → Image01-ChEQz8oh.js} +1 -1
  21. package/dist/client/assets/{Key01-Dfc1sl9E.js → Key01-BOmG8BKE.js} +1 -1
  22. package/dist/client/assets/{Link01-BjYhVWwh.js → Link01-DkfXBBhQ.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-D79zgSZj.js → LinkExternal01-CbmJH8Oa.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CcAhoL31.js → Monitor01-D0BOdaeR.js} +1 -1
  25. package/dist/client/assets/{Package-1FrUQ_EG.js → Package-BtdRPN0k.js} +1 -1
  26. package/dist/client/assets/{Palette-BixW1ssS.js → Palette-D3howidE.js} +1 -1
  27. package/dist/client/assets/{Play-DZ4DLqc8.js → Play-BRZZbBP9.js} +1 -1
  28. package/dist/client/assets/{Plus-DeGsbqDF.js → Plus-CHPz10Kd.js} +1 -1
  29. package/dist/client/assets/SearchLg-B8u5Z_-p.js +1 -0
  30. package/dist/client/assets/{SearchMd-BNuJvIQD.js → SearchMd-BfOW0ihr.js} +1 -1
  31. package/dist/client/assets/{Sector-oNzpp3He.js → Sector-C7O4njZA.js} +3 -3
  32. package/dist/client/assets/{Settings02-DrHeXPDm.js → Settings02-5Mu_nYD8.js} +1 -1
  33. package/dist/client/assets/{Share07-BDAimDHi.js → Share07-B8Aw6CDi.js} +1 -1
  34. package/dist/client/assets/{Shield01-DnbggGAu.js → Shield01-BCG_3DYj.js} +1 -1
  35. package/dist/client/assets/{Stars01-DoidW0k0.js → Stars01-foIfuOVN.js} +1 -1
  36. package/dist/client/assets/{Sun-bCSbt1Ff.js → Sun-BzWxkbN5.js} +1 -1
  37. package/dist/client/assets/{Tool01-CyDReH3q.js → Tool01-BEvJ_YW1.js} +1 -1
  38. package/dist/client/assets/{Tool02-CtNw7bNe.js → Tool02-BJ6DrdG_.js} +1 -1
  39. package/dist/client/assets/{Trash01-DcTV6bg0.js → Trash01-BV_RW_ot.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-ClNnKXkn.js → TrendUp01-BQU61XVU.js} +1 -1
  41. package/dist/client/assets/{Upload01-Ct4yKwsS.js → Upload01-CzJgAWQf.js} +1 -1
  42. package/dist/client/assets/{User01-QYqaP7k3.js → User01-BYo154It.js} +1 -1
  43. package/dist/client/assets/{UserSquare-B1psP4hc.js → UserSquare-B8muuAeC.js} +1 -1
  44. package/dist/client/assets/{Users01-CiWVH62V.js → Users01-CCJxFqcF.js} +1 -1
  45. package/dist/client/assets/{Users03-D6zVISLF.js → Users03-B3GcmkAW.js} +1 -1
  46. package/dist/client/assets/{XCircle-DyKp194a.js → XCircle-B00jwioD.js} +1 -1
  47. package/dist/client/assets/{XClose-McE2ySi-.js → XClose-BSY1lYTG.js} +1 -1
  48. package/dist/client/assets/{Zap-nYGNb9hC.js → Zap-u6tF2K1C.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-CqfoYky-.js → ZoomOut-GAT73I28.js} +1 -1
  50. package/dist/client/assets/{access-gate-CH5FSeIV.js → access-gate-BUfTolQd.js} +1 -1
  51. package/dist/client/assets/agent-icon-CaI0ggpq.js +1 -0
  52. package/dist/client/assets/agents-list-DLUa5_h5.js +1 -0
  53. package/dist/client/assets/{ai-providers-BFaxW6kI.js → ai-providers-CpT_7AV2.js} +1 -1
  54. package/dist/client/assets/{alert-6i_2sx2u.js → alert-BG7MpKMj.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-BIwJfWwl.js → alert-dialog-BJoAnvTa.js} +2 -2
  56. package/dist/client/assets/analytics-tab-CVYQKeUX.js +2 -0
  57. package/dist/client/assets/{api-keys-U9NJedFL.js → api-keys-C1X3ZED1.js} +1 -1
  58. package/dist/client/assets/api-keys-CgATwrHZ.js +1 -0
  59. package/dist/client/assets/app-editor-CLUQ5UuG.js +1 -0
  60. package/dist/client/assets/{auth-BVYw4FRF.js → auth-DrTXT3NH.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-DG1z4Yrp.js → auth-catchall--kEE8BrW.js} +1 -1
  62. package/dist/client/assets/{auth-entry-65gjdT0Q.js → auth-entry-Bypdb_OP.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout--QyhC9AU.js → auth-split-layout-C9p5qokp.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-B1Xd_JVd.js → authenticate-and-persist-oauth-BSOO7-Ru.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-qgJpJ0m6.js → automation-list-row-CUdrE7CI.js} +1 -1
  66. package/dist/client/assets/{automation-runs-DI-xL2M5.js → automation-runs-staCAMV3.js} +27 -27
  67. package/dist/client/assets/automations-BblO5Bed.js +1 -0
  68. package/dist/client/assets/{autosend-CxKrnLl5.js → autosend-BLWBLlQp.js} +1 -1
  69. package/dist/client/assets/{avatar-C8Mb6TNg.js → avatar-8wWRKAWW.js} +1 -1
  70. package/dist/client/assets/{badge-DaEVG-87.js → badge-Dc8kcV5t.js} +1 -1
  71. package/dist/client/assets/{block-document-D8nzQnLu.js → block-document-0d7k0rKQ.js} +1 -1
  72. package/dist/client/assets/{breadcrumb-DCFVI-vF.js → breadcrumb-DTve-fNU.js} +1 -1
  73. package/dist/client/assets/{buckets-nyX_HxUQ.js → buckets-Bgjegid2.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-BQukMuKz.js → bulk-category-panel-BXxBWLb6.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-D2g3S_3R.js → capability-load-error-Bt-0_xjM.js} +1 -1
  76. package/dist/client/assets/{cards-CTM3PZ_9.js → cards-C2rTb-Sr.js} +1 -1
  77. package/dist/client/assets/category-editor-DTJMv5Az.js +1 -0
  78. package/dist/client/assets/{cdn-tab-B8_LIanh.js → cdn-tab-DKXQ2vhA.js} +1 -1
  79. package/dist/client/assets/{chart-DA0R9QFL.js → chart-DmKqaSZG.js} +1 -1
  80. package/dist/client/assets/{chat-context-BvcjAKGC.js → chat-context-C48t2Pu7.js} +5 -5
  81. package/dist/client/assets/{checkbox-E8AiLxWP.js → checkbox-CNie4rus.js} +1 -1
  82. package/dist/client/assets/choose-editor-De8eese3.js +1 -0
  83. package/dist/client/assets/{cli-auth-success-C1hdea_C.js → cli-auth-success-2KTVF2ia.js} +1 -1
  84. package/dist/client/assets/{client-icons-BiGI-rVs.js → client-icons-DJ5EKjKX.js} +1 -1
  85. package/dist/client/assets/collection-detail-CIWvltBQ.js +1 -0
  86. package/dist/client/assets/{collection-display-button-p1WL8L5A.js → collection-display-button-CueahYcm.js} +1 -1
  87. package/dist/client/assets/{collection-search-BFuAKML3.js → collection-search-C-vZtduC.js} +1 -1
  88. package/dist/client/assets/{collection-table-wrapper-B3leyUk1.js → collection-table-wrapper-BapDNTsG.js} +1 -1
  89. package/dist/client/assets/{collection-tabs-jnYmxyBx.js → collection-tabs-BnDECkbQ.js} +1 -1
  90. package/dist/client/assets/{command-BTB0umeF.js → command-Dodm-w8K.js} +1 -1
  91. package/dist/client/assets/commerce-onboarding-DXMBUTDz.js +1 -0
  92. package/dist/client/assets/{connect-CiClwP-h.js → connect-j2mlrPiR.js} +2 -2
  93. package/dist/client/assets/{connect-layout-B8tnAWgZ.js → connect-layout-DiecLu9A.js} +1 -1
  94. package/dist/client/assets/{connection-lcMS2LdS.js → connection-BT2Nvm5b.js} +1 -1
  95. package/dist/client/assets/{connection-card-Elfgtygk.js → connection-card-DoxPiAfH.js} +1 -1
  96. package/dist/client/assets/connection-detail-DV4_FKFy.js +1 -0
  97. package/dist/client/assets/{connection-form-helpers-M1vgWgMZ.js → connection-form-helpers-422OHKLl.js} +1 -1
  98. package/dist/client/assets/connections-CRaA-93j.js +1 -0
  99. package/dist/client/assets/{create-organization-dialog-Csth32xO.js → create-organization-dialog-D8vhxdyz.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-AajGLnoQ.js → decopilot-sse-pool-CC8xuhpc.js} +1 -1
  101. package/dist/client/assets/{dialog-DTWAhfaj.js → dialog-Cz0TyjbB.js} +1 -1
  102. package/dist/client/assets/{domain-settings-DENjXXRv.js → domain-settings-4DGH3ghA.js} +1 -1
  103. package/dist/client/assets/{drawer-BksB5Qvf.js → drawer-BJF-pfh2.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-BPZS68Mf.js → dropdown-menu-BNXoL43E.js} +1 -1
  105. package/dist/client/assets/e2e-tab-Cn2FXk4V.js +1 -0
  106. package/dist/client/assets/{editor-D74qHqnA.js → editor-COagHbmc.js} +1 -1
  107. package/dist/client/assets/{empty-state-2QI0GDcc.js → empty-state-BcShOK8y.js} +1 -1
  108. package/dist/client/assets/{empty-state-5b6uGere.js → empty-state-R3Gf1cup.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-CTWz8EOk.js → extract-connection-data-WnP-t00f.js} +1 -1
  110. package/dist/client/assets/file-explorer-DoJ3JAGu.js +2 -0
  111. package/dist/client/assets/{file-type-icon-CKa9k4Eo.js → file-type-icon-CkFKND12.js} +1 -1
  112. package/dist/client/assets/{folder-icon-EabOWuN5.js → folder-icon-B_G8NPBM.js} +1 -1
  113. package/dist/client/assets/{form-BbWAigc0.js → form-BI8lXaWf.js} +1 -1
  114. package/dist/client/assets/general-DpFlP6Mv.js +1 -0
  115. package/dist/client/assets/{github-icon-D3DXPILS.js → github-icon-Bh8cYN11.js} +1 -1
  116. package/dist/client/assets/{hooks-Bj0aWBZV.js → hooks-DQxSpV5B.js} +1 -1
  117. package/dist/client/assets/hosting-tab-c114uUEI.js +1 -0
  118. package/dist/client/assets/{index-bZJ_OWgL.js → index-B4q20JqK.js} +1 -1
  119. package/dist/client/assets/{index-I0fSGHxP.js → index-BPQ0yfn_.js} +1 -1
  120. package/dist/client/assets/{index-TOMs0gOM.js → index-BQndpmm6.js} +2 -2
  121. package/dist/client/assets/index-Bsw_h-fN.js +1 -0
  122. package/dist/client/assets/{index-CttZrzIJ.js → index-CHwEdqc6.js} +1 -1
  123. package/dist/client/assets/{index-CcEKn9GL.js → index-CS7wGNbF.js} +1 -1
  124. package/dist/client/assets/index-Cj0gEWsO.css +1 -0
  125. package/dist/client/assets/{index-D3DIhOCa.js → index-D7c3ENS3.js} +1 -1
  126. package/dist/client/assets/{index-DZsx-GLV.js → index-DJQUO_5F.js} +25 -25
  127. package/dist/client/assets/{index-pnchsg3N.js → index-DUxHsoB3.js} +1 -1
  128. package/dist/client/assets/index-DfKKmgLE.js +827 -0
  129. package/dist/client/assets/{index-NlvkyqXy.js → index-SlLtg_R2.js} +1 -1
  130. package/dist/client/assets/index-redirect-CMnNA3cO.js +1 -0
  131. package/dist/client/assets/{infiniteQueryObserver-CN-Yb9Nr.js → infiniteQueryObserver-Dz5k81cL.js} +1 -1
  132. package/dist/client/assets/{infra-billing-CCYPhVJl.js → infra-billing-38iVSWLx.js} +1 -1
  133. package/dist/client/assets/{input-DBkq-ui7.js → input-DAq8Cogd.js} +1 -1
  134. package/dist/client/assets/{integration-icon-CoQDsKMQ.js → integration-icon-eQHWUfyl.js} +1 -1
  135. package/dist/client/assets/{invite-member-dialog-DHhflO7x.js → invite-member-dialog-BOj3Gkcq.js} +1 -1
  136. package/dist/client/assets/{label-XljGvqhv.js → label-C5IuR8oP.js} +1 -1
  137. package/dist/client/assets/{layout-DMMEJgp_.js → layout-BpEmheyC.js} +1 -1
  138. package/dist/client/assets/{login-DSFqd2Cw.js → login-DUbU__Dn.js} +1 -1
  139. package/dist/client/assets/{markdown-C6BHxHIr.js → markdown-gi_MNGvw.js} +1 -1
  140. package/dist/client/assets/{mcp-app-renderer-BhcjOn-v.js → mcp-app-renderer-DAhokX0e.js} +2 -2
  141. package/dist/client/assets/{mcp-oauth-CkCOYpGa.js → mcp-oauth-H1nDAtgI.js} +1 -1
  142. package/dist/client/assets/{members-BRMS-z8-.js → members-DjEJdLt1.js} +1 -1
  143. package/dist/client/assets/{monaco-editor-DUfjWmCH.js → monaco-editor-s5nxaT6J.js} +2 -2
  144. package/dist/client/assets/{monitoring-stats-row-CNGtiW-V.js → monitoring-stats-row-CaLy4Ryh.js} +1 -1
  145. package/dist/client/assets/{multi-select-D2NZR3Je.js → multi-select-CFqy5bas.js} +1 -1
  146. package/dist/client/assets/{oauth-callback-_iMiiQ6O.js → oauth-callback-Jvfg7sIW.js} +1 -1
  147. package/dist/client/assets/{oauth-callback-ai-provider-DWJ3tDti.js → oauth-callback-ai-provider-D5EPLu-K.js} +1 -1
  148. package/dist/client/assets/{onboarding-b4vqNQcH.js → onboarding-Zr_p1vAb.js} +1 -1
  149. package/dist/client/assets/org-layout-C9lwccdN.js +1 -0
  150. package/dist/client/assets/{organization-choice-B5jL_4VB.js → organization-choice-CTABkZvs.js} +1 -1
  151. package/dist/client/assets/{orgs-CxYHNmZz.js → orgs-Do50-Jd8.js} +1 -1
  152. package/dist/client/assets/{page-seo-form-D1zgMMO5.js → page-seo-form-B97SOeU5.js} +1 -1
  153. package/dist/client/assets/{popover-CugUBL2K.js → popover-CRp4G2Z6.js} +1 -1
  154. package/dist/client/assets/post-calendar-DPPABLzV.js +1 -0
  155. package/dist/client/assets/post-editor-DSvtP40e.js +1 -0
  156. package/dist/client/assets/{primitives-D5ZpBmDc.js → primitives-C7BIiVVo.js} +1 -1
  157. package/dist/client/assets/{profile-CR5LBckw.js → profile-BLTCJe7b.js} +1 -1
  158. package/dist/client/assets/project-app-view-Blu2IsZ3.js +1 -0
  159. package/dist/client/assets/{project-icon-D9jBx1Lh.js → project-icon-sXGV0X2Q.js} +1 -1
  160. package/dist/client/assets/{prompts-AYoj9J5J.js → prompts-3ZqIJFDd.js} +1 -1
  161. package/dist/client/assets/record-editor-CsxPBrFI.js +1 -0
  162. package/dist/client/assets/redirect-editor-Br7pXUqD.js +1 -0
  163. package/dist/client/assets/registry-BOCis5ep.js +2 -0
  164. package/dist/client/assets/{registry-layout-DS0JrRJJ.js → registry-layout-ED4OGMt2.js} +1 -1
  165. package/dist/client/assets/{reports-BPeWGcnC.js → reports-BdX-p26G.js} +2 -2
  166. package/dist/client/assets/{repositories-DDxpnac9.js → repositories-uAK6PGQO.js} +1 -1
  167. package/dist/client/assets/{repository-import-picker-DRmwXY_Z.js → repository-import-picker-BOqZjy75.js} +1 -1
  168. package/dist/client/assets/{repository-picker-BVGd2Z5t.js → repository-picker-Dg2kea9_.js} +1 -1
  169. package/dist/client/assets/{require-capability-BAWColZy.js → require-capability-DZaP9GRG.js} +1 -1
  170. package/dist/client/assets/{required-auth-layout-D_4lUDFj.js → required-auth-layout-BeMcQPLp.js} +1 -1
  171. package/dist/client/assets/{reset-password-Muwzg6q6.js → reset-password-HtxIFDKb.js} +1 -1
  172. package/dist/client/assets/review-settings-D7iT6mdL.js +1 -0
  173. package/dist/client/assets/roles-BoykZStL.js +1 -0
  174. package/dist/client/assets/{schema-K0VPsDN5.js → schema-CXWi7OUE.js} +1 -1
  175. package/dist/client/assets/{scroll-area-BtEw-0mL.js → scroll-area-DIILjYAD.js} +1 -1
  176. package/dist/client/assets/{search-input-DVFSQDiL.js → search-input-BnJ22pqo.js} +1 -1
  177. package/dist/client/assets/{secrets-RFx7imRf.js → secrets-Be4aGdkk.js} +1 -1
  178. package/dist/client/assets/{sections-editor-DnYOtohw.js → sections-editor-BQDRzdu2.js} +2 -2
  179. package/dist/client/assets/{select-model-aeACLtyd.js → select-model-BS741VWv.js} +1 -1
  180. package/dist/client/assets/{select-TX0TM16h.js → select-zsrd2RiW.js} +1 -1
  181. package/dist/client/assets/{self-tool-result-Bbk6LNdT.js → self-tool-result-UHlGJAZm.js} +1 -1
  182. package/dist/client/assets/seo-editor-B4chp4Nv.js +1 -0
  183. package/dist/client/assets/settings-layout-DdFAcCKC.js +1 -0
  184. package/dist/client/assets/{settings-sidebar-DDdLTxRO.js → settings-sidebar-qKQ2rd4i.js} +1 -1
  185. package/dist/client/assets/{shell-controls-BXEtXK0P.js → shell-controls-DwOzdtxQ.js} +1 -1
  186. package/dist/client/assets/shell-layout-D38a2ilI.js +1 -0
  187. package/dist/client/assets/{skill-preview-DmcbNeFW.js → skill-preview-BH1OTEDh.js} +1 -1
  188. package/dist/client/assets/{skills-D5ThPL4T.js → skills-B9ZpA0KI.js} +1 -1
  189. package/dist/client/assets/{sso-DIv3IfcX.js → sso-DIok2qyj.js} +1 -1
  190. package/dist/client/assets/{store-D4mWXY1Z.js → store-BnWD-sX4.js} +1 -1
  191. package/dist/client/assets/store-registry-Bs_SblgK.js +2 -0
  192. package/dist/client/assets/{switch-BSQsnixt.js → switch-wRuzhZCP.js} +1 -1
  193. package/dist/client/assets/{synced-repos-BksI9Fmi.js → synced-repos-BK1T5QWT.js} +1 -1
  194. package/dist/client/assets/{table-CSLvM8dI.js → table-DMgVyVQS.js} +1 -1
  195. package/dist/client/assets/{tabs-BvOQpnly.js → tabs-C9rYvTFN.js} +1 -1
  196. package/dist/client/assets/{task-board-C6hevS_c.js → task-board-D0cF49Rr.js} +1 -1
  197. package/dist/client/assets/{task-route-Dl0AbbvO.js → task-route-Dyvp3vwK.js} +1 -1
  198. package/dist/client/assets/tasks-DssW8rYC.js +1 -0
  199. package/dist/client/assets/{textarea-NzT1ozxc.js → textarea-NYvkjUAn.js} +1 -1
  200. package/dist/client/assets/{thread-intent-CRKQoXCi.js → thread-intent-CgKd5Wx-.js} +1 -1
  201. package/dist/client/assets/{thread-route-BVfQR44p.js → thread-route-BgI1RAgC.js} +1 -1
  202. package/dist/client/assets/{toggle-group-DOqWV4T2.js → toggle-group-It3hRo8l.js} +1 -1
  203. package/dist/client/assets/{toolbar-DU14MGQo.js → toolbar-SMhPqa2y.js} +1 -1
  204. package/dist/client/assets/{toolbar-icon-button-5CxdQ2TT.js → toolbar-icon-button-C4gmxVIe.js} +1 -1
  205. package/dist/client/assets/{track-CGYLX8Er.js → track-ByEKyB4m.js} +1 -1
  206. package/dist/client/assets/{types-DTNV26Po.js → types-DRS7wX8l.js} +1 -1
  207. package/dist/client/assets/{use-ai-providers-BSKIayEv.js → use-ai-providers-Mptwa2nu.js} +1 -1
  208. package/dist/client/assets/{use-automations-DIpGUZTg.js → use-automations-xybTlCwA.js} +1 -1
  209. package/dist/client/assets/{use-autosave-J1-_cCzS.js → use-autosave-DKENIaWw.js} +1 -1
  210. package/dist/client/assets/{use-connection-BJuR4u4_.js → use-connection-Cj6jhInv.js} +1 -1
  211. package/dist/client/assets/{use-copy-BjXr_pKM.js → use-copy-PCW_eaa6.js} +1 -1
  212. package/dist/client/assets/{use-create-virtual-mcp-D04e0Bk1.js → use-create-virtual-mcp-2La6_4nW.js} +1 -1
  213. package/dist/client/assets/{use-date-fns-locale-DQ9VKYwt.js → use-date-fns-locale-DFrNlcdk.js} +1 -1
  214. package/dist/client/assets/{use-debounced-autosave-RrEYWg_V.js → use-debounced-autosave-CyQ6phI-.js} +1 -1
  215. package/dist/client/assets/{use-debounced-value-B_8t2ZDh.js → use-debounced-value-DTG_WVYT.js} +1 -1
  216. package/dist/client/assets/{use-decopilot-events-DWrIyAdA.js → use-decopilot-events-DnaHPSLF.js} +1 -1
  217. package/dist/client/assets/{use-delete-connection-DtkuuBez.js → use-delete-connection-8l-RyDdH.js} +1 -1
  218. package/dist/client/assets/{use-deployment-admin-CFMU-XcS.js → use-deployment-admin-CShZ060R.js} +1 -1
  219. package/dist/client/assets/{use-destination-route-DE7DNG84.js → use-destination-route-BS5_9jNo.js} +1 -1
  220. package/dist/client/assets/{use-file-configs-B12Bgu3Z.js → use-file-configs-BvqhugH-.js} +1 -1
  221. package/dist/client/assets/{use-infinite-scroll-BXr_u2X1.js → use-infinite-scroll-DU0M3enW.js} +1 -1
  222. package/dist/client/assets/{use-join-requests-D-KCRo7_.js → use-join-requests-lrCf0PQt.js} +1 -1
  223. package/dist/client/assets/{use-mcp-auth-status-BPLGrU-q.js → use-mcp-auth-status-CM0X2Q6P.js} +1 -1
  224. package/dist/client/assets/{use-mcp-client-CT68MaZf.js → use-mcp-client-DOjgXsoM.js} +2 -2
  225. package/dist/client/assets/{use-mcp-prompts-Bfyb41qd.js → use-mcp-prompts-BKEcBOIJ.js} +1 -1
  226. package/dist/client/assets/{use-mcp-tools-DeRZ-3eb.js → use-mcp-tools-Bjz_51W4.js} +1 -1
  227. package/dist/client/assets/{use-members-DJJCMnU7.js → use-members-BB7OB8zH.js} +1 -1
  228. package/dist/client/assets/{use-navigate-to-agent-COZVNK2u.js → use-navigate-to-agent-BX5Ov16Z.js} +1 -1
  229. package/dist/client/assets/{use-org-auth-client-DzA-vkZA.js → use-org-auth-client-Dv5ggRPD.js} +1 -1
  230. package/dist/client/assets/{use-org-notice-DJYgAFPy.js → use-org-notice-Bb3hmM0X.js} +1 -1
  231. package/dist/client/assets/{use-org-sso-CzPpWIQr.js → use-org-sso-qVsnd7nU.js} +1 -1
  232. package/dist/client/assets/{use-organization-roles-C0nmTCQ9.js → use-organization-roles-c807ZNwQ.js} +1 -1
  233. package/dist/client/assets/{use-organization-settings-DrMHeBOr.js → use-organization-settings-Duntu8dc.js} +1 -1
  234. package/dist/client/assets/{use-panel-navigate-DscHtGsE.js → use-panel-navigate-lJXqYoE8.js} +1 -1
  235. package/dist/client/assets/{use-registry-connections-CFql8C6x.js → use-registry-connections-Q445kfkp.js} +1 -1
  236. package/dist/client/assets/{use-secrets-CNGepf_x.js → use-secrets-D_yQvvYk.js} +1 -1
  237. package/dist/client/assets/{use-section-preview-base-BtG237cA.js → use-section-preview-base-CQBGEP31.js} +1 -1
  238. package/dist/client/assets/{use-status-sounds-L30GUs7u.js → use-status-sounds-Dg3N4ijY.js} +1 -1
  239. package/dist/client/assets/{use-tags-O7Ozj_kd.js → use-tags-D9wANkyQ.js} +1 -1
  240. package/dist/client/assets/{use-view-mode-lhEpmryw.js → use-view-mode-D37EDMuR.js} +1 -1
  241. package/dist/client/assets/{use-virtual-mcp-BXbxVipJ.js → use-virtual-mcp-9JWM1UZv.js} +1 -1
  242. package/dist/client/assets/useInfiniteQuery-BCgs6-zI.js +1 -0
  243. package/dist/client/assets/useSuspenseInfiniteQuery-BFXkdPJm.js +1 -0
  244. package/dist/client/assets/{users-CkRr5SvX.js → users-D6I_Ulcy.js} +1 -1
  245. package/dist/client/assets/variant-calendar-OloQMR7L.js +1 -0
  246. package/dist/client/assets/{view-mode-toggle-Djyfw1v1.js → view-mode-toggle-DUf-vSHP.js} +1 -1
  247. package/dist/client/index.html +2 -2
  248. package/dist/server/cli.js +1 -1
  249. package/dist/server/server.js +1 -1
  250. package/package.json +1 -1
  251. package/dist/client/assets/agent-icon-CnnQSswm.js +0 -1
  252. package/dist/client/assets/agents-list-Be9vygo-.js +0 -1
  253. package/dist/client/assets/analytics-tab-CbgXJ0tW.js +0 -2
  254. package/dist/client/assets/api-keys-CD9aqPus.js +0 -1
  255. package/dist/client/assets/app-editor-QPD1L4OP.js +0 -1
  256. package/dist/client/assets/automations-BS56l2F-.js +0 -1
  257. package/dist/client/assets/category-editor-Vq1v0CXB.js +0 -1
  258. package/dist/client/assets/choose-editor-BdTQxBij.js +0 -1
  259. package/dist/client/assets/collection-detail-CnCqIfnk.js +0 -1
  260. package/dist/client/assets/commerce-onboarding-B4F0Tnl7.js +0 -1
  261. package/dist/client/assets/connection-detail-L68FjDUB.js +0 -1
  262. package/dist/client/assets/connections-Cq6QnpjJ.js +0 -1
  263. package/dist/client/assets/e2e-tab-DUREhAJG.js +0 -1
  264. package/dist/client/assets/file-explorer-DEF_0jI4.js +0 -2
  265. package/dist/client/assets/general-DWhviXPW.js +0 -1
  266. package/dist/client/assets/hosting-tab-CAb80WXs.js +0 -1
  267. package/dist/client/assets/index-BT-75k1L.js +0 -1
  268. package/dist/client/assets/index-DhYXykaq.js +0 -827
  269. package/dist/client/assets/index-bWqcZ8bk.css +0 -1
  270. package/dist/client/assets/index-redirect-StIyTln4.js +0 -1
  271. package/dist/client/assets/org-layout-ByyP_m92.js +0 -1
  272. package/dist/client/assets/post-calendar-CNLjTDlA.js +0 -1
  273. package/dist/client/assets/post-editor-CecVUF8d.js +0 -1
  274. package/dist/client/assets/project-app-view-D7LtFUZ4.js +0 -1
  275. package/dist/client/assets/record-editor-vTG2nsSZ.js +0 -1
  276. package/dist/client/assets/redirect-editor-k_ZJZYUp.js +0 -1
  277. package/dist/client/assets/registry-CfSc7pmv.js +0 -2
  278. package/dist/client/assets/review-settings-Cu5Kl-yB.js +0 -1
  279. package/dist/client/assets/roles-bkDNCeem.js +0 -1
  280. package/dist/client/assets/seo-editor-CvfZpri2.js +0 -1
  281. package/dist/client/assets/settings-layout-BrG6I0Uc.js +0 -1
  282. package/dist/client/assets/shell-layout-jfh4uwOT.js +0 -1
  283. package/dist/client/assets/store-registry-DhHtNP8N.js +0 -2
  284. package/dist/client/assets/tasks-CxrKZF9u.js +0 -1
  285. package/dist/client/assets/useInfiniteQuery-a-wpM9y3.js +0 -1
  286. package/dist/client/assets/useSuspenseInfiniteQuery-WUmm_LeP.js +0 -1
  287. package/dist/client/assets/variant-calendar-CkeoT_kl.js +0 -1
@@ -1 +0,0 @@
1
- import{c as $,b as W,e as qe,j as n,B as M,t as Fe,cM as me,z as pt,a as Re,w as Mt,x as yt,K as Ke,cN as Ft,cO as zt,M as $e,l as et,bl as qt,r as V,d as bt,G as ot,m as Be,o as tt,b7 as at,v as Bt,cP as Kt,cQ as Ht,cR as Ut,cS as Gt,cT as Jt,C as Vt,u as Wt,Z as Yt,c9 as Qt,cU as Xt,k as xt,cV as Xe,cW as Zt,cX as en,O as tn,cY as nn}from"./index-DZsx-GLV.js";import{A as Qe}from"./avatar-C8Mb6TNg.js";import{t as St,b as rt}from"./Users03-D6zVISLF.js";import{d as sn}from"./TrendUp01-ClNnKXkn.js";import{b6 as on,az as an,b3 as te,b7 as rn,aG as ln,b8 as cn,n as lt,g as dn,f as un,b9 as mn,d as fn}from"./agent-icon-CnnQSswm.js";import{s as gn}from"./XClose-McE2ySi-.js";import{D as hn,u as pn,c as yn,d as bn,b as xn}from"./thread-route-BVfQR44p.js";import{l as wt,a as Sn,u as wn,P as vn}from"./project-icon-D9jBx1Lh.js";import{u as jn,D as ne}from"./use-destination-route-DE7DNG84.js";import{i as kn}from"./source-system-tabs-CnEGUb4r.js";import{u as vt,a as Tn}from"./use-panel-navigate-DscHtGsE.js";import{i as ie}from"./CheckCircle-DA8ScrFC.js";import{i as ct}from"./Tool02-CtNw7bNe.js";import{i as Ze}from"./Monitor01-CcAhoL31.js";import{i as ae}from"./Zap-nYGNb9hC.js";import{c as jt,d as kt,b as Tt,D as Nt,h as Nn,e as _n}from"./dialog-DTWAhfaj.js";import{i as An}from"./Share07-BDAimDHi.js";import{s as dt}from"./Plus-DeGsbqDF.js";import{a as Pn}from"./Settings02-DrHeXPDm.js";import{d as ce,e as We,a as Cn,c as En,b as On,f as In}from"./command-BTB0umeF.js";import{q as Ln,S as _t,a as Dn,m as $n}from"./use-mcp-client-CT68MaZf.js";import{S as Rn,a as Mn}from"./hooks-Bj0aWBZV.js";import{u as Fn}from"./use-is-desktop-app-BNujXJc_.js";import{R as zn}from"./required-auth-layout-D_4lUDFj.js";import{A as qn}from"./autosend-CxKrnLl5.js";import{f as Bn}from"./use-organization-settings-DrMHeBOr.js";import{u as Kn}from"./use-org-sso-CzPpWIQr.js";import{u as Hn}from"./use-org-notice-DJYgAFPy.js";function Un(t){const e=$.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let y;e[5]!==i?(y=k=>{Fe.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=y):y=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[7]=u,e[8]=m,e[9]=y,e[10]=v):v=e[10];const c=qe(v),x=Gn;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(Qe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(St,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let S;e[22]!==d?(S=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=S):S=e[23];let w;e[24]!==f||e[25]!==S?(w=n.jsxs("div",{className:"space-y-2",children:[f,S]}),e[24]=f,e[25]=S,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let g;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(g=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=g):g=e[32];let _;e[33]!==c.isPending||e[34]!==b||e[35]!==g?(_=n.jsx(M,{onClick:b,disabled:c.isPending,children:g}),e[33]=c.isPending,e[34]=b,e[35]=g,e[36]=_):_=e[36];const P=c.isPending;let T;e[37]!==i?(T=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==c.isPending||e[40]!==T?(j=n.jsx(M,{variant:"ghost",onClick:x,disabled:P,children:T}),e[39]=c.isPending,e[40]=T,e[41]=j):j=e[41];let h;e[42]!==_||e[43]!==j?(h=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=h):h=e[44];let N;return e[45]!==w||e[46]!==h||e[47]!==p?(N=n.jsxs(me,{children:[p,w,h]}),e[45]=w,e[46]=h,e[47]=p,e[48]=N):N=e[48],N}function Gn(){window.location.href="/"}function ut(t){const e=$.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=Jn,u=o==="not-found",m=u?sn:pt;let y;e[0]!==u||e[1]!==a?(y=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=y):y=e[2];const v=y;let c;e[3]!==u||e[4]!==r||e[5]!==s||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const x=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==x?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[12]=x,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let S;e[17]!==a?(S=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=S):S=e[18];let w;e[19]!==S?(w=n.jsx(M,{onClick:i,children:S}),e[19]=S,e[20]=w):w=e[20];let b;return e[21]!==p||e[22]!==d||e[23]!==w?(b=n.jsxs(me,{children:[p,d,w]}),e[21]=p,e[22]=d,e[23]=w,e[24]=b):b=e[24],b}function Jn(){window.location.href="/"}function Vn(t){const e=$.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let u;e[0]!==s?(u=async()=>{const L=await Re.organization.acceptInvitation({invitationId:s});if(L.error)throw new Error(L.error.message);return L.data},e[0]=s,e[1]=u):u=e[1];let m;e[2]!==o?(m=()=>{Mt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let y;e[4]!==i?(y=L=>{Fe.error(L instanceof Error?L.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=y):y=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[6]=u,e[7]=m,e[8]=y,e[9]=v):v=e[9];const c=qe(v);let x;e[10]!==s?(x=async()=>{const L=await Re.organization.rejectInvitation({invitationId:s});if(L.error)throw new Error(L.error.message);return L.data},e[10]=s,e[11]=x):x=e[11];let p,l;e[12]!==i?(p=()=>{Fe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=L=>{Fe.error(L instanceof Error?L.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==x||e[16]!==p||e[17]!==l?(f={mutationFn:x,onSuccess:p,onError:l},e[15]=x,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=qe(f),S=c.isPending||d.isPending;let w;e[19]!==a||e[20]!==r?(w=a?n.jsx(Qe,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(on,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=w):w=e[21];let b;e[22]!==r||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=b):b=e[24];let g;e[25]!==b?(g=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=g):g=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let T;e[31]!==g||e[32]!==P?(T=n.jsxs("div",{className:"space-y-2",children:[g,P]}),e[31]=g,e[32]=P,e[33]=T):T=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let h;e[36]!==c.isPending||e[37]!==i?(h=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=h):h=e[38];let N;e[39]!==S||e[40]!==j||e[41]!==h?(N=n.jsx(M,{onClick:j,disabled:S,children:h}),e[39]=S,e[40]=j,e[41]=h,e[42]=N):N=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==S||e[49]!==k||e[50]!==A?(E=n.jsx(M,{variant:"ghost",onClick:k,disabled:S,children:A}),e[48]=S,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==N||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,E]}),e[52]=N,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==T||e[56]!==C||e[57]!==w?(O=n.jsxs(me,{children:[w,T,C]}),e[55]=T,e[56]=C,e[57]=w,e[58]=O):O=e[58],O}function Wn(t){const e=$.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(Qe,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(an,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let y;e[10]!==m?(y=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=y):y=e[11];let v;e[12]!==u||e[13]!==y?(v=n.jsxs("div",{className:"space-y-2",children:[u,y]}),e[12]=u,e[13]=y,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let x;e[17]!==c?(x=n.jsx(M,{variant:"ghost",onClick:Yn,children:c}),e[17]=c,e[18]=x):x=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==x?(p=n.jsxs(me,{children:[a,v,x]}),e[19]=a,e[20]=v,e[21]=x,e[22]=p):p=e[22],p}function Yn(){window.location.href="/"}function Qn(t){const e=$.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r?(u=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await N.json();if(!N.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=Zn,e[2]=m):m=e[2];let y;e[3]!==i?(y=N=>{Fe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=y):y=e[4];let v;e[5]!==u||e[6]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[5]=u,e[6]=y,e[7]=v):v=e[7];const c=qe(v);let x;e[8]!==o||e[9]!==s?(x=o?n.jsx(Qe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(St,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=x):x=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let S;e[21]!==l||e[22]!==d?(S=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=S):S=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==i?(b=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=b):b=e[28];let g;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(g=n.jsx(M,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=g):g=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let T;e[35]!==c.isPending||e[36]!==P?(T=n.jsx(M,{variant:"ghost",onClick:Xn,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=T):T=e[37];let j;e[38]!==g||e[39]!==T?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,T]}),e[38]=g,e[39]=T,e[40]=j):j=e[40];let h;return e[41]!==S||e[42]!==j||e[43]!==x?(h=n.jsxs(me,{children:[x,S,j]}),e[41]=S,e[42]=j,e[43]=x,e[44]=h):h=e[44],h}function Xn(){window.location.href="/"}function Zn(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function es(t){const e=$.c(7);let s;e[0]!==t?(s=Ke.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],yt(o)}function ts({orgSlug:t}){const{data:e}=es(t);if(e.status!=="member"){Ft()?.org===t&&zt();const s=localStorage.getItem($e.lastOrgSlug())===t;if(s&&localStorage.removeItem($e.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(ut,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Vn,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Un,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Qn,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Wn,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(ut,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function At(t){const e=$.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:u,children:m,footerLeading:y,actions:v,onDismiss:c,tone:x}=t,p=x===void 0?"neutral":x,l=y||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(gn,{size:14}),e[2]=d):d=e[2];let S;e[3]!==r||e[4]!==c?(S=n.jsx(M,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=S):S=e[5];const w=u&&"flex items-start gap-3",b=m&&"pb-3";let g;e[6]!==w||e[7]!==b?(g=et("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=g):g=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let T;e[13]!==a?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let h;e[17]!==T||e[18]!==j||e[19]!==P?(h=n.jsxs("div",{children:[P,T,j]}),e[17]=T,e[18]=j,e[19]=P,e[20]=h):h=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let k;e[23]!==h||e[24]!==N?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[h,N]}),e[23]=h,e[24]=N,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==g||e[28]!==_?(A=n.jsxs("div",{className:g,children:[_,k]}),e[26]=k,e[27]=g,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==y||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:et("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:y}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=y,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==S||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,S,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=S,e[40]=p,e[41]=C):C=e[41],C}const ns=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function ss(t){return ns.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function os(t,e){return ss(e).map(s=>({element:wt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const is=wt("switcher"),as=30;function Pt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function rs(t,e){return os(t,e).filter(s=>typeof s.element=="string"&&Pt(s.element))}function ls(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Me=!1},steps:e}}let Me=!1;async function cs(){return(await qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ds(t,e){if(Me)return;Me=!0;let s=0;const r=()=>{if(!Pt(is)&&s++<as){requestAnimationFrame(r);return}const o=rs(t,e);if(o.length===0){Me=!1;return}cs().then(a=>{a(ls(t,o)).drive()}).catch(()=>{Me=!1})};r()}const us=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:rt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:te,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Ze,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:Ze,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ie,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:ae,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:ae,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:rn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:Ze,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ie,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:ae,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:te,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ie,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:ae,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ie,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:te,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:ae,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:te,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ie,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:te,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ie,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:te,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ct,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ie,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:rt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:ae,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ie,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:te,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ct,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:te,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:ln,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Ct=us,Ye="studio.release-feed.v1",nt=new Set;let de="",ue={},st=!1;function ms(){if(st)return de||"{}";try{return localStorage.getItem(Ye)??"{}"}catch{return de||"{}"}}function Et(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function mt(){const t=ms();return t!==de&&(de=t,ue=Et(t)),ue}function fs(t){nt.add(t);const e=s=>{if(!(s.key!==Ye&&s.key!==null)){try{const r=localStorage.getItem(Ye)??"{}",a={...Et(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{nt.delete(t),window.removeEventListener("storage",e)}}function gs(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(Ye,de),st=!1}catch{st=!0}nt.forEach(e=>e())}function hs(){const t=$.c(7),e=V.useSyncExternalStore(fs,mt,mt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=ps;let a;t[2]!==e?(a=Ct.reduce((m,y)=>e[y.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function ps(t){ue[t]||gs({...ue,[t]:{seenAt:new Date().toISOString()}})}const ys=720*60*60*1e3,bs=10080*60*1e3;function xs(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Ss(t){const e=Ct[0];if(!e)return null;const s=xs(e.date),r=t-s;return r<0||r>ys?null:e}function ws(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function vs(t,e){const s=ws(t);return s===null?!1:e-s>=bs}function js(){const t=$.c(52),e=W(),s=Sn(),r=jn(),o=vt(),a=!!s,i=r===ne.home&&!s;let u;t[0]!==o||t[1]!==a?(u=a&&!!o&&kn(o),t[0]=o,t[1]=a,t[2]=u):u=t[2];const m=u,{data:y}=Re.useSession(),{isSeen:v,markSeen:c}=hs(),[x,p]=V.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==y?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Ss(O),!l){d=null;break e}if(!vs(y?.user?.createdAt,O)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=y?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let S;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(S=()=>{c(l.id),ds(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=S):S=t[14];const w=S;let b;t[15]!==e?(b=e("announcements.release.ariaLabel"),t[15]=e,t[16]=b):b=t[16];let g;t[17]!==e?(g=e("announcements.release.dismiss"),t[17]=e,t[18]=g):g=t[18];const _=l.eyebrow,P=l.title;let T;t[19]!==l.id||t[20]!==c?(T=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=T):T=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let h;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==w?(h=l.cta?"href"in l.cta?n.jsx(M,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(M,{size:"sm",onClick:w,children:l.cta.label}):n.jsx(M,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=w,t[31]=h):h=t[31];let N;t[32]!==l.bullets?(N=l.bullets.map(ks),t[32]=l.bullets,t[33]=N):N=t[33];let k;t[34]!==N?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[34]=N,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==x||t[40]!==A?(E=n.jsx(hn,{open:x,onOpenChange:A}),t[39]=x,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==h||t[45]!==k||t[46]!==E||t[47]!==b||t[48]!==g||t[49]!==T||t[50]!==j?(C=n.jsxs(At,{ariaLabel:b,dismissLabel:g,eyebrow:_,title:P,onDismiss:T,footerLeading:j,actions:h,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=h,t[45]=k,t[46]=E,t[47]=b,t[48]=g,t[49]=T,t[50]=j,t[51]=C):C=t[51],C}function ks(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ot=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),re=Ot?"⌘":"Ctrl",J={commandPalette:{keys:[re,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[re,"["],description:"Back to previous"},focusChatInput:{keys:[re,"L"],description:"Focus chat input"},saveAndFormat:{keys:[re,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[re,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[re,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",re,"S"],description:"New task"},toggleDaemon:{keys:[re,"D"],description:"Toggle daemon logs"}},Ts=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function ft(t){return Ot?t.metaKey:t.ctrlKey}function Ns(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function _s(t){const e=$.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(jt,{children:n.jsx(kt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Ts.map(As)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(Tt,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let y;return e[7]!==r||e[8]!==s||e[9]!==m?(y=n.jsx(Nt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=y):y=e[10],y}function As(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ps)})]},t.label)}function Ps(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Cs)})]},t.description)}function Cs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const gt=8;function Es(t){const{org:e}=ot(),s=Ln({connectionId:_t,orgId:e.id,orgSlug:e.slug}),{data:r}=Be({queryKey:Ke.globalSearch(e.id,t,gt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:gt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Os(t){const e=$.c(165),{open:s,onOpenChange:r}=t,o=W(),a=bt(),{org:i}=ot(),{projects:u,hasProjects:m}=wn(),[y,v]=V.useState(""),c=V.useDeferredValue(y),x=Es(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(D,Rt)=>{tt("command_palette_used",{kind:Rt}),D(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let S;e[4]!==a||e[5]!==i.slug?(S=D=>{if(D.type==="task"){a({to:ne.tasks,params:{org:i.slug,taskKey:D.key??void 0}});return}a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:D.virtual_mcp_id??void 0,thread:D.id}})},e[4]=a,e[5]=i.slug,e[6]=S):S=e[6];const w=S;let b;e[7]!==i.slug?(b={org:i.slug},e[7]=i.slug,e[8]=b):b=e[8];const g=b;let _;e[9]!==o?(_=o("sidebar.navDestinations.home"),e[9]=o,e[10]=_):_=e[10];let P;e[11]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(dn,{}),e[11]=P):P=e[11];let T;e[12]!==g||e[13]!==_?(T={key:"home",label:_,icon:P,to:ne.home,params:g},e[12]=g,e[13]=_,e[14]=T):T=e[14];let j;e[15]!==o?(j=o("sidebar.navDestinations.reports"),e[15]=o,e[16]=j):j=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(un,{}),e[17]=h):h=e[17];let N;e[18]!==g||e[19]!==j?(N={key:"reports",label:j,icon:h,to:ne.reports,params:g},e[18]=g,e[19]=j,e[20]=N):N=e[20];let k;e[21]!==o?(k=o("sidebar.navDestinations.tasks"),e[21]=o,e[22]=k):k=e[22];let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(lt,{}),e[23]=A):A=e[23];let E;e[24]!==i.slug?(E={org:i.slug,taskKey:void 0},e[24]=i.slug,e[25]=E):E=e[25];let C;e[26]!==k||e[27]!==E?(C={key:"tasks",label:k,icon:A,to:ne.tasks,params:E},e[26]=k,e[27]=E,e[28]=C):C=e[28];let O;e[29]!==o?(O=o("sidebar.navDestinations.library"),e[29]=o,e[30]=O):O=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(An,{}),e[31]=L):L=e[31];let R;e[32]!==g||e[33]!==O?(R={key:"library",label:O,icon:L,to:ne.library,params:g},e[32]=g,e[33]=O,e[34]=R):R=e[34];let z;e[35]!==o?(z=o("sidebar.navDestinations.discover"),e[35]=o,e[36]=z):z=e[36];let G;e[37]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(mn,{}),e[37]=G):G=e[37];let q;e[38]!==g||e[39]!==z?(q={key:"discover",label:z,icon:G,to:ne.discover,params:g},e[38]=g,e[39]=z,e[40]=q):q=e[40];let se;e[41]!==N||e[42]!==C||e[43]!==R||e[44]!==q||e[45]!==T?(se=[T,N,C,R,q],e[41]=N,e[42]=C,e[43]=R,e[44]=q,e[45]=T,e[46]=se):se=e[46];const oe=se;let le;e[47]!==l||e[48]!==r?(le=D=>D?r(!0):l(),e[47]=l,e[48]=r,e[49]=le):le=e[49];let ee;e[50]!==o?(ee=o("commandPalette.title"),e[50]=o,e[51]=ee):ee=e[51];let B;e[52]!==o?(B=o("commandPalette.description"),e[52]=o,e[53]=B):B=e[53];let K;e[54]!==o?(K=o("commandPalette.placeholder"),e[54]=o,e[55]=K):K=e[55];let Y;e[56]!==K||e[57]!==y?(Y=n.jsx(Cn,{placeholder:K,value:y,onValueChange:v}),e[56]=K,e[57]=y,e[58]=Y):Y=e[58];let Q;e[59]!==o?(Q=o("commandPalette.empty"),e[59]=o,e[60]=Q):Q=e[60];let H;e[61]!==Q?(H=n.jsx(En,{children:Q}),e[61]=Q,e[62]=H):H=e[62];let U;e[63]!==o?(U=o("commandPalette.goTo"),e[63]=o,e[64]=U):U=e[64];let X;e[65]!==oe||e[66]!==d||e[67]!==a?(X=oe.map(D=>n.jsxs(ce,{onSelect:()=>d(()=>a({to:D.to,params:D.params}),"destination"),children:[D.icon,n.jsx("span",{children:D.label})]},D.key)),e[65]=oe,e[66]=d,e[67]=a,e[68]=X):X=e[68];let Z;e[69]!==U||e[70]!==X?(Z=n.jsx(We,{heading:U,children:X}),e[69]=U,e[70]=X,e[71]=Z):Z=e[71];let I;e[72]!==d||e[73]!==m||e[74]!==a||e[75]!==i.slug||e[76]!==u||e[77]!==o?(I=m&&n.jsx(We,{heading:o("commandPalette.projects"),children:u.map(D=>n.jsxs(ce,{value:`project ${D.title}`,onSelect:()=>d(()=>a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:D.id}}),"project"),children:[n.jsx(vn,{icon:D.icon,name:D.title}),n.jsx("span",{children:D.title})]},D.id))}),e[72]=d,e[73]=m,e[74]=a,e[75]=i.slug,e[76]=u,e[77]=o,e[78]=I):I=e[78];let F;e[79]!==o?(F=o("commandPalette.actions"),e[79]=o,e[80]=F):F=e[80];let fe;e[81]!==o?(fe=o("commandPalette.newProject"),e[81]=o,e[82]=fe):fe=e[82];let ge;e[83]!==d||e[84]!==a||e[85]!==i.slug?(ge=()=>d(()=>a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:void 0}}),"new_project"),e[83]=d,e[84]=a,e[85]=i.slug,e[86]=ge):ge=e[86];let He;e[87]===Symbol.for("react.memo_cache_sentinel")?(He=n.jsx(dt,{}),e[87]=He):He=e[87];let he;e[88]!==o?(he=o("commandPalette.newProject"),e[88]=o,e[89]=he):he=e[89];let pe;e[90]!==he?(pe=n.jsx("span",{children:he}),e[90]=he,e[91]=pe):pe=e[91];let ye;e[92]!==fe||e[93]!==ge||e[94]!==pe?(ye=n.jsxs(ce,{value:fe,onSelect:ge,children:[He,pe]}),e[92]=fe,e[93]=ge,e[94]=pe,e[95]=ye):ye=e[95];let be;e[96]!==o?(be=o("commandPalette.inviteTeammate"),e[96]=o,e[97]=be):be=e[97];let xe;e[98]!==d||e[99]!==a||e[100]!==g?(xe=()=>d(()=>a({to:"/$org/settings/members",params:g}),"invite"),e[98]=d,e[99]=a,e[100]=g,e[101]=xe):xe=e[101];let Ue;e[102]===Symbol.for("react.memo_cache_sentinel")?(Ue=n.jsx(fn,{}),e[102]=Ue):Ue=e[102];let Se;e[103]!==o?(Se=o("commandPalette.inviteTeammate"),e[103]=o,e[104]=Se):Se=e[104];let we;e[105]!==Se?(we=n.jsx("span",{children:Se}),e[105]=Se,e[106]=we):we=e[106];let ve;e[107]!==be||e[108]!==xe||e[109]!==we?(ve=n.jsxs(ce,{value:be,onSelect:xe,children:[Ue,we]}),e[107]=be,e[108]=xe,e[109]=we,e[110]=ve):ve=e[110];let je;e[111]!==o?(je=o("commandPalette.addConnection"),e[111]=o,e[112]=je):je=e[112];let ke;e[113]!==d||e[114]!==a||e[115]!==g?(ke=()=>d(()=>a({to:"/$org/settings/connections",params:g,search:{tab:"all"}}),"add_connection"),e[113]=d,e[114]=a,e[115]=g,e[116]=ke):ke=e[116];let Ge;e[117]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(dt,{}),e[117]=Ge):Ge=e[117];let Te;e[118]!==o?(Te=o("commandPalette.addConnection"),e[118]=o,e[119]=Te):Te=e[119];let Ne;e[120]!==Te?(Ne=n.jsx("span",{children:Te}),e[120]=Te,e[121]=Ne):Ne=e[121];let _e;e[122]!==je||e[123]!==ke||e[124]!==Ne?(_e=n.jsxs(ce,{value:je,onSelect:ke,children:[Ge,Ne]}),e[122]=je,e[123]=ke,e[124]=Ne,e[125]=_e):_e=e[125];let Ae;e[126]!==o?(Ae=o("commandPalette.settings"),e[126]=o,e[127]=Ae):Ae=e[127];let Pe;e[128]!==d||e[129]!==a||e[130]!==g?(Pe=()=>d(()=>a({to:"/$org/settings/general",params:g}),"settings"),e[128]=d,e[129]=a,e[130]=g,e[131]=Pe):Pe=e[131];let Je;e[132]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx(Pn,{}),e[132]=Je):Je=e[132];let Ce;e[133]!==o?(Ce=o("commandPalette.settings"),e[133]=o,e[134]=Ce):Ce=e[134];let Ee;e[135]!==Ce?(Ee=n.jsx("span",{children:Ce}),e[135]=Ce,e[136]=Ee):Ee=e[136];let Oe;e[137]!==Ae||e[138]!==Pe||e[139]!==Ee?(Oe=n.jsxs(ce,{value:Ae,onSelect:Pe,children:[Je,Ee]}),e[137]=Ae,e[138]=Pe,e[139]=Ee,e[140]=Oe):Oe=e[140];let Ie;e[141]!==F||e[142]!==ye||e[143]!==ve||e[144]!==_e||e[145]!==Oe?(Ie=n.jsxs(We,{heading:F,children:[ye,ve,_e,Oe]}),e[141]=F,e[142]=ye,e[143]=ve,e[144]=_e,e[145]=Oe,e[146]=Ie):Ie=e[146];let Le;e[147]!==d||e[148]!==x||e[149]!==w||e[150]!==o?(Le=x.length>0&&n.jsx(We,{heading:o("commandPalette.results"),children:x.map(D=>n.jsxs(ce,{value:`${D.title} ${D.id}`,onSelect:()=>d(()=>w(D),D.type),children:[D.type==="thread"?n.jsx(cn,{}):n.jsx(lt,{}),n.jsx("span",{className:"truncate",children:D.title}),D.type==="task"&&D.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:D.key})]},`${D.type}:${D.id}`))}),e[147]=d,e[148]=x,e[149]=w,e[150]=o,e[151]=Le):Le=e[151];let De;e[152]!==H||e[153]!==Z||e[154]!==I||e[155]!==Ie||e[156]!==Le?(De=n.jsxs(On,{children:[H,Z,I,Ie,Le]}),e[152]=H,e[153]=Z,e[154]=I,e[155]=Ie,e[156]=Le,e[157]=De):De=e[157];let Ve;return e[158]!==s||e[159]!==le||e[160]!==ee||e[161]!==B||e[162]!==Y||e[163]!==De?(Ve=n.jsxs(In,{open:s,onOpenChange:le,title:ee,description:B,shouldFilter:!1,children:[Y,De]}),e[158]=s,e[159]=le,e[160]=ee,e[161]=B,e[162]=Y,e[163]=De,e[164]=Ve):Ve=e[164],Ve}const ze=new Rn(!1);function Is(){ze.set(!0)}function Ls(){ze.set(!1)}function Ds(){const t=$.c(2),e=V.useSyncExternalStore(ze.subscribe,ze.get);let s;return t[0]!==e?(s=[e,ze.set],t[0]=e,t[1]=s):s=t[1],s}const $s=300*1e3,Rs=2;function Ms(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Fs(t,e){return t.count>=Rs&&t.version!==null&&t.version!==e}function zs(){const t=$.c(43),e=W(),s=Fn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Bs},t[0]=r):r=t[0];const o=qe(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ke.appVersionCheck(),queryFn:qs,refetchInterval:$s,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Be(a),[m,y]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,x]=V.useState(v);u!==m&&(y(u),x(z=>Ms(z,i,"4.348.0")));const[p,l]=V.useState(null),f=s;let d;t[3]!==s||t[4]!==o?(d=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=d):d=t[5];const S=d,w="announcements.version.refresh";if(!Fs(c,p))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let g;t[8]!==e?(g=e("announcements.version.dismiss"),t[8]=e,t[9]=g):g=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const T="announcements.version.description";let j;t[14]!==e||t[15]!==T?(j=e(T),t[14]=e,t[15]=T,t[16]=j):j=t[16];let h;t[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(at,{size:16}),t[17]=h):h=t[17];let N;t[18]!==c.version?(N=()=>l(c.version),t[18]=c.version,t[19]=N):N=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.348.0"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==w||t[23]!==e?(A=e(w),t[22]=w,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=et(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(at,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let L;t[29]!==S||t[30]!==f||t[31]!==A||t[32]!==O?(L=n.jsxs(M,{size:"sm",disabled:f,onClick:S,children:[A,O]}),t[29]=S,t[30]=f,t[31]=A,t[32]=O,t[33]=L):L=t[33];let R;return t[34]!==N||t[35]!==k||t[36]!==L||t[37]!==b||t[38]!==g||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(At,{ariaLabel:b,dismissLabel:g,eyebrow:_,title:P,description:j,icon:h,tone:"system",onDismiss:N,footerLeading:k,actions:L}),t[34]=N,t[35]=k,t[36]=L,t[37]=b,t[38]=g,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function qs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Bs(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ks(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Hs=Date.parse("2026-07-21T00:00:00Z"),ht=t=>Ks($e.ptBrAnnouncementSeen(t));function Us(){const t=$.c(35),e=W(),[s,r]=Bt(),{data:o,isPending:a}=Re.useSession(),i=o?.user,u=i?.id,m=i?.createdAt,y=m!=null&&new Date(m).getTime()<Hs,v=Kt()==="pt-BR",c=!a&&!!u&&y&&v&&s.language==="en"&&!ht(u).has(),[x,p]=V.useState(!1),[l,f]=V.useState(!1);!x&&!a&&(p(!0),c&&u&&(ht(u).mark(),r(Js),f(!0),tt("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{tt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const S=d;let w;t[1]!==r?(w=()=>{r(Gs),S("switch-back")},t[1]=r,t[2]=w):w=t[2];const b=w;let g;t[3]===Symbol.for("react.memo_cache_sentinel")?(g=G=>!G&&S("dismiss"),t[3]=g):g=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let T;t[7]!==P?(T=n.jsx(kt,{children:P}),t[7]=P,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let h;t[11]!==j?(h=n.jsx(Nn,{children:j}),t[11]=j,t[12]=h):h=t[12];let N;t[13]!==T||t[14]!==h?(N=n.jsxs(jt,{children:[T,h]}),t[13]=T,t[14]=h,t[15]=N):N=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==b||t[19]!==k?(A=n.jsx(M,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>S("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(M,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let L;t[26]!==A||t[27]!==O?(L=n.jsxs(_n,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=L):L=t[28];let R;t[29]!==L||t[30]!==N?(R=n.jsxs(Tt,{className:"sm:max-w-md",children:[_,N,L]}),t[29]=L,t[30]=N,t[31]=R):R=t[31];let z;return t[32]!==l||t[33]!==R?(z=n.jsx(Nt,{open:l,onOpenChange:g,children:R}),t[32]=l,t[33]=R,t[34]=z):z=t[34],z}function Gs(t){return{...t,language:"en"}}function Js(t){return{...t,language:"pt-BR"}}function Vs(t){const e=Ht(t);return typeof e=="string"?e:void 0}function Ws(){return Vs("experiment-pipeline-check"),null}function Ys(t){const e=$.c(1),{activeOrg:s}=t;if(!s)return null;Ut(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Gt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ws,{}),e[0]=r):r=e[0],r}function Qs(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,u={mainpanel:void 0};s?u.virtualmcpid=s:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,x;return a?.panel?x=a.panel:o?(x=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(u.mainpanel=o.mainpanel)):!v&&e.tabId&&!Jt(e.tabId)&&(x=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:x,search:u}}const It="studio:thread-layout:v3",Xs=50;function Lt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function Zs(t,e,s,r=Xs){const o=t.filter(([a])=>a!==e);for(o.push([e,Lt(s)]);o.length>r;)o.shift();return o}function it(){try{const t=sessionStorage.getItem(It);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Dt(t){try{sessionStorage.setItem(It,JSON.stringify(t))}catch{}}function eo(t,e){t&&Dt(Zs(it(),t,e))}function to(t){if(!t)return null;const e=it().find(([s])=>s===t);return e?Lt(e[1]):null}function Uo(t){if(!t)return;const e=it(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Dt(s)}function $t(t){return{queryKey:Ke.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Go(t){const e=$.c(10);let s;e[0]!==t?(s=$t(t),e[0]=t,e[1]=s):s=e[1];const r=Be(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function no(t){const e=$.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const u=i,m=so;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(pt,{className:"h-6 w-6 text-primary"})}),e[2]=y):y=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let x;e[7]!==o||e[8]!==r||e[9]!==a?(x=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=x):x=e[10];let p;e[11]!==x?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[11]=x,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(M,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let S;e[21]!==a?(S=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=S):S=e[22];let w;e[23]!==S?(w=n.jsx(M,{variant:"ghost",onClick:m,children:S}),e[23]=S,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==d?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,w]}),e[25]=w,e[26]=d,e[27]=b):b=e[27];let g;return e[28]!==b||e[29]!==l?(g=n.jsxs(me,{children:[y,l,b]}),e[28]=b,e[29]=l,e[30]=g):g=e[30],g}function so(){window.location.href="/"}function oo(t){const e=$.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(Vt,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let u;e[3]!==s.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let y;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(y=s.ctaUrl&&s.ctaLabel?n.jsx(M,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=y):y=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let x;e[13]!==v||e[14]!==c?(x=n.jsx(M,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=x):x=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(M,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==y||e[22]!==x?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,x,l]}),e[20]=l,e[21]=y,e[22]=x,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const io="/settings/infra-billing";function ao(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(io)}function ro(t){const e=$.c(8),{org:s,children:r}=t,a=Bn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==s||e[6]!==u?(m=n.jsx(nn,{org:s,project:u,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=m):m=e[7],m}function lo(){const t=bt(),e=Mn(),{org:s}=ot(),r=Wt({strict:!1}),o=vt(),{openPanel:a,closePanel:i}=Tn(),u=pn(),m=yn(),y=bn(),v=xn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),x=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,S)=>{const w=!!m&&m===f;m&&!w&&eo(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const b=w?null:to(f),g=Dn(s.id).id,_=Qs({prev:{virtualmcpid:u,tabId:o},virtualMcpId:d,decopilotId:g,savedLayout:b,opts:S,autosendValue:qn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:x,setTaskId:p,createNewTask:async(f,d,S)=>{const w=crypto.randomUUID(),b=f??y;try{await e?.create({id:w,virtual_mcp_id:b,...d?{branch:d}:{}})}catch{}p(w,b,S)},openTab:a,closeTab:i}}const co=new Set(["/$org/","/$org/home"]);function uo(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:mo},t[0]=e):e=t[0],xt(e)}function mo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&co.has(e)}function fo(){const t=$.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=Yt(e)?.params.org,[o,a]=V.useState(!1),[i,u]=Ds(),m=Qt(),y=uo(),v=r??"";let c;t[1]!==v?(c=$t(v),t[1]=v,t[2]=c):c=t[2];const x=!!r&&y;let p;t[3]!==c||t[4]!==x?(p={...c,enabled:x},t[3]=c,t[4]=x,t[5]=p):p=t[5],Be(p);const{data:l}=Re.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?Xt(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const S=d;let w,b;t[9]!==m?(w=()=>{const I=F=>{if(ft(F)&&F.code==="KeyK"){F.preventDefault(),Is();return}if(F.key==="?"&&!Ns(F.target)){F.preventDefault(),a(!0);return}ft(F)&&F.code==="BracketLeft"&&m.history.canGoBack()&&(F.preventDefault(),m.history.back())};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},b=[m],t[9]=m,t[10]=w,t[11]=b):(w=t[10],b=t[11]),V.useEffect(w,b);let g;t[12]!==r?(g=Ke.activeOrganization(r),t[12]=r,t[13]=g):g=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:I}=await Re.organization.getFullOrganization({query:{organizationSlug:r}}).finally(ho),F=Xe(I);return I&&!F&&localStorage.setItem($e.lastOrgSlug(),r),f&&I&&en(f,r,I),I},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=S?S.data:void 0,T=S?.updatedAt;let j;t[17]!==P||t[18]!==T||t[19]!==g||t[20]!==_?(j={queryKey:g,queryFn:_,initialData:P,initialDataUpdatedAt:T,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=T,t[19]=g,t[20]=_,t[21]=j):j=t[21];const{data:h}=yt(j),N=h?.id,k=h?.slug,{data:A}=Kn(N,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Hn(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:go},t[22]=O):O=t[22];const L=xt(O),R=C?.severity==="block"&&!ao(L),z=N??"",G=k??"";let q;t[23]!==z||t[24]!==G?(q=$n({connectionId:_t,orgId:z,orgSlug:G}),t[23]=z,t[24]=G,t[25]=q):q=t[25];const se=!!N&&!!k;let oe;if(t[26]!==q||t[27]!==se?(oe={...q,enabled:se},t[26]=q,t[27]=se,t[28]=oe):oe=t[28],Be(oe),(!h||Xe(h)||E||R)&&Ls(),!h){let I;return t[29]!==r?(I=n.jsx(ts,{orgSlug:r}),t[29]=r,t[30]=I):I=t[30],I}if(Xe(h)){localStorage.getItem($e.lastOrgSlug())===r&&localStorage.removeItem($e.lastOrgSlug());let I;return t[31]!==h.name?(I=n.jsx(Zt,{orgName:h.name}),t[31]=h.name,t[32]=I):I=t[32],I}if(R&&C){let I;return t[33]!==h.slug||t[34]!==C?(I=n.jsx(oo,{notice:C,orgSlug:h.slug}),t[33]=h.slug,t[34]=C,t[35]=I):I=t[35],I}if(E){let I;return t[36]!==h.id||t[37]!==h.name||t[38]!==h.slug||t[39]!==A.domain?(I=n.jsx(no,{orgId:h.id,orgSlug:h.slug,orgName:h.name,domain:A.domain}),t[36]=h.id,t[37]=h.name,t[38]=h.slug,t[39]=A.domain,t[40]=I):I=t[40],I}const ee=h.logo??null;let B;t[41]!==h||t[42]!==ee?(B={...h,logo:ee},t[41]=h,t[42]=ee,t[43]=B):B=t[43];let K;t[44]!==h?(K=n.jsx(Ys,{activeOrg:h}),t[44]=h,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(tn,{}),t[46]=Y):Y=t[46];let Q;t[47]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(js,{}),n.jsx(zs,{})]}),t[47]=Q):Q=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Os,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(_s,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let X;t[53]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Us,{}),t[53]=X):X=t[53];let Z;return t[54]!==B||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(ro,{org:B,children:[K,Y,Q,H,U,X]}),t[54]=B,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function go(t){return t.location.pathname}function ho(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function po(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(zn,{children:n.jsx(fo,{})}),t[0]=e):e=t[0],e}const Jo=Object.freeze(Object.defineProperty({__proto__:null,default:po,usePanelActions:lo},Symbol.toStringTag,{value:"Module"}));export{J as K,Go as a,Uo as f,ft as i,Is as o,Jo as s,lo as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DS0JrRJJ.js","assets/index-DZsx-GLV.js","assets/index-bWqcZ8bk.css","assets/Tool02-CtNw7bNe.js","assets/CheckCircle-DA8ScrFC.js","assets/Settings02-DrHeXPDm.js","assets/use-mcp-client-CT68MaZf.js","assets/auth-BVYw4FRF.js","assets/useInfiniteQuery-a-wpM9y3.js","assets/infiniteQueryObserver-CN-Yb9Nr.js","assets/badge-DaEVG-87.js","assets/input-DBkq-ui7.js","assets/dropdown-menu-BPZS68Mf.js","assets/Check-H7Mmr0MJ.js","assets/ChevronRight-DO3RC1pd.js","assets/DotsVertical-Bt-VkXeN.js","assets/table-CSLvM8dI.js","assets/toggle-group-DOqWV4T2.js","assets/use-view-mode-lhEpmryw.js","assets/Globe01-BwbIv0-p.js","assets/SearchMd-BNuJvIQD.js","assets/dialog-DTWAhfaj.js","assets/AlertCircle-U9pv2NJQ.js","assets/Download01-B_WTEIkC.js","assets/Upload01-Ct4yKwsS.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BIwJfWwl.js","assets/Trash01-DcTV6bg0.js","assets/label-XljGvqhv.js","assets/select-TX0TM16h.js","assets/ChevronUp-BP8TOpcT.js","assets/switch-BSQsnixt.js","assets/textarea-NzT1ozxc.js","assets/ArrowLeft-FEKnVEE6.js","assets/ArrowRight-YeNm0TCu.js","assets/Link01-BjYhVWwh.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-E8AiLxWP.js","assets/Eye-ikYAyCJB.js","assets/LinkExternal01-D79zgSZj.js","assets/XCircle-DyKp194a.js","assets/use-infinite-scroll-BXr_u2X1.js","assets/use-copy-BjXr_pKM.js","assets/Copy01-C3i-U8ZG.js","assets/Key01-Dfc1sl9E.js","assets/Plus-DeGsbqDF.js","assets/mcp-oauth-CkCOYpGa.js","assets/Play-DZ4DLqc8.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bl as p}from"./index-DZsx-GLV.js";import{R as u}from"./require-capability-BAWColZy.js";import"./access-gate-CH5FSeIV.js";import"./capability-load-error-D2g3S_3R.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DS0JrRJJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{c as N,r as J,j as a,l as V,B as G,G as z,a7 as U,K as H,m as X,n as se,e as Z,b as M,b4 as ie,t as q,dn as te,dp as Q,dm as oe,P as ee,dq as ue,p as ce,L as ge}from"./index-DZsx-GLV.js";import{I as Y}from"./input-DBkq-ui7.js";import{i as de}from"./Check-H7Mmr0MJ.js";import{i as me}from"./ChevronSelectorVertical--A8HrUqB.js";import{i as pe}from"./Play-DZ4DLqc8.js";import{s as xe}from"./Plus-DeGsbqDF.js";import{s as je}from"./Trash01-DcTV6bg0.js";import{a as he,c as be,d as ye,e as Se,b as ve,C as Ne}from"./command-BTB0umeF.js";import{a as _e,P as we,b as Pe}from"./popover-CugUBL2K.js";import{S as Te}from"./switch-BSQsnixt.js";import{T as le}from"./textarea-NzT1ozxc.js";import{c as Ce,d as Ae,b as Re,f as ke,g as Ie,e as Ee,a as $e,A as Oe}from"./alert-dialog-BIwJfWwl.js";import{R as De,A as Ke}from"./review-settings-Cu5Kl-yB.js";import{g as Le}from"./task-board-C6hevS_c.js";import{R as Fe}from"./require-capability-BAWColZy.js";import"./index-D3DIhOCa.js";import"./dialog-DTWAhfaj.js";import"./SearchMd-BNuJvIQD.js";import"./UserSquare-B1psP4hc.js";import"./GitBranch01-ClVrLal8.js";import"./use-organization-settings-DrMHeBOr.js";import"./use-mcp-client-CT68MaZf.js";import"./auth-BVYw4FRF.js";import"./schema-K0VPsDN5.js";import"./use-connection-BJuR4u4_.js";import"./access-gate-CH5FSeIV.js";import"./capability-load-error-D2g3S_3R.js";function Be(t){const e=N.c(41),{options:l,value:s,onChange:i,placeholder:n,triggerClassName:r,contentClassName:o,width:f,renderTrigger:m,renderItem:u,emptyMessage:c,searchPlaceholder:d,filter:g}=t,p=n===void 0?"Select...":n,b=f===void 0?"w-[200px]":f,j=c===void 0?"No results found.":c,x=d===void 0?"Search...":d;let h;e[0]!==s?(h=T=>T.value===s,e[0]=s,e[1]=h):h=e[1];const y=l.find(h),[v,S]=J.useState(!1),_=we,w=_e,C=!0,P=m?a.jsx("div",{className:V("cursor-pointer",r),children:m(y)}):a.jsxs(G,{variant:"outline",role:"combobox",className:V("justify-between",b,r),children:[y?y.label:p,a.jsx(me,{className:"opacity-50"})]});let R;e[2]!==w||e[3]!==P?(R=a.jsx(w,{asChild:C,children:P}),e[2]=w,e[3]=P,e[4]=R):R=e[4];let A;e[5]!==o?(A=V("p-0",o),e[5]=o,e[6]=A):A=e[6];let O;e[7]===Symbol.for("react.memo_cache_sentinel")?(O={width:"var(--radix-popover-trigger-width)"},e[7]=O):O=e[7];let D;e[8]!==x?(D=a.jsx(he,{placeholder:x,className:"h-9"}),e[8]=x,e[9]=D):D=e[9];let k;e[10]!==j?(k=a.jsx(be,{children:j}),e[10]=j,e[11]=k):k=e[11];let K;if(e[12]!==i||e[13]!==l||e[14]!==u||e[15]!==S||e[16]!==s){let T;e[18]!==i||e[19]!==u||e[20]!==S||e[21]!==s?(T=B=>{const ae=s===B.value;return a.jsx(ye,{value:B.label,onSelect:()=>{i(B.value===s?"":B.value),S(!1)},children:u?u(B,ae):a.jsxs(a.Fragment,{children:[B.label,a.jsx(de,{className:V("ml-auto",ae?"opacity-100":"opacity-0")})]})},B.value)},e[18]=i,e[19]=u,e[20]=S,e[21]=s,e[22]=T):T=e[22],K=l.map(T),e[12]=i,e[13]=l,e[14]=u,e[15]=S,e[16]=s,e[17]=K}else K=e[17];let I;e[23]!==K?(I=a.jsx(Se,{children:K}),e[23]=K,e[24]=I):I=e[24];let F;e[25]!==k||e[26]!==I?(F=a.jsxs(ve,{children:[k,I]}),e[25]=k,e[26]=I,e[27]=F):F=e[27];let E;e[28]!==g||e[29]!==D||e[30]!==F?(E=a.jsxs(Ne,{filter:g,children:[D,F]}),e[28]=g,e[29]=D,e[30]=F,e[31]=E):E=e[31];let $;e[32]!==E||e[33]!==A?($=a.jsx(Pe,{className:A,style:O,children:E}),e[32]=E,e[33]=A,e[34]=$):$=e[34];let L;return e[35]!==_||e[36]!==v||e[37]!==S||e[38]!==$||e[39]!==R?(L=a.jsxs(_,{open:v,onOpenChange:S,children:[R,$]}),e[35]=_,e[36]=v,e[37]=S,e[38]=$,e[39]=R,e[40]=L):L=e[40],L}function qe(t){const e=N.c(4),{size:l,className:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("path",{d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z"}),e[0]=i):i=e[0];let n;return e[1]!==s||e[2]!==l?(n=a.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:i}),e[1]=s,e[2]=l,e[3]=n):n=e[3],n}function fe(t){const e=t.projectName?.replace(/\s+/g," ").trim(),l=t.name.trim();return e?{primary:e,secondary:[l,t.projectKey].filter(Boolean).join(" · ")}:{primary:l,secondary:t.projectKey??""}}function Me(t){const{primary:e,secondary:l}=fe(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function re(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function Je(t,e){const l=re(e).trim();if(!l)return 1;const s=re(t);return l.split(/\s+/).every(i=>s.includes(i))?1:0}function ze(){const t=N.c(7),{org:e}=z(),l=U();let s;t[0]!==e.id?(s=H.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let i;t[2]!==l?(i=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=i):i=t[3];let n;return t[4]!==s||t[5]!==i?(n={queryKey:s,queryFn:i},t[4]=s,t[5]=i,t[6]=n):n=t[6],X(n)}function ne(){const t=N.c(8),{org:e}=z(),l=U(),s=se();let i;t[0]!==l?(i=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=i):i=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:H.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==i||t[6]!==n?(r={mutationFn:i,onSettled:n},t[5]=i,t[6]=n,t[7]=r):r=t[7],Z(r)}function Ue(){const t=N.c(8),{org:e}=z(),l=U(),s=se();let i;t[0]!==l?(i=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=i):i=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:H.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==i||t[6]!==n?(r={mutationFn:i,onSettled:n},t[5]=i,t[6]=n,t[7]=r):r=t[7],Z(r)}function Ge(t){const e=N.c(8),{org:l}=z(),s=U();let i;e[0]!==l.id?(i=H.jiraBoards(l.id),e[0]=l.id,e[1]=i):i=e[1];let n;e[2]!==s?(n=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=n):n=e[3];let r;return e[4]!==t||e[5]!==i||e[6]!==n?(r={queryKey:i,enabled:t,staleTime:6e4,queryFn:n},e[4]=t,e[5]=i,e[6]=n,e[7]=r):r=e[7],X(r)}function He(t){const e=N.c(10),{org:l}=z(),s=U();let i;e[0]!==t||e[1]!==l.id?(i=H.jiraBoardColumns(l.id,t),e[0]=t,e[1]=l.id,e[2]=i):i=e[2];const n=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==i||e[7]!==n||e[8]!==r?(o={queryKey:i,enabled:n,staleTime:6e4,queryFn:r},e[6]=i,e[7]=n,e[8]=r,e[9]=o):o=e[9],X(o)}function Qe(){const t=N.c(7),{org:e}=z(),l=U();let s;t[0]!==e.id?(s=H.jiraAutomations(e.id),t[0]=e.id,t[1]=s):s=t[1];let i;t[2]!==l?(i=async()=>(await l.call("JIRA_AUTOMATION_LIST",{})).automations,t[2]=l,t[3]=i):i=t[3];let n;return t[4]!==s||t[5]!==i?(n={queryKey:s,queryFn:i},t[4]=s,t[5]=i,t[6]=n):n=t[6],X(n)}function We(){const t=N.c(8),{org:e}=z(),l=U(),s=se();let i;t[0]!==l?(i=async o=>{if(o.prompt===null){await l.call("JIRA_AUTOMATION_DELETE",{jiraStatus:o.jiraStatus});return}await l.call("JIRA_AUTOMATION_UPSERT",{jiraStatus:o.jiraStatus,prompt:o.prompt.trim()===""?void 0:o.prompt})},t[0]=l,t[1]=i):i=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:H.jiraAutomations(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==i||t[6]!==n?(r={mutationFn:i,onSettled:n},t[5]=i,t[6]=n,t[7]=r):r=t[7],Z(r)}function Ve(){const t=N.c(2),e=U();let l;return t[0]!==e?(l={mutationFn:s=>e.call("JIRA_RUN_START",s)},t[0]=e,t[1]=l):l=t[1],Z(l)}function Ye(){const t=N.c(12),{org:e}=z(),l=U();let s;t[0]!==e.id?(s=H.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let i;t[2]!==l?(i=async()=>(await l.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=l,t[3]=i):i=t[3];let n;t[4]!==s||t[5]!==i?(n={queryKey:s,staleTime:6e4,queryFn:i},t[4]=s,t[5]=i,t[6]=n):n=t[6];const r=X(n);let o;t[7]!==r.data?(o=r.data?.find(Xe)?.prompt??"",t[7]=r.data,t[8]=o):o=t[8];let f;return t[9]!==r.isPending||t[10]!==o?(f={prompt:o,isPending:r.isPending},t[9]=r.isPending,t[10]=o,t[11]=f):f=t[11],f}function Xe(t){return t.columnKey===null}function Ze(){const t=N.c(8),{org:e}=z(),l=U(),s=se();let i;t[0]!==l?(i=async o=>{const f=o.trim();if(!f){await l.call("TASK_BOARD_PROMPT_DELETE",{});return}await l.call("TASK_BOARD_PROMPT_UPSERT",{prompt:f})},t[0]=l,t[1]=i):i=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:H.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==i||t[6]!==n?(r={mutationFn:i,onSettled:n},t[5]=i,t[6]=n,t[7]=r):r=t[7],Z(r)}function et(){const t=N.c(16),e=M(),{prompt:l,isPending:s}=Ye(),i=Ze(),[n,r]=J.useState(l),[o,f]=J.useState(l);o!==l&&(f(l),r(l));let m;t[0]!==e?(m=e("settings.taskPrompt.title"),t[0]=e,t[1]=m):m=t[1];let u;t[2]!==e?(u=e("settings.taskPrompt.fieldLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==n||t[5]!==s||t[6]!==l||t[7]!==i||t[8]!==e?(c=s?a.jsx(ie,{className:"h-44 w-full"}):a.jsxs("div",{className:"flex flex-col items-start gap-2",children:[a.jsx(le,{value:n,rows:10,maxLength:Le,placeholder:e("settings.taskPrompt.placeholder"),onChange:p=>r(p.target.value)}),a.jsx(G,{size:"sm",disabled:n===l||i.isPending,onClick:()=>i.mutate(n,{onSuccess:()=>q.success(e("settings.taskPrompt.saved")),onError:()=>q.error(e("settings.taskPrompt.failed"))}),children:e("settings.taskPrompt.save")})]}),t[4]=n,t[5]=s,t[6]=l,t[7]=i,t[8]=e,t[9]=c):c=t[9];let d;t[10]!==u||t[11]!==c?(d=a.jsx(te,{children:a.jsx(Q,{title:u,children:c})}),t[10]=u,t[11]=c,t[12]=d):d=t[12];let g;return t[13]!==m||t[14]!==d?(g=a.jsx(oe,{title:m,children:d}),t[13]=m,t[14]=d,t[15]=g):g=t[15],g}function W(t,e){return t instanceof Error?t.message:e}const tt="https://id.atlassian.com/manage-profile/security/api-tokens";function st(t){const e=N.c(7),{stepKeys:l}=t,s=M();let i;if(e[0]!==l||e[1]!==s){let r;e[3]!==s?(r=o=>a.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],i=l.map(r),e[0]=l,e[1]=s,e[2]=i}else i=e[2];let n;return e[5]!==i?(n=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:i}),e[5]=i,e[6]=n):n=e[6],n}function it(){const t=N.c(69),e=M(),l=ne(),[s,i]=J.useState(""),[n,r]=J.useState(""),[o,f]=J.useState("");let m;t[0]!==o||t[1]!==n||t[2]!==s?(m=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=m):m=t[3];const u=m;let c;t[4]!==e?(c=e("settings.jira.siteLabel"),t[4]=e,t[5]=c):c=t[5];let d;t[6]!==c?(d=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:c}),t[6]=c,t[7]=d):d=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=B=>i(B.target.value),t[8]=g):g=t[8];let p;t[9]!==e?(p=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=p):p=t[10];let b;t[11]!==s||t[12]!==p?(b=a.jsx(Y,{value:s,onChange:g,placeholder:p,autoComplete:"off"}),t[11]=s,t[12]=p,t[13]=b):b=t[13];let j;t[14]!==d||t[15]!==b?(j=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,b]}),t[14]=d,t[15]=b,t[16]=j):j=t[16];let x;t[17]!==e?(x=e("settings.jira.emailLabel"),t[17]=e,t[18]=x):x=t[18];let h;t[19]!==x?(h=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:x}),t[19]=x,t[20]=h):h=t[20];let y;t[21]===Symbol.for("react.memo_cache_sentinel")?(y=B=>r(B.target.value),t[21]=y):y=t[21];let v;t[22]!==e?(v=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=v):v=t[23];let S;t[24]!==n||t[25]!==v?(S=a.jsx(Y,{value:n,onChange:y,placeholder:v,autoComplete:"off"}),t[24]=n,t[25]=v,t[26]=S):S=t[26];let _;t[27]!==S||t[28]!==h?(_=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,S]}),t[27]=S,t[28]=h,t[29]=_):_=t[29];let w;t[30]!==e?(w=e("settings.jira.tokenLabel"),t[30]=e,t[31]=w):w=t[31];let C;t[32]!==w?(C=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:w}),t[32]=w,t[33]=C):C=t[33];let P;t[34]!==e?(P=e("settings.jira.createTokenLink"),t[34]=e,t[35]=P):P=t[35];let R;t[36]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ce,{size:12}),t[36]=R):R=t[36];let A;t[37]!==P?(A=a.jsxs("a",{href:tt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[P,R]}),t[37]=P,t[38]=A):A=t[38];let O;t[39]!==C||t[40]!==A?(O=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[C,A]}),t[39]=C,t[40]=A,t[41]=O):O=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=B=>f(B.target.value),t[42]=D):D=t[42];let k;t[43]!==e?(k=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=k):k=t[44];let K;t[45]!==o||t[46]!==k?(K=a.jsx(Y,{type:"password",value:o,onChange:D,placeholder:k,autoComplete:"off"}),t[45]=o,t[46]=k,t[47]=K):K=t[47];let I;t[48]!==O||t[49]!==K?(I=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[O,K]}),t[48]=O,t[49]=K,t[50]=I):I=t[50];const F=!u||l.isPending;let E;t[51]!==o||t[52]!==n||t[53]!==s||t[54]!==e||t[55]!==l?(E=()=>l.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>q.success(e("settings.jira.connected")),onError:B=>q.error(W(B,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=n,t[53]=s,t[54]=e,t[55]=l,t[56]=E):E=t[56];let $;t[57]!==e||t[58]!==l.isPending?($=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=$):$=t[59];let L;t[60]!==F||t[61]!==E||t[62]!==$?(L=a.jsx(G,{size:"sm",className:"w-fit",disabled:F,onClick:E,children:$}),t[60]=F,t[61]=E,t[62]=$,t[63]=L):L=t[63];let T;return t[64]!==_||t[65]!==I||t[66]!==L||t[67]!==j?(T=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[j,_,I,L]}),t[64]=_,t[65]=I,t[66]=L,t[67]=j,t[68]=T):T=t[68],T}function lt(t){const e=N.c(44),{integration:l}=t,s=M(),i=Ue(),[n,r]=J.useState(!1),o=l.siteUrl,f=l.email;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>r(!0),e[0]=m):m=e[0];let u;e[1]!==s?(u=s("settings.jira.disconnect"),e[1]=s,e[2]=u):u=e[2];let c;e[3]!==u?(c=a.jsx(G,{variant:"outline",size:"sm",onClick:m,children:u}),e[3]=u,e[4]=c):c=e[4];let d;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==c?(d=a.jsx(Q,{title:o,description:f,action:c}),e[5]=l.email,e[6]=l.siteUrl,e[7]=c,e[8]=d):d=e[8];let g;e[9]!==s?(g=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=g):g=e[10];let p;e[11]!==g?(p=a.jsx(Ce,{children:g}),e[11]=g,e[12]=p):p=e[12];let b;e[13]!==s?(b=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=b):b=e[14];let j;e[15]!==b?(j=a.jsx(Ae,{children:b}),e[15]=b,e[16]=j):j=e[16];let x;e[17]!==j||e[18]!==p?(x=a.jsxs(Re,{children:[p,j]}),e[17]=j,e[18]=p,e[19]=x):x=e[19];let h;e[20]!==s?(h=s("settings.jira.cancel"),e[20]=s,e[21]=h):h=e[21];let y;e[22]!==h?(y=a.jsx(ke,{children:h}),e[22]=h,e[23]=y):y=e[23];let v;e[24]!==i||e[25]!==s?(v=()=>i.mutate(void 0,{onSuccess:()=>q.success(s("settings.jira.disconnected")),onError:A=>q.error(W(A,s("settings.jira.saveFailed")))}),e[24]=i,e[25]=s,e[26]=v):v=e[26];let S;e[27]!==s?(S=s("settings.jira.disconnect"),e[27]=s,e[28]=S):S=e[28];let _;e[29]!==v||e[30]!==S?(_=a.jsx(Ie,{onClick:v,children:S}),e[29]=v,e[30]=S,e[31]=_):_=e[31];let w;e[32]!==y||e[33]!==_?(w=a.jsxs(Ee,{children:[y,_]}),e[32]=y,e[33]=_,e[34]=w):w=e[34];let C;e[35]!==x||e[36]!==w?(C=a.jsxs($e,{children:[x,w]}),e[35]=x,e[36]=w,e[37]=C):C=e[37];let P;e[38]!==n||e[39]!==C?(P=a.jsx(Oe,{open:n,onOpenChange:r,children:C}),e[38]=n,e[39]=C,e[40]=P):P=e[40];let R;return e[41]!==P||e[42]!==d?(R=a.jsxs(a.Fragment,{children:[d,P]}),e[41]=P,e[42]=d,e[43]=R):R=e[43],R}function nt(t){const e=N.c(36),{integration:l}=t,s=M(),i=ne(),n=Ge(!0);let r,o;e[0]!==n.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(n.data??[]).map(rt),o=l.boardId?r.find(y=>y.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=n.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const f=o;let m;e[5]!==s?(m=s("settings.jira.boardLabel"),e[5]=s,e[6]=m):m=e[6];let u;e[7]!==s?(u=s("settings.jira.boardDescription"),e[7]=s,e[8]=u):u=e[8];const c=l.boardId??"";let d;e[9]!==s?(d=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=d):d=e[10];let g;e[11]!==s?(g=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=g):g=e[12];let p;e[13]!==n.isPending||e[14]!==s?(p=n.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=n.isPending,e[14]=s,e[15]=p):p=e[15];let b;e[16]!==f||e[17]!==s?(b=()=>a.jsxs(G,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:f??s("settings.jira.boardPlaceholder")}),a.jsx(me,{className:"opacity-50 shrink-0"})]}),e[16]=f,e[17]=s,e[18]=b):b=e[18];let j;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==i?(j=y=>{!y||y===l.boardId||i.mutate({boardId:y,boardName:r.find(v=>v.value===y)?.primary??null},{onError:v=>q.error(W(v,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=i,e[23]=j):j=e[23];let x;e[24]!==r||e[25]!==c||e[26]!==d||e[27]!==g||e[28]!==p||e[29]!==b||e[30]!==j?(x=a.jsx(Be,{options:r,value:c,width:"w-72",triggerClassName:"shrink-0",placeholder:d,searchPlaceholder:g,filter:Je,emptyMessage:p,renderTrigger:b,renderItem:at,onChange:j}),e[24]=r,e[25]=c,e[26]=d,e[27]=g,e[28]=p,e[29]=b,e[30]=j,e[31]=x):x=e[31];let h;return e[32]!==x||e[33]!==m||e[34]!==u?(h=a.jsx(Q,{title:m,description:u,action:x}),e[32]=x,e[33]=m,e[34]=u,e[35]=h):h=e[35],h}function at(t,e){return a.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate",children:t.primary}),a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),a.jsx(de,{className:V("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function rt(t){const{primary:e,secondary:l}=fe(t);return{value:String(t.id),label:Me(t),primary:e,secondary:l}}function ot(t){const e=N.c(30),{boardId:l}=t,s=M(),i=He(l),n=Qe();let r;if(i.isPending||n.isPending){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ie,{className:"h-40 w-full"}),e[0]=c):c=e[0],r=c}else if(i.isError){let c;e[1]!==s?(c=s("settings.jira.columnsFailed"),e[1]=s,e[2]=c):c=e[2];let d;e[3]!==c?(d=a.jsx("p",{className:"text-xs text-muted-foreground",children:c}),e[3]=c,e[4]=d):d=e[4],r=d}else if((i.data??[]).length===0){let c;e[5]!==s?(c=s("settings.jira.noColumnsYet"),e[5]=s,e[6]=c):c=e[6];let d;e[7]!==c?(d=a.jsx("p",{className:"text-xs text-muted-foreground",children:c}),e[7]=c,e[8]=d):d=e[8],r=d}else{let c;e[9]!==n.data?(c=new Map((n.data??[]).map(ct)),e[9]=n.data,e[10]=c):c=e[10];const d=c;let g;e[11]!==i.data?(g=i.data??[],e[11]=i.data,e[12]=g):g=e[12];let p;if(e[13]!==d||e[14]!==g){let j;e[16]!==d?(j=x=>x.statuses.map(h=>a.jsx(dt,{columnName:x.name,status:h,showStatus:h!==x.name||x.statuses.length>1,hasAutomation:d.has(h),prompt:d.get(h)??null},`${x.name}:${h}`)),e[16]=d,e[17]=j):j=e[17],p=g.flatMap(j),e[13]=d,e[14]=g,e[15]=p}else p=e[15];let b;e[18]!==p?(b=a.jsx("div",{className:"flex w-full flex-col gap-3",children:p}),e[18]=p,e[19]=b):b=e[19],r=b}let o;e[20]!==s?(o=s("settings.jira.automationsLabel"),e[20]=s,e[21]=o):o=e[21];let f;e[22]!==s?(f=s("settings.jira.automationsDescription"),e[22]=s,e[23]=f):f=e[23];let m;e[24]!==r?(m=a.jsx("div",{className:"mt-3",children:r}),e[24]=r,e[25]=m):m=e[25];let u;return e[26]!==o||e[27]!==f||e[28]!==m?(u=a.jsx(Q,{title:o,description:f,children:m}),e[26]=o,e[27]=f,e[28]=m,e[29]=u):u=e[29],u}function ct(t){return[t.jiraStatus,t.prompt]}function dt(t){const e=N.c(22),{columnName:l,status:s,showStatus:i,hasAutomation:n,prompt:r}=t,o=M(),f=We(),[m,u]=J.useState(r??""),[c,d]=J.useState(r);c!==r&&(d(r),u(r??""));let g;e[0]!==f||e[1]!==s||e[2]!==o?(g=v=>f.mutate({jiraStatus:s,prompt:v},{onError:S=>q.error(W(S,o("settings.jira.saveFailed")))}),e[0]=f,e[1]=s,e[2]=o,e[3]=g):g=e[3];const p=g;let b;e[4]!==l?(b=a.jsx("span",{className:"truncate text-sm font-medium",children:l}),e[4]=l,e[5]=b):b=e[5];let j;e[6]!==i||e[7]!==s?(j=i&&a.jsx("span",{className:"truncate text-xs text-muted-foreground",children:s}),e[6]=i,e[7]=s,e[8]=j):j=e[8];let x;e[9]!==b||e[10]!==j?(x=a.jsxs("div",{className:"flex flex-col min-w-0",children:[b,j]}),e[9]=b,e[10]=j,e[11]=x):x=e[11];let h;e[12]!==m||e[13]!==n||e[14]!==r||e[15]!==p||e[16]!==s||e[17]!==o?(h=n?a.jsxs("div",{className:"flex flex-col gap-2 rounded-lg bg-muted/40 p-2.5",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-xs font-medium",children:o("settings.jira.automationOn")}),a.jsx(G,{variant:"ghost",size:"sm","aria-label":o("settings.jira.removeAriaLabel",{status:s}),onClick:()=>p(null),children:a.jsx(je,{size:14})})]}),a.jsx(le,{value:m,rows:2,placeholder:o("settings.jira.promptPlaceholder"),onChange:v=>u(v.target.value),onBlur:()=>{m!==(r??"")&&p(m)},"data-jira-automation-prompt":s}),a.jsx("p",{className:"text-xs text-muted-foreground",children:o("settings.jira.promptHelp")})]}):a.jsxs(G,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>p(""),children:[a.jsx(xe,{size:14}),o("settings.jira.addAutomation")]}),e[12]=m,e[13]=n,e[14]=r,e[15]=p,e[16]=s,e[17]=o,e[18]=h):h=e[18];let y;return e[19]!==x||e[20]!==h?(y=a.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-border p-3",children:[x,h]}),e[19]=x,e[20]=h,e[21]=y):y=e[21],y}function mt(){const t=N.c(67),e=M(),{org:l}=z(),s=Ve(),[i,n]=J.useState(""),[r,o]=J.useState("");let f;t[0]!==i||t[1]!==s.isPending?(f=i.trim()!==""&&!s.isPending,t[0]=i,t[1]=s.isPending,t[2]=f):f=t[2];const m=f;let u;t[3]!==m||t[4]!==i||t[5]!==r||t[6]!==s||t[7]!==e?(u=()=>{m&&s.mutate({issueKey:i.trim(),prompt:r.trim()===""?null:r.trim()},{onSuccess:T=>q.success(T.supersededThreadIds.length>0?e("settings.jira.testRunTookOver",{issueKey:T.issueKey}):e("settings.jira.testRunStarted",{issueKey:T.issueKey})),onError:T=>q.error(W(T,e("settings.jira.testRunFailed")))})},t[3]=m,t[4]=i,t[5]=r,t[6]=s,t[7]=e,t[8]=u):u=t[8];const c=u;let d;t[9]!==e?(d=e("settings.jira.testRunLabel"),t[9]=e,t[10]=d):d=t[10];let g;t[11]!==e?(g=e("settings.jira.testRunDescription"),t[11]=e,t[12]=g):g=t[12];let p;t[13]===Symbol.for("react.memo_cache_sentinel")?(p=T=>n(T.target.value),t[13]=p):p=t[13];let b;t[14]!==c?(b=T=>{T.key==="Enter"&&c()},t[14]=c,t[15]=b):b=t[15];let j;t[16]!==e?(j=e("settings.jira.testRunIssuePlaceholder"),t[16]=e,t[17]=j):j=t[17];let x;t[18]!==e?(x=e("settings.jira.testRunIssueAriaLabel"),t[18]=e,t[19]=x):x=t[19];let h;t[20]!==i||t[21]!==b||t[22]!==j||t[23]!==x?(h=a.jsx(Y,{value:i,onChange:p,onKeyDown:b,placeholder:j,"aria-label":x,className:"max-w-56 font-mono text-xs",autoComplete:"off"}),t[20]=i,t[21]=b,t[22]=j,t[23]=x,t[24]=h):h=t[24];const y=!m;let v;t[25]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(pe,{size:14}),t[25]=v):v=t[25];let S;t[26]!==s.isPending||t[27]!==e?(S=s.isPending?e("settings.jira.testRunRunning"):e("settings.jira.testRun"),t[26]=s.isPending,t[27]=e,t[28]=S):S=t[28];let _;t[29]!==c||t[30]!==S||t[31]!==y?(_=a.jsxs(G,{size:"sm",className:"shrink-0",disabled:y,onClick:c,children:[v,S]}),t[29]=c,t[30]=S,t[31]=y,t[32]=_):_=t[32];let w;t[33]!==_||t[34]!==h?(w=a.jsxs("div",{className:"flex items-start gap-2",children:[h,_]}),t[33]=_,t[34]=h,t[35]=w):w=t[35];let C;t[36]!==e?(C=e("settings.jira.promptPlaceholder"),t[36]=e,t[37]=C):C=t[37];let P;t[38]!==e?(P=e("settings.jira.testRunPromptAriaLabel"),t[38]=e,t[39]=P):P=t[39];let R;t[40]===Symbol.for("react.memo_cache_sentinel")?(R=T=>o(T.target.value),t[40]=R):R=t[40];let A;t[41]!==r||t[42]!==C||t[43]!==P?(A=a.jsx(le,{value:r,rows:2,placeholder:C,"aria-label":P,onChange:R}),t[41]=r,t[42]=C,t[43]=P,t[44]=A):A=t[44];let O;t[45]!==e?(O=e("settings.jira.testRunHelp"),t[45]=e,t[46]=O):O=t[46];let D;t[47]!==O?(D=a.jsx("p",{className:"text-xs text-muted-foreground",children:O}),t[47]=O,t[48]=D):D=t[48];let k;t[49]!==l.slug?(k={org:l.slug},t[49]=l.slug,t[50]=k):k=t[50];let K;t[51]===Symbol.for("react.memo_cache_sentinel")?(K={tab:"threads"},t[51]=K):K=t[51];let I;t[52]!==e?(I=e("settings.jira.testRunWatch"),t[52]=e,t[53]=I):I=t[53];let F;t[54]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ce,{size:12}),t[54]=F):F=t[54];let E;t[55]!==k||t[56]!==I?(E=a.jsxs(ge,{to:"/$org/settings/monitor",params:k,search:K,className:"flex w-fit items-center gap-1 text-xs text-muted-foreground underline hover:text-foreground",children:[I,F]}),t[55]=k,t[56]=I,t[57]=E):E=t[57];let $;t[58]!==w||t[59]!==A||t[60]!==D||t[61]!==E?($=a.jsxs("div",{className:"mt-3 flex w-full flex-col gap-3",children:[w,A,D,E]}),t[58]=w,t[59]=A,t[60]=D,t[61]=E,t[62]=$):$=t[62];let L;return t[63]!==d||t[64]!==$||t[65]!==g?(L=a.jsx(Q,{title:d,description:g,children:$}),t[63]=d,t[64]=$,t[65]=g,t[66]=L):L=t[66],L}function ft(t){const e=N.c(16),{integration:l}=t,s=M(),i=ne();let n;e[0]!==s?(n=s("settings.jira.enabledLabel"),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==s?(r=s("settings.jira.enabledDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l.boardId||e[5]!==s||e[6]!==i?(o=u=>{if(u&&!l.boardId){q.error(s("settings.jira.enableRequirements"));return}i.mutate({enabled:u},{onError:c=>q.error(W(c,s("settings.jira.saveFailed")))})},e[4]=l.boardId,e[5]=s,e[6]=i,e[7]=o):o=e[7];let f;e[8]!==l.enabled||e[9]!==o||e[10]!==i.isPending?(f=a.jsx(Te,{checked:l.enabled,disabled:i.isPending,onCheckedChange:o}),e[8]=l.enabled,e[9]=o,e[10]=i.isPending,e[11]=f):f=e[11];let m;return e[12]!==n||e[13]!==r||e[14]!==f?(m=a.jsx(Q,{title:n,description:r,action:f}),e[12]=n,e[13]=r,e[14]=f,e[15]=m):m=e[15],m}function ut(t){const e=N.c(24),{integration:l}=t,s=M(),i=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let n;e[0]!==s?(n=s("settings.jira.webhookTitle"),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==i?(o=a.jsx(Y,{readOnly:!0,value:i,className:"font-mono text-xs"}),e[4]=i,e[5]=o):o=e[5];let f;e[6]!==s||e[7]!==i?(f=()=>{navigator.clipboard.writeText(i),q.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=i,e[8]=f):f=e[8];let m;e[9]!==s?(m=s("settings.jira.webhookCopy"),e[9]=s,e[10]=m):m=e[10];let u;e[11]!==f||e[12]!==m?(u=a.jsx(G,{variant:"outline",size:"sm",className:"shrink-0",onClick:f,children:m}),e[11]=f,e[12]=m,e[13]=u):u=e[13];let c;e[14]!==o||e[15]!==u?(c=a.jsxs("div",{className:"flex items-center gap-2",children:[o,u]}),e[14]=o,e[15]=u,e[16]=c):c=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(st,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=d):d=e[17];let g;e[18]!==c?(g=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[c,d]}),e[18]=c,e[19]=g):g=e[19];let p;return e[20]!==n||e[21]!==r||e[22]!==g?(p=a.jsx(Q,{title:n,description:r,children:g}),e[20]=n,e[21]=r,e[22]=g,e[23]=p):p=e[23],p}function gt(){const t=N.c(24),e=M(),l=ze();if(l.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(te,{children:a.jsx("div",{className:"p-4",children:a.jsx(ie,{className:"h-40 w-full"})})}),t[0]=c):c=t[0],c}if(!l.data){let c;t[1]!==e?(c=e("settings.jira.connectTitle"),t[1]=e,t[2]=c):c=t[2];let d;t[3]!==e?(d=e("settings.jira.connectDescription"),t[3]=e,t[4]=d):d=t[4];let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(it,{}),t[5]=g):g=t[5];let p;return t[6]!==c||t[7]!==d?(p=a.jsx(te,{children:a.jsx(Q,{title:c,description:d,children:g})}),t[6]=c,t[7]=d,t[8]=p):p=t[8],p}const s=l.data;let i,n;t[9]!==s?(i=a.jsx(lt,{integration:s}),n=a.jsx(nt,{integration:s}),t[9]=s,t[10]=i,t[11]=n):(i=t[10],n=t[11]);let r;t[12]!==s.boardId?(r=s.boardId&&a.jsx(ot,{boardId:s.boardId}),t[12]=s.boardId,t[13]=r):r=t[13];let o;t[14]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(mt,{}),t[14]=o):o=t[14];let f,m;t[15]!==s?(f=a.jsx(ft,{integration:s}),m=a.jsx(ut,{integration:s}),t[15]=s,t[16]=f,t[17]=m):(f=t[16],m=t[17]);let u;return t[18]!==i||t[19]!==n||t[20]!==r||t[21]!==f||t[22]!==m?(u=a.jsxs(te,{children:[i,n,r,o,f,m]}),t[18]=i,t[19]=n,t[20]=r,t[21]=f,t[22]=m,t[23]=u):u=t[23],u}function pt(){const t=N.c(18),e=M();let l;t[0]!==e?(l=e("settings.nav.tasks"),t[0]=e,t[1]=l):l=t[1];let s;t[2]!==l?(s=a.jsx(ee.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let i,n,r;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(De,{}),n=a.jsx(et,{}),r=a.jsx(Ke,{}),t[4]=i,t[5]=n,t[6]=r):(i=t[4],n=t[5],r=t[6]);let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(qe,{size:18}),t[7]=o):o=t[7];let f;t[8]!==e?(f=e("settings.jira.sectionTitle"),t[8]=e,t[9]=f):f=t[9];let m;t[10]!==f?(m=a.jsxs("span",{className:"flex items-center gap-2",children:[o,f]}),t[10]=f,t[11]=m):m=t[11];let u;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(gt,{}),t[12]=u):u=t[12];let c;t[13]!==m?(c=a.jsx(oe,{title:m,children:u}),t[13]=m,t[14]=c):c=t[14];let d;return t[15]!==s||t[16]!==c?(d=a.jsx(ee,{children:a.jsx(ee.Content,{children:a.jsx(ee.Body,{children:a.jsxs(ue,{children:[s,i,n,r,c]})})})}),t[15]=s,t[16]=c,t[17]=d):d=t[17],d}function Jt(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Fe,{capability:"org:manage",area:"settings",children:a.jsx(pt,{})}),t[0]=e):e=t[0],e}export{Jt as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-CN-Yb9Nr.js";import{fc as i}from"./index-DZsx-GLV.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-CN-Yb9Nr.js";import{fc as u,bT as n}from"./index-DZsx-GLV.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +0,0 @@
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-DZsx-GLV.js";import{z as gt,a5 as at,aF as bt}from"./agent-icon-CnnQSswm.js";import{i as vt}from"./ChevronRight-DO3RC1pd.js";import{L as yt}from"./label-XljGvqhv.js";import{S as lt}from"./scroll-area-BtEw-0mL.js";import{S as jt}from"./switch-BSQsnixt.js";import{V as Tt}from"./view-mode-toggle-Djyfw1v1.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-DhYXykaq.js";import"./AlertCircle-U9pv2NJQ.js";import"./Tool01-CyDReH3q.js";import"./ArrowUp-zrcAFzEu.js";import"./ArrowLeft-FEKnVEE6.js";import"./Tool02-CtNw7bNe.js";import"./ArrowRight-YeNm0TCu.js";import"./TrendUp01-ClNnKXkn.js";import"./ZoomOut-CqfoYky-.js";import"./Users03-D6zVISLF.js";import"./CheckCircle-DA8ScrFC.js";import"./Check-H7Mmr0MJ.js";import"./ChevronUp-BP8TOpcT.js";import"./ChevronSelectorVertical--A8HrUqB.js";import"./DotsVertical-Bt-VkXeN.js";import"./UserSquare-B1psP4hc.js";import"./Copy01-C3i-U8ZG.js";import"./CreditCard01-CNl0cUX6.js";import"./Download01-B_WTEIkC.js";import"./Settings02-DrHeXPDm.js";import"./Eye-ikYAyCJB.js";import"./Share07-BDAimDHi.js";import"./GitBranch01-ClVrLal8.js";import"./Globe01-BwbIv0-p.js";import"./XClose-McE2ySi-.js";import"./HardDrive-CXyeDYVm.js";import"./Image01-EEtalrwj.js";import"./Key01-Dfc1sl9E.js";import"./Link01-BjYhVWwh.js";import"./LinkExternal01-D79zgSZj.js";import"./Monitor01-CcAhoL31.js";import"./Sun-bCSbt1Ff.js";import"./Package-1FrUQ_EG.js";import"./Palette-BixW1ssS.js";import"./Play-DZ4DLqc8.js";import"./Plus-DeGsbqDF.js";import"./SearchMd-BNuJvIQD.js";import"./Shield01-DnbggGAu.js";import"./Stars01-DoidW0k0.js";import"./Trash01-DcTV6bg0.js";import"./Upload01-Ct4yKwsS.js";import"./User01-QYqaP7k3.js";import"./Users01-CiWVH62V.js";import"./XCircle-DyKp194a.js";import"./Zap-nYGNb9hC.js";import"./select-TX0TM16h.js";import"./chat-context-BvcjAKGC.js";import"./use-panel-navigate-DscHtGsE.js";import"./use-destination-route-DE7DNG84.js";import"./autosend-CxKrnLl5.js";import"./thread-intent-CRKQoXCi.js";import"./slugify-CEUa2lfQ.js";import"./hooks-Bj0aWBZV.js";import"./use-mcp-client-CT68MaZf.js";import"./auth-BVYw4FRF.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-AajGLnoQ.js";import"./task-board-C6hevS_c.js";import"./schema-K0VPsDN5.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BXbxVipJ.js";import"./use-ai-providers-BSKIayEv.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DWrIyAdA.js";import"./thread-route-BVfQR44p.js";import"./dialog-DTWAhfaj.js";import"./use-organization-settings-DrMHeBOr.js";import"./automation-runs-DI-xL2M5.js";import"./useInfiniteQuery-a-wpM9y3.js";import"./infiniteQueryObserver-CN-Yb9Nr.js";import"./use-connection-BJuR4u4_.js";import"./table-CSLvM8dI.js";import"./empty-state-5b6uGere.js";import"./use-infinite-scroll-BXr_u2X1.js";import"./use-members-DJJCMnU7.js";import"./use-org-auth-client-DzA-vkZA.js";import"./use-automations-DIpGUZTg.js";import"./useSuspenseInfiniteQuery-WUmm_LeP.js";import"./avatar-C8Mb6TNg.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-BjXr_pKM.js";import"./markdown-C6BHxHIr.js";import"./monaco-editor-DUfjWmCH.js";import"./editor-D74qHqnA.js";import"./mcp-app-renderer-BhcjOn-v.js";import"./types-DTNV26Po.js";import"./shell-layout-jfh4uwOT.js";import"./project-icon-D9jBx1Lh.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-BTB0umeF.js";import"./index-D3DIhOCa.js";import"./required-auth-layout-D_4lUDFj.js";import"./use-org-sso-CzPpWIQr.js";import"./use-org-notice-DJYgAFPy.js";import"./integration-icon-CoQDsKMQ.js";import"./use-navigate-to-agent-COZVNK2u.js";import"./use-mcp-prompts-Bfyb41qd.js";import"./form-BbWAigc0.js";import"./input-DBkq-ui7.js";import"./file-type-icon-CKa9k4Eo.js";import"./drawer-BksB5Qvf.js";import"./collection-search-BFuAKML3.js";import"./tabs-BvOQpnly.js";import"./toggle-group-DOqWV4T2.js";import"./task-route-Dl0AbbvO.js";import"./extract-connection-data-CTWz8EOk.js";import"./metadata-dUsYcpuu.js";import"./connection-lcMS2LdS.js";import"./connection-card-Elfgtygk.js";import"./use-registry-connections-CFql8C6x.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-NzT1ozxc.js";import"./connection-form-helpers-M1vgWgMZ.js";import"./authenticate-and-persist-oauth-B1Xd_JVd.js";import"./mcp-oauth-CkCOYpGa.js";import"./collection-tabs-jnYmxyBx.js";import"./badge-DaEVG-87.js";import"./use-file-configs-B12Bgu3Z.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BPZS68Mf.js";import"./popover-CugUBL2K.js";import"./github-icon-D3DXPILS.js";import"./get-initials-D-f_fDFw.js";import"./select-model-aeACLtyd.js";import"./checkbox-E8AiLxWP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-EabOWuN5.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-L30GUs7u.js";import"./toolbar-DU14MGQo.js";import"./use-mcp-tools-DeRZ-3eb.js";import"./skill-preview-DmcbNeFW.js";import"./use-date-fns-locale-DQ9VKYwt.js";import"./alert-dialog-BIwJfWwl.js";import"./use-debounced-autosave-RrEYWg_V.js";import"./search-input-DVFSQDiL.js";import"./use-mcp-auth-status-BPLGrU-q.js";import"./repository-import-picker-DRmwXY_Z.js";import"./repository-picker-BVGd2Z5t.js";import"./use-debounced-value-B_8t2ZDh.js";import"./use-secrets-CNGepf_x.js";import"./client-icons-BiGI-rVs.js";import"./connect-layout-B8tnAWgZ.js";import"./self-tool-result-Bbk6LNdT.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CGYLX8Er.js";import"./use-tags-O7Ozj_kd.js";import"./breadcrumb-DCFVI-vF.js";import"./toolbar-icon-button-5CxdQ2TT.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-qgJpJ0m6.js";import"./site-error--i37Vnuw.js";import"./cards-CTM3PZ_9.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 ln(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{ln as VariantCalendar};