decocms 4.294.1 → 4.294.3

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 (228) hide show
  1. package/dist/client/assets/{AlertCircle-BX7MJ072.js → AlertCircle-DLj-rBLn.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B2c5VlMF.js → AreaChart-9FGrcqfj.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-D_iAJfNc.js → ArrowLeft-Bz-VyTFg.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DE3_BiFl.js → ArrowUp-C9wijSHC.js} +1 -1
  5. package/dist/client/assets/{Check-CMgbiLaX.js → Check-CTKt7DPp.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-DSareV9G.js → CheckCircle-DOOBCpT9.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-Dw8obt8m.js → ChevronDown-DCBuHd0m.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CmErvA0j.js → ChevronRight-CO9K42kJ.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-DvwcNCCU.js → ChevronSelectorVertical-Iu37Jtvz.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-zRZTeZ7W.js → ChevronUp-D6fZUTvM.js} +1 -1
  11. package/dist/client/assets/{Copy01-TuMirHlz.js → Copy01-C-9zesbF.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-DE9AkrGD.js → CreditCard01-CKM-Jz3x.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-BWlRnIv9.js → DotsVertical-CSkWlHZt.js} +1 -1
  14. package/dist/client/assets/{Download01-BrELUVKh.js → Download01-DYsmBrAR.js} +1 -1
  15. package/dist/client/assets/{Eye-C1diZla3.js → Eye-Bf1344cz.js} +1 -1
  16. package/dist/client/assets/{FilterLines-CWtPXhPn.js → FilterLines-D4VZo9JH.js} +1 -1
  17. package/dist/client/assets/{Globe01-BLauj86P.js → Globe01-Mlkbzavy.js} +1 -1
  18. package/dist/client/assets/{Globe04-BZfohkfh.js → Globe04-CcZwBZDM.js} +1 -1
  19. package/dist/client/assets/{HardDrive-BooNC9Iz.js → HardDrive-rv6yXW9l.js} +1 -1
  20. package/dist/client/assets/{Key01-BNf86BzY.js → Key01-C71Bncy8.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-C5sEFVrU.js → LinkExternal01-Bd5qXJx-.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-qFRWZtfh.js → LockUnlocked01-xUxyOLI6.js} +1 -1
  23. package/dist/client/assets/{LogOut01-945MQKA3.js → LogOut01-CFPuWi87.js} +1 -1
  24. package/dist/client/assets/{Monitor01-BYyknu9E.js → Monitor01-Db3wK3MU.js} +1 -1
  25. package/dist/client/assets/{Palette-CtmrE0Ya.js → Palette-Wf7ieWzf.js} +1 -1
  26. package/dist/client/assets/{Play-KEXVN9gu.js → Play-CTzOPD4i.js} +1 -1
  27. package/dist/client/assets/{Plus-DVX_wDQ5.js → Plus-C20besyI.js} +1 -1
  28. package/dist/client/assets/{SearchLg--Jj0q90X.js → SearchLg-BoAF9n4o.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BfGi9p6T.js → SearchMd-DbgBw9S_.js} +1 -1
  30. package/dist/client/assets/{Settings02-NF-WIPx9.js → Settings02-DVdySYD4.js} +1 -1
  31. package/dist/client/assets/{Share07-CaDcjgW4.js → Share07-TLJEQyW1.js} +1 -1
  32. package/dist/client/assets/{Shield01-BKKyhf4r.js → Shield01-CVEumGx3.js} +1 -1
  33. package/dist/client/assets/{Stars01--KT_Bx7a.js → Stars01-BLlf5jfX.js} +1 -1
  34. package/dist/client/assets/{Stars02-BX_P13x6.js → Stars02-DSl09LS3.js} +1 -1
  35. package/dist/client/assets/{Sun-DS3TtzGE.js → Sun-D8Cz2KrR.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-Cb_T5oPm.js → SwitchHorizontal01-DxrMcxk-.js} +1 -1
  37. package/dist/client/assets/{Tool01-Ci1f_VX6.js → Tool01-C-r-Zf-I.js} +1 -1
  38. package/dist/client/assets/{Tool02-BSzeWnI0.js → Tool02-CQfhYBA-.js} +1 -1
  39. package/dist/client/assets/{Trash01-BjqXjKjL.js → Trash01-BaF7-rQA.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-BXDl_oA2.js → TrendUp01-DrIbuukS.js} +1 -1
  41. package/dist/client/assets/{Upload01-Dz2owj0l.js → Upload01-Eo8Y8gwt.js} +1 -1
  42. package/dist/client/assets/{User01-DfNUsZjG.js → User01-BmKTu46m.js} +1 -1
  43. package/dist/client/assets/{UserSquare-QpZbwdZV.js → UserSquare-D5oHibl1.js} +1 -1
  44. package/dist/client/assets/{Users01-CIQN8wG7.js → Users01-DdYj89q4.js} +1 -1
  45. package/dist/client/assets/{Users03-1JkDRbw6.js → Users03-BvmFpFso.js} +1 -1
  46. package/dist/client/assets/{XCircle-BEPQ7ZR9.js → XCircle-BLGxEUt7.js} +1 -1
  47. package/dist/client/assets/{XClose-CmC5bnde.js → XClose-KYQfxNAH.js} +1 -1
  48. package/dist/client/assets/{YAxis-C68KAf7l.js → YAxis-BzTUlY5S.js} +1 -1
  49. package/dist/client/assets/{Zap-BHFTnbC7.js → Zap-DSuzhrFd.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-W_x0tYhG.js → ZapSquare-B03SIXBG.js} +1 -1
  51. package/dist/client/assets/{access-gate-CJ1xrwBs.js → access-gate-DXpndi2J.js} +1 -1
  52. package/dist/client/assets/{agent-icon-DwW--uUY.js → agent-icon-LbhnjHwi.js} +1 -1
  53. package/dist/client/assets/{agents-list-SZYdZyx8.js → agents-list-BWtnoYa9.js} +1 -1
  54. package/dist/client/assets/{ai-providers--wPbboM3.js → ai-providers-C9TvV_lY.js} +1 -1
  55. package/dist/client/assets/{alert-IgKAs3o8.js → alert-Brn68O_I.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-3i0jJzJ0.js → alert-dialog-CDXDBEVz.js} +1 -1
  57. package/dist/client/assets/{api-keys-CUKmb7Np.js → api-keys-C0YiI_0_.js} +1 -1
  58. package/dist/client/assets/{app-editor-C5RKxi_A.js → app-editor-ByjOzHF0.js} +1 -1
  59. package/dist/client/assets/{auth-jQituvKm.js → auth-CMC5pcXA.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-BCcqdIY-.js → auth-catchall-C1obS0DM.js} +1 -1
  61. package/dist/client/assets/{auth-entry-FNjcKTKE.js → auth-entry-L4MYHhmA.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-DQfYa1Wy.js → auth-split-layout-p8RpZGj-.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-DsOW9H5Z.js → authenticate-and-persist-oauth-B1awg6G_.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-CCZYSh-F.js → automation-list-row-DSW4dqyo.js} +1 -1
  65. package/dist/client/assets/{automation-runs-BioqyUmT.js → automation-runs-DwCd_zFP.js} +1 -1
  66. package/dist/client/assets/{automations-Uhdu42lm.js → automations-C4N4GC8F.js} +1 -1
  67. package/dist/client/assets/{avatar-DQGduv0U.js → avatar-DKKheiwZ.js} +1 -1
  68. package/dist/client/assets/{badge-CAWKSDnJ.js → badge-BCfyeFAT.js} +1 -1
  69. package/dist/client/assets/{block-document-CvQIz5yK.js → block-document-D9NoKYRN.js} +1 -1
  70. package/dist/client/assets/{breadcrumb-Cl6tbNSR.js → breadcrumb-DwyVLr-T.js} +1 -1
  71. package/dist/client/assets/{buckets-BwD1bAZL.js → buckets-NENIH_rY.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-Cqpjajjn.js → bulk-category-panel-CWOO5lMW.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-BTRZ_JFs.js → capability-load-error-Bu5AJKz_.js} +1 -1
  74. package/dist/client/assets/{cards-Do4DMym-.js → cards-AP5XpAV6.js} +1 -1
  75. package/dist/client/assets/{category-editor-DJa80_RF.js → category-editor-CAPnyo_p.js} +1 -1
  76. package/dist/client/assets/{chart-CjmlfSOz.js → chart-D1jgldPO.js} +1 -1
  77. package/dist/client/assets/{chat-context-B5Wg5Lf5.js → chat-context-DQqAI1Uh.js} +1 -1
  78. package/dist/client/assets/{checkbox-BBaFR9e7.js → checkbox-BdDEdRtX.js} +1 -1
  79. package/dist/client/assets/{choose-editor-D21isyag.js → choose-editor-d1jVshXq.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-xs-iEptG.js → cli-auth-success-DZNcV7RU.js} +1 -1
  81. package/dist/client/assets/{collection-detail-Bgc17VFa.js → collection-detail-DCdfqXH6.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-DXBEx_vc.js → collection-display-button-BkVeJ-Ht.js} +1 -1
  83. package/dist/client/assets/{collection-search-B-xYnw3X.js → collection-search-swq3mYpH.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-Ci0d113k.js → collection-table-wrapper-BFeQBjk_.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-B9i9CP-Z.js → collection-tabs-B31Xr--3.js} +1 -1
  86. package/dist/client/assets/{command-ClyqeQko.js → command-CtzJnf3P.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-DoSINo3a.js → commerce-onboarding-B6IdGbvD.js} +1 -1
  88. package/dist/client/assets/{config-C05cUmSb.js → config-CbfHHHdK.js} +1 -1
  89. package/dist/client/assets/{connect-DzIdwweE.js → connect-28y6QTSQ.js} +1 -1
  90. package/dist/client/assets/{connection-C10IpVW9.js → connection-BuSysa2G.js} +1 -1
  91. package/dist/client/assets/{connection-card-BpdBS_Al.js → connection-card-BllYSe_U.js} +1 -1
  92. package/dist/client/assets/{connection-detail-Dyv8cSja.js → connection-detail-_XYLLvoB.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-iTHnU6X5.js → connection-form-helpers-C6PcVFY-.js} +1 -1
  94. package/dist/client/assets/{connections-DAyzQnUs.js → connections-Cu1bTJAX.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-S5tux0kK.js → decopilot-sse-pool-CvmARxhG.js} +1 -1
  96. package/dist/client/assets/{dialog-BST7kHjs.js → dialog-D4htx8Dz.js} +1 -1
  97. package/dist/client/assets/{domain-settings-BqlL-o8W.js → domain-settings-DEIyOLUp.js} +1 -1
  98. package/dist/client/assets/{drawer-Mrrueqfd.js → drawer-CuMUVmYp.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-B1VRfncr.js → dropdown-menu-BE_ym3Aq.js} +1 -1
  100. package/dist/client/assets/{empty-state-N7iUhCDH.js → empty-state-DANnu2Dm.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-XOJUSxR8.js → extract-connection-data-BIGQQYkp.js} +1 -1
  102. package/dist/client/assets/{file-explorer-C6yyRfaX.js → file-explorer-DyEzRtBa.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-N4BWvB1b.js → file-type-icon-BenR9kqm.js} +1 -1
  104. package/dist/client/assets/{form-kVV6q-fx.js → form-DxT0qd-2.js} +1 -1
  105. package/dist/client/assets/{general-Bb8jznvo.js → general-BgW26EXn.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-Do0PQSNG.js → github-repo-picker-DuwsdpzE.js} +1 -1
  107. package/dist/client/assets/{hooks-B79ZY8IT.js → hooks-rNJx2Yiz.js} +1 -1
  108. package/dist/client/assets/{index-CPq3T21x.js → index-BNizG_r4.js} +1 -1
  109. package/dist/client/assets/{index-BoZ9u4m1.js → index-BWXyDl1J.js} +32 -32
  110. package/dist/client/assets/{index-DEww-2EZ.js → index-BXn0NwIo.js} +1 -1
  111. package/dist/client/assets/{index-DwmIdtlP.js → index-CdvEA4gL.js} +1 -1
  112. package/dist/client/assets/{index-B8RO7-AA.js → index-ChcGUNSF.js} +1 -1
  113. package/dist/client/assets/{index-CsQMHT9g.js → index-DeW3li9q.js} +1 -1
  114. package/dist/client/assets/{index-C5hmsqzf.js → index-Dstu6oca.js} +1 -1
  115. package/dist/client/assets/{index-UTTF9eic.js → index-eyTxS6Bz.js} +6 -6
  116. package/dist/client/assets/{index-D6UX70oA.js → index-ke_XwP2X.js} +1 -1
  117. package/dist/client/assets/{index-redirect-BBfeBIf1.js → index-redirect-BJVKALX7.js} +1 -1
  118. package/dist/client/assets/{infra-billing-B5uvzyJf.js → infra-billing-CcvA504_.js} +1 -1
  119. package/dist/client/assets/{input-vNnjluS1.js → input-BmuxVBRq.js} +1 -1
  120. package/dist/client/assets/{integration-icon-DmJLuQ2R.js → integration-icon-BIrESC5L.js} +1 -1
  121. package/dist/client/assets/{invite-member-dialog-c_6h1c9d.js → invite-member-dialog-DIItbiti.js} +1 -1
  122. package/dist/client/assets/{label-2hy1g0FP.js → label-CpzYUQhx.js} +1 -1
  123. package/dist/client/assets/{layout-CTomL7O6.js → layout-DUzsu4c4.js} +1 -1
  124. package/dist/client/assets/{login-DaQOw-0F.js → login-RKrGsWpi.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-1M77jlWl.js → mcp-oauth-fsNn1czb.js} +1 -1
  126. package/dist/client/assets/{members-ByBSVnV2.js → members-BrDpNquF.js} +1 -1
  127. package/dist/client/assets/{monaco-editor-Cfd7zTaZ.js → monaco-editor-CMqzV6OC.js} +1 -1
  128. package/dist/client/assets/{monitoring-stats-row-CS0MLT1M.js → monitoring-stats-row-B-2cTzBQ.js} +1 -1
  129. package/dist/client/assets/{multi-select-Bc1Ex9je.js → multi-select-BQDrB1yk.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-rGk9Wox5.js → oauth-callback-Ba4XCWyw.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-ai-provider-g-Qo2pcQ.js → oauth-callback-ai-provider-JZoeFXxW.js} +1 -1
  132. package/dist/client/assets/{onboarding-DXUs-Zwj.js → onboarding-Bk8dPUg3.js} +1 -1
  133. package/dist/client/assets/{org-layout-w9rjradC.js → org-layout-Di5sK1cd.js} +1 -1
  134. package/dist/client/assets/{organization-choice-BhpYK3pU.js → organization-choice-CHzFbea4.js} +1 -1
  135. package/dist/client/assets/{orgs-B-lhj-vp.js → orgs-CKI_JjMZ.js} +1 -1
  136. package/dist/client/assets/{page-seo-form-CAkmJPih.js → page-seo-form-DC6yxtgW.js} +1 -1
  137. package/dist/client/assets/{popover-DrLCC3p5.js → popover-3-nXGxsG.js} +1 -1
  138. package/dist/client/assets/{post-calendar-C_H7bClE.js → post-calendar-_RxbEjvs.js} +1 -1
  139. package/dist/client/assets/{post-editor-BRsttkiY.js → post-editor-htgRFHsC.js} +1 -1
  140. package/dist/client/assets/{primitives-uAM2NwMD.js → primitives-By-oabkM.js} +1 -1
  141. package/dist/client/assets/{profile-C00C8rDv.js → profile-itQSWHS0.js} +1 -1
  142. package/dist/client/assets/{project-app-view-CAw6sW8T.js → project-app-view-BtD2dHc2.js} +1 -1
  143. package/dist/client/assets/{prompts-C1ft2jhs.js → prompts-B4jycXmo.js} +1 -1
  144. package/dist/client/assets/record-editor-DmWjrMIo.js +1 -0
  145. package/dist/client/assets/{redirect-editor-BTs-HhX2.js → redirect-editor-CyQNXT5k.js} +1 -1
  146. package/dist/client/assets/registry-BokCitrd.js +2 -0
  147. package/dist/client/assets/{registry-layout-VFGZ8IpM.js → registry-layout-BjtKfm0C.js} +1 -1
  148. package/dist/client/assets/{reports-DhzLGuLY.js → reports-D2AnuGQl.js} +1 -1
  149. package/dist/client/assets/{require-capability-CEAo1-fZ.js → require-capability-DYqEh_0t.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-DWW3HDyn.js → required-auth-layout-DPe5oune.js} +1 -1
  151. package/dist/client/assets/{reset-password-DreFZeIe.js → reset-password-BcbVGV-U.js} +1 -1
  152. package/dist/client/assets/{review-settings-B-lAMYBo.js → review-settings-DET5Awcp.js} +1 -1
  153. package/dist/client/assets/{roles-BU6rptsx.js → roles-Cm1qg0ow.js} +1 -1
  154. package/dist/client/assets/{scroll-area-B2Bvze19.js → scroll-area-BsxuvxbS.js} +1 -1
  155. package/dist/client/assets/{search-input-Ca_LFpsl.js → search-input-i6XUS8wH.js} +1 -1
  156. package/dist/client/assets/{secrets-CqakQjb1.js → secrets-DmB_3wh4.js} +1 -1
  157. package/dist/client/assets/{sections-editor-BBV08k5z.js → sections-editor-CQaXh0aN.js} +1 -1
  158. package/dist/client/assets/{select-DVeSr9Cv.js → select-OkaoLf52.js} +1 -1
  159. package/dist/client/assets/{select-model-DSFTGsBN.js → select-model-DQ1JGbZ1.js} +1 -1
  160. package/dist/client/assets/{self-tool-result-Ck66n9EL.js → self-tool-result-_Gq4fS8Q.js} +1 -1
  161. package/dist/client/assets/{seo-editor-BQV7KNe6.js → seo-editor-D3_wyic8.js} +1 -1
  162. package/dist/client/assets/{settings-layout-2dsjZSYZ.js → settings-layout-ClrVUhfB.js} +1 -1
  163. package/dist/client/assets/{shell-controls-BLPQ7kl6.js → shell-controls-DkHGCWDm.js} +1 -1
  164. package/dist/client/assets/{shell-layout-Bgj0rQDA.js → shell-layout-H_tjyvHd.js} +1 -1
  165. package/dist/client/assets/{spinner-znMssV1b.js → spinner-BNsOVOLB.js} +1 -1
  166. package/dist/client/assets/{sso-BksXn5ig.js → sso-CVRSygMq.js} +1 -1
  167. package/dist/client/assets/{store-q2_blJYB.js → store-EFK86dJx.js} +1 -1
  168. package/dist/client/assets/store-registry-CAgXmIVJ.js +2 -0
  169. package/dist/client/assets/{super-agent-icon-D_RymLMx.js → super-agent-icon-uUxotzmO.js} +1 -1
  170. package/dist/client/assets/{switch-CE07liUg.js → switch-jAw5NRFm.js} +1 -1
  171. package/dist/client/assets/{synced-repos-C0VYnIgW.js → synced-repos-DHWcDJ5i.js} +1 -1
  172. package/dist/client/assets/{table-C54lPCoC.js → table-DSRHVWxU.js} +1 -1
  173. package/dist/client/assets/{tabs-DVsDlywr.js → tabs-CkF_fW0Q.js} +1 -1
  174. package/dist/client/assets/{task-board-C_FiCg7o.js → task-board-DmX2VpFs.js} +1 -1
  175. package/dist/client/assets/{tasks-DdrLr8z8.js → tasks-C6LaWTXG.js} +1 -1
  176. package/dist/client/assets/{textarea-e01dAh4Q.js → textarea-DzCWtryj.js} +1 -1
  177. package/dist/client/assets/{toggle-group-DVOGESuU.js → toggle-group-hvwloSYQ.js} +1 -1
  178. package/dist/client/assets/{toolbar-iG8binbI.js → toolbar-D9gkmlH9.js} +1 -1
  179. package/dist/client/assets/{track-Don0wR2Q.js → track-CwWn2JFQ.js} +1 -1
  180. package/dist/client/assets/{types-BMYq-irZ.js → types-D8IG_8eU.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-Cu5w7RQA.js → use-ai-providers-DZwpIJ4W.js} +1 -1
  182. package/dist/client/assets/{use-api-keys-CkhCpVU8.js → use-api-keys-D39Ow3Yy.js} +1 -1
  183. package/dist/client/assets/{use-automations-CZQfO2ET.js → use-automations-D--Rxx-_.js} +1 -1
  184. package/dist/client/assets/{use-autosave-BLPSaddA.js → use-autosave-BDzRVdw8.js} +1 -1
  185. package/dist/client/assets/{use-connection-CabbUm7J.js → use-connection-tOCjDBfx.js} +1 -1
  186. package/dist/client/assets/{use-copy-CPSkWD8d.js → use-copy-ICpw0Yw-.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-DYdOafWL.js → use-create-virtual-mcp-DKiTnBa-.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-D494opKg.js → use-debounced-autosave-C706dtM7.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-wOe54Kkz.js → use-debounced-value-DBMZQqKo.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-CoDj3hx4.js → use-decopilot-events-DFaxDB0Z.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-Bh7pa4Y9.js → use-delete-connection-DY1dO96h.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-BhDeB0GP.js → use-deployment-admin-CwPi-zHy.js} +1 -1
  193. package/dist/client/assets/{use-destination-route-CUizQ3Ky.js → use-destination-route-C8wZaTLq.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-BlsniSlU.js → use-file-configs-rXyGhpyn.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-BAdheIAu.js → use-infinite-scroll-BUgjJwY5.js} +1 -1
  196. package/dist/client/assets/{use-join-requests-DJVwnQoI.js → use-join-requests-CbCMIasb.js} +1 -1
  197. package/dist/client/assets/{use-mcp-auth-status-BJbL5Csu.js → use-mcp-auth-status-CyITsP1y.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-Cl4PpqBq.js → use-mcp-client-DHZ5WVmn.js} +1 -1
  199. package/dist/client/assets/{use-mcp-tools-CAgTZP66.js → use-mcp-tools-C69l20dV.js} +1 -1
  200. package/dist/client/assets/{use-members-C1QvIqWQ.js → use-members-CAd4YLUd.js} +1 -1
  201. package/dist/client/assets/{use-navigate-to-agent-D8r5y5p4.js → use-navigate-to-agent-BWgdcI3Z.js} +1 -1
  202. package/dist/client/assets/{use-org-auth-client-CIuw_wjP.js → use-org-auth-client-DPBNI0km.js} +1 -1
  203. package/dist/client/assets/{use-org-repo-syncs-DCazGb2T.js → use-org-repo-syncs-Df_iQEGc.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-DoM99z93.js → use-org-sso-Y-cX0M9u.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-DZlpT-Bq.js → use-organization-roles-Cazh8-rd.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-DLT--rXL.js → use-organization-settings-CGbImq1L.js} +1 -1
  207. package/dist/client/assets/{use-panel-navigate-jSEiIqVH.js → use-panel-navigate-CzBWJmh4.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-D0BvPX4D.js → use-registry-connections--wEDOuCo.js} +1 -1
  209. package/dist/client/assets/{use-secrets-5seihYfj.js → use-secrets-BUOK8Q3X.js} +1 -1
  210. package/dist/client/assets/{use-section-preview-base-DHqwJRrd.js → use-section-preview-base-CQ_HgNgO.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-DWru2W3X.js → use-status-sounds-BcDDyChz.js} +1 -1
  212. package/dist/client/assets/{use-tags-DiSYGuJm.js → use-tags-DQhkcWVg.js} +1 -1
  213. package/dist/client/assets/{use-view-mode-B1U71rKz.js → use-view-mode-DyvonuSr.js} +1 -1
  214. package/dist/client/assets/{use-virtual-mcp-Df2Znans.js → use-virtual-mcp-zkag_-cI.js} +1 -1
  215. package/dist/client/assets/useInfiniteQuery-CHJpyz-t.js +1 -0
  216. package/dist/client/assets/useSuspenseInfiniteQuery-uqFTRGN7.js +1 -0
  217. package/dist/client/assets/{users-DpiU7_gm.js → users-DBLID0_X.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-BjMZYHfG.js → variant-calendar-pfbXNZPy.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-D5s-POwP.js → view-mode-toggle-ChPfg34r.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +63 -63
  222. package/dist/server/server.js +59 -59
  223. package/package.json +1 -1
  224. package/dist/client/assets/record-editor-Dmt20zx4.js +0 -1
  225. package/dist/client/assets/registry-BkvSu6Go.js +0 -2
  226. package/dist/client/assets/store-registry-DqrYH31S.js +0 -2
  227. package/dist/client/assets/useInfiniteQuery-DsOKY7NR.js +0 -1
  228. package/dist/client/assets/useSuspenseInfiniteQuery-Ci2I5tLg.js +0 -1
@@ -1 +1 @@
1
- import{c as I,r as J,j as a,n as Y,B as z,H as Q,ac as V,K as G,o as ae,p as te,e as se,b as L,P as X,dx as Se,du as Ne,dw as H,dv as ne,Y as de,s as Ce,t as q}from"./index-BoZ9u4m1.js";import{I as ee}from"./input-vNnjluS1.js";import{i as fe}from"./Check-CMgbiLaX.js";import{i as me}from"./ChevronSelectorVertical-DvwcNCCU.js";import{a as we,c as _e,d as ke,e as Te,b as Ae,C as Ie}from"./command-ClyqeQko.js";import{a as Pe,P as Re,b as Ee}from"./popover-DrLCC3p5.js";import{S as Oe}from"./switch-CE07liUg.js";import{c as ue,d as ge,b as pe,f as je,g as xe,e as he,a as ye,A as be}from"./alert-dialog-3i0jJzJ0.js";import{S as Be,a as De,b as Fe,c as $e,d as re}from"./select-DVeSr9Cv.js";import{R as Ke,A as Me}from"./review-settings-B-lAMYBo.js";import{t as qe}from"./cards-Do4DMym-.js";import{p as Le}from"./config-C05cUmSb.js";import{u as Je}from"./use-organization-settings-DLT--rXL.js";import{R as Ue}from"./require-capability-CEAo1-fZ.js";import"./index-DwmIdtlP.js";import"./dialog-BST7kHjs.js";import"./SearchMd-BfGi9p6T.js";import"./ChevronDown-Dw8obt8m.js";import"./ChevronUp-zRZTeZ7W.js";import"./UserSquare-QpZbwdZV.js";import"./DotsVertical-BWlRnIv9.js";import"./Download01-BrELUVKh.js";import"./Share07-CaDcjgW4.js";import"./Globe01-BLauj86P.js";import"./Key01-BNf86BzY.js";import"./Palette-CtmrE0Ya.js";import"./Trash01-BjqXjKjL.js";import"./Zap-BHFTnbC7.js";import"./dropdown-menu-B1VRfncr.js";import"./ChevronRight-CmErvA0j.js";import"./file-type-icon-N4BWvB1b.js";import"./Eye-C1diZla3.js";import"./AlertCircle-BX7MJ072.js";import"./CheckCircle-DSareV9G.js";import"./Shield01-BKKyhf4r.js";import"./task-board-C_FiCg7o.js";import"./constants-dLUUoWH7.js";import"./access-gate-CJ1xrwBs.js";import"./capability-load-error-BTRZ_JFs.js";function ze(t){const e=I.c(41),{options:i,value:s,onChange:l,placeholder:n,triggerClassName:r,contentClassName:o,width:h,renderTrigger:p,renderItem:c,emptyMessage:f,searchPlaceholder:u,filter:g}=t,j=n===void 0?"Select...":n,b=h===void 0?"w-[200px]":h,y=f===void 0?"No results found.":f,v=u===void 0?"Search...":u;let d;e[0]!==s?(d=M=>M.value===s,e[0]=s,e[1]=d):d=e[1];const m=i.find(d),[x,S]=J.useState(!1),C=Re,N=Pe,_=!0,k=p?a.jsx("div",{className:Y("cursor-pointer",r),children:p(m)}):a.jsxs(z,{variant:"outline",role:"combobox",className:Y("justify-between",b,r),children:[m?m.label:j,a.jsx(me,{className:"opacity-50"})]});let T;e[2]!==N||e[3]!==k?(T=a.jsx(N,{asChild:_,children:k}),e[2]=N,e[3]=k,e[4]=T):T=e[4];let A;e[5]!==o?(A=Y("p-0",o),e[5]=o,e[6]=A):A=e[6];let B;e[7]===Symbol.for("react.memo_cache_sentinel")?(B={width:"var(--radix-popover-trigger-width)"},e[7]=B):B=e[7];let D;e[8]!==v?(D=a.jsx(we,{placeholder:v,className:"h-9"}),e[8]=v,e[9]=D):D=e[9];let $;e[10]!==y?($=a.jsx(_e,{children:y}),e[10]=y,e[11]=$):$=e[11];let P;if(e[12]!==l||e[13]!==i||e[14]!==c||e[15]!==S||e[16]!==s){let M;e[18]!==l||e[19]!==c||e[20]!==S||e[21]!==s?(M=w=>{const W=s===w.value;return a.jsx(ke,{value:w.label,onSelect:()=>{l(w.value===s?"":w.value),S(!1)},children:c?c(w,W):a.jsxs(a.Fragment,{children:[w.label,a.jsx(fe,{className:Y("ml-auto",W?"opacity-100":"opacity-0")})]})},w.value)},e[18]=l,e[19]=c,e[20]=S,e[21]=s,e[22]=M):M=e[22],P=i.map(M),e[12]=l,e[13]=i,e[14]=c,e[15]=S,e[16]=s,e[17]=P}else P=e[17];let R;e[23]!==P?(R=a.jsx(Te,{children:P}),e[23]=P,e[24]=R):R=e[24];let K;e[25]!==$||e[26]!==R?(K=a.jsxs(Ae,{children:[$,R]}),e[25]=$,e[26]=R,e[27]=K):K=e[27];let E;e[28]!==g||e[29]!==D||e[30]!==K?(E=a.jsxs(Ie,{filter:g,children:[D,K]}),e[28]=g,e[29]=D,e[30]=K,e[31]=E):E=e[31];let O;e[32]!==E||e[33]!==A?(O=a.jsx(Ee,{className:A,style:B,children:E}),e[32]=E,e[33]=A,e[34]=O):O=e[34];let F;return e[35]!==C||e[36]!==x||e[37]!==S||e[38]!==O||e[39]!==T?(F=a.jsxs(C,{open:x,onOpenChange:S,children:[T,O]}),e[35]=C,e[36]=x,e[37]=S,e[38]=O,e[39]=T,e[40]=F):F=e[40],F}function Qe(t){const e=I.c(4),{size:i,className:s}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=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]=l):l=e[0];let n;return e[1]!==s||e[2]!==i?(n=a.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:l}),e[1]=s,e[2]=i,e[3]=n):n=e[3],n}function ve(t){const e=t.projectName?.replace(/\s+/g," ").trim(),i=t.name.trim();return e?{primary:e,secondary:[i,t.projectKey].filter(Boolean).join(" · ")}:{primary:i,secondary:t.projectKey??""}}function Ve(t){const{primary:e,secondary:i}=ve(t);return[e,i,`#${t.id}`].filter(Boolean).join(" ")}function oe(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function Ge(t,e){const i=oe(e).trim();if(!i)return 1;const s=oe(t);return i.split(/\s+/).every(l=>s.includes(l))?1:0}function He(){const t=I.c(7),{org:e}=Q(),i=V();let s;t[0]!==e.id?(s=G.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let l;t[2]!==i?(l=async()=>(await i.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=i,t[3]=l):l=t[3];let n;return t[4]!==s||t[5]!==l?(n={queryKey:s,queryFn:l},t[4]=s,t[5]=l,t[6]=n):n=t[6],ae(n)}function ie(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async o=>(await i.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function Ye(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=()=>i.call("JIRA_INTEGRATION_DELETE",{}),t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function We(t){const e=I.c(8),{org:i}=Q(),s=V();let l;e[0]!==i.id?(l=G.jiraBoards(i.id),e[0]=i.id,e[1]=l):l=e[1];let n;e[2]!==s?(n=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=n):n=e[3];let r;return e[4]!==t||e[5]!==l||e[6]!==n?(r={queryKey:l,enabled:t,staleTime:6e4,queryFn:n},e[4]=t,e[5]=l,e[6]=n,e[7]=r):r=e[7],ae(r)}function Xe(t){const e=I.c(10),{org:i}=Q(),s=V();let l;e[0]!==t||e[1]!==i.id?(l=G.jiraBoardColumns(i.id,t??""),e[0]=t,e[1]=i.id,e[2]=l):l=e[2];const n=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==n||e[8]!==r?(o={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[6]=l,e[7]=n,e[8]=r,e[9]=o):o=e[9],ae(o)}function Ze(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async()=>(await i.call("JIRA_SYNC_RUN",{})).result,t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function et(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async()=>await i.call("JIRA_RESYNC_REQUEST",{}),t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function Z(t,e){const i=e.statuses[0];if(i)return Object.entries(t).find(([,s])=>s.includes(i))?.[0]}const ce=[{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 tt(t,e){return t?ce:ce.filter(i=>!Le(i.value)||i.value===e)}const le="__dont_sync__";function U(t,e){return t instanceof Error?t.message:e}const st="https://id.atlassian.com/manage-profile/security/api-tokens";function it(t){const e=I.c(7),{stepKeys:i}=t,s=L();let l;if(e[0]!==i||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],l=i.map(r),e[0]=i,e[1]=s,e[2]=l}else l=e[2];let n;return e[5]!==l?(n=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=n):n=e[6],n}function nt(){const t=I.c(69),e=L(),i=ie(),[s,l]=J.useState(""),[n,r]=J.useState(""),[o,h]=J.useState("");let p;t[0]!==o||t[1]!==n||t[2]!==s?(p=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=p):p=t[3];const c=p;let f;t[4]!==e?(f=e("settings.jira.siteLabel"),t[4]=e,t[5]=f):f=t[5];let u;t[6]!==f?(u=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:f}),t[6]=f,t[7]=u):u=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=w=>l(w.target.value),t[8]=g):g=t[8];let j;t[9]!==e?(j=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=j):j=t[10];let b;t[11]!==s||t[12]!==j?(b=a.jsx(ee,{value:s,onChange:g,placeholder:j,autoComplete:"off"}),t[11]=s,t[12]=j,t[13]=b):b=t[13];let y;t[14]!==u||t[15]!==b?(y=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[u,b]}),t[14]=u,t[15]=b,t[16]=y):y=t[16];let v;t[17]!==e?(v=e("settings.jira.emailLabel"),t[17]=e,t[18]=v):v=t[18];let d;t[19]!==v?(d=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:v}),t[19]=v,t[20]=d):d=t[20];let m;t[21]===Symbol.for("react.memo_cache_sentinel")?(m=w=>r(w.target.value),t[21]=m):m=t[21];let x;t[22]!==e?(x=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=x):x=t[23];let S;t[24]!==n||t[25]!==x?(S=a.jsx(ee,{value:n,onChange:m,placeholder:x,autoComplete:"off"}),t[24]=n,t[25]=x,t[26]=S):S=t[26];let C;t[27]!==S||t[28]!==d?(C=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,S]}),t[27]=S,t[28]=d,t[29]=C):C=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let _;t[32]!==N?(_=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=_):_=t[33];let k;t[34]!==e?(k=e("settings.jira.createTokenLink"),t[34]=e,t[35]=k):k=t[35];let T;t[36]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Ce,{size:12}),t[36]=T):T=t[36];let A;t[37]!==k?(A=a.jsxs("a",{href:st,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[k,T]}),t[37]=k,t[38]=A):A=t[38];let B;t[39]!==_||t[40]!==A?(B=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[_,A]}),t[39]=_,t[40]=A,t[41]=B):B=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=w=>h(w.target.value),t[42]=D):D=t[42];let $;t[43]!==e?($=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=$):$=t[44];let P;t[45]!==o||t[46]!==$?(P=a.jsx(ee,{type:"password",value:o,onChange:D,placeholder:$,autoComplete:"off"}),t[45]=o,t[46]=$,t[47]=P):P=t[47];let R;t[48]!==B||t[49]!==P?(R=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[B,P]}),t[48]=B,t[49]=P,t[50]=R):R=t[50];const K=!c||i.isPending;let E;t[51]!==o||t[52]!==n||t[53]!==s||t[54]!==e||t[55]!==i?(E=()=>i.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>q.success(e("settings.jira.connected")),onError:w=>q.error(U(w,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=n,t[53]=s,t[54]=e,t[55]=i,t[56]=E):E=t[56];let O;t[57]!==e||t[58]!==i.isPending?(O=i.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=i.isPending,t[59]=O):O=t[59];let F;t[60]!==K||t[61]!==E||t[62]!==O?(F=a.jsx(z,{size:"sm",className:"w-fit",disabled:K,onClick:E,children:O}),t[60]=K,t[61]=E,t[62]=O,t[63]=F):F=t[63];let M;return t[64]!==C||t[65]!==R||t[66]!==F||t[67]!==y?(M=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[y,C,R,F]}),t[64]=C,t[65]=R,t[66]=F,t[67]=y,t[68]=M):M=t[68],M}function lt(t){const e=I.c(7),{integration:i}=t,s=L();if(i.lastSyncError){let r;return e[0]!==i.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:i.lastSyncError}),e[0]=i.lastSyncError,e[1]=r):r=e[1],r}let l;e[2]!==i.lastSyncedAt||e[3]!==s?(l=i.lastSyncedAt?s("settings.jira.lastSynced",{ago:qe(i.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=i.lastSyncedAt,e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==l?(n=a.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=n):n=e[6],n}function at(t){const e=I.c(35),{integration:i}=t,s=L(),l=ie(),n=Xe(i.boardId),r=Je("delivery_lanes_enabled"),[o,h]=J.useState(i.statusMapping),[p,c]=J.useState(i);if(p!==i&&(c(i),h(i.statusMapping)),n.isPending){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(de,{className:"h-24 w-full mt-3"}),e[0]=d):d=e[0],d}if(n.isError){let d;e[1]!==n.error||e[2]!==s?(d=U(n.error,s("settings.jira.columnsFailed")),e[1]=n.error,e[2]=s,e[3]=d):d=e[3];let m;return e[4]!==d?(m=a.jsx("p",{className:"text-xs text-destructive mt-3",children:d}),e[4]=d,e[5]=m):m=e[5],m}let f;e[6]!==n.data||e[7]!==o||e[8]!==s||e[9]!==l?(f=function(m,x){const S=o,C={};for(const N of n.data??[]){const _=N.name===m.name?x===le?void 0:x:Z(o,N);_&&(C[_]=[...C[_]??[],...N.statuses])}h(C),l.mutate({statusMapping:C},{onError:N=>{h(S),q.error(U(N,s("settings.jira.saveFailed")))}})},e[6]=n.data,e[7]=o,e[8]=s,e[9]=l,e[10]=f):f=e[10];const u=f;let g,j;if(e[11]!==n.data||e[12]!==o||e[13]!==s){let d;e[16]!==o?(d=x=>!Z(o,x),e[16]=o,e[17]=d):d=e[17];const m=(n.data??[]).filter(d);g="flex flex-col mt-3",j=m.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:m.map(rt).join(", ")})}),e[11]=n.data,e[12]=o,e[13]=s,e[14]=g,e[15]=j}else g=e[14],j=e[15];let b;e[18]!==n.data?(b=n.data??[],e[18]=n.data,e[19]=b):b=e[19];let y;if(e[20]!==r||e[21]!==o||e[22]!==u||e[23]!==s||e[24]!==b){let d;e[26]!==r||e[27]!==o||e[28]!==u||e[29]!==s?(d=m=>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:m.name}),(m.statuses.length>1||m.statuses[0]!==m.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:m.statuses.join(", ")})]}),a.jsxs(Be,{value:Z(o,m)??le,onValueChange:x=>u(m,x),children:[a.jsx(De,{className:"w-44 shrink-0",children:a.jsx(Fe,{})}),a.jsxs($e,{children:[a.jsx(re,{value:le,children:s("settings.jira.dontSync")}),tt(r,Z(o,m)).map(x=>a.jsx(re,{value:x.value,children:s(x.labelKey)},x.value))]})]})]},m.name),e[26]=r,e[27]=o,e[28]=u,e[29]=s,e[30]=d):d=e[30],y=b.map(d),e[20]=r,e[21]=o,e[22]=u,e[23]=s,e[24]=b,e[25]=y}else y=e[25];let v;return e[31]!==g||e[32]!==j||e[33]!==y?(v=a.jsxs("div",{className:g,children:[j,y]}),e[31]=g,e[32]=j,e[33]=y,e[34]=v):v=e[34],v}function rt(t){return t.name}function ot(t){const e=I.c(44),{integration:i}=t,s=L(),l=Ye(),[n,r]=J.useState(!1),o=i.siteUrl,h=i.email;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>r(!0),e[0]=p):p=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let f;e[3]!==c?(f=a.jsx(z,{variant:"outline",size:"sm",onClick:p,children:c}),e[3]=c,e[4]=f):f=e[4];let u;e[5]!==i.email||e[6]!==i.siteUrl||e[7]!==f?(u=a.jsx(H,{title:o,description:h,action:f}),e[5]=i.email,e[6]=i.siteUrl,e[7]=f,e[8]=u):u=e[8];let g;e[9]!==s?(g=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=g):g=e[10];let j;e[11]!==g?(j=a.jsx(ue,{children:g}),e[11]=g,e[12]=j):j=e[12];let b;e[13]!==s?(b=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=b):b=e[14];let y;e[15]!==b?(y=a.jsx(ge,{children:b}),e[15]=b,e[16]=y):y=e[16];let v;e[17]!==y||e[18]!==j?(v=a.jsxs(pe,{children:[j,y]}),e[17]=y,e[18]=j,e[19]=v):v=e[19];let d;e[20]!==s?(d=s("settings.jira.cancel"),e[20]=s,e[21]=d):d=e[21];let m;e[22]!==d?(m=a.jsx(je,{children:d}),e[22]=d,e[23]=m):m=e[23];let x;e[24]!==l||e[25]!==s?(x=()=>l.mutate(void 0,{onSuccess:()=>q.success(s("settings.jira.disconnected")),onError:A=>q.error(U(A,s("settings.jira.saveFailed")))}),e[24]=l,e[25]=s,e[26]=x):x=e[26];let S;e[27]!==s?(S=s("settings.jira.disconnect"),e[27]=s,e[28]=S):S=e[28];let C;e[29]!==x||e[30]!==S?(C=a.jsx(xe,{onClick:x,children:S}),e[29]=x,e[30]=S,e[31]=C):C=e[31];let N;e[32]!==m||e[33]!==C?(N=a.jsxs(he,{children:[m,C]}),e[32]=m,e[33]=C,e[34]=N):N=e[34];let _;e[35]!==v||e[36]!==N?(_=a.jsxs(ye,{children:[v,N]}),e[35]=v,e[36]=N,e[37]=_):_=e[37];let k;e[38]!==n||e[39]!==_?(k=a.jsx(be,{open:n,onOpenChange:r,children:_}),e[38]=n,e[39]=_,e[40]=k):k=e[40];let T;return e[41]!==k||e[42]!==u?(T=a.jsxs(a.Fragment,{children:[u,k]}),e[41]=k,e[42]=u,e[43]=T):T=e[43],T}function ct(t){const e=I.c(36),{integration:i}=t,s=L(),l=ie(),n=We(!0);let r,o;e[0]!==n.data||e[1]!==i.boardId||e[2]!==i.boardName?(r=(n.data??[]).map(ft),o=i.boardId?r.find(m=>m.value===i.boardId)?.primary??i.boardName??i.boardId:null,e[0]=n.data,e[1]=i.boardId,e[2]=i.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const h=o;let p;e[5]!==s?(p=s("settings.jira.boardLabel"),e[5]=s,e[6]=p):p=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const f=i.boardId??"";let u;e[9]!==s?(u=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=u):u=e[10];let g;e[11]!==s?(g=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=g):g=e[12];let j;e[13]!==n.isPending||e[14]!==s?(j=n.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=n.isPending,e[14]=s,e[15]=j):j=e[15];let b;e[16]!==h||e[17]!==s?(b=()=>a.jsxs(z,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:h??s("settings.jira.boardPlaceholder")}),a.jsx(me,{className:"opacity-50 shrink-0"})]}),e[16]=h,e[17]=s,e[18]=b):b=e[18];let y;e[19]!==r||e[20]!==i.boardId||e[21]!==s||e[22]!==l?(y=m=>{!m||m===i.boardId||l.mutate({boardId:m,boardName:r.find(x=>x.value===m)?.primary??null,statusMapping:{},enabled:!1},{onError:x=>q.error(U(x,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=i.boardId,e[21]=s,e[22]=l,e[23]=y):y=e[23];let v;e[24]!==r||e[25]!==f||e[26]!==u||e[27]!==g||e[28]!==j||e[29]!==b||e[30]!==y?(v=a.jsx(ze,{options:r,value:f,width:"w-72",triggerClassName:"shrink-0",placeholder:u,searchPlaceholder:g,filter:Ge,emptyMessage:j,renderTrigger:b,renderItem:dt,onChange:y}),e[24]=r,e[25]=f,e[26]=u,e[27]=g,e[28]=j,e[29]=b,e[30]=y,e[31]=v):v=e[31];let d;return e[32]!==v||e[33]!==p||e[34]!==c?(d=a.jsx(H,{title:p,description:c,action:v}),e[32]=v,e[33]=p,e[34]=c,e[35]=d):d=e[35],d}function dt(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(fe,{className:Y("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function ft(t){const{primary:e,secondary:i}=ve(t);return{value:String(t.id),label:Ve(t),primary:e,secondary:i}}function mt(t){const e=I.c(10),{integration:i}=t,s=L();let l;e[0]!==s?(l=s("settings.jira.mappingLabel"),e[0]=s,e[1]=l):l=e[1];let n;e[2]!==s?(n=s("settings.jira.mappingDescription"),e[2]=s,e[3]=n):n=e[3];let r;e[4]!==i?(r=a.jsx(at,{integration:i}),e[4]=i,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==n||e[8]!==r?(o=a.jsx(H,{title:l,description:n,children:r}),e[6]=l,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}function ut(t){const e=I.c(72),{integration:i}=t,s=L(),l=ie(),n=Ze(),r=et(),[o,h]=J.useState(!1);let p;e[0]!==i.statusMapping?(p=Object.keys(i.statusMapping),e[0]=i.statusMapping,e[1]=p):p=e[1];const c=p.length>0;let f;e[2]!==s?(f=s("settings.jira.enableLabel"),e[2]=s,e[3]=f):f=e[3];let u;e[4]!==i?(u=a.jsx(lt,{integration:i}),e[4]=i,e[5]=u):u=e[5];const g=!i.enabled||n.isPending||r.isPending;let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=()=>h(!0),e[6]=j):j=e[6];let b;e[7]!==s?(b=s("settings.jira.resyncAll"),e[7]=s,e[8]=b):b=e[8];let y;e[9]!==g||e[10]!==b?(y=a.jsx(z,{variant:"outline",size:"sm",disabled:g,onClick:j,children:b}),e[9]=g,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==s?(v=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=v):v=e[13];let d;e[14]!==v?(d=a.jsx(ue,{children:v}),e[14]=v,e[15]=d):d=e[15];let m;e[16]!==s?(m=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=m):m=e[17];let x;e[18]!==m?(x=a.jsx(ge,{children:m}),e[18]=m,e[19]=x):x=e[19];let S;e[20]!==x||e[21]!==d?(S=a.jsxs(pe,{children:[d,x]}),e[20]=x,e[21]=d,e[22]=S):S=e[22];let C;e[23]!==s?(C=s("settings.jira.cancel"),e[23]=s,e[24]=C):C=e[24];let N;e[25]!==C?(N=a.jsx(je,{children:C}),e[25]=C,e[26]=N):N=e[26];let _;e[27]!==r||e[28]!==s?(_=()=>r.mutate(void 0,{onSuccess:()=>q.success(s("settings.jira.resyncAllQueued")),onError:w=>q.error(U(w,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=_):_=e[29];let k;e[30]!==s?(k=s("settings.jira.resyncAll"),e[30]=s,e[31]=k):k=e[31];let T;e[32]!==_||e[33]!==k?(T=a.jsx(xe,{onClick:_,children:k}),e[32]=_,e[33]=k,e[34]=T):T=e[34];let A;e[35]!==N||e[36]!==T?(A=a.jsxs(he,{children:[N,T]}),e[35]=N,e[36]=T,e[37]=A):A=e[37];let B;e[38]!==S||e[39]!==A?(B=a.jsxs(ye,{children:[S,A]}),e[38]=S,e[39]=A,e[40]=B):B=e[40];let D;e[41]!==o||e[42]!==B||e[43]!==y?(D=a.jsxs(be,{open:o,onOpenChange:h,children:[y,B]}),e[41]=o,e[42]=B,e[43]=y,e[44]=D):D=e[44];const $=!i.enabled||n.isPending;let P;e[45]!==n||e[46]!==s?(P=()=>n.mutate(void 0,{onSuccess:w=>{"error"in w?q.error(w.error):q.success(s("settings.jira.syncDone",{created:String(w.created),updated:String(w.updated),archived:String(w.archived)}))},onError:w=>q.error(U(w,s("settings.jira.syncFailed")))}),e[45]=n,e[46]=s,e[47]=P):P=e[47];let R;e[48]!==n.isPending||e[49]!==s?(R=n.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=n.isPending,e[49]=s,e[50]=R):R=e[50];let K;e[51]!==$||e[52]!==P||e[53]!==R?(K=a.jsx(z,{variant:"outline",size:"sm",disabled:$,onClick:P,children:R}),e[51]=$,e[52]=P,e[53]=R,e[54]=K):K=e[54];let E;e[55]!==c||e[56]!==i.boardId||e[57]!==s||e[58]!==l?(E=w=>{if(w&&(!i.boardId||!c)){q.error(s("settings.jira.enableRequirements"));return}l.mutate({enabled:w},{onError:W=>q.error(U(W,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=i.boardId,e[57]=s,e[58]=l,e[59]=E):E=e[59];let O;e[60]!==i.enabled||e[61]!==E||e[62]!==l.isPending?(O=a.jsx(Oe,{checked:i.enabled,disabled:l.isPending,onCheckedChange:E}),e[60]=i.enabled,e[61]=E,e[62]=l.isPending,e[63]=O):O=e[63];let F;e[64]!==D||e[65]!==K||e[66]!==O?(F=a.jsxs("div",{className:"flex items-center gap-3",children:[D,K,O]}),e[64]=D,e[65]=K,e[66]=O,e[67]=F):F=e[67];let M;return e[68]!==f||e[69]!==F||e[70]!==u?(M=a.jsx(H,{title:f,description:u,action:F}),e[68]=f,e[69]=F,e[70]=u,e[71]=M):M=e[71],M}function gt(t){const e=I.c(24),{integration:i}=t,s=L(),l=`${window.location.origin}/api/_jira/webhook/${i.webhookSecret}`;let n;e[0]!==s?(n=s("settings.jira.webhookTitle"),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(ee,{readOnly:!0,value:l,className:"font-mono text-xs"}),e[4]=l,e[5]=o):o=e[5];let h;e[6]!==s||e[7]!==l?(h=()=>{navigator.clipboard.writeText(l),q.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=l,e[8]=h):h=e[8];let p;e[9]!==s?(p=s("settings.jira.webhookCopy"),e[9]=s,e[10]=p):p=e[10];let c;e[11]!==h||e[12]!==p?(c=a.jsx(z,{variant:"outline",size:"sm",className:"shrink-0",onClick:h,children:p}),e[11]=h,e[12]=p,e[13]=c):c=e[13];let f;e[14]!==o||e[15]!==c?(f=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=f):f=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(it,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=u):u=e[17];let g;e[18]!==f?(g=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[f,u]}),e[18]=f,e[19]=g):g=e[19];let j;return e[20]!==n||e[21]!==r||e[22]!==g?(j=a.jsx(H,{title:n,description:r,children:g}),e[20]=n,e[21]=r,e[22]=g,e[23]=j):j=e[23],j}function pt(){const t=I.c(22),e=L(),i=He();if(i.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ne,{children:a.jsx("div",{className:"p-4",children:a.jsx(de,{className:"h-40 w-full"})})}),t[0]=c):c=t[0],c}if(!i.data){let c;t[1]!==e?(c=e("settings.jira.connectTitle"),t[1]=e,t[2]=c):c=t[2];let f;t[3]!==e?(f=e("settings.jira.connectDescription"),t[3]=e,t[4]=f):f=t[4];let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(nt,{}),t[5]=u):u=t[5];let g;return t[6]!==c||t[7]!==f?(g=a.jsx(ne,{children:a.jsx(H,{title:c,description:f,children:u})}),t[6]=c,t[7]=f,t[8]=g):g=t[8],g}const s=i.data;let l,n,r;t[9]!==s?(l=a.jsx(ot,{integration:s}),n=a.jsx(ct,{integration:s}),r=s.boardId&&a.jsx(mt,{integration:s}),t[9]=s,t[10]=l,t[11]=n,t[12]=r):(l=t[10],n=t[11],r=t[12]);let o,h;t[13]!==s?(o=a.jsx(ut,{integration:s}),h=a.jsx(gt,{integration:s}),t[13]=s,t[14]=o,t[15]=h):(o=t[14],h=t[15]);let p;return t[16]!==l||t[17]!==n||t[18]!==r||t[19]!==o||t[20]!==h?(p=a.jsxs(ne,{children:[l,n,r,o,h]}),t[16]=l,t[17]=n,t[18]=r,t[19]=o,t[20]=h,t[21]=p):p=t[21],p}function jt(){const t=I.c(17),e=L();let i;t[0]!==e?(i=e("settings.nav.tasks"),t[0]=e,t[1]=i):i=t[1];let s;t[2]!==i?(s=a.jsx(X.Title,{children:i}),t[2]=i,t[3]=s):s=t[3];let l,n;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Ke,{}),n=a.jsx(Me,{}),t[4]=l,t[5]=n):(l=t[4],n=t[5]);let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Qe,{size:18}),t[6]=r):r=t[6];let o;t[7]!==e?(o=e("settings.jira.sectionTitle"),t[7]=e,t[8]=o):o=t[8];let h;t[9]!==o?(h=a.jsxs("span",{className:"flex items-center gap-2",children:[r,o]}),t[9]=o,t[10]=h):h=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(pt,{}),t[11]=p):p=t[11];let c;t[12]!==h?(c=a.jsx(Ne,{title:h,children:p}),t[12]=h,t[13]=c):c=t[13];let f;return t[14]!==s||t[15]!==c?(f=a.jsx(X,{children:a.jsx(X.Content,{children:a.jsx(X.Body,{children:a.jsxs(Se,{children:[s,l,n,c]})})})}),t[14]=s,t[15]=c,t[16]=f):f=t[16],f}function ss(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ue,{capability:"org:manage",area:"settings",children:a.jsx(jt,{})}),t[0]=e):e=t[0],e}export{ss as default};
1
+ import{c as I,r as J,j as a,n as Y,B as z,H as Q,ac as V,K as G,o as ae,p as te,e as se,b as L,P as X,dx as Se,du as Ne,dw as H,dv as ne,Y as de,s as Ce,t as q}from"./index-BWXyDl1J.js";import{I as ee}from"./input-BmuxVBRq.js";import{i as fe}from"./Check-CTKt7DPp.js";import{i as me}from"./ChevronSelectorVertical-Iu37Jtvz.js";import{a as we,c as _e,d as ke,e as Te,b as Ae,C as Ie}from"./command-CtzJnf3P.js";import{a as Pe,P as Re,b as Ee}from"./popover-3-nXGxsG.js";import{S as Oe}from"./switch-jAw5NRFm.js";import{c as ue,d as ge,b as pe,f as je,g as xe,e as he,a as ye,A as be}from"./alert-dialog-CDXDBEVz.js";import{S as Be,a as De,b as Fe,c as $e,d as re}from"./select-OkaoLf52.js";import{R as Ke,A as Me}from"./review-settings-DET5Awcp.js";import{t as qe}from"./cards-AP5XpAV6.js";import{p as Le}from"./config-CbfHHHdK.js";import{u as Je}from"./use-organization-settings-CGbImq1L.js";import{R as Ue}from"./require-capability-DYqEh_0t.js";import"./index-CdvEA4gL.js";import"./dialog-D4htx8Dz.js";import"./SearchMd-DbgBw9S_.js";import"./ChevronDown-DCBuHd0m.js";import"./ChevronUp-D6fZUTvM.js";import"./UserSquare-D5oHibl1.js";import"./DotsVertical-CSkWlHZt.js";import"./Download01-DYsmBrAR.js";import"./Share07-TLJEQyW1.js";import"./Globe01-Mlkbzavy.js";import"./Key01-C71Bncy8.js";import"./Palette-Wf7ieWzf.js";import"./Trash01-BaF7-rQA.js";import"./Zap-DSuzhrFd.js";import"./dropdown-menu-BE_ym3Aq.js";import"./ChevronRight-CO9K42kJ.js";import"./file-type-icon-BenR9kqm.js";import"./Eye-Bf1344cz.js";import"./AlertCircle-DLj-rBLn.js";import"./CheckCircle-DOOBCpT9.js";import"./Shield01-CVEumGx3.js";import"./task-board-DmX2VpFs.js";import"./constants-dLUUoWH7.js";import"./access-gate-DXpndi2J.js";import"./capability-load-error-Bu5AJKz_.js";function ze(t){const e=I.c(41),{options:i,value:s,onChange:l,placeholder:n,triggerClassName:r,contentClassName:o,width:h,renderTrigger:p,renderItem:c,emptyMessage:f,searchPlaceholder:u,filter:g}=t,j=n===void 0?"Select...":n,b=h===void 0?"w-[200px]":h,y=f===void 0?"No results found.":f,v=u===void 0?"Search...":u;let d;e[0]!==s?(d=M=>M.value===s,e[0]=s,e[1]=d):d=e[1];const m=i.find(d),[x,S]=J.useState(!1),C=Re,N=Pe,_=!0,k=p?a.jsx("div",{className:Y("cursor-pointer",r),children:p(m)}):a.jsxs(z,{variant:"outline",role:"combobox",className:Y("justify-between",b,r),children:[m?m.label:j,a.jsx(me,{className:"opacity-50"})]});let T;e[2]!==N||e[3]!==k?(T=a.jsx(N,{asChild:_,children:k}),e[2]=N,e[3]=k,e[4]=T):T=e[4];let A;e[5]!==o?(A=Y("p-0",o),e[5]=o,e[6]=A):A=e[6];let B;e[7]===Symbol.for("react.memo_cache_sentinel")?(B={width:"var(--radix-popover-trigger-width)"},e[7]=B):B=e[7];let D;e[8]!==v?(D=a.jsx(we,{placeholder:v,className:"h-9"}),e[8]=v,e[9]=D):D=e[9];let $;e[10]!==y?($=a.jsx(_e,{children:y}),e[10]=y,e[11]=$):$=e[11];let P;if(e[12]!==l||e[13]!==i||e[14]!==c||e[15]!==S||e[16]!==s){let M;e[18]!==l||e[19]!==c||e[20]!==S||e[21]!==s?(M=w=>{const W=s===w.value;return a.jsx(ke,{value:w.label,onSelect:()=>{l(w.value===s?"":w.value),S(!1)},children:c?c(w,W):a.jsxs(a.Fragment,{children:[w.label,a.jsx(fe,{className:Y("ml-auto",W?"opacity-100":"opacity-0")})]})},w.value)},e[18]=l,e[19]=c,e[20]=S,e[21]=s,e[22]=M):M=e[22],P=i.map(M),e[12]=l,e[13]=i,e[14]=c,e[15]=S,e[16]=s,e[17]=P}else P=e[17];let R;e[23]!==P?(R=a.jsx(Te,{children:P}),e[23]=P,e[24]=R):R=e[24];let K;e[25]!==$||e[26]!==R?(K=a.jsxs(Ae,{children:[$,R]}),e[25]=$,e[26]=R,e[27]=K):K=e[27];let E;e[28]!==g||e[29]!==D||e[30]!==K?(E=a.jsxs(Ie,{filter:g,children:[D,K]}),e[28]=g,e[29]=D,e[30]=K,e[31]=E):E=e[31];let O;e[32]!==E||e[33]!==A?(O=a.jsx(Ee,{className:A,style:B,children:E}),e[32]=E,e[33]=A,e[34]=O):O=e[34];let F;return e[35]!==C||e[36]!==x||e[37]!==S||e[38]!==O||e[39]!==T?(F=a.jsxs(C,{open:x,onOpenChange:S,children:[T,O]}),e[35]=C,e[36]=x,e[37]=S,e[38]=O,e[39]=T,e[40]=F):F=e[40],F}function Qe(t){const e=I.c(4),{size:i,className:s}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=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]=l):l=e[0];let n;return e[1]!==s||e[2]!==i?(n=a.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:l}),e[1]=s,e[2]=i,e[3]=n):n=e[3],n}function ve(t){const e=t.projectName?.replace(/\s+/g," ").trim(),i=t.name.trim();return e?{primary:e,secondary:[i,t.projectKey].filter(Boolean).join(" · ")}:{primary:i,secondary:t.projectKey??""}}function Ve(t){const{primary:e,secondary:i}=ve(t);return[e,i,`#${t.id}`].filter(Boolean).join(" ")}function oe(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function Ge(t,e){const i=oe(e).trim();if(!i)return 1;const s=oe(t);return i.split(/\s+/).every(l=>s.includes(l))?1:0}function He(){const t=I.c(7),{org:e}=Q(),i=V();let s;t[0]!==e.id?(s=G.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let l;t[2]!==i?(l=async()=>(await i.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=i,t[3]=l):l=t[3];let n;return t[4]!==s||t[5]!==l?(n={queryKey:s,queryFn:l},t[4]=s,t[5]=l,t[6]=n):n=t[6],ae(n)}function ie(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async o=>(await i.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function Ye(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=()=>i.call("JIRA_INTEGRATION_DELETE",{}),t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function We(t){const e=I.c(8),{org:i}=Q(),s=V();let l;e[0]!==i.id?(l=G.jiraBoards(i.id),e[0]=i.id,e[1]=l):l=e[1];let n;e[2]!==s?(n=async()=>(await s.call("JIRA_BOARDS_LIST",{})).boards,e[2]=s,e[3]=n):n=e[3];let r;return e[4]!==t||e[5]!==l||e[6]!==n?(r={queryKey:l,enabled:t,staleTime:6e4,queryFn:n},e[4]=t,e[5]=l,e[6]=n,e[7]=r):r=e[7],ae(r)}function Xe(t){const e=I.c(10),{org:i}=Q(),s=V();let l;e[0]!==t||e[1]!==i.id?(l=G.jiraBoardColumns(i.id,t??""),e[0]=t,e[1]=i.id,e[2]=l):l=e[2];const n=t!==null;let r;e[3]!==t||e[4]!==s?(r=async()=>(await s.call("JIRA_BOARD_COLUMNS_LIST",{boardId:t??""})).columns,e[3]=t,e[4]=s,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==n||e[8]!==r?(o={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[6]=l,e[7]=n,e[8]=r,e[9]=o):o=e[9],ae(o)}function Ze(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async()=>(await i.call("JIRA_SYNC_RUN",{})).result,t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function et(){const t=I.c(8),{org:e}=Q(),i=V(),s=te();let l;t[0]!==i?(l=async()=>await i.call("JIRA_RESYNC_REQUEST",{}),t[0]=i,t[1]=l):l=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:G.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==l||t[6]!==n?(r={mutationFn:l,onSettled:n},t[5]=l,t[6]=n,t[7]=r):r=t[7],se(r)}function Z(t,e){const i=e.statuses[0];if(i)return Object.entries(t).find(([,s])=>s.includes(i))?.[0]}const ce=[{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 tt(t,e){return t?ce:ce.filter(i=>!Le(i.value)||i.value===e)}const le="__dont_sync__";function U(t,e){return t instanceof Error?t.message:e}const st="https://id.atlassian.com/manage-profile/security/api-tokens";function it(t){const e=I.c(7),{stepKeys:i}=t,s=L();let l;if(e[0]!==i||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],l=i.map(r),e[0]=i,e[1]=s,e[2]=l}else l=e[2];let n;return e[5]!==l?(n=a.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=n):n=e[6],n}function nt(){const t=I.c(69),e=L(),i=ie(),[s,l]=J.useState(""),[n,r]=J.useState(""),[o,h]=J.useState("");let p;t[0]!==o||t[1]!==n||t[2]!==s?(p=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=p):p=t[3];const c=p;let f;t[4]!==e?(f=e("settings.jira.siteLabel"),t[4]=e,t[5]=f):f=t[5];let u;t[6]!==f?(u=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:f}),t[6]=f,t[7]=u):u=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=w=>l(w.target.value),t[8]=g):g=t[8];let j;t[9]!==e?(j=e("settings.jira.sitePlaceholder"),t[9]=e,t[10]=j):j=t[10];let b;t[11]!==s||t[12]!==j?(b=a.jsx(ee,{value:s,onChange:g,placeholder:j,autoComplete:"off"}),t[11]=s,t[12]=j,t[13]=b):b=t[13];let y;t[14]!==u||t[15]!==b?(y=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[u,b]}),t[14]=u,t[15]=b,t[16]=y):y=t[16];let v;t[17]!==e?(v=e("settings.jira.emailLabel"),t[17]=e,t[18]=v):v=t[18];let d;t[19]!==v?(d=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:v}),t[19]=v,t[20]=d):d=t[20];let m;t[21]===Symbol.for("react.memo_cache_sentinel")?(m=w=>r(w.target.value),t[21]=m):m=t[21];let x;t[22]!==e?(x=e("settings.jira.emailPlaceholder"),t[22]=e,t[23]=x):x=t[23];let S;t[24]!==n||t[25]!==x?(S=a.jsx(ee,{value:n,onChange:m,placeholder:x,autoComplete:"off"}),t[24]=n,t[25]=x,t[26]=S):S=t[26];let C;t[27]!==S||t[28]!==d?(C=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,S]}),t[27]=S,t[28]=d,t[29]=C):C=t[29];let N;t[30]!==e?(N=e("settings.jira.tokenLabel"),t[30]=e,t[31]=N):N=t[31];let _;t[32]!==N?(_=a.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:N}),t[32]=N,t[33]=_):_=t[33];let k;t[34]!==e?(k=e("settings.jira.createTokenLink"),t[34]=e,t[35]=k):k=t[35];let T;t[36]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Ce,{size:12}),t[36]=T):T=t[36];let A;t[37]!==k?(A=a.jsxs("a",{href:st,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 text-xs text-foreground hover:underline",children:[k,T]}),t[37]=k,t[38]=A):A=t[38];let B;t[39]!==_||t[40]!==A?(B=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[_,A]}),t[39]=_,t[40]=A,t[41]=B):B=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D=w=>h(w.target.value),t[42]=D):D=t[42];let $;t[43]!==e?($=e("settings.jira.tokenPlaceholder"),t[43]=e,t[44]=$):$=t[44];let P;t[45]!==o||t[46]!==$?(P=a.jsx(ee,{type:"password",value:o,onChange:D,placeholder:$,autoComplete:"off"}),t[45]=o,t[46]=$,t[47]=P):P=t[47];let R;t[48]!==B||t[49]!==P?(R=a.jsxs("div",{className:"flex flex-col gap-1.5",children:[B,P]}),t[48]=B,t[49]=P,t[50]=R):R=t[50];const K=!c||i.isPending;let E;t[51]!==o||t[52]!==n||t[53]!==s||t[54]!==e||t[55]!==i?(E=()=>i.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>q.success(e("settings.jira.connected")),onError:w=>q.error(U(w,e("settings.jira.connectFailed")))}),t[51]=o,t[52]=n,t[53]=s,t[54]=e,t[55]=i,t[56]=E):E=t[56];let O;t[57]!==e||t[58]!==i.isPending?(O=i.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[57]=e,t[58]=i.isPending,t[59]=O):O=t[59];let F;t[60]!==K||t[61]!==E||t[62]!==O?(F=a.jsx(z,{size:"sm",className:"w-fit",disabled:K,onClick:E,children:O}),t[60]=K,t[61]=E,t[62]=O,t[63]=F):F=t[63];let M;return t[64]!==C||t[65]!==R||t[66]!==F||t[67]!==y?(M=a.jsxs("div",{className:"flex flex-col gap-4 mt-3 max-w-md",children:[y,C,R,F]}),t[64]=C,t[65]=R,t[66]=F,t[67]=y,t[68]=M):M=t[68],M}function lt(t){const e=I.c(7),{integration:i}=t,s=L();if(i.lastSyncError){let r;return e[0]!==i.lastSyncError?(r=a.jsx("p",{className:"text-xs text-destructive truncate",children:i.lastSyncError}),e[0]=i.lastSyncError,e[1]=r):r=e[1],r}let l;e[2]!==i.lastSyncedAt||e[3]!==s?(l=i.lastSyncedAt?s("settings.jira.lastSynced",{ago:qe(i.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=i.lastSyncedAt,e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==l?(n=a.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[5]=l,e[6]=n):n=e[6],n}function at(t){const e=I.c(35),{integration:i}=t,s=L(),l=ie(),n=Xe(i.boardId),r=Je("delivery_lanes_enabled"),[o,h]=J.useState(i.statusMapping),[p,c]=J.useState(i);if(p!==i&&(c(i),h(i.statusMapping)),n.isPending){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(de,{className:"h-24 w-full mt-3"}),e[0]=d):d=e[0],d}if(n.isError){let d;e[1]!==n.error||e[2]!==s?(d=U(n.error,s("settings.jira.columnsFailed")),e[1]=n.error,e[2]=s,e[3]=d):d=e[3];let m;return e[4]!==d?(m=a.jsx("p",{className:"text-xs text-destructive mt-3",children:d}),e[4]=d,e[5]=m):m=e[5],m}let f;e[6]!==n.data||e[7]!==o||e[8]!==s||e[9]!==l?(f=function(m,x){const S=o,C={};for(const N of n.data??[]){const _=N.name===m.name?x===le?void 0:x:Z(o,N);_&&(C[_]=[...C[_]??[],...N.statuses])}h(C),l.mutate({statusMapping:C},{onError:N=>{h(S),q.error(U(N,s("settings.jira.saveFailed")))}})},e[6]=n.data,e[7]=o,e[8]=s,e[9]=l,e[10]=f):f=e[10];const u=f;let g,j;if(e[11]!==n.data||e[12]!==o||e[13]!==s){let d;e[16]!==o?(d=x=>!Z(o,x),e[16]=o,e[17]=d):d=e[17];const m=(n.data??[]).filter(d);g="flex flex-col mt-3",j=m.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:m.map(rt).join(", ")})}),e[11]=n.data,e[12]=o,e[13]=s,e[14]=g,e[15]=j}else g=e[14],j=e[15];let b;e[18]!==n.data?(b=n.data??[],e[18]=n.data,e[19]=b):b=e[19];let y;if(e[20]!==r||e[21]!==o||e[22]!==u||e[23]!==s||e[24]!==b){let d;e[26]!==r||e[27]!==o||e[28]!==u||e[29]!==s?(d=m=>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:m.name}),(m.statuses.length>1||m.statuses[0]!==m.name)&&a.jsx("p",{className:"text-xs text-muted-foreground truncate",children:m.statuses.join(", ")})]}),a.jsxs(Be,{value:Z(o,m)??le,onValueChange:x=>u(m,x),children:[a.jsx(De,{className:"w-44 shrink-0",children:a.jsx(Fe,{})}),a.jsxs($e,{children:[a.jsx(re,{value:le,children:s("settings.jira.dontSync")}),tt(r,Z(o,m)).map(x=>a.jsx(re,{value:x.value,children:s(x.labelKey)},x.value))]})]})]},m.name),e[26]=r,e[27]=o,e[28]=u,e[29]=s,e[30]=d):d=e[30],y=b.map(d),e[20]=r,e[21]=o,e[22]=u,e[23]=s,e[24]=b,e[25]=y}else y=e[25];let v;return e[31]!==g||e[32]!==j||e[33]!==y?(v=a.jsxs("div",{className:g,children:[j,y]}),e[31]=g,e[32]=j,e[33]=y,e[34]=v):v=e[34],v}function rt(t){return t.name}function ot(t){const e=I.c(44),{integration:i}=t,s=L(),l=Ye(),[n,r]=J.useState(!1),o=i.siteUrl,h=i.email;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>r(!0),e[0]=p):p=e[0];let c;e[1]!==s?(c=s("settings.jira.disconnect"),e[1]=s,e[2]=c):c=e[2];let f;e[3]!==c?(f=a.jsx(z,{variant:"outline",size:"sm",onClick:p,children:c}),e[3]=c,e[4]=f):f=e[4];let u;e[5]!==i.email||e[6]!==i.siteUrl||e[7]!==f?(u=a.jsx(H,{title:o,description:h,action:f}),e[5]=i.email,e[6]=i.siteUrl,e[7]=f,e[8]=u):u=e[8];let g;e[9]!==s?(g=s("settings.jira.disconnectTitle"),e[9]=s,e[10]=g):g=e[10];let j;e[11]!==g?(j=a.jsx(ue,{children:g}),e[11]=g,e[12]=j):j=e[12];let b;e[13]!==s?(b=s("settings.jira.disconnectDescription"),e[13]=s,e[14]=b):b=e[14];let y;e[15]!==b?(y=a.jsx(ge,{children:b}),e[15]=b,e[16]=y):y=e[16];let v;e[17]!==y||e[18]!==j?(v=a.jsxs(pe,{children:[j,y]}),e[17]=y,e[18]=j,e[19]=v):v=e[19];let d;e[20]!==s?(d=s("settings.jira.cancel"),e[20]=s,e[21]=d):d=e[21];let m;e[22]!==d?(m=a.jsx(je,{children:d}),e[22]=d,e[23]=m):m=e[23];let x;e[24]!==l||e[25]!==s?(x=()=>l.mutate(void 0,{onSuccess:()=>q.success(s("settings.jira.disconnected")),onError:A=>q.error(U(A,s("settings.jira.saveFailed")))}),e[24]=l,e[25]=s,e[26]=x):x=e[26];let S;e[27]!==s?(S=s("settings.jira.disconnect"),e[27]=s,e[28]=S):S=e[28];let C;e[29]!==x||e[30]!==S?(C=a.jsx(xe,{onClick:x,children:S}),e[29]=x,e[30]=S,e[31]=C):C=e[31];let N;e[32]!==m||e[33]!==C?(N=a.jsxs(he,{children:[m,C]}),e[32]=m,e[33]=C,e[34]=N):N=e[34];let _;e[35]!==v||e[36]!==N?(_=a.jsxs(ye,{children:[v,N]}),e[35]=v,e[36]=N,e[37]=_):_=e[37];let k;e[38]!==n||e[39]!==_?(k=a.jsx(be,{open:n,onOpenChange:r,children:_}),e[38]=n,e[39]=_,e[40]=k):k=e[40];let T;return e[41]!==k||e[42]!==u?(T=a.jsxs(a.Fragment,{children:[u,k]}),e[41]=k,e[42]=u,e[43]=T):T=e[43],T}function ct(t){const e=I.c(36),{integration:i}=t,s=L(),l=ie(),n=We(!0);let r,o;e[0]!==n.data||e[1]!==i.boardId||e[2]!==i.boardName?(r=(n.data??[]).map(ft),o=i.boardId?r.find(m=>m.value===i.boardId)?.primary??i.boardName??i.boardId:null,e[0]=n.data,e[1]=i.boardId,e[2]=i.boardName,e[3]=r,e[4]=o):(r=e[3],o=e[4]);const h=o;let p;e[5]!==s?(p=s("settings.jira.boardLabel"),e[5]=s,e[6]=p):p=e[6];let c;e[7]!==s?(c=s("settings.jira.boardDescription"),e[7]=s,e[8]=c):c=e[8];const f=i.boardId??"";let u;e[9]!==s?(u=s("settings.jira.boardPlaceholder"),e[9]=s,e[10]=u):u=e[10];let g;e[11]!==s?(g=s("settings.jira.boardSearchPlaceholder"),e[11]=s,e[12]=g):g=e[12];let j;e[13]!==n.isPending||e[14]!==s?(j=n.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[13]=n.isPending,e[14]=s,e[15]=j):j=e[15];let b;e[16]!==h||e[17]!==s?(b=()=>a.jsxs(z,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[a.jsx("span",{className:"truncate",children:h??s("settings.jira.boardPlaceholder")}),a.jsx(me,{className:"opacity-50 shrink-0"})]}),e[16]=h,e[17]=s,e[18]=b):b=e[18];let y;e[19]!==r||e[20]!==i.boardId||e[21]!==s||e[22]!==l?(y=m=>{!m||m===i.boardId||l.mutate({boardId:m,boardName:r.find(x=>x.value===m)?.primary??null,statusMapping:{},enabled:!1},{onError:x=>q.error(U(x,s("settings.jira.saveFailed")))})},e[19]=r,e[20]=i.boardId,e[21]=s,e[22]=l,e[23]=y):y=e[23];let v;e[24]!==r||e[25]!==f||e[26]!==u||e[27]!==g||e[28]!==j||e[29]!==b||e[30]!==y?(v=a.jsx(ze,{options:r,value:f,width:"w-72",triggerClassName:"shrink-0",placeholder:u,searchPlaceholder:g,filter:Ge,emptyMessage:j,renderTrigger:b,renderItem:dt,onChange:y}),e[24]=r,e[25]=f,e[26]=u,e[27]=g,e[28]=j,e[29]=b,e[30]=y,e[31]=v):v=e[31];let d;return e[32]!==v||e[33]!==p||e[34]!==c?(d=a.jsx(H,{title:p,description:c,action:v}),e[32]=v,e[33]=p,e[34]=c,e[35]=d):d=e[35],d}function dt(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(fe,{className:Y("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function ft(t){const{primary:e,secondary:i}=ve(t);return{value:String(t.id),label:Ve(t),primary:e,secondary:i}}function mt(t){const e=I.c(10),{integration:i}=t,s=L();let l;e[0]!==s?(l=s("settings.jira.mappingLabel"),e[0]=s,e[1]=l):l=e[1];let n;e[2]!==s?(n=s("settings.jira.mappingDescription"),e[2]=s,e[3]=n):n=e[3];let r;e[4]!==i?(r=a.jsx(at,{integration:i}),e[4]=i,e[5]=r):r=e[5];let o;return e[6]!==l||e[7]!==n||e[8]!==r?(o=a.jsx(H,{title:l,description:n,children:r}),e[6]=l,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}function ut(t){const e=I.c(72),{integration:i}=t,s=L(),l=ie(),n=Ze(),r=et(),[o,h]=J.useState(!1);let p;e[0]!==i.statusMapping?(p=Object.keys(i.statusMapping),e[0]=i.statusMapping,e[1]=p):p=e[1];const c=p.length>0;let f;e[2]!==s?(f=s("settings.jira.enableLabel"),e[2]=s,e[3]=f):f=e[3];let u;e[4]!==i?(u=a.jsx(lt,{integration:i}),e[4]=i,e[5]=u):u=e[5];const g=!i.enabled||n.isPending||r.isPending;let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=()=>h(!0),e[6]=j):j=e[6];let b;e[7]!==s?(b=s("settings.jira.resyncAll"),e[7]=s,e[8]=b):b=e[8];let y;e[9]!==g||e[10]!==b?(y=a.jsx(z,{variant:"outline",size:"sm",disabled:g,onClick:j,children:b}),e[9]=g,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==s?(v=s("settings.jira.resyncAllTitle"),e[12]=s,e[13]=v):v=e[13];let d;e[14]!==v?(d=a.jsx(ue,{children:v}),e[14]=v,e[15]=d):d=e[15];let m;e[16]!==s?(m=s("settings.jira.resyncAllDescription"),e[16]=s,e[17]=m):m=e[17];let x;e[18]!==m?(x=a.jsx(ge,{children:m}),e[18]=m,e[19]=x):x=e[19];let S;e[20]!==x||e[21]!==d?(S=a.jsxs(pe,{children:[d,x]}),e[20]=x,e[21]=d,e[22]=S):S=e[22];let C;e[23]!==s?(C=s("settings.jira.cancel"),e[23]=s,e[24]=C):C=e[24];let N;e[25]!==C?(N=a.jsx(je,{children:C}),e[25]=C,e[26]=N):N=e[26];let _;e[27]!==r||e[28]!==s?(_=()=>r.mutate(void 0,{onSuccess:()=>q.success(s("settings.jira.resyncAllQueued")),onError:w=>q.error(U(w,s("settings.jira.syncFailed")))}),e[27]=r,e[28]=s,e[29]=_):_=e[29];let k;e[30]!==s?(k=s("settings.jira.resyncAll"),e[30]=s,e[31]=k):k=e[31];let T;e[32]!==_||e[33]!==k?(T=a.jsx(xe,{onClick:_,children:k}),e[32]=_,e[33]=k,e[34]=T):T=e[34];let A;e[35]!==N||e[36]!==T?(A=a.jsxs(he,{children:[N,T]}),e[35]=N,e[36]=T,e[37]=A):A=e[37];let B;e[38]!==S||e[39]!==A?(B=a.jsxs(ye,{children:[S,A]}),e[38]=S,e[39]=A,e[40]=B):B=e[40];let D;e[41]!==o||e[42]!==B||e[43]!==y?(D=a.jsxs(be,{open:o,onOpenChange:h,children:[y,B]}),e[41]=o,e[42]=B,e[43]=y,e[44]=D):D=e[44];const $=!i.enabled||n.isPending;let P;e[45]!==n||e[46]!==s?(P=()=>n.mutate(void 0,{onSuccess:w=>{"error"in w?q.error(w.error):q.success(s("settings.jira.syncDone",{created:String(w.created),updated:String(w.updated),archived:String(w.archived)}))},onError:w=>q.error(U(w,s("settings.jira.syncFailed")))}),e[45]=n,e[46]=s,e[47]=P):P=e[47];let R;e[48]!==n.isPending||e[49]!==s?(R=n.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[48]=n.isPending,e[49]=s,e[50]=R):R=e[50];let K;e[51]!==$||e[52]!==P||e[53]!==R?(K=a.jsx(z,{variant:"outline",size:"sm",disabled:$,onClick:P,children:R}),e[51]=$,e[52]=P,e[53]=R,e[54]=K):K=e[54];let E;e[55]!==c||e[56]!==i.boardId||e[57]!==s||e[58]!==l?(E=w=>{if(w&&(!i.boardId||!c)){q.error(s("settings.jira.enableRequirements"));return}l.mutate({enabled:w},{onError:W=>q.error(U(W,s("settings.jira.saveFailed")))})},e[55]=c,e[56]=i.boardId,e[57]=s,e[58]=l,e[59]=E):E=e[59];let O;e[60]!==i.enabled||e[61]!==E||e[62]!==l.isPending?(O=a.jsx(Oe,{checked:i.enabled,disabled:l.isPending,onCheckedChange:E}),e[60]=i.enabled,e[61]=E,e[62]=l.isPending,e[63]=O):O=e[63];let F;e[64]!==D||e[65]!==K||e[66]!==O?(F=a.jsxs("div",{className:"flex items-center gap-3",children:[D,K,O]}),e[64]=D,e[65]=K,e[66]=O,e[67]=F):F=e[67];let M;return e[68]!==f||e[69]!==F||e[70]!==u?(M=a.jsx(H,{title:f,description:u,action:F}),e[68]=f,e[69]=F,e[70]=u,e[71]=M):M=e[71],M}function gt(t){const e=I.c(24),{integration:i}=t,s=L(),l=`${window.location.origin}/api/_jira/webhook/${i.webhookSecret}`;let n;e[0]!==s?(n=s("settings.jira.webhookTitle"),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==s?(r=s("settings.jira.webhookDescription"),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==l?(o=a.jsx(ee,{readOnly:!0,value:l,className:"font-mono text-xs"}),e[4]=l,e[5]=o):o=e[5];let h;e[6]!==s||e[7]!==l?(h=()=>{navigator.clipboard.writeText(l),q.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=l,e[8]=h):h=e[8];let p;e[9]!==s?(p=s("settings.jira.webhookCopy"),e[9]=s,e[10]=p):p=e[10];let c;e[11]!==h||e[12]!==p?(c=a.jsx(z,{variant:"outline",size:"sm",className:"shrink-0",onClick:h,children:p}),e[11]=h,e[12]=p,e[13]=c):c=e[13];let f;e[14]!==o||e[15]!==c?(f=a.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=f):f=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(it,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=u):u=e[17];let g;e[18]!==f?(g=a.jsxs("div",{className:"flex flex-col gap-3 mt-3",children:[f,u]}),e[18]=f,e[19]=g):g=e[19];let j;return e[20]!==n||e[21]!==r||e[22]!==g?(j=a.jsx(H,{title:n,description:r,children:g}),e[20]=n,e[21]=r,e[22]=g,e[23]=j):j=e[23],j}function pt(){const t=I.c(22),e=L(),i=He();if(i.isPending){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ne,{children:a.jsx("div",{className:"p-4",children:a.jsx(de,{className:"h-40 w-full"})})}),t[0]=c):c=t[0],c}if(!i.data){let c;t[1]!==e?(c=e("settings.jira.connectTitle"),t[1]=e,t[2]=c):c=t[2];let f;t[3]!==e?(f=e("settings.jira.connectDescription"),t[3]=e,t[4]=f):f=t[4];let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(nt,{}),t[5]=u):u=t[5];let g;return t[6]!==c||t[7]!==f?(g=a.jsx(ne,{children:a.jsx(H,{title:c,description:f,children:u})}),t[6]=c,t[7]=f,t[8]=g):g=t[8],g}const s=i.data;let l,n,r;t[9]!==s?(l=a.jsx(ot,{integration:s}),n=a.jsx(ct,{integration:s}),r=s.boardId&&a.jsx(mt,{integration:s}),t[9]=s,t[10]=l,t[11]=n,t[12]=r):(l=t[10],n=t[11],r=t[12]);let o,h;t[13]!==s?(o=a.jsx(ut,{integration:s}),h=a.jsx(gt,{integration:s}),t[13]=s,t[14]=o,t[15]=h):(o=t[14],h=t[15]);let p;return t[16]!==l||t[17]!==n||t[18]!==r||t[19]!==o||t[20]!==h?(p=a.jsxs(ne,{children:[l,n,r,o,h]}),t[16]=l,t[17]=n,t[18]=r,t[19]=o,t[20]=h,t[21]=p):p=t[21],p}function jt(){const t=I.c(17),e=L();let i;t[0]!==e?(i=e("settings.nav.tasks"),t[0]=e,t[1]=i):i=t[1];let s;t[2]!==i?(s=a.jsx(X.Title,{children:i}),t[2]=i,t[3]=s):s=t[3];let l,n;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Ke,{}),n=a.jsx(Me,{}),t[4]=l,t[5]=n):(l=t[4],n=t[5]);let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Qe,{size:18}),t[6]=r):r=t[6];let o;t[7]!==e?(o=e("settings.jira.sectionTitle"),t[7]=e,t[8]=o):o=t[8];let h;t[9]!==o?(h=a.jsxs("span",{className:"flex items-center gap-2",children:[r,o]}),t[9]=o,t[10]=h):h=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(pt,{}),t[11]=p):p=t[11];let c;t[12]!==h?(c=a.jsx(Ne,{title:h,children:p}),t[12]=h,t[13]=c):c=t[13];let f;return t[14]!==s||t[15]!==c?(f=a.jsx(X,{children:a.jsx(X.Content,{children:a.jsx(X.Body,{children:a.jsxs(Se,{children:[s,l,n,c]})})})}),t[14]=s,t[15]=c,t[16]=f):f=t[16],f}function ss(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ue,{capability:"org:manage",area:"settings",children:a.jsx(jt,{})}),t[0]=e):e=t[0],e}export{ss as default};
@@ -1 +1 @@
1
- import{c as o,n,j as l}from"./index-BoZ9u4m1.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=n("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=l.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,n,j as l}from"./index-BWXyDl1J.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=n("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=l.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{r as x,bu as b,j as c,br as m,bx as k,bc as p,dz as A,dA as T,bw as M,dB as S,bt as F,bJ as $,c as P,n as C}from"./index-BoZ9u4m1.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]),z=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[I,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(I,{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(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,H]=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=z(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(S,{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=H(f,r.__scopeToggleGroup),n=z(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(A,{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)}})}),J=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(J,{"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,bu as b,j as c,br as m,bx as k,bc as p,dz as A,dA as T,bw as M,dB as S,bt as F,bJ as $,c as P,n as C}from"./index-BWXyDl1J.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]),z=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[I,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(I,{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(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,H]=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=z(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(S,{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=H(f,r.__scopeToggleGroup),n=z(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(A,{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)}})}),J=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(J,{"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 u,n as T,j as i,r as g,b as j,f as k,aH as p,L as N,bz as y,c5 as L}from"./index-BoZ9u4m1.js";function B(t){const e=u.c(14);let l,s,o,n,r;e[0]!==t?({active:l,className:s,ref:n,type:r,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o,e[4]=n,e[5]=r):(l=e[1],s=e[2],o=e[3],n=e[4],r=e[5]);const c=r===void 0?"button":r,a=l?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let f;e[6]!==s||e[7]!==a?(f=T("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",a,s),e[6]=s,e[7]=a,e[8]=f):f=e[8];let b;return e[9]!==o||e[10]!==n||e[11]!==f||e[12]!==c?(b=i.jsx("button",{ref:n,type:c,className:f,...o}),e[9]=o,e[10]=n,e[11]=f,e[12]=c,e[13]=b):b=e[13],b}const S=g.createContext(null);function x(){const t=g.use(S);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=u.c(8),{children:l}=t,[s,o]=g.useState(null),[n,r]=g.useState(null),[c,a]=g.useState(null),[f,b]=g.useState(null);let d;e[0]!==c||e[1]!==f||e[2]!==n||e[3]!==s?(d={togglesEl:s,setTogglesEl:o,tabsEl:n,setTabsEl:r,centerEl:c,setCenterEl:a,rightEl:f,setRightEl:b},e[0]=c,e[1]=f,e[2]=n,e[3]=s,e[4]=d):d=e[4];let h;return e[5]!==l||e[6]!==d?(h=i.jsx(S,{value:d,children:l}),e[5]=l,e[6]=d,e[7]=h):h=e[7],h}function m(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx(v,{children:i.jsx("div",{className:"flex flex-col h-full min-h-0",children:l})}),e[0]=l,e[1]=s):s=e[1],s}function $(t){const e=u.c(10);let l,s,o;e[0]!==t?({children:l,className:s,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o):(l=e[1],s=e[2],o=e[3]);let n;e[4]!==s?(n=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]=n):n=e[5];let r;return e[6]!==l||e[7]!==o||e[8]!==n?(r=i.jsx("div",{className:n,...o,children:l}),e[6]=l,e[7]=o,e[8]=n,e[9]=r):r=e[9],r}function C(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:l}),e[0]=l,e[1]=s):s=e[1],s}function z(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:l}),e[0]=l,e[1]=s):s=e[1],s}function R(){const t=u.c(13),e=j(),s=y().logo??L,o=typeof s=="string"?s:s.light,n=typeof s=="string"?s:s.dark;let r;t[0]!==e?(r=e("agentShellLayout.toolbar.logo"),t[0]=e,t[1]=r):r=t[1];let c;t[2]!==o||t[3]!==r?(c=i.jsx("img",{src:o,alt:r,className:"size-6 object-contain dark:hidden"}),t[2]=o,t[3]=r,t[4]=c):c=t[4];let a;t[5]!==e?(a=e("agentShellLayout.toolbar.logo"),t[5]=e,t[6]=a):a=t[6];let f;t[7]!==n||t[8]!==a?(f=i.jsx("img",{src:n,alt:a,className:"size-6 object-contain hidden dark:block"}),t[7]=n,t[8]=a,t[9]=f):f=t[9];let b;return t[10]!==c||t[11]!==f?(b=i.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=b):b=t[12],b}function E(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(g.Suspense,{fallback:i.jsx("span",{className:"shrink-0 size-6 mx-2"}),children:i.jsx(R,{})}),t[0]=e):e=t[0],e}function _(){const t=u.c(12),e=j();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},t[0]=l):l=t[0];const{org:s}=k(l);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let n;t[3]!==e?(n=e("agentShellLayout.toolbar.backToHome"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==e?(r=e("agentShellLayout.toolbar.backToHome"),t[5]=e,t[6]=r):r=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(E,{}),t[7]=c):c=t[7];let a;return t[8]!==o||t[9]!==n||t[10]!==r?(a=i.jsx(N,{to:"/$org",params:o,"aria-label":n,title:r,className:"flex items-center shrink-0 cursor-pointer pl-1",children:c}),t[8]=o,t[9]=n,t[10]=r,t[11]=a):a=t[11],a}function P(){const t=u.c(2),{setCenterEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=l):l=t[1],l}function w(t){const e=u.c(3),{children:l}=t,{centerEl:s}=x();if(!s)return null;let o;return e[0]!==s||e[1]!==l?(o=p.createPortal(l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function H(t){const e=u.c(5),{className:l}=t,{setTabsEl:s}=x();let o;e[0]!==l?(o=T("shrink-0 flex items-center",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function I(t){const e=u.c(3),{children:l}=t,{tabsEl:s}=x();if(!s)return null;let o;return e[0]!==l||e[1]!==s?(o=p.createPortal(l,s),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function D(t){const e=u.c(5),{className:l}=t,{setTogglesEl:s}=x();let o;e[0]!==l?(o=T("contents",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function O(){const t=u.c(2),{setRightEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=l):l=t[1],l}m.Provider=v;m.Header=$;m.LeftColumn=C;m.RightColumn=z;m.Logo=E;m.LogoLink=_;m.CenterSlot=P;m.Center=w;m.TabsSlot=H;m.Tabs=I;m.TogglesSlot=D;m.RightSlot=O;export{B as T,m as a};
1
+ import{c as u,n as T,j as i,r as g,b as j,f as k,aH as p,L as N,bz as y,c5 as L}from"./index-BWXyDl1J.js";function B(t){const e=u.c(14);let l,s,o,n,r;e[0]!==t?({active:l,className:s,ref:n,type:r,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o,e[4]=n,e[5]=r):(l=e[1],s=e[2],o=e[3],n=e[4],r=e[5]);const c=r===void 0?"button":r,a=l?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let f;e[6]!==s||e[7]!==a?(f=T("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",a,s),e[6]=s,e[7]=a,e[8]=f):f=e[8];let b;return e[9]!==o||e[10]!==n||e[11]!==f||e[12]!==c?(b=i.jsx("button",{ref:n,type:c,className:f,...o}),e[9]=o,e[10]=n,e[11]=f,e[12]=c,e[13]=b):b=e[13],b}const S=g.createContext(null);function x(){const t=g.use(S);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=u.c(8),{children:l}=t,[s,o]=g.useState(null),[n,r]=g.useState(null),[c,a]=g.useState(null),[f,b]=g.useState(null);let d;e[0]!==c||e[1]!==f||e[2]!==n||e[3]!==s?(d={togglesEl:s,setTogglesEl:o,tabsEl:n,setTabsEl:r,centerEl:c,setCenterEl:a,rightEl:f,setRightEl:b},e[0]=c,e[1]=f,e[2]=n,e[3]=s,e[4]=d):d=e[4];let h;return e[5]!==l||e[6]!==d?(h=i.jsx(S,{value:d,children:l}),e[5]=l,e[6]=d,e[7]=h):h=e[7],h}function m(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx(v,{children:i.jsx("div",{className:"flex flex-col h-full min-h-0",children:l})}),e[0]=l,e[1]=s):s=e[1],s}function $(t){const e=u.c(10);let l,s,o;e[0]!==t?({children:l,className:s,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o):(l=e[1],s=e[2],o=e[3]);let n;e[4]!==s?(n=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]=n):n=e[5];let r;return e[6]!==l||e[7]!==o||e[8]!==n?(r=i.jsx("div",{className:n,...o,children:l}),e[6]=l,e[7]=o,e[8]=n,e[9]=r):r=e[9],r}function C(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:l}),e[0]=l,e[1]=s):s=e[1],s}function z(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:l}),e[0]=l,e[1]=s):s=e[1],s}function R(){const t=u.c(13),e=j(),s=y().logo??L,o=typeof s=="string"?s:s.light,n=typeof s=="string"?s:s.dark;let r;t[0]!==e?(r=e("agentShellLayout.toolbar.logo"),t[0]=e,t[1]=r):r=t[1];let c;t[2]!==o||t[3]!==r?(c=i.jsx("img",{src:o,alt:r,className:"size-6 object-contain dark:hidden"}),t[2]=o,t[3]=r,t[4]=c):c=t[4];let a;t[5]!==e?(a=e("agentShellLayout.toolbar.logo"),t[5]=e,t[6]=a):a=t[6];let f;t[7]!==n||t[8]!==a?(f=i.jsx("img",{src:n,alt:a,className:"size-6 object-contain hidden dark:block"}),t[7]=n,t[8]=a,t[9]=f):f=t[9];let b;return t[10]!==c||t[11]!==f?(b=i.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=b):b=t[12],b}function E(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(g.Suspense,{fallback:i.jsx("span",{className:"shrink-0 size-6 mx-2"}),children:i.jsx(R,{})}),t[0]=e):e=t[0],e}function _(){const t=u.c(12),e=j();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},t[0]=l):l=t[0];const{org:s}=k(l);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let n;t[3]!==e?(n=e("agentShellLayout.toolbar.backToHome"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==e?(r=e("agentShellLayout.toolbar.backToHome"),t[5]=e,t[6]=r):r=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(E,{}),t[7]=c):c=t[7];let a;return t[8]!==o||t[9]!==n||t[10]!==r?(a=i.jsx(N,{to:"/$org",params:o,"aria-label":n,title:r,className:"flex items-center shrink-0 cursor-pointer pl-1",children:c}),t[8]=o,t[9]=n,t[10]=r,t[11]=a):a=t[11],a}function P(){const t=u.c(2),{setCenterEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=l):l=t[1],l}function w(t){const e=u.c(3),{children:l}=t,{centerEl:s}=x();if(!s)return null;let o;return e[0]!==s||e[1]!==l?(o=p.createPortal(l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function H(t){const e=u.c(5),{className:l}=t,{setTabsEl:s}=x();let o;e[0]!==l?(o=T("shrink-0 flex items-center",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function I(t){const e=u.c(3),{children:l}=t,{tabsEl:s}=x();if(!s)return null;let o;return e[0]!==l||e[1]!==s?(o=p.createPortal(l,s),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function D(t){const e=u.c(5),{className:l}=t,{setTogglesEl:s}=x();let o;e[0]!==l?(o=T("contents",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function O(){const t=u.c(2),{setRightEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=l):l=t[1],l}m.Provider=v;m.Header=$;m.LeftColumn=C;m.RightColumn=z;m.Logo=E;m.LogoLink=_;m.CenterSlot=P;m.Center=w;m.TabsSlot=H;m.Tabs=I;m.TogglesSlot=D;m.RightSlot=O;export{B as T,m as a};
@@ -1 +1 @@
1
- import{v as _,T as l}from"./index-BoZ9u4m1.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{v as _,T as l}from"./index-BWXyDl1J.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{ci as p,at as t,ap as v,an as a,d4 as q,ak as s,am as g,al as u,ar as h,au as x,cg as O,d5 as fe,d6 as be,d7 as B,d8 as j,d9 as ye,da as ve,db as $,dc as _e,dd as He,de as Me,df as ke,dg as Pe,dh as qe,di as Te,dj as Ie,cu as Ee,dk as Le,dl as ze,dm as Ae,dn as De,dp as Ue,dq as Ne,dr as Oe,cs as je,r as oe,c as V,j as y,ds as Be,dt as $e,q as Ve,x as Fe,n as se}from"./index-BoZ9u4m1.js";import{P as We}from"./use-mcp-client-Cl4PpqBq.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 Ke(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Je(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{ci as p,at as t,ap as v,an as a,d4 as q,ak as s,am as g,al as u,ar as h,au as x,cg as O,d5 as fe,d6 as be,d7 as B,d8 as j,d9 as ye,da as ve,db as $,dc as _e,dd as He,de as Me,df as ke,dg as Pe,dh as qe,di as Te,dj as Ie,cu as Ee,dk as Le,dl as ze,dm as Ae,dn as De,dp as Ue,dq as Ne,dr as Oe,cs as je,r as oe,c as V,j as y,ds as Be,dt as $e,q as Ve,x as Fe,n as se}from"./index-BWXyDl1J.js";import{P as We}from"./use-mcp-client-DHZ5WVmn.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 Ke(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Je(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,H as h,ac as R,K as m,o as y,z as S,aY as D}from"./index-BoZ9u4m1.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"]},K={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},w={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 x(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||x(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,K[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,w[s]??[],F))}return t}function H(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=h(),t=R();let n;o[0]!==e.id?(n=m.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}=h();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}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.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 Y(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 B(o){const e=p.c(11),{org:t}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.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{Y as a,E as b,F as c,N as d,O as e,$ as f,B as g,C as i,b as p,z as u};
1
+ import{c as p,H as h,ac as R,K as m,o as y,z as S,aY as D}from"./index-BWXyDl1J.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"]},K={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},w={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 x(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||x(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,K[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,w[s]??[],F))}return t}function H(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=h(),t=R();let n;o[0]!==e.id?(n=m.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}=h();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}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.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 Y(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 B(o){const e=p.c(11),{org:t}=h(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=m.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{Y as a,E as b,F as c,N as d,O as e,$ as f,B as g,C as i,b as p,z as u};
@@ -1 +1 @@
1
- import{c,H as d,p,e as I,K as g,o as E}from"./index-BoZ9u4m1.js";import{u as y}from"./use-mcp-client-Cl4PpqBq.js";import{S as m}from"./constants-dLUUoWH7.js";function f(e,t){if(e?.isError)throw new Error(e.content?.[0]?.text??t);if(!e.structuredContent)throw new Error(t);return e.structuredContent}function S(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n);let o;e[3]!==t.id?(o=g.apiKeysList(t.id),e[3]=t.id,e[4]=o):o=e[4];let s;e[5]!==r?(s=async()=>{const l=await r.callTool({name:"API_KEY_LIST",arguments:{}});return f(l,"Failed to list API keys").items},e[5]=r,e[6]=s):s=e[6];let i;return e[7]!==o||e[8]!==s?(i={queryKey:o,queryFn:s,staleTime:3e4},e[7]=o,e[8]=s,e[9]=i):i=e[9],E(i)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_CREATE",arguments:{name:u.name,permissions:u.permissions??{"*":["*"]}}});return f(a,"Failed to create API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}function _(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_DELETE",arguments:{keyId:u}});return f(a,"Failed to delete API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}export{S as a,_ as b,P as u};
1
+ import{c,H as d,p,e as I,K as g,o as E}from"./index-BWXyDl1J.js";import{u as y}from"./use-mcp-client-DHZ5WVmn.js";import{S as m}from"./constants-dLUUoWH7.js";function f(e,t){if(e?.isError)throw new Error(e.content?.[0]?.text??t);if(!e.structuredContent)throw new Error(t);return e.structuredContent}function S(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n);let o;e[3]!==t.id?(o=g.apiKeysList(t.id),e[3]=t.id,e[4]=o):o=e[4];let s;e[5]!==r?(s=async()=>{const l=await r.callTool({name:"API_KEY_LIST",arguments:{}});return f(l,"Failed to list API keys").items},e[5]=r,e[6]=s):s=e[6];let i;return e[7]!==o||e[8]!==s?(i={queryKey:o,queryFn:s,staleTime:3e4},e[7]=o,e[8]=s,e[9]=i):i=e[9],E(i)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_CREATE",arguments:{name:u.name,permissions:u.permissions??{"*":["*"]}}});return f(a,"Failed to create API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}function _(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:m,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=y(n),o=p();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_DELETE",arguments:{keyId:u}});return f(a,"Failed to delete API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==o?(i=()=>{o.invalidateQueries({queryKey:g.apiKeysList(t.id)})},e[5]=t.id,e[6]=o,e[7]=i):i=e[7];let l;return e[8]!==s||e[9]!==i?(l={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=l):l=e[10],I(l)}export{S as a,_ as b,P as u};
@@ -1 +1 @@
1
- import{c as U,H as q,ac as I,K as T,o as Q,p as x,e as y,t as m}from"./index-BoZ9u4m1.js";import{u as z}from"./use-mcp-client-Cl4PpqBq.js";import{S as H}from"./constants-dLUUoWH7.js";function J(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??H;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(J)},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 p;t[13]!==s?(p=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=p):p=t[14];let A;t[15]!==i||t[16]!==o?(A=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=A):A=t[17];let G;t[18]!==p||t[19]!==A?(G={mutationFn:p,onSuccess:A,onError:W},t[18]=p,t[19]=A,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:V},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 V(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 W(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,H as q,ac as I,K as T,o as Q,p as x,e as y,t as m}from"./index-BWXyDl1J.js";import{u as z}from"./use-mcp-client-DHZ5WVmn.js";import{S as H}from"./constants-dLUUoWH7.js";function J(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??H;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(J)},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 p;t[13]!==s?(p=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=p):p=t[14];let A;t[15]!==i||t[16]!==o?(A=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=A):A=t[17];let G;t[18]!==p||t[19]!==A?(G={mutationFn:p,onSuccess:A,onError:W},t[18]=p,t[19]=A,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:V},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 V(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 W(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-BoZ9u4m1.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-BWXyDl1J.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,H as C,cc as N,fe as O,cb as S}from"./index-BoZ9u4m1.js";import{u as I}from"./use-mcp-client-Cl4PpqBq.js";import{S as m}from"./constants-dLUUoWH7.js";function E(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 _(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 x(){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{_ as a,x as b,E as u};
1
+ import{c as f,H as C,cc as N,fe as O,cb as S}from"./index-BWXyDl1J.js";import{u as I}from"./use-mcp-client-DHZ5WVmn.js";import{S as m}from"./constants-dLUUoWH7.js";function E(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 _(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 x(){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{_ as a,x as b,E as u};
@@ -1 +1 @@
1
- import{c as i,r as n}from"./index-BoZ9u4m1.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-BWXyDl1J.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-BoZ9u4m1.js";import{b as p}from"./use-virtual-mcp-Df2Znans.js";import{c as f}from"./use-navigate-to-agent-D8r5y5p4.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 u=n,{navigateOnCreate:d}=u,c=d===void 0?!1:d,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-BWXyDl1J.js";import{b as p}from"./use-virtual-mcp-zkag_-cI.js";import{c as f}from"./use-navigate-to-agent-BWgdcI3Z.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 u=n,{navigateOnCreate:d}=u,c=d===void 0?!1:d,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-BoZ9u4m1.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-BWXyDl1J.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-BoZ9u4m1.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-BWXyDl1J.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-BoZ9u4m1.js";import{d as R,D as u}from"./decopilot-sse-pool-S5tux0kK.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-BWXyDl1J.js";import{d as R,D as u}from"./decopilot-sse-pool-CvmARxhG.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,H as se,p as ie,ac as ce,r as re,t as Y,c9 as ae,ca as de}from"./index-BoZ9u4m1.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-3i0jJzJ0.js";function ge(B){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=B,t=le(),k=s.mode==="deleting";let m;e[0]!==a?(m=W=>{W||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 w=s.mode==="deleting"&&s.connection.title;let o;e[8]!==w?(o=n.jsx("span",{className:"font-medium text-foreground",children:w}),e[8]=w,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 p;e[31]!==k||e[32]!==j||e[33]!==m?(p=n.jsx(ne,{open:k,onOpenChange:m,children:j}),e[31]=k,e[32]=j,e[33]=m,e[34]=p):p=e[34];const J=s.mode==="force-deleting";let N;e[35]!==a?(N=W=>{W||a()},e[35]=a,e[36]=N):N=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 M=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==M?(v=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[43]=M,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 P=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==P?(T=n.jsx("span",{className:"font-medium text-foreground",children:P}),e[47]=P,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 H;e[73]!==R||e[74]!==U?(H=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=H):H=e[75];let K;e[76]!==L||e[77]!==H?(K=n.jsxs(te,{children:[L,H]}),e[76]=L,e[77]=H,e[78]=K):K=e[78];let $;e[79]!==J||e[80]!==N||e[81]!==K?($=n.jsx(ne,{open:J,onOpenChange:N,children:K}),e[79]=J,e[80]=N,e[81]=K,e[82]=$):$=e[82];let Q;return e[83]!==p||e[84]!==$?(Q=n.jsxs(n.Fragment,{children:[p,$]}),e[83]=p,e[84]=$,e[85]=Q):Q=e[85],Q}function ue({onSuccess:B}={}){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"}})},k=o=>{ae(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===de&&l.queryKey[3]===o})},m=o=>{t(),k(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),B?.()};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,H as se,p as ie,ac as ce,r as re,t as Y,c9 as ae,ca as de}from"./index-BWXyDl1J.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-CDXDBEVz.js";function ge(B){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=B,t=le(),k=s.mode==="deleting";let m;e[0]!==a?(m=W=>{W||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 w=s.mode==="deleting"&&s.connection.title;let o;e[8]!==w?(o=n.jsx("span",{className:"font-medium text-foreground",children:w}),e[8]=w,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 p;e[31]!==k||e[32]!==j||e[33]!==m?(p=n.jsx(ne,{open:k,onOpenChange:m,children:j}),e[31]=k,e[32]=j,e[33]=m,e[34]=p):p=e[34];const J=s.mode==="force-deleting";let N;e[35]!==a?(N=W=>{W||a()},e[35]=a,e[36]=N):N=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 M=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==M?(v=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[43]=M,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 P=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==P?(T=n.jsx("span",{className:"font-medium text-foreground",children:P}),e[47]=P,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 H;e[73]!==R||e[74]!==U?(H=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=H):H=e[75];let K;e[76]!==L||e[77]!==H?(K=n.jsxs(te,{children:[L,H]}),e[76]=L,e[77]=H,e[78]=K):K=e[78];let $;e[79]!==J||e[80]!==N||e[81]!==K?($=n.jsx(ne,{open:J,onOpenChange:N,children:K}),e[79]=J,e[80]=N,e[81]=K,e[82]=$):$=e[82];let Q;return e[83]!==p||e[84]!==$?(Q=n.jsxs(n.Fragment,{children:[p,$]}),e[83]=p,e[84]=$,e[85]=Q):Q=e[85],Q}function ue({onSuccess:B}={}){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"}})},k=o=>{ae(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===de&&l.queryKey[3]===o})},m=o=>{t(),k(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),B?.()};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,o as m,K as c}from"./index-BoZ9u4m1.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,o as m,K as c}from"./index-BWXyDl1J.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 r,m as o}from"./index-BoZ9u4m1.js";const n={home:"/$org/home",agents:"/$org/agents/{-$project}/{-$panel}",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",orgIndex:"/$org/"};function c(){const e=r.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:s},e[0]=t):t=e[0],o(t)}function s(e){return e.matches.at(-1)?.fullPath??""}export{n as D,c as u};
1
+ import{c as r,m as o}from"./index-BWXyDl1J.js";const n={home:"/$org/home",agents:"/$org/agents/{-$project}/{-$panel}",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",orgIndex:"/$org/"};function c(){const e=r.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:s},e[0]=t):t=e[0],o(t)}function s(e){return e.matches.at(-1)?.fullPath??""}export{n as D,c as u};
@@ -1 +1 @@
1
- import{c as u,H as c,ac as r,K as a,o as y,z as F,p as C,e as d}from"./index-BoZ9u4m1.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,H as c,ac as r,K as a,o as y,z as F,p as C,e as d}from"./index-BWXyDl1J.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{bR as l,fg as d,fh as v,r as i}from"./index-BoZ9u4m1.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{bR as l,fg as d,fh as v,r as i}from"./index-BWXyDl1J.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,H as T,ac as A,c1 as _,K as I,o as v,p as J,b as Q,e as N,t as p}from"./index-BoZ9u4m1.js";function j(){const e=O.c(10),{org:u}=T(),d=A(),{capabilities:c,isPrivileged:f}=_(),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}=v(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=A(),f=J(),s=Q();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 E;e[22]!==q||e[23]!==R||e[24]!==g?(E={mutationFn:q,onSuccess:R,onError:g},e[22]=q,e[23]=R,e[24]=g,e[25]=E):E=e[25];const S=N(E);let m;return e[26]!==y||e[27]!==S?(m={approve:y,deny:S},e[26]=y,e[27]=S,e[28]=m):m=e[28],m}export{F as a,j as u};
1
+ import{c as O,H as T,ac as A,c1 as _,K as I,o as v,p as J,b as Q,e as N,t as p}from"./index-BWXyDl1J.js";function j(){const e=O.c(10),{org:u}=T(),d=A(),{capabilities:c,isPrivileged:f}=_(),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}=v(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=A(),f=J(),s=Q();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 E;e[22]!==q||e[23]!==R||e[24]!==g?(E={mutationFn:q,onSuccess:R,onError:g},e[22]=q,e[23]=R,e[24]=g,e[25]=E):E=e[25];const S=N(E);let m;return e[26]!==y||e[27]!==S?(m={approve:y,deny:S},e[26]=y,e[27]=S,e[28]=m):m=e[28],m}export{F as a,j as u};
@@ -1 +1 @@
1
- import{c as I,b as k,D as N,bb as S,j as o,ab as g,a8 as v,a9 as b,aa as $,H as A,K as H,z as L}from"./index-BoZ9u4m1.js";import{B as T}from"./badge-CAWKSDnJ.js";import{g as P}from"./types-BMYq-irZ.js";import{s as _}from"./Eye-C1diZla3.js";import{s as U,aP as w}from"./agent-icon-DwW--uUY.js";import{i as O}from"./mcp-oauth-1M77jlWl.js";const R=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:_,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 D(y){const e=I.c(22),{annotations:c,_meta:r}=y,t=k();let l;e[0]!==r?(l=P(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(T,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(b,{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(T,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(b,{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 F(y){const e=I.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=L,l=H.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{D as T,F as u};
1
+ import{c as I,b as k,D as N,bb as S,j as o,ab as g,a8 as v,a9 as b,aa as $,H as A,K as H,z as L}from"./index-BWXyDl1J.js";import{B as T}from"./badge-BCfyeFAT.js";import{g as P}from"./types-D8IG_8eU.js";import{s as _}from"./Eye-Bf1344cz.js";import{s as U,aP as w}from"./agent-icon-LbhnjHwi.js";import{i as O}from"./mcp-oauth-fsNn1czb.js";const R=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:_,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 D(y){const e=I.c(22),{annotations:c,_meta:r}=y,t=k();let l;e[0]!==r?(l=P(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(T,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(b,{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(T,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(b,{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 F(y){const e=I.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=L,l=H.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{D as T,F as u};