decocms 4.243.0 → 4.243.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/client/assets/{AlertCircle-BrgoLEQ0.js → AlertCircle-DUlfht_8.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BDc6ixlR.js → AreaChart-Cb6V67gW.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CDofidAY.js → ArrowLeft-xr5VbHB2.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-0JXWlMPw.js → ArrowUp-CsCHH_fH.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-Rz1YqMGK.js → ArrowUpRight-M9WAVHfb.js} +1 -1
  6. package/dist/client/assets/{Check-B3WXWYSz.js → Check-BXav60Vy.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CWxxQPXv.js → CheckCircle-C2PmPe-o.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-B14qTkyv.js → ChevronDown-CauLatdX.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-Aaat-zPl.js → ChevronRight-BGcGReEM.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-3I23HxSc.js → ChevronSelectorVertical-CvdZht1v.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-IZz2eGQ-.js → ChevronUp-D_tIdiJb.js} +1 -1
  12. package/dist/client/assets/{Copy01-sqwxFb53.js → Copy01-CV1JugLX.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DbuX0MzE.js → CreditCard01-B_w5eexh.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-B_d1BqGN.js → DotsVertical-fn24sGZC.js} +1 -1
  15. package/dist/client/assets/{Download01-8o7f8ha3.js → Download01-D3eJDAEO.js} +1 -1
  16. package/dist/client/assets/{Eye-B2eaOo-B.js → Eye-BhHZY2CZ.js} +1 -1
  17. package/dist/client/assets/{FilterLines-BhNBwBEx.js → FilterLines-BWjLIxVc.js} +1 -1
  18. package/dist/client/assets/{Globe01-Dzsrjekj.js → Globe01-DdUoMsv3.js} +1 -1
  19. package/dist/client/assets/{Globe04-DGlluzNX.js → Globe04-B-w3WEq9.js} +1 -1
  20. package/dist/client/assets/{HardDrive-Br7GP1Y0.js → HardDrive-BFP4nRun.js} +1 -1
  21. package/dist/client/assets/{Key01-BQwobAw2.js → Key01-Cfe0Tudx.js} +1 -1
  22. package/dist/client/assets/{LayoutLeft-C5bEG-Yu.js → LayoutLeft-BEpfII_o.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-DL7sD62z.js → LinkExternal01-D25gdGqj.js} +1 -1
  24. package/dist/client/assets/{LockUnlocked01-5khio-0j.js → LockUnlocked01-P_wfDROK.js} +1 -1
  25. package/dist/client/assets/{LogOut01-B84tbGgl.js → LogOut01-DBKmS50y.js} +1 -1
  26. package/dist/client/assets/{Monitor01-BDodWDfh.js → Monitor01-BhLjoS2b.js} +1 -1
  27. package/dist/client/assets/{Palette-CqQ0uw84.js → Palette-aeV8tQ28.js} +1 -1
  28. package/dist/client/assets/{Play-BmbGeXli.js → Play-BdOAMmIp.js} +1 -1
  29. package/dist/client/assets/{Plus-ANFCmNBC.js → Plus-D1J2FK4h.js} +1 -1
  30. package/dist/client/assets/{SearchLg-Bhod71Pp.js → SearchLg-BzCLzG8R.js} +1 -1
  31. package/dist/client/assets/{SearchMd-DaUX4bqr.js → SearchMd-xpLLk_pA.js} +1 -1
  32. package/dist/client/assets/{Settings02-BR1pfUoq.js → Settings02-DjFkLPe4.js} +1 -1
  33. package/dist/client/assets/{Share07-DMD6arE7.js → Share07-Caa0Im56.js} +1 -1
  34. package/dist/client/assets/{Shield01-CE38_tJy.js → Shield01-D5NbAsUv.js} +1 -1
  35. package/dist/client/assets/{Stars01-BeJY7M9x.js → Stars01-CCBcRCds.js} +1 -1
  36. package/dist/client/assets/{Stars02-BxQmMBsd.js → Stars02-DtoiSIcu.js} +1 -1
  37. package/dist/client/assets/{Sun-bQIMS-df.js → Sun-Dpvmek-4.js} +1 -1
  38. package/dist/client/assets/{SwitchHorizontal01-CQeaa4s0.js → SwitchHorizontal01-C5wQU73g.js} +1 -1
  39. package/dist/client/assets/{Tool01-3U4lZ0ql.js → Tool01-XzYGP86W.js} +1 -1
  40. package/dist/client/assets/{Tool02-WLcNYFEm.js → Tool02-CE2ZdUr1.js} +1 -1
  41. package/dist/client/assets/{Trash01-D1tBKt57.js → Trash01-BnQQflAa.js} +1 -1
  42. package/dist/client/assets/{TrendUp01-BdJ3w75n.js → TrendUp01-BdIQtpYk.js} +1 -1
  43. package/dist/client/assets/{Upload01-B89gb6cs.js → Upload01-Bhqh3Tbq.js} +1 -1
  44. package/dist/client/assets/{User01-BkUay2ek.js → User01-C1NHQ-ZR.js} +1 -1
  45. package/dist/client/assets/{Users01-BA4DPXUj.js → Users01-CMhcYnus.js} +1 -1
  46. package/dist/client/assets/{Users03-CrEwye6I.js → Users03-BNksnLQf.js} +1 -1
  47. package/dist/client/assets/{X-Bn5dnt4Y.js → X-DY9FeXqi.js} +1 -1
  48. package/dist/client/assets/{XCircle-BWEvFrPt.js → XCircle-_aQH9vJz.js} +1 -1
  49. package/dist/client/assets/{XClose-Dxm1AFZT.js → XClose-DdNRdfWH.js} +1 -1
  50. package/dist/client/assets/{YAxis-BfjjKnsh.js → YAxis-DLOWdC_A.js} +1 -1
  51. package/dist/client/assets/{Zap-BRrVrhlx.js → Zap-DDihnv3P.js} +1 -1
  52. package/dist/client/assets/{ZapSquare-BoJs5BxD.js → ZapSquare-Bv6t7Fg1.js} +1 -1
  53. package/dist/client/assets/{access-gate-Cs3BTnxj.js → access-gate-wLBW4P-Z.js} +1 -1
  54. package/dist/client/assets/{agent-icon-DBTWnOQq.js → agent-icon-5ZYno8Im.js} +1 -1
  55. package/dist/client/assets/{agents-list-BpgA3ynY.js → agents-list-7wqeXOXn.js} +1 -1
  56. package/dist/client/assets/{ai-providers-xyC85E3V.js → ai-providers-BJDhlXiK.js} +1 -1
  57. package/dist/client/assets/{alert-rptVdkhI.js → alert-B6Fmol8n.js} +1 -1
  58. package/dist/client/assets/{alert-dialog-vU3RDB6N.js → alert-dialog-BOUVk-xM.js} +1 -1
  59. package/dist/client/assets/{api-keys-CB-b9U1V.js → api-keys-DGMyGe_V.js} +1 -1
  60. package/dist/client/assets/{app-editor-BiIlX8jr.js → app-editor-BQTeUJlT.js} +1 -1
  61. package/dist/client/assets/{auth-DF9dNCmv.js → auth-Clf3KXjv.js} +1 -1
  62. package/dist/client/assets/{auth-catchall-duUIz-Ep.js → auth-catchall-CPPqDGgA.js} +1 -1
  63. package/dist/client/assets/{auth-entry-D42MbHN4.js → auth-entry-PFcfNCN7.js} +1 -1
  64. package/dist/client/assets/{auth-split-layout-D_bUTQUp.js → auth-split-layout-5_o-m_dm.js} +1 -1
  65. package/dist/client/assets/{authenticate-and-persist-oauth-BvJ__4OQ.js → authenticate-and-persist-oauth-BUQ1Xi6C.js} +1 -1
  66. package/dist/client/assets/{automation-list-row-CWPbfvGY.js → automation-list-row-DRZedCha.js} +1 -1
  67. package/dist/client/assets/{automation-runs-CodtZRH7.js → automation-runs-DaNWyAAB.js} +1 -1
  68. package/dist/client/assets/{automations-BTel9p1a.js → automations-BBd2nZBY.js} +1 -1
  69. package/dist/client/assets/{avatar-CJo_O7ud.js → avatar-CsESGb5P.js} +1 -1
  70. package/dist/client/assets/{badge-DVdFuH3v.js → badge-BtBZ1HPJ.js} +1 -1
  71. package/dist/client/assets/{billing-Bl-NIc7d.js → billing-Bgr3WIC0.js} +1 -1
  72. package/dist/client/assets/{block-document-6bFPsXgq.js → block-document-BKnVO5ZG.js} +1 -1
  73. package/dist/client/assets/{buckets-BsR3AeUh.js → buckets-Cg0MlwAj.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-DqtOxYn3.js → bulk-category-panel-BHhnBX-y.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-COB0oCD2.js → capability-load-error-BasK1UyG.js} +1 -1
  76. package/dist/client/assets/{card-CtLNe5Qx.js → card-CKXxuGX6.js} +1 -1
  77. package/dist/client/assets/{cards-D3JgaUCj.js → cards-BIJ-5lG1.js} +1 -1
  78. package/dist/client/assets/{category-editor-C1d1MiGz.js → category-editor-BInGd-ra.js} +1 -1
  79. package/dist/client/assets/{chart-C4uJp2sq.js → chart-CkOpSzxv.js} +1 -1
  80. package/dist/client/assets/{chat-context-B5XcYK7Q.js → chat-context-DAVuFXb-.js} +1 -1
  81. package/dist/client/assets/{checkbox-RaVG15-H.js → checkbox-BmMgY8o7.js} +1 -1
  82. package/dist/client/assets/{choose-editor-BC67Qw28.js → choose-editor-BGZ5cx6T.js} +1 -1
  83. package/dist/client/assets/{cli-auth-success-uKwawqrq.js → cli-auth-success-CRaZ-XOY.js} +1 -1
  84. package/dist/client/assets/{collection-detail-BEVwITBz.js → collection-detail-CjMlAcj7.js} +1 -1
  85. package/dist/client/assets/{collection-display-button-jdQAMsZr.js → collection-display-button-C5Ypy8cN.js} +1 -1
  86. package/dist/client/assets/{collection-search-CkxMY4PG.js → collection-search-Dc8oos2w.js} +1 -1
  87. package/dist/client/assets/{collection-table-wrapper-CGDwgnLT.js → collection-table-wrapper-BqCUWVdp.js} +1 -1
  88. package/dist/client/assets/{collection-tabs-C7isr8pg.js → collection-tabs-DQs6Id7F.js} +1 -1
  89. package/dist/client/assets/{command-BiOiOU66.js → command-CckioSee.js} +1 -1
  90. package/dist/client/assets/{commerce-onboarding-ByyCjjtX.js → commerce-onboarding-D33mAwVV.js} +1 -1
  91. package/dist/client/assets/{connect-CC_EzxyT.js → connect-B2Kdp8ut.js} +1 -1
  92. package/dist/client/assets/{connection-BaA6OCzM.js → connection-DawcOkII.js} +1 -1
  93. package/dist/client/assets/{connection-card-BPiCJvzC.js → connection-card-JINQJoK5.js} +1 -1
  94. package/dist/client/assets/{connection-detail-C2biE7AV.js → connection-detail-Db3nTX8u.js} +1 -1
  95. package/dist/client/assets/{connection-form-helpers-CsaqSN7W.js → connection-form-helpers-Shqj1MAl.js} +1 -1
  96. package/dist/client/assets/{connections-DUWMVqiD.js → connections-BcEtHf8S.js} +1 -1
  97. package/dist/client/assets/{decopilot-sse-pool--ck4nwtj.js → decopilot-sse-pool-DLTV1od0.js} +1 -1
  98. package/dist/client/assets/{dialog-BS0vrn2L.js → dialog-U03ZiuXk.js} +1 -1
  99. package/dist/client/assets/{domain-settings-n6fz7Pyw.js → domain-settings-CDI7Fjmq.js} +1 -1
  100. package/dist/client/assets/{drawer-BaCYYHlG.js → drawer-qjynKTFN.js} +1 -1
  101. package/dist/client/assets/{dropdown-menu-BOPvnnQd.js → dropdown-menu-BmoCpvnT.js} +1 -1
  102. package/dist/client/assets/{empty-state-D2koIBhr.js → empty-state-PrJglZio.js} +1 -1
  103. package/dist/client/assets/{extract-connection-data-BBeYQYw-.js → extract-connection-data-GB3welMi.js} +1 -1
  104. package/dist/client/assets/{file-explorer-DYm4oS7Z.js → file-explorer-BUj_Z3iJ.js} +1 -1
  105. package/dist/client/assets/{file-type-icon-B0DZabiD.js → file-type-icon-DNO6EG6W.js} +1 -1
  106. package/dist/client/assets/{form-DMJ-qg4h.js → form-BlkhuHf9.js} +1 -1
  107. package/dist/client/assets/{general-CV9n7mfY.js → general-BSW7_Voe.js} +1 -1
  108. package/dist/client/assets/{github-repo-picker-oxcrEhk7.js → github-repo-picker-D56QHlTy.js} +1 -1
  109. package/dist/client/assets/{hooks-CybMa7sq.js → hooks-B2woSXLe.js} +1 -1
  110. package/dist/client/assets/{index-D09jjQ2g.js → index-AXIuo6hf.js} +1 -1
  111. package/dist/client/assets/{index-CLFms9Kb.js → index-CToZ4kbL.js} +1 -1
  112. package/dist/client/assets/{index-DM-TT-A-.js → index-CY3hVAON.js} +1 -1
  113. package/dist/client/assets/{index-sCu4mSVJ.js → index-Chdg8Asw.js} +1 -1
  114. package/dist/client/assets/{index-zg41rH3q.js → index-D-cW_7z2.js} +1 -1
  115. package/dist/client/assets/{index-C3mx3_21.js → index-D5A_cbaj.js} +1 -1
  116. package/dist/client/assets/{index-ChNbonqj.js → index-DLyxjIYw.js} +3 -3
  117. package/dist/client/assets/{index-D7IC2bc9.js → index-Djodm3GI.js} +1 -1
  118. package/dist/client/assets/{index-CkrEasD3.js → index-DlSq7kji.js} +1 -1
  119. package/dist/client/assets/{index-SxNf16kQ.js → index-j097lZOT.js} +6 -6
  120. package/dist/client/assets/{index-redirect-g8c3YIPq.js → index-redirect-C__5RhjR.js} +1 -1
  121. package/dist/client/assets/{infra-billing-D2DzSfz8.js → infra-billing-CI8pxTWO.js} +1 -1
  122. package/dist/client/assets/{input-C7yzxoyt.js → input-BH7zyD0i.js} +1 -1
  123. package/dist/client/assets/{integration-icon-D-qP5ZLw.js → integration-icon-BolSFCMJ.js} +1 -1
  124. package/dist/client/assets/{invite-member-dialog-xxza5ifo.js → invite-member-dialog-Cfb_Sthq.js} +1 -1
  125. package/dist/client/assets/{label-BUQxzK6e.js → label-Cwuc9phK.js} +1 -1
  126. package/dist/client/assets/{layout-DwiEl33n.js → layout-BEPQVUxl.js} +1 -1
  127. package/dist/client/assets/{login-C2wbAOet.js → login-C2AFfDb-.js} +1 -1
  128. package/dist/client/assets/{mcp-oauth-gwq9pHSc.js → mcp-oauth-BmzTS1ua.js} +1 -1
  129. package/dist/client/assets/{members-CKVCFP8J.js → members-D7MXmyE1.js} +1 -1
  130. package/dist/client/assets/{monaco-editor-CN0WiJ4m.js → monaco-editor-DBmhJ8Ys.js} +1 -1
  131. package/dist/client/assets/{monitoring-stats-row-hXHH_Qzm.js → monitoring-stats-row-DfEDCsLl.js} +1 -1
  132. package/dist/client/assets/{multi-select-DTBcmDmv.js → multi-select-C2Dia25c.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-YpbbWUYc.js → oauth-callback-D_WAqpRo.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-Bf8e53OZ.js → oauth-callback-ai-provider-BhA1cp1j.js} +1 -1
  135. package/dist/client/assets/{onboarding-BL9qfKT1.js → onboarding-uuvWd04L.js} +1 -1
  136. package/dist/client/assets/{org-layout-B4BHpF4S.js → org-layout-D-9MtDux.js} +1 -1
  137. package/dist/client/assets/{organization-choice-vJ48X6tx.js → organization-choice-YKPoOAc0.js} +1 -1
  138. package/dist/client/assets/{orgs-CCMlat2A.js → orgs-DgzYCdTa.js} +1 -1
  139. package/dist/client/assets/{page-seo-form-f-hVr85G.js → page-seo-form-GRyqYD3q.js} +1 -1
  140. package/dist/client/assets/{popover-CUB5B6Fg.js → popover-9hL99Gs4.js} +1 -1
  141. package/dist/client/assets/{post-editor-D06ApXAF.js → post-editor-B2P499Gv.js} +1 -1
  142. package/dist/client/assets/{primitives-BgxLdlTf.js → primitives-5VVvVXDP.js} +1 -1
  143. package/dist/client/assets/{profile-BSAPfGMQ.js → profile-CyKGXLmf.js} +1 -1
  144. package/dist/client/assets/{project-app-view-gqdvdVzv.js → project-app-view-kVyS_ky4.js} +1 -1
  145. package/dist/client/assets/record-editor-DHsX7f85.js +1 -0
  146. package/dist/client/assets/{redirect-editor-DH3YRmju.js → redirect-editor-wh6KUQar.js} +1 -1
  147. package/dist/client/assets/registry-BCU9YbQl.js +2 -0
  148. package/dist/client/assets/{registry-layout-BysSARbI.js → registry-layout-BqclQM58.js} +1 -1
  149. package/dist/client/assets/{reports-7dxPaRv0.js → reports-ezYEoj8-.js} +1 -1
  150. package/dist/client/assets/{require-capability-Brg3b3WC.js → require-capability-daZd2Avq.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-3kqwvomq.js → required-auth-layout-tPpYmfR1.js} +1 -1
  152. package/dist/client/assets/{reset-password-CXRdZjRI.js → reset-password-B_cu2DBW.js} +1 -1
  153. package/dist/client/assets/{roles-Dq7uN6ct.js → roles-CnMuEzXy.js} +1 -1
  154. package/dist/client/assets/{search-input-DrjuWiKa.js → search-input-Dlrgn3SA.js} +1 -1
  155. package/dist/client/assets/{secrets-BNY_fQqn.js → secrets-DHhUnvN3.js} +1 -1
  156. package/dist/client/assets/{sections-editor-CevgmZWu.js → sections-editor-D2V-U5oa.js} +1 -1
  157. package/dist/client/assets/{select-BoWvSZwe.js → select-BhNhFGIm.js} +1 -1
  158. package/dist/client/assets/{select-model-BRL3AkBY.js → select-model-BbkxZygk.js} +1 -1
  159. package/dist/client/assets/{self-tool-result-CjNsVq8n.js → self-tool-result-Bjns9v-D.js} +1 -1
  160. package/dist/client/assets/{seo-editor-UAGnCXyh.js → seo-editor-_sQ6ViyP.js} +1 -1
  161. package/dist/client/assets/{settings-layout-DFc4BtIO.js → settings-layout-CihM6Z5f.js} +1 -1
  162. package/dist/client/assets/{settings-section-DhQpgpfA.js → settings-section-BIT7uWjs.js} +1 -1
  163. package/dist/client/assets/{settings-subnav-DQDlSCqd.js → settings-subnav-DobJGu7Z.js} +1 -1
  164. package/dist/client/assets/{shell-controls-DCOUB95S.js → shell-controls-BOR8V5VI.js} +1 -1
  165. package/dist/client/assets/{shell-layout-CtVK6QP7.js → shell-layout-Dpz4gldn.js} +1 -1
  166. package/dist/client/assets/{sidebar-C1S8e866.js → sidebar-_myHCEzH.js} +1 -1
  167. package/dist/client/assets/{skeleton-D5WFiATz.js → skeleton-CfDgtd5M.js} +1 -1
  168. package/dist/client/assets/{spinner-CpJFHR4J.js → spinner-CgvhsPnS.js} +1 -1
  169. package/dist/client/assets/{sso-t4sP4P0n.js → sso-CzK_Pk8F.js} +1 -1
  170. package/dist/client/assets/{store-C_XBJ-i7.js → store-Cu4INizs.js} +1 -1
  171. package/dist/client/assets/store-registry-OC_7xuUK.js +2 -0
  172. package/dist/client/assets/{studio-tools-9YEAucUH.js → studio-tools-ThQ_rcsF.js} +1 -1
  173. package/dist/client/assets/{switch-BJLPF8PK.js → switch-BCRtcgA0.js} +1 -1
  174. package/dist/client/assets/{synced-repos-CgQ_cGAZ.js → synced-repos-DkuvF9QR.js} +1 -1
  175. package/dist/client/assets/{tab-id-BEc2tty8.js → tab-id-DM8k_HA-.js} +1 -1
  176. package/dist/client/assets/{table-D02muAc_.js → table-C5eCsrvC.js} +1 -1
  177. package/dist/client/assets/{tabs-CGqVCYyt.js → tabs-D-zNditx.js} +1 -1
  178. package/dist/client/assets/{tasks-BjHKZPZu.js → tasks-CwCxAFhU.js} +1 -1
  179. package/dist/client/assets/{textarea-DjlJ6d8C.js → textarea-BfUIS--d.js} +1 -1
  180. package/dist/client/assets/{toggle-group-BqIMvBlD.js → toggle-group-DvojD61A.js} +1 -1
  181. package/dist/client/assets/{toolbar-C0xZ_v3e.js → toolbar-C6N7bX1O.js} +1 -1
  182. package/dist/client/assets/{tooltip-Cj4mvkkR.js → tooltip-B-y9isox.js} +1 -1
  183. package/dist/client/assets/{track-CqU3IgFZ.js → track-Bwp-FwAP.js} +1 -1
  184. package/dist/client/assets/{types-CAX3bqHp.js → types-D6tOWfuo.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-B9kWiPxx.js → use-ai-providers-Bb772HOL.js} +1 -1
  186. package/dist/client/assets/{use-api-keys-DSfqRc6H.js → use-api-keys-CX7vmPa_.js} +1 -1
  187. package/dist/client/assets/{use-automations-CfL33HY2.js → use-automations-DyLBCDVI.js} +1 -1
  188. package/dist/client/assets/{use-autosave-Bpyt1Z28.js → use-autosave-DnhwLkb4.js} +1 -1
  189. package/dist/client/assets/{use-capability-DwzdlNfB.js → use-capability-DxO7qy1z.js} +1 -1
  190. package/dist/client/assets/{use-clock-tick-A4kYSp_I.js → use-clock-tick-DS1Jl_N9.js} +1 -1
  191. package/dist/client/assets/{use-commerce-diagnostic-Cwbtii-G.js → use-commerce-diagnostic-DtF4_mte.js} +1 -1
  192. package/dist/client/assets/{use-connection-DUGNH57G.js → use-connection-DmmNo1LM.js} +1 -1
  193. package/dist/client/assets/{use-copy-_y6zwPE1.js → use-copy-CSIcq8z_.js} +1 -1
  194. package/dist/client/assets/{use-create-virtual-mcp-BV6lMF9Y.js → use-create-virtual-mcp-CR_IUdwo.js} +1 -1
  195. package/dist/client/assets/{use-debounced-autosave-DTYR1u_f.js → use-debounced-autosave-DjJh5yYH.js} +1 -1
  196. package/dist/client/assets/{use-debounced-value-Bo9IMGku.js → use-debounced-value-19BtC7Bb.js} +1 -1
  197. package/dist/client/assets/{use-decopilot-events-yNhzbNrQ.js → use-decopilot-events-Bb_7qSC-.js} +1 -1
  198. package/dist/client/assets/{use-delete-connection-C8vffg6C.js → use-delete-connection-keAeE1I9.js} +1 -1
  199. package/dist/client/assets/{use-deployment-admin-D8c8yTiB.js → use-deployment-admin-GvqoWv58.js} +1 -1
  200. package/dist/client/assets/{use-file-configs-ASBON7-j.js → use-file-configs-IFt3zoqI.js} +1 -1
  201. package/dist/client/assets/{use-infinite-scroll-IZ_BZ9sF.js → use-infinite-scroll-C1T3wjaO.js} +1 -1
  202. package/dist/client/assets/{use-join-requests-ColY4XtI.js → use-join-requests-BeMEoip1.js} +1 -1
  203. package/dist/client/assets/{use-mcp-client-DGiEqhWW.js → use-mcp-client-_o9o88xf.js} +1 -1
  204. package/dist/client/assets/{use-mcp-tools-BiU5POb9.js → use-mcp-tools-CRMPw5o_.js} +1 -1
  205. package/dist/client/assets/{use-members-pOIdSM2x.js → use-members-BeAeYksa.js} +1 -1
  206. package/dist/client/assets/{use-mobile-Caz6aOTC.js → use-mobile-H1cEPaVS.js} +1 -1
  207. package/dist/client/assets/{use-navigate-to-agent-xz8e6g3j.js → use-navigate-to-agent-BqMCqmam.js} +1 -1
  208. package/dist/client/assets/{use-open-billing-url-D_P6BXEt.js → use-open-billing-url-BWzY_VeB.js} +1 -1
  209. package/dist/client/assets/{use-org-auth-client-BlmJUHTc.js → use-org-auth-client-A_fhg4VK.js} +1 -1
  210. package/dist/client/assets/{use-org-repo-syncs-efo6UZtd.js → use-org-repo-syncs-DboNdEwi.js} +1 -1
  211. package/dist/client/assets/{use-org-sso-DJp-v4Zx.js → use-org-sso-D-BEPABI.js} +1 -1
  212. package/dist/client/assets/{use-organization-roles-Dvr4kP4J.js → use-organization-roles-ABd_zIJY.js} +1 -1
  213. package/dist/client/assets/{use-organization-settings-Wtwifcf8.js → use-organization-settings-DPRJ0ATL.js} +1 -1
  214. package/dist/client/assets/{use-registry-connections-D-AvB9Bj.js → use-registry-connections-Y17SLNHX.js} +1 -1
  215. package/dist/client/assets/{use-secrets-CMqfk8sk.js → use-secrets-DH31aTTe.js} +1 -1
  216. package/dist/client/assets/{use-section-preview-base-D2SU5xAy.js → use-section-preview-base-Csrv-VqV.js} +1 -1
  217. package/dist/client/assets/{use-settings-tabs-D7UnYZYf.js → use-settings-tabs-CGwARRFk.js} +1 -1
  218. package/dist/client/assets/{use-status-sounds-DGVtZMR4.js → use-status-sounds-BeFWP6sc.js} +1 -1
  219. package/dist/client/assets/{use-tags-C8enWop_.js → use-tags-BkefASeN.js} +1 -1
  220. package/dist/client/assets/{use-view-mode-C7l3j_az.js → use-view-mode-BLj18CVK.js} +1 -1
  221. package/dist/client/assets/{use-virtual-mcp-3E0X8Qho.js → use-virtual-mcp-B0LtGhD8.js} +1 -1
  222. package/dist/client/assets/useInfiniteQuery-BTBdPVyZ.js +1 -0
  223. package/dist/client/assets/{useRouterState-Cf6ilWg1.js → useRouterState-um8-mtPt.js} +1 -1
  224. package/dist/client/assets/useSuspenseInfiniteQuery-C3uzz_IX.js +1 -0
  225. package/dist/client/assets/{users-C7a-yzcW.js → users-CWvqMFcP.js} +1 -1
  226. package/dist/client/assets/{variant-calendar-C9V9V-xS.js → variant-calendar-B1xj6WY-.js} +1 -1
  227. package/dist/client/assets/{view-mode-toggle-CzB7A8mV.js → view-mode-toggle-B1CxI2v1.js} +1 -1
  228. package/dist/client/index.html +1 -1
  229. package/dist/server/cli.js +2 -2
  230. package/dist/server/server.js +2 -2
  231. package/package.json +1 -1
  232. package/dist/client/assets/record-editor-DMIY9fHf.js +0 -1
  233. package/dist/client/assets/registry-60JJaFGK.js +0 -2
  234. package/dist/client/assets/store-registry-CQMoiJZP.js +0 -2
  235. package/dist/client/assets/useInfiniteQuery-DMuMqK5u.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-BypMBt7A.js +0 -1
@@ -1 +1 @@
1
- import{r as c,j as i,aG as C,aK as y,aJ as I,aM as T,bH as M,bG as H,aI as z,c as A,m as g}from"./index-ChNbonqj.js";var m="Switch",[U]=z(m),[q,G]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=G(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function F(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{F as S};
1
+ import{r as c,j as i,aG as C,aK as y,aJ as I,aM as T,bH as M,bG as H,aI as z,c as A,m as g}from"./index-DLyxjIYw.js";var m="Switch",[U]=z(m),[q,G]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:T(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=G(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function F(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{F as S};
@@ -1 +1 @@
1
- import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-ChNbonqj.js";import{s as xe}from"./Plus-ANFCmNBC.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-vU3RDB6N.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-BS0vrn2L.js";import{I as Ee}from"./input-C7yzxoyt.js";import{S as Ie}from"./skeleton-D5WFiATz.js";import{P as ue}from"./index-zg41rH3q.js";import{c as $e}from"./settings-section-DhQpgpfA.js";import{G as he,a as Fe}from"./github-repo-picker-oxcrEhk7.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-efo6UZtd.js";import{t as Ge}from"./cards-D3JgaUCj.js";import{S as qe}from"./settings-subnav-DQDlSCqd.js";import{R as Le}from"./require-capability-Brg3b3WC.js";import"./X-Bn5dnt4Y.js";import"./sidebar-C1S8e866.js";import"./LayoutLeft-C5bEG-Yu.js";import"./use-mobile-Caz6aOTC.js";import"./tooltip-Cj4mvkkR.js";import"./card-CtLNe5Qx.js";import"./ArrowUpRight-Rz1YqMGK.js";import"./collection-search-CkxMY4PG.js";import"./SearchMd-DaUX4bqr.js";import"./use-debounced-value-Bo9IMGku.js";import"./use-connection-DUGNH57G.js";import"./use-mcp-client-DGiEqhWW.js";import"./auth-DF9dNCmv.js";import"./authenticate-and-persist-oauth-BvJ__4OQ.js";import"./mcp-oauth-gwq9pHSc.js";import"./ArrowLeft-CDofidAY.js";import"./LinkExternal01-DL7sD62z.js";import"./LockUnlocked01-5khio-0j.js";import"./use-mcp-tools-BiU5POb9.js";import"./extract-connection-data-BBeYQYw-.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-xz8e6g3j.js";import"./use-virtual-mcp-3E0X8Qho.js";import"./hooks-CybMa7sq.js";import"./decopilot-sse-pool--ck4nwtj.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./studio-tools-9YEAucUH.js";import"./DotsVertical-B_d1BqGN.js";import"./Download01-8o7f8ha3.js";import"./Share07-DMD6arE7.js";import"./Globe01-Dzsrjekj.js";import"./Key01-BQwobAw2.js";import"./Palette-CqQ0uw84.js";import"./Trash01-D1tBKt57.js";import"./Zap-BRrVrhlx.js";import"./dropdown-menu-BOPvnnQd.js";import"./Check-B3WXWYSz.js";import"./ChevronRight-Aaat-zPl.js";import"./file-type-icon-B0DZabiD.js";import"./Eye-B2eaOo-B.js";import"./useRouterState-Cf6ilWg1.js";import"./use-settings-tabs-D7UnYZYf.js";import"./use-capability-DwzdlNfB.js";import"./access-gate-Cs3BTnxj.js";import"./capability-load-error-COB0oCD2.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function is(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{is as default};
1
+ import{c as te,j as s,b as ge,r as ce,B as ee,m as je,t as ae}from"./index-DLyxjIYw.js";import{s as xe}from"./Plus-D1J2FK4h.js";import{c as be,d as Re,b as Se,f as ve,g as Ne,e as De,a as _e,A as Ce}from"./alert-dialog-BOUVk-xM.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-U03ZiuXk.js";import{I as Ee}from"./input-BH7zyD0i.js";import{S as Ie}from"./skeleton-CfDgtd5M.js";import{P as ue}from"./index-D-cW_7z2.js";import{c as $e}from"./settings-section-BIT7uWjs.js";import{G as he,a as Fe}from"./github-repo-picker-D56QHlTy.js";import{u as Te,b as He,c as Be}from"./use-org-repo-syncs-DboNdEwi.js";import{t as Ge}from"./cards-BIJ-5lG1.js";import{S as qe}from"./settings-subnav-DobJGu7Z.js";import{R as Le}from"./require-capability-daZd2Avq.js";import"./X-DY9FeXqi.js";import"./sidebar-_myHCEzH.js";import"./LayoutLeft-BEpfII_o.js";import"./use-mobile-H1cEPaVS.js";import"./tooltip-B-y9isox.js";import"./card-CKXxuGX6.js";import"./ArrowUpRight-M9WAVHfb.js";import"./collection-search-Dc8oos2w.js";import"./SearchMd-xpLLk_pA.js";import"./use-debounced-value-19BtC7Bb.js";import"./use-connection-DmmNo1LM.js";import"./use-mcp-client-_o9o88xf.js";import"./auth-Clf3KXjv.js";import"./authenticate-and-persist-oauth-BUQ1Xi6C.js";import"./mcp-oauth-BmzTS1ua.js";import"./ArrowLeft-xr5VbHB2.js";import"./LinkExternal01-D25gdGqj.js";import"./LockUnlocked01-P_wfDROK.js";import"./use-mcp-tools-CRMPw5o_.js";import"./extract-connection-data-GB3welMi.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-BqMCqmam.js";import"./use-virtual-mcp-B0LtGhD8.js";import"./hooks-B2woSXLe.js";import"./decopilot-sse-pool-DLTV1od0.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./studio-tools-ThQ_rcsF.js";import"./DotsVertical-fn24sGZC.js";import"./Download01-D3eJDAEO.js";import"./Share07-Caa0Im56.js";import"./Globe01-DdUoMsv3.js";import"./Key01-Cfe0Tudx.js";import"./Palette-aeV8tQ28.js";import"./Trash01-BnQQflAa.js";import"./Zap-DDihnv3P.js";import"./dropdown-menu-BmoCpvnT.js";import"./Check-BXav60Vy.js";import"./ChevronRight-BGcGReEM.js";import"./file-type-icon-DNO6EG6W.js";import"./Eye-BhHZY2CZ.js";import"./useRouterState-um8-mtPt.js";import"./use-settings-tabs-CGwARRFk.js";import"./use-capability-DxO7qy1z.js";import"./access-gate-wLBW4P-Z.js";import"./capability-load-error-BasK1UyG.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ge();let u;t[0]!==l||t[1]!==c?(u=Je(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Me(e){const t=te.c(21),{onAdd:l}=e,i=ge();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Qe(){const e=te.c(107),t=ge(),l=Te(),i=He(),c=Be(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let S;e[12]!==t?(S=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=S):S=e[13];let v;e[14]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[14]=S,e[15]=v):v=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Me,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ke,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(Ve(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==D?(_=s.jsx(Fe,{mode:"connection",open:u,onOpenChange:p,title:D,onImportComplete:se}),e[22]=u,e[23]=D,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Pe,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let H;e[60]!==I||e[61]!==T?(H=s.jsxs(we,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==me?(G=s.jsx(ze,{open:me,onOpenChange:ie,children:B}),e[67]=B,e[68]=me,e[69]=G):G=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(ve,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(_e,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Ce,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==v||e[103]!==Z||e[104]!==N||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[v,N,_,G,Z]}),e[101]=G,e[102]=v,e[103]=Z,e[104]=N,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ue,{children:s.jsx(ue.Content,{children:s.jsx(ue.Body,{children:s.jsxs($e,{children:[s.jsx(qe,{group:"storage"}),s.jsx(Qe,{})]})})})}),e[0]=t):t=e[0],t}function is(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{is as default};
@@ -1 +1 @@
1
- import{c as w,b as S,j as l,B as C,r as I,G as E}from"./index-ChNbonqj.js";import{b as L,h as N,a as O,d as k,e as R}from"./dialog-BS0vrn2L.js";import{i as U}from"./Check-B3WXWYSz.js";import{a as $}from"./Copy01-sqwxFb53.js";import{n as W}from"./Download01-8o7f8ha3.js";const M="https://github.com/decocms/studio/releases";function F(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function P(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function B(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function V(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function D(e){const t=w.c(12),{copiedLabel:n}=e,r=S(),[s,i]=I.useState(!1);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=F(),t[0]=c):c=t[0];const o=c;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:o}),t[1]=a):a=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{V(navigator.clipboard,o).then(p=>{p&&(i(!0),setTimeout(()=>i(!1),2e3))})},t[2]=u):u=t[2];let d;t[3]!==s?(d=s?l.jsx(U,{size:16}):l.jsx($,{size:16}),t[3]=s,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==n||t[7]!==r?(f=s?n:r("downloadApp.copyLabel"),t[5]=s,t[6]=n,t[7]=r,t[8]=f):f=t[8];let m;return t[9]!==d||t[10]!==f?(m=l.jsxs("div",{className:"flex flex-col gap-3",children:[a,l.jsxs(C,{type:"button",className:"w-full gap-2",onClick:u,children:[d,f]})]}),t[9]=d,t[10]=f,t[11]=m):m=t[11],m}function Y(){const e=w.c(18),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.terminalHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;return e[15]!==r||e[16]!==a?(u=l.jsxs(l.Fragment,{children:[r,a]}),e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function H(){const e=w.c(42),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;e[15]!==t?(u=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=u):u=e[16];let d;e[17]!==u?(d=l.jsx("p",{children:u}),e[17]=u,e[18]=d):d=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=P("4.243.0"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(W,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let h;e[23]!==p?(h=l.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let g;e[25]!==t?(g=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=g):g=e[26];let x;e[27]!==g?(x=l.jsx("p",{children:g}),e[27]=g,e[28]=x):x=e[28];let A;e[29]!==t?(A=t("downloadApp.allReleases"),e[29]=t,e[30]=A):A=e[30];let y;e[31]!==A?(y=l.jsx("a",{href:M,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:A}),e[31]=A,e[32]=y):y=e[32];let T;e[33]!==h||e[34]!==x||e[35]!==y||e[36]!==d?(T=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[d,h,x,y]}),e[33]=h,e[34]=x,e[35]=y,e[36]=d,e[37]=T):T=e[37];let b;return e[38]!==r||e[39]!==T||e[40]!==a?(b=l.jsxs(l.Fragment,{children:[r,a,T]}),e[38]=r,e[39]=T,e[40]=a,e[41]=b):b=e[41],b}function oe(e){const t=w.c(19),{open:n,onOpenChange:r}=e,s=S();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=B(),t[0]=i):i=t[0];const c=i;let o;t[1]!==s?(o=s("downloadApp.title"),t[1]=s,t[2]=o):o=t[2];let a;t[3]!==o?(a=l.jsx(L,{children:o}),t[3]=o,t[4]=a):a=t[4];let u;t[5]!==s?(u=s(c?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=s,t[6]=u):u=t[6];let d;t[7]!==u?(d=l.jsx(N,{children:u}),t[7]=u,t[8]=d):d=t[8];let f;t[9]!==a||t[10]!==d?(f=l.jsxs(O,{children:[a,d]}),t[9]=a,t[10]=d,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=c?l.jsx(H,{}):l.jsx(Y,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=l.jsxs(k,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==r||t[16]!==n||t[17]!==p?(h=l.jsx(R,{open:n,onOpenChange:r,children:p}),t[15]=r,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const z=1e4,ae="true",j=2;function v(e,t){return E.chatAutosend(e,t)}function G(e){return e==="pending"||e==="sending"}function J(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let r=0;n.status==="sending"?r=n.retryAt===void 0?1:j:n.retryAt!==void 0&&(r=1);const s=n.attempt===void 0?r:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!G(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof s!="number"||!Number.isInteger(s)||s<0||s>j?null:{...t,attempt:s}}function ce(e,t,n,r,s=Date.now()){const i={message:r,createdAt:s,status:"pending",attempt:0};return e.setItem(v(t,n),JSON.stringify(i)),i}function X(e,t,n){const r=v(t,n),s=J(e.getItem(r));return s||(e.removeItem(r),null)}function ue(e,t,n,r=Date.now()){const s=v(t,n),i=X(e,t,n);if(!i||i.status!=="pending")return null;if(i.attempt>=j)return e.removeItem(s),null;const c=i.retryAt??i.createdAt;if(r-c>=z)return e.removeItem(s),null;const o={...i,status:"sending",attempt:i.attempt+1};return e.setItem(s,JSON.stringify(o)),{message:o.message,createdAt:o.createdAt,attempt:o.attempt}}function de(e,t,n){e.removeItem(v(t,n))}function K(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function q(e,t){return`app:${e}:${t}`}function fe(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),s=t.slice(n+1);return!r||!s?null:{connectionId:r,toolName:s}}function pe(e){return`deck:${encodeURIComponent(e)}`}function me(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function he(e){return`file:${encodeURIComponent(e)}`}function ge(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function xe(e){return`library-file:${encodeURIComponent(e)}`}function Ae(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function ye(e){return`code:${encodeURIComponent(e)}`}function Te(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const Q=["overview","settings","automations","preview","code","content","assets","git"],Z=new Set(Q),be=new Set(["board","files","connect-sources"]);function we(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const _=new Set(["instructions","connections","layout","settings"]);function Se(e){return!!e&&_.has(e)}function ee(e){const t=e?.defaultMainView??null;if(!t||_.has(t.type))return"settings";if(Z.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return q(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function ve(e){const t=e.mainParam===0?"0":e.mainParam,n=ee(e.metadata);if(t==="0")return{mainOpen:!1,activeTab:n};if(t===void 0){const r=e.metadata?.defaultMainView??null;return{mainOpen:!(r==null||r.type==="chat"),activeTab:n}}return _.has(t)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:t}}function je(e){return e.mainOpen&&e.clickedId===e.activeTab?0:e.clickedId}function _e(e){return e.mainOpen?e.activeTab==="automations"?!0:K(e.activeTab)!==null:!1}function Ce(e){return e.mainOpen&&e.activeTab==="automations"?0:"automations"}export{ae as A,oe as D,Q as F,be as O,B as a,ve as b,ge as c,me as d,Ae as e,q as f,je as g,ye as h,le as i,xe as j,Se as k,Te as l,fe as m,_e as n,Ce as o,K as p,pe as q,ee as r,he as s,we as t,ue as u,de as v,ce as w};
1
+ import{c as w,b as S,j as l,B as C,r as I,G as E}from"./index-DLyxjIYw.js";import{b as L,h as N,a as O,d as k,e as R}from"./dialog-U03ZiuXk.js";import{i as U}from"./Check-BXav60Vy.js";import{a as $}from"./Copy01-CV1JugLX.js";import{n as W}from"./Download01-D3eJDAEO.js";const M="https://github.com/decocms/studio/releases";function F(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function P(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function B(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function V(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function D(e){const t=w.c(12),{copiedLabel:n}=e,r=S(),[s,i]=I.useState(!1);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=F(),t[0]=c):c=t[0];const o=c;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:o}),t[1]=a):a=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{V(navigator.clipboard,o).then(p=>{p&&(i(!0),setTimeout(()=>i(!1),2e3))})},t[2]=u):u=t[2];let d;t[3]!==s?(d=s?l.jsx(U,{size:16}):l.jsx($,{size:16}),t[3]=s,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==n||t[7]!==r?(f=s?n:r("downloadApp.copyLabel"),t[5]=s,t[6]=n,t[7]=r,t[8]=f):f=t[8];let m;return t[9]!==d||t[10]!==f?(m=l.jsxs("div",{className:"flex flex-col gap-3",children:[a,l.jsxs(C,{type:"button",className:"w-full gap-2",onClick:u,children:[d,f]})]}),t[9]=d,t[10]=f,t[11]=m):m=t[11],m}function Y(){const e=w.c(18),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.terminalHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;return e[15]!==r||e[16]!==a?(u=l.jsxs(l.Fragment,{children:[r,a]}),e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function H(){const e=w.c(42),t=S();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let r;e[2]!==n?(r=l.jsx(D,{copiedLabel:n}),e[2]=n,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=l.jsx("p",{children:s}),e[6]=s,e[7]=i):i=e[7];let c;e[8]!==t?(c=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=c):c=e[9];let o;e[10]!==c?(o=l.jsx("p",{children:c}),e[10]=c,e[11]=o):o=e[11];let a;e[12]!==i||e[13]!==o?(a=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[i,o]}),e[12]=i,e[13]=o,e[14]=a):a=e[14];let u;e[15]!==t?(u=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=u):u=e[16];let d;e[17]!==u?(d=l.jsx("p",{children:u}),e[17]=u,e[18]=d):d=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=P("4.243.2"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(W,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let h;e[23]!==p?(h=l.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=h):h=e[24];let g;e[25]!==t?(g=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=g):g=e[26];let x;e[27]!==g?(x=l.jsx("p",{children:g}),e[27]=g,e[28]=x):x=e[28];let A;e[29]!==t?(A=t("downloadApp.allReleases"),e[29]=t,e[30]=A):A=e[30];let y;e[31]!==A?(y=l.jsx("a",{href:M,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:A}),e[31]=A,e[32]=y):y=e[32];let T;e[33]!==h||e[34]!==x||e[35]!==y||e[36]!==d?(T=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[d,h,x,y]}),e[33]=h,e[34]=x,e[35]=y,e[36]=d,e[37]=T):T=e[37];let b;return e[38]!==r||e[39]!==T||e[40]!==a?(b=l.jsxs(l.Fragment,{children:[r,a,T]}),e[38]=r,e[39]=T,e[40]=a,e[41]=b):b=e[41],b}function oe(e){const t=w.c(19),{open:n,onOpenChange:r}=e,s=S();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=B(),t[0]=i):i=t[0];const c=i;let o;t[1]!==s?(o=s("downloadApp.title"),t[1]=s,t[2]=o):o=t[2];let a;t[3]!==o?(a=l.jsx(L,{children:o}),t[3]=o,t[4]=a):a=t[4];let u;t[5]!==s?(u=s(c?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=s,t[6]=u):u=t[6];let d;t[7]!==u?(d=l.jsx(N,{children:u}),t[7]=u,t[8]=d):d=t[8];let f;t[9]!==a||t[10]!==d?(f=l.jsxs(O,{children:[a,d]}),t[9]=a,t[10]=d,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=c?l.jsx(H,{}):l.jsx(Y,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=l.jsxs(k,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let h;return t[15]!==r||t[16]!==n||t[17]!==p?(h=l.jsx(R,{open:n,onOpenChange:r,children:p}),t[15]=r,t[16]=n,t[17]=p,t[18]=h):h=t[18],h}const z=1e4,ae="true",j=2;function v(e,t){return E.chatAutosend(e,t)}function G(e){return e==="pending"||e==="sending"}function J(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let r=0;n.status==="sending"?r=n.retryAt===void 0?1:j:n.retryAt!==void 0&&(r=1);const s=n.attempt===void 0?r:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!G(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof s!="number"||!Number.isInteger(s)||s<0||s>j?null:{...t,attempt:s}}function ce(e,t,n,r,s=Date.now()){const i={message:r,createdAt:s,status:"pending",attempt:0};return e.setItem(v(t,n),JSON.stringify(i)),i}function X(e,t,n){const r=v(t,n),s=J(e.getItem(r));return s||(e.removeItem(r),null)}function ue(e,t,n,r=Date.now()){const s=v(t,n),i=X(e,t,n);if(!i||i.status!=="pending")return null;if(i.attempt>=j)return e.removeItem(s),null;const c=i.retryAt??i.createdAt;if(r-c>=z)return e.removeItem(s),null;const o={...i,status:"sending",attempt:i.attempt+1};return e.setItem(s,JSON.stringify(o)),{message:o.message,createdAt:o.createdAt,attempt:o.attempt}}function de(e,t,n){e.removeItem(v(t,n))}function K(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function q(e,t){return`app:${e}:${t}`}function fe(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),s=t.slice(n+1);return!r||!s?null:{connectionId:r,toolName:s}}function pe(e){return`deck:${encodeURIComponent(e)}`}function me(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function he(e){return`file:${encodeURIComponent(e)}`}function ge(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function xe(e){return`library-file:${encodeURIComponent(e)}`}function Ae(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function ye(e){return`code:${encodeURIComponent(e)}`}function Te(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const Q=["overview","settings","automations","preview","code","content","assets","git"],Z=new Set(Q),be=new Set(["board","files","connect-sources"]);function we(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const _=new Set(["instructions","connections","layout","settings"]);function Se(e){return!!e&&_.has(e)}function ee(e){const t=e?.defaultMainView??null;if(!t||_.has(t.type))return"settings";if(Z.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return q(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function ve(e){const t=e.mainParam===0?"0":e.mainParam,n=ee(e.metadata);if(t==="0")return{mainOpen:!1,activeTab:n};if(t===void 0){const r=e.metadata?.defaultMainView??null;return{mainOpen:!(r==null||r.type==="chat"),activeTab:n}}return _.has(t)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:t}}function je(e){return e.mainOpen&&e.clickedId===e.activeTab?0:e.clickedId}function _e(e){return e.mainOpen?e.activeTab==="automations"?!0:K(e.activeTab)!==null:!1}function Ce(e){return e.mainOpen&&e.activeTab==="automations"?0:"automations"}export{ae as A,oe as D,Q as F,be as O,B as a,ve as b,ge as c,me as d,Ae as e,q as f,je as g,ye as h,le as i,xe as j,Se as k,Te as l,fe as m,_e as n,Ce as o,K as p,pe as q,ee as r,he as s,we as t,ue as u,de as v,ce as w};
@@ -1 +1 @@
1
- import{c,m as i,j as r}from"./index-ChNbonqj.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,m as a,b,d as c,p as d,f as e};
1
+ import{c,m as i,j as r}from"./index-DLyxjIYw.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,m as a,b,d as c,p as d,f as e};
@@ -1 +1 @@
1
- import{r as v,j as d,bI as M,aG as p,bL as k,bK as y,bJ as P,aM as T,aI as S,aL as F,aJ as V,aN as D,c as x,m as g}from"./index-ChNbonqj.js";var m="Tabs",[G]=S(m,[y]),N=y(),[L,h]=G(m),w=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=F(i),[c,b]=V({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:D(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});w.displayName=m;var C="TabsList",I=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(C,a),o=N(a);return d.jsx(M,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});I.displayName=C;var j="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(j,a),i=N(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(P,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=j;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(k,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var K=w,z=I,B=_,J=A;function H(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(K,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(z,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(J,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,H as a,Q as b,O as c};
1
+ import{r as v,j as d,bI as M,aG as p,bL as k,bK as y,bJ as P,aM as T,aI as S,aL as F,aJ as V,aN as D,c as x,m as g}from"./index-DLyxjIYw.js";var m="Tabs",[G]=S(m,[y]),N=y(),[L,h]=G(m),w=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=F(i),[c,b]=V({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:D(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});w.displayName=m;var C="TabsList",I=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(C,a),o=N(a);return d.jsx(M,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});I.displayName=C;var j="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(j,a),i=N(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(P,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=j;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(k,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var K=w,z=I,B=_,J=A;function H(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(K,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(z,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(J,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,H as a,Q as b,O as c};
@@ -1 +1 @@
1
- import{c as D,r as W,j as l,m as te,B as H,F as X,K as Z,n as oe,o as ce,e as de,b as z,t as M}from"./index-ChNbonqj.js";import{I as se}from"./input-C7yzxoyt.js";import{i as ge}from"./Check-B3WXWYSz.js";import{i as pe}from"./ChevronSelectorVertical-3I23HxSc.js";import{b as be,C as ye,a as Se,c as ve,d as Ne,e as Ce}from"./command-BiOiOU66.js";import{a as we,P as ke,b as _e}from"./popover-CUB5B6Fg.js";import{S as xe}from"./skeleton-D5WFiATz.js";import{S as me}from"./switch-BJLPF8PK.js";import{c as Te,d as Ie,b as Pe,f as Ae,g as De,e as Ee,a as Fe,A as Me}from"./alert-dialog-vU3RDB6N.js";import{S as Re,a as $e,b as qe,c as Be,d as fe}from"./select-BoWvSZwe.js";import{P as le}from"./index-zg41rH3q.js";import{c as Ke,S as Oe}from"./settings-section-DhQpgpfA.js";import{u as ee}from"./studio-tools-9YEAucUH.js";import{t as Le}from"./cards-D3JgaUCj.js";import{R as Je}from"./require-capability-Brg3b3WC.js";import"./index-D09jjQ2g.js";import"./dialog-BS0vrn2L.js";import"./X-Bn5dnt4Y.js";import"./SearchMd-DaUX4bqr.js";import"./tooltip-Cj4mvkkR.js";import"./ChevronDown-B14qTkyv.js";import"./ChevronUp-IZz2eGQ-.js";import"./sidebar-C1S8e866.js";import"./LayoutLeft-C5bEG-Yu.js";import"./use-mobile-Caz6aOTC.js";import"./card-CtLNe5Qx.js";import"./ArrowUpRight-Rz1YqMGK.js";import"./DotsVertical-B_d1BqGN.js";import"./Download01-8o7f8ha3.js";import"./Share07-DMD6arE7.js";import"./Globe01-Dzsrjekj.js";import"./Key01-BQwobAw2.js";import"./Palette-CqQ0uw84.js";import"./Trash01-D1tBKt57.js";import"./Zap-BRrVrhlx.js";import"./dropdown-menu-BOPvnnQd.js";import"./ChevronRight-Aaat-zPl.js";import"./file-type-icon-B0DZabiD.js";import"./Eye-B2eaOo-B.js";import"./use-capability-DwzdlNfB.js";import"./access-gate-Cs3BTnxj.js";import"./capability-load-error-COB0oCD2.js";function Ue(t){const e=D.c(36),{options:i,value:s,onChange:a,placeholder:n,triggerClassName:r,contentClassName:o,width:g,renderTrigger:c,renderItem:f,emptyMessage:d,searchPlaceholder:m,filter:u}=t,p=n===void 0?"Select...":n,x=g===void 0?"w-[200px]":g,v=d===void 0?"No results found.":d,b=m===void 0?"Search...":m;let j;e[0]!==s?(j=R=>R.value===s,e[0]=s,e[1]=j):j=e[1];const N=i.find(j),[y,h]=W.useState(!1),C=ke,k=we,_=!0,T=c?l.jsx("div",{className:te("cursor-pointer",r),children:c(N)}):l.jsxs(H,{variant:"outline",role:"combobox",className:te("justify-between",x,r),children:[N?N.label:p,l.jsx(pe,{className:"opacity-50"})]});let S;e[2]!==k||e[3]!==T?(S=l.jsx(k,{asChild:_,children:T}),e[2]=k,e[3]=T,e[4]=S):S=e[4];let w;e[5]!==o?(w=te("p-0",o),e[5]=o,e[6]=w):w=e[6];let P;e[7]===Symbol.for("react.memo_cache_sentinel")?(P={width:"var(--radix-popover-trigger-width)"},e[7]=P):P=e[7];let A;e[8]!==b?(A=l.jsx(ye,{placeholder:b,className:"h-9"}),e[8]=b,e[9]=A):A=e[9];let E;e[10]!==v?(E=l.jsx(Se,{children:v}),e[10]=v,e[11]=E):E=e[11];let I;e[12]!==a||e[13]!==i||e[14]!==f||e[15]!==h||e[16]!==s?(I=i.map(R=>{const L=s===R.value;return l.jsx(be,{value:R.label,onSelect:V=>{const J=i.find(G=>G.label===V)?.value;a(J===s?"":J??""),h(!1)},children:f?f(R,L):l.jsxs(l.Fragment,{children:[R.label,l.jsx(ge,{className:te("ml-auto",L?"opacity-100":"opacity-0")})]})},R.value)}),e[12]=a,e[13]=i,e[14]=f,e[15]=h,e[16]=s,e[17]=I):I=e[17];let $;e[18]!==I?($=l.jsx(ve,{children:I}),e[18]=I,e[19]=$):$=e[19];let q;e[20]!==E||e[21]!==$?(q=l.jsxs(Ne,{children:[E,$]}),e[20]=E,e[21]=$,e[22]=q):q=e[22];let O;e[23]!==u||e[24]!==A||e[25]!==q?(O=l.jsxs(Ce,{filter:u,children:[A,q]}),e[23]=u,e[24]=A,e[25]=q,e[26]=O):O=e[26];let B;e[27]!==O||e[28]!==w?(B=l.jsx(_e,{className:w,style:P,children:O}),e[27]=O,e[28]=w,e[29]=B):B=e[29];let K;return e[30]!==C||e[31]!==y||e[32]!==h||e[33]!==B||e[34]!==S?(K=l.jsxs(C,{open:y,onOpenChange:h,children:[S,B]}),e[30]=C,e[31]=y,e[32]=h,e[33]=B,e[34]=S,e[35]=K):K=e[35],K}function ze(t){const e=D.c(4),{size:i,className:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.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]=a):a=e[0];let n;return e[1]!==s||e[2]!==i?(n=l.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:a}),e[1]=s,e[2]=i,e[3]=n):n=e[3],n}function je(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}=je(t);return[e,i,`#${t.id}`].filter(Boolean).join(" ")}function ue(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function Ge(t,e){const i=ue(e).trim();if(!i)return 1;const s=ue(t);return i.split(/\s+/).every(a=>s.includes(a))?1:0}function Qe(){const t=D.c(7),{org:e}=X(),i=ee();let s;t[0]!==e.id?(s=Z.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let a;t[2]!==i?(a=async()=>(await i.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=i,t[3]=a):a=t[3];let n;return t[4]!==s||t[5]!==a?(n={queryKey:s,queryFn:a},t[4]=s,t[5]=a,t[6]=n):n=t[6],oe(n)}function ne(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=async o=>(await i.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}function He(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=()=>i.call("JIRA_INTEGRATION_DELETE",{}),t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}function Ye(t){const e=D.c(8),{org:i}=X(),s=ee();let a;e[0]!==i.id?(a=Z.jiraBoards(i.id),e[0]=i.id,e[1]=a):a=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]!==a||e[6]!==n?(r={queryKey:a,enabled:t,staleTime:6e4,queryFn:n},e[4]=t,e[5]=a,e[6]=n,e[7]=r):r=e[7],oe(r)}function We(t){const e=D.c(10),{org:i}=X(),s=ee();let a;e[0]!==t||e[1]!==i.id?(a=Z.jiraBoardColumns(i.id,t??""),e[0]=t,e[1]=i.id,e[2]=a):a=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]!==a||e[7]!==n||e[8]!==r?(o={queryKey:a,enabled:n,staleTime:6e4,queryFn:r},e[6]=a,e[7]=n,e[8]=r,e[9]=o):o=e[9],oe(o)}function Xe(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=async()=>(await i.call("JIRA_SYNC_RUN",{})).result,t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}const Ze=[{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:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}],re="__dont_sync__";function U(t,e){return t instanceof Error?t.message:e}const et="https://id.atlassian.com/manage-profile/security/api-tokens";function ae(t){const e=D.c(15),{title:i,description:s,actions:a,children:n}=t;let r;e[0]!==i?(r=l.jsx("h3",{className:"text-sm font-medium leading-tight",children:i}),e[0]=i,e[1]=r):r=e[1];let o;e[2]!==s?(o=s&&l.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:s}),e[2]=s,e[3]=o):o=e[3];let g;e[4]!==r||e[5]!==o?(g=l.jsxs("div",{className:"min-w-0 flex flex-col gap-0.5",children:[r,o]}),e[4]=r,e[5]=o,e[6]=g):g=e[6];let c;e[7]!==a?(c=a&&l.jsx("div",{className:"shrink-0",children:a}),e[7]=a,e[8]=c):c=e[8];let f;e[9]!==g||e[10]!==c?(f=l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g,c]}),e[9]=g,e[10]=c,e[11]=f):f=e[11];let d;return e[12]!==n||e[13]!==f?(d=l.jsxs("section",{className:"flex flex-col gap-3",children:[f,n]}),e[12]=n,e[13]=f,e[14]=d):d=e[14],d}function he(t){const e=D.c(7),{stepKeys:i}=t,s=z();let a;if(e[0]!==i||e[1]!==s){let r;e[3]!==s?(r=o=>l.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],a=i.map(r),e[0]=i,e[1]=s,e[2]=a}else a=e[2];let n;return e[5]!==a?(n=l.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=n):n=e[6],n}function tt(){const t=D.c(54),e=z(),i=ne(),[s,a]=W.useState(""),[n,r]=W.useState(""),[o,g]=W.useState("");let c;t[0]!==o||t[1]!==n||t[2]!==s?(c=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=c):c=t[3];const f=c;let d;t[4]!==e?(d=e("settings.jira.connectTitle"),t[4]=e,t[5]=d):d=t[5];let m;t[6]!==e?(m=e("settings.jira.connectDescription"),t[6]=e,t[7]=m):m=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(he,{stepKeys:["settings.jira.connectStep1","settings.jira.connectStep2","settings.jira.connectStep3"]}),t[8]=u):u=t[8];let p;t[9]!==e?(p=e("settings.jira.createTokenLink"),t[9]=e,t[10]=p):p=t[10];let x;t[11]!==p?(x=l.jsxs("a",{href:et,target:"_blank",rel:"noreferrer",className:"text-xs text-foreground hover:underline w-fit",children:[p," ↗"]}),t[11]=p,t[12]=x):x=t[12];let v;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=I=>a(I.target.value),t[13]=v):v=t[13];let b;t[14]!==e?(b=e("settings.jira.sitePlaceholder"),t[14]=e,t[15]=b):b=t[15];let j;t[16]!==s||t[17]!==b?(j=l.jsx(se,{value:s,onChange:v,placeholder:b,autoComplete:"off"}),t[16]=s,t[17]=b,t[18]=j):j=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=I=>r(I.target.value),t[19]=N):N=t[19];let y;t[20]!==e?(y=e("settings.jira.emailPlaceholder"),t[20]=e,t[21]=y):y=t[21];let h;t[22]!==n||t[23]!==y?(h=l.jsx(se,{value:n,onChange:N,placeholder:y,autoComplete:"off"}),t[22]=n,t[23]=y,t[24]=h):h=t[24];let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=I=>g(I.target.value),t[25]=C):C=t[25];let k;t[26]!==e?(k=e("settings.jira.tokenPlaceholder"),t[26]=e,t[27]=k):k=t[27];let _;t[28]!==o||t[29]!==k?(_=l.jsx(se,{type:"password",value:o,onChange:C,placeholder:k,autoComplete:"off"}),t[28]=o,t[29]=k,t[30]=_):_=t[30];const T=!f||i.isPending;let S;t[31]!==o||t[32]!==n||t[33]!==s||t[34]!==e||t[35]!==i?(S=()=>i.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>M.success(e("settings.jira.connected")),onError:I=>M.error(U(I,e("settings.jira.connectFailed")))}),t[31]=o,t[32]=n,t[33]=s,t[34]=e,t[35]=i,t[36]=S):S=t[36];let w;t[37]!==e||t[38]!==i.isPending?(w=i.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[37]=e,t[38]=i.isPending,t[39]=w):w=t[39];let P;t[40]!==T||t[41]!==S||t[42]!==w?(P=l.jsx("div",{children:l.jsx(H,{disabled:T,onClick:S,children:w})}),t[40]=T,t[41]=S,t[42]=w,t[43]=P):P=t[43];let A;t[44]!==h||t[45]!==_||t[46]!==P||t[47]!==x||t[48]!==j?(A=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-3 max-w-lg",children:[u,x,j,h,_,P]}),t[44]=h,t[45]=_,t[46]=P,t[47]=x,t[48]=j,t[49]=A):A=t[49];let E;return t[50]!==d||t[51]!==A||t[52]!==m?(E=l.jsx(ae,{title:d,description:m,children:A}),t[50]=d,t[51]=A,t[52]=m,t[53]=E):E=t[53],E}function st(t){const e=D.c(7),{integration:i}=t,s=z();if(i.lastSyncError){let r;return e[0]!==i.lastSyncError?(r=l.jsx("p",{className:"text-xs text-destructive truncate",children:i.lastSyncError}),e[0]=i.lastSyncError,e[1]=r):r=e[1],r}let a;e[2]!==i.lastSyncedAt||e[3]!==s?(a=i.lastSyncedAt?s("settings.jira.lastSynced",{ago:Le(i.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=i.lastSyncedAt,e[3]=s,e[4]=a):a=e[4];let n;return e[5]!==a?(n=l.jsx("p",{className:"text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=n):n=e[6],n}function it(t){const e=D.c(23),{integration:i}=t,s=z(),a=ne(),n=We(i.boardId);if(n.isPending){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(xe,{className:"h-24 w-full"}),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=l.jsx("p",{className:"text-xs text-destructive",children:d}),e[4]=d,e[5]=m):m=e[5],m}let r;e[6]!==i.statusMapping||e[7]!==s||e[8]!==a?(r=function(m,u){const p={...i.statusMapping};for(const x of m)u===re?delete p[x]:p[x]=u;a.mutate({statusMapping:p},{onError:x=>M.error(U(x,s("settings.jira.saveFailed")))})},e[6]=i.statusMapping,e[7]=s,e[8]=a,e[9]=r):r=e[9];const o=r;let g;e[10]!==n.data?(g=n.data??[],e[10]=n.data,e[11]=g):g=e[11];let c;if(e[12]!==i.statusMapping||e[13]!==o||e[14]!==s||e[15]!==g){let d;e[17]!==i.statusMapping||e[18]!==o||e[19]!==s?(d=m=>l.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("span",{className:"text-sm truncate",children:m.name}),(m.statuses.length>1||m.statuses[0]!==m.name)&&l.jsx("p",{className:"text-xs text-muted-foreground truncate",children:m.statuses.join(", ")})]}),l.jsxs(Re,{value:(m.statuses[0]&&i.statusMapping[m.statuses[0]])??re,onValueChange:u=>o(m.statuses,u),children:[l.jsx($e,{className:"w-44 shrink-0",children:l.jsx(qe,{})}),l.jsxs(Be,{children:[l.jsx(fe,{value:re,children:s("settings.jira.dontSync")}),Ze.map(u=>l.jsx(fe,{value:u.value,children:s(u.labelKey)},u.value))]})]})]},m.name),e[17]=i.statusMapping,e[18]=o,e[19]=s,e[20]=d):d=e[20],c=g.map(d),e[12]=i.statusMapping,e[13]=o,e[14]=s,e[15]=g,e[16]=c}else c=e[16];let f;return e[21]!==c?(f=l.jsx("div",{className:"flex flex-col",children:c}),e[21]=c,e[22]=f):f=e[22],f}function lt(t){const e=D.c(33),{integration:i}=t,s=z(),a=ne(),[n,r]=W.useState(i.jqlFilter??"");let o;e[0]!==n?(o=n.trim(),e[0]=n,e[1]=o):o=e[1];const g=o!==(i.jqlFilter??"");let c;e[2]!==s?(c=s("settings.jira.jqlLabel"),e[2]=s,e[3]=c):c=e[3];let f;e[4]!==c?(f=l.jsx("p",{className:"text-sm font-medium",children:c}),e[4]=c,e[5]=f):f=e[5];let d;e[6]!==s?(d=s("settings.jira.jqlDescription"),e[6]=s,e[7]=d):d=e[7];let m;e[8]!==d?(m=l.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[8]=d,e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=C=>r(C.target.value),e[10]=u):u=e[10];let p;e[11]!==s?(p=s("settings.jira.jqlPlaceholder"),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==p||e[14]!==n?(x=l.jsx(se,{value:n,onChange:u,placeholder:p,className:"font-mono text-xs"}),e[13]=p,e[14]=n,e[15]=x):x=e[15];const v=!g||a.isPending;let b;e[16]!==s||e[17]!==a||e[18]!==n?(b=()=>a.mutate({jqlFilter:n.trim()===""?null:n.trim()},{onSuccess:()=>M.success(s("settings.jira.jqlSaved")),onError:C=>M.error(U(C,s("settings.jira.saveFailed")))}),e[16]=s,e[17]=a,e[18]=n,e[19]=b):b=e[19];let j;e[20]!==s?(j=s("settings.jira.jqlSave"),e[20]=s,e[21]=j):j=e[21];let N;e[22]!==b||e[23]!==j||e[24]!==v?(N=l.jsx(H,{variant:"outline",size:"sm",className:"shrink-0",disabled:v,onClick:b,children:j}),e[22]=b,e[23]=j,e[24]=v,e[25]=N):N=e[25];let y;e[26]!==N||e[27]!==x?(y=l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[x,N]}),e[26]=N,e[27]=x,e[28]=y):y=e[28];let h;return e[29]!==y||e[30]!==f||e[31]!==m?(h=l.jsxs("div",{className:"flex flex-col gap-1",children:[f,m,y]}),e[29]=y,e[30]=f,e[31]=m,e[32]=h):h=e[32],h}function nt(t){const e=D.c(102),{integration:i}=t,s=z(),a=ne(),n=Xe(),r=Ye(!0);let o;e[0]!==i.statusMapping?(o=Object.keys(i.statusMapping),e[0]=i.statusMapping,e[1]=o):o=e[1];const g=o.length>0;let c,f;e[2]!==r.data||e[3]!==i.boardId||e[4]!==i.boardName?(c=(r.data??[]).map(rt),f=i.boardId?c.find(F=>F.value===i.boardId)?.primary??i.boardName??i.boardId:null,e[2]=r.data,e[3]=i.boardId,e[4]=i.boardName,e[5]=c,e[6]=f):(c=e[5],f=e[6]);const d=f;let m;e[7]!==s?(m=s("settings.jira.syncTitle"),e[7]=s,e[8]=m):m=e[8];let u;e[9]!==s?(u=s("settings.jira.syncDescription"),e[9]=s,e[10]=u):u=e[10];let p;e[11]!==s?(p=s("settings.jira.boardLabel"),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==p?(x=l.jsx("p",{className:"text-sm font-medium",children:p}),e[13]=p,e[14]=x):x=e[14];let v;e[15]!==s?(v=s("settings.jira.boardDescription"),e[15]=s,e[16]=v):v=e[16];let b;e[17]!==v?(b=l.jsx("p",{className:"text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=b):b=e[18];let j;e[19]!==x||e[20]!==b?(j=l.jsxs("div",{className:"min-w-0",children:[x,b]}),e[19]=x,e[20]=b,e[21]=j):j=e[21];const N=i.boardId??"";let y;e[22]!==s?(y=s("settings.jira.boardPlaceholder"),e[22]=s,e[23]=y):y=e[23];let h;e[24]!==s?(h=s("settings.jira.boardSearchPlaceholder"),e[24]=s,e[25]=h):h=e[25];let C;e[26]!==r.isPending||e[27]!==s?(C=r.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[26]=r.isPending,e[27]=s,e[28]=C):C=e[28];let k;e[29]!==d||e[30]!==s?(k=()=>l.jsxs(H,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[l.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),l.jsx(pe,{className:"opacity-50 shrink-0"})]}),e[29]=d,e[30]=s,e[31]=k):k=e[31];let _;e[32]!==c||e[33]!==i.boardId||e[34]!==s||e[35]!==a?(_=F=>{!F||F===i.boardId||a.mutate({boardId:F,boardName:c.find(Q=>Q.value===F)?.primary??null,statusMapping:{},enabled:!1},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})},e[32]=c,e[33]=i.boardId,e[34]=s,e[35]=a,e[36]=_):_=e[36];let T;e[37]!==c||e[38]!==N||e[39]!==y||e[40]!==h||e[41]!==C||e[42]!==k||e[43]!==_?(T=l.jsx(Ue,{options:c,value:N,width:"w-72",triggerClassName:"shrink-0",placeholder:y,searchPlaceholder:h,filter:Ge,emptyMessage:C,renderTrigger:k,renderItem:at,onChange:_}),e[37]=c,e[38]=N,e[39]=y,e[40]=h,e[41]=C,e[42]=k,e[43]=_,e[44]=T):T=e[44];let S;e[45]!==T||e[46]!==j?(S=l.jsxs("div",{className:"flex items-center justify-between gap-4",children:[j,T]}),e[45]=T,e[46]=j,e[47]=S):S=e[47];let w;e[48]!==i||e[49]!==s?(w=i.boardId&&l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("p",{className:"text-sm font-medium",children:s("settings.jira.mappingLabel")}),l.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.jira.mappingDescription")}),l.jsx(it,{integration:i})]}),e[48]=i,e[49]=s,e[50]=w):w=e[50];let P;e[51]!==i?(P=i.boardId&&l.jsx(lt,{integration:i}),e[51]=i,e[52]=P):P=e[52];let A;e[53]!==i.autoDelegate||e[54]!==i.boardId||e[55]!==s||e[56]!==a?(A=i.boardId&&l.jsxs("div",{className:"flex items-center justify-between gap-4",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:"text-sm font-medium",children:s("settings.jira.autoDelegateLabel")}),l.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.jira.autoDelegateDescription")})]}),l.jsx(me,{checked:i.autoDelegate,disabled:a.isPending,onCheckedChange:F=>a.mutate({autoDelegate:F},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})})]}),e[53]=i.autoDelegate,e[54]=i.boardId,e[55]=s,e[56]=a,e[57]=A):A=e[57];let E;e[58]!==s?(E=s("settings.jira.enableLabel"),e[58]=s,e[59]=E):E=e[59];let I;e[60]!==E?(I=l.jsx("p",{className:"text-sm font-medium",children:E}),e[60]=E,e[61]=I):I=e[61];let $;e[62]!==i?($=l.jsx(st,{integration:i}),e[62]=i,e[63]=$):$=e[63];let q;e[64]!==I||e[65]!==$?(q=l.jsxs("div",{className:"min-w-0 flex flex-col gap-0.5",children:[I,$]}),e[64]=I,e[65]=$,e[66]=q):q=e[66];const O=!i.enabled||n.isPending;let B;e[67]!==n||e[68]!==s?(B=()=>n.mutate(void 0,{onSuccess:F=>{"error"in F?M.error(F.error):M.success(s("settings.jira.syncDone",{created:String(F.created),updated:String(F.updated)}))},onError:F=>M.error(U(F,s("settings.jira.syncFailed")))}),e[67]=n,e[68]=s,e[69]=B):B=e[69];let K;e[70]!==n.isPending||e[71]!==s?(K=n.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[70]=n.isPending,e[71]=s,e[72]=K):K=e[72];let R;e[73]!==O||e[74]!==B||e[75]!==K?(R=l.jsx(H,{variant:"outline",size:"sm",disabled:O,onClick:B,children:K}),e[73]=O,e[74]=B,e[75]=K,e[76]=R):R=e[76];let L;e[77]!==g||e[78]!==i.boardId||e[79]!==s||e[80]!==a?(L=F=>{if(F&&(!i.boardId||!g)){M.error(s("settings.jira.enableRequirements"));return}a.mutate({enabled:F},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})},e[77]=g,e[78]=i.boardId,e[79]=s,e[80]=a,e[81]=L):L=e[81];let V;e[82]!==i.enabled||e[83]!==L||e[84]!==a.isPending?(V=l.jsx(me,{checked:i.enabled,disabled:a.isPending,onCheckedChange:L}),e[82]=i.enabled,e[83]=L,e[84]=a.isPending,e[85]=V):V=e[85];let J;e[86]!==R||e[87]!==V?(J=l.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[R,V]}),e[86]=R,e[87]=V,e[88]=J):J=e[88];let G;e[89]!==q||e[90]!==J?(G=l.jsxs("div",{className:"flex items-center justify-between gap-4 border-t border-border/60 pt-4",children:[q,J]}),e[89]=q,e[90]=J,e[91]=G):G=e[91];let Y;e[92]!==S||e[93]!==w||e[94]!==P||e[95]!==A||e[96]!==G?(Y=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-5",children:[S,w,P,A,G]}),e[92]=S,e[93]=w,e[94]=P,e[95]=A,e[96]=G,e[97]=Y):Y=e[97];let ie;return e[98]!==m||e[99]!==Y||e[100]!==u?(ie=l.jsx(ae,{title:m,description:u,children:Y}),e[98]=m,e[99]=Y,e[100]=u,e[101]=ie):ie=e[101],ie}function at(t,e){return l.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("p",{className:"truncate",children:t.primary}),l.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),l.jsx(ge,{className:te("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function rt(t){const{primary:e,secondary:i}=je(t);return{value:String(t.id),label:Ve(t),primary:e,secondary:i}}function ot(t){const e=D.c(24),{integration:i}=t,s=z(),a=`${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]!==a?(o=l.jsx(se,{readOnly:!0,value:a,className:"font-mono text-xs"}),e[4]=a,e[5]=o):o=e[5];let g;e[6]!==s||e[7]!==a?(g=()=>{navigator.clipboard.writeText(a),M.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=a,e[8]=g):g=e[8];let c;e[9]!==s?(c=s("settings.jira.webhookCopy"),e[9]=s,e[10]=c):c=e[10];let f;e[11]!==g||e[12]!==c?(f=l.jsx(H,{variant:"outline",size:"sm",className:"shrink-0",onClick:g,children:c}),e[11]=g,e[12]=c,e[13]=f):f=e[13];let d;e[14]!==o||e[15]!==f?(d=l.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=d):d=e[16];let m;e[17]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(he,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=m):m=e[17];let u;e[18]!==d?(u=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-4",children:[d,m]}),e[18]=d,e[19]=u):u=e[19];let p;return e[20]!==n||e[21]!==r||e[22]!==u?(p=l.jsx(ae,{title:n,description:r,children:u}),e[20]=n,e[21]=r,e[22]=u,e[23]=p):p=e[23],p}function ct(t){const e=D.c(51),{integration:i}=t,s=z(),a=He(),[n,r]=W.useState(!1);let o;e[0]!==s?(o=s("settings.jira.connectionTitle"),e[0]=s,e[1]=o):o=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=()=>r(!0),e[2]=g):g=e[2];let c;e[3]!==s?(c=s("settings.jira.disconnect"),e[3]=s,e[4]=c):c=e[4];let f;e[5]!==c?(f=l.jsx(H,{variant:"outline",size:"sm",onClick:g,children:c}),e[5]=c,e[6]=f):f=e[6];let d;e[7]!==i.siteUrl?(d=l.jsx("p",{className:"text-sm font-medium truncate",children:i.siteUrl}),e[7]=i.siteUrl,e[8]=d):d=e[8];let m;e[9]!==i.email?(m=l.jsx("p",{className:"text-xs mt-0.5 truncate text-muted-foreground",children:i.email}),e[9]=i.email,e[10]=m):m=e[10];let u;e[11]!==d||e[12]!==m?(u=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background px-5 py-4",children:[d,m]}),e[11]=d,e[12]=m,e[13]=u):u=e[13];let p;e[14]!==s?(p=s("settings.jira.disconnectTitle"),e[14]=s,e[15]=p):p=e[15];let x;e[16]!==p?(x=l.jsx(Te,{children:p}),e[16]=p,e[17]=x):x=e[17];let v;e[18]!==s?(v=s("settings.jira.disconnectDescription"),e[18]=s,e[19]=v):v=e[19];let b;e[20]!==v?(b=l.jsx(Ie,{children:v}),e[20]=v,e[21]=b):b=e[21];let j;e[22]!==b||e[23]!==x?(j=l.jsxs(Pe,{children:[x,b]}),e[22]=b,e[23]=x,e[24]=j):j=e[24];let N;e[25]!==s?(N=s("settings.jira.cancel"),e[25]=s,e[26]=N):N=e[26];let y;e[27]!==N?(y=l.jsx(Ae,{children:N}),e[27]=N,e[28]=y):y=e[28];let h;e[29]!==a||e[30]!==s?(h=()=>a.mutate(void 0,{onSuccess:()=>M.success(s("settings.jira.disconnected")),onError:P=>M.error(U(P,s("settings.jira.saveFailed")))}),e[29]=a,e[30]=s,e[31]=h):h=e[31];let C;e[32]!==s?(C=s("settings.jira.disconnect"),e[32]=s,e[33]=C):C=e[33];let k;e[34]!==h||e[35]!==C?(k=l.jsx(De,{onClick:h,children:C}),e[34]=h,e[35]=C,e[36]=k):k=e[36];let _;e[37]!==y||e[38]!==k?(_=l.jsxs(Ee,{children:[y,k]}),e[37]=y,e[38]=k,e[39]=_):_=e[39];let T;e[40]!==j||e[41]!==_?(T=l.jsxs(Fe,{children:[j,_]}),e[40]=j,e[41]=_,e[42]=T):T=e[42];let S;e[43]!==n||e[44]!==T?(S=l.jsx(Me,{open:n,onOpenChange:r,children:T}),e[43]=n,e[44]=T,e[45]=S):S=e[45];let w;return e[46]!==o||e[47]!==S||e[48]!==f||e[49]!==u?(w=l.jsxs(ae,{title:o,actions:f,children:[u,S]}),e[46]=o,e[47]=S,e[48]=f,e[49]=u,e[50]=w):w=e[50],w}function dt(){const t=D.c(4),e=Qe();if(e.isPending){let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(xe,{className:"h-40 w-full"}),t[0]=s):s=t[0],s}if(!e.data){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(tt,{}),t[1]=s):s=t[1],s}let i;return t[2]!==e.data?(i=l.jsxs(l.Fragment,{children:[l.jsx(ct,{integration:e.data}),l.jsx(nt,{integration:e.data}),l.jsx(ot,{integration:e.data})]}),t[2]=e.data,t[3]=i):i=t[3],i}function mt(){const t=D.c(18),e=z();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=l.jsx(le.Title,{children:i}),t[2]=i,t[3]=s):s=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(ze,{size:18}),t[4]=a):a=t[4];let n;t[5]!==e?(n=e("settings.jira.sectionTitle"),t[5]=e,t[6]=n):n=t[6];let r;t[7]!==n?(r=l.jsxs("span",{className:"flex items-center gap-2",children:[a,n]}),t[7]=n,t[8]=r):r=t[8];let o;t[9]!==e?(o=e("settings.jira.pageDescription"),t[9]=e,t[10]=o):o=t[10];let g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("div",{className:"flex flex-col gap-8",children:l.jsx(dt,{})}),t[11]=g):g=t[11];let c;t[12]!==r||t[13]!==o?(c=l.jsx(Oe,{title:r,description:o,children:g}),t[12]=r,t[13]=o,t[14]=c):c=t[14];let f;return t[15]!==s||t[16]!==c?(f=l.jsx(le,{children:l.jsx(le.Content,{children:l.jsx(le.Body,{children:l.jsxs(Ke,{children:[s,c]})})})}),t[15]=s,t[16]=c,t[17]=f):f=t[17],f}function es(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(Je,{capability:"org:manage",area:"settings",children:l.jsx(mt,{})}),t[0]=e):e=t[0],e}export{es as default};
1
+ import{c as D,r as W,j as l,m as te,B as H,F as X,K as Z,n as oe,o as ce,e as de,b as z,t as M}from"./index-DLyxjIYw.js";import{I as se}from"./input-BH7zyD0i.js";import{i as ge}from"./Check-BXav60Vy.js";import{i as pe}from"./ChevronSelectorVertical-CvdZht1v.js";import{b as be,C as ye,a as Se,c as ve,d as Ne,e as Ce}from"./command-CckioSee.js";import{a as we,P as ke,b as _e}from"./popover-9hL99Gs4.js";import{S as xe}from"./skeleton-CfDgtd5M.js";import{S as me}from"./switch-BCRtcgA0.js";import{c as Te,d as Ie,b as Pe,f as Ae,g as De,e as Ee,a as Fe,A as Me}from"./alert-dialog-BOUVk-xM.js";import{S as Re,a as $e,b as qe,c as Be,d as fe}from"./select-BhNhFGIm.js";import{P as le}from"./index-D-cW_7z2.js";import{c as Ke,S as Oe}from"./settings-section-BIT7uWjs.js";import{u as ee}from"./studio-tools-ThQ_rcsF.js";import{t as Le}from"./cards-BIJ-5lG1.js";import{R as Je}from"./require-capability-daZd2Avq.js";import"./index-AXIuo6hf.js";import"./dialog-U03ZiuXk.js";import"./X-DY9FeXqi.js";import"./SearchMd-xpLLk_pA.js";import"./tooltip-B-y9isox.js";import"./ChevronDown-CauLatdX.js";import"./ChevronUp-D_tIdiJb.js";import"./sidebar-_myHCEzH.js";import"./LayoutLeft-BEpfII_o.js";import"./use-mobile-H1cEPaVS.js";import"./card-CKXxuGX6.js";import"./ArrowUpRight-M9WAVHfb.js";import"./DotsVertical-fn24sGZC.js";import"./Download01-D3eJDAEO.js";import"./Share07-Caa0Im56.js";import"./Globe01-DdUoMsv3.js";import"./Key01-Cfe0Tudx.js";import"./Palette-aeV8tQ28.js";import"./Trash01-BnQQflAa.js";import"./Zap-DDihnv3P.js";import"./dropdown-menu-BmoCpvnT.js";import"./ChevronRight-BGcGReEM.js";import"./file-type-icon-DNO6EG6W.js";import"./Eye-BhHZY2CZ.js";import"./use-capability-DxO7qy1z.js";import"./access-gate-wLBW4P-Z.js";import"./capability-load-error-BasK1UyG.js";function Ue(t){const e=D.c(36),{options:i,value:s,onChange:a,placeholder:n,triggerClassName:r,contentClassName:o,width:g,renderTrigger:c,renderItem:f,emptyMessage:d,searchPlaceholder:m,filter:u}=t,p=n===void 0?"Select...":n,x=g===void 0?"w-[200px]":g,v=d===void 0?"No results found.":d,b=m===void 0?"Search...":m;let j;e[0]!==s?(j=R=>R.value===s,e[0]=s,e[1]=j):j=e[1];const N=i.find(j),[y,h]=W.useState(!1),C=ke,k=we,_=!0,T=c?l.jsx("div",{className:te("cursor-pointer",r),children:c(N)}):l.jsxs(H,{variant:"outline",role:"combobox",className:te("justify-between",x,r),children:[N?N.label:p,l.jsx(pe,{className:"opacity-50"})]});let S;e[2]!==k||e[3]!==T?(S=l.jsx(k,{asChild:_,children:T}),e[2]=k,e[3]=T,e[4]=S):S=e[4];let w;e[5]!==o?(w=te("p-0",o),e[5]=o,e[6]=w):w=e[6];let P;e[7]===Symbol.for("react.memo_cache_sentinel")?(P={width:"var(--radix-popover-trigger-width)"},e[7]=P):P=e[7];let A;e[8]!==b?(A=l.jsx(ye,{placeholder:b,className:"h-9"}),e[8]=b,e[9]=A):A=e[9];let E;e[10]!==v?(E=l.jsx(Se,{children:v}),e[10]=v,e[11]=E):E=e[11];let I;e[12]!==a||e[13]!==i||e[14]!==f||e[15]!==h||e[16]!==s?(I=i.map(R=>{const L=s===R.value;return l.jsx(be,{value:R.label,onSelect:V=>{const J=i.find(G=>G.label===V)?.value;a(J===s?"":J??""),h(!1)},children:f?f(R,L):l.jsxs(l.Fragment,{children:[R.label,l.jsx(ge,{className:te("ml-auto",L?"opacity-100":"opacity-0")})]})},R.value)}),e[12]=a,e[13]=i,e[14]=f,e[15]=h,e[16]=s,e[17]=I):I=e[17];let $;e[18]!==I?($=l.jsx(ve,{children:I}),e[18]=I,e[19]=$):$=e[19];let q;e[20]!==E||e[21]!==$?(q=l.jsxs(Ne,{children:[E,$]}),e[20]=E,e[21]=$,e[22]=q):q=e[22];let O;e[23]!==u||e[24]!==A||e[25]!==q?(O=l.jsxs(Ce,{filter:u,children:[A,q]}),e[23]=u,e[24]=A,e[25]=q,e[26]=O):O=e[26];let B;e[27]!==O||e[28]!==w?(B=l.jsx(_e,{className:w,style:P,children:O}),e[27]=O,e[28]=w,e[29]=B):B=e[29];let K;return e[30]!==C||e[31]!==y||e[32]!==h||e[33]!==B||e[34]!==S?(K=l.jsxs(C,{open:y,onOpenChange:h,children:[S,B]}),e[30]=C,e[31]=y,e[32]=h,e[33]=B,e[34]=S,e[35]=K):K=e[35],K}function ze(t){const e=D.c(4),{size:i,className:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.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]=a):a=e[0];let n;return e[1]!==s||e[2]!==i?(n=l.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"#2684FF","aria-hidden":"true",className:s,children:a}),e[1]=s,e[2]=i,e[3]=n):n=e[3],n}function je(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}=je(t);return[e,i,`#${t.id}`].filter(Boolean).join(" ")}function ue(t){return t.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function Ge(t,e){const i=ue(e).trim();if(!i)return 1;const s=ue(t);return i.split(/\s+/).every(a=>s.includes(a))?1:0}function Qe(){const t=D.c(7),{org:e}=X(),i=ee();let s;t[0]!==e.id?(s=Z.jiraIntegration(e.id),t[0]=e.id,t[1]=s):s=t[1];let a;t[2]!==i?(a=async()=>(await i.call("JIRA_INTEGRATION_GET",{})).integration,t[2]=i,t[3]=a):a=t[3];let n;return t[4]!==s||t[5]!==a?(n={queryKey:s,queryFn:a},t[4]=s,t[5]=a,t[6]=n):n=t[6],oe(n)}function ne(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=async o=>(await i.call("JIRA_INTEGRATION_UPSERT",o)).integration,t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}function He(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=()=>i.call("JIRA_INTEGRATION_DELETE",{}),t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}function Ye(t){const e=D.c(8),{org:i}=X(),s=ee();let a;e[0]!==i.id?(a=Z.jiraBoards(i.id),e[0]=i.id,e[1]=a):a=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]!==a||e[6]!==n?(r={queryKey:a,enabled:t,staleTime:6e4,queryFn:n},e[4]=t,e[5]=a,e[6]=n,e[7]=r):r=e[7],oe(r)}function We(t){const e=D.c(10),{org:i}=X(),s=ee();let a;e[0]!==t||e[1]!==i.id?(a=Z.jiraBoardColumns(i.id,t??""),e[0]=t,e[1]=i.id,e[2]=a):a=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]!==a||e[7]!==n||e[8]!==r?(o={queryKey:a,enabled:n,staleTime:6e4,queryFn:r},e[6]=a,e[7]=n,e[8]=r,e[9]=o):o=e[9],oe(o)}function Xe(){const t=D.c(8),{org:e}=X(),i=ee(),s=ce();let a;t[0]!==i?(a=async()=>(await i.call("JIRA_SYNC_RUN",{})).result,t[0]=i,t[1]=a):a=t[1];let n;t[2]!==e||t[3]!==s?(n=()=>s.invalidateQueries({queryKey:Z.jiraIntegration(e.id)}),t[2]=e,t[3]=s,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r={mutationFn:a,onSettled:n},t[5]=a,t[6]=n,t[7]=r):r=t[7],de(r)}const Ze=[{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:"done",labelKey:"taskBoard.config.statusDone"},{value:"archived",labelKey:"taskBoard.config.statusArchived"}],re="__dont_sync__";function U(t,e){return t instanceof Error?t.message:e}const et="https://id.atlassian.com/manage-profile/security/api-tokens";function ae(t){const e=D.c(15),{title:i,description:s,actions:a,children:n}=t;let r;e[0]!==i?(r=l.jsx("h3",{className:"text-sm font-medium leading-tight",children:i}),e[0]=i,e[1]=r):r=e[1];let o;e[2]!==s?(o=s&&l.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:s}),e[2]=s,e[3]=o):o=e[3];let g;e[4]!==r||e[5]!==o?(g=l.jsxs("div",{className:"min-w-0 flex flex-col gap-0.5",children:[r,o]}),e[4]=r,e[5]=o,e[6]=g):g=e[6];let c;e[7]!==a?(c=a&&l.jsx("div",{className:"shrink-0",children:a}),e[7]=a,e[8]=c):c=e[8];let f;e[9]!==g||e[10]!==c?(f=l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g,c]}),e[9]=g,e[10]=c,e[11]=f):f=e[11];let d;return e[12]!==n||e[13]!==f?(d=l.jsxs("section",{className:"flex flex-col gap-3",children:[f,n]}),e[12]=n,e[13]=f,e[14]=d):d=e[14],d}function he(t){const e=D.c(7),{stepKeys:i}=t,s=z();let a;if(e[0]!==i||e[1]!==s){let r;e[3]!==s?(r=o=>l.jsx("li",{children:s(o)},o),e[3]=s,e[4]=r):r=e[4],a=i.map(r),e[0]=i,e[1]=s,e[2]=a}else a=e[2];let n;return e[5]!==a?(n=l.jsx("ol",{className:"list-decimal pl-5 flex flex-col gap-1 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=n):n=e[6],n}function tt(){const t=D.c(54),e=z(),i=ne(),[s,a]=W.useState(""),[n,r]=W.useState(""),[o,g]=W.useState("");let c;t[0]!==o||t[1]!==n||t[2]!==s?(c=s.trim()!==""&&n.trim()!==""&&o.trim()!=="",t[0]=o,t[1]=n,t[2]=s,t[3]=c):c=t[3];const f=c;let d;t[4]!==e?(d=e("settings.jira.connectTitle"),t[4]=e,t[5]=d):d=t[5];let m;t[6]!==e?(m=e("settings.jira.connectDescription"),t[6]=e,t[7]=m):m=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(he,{stepKeys:["settings.jira.connectStep1","settings.jira.connectStep2","settings.jira.connectStep3"]}),t[8]=u):u=t[8];let p;t[9]!==e?(p=e("settings.jira.createTokenLink"),t[9]=e,t[10]=p):p=t[10];let x;t[11]!==p?(x=l.jsxs("a",{href:et,target:"_blank",rel:"noreferrer",className:"text-xs text-foreground hover:underline w-fit",children:[p," ↗"]}),t[11]=p,t[12]=x):x=t[12];let v;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=I=>a(I.target.value),t[13]=v):v=t[13];let b;t[14]!==e?(b=e("settings.jira.sitePlaceholder"),t[14]=e,t[15]=b):b=t[15];let j;t[16]!==s||t[17]!==b?(j=l.jsx(se,{value:s,onChange:v,placeholder:b,autoComplete:"off"}),t[16]=s,t[17]=b,t[18]=j):j=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=I=>r(I.target.value),t[19]=N):N=t[19];let y;t[20]!==e?(y=e("settings.jira.emailPlaceholder"),t[20]=e,t[21]=y):y=t[21];let h;t[22]!==n||t[23]!==y?(h=l.jsx(se,{value:n,onChange:N,placeholder:y,autoComplete:"off"}),t[22]=n,t[23]=y,t[24]=h):h=t[24];let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=I=>g(I.target.value),t[25]=C):C=t[25];let k;t[26]!==e?(k=e("settings.jira.tokenPlaceholder"),t[26]=e,t[27]=k):k=t[27];let _;t[28]!==o||t[29]!==k?(_=l.jsx(se,{type:"password",value:o,onChange:C,placeholder:k,autoComplete:"off"}),t[28]=o,t[29]=k,t[30]=_):_=t[30];const T=!f||i.isPending;let S;t[31]!==o||t[32]!==n||t[33]!==s||t[34]!==e||t[35]!==i?(S=()=>i.mutate({siteUrl:s.trim(),email:n.trim(),apiToken:o.trim()},{onSuccess:()=>M.success(e("settings.jira.connected")),onError:I=>M.error(U(I,e("settings.jira.connectFailed")))}),t[31]=o,t[32]=n,t[33]=s,t[34]=e,t[35]=i,t[36]=S):S=t[36];let w;t[37]!==e||t[38]!==i.isPending?(w=i.isPending?e("settings.jira.connecting"):e("settings.jira.connect"),t[37]=e,t[38]=i.isPending,t[39]=w):w=t[39];let P;t[40]!==T||t[41]!==S||t[42]!==w?(P=l.jsx("div",{children:l.jsx(H,{disabled:T,onClick:S,children:w})}),t[40]=T,t[41]=S,t[42]=w,t[43]=P):P=t[43];let A;t[44]!==h||t[45]!==_||t[46]!==P||t[47]!==x||t[48]!==j?(A=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-3 max-w-lg",children:[u,x,j,h,_,P]}),t[44]=h,t[45]=_,t[46]=P,t[47]=x,t[48]=j,t[49]=A):A=t[49];let E;return t[50]!==d||t[51]!==A||t[52]!==m?(E=l.jsx(ae,{title:d,description:m,children:A}),t[50]=d,t[51]=A,t[52]=m,t[53]=E):E=t[53],E}function st(t){const e=D.c(7),{integration:i}=t,s=z();if(i.lastSyncError){let r;return e[0]!==i.lastSyncError?(r=l.jsx("p",{className:"text-xs text-destructive truncate",children:i.lastSyncError}),e[0]=i.lastSyncError,e[1]=r):r=e[1],r}let a;e[2]!==i.lastSyncedAt||e[3]!==s?(a=i.lastSyncedAt?s("settings.jira.lastSynced",{ago:Le(i.lastSyncedAt)}):s("settings.jira.waitingFirstSync"),e[2]=i.lastSyncedAt,e[3]=s,e[4]=a):a=e[4];let n;return e[5]!==a?(n=l.jsx("p",{className:"text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=n):n=e[6],n}function it(t){const e=D.c(23),{integration:i}=t,s=z(),a=ne(),n=We(i.boardId);if(n.isPending){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(xe,{className:"h-24 w-full"}),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=l.jsx("p",{className:"text-xs text-destructive",children:d}),e[4]=d,e[5]=m):m=e[5],m}let r;e[6]!==i.statusMapping||e[7]!==s||e[8]!==a?(r=function(m,u){const p={...i.statusMapping};for(const x of m)u===re?delete p[x]:p[x]=u;a.mutate({statusMapping:p},{onError:x=>M.error(U(x,s("settings.jira.saveFailed")))})},e[6]=i.statusMapping,e[7]=s,e[8]=a,e[9]=r):r=e[9];const o=r;let g;e[10]!==n.data?(g=n.data??[],e[10]=n.data,e[11]=g):g=e[11];let c;if(e[12]!==i.statusMapping||e[13]!==o||e[14]!==s||e[15]!==g){let d;e[17]!==i.statusMapping||e[18]!==o||e[19]!==s?(d=m=>l.jsxs("div",{className:"flex items-center justify-between gap-4 py-2.5 border-b border-border/60 last:border-b-0",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("span",{className:"text-sm truncate",children:m.name}),(m.statuses.length>1||m.statuses[0]!==m.name)&&l.jsx("p",{className:"text-xs text-muted-foreground truncate",children:m.statuses.join(", ")})]}),l.jsxs(Re,{value:(m.statuses[0]&&i.statusMapping[m.statuses[0]])??re,onValueChange:u=>o(m.statuses,u),children:[l.jsx($e,{className:"w-44 shrink-0",children:l.jsx(qe,{})}),l.jsxs(Be,{children:[l.jsx(fe,{value:re,children:s("settings.jira.dontSync")}),Ze.map(u=>l.jsx(fe,{value:u.value,children:s(u.labelKey)},u.value))]})]})]},m.name),e[17]=i.statusMapping,e[18]=o,e[19]=s,e[20]=d):d=e[20],c=g.map(d),e[12]=i.statusMapping,e[13]=o,e[14]=s,e[15]=g,e[16]=c}else c=e[16];let f;return e[21]!==c?(f=l.jsx("div",{className:"flex flex-col",children:c}),e[21]=c,e[22]=f):f=e[22],f}function lt(t){const e=D.c(33),{integration:i}=t,s=z(),a=ne(),[n,r]=W.useState(i.jqlFilter??"");let o;e[0]!==n?(o=n.trim(),e[0]=n,e[1]=o):o=e[1];const g=o!==(i.jqlFilter??"");let c;e[2]!==s?(c=s("settings.jira.jqlLabel"),e[2]=s,e[3]=c):c=e[3];let f;e[4]!==c?(f=l.jsx("p",{className:"text-sm font-medium",children:c}),e[4]=c,e[5]=f):f=e[5];let d;e[6]!==s?(d=s("settings.jira.jqlDescription"),e[6]=s,e[7]=d):d=e[7];let m;e[8]!==d?(m=l.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[8]=d,e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=C=>r(C.target.value),e[10]=u):u=e[10];let p;e[11]!==s?(p=s("settings.jira.jqlPlaceholder"),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==p||e[14]!==n?(x=l.jsx(se,{value:n,onChange:u,placeholder:p,className:"font-mono text-xs"}),e[13]=p,e[14]=n,e[15]=x):x=e[15];const v=!g||a.isPending;let b;e[16]!==s||e[17]!==a||e[18]!==n?(b=()=>a.mutate({jqlFilter:n.trim()===""?null:n.trim()},{onSuccess:()=>M.success(s("settings.jira.jqlSaved")),onError:C=>M.error(U(C,s("settings.jira.saveFailed")))}),e[16]=s,e[17]=a,e[18]=n,e[19]=b):b=e[19];let j;e[20]!==s?(j=s("settings.jira.jqlSave"),e[20]=s,e[21]=j):j=e[21];let N;e[22]!==b||e[23]!==j||e[24]!==v?(N=l.jsx(H,{variant:"outline",size:"sm",className:"shrink-0",disabled:v,onClick:b,children:j}),e[22]=b,e[23]=j,e[24]=v,e[25]=N):N=e[25];let y;e[26]!==N||e[27]!==x?(y=l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[x,N]}),e[26]=N,e[27]=x,e[28]=y):y=e[28];let h;return e[29]!==y||e[30]!==f||e[31]!==m?(h=l.jsxs("div",{className:"flex flex-col gap-1",children:[f,m,y]}),e[29]=y,e[30]=f,e[31]=m,e[32]=h):h=e[32],h}function nt(t){const e=D.c(102),{integration:i}=t,s=z(),a=ne(),n=Xe(),r=Ye(!0);let o;e[0]!==i.statusMapping?(o=Object.keys(i.statusMapping),e[0]=i.statusMapping,e[1]=o):o=e[1];const g=o.length>0;let c,f;e[2]!==r.data||e[3]!==i.boardId||e[4]!==i.boardName?(c=(r.data??[]).map(rt),f=i.boardId?c.find(F=>F.value===i.boardId)?.primary??i.boardName??i.boardId:null,e[2]=r.data,e[3]=i.boardId,e[4]=i.boardName,e[5]=c,e[6]=f):(c=e[5],f=e[6]);const d=f;let m;e[7]!==s?(m=s("settings.jira.syncTitle"),e[7]=s,e[8]=m):m=e[8];let u;e[9]!==s?(u=s("settings.jira.syncDescription"),e[9]=s,e[10]=u):u=e[10];let p;e[11]!==s?(p=s("settings.jira.boardLabel"),e[11]=s,e[12]=p):p=e[12];let x;e[13]!==p?(x=l.jsx("p",{className:"text-sm font-medium",children:p}),e[13]=p,e[14]=x):x=e[14];let v;e[15]!==s?(v=s("settings.jira.boardDescription"),e[15]=s,e[16]=v):v=e[16];let b;e[17]!==v?(b=l.jsx("p",{className:"text-xs text-muted-foreground",children:v}),e[17]=v,e[18]=b):b=e[18];let j;e[19]!==x||e[20]!==b?(j=l.jsxs("div",{className:"min-w-0",children:[x,b]}),e[19]=x,e[20]=b,e[21]=j):j=e[21];const N=i.boardId??"";let y;e[22]!==s?(y=s("settings.jira.boardPlaceholder"),e[22]=s,e[23]=y):y=e[23];let h;e[24]!==s?(h=s("settings.jira.boardSearchPlaceholder"),e[24]=s,e[25]=h):h=e[25];let C;e[26]!==r.isPending||e[27]!==s?(C=r.isPending?s("settings.jira.loadingBoards"):s("settings.jira.noBoardsMatch"),e[26]=r.isPending,e[27]=s,e[28]=C):C=e[28];let k;e[29]!==d||e[30]!==s?(k=()=>l.jsxs(H,{variant:"outline",role:"combobox",className:"w-72 justify-between font-normal",children:[l.jsx("span",{className:"truncate",children:d??s("settings.jira.boardPlaceholder")}),l.jsx(pe,{className:"opacity-50 shrink-0"})]}),e[29]=d,e[30]=s,e[31]=k):k=e[31];let _;e[32]!==c||e[33]!==i.boardId||e[34]!==s||e[35]!==a?(_=F=>{!F||F===i.boardId||a.mutate({boardId:F,boardName:c.find(Q=>Q.value===F)?.primary??null,statusMapping:{},enabled:!1},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})},e[32]=c,e[33]=i.boardId,e[34]=s,e[35]=a,e[36]=_):_=e[36];let T;e[37]!==c||e[38]!==N||e[39]!==y||e[40]!==h||e[41]!==C||e[42]!==k||e[43]!==_?(T=l.jsx(Ue,{options:c,value:N,width:"w-72",triggerClassName:"shrink-0",placeholder:y,searchPlaceholder:h,filter:Ge,emptyMessage:C,renderTrigger:k,renderItem:at,onChange:_}),e[37]=c,e[38]=N,e[39]=y,e[40]=h,e[41]=C,e[42]=k,e[43]=_,e[44]=T):T=e[44];let S;e[45]!==T||e[46]!==j?(S=l.jsxs("div",{className:"flex items-center justify-between gap-4",children:[j,T]}),e[45]=T,e[46]=j,e[47]=S):S=e[47];let w;e[48]!==i||e[49]!==s?(w=i.boardId&&l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("p",{className:"text-sm font-medium",children:s("settings.jira.mappingLabel")}),l.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.jira.mappingDescription")}),l.jsx(it,{integration:i})]}),e[48]=i,e[49]=s,e[50]=w):w=e[50];let P;e[51]!==i?(P=i.boardId&&l.jsx(lt,{integration:i}),e[51]=i,e[52]=P):P=e[52];let A;e[53]!==i.autoDelegate||e[54]!==i.boardId||e[55]!==s||e[56]!==a?(A=i.boardId&&l.jsxs("div",{className:"flex items-center justify-between gap-4",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:"text-sm font-medium",children:s("settings.jira.autoDelegateLabel")}),l.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.jira.autoDelegateDescription")})]}),l.jsx(me,{checked:i.autoDelegate,disabled:a.isPending,onCheckedChange:F=>a.mutate({autoDelegate:F},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})})]}),e[53]=i.autoDelegate,e[54]=i.boardId,e[55]=s,e[56]=a,e[57]=A):A=e[57];let E;e[58]!==s?(E=s("settings.jira.enableLabel"),e[58]=s,e[59]=E):E=e[59];let I;e[60]!==E?(I=l.jsx("p",{className:"text-sm font-medium",children:E}),e[60]=E,e[61]=I):I=e[61];let $;e[62]!==i?($=l.jsx(st,{integration:i}),e[62]=i,e[63]=$):$=e[63];let q;e[64]!==I||e[65]!==$?(q=l.jsxs("div",{className:"min-w-0 flex flex-col gap-0.5",children:[I,$]}),e[64]=I,e[65]=$,e[66]=q):q=e[66];const O=!i.enabled||n.isPending;let B;e[67]!==n||e[68]!==s?(B=()=>n.mutate(void 0,{onSuccess:F=>{"error"in F?M.error(F.error):M.success(s("settings.jira.syncDone",{created:String(F.created),updated:String(F.updated)}))},onError:F=>M.error(U(F,s("settings.jira.syncFailed")))}),e[67]=n,e[68]=s,e[69]=B):B=e[69];let K;e[70]!==n.isPending||e[71]!==s?(K=n.isPending?s("settings.jira.syncing"):s("settings.jira.syncNow"),e[70]=n.isPending,e[71]=s,e[72]=K):K=e[72];let R;e[73]!==O||e[74]!==B||e[75]!==K?(R=l.jsx(H,{variant:"outline",size:"sm",disabled:O,onClick:B,children:K}),e[73]=O,e[74]=B,e[75]=K,e[76]=R):R=e[76];let L;e[77]!==g||e[78]!==i.boardId||e[79]!==s||e[80]!==a?(L=F=>{if(F&&(!i.boardId||!g)){M.error(s("settings.jira.enableRequirements"));return}a.mutate({enabled:F},{onError:Q=>M.error(U(Q,s("settings.jira.saveFailed")))})},e[77]=g,e[78]=i.boardId,e[79]=s,e[80]=a,e[81]=L):L=e[81];let V;e[82]!==i.enabled||e[83]!==L||e[84]!==a.isPending?(V=l.jsx(me,{checked:i.enabled,disabled:a.isPending,onCheckedChange:L}),e[82]=i.enabled,e[83]=L,e[84]=a.isPending,e[85]=V):V=e[85];let J;e[86]!==R||e[87]!==V?(J=l.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[R,V]}),e[86]=R,e[87]=V,e[88]=J):J=e[88];let G;e[89]!==q||e[90]!==J?(G=l.jsxs("div",{className:"flex items-center justify-between gap-4 border-t border-border/60 pt-4",children:[q,J]}),e[89]=q,e[90]=J,e[91]=G):G=e[91];let Y;e[92]!==S||e[93]!==w||e[94]!==P||e[95]!==A||e[96]!==G?(Y=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-5",children:[S,w,P,A,G]}),e[92]=S,e[93]=w,e[94]=P,e[95]=A,e[96]=G,e[97]=Y):Y=e[97];let ie;return e[98]!==m||e[99]!==Y||e[100]!==u?(ie=l.jsx(ae,{title:m,description:u,children:Y}),e[98]=m,e[99]=Y,e[100]=u,e[101]=ie):ie=e[101],ie}function at(t,e){return l.jsxs("div",{className:"flex items-start gap-2 min-w-0 w-full",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("p",{className:"truncate",children:t.primary}),l.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.secondary})]}),l.jsx(ge,{className:te("mt-0.5 shrink-0",e?"opacity-100":"opacity-0")})]})}function rt(t){const{primary:e,secondary:i}=je(t);return{value:String(t.id),label:Ve(t),primary:e,secondary:i}}function ot(t){const e=D.c(24),{integration:i}=t,s=z(),a=`${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]!==a?(o=l.jsx(se,{readOnly:!0,value:a,className:"font-mono text-xs"}),e[4]=a,e[5]=o):o=e[5];let g;e[6]!==s||e[7]!==a?(g=()=>{navigator.clipboard.writeText(a),M.success(s("settings.jira.webhookCopied"))},e[6]=s,e[7]=a,e[8]=g):g=e[8];let c;e[9]!==s?(c=s("settings.jira.webhookCopy"),e[9]=s,e[10]=c):c=e[10];let f;e[11]!==g||e[12]!==c?(f=l.jsx(H,{variant:"outline",size:"sm",className:"shrink-0",onClick:g,children:c}),e[11]=g,e[12]=c,e[13]=f):f=e[13];let d;e[14]!==o||e[15]!==f?(d=l.jsxs("div",{className:"flex items-center gap-2",children:[o,f]}),e[14]=o,e[15]=f,e[16]=d):d=e[16];let m;e[17]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(he,{stepKeys:["settings.jira.webhookStep1","settings.jira.webhookStep2","settings.jira.webhookStep3","settings.jira.webhookStep4","settings.jira.webhookStep5"]}),e[17]=m):m=e[17];let u;e[18]!==d?(u=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background p-5 flex flex-col gap-4",children:[d,m]}),e[18]=d,e[19]=u):u=e[19];let p;return e[20]!==n||e[21]!==r||e[22]!==u?(p=l.jsx(ae,{title:n,description:r,children:u}),e[20]=n,e[21]=r,e[22]=u,e[23]=p):p=e[23],p}function ct(t){const e=D.c(51),{integration:i}=t,s=z(),a=He(),[n,r]=W.useState(!1);let o;e[0]!==s?(o=s("settings.jira.connectionTitle"),e[0]=s,e[1]=o):o=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=()=>r(!0),e[2]=g):g=e[2];let c;e[3]!==s?(c=s("settings.jira.disconnect"),e[3]=s,e[4]=c):c=e[4];let f;e[5]!==c?(f=l.jsx(H,{variant:"outline",size:"sm",onClick:g,children:c}),e[5]=c,e[6]=f):f=e[6];let d;e[7]!==i.siteUrl?(d=l.jsx("p",{className:"text-sm font-medium truncate",children:i.siteUrl}),e[7]=i.siteUrl,e[8]=d):d=e[8];let m;e[9]!==i.email?(m=l.jsx("p",{className:"text-xs mt-0.5 truncate text-muted-foreground",children:i.email}),e[9]=i.email,e[10]=m):m=e[10];let u;e[11]!==d||e[12]!==m?(u=l.jsxs("div",{className:"rounded-2xl border border-border/60 bg-background px-5 py-4",children:[d,m]}),e[11]=d,e[12]=m,e[13]=u):u=e[13];let p;e[14]!==s?(p=s("settings.jira.disconnectTitle"),e[14]=s,e[15]=p):p=e[15];let x;e[16]!==p?(x=l.jsx(Te,{children:p}),e[16]=p,e[17]=x):x=e[17];let v;e[18]!==s?(v=s("settings.jira.disconnectDescription"),e[18]=s,e[19]=v):v=e[19];let b;e[20]!==v?(b=l.jsx(Ie,{children:v}),e[20]=v,e[21]=b):b=e[21];let j;e[22]!==b||e[23]!==x?(j=l.jsxs(Pe,{children:[x,b]}),e[22]=b,e[23]=x,e[24]=j):j=e[24];let N;e[25]!==s?(N=s("settings.jira.cancel"),e[25]=s,e[26]=N):N=e[26];let y;e[27]!==N?(y=l.jsx(Ae,{children:N}),e[27]=N,e[28]=y):y=e[28];let h;e[29]!==a||e[30]!==s?(h=()=>a.mutate(void 0,{onSuccess:()=>M.success(s("settings.jira.disconnected")),onError:P=>M.error(U(P,s("settings.jira.saveFailed")))}),e[29]=a,e[30]=s,e[31]=h):h=e[31];let C;e[32]!==s?(C=s("settings.jira.disconnect"),e[32]=s,e[33]=C):C=e[33];let k;e[34]!==h||e[35]!==C?(k=l.jsx(De,{onClick:h,children:C}),e[34]=h,e[35]=C,e[36]=k):k=e[36];let _;e[37]!==y||e[38]!==k?(_=l.jsxs(Ee,{children:[y,k]}),e[37]=y,e[38]=k,e[39]=_):_=e[39];let T;e[40]!==j||e[41]!==_?(T=l.jsxs(Fe,{children:[j,_]}),e[40]=j,e[41]=_,e[42]=T):T=e[42];let S;e[43]!==n||e[44]!==T?(S=l.jsx(Me,{open:n,onOpenChange:r,children:T}),e[43]=n,e[44]=T,e[45]=S):S=e[45];let w;return e[46]!==o||e[47]!==S||e[48]!==f||e[49]!==u?(w=l.jsxs(ae,{title:o,actions:f,children:[u,S]}),e[46]=o,e[47]=S,e[48]=f,e[49]=u,e[50]=w):w=e[50],w}function dt(){const t=D.c(4),e=Qe();if(e.isPending){let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(xe,{className:"h-40 w-full"}),t[0]=s):s=t[0],s}if(!e.data){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(tt,{}),t[1]=s):s=t[1],s}let i;return t[2]!==e.data?(i=l.jsxs(l.Fragment,{children:[l.jsx(ct,{integration:e.data}),l.jsx(nt,{integration:e.data}),l.jsx(ot,{integration:e.data})]}),t[2]=e.data,t[3]=i):i=t[3],i}function mt(){const t=D.c(18),e=z();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=l.jsx(le.Title,{children:i}),t[2]=i,t[3]=s):s=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(ze,{size:18}),t[4]=a):a=t[4];let n;t[5]!==e?(n=e("settings.jira.sectionTitle"),t[5]=e,t[6]=n):n=t[6];let r;t[7]!==n?(r=l.jsxs("span",{className:"flex items-center gap-2",children:[a,n]}),t[7]=n,t[8]=r):r=t[8];let o;t[9]!==e?(o=e("settings.jira.pageDescription"),t[9]=e,t[10]=o):o=t[10];let g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("div",{className:"flex flex-col gap-8",children:l.jsx(dt,{})}),t[11]=g):g=t[11];let c;t[12]!==r||t[13]!==o?(c=l.jsx(Oe,{title:r,description:o,children:g}),t[12]=r,t[13]=o,t[14]=c):c=t[14];let f;return t[15]!==s||t[16]!==c?(f=l.jsx(le,{children:l.jsx(le.Content,{children:l.jsx(le.Body,{children:l.jsxs(Ke,{children:[s,c]})})})}),t[15]=s,t[16]=c,t[17]=f):f=t[17],f}function es(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(Je,{capability:"org:manage",area:"settings",children:l.jsx(mt,{})}),t[0]=e):e=t[0],e}export{es as default};
@@ -1 +1 @@
1
- import{c as o,m as l,j as n}from"./index-ChNbonqj.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{c as o,m as l,j as n}from"./index-DLyxjIYw.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1 +1 @@
1
- import{r as x,aJ as b,j as c,aG as m,aM as k,au as p,bJ as M,bK as T,aL as S,bI as A,aI as F,aR as $,c as P,m as C}from"./index-ChNbonqj.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[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":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[I]=F(v,[T]),w=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,R]=I(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});h.displayName=v;var[J,L]=I(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=w(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(J,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=L(f,a.__scopeToggleGroup),n=w(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),O=h,H=N;const K=$("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 q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=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]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,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]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(O,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(K({variant:o.variant||t,size:o.size||r}),"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]=r,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(H,{"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{q as T,Q as a};
1
+ import{r as x,aJ as b,j as c,aG as m,aM as k,au as p,bJ as M,bK as T,aL as S,bI as A,aI as F,aR as $,c as P,m as C}from"./index-DLyxjIYw.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[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":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[I]=F(v,[T]),w=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,R]=I(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...r,ref:e})})});h.displayName=v;var[J,L]=I(v),y=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=w(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(J,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=R(f,a.__scopeToggleGroup),s=L(f,a.__scopeToggleGroup),n=w(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=R(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),O=h,H=N;const K=$("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 q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=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]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,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]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(O,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(K({variant:o.variant||t,size:o.size||r}),"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]=r,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(H,{"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{q as T,Q as a};
@@ -1 +1 @@
1
- import{c as u,m as T,j as i,r as g,b as j,f as k,ac as p,L as N,aP as y,b5 as L}from"./index-ChNbonqj.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 R(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 _(){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(_,{})}),t[0]=e):e=t[0],e}function z(){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=R;m.Logo=E;m.LogoLink=z;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,m as T,j as i,r as g,b as j,f as k,ac as p,L as N,aP as y,b5 as L}from"./index-DLyxjIYw.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 R(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 _(){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(_,{})}),t[0]=e):e=t[0],e}function z(){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=R;m.Logo=E;m.LogoLink=z;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{r as a,j as c,aG as S,aN as J,aJ as Q,c_ as Z,aK as H,c$ as ee,aM as C,bL as $,d0 as te,d1 as G,d2 as oe,d3 as re,aI as ne,d4 as se,d5 as ae,c as j,m as ie}from"./index-ChNbonqj.js";var le=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ce="VisuallyHidden",V=a.forwardRef((o,e)=>c.jsx(S.span,{...o,ref:e,style:{...le,...o.style}}));V.displayName=ce;var ue=V,[O]=ne("Tooltip",[G]),D=G(),z="TooltipProvider",de=700,L="tooltip.open",[pe,k]=O(z),F=o=>{const{__scopeTooltip:e,delayDuration:t=de,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(pe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=z;var R="Tooltip",[fe,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),x=J(),f=a.useRef(0),h=l??i.disableHoverableContent,T=d??i.delayDuration,g=a.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:M=>{M?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),s?.(M)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),I=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(Z,{...p,children:c.jsx(fe,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?I():E()},[i.isOpenDelayedRef,I,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};Y.displayName=R;var A="TooltipTrigger",B=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=a.useRef(null),i=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(ee,{asChild:!0,...l,children:c.jsx(S.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var N="TooltipPortal",[ve,xe]=O(N,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return c.jsx(ve,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(te,{asChild:!0,container:n,children:r})})})};U.displayName=N;var b="TooltipContent",q=a.forwardRef((o,e)=>{const t=xe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx($,{present:r||l.open,children:l.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(he,{side:n,...s,ref:e})})}),he=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ye(y,g.getBoundingClientRect()),w=Ce(y,m),E=be(T.getBoundingClientRect()),P=Ee([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),T=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=i?.contains(g)||u?.contains(g),w=!we(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(K,{...o,ref:s})}),[ge,Te]=O(R,{isInside:!1}),me=se("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=D(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(re,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(me,{children:r}),c.jsx(ge,{scope:t,isInside:!0,children:c.jsx(ue,{id:i.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=b;var W="TooltipArrow",X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return Te(W,t).isInside?null:c.jsx(ae,{...n,...r,ref:e})});X.displayName=W;function ye(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ce(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function be(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function we(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ee(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Pe(e)}function Pe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Re=F,_e=Y,je=B,Oe=U,De=q,Le=X;function Ae(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Re,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ne(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ae,{children:c.jsx(_e,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(je,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Le,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Oe,{children:c.jsxs(De,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Ie as T,le as V,Me as a,Ae as b,Ne as c};
1
+ import{r as a,j as c,aG as S,aN as J,aJ as Q,c_ as Z,aK as H,c$ as ee,aM as C,bL as $,d0 as te,d1 as G,d2 as oe,d3 as re,aI as ne,d4 as se,d5 as ae,c as j,m as ie}from"./index-DLyxjIYw.js";var le=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ce="VisuallyHidden",V=a.forwardRef((o,e)=>c.jsx(S.span,{...o,ref:e,style:{...le,...o.style}}));V.displayName=ce;var ue=V,[O]=ne("Tooltip",[G]),D=G(),z="TooltipProvider",de=700,L="tooltip.open",[pe,k]=O(z),F=o=>{const{__scopeTooltip:e,delayDuration:t=de,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(pe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=z;var R="Tooltip",[fe,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),x=J(),f=a.useRef(0),h=l??i.disableHoverableContent,T=d??i.delayDuration,g=a.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:M=>{M?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),s?.(M)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),I=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(Z,{...p,children:c.jsx(fe,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?I():E()},[i.isOpenDelayedRef,I,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};Y.displayName=R;var A="TooltipTrigger",B=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=a.useRef(null),i=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(ee,{asChild:!0,...l,children:c.jsx(S.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var N="TooltipPortal",[ve,xe]=O(N,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return c.jsx(ve,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(te,{asChild:!0,container:n,children:r})})})};U.displayName=N;var b="TooltipContent",q=a.forwardRef((o,e)=>{const t=xe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx($,{present:r||l.open,children:l.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(he,{side:n,...s,ref:e})})}),he=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ye(y,g.getBoundingClientRect()),w=Ce(y,m),E=be(T.getBoundingClientRect()),P=Ee([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),T=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=i?.contains(g)||u?.contains(g),w=!we(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(K,{...o,ref:s})}),[ge,Te]=O(R,{isInside:!1}),me=se("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=D(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(re,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(me,{children:r}),c.jsx(ge,{scope:t,isInside:!0,children:c.jsx(ue,{id:i.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=b;var W="TooltipArrow",X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return Te(W,t).isInside?null:c.jsx(ae,{...n,...r,ref:e})});X.displayName=W;function ye(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ce(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function be(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function we(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ee(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Pe(e)}function Pe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Re=F,_e=Y,je=B,Oe=U,De=q,Le=X;function Ae(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Re,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ne(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ae,{children:c.jsx(_e,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(je,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Le,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Oe,{children:c.jsxs(De,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Ie as T,le as V,Me as a,Ae as b,Ne as c};
@@ -1 +1 @@
1
- import{q as _,T as l}from"./index-ChNbonqj.js";let s=!1;const p="report:auth-attempt:",f=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=d(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
1
+ import{q as _,T as l}from"./index-DLyxjIYw.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{bi as p,bj as t,a1 as v,Z as a,c5 as q,X as s,a2 as g,Y as u,aO as h,b7 as x,bg as O,c6 as fe,c7 as be,c8 as B,c9 as j,ca as ye,cb as ve,cc as $,cd as _e,ce as He,cf as Me,cg as ke,ch as Pe,ci as qe,cj as Te,ck as Ie,bv as Ee,cl as Le,cm as ze,cn as Ae,co as De,cp as Ue,cq as Ne,cr as Oe,bt as je,r as oe,c as V,j as y,cs as Be,ct as $e,p as Ve,v as Fe,m as se}from"./index-ChNbonqj.js";import{P as We}from"./use-mcp-client-DGiEqhWW.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{bi as p,bj as t,a1 as v,Z as a,c5 as q,X as s,a2 as g,Y as u,aO as h,b7 as x,bg as O,c6 as fe,c7 as be,c8 as B,c9 as j,ca as ye,cb as ve,cc as $,cd as _e,ce as He,cf as Me,cg as ke,ch as Pe,ci as qe,cj as Te,ck as Ie,bv as Ee,cl as Le,cm as ze,cn as Ae,co as De,cp as Ue,cq as Ne,cr as Oe,bt as je,r as oe,c as V,j as y,cs as Be,ct as $e,p as Ve,v as Fe,m as se}from"./index-DLyxjIYw.js";import{P as We}from"./use-mcp-client-_o9o88xf.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,F as m,K as h,n as y,x as R}from"./index-ChNbonqj.js";import{u as S,c as D}from"./studio-tools-9YEAucUH.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=m(),t=S();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=R(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=R(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function B(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function G(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 Y(o){const e=p.c(11),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=R(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{G as a,E as b,F as c,N as d,O as e,z as f,Y as g,C as i,b as p,B as u};
1
+ import{c as p,F as m,K as h,n as y,x as R}from"./index-DLyxjIYw.js";import{u as S,c as D}from"./studio-tools-ThQ_rcsF.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=m(),t=S();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=R(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=R(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function B(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function G(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 Y(o){const e=p.c(11),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=R(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{G as a,E as b,F as c,N as d,O as e,z as f,Y as g,C as i,b as p,B as u};
@@ -1 +1 @@
1
- import{c,F as d,o as I,e as E,K as g,n as K}from"./index-ChNbonqj.js";import{S as y,u as m}from"./use-mcp-client-DGiEqhWW.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 C(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(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],K(i)}function S(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(n),o=I();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],E(l)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(n),o=I();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],E(l)}export{C as a,P as b,S as u};
1
+ import{c,F as d,o as I,e as E,K as g,n as K}from"./index-DLyxjIYw.js";import{S as y,u as m}from"./use-mcp-client-_o9o88xf.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 C(){const e=c.c(10),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(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],K(i)}function S(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(n),o=I();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],E(l)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:y,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=m(n),o=I();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],E(l)}export{C as a,P as b,S as u};
@@ -1 +1 @@
1
- import{c as U,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-ChNbonqj.js";import{S as z,u as J}from"./use-mcp-client-DGiEqhWW.js";import{u as Q}from"./studio-tools-9YEAucUH.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??z;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=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],I(r)}function it(t){const e=U.c(9),{org:s}=q(),l=Q();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],I(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=Q();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],I(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=Q();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],I(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=Q(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:W},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:H},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:B,onError:Y},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 Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(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,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-DLyxjIYw.js";import{S as z,u as J}from"./use-mcp-client-_o9o88xf.js";import{u as Q}from"./studio-tools-ThQ_rcsF.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??z;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=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],I(r)}function it(t){const e=U.c(9),{org:s}=q(),l=Q();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],I(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=Q();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],I(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=Q();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],I(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=Q(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:W},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:H},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:B,onError:Y},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 Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(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-ChNbonqj.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-DLyxjIYw.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 u,F as m,n as g,K as p}from"./index-ChNbonqj.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
1
+ import{c as u,F as m,n as g,K as p}from"./index-DLyxjIYw.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
@@ -1 +1 @@
1
- import{i as a}from"./AlertCircle-BrgoLEQ0.js";import{i as c}from"./CheckCircle-CWxxQPXv.js";import{i as u}from"./DotsVertical-B_d1BqGN.js";import{b0 as m}from"./agent-icon-DBTWnOQq.js";import{k as b,c as d,r as f}from"./index-ChNbonqj.js";import{a as p}from"./XCircle-BWEvFrPt.js";const g={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:a,iconClassName:"text-warning",labelColor:"text-warning"},failed:{label:"Failed",verb:"Something went wrong",icon:p,iconClassName:"text-destructive",labelColor:"text-destructive"},expired:{label:"Timed out",verb:"Stopped responding",icon:m,iconClassName:"text-warning",labelColor:"text-warning"},in_progress:{label:"Running",verb:"Agent is working",icon:b,iconClassName:"text-primary",labelColor:"text-primary"},completed:{label:"Done",verb:"Completed",icon:c,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},v={label:"Unknown",verb:"Unknown status",icon:u,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function y(r){return g[r??"completed"]??v}const i=new Map;function s(r){let t=i.get(r);return t||(t={tick:0,subscribers:new Set,intervalId:null},i.set(r,t)),t}function x(r,t){const e=s(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.tick+=1;for(const o of e.subscribers)o()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function T(r){const t=d.c(3),e=r===void 0?6e4:r;let o,n;return t[0]!==e?(o=l=>x(e,l),n=()=>s(e).tick,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]),f.useSyncExternalStore(o,n,C)}function C(){return 0}export{g as S,y as g,T as u};
1
+ import{i as a}from"./AlertCircle-DUlfht_8.js";import{i as c}from"./CheckCircle-C2PmPe-o.js";import{i as u}from"./DotsVertical-fn24sGZC.js";import{b0 as m}from"./agent-icon-5ZYno8Im.js";import{k as b,c as d,r as f}from"./index-DLyxjIYw.js";import{a as p}from"./XCircle-_aQH9vJz.js";const g={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:a,iconClassName:"text-warning",labelColor:"text-warning"},failed:{label:"Failed",verb:"Something went wrong",icon:p,iconClassName:"text-destructive",labelColor:"text-destructive"},expired:{label:"Timed out",verb:"Stopped responding",icon:m,iconClassName:"text-warning",labelColor:"text-warning"},in_progress:{label:"Running",verb:"Agent is working",icon:b,iconClassName:"text-primary",labelColor:"text-primary"},completed:{label:"Done",verb:"Completed",icon:c,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},v={label:"Unknown",verb:"Unknown status",icon:u,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function y(r){return g[r??"completed"]??v}const i=new Map;function s(r){let t=i.get(r);return t||(t={tick:0,subscribers:new Set,intervalId:null},i.set(r,t)),t}function x(r,t){const e=s(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.tick+=1;for(const o of e.subscribers)o()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function T(r){const t=d.c(3),e=r===void 0?6e4:r;let o,n;return t[0]!==e?(o=l=>x(e,l),n=()=>s(e).tick,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]),f.useSyncExternalStore(o,n,C)}function C(){return 0}export{g as S,y as g,T as u};