decocms 4.320.0 → 4.321.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 (257) hide show
  1. package/dist/client/assets/{AlertCircle-DZjE_Y0H.js → AlertCircle-DTA-xmN8.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DIFD2336.js → AreaChart-DWzH4cl2.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BsR-6m6j.js → ArrowLeft-DJHyaGVg.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-UBHjzAp-.js → ArrowUp-B56zz92l.js} +1 -1
  5. package/dist/client/assets/{Check-CA6oOwnk.js → Check-yANPvlWH.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BaphLiUh.js → CheckCircle-CEm5M3Tl.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-C1PKtWq_.js → ChevronRight-D_8iRnVD.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-uLPnhvHf.js → ChevronSelectorVertical-CDr8Ovfg.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BWJ43Ad_.js → ChevronUp-D9JVuW7G.js} +1 -1
  10. package/dist/client/assets/{Copy01-DHhdbM_J.js → Copy01-ZnkwptEM.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-BewJRmPb.js → CreditCard01-DBOo-aYq.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CuAwCaPW.js → DotsVertical-mvRvTh6x.js} +1 -1
  13. package/dist/client/assets/{Download01-R47mE7bD.js → Download01-CeBHR-fX.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-eD_UIVvY.js → ErrorBarContext-CMbUifoM.js} +1 -1
  15. package/dist/client/assets/{Eye-D3bCBJMo.js → Eye-ggEjyhYq.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-CjfnHX9l.js → GitBranch01-DZEodcVR.js} +1 -1
  17. package/dist/client/assets/{Globe01-DeCmIrD5.js → Globe01-Dj13xfTI.js} +1 -1
  18. package/dist/client/assets/{HardDrive-BpRcIm2Z.js → HardDrive-Bkrrs0FV.js} +1 -1
  19. package/dist/client/assets/{Image01-CStOAxG7.js → Image01-DfTbYbFE.js} +1 -1
  20. package/dist/client/assets/{Key01-ICcTBF9U.js → Key01-BBxtRrGm.js} +1 -1
  21. package/dist/client/assets/{Link01-CLzBJa_Z.js → Link01-DUUbBvGo.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-w2j8lCTU.js → LinkExternal01-61qG-hFo.js} +1 -1
  23. package/dist/client/assets/{LockUnlocked01-CbuTs0EA.js → LockUnlocked01-BfX9zVyU.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CMjB6a1I.js → Monitor01-Cvj67Ryv.js} +1 -1
  25. package/dist/client/assets/{Package-BOH9DZQ0.js → Package-B4jzjbE8.js} +1 -1
  26. package/dist/client/assets/{Palette-CVvoWFYM.js → Palette-CXReGsk_.js} +1 -1
  27. package/dist/client/assets/{Play-Bn8_HZzx.js → Play-kr1GKsAc.js} +1 -1
  28. package/dist/client/assets/{Plus-DZ-r7ICl.js → Plus-Bz1cAYCY.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BpXAT-eZ.js → SearchMd-DN6cu6SZ.js} +1 -1
  30. package/dist/client/assets/{Sector-fzRIcAmV.js → Sector-DidaJ4gW.js} +1 -1
  31. package/dist/client/assets/{Settings02-CkPf5bSQ.js → Settings02-C39ViKVB.js} +1 -1
  32. package/dist/client/assets/{Share07-P3qF7VX0.js → Share07-vMCtuazW.js} +1 -1
  33. package/dist/client/assets/{Shield01-BhVJtpaL.js → Shield01-SPzOFIU1.js} +1 -1
  34. package/dist/client/assets/{Stars01-Dxt-GRKF.js → Stars01-q62Ogx-P.js} +1 -1
  35. package/dist/client/assets/{Sun-ZKlmnxLK.js → Sun-B3CG15-H.js} +1 -1
  36. package/dist/client/assets/{ThumbsUp-BFZZTKVU.js → ThumbsUp-DV6K5Csu.js} +1 -1
  37. package/dist/client/assets/{Tool01-Cz6q9HPW.js → Tool01-DP3BW23e.js} +1 -1
  38. package/dist/client/assets/{Tool02-Dh-KcCDo.js → Tool02-DT-zZ1ks.js} +1 -1
  39. package/dist/client/assets/{Trash01-BDaDkc_-.js → Trash01-D5j2YoAs.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-gaB_ebZy.js → TrendUp01-CaNIYwx8.js} +1 -1
  41. package/dist/client/assets/{Upload01-BaOVc9nV.js → Upload01-DSJ1fWRp.js} +1 -1
  42. package/dist/client/assets/{User01-CvjutW7d.js → User01-Bq-AsdvG.js} +1 -1
  43. package/dist/client/assets/{UserSquare-DXupINNG.js → UserSquare-DGuYrk9Q.js} +1 -1
  44. package/dist/client/assets/{Users01-BYJLxdvv.js → Users01-CS6rfCga.js} +1 -1
  45. package/dist/client/assets/{Users03-DOh7pHdk.js → Users03-BnbWbfJy.js} +1 -1
  46. package/dist/client/assets/{XCircle-DQV3a8ui.js → XCircle-Dlv7pZja.js} +1 -1
  47. package/dist/client/assets/{XClose-Dciq0-47.js → XClose-BNIppwTn.js} +1 -1
  48. package/dist/client/assets/{Zap-BeDIMc43.js → Zap-CywbYsFI.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-C3_0q9Na.js → ZoomOut-jLe5z2Gu.js} +1 -1
  50. package/dist/client/assets/{access-gate-asM9jXYM.js → access-gate-CgF7Ajgl.js} +1 -1
  51. package/dist/client/assets/{agent-icon-C7HwxMy2.js → agent-icon-D-9pJpLD.js} +1 -1
  52. package/dist/client/assets/{agents-list-BDCETOyD.js → agents-list-Bp5Z7NYF.js} +1 -1
  53. package/dist/client/assets/{ai-providers-DAeDnbZL.js → ai-providers-BxXtxvrC.js} +1 -1
  54. package/dist/client/assets/{alert-kAvO_IQi.js → alert-DlKRUXrR.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-1uO7Q1_D.js → alert-dialog-D3FLXTEj.js} +1 -1
  56. package/dist/client/assets/{analytics-tab-DGo7bHoB.js → analytics-tab-BfjNGR6F.js} +1 -1
  57. package/dist/client/assets/api-keys-DpAgTJhn.js +1 -0
  58. package/dist/client/assets/{api-keys-BMnD4InK.js → api-keys-DyNVpi-W.js} +1 -1
  59. package/dist/client/assets/app-editor-Zo3b9Buj.js +1 -0
  60. package/dist/client/assets/{auth-CyxtW7VU.js → auth-CeWlFDdC.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-BgPXl6l7.js → auth-catchall-D7POTu6Q.js} +1 -1
  62. package/dist/client/assets/{auth-entry-itFULZ8Z.js → auth-entry-COCcX5A_.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-BsnYR-yK.js → auth-split-layout-BG8u1Dhb.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-BH26XKT9.js → authenticate-and-persist-oauth-CxGKh8aj.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-fcDYKNgJ.js → automation-list-row-Dr9aH5cl.js} +1 -1
  66. package/dist/client/assets/{automation-runs-BPY4nydY.js → automation-runs-D-MsqDZA.js} +1 -1
  67. package/dist/client/assets/{automations-BfJlUnUa.js → automations-DmzNjC10.js} +1 -1
  68. package/dist/client/assets/{avatar-CxjMK0xh.js → avatar-CsipcR4h.js} +1 -1
  69. package/dist/client/assets/{badge-Dx14P1uf.js → badge-Cr2fQRq8.js} +1 -1
  70. package/dist/client/assets/{block-document-6TSCP-wD.js → block-document-CPpzuDJ1.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-B9-pZnD9.js → breadcrumb-BOw37uby.js} +1 -1
  72. package/dist/client/assets/{buckets-Dtq5LgxY.js → buckets-BhMvQpB6.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-Clsi9QbK.js → bulk-category-panel-lgnUhRZs.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-CUNqj87m.js → capability-load-error-D2I8YlS5.js} +1 -1
  75. package/dist/client/assets/{cards-BLVEB5RL.js → cards-Ckz_jSmB.js} +1 -1
  76. package/dist/client/assets/{category-editor-DmSBVcZu.js → category-editor-CUeNF_8r.js} +1 -1
  77. package/dist/client/assets/{cdn-tab-CBrImPtE.js → cdn-tab-EuSTLp5_.js} +1 -1
  78. package/dist/client/assets/{chart-DlBzaqfk.js → chart-BIwqiDqG.js} +1 -1
  79. package/dist/client/assets/{chat-context-mKzm57ri.js → chat-context-oSgRN_kR.js} +1 -1
  80. package/dist/client/assets/{checkbox-BtMOjQuM.js → checkbox-DRf1c0rh.js} +1 -1
  81. package/dist/client/assets/{choose-editor-CorMEUQ9.js → choose-editor-Pdurttdh.js} +1 -1
  82. package/dist/client/assets/{cli-auth-success-DgbatUEd.js → cli-auth-success-CAWRFjR6.js} +1 -1
  83. package/dist/client/assets/{client-icons-D7u-J_pd.js → client-icons-BFT3ByhX.js} +1 -1
  84. package/dist/client/assets/{collection-detail-GCT3_w-Q.js → collection-detail-B9Md04g8.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-CUDW0vsP.js → collection-display-button-DWOMOsAO.js} +1 -1
  86. package/dist/client/assets/{collection-search-DytvMFFj.js → collection-search-lJZ_AiYh.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-jnHSZP_b.js → collection-table-wrapper-DvYmVRqQ.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-F2v4cUxR.js → collection-tabs-BCClisiC.js} +1 -1
  89. package/dist/client/assets/{command-CeKckObX.js → command-BvTOvAwX.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-CLnMQurr.js → commerce-onboarding-BVfRsUSf.js} +1 -1
  91. package/dist/client/assets/{config-DAEl2Fwz.js → config-ykFar5kq.js} +1 -1
  92. package/dist/client/assets/{connect-URRIS0oz.js → connect-C2gWPZrC.js} +1 -1
  93. package/dist/client/assets/{connect-layout-CmmdxzFu.js → connect-layout-DPz52OVW.js} +1 -1
  94. package/dist/client/assets/{connection-card-D3s_4e6c.js → connection-card-CLVO7gWM.js} +1 -1
  95. package/dist/client/assets/{connection-detail-DkuBO-o6.js → connection-detail-BUdncL7r.js} +1 -1
  96. package/dist/client/assets/{connection-form-helpers-CgOgzhG0.js → connection-form-helpers-BhB23GqA.js} +1 -1
  97. package/dist/client/assets/{connection-f2REUt95.js → connection-q0Pvw2B2.js} +1 -1
  98. package/dist/client/assets/{connections-DWVrQ0vB.js → connections-B8VbHw_f.js} +1 -1
  99. package/dist/client/assets/{create-organization-dialog-DUT9TDnz.js → create-organization-dialog-CfcRT_JW.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-CugtSLrr.js → decopilot-sse-pool-_NQmGFbS.js} +1 -1
  101. package/dist/client/assets/{dialog-CCRr4CCv.js → dialog-C7M7JvTo.js} +1 -1
  102. package/dist/client/assets/{domain-settings-BDk0JrwV.js → domain-settings-9aEPBIWO.js} +1 -1
  103. package/dist/client/assets/{drawer-EJ0baEzN.js → drawer-CMB3kWdd.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-iq7an5CR.js → dropdown-menu-D4_fxfOo.js} +1 -1
  105. package/dist/client/assets/{e2e-tab-DaxRZwTM.js → e2e-tab-C_eFWdmQ.js} +1 -1
  106. package/dist/client/assets/{editor-CLQxxGs0.js → editor-D9KXkL69.js} +1 -1
  107. package/dist/client/assets/{empty-state-sOUWi52v.js → empty-state-CMqWP7WN.js} +1 -1
  108. package/dist/client/assets/{empty-state-B-hkvNGZ.js → empty-state-CXTU0Gr5.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-Bgz74dk7.js → extract-connection-data-D_rrQk5k.js} +1 -1
  110. package/dist/client/assets/{file-explorer-DL2c5OeX.js → file-explorer-_NdkqYe1.js} +1 -1
  111. package/dist/client/assets/{file-type-icon-BZyWvek2.js → file-type-icon-BnnSdDsH.js} +1 -1
  112. package/dist/client/assets/{folder-icon-oUyx5_4o.js → folder-icon-DlTz7QPL.js} +1 -1
  113. package/dist/client/assets/{form-CJy6gOK9.js → form-kmhrAcMq.js} +1 -1
  114. package/dist/client/assets/{general-CpyZsf17.js → general-Ds56K9tp.js} +1 -1
  115. package/dist/client/assets/{github-repo-picker-BNDot8ZD.js → github-repo-picker-CG5N8uO0.js} +1 -1
  116. package/dist/client/assets/{hooks-Ba0JKlx2.js → hooks-D05F-stG.js} +1 -1
  117. package/dist/client/assets/{hosting-tab-DNw8iXPA.js → hosting-tab-r6isx4QP.js} +1 -1
  118. package/dist/client/assets/{index-iMHThdI5.js → index-B8v6bpri.js} +2 -2
  119. package/dist/client/assets/{index-DyCofZuZ.js → index-BSbcWYFA.js} +1 -1
  120. package/dist/client/assets/{index-De2AiSst.js → index-BWEmC9U0.js} +57 -57
  121. package/dist/client/assets/{index-B3BkyrSZ.js → index-BoKx8Diy.js} +1 -1
  122. package/dist/client/assets/{index-cHwobFpD.js → index-Br8dpGPA.js} +1 -1
  123. package/dist/client/assets/{index-IILVq28E.js → index-BsAjbvxf.js} +1 -1
  124. package/dist/client/assets/{index-CZz8FtjU.js → index-CgPdM9sX.js} +1 -1
  125. package/dist/client/assets/{index-tM1x2fLe.js → index-CthsQzIN.js} +1 -1
  126. package/dist/client/assets/{index-DPb8WR51.js → index-DY3dr3k9.js} +1 -1
  127. package/dist/client/assets/index-DxxWRegm.css +1 -0
  128. package/dist/client/assets/{index-CFf7ypk5.js → index-M-Ir9x4g.js} +1 -1
  129. package/dist/client/assets/{index-redirect-BCAa2bPs.js → index-redirect-CUiCthS_.js} +1 -1
  130. package/dist/client/assets/{infra-billing-DyPww6_T.js → infra-billing-DhUuoMMN.js} +1 -1
  131. package/dist/client/assets/{input-CbnXHcO6.js → input-DW2ahhtH.js} +1 -1
  132. package/dist/client/assets/{integration-icon-C0qvOPer.js → integration-icon-B89DtTTF.js} +1 -1
  133. package/dist/client/assets/{invite-member-dialog-C5n5eTov.js → invite-member-dialog-BVqSRdPq.js} +1 -1
  134. package/dist/client/assets/{label-DRWhO--x.js → label-BhS7vsEg.js} +1 -1
  135. package/dist/client/assets/{layout-kSadgve2.js → layout-CCn5VLb4.js} +1 -1
  136. package/dist/client/assets/{login-xbLijAW2.js → login-DUuhqIbA.js} +1 -1
  137. package/dist/client/assets/{markdown-22Db80L5.js → markdown-C3hAzezL.js} +1 -1
  138. package/dist/client/assets/{mcp-oauth-EeLwp5eX.js → mcp-oauth-DLj5d3Vy.js} +1 -1
  139. package/dist/client/assets/{members-oSmXDq3z.js → members-DwYXjhhh.js} +1 -1
  140. package/dist/client/assets/{monaco-editor-CZowCy14.js → monaco-editor-Vy_rhpBS.js} +1 -1
  141. package/dist/client/assets/{monitoring-stats-row-CJCndUnv.js → monitoring-stats-row-D_d5RjHF.js} +1 -1
  142. package/dist/client/assets/{multi-select-Cj-97iNR.js → multi-select-peQ8D8Pu.js} +1 -1
  143. package/dist/client/assets/{oauth-callback-DSFqfe09.js → oauth-callback-D4zEQe6g.js} +1 -1
  144. package/dist/client/assets/{oauth-callback-ai-provider-Bwn4b05z.js → oauth-callback-ai-provider-9a41pxZK.js} +1 -1
  145. package/dist/client/assets/{onboarding-DLx1hdsY.js → onboarding-CUeeEM4A.js} +1 -1
  146. package/dist/client/assets/org-layout-C14JwsL-.js +1 -0
  147. package/dist/client/assets/{organization-choice-C5KwMY-x.js → organization-choice-CufRbPCe.js} +1 -1
  148. package/dist/client/assets/{orgs-D23D7LG1.js → orgs-DOJ311_K.js} +1 -1
  149. package/dist/client/assets/page-seo-form-Bzm5UnJ9.js +1 -0
  150. package/dist/client/assets/{popover-BYvt0bxB.js → popover-t_ZIm7eh.js} +1 -1
  151. package/dist/client/assets/{post-calendar-H3AIoZ0y.js → post-calendar-Bmj9kbgm.js} +1 -1
  152. package/dist/client/assets/{post-editor-DVZgxPIm.js → post-editor-B04BBFsL.js} +1 -1
  153. package/dist/client/assets/{primitives-B_XA7nYX.js → primitives-B8PIMqZF.js} +1 -1
  154. package/dist/client/assets/{profile-CFxhdDQq.js → profile-2ky8_NJs.js} +1 -1
  155. package/dist/client/assets/{project-app-view-M4vM1Rym.js → project-app-view-CPyowKnA.js} +1 -1
  156. package/dist/client/assets/{prompts-fZ1o4zpB.js → prompts-DF_PvFvF.js} +1 -1
  157. package/dist/client/assets/record-editor-CdeH0PSN.js +1 -0
  158. package/dist/client/assets/redirect-editor-DNQScjsS.js +1 -0
  159. package/dist/client/assets/registry-DXjIrXbl.js +2 -0
  160. package/dist/client/assets/{registry-layout-BzRjJS6o.js → registry-layout-CxgAdcGY.js} +1 -1
  161. package/dist/client/assets/{reports-DfMErjxR.js → reports-Cfr_ooDi.js} +1 -1
  162. package/dist/client/assets/{require-capability-BeFbF8pl.js → require-capability-C3U03ONf.js} +1 -1
  163. package/dist/client/assets/{required-auth-layout-DKUUs0wv.js → required-auth-layout-BFd3YKM1.js} +1 -1
  164. package/dist/client/assets/{reset-password-4AF23Xvh.js → reset-password-CB7WpCLR.js} +1 -1
  165. package/dist/client/assets/{review-settings-_vscni8V.js → review-settings-BWlNqIKi.js} +1 -1
  166. package/dist/client/assets/{roles-Hc7gjchO.js → roles-BypxpQys.js} +1 -1
  167. package/dist/client/assets/{schema-CalSBGUA.js → schema-BuoIK2NM.js} +1 -1
  168. package/dist/client/assets/{scroll-area-DmdvWjmC.js → scroll-area-CF5KP4xT.js} +1 -1
  169. package/dist/client/assets/{search-input-aRZQtrr1.js → search-input-l9JmQN1V.js} +1 -1
  170. package/dist/client/assets/{secrets-rcSAU0MH.js → secrets-mUX1ZJSA.js} +1 -1
  171. package/dist/client/assets/sections-editor-DkA5v4Ou.js +2 -0
  172. package/dist/client/assets/{select-DVuboUqa.js → select-BeM39jjH.js} +1 -1
  173. package/dist/client/assets/{select-model-C1B_bzfv.js → select-model-rW6YwKIw.js} +1 -1
  174. package/dist/client/assets/{self-tool-result-DDDE2dgE.js → self-tool-result-BOY_ezHR.js} +1 -1
  175. package/dist/client/assets/{seo-editor-45deCW0B.js → seo-editor-ARl87ZpS.js} +1 -1
  176. package/dist/client/assets/settings-layout-DYs5pwaZ.js +1 -0
  177. package/dist/client/assets/settings-sidebar-qm5r11nz.js +1 -0
  178. package/dist/client/assets/{shell-controls-kOkRLWtG.js → shell-controls-Dtx9w7-l.js} +1 -1
  179. package/dist/client/assets/{shell-layout-fxaPPTq-.js → shell-layout-CGFwfHMp.js} +1 -1
  180. package/dist/client/assets/{skill-preview-bjmuW_A1.js → skill-preview-hysKC1kO.js} +1 -1
  181. package/dist/client/assets/{skills-0J4B09Ux.js → skills-C7wLCrdg.js} +1 -1
  182. package/dist/client/assets/{sso-D-lMBKRN.js → sso-b4d7V5F8.js} +1 -1
  183. package/dist/client/assets/{store-Bzve1GXV.js → store-BPxn9mDU.js} +1 -1
  184. package/dist/client/assets/store-registry-BtXrmEhT.js +2 -0
  185. package/dist/client/assets/{switch-D5j2S-4i.js → switch-BTJg1O9U.js} +1 -1
  186. package/dist/client/assets/{synced-repos-CL7kgLGW.js → synced-repos-iq5etoTM.js} +1 -1
  187. package/dist/client/assets/{table-Bdl9_Fhf.js → table-B_EStcLQ.js} +1 -1
  188. package/dist/client/assets/{tabs-CJeYzOxp.js → tabs-BjBxcmhp.js} +1 -1
  189. package/dist/client/assets/{task-board-2M_cICbv.js → task-board-BHMys9hW.js} +1 -1
  190. package/dist/client/assets/{task-route-CheWHifs.js → task-route-r-W3qHvB.js} +1 -1
  191. package/dist/client/assets/{tasks-CkY0zKmU.js → tasks-Dz1vfh1l.js} +1 -1
  192. package/dist/client/assets/{textarea-CQu-QtAR.js → textarea-ByOwMVOP.js} +1 -1
  193. package/dist/client/assets/{thread-intent-D8J4loNV.js → thread-intent-DeAJERp8.js} +1 -1
  194. package/dist/client/assets/{thread-route-CYrRQzf6.js → thread-route-JP_jBQl2.js} +1 -1
  195. package/dist/client/assets/{toggle-group-B5yffd6B.js → toggle-group-BQMbtzfI.js} +1 -1
  196. package/dist/client/assets/{toolbar-BYn6hWQJ.js → toolbar-CR_lIJhX.js} +1 -1
  197. package/dist/client/assets/{toolbar-icon-button-V4uX1cT4.js → toolbar-icon-button-CyVRuDcs.js} +1 -1
  198. package/dist/client/assets/{track-DqsuBc-w.js → track-BzrD-gEE.js} +1 -1
  199. package/dist/client/assets/{types-CSh-_-A-.js → types-DdehnnVY.js} +1 -1
  200. package/dist/client/assets/{use-ai-providers-DNmUp1KH.js → use-ai-providers-VRUuTRhq.js} +1 -1
  201. package/dist/client/assets/{use-automations-BAS2bqab.js → use-automations-1X67KfoT.js} +1 -1
  202. package/dist/client/assets/{use-autosave-DAzXy6V3.js → use-autosave-DCQJH_gL.js} +1 -1
  203. package/dist/client/assets/{use-connection-BIoGt2fV.js → use-connection-C-dhEQVr.js} +1 -1
  204. package/dist/client/assets/{use-copy-Bqne_Qou.js → use-copy-B1L1W9s2.js} +1 -1
  205. package/dist/client/assets/{use-create-virtual-mcp-C5jE4Qbf.js → use-create-virtual-mcp-DiQNHYEZ.js} +1 -1
  206. package/dist/client/assets/{use-debounced-autosave-kIKO71Tg.js → use-debounced-autosave-BMYZ2YGs.js} +1 -1
  207. package/dist/client/assets/{use-debounced-value-B8nRETfv.js → use-debounced-value-D1N9FCWc.js} +1 -1
  208. package/dist/client/assets/{use-decopilot-events-Du05HBL-.js → use-decopilot-events-q6jF3KyR.js} +1 -1
  209. package/dist/client/assets/{use-delete-connection-B9swLPMU.js → use-delete-connection-DjOX5zhj.js} +1 -1
  210. package/dist/client/assets/{use-deployment-admin-BlhXkuuE.js → use-deployment-admin-DnmqgnN7.js} +1 -1
  211. package/dist/client/assets/{use-destination-route-BjLqPQzR.js → use-destination-route-BZnZlxip.js} +1 -1
  212. package/dist/client/assets/{use-file-configs-BWXflqeG.js → use-file-configs-RNJYyxdo.js} +1 -1
  213. package/dist/client/assets/{use-infinite-scroll-CKdXAA8A.js → use-infinite-scroll-BkUvStlN.js} +1 -1
  214. package/dist/client/assets/{use-join-requests-BKm-Euhh.js → use-join-requests-D243QYrm.js} +1 -1
  215. package/dist/client/assets/{use-mcp-auth-status-BBJKM7f_.js → use-mcp-auth-status-B_NYbaoD.js} +1 -1
  216. package/dist/client/assets/{use-mcp-client-Cb-7Tc46.js → use-mcp-client-DJ3fa1xp.js} +1 -1
  217. package/dist/client/assets/{use-mcp-prompts-B4teZ13r.js → use-mcp-prompts-EDCEFkva.js} +1 -1
  218. package/dist/client/assets/{use-mcp-tools-yMcjeDP1.js → use-mcp-tools-CSF0Nzff.js} +1 -1
  219. package/dist/client/assets/{use-members-BfBQJknB.js → use-members-CfnD8M7u.js} +1 -1
  220. package/dist/client/assets/{use-navigate-to-agent-BagpOb6G.js → use-navigate-to-agent-Bfd85iwi.js} +1 -1
  221. package/dist/client/assets/{use-org-auth-client-B4SqGhOd.js → use-org-auth-client-C0QDcwVK.js} +1 -1
  222. package/dist/client/assets/{use-org-repo-syncs-OgvPGokO.js → use-org-repo-syncs-D_mgvf_i.js} +1 -1
  223. package/dist/client/assets/{use-org-sso-BOX8tS6G.js → use-org-sso-DMI8WwP0.js} +1 -1
  224. package/dist/client/assets/{use-organization-roles-DWjijF9p.js → use-organization-roles-D8aZ-ZR_.js} +1 -1
  225. package/dist/client/assets/{use-organization-settings-LGG-1duj.js → use-organization-settings-BA2lxbR3.js} +1 -1
  226. package/dist/client/assets/{use-panel-navigate-BbrwVdUf.js → use-panel-navigate-Bd6QXiJy.js} +1 -1
  227. package/dist/client/assets/{use-project-scope-BJGCHDw2.js → use-project-scope-l_KFftl6.js} +1 -1
  228. package/dist/client/assets/{use-registry-connections-AvU1e53j.js → use-registry-connections-DXPYxL2r.js} +1 -1
  229. package/dist/client/assets/{use-secrets-C7MTfbp9.js → use-secrets-Bgkr4W3S.js} +1 -1
  230. package/dist/client/assets/{use-section-preview-base-CNJRRsrA.js → use-section-preview-base-BV3vay05.js} +1 -1
  231. package/dist/client/assets/{use-status-sounds-yJcdYzkO.js → use-status-sounds-BBTrZxa1.js} +1 -1
  232. package/dist/client/assets/{use-tags-CIfiPRHF.js → use-tags-CehLjUea.js} +1 -1
  233. package/dist/client/assets/{use-view-mode-C34ZcfuA.js → use-view-mode-DhfDSglh.js} +1 -1
  234. package/dist/client/assets/{use-virtual-mcp-DfwA3vbI.js → use-virtual-mcp-7JAczJJM.js} +1 -1
  235. package/dist/client/assets/useInfiniteQuery-CVCgU7w5.js +1 -0
  236. package/dist/client/assets/useSuspenseInfiniteQuery-BONtGFny.js +1 -0
  237. package/dist/client/assets/{users-BNFV8Nap.js → users-DlROvta_.js} +1 -1
  238. package/dist/client/assets/{variant-calendar-CRmTwjv7.js → variant-calendar-BL03vejT.js} +1 -1
  239. package/dist/client/assets/{view-mode-toggle-CCqJfRrB.js → view-mode-toggle-DITqQxrp.js} +1 -1
  240. package/dist/client/index.html +2 -2
  241. package/dist/server/cli.js +1 -1
  242. package/dist/server/server.js +1 -1
  243. package/package.json +1 -1
  244. package/dist/client/assets/api-keys-BLJwaRIG.js +0 -1
  245. package/dist/client/assets/app-editor-3ukfAjBA.js +0 -1
  246. package/dist/client/assets/index-owpBJsp0.css +0 -1
  247. package/dist/client/assets/org-layout-gpkA9U-U.js +0 -1
  248. package/dist/client/assets/page-seo-form-BI1ZnjGb.js +0 -1
  249. package/dist/client/assets/record-editor-7dypTFm2.js +0 -1
  250. package/dist/client/assets/redirect-editor-BRzcJWDt.js +0 -1
  251. package/dist/client/assets/registry-DcsfzNo4.js +0 -2
  252. package/dist/client/assets/sections-editor-DCp2vwD_.js +0 -2
  253. package/dist/client/assets/settings-layout-BSdBJN-5.js +0 -1
  254. package/dist/client/assets/settings-sidebar-CYw8r_vv.js +0 -1
  255. package/dist/client/assets/store-registry-BM8xhd8d.js +0 -2
  256. package/dist/client/assets/useInfiniteQuery-9JeN2e62.js +0 -1
  257. package/dist/client/assets/useSuspenseInfiniteQuery-tto2zjOo.js +0 -1
@@ -1 +1 @@
1
- import{c as P,r as U,j as a,l as X,B as G,W as z,a7 as J,K as Q,m as ee,n as V,e as Y,b as L,dr as Z,ds as H,dq as de,b6 as ae,t as F,P as se,dt as ke,p as Re}from"./index-iMHThdI5.js";import{I as le}from"./input-CbnXHcO6.js";import{i as ge}from"./Check-CA6oOwnk.js";import{i as pe}from"./ChevronSelectorVertical-uLPnhvHf.js";import{a as Oe,c as Ke,d as Ee,e as Ie,b as Be,C as De}from"./command-CeKckObX.js";import{a as $e,P as Me,b as Fe}from"./popover-BYvt0bxB.js";import{S as qe}from"./switch-D5j2S-4i.js";import{c as xe,d as he,b as je,f as ye,g as be,e as Se,a as ve,A as Ce}from"./alert-dialog-1uO7Q1_D.js";import{d as ne,a as _e,b as Ne,c as we,S as Te}from"./select-DVuboUqa.js";import{R as Le,A as Ue}from"./review-settings-_vscni8V.js";import{t as ze}from"./cards-BLVEB5RL.js";import{p as Je,A as Qe}from"./config-DAEl2Fwz.js";import{u as me}from"./use-organization-settings-LGG-1duj.js";import{s as Ge}from"./Plus-DZ-r7ICl.js";import{s as We}from"./Trash01-BDaDkc_-.js";import{T as Ae}from"./textarea-CQu-QtAR.js";import{f as He}from"./task-board-2M_cICbv.js";import{R as Ve}from"./require-capability-BeFbF8pl.js";import"./index-B3BkyrSZ.js";import"./dialog-CCRr4CCv.js";import"./SearchMd-BpXAT-eZ.js";import"./ChevronUp-BWJ43Ad_.js";import"./UserSquare-DXupINNG.js";import"./GitBranch01-CjfnHX9l.js";import"./folder-icon-oUyx5_4o.js";import"./Eye-D3bCBJMo.js";import"./DotsVertical-CuAwCaPW.js";import"./Download01-R47mE7bD.js";import"./Share07-P3qF7VX0.js";import"./Globe01-DeCmIrD5.js";import"./Key01-ICcTBF9U.js";import"./Palette-CVvoWFYM.js";import"./Zap-BeDIMc43.js";import"./dropdown-menu-iq7an5CR.js";import"./ChevronRight-C1PKtWq_.js";import"./file-type-icon-BZyWvek2.js";import"./decopilot-sse-pool-CugtSLrr.js";import"./backoff-CrEUbyZT.js";import"./use-decopilot-events-Du05HBL-.js";import"./AlertCircle-DZjE_Y0H.js";import"./ThumbsUp-BFZZTKVU.js";import"./CheckCircle-BaphLiUh.js";import"./Shield01-BhVJtpaL.js";import"./constants-DNuUCxmW.js";import"./schema-CalSBGUA.js";import"./access-gate-asM9jXYM.js";import"./capability-load-error-CUNqj87m.js";function Ye(t){const e=P.c(41),{options:l,value:s,onChange:n,placeholder:i,triggerClassName:r,contentClassName:o,width:d,renderTrigger:u,renderItem:c,emptyMessage:m,searchPlaceholder:f,filter:p}=t,h=i===void 0?"Select...":i,y=d===void 0?"w-[200px]":d,b=m===void 0?"No results found.":m,S=f===void 0?"Search...":f;let g;e[0]!==s?(g=q=>q.value===s,e[0]=s,e[1]=g):g=e[1];const x=l.find(g),[j,C]=U.useState(!1),v=Me,_=$e,N=!0,w=u?a.jsx("div",{className:X("cursor-pointer",r),children:u(x)}):a.jsxs(G,{variant:"outline",role:"combobox",className:X("justify-between",y,r),children:[x?x.label:h,a.jsx(pe,{className:"opacity-50"})]});let A;e[2]!==_||e[3]!==w?(A=a.jsx(_,{asChild:N,children:w}),e[2]=_,e[3]=w,e[4]=A):A=e[4];let k;e[5]!==o?(k=X("p-0",o),e[5]=o,e[6]=k):k=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 K;e[8]!==S?(K=a.jsx(Oe,{placeholder:S,className:"h-9"}),e[8]=S,e[9]=K):K=e[9];let I;e[10]!==b?(I=a.jsx(Ke,{children:b}),e[10]=b,e[11]=I):I=e[11];let E;if(e[12]!==n||e[13]!==l||e[14]!==c||e[15]!==C||e[16]!==s){let q;e[18]!==n||e[19]!==c||e[20]!==C||e[21]!==s?(q=R=>{const te=s===R.value;return a.jsx(Ee,{value:R.label,onSelect:()=>{n(R.value===s?"":R.value),C(!1)},children:c?c(R,te):a.jsxs(a.Fragment,{children:[R.label,a.jsx(ge,{className:X("ml-auto",te?"opacity-100":"opacity-0")})]})},R.value)},e[18]=n,e[19]=c,e[20]=C,e[21]=s,e[22]=q):q=e[22],E=l.map(q),e[12]=n,e[13]=l,e[14]=c,e[15]=C,e[16]=s,e[17]=E}else E=e[17];let T;e[23]!==E?(T=a.jsx(Ie,{children:E}),e[23]=E,e[24]=T):T=e[24];let M;e[25]!==I||e[26]!==T?(M=a.jsxs(Be,{children:[I,T]}),e[25]=I,e[26]=T,e[27]=M):M=e[27];let B;e[28]!==p||e[29]!==K||e[30]!==M?(B=a.jsxs(De,{filter:p,children:[K,M]}),e[28]=p,e[29]=K,e[30]=M,e[31]=B):B=e[31];let D;e[32]!==B||e[33]!==k?(D=a.jsx(Fe,{className:k,style:O,children:B}),e[32]=B,e[33]=k,e[34]=D):D=e[34];let $;return e[35]!==v||e[36]!==j||e[37]!==C||e[38]!==D||e[39]!==A?($=a.jsxs(v,{open:j,onOpenChange:C,children:[A,D]}),e[35]=v,e[36]=j,e[37]=C,e[38]=D,e[39]=A,e[40]=$):$=e[40],$}function Xe(t){const e=P.c(4),{size:l,className:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=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]=n):n=e[0];let i;return e[1]!==s||e[2]!==l?(i=a.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:n}),e[1]=s,e[2]=l,e[3]=i):i=e[3],i}function Pe(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 Ze(t){const{primary:e,secondary:l}=Pe(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function ue(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function et(t,e){const l=ue(e).trim();if(!l)return 1;const s=ue(t);return l.split(/\s+/).every(n=>s.includes(n))?1:0}function tt(){const t=P.c(7),{org:e}=z(),l=J();let s;t[0]!==e.id?(s=Q.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=n):n=t[3];let i;return t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6],ee(i)}function re(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function st(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function it(t){const e=P.c(8),{org:l}=z(),s=J();let n;e[0]!==l.id?(n=Q.jiraBoards(l.id),e[0]=l.id,e[1]=n):n=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==n||e[6]!==i?(r={queryKey:n,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=n,e[6]=i,e[7]=r):r=e[7],ee(r)}function lt(t){const e=P.c(10),{org:l}=z(),s=J();let n;e[0]!==t||e[1]!==l.id?(n=Q.jiraBoardColumns(l.id,t??""),e[0]=t,e[1]=l.id,e[2]=n):n=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o={queryKey:n,enabled:i,staleTime:6e4,queryFn:r},e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],ee(o)}function nt(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async()=>(await l.call("JIRA_SYNC_RUN",{})).result,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function at(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async()=>await l.call("JIRA_RESYNC_REQUEST",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function rt(){const t=P.c(8),{locator:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>await l.call("TASK_BOARD_COLUMN_ROLE_SET",{columnKey:o.columnKey,role:o.role}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardItems(e)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function ot(){const t=P.c(12),{locator:e}=z(),l=J();let s;t[0]!==e?(s=Q.taskBoardColumnAutomations(e),t[0]=e,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>{const{automations:u}=await l.call("TASK_BOARD_AUTOMATION_LIST",{});return u},t[2]=l,t[3]=n):n=t[3];let i;t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6];const r=ee(i);let o;t[7]!==r.data?(o=r.data??[],t[7]=r.data,t[8]=o):o=t[8];let d;return t[9]!==r.isPending||t[10]!==o?(d={automations:o,isPending:r.isPending},t[9]=r.isPending,t[10]=o,t[11]=d):d=t[11],d}function ct(){const t=P.c(8),{locator:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>{if(o.prompt===null){await l.call("TASK_BOARD_AUTOMATION_DELETE",{columnKey:o.columnKey});return}await l.call("TASK_BOARD_AUTOMATION_UPSERT",{columnKey:o.columnKey,prompt:o.prompt.trim()===""?void 0:o.prompt})},t[0]=l,t[1]=n):n=t[1];let i;t[2]!==s||t[3]!==e?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardColumnAutomations(e)}),t[2]=s,t[3]=e,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSuccess:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}const oe="__none__",dt=[{value:"in_progress",labelKey:"settings.boardColumns.whenRunStarts"},{value:"in_review",labelKey:"settings.boardColumns.whenRunFinishes"},{value:"archived",labelKey:"settings.boardColumns.whenMergedAndSettled"},{value:"todo",labelKey:"settings.boardColumns.whenRunFailsOut"}];function mt(){const t=P.c(16),e=L();if(!me("org_board_columns"))return null;let s;t[0]!==e?(s=e("settings.boardColumns.title"),t[0]=e,t[1]=s):s=t[1];let n;t[2]!==e?(n=e("settings.boardColumns.description"),t[2]=e,t[3]=n):n=t[3];let i;t[4]!==e?(i=e("settings.boardColumns.fieldLabel"),t[4]=e,t[5]=i):i=t[5];let r;t[6]!==e?(r=e("settings.boardColumns.fieldDescription"),t[6]=e,t[7]=r):r=t[7];let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ut,{}),t[8]=o):o=t[8];let d;t[9]!==i||t[10]!==r?(d=a.jsx(Z,{children:a.jsx(H,{title:i,description:r,children:o})}),t[9]=i,t[10]=r,t[11]=d):d=t[11];let u;return t[12]!==s||t[13]!==n||t[14]!==d?(u=a.jsx(de,{title:s,description:n,children:d}),t[12]=s,t[13]=n,t[14]=d,t[15]=u):u=t[15],u}function ut(){const t=P.c(14),e=L(),{columns:l,isLoading:s}=Je(),{automations:n,isPending:i}=ot();if(s||i){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ae,{className:"h-40 w-full"}),t[0]=c):c=t[0],c}if(l.length===0){let c;t[1]!==e?(c=e("settings.jira.noColumnsYet"),t[1]=e,t[2]=c):c=t[2];let m;return t[3]!==c?(m=a.jsx("p",{className:"text-xs text-muted-foreground",children:c}),t[3]=c,t[4]=m):m=t[4],m}let r;t[5]!==n?(r=new Map(n.map(ft)),t[5]=n,t[6]=r):r=t[6];const o=r;let d;if(t[7]!==l||t[8]!==o){let c;t[10]!==o?(c=m=>a.jsx(gt,{columnKey:m.key,title:m.title,trigger:m.role,hasAutomation:o.has(m.key),prompt:o.get(m.key)??null},m.key),t[10]=o,t[11]=c):c=t[11],d=l.map(c),t[7]=l,t[8]=o,t[9]=d}else d=t[9];let u;return t[12]!==d?(u=a.jsx("div",{className:"flex w-full flex-col gap-3",children:d}),t[12]=d,t[13]=u):u=t[13],u}function ft(t){return[t.columnKey,t.prompt]}function gt(t){const e=P.c(45),{columnKey:l,title:s,trigger:n,hasAutomation:i,prompt:r}=t,o=L(),d=rt(),u=ct(),[c,m]=U.useState(r??""),[f,p]=U.useState(r);f!==r&&(p(r),m(r??""));let h;e[0]!==o?(h=()=>F.error(o("settings.boardColumns.saveFailed")),e[0]=o,e[1]=h):h=e[1];const y=h;let b;e[2]!==l||e[3]!==y||e[4]!==u?(b=T=>u.mutate({columnKey:l,prompt:T},{onError:y}),e[2]=l,e[3]=y,e[4]=u,e[5]=b):b=e[5];const S=b;let g;e[6]!==s?(g=a.jsx("span",{className:"truncate text-sm font-medium",children:s}),e[6]=s,e[7]=g):g=e[7];let x;e[8]!==o?(x=o("settings.boardColumns.moveHereWhen"),e[8]=o,e[9]=x):x=e[9];let j;e[10]!==x?(j=a.jsx("span",{className:"text-xs text-muted-foreground",children:x}),e[10]=x,e[11]=j):j=e[11];const C=n??oe;let v;e[12]!==l||e[13]!==y||e[14]!==d?(v=T=>d.mutate({columnKey:l,role:T===oe?null:T},{onError:y}),e[12]=l,e[13]=y,e[14]=d,e[15]=v):v=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(_e,{className:"w-64",children:a.jsx(Ne,{})}),e[16]=_):_=e[16];let N;e[17]!==o?(N=o("settings.boardColumns.whenNever"),e[17]=o,e[18]=N):N=e[18];let w;e[19]!==N?(w=a.jsx(ne,{value:oe,children:N}),e[19]=N,e[20]=w):w=e[20];let A;e[21]!==o?(A=dt.map(T=>a.jsx(ne,{value:T.value,children:o(T.labelKey)},T.value)),e[21]=o,e[22]=A):A=e[22];let k;e[23]!==w||e[24]!==A?(k=a.jsxs(we,{children:[w,A]}),e[23]=w,e[24]=A,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==C||e[28]!==v?(O=a.jsxs(Te,{value:C,onValueChange:v,children:[_,k]}),e[26]=k,e[27]=C,e[28]=v,e[29]=O):O=e[29];let K;e[30]!==O||e[31]!==j?(K=a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j,O]}),e[30]=O,e[31]=j,e[32]=K):K=e[32];let I;e[33]!==l||e[34]!==c||e[35]!==i||e[36]!==r||e[37]!==S||e[38]!==o||e[39]!==s?(I=i?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.boardColumns.automationOn")}),a.jsx(G,{variant:"ghost",size:"sm","aria-label":o("settings.boardColumns.removeAriaLabel",{column:s}),onClick:()=>S(null),children:a.jsx(We,{size:14})})]}),a.jsx(Ae,{value:c,rows:2,placeholder:o("settings.boardColumns.promptPlaceholder"),onChange:T=>m(T.target.value),onBlur:()=>{c!==(r??"")&&S(c)},"data-column-automation-prompt":l}),a.jsx("p",{className:"text-xs text-muted-foreground",children:o("settings.boardColumns.promptHelp")})]}):a.jsxs(G,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>S(""),children:[a.jsx(Ge,{size:14}),o("settings.boardColumns.addAutomation")]}),e[33]=l,e[34]=c,e[35]=i,e[36]=r,e[37]=S,e[38]=o,e[39]=s,e[40]=I):I=e[40];let E;return e[41]!==K||e[42]!==I||e[43]!==g?(E=a.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-border p-3",children:[g,K,I]}),e[41]=K,e[42]=I,e[43]=g,e[44]=E):E=e[44],E}function pt(){const t=P.c(12),{org:e}=z(),l=J();let s;t[0]!==e.id?(s=Q.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=l,t[3]=n):n=t[3];let i;t[4]!==s||t[5]!==n?(i={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6];const r=ee(i);let o;t[7]!==r.data?(o=r.data?.find(xt)?.prompt??"",t[7]=r.data,t[8]=o):o=t[8];let d;return t[9]!==r.isPending||t[10]!==o?(d={prompt:o,isPending:r.isPending},t[9]=r.isPending,t[10]=o,t[11]=d):d=t[11],d}function xt(t){return t.columnKey===null}function ht(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>{const d=o.trim();if(!d){await l.call("TASK_BOARD_PROMPT_DELETE",{});return}await l.call("TASK_BOARD_PROMPT_UPSERT",{prompt:d})},t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function jt(){const t=P.c(16),e=L(),{prompt:l,isPending:s}=pt(),n=ht(),[i,r]=U.useState(l),[o,d]=U.useState(l);o!==l&&(d(l),r(l));let u;t[0]!==e?(u=e("settings.taskPrompt.title"),t[0]=e,t[1]=u):u=t[1];let c;t[2]!==e?(c=e("settings.taskPrompt.fieldLabel"),t[2]=e,t[3]=c):c=t[3];let m;t[4]!==i||t[5]!==s||t[6]!==l||t[7]!==n||t[8]!==e?(m=s?a.jsx(ae,{className:"h-44 w-full"}):a.jsxs("div",{className:"flex flex-col items-start gap-2",children:[a.jsx(Ae,{value:i,rows:10,maxLength:He,placeholder:e("settings.taskPrompt.placeholder"),onChange:h=>r(h.target.value)}),a.jsx(G,{size:"sm",disabled:i===l||n.isPending,onClick:()=>n.mutate(i,{onSuccess:()=>F.success(e("settings.taskPrompt.saved")),onError:()=>F.error(e("settings.taskPrompt.failed"))}),children:e("settings.taskPrompt.save")})]}),t[4]=i,t[5]=s,t[6]=l,t[7]=n,t[8]=e,t[9]=m):m=t[9];let f;t[10]!==c||t[11]!==m?(f=a.jsx(Z,{children:a.jsx(H,{title:c,children:m})}),t[10]=c,t[11]=m,t[12]=f):f=t[12];let p;return t[13]!==u||t[14]!==f?(p=a.jsx(de,{title:u,children:f}),t[13]=u,t[14]=f,t[15]=p):p=t[15],p}function ie(t,e){const l=e.statuses[0];if(l)return Object.entries(t).find(([,s])=>s.includes(l))?.[0]}const fe=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"approved",labelKey:"taskBoard.config.statusApproved"},{value:"merged",labelKey:"taskBoard.config.statusMerged"},{value:"post_deploy_validation",labelKey:"taskBoard.config.statusPostDeployValidation"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}];function yt(t,e){return t?fe:fe.filter(l=>!Qe(l.value)||l.value===e)}const ce="__dont_sync__";function W(t,e){return t instanceof Error?t.message:e}const bt="https://id.atlassian.com/manage-profile/security/api-tokens";function St(t){const e=P.c(7),{stepKeys:l}=t,s=L();let n;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],n=l.map(r),e[0]=l,e[1]=s,e[2]=n}else n=e[2];let i;return e[5]!==n?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function vt(){const t=P.c(69),e=L(),l=re(),[s,n]=U.useState(""),[i,r]=U.useState(""),[o,d]=U.useState("");let u;t[0]!==o||t[1]!==i||t[2]!==s?(u=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=u):u=t[3];const c=u;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let f;t[6]!==m?(f=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=f):f=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=R=>n(R.target.value),t[8]=p):p=t[8];let h;t[9]!==e?(h=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=h):h=t[10];let y;t[11]!==s||t[12]!==h?(y=a.jsx(le,{value:s,onChange:p,placeholder:h,autoComplete:"off"}),t[11]=s,t[12]=h,t[13]=y):y=t[13];let b;t[14]!==f||t[15]!==y?(b=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[f,y]}),t[14]=f,t[15]=y,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("settings.jira.emailLabel"),t[17]=e,t[18]=S):S=t[18];let g;t[19]!==S?(g=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:S}),t[19]=S,t[20]=g):g=t[20];let x;t[21]===Symbol.for("react.memo_cache_sentinel")?(x=R=>r(R.target.value),t[21]=x):x=t[21];let j;t[22]!==e?(j=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=j):j=t[23];let C;t[24]!==i||t[25]!==j?(C=a.jsx(le,{value:i,onChange:x,placeholder:j,autoComplete:"off"}),t[24]=i,t[25]=j,t[26]=C):C=t[26];let v;t[27]!==C||t[28]!==g?(v=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,C]}),t[27]=C,t[28]=g,t[29]=v):v=t[29];let _;t[30]!==e?(_=e("settings.jira.tokenLabel"),t[30]=e,t[31]=_):_=t[31];let N;t[32]!==_?(N=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:_}),t[32]=_,t[33]=N):N=t[33];let w;t[34]!==e?(w=e("settings.jira.createTokenLink"),t[34]=e,t[35]=w):w=t[35];let A;t[36]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Re,{size:12}),t[36]=A):A=t[36];let k;t[37]!==w?(k=a.jsxs("a",{href:bt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[w,A]}),t[37]=w,t[38]=k):k=t[38];let O;t[39]!==N||t[40]!==k?(O=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[N,k]}),t[39]=N,t[40]=k,t[41]=O):O=t[41];let K;t[42]===Symbol.for("react.memo_cache_sentinel")?(K=R=>d(R.target.value),t[42]=K):K=t[42];let I;t[43]!==e?(I=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=I):I=t[44];let E;t[45]!==o||t[46]!==I?(E=a.jsx(le,{type:"password",value:o,onChange:K,placeholder:I,autoComplete:"off"}),t[45]=o,t[46]=I,t[47]=E):E=t[47];let T;t[48]!==O||t[49]!==E?(T=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[O,E]}),t[48]=O,t[49]=E,t[50]=T):T=t[50];const M=!c||l.isPending;let B;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==l?(B=()=>l.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>F.success(e("settings.jira.connected")),onError:R=>F.error(W(R,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=l,t[56]=B):B=t[56];let D;t[57]!==e||t[58]!==l.isPending?(D=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=D):D=t[59];let $;t[60]!==M||t[61]!==B||t[62]!==D?($=a.jsx(G,{size:"sm",className:"w-fit",disabled:M,onClick:B,children:D}),t[60]=M,t[61]=B,t[62]=D,t[63]=$):$=t[63];let q;return t[64]!==v||t[65]!==T||t[66]!==$||t[67]!==b?(q=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[b,v,T,$]}),t[64]=v,t[65]=T,t[66]=$,t[67]=b,t[68]=q):q=t[68],q}function Ct(t){const e=P.c(7),{integration:l}=t,s=L();if(l.lastSyncError){let r;return e[0]!==l.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:l.lastSyncError}),e[0]=l.lastSyncError,e[1]=r):r=e[1],r}let n;e[2]!==l.lastSyncedAt||e[3]!==s?(n=l.lastSyncedAt?s("settings.jira.lastSynced",{ago:ze(l.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=l.lastSyncedAt,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==n?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function _t(t){const e=P.c(35),{integration:l}=t,s=L(),n=re(),i=lt(l.boardId),r=me("delivery_lanes_enabled"),[o,d]=U.useState(l.statusMapping),[u,c]=U.useState(l);if(u!==l&&(c(l),d(l.statusMapping)),i.isPending){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ae,{className:"h-24 w-full mt-3"}),e[0]=g):g=e[0],g}if(i.isError){let g;e[1]!==i.error||e[2]!==s?(g=W(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=g):g=e[3];let x;return e[4]!==g?(x=a.jsx("p",{className:"text-xs text-destructive mt-3",children:g}),e[4]=g,e[5]=x):x=e[5],x}let m;e[6]!==i.data||e[7]!==o||e[8]!==s||e[9]!==n?(m=function(x,j){const C=o,v={};for(const _ of i.data??[]){const N=_.name===x.name?j===ce?void 0:j:ie(o,_);N&&(v[N]=[...v[N]??[],..._.statuses])}d(v),n.mutate({statusMapping:v},{onError:_=>{d(C),F.error(W(_,s("settings.jira.saveFailed")))}})},e[6]=i.data,e[7]=o,e[8]=s,e[9]=n,e[10]=m):m=e[10];const f=m;let p,h;if(e[11]!==i.data||e[12]!==o||e[13]!==s){let g;e[16]!==o?(g=j=>!ie(o,j),e[16]=o,e[17]=g):g=e[17];const x=(i.data??[]).filter(g);p="flex flex-col mt-3",h=x.length>0&&a.jsx("p",{className:"mb-2 rounded-md bg-warning/10 px-3 py-2 text-xs text-warning",children:s("settings.jira.unmappedWarning",{columns:x.map(Nt).join(", ")})}),e[11]=i.data,e[12]=o,e[13]=s,e[14]=p,e[15]=h}else p=e[14],h=e[15];let y;e[18]!==i.data?(y=i.data??[],e[18]=i.data,e[19]=y):y=e[19];let b;if(e[20]!==r||e[21]!==o||e[22]!==f||e[23]!==s||e[24]!==y){let g;e[26]!==r||e[27]!==o||e[28]!==f||e[29]!==s?(g=x=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:x.name}),(x.statuses.length>1||x.statuses[0]!==x.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:x.statuses.join(", ")})]}),a.jsxs(Te,{value:ie(o,x)??ce,onValueChange:j=>f(x,j),children:[a.jsx(_e,{className:"w-44 shrink-0",children:a.jsx(Ne,{})}),a.jsxs(we,{children:[a.jsx(ne,{value:ce,children:s("settings.jira.dontSync")}),yt(r,ie(o,x)).map(j=>a.jsx(ne,{value:j.value,children:s(j.labelKey)},j.value))]})]})]},x.name),e[26]=r,e[27]=o,e[28]=f,e[29]=s,e[30]=g):g=e[30],b=y.map(g),e[20]=r,e[21]=o,e[22]=f,e[23]=s,e[24]=y,e[25]=b}else b=e[25];let S;return e[31]!==p||e[32]!==h||e[33]!==b?(S=a.jsxs("div",{className:p,children:[h,b]}),e[31]=p,e[32]=h,e[33]=b,e[34]=S):S=e[34],S}function Nt(t){return t.name}function wt(t){const e=P.c(44),{integration:l}=t,s=L(),n=st(),[i,r]=U.useState(!1),o=l.siteUrl,d=l.email;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>r(!0),e[0]=u):u=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let m;e[3]!==c?(m=a.jsx(G,{variant:"outline",size:"sm",onClick:u,children:c}),e[3]=c,e[4]=m):m=e[4];let f;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==m?(f=a.jsx(H,{title:o,description:d,action:m}),e[5]=l.email,e[6]=l.siteUrl,e[7]=m,e[8]=f):f=e[8];let p;e[9]!==s?(p=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=p):p=e[10];let h;e[11]!==p?(h=a.jsx(xe,{children:p}),e[11]=p,e[12]=h):h=e[12];let y;e[13]!==s?(y=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=y):y=e[14];let b;e[15]!==y?(b=a.jsx(he,{children:y}),e[15]=y,e[16]=b):b=e[16];let S;e[17]!==b||e[18]!==h?(S=a.jsxs(je,{children:[h,b]}),e[17]=b,e[18]=h,e[19]=S):S=e[19];let g;e[20]!==s?(g=s("settings.jira.cancel"),e[20]=s,e[21]=g):g=e[21];let x;e[22]!==g?(x=a.jsx(ye,{children:g}),e[22]=g,e[23]=x):x=e[23];let j;e[24]!==n||e[25]!==s?(j=()=>n.mutate(void 0,{onSuccess:()=>F.success(s("settings.jira.disconnected")),onError:k=>F.error(W(k,s("settings.jira.saveFailed")))}),e[24]=n,e[25]=s,e[26]=j):j=e[26];let C;e[27]!==s?(C=s("settings.jira.disconnect"),e[27]=s,e[28]=C):C=e[28];let v;e[29]!==j||e[30]!==C?(v=a.jsx(be,{onClick:j,children:C}),e[29]=j,e[30]=C,e[31]=v):v=e[31];let _;e[32]!==x||e[33]!==v?(_=a.jsxs(Se,{children:[x,v]}),e[32]=x,e[33]=v,e[34]=_):_=e[34];let N;e[35]!==S||e[36]!==_?(N=a.jsxs(ve,{children:[S,_]}),e[35]=S,e[36]=_,e[37]=N):N=e[37];let w;e[38]!==i||e[39]!==N?(w=a.jsx(Ce,{open:i,onOpenChange:r,children:N}),e[38]=i,e[39]=N,e[40]=w):w=e[40];let A;return e[41]!==w||e[42]!==f?(A=a.jsxs(a.Fragment,{children:[f,w]}),e[41]=w,e[42]=f,e[43]=A):A=e[43],A}function Tt(t){const e=P.c(36),{integration:l}=t,s=L(),n=re(),i=it(!0);let r,o;e[0]!==i.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(i.data??[]).map(Pt),o=l.boardId?r.find(x=>x.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=i.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const d=o;let u;e[5]!==s?(u=s("settings.jira.boardLabel"),e[5]=s,e[6]=u):u=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const m=l.boardId??"";let f;e[9]!==s?(f=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=f):f=e[10];let p;e[11]!==s?(p=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=p):p=e[12];let h;e[13]!==i.isPending||e[14]!==s?(h=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=h):h=e[15];let y;e[16]!==d||e[17]!==s?(y=()=>a.jsxs(G,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),a.jsx(pe,{className:"opacity-50 shrink-0"})]}),e[16]=d,e[17]=s,e[18]=y):y=e[18];let b;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==n?(b=x=>{!x||x===l.boardId||n.mutate({boardId:x,boardName:r.find(j=>j.value===x)?.primary??null,statusMapping:{},enabled:!1},{onError:j=>F.error(W(j,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=n,e[23]=b):b=e[23];let S;e[24]!==r||e[25]!==m||e[26]!==f||e[27]!==p||e[28]!==h||e[29]!==y||e[30]!==b?(S=a.jsx(Ye,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:f,searchPlaceholder:p,filter:et,emptyMessage:h,renderTrigger:y,renderItem:At,onChange:b}),e[24]=r,e[25]=m,e[26]=f,e[27]=p,e[28]=h,e[29]=y,e[30]=b,e[31]=S):S=e[31];let g;return e[32]!==S||e[33]!==u||e[34]!==c?(g=a.jsx(H,{title:u,description:c,action:S}),e[32]=S,e[33]=u,e[34]=c,e[35]=g):g=e[35],g}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(ge,{className:X("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function Pt(t){const{primary:e,secondary:l}=Pe(t);return{value:String(t.id),label:Ze(t),primary:e,secondary:l}}function kt(t){const e=P.c(10),{integration:l}=t,s=L();if(me("org_board_columns"))return null;let i;e[0]!==s?(i=s("settings.jira.mappingLabel"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.mappingDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(_t,{integration:l}),e[4]=l,e[5]=o):o=e[5];let d;return e[6]!==i||e[7]!==r||e[8]!==o?(d=a.jsx(H,{title:i,description:r,children:o}),e[6]=i,e[7]=r,e[8]=o,e[9]=d):d=e[9],d}function Rt(t){const e=P.c(72),{integration:l}=t,s=L(),n=re(),i=nt(),r=at(),[o,d]=U.useState(!1);let u;e[0]!==l.statusMapping?(u=Object.keys(l.statusMapping),e[0]=l.statusMapping,e[1]=u):u=e[1];const c=u.length>0;let m;e[2]!==s?(m=s("settings.jira.enableLabel"),e[2]=s,e[3]=m):m=e[3];let f;e[4]!==l?(f=a.jsx(Ct,{integration:l}),e[4]=l,e[5]=f):f=e[5];const p=!l.enabled||i.isPending||r.isPending;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=()=>d(!0),e[6]=h):h=e[6];let y;e[7]!==s?(y=s("settings.jira.resyncAll"),e[7]=s,e[8]=y):y=e[8];let b;e[9]!==p||e[10]!==y?(b=a.jsx(G,{variant:"outline",size:"sm",disabled:p,onClick:h,children:y}),e[9]=p,e[10]=y,e[11]=b):b=e[11];let S;e[12]!==s?(S=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=S):S=e[13];let g;e[14]!==S?(g=a.jsx(xe,{children:S}),e[14]=S,e[15]=g):g=e[15];let x;e[16]!==s?(x=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=x):x=e[17];let j;e[18]!==x?(j=a.jsx(he,{children:x}),e[18]=x,e[19]=j):j=e[19];let C;e[20]!==j||e[21]!==g?(C=a.jsxs(je,{children:[g,j]}),e[20]=j,e[21]=g,e[22]=C):C=e[22];let v;e[23]!==s?(v=s("settings.jira.cancel"),e[23]=s,e[24]=v):v=e[24];let _;e[25]!==v?(_=a.jsx(ye,{children:v}),e[25]=v,e[26]=_):_=e[26];let N;e[27]!==r||e[28]!==s?(N=()=>r.mutate(void 0,{onSuccess:()=>F.success(s("settings.jira.resyncAllQueued")),onError:R=>F.error(W(R,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=N):N=e[29];let w;e[30]!==s?(w=s("settings.jira.resyncAll"),e[30]=s,e[31]=w):w=e[31];let A;e[32]!==N||e[33]!==w?(A=a.jsx(be,{onClick:N,children:w}),e[32]=N,e[33]=w,e[34]=A):A=e[34];let k;e[35]!==_||e[36]!==A?(k=a.jsxs(Se,{children:[_,A]}),e[35]=_,e[36]=A,e[37]=k):k=e[37];let O;e[38]!==C||e[39]!==k?(O=a.jsxs(ve,{children:[C,k]}),e[38]=C,e[39]=k,e[40]=O):O=e[40];let K;e[41]!==o||e[42]!==O||e[43]!==b?(K=a.jsxs(Ce,{open:o,onOpenChange:d,children:[b,O]}),e[41]=o,e[42]=O,e[43]=b,e[44]=K):K=e[44];const I=!l.enabled||i.isPending;let E;e[45]!==i||e[46]!==s?(E=()=>i.mutate(void 0,{onSuccess:R=>{"error"in R?F.error(R.error):F.success(s("settings.jira.syncDone",{created:String(R.created),updated:String(R.updated),archived:String(R.archived)}))},onError:R=>F.error(W(R,s("settings.jira.syncFailed")))}),e[45]=i,e[46]=s,e[47]=E):E=e[47];let T;e[48]!==i.isPending||e[49]!==s?(T=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=i.isPending,e[49]=s,e[50]=T):T=e[50];let M;e[51]!==I||e[52]!==E||e[53]!==T?(M=a.jsx(G,{variant:"outline",size:"sm",disabled:I,onClick:E,children:T}),e[51]=I,e[52]=E,e[53]=T,e[54]=M):M=e[54];let B;e[55]!==c||e[56]!==l.boardId||e[57]!==s||e[58]!==n?(B=R=>{if(R&&(!l.boardId||!c)){F.error(s("settings.jira.enableRequirements"));return}n.mutate({enabled:R},{onError:te=>F.error(W(te,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=l.boardId,e[57]=s,e[58]=n,e[59]=B):B=e[59];let D;e[60]!==l.enabled||e[61]!==B||e[62]!==n.isPending?(D=a.jsx(qe,{checked:l.enabled,disabled:n.isPending,onCheckedChange:B}),e[60]=l.enabled,e[61]=B,e[62]=n.isPending,e[63]=D):D=e[63];let $;e[64]!==K||e[65]!==M||e[66]!==D?($=a.jsxs("div",{className:"flex items-center gap-3",children:[K,M,D]}),e[64]=K,e[65]=M,e[66]=D,e[67]=$):$=e[67];let q;return e[68]!==m||e[69]!==$||e[70]!==f?(q=a.jsx(H,{title:m,description:f,action:$}),e[68]=m,e[69]=$,e[70]=f,e[71]=q):q=e[71],q}function Ot(t){const e=P.c(24),{integration:l}=t,s=L(),n=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==n?(o=a.jsx(le,{readOnly:!0,value:n,className:"font-mono text-xs"}),e[4]=n,e[5]=o):o=e[5];let d;e[6]!==s||e[7]!==n?(d=()=>{navigator.clipboard.writeText(n),F.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=n,e[8]=d):d=e[8];let u;e[9]!==s?(u=s("settings.jira.webhookCopy"),e[9]=s,e[10]=u):u=e[10];let c;e[11]!==d||e[12]!==u?(c=a.jsx(G,{variant:"outline",size:"sm",className:"shrink-0",onClick:d,children:u}),e[11]=d,e[12]=u,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(St,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=f):f=e[17];let p;e[18]!==m?(p=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,f]}),e[18]=m,e[19]=p):p=e[19];let h;return e[20]!==i||e[21]!==r||e[22]!==p?(h=a.jsx(H,{title:i,description:r,children:p}),e[20]=i,e[21]=r,e[22]=p,e[23]=h):h=e[23],h}function Kt(){const t=P.c(22),e=L(),l=tt();if(l.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Z,{children:a.jsx("div",{className:"p-4",children:a.jsx(ae,{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 m;t[3]!==e?(m=e("settings.jira.connectDescription"),t[3]=e,t[4]=m):m=t[4];let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(vt,{}),t[5]=f):f=t[5];let p;return t[6]!==c||t[7]!==m?(p=a.jsx(Z,{children:a.jsx(H,{title:c,description:m,children:f})}),t[6]=c,t[7]=m,t[8]=p):p=t[8],p}const s=l.data;let n,i,r;t[9]!==s?(n=a.jsx(wt,{integration:s}),i=a.jsx(Tt,{integration:s}),r=s.boardId&&a.jsx(kt,{integration:s}),t[9]=s,t[10]=n,t[11]=i,t[12]=r):(n=t[10],i=t[11],r=t[12]);let o,d;t[13]!==s?(o=a.jsx(Rt,{integration:s}),d=a.jsx(Ot,{integration:s}),t[13]=s,t[14]=o,t[15]=d):(o=t[14],d=t[15]);let u;return t[16]!==n||t[17]!==i||t[18]!==r||t[19]!==o||t[20]!==d?(u=a.jsxs(Z,{children:[n,i,r,o,d]}),t[16]=n,t[17]=i,t[18]=r,t[19]=o,t[20]=d,t[21]=u):u=t[21],u}function Et(){const t=P.c(19),e=L();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(se.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let n,i,r,o;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Le,{}),i=a.jsx(jt,{}),r=a.jsx(mt,{}),o=a.jsx(Ue,{}),t[4]=n,t[5]=i,t[6]=r,t[7]=o):(n=t[4],i=t[5],r=t[6],o=t[7]);let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Xe,{size:18}),t[8]=d):d=t[8];let u;t[9]!==e?(u=e("settings.jira.sectionTitle"),t[9]=e,t[10]=u):u=t[10];let c;t[11]!==u?(c=a.jsxs("span",{className:"flex items-center gap-2",children:[d,u]}),t[11]=u,t[12]=c):c=t[12];let m;t[13]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Kt,{}),t[13]=m):m=t[13];let f;t[14]!==c?(f=a.jsx(de,{title:c,children:m}),t[14]=c,t[15]=f):f=t[15];let p;return t[16]!==s||t[17]!==f?(p=a.jsx(se,{children:a.jsx(se.Content,{children:a.jsx(se.Body,{children:a.jsxs(ke,{children:[s,n,i,r,o,f]})})})}),t[16]=s,t[17]=f,t[18]=p):p=t[18],p}function As(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ve,{capability:"org:manage",area:"settings",children:a.jsx(Et,{})}),t[0]=e):e=t[0],e}export{As as default};
1
+ import{c as P,r as U,j as a,l as X,B as G,W as z,a7 as J,K as Q,m as ee,n as V,e as Y,b as L,dr as Z,ds as H,dq as de,b6 as ae,t as F,P as se,dt as ke,p as Re}from"./index-B8v6bpri.js";import{I as le}from"./input-DW2ahhtH.js";import{i as ge}from"./Check-yANPvlWH.js";import{i as pe}from"./ChevronSelectorVertical-CDr8Ovfg.js";import{a as Oe,c as Ke,d as Ee,e as Ie,b as Be,C as De}from"./command-BvTOvAwX.js";import{a as $e,P as Me,b as Fe}from"./popover-t_ZIm7eh.js";import{S as qe}from"./switch-BTJg1O9U.js";import{c as xe,d as he,b as je,f as ye,g as be,e as Se,a as ve,A as Ce}from"./alert-dialog-D3FLXTEj.js";import{d as ne,a as _e,b as Ne,c as we,S as Te}from"./select-BeM39jjH.js";import{R as Le,A as Ue}from"./review-settings-BWlNqIKi.js";import{t as ze}from"./cards-Ckz_jSmB.js";import{p as Je,A as Qe}from"./config-ykFar5kq.js";import{u as me}from"./use-organization-settings-BA2lxbR3.js";import{s as Ge}from"./Plus-Bz1cAYCY.js";import{s as We}from"./Trash01-D5j2YoAs.js";import{T as Ae}from"./textarea-ByOwMVOP.js";import{f as He}from"./task-board-BHMys9hW.js";import{R as Ve}from"./require-capability-C3U03ONf.js";import"./index-BoKx8Diy.js";import"./dialog-C7M7JvTo.js";import"./SearchMd-DN6cu6SZ.js";import"./ChevronUp-D9JVuW7G.js";import"./UserSquare-DGuYrk9Q.js";import"./GitBranch01-DZEodcVR.js";import"./folder-icon-DlTz7QPL.js";import"./Eye-ggEjyhYq.js";import"./DotsVertical-mvRvTh6x.js";import"./Download01-CeBHR-fX.js";import"./Share07-vMCtuazW.js";import"./Globe01-Dj13xfTI.js";import"./Key01-BBxtRrGm.js";import"./Palette-CXReGsk_.js";import"./Zap-CywbYsFI.js";import"./dropdown-menu-D4_fxfOo.js";import"./ChevronRight-D_8iRnVD.js";import"./file-type-icon-BnnSdDsH.js";import"./decopilot-sse-pool-_NQmGFbS.js";import"./backoff-CrEUbyZT.js";import"./use-decopilot-events-q6jF3KyR.js";import"./AlertCircle-DTA-xmN8.js";import"./ThumbsUp-DV6K5Csu.js";import"./CheckCircle-CEm5M3Tl.js";import"./Shield01-SPzOFIU1.js";import"./constants-DNuUCxmW.js";import"./schema-BuoIK2NM.js";import"./access-gate-CgF7Ajgl.js";import"./capability-load-error-D2I8YlS5.js";function Ye(t){const e=P.c(41),{options:l,value:s,onChange:n,placeholder:i,triggerClassName:r,contentClassName:o,width:d,renderTrigger:u,renderItem:c,emptyMessage:m,searchPlaceholder:f,filter:p}=t,h=i===void 0?"Select...":i,y=d===void 0?"w-[200px]":d,b=m===void 0?"No results found.":m,S=f===void 0?"Search...":f;let g;e[0]!==s?(g=q=>q.value===s,e[0]=s,e[1]=g):g=e[1];const x=l.find(g),[j,C]=U.useState(!1),v=Me,_=$e,N=!0,w=u?a.jsx("div",{className:X("cursor-pointer",r),children:u(x)}):a.jsxs(G,{variant:"outline",role:"combobox",className:X("justify-between",y,r),children:[x?x.label:h,a.jsx(pe,{className:"opacity-50"})]});let A;e[2]!==_||e[3]!==w?(A=a.jsx(_,{asChild:N,children:w}),e[2]=_,e[3]=w,e[4]=A):A=e[4];let k;e[5]!==o?(k=X("p-0",o),e[5]=o,e[6]=k):k=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 K;e[8]!==S?(K=a.jsx(Oe,{placeholder:S,className:"h-9"}),e[8]=S,e[9]=K):K=e[9];let I;e[10]!==b?(I=a.jsx(Ke,{children:b}),e[10]=b,e[11]=I):I=e[11];let E;if(e[12]!==n||e[13]!==l||e[14]!==c||e[15]!==C||e[16]!==s){let q;e[18]!==n||e[19]!==c||e[20]!==C||e[21]!==s?(q=R=>{const te=s===R.value;return a.jsx(Ee,{value:R.label,onSelect:()=>{n(R.value===s?"":R.value),C(!1)},children:c?c(R,te):a.jsxs(a.Fragment,{children:[R.label,a.jsx(ge,{className:X("ml-auto",te?"opacity-100":"opacity-0")})]})},R.value)},e[18]=n,e[19]=c,e[20]=C,e[21]=s,e[22]=q):q=e[22],E=l.map(q),e[12]=n,e[13]=l,e[14]=c,e[15]=C,e[16]=s,e[17]=E}else E=e[17];let T;e[23]!==E?(T=a.jsx(Ie,{children:E}),e[23]=E,e[24]=T):T=e[24];let M;e[25]!==I||e[26]!==T?(M=a.jsxs(Be,{children:[I,T]}),e[25]=I,e[26]=T,e[27]=M):M=e[27];let B;e[28]!==p||e[29]!==K||e[30]!==M?(B=a.jsxs(De,{filter:p,children:[K,M]}),e[28]=p,e[29]=K,e[30]=M,e[31]=B):B=e[31];let D;e[32]!==B||e[33]!==k?(D=a.jsx(Fe,{className:k,style:O,children:B}),e[32]=B,e[33]=k,e[34]=D):D=e[34];let $;return e[35]!==v||e[36]!==j||e[37]!==C||e[38]!==D||e[39]!==A?($=a.jsxs(v,{open:j,onOpenChange:C,children:[A,D]}),e[35]=v,e[36]=j,e[37]=C,e[38]=D,e[39]=A,e[40]=$):$=e[40],$}function Xe(t){const e=P.c(4),{size:l,className:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=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]=n):n=e[0];let i;return e[1]!==s||e[2]!==l?(i=a.jsx("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:n}),e[1]=s,e[2]=l,e[3]=i):i=e[3],i}function Pe(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 Ze(t){const{primary:e,secondary:l}=Pe(t);return[e,l,`#${t.id}`].filter(Boolean).join(" ")}function ue(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function et(t,e){const l=ue(e).trim();if(!l)return 1;const s=ue(t);return l.split(/\s+/).every(n=>s.includes(n))?1:0}function tt(){const t=P.c(7),{org:e}=z(),l=J();let s;t[0]!==e.id?(s=Q.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=l,t[3]=n):n=t[3];let i;return t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6],ee(i)}function re(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>(await l.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function st(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=()=>l.call("JIRA_INTEGRATION_DELETE",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function it(t){const e=P.c(8),{org:l}=z(),s=J();let n;e[0]!==l.id?(n=Q.jiraBoards(l.id),e[0]=l.id,e[1]=n):n=e[1];let i;e[2]!==s?(i=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=i):i=e[3];let r;return e[4]!==t||e[5]!==n||e[6]!==i?(r={queryKey:n,enabled:t,staleTime:6e4,queryFn:i},e[4]=t,e[5]=n,e[6]=i,e[7]=r):r=e[7],ee(r)}function lt(t){const e=P.c(10),{org:l}=z(),s=J();let n;e[0]!==t||e[1]!==l.id?(n=Q.jiraBoardColumns(l.id,t??""),e[0]=t,e[1]=l.id,e[2]=n):n=e[2];const i=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==i||e[8]!==r?(o={queryKey:n,enabled:i,staleTime:6e4,queryFn:r},e[6]=n,e[7]=i,e[8]=r,e[9]=o):o=e[9],ee(o)}function nt(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async()=>(await l.call("JIRA_SYNC_RUN",{})).result,t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function at(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async()=>await l.call("JIRA_RESYNC_REQUEST",{}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function rt(){const t=P.c(8),{locator:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>await l.call("TASK_BOARD_COLUMN_ROLE_SET",{columnKey:o.columnKey,role:o.role}),t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardItems(e)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function ot(){const t=P.c(12),{locator:e}=z(),l=J();let s;t[0]!==e?(s=Q.taskBoardColumnAutomations(e),t[0]=e,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>{const{automations:u}=await l.call("TASK_BOARD_AUTOMATION_LIST",{});return u},t[2]=l,t[3]=n):n=t[3];let i;t[4]!==s||t[5]!==n?(i={queryKey:s,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6];const r=ee(i);let o;t[7]!==r.data?(o=r.data??[],t[7]=r.data,t[8]=o):o=t[8];let d;return t[9]!==r.isPending||t[10]!==o?(d={automations:o,isPending:r.isPending},t[9]=r.isPending,t[10]=o,t[11]=d):d=t[11],d}function ct(){const t=P.c(8),{locator:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>{if(o.prompt===null){await l.call("TASK_BOARD_AUTOMATION_DELETE",{columnKey:o.columnKey});return}await l.call("TASK_BOARD_AUTOMATION_UPSERT",{columnKey:o.columnKey,prompt:o.prompt.trim()===""?void 0:o.prompt})},t[0]=l,t[1]=n):n=t[1];let i;t[2]!==s||t[3]!==e?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardColumnAutomations(e)}),t[2]=s,t[3]=e,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSuccess:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}const oe="__none__",dt=[{value:"in_progress",labelKey:"settings.boardColumns.whenRunStarts"},{value:"in_review",labelKey:"settings.boardColumns.whenRunFinishes"},{value:"archived",labelKey:"settings.boardColumns.whenMergedAndSettled"},{value:"todo",labelKey:"settings.boardColumns.whenRunFailsOut"}];function mt(){const t=P.c(16),e=L();if(!me("org_board_columns"))return null;let s;t[0]!==e?(s=e("settings.boardColumns.title"),t[0]=e,t[1]=s):s=t[1];let n;t[2]!==e?(n=e("settings.boardColumns.description"),t[2]=e,t[3]=n):n=t[3];let i;t[4]!==e?(i=e("settings.boardColumns.fieldLabel"),t[4]=e,t[5]=i):i=t[5];let r;t[6]!==e?(r=e("settings.boardColumns.fieldDescription"),t[6]=e,t[7]=r):r=t[7];let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ut,{}),t[8]=o):o=t[8];let d;t[9]!==i||t[10]!==r?(d=a.jsx(Z,{children:a.jsx(H,{title:i,description:r,children:o})}),t[9]=i,t[10]=r,t[11]=d):d=t[11];let u;return t[12]!==s||t[13]!==n||t[14]!==d?(u=a.jsx(de,{title:s,description:n,children:d}),t[12]=s,t[13]=n,t[14]=d,t[15]=u):u=t[15],u}function ut(){const t=P.c(14),e=L(),{columns:l,isLoading:s}=Je(),{automations:n,isPending:i}=ot();if(s||i){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ae,{className:"h-40 w-full"}),t[0]=c):c=t[0],c}if(l.length===0){let c;t[1]!==e?(c=e("settings.jira.noColumnsYet"),t[1]=e,t[2]=c):c=t[2];let m;return t[3]!==c?(m=a.jsx("p",{className:"text-xs text-muted-foreground",children:c}),t[3]=c,t[4]=m):m=t[4],m}let r;t[5]!==n?(r=new Map(n.map(ft)),t[5]=n,t[6]=r):r=t[6];const o=r;let d;if(t[7]!==l||t[8]!==o){let c;t[10]!==o?(c=m=>a.jsx(gt,{columnKey:m.key,title:m.title,trigger:m.role,hasAutomation:o.has(m.key),prompt:o.get(m.key)??null},m.key),t[10]=o,t[11]=c):c=t[11],d=l.map(c),t[7]=l,t[8]=o,t[9]=d}else d=t[9];let u;return t[12]!==d?(u=a.jsx("div",{className:"flex w-full flex-col gap-3",children:d}),t[12]=d,t[13]=u):u=t[13],u}function ft(t){return[t.columnKey,t.prompt]}function gt(t){const e=P.c(45),{columnKey:l,title:s,trigger:n,hasAutomation:i,prompt:r}=t,o=L(),d=rt(),u=ct(),[c,m]=U.useState(r??""),[f,p]=U.useState(r);f!==r&&(p(r),m(r??""));let h;e[0]!==o?(h=()=>F.error(o("settings.boardColumns.saveFailed")),e[0]=o,e[1]=h):h=e[1];const y=h;let b;e[2]!==l||e[3]!==y||e[4]!==u?(b=T=>u.mutate({columnKey:l,prompt:T},{onError:y}),e[2]=l,e[3]=y,e[4]=u,e[5]=b):b=e[5];const S=b;let g;e[6]!==s?(g=a.jsx("span",{className:"truncate text-sm font-medium",children:s}),e[6]=s,e[7]=g):g=e[7];let x;e[8]!==o?(x=o("settings.boardColumns.moveHereWhen"),e[8]=o,e[9]=x):x=e[9];let j;e[10]!==x?(j=a.jsx("span",{className:"text-xs text-muted-foreground",children:x}),e[10]=x,e[11]=j):j=e[11];const C=n??oe;let v;e[12]!==l||e[13]!==y||e[14]!==d?(v=T=>d.mutate({columnKey:l,role:T===oe?null:T},{onError:y}),e[12]=l,e[13]=y,e[14]=d,e[15]=v):v=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(_e,{className:"w-64",children:a.jsx(Ne,{})}),e[16]=_):_=e[16];let N;e[17]!==o?(N=o("settings.boardColumns.whenNever"),e[17]=o,e[18]=N):N=e[18];let w;e[19]!==N?(w=a.jsx(ne,{value:oe,children:N}),e[19]=N,e[20]=w):w=e[20];let A;e[21]!==o?(A=dt.map(T=>a.jsx(ne,{value:T.value,children:o(T.labelKey)},T.value)),e[21]=o,e[22]=A):A=e[22];let k;e[23]!==w||e[24]!==A?(k=a.jsxs(we,{children:[w,A]}),e[23]=w,e[24]=A,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==C||e[28]!==v?(O=a.jsxs(Te,{value:C,onValueChange:v,children:[_,k]}),e[26]=k,e[27]=C,e[28]=v,e[29]=O):O=e[29];let K;e[30]!==O||e[31]!==j?(K=a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j,O]}),e[30]=O,e[31]=j,e[32]=K):K=e[32];let I;e[33]!==l||e[34]!==c||e[35]!==i||e[36]!==r||e[37]!==S||e[38]!==o||e[39]!==s?(I=i?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.boardColumns.automationOn")}),a.jsx(G,{variant:"ghost",size:"sm","aria-label":o("settings.boardColumns.removeAriaLabel",{column:s}),onClick:()=>S(null),children:a.jsx(We,{size:14})})]}),a.jsx(Ae,{value:c,rows:2,placeholder:o("settings.boardColumns.promptPlaceholder"),onChange:T=>m(T.target.value),onBlur:()=>{c!==(r??"")&&S(c)},"data-column-automation-prompt":l}),a.jsx("p",{className:"text-xs text-muted-foreground",children:o("settings.boardColumns.promptHelp")})]}):a.jsxs(G,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>S(""),children:[a.jsx(Ge,{size:14}),o("settings.boardColumns.addAutomation")]}),e[33]=l,e[34]=c,e[35]=i,e[36]=r,e[37]=S,e[38]=o,e[39]=s,e[40]=I):I=e[40];let E;return e[41]!==K||e[42]!==I||e[43]!==g?(E=a.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-border p-3",children:[g,K,I]}),e[41]=K,e[42]=I,e[43]=g,e[44]=E):E=e[44],E}function pt(){const t=P.c(12),{org:e}=z(),l=J();let s;t[0]!==e.id?(s=Q.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==l?(n=async()=>(await l.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=l,t[3]=n):n=t[3];let i;t[4]!==s||t[5]!==n?(i={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=i):i=t[6];const r=ee(i);let o;t[7]!==r.data?(o=r.data?.find(xt)?.prompt??"",t[7]=r.data,t[8]=o):o=t[8];let d;return t[9]!==r.isPending||t[10]!==o?(d={prompt:o,isPending:r.isPending},t[9]=r.isPending,t[10]=o,t[11]=d):d=t[11],d}function xt(t){return t.columnKey===null}function ht(){const t=P.c(8),{org:e}=z(),l=J(),s=V();let n;t[0]!==l?(n=async o=>{const d=o.trim();if(!d){await l.call("TASK_BOARD_PROMPT_DELETE",{});return}await l.call("TASK_BOARD_PROMPT_UPSERT",{prompt:d})},t[0]=l,t[1]=n):n=t[1];let i;t[2]!==e||t[3]!==s?(i=()=>s.invalidateQueries({queryKey:Q.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=i):i=t[4];let r;return t[5]!==n||t[6]!==i?(r={mutationFn:n,onSettled:i},t[5]=n,t[6]=i,t[7]=r):r=t[7],Y(r)}function jt(){const t=P.c(16),e=L(),{prompt:l,isPending:s}=pt(),n=ht(),[i,r]=U.useState(l),[o,d]=U.useState(l);o!==l&&(d(l),r(l));let u;t[0]!==e?(u=e("settings.taskPrompt.title"),t[0]=e,t[1]=u):u=t[1];let c;t[2]!==e?(c=e("settings.taskPrompt.fieldLabel"),t[2]=e,t[3]=c):c=t[3];let m;t[4]!==i||t[5]!==s||t[6]!==l||t[7]!==n||t[8]!==e?(m=s?a.jsx(ae,{className:"h-44 w-full"}):a.jsxs("div",{className:"flex flex-col items-start gap-2",children:[a.jsx(Ae,{value:i,rows:10,maxLength:He,placeholder:e("settings.taskPrompt.placeholder"),onChange:h=>r(h.target.value)}),a.jsx(G,{size:"sm",disabled:i===l||n.isPending,onClick:()=>n.mutate(i,{onSuccess:()=>F.success(e("settings.taskPrompt.saved")),onError:()=>F.error(e("settings.taskPrompt.failed"))}),children:e("settings.taskPrompt.save")})]}),t[4]=i,t[5]=s,t[6]=l,t[7]=n,t[8]=e,t[9]=m):m=t[9];let f;t[10]!==c||t[11]!==m?(f=a.jsx(Z,{children:a.jsx(H,{title:c,children:m})}),t[10]=c,t[11]=m,t[12]=f):f=t[12];let p;return t[13]!==u||t[14]!==f?(p=a.jsx(de,{title:u,children:f}),t[13]=u,t[14]=f,t[15]=p):p=t[15],p}function ie(t,e){const l=e.statuses[0];if(l)return Object.entries(t).find(([,s])=>s.includes(l))?.[0]}const fe=[{value:"triage",labelKey:"taskBoard.config.statusBacklog"},{value:"todo",labelKey:"taskBoard.config.statusTodo"},{value:"in_progress",labelKey:"taskBoard.config.statusInProgress"},{value:"in_review",labelKey:"taskBoard.config.statusInReview"},{value:"approved",labelKey:"taskBoard.config.statusApproved"},{value:"merged",labelKey:"taskBoard.config.statusMerged"},{value:"post_deploy_validation",labelKey:"taskBoard.config.statusPostDeployValidation"},{value:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}];function yt(t,e){return t?fe:fe.filter(l=>!Qe(l.value)||l.value===e)}const ce="__dont_sync__";function W(t,e){return t instanceof Error?t.message:e}const bt="https://id.atlassian.com/manage-profile/security/api-tokens";function St(t){const e=P.c(7),{stepKeys:l}=t,s=L();let n;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],n=l.map(r),e[0]=l,e[1]=s,e[2]=n}else n=e[2];let i;return e[5]!==n?(i=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function vt(){const t=P.c(69),e=L(),l=re(),[s,n]=U.useState(""),[i,r]=U.useState(""),[o,d]=U.useState("");let u;t[0]!==o||t[1]!==i||t[2]!==s?(u=s.trim()!==""&&i.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=i,t[2]=s,t[3]=u):u=t[3];const c=u;let m;t[4]!==e?(m=e("settings.jira.siteLabel"),t[4]=e,t[5]=m):m=t[5];let f;t[6]!==m?(f=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:m}),t[6]=m,t[7]=f):f=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=R=>n(R.target.value),t[8]=p):p=t[8];let h;t[9]!==e?(h=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=h):h=t[10];let y;t[11]!==s||t[12]!==h?(y=a.jsx(le,{value:s,onChange:p,placeholder:h,autoComplete:"off"}),t[11]=s,t[12]=h,t[13]=y):y=t[13];let b;t[14]!==f||t[15]!==y?(b=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[f,y]}),t[14]=f,t[15]=y,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("settings.jira.emailLabel"),t[17]=e,t[18]=S):S=t[18];let g;t[19]!==S?(g=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:S}),t[19]=S,t[20]=g):g=t[20];let x;t[21]===Symbol.for("react.memo_cache_sentinel")?(x=R=>r(R.target.value),t[21]=x):x=t[21];let j;t[22]!==e?(j=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=j):j=t[23];let C;t[24]!==i||t[25]!==j?(C=a.jsx(le,{value:i,onChange:x,placeholder:j,autoComplete:"off"}),t[24]=i,t[25]=j,t[26]=C):C=t[26];let v;t[27]!==C||t[28]!==g?(v=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,C]}),t[27]=C,t[28]=g,t[29]=v):v=t[29];let _;t[30]!==e?(_=e("settings.jira.tokenLabel"),t[30]=e,t[31]=_):_=t[31];let N;t[32]!==_?(N=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:_}),t[32]=_,t[33]=N):N=t[33];let w;t[34]!==e?(w=e("settings.jira.createTokenLink"),t[34]=e,t[35]=w):w=t[35];let A;t[36]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Re,{size:12}),t[36]=A):A=t[36];let k;t[37]!==w?(k=a.jsxs("a",{href:bt,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[w,A]}),t[37]=w,t[38]=k):k=t[38];let O;t[39]!==N||t[40]!==k?(O=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[N,k]}),t[39]=N,t[40]=k,t[41]=O):O=t[41];let K;t[42]===Symbol.for("react.memo_cache_sentinel")?(K=R=>d(R.target.value),t[42]=K):K=t[42];let I;t[43]!==e?(I=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=I):I=t[44];let E;t[45]!==o||t[46]!==I?(E=a.jsx(le,{type:"password",value:o,onChange:K,placeholder:I,autoComplete:"off"}),t[45]=o,t[46]=I,t[47]=E):E=t[47];let T;t[48]!==O||t[49]!==E?(T=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[O,E]}),t[48]=O,t[49]=E,t[50]=T):T=t[50];const M=!c||l.isPending;let B;t[51]!==o||t[52]!==i||t[53]!==s||t[54]!==e||t[55]!==l?(B=()=>l.mutate({siteUrl:s.trim(),email:i.trim(),apiToken:o.trim()},{onSuccess:()=>F.success(e("settings.jira.connected")),onError:R=>F.error(W(R,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=i,t[53]=s,t[54]=e,t[55]=l,t[56]=B):B=t[56];let D;t[57]!==e||t[58]!==l.isPending?(D=l.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=l.isPending,t[59]=D):D=t[59];let $;t[60]!==M||t[61]!==B||t[62]!==D?($=a.jsx(G,{size:"sm",className:"w-fit",disabled:M,onClick:B,children:D}),t[60]=M,t[61]=B,t[62]=D,t[63]=$):$=t[63];let q;return t[64]!==v||t[65]!==T||t[66]!==$||t[67]!==b?(q=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[b,v,T,$]}),t[64]=v,t[65]=T,t[66]=$,t[67]=b,t[68]=q):q=t[68],q}function Ct(t){const e=P.c(7),{integration:l}=t,s=L();if(l.lastSyncError){let r;return e[0]!==l.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:l.lastSyncError}),e[0]=l.lastSyncError,e[1]=r):r=e[1],r}let n;e[2]!==l.lastSyncedAt||e[3]!==s?(n=l.lastSyncedAt?s("settings.jira.lastSynced",{ago:ze(l.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=l.lastSyncedAt,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==n?(i=a.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[5]=n,e[6]=i):i=e[6],i}function _t(t){const e=P.c(35),{integration:l}=t,s=L(),n=re(),i=lt(l.boardId),r=me("delivery_lanes_enabled"),[o,d]=U.useState(l.statusMapping),[u,c]=U.useState(l);if(u!==l&&(c(l),d(l.statusMapping)),i.isPending){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ae,{className:"h-24 w-full mt-3"}),e[0]=g):g=e[0],g}if(i.isError){let g;e[1]!==i.error||e[2]!==s?(g=W(i.error,s("settings.jira.columnsFailed")),e[1]=i.error,e[2]=s,e[3]=g):g=e[3];let x;return e[4]!==g?(x=a.jsx("p",{className:"text-xs text-destructive mt-3",children:g}),e[4]=g,e[5]=x):x=e[5],x}let m;e[6]!==i.data||e[7]!==o||e[8]!==s||e[9]!==n?(m=function(x,j){const C=o,v={};for(const _ of i.data??[]){const N=_.name===x.name?j===ce?void 0:j:ie(o,_);N&&(v[N]=[...v[N]??[],..._.statuses])}d(v),n.mutate({statusMapping:v},{onError:_=>{d(C),F.error(W(_,s("settings.jira.saveFailed")))}})},e[6]=i.data,e[7]=o,e[8]=s,e[9]=n,e[10]=m):m=e[10];const f=m;let p,h;if(e[11]!==i.data||e[12]!==o||e[13]!==s){let g;e[16]!==o?(g=j=>!ie(o,j),e[16]=o,e[17]=g):g=e[17];const x=(i.data??[]).filter(g);p="flex flex-col mt-3",h=x.length>0&&a.jsx("p",{className:"mb-2 rounded-md bg-warning/10 px-3 py-2 text-xs text-warning",children:s("settings.jira.unmappedWarning",{columns:x.map(Nt).join(", ")})}),e[11]=i.data,e[12]=o,e[13]=s,e[14]=p,e[15]=h}else p=e[14],h=e[15];let y;e[18]!==i.data?(y=i.data??[],e[18]=i.data,e[19]=y):y=e[19];let b;if(e[20]!==r||e[21]!==o||e[22]!==f||e[23]!==s||e[24]!==y){let g;e[26]!==r||e[27]!==o||e[28]!==f||e[29]!==s?(g=x=>a.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("span",{className:"text-sm truncate",children:x.name}),(x.statuses.length>1||x.statuses[0]!==x.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:x.statuses.join(", ")})]}),a.jsxs(Te,{value:ie(o,x)??ce,onValueChange:j=>f(x,j),children:[a.jsx(_e,{className:"w-44 shrink-0",children:a.jsx(Ne,{})}),a.jsxs(we,{children:[a.jsx(ne,{value:ce,children:s("settings.jira.dontSync")}),yt(r,ie(o,x)).map(j=>a.jsx(ne,{value:j.value,children:s(j.labelKey)},j.value))]})]})]},x.name),e[26]=r,e[27]=o,e[28]=f,e[29]=s,e[30]=g):g=e[30],b=y.map(g),e[20]=r,e[21]=o,e[22]=f,e[23]=s,e[24]=y,e[25]=b}else b=e[25];let S;return e[31]!==p||e[32]!==h||e[33]!==b?(S=a.jsxs("div",{className:p,children:[h,b]}),e[31]=p,e[32]=h,e[33]=b,e[34]=S):S=e[34],S}function Nt(t){return t.name}function wt(t){const e=P.c(44),{integration:l}=t,s=L(),n=st(),[i,r]=U.useState(!1),o=l.siteUrl,d=l.email;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>r(!0),e[0]=u):u=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let m;e[3]!==c?(m=a.jsx(G,{variant:"outline",size:"sm",onClick:u,children:c}),e[3]=c,e[4]=m):m=e[4];let f;e[5]!==l.email||e[6]!==l.siteUrl||e[7]!==m?(f=a.jsx(H,{title:o,description:d,action:m}),e[5]=l.email,e[6]=l.siteUrl,e[7]=m,e[8]=f):f=e[8];let p;e[9]!==s?(p=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=p):p=e[10];let h;e[11]!==p?(h=a.jsx(xe,{children:p}),e[11]=p,e[12]=h):h=e[12];let y;e[13]!==s?(y=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=y):y=e[14];let b;e[15]!==y?(b=a.jsx(he,{children:y}),e[15]=y,e[16]=b):b=e[16];let S;e[17]!==b||e[18]!==h?(S=a.jsxs(je,{children:[h,b]}),e[17]=b,e[18]=h,e[19]=S):S=e[19];let g;e[20]!==s?(g=s("settings.jira.cancel"),e[20]=s,e[21]=g):g=e[21];let x;e[22]!==g?(x=a.jsx(ye,{children:g}),e[22]=g,e[23]=x):x=e[23];let j;e[24]!==n||e[25]!==s?(j=()=>n.mutate(void 0,{onSuccess:()=>F.success(s("settings.jira.disconnected")),onError:k=>F.error(W(k,s("settings.jira.saveFailed")))}),e[24]=n,e[25]=s,e[26]=j):j=e[26];let C;e[27]!==s?(C=s("settings.jira.disconnect"),e[27]=s,e[28]=C):C=e[28];let v;e[29]!==j||e[30]!==C?(v=a.jsx(be,{onClick:j,children:C}),e[29]=j,e[30]=C,e[31]=v):v=e[31];let _;e[32]!==x||e[33]!==v?(_=a.jsxs(Se,{children:[x,v]}),e[32]=x,e[33]=v,e[34]=_):_=e[34];let N;e[35]!==S||e[36]!==_?(N=a.jsxs(ve,{children:[S,_]}),e[35]=S,e[36]=_,e[37]=N):N=e[37];let w;e[38]!==i||e[39]!==N?(w=a.jsx(Ce,{open:i,onOpenChange:r,children:N}),e[38]=i,e[39]=N,e[40]=w):w=e[40];let A;return e[41]!==w||e[42]!==f?(A=a.jsxs(a.Fragment,{children:[f,w]}),e[41]=w,e[42]=f,e[43]=A):A=e[43],A}function Tt(t){const e=P.c(36),{integration:l}=t,s=L(),n=re(),i=it(!0);let r,o;e[0]!==i.data||e[1]!==l.boardId||e[2]!==l.boardName?(r=(i.data??[]).map(Pt),o=l.boardId?r.find(x=>x.value===l.boardId)?.primary??l.boardName??l.boardId:null,e[0]=i.data,e[1]=l.boardId,e[2]=l.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const d=o;let u;e[5]!==s?(u=s("settings.jira.boardLabel"),e[5]=s,e[6]=u):u=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const m=l.boardId??"";let f;e[9]!==s?(f=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=f):f=e[10];let p;e[11]!==s?(p=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=p):p=e[12];let h;e[13]!==i.isPending||e[14]!==s?(h=i.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=i.isPending,e[14]=s,e[15]=h):h=e[15];let y;e[16]!==d||e[17]!==s?(y=()=>a.jsxs(G,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),a.jsx(pe,{className:"opacity-50 shrink-0"})]}),e[16]=d,e[17]=s,e[18]=y):y=e[18];let b;e[19]!==r||e[20]!==l.boardId||e[21]!==s||e[22]!==n?(b=x=>{!x||x===l.boardId||n.mutate({boardId:x,boardName:r.find(j=>j.value===x)?.primary??null,statusMapping:{},enabled:!1},{onError:j=>F.error(W(j,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=l.boardId,e[21]=s,e[22]=n,e[23]=b):b=e[23];let S;e[24]!==r||e[25]!==m||e[26]!==f||e[27]!==p||e[28]!==h||e[29]!==y||e[30]!==b?(S=a.jsx(Ye,{options:r,value:m,width:"w-72",triggerClassName:"shrink-0",placeholder:f,searchPlaceholder:p,filter:et,emptyMessage:h,renderTrigger:y,renderItem:At,onChange:b}),e[24]=r,e[25]=m,e[26]=f,e[27]=p,e[28]=h,e[29]=y,e[30]=b,e[31]=S):S=e[31];let g;return e[32]!==S||e[33]!==u||e[34]!==c?(g=a.jsx(H,{title:u,description:c,action:S}),e[32]=S,e[33]=u,e[34]=c,e[35]=g):g=e[35],g}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(ge,{className:X("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function Pt(t){const{primary:e,secondary:l}=Pe(t);return{value:String(t.id),label:Ze(t),primary:e,secondary:l}}function kt(t){const e=P.c(10),{integration:l}=t,s=L();if(me("org_board_columns"))return null;let i;e[0]!==s?(i=s("settings.jira.mappingLabel"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.mappingDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(_t,{integration:l}),e[4]=l,e[5]=o):o=e[5];let d;return e[6]!==i||e[7]!==r||e[8]!==o?(d=a.jsx(H,{title:i,description:r,children:o}),e[6]=i,e[7]=r,e[8]=o,e[9]=d):d=e[9],d}function Rt(t){const e=P.c(72),{integration:l}=t,s=L(),n=re(),i=nt(),r=at(),[o,d]=U.useState(!1);let u;e[0]!==l.statusMapping?(u=Object.keys(l.statusMapping),e[0]=l.statusMapping,e[1]=u):u=e[1];const c=u.length>0;let m;e[2]!==s?(m=s("settings.jira.enableLabel"),e[2]=s,e[3]=m):m=e[3];let f;e[4]!==l?(f=a.jsx(Ct,{integration:l}),e[4]=l,e[5]=f):f=e[5];const p=!l.enabled||i.isPending||r.isPending;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=()=>d(!0),e[6]=h):h=e[6];let y;e[7]!==s?(y=s("settings.jira.resyncAll"),e[7]=s,e[8]=y):y=e[8];let b;e[9]!==p||e[10]!==y?(b=a.jsx(G,{variant:"outline",size:"sm",disabled:p,onClick:h,children:y}),e[9]=p,e[10]=y,e[11]=b):b=e[11];let S;e[12]!==s?(S=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=S):S=e[13];let g;e[14]!==S?(g=a.jsx(xe,{children:S}),e[14]=S,e[15]=g):g=e[15];let x;e[16]!==s?(x=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=x):x=e[17];let j;e[18]!==x?(j=a.jsx(he,{children:x}),e[18]=x,e[19]=j):j=e[19];let C;e[20]!==j||e[21]!==g?(C=a.jsxs(je,{children:[g,j]}),e[20]=j,e[21]=g,e[22]=C):C=e[22];let v;e[23]!==s?(v=s("settings.jira.cancel"),e[23]=s,e[24]=v):v=e[24];let _;e[25]!==v?(_=a.jsx(ye,{children:v}),e[25]=v,e[26]=_):_=e[26];let N;e[27]!==r||e[28]!==s?(N=()=>r.mutate(void 0,{onSuccess:()=>F.success(s("settings.jira.resyncAllQueued")),onError:R=>F.error(W(R,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=N):N=e[29];let w;e[30]!==s?(w=s("settings.jira.resyncAll"),e[30]=s,e[31]=w):w=e[31];let A;e[32]!==N||e[33]!==w?(A=a.jsx(be,{onClick:N,children:w}),e[32]=N,e[33]=w,e[34]=A):A=e[34];let k;e[35]!==_||e[36]!==A?(k=a.jsxs(Se,{children:[_,A]}),e[35]=_,e[36]=A,e[37]=k):k=e[37];let O;e[38]!==C||e[39]!==k?(O=a.jsxs(ve,{children:[C,k]}),e[38]=C,e[39]=k,e[40]=O):O=e[40];let K;e[41]!==o||e[42]!==O||e[43]!==b?(K=a.jsxs(Ce,{open:o,onOpenChange:d,children:[b,O]}),e[41]=o,e[42]=O,e[43]=b,e[44]=K):K=e[44];const I=!l.enabled||i.isPending;let E;e[45]!==i||e[46]!==s?(E=()=>i.mutate(void 0,{onSuccess:R=>{"error"in R?F.error(R.error):F.success(s("settings.jira.syncDone",{created:String(R.created),updated:String(R.updated),archived:String(R.archived)}))},onError:R=>F.error(W(R,s("settings.jira.syncFailed")))}),e[45]=i,e[46]=s,e[47]=E):E=e[47];let T;e[48]!==i.isPending||e[49]!==s?(T=i.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=i.isPending,e[49]=s,e[50]=T):T=e[50];let M;e[51]!==I||e[52]!==E||e[53]!==T?(M=a.jsx(G,{variant:"outline",size:"sm",disabled:I,onClick:E,children:T}),e[51]=I,e[52]=E,e[53]=T,e[54]=M):M=e[54];let B;e[55]!==c||e[56]!==l.boardId||e[57]!==s||e[58]!==n?(B=R=>{if(R&&(!l.boardId||!c)){F.error(s("settings.jira.enableRequirements"));return}n.mutate({enabled:R},{onError:te=>F.error(W(te,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=l.boardId,e[57]=s,e[58]=n,e[59]=B):B=e[59];let D;e[60]!==l.enabled||e[61]!==B||e[62]!==n.isPending?(D=a.jsx(qe,{checked:l.enabled,disabled:n.isPending,onCheckedChange:B}),e[60]=l.enabled,e[61]=B,e[62]=n.isPending,e[63]=D):D=e[63];let $;e[64]!==K||e[65]!==M||e[66]!==D?($=a.jsxs("div",{className:"flex items-center gap-3",children:[K,M,D]}),e[64]=K,e[65]=M,e[66]=D,e[67]=$):$=e[67];let q;return e[68]!==m||e[69]!==$||e[70]!==f?(q=a.jsx(H,{title:m,description:f,action:$}),e[68]=m,e[69]=$,e[70]=f,e[71]=q):q=e[71],q}function Ot(t){const e=P.c(24),{integration:l}=t,s=L(),n=`${window.location.origin}/api/_jira/webhook/${l.webhookSecret}`;let i;e[0]!==s?(i=s("settings.jira.webhookTitle"),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==n?(o=a.jsx(le,{readOnly:!0,value:n,className:"font-mono text-xs"}),e[4]=n,e[5]=o):o=e[5];let d;e[6]!==s||e[7]!==n?(d=()=>{navigator.clipboard.writeText(n),F.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=n,e[8]=d):d=e[8];let u;e[9]!==s?(u=s("settings.jira.webhookCopy"),e[9]=s,e[10]=u):u=e[10];let c;e[11]!==d||e[12]!==u?(c=a.jsx(G,{variant:"outline",size:"sm",className:"shrink-0",onClick:d,children:u}),e[11]=d,e[12]=u,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(St,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=f):f=e[17];let p;e[18]!==m?(p=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[m,f]}),e[18]=m,e[19]=p):p=e[19];let h;return e[20]!==i||e[21]!==r||e[22]!==p?(h=a.jsx(H,{title:i,description:r,children:p}),e[20]=i,e[21]=r,e[22]=p,e[23]=h):h=e[23],h}function Kt(){const t=P.c(22),e=L(),l=tt();if(l.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Z,{children:a.jsx("div",{className:"p-4",children:a.jsx(ae,{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 m;t[3]!==e?(m=e("settings.jira.connectDescription"),t[3]=e,t[4]=m):m=t[4];let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(vt,{}),t[5]=f):f=t[5];let p;return t[6]!==c||t[7]!==m?(p=a.jsx(Z,{children:a.jsx(H,{title:c,description:m,children:f})}),t[6]=c,t[7]=m,t[8]=p):p=t[8],p}const s=l.data;let n,i,r;t[9]!==s?(n=a.jsx(wt,{integration:s}),i=a.jsx(Tt,{integration:s}),r=s.boardId&&a.jsx(kt,{integration:s}),t[9]=s,t[10]=n,t[11]=i,t[12]=r):(n=t[10],i=t[11],r=t[12]);let o,d;t[13]!==s?(o=a.jsx(Rt,{integration:s}),d=a.jsx(Ot,{integration:s}),t[13]=s,t[14]=o,t[15]=d):(o=t[14],d=t[15]);let u;return t[16]!==n||t[17]!==i||t[18]!==r||t[19]!==o||t[20]!==d?(u=a.jsxs(Z,{children:[n,i,r,o,d]}),t[16]=n,t[17]=i,t[18]=r,t[19]=o,t[20]=d,t[21]=u):u=t[21],u}function Et(){const t=P.c(19),e=L();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(se.Title,{children:l}),t[2]=l,t[3]=s):s=t[3];let n,i,r,o;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Le,{}),i=a.jsx(jt,{}),r=a.jsx(mt,{}),o=a.jsx(Ue,{}),t[4]=n,t[5]=i,t[6]=r,t[7]=o):(n=t[4],i=t[5],r=t[6],o=t[7]);let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Xe,{size:18}),t[8]=d):d=t[8];let u;t[9]!==e?(u=e("settings.jira.sectionTitle"),t[9]=e,t[10]=u):u=t[10];let c;t[11]!==u?(c=a.jsxs("span",{className:"flex items-center gap-2",children:[d,u]}),t[11]=u,t[12]=c):c=t[12];let m;t[13]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Kt,{}),t[13]=m):m=t[13];let f;t[14]!==c?(f=a.jsx(de,{title:c,children:m}),t[14]=c,t[15]=f):f=t[15];let p;return t[16]!==s||t[17]!==f?(p=a.jsx(se,{children:a.jsx(se.Content,{children:a.jsx(se.Body,{children:a.jsxs(ke,{children:[s,n,i,r,o,f]})})})}),t[16]=s,t[17]=f,t[18]=p):p=t[18],p}function As(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ve,{capability:"org:manage",area:"settings",children:a.jsx(Et,{})}),t[0]=e):e=t[0],e}export{As as default};
@@ -1 +1 @@
1
- import{c as o,l,j as n}from"./index-iMHThdI5.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{c as o,l,j as n}from"./index-B8v6bpri.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1 +1 @@
1
- import{s as h}from"./slugify-CEUa2lfQ.js";import{J as m}from"./index-iMHThdI5.js";function c(r){const t=r?.trim();if(!t)return null;try{const n=new URL(t);return n.protocol!=="http:"&&n.protocol!=="https:"?null:n.href}catch{return null}}function d(r){return c(r?.previewServerUrl)??c(r?.productionUrl)}function I(r){return r?.find(t=>t.production)?.domain??r?.[0]?.domain}function p(r){const t=r?.trim();if(!t)return null;const n=/^https?:\/\//i.test(t)?t:`https://${t}`;return c(n)}function S(r){const t=h(r??"");return t?p(`${t}.deco.site`):null}function l(r){return r==="cms"||r==="sandbox"?r:null}function w(r){return!!d(r)&&r?.fastPreview===!0}function y(r){return w(r)?"cms":"sandbox"}function T(r,t){return l(r?.runtime)??y(t)}function a(r,t){return m.chatThreadIntent(r,t)}function U(r,t,n,e){if(!(!e.runtime&&!e.branch))try{r.setItem(a(t,n),JSON.stringify(e))}catch{}}function g(r,t,n){try{r.removeItem(a(t,n))}catch{}}function P(r,t,n){const e=a(t,n);let u=null;try{u=r.getItem(e),r.removeItem(e)}catch{return{}}if(!u)return{};let i;try{i=JSON.parse(u)}catch{return{}}if(!i||typeof i!="object")return{};const o=i,s=l(o.runtime),f=typeof o.branch=="string"&&o.branch?o.branch:void 0;return{...s?{runtime:s}:{},...f?{branch:f}:{}}}export{d as a,p as b,P as c,y as d,g as e,S as f,I as g,l as p,T as r,c as s,U as w};
1
+ import{s as h}from"./slugify-CEUa2lfQ.js";import{J as m}from"./index-B8v6bpri.js";function c(r){const t=r?.trim();if(!t)return null;try{const n=new URL(t);return n.protocol!=="http:"&&n.protocol!=="https:"?null:n.href}catch{return null}}function d(r){return c(r?.previewServerUrl)??c(r?.productionUrl)}function I(r){return r?.find(t=>t.production)?.domain??r?.[0]?.domain}function p(r){const t=r?.trim();if(!t)return null;const n=/^https?:\/\//i.test(t)?t:`https://${t}`;return c(n)}function S(r){const t=h(r??"");return t?p(`${t}.deco.site`):null}function l(r){return r==="cms"||r==="sandbox"?r:null}function w(r){return!!d(r)&&r?.fastPreview===!0}function y(r){return w(r)?"cms":"sandbox"}function T(r,t){return l(r?.runtime)??y(t)}function a(r,t){return m.chatThreadIntent(r,t)}function U(r,t,n,e){if(!(!e.runtime&&!e.branch))try{r.setItem(a(t,n),JSON.stringify(e))}catch{}}function g(r,t,n){try{r.removeItem(a(t,n))}catch{}}function P(r,t,n){const e=a(t,n);let u=null;try{u=r.getItem(e),r.removeItem(e)}catch{return{}}if(!u)return{};let i;try{i=JSON.parse(u)}catch{return{}}if(!i||typeof i!="object")return{};const o=i,s=l(o.runtime),f=typeof o.branch=="string"&&o.branch?o.branch:void 0;return{...s?{runtime:s}:{},...f?{branch:f}:{}}}export{d as a,p as b,P as c,y as d,g as e,S as f,I as g,l as p,T as r,c as s,U as w};
@@ -1 +1 @@
1
- import{c as y,b as T,j as i,B as L,r as O,J as U,u as k,f as D,W as E,d as V,Z as H,y as z,dz as B}from"./index-iMHThdI5.js";import{d as J,h as K,c as F,b as G,D as W}from"./dialog-CCRr4CCv.js";import{i as Y}from"./Check-CA6oOwnk.js";import{a as Q}from"./Copy01-DHhdbM_J.js";import{n as X}from"./Download01-R47mE7bD.js";import{u as M,D as j}from"./use-destination-route-BjLqPQzR.js";import{a as $}from"./constants-DNuUCxmW.js";const Z="https://github.com/decocms/studio/releases";function q(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function ee(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function we(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function te(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function ne(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function P(e){const t=y.c(12),{copiedLabel:n}=e,s=T(),[o,r]=O.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=q(),t[0]=l):l=t[0];const a=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:a}),t[1]=c):c=t[1];let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{ne(navigator.clipboard,a).then(p=>{p&&(r(!0),setTimeout(()=>r(!1),2e3))})},t[2]=d):d=t[2];let u;t[3]!==o?(u=o?i.jsx(Y,{size:16}):i.jsx(Q,{size:16}),t[3]=o,t[4]=u):u=t[4];let f;t[5]!==o||t[6]!==n||t[7]!==s?(f=o?n:s("downloadApp.copyLabel"),t[5]=o,t[6]=n,t[7]=s,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=i.jsxs("div",{className:"flex flex-col gap-3",children:[c,i.jsxs(L,{type:"button",className:"w-full gap-2",onClick:d,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function oe(){const e=y.c(18),t=T();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=i.jsx(P,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let o;e[4]!==t?(o=t("downloadApp.terminalHint"),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==o?(r=i.jsx("p",{children:o}),e[6]=o,e[7]=r):r=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let a;e[10]!==l?(a=i.jsx("p",{children:l}),e[10]=l,e[11]=a):a=e[11];let c;e[12]!==r||e[13]!==a?(c=i.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[r,a]}),e[12]=r,e[13]=a,e[14]=c):c=e[14];let d;return e[15]!==s||e[16]!==c?(d=i.jsxs(i.Fragment,{children:[s,c]}),e[15]=s,e[16]=c,e[17]=d):d=e[17],d}function se(){const e=y.c(42),t=T();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=i.jsx(P,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let o;e[4]!==t?(o=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==o?(r=i.jsx("p",{children:o}),e[6]=o,e[7]=r):r=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let a;e[10]!==l?(a=i.jsx("p",{children:l}),e[10]=l,e[11]=a):a=e[11];let c;e[12]!==r||e[13]!==a?(c=i.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[r,a]}),e[12]=r,e[13]=a,e[14]=c):c=e[14];let d;e[15]!==t?(d=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=d):d=e[16];let u;e[17]!==d?(u=i.jsx("p",{children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=ee("4.320.0"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(X,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let h;e[23]!==p?(h=i.jsx(L,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:i.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let S;e[25]!==t?(S=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=S):S=e[26];let I;e[27]!==S?(I=i.jsx("p",{children:S}),e[27]=S,e[28]=I):I=e[28];let g;e[29]!==t?(g=t("downloadApp.allReleases"),e[29]=t,e[30]=g):g=e[30];let x;e[31]!==g?(x=i.jsx("a",{href:Z,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:g}),e[31]=g,e[32]=x):x=e[32];let A;e[33]!==h||e[34]!==I||e[35]!==x||e[36]!==u?(A=i.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,h,I,x]}),e[33]=h,e[34]=I,e[35]=x,e[36]=u,e[37]=A):A=e[37];let _;return e[38]!==s||e[39]!==A||e[40]!==c?(_=i.jsxs(i.Fragment,{children:[s,c,A]}),e[38]=s,e[39]=A,e[40]=c,e[41]=_):_=e[41],_}function je(e){const t=y.c(19),{open:n,onOpenChange:s}=e,o=T();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=te(),t[0]=r):r=t[0];const l=r;let a;t[1]!==o?(a=o("downloadApp.title"),t[1]=o,t[2]=a):a=t[2];let c;t[3]!==a?(c=i.jsx(J,{children:a}),t[3]=a,t[4]=c):c=t[4];let d;t[5]!==o?(d=o(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=o,t[6]=d):d=t[6];let u;t[7]!==d?(u=i.jsx(K,{children:d}),t[7]=d,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=i.jsxs(F,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?i.jsx(se,{}):i.jsx(oe,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=i.jsxs(G,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==s||t[16]!==n||t[17]!==p?(h=i.jsx(W,{open:n,onOpenChange:s,children:p}),t[15]=s,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const re=1e4,Te="true",R=2;function N(e,t){return U.chatAutosend(e,t)}function ae(e){return e==="pending"||e==="sending"}function le(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let s=0;n.status==="sending"?s=n.retryAt===void 0?1:R:n.retryAt!==void 0&&(s=1);const o=n.attempt===void 0?s:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!ae(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof o!="number"||!Number.isInteger(o)||o<0||o>R?null:{...t,attempt:o}}function De(e,t,n,s,o=Date.now()){const r={message:s,createdAt:o,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(r)),r}function ie(e,t,n){const s=N(t,n),o=le(e.getItem(s));return o||(e.removeItem(s),null)}function Ne(e,t,n,s=Date.now()){const o=N(t,n),r=ie(e,t,n);if(!r||r.status!=="pending")return null;if(r.attempt>=R)return e.removeItem(o),null;const l=r.retryAt??r.createdAt;if(s-l>=re)return e.removeItem(o),null;const a={...r,status:"sending",attempt:r.attempt+1};return e.setItem(o,JSON.stringify(a)),{message:a.message,createdAt:a.createdAt,attempt:a.attempt}}function Re(e,t,n){e.removeItem(N(t,n))}const ce="/shell/$org/org-shell/agent-shell";function de(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function ue(e){return e.taskIdParam??e.threadSearch??null}function ke(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=D(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const o=k(s);let r;return e[2]!==n.taskId||e[3]!==o.thread?(r=ue({taskIdParam:n.taskId,threadSearch:o.thread}),e[2]=n.taskId,e[3]=o.thread,e[4]=r):r=e[4],r}function fe(e){return(e.onAgentsRoute||e.onHomeRoute||e.legacyRoute)&&e.virtualMcpIdSearch||void 0}function me(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],D(t).taskId!==void 0}function pe(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),s=M(),o=me(),r=s===j.agents,l=s===j.home;let a;return e[1]!==o||e[2]!==n.virtualmcpid||e[3]!==r||e[4]!==l?(a=fe({virtualMcpIdSearch:n.virtualmcpid,onAgentsRoute:r,onHomeRoute:l,legacyRoute:o}),e[1]=o,e[2]=n.virtualmcpid,e[3]=r,e[4]=l,e[5]=a):a=e[5],a}function Le(){const e=y.c(3),{org:t}=E(),n=pe();let s;return e[0]!==t||e[1]!==n?(s=n??$(t.id).id,e[0]=t,e[1]=n,e[2]=s):s=e[2],s}function he(e){const{virtualmcpid:t,...n}=e.changes;return{...e.prev,...n,thread:e.threadId}}function Ee(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ge(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function xe(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=D(t);let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s={from:ce,shouldThrow:!1},e[1]=s):s=e[1],!!H(s)&&n.taskId===void 0}function Me(){const e=y.c(12),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const s=D(n),o=xe(),{org:r}=E(),l=s.org??"",a=M()===j.agents;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const d=k(c),u=a?d.virtualmcpid:void 0,f=s.panel;let m;e[2]!==r.id?(m=$(r.id),e[2]=r.id,e[3]=m):m=e[3];const p=m.id;let h;return e[4]!==f||e[5]!==u||e[6]!==p||e[7]!==t||e[8]!==a||e[9]!==l||e[10]!==o?(h=(S,I,g)=>{const x=de({threadInSearch:o,orgSlug:l,threadId:S}),A=g?.replace??!1;if(x.to==="/$org/$taskId")return t({to:x.to,params:x.params,search:I,replace:A});const _=ge({currentProject:u,targetVirtualMcpId:g?.virtualMcpId,decopilotId:p}),w=g?.view&&g.view.tabId!==void 0?z(g.view.tabId):g?.view?{panel:void 0,payload:B()}:null,C=_.kind==="relocate"&&!a,b=v=>he({prev:C?{sidepanel:v.sidepanel}:v,changes:{...I(v),...w?.payload??{}},threadId:S});return _.kind==="relocate"?t({to:j.agents,params:{org:l,panel:w?w.panel:f},search:v=>({...typeof b=="function"?b(v):b,virtualmcpid:_.project}),replace:A}):t({to:".",params:v=>w?{...v,panel:w.panel}:v,search:v=>({...typeof b=="function"?b(v):b,...a?{virtualmcpid:_.project}:{}}),replace:A})},e[4]=f,e[5]=u,e[6]=p,e[7]=t,e[8]=a,e[9]=l,e[10]=o,e[11]=h):h=e[11],h}export{Te as A,je as D,te as a,Me as b,ke as c,Le as d,Ne as e,Re as f,we as i,Ee as r,pe as u,De as w};
1
+ import{c as y,b as T,j as i,B as L,r as O,J as U,u as k,f as D,W as E,d as V,Z as H,y as z,dz as B}from"./index-B8v6bpri.js";import{d as J,h as K,c as F,b as G,D as W}from"./dialog-C7M7JvTo.js";import{i as Y}from"./Check-yANPvlWH.js";import{a as Q}from"./Copy01-ZnkwptEM.js";import{n as X}from"./Download01-CeBHR-fX.js";import{u as M,D as j}from"./use-destination-route-BZnZlxip.js";import{a as $}from"./constants-DNuUCxmW.js";const Z="https://github.com/decocms/studio/releases";function q(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function ee(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function we(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function te(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function ne(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function P(e){const t=y.c(12),{copiedLabel:n}=e,s=T(),[o,r]=O.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=q(),t[0]=l):l=t[0];const a=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:a}),t[1]=c):c=t[1];let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{ne(navigator.clipboard,a).then(p=>{p&&(r(!0),setTimeout(()=>r(!1),2e3))})},t[2]=d):d=t[2];let u;t[3]!==o?(u=o?i.jsx(Y,{size:16}):i.jsx(Q,{size:16}),t[3]=o,t[4]=u):u=t[4];let f;t[5]!==o||t[6]!==n||t[7]!==s?(f=o?n:s("downloadApp.copyLabel"),t[5]=o,t[6]=n,t[7]=s,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=i.jsxs("div",{className:"flex flex-col gap-3",children:[c,i.jsxs(L,{type:"button",className:"w-full gap-2",onClick:d,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function oe(){const e=y.c(18),t=T();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=i.jsx(P,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let o;e[4]!==t?(o=t("downloadApp.terminalHint"),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==o?(r=i.jsx("p",{children:o}),e[6]=o,e[7]=r):r=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let a;e[10]!==l?(a=i.jsx("p",{children:l}),e[10]=l,e[11]=a):a=e[11];let c;e[12]!==r||e[13]!==a?(c=i.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[r,a]}),e[12]=r,e[13]=a,e[14]=c):c=e[14];let d;return e[15]!==s||e[16]!==c?(d=i.jsxs(i.Fragment,{children:[s,c]}),e[15]=s,e[16]=c,e[17]=d):d=e[17],d}function se(){const e=y.c(42),t=T();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==n?(s=i.jsx(P,{copiedLabel:n}),e[2]=n,e[3]=s):s=e[3];let o;e[4]!==t?(o=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=o):o=e[5];let r;e[6]!==o?(r=i.jsx("p",{children:o}),e[6]=o,e[7]=r):r=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let a;e[10]!==l?(a=i.jsx("p",{children:l}),e[10]=l,e[11]=a):a=e[11];let c;e[12]!==r||e[13]!==a?(c=i.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[r,a]}),e[12]=r,e[13]=a,e[14]=c):c=e[14];let d;e[15]!==t?(d=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=d):d=e[16];let u;e[17]!==d?(u=i.jsx("p",{children:d}),e[17]=d,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=ee("4.321.1"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(X,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let h;e[23]!==p?(h=i.jsx(L,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:i.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let S;e[25]!==t?(S=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=S):S=e[26];let I;e[27]!==S?(I=i.jsx("p",{children:S}),e[27]=S,e[28]=I):I=e[28];let g;e[29]!==t?(g=t("downloadApp.allReleases"),e[29]=t,e[30]=g):g=e[30];let x;e[31]!==g?(x=i.jsx("a",{href:Z,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:g}),e[31]=g,e[32]=x):x=e[32];let A;e[33]!==h||e[34]!==I||e[35]!==x||e[36]!==u?(A=i.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,h,I,x]}),e[33]=h,e[34]=I,e[35]=x,e[36]=u,e[37]=A):A=e[37];let _;return e[38]!==s||e[39]!==A||e[40]!==c?(_=i.jsxs(i.Fragment,{children:[s,c,A]}),e[38]=s,e[39]=A,e[40]=c,e[41]=_):_=e[41],_}function je(e){const t=y.c(19),{open:n,onOpenChange:s}=e,o=T();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=te(),t[0]=r):r=t[0];const l=r;let a;t[1]!==o?(a=o("downloadApp.title"),t[1]=o,t[2]=a):a=t[2];let c;t[3]!==a?(c=i.jsx(J,{children:a}),t[3]=a,t[4]=c):c=t[4];let d;t[5]!==o?(d=o(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=o,t[6]=d):d=t[6];let u;t[7]!==d?(u=i.jsx(K,{children:d}),t[7]=d,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=i.jsxs(F,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?i.jsx(se,{}):i.jsx(oe,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=i.jsxs(G,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==s||t[16]!==n||t[17]!==p?(h=i.jsx(W,{open:n,onOpenChange:s,children:p}),t[15]=s,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const re=1e4,Te="true",R=2;function N(e,t){return U.chatAutosend(e,t)}function ae(e){return e==="pending"||e==="sending"}function le(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let s=0;n.status==="sending"?s=n.retryAt===void 0?1:R:n.retryAt!==void 0&&(s=1);const o=n.attempt===void 0?s:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!ae(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof o!="number"||!Number.isInteger(o)||o<0||o>R?null:{...t,attempt:o}}function De(e,t,n,s,o=Date.now()){const r={message:s,createdAt:o,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(r)),r}function ie(e,t,n){const s=N(t,n),o=le(e.getItem(s));return o||(e.removeItem(s),null)}function Ne(e,t,n,s=Date.now()){const o=N(t,n),r=ie(e,t,n);if(!r||r.status!=="pending")return null;if(r.attempt>=R)return e.removeItem(o),null;const l=r.retryAt??r.createdAt;if(s-l>=re)return e.removeItem(o),null;const a={...r,status:"sending",attempt:r.attempt+1};return e.setItem(o,JSON.stringify(a)),{message:a.message,createdAt:a.createdAt,attempt:a.attempt}}function Re(e,t,n){e.removeItem(N(t,n))}const ce="/shell/$org/org-shell/agent-shell";function de(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function ue(e){return e.taskIdParam??e.threadSearch??null}function ke(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=D(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const o=k(s);let r;return e[2]!==n.taskId||e[3]!==o.thread?(r=ue({taskIdParam:n.taskId,threadSearch:o.thread}),e[2]=n.taskId,e[3]=o.thread,e[4]=r):r=e[4],r}function fe(e){return(e.onAgentsRoute||e.onHomeRoute||e.legacyRoute)&&e.virtualMcpIdSearch||void 0}function me(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],D(t).taskId!==void 0}function pe(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),s=M(),o=me(),r=s===j.agents,l=s===j.home;let a;return e[1]!==o||e[2]!==n.virtualmcpid||e[3]!==r||e[4]!==l?(a=fe({virtualMcpIdSearch:n.virtualmcpid,onAgentsRoute:r,onHomeRoute:l,legacyRoute:o}),e[1]=o,e[2]=n.virtualmcpid,e[3]=r,e[4]=l,e[5]=a):a=e[5],a}function Le(){const e=y.c(3),{org:t}=E(),n=pe();let s;return e[0]!==t||e[1]!==n?(s=n??$(t.id).id,e[0]=t,e[1]=n,e[2]=s):s=e[2],s}function he(e){const{virtualmcpid:t,...n}=e.changes;return{...e.prev,...n,thread:e.threadId}}function Ee(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ge(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function xe(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=D(t);let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s={from:ce,shouldThrow:!1},e[1]=s):s=e[1],!!H(s)&&n.taskId===void 0}function Me(){const e=y.c(12),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const s=D(n),o=xe(),{org:r}=E(),l=s.org??"",a=M()===j.agents;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const d=k(c),u=a?d.virtualmcpid:void 0,f=s.panel;let m;e[2]!==r.id?(m=$(r.id),e[2]=r.id,e[3]=m):m=e[3];const p=m.id;let h;return e[4]!==f||e[5]!==u||e[6]!==p||e[7]!==t||e[8]!==a||e[9]!==l||e[10]!==o?(h=(S,I,g)=>{const x=de({threadInSearch:o,orgSlug:l,threadId:S}),A=g?.replace??!1;if(x.to==="/$org/$taskId")return t({to:x.to,params:x.params,search:I,replace:A});const _=ge({currentProject:u,targetVirtualMcpId:g?.virtualMcpId,decopilotId:p}),w=g?.view&&g.view.tabId!==void 0?z(g.view.tabId):g?.view?{panel:void 0,payload:B()}:null,C=_.kind==="relocate"&&!a,b=v=>he({prev:C?{sidepanel:v.sidepanel}:v,changes:{...I(v),...w?.payload??{}},threadId:S});return _.kind==="relocate"?t({to:j.agents,params:{org:l,panel:w?w.panel:f},search:v=>({...typeof b=="function"?b(v):b,virtualmcpid:_.project}),replace:A}):t({to:".",params:v=>w?{...v,panel:w.panel}:v,search:v=>({...typeof b=="function"?b(v):b,...a?{virtualmcpid:_.project}:{}}),replace:A})},e[4]=f,e[5]=u,e[6]=p,e[7]=t,e[8]=a,e[9]=l,e[10]=o,e[11]=h):h=e[11],h}export{Te as A,je as D,te as a,Me as b,ke as c,Le as d,Ne as e,Re as f,we as i,Ee as r,pe as u,De as w};
@@ -1 +1 @@
1
- import{r as x,br as b,j as c,bo as m,bu as k,bb as p,dv as M,dw as T,bt as S,dx as A,bq as F,bF as $,c as P,l as C}from"./index-iMHThdI5.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=q(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
1
+ import{r as x,br as b,j as c,bo as m,bu as k,bb as p,dv as M,dw as T,bt as S,dx as A,bq as F,bF as $,c as P,l as C}from"./index-B8v6bpri.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=q(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
@@ -1 +1 @@
1
- import{c as r,r as f,j as c,l as T,aC as g}from"./index-iMHThdI5.js";const h=f.createContext(null);function m(){const l=f.use(h);if(!l)throw new Error("Toolbar.* must be used inside <Toolbar>");return l}function E(l){const e=r.c(8),{children:t}=l,[s,n]=f.useState(null),[o,a]=f.useState(null),[x,j]=f.useState(null),[b,p]=f.useState(null);let u;e[0]!==x||e[1]!==b||e[2]!==o||e[3]!==s?(u={togglesEl:s,setTogglesEl:n,tabsEl:o,setTabsEl:a,centerEl:x,setCenterEl:j,rightEl:b,setRightEl:p},e[0]=x,e[1]=b,e[2]=o,e[3]=s,e[4]=u):u=e[4];let d;return e[5]!==t||e[6]!==u?(d=c.jsx(h,{value:u,children:t}),e[5]=t,e[6]=u,e[7]=d):d=e[7],d}function i(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx(E,{children:c.jsx("div",{className:"flex flex-col h-full min-h-0",children:t})}),e[0]=t,e[1]=s):s=e[1],s}function C(l){const e=r.c(10);let t,s,n;e[0]!==l?({children:t,className:s,...n}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let o;e[4]!==s?(o=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=o):o=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==o?(a=c.jsx("div",{className:o,...n,children:t}),e[6]=t,e[7]=n,e[8]=o,e[9]=a):a=e[9],a}function v(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:t}),e[0]=t,e[1]=s):s=e[1],s}function S(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:t}),e[0]=t,e[1]=s):s=e[1],s}function N(){const l=r.c(2),{setCenterEl:e}=m();let t;return l[0]!==e?(t=c.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),l[0]=e,l[1]=t):t=l[1],t}function $(l){const e=r.c(3),{children:t}=l,{centerEl:s}=m();if(!s)return null;let n;return e[0]!==s||e[1]!==t?(n=g.createPortal(t,s),e[0]=s,e[1]=t,e[2]=n):n=e[2],n}function R(l){const e=r.c(5),{className:t}=l,{setTabsEl:s}=m();let n;e[0]!==t?(n=T("shrink-0 flex items-center",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=c.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function w(l){const e=r.c(3),{children:t}=l,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==t||e[1]!==s?(n=g.createPortal(t,s),e[0]=t,e[1]=s,e[2]=n):n=e[2],n}function y(l){const e=r.c(5),{className:t}=l,{setTogglesEl:s}=m();let n;e[0]!==t?(n=T("contents",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=c.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function P(){const l=r.c(2),{setRightEl:e}=m();let t;return l[0]!==e?(t=c.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),l[0]=e,l[1]=t):t=l[1],t}i.Provider=E;i.Header=C;i.LeftColumn=v;i.RightColumn=S;i.CenterSlot=N;i.Center=$;i.TabsSlot=R;i.Tabs=w;i.TogglesSlot=y;i.RightSlot=P;export{i as T};
1
+ import{c as r,r as f,j as c,l as T,aC as g}from"./index-B8v6bpri.js";const h=f.createContext(null);function m(){const l=f.use(h);if(!l)throw new Error("Toolbar.* must be used inside <Toolbar>");return l}function E(l){const e=r.c(8),{children:t}=l,[s,n]=f.useState(null),[o,a]=f.useState(null),[x,j]=f.useState(null),[b,p]=f.useState(null);let u;e[0]!==x||e[1]!==b||e[2]!==o||e[3]!==s?(u={togglesEl:s,setTogglesEl:n,tabsEl:o,setTabsEl:a,centerEl:x,setCenterEl:j,rightEl:b,setRightEl:p},e[0]=x,e[1]=b,e[2]=o,e[3]=s,e[4]=u):u=e[4];let d;return e[5]!==t||e[6]!==u?(d=c.jsx(h,{value:u,children:t}),e[5]=t,e[6]=u,e[7]=d):d=e[7],d}function i(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx(E,{children:c.jsx("div",{className:"flex flex-col h-full min-h-0",children:t})}),e[0]=t,e[1]=s):s=e[1],s}function C(l){const e=r.c(10);let t,s,n;e[0]!==l?({children:t,className:s,...n}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let o;e[4]!==s?(o=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=o):o=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==o?(a=c.jsx("div",{className:o,...n,children:t}),e[6]=t,e[7]=n,e[8]=o,e[9]=a):a=e[9],a}function v(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:t}),e[0]=t,e[1]=s):s=e[1],s}function S(l){const e=r.c(2),{children:t}=l;let s;return e[0]!==t?(s=c.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:t}),e[0]=t,e[1]=s):s=e[1],s}function N(){const l=r.c(2),{setCenterEl:e}=m();let t;return l[0]!==e?(t=c.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),l[0]=e,l[1]=t):t=l[1],t}function $(l){const e=r.c(3),{children:t}=l,{centerEl:s}=m();if(!s)return null;let n;return e[0]!==s||e[1]!==t?(n=g.createPortal(t,s),e[0]=s,e[1]=t,e[2]=n):n=e[2],n}function R(l){const e=r.c(5),{className:t}=l,{setTabsEl:s}=m();let n;e[0]!==t?(n=T("shrink-0 flex items-center",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=c.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function w(l){const e=r.c(3),{children:t}=l,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==t||e[1]!==s?(n=g.createPortal(t,s),e[0]=t,e[1]=s,e[2]=n):n=e[2],n}function y(l){const e=r.c(5),{className:t}=l,{setTogglesEl:s}=m();let n;e[0]!==t?(n=T("contents",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=c.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function P(){const l=r.c(2),{setRightEl:e}=m();let t;return l[0]!==e?(t=c.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),l[0]=e,l[1]=t):t=l[1],t}i.Provider=E;i.Header=C;i.LeftColumn=v;i.RightColumn=S;i.CenterSlot=N;i.Center=$;i.TabsSlot=R;i.Tabs=w;i.TogglesSlot=y;i.RightSlot=P;export{i as T};
@@ -1 +1 @@
1
- import{c as f,l as u,j as b}from"./index-iMHThdI5.js";const d="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease]",d,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground")}function g(n){const e=f.c(14);let o,s,t,r,c;e[0]!==n?({active:o,className:s,ref:r,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=r,e[5]=c):(o=e[1],s=e[2],t=e[3],r=e[4],c=e[5]);const a=c===void 0?"button":c;let i;e[6]!==o||e[7]!==s?(i=u("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md","max-md:[&_svg]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=i):i=e[8];let l;return e[9]!==t||e[10]!==r||e[11]!==i||e[12]!==a?(l=b.jsx("button",{ref:r,type:a,className:i,...t}),e[9]=t,e[10]=r,e[11]=i,e[12]=a,e[13]=l):l=e[13],l}export{d as I,g as T,m as p};
1
+ import{c as f,l as u,j as b}from"./index-B8v6bpri.js";const d="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease]",d,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground")}function g(n){const e=f.c(14);let o,s,t,r,c;e[0]!==n?({active:o,className:s,ref:r,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=r,e[5]=c):(o=e[1],s=e[2],t=e[3],r=e[4],c=e[5]);const a=c===void 0?"button":c;let i;e[6]!==o||e[7]!==s?(i=u("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md","max-md:[&_svg]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=i):i=e[8];let l;return e[9]!==t||e[10]!==r||e[11]!==i||e[12]!==a?(l=b.jsx("button",{ref:r,type:a,className:i,...t}),e[9]=t,e[10]=r,e[11]=i,e[12]=a,e[13]=l):l=e[13],l}export{d as I,g as T,m as p};
@@ -1 +1 @@
1
- import{q as _,T as l}from"./index-iMHThdI5.js";let s=!1;const p="report:auth-attempt:",f=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=d(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
1
+ import{q as _,T as l}from"./index-B8v6bpri.js";let s=!1;const p="report:auth-attempt:",f=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=d(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
@@ -1,4 +1,4 @@
1
- import{cf as p,an as t,aj as v,ag as a,d0 as q,ae as s,ah as g,af as u,al as h,ao as x,cd as O,d1 as fe,d2 as be,d3 as B,d4 as j,d5 as ye,d6 as ve,d7 as $,d8 as _e,d9 as He,da as Me,db as ke,dc as Pe,dd as qe,de as Te,df as Ie,cr as Ee,dg as Le,dh as ze,di as Ae,dj as De,dk as Ue,dl as Ne,dm as Oe,cp as je,r as oe,c as V,j as y,dn as Be,dp as $e,o as Ve,v as Fe,l as se,h as We}from"./index-iMHThdI5.js";import{P as Ke}from"./use-mcp-client-Cb-7Tc46.js";const ce=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ze(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ye(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const f=(l.index??0)+l[0].length;return r.slice(0,f)+`
1
+ import{cf as p,an as t,aj as v,ag as a,d0 as q,ae as s,ah as g,af as u,al as h,ao as x,cd as O,d1 as fe,d2 as be,d3 as B,d4 as j,d5 as ye,d6 as ve,d7 as $,d8 as _e,d9 as He,da as Me,db as ke,dc as Pe,dd as qe,de as Te,df as Ie,cr as Ee,dg as Le,dh as ze,di as Ae,dj as De,dk as Ue,dl as Ne,dm as Oe,cp as je,r as oe,c as V,j as y,dn as Be,dp as $e,o as Ve,v as Fe,l as se,h as We}from"./index-B8v6bpri.js";import{P as Ke}from"./use-mcp-client-DJ3fa1xp.js";const ce=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Ze(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ye(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const f=(l.index??0)+l[0].length;return r.slice(0,f)+`
2
2
  `+i+r.slice(f)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=r.match(c);if(d){const f=(d.index??0)+d[0].length;return r.slice(0,f)+`
3
3
  <head>
4
4
  `+i+`
@@ -1 +1 @@
1
- import{c as p,W as m,a7 as R,K as h,m as y,x as S,aq as D}from"./index-iMHThdI5.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=m(),t=R();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=S(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=S(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function z(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function B(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function G(o){const e=p.c(11),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{B as a,E as b,F as c,N as d,O as e,$ as f,G as g,C as i,b as p,z as u};
1
+ import{c as p,W as m,a7 as R,K as h,m as y,x as S,aq as D}from"./index-B8v6bpri.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=m(),t=R();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=S(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=S(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function z(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function B(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function G(o){const e=p.c(11),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{B as a,E as b,F as c,N as d,O as e,$ as f,G as g,C as i,b as p,z as u};
@@ -1 +1 @@
1
- import{c as U,W as q,a7 as I,K as T,m as Q,n as x,e as y,t as m}from"./index-iMHThdI5.js";import{u as z}from"./use-mcp-client-Cb-7Tc46.js";import{S as J}from"./constants-DNuUCxmW.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??J;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=z(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function it(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function nt(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function lt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let S;t[30]!==s?(S=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=S):S=t[31];let E;t[32]!==i||t[33]!==o?(E=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=E):E=t[34];let K;t[35]!==S||t[36]!==E?(K={mutationFn:S,onSuccess:E},t[35]=S,t[36]=E,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:W},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,it as c,nt as d,at as e,lt as u};
1
+ import{c as U,W as q,a7 as I,K as T,m as Q,n as x,e as y,t as m}from"./index-B8v6bpri.js";import{u as z}from"./use-mcp-client-DJ3fa1xp.js";import{S as J}from"./constants-DNuUCxmW.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??J;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=z(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function it(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function nt(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function lt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let S;t[30]!==s?(S=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=S):S=t[31];let E;t[32]!==i||t[33]!==o?(E=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=E):E=t[34];let K;t[35]!==S||t[36]!==E?(K={mutationFn:S,onSuccess:E},t[35]=S,t[36]=E,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:W},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,it as c,nt as d,at as e,lt as u};
@@ -1 +1 @@
1
- import{c as T,r as o}from"./index-iMHThdI5.js";const y=700;function x(r,l,_){const e=T.c(7),f=y,[a,m]=o.useState(r),[i,S]=o.useState(r),[A,d]=o.useState(!1),t=o.useRef(null);r!==i&&(S(r),A||m(r));let s;e[0]!==f||e[1]!==l?(s=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},f)},e[0]=f,e[1]=l,e[2]=s):s=e[2];const p=s;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==a||e[5]!==p?(n=[a,p,E],e[4]=a,e[5]=p,e[6]=n):n=e[6],n}export{x as u};
1
+ import{c as T,r as o}from"./index-B8v6bpri.js";const y=700;function x(r,l,_){const e=T.c(7),f=y,[a,m]=o.useState(r),[i,S]=o.useState(r),[A,d]=o.useState(!1),t=o.useRef(null);r!==i&&(S(r),A||m(r));let s;e[0]!==f||e[1]!==l?(s=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},f)},e[0]=f,e[1]=l,e[2]=s):s=e[2];const p=s;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==a||e[5]!==p?(n=[a,p,E],e[4]=a,e[5]=p,e[6]=n):n=e[6],n}export{x as u};
@@ -1 +1 @@
1
- import{c as f,W as C,c9 as N,eP as O,c8 as S}from"./index-iMHThdI5.js";import{u as I}from"./use-mcp-client-Cb-7Tc46.js";import{S as m}from"./constants-DNuUCxmW.js";function b(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:m,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=I(a);return O(u.id,"CONNECTIONS",A,p)}function P(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:m,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=I(n);return S(i.id,"CONNECTIONS",t,l)}function _(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:m,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=I(i);return N(o.id,"CONNECTIONS",n)}export{P as a,_ as b,b as u};
1
+ import{c as f,W as C,c9 as N,eP as O,c8 as S}from"./index-B8v6bpri.js";import{u as I}from"./use-mcp-client-DJ3fa1xp.js";import{S as m}from"./constants-DNuUCxmW.js";function b(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:m,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=I(a);return O(u.id,"CONNECTIONS",A,p)}function P(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:m,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=I(n);return S(i.id,"CONNECTIONS",t,l)}function _(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:m,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=I(i);return N(o.id,"CONNECTIONS",n)}export{P as a,_ as b,b as u};
@@ -1 +1 @@
1
- import{c as i,r as n}from"./index-iMHThdI5.js";function p(){const e=i.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async c=>{await navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
1
+ import{c as i,r as n}from"./index-B8v6bpri.js";function p(){const e=i.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async c=>{await navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
@@ -1 +1 @@
1
- import{c as g}from"./index-iMHThdI5.js";import{a as p}from"./use-virtual-mcp-DfwA3vbI.js";import{u as f}from"./use-navigate-to-agent-BagpOb6G.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,c=u===void 0?!1:u,t=p(),o=f();let s;e[2]!==t.create||e[3]!==c||e[4]!==o?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return c&&o(l.id,{panel:"settings"}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=s):s=e[5];const r=s;let a;return e[6]!==t.create.isPending||e[7]!==r?(a={createVirtualMCP:r,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=r,e[8]=a):a=e[8],a}export{A as u};
1
+ import{c as g}from"./index-B8v6bpri.js";import{a as p}from"./use-virtual-mcp-7JAczJJM.js";import{u as f}from"./use-navigate-to-agent-Bfd85iwi.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,c=u===void 0?!1:u,t=p(),o=f();let s;e[2]!==t.create||e[3]!==c||e[4]!==o?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return c&&o(l.id,{panel:"settings"}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=s):s=e[5];const r=s;let a;return e[6]!==t.create.isPending||e[7]!==r?(a={createVirtualMCP:r,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=r,e[8]=a):a=e[8],a}export{A as u};
@@ -1 +1 @@
1
- import{r as u}from"./index-iMHThdI5.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
1
+ import{r as u}from"./index-B8v6bpri.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
@@ -1 +1 @@
1
- import{c as m,r as n}from"./index-iMHThdI5.js";function p(e,o){const t=m.c(4),[s,u]=n.useState(e);let c,r;return t[0]!==o||t[1]!==e?(c=()=>{const i=setTimeout(()=>u(e),o);return()=>clearTimeout(i)},r=[e,o],t[0]=o,t[1]=e,t[2]=c,t[3]=r):(c=t[2],r=t[3]),n.useEffect(c,r),s}export{p as u};
1
+ import{c as m,r as n}from"./index-B8v6bpri.js";function p(e,o){const t=m.c(4),[s,u]=n.useState(e);let c,r;return t[0]!==o||t[1]!==e?(c=()=>{const i=setTimeout(()=>u(e),o);return()=>clearTimeout(i)},r=[e,o],t[0]=o,t[1]=e,t[2]=c,t[3]=r):(c=t[2],r=t[3]),n.useEffect(c,r),s}export{p as u};
@@ -1 +1 @@
1
- import{r as s}from"./index-iMHThdI5.js";import{d as R,D as u}from"./decopilot-sse-pool-CugtSLrr.js";const f=()=>0;function g(E){const{orgSlug:t,taskId:a,enabled:n=!0,onStep:o,onFinish:S,onTaskStatus:i}=E,l=s.useRef({taskId:a,onStep:o,onFinish:S,onTaskStatus:i});l.current={taskId:a,onStep:o,onFinish:S,onTaskStatus:i};const c=s.useRef(null),p=s.useRef(n),b=s.useRef(t);(!c.current||p.current!==n||b.current!==t)&&(p.current=n,b.current=t,c.current=d=>{if(!n||!t)return()=>{};const k=T=>{let e;try{e=JSON.parse(T.data)}catch{return}const r=l.current;if(!(r.taskId&&e.subject!==r.taskId)){switch(e.type){case u.STEP:r.onStep?.(e);break;case u.FINISH:r.onFinish?.(e);break;case u.THREAD_STATUS:r.onTaskStatus?.(e);break}d()}};return R.subscribe(t,k)}),s.useSyncExternalStore(c.current,f,f)}export{g as u};
1
+ import{r as s}from"./index-B8v6bpri.js";import{d as R,D as u}from"./decopilot-sse-pool-_NQmGFbS.js";const f=()=>0;function g(E){const{orgSlug:t,taskId:a,enabled:n=!0,onStep:o,onFinish:S,onTaskStatus:i}=E,l=s.useRef({taskId:a,onStep:o,onFinish:S,onTaskStatus:i});l.current={taskId:a,onStep:o,onFinish:S,onTaskStatus:i};const c=s.useRef(null),p=s.useRef(n),b=s.useRef(t);(!c.current||p.current!==n||b.current!==t)&&(p.current=n,b.current=t,c.current=d=>{if(!n||!t)return()=>{};const k=T=>{let e;try{e=JSON.parse(T.data)}catch{return}const r=l.current;if(!(r.taskId&&e.subject!==r.taskId)){switch(e.type){case u.STEP:r.onStep?.(e);break;case u.FINISH:r.onFinish?.(e);break;case u.THREAD_STATUS:r.onTaskStatus?.(e);break}d()}};return R.subscribe(t,k)}),s.useSyncExternalStore(c.current,f,f)}export{g as u};
@@ -1 +1 @@
1
- import{c as oe,b as le,j as n,W as se,n as ie,a7 as ce,r as re,t as Y,c6 as ae,c7 as de}from"./index-iMHThdI5.js";import{c as z,d as G,b as V,f as X,g as Z,e as ee,a as te,A as ne}from"./alert-dialog-1uO7Q1_D.js";function ge(W){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=W,t=le(),w=s.mode==="deleting";let m;e[0]!==a?(m=P=>{P||a()},e[0]=a,e[1]=m):m=e[1];let u;e[2]!==t?(u=t("common.deleteConnectionDialogs.title"),e[2]=t,e[3]=u):u=e[3];let D;e[4]!==u?(D=n.jsx(z,{children:u}),e[4]=u,e[5]=D):D=e[5];let C;e[6]!==t?(C=t("common.deleteConnectionDialogs.description"),e[6]=t,e[7]=C):C=e[7];const H=s.mode==="deleting"&&s.connection.title;let o;e[8]!==H?(o=n.jsx("span",{className:"font-medium text-foreground",children:H}),e[8]=H,e[9]=o):o=e[9];let l;e[10]!==C||e[11]!==o?(l=n.jsxs(G,{children:[C," ",o,"."]}),e[10]=C,e[11]=o,e[12]=l):l=e[12];let i;e[13]!==D||e[14]!==l?(i=n.jsxs(V,{children:[D,l]}),e[13]=D,e[14]=l,e[15]=i):i=e[15];let f;e[16]!==t?(f=t("common.deleteConnectionDialogs.cancel"),e[16]=t,e[17]=f):f=e[17];let r;e[18]!==f?(r=n.jsx(X,{children:f}),e[18]=f,e[19]=r):r=e[19];let g;e[20]!==t?(g=t("common.deleteConnectionDialogs.delete"),e[20]=t,e[21]=g):g=e[21];let x;e[22]!==d||e[23]!==g?(x=n.jsx(Z,{onClick:d,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:g}),e[22]=d,e[23]=g,e[24]=x):x=e[24];let h;e[25]!==r||e[26]!==x?(h=n.jsxs(ee,{children:[r,x]}),e[25]=r,e[26]=x,e[27]=h):h=e[27];let j;e[28]!==h||e[29]!==i?(j=n.jsxs(te,{children:[i,h]}),e[28]=h,e[29]=i,e[30]=j):j=e[30];let N;e[31]!==w||e[32]!==j||e[33]!==m?(N=n.jsx(ne,{open:w,onOpenChange:m,children:j}),e[31]=w,e[32]=j,e[33]=m,e[34]=N):N=e[34];const B=s.mode==="force-deleting";let p;e[35]!==a?(p=P=>{P||a()},e[35]=a,e[36]=p):p=e[36];let E;e[37]!==t?(E=t("common.deleteConnectionDialogs.forceDeleteTitle"),e[37]=t,e[38]=E):E=e[38];let y;e[39]!==E?(y=n.jsx(z,{children:E}),e[39]=E,e[40]=y):y=e[40];let O;e[41]!==t?(O=t("common.deleteConnectionDialogs.forceDeleteDescription"),e[41]=t,e[42]=O):O=e[42];const J=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==J?(v=n.jsx("span",{className:"font-medium text-foreground",children:J}),e[43]=J,e[44]=v):v=e[44];let S;e[45]!==t?(S=t("common.deleteConnectionDialogs.isUsedByAgents"),e[45]=t,e[46]=S):S=e[46];const M=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==M?(T=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[47]=M,e[48]=T):T=e[48];let A;e[49]!==O||e[50]!==v||e[51]!==S||e[52]!==T?(A=n.jsxs("p",{children:[O," ",v," ",S," ",T,"."]}),e[49]=O,e[50]=v,e[51]=S,e[52]=T,e[53]=A):A=e[53];let _;e[54]!==t?(_=t("common.deleteConnectionDialogs.forceDeleteWarning"),e[54]=t,e[55]=_):_=e[55];let F;e[56]!==_?(F=n.jsx("p",{className:"mt-2",children:_}),e[56]=_,e[57]=F):F=e[57];let I;e[58]!==A||e[59]!==F?(I=n.jsx(G,{asChild:!0,children:n.jsxs("div",{children:[A,F]})}),e[58]=A,e[59]=F,e[60]=I):I=e[60];let L;e[61]!==y||e[62]!==I?(L=n.jsxs(V,{children:[y,I]}),e[61]=y,e[62]=I,e[63]=L):L=e[63];let b;e[64]!==t?(b=t("common.deleteConnectionDialogs.cancel"),e[64]=t,e[65]=b):b=e[65];let R;e[66]!==b?(R=n.jsx(X,{children:b}),e[66]=b,e[67]=R):R=e[67];let q;e[68]!==t?(q=t("common.deleteConnectionDialogs.deleteAnyway"),e[68]=t,e[69]=q):q=e[69];let U;e[70]!==c||e[71]!==q?(U=n.jsx(Z,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:q}),e[70]=c,e[71]=q,e[72]=U):U=e[72];let K;e[73]!==R||e[74]!==U?(K=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=K):K=e[75];let $;e[76]!==L||e[77]!==K?($=n.jsxs(te,{children:[L,K]}),e[76]=L,e[77]=K,e[78]=$):$=e[78];let k;e[79]!==B||e[80]!==p||e[81]!==$?(k=n.jsx(ne,{open:B,onOpenChange:p,children:$}),e[79]=B,e[80]=p,e[81]=$,e[82]=k):k=e[82];let Q;return e[83]!==N||e[84]!==k?(Q=n.jsxs(n.Fragment,{children:[N,k]}),e[83]=N,e[84]=k,e[85]=Q):Q=e[85],Q}function ue({onSuccess:W}={}){const{org:e}=se(),s=ie(),a=ce(),[d,c]=re.useState({mode:"idle"}),t=()=>{s.invalidateQueries({predicate:o=>{const l=o.queryKey;return l[1]===e.id&&l[3]==="collection"&&l[4]==="CONNECTIONS"}})},w=o=>{ae(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===de&&l.queryKey[3]===o})},m=o=>{t(),w(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),W?.()};return{deleteState:d,requestDelete:o=>{c({mode:"deleting",connection:o})},cancelDelete:()=>{c({mode:"idle"})},confirmDelete:async()=>{if(d.mode!=="deleting")return;const o=d.connection;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o.id}),m(o.id)}catch(l){const i=l instanceof Error?l.message:String(l),f=i.replace(/^Error:\s*/,"");try{const r=JSON.parse(f);if(r.code==="CONNECTION_IN_USE"&&r.agentNames){c({mode:"force-deleting",connection:o,agentNames:r.agentNames.map(g=>`"${g}"`).join(", ")});return}}catch{}Y.error(`Failed to delete connection: ${i}`)}},confirmForceDelete:async()=>{if(d.mode!=="force-deleting")return;const o=d.connection.id;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o,force:!0}),m(o)}catch(l){const i=l instanceof Error?l.message:String(l);Y.error(`Failed to delete connection: ${i}`)}}}}export{ge as D,ue as u};
1
+ import{c as oe,b as le,j as n,W as se,n as ie,a7 as ce,r as re,t as Y,c6 as ae,c7 as de}from"./index-B8v6bpri.js";import{c as z,d as G,b as V,f as X,g as Z,e as ee,a as te,A as ne}from"./alert-dialog-D3FLXTEj.js";function ge(W){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=W,t=le(),w=s.mode==="deleting";let m;e[0]!==a?(m=P=>{P||a()},e[0]=a,e[1]=m):m=e[1];let u;e[2]!==t?(u=t("common.deleteConnectionDialogs.title"),e[2]=t,e[3]=u):u=e[3];let D;e[4]!==u?(D=n.jsx(z,{children:u}),e[4]=u,e[5]=D):D=e[5];let C;e[6]!==t?(C=t("common.deleteConnectionDialogs.description"),e[6]=t,e[7]=C):C=e[7];const H=s.mode==="deleting"&&s.connection.title;let o;e[8]!==H?(o=n.jsx("span",{className:"font-medium text-foreground",children:H}),e[8]=H,e[9]=o):o=e[9];let l;e[10]!==C||e[11]!==o?(l=n.jsxs(G,{children:[C," ",o,"."]}),e[10]=C,e[11]=o,e[12]=l):l=e[12];let i;e[13]!==D||e[14]!==l?(i=n.jsxs(V,{children:[D,l]}),e[13]=D,e[14]=l,e[15]=i):i=e[15];let f;e[16]!==t?(f=t("common.deleteConnectionDialogs.cancel"),e[16]=t,e[17]=f):f=e[17];let r;e[18]!==f?(r=n.jsx(X,{children:f}),e[18]=f,e[19]=r):r=e[19];let g;e[20]!==t?(g=t("common.deleteConnectionDialogs.delete"),e[20]=t,e[21]=g):g=e[21];let x;e[22]!==d||e[23]!==g?(x=n.jsx(Z,{onClick:d,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:g}),e[22]=d,e[23]=g,e[24]=x):x=e[24];let h;e[25]!==r||e[26]!==x?(h=n.jsxs(ee,{children:[r,x]}),e[25]=r,e[26]=x,e[27]=h):h=e[27];let j;e[28]!==h||e[29]!==i?(j=n.jsxs(te,{children:[i,h]}),e[28]=h,e[29]=i,e[30]=j):j=e[30];let N;e[31]!==w||e[32]!==j||e[33]!==m?(N=n.jsx(ne,{open:w,onOpenChange:m,children:j}),e[31]=w,e[32]=j,e[33]=m,e[34]=N):N=e[34];const B=s.mode==="force-deleting";let p;e[35]!==a?(p=P=>{P||a()},e[35]=a,e[36]=p):p=e[36];let E;e[37]!==t?(E=t("common.deleteConnectionDialogs.forceDeleteTitle"),e[37]=t,e[38]=E):E=e[38];let y;e[39]!==E?(y=n.jsx(z,{children:E}),e[39]=E,e[40]=y):y=e[40];let O;e[41]!==t?(O=t("common.deleteConnectionDialogs.forceDeleteDescription"),e[41]=t,e[42]=O):O=e[42];const J=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==J?(v=n.jsx("span",{className:"font-medium text-foreground",children:J}),e[43]=J,e[44]=v):v=e[44];let S;e[45]!==t?(S=t("common.deleteConnectionDialogs.isUsedByAgents"),e[45]=t,e[46]=S):S=e[46];const M=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==M?(T=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[47]=M,e[48]=T):T=e[48];let A;e[49]!==O||e[50]!==v||e[51]!==S||e[52]!==T?(A=n.jsxs("p",{children:[O," ",v," ",S," ",T,"."]}),e[49]=O,e[50]=v,e[51]=S,e[52]=T,e[53]=A):A=e[53];let _;e[54]!==t?(_=t("common.deleteConnectionDialogs.forceDeleteWarning"),e[54]=t,e[55]=_):_=e[55];let F;e[56]!==_?(F=n.jsx("p",{className:"mt-2",children:_}),e[56]=_,e[57]=F):F=e[57];let I;e[58]!==A||e[59]!==F?(I=n.jsx(G,{asChild:!0,children:n.jsxs("div",{children:[A,F]})}),e[58]=A,e[59]=F,e[60]=I):I=e[60];let L;e[61]!==y||e[62]!==I?(L=n.jsxs(V,{children:[y,I]}),e[61]=y,e[62]=I,e[63]=L):L=e[63];let b;e[64]!==t?(b=t("common.deleteConnectionDialogs.cancel"),e[64]=t,e[65]=b):b=e[65];let R;e[66]!==b?(R=n.jsx(X,{children:b}),e[66]=b,e[67]=R):R=e[67];let q;e[68]!==t?(q=t("common.deleteConnectionDialogs.deleteAnyway"),e[68]=t,e[69]=q):q=e[69];let U;e[70]!==c||e[71]!==q?(U=n.jsx(Z,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:q}),e[70]=c,e[71]=q,e[72]=U):U=e[72];let K;e[73]!==R||e[74]!==U?(K=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=K):K=e[75];let $;e[76]!==L||e[77]!==K?($=n.jsxs(te,{children:[L,K]}),e[76]=L,e[77]=K,e[78]=$):$=e[78];let k;e[79]!==B||e[80]!==p||e[81]!==$?(k=n.jsx(ne,{open:B,onOpenChange:p,children:$}),e[79]=B,e[80]=p,e[81]=$,e[82]=k):k=e[82];let Q;return e[83]!==N||e[84]!==k?(Q=n.jsxs(n.Fragment,{children:[N,k]}),e[83]=N,e[84]=k,e[85]=Q):Q=e[85],Q}function ue({onSuccess:W}={}){const{org:e}=se(),s=ie(),a=ce(),[d,c]=re.useState({mode:"idle"}),t=()=>{s.invalidateQueries({predicate:o=>{const l=o.queryKey;return l[1]===e.id&&l[3]==="collection"&&l[4]==="CONNECTIONS"}})},w=o=>{ae(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===de&&l.queryKey[3]===o})},m=o=>{t(),w(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),W?.()};return{deleteState:d,requestDelete:o=>{c({mode:"deleting",connection:o})},cancelDelete:()=>{c({mode:"idle"})},confirmDelete:async()=>{if(d.mode!=="deleting")return;const o=d.connection;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o.id}),m(o.id)}catch(l){const i=l instanceof Error?l.message:String(l),f=i.replace(/^Error:\s*/,"");try{const r=JSON.parse(f);if(r.code==="CONNECTION_IN_USE"&&r.agentNames){c({mode:"force-deleting",connection:o,agentNames:r.agentNames.map(g=>`"${g}"`).join(", ")});return}}catch{}Y.error(`Failed to delete connection: ${i}`)}},confirmForceDelete:async()=>{if(d.mode!=="force-deleting")return;const o=d.connection.id;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o,force:!0}),m(o)}catch(l){const i=l instanceof Error?l.message:String(l);Y.error(`Failed to delete connection: ${i}`)}}}}export{ge as D,ue as u};
@@ -1 +1 @@
1
- import{c as s,m,K as c}from"./index-iMHThdI5.js";function l(){const e=s.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:c.deploymentAdminMe(),queryFn:d,staleTime:1/0,retry:2},e[0]=t):t=e[0];const{data:a,isLoading:i}=m(t),r=a==="admin",o=a==="unverified";let n;return e[1]!==i||e[2]!==r||e[3]!==o?(n={isAdmin:r,loading:i,needsEmailVerification:o},e[1]=i,e[2]=r,e[3]=o,e[4]=n):n=e[4],n}async function d(){const e=await fetch("/api/_admin/me",{credentials:"include"});if(e.status>=500)throw new Error(`admin/me request failed: ${e.status}`);return e.ok?"admin":(await e.json().catch(u)).error==="email_not_verified"?"unverified":"denied"}function u(){return{}}export{l as u};
1
+ import{c as s,m,K as c}from"./index-B8v6bpri.js";function l(){const e=s.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:c.deploymentAdminMe(),queryFn:d,staleTime:1/0,retry:2},e[0]=t):t=e[0];const{data:a,isLoading:i}=m(t),r=a==="admin",o=a==="unverified";let n;return e[1]!==i||e[2]!==r||e[3]!==o?(n={isAdmin:r,loading:i,needsEmailVerification:o},e[1]=i,e[2]=r,e[3]=o,e[4]=n):n=e[4],n}async function d(){const e=await fetch("/api/_admin/me",{credentials:"include"});if(e.status>=500)throw new Error(`admin/me request failed: ${e.status}`);return e.ok?"admin":(await e.json().catch(u)).error==="email_not_verified"?"unverified":"denied"}function u(){return{}}export{l as u};
@@ -1 +1 @@
1
- import{c as n,k as s,b3 as a}from"./index-iMHThdI5.js";const o={home:"/$org/home",agents:"/$org/agents/{-$panel}",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",orgIndex:"/$org/"};function m(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:c},t[0]=e):e=t[0],s(e)}function c(t){return t.matches.at(-1)?.fullPath??""}function p(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:l},t[0]=e):e=t[0],s(e)}function l(t){const e=t.matches.at(-1)?.params?.panel;return e===void 0?void 0:a(e)}const i=new Map([[o.reports,"project-only"],[o.library,"org-only"]]);function g(t,e){const r=i.get(t);return r===void 0?!0:r==="project-only"?e!==null:e===null}export{o as D,p as a,g as r,m as u};
1
+ import{c as n,k as s,b3 as a}from"./index-B8v6bpri.js";const o={home:"/$org/home",agents:"/$org/agents/{-$panel}",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",orgIndex:"/$org/"};function m(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:c},t[0]=e):e=t[0],s(e)}function c(t){return t.matches.at(-1)?.fullPath??""}function p(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:l},t[0]=e):e=t[0],s(e)}function l(t){const e=t.matches.at(-1)?.params?.panel;return e===void 0?void 0:a(e)}const i=new Map([[o.reports,"project-only"],[o.library,"org-only"]]);function g(t,e){const r=i.get(t);return r===void 0?!0:r==="project-only"?e!==null:e===null}export{o as D,p as a,g as r,m as u};
@@ -1 +1 @@
1
- import{c as u,W as c,a7 as r,K as a,m as y,x as F,n as C,e as d}from"./index-iMHThdI5.js";function E(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=F(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],y(s)}function m(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_CREATE",{...f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function q(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_DELETE",{id:f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{E as a,m as b,q as c,I as u};
1
+ import{c as u,W as c,a7 as r,K as a,m as y,x as F,n as C,e as d}from"./index-B8v6bpri.js";function E(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=F(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],y(s)}function m(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_CREATE",{...f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function q(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_DELETE",{id:f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{E as a,m as b,q as c,I as u};
@@ -1 +1 @@
1
- import{bL as l,ff as d,fg as v,r as i}from"./index-iMHThdI5.js";var b=class extends l{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,u=super.createResult(e,t),{isFetching:r,isRefetching:h,isError:a,isRefetchError:g}=u,s=n.fetchMeta?.fetchMore?.direction,o=a&&s==="forward",P=r&&s==="forward",c=a&&s==="backward",f=r&&s==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,n.data),hasPreviousPage:d(t,n.data),isFetchNextPageError:o,isFetchingNextPage:P,isFetchPreviousPageError:c,isFetchingPreviousPage:f,isRefetchError:g&&!o&&!c,isRefetching:h&&!P&&!f}}};function p(e,t,n=!1,u){const r=i.useRef(null),h=i.useRef(null),a=i.useRef(e),g=i.useRef(t),s=i.useRef(n),o=i.useRef(u);a.current=e,g.current=t,s.current=n,o.current=u;const[P]=i.useState(()=>c=>{h.current=c,r.current&&(r.current.disconnect(),r.current=null),c&&queueMicrotask(()=>{if(h.current!==c)return;const f=new IntersectionObserver(R=>{R[0]?.isIntersecting&&g.current&&!s.current&&a.current()},{root:o.current?.current??null,rootMargin:"0px 0px 200px 0px"});f.observe(c),r.current=f})});return P}export{b as I,p as u};
1
+ import{bL as l,ff as d,fg as v,r as i}from"./index-B8v6bpri.js";var b=class extends l{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,u=super.createResult(e,t),{isFetching:r,isRefetching:h,isError:a,isRefetchError:g}=u,s=n.fetchMeta?.fetchMore?.direction,o=a&&s==="forward",P=r&&s==="forward",c=a&&s==="backward",f=r&&s==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,n.data),hasPreviousPage:d(t,n.data),isFetchNextPageError:o,isFetchingNextPage:P,isFetchPreviousPageError:c,isFetchingPreviousPage:f,isRefetchError:g&&!o&&!c,isRefetching:h&&!P&&!f}}};function p(e,t,n=!1,u){const r=i.useRef(null),h=i.useRef(null),a=i.useRef(e),g=i.useRef(t),s=i.useRef(n),o=i.useRef(u);a.current=e,g.current=t,s.current=n,o.current=u;const[P]=i.useState(()=>c=>{h.current=c,r.current&&(r.current.disconnect(),r.current=null),c&&queueMicrotask(()=>{if(h.current!==c)return;const f=new IntersectionObserver(R=>{R[0]?.isIntersecting&&g.current&&!s.current&&a.current()},{root:o.current?.current??null,rootMargin:"0px 0px 200px 0px"});f.observe(c),r.current=f})});return P}export{b as I,p as u};
@@ -1 +1 @@
1
- import{c as O,W as T,a7 as _,b_ as A,K as I,m as b,n as v,b as J,e as N,t as p}from"./index-iMHThdI5.js";function j(){const e=O.c(10),{org:u}=T(),d=_(),{capabilities:c,isPrivileged:f}=A(),s=f||!!c["members:manage"];let i;e[0]!==u.id?(i=I.organizationJoinRequests(u.id),e[0]=u.id,e[1]=i):i=e[1];let t;e[2]!==d?(t=()=>d.call("ORGANIZATION_JOIN_REQUEST_LIST",{}),e[2]=d,e[3]=t):t=e[3];const o=!!u.id&&s;let n;e[4]!==i||e[5]!==t||e[6]!==o?(n={queryKey:i,queryFn:t,enabled:o},e[4]=i,e[5]=t,e[6]=o,e[7]=n):n=e[7];const{data:a}=b(n);let l;return e[8]!==a?.requests?(l=a?.requests??[],e[8]=a?.requests,e[9]=l):l=e[9],l}function F(){const e=O.c(29),{org:u,locator:d}=T(),c=_(),f=v(),s=J();let i;e[0]!==d||e[1]!==u||e[2]!==f?(i=()=>{f.invalidateQueries({queryKey:I.organizationJoinRequests(u.id)}),f.invalidateQueries({queryKey:I.members(d)})},e[0]=d,e[1]=u,e[2]=f,e[3]=i):i=e[3];const t=i;let o;e[4]!==c?(o=r=>c.call("ORGANIZATION_JOIN_REQUEST_APPROVE",{requestId:r}),e[4]=c,e[5]=o):o=e[5];let n;e[6]!==t||e[7]!==s?(n=()=>{t(),p.success(s("settings.joinRequestsSection.approved"))},e[6]=t,e[7]=s,e[8]=n):n=e[8];let a;e[9]!==s?(a=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.approveFailed")),e[9]=s,e[10]=a):a=e[10];let l;e[11]!==o||e[12]!==n||e[13]!==a?(l={mutationFn:o,onSuccess:n,onError:a},e[11]=o,e[12]=n,e[13]=a,e[14]=l):l=e[14];const y=N(l);let q;e[15]!==c?(q=r=>c.call("ORGANIZATION_JOIN_REQUEST_DENY",{requestId:r}),e[15]=c,e[16]=q):q=e[16];let R;e[17]!==t||e[18]!==s?(R=()=>{t(),p.success(s("settings.joinRequestsSection.denied"))},e[17]=t,e[18]=s,e[19]=R):R=e[19];let g;e[20]!==s?(g=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.denyFailed")),e[20]=s,e[21]=g):g=e[21];let m;e[22]!==q||e[23]!==R||e[24]!==g?(m={mutationFn:q,onSuccess:R,onError:g},e[22]=q,e[23]=R,e[24]=g,e[25]=m):m=e[25];const S=N(m);let E;return e[26]!==y||e[27]!==S?(E={approve:y,deny:S},e[26]=y,e[27]=S,e[28]=E):E=e[28],E}export{F as a,j as u};
1
+ import{c as O,W as T,a7 as _,b_ as A,K as I,m as b,n as v,b as J,e as N,t as p}from"./index-B8v6bpri.js";function j(){const e=O.c(10),{org:u}=T(),d=_(),{capabilities:c,isPrivileged:f}=A(),s=f||!!c["members:manage"];let i;e[0]!==u.id?(i=I.organizationJoinRequests(u.id),e[0]=u.id,e[1]=i):i=e[1];let t;e[2]!==d?(t=()=>d.call("ORGANIZATION_JOIN_REQUEST_LIST",{}),e[2]=d,e[3]=t):t=e[3];const o=!!u.id&&s;let n;e[4]!==i||e[5]!==t||e[6]!==o?(n={queryKey:i,queryFn:t,enabled:o},e[4]=i,e[5]=t,e[6]=o,e[7]=n):n=e[7];const{data:a}=b(n);let l;return e[8]!==a?.requests?(l=a?.requests??[],e[8]=a?.requests,e[9]=l):l=e[9],l}function F(){const e=O.c(29),{org:u,locator:d}=T(),c=_(),f=v(),s=J();let i;e[0]!==d||e[1]!==u||e[2]!==f?(i=()=>{f.invalidateQueries({queryKey:I.organizationJoinRequests(u.id)}),f.invalidateQueries({queryKey:I.members(d)})},e[0]=d,e[1]=u,e[2]=f,e[3]=i):i=e[3];const t=i;let o;e[4]!==c?(o=r=>c.call("ORGANIZATION_JOIN_REQUEST_APPROVE",{requestId:r}),e[4]=c,e[5]=o):o=e[5];let n;e[6]!==t||e[7]!==s?(n=()=>{t(),p.success(s("settings.joinRequestsSection.approved"))},e[6]=t,e[7]=s,e[8]=n):n=e[8];let a;e[9]!==s?(a=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.approveFailed")),e[9]=s,e[10]=a):a=e[10];let l;e[11]!==o||e[12]!==n||e[13]!==a?(l={mutationFn:o,onSuccess:n,onError:a},e[11]=o,e[12]=n,e[13]=a,e[14]=l):l=e[14];const y=N(l);let q;e[15]!==c?(q=r=>c.call("ORGANIZATION_JOIN_REQUEST_DENY",{requestId:r}),e[15]=c,e[16]=q):q=e[16];let R;e[17]!==t||e[18]!==s?(R=()=>{t(),p.success(s("settings.joinRequestsSection.denied"))},e[17]=t,e[18]=s,e[19]=R):R=e[19];let g;e[20]!==s?(g=r=>p.error(r instanceof Error?r.message:s("settings.joinRequestsSection.denyFailed")),e[20]=s,e[21]=g):g=e[21];let m;e[22]!==q||e[23]!==R||e[24]!==g?(m={mutationFn:q,onSuccess:R,onError:g},e[22]=q,e[23]=R,e[24]=g,e[25]=m):m=e[25];const S=N(m);let E;return e[26]!==y||e[27]!==S?(E={approve:y,deny:S},e[26]=y,e[27]=S,e[28]=E):E=e[28],E}export{F as a,j as u};
@@ -1 +1 @@
1
- import{c as b,b as k,C as N,b9 as S,j as o,a4 as g,a1 as v,a2 as T,a3 as $,W as A,K as L,x as P}from"./index-iMHThdI5.js";import{B as I}from"./badge-Dx14P1uf.js";import{g as _}from"./types-CSh-_-A-.js";import{s as H}from"./Eye-D3bCBJMo.js";import{s as U,aP as w}from"./agent-icon-C7HwxMy2.js";import{i as O}from"./mcp-oauth-EeLwp5eX.js";const R=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:H,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:N,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:S,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:U,variant:"outline"}];function F(y){const e=b.c(22),{annotations:c,_meta:r}=y,t=k();let l;e[0]!==r?(l=_(r),e[0]=r,e[1]=l):l=e[1];const n=!!l;let s,i,a,u,d;if(e[2]!==c||e[3]!==n||e[4]!==t){d=Symbol.for("react.early_return_sentinel");e:{const x=c?R.filter(h=>c[h.key]===!0):[];if(x.length===0&&!n){d=null;break e}s=$,i="flex gap-1 flex-nowrap",e[10]!==n||e[11]!==t?(a=n&&o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(I,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(T,{children:t("tools.toolsList.interactive")})]}),e[10]=n,e[11]=t,e[12]=a):a=e[12];let m;e[13]!==t?(m=h=>{const{labelKey:j,Icon:C,variant:K}=h;return o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(I,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(T,{children:t(j)})]},j)},e[13]=t,e[14]=m):m=e[14],u=x.map(m)}e[2]=c,e[3]=n,e[4]=t,e[5]=s,e[6]=i,e[7]=a,e[8]=u,e[9]=d}else s=e[5],i=e[6],a=e[7],u=e[8],d=e[9];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[15]!==i||e[16]!==a||e[17]!==u?(p=o.jsxs("div",{className:i,children:[a,u]}),e[15]=i,e[16]=a,e[17]=u,e[18]=p):p=e[18];let f;return e[19]!==s||e[20]!==p?(f=o.jsx(s,{children:p}),e[19]=s,e[20]=p,e[21]=f):f=e[21],f}function Q(y){const e=b.c(11),{connectionId:c}=y,{org:r}=A();let t,l,n;e[0]!==c||e[1]!==r.slug?(t=new URL(`/api/${r.slug}/mcp/${c}`,window.location.origin),n=P,l=L.isMCPAuthenticated(t.href,null),e[0]=c,e[1]=r.slug,e[2]=t,e[3]=l,e[4]=n):(t=e[2],l=e[3],n=e[4]);let s;e[5]!==t||e[6]!==r.id?(s=()=>O({url:t.href,token:null,orgId:r.id}),e[5]=t,e[6]=r.id,e[7]=s):s=e[7];let i;e[8]!==l||e[9]!==s?(i={queryKey:l,queryFn:s},e[8]=l,e[9]=s,e[10]=i):i=e[10];const{data:a}=n(i);return a}export{F as T,Q as u};
1
+ import{c as b,b as k,C as N,b9 as S,j as o,a4 as g,a1 as v,a2 as T,a3 as $,W as A,K as L,x as P}from"./index-B8v6bpri.js";import{B as I}from"./badge-Cr2fQRq8.js";import{g as _}from"./types-DdehnnVY.js";import{s as H}from"./Eye-ggEjyhYq.js";import{s as U,aP as w}from"./agent-icon-D-9pJpLD.js";import{i as O}from"./mcp-oauth-DLj5d3Vy.js";const R=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:H,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:N,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:S,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:U,variant:"outline"}];function F(y){const e=b.c(22),{annotations:c,_meta:r}=y,t=k();let l;e[0]!==r?(l=_(r),e[0]=r,e[1]=l):l=e[1];const n=!!l;let s,i,a,u,d;if(e[2]!==c||e[3]!==n||e[4]!==t){d=Symbol.for("react.early_return_sentinel");e:{const x=c?R.filter(h=>c[h.key]===!0):[];if(x.length===0&&!n){d=null;break e}s=$,i="flex gap-1 flex-nowrap",e[10]!==n||e[11]!==t?(a=n&&o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(I,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(T,{children:t("tools.toolsList.interactive")})]}),e[10]=n,e[11]=t,e[12]=a):a=e[12];let m;e[13]!==t?(m=h=>{const{labelKey:j,Icon:C,variant:K}=h;return o.jsxs(g,{children:[o.jsx(v,{asChild:!0,children:o.jsx(I,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(T,{children:t(j)})]},j)},e[13]=t,e[14]=m):m=e[14],u=x.map(m)}e[2]=c,e[3]=n,e[4]=t,e[5]=s,e[6]=i,e[7]=a,e[8]=u,e[9]=d}else s=e[5],i=e[6],a=e[7],u=e[8],d=e[9];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[15]!==i||e[16]!==a||e[17]!==u?(p=o.jsxs("div",{className:i,children:[a,u]}),e[15]=i,e[16]=a,e[17]=u,e[18]=p):p=e[18];let f;return e[19]!==s||e[20]!==p?(f=o.jsx(s,{children:p}),e[19]=s,e[20]=p,e[21]=f):f=e[21],f}function Q(y){const e=b.c(11),{connectionId:c}=y,{org:r}=A();let t,l,n;e[0]!==c||e[1]!==r.slug?(t=new URL(`/api/${r.slug}/mcp/${c}`,window.location.origin),n=P,l=L.isMCPAuthenticated(t.href,null),e[0]=c,e[1]=r.slug,e[2]=t,e[3]=l,e[4]=n):(t=e[2],l=e[3],n=e[4]);let s;e[5]!==t||e[6]!==r.id?(s=()=>O({url:t.href,token:null,orgId:r.id}),e[5]=t,e[6]=r.id,e[7]=s):s=e[7];let i;e[8]!==l||e[9]!==s?(i={queryKey:l,queryFn:s},e[8]=l,e[9]=s,e[10]=i):i=e[10];const{data:a}=n(i);return a}export{F as T,Q as u};