@decocms/mesh 2.67.0 → 2.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/client/assets/{AlertCircle-B2fkM138.js → AlertCircle-CrLCfZT0.js} +1 -1
  2. package/dist/client/assets/{ArrowUp-D1AvEfzg.js → ArrowUp-deTSI0E8.js} +1 -1
  3. package/dist/client/assets/{Calendar-BVWxw6KN.js → Calendar-BaFebt3t.js} +1 -1
  4. package/dist/client/assets/{Check-G0Uo7MV1.js → Check-DTUUSvp-.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-Brh6alH0.js → CheckCircle-BoFrCz54.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-CVB8bXEV.js → ChevronDown-DeD12W57.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-c4NlNF9A.js → ChevronRight-8Yl-zCCi.js} +1 -1
  8. package/dist/client/assets/{Code01-BVAq1cya.js → Code01-C2qL6p3f.js} +1 -1
  9. package/dist/client/assets/{Copy01-C07m3ESL.js → Copy01-CqWuZ9K-.js} +1 -1
  10. package/dist/client/assets/{DotsHorizontal-AVoj4qko.js → DotsHorizontal-4eEmoKn5.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-BgAR-Qt1.js → DotsVertical-BYXFslta.js} +1 -1
  12. package/dist/client/assets/{Download01-BaWv-MPX.js → Download01-DDoxVok6.js} +1 -1
  13. package/dist/client/assets/{Edit01-abEeaaHN.js → Edit01-BD2PlTCM.js} +1 -1
  14. package/dist/client/assets/{File02-Cxg7VGhK.js → File02-D_ZJmgQJ.js} +1 -1
  15. package/dist/client/assets/{File06-B-BJJgbp.js → File06-iSPwdYi1.js} +1 -1
  16. package/dist/client/assets/{FilterLines-CpavrtRH.js → FilterLines-uGkpVOX8.js} +1 -1
  17. package/dist/client/assets/{Globe02-DjAe4vbB.js → Globe02-BhcJ1ruM.js} +1 -1
  18. package/dist/client/assets/{Grid01-DkGwMObb.js → Grid01-B9LzvODL.js} +1 -1
  19. package/dist/client/assets/{Home02-C1aheEOO.js → Home02-DCnIiCxj.js} +1 -1
  20. package/dist/client/assets/{Image01-BnPQLh0E.js → Image01-BYZhOfgB.js} +1 -1
  21. package/dist/client/assets/{Inbox01-TnJNmMxq.js → Inbox01-CUvjj3IH.js} +1 -1
  22. package/dist/client/assets/{InfoCircle-CPCf05Up.js → InfoCircle-DzQgROgs.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-4WgHKQsl.js → LinkExternal01-D33uvRa3.js} +1 -1
  24. package/dist/client/assets/{List-_b-aWM0n.js → List-C1dM-VCr.js} +1 -1
  25. package/dist/client/assets/{Loading01-DJg-4sIh.js → Loading01-3CQcIIbt.js} +1 -1
  26. package/dist/client/assets/{Lock01-bcOvI0Ko.js → Lock01-aFdw7wqo.js} +1 -1
  27. package/dist/client/assets/{Pin01-BmWi3GT3.js → Pin01-ChRD6YtE.js} +1 -1
  28. package/dist/client/assets/{Play-DmKqcTBT.js → Play-B5QcYkt5.js} +1 -1
  29. package/dist/client/assets/{Plus-BfhQyaT2.js → Plus-CP35U6Iv.js} +1 -1
  30. package/dist/client/assets/{SearchMd-vzH73w2C.js → SearchMd-DTs0TtNF.js} +1 -1
  31. package/dist/client/assets/{Share07-BebYFAZG.js → Share07-DGflfftp.js} +1 -1
  32. package/dist/client/assets/{Terminal-cm5IHqjb.js → Terminal-Djd_0g5K.js} +1 -1
  33. package/dist/client/assets/{Tool01-8pfwvGVO.js → Tool01-A-03PfQ_.js} +1 -1
  34. package/dist/client/assets/{Trash01-uXqVqZ4v.js → Trash01-Ck6jzVhZ.js} +1 -1
  35. package/dist/client/assets/{Upload01-D8CqJSKT.js → Upload01-CsBiVkrb.js} +1 -1
  36. package/dist/client/assets/{Users03-BKCrYRx-.js → Users03-B-DO1n7F.js} +1 -1
  37. package/dist/client/assets/{X-BW6YCcKc.js → X-BnxI_xD6.js} +1 -1
  38. package/dist/client/assets/{XClose-C2NXNxvY.js → XClose-DvgsYIZw.js} +1 -1
  39. package/dist/client/assets/{agent-connections-preview-CGKlKFHn.js → agent-connections-preview-CYQwMlB4.js} +1 -1
  40. package/dist/client/assets/{agent-detail-M33WpTr5.js → agent-detail-tHoRcKR8.js} +1 -1
  41. package/dist/client/assets/{agents-BjHugWl0.js → agents-CNdtweuU.js} +1 -1
  42. package/dist/client/assets/{alert-dialog-fJOs6NlL.js → alert-dialog-DN6po1tq.js} +1 -1
  43. package/dist/client/assets/{auth-catchall-D-r62wiG.js → auth-catchall-Bt6aq6Tb.js} +1 -1
  44. package/dist/client/assets/{badge-BB7crk7y.js → badge-DIFY1rsD.js} +1 -1
  45. package/dist/client/assets/{binder-CbZhSXdv.js → binder-Dg2rfYkp.js} +1 -1
  46. package/dist/client/assets/{breadcrumb-niivPcbv.js → breadcrumb-CJBikxW8.js} +1 -1
  47. package/dist/client/assets/{button-CjH_jeJQ.js → button-CKIyuXIq.js} +1 -1
  48. package/dist/client/assets/{card-BuSwLKUe.js → card-MU9VbmJ4.js} +1 -1
  49. package/dist/client/assets/{checkbox-jehQHPHA.js → checkbox-BomYVgbH.js} +1 -1
  50. package/dist/client/assets/{circle-alert-B-boz6lj.js → circle-alert-BcHAU0vN.js} +1 -1
  51. package/dist/client/assets/{collection-detail-1T0ecY8Q.js → collection-detail-CZFVa2Zq.js} +1 -1
  52. package/dist/client/assets/{collection-search-CEX16zDI.js → collection-search-CECpIAiD.js} +1 -1
  53. package/dist/client/assets/{collection-tab-CN84ifuT.js → collection-tab-D12suO7P.js} +1 -1
  54. package/dist/client/assets/{collection-table-wrapper-Cf-srhsL.js → collection-table-wrapper-CzqGMTIb.js} +1 -1
  55. package/dist/client/assets/{collection-tabs-BHUXhrq0.js → collection-tabs-Dd6S7hPE.js} +1 -1
  56. package/dist/client/assets/{command-CI8tLx1q.js → command-BLAC1NoH.js} +1 -1
  57. package/dist/client/assets/{connect-DnxowUrB.js → connect-VopSOjzi.js} +1 -1
  58. package/dist/client/assets/{connection-card-BMgz1e9v.js → connection-card-C7cdqtZc.js} +1 -1
  59. package/dist/client/assets/{connection-detail-DJfMln3d.js → connection-detail-Cm-idmqc.js} +1 -1
  60. package/dist/client/assets/{connections-D9cfv_7-.js → connections-DqIiaOoJ.js} +1 -1
  61. package/dist/client/assets/constants-DBJOqOcW.js +1 -0
  62. package/dist/client/assets/{constants-CeDPLV3j.js → constants-DwkB1age.js} +1 -1
  63. package/dist/client/assets/{create-organization-dialog-DEJZtz9m.js → create-organization-dialog-QVwT9MeU.js} +1 -1
  64. package/dist/client/assets/{dialog-BjAQMOK4.js → dialog-CjI8rs-6.js} +1 -1
  65. package/dist/client/assets/{dropdown-menu-vCMq_394.js → dropdown-menu-CoO02CsY.js} +1 -1
  66. package/dist/client/assets/{dynamic-plugin-layout-DkBPIXG_.js → dynamic-plugin-layout-DxUJHFK2.js} +1 -1
  67. package/dist/client/assets/{empty-state-Gbw_otIT.js → empty-state-CQab9dR0.js} +1 -1
  68. package/dist/client/assets/{empty-state-BvjoZw7e.js → empty-state-VwVcPCE1.js} +1 -1
  69. package/dist/client/assets/{env-vars-editor-B1PughxC.js → env-vars-editor-BMhfk7Zf.js} +1 -1
  70. package/dist/client/assets/{error-boundary-CfjGe8GJ.js → error-boundary-C8CO11ML.js} +1 -1
  71. package/dist/client/assets/{extract-connection-data-CF78Ki23.js → extract-connection-data-DwTMOpOf.js} +1 -1
  72. package/dist/client/assets/{file-browser-nwtZ6onU.js → file-browser-BqPRsorK.js} +2 -2
  73. package/dist/client/assets/{form-CHBB34OT.js → form-CO4xV9gA.js} +1 -1
  74. package/dist/client/assets/{grid-view-DL05Fujd.js → grid-view-CDgwvRTT.js} +1 -1
  75. package/dist/client/assets/{home-CLtjbN9e.js → home-Bgf631v9.js} +1 -1
  76. package/dist/client/assets/{index-D0blI3XW.js → index-810mvVLg.js} +1 -1
  77. package/dist/client/assets/{index-BsfqdgCF.js → index-Bc7QzOnC.js} +1 -1
  78. package/dist/client/assets/{index-OwZGmo7I.js → index-BdSNJxPZ.js} +1 -1
  79. package/dist/client/assets/{index-BMLEzHeY.js → index-CHQ9-Q-G.js} +36 -36
  80. package/dist/client/assets/{index-Ctm-JrdL.js → index-CNwEt7K8.js} +1 -1
  81. package/dist/client/assets/{index-8kTnOBNx.js → index-CrNYs5dK.js} +77 -77
  82. package/dist/client/assets/{index-CnGxfk10.js → index-CvZXtRPz.js} +12 -12
  83. package/dist/client/assets/{index-Bmf5NCxB.js → index-aWpPBjkT.js} +1 -1
  84. package/dist/client/assets/{infiniteQueryObserver-eQjHgw7d.js → infiniteQueryObserver-CKMx30vn.js} +1 -1
  85. package/dist/client/assets/{input-BlxXRmnq.js → input-BrgRsDcE.js} +1 -1
  86. package/dist/client/assets/{layout-DF2Vd6dD.js → layout-D8nQ7DGi.js} +1 -1
  87. package/dist/client/assets/{localstorage-keys-CYYT4Okl.js → localstorage-keys-BiLB-Ybm.js} +1 -1
  88. package/dist/client/assets/{login-rMJme3Jv.js → login-COXBU4ri.js} +1 -1
  89. package/dist/client/assets/{mcp-oauth-CPPdR_so.js → mcp-oauth-i2Um3a9A.js} +1 -1
  90. package/dist/client/assets/{mcp-server-card-Dz6OItSH.js → mcp-server-card-B_tcMycX.js} +1 -1
  91. package/dist/client/assets/{mcp-server-detail-CKCgTImi.js → mcp-server-detail-CCPdSS0H.js} +2 -2
  92. package/dist/client/assets/{members-2hnMfIOo.js → members-DNx_w5eC.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-DYG-izQC.js → monaco-editor-qYykGrlT.js} +1 -1
  94. package/dist/client/assets/{monitoring-45wfQEuI.js → monitoring-BuIkRBxN.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-DrWbOmjU.js → oauth-callback-B24XRb9Q.js} +1 -1
  96. package/dist/client/assets/{page-Dig-kXzy.js → page-Buen7bnX.js} +1 -1
  97. package/dist/client/assets/{page-CqA3sqGx.js → page-NaxcVK27.js} +1 -1
  98. package/dist/client/assets/{plugin-empty-state-D_A0ZR3o.js → plugin-empty-state-CNA6ghy_.js} +1 -1
  99. package/dist/client/assets/{plugin-header-CICDX7I-.js → plugin-header-ColWGLS5.js} +1 -1
  100. package/dist/client/assets/{plugins-Cj62SDQ2.js → plugins-Bwp1vQes.js} +1 -1
  101. package/dist/client/assets/{popover-JdYFp74u.js → popover-CjUGVjON.js} +1 -1
  102. package/dist/client/assets/{registry-utils-BwCYxc2h.js → registry-utils-TFnNkGPj.js} +1 -1
  103. package/dist/client/assets/{resizable-CRqJtbE0.js → resizable-DQA2LWqr.js} +1 -1
  104. package/dist/client/assets/{select-Br1I42DX.js → select-JdRjOrBE.js} +1 -1
  105. package/dist/client/assets/{settings-Csz6dsxM.js → settings-C5BA4Ik8.js} +1 -1
  106. package/dist/client/assets/{shell-layout-CLklIdz9.js → shell-layout-Dz2AUt47.js} +1 -1
  107. package/dist/client/assets/{spinner-BmgAJqAH.js → spinner-CEhxpPPn.js} +1 -1
  108. package/dist/client/assets/{store-invite-DoSHlGQN.js → store-invite-2RTGhZRS.js} +1 -1
  109. package/dist/client/assets/{switch-CMXpi8bR.js → switch-DKkhDe7l.js} +1 -1
  110. package/dist/client/assets/{table-CGj3hOxZ.js → table-CBtv9zrT.js} +1 -1
  111. package/dist/client/assets/{textarea-Dg4rxulg.js → textarea-BBk7k5wE.js} +1 -1
  112. package/dist/client/assets/{tools-list-BVu0EauP.js → tools-list-DGAPFCDO.js} +1 -1
  113. package/dist/client/assets/tools-list-DWnTz46N.css +1 -0
  114. package/dist/client/assets/{typewriter-title-bodc21io.js → typewriter-title-XDUo1EGk.js} +1 -1
  115. package/dist/client/assets/{use-binding-D3U0XVop.js → use-binding-HsWp1jWu.js} +1 -1
  116. package/dist/client/assets/use-connection-UwIAiUmR.js +1 -0
  117. package/dist/client/assets/{use-create-virtual-mcp-D7NmkZa5.js → use-create-virtual-mcp-CG-Wp4A9.js} +1 -1
  118. package/dist/client/assets/{use-deco-chat-open-cI1K_3H4.js → use-deco-chat-open-Da_cfFLg.js} +2 -2
  119. package/dist/client/assets/{use-list-state-BAGJ3irz.js → use-list-state-Dxbvm2sV.js} +1 -1
  120. package/dist/client/assets/{use-mcp-prompts-vgmIJb9h.js → use-mcp-prompts-DDPkiTOB.js} +1 -1
  121. package/dist/client/assets/{use-mcp-tools-X7PZhTof.js → use-mcp-tools-BKgKiBFS.js} +1 -1
  122. package/dist/client/assets/{use-mobile-r7mBIBEK.js → use-mobile-CtC8_4UP.js} +1 -1
  123. package/dist/client/assets/{use-organization-settings-CdospZv2.js → use-organization-settings-TImCLEbo.js} +1 -1
  124. package/dist/client/assets/{use-virtual-mcp-DrasHs63.js → use-virtual-mcp-BIZk_q3v.js} +1 -1
  125. package/dist/client/assets/useInfiniteQuery-wjoMRbc3.js +1 -0
  126. package/dist/client/assets/{useMutation-CUbpcpQz.js → useMutation-C8K1KoTI.js} +1 -1
  127. package/dist/client/assets/useQuery-CImYAWdS.js +1 -0
  128. package/dist/client/assets/{view-mode-toggle-C6XvJAEJ.js → view-mode-toggle-BiRjYen1.js} +1 -1
  129. package/dist/client/assets/{workflow-BSVWLVOc.js → workflow-TGPdc23k.js} +1 -1
  130. package/dist/client/index.html +1 -1
  131. package/dist/server/cli.js +122 -122
  132. package/dist/server/migrate.js +1 -1
  133. package/dist/server/server.js +105 -105
  134. package/package.json +1 -1
  135. package/dist/client/assets/constants-CW07-qnN.js +0 -1
  136. package/dist/client/assets/tools-list-CSRUKxnt.css +0 -1
  137. package/dist/client/assets/use-connection-D8sP6Sf6.js +0 -1
  138. package/dist/client/assets/useInfiniteQuery-CmVm1W19.js +0 -1
  139. package/dist/client/assets/useQuery-CyQI_ufp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as N,c as w,j as n,u as je,v as ie,bs as ke,L as Ee,n as kt,G as _t,q as zt,t as Y,bB as Be,g as G,a as _e,aU as $t,bC as It,aY as Ue,bD as le,b as Ot,S as We,d as Tt,e as Mt,N as Et,E as Lt,P as At,aH as Fe,K as Pt,O as Dt}from"./index-BMLEzHeY.js";import{C as K,u as Rt}from"./index-8kTnOBNx.js";import{I as Ht,n as Bt,c as Ve,a as he,T as pe,b as xe}from"./empty-state-BvjoZw7e.js";import{P as re}from"./index-Bmf5NCxB.js";import{b as ve,u as Ut,S as ee,d as Wt}from"./use-deco-chat-open-cI1K_3H4.js";import{c as M,B as W}from"./button-CjH_jeJQ.js";import{d as Ft}from"./constants-CeDPLV3j.js";import{T as Vt,i as Kt,b as Zt,S as Gt,c as Yt,d as qt,e as Jt,f as Xt,t as Ke}from"./typewriter-title-bodc21io.js";import{s as Ze}from"./Plus-BfhQyaT2.js";import{t as Ge}from"./Users03-BKCrYRx-.js";import{i as ge}from"./X-BW6YCcKc.js";import{E as Ye}from"./error-boundary-CfjGe8GJ.js";import{a as Qt}from"./Home02-C1aheEOO.js";import{u as ze,a as es}from"./use-organization-settings-CdospZv2.js";import{u as oe}from"./use-mobile-r7mBIBEK.js";import{h as X}from"./alert-dialog-fJOs6NlL.js";import{P as $e,a as Ie,b as Oe}from"./popover-JdYFp74u.js";import{t as ts}from"./ChevronDown-CVB8bXEV.js";import{C as qe}from"./create-organization-dialog-DEJZtz9m.js";import{c as ss,b as ns,g as as,a as rs,D as ls}from"./dialog-BjAQMOK4.js";import{L as is}from"./form-CHBB34OT.js";import{S as os}from"./switch-CMXpi8bR.js";import{i as be}from"./Check-G0Uo7MV1.js";import{i as cs}from"./Code01-BVAq1cya.js";import{a as Je}from"./Copy01-C07m3ESL.js";import{n as Le}from"./Inbox01-TnJNmMxq.js";import{B as Ae}from"./badge-BB7crk7y.js";import{s as Pe}from"./XClose-C2NXNxvY.js";import{i as ds}from"./File06-B-BJJgbp.js";import{I as ms}from"./input-BlxXRmnq.js";import{c as fs}from"./Grid01-DkGwMObb.js";import{a as us,b as hs,D as ps,c as xs,g as De}from"./dropdown-menu-vCMq_394.js";import{n as Re}from"./LinkExternal01-4WgHKQsl.js";import{u as Xe,L as Qe}from"./localstorage-keys-CYYT4Okl.js";import{R as gs,a as et,b as bs}from"./resizable-CRqJtbE0.js";import"./spinner-BmgAJqAH.js";import"./use-mcp-prompts-vgmIJb9h.js";import"./useQuery-CyQI_ufp.js";import"./AlertCircle-B2fkM138.js";import"./ArrowUp-D1AvEfzg.js";import"./Edit01-abEeaaHN.js";import"./ChevronRight-c4NlNF9A.js";import"./Terminal-cm5IHqjb.js";import"./monaco-editor-DYG-izQC.js";import"./use-connection-D8sP6Sf6.js";import"./useMutation-CUbpcpQz.js";import"./generate-id-Dyweu44Y.js";import"./SearchMd-vzH73w2C.js";import"./Trash01-uXqVqZ4v.js";import"./use-virtual-mcp-DrasHs63.js";import"./use-create-virtual-mcp-D7NmkZa5.js";import"./use-binding-D3U0XVop.js";import"./binder-CbZhSXdv.js";import"./select-Br1I42DX.js";import"./Image01-BnPQLh0E.js";import"./infiniteQueryObserver-eQjHgw7d.js";const Se=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Se.displayName="ArrowUpRight";const tt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));tt.displayName="BarChart10";const st=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m12 21-.1-.15c-.695-1.042-1.042-1.563-1.5-1.94a4 4 0 0 0-1.378-.737C8.453 18 7.827 18 6.575 18H5.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2 16.48 2 15.92 2 14.8V6.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 3 4.08 3 5.2 3h.4c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748C12 6.04 12 7.16 12 9.4M12 21V9.4M12 21l.1-.15c.695-1.042 1.042-1.563 1.5-1.94a3.999 3.999 0 0 1 1.378-.737C15.547 18 16.173 18 17.425 18H18.8c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 16.48 22 15.92 22 14.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 3 19.92 3 18.8 3h-.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748C12 6.04 12 7.16 12 9.4"}));st.displayName="BookOpen01";const nt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));nt.displayName="Building02";const at=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m18 17-5-5 5-5m-7 10-5-5 5-5"}));at.displayName="ChevronLeftDouble";const rt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m6 17 5-5-5-5m7 10 5-5-5-5"}));rt.displayName="ChevronRightDouble";const lt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));lt.displayName="Globe01";const it=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));it.displayName="LayoutRight";const ot=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));ot.displayName="LogOut01";const ct=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m3 5c0 .93 0 1.395-.102 1.776a3 3 0 0 1-2.122 2.122C9.395 21 8.93 21 8 21h-.5c-1.398 0-2.097 0-2.648-.228a3 3 0 0 1-1.624-1.624C3 18.597 3 17.898 3 16.5v-9c0-1.398 0-2.097.228-2.648a3 3 0 0 1 1.624-1.624C5.403 3 6.102 3 7.5 3H8c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C12 5.605 12 6.07 12 7"}));ct.displayName="LogOut02";const dt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z"}));dt.displayName="Mail01";const Te=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),N.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z"}));Te.displayName="Settings01";const mt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));mt.displayName="Settings02";const ft=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Zm-6 8h12M9 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));ft.displayName="Settings04";const ut=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2.18 2.18 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2.18 2.18 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));ut.displayName="UserSquare";const ht=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M13 2 4.093 12.688c-.348.418-.523.628-.525.804a.5.5 0 0 0 .185.397c.138.111.41.111.955.111H12l-1 8 8.907-10.688c.348-.418.523-.628.525-.804a.5.5 0 0 0-.185-.397c-.138-.111-.41-.111-.955-.111H12l1-8Z"}));ht.displayName="Zap";function js(){const t=w.c(65),{org:e}=je(),[,s]=ve(),{selectedVirtualMcp:a,modelsConnections:r,isChatEmpty:l,activeThreadId:i,createThread:c,switchToThread:o,threads:d}=Ut();let m;if(t[0]!==i||t[1]!==d){let q;t[3]!==i?(q=Q=>Q.id===i,t[3]=i,t[4]=q):q=t[4],m=d.find(q),t[0]=i,t[1]=d,t[2]=m}else m=t[2];const f=m,[u,b]=N.useState(!1),[g,p]=N.useTransition();let x;t[5]!==e.id?(x=Ft(e.id),t[5]=e.id,t[6]=x):x=t[6];const j=a??x;let v;t[7]!==c?(v=()=>{p(()=>{c()})},t[7]=c,t[8]=v):v=t[8];const S=v;if(r.length===0){let q;t[9]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx(re.Header.Left,{className:"gap-2"}),t[9]=q):q=t[9];let Q;t[10]!==s?(Q=()=>s(!1),t[10]=s,t[11]=Q):Q=t[11];let de;t[12]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=de):de=t[12];let ne;t[13]!==Q?(ne=n.jsxs(re.Header,{className:"flex-none",children:[q,n.jsx(re.Header.Right,{className:"gap-1",children:n.jsx("button",{type:"button",onClick:Q,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:de})})]}),t[13]=Q,t[14]=ne):ne=t[14];let ae;t[15]!==e?(ae=n.jsx(K.Main,{className:"flex flex-col items-center",children:n.jsx(K.EmptyState,{children:n.jsx(K.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ae):ae=t[16];let me;return t[17]!==ne||t[18]!==ae?(me=n.jsxs(K,{children:[ne,ae]}),t[17]=ne,t[18]=ae,t[19]=me):me=t[19],me}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":g?"duration-200 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let _;t[20]!==y?(_=M("absolute inset-0 flex flex-col transition-all ease-in-out",y),t[20]=y,t[21]=_):_=t[21];let k;t[22]!==f||t[23]!==l?(k=!l&&f?.title&&n.jsx(Vt,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=k):k=t[24];let $;t[25]!==k?($=n.jsx(re.Header.Left,{className:"gap-2",children:k}),t[25]=k,t[26]=$):$=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(Ze,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let z;t[28]!==S||t[29]!==g?(z=n.jsx("button",{type:"button",onClick:S,disabled:g,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=g,t[30]=z):z=t[30];let I;t[31]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b(!0),t[31]=I):I=t[31];let O;t[32]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:n.jsx(Kt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=O):O=t[32];let T;t[33]!==s?(T=()=>s(!1),t[33]=s,t[34]=T):T=t[34];let E;t[35]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=E):E=t[35];let L;t[36]!==T?(L=n.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:E}),t[36]=T,t[37]=L):L=t[37];let A;t[38]!==L||t[39]!==z?(A=n.jsxs(re.Header.Right,{className:"gap-1",children:[z,O,L]}),t[38]=L,t[39]=z,t[40]=A):A=t[40];let U;t[41]!==A||t[42]!==$?(U=n.jsxs(re.Header,{className:"flex-none",children:[$,A]}),t[41]=A,t[42]=$,t[43]=U):U=t[43];let D;t[44]!==j||t[45]!==l?(D=n.jsx(K.Main,{children:l?n.jsx(K.EmptyState,{children:n.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[n.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[n.jsx(Ht,{icon:j.icon,name:j.title,size:"lg",fallbackIcon:n.jsx(Ge,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:j.title}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:j.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(K.IceBreakers,{})]})}):n.jsx(K.Messages,{})}),t[44]=j,t[45]=l,t[46]=D):D=t[46];let H;t[47]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx(K.Footer,{children:n.jsx(K.Input,{})}),t[47]=H):H=t[47];let B;t[48]!==U||t[49]!==D||t[50]!==_?(B=n.jsxs("div",{className:_,children:[U,D,H]}),t[48]=U,t[49]=D,t[50]=_,t[51]=B):B=t[51];const R=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let P;t[52]!==R?(P=M("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",R),t[52]=R,t[53]=P):P=t[53];let F;t[54]===Symbol.for("react.memo_cache_sentinel")?(F=()=>b(!1),t[54]=F):F=t[54];let Z;t[55]!==i||t[56]!==o||t[57]!==d?(Z=n.jsx(Zt,{threads:d,activeThreadId:i,onThreadSelect:o,onClose:F}),t[55]=i,t[56]=o,t[57]=d,t[58]=Z):Z=t[58];let se;t[59]!==P||t[60]!==Z?(se=n.jsx("div",{className:P,children:Z}),t[59]=P,t[60]=Z,t[61]=se):se=t[61];let ce;return t[62]!==B||t[63]!==se?(ce=n.jsxs(K,{className:"relative overflow-hidden",children:[B,se]}),t[62]=B,t[63]=se,t[64]=ce):ce=t[64],ce}function vs(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(K.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ye,{fallback:e,children:n.jsx(N.Suspense,{fallback:n.jsx(K.Skeleton,{}),children:n.jsx(js,{})})}),t[1]=s):s=t[1],s}function Ns(){const t=w.c(14),{locator:e,org:s}=je(),a=ie(),r=ke(),{org:l}=Ee.parse(e);let i;t[0]!==e?(i=Ee.isOrgAdminProject(e),t[0]=e,t[1]=i):i=t[1];const c=i,o=ze(s.id);let d;t[2]!==o?.enabled_plugins?(d=o?.enabled_plugins??[],t[2]=o?.enabled_plugins,t[3]=d):d=t[3];const m=d;let f;t[4]!==m?(f=k=>m.includes(k.pluginId),t[4]=m,t[5]=f):f=t[5];const u=kt.filter(f),b=r.location.pathname===`/${l}`||r.location.pathname===`/${l}/`;let g;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Qt,{}),t[6]=g):g=t[6];let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(nt,{}),t[7]=p):p=t[7];let x;t[8]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Bt,{}),t[8]=x):x=t[8];let h;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(Ge,{}),t[9]=h):h=t[9];let j;t[10]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(ht,{}),t[10]=j):j=t[10];let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(tt,{}),t[11]=v):v=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(ut,{}),t[12]=S):S=t[12];let y;t[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Te,{}),t[13]=y):y=t[13];const _=[{key:"home",label:"Home",icon:g,onClick:()=>{b?window.dispatchEvent(new CustomEvent("reset-home-view")):a({to:"/$org",params:{org:l}})}},{key:"store",label:"Store",icon:p,onClick:()=>a({to:"/$org/store",params:{org:l}})},...u.map(k=>({key:k.pluginId,label:k.label,icon:k.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:l,pluginId:k.pluginId}})})),{key:"mcps",label:"Connections",icon:x,onClick:()=>a({to:"/$org/mcps",params:{org:l}})},{key:"agents",label:"Agents",icon:h,onClick:()=>a({to:"/$org/agents",params:{org:l}})},{key:"workflow",label:"Workflows",icon:j,onClick:()=>a({to:"/$org/workflows",params:{org:l}})},{key:"monitoring",label:"Monitoring",icon:v,onClick:()=>a({to:"/$org/monitoring",params:{org:l}})},{key:"members",label:"Members",icon:S,onClick:()=>a({to:"/$org/members",params:{org:l}})},{key:"settings",label:"Settings",icon:y,onClick:()=>a({to:"/$org/settings",params:{org:l}})}];return c?_:[]}const ws="sidebar_state",Ss=3600*24*7,ys="16rem",Cs="18rem",ks="3rem",_s="b",pt=N.createContext(null);function Ne(){const t=N.useContext(pt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function zs(t){const e=w.c(21),{defaultOpen:s,open:a,onOpenChange:r,children:l}=t,i=s===void 0?!0:s,c=oe(),[o,d]=N.useState(!1),[m,f]=N.useState(i),u=a??m;let b;e[0]!==u||e[1]!==r?(b=$=>{const C=typeof $=="function"?$(u):$;r?r(C):f(C),document.cookie=`${ws}=${C}; path=/; max-age=${Ss}`},e[0]=u,e[1]=r,e[2]=b):b=e[2];const g=b;let p;e[3]!==c||e[4]!==g?(p=()=>c?d(Is):g($s),e[3]=c,e[4]=g,e[5]=p):p=e[5];const x=p;let h,j;e[6]!==x?(h=()=>{const $=C=>{if(C.key===_s&&(C.metaKey||C.ctrlKey)){const z=C.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;C.preventDefault(),x()}};return globalThis.addEventListener("keydown",$),()=>globalThis.removeEventListener("keydown",$)},j=[x],e[6]=x,e[7]=h,e[8]=j):(h=e[7],j=e[8]),N.useEffect(h,j);const v=u?"expanded":"collapsed";let S;e[9]!==c||e[10]!==u||e[11]!==o||e[12]!==g||e[13]!==v||e[14]!==x?(S={state:v,open:u,setOpen:g,isMobile:c,openMobile:o,setOpenMobile:d,toggleSidebar:x},e[9]=c,e[10]=u,e[11]=o,e[12]=g,e[13]=v,e[14]=x,e[15]=S):S=e[15];const y=S;let _;e[16]!==l?(_=n.jsx(Ve,{delayDuration:0,children:l}),e[16]=l,e[17]=_):_=e[17];let k;return e[18]!==y||e[19]!==_?(k=n.jsx(pt.Provider,{value:y,children:_}),e[18]=y,e[19]=_,e[20]=k):k=e[20],k}function $s(t){return!t}function Is(t){return!t}function Os(t){const e=w.c(14);let s,a,r,l;e[0]!==t?({className:a,style:l,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l):(s=e[1],a=e[2],r=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":ys,"--sidebar-width-icon":ks,...l},e[5]=l,e[6]=i):i=e[6];const c=i;let o;e[7]!==a?(o=M("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=o):o=e[8];let d;return e[9]!==s||e[10]!==r||e[11]!==c||e[12]!==o?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:o,...r,children:s}),e[9]=s,e[10]=r,e[11]=c,e[12]=o,e[13]=d):d=e[13],d}function Ts(t){const e=w.c(46);let s,a,r,l,i,c;e[0]!==t?({side:l,variant:i,collapsible:c,className:a,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=c):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],c=e[6]);const o=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=c===void 0?"offcanvas":c,{isMobile:f,state:u,openMobile:b,setOpenMobile:g}=Ne();if(m==="none"){let C;e[7]!==a?(C=M("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=C):C=e[8];let z;return e[9]!==s||e[10]!==r||e[11]!==C?(z=n.jsx("div",{"data-slot":"sidebar",className:C,...r,children:s}),e[9]=s,e[10]=r,e[11]=C,e[12]=z):z=e[12],z}if(f){let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":Cs},e[13]=C):C=e[13];let z;e[14]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsxs(Yt,{className:"sr-only",children:[n.jsx(qt,{children:"Sidebar"}),n.jsx(Jt,{children:"Displays the mobile sidebar."})]}),e[14]=z):z=e[14];let I;e[15]!==s?(I=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=I):I=e[16];let O;e[17]!==o||e[18]!==I?(O=n.jsxs(Xt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:o,children:[z,I]}),e[17]=o,e[18]=I,e[19]=O):O=e[19];let T;return e[20]!==b||e[21]!==r||e[22]!==g||e[23]!==O?(T=n.jsx(Gt,{open:b,onOpenChange:g,...r,children:O}),e[20]=b,e[21]=r,e[22]=g,e[23]=O,e[24]=T):T=e[24],T}const p=u==="collapsed"?m:"",x=d==="floating"||d==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let h;e[25]!==x?(h=M("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",x),e[25]=x,e[26]=h):h=e[26];let j;e[27]!==h?(j=n.jsx("div",{"data-slot":"sidebar-gap",className:h}),e[27]=h,e[28]=j):j=e[28];const v=o==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",S=d==="floating"||d==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let y;e[29]!==a||e[30]!==v||e[31]!==S?(y=M("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",v,S,a),e[29]=a,e[30]=v,e[31]=S,e[32]=y):y=e[32];let _;e[33]!==s?(_=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border py-2 flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s}),e[33]=s,e[34]=_):_=e[34];let k;e[35]!==r||e[36]!==y||e[37]!==_?(k=n.jsx("div",{"data-slot":"sidebar-container",className:y,...r,children:_}),e[35]=r,e[36]=y,e[37]=_,e[38]=k):k=e[38];let $;return e[39]!==o||e[40]!==u||e[41]!==k||e[42]!==p||e[43]!==j||e[44]!==d?($=n.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":u,"data-collapsible":p,"data-variant":d,"data-side":o,"data-slot":"sidebar",children:[j,k]}),e[39]=o,e[40]=u,e[41]=k,e[42]=p,e[43]=j,e[44]=d,e[45]=$):$=e[45],$}function Ms(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function xt(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Es(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 px-2 items-start justify-start",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ls(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("h-4 m-0! w-full",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-sidebar":"separator",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function As(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ps(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ds(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("w-full text-sm",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function we(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function te(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("group/menu-item relative",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}const Rs=zt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg px-2 py-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,colors] transition-colors duration-150 ease-out hover:transition-none focus-visible:ring-2 active:bg-sidebar-accent/75 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent/75 [&>span:last-child]:truncate [&>svg]:size-[18px] [&>svg]:shrink-0 [&>svg]:text-muted-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent text-sidebar-foreground/80 active:text-sidebar-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-7 text-sm font-[450]",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Me(t){const e=w.c(28);let s,a,r,l,i,c,o;e[0]!==t?({asChild:r,isActive:l,variant:i,size:c,tooltip:o,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=c,e[7]=o):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],c=e[6],o=e[7]);const d=r===void 0?!1:r,m=l===void 0?!1:l,f=i===void 0?"default":i,u=c===void 0?"default":c,b=d?_t:"button",{isMobile:g,state:p}=Ne();let x;e[8]!==s||e[9]!==u||e[10]!==f?(x=M(Rs({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=x):x=e[11];let h;e[12]!==b||e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==x?(h=n.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:x,...a}),e[12]=b,e[13]=m,e[14]=a,e[15]=u,e[16]=x,e[17]=h):h=e[17];const j=h;if(!o)return j;if(typeof o=="string"){let k;e[18]!==o?(k={children:o},e[18]=o,e[19]=k):k=e[19],o=k}let v;e[20]!==j?(v=n.jsx(pe,{asChild:!0,children:j}),e[20]=j,e[21]=v):v=e[21];const S=p!=="collapsed"||g;let y;e[22]!==S||e[23]!==o?(y=n.jsx(he,{side:"right",align:"center",hidden:S,...o}),e[22]=S,e[23]=o,e[24]=y):y=e[24];let _;return e[25]!==v||e[26]!==y?(_=n.jsxs(xe,{children:[v,y]}),e[25]=v,e[26]=y,e[27]=_):_=e[27],_}function gt(t){const e=w.c(11),{navigationItems:s,header:a,footer:r,additionalContent:l,variant:i,collapsible:c}=t,o=i===void 0?"sidebar":i,d=c===void 0?"icon":c;let m;e[0]!==s?(m=s.map(Hs),e[0]=s,e[1]=m):m=e[1];let f;e[2]!==l||e[3]!==m?(f=n.jsx(As,{className:"flex-1 overflow-x-hidden",children:n.jsx(Ps,{className:"font-medium",children:n.jsx(Ds,{children:n.jsxs(we,{className:"gap-0.5",children:[m,l]})})})}),e[2]=l,e[3]=m,e[4]=f):f=e[4];let u;return e[5]!==d||e[6]!==r||e[7]!==a||e[8]!==f||e[9]!==o?(u=n.jsxs(Ts,{variant:o,collapsible:d,children:[a,f,r]}),e[5]=d,e[6]=r,e[7]=a,e[8]=f,e[9]=o,e[10]=u):u=e[10],u}function Hs(t){return n.jsx(te,{children:n.jsxs(Me,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),n.jsx("span",{className:"truncate",children:t.label})]})},t.key)}gt.Skeleton=function(){return n.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>n.jsx("div",{className:"w-full h-8",children:n.jsx(ee,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};const Bs="w-full h-8 justify-start gap-2 px-2 text-sm font-[450] text-sidebar-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent active:bg-sidebar-accent/75 [&>svg]:size-[18px] [&>svg]:text-muted-foreground hover:[&>svg]:text-sidebar-foreground";function fe(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M(Bs,s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(W,{variant:"ghost",size:"sm",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Us(t){const e=w.c(27),{user:s,userImage:a,onOpenSettings:r}=t;let l;e[0]!==s?(l=async()=>{if(!s)return;const y=`ID: ${s.id}
1
+ import{r as N,c as w,j as n,u as je,v as ie,bs as ke,L as Ee,n as kt,G as _t,q as zt,t as Y,bB as Be,g as G,a as _e,aU as $t,bC as It,aY as Ue,bD as le,b as Ot,S as We,d as Tt,e as Mt,N as Et,E as Lt,P as At,aH as Fe,K as Pt,O as Dt}from"./index-CHQ9-Q-G.js";import{C as K,u as Rt}from"./index-CrNYs5dK.js";import{I as Ht,n as Bt,c as Ve,a as he,T as pe,b as xe}from"./empty-state-VwVcPCE1.js";import{P as re}from"./index-aWpPBjkT.js";import{b as ve,u as Ut,S as ee,d as Wt}from"./use-deco-chat-open-Da_cfFLg.js";import{c as M,B as W}from"./button-CKIyuXIq.js";import{d as Ft}from"./constants-DwkB1age.js";import{T as Vt,i as Kt,b as Zt,S as Gt,c as Yt,d as qt,e as Jt,f as Xt,t as Ke}from"./typewriter-title-XDUo1EGk.js";import{s as Ze}from"./Plus-CP35U6Iv.js";import{t as Ge}from"./Users03-B-DO1n7F.js";import{i as ge}from"./X-BnxI_xD6.js";import{E as Ye}from"./error-boundary-C8CO11ML.js";import{a as Qt}from"./Home02-DCnIiCxj.js";import{u as ze,a as es}from"./use-organization-settings-TImCLEbo.js";import{u as oe}from"./use-mobile-CtC8_4UP.js";import{h as X}from"./alert-dialog-DN6po1tq.js";import{P as $e,a as Ie,b as Oe}from"./popover-CjUGVjON.js";import{t as ts}from"./ChevronDown-DeD12W57.js";import{C as qe}from"./create-organization-dialog-QVwT9MeU.js";import{c as ss,b as ns,g as as,a as rs,D as ls}from"./dialog-CjI8rs-6.js";import{L as is}from"./form-CO4xV9gA.js";import{S as os}from"./switch-DKkhDe7l.js";import{i as be}from"./Check-DTUUSvp-.js";import{i as cs}from"./Code01-C2qL6p3f.js";import{a as Je}from"./Copy01-CqWuZ9K-.js";import{n as Le}from"./Inbox01-CUvjj3IH.js";import{B as Ae}from"./badge-DIFY1rsD.js";import{s as Pe}from"./XClose-DvgsYIZw.js";import{i as ds}from"./File06-iSPwdYi1.js";import{I as ms}from"./input-BrgRsDcE.js";import{c as fs}from"./Grid01-B9LzvODL.js";import{a as us,b as hs,D as ps,c as xs,g as De}from"./dropdown-menu-CoO02CsY.js";import{n as Re}from"./LinkExternal01-D33uvRa3.js";import{u as Xe,L as Qe}from"./localstorage-keys-BiLB-Ybm.js";import{R as gs,a as et,b as bs}from"./resizable-DQA2LWqr.js";import"./spinner-CEhxpPPn.js";import"./use-mcp-prompts-DDPkiTOB.js";import"./useQuery-CImYAWdS.js";import"./AlertCircle-CrLCfZT0.js";import"./ArrowUp-deTSI0E8.js";import"./Edit01-BD2PlTCM.js";import"./ChevronRight-8Yl-zCCi.js";import"./Terminal-Djd_0g5K.js";import"./monaco-editor-qYykGrlT.js";import"./use-connection-UwIAiUmR.js";import"./useMutation-C8K1KoTI.js";import"./generate-id-Dyweu44Y.js";import"./SearchMd-DTs0TtNF.js";import"./Trash01-Ck6jzVhZ.js";import"./use-virtual-mcp-BIZk_q3v.js";import"./use-create-virtual-mcp-CG-Wp4A9.js";import"./use-binding-HsWp1jWu.js";import"./binder-Dg2rfYkp.js";import"./select-JdRjOrBE.js";import"./Image01-BYZhOfgB.js";import"./infiniteQueryObserver-CKMx30vn.js";const Se=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Se.displayName="ArrowUpRight";const tt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));tt.displayName="BarChart10";const st=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m12 21-.1-.15c-.695-1.042-1.042-1.563-1.5-1.94a4 4 0 0 0-1.378-.737C8.453 18 7.827 18 6.575 18H5.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2 16.48 2 15.92 2 14.8V6.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 3 4.08 3 5.2 3h.4c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748C12 6.04 12 7.16 12 9.4M12 21V9.4M12 21l.1-.15c.695-1.042 1.042-1.563 1.5-1.94a3.999 3.999 0 0 1 1.378-.737C15.547 18 16.173 18 17.425 18H18.8c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 16.48 22 15.92 22 14.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 3 19.92 3 18.8 3h-.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748C12 6.04 12 7.16 12 9.4"}));st.displayName="BookOpen01";const nt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));nt.displayName="Building02";const at=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m18 17-5-5 5-5m-7 10-5-5 5-5"}));at.displayName="ChevronLeftDouble";const rt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m6 17 5-5-5-5m7 10 5-5-5-5"}));rt.displayName="ChevronRightDouble";const lt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));lt.displayName="Globe01";const it=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));it.displayName="LayoutRight";const ot=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));ot.displayName="LogOut01";const ct=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m3 5c0 .93 0 1.395-.102 1.776a3 3 0 0 1-2.122 2.122C9.395 21 8.93 21 8 21h-.5c-1.398 0-2.097 0-2.648-.228a3 3 0 0 1-1.624-1.624C3 18.597 3 17.898 3 16.5v-9c0-1.398 0-2.097.228-2.648a3 3 0 0 1 1.624-1.624C5.403 3 6.102 3 7.5 3H8c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C12 5.605 12 6.07 12 7"}));ct.displayName="LogOut02";const dt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z"}));dt.displayName="Mail01";const Te=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),N.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z"}));Te.displayName="Settings01";const mt=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));mt.displayName="Settings02";const ft=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Zm-6 8h12M9 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));ft.displayName="Settings04";const ut=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2.18 2.18 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2.18 2.18 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));ut.displayName="UserSquare";const ht=({size:t=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M13 2 4.093 12.688c-.348.418-.523.628-.525.804a.5.5 0 0 0 .185.397c.138.111.41.111.955.111H12l-1 8 8.907-10.688c.348-.418.523-.628.525-.804a.5.5 0 0 0-.185-.397c-.138-.111-.41-.111-.955-.111H12l1-8Z"}));ht.displayName="Zap";function js(){const t=w.c(65),{org:e}=je(),[,s]=ve(),{selectedVirtualMcp:a,modelsConnections:r,isChatEmpty:l,activeThreadId:i,createThread:c,switchToThread:o,threads:d}=Ut();let m;if(t[0]!==i||t[1]!==d){let q;t[3]!==i?(q=Q=>Q.id===i,t[3]=i,t[4]=q):q=t[4],m=d.find(q),t[0]=i,t[1]=d,t[2]=m}else m=t[2];const f=m,[u,b]=N.useState(!1),[g,p]=N.useTransition();let x;t[5]!==e.id?(x=Ft(e.id),t[5]=e.id,t[6]=x):x=t[6];const j=a??x;let v;t[7]!==c?(v=()=>{p(()=>{c()})},t[7]=c,t[8]=v):v=t[8];const S=v;if(r.length===0){let q;t[9]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx(re.Header.Left,{className:"gap-2"}),t[9]=q):q=t[9];let Q;t[10]!==s?(Q=()=>s(!1),t[10]=s,t[11]=Q):Q=t[11];let de;t[12]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=de):de=t[12];let ne;t[13]!==Q?(ne=n.jsxs(re.Header,{className:"flex-none",children:[q,n.jsx(re.Header.Right,{className:"gap-1",children:n.jsx("button",{type:"button",onClick:Q,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:de})})]}),t[13]=Q,t[14]=ne):ne=t[14];let ae;t[15]!==e?(ae=n.jsx(K.Main,{className:"flex flex-col items-center",children:n.jsx(K.EmptyState,{children:n.jsx(K.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ae):ae=t[16];let me;return t[17]!==ne||t[18]!==ae?(me=n.jsxs(K,{children:[ne,ae]}),t[17]=ne,t[18]=ae,t[19]=me):me=t[19],me}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":g?"duration-200 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let _;t[20]!==y?(_=M("absolute inset-0 flex flex-col transition-all ease-in-out",y),t[20]=y,t[21]=_):_=t[21];let k;t[22]!==f||t[23]!==l?(k=!l&&f?.title&&n.jsx(Vt,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=k):k=t[24];let $;t[25]!==k?($=n.jsx(re.Header.Left,{className:"gap-2",children:k}),t[25]=k,t[26]=$):$=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(Ze,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let z;t[28]!==S||t[29]!==g?(z=n.jsx("button",{type:"button",onClick:S,disabled:g,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=g,t[30]=z):z=t[30];let I;t[31]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b(!0),t[31]=I):I=t[31];let O;t[32]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:n.jsx(Kt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=O):O=t[32];let T;t[33]!==s?(T=()=>s(!1),t[33]=s,t[34]=T):T=t[34];let E;t[35]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=E):E=t[35];let L;t[36]!==T?(L=n.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:E}),t[36]=T,t[37]=L):L=t[37];let A;t[38]!==L||t[39]!==z?(A=n.jsxs(re.Header.Right,{className:"gap-1",children:[z,O,L]}),t[38]=L,t[39]=z,t[40]=A):A=t[40];let U;t[41]!==A||t[42]!==$?(U=n.jsxs(re.Header,{className:"flex-none",children:[$,A]}),t[41]=A,t[42]=$,t[43]=U):U=t[43];let D;t[44]!==j||t[45]!==l?(D=n.jsx(K.Main,{children:l?n.jsx(K.EmptyState,{children:n.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[n.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[n.jsx(Ht,{icon:j.icon,name:j.title,size:"lg",fallbackIcon:n.jsx(Ge,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:j.title}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:j.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(K.IceBreakers,{})]})}):n.jsx(K.Messages,{})}),t[44]=j,t[45]=l,t[46]=D):D=t[46];let H;t[47]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx(K.Footer,{children:n.jsx(K.Input,{})}),t[47]=H):H=t[47];let B;t[48]!==U||t[49]!==D||t[50]!==_?(B=n.jsxs("div",{className:_,children:[U,D,H]}),t[48]=U,t[49]=D,t[50]=_,t[51]=B):B=t[51];const R=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let P;t[52]!==R?(P=M("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",R),t[52]=R,t[53]=P):P=t[53];let F;t[54]===Symbol.for("react.memo_cache_sentinel")?(F=()=>b(!1),t[54]=F):F=t[54];let Z;t[55]!==i||t[56]!==o||t[57]!==d?(Z=n.jsx(Zt,{threads:d,activeThreadId:i,onThreadSelect:o,onClose:F}),t[55]=i,t[56]=o,t[57]=d,t[58]=Z):Z=t[58];let se;t[59]!==P||t[60]!==Z?(se=n.jsx("div",{className:P,children:Z}),t[59]=P,t[60]=Z,t[61]=se):se=t[61];let ce;return t[62]!==B||t[63]!==se?(ce=n.jsxs(K,{className:"relative overflow-hidden",children:[B,se]}),t[62]=B,t[63]=se,t[64]=ce):ce=t[64],ce}function vs(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(K.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ye,{fallback:e,children:n.jsx(N.Suspense,{fallback:n.jsx(K.Skeleton,{}),children:n.jsx(js,{})})}),t[1]=s):s=t[1],s}function Ns(){const t=w.c(14),{locator:e,org:s}=je(),a=ie(),r=ke(),{org:l}=Ee.parse(e);let i;t[0]!==e?(i=Ee.isOrgAdminProject(e),t[0]=e,t[1]=i):i=t[1];const c=i,o=ze(s.id);let d;t[2]!==o?.enabled_plugins?(d=o?.enabled_plugins??[],t[2]=o?.enabled_plugins,t[3]=d):d=t[3];const m=d;let f;t[4]!==m?(f=k=>m.includes(k.pluginId),t[4]=m,t[5]=f):f=t[5];const u=kt.filter(f),b=r.location.pathname===`/${l}`||r.location.pathname===`/${l}/`;let g;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Qt,{}),t[6]=g):g=t[6];let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(nt,{}),t[7]=p):p=t[7];let x;t[8]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Bt,{}),t[8]=x):x=t[8];let h;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(Ge,{}),t[9]=h):h=t[9];let j;t[10]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(ht,{}),t[10]=j):j=t[10];let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(tt,{}),t[11]=v):v=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(ut,{}),t[12]=S):S=t[12];let y;t[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Te,{}),t[13]=y):y=t[13];const _=[{key:"home",label:"Home",icon:g,onClick:()=>{b?window.dispatchEvent(new CustomEvent("reset-home-view")):a({to:"/$org",params:{org:l}})}},{key:"store",label:"Store",icon:p,onClick:()=>a({to:"/$org/store",params:{org:l}})},...u.map(k=>({key:k.pluginId,label:k.label,icon:k.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:l,pluginId:k.pluginId}})})),{key:"mcps",label:"Connections",icon:x,onClick:()=>a({to:"/$org/mcps",params:{org:l}})},{key:"agents",label:"Agents",icon:h,onClick:()=>a({to:"/$org/agents",params:{org:l}})},{key:"workflow",label:"Workflows",icon:j,onClick:()=>a({to:"/$org/workflows",params:{org:l}})},{key:"monitoring",label:"Monitoring",icon:v,onClick:()=>a({to:"/$org/monitoring",params:{org:l}})},{key:"members",label:"Members",icon:S,onClick:()=>a({to:"/$org/members",params:{org:l}})},{key:"settings",label:"Settings",icon:y,onClick:()=>a({to:"/$org/settings",params:{org:l}})}];return c?_:[]}const ws="sidebar_state",Ss=3600*24*7,ys="16rem",Cs="18rem",ks="3rem",_s="b",pt=N.createContext(null);function Ne(){const t=N.useContext(pt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function zs(t){const e=w.c(21),{defaultOpen:s,open:a,onOpenChange:r,children:l}=t,i=s===void 0?!0:s,c=oe(),[o,d]=N.useState(!1),[m,f]=N.useState(i),u=a??m;let b;e[0]!==u||e[1]!==r?(b=$=>{const C=typeof $=="function"?$(u):$;r?r(C):f(C),document.cookie=`${ws}=${C}; path=/; max-age=${Ss}`},e[0]=u,e[1]=r,e[2]=b):b=e[2];const g=b;let p;e[3]!==c||e[4]!==g?(p=()=>c?d(Is):g($s),e[3]=c,e[4]=g,e[5]=p):p=e[5];const x=p;let h,j;e[6]!==x?(h=()=>{const $=C=>{if(C.key===_s&&(C.metaKey||C.ctrlKey)){const z=C.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;C.preventDefault(),x()}};return globalThis.addEventListener("keydown",$),()=>globalThis.removeEventListener("keydown",$)},j=[x],e[6]=x,e[7]=h,e[8]=j):(h=e[7],j=e[8]),N.useEffect(h,j);const v=u?"expanded":"collapsed";let S;e[9]!==c||e[10]!==u||e[11]!==o||e[12]!==g||e[13]!==v||e[14]!==x?(S={state:v,open:u,setOpen:g,isMobile:c,openMobile:o,setOpenMobile:d,toggleSidebar:x},e[9]=c,e[10]=u,e[11]=o,e[12]=g,e[13]=v,e[14]=x,e[15]=S):S=e[15];const y=S;let _;e[16]!==l?(_=n.jsx(Ve,{delayDuration:0,children:l}),e[16]=l,e[17]=_):_=e[17];let k;return e[18]!==y||e[19]!==_?(k=n.jsx(pt.Provider,{value:y,children:_}),e[18]=y,e[19]=_,e[20]=k):k=e[20],k}function $s(t){return!t}function Is(t){return!t}function Os(t){const e=w.c(14);let s,a,r,l;e[0]!==t?({className:a,style:l,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l):(s=e[1],a=e[2],r=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":ys,"--sidebar-width-icon":ks,...l},e[5]=l,e[6]=i):i=e[6];const c=i;let o;e[7]!==a?(o=M("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=o):o=e[8];let d;return e[9]!==s||e[10]!==r||e[11]!==c||e[12]!==o?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:o,...r,children:s}),e[9]=s,e[10]=r,e[11]=c,e[12]=o,e[13]=d):d=e[13],d}function Ts(t){const e=w.c(46);let s,a,r,l,i,c;e[0]!==t?({side:l,variant:i,collapsible:c,className:a,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=c):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],c=e[6]);const o=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=c===void 0?"offcanvas":c,{isMobile:f,state:u,openMobile:b,setOpenMobile:g}=Ne();if(m==="none"){let C;e[7]!==a?(C=M("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=C):C=e[8];let z;return e[9]!==s||e[10]!==r||e[11]!==C?(z=n.jsx("div",{"data-slot":"sidebar",className:C,...r,children:s}),e[9]=s,e[10]=r,e[11]=C,e[12]=z):z=e[12],z}if(f){let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":Cs},e[13]=C):C=e[13];let z;e[14]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsxs(Yt,{className:"sr-only",children:[n.jsx(qt,{children:"Sidebar"}),n.jsx(Jt,{children:"Displays the mobile sidebar."})]}),e[14]=z):z=e[14];let I;e[15]!==s?(I=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=I):I=e[16];let O;e[17]!==o||e[18]!==I?(O=n.jsxs(Xt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:o,children:[z,I]}),e[17]=o,e[18]=I,e[19]=O):O=e[19];let T;return e[20]!==b||e[21]!==r||e[22]!==g||e[23]!==O?(T=n.jsx(Gt,{open:b,onOpenChange:g,...r,children:O}),e[20]=b,e[21]=r,e[22]=g,e[23]=O,e[24]=T):T=e[24],T}const p=u==="collapsed"?m:"",x=d==="floating"||d==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let h;e[25]!==x?(h=M("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",x),e[25]=x,e[26]=h):h=e[26];let j;e[27]!==h?(j=n.jsx("div",{"data-slot":"sidebar-gap",className:h}),e[27]=h,e[28]=j):j=e[28];const v=o==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",S=d==="floating"||d==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let y;e[29]!==a||e[30]!==v||e[31]!==S?(y=M("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",v,S,a),e[29]=a,e[30]=v,e[31]=S,e[32]=y):y=e[32];let _;e[33]!==s?(_=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border py-2 flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s}),e[33]=s,e[34]=_):_=e[34];let k;e[35]!==r||e[36]!==y||e[37]!==_?(k=n.jsx("div",{"data-slot":"sidebar-container",className:y,...r,children:_}),e[35]=r,e[36]=y,e[37]=_,e[38]=k):k=e[38];let $;return e[39]!==o||e[40]!==u||e[41]!==k||e[42]!==p||e[43]!==j||e[44]!==d?($=n.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":u,"data-collapsible":p,"data-variant":d,"data-side":o,"data-slot":"sidebar",children:[j,k]}),e[39]=o,e[40]=u,e[41]=k,e[42]=p,e[43]=j,e[44]=d,e[45]=$):$=e[45],$}function Ms(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function xt(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Es(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 px-2 items-start justify-start",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ls(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("h-4 m-0! w-full",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-sidebar":"separator",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function As(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ps(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ds(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("w-full text-sm",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function we(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function te(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("group/menu-item relative",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}const Rs=zt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg px-2 py-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,colors] transition-colors duration-150 ease-out hover:transition-none focus-visible:ring-2 active:bg-sidebar-accent/75 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent/75 [&>span:last-child]:truncate [&>svg]:size-[18px] [&>svg]:shrink-0 [&>svg]:text-muted-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent text-sidebar-foreground/80 active:text-sidebar-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-7 text-sm font-[450]",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Me(t){const e=w.c(28);let s,a,r,l,i,c,o;e[0]!==t?({asChild:r,isActive:l,variant:i,size:c,tooltip:o,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=c,e[7]=o):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],c=e[6],o=e[7]);const d=r===void 0?!1:r,m=l===void 0?!1:l,f=i===void 0?"default":i,u=c===void 0?"default":c,b=d?_t:"button",{isMobile:g,state:p}=Ne();let x;e[8]!==s||e[9]!==u||e[10]!==f?(x=M(Rs({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=x):x=e[11];let h;e[12]!==b||e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==x?(h=n.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:x,...a}),e[12]=b,e[13]=m,e[14]=a,e[15]=u,e[16]=x,e[17]=h):h=e[17];const j=h;if(!o)return j;if(typeof o=="string"){let k;e[18]!==o?(k={children:o},e[18]=o,e[19]=k):k=e[19],o=k}let v;e[20]!==j?(v=n.jsx(pe,{asChild:!0,children:j}),e[20]=j,e[21]=v):v=e[21];const S=p!=="collapsed"||g;let y;e[22]!==S||e[23]!==o?(y=n.jsx(he,{side:"right",align:"center",hidden:S,...o}),e[22]=S,e[23]=o,e[24]=y):y=e[24];let _;return e[25]!==v||e[26]!==y?(_=n.jsxs(xe,{children:[v,y]}),e[25]=v,e[26]=y,e[27]=_):_=e[27],_}function gt(t){const e=w.c(11),{navigationItems:s,header:a,footer:r,additionalContent:l,variant:i,collapsible:c}=t,o=i===void 0?"sidebar":i,d=c===void 0?"icon":c;let m;e[0]!==s?(m=s.map(Hs),e[0]=s,e[1]=m):m=e[1];let f;e[2]!==l||e[3]!==m?(f=n.jsx(As,{className:"flex-1 overflow-x-hidden",children:n.jsx(Ps,{className:"font-medium",children:n.jsx(Ds,{children:n.jsxs(we,{className:"gap-0.5",children:[m,l]})})})}),e[2]=l,e[3]=m,e[4]=f):f=e[4];let u;return e[5]!==d||e[6]!==r||e[7]!==a||e[8]!==f||e[9]!==o?(u=n.jsxs(Ts,{variant:o,collapsible:d,children:[a,f,r]}),e[5]=d,e[6]=r,e[7]=a,e[8]=f,e[9]=o,e[10]=u):u=e[10],u}function Hs(t){return n.jsx(te,{children:n.jsxs(Me,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),n.jsx("span",{className:"truncate",children:t.label})]})},t.key)}gt.Skeleton=function(){return n.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>n.jsx("div",{className:"w-full h-8",children:n.jsx(ee,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};const Bs="w-full h-8 justify-start gap-2 px-2 text-sm font-[450] text-sidebar-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent active:bg-sidebar-accent/75 [&>svg]:size-[18px] [&>svg]:text-muted-foreground hover:[&>svg]:text-sidebar-foreground";function fe(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M(Bs,s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(W,{variant:"ghost",size:"sm",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Us(t){const e=w.c(27),{user:s,userImage:a,onOpenSettings:r}=t;let l;e[0]!==s?(l=async()=>{if(!s)return;const y=`ID: ${s.id}
2
2
  Name: ${s.name||"N/A"}
3
3
  Email: ${s.email}`;try{await navigator.clipboard.writeText(y),Y.success("User info copied to clipboard")}catch{Y.error("Failed to copy user info to clipboard")}},e[0]=s,e[1]=l):l=e[1];const i=l,c=s.name||s.email||"U";let o;e[2]!==c||e[3]!==a?(o=n.jsx(X,{url:a,fallback:c,shape:"circle",size:"sm",className:"size-8 shrink-0"}),e[2]=c,e[3]=a,e[4]=o):o=e[4];const d=s.name||"User";let m;e[5]!==d?(m=n.jsx("span",{className:"text-sm text-sidebar-foreground truncate font-[450]",children:d}),e[5]=d,e[6]=m):m=e[6];let f;e[7]!==s.email?(f=n.jsx("span",{className:"text-xs text-muted-foreground truncate font-normal",children:s.email}),e[7]=s.email,e[8]=f):f=e[8];let u;e[9]!==m||e[10]!==f?(u=n.jsxs("div",{className:"flex flex-col min-w-0 text-left",children:[m,f]}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let b;e[12]!==i||e[13]!==o||e[14]!==u?(b=n.jsxs(W,{variant:"ghost",onClick:i,className:"h-auto p-2 m-1 mb-0 justify-start gap-2 hover:bg-sidebar-accent hover:text-inherit active:bg-sidebar-accent/75",children:[o,u]}),e[12]=i,e[13]=o,e[14]=u,e[15]=b):b=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ft,{size:18}),e[16]=g):g=e[16];let p;e[17]!==r?(p=n.jsxs(fe,{onClick:r,children:[g,"Preferences"]}),e[17]=r,e[18]=p):p=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(fe,{asChild:!0,children:n.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",children:[n.jsx(st,{size:18}),n.jsx("span",{className:"flex-1",children:"Terms & Conditions"}),n.jsx(Se,{size:14})]})}),e[19]=x):x=e[19];let h;e[20]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(fe,{asChild:!0,children:n.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",children:[n.jsx(Be,{className:"size-[18px]"}),n.jsx("span",{className:"flex-1",children:"decocms/mesh"}),n.jsx(Se,{size:14})]})}),e[20]=h):h=e[20];let j;e[21]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsxs(fe,{onClick:Ws,children:[n.jsx(ct,{size:18}),"Log out"]}),e[21]=j):j=e[21];let v;e[22]!==p?(v=n.jsxs("div",{className:"p-1 flex flex-col",children:[p,x,h,j]}),e[22]=p,e[23]=v):v=e[23];let S;return e[24]!==v||e[25]!==b?(S=n.jsx(n.Fragment,{children:n.jsxs("div",{className:"flex flex-col gap-0.5 bg-sidebar min-w-[250px]",children:[b,v]})}),e[24]=v,e[25]=b,e[26]=S):S=e[26],S}function Ws(){return G.signOut()}function Fs(t){const e=w.c(22),{org:s,isActive:a,onClick:r,onSettings:l}=t,[i,c]=N.useState(!1),o=a||i,d=a&&"bg-accent hover:bg-accent";let m;e[0]!==d?(m=M("flex items-center gap-2 w-full justify-start font-normal h-10 px-2 rounded-lg cursor-pointer transition-colors hover:bg-accent/50",d),e[0]=d,e[1]=m):m=e[1];let f;e[2]!==r?(f=v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),r?.())},e[2]=r,e[3]=f):f=e[3];let u,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(!0),b=()=>c(!1),e[4]=u,e[5]=b):(u=e[4],b=e[5]);const g=s.logo??void 0;let p;e[6]!==s.name||e[7]!==g?(p=n.jsx(X,{url:g,fallback:s.name,size:"sm",className:"size-6 shrink-0 rounded-md",objectFit:"cover"}),e[6]=s.name,e[7]=g,e[8]=p):p=e[8];let x;e[9]!==s.name?(x=n.jsx("span",{className:"flex-1 text-sm text-foreground truncate text-left min-w-0",children:s.name}),e[9]=s.name,e[10]=x):x=e[10];let h;e[11]!==l||e[12]!==s.name||e[13]!==o?(h=l&&o?n.jsx("button",{type:"button","aria-label":`${s.name} settings`,className:"size-5 shrink-0 flex items-center justify-center rounded-md transition-colors hover:bg-foreground/10",onClick:v=>{v.stopPropagation(),l()},children:n.jsx(mt,{size:16,className:"text-muted-foreground"})}):n.jsx("span",{className:"size-5 shrink-0","aria-hidden":"true"}),e[11]=l,e[12]=s.name,e[13]=o,e[14]=h):h=e[14];let j;return e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==p||e[19]!==x||e[20]!==h?(j=n.jsxs("div",{role:"button",tabIndex:0,className:m,onClick:r,onKeyDown:f,onMouseEnter:u,onMouseLeave:b,children:[p,x,h]}),e[15]=r,e[16]=m,e[17]=f,e[18]=p,e[19]=x,e[20]=h,e[21]=j):j=e[21],j}function Vs(t){const e=w.c(30),{currentOrgSlug:s,onOrgSelect:a,onOrgSettings:r,onPopoverClose:l,onCreateOrganization:i}=t,{data:c}=G.useListOrganizations();let o,d,m,f;if(e[0]!==s||e[1]!==i||e[2]!==a||e[3]!==r||e[4]!==l||e[5]!==c){let g;e[10]!==s?(g=(S,y)=>S.slug===s?-1:y.slug===s?1:S.name.localeCompare(y.name),e[10]=s,e[11]=g):g=e[11];const p=[...c??[]].sort(g);m="flex flex-col min-w-[275px] border-l border-border";let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("span",{className:"text-xs text-muted-foreground truncate",children:"Your Organizations"}),e[12]=x):x=e[12];let h;e[13]!==i||e[14]!==l?(h=()=>{l(),i()},e[13]=i,e[14]=l,e[15]=h):h=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Ze,{size:16,className:"text-muted-foreground"}),e[16]=j):j=e[16],e[17]!==h?(f=n.jsxs("div",{className:"flex items-center justify-between h-10 px-3 border-b border-border",children:[x,n.jsx(W,{variant:"ghost",size:"icon",className:"size-5",onClick:h,children:j})]}),e[17]=h,e[18]=f):f=e[18],o="flex flex-col gap-0.5 p-1 flex-1 overflow-y-auto";let v;e[19]!==s||e[20]!==a||e[21]!==r?(v=S=>n.jsx(Fs,{org:S,isActive:S.slug===s,onClick:()=>a(S.slug),onSettings:()=>r(S.slug)},S.slug),e[19]=s,e[20]=a,e[21]=r,e[22]=v):v=e[22],d=p.map(v),e[0]=s,e[1]=i,e[2]=a,e[3]=r,e[4]=l,e[5]=c,e[6]=o,e[7]=d,e[8]=m,e[9]=f}else o=e[6],d=e[7],m=e[8],f=e[9];let u;e[23]!==o||e[24]!==d?(u=n.jsx("div",{className:o,children:d}),e[23]=o,e[24]=d,e[25]=u):u=e[25];let b;return e[26]!==m||e[27]!==f||e[28]!==u?(b=n.jsxs("div",{className:m,children:[f,u]}),e[26]=m,e[27]=f,e[28]=u,e[29]=b):b=e[29],b}function bt(t){const e=w.c(48),{open:s,onOpenChange:a,user:r,userImage:l}=t,[i,c]=Rt(),[o,d]=N.useState(!1);let m;e[0]!==r.id?(m=()=>{navigator.clipboard.writeText(r.id),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=r.id,e[1]=m):m=e[1];const f=m;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(ss,{className:"text-base",children:"Profile Settings"}),e[2]=u):u=e[2];let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsxs(ns,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[u,n.jsxs(as,{className:"absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[n.jsx(ge,{size:16}),n.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[3]=b):b=e[3];const g=r.name||"U";let p;e[4]!==g||e[5]!==l?(p=n.jsx(X,{url:l,fallback:g,shape:"circle",size:"xl",className:"h-16 w-16"}),e[4]=g,e[5]=l,e[6]=p):p=e[6];const x=r.name||"User";let h;e[7]!==x?(h=n.jsx("span",{className:"text-base font-medium text-foreground",children:x}),e[7]=x,e[8]=h):h=e[8];let j;e[9]!==r.email?(j=n.jsx("span",{className:"text-sm text-muted-foreground",children:r.email}),e[9]=r.email,e[10]=j):j=e[10];let v;e[11]!==h||e[12]!==j?(v=n.jsxs("div",{className:"flex flex-col gap-1",children:[h,j]}),e[11]=h,e[12]=j,e[13]=v):v=e[13];let S;e[14]!==p||e[15]!==v?(S=n.jsxs("div",{className:"flex items-center gap-4",children:[p,v]}),e[14]=p,e[15]=v,e[16]=S):S=e[16];let y;e[17]!==i||e[18]!==c?(y=()=>c(!i),e[17]=i,e[18]=c,e[19]=y):y=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[n.jsxs(is,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[n.jsx(cs,{size:16,className:"text-muted-foreground"}),"Developer Mode"]}),n.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Show technical details like JSON input/output for tool calls"})]}),e[20]=_):_=e[20];let k;e[21]!==i||e[22]!==c?(k=n.jsx("div",{onClick:Ks,children:n.jsx(os,{checked:i,onCheckedChange:c})}),e[21]=i,e[22]=c,e[23]=k):k=e[23];let $;e[24]!==y||e[25]!==k?($=n.jsxs("button",{type:"button",onClick:y,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[_,k]}),e[24]=y,e[25]=k,e[26]=$):$=e[26];let C;e[27]!==S||e[28]!==$?(C=n.jsxs("div",{className:"p-5 space-y-6 min-h-[225px]",children:[S,$]}),e[27]=S,e[28]=$,e[29]=C):C=e[29];let z;e[30]!==r.id?(z=n.jsx("span",{className:"font-mono text-xs",children:r.id}),e[30]=r.id,e[31]=z):z=e[31];let I;e[32]!==o?(I=o?n.jsx(be,{size:14,className:"text-green-600"}):n.jsx(Je,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[32]=o,e[33]=I):I=e[33];let O;e[34]!==f||e[35]!==z||e[36]!==I?(O=n.jsx(pe,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:f,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[z,I]})}),e[34]=f,e[35]=z,e[36]=I,e[37]=O):O=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{side:"top",children:n.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[38]=T):T=e[38];let E;e[39]!==O?(E=n.jsx("div",{className:"border-t border-border px-5 py-4 flex items-center shrink-0",children:n.jsx(Ve,{children:n.jsxs(xe,{children:[O,T]})})}),e[39]=O,e[40]=E):E=e[40];let L;e[41]!==C||e[42]!==E?(L=n.jsxs(rs,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[b,n.jsxs("div",{className:"flex flex-col",children:[C,E]})]}),e[41]=C,e[42]=E,e[43]=L):L=e[43];let A;return e[44]!==a||e[45]!==s||e[46]!==L?(A=n.jsx(ls,{open:s,onOpenChange:a,children:L}),e[44]=a,e[45]=s,e[46]=L,e[47]=A):A=e[47],A}function Ks(t){return t.stopPropagation()}function jt(t){const e=w.c(47),{isCollapsed:s}=t,a=s===void 0?!1:s;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{org:l}=_e(r),{data:i}=G.useListOrganizations(),{data:c}=G.useSession(),o=ie();let d;e[1]!==l||e[2]!==i?(d=i?.find(Z=>Z.slug===l),e[1]=l,e[2]=i,e[3]=d):d=e[3];const m=d,[f,u]=N.useState(!1),[b,g]=N.useState(!1),[p,x]=N.useState(!1),h=c?.user,j=h?.image;let v;e[4]!==o?(v=Z=>{u(!1),o({to:"/$org/settings",params:{org:Z}})},e[4]=o,e[5]=v):v=e[5];const S=v;let y;e[6]!==o?(y=Z=>{u(!1),o({to:"/$org",params:{org:Z}})},e[6]=o,e[7]=y):y=e[7];const _=y,k=a?"justify-center":"justify-start",$=a?"":"pl-0.5! px-1.5 gap-1.5";let C;e[8]!==k||e[9]!==$?(C=M("h-7 min-w-0 max-w-full hover:bg-sidebar-accent",k,$),e[8]=k,e[9]=$,e[10]=C):C=e[10];const z=m?.logo??"",I=m?.name??"";let O;e[11]!==I||e[12]!==z?(O=n.jsx(X,{url:z,fallback:I,size:"xs",className:"shrink-0 rounded-[5px]",objectFit:"cover"}),e[11]=I,e[12]=z,e[13]=O):O=e[13];let T;e[14]!==m?.name||e[15]!==a?(T=!a&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"truncate text-[14px] tracking-[-0.00625rem] font-medium text-foreground text-left",children:m?.name??"Select org"}),n.jsx(ts,{className:"size-3.5 text-muted-foreground shrink-0"})]}),e[14]=m?.name,e[15]=a,e[16]=T):T=e[16];let E;e[17]!==O||e[18]!==T||e[19]!==C?(E=n.jsx($e,{asChild:!0,children:n.jsxs(W,{variant:"ghost",size:"sm",className:C,children:[O,T]})}),e[17]=O,e[18]=T,e[19]=C,e[20]=E):E=e[20];let L;e[21]!==h||e[22]!==j?(L=h&&n.jsx(Us,{user:h,userImage:j,onOpenSettings:()=>{g(!0),u(!1)}}),e[21]=h,e[22]=j,e[23]=L):L=e[23];let A,U;e[24]===Symbol.for("react.memo_cache_sentinel")?(A=()=>u(!1),U=()=>x(!0),e[24]=A,e[25]=U):(A=e[24],U=e[25]);let D;e[26]!==S||e[27]!==_||e[28]!==l?(D=n.jsx(Vs,{currentOrgSlug:l,onOrgSelect:_,onOrgSettings:S,onPopoverClose:A,onCreateOrganization:U}),e[26]=S,e[27]=_,e[28]=l,e[29]=D):D=e[29];let H;e[30]!==L||e[31]!==D?(H=n.jsxs(Ie,{align:"start",side:"bottom",className:"p-0 flex w-auto h-88 overflow-hidden",children:[L,D]}),e[30]=L,e[31]=D,e[32]=H):H=e[32];let B;e[33]!==f||e[34]!==E||e[35]!==H?(B=n.jsxs(Oe,{open:f,onOpenChange:u,children:[E,H]}),e[33]=f,e[34]=E,e[35]=H,e[36]=B):B=e[36];let R;e[37]!==b||e[38]!==h||e[39]!==j?(R=h&&b&&h.email&&n.jsx(bt,{open:b,onOpenChange:g,user:{...h,name:h.name??void 0,email:h.email},userImage:j}),e[37]=b,e[38]=h,e[39]=j,e[40]=R):R=e[40];let P;e[41]!==p?(P=n.jsx(qe,{open:p,onOpenChange:x}),e[41]=p,e[42]=P):P=e[42];let F;return e[43]!==B||e[44]!==R||e[45]!==P?(F=n.jsxs(n.Fragment,{children:[B,R,P]}),e[43]=B,e[44]=R,e[45]=P,e[46]=F):F=e[46],F}jt.Skeleton=function(){return n.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[n.jsx(ee,{className:"size-5 rounded-[5px] shrink-0"}),n.jsx(ee,{className:"h-3.5 flex-1"})]})};function ye(){const t=w.c(45),{state:e,toggleSidebar:s}=Ne(),a=e==="collapsed",[r,l]=ve();let i;t[0]!==l?(i=()=>{l(Zs)},t[0]=l,t[1]=i):i=t[1];const c=i,o=a&&"group-hover/account-switcher:opacity-0 group-hover/account-switcher:pointer-events-none group-hover/account-switcher:invisible";let d;t[2]!==o?(d=M("w-full min-w-0 transition-opacity",o),t[2]=o,t[3]=d):d=t[3];let m;t[4]!==a?(m=n.jsx(jt,{isCollapsed:a}),t[4]=a,t[5]=m):m=t[5];let f;t[6]!==d||t[7]!==m?(f=n.jsx("div",{className:d,children:m}),t[6]=d,t[7]=m,t[8]=f):f=t[8];const u=a?"opacity-0 invisible pointer-events-none group-hover/account-switcher:opacity-100 group-hover/account-switcher:visible group-hover/account-switcher:pointer-events-auto":"opacity-0 invisible pointer-events-none";let b;t[9]!==u?(b=M("absolute inset-0 m-auto size-7 hover:bg-sidebar-accent transition-opacity",u),t[9]=u,t[10]=b):b=t[10];const g=!a;let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(rt,{className:"size-4 text-muted-foreground shrink-0"}),t[11]=p):p=t[11];let x;t[12]!==b||t[13]!==g||t[14]!==s?(x=n.jsx(W,{variant:"ghost",size:"icon",className:b,onClick:s,"aria-label":"Expand sidebar",disabled:g,children:p}),t[12]=b,t[13]=g,t[14]=s,t[15]=x):x=t[15];let h;t[16]!==f||t[17]!==x?(h=n.jsxs("div",{className:"group/account-switcher relative flex items-center justify-center gap-1.5 min-w-0 flex-1 overflow-hidden",children:[f,x]}),t[16]=f,t[17]=x,t[18]=h):h=t[18];const j=a&&"hidden";let v;t[19]!==j?(v=M("flex items-center gap-0.5 shrink-0",j),t[19]=j,t[20]=v):v=t[20];let S;t[21]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(at,{className:"size-4 text-muted-foreground"}),t[21]=S):S=t[21];let y;t[22]!==a||t[23]!==s?(y=n.jsx(pe,{asChild:!0,children:n.jsx(W,{variant:"ghost",size:"icon",className:"size-7 hover:bg-sidebar-accent",onClick:s,"aria-label":"Collapse sidebar",disabled:a,children:S})}),t[22]=a,t[23]=s,t[24]=y):y=t[24];let _;t[25]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(he,{side:"bottom",children:"Collapse sidebar"}),t[25]=_):_=t[25];let k;t[26]!==y?(k=n.jsxs(xe,{children:[y,_]}),t[26]=y,t[27]=k):k=t[27];const $=r&&"bg-sidebar-accent";let C;t[28]!==$?(C=M("size-7 hover:bg-sidebar-accent",$),t[28]=$,t[29]=C):C=t[29];let z;t[30]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsx(Ke,{size:11,className:"text-muted-foreground"}),t[30]=z):z=t[30];let I;t[31]!==a||t[32]!==C||t[33]!==c?(I=n.jsx(pe,{asChild:!0,children:n.jsx(W,{variant:"ghost",size:"icon",className:C,onClick:c,"aria-label":"Toggle Decopilot",disabled:a,children:z})}),t[31]=a,t[32]=C,t[33]=c,t[34]=I):I=t[34];let O;t[35]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(he,{side:"bottom",children:"Toggle Decopilot"}),t[35]=O):O=t[35];let T;t[36]!==I?(T=n.jsxs(xe,{children:[I,O]}),t[36]=I,t[37]=T):T=t[37];let E;t[38]!==v||t[39]!==k||t[40]!==T?(E=n.jsxs("div",{className:v,children:[k,T]}),t[38]=v,t[39]=k,t[40]=T,t[41]=E):E=t[41];let L;return t[42]!==h||t[43]!==E?(L=n.jsx(xt,{className:"h-12 gap-0 pt-0",children:n.jsx(we,{children:n.jsx(te,{children:n.jsxs("div",{className:"flex items-center justify-between w-full h-12",children:[h,E]})})})}),t[42]=h,t[43]=E,t[44]=L):L=t[44],L}function Zs(t){return!t}ye.Skeleton=function(){return n.jsx(xt,{className:"h-12 gap-0 pt-0",children:n.jsx(we,{children:n.jsx(te,{children:n.jsxs("div",{className:"flex items-center justify-between w-full h-12",children:[n.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1 px-1.5",children:[n.jsx(ee,{className:"size-5 rounded-[5px] shrink-0"}),n.jsx(ee,{className:"h-3.5 w-16"})]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[n.jsx(ee,{className:"size-7 rounded-lg"}),n.jsx(ee,{className:"size-7 rounded-lg"})]})]})})})})};function Gs({invitation:t,onStatusChange:e}){const[s,a]=N.useState(!1),[r,l]=N.useState(!1),i=ie(),c=async()=>{a(!0);try{const b=await G.organization.acceptInvitation({invitationId:t.id});if(b.error)Y.error(b.error.message),a(!1);else{e(t.id,"accepted");const g=await G.organization.setActive({organizationId:t.organizationId});g?.data?.slug?(Y.success("Invitation accepted!"),i({to:"/$org",params:{org:g.data.slug}})):(Y.success("Invitation accepted! Redirecting..."),i({to:"/"}))}}catch{Y.error("Failed to accept invitation"),a(!1)}},o=async()=>{l(!0);try{const b=await G.organization.rejectInvitation({invitationId:t.id});b.error?(Y.error(b.error.message),l(!1)):(Y.success("Invitation rejected"),e(t.id,"rejected"),l(!1))}catch{Y.error("Failed to reject invitation"),l(!1)}},d=t.organizationName||t.organizationId,m=t.status==="pending",f=t.status==="accepted",u=t.status==="rejected";return n.jsxs("div",{className:M("flex items-center gap-3 px-3 py-2 h-12 border-b border-border/50 last:border-b-0",!m&&"opacity-50"),children:[n.jsx("div",{className:"shrink-0 size-5 flex items-center justify-center",children:n.jsx(dt,{size:16,className:"text-muted-foreground"})}),n.jsxs("p",{className:"flex-1 text-sm text-foreground min-w-0 whitespace-nowrap overflow-hidden",children:["You have been invited to ",n.jsx("span",{className:"font-semibold inline-block max-w-[200px] truncate align-bottom",children:d})]}),n.jsx("div",{className:"flex items-center gap-1 shrink-0",children:m?n.jsxs(n.Fragment,{children:[n.jsx(W,{variant:"ghost",size:"icon",onClick:o,disabled:s||r,className:"h-8 w-8",children:n.jsx(Pe,{size:14})}),n.jsx(W,{variant:"outline",size:"icon",onClick:c,disabled:s||r,className:"h-8 w-8",children:n.jsx(be,{size:14})})]}):f?n.jsxs(Ae,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(be,{size:12}),"Accepted"]}):u?n.jsxs(Ae,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(Pe,{size:12}),"Declined"]}):null})]})}function Ys(){const[t,e]=N.useState(!1),s=N.useContext($t),{data:a}=s.hooks.useListUserInvitations(),{data:r}=G.useListOrganizations(),[l,i]=N.useState({}),m=(a??[]).filter(p=>new Date(p.expiresAt)>new Date).map(p=>{const x=(r??[]).find(h=>h.id===p.organizationId);return{...p,organizationSlug:x?.slug||p.organizationSlug,organizationName:x?.name||p.organizationName}}).map(p=>({...p,status:l[p.id]||p.status})),f=[...m].sort((p,x)=>{const h={pending:0,accepted:1,rejected:2};return(h[p.status]??999)-(h[x.status]??999)}),b=m.filter(p=>p.status==="pending").length>0,g=(p,x)=>{i(h=>({...h,[p]:x}))};return n.jsx(Es,{className:"border-t border-border pt-2",children:n.jsx(we,{children:n.jsx(te,{children:n.jsxs(Oe,{open:t,onOpenChange:e,children:[n.jsx($e,{asChild:!0,children:n.jsxs(Me,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground relative",tooltip:"Inbox",children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:n.jsx(Le,{})}),n.jsx("span",{className:"truncate",children:"Inbox"}),b&&n.jsx("span",{className:"absolute top-1 right-1 h-2 w-2 rounded-full bg-destructive"})]})}),n.jsxs(Ie,{align:"end",className:"w-[480px] p-0 overflow-hidden",children:[n.jsx("div",{className:"px-4 py-3 border-b border-border",children:n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Inbox"})}),n.jsx("div",{className:"max-h-96 overflow-auto",children:f.length>0?f.map(p=>n.jsx(Gs,{invitation:p,onStatusChange:g},p.id)):n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[n.jsx(Le,{size:32,className:"text-muted-foreground/40 mb-2"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"No invitations at the moment"})]})})]})]})})})})}function vt(t){const e=w.c(4),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ls,{className:"my-2 -ml-1"}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(te,{children:n.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:n.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=r):r=e[1];let l;return e[2]!==s?(l=n.jsxs(n.Fragment,{children:[a,r,s]}),e[2]=s,e[3]=l):l=e[3],l}function qs(t){const e=w.c(26),{item:s}=t,a=ie(),{org:r}=je(),l=ze(r.id),i=es(r.id);let c;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(c=async()=>{const S=(l?.sidebar_items||[]).filter(y=>y.url!==s.url);await i.update.mutateAsync({sidebar_items:S})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=c):c=e[3];const o=c;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=/^https?:\/\/.+/,e[4]=d):d=e[4];let m;e[5]!==s.icon?(m=d.test(s.icon),e[5]=s.icon,e[6]=m):m=e[6];const f=m;let u;e[7]!==s.url||e[8]!==a?(u=()=>{a({to:s.url})},e[7]=s.url,e[8]=a,e[9]=u):u=e[9];const b=s.title;let g;e[10]!==f||e[11]!==s.icon||e[12]!==s.title?(g=n.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?n.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):n.jsx(ds,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=s.icon,e[12]=s.title,e[13]=g):g=e[13];let p;e[14]!==s.title?(p=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=p):p=e[15];let x;e[16]!==p?(x=n.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:n.jsx("span",{className:"truncate text-sm w-full capitalize",children:p})}),e[16]=p,e[17]=x):x=e[17];let h;e[18]!==o?(h=n.jsx(ge,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:v=>{v.preventDefault(),v.stopPropagation(),o()}}),e[18]=o,e[19]=h):h=e[19];let j;return e[20]!==s.title||e[21]!==u||e[22]!==g||e[23]!==x||e[24]!==h?(j=n.jsx(te,{children:n.jsxs(Me,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:b,children:[g,x,h]})}),e[20]=s.title,e[21]=u,e[22]=g,e[23]=x,e[24]=h,e[25]=j):j=e[25],j}function He(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(te,{children:n.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:n.jsx(ee,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Js(){const t=w.c(4),{org:e}=je(),a=ze(e.id)?.sidebar_items;if(!a?.length)return null;let r;t[0]!==a?(r=a.map(Xs),t[0]=a,t[1]=r):r=t[1];let l;return t[2]!==r?(l=n.jsx(vt,{children:r}),t[2]=r,t[3]=l):l=t[3],l}function Xs(t){return n.jsx(qs,{item:t},t.url)}function Qs(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(N.Suspense,{fallback:n.jsxs(vt,{children:[n.jsx(He,{}),n.jsx(He,{})]}),children:n.jsx(Js,{})}),t[0]=e):e=t[0],e}function en(){const t=w.c(5),e=Ns();let s,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(N.Suspense,{fallback:n.jsx(ye.Skeleton,{}),children:n.jsx(ye,{})}),a=n.jsx(Ys,{}),t[0]=s,t[1]=a):(s=t[0],a=t[1]);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ye,{children:n.jsx(N.Suspense,{fallback:null,children:n.jsx(Qs,{})})}),t[2]=r):r=t[2];let l;return t[3]!==e?(l=n.jsx(gt,{navigationItems:e,header:s,footer:a,additionalContent:r}),t[3]=e,t[4]=l):l=t[4],l}function tn(t){const e=w.c(12);let s,a,r,l;e[0]!==t?({className:s,orientation:r,decorative:l,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l):(s=e[1],a=e[2],r=e[3],l=e[4]);const i=r===void 0?"horizontal":r,c=l===void 0?!0:l;let o;e[5]!==s?(o=M("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",s),e[5]=s,e[6]=o):o=e[6];let d;return e[7]!==c||e[8]!==i||e[9]!==a||e[10]!==o?(d=n.jsx(It,{"data-slot":"separator-root",decorative:c,orientation:i,className:o,...a}),e[7]=c,e[8]=i,e[9]=a,e[10]=o,e[11]=d):d=e[11],d}const Nt=N.createContext(null);function sn(){const t=N.useContext(Nt);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function nn(t){const e=w.c(10),{children:s,onItemHover:a}=t,[r,l]=N.useState(null);let i;e[0]!==a?(i=f=>{l(f),a?.(f)},e[0]=a,e[1]=i):i=e[1];const c=i;let o;e[2]!==r||e[3]!==c?(o={hoveredItem:r,setHoveredItem:c},e[2]=r,e[3]=c,e[4]=o):o=e[4];let d;e[5]!==s?(d=n.jsx(Oe,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==o||e[8]!==d?(m=n.jsx(Nt.Provider,{value:o,children:d}),e[7]=o,e[8]=d,e[9]=m):m=e[9],m}function an(t){const e=w.c(6),{children:s,onClick:a}=t;let r;e[0]!==s||e[1]!==a?(r=n.jsx(W,{variant:"link",className:"p-0.5 h-auto",onClick:a,type:"button",children:s}),e[0]=s,e[1]=a,e[2]=r):r=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx($e,{asChild:!0,children:n.jsx(W,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:n.jsx(Wt,{size:16,className:"opacity-50"})})}),e[3]=l):l=e[3];let i;return e[4]!==r?(i=n.jsxs("div",{className:"flex items-center gap-1",children:[r,l]}),e[4]=r,e[5]=i):i=e[5],i}function rn(t){const e=w.c(8),{item:s,fallback:a}=t,r=a===void 0?"":a,l=s?.avatarUrl??"",i=s?.name??r;let c;e[0]!==l||e[1]!==i?(c=n.jsx(X,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=c):c=e[2];const o=s?.name??r;let d;e[3]!==o?(d=n.jsx("span",{children:o}),e[3]=o,e[4]=d):d=e[4];let m;return e[5]!==c||e[6]!==d?(m=n.jsxs("div",{className:"flex items-center gap-2",children:[c,d]}),e[5]=c,e[6]=d,e[7]=m):m=e[7],m}function ln(t){const e=w.c(6),{children:s,align:a}=t,r=a===void 0?"start":a,i=N.Children.toArray(s).filter(on).length===1?"280px":"480px";let c;e[0]!==i?(c={width:i},e[0]=i,e[1]=c):c=e[1];let o;return e[2]!==r||e[3]!==s||e[4]!==c?(o=n.jsx(Ie,{align:r,className:"p-0 flex items-start",style:c,children:s}),e[2]=r,e[3]=s,e[4]=c,e[5]=o):o=e[5],o}function on(t){return N.isValidElement(t)&&(t.type===St||t.type===wt)}function wt(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const St=wt;function cn(t){const e=w.c(6),{placeholder:s,value:a,onChange:r}=t,l=s===void 0?"Search...":s;let i;e[0]!==r?(i=o=>r(o.target.value),e[0]=r,e[1]=i):i=e[1];let c;return e[2]!==l||e[3]!==i||e[4]!==a?(c=n.jsx(ms,{placeholder:l,value:a,onChange:i,className:"rounded-none border-t-0 border-x-0 focus-visible:border-border focus-visible:ring-0"}),e[2]=l,e[3]=i,e[4]=a,e[5]=c):c=e[5],c}function dn(t){const e=w.c(6),{children:s,emptyMessage:a}=t,r=a===void 0?"No items found.":a,l=N.Children.count(s)>0;let i;e[0]!==r||e[1]!==l?(i=!l&&n.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:r}),e[0]=r,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==s||e[4]!==i?(c=n.jsxs("div",{className:"flex flex-col gap-0.5 p-1 max-h-44 overflow-y-auto",children:[i,s]}),e[3]=s,e[4]=i,e[5]=c):c=e[5],c}function mn(t){const e=w.c(15),{item:s,onClick:a,onHover:r,children:l}=t,i=sn();let c;e[0]!==i||e[1]!==s||e[2]!==r?(c=()=>{i.setHoveredItem(s.slug),r?.(s)},e[0]=i,e[1]=s,e[2]=r,e[3]=c):c=e[3];const o=c;let d;e[4]!==s||e[5]!==a?(d=()=>a(s),e[4]=s,e[5]=a,e[6]=d):d=e[6];let m;e[7]!==l||e[8]!==s.avatarUrl||e[9]!==s.name?(m=l||n.jsxs(n.Fragment,{children:[n.jsx(X,{url:s.avatarUrl??"",fallback:s.name,size:"xs",className:"w-[22px]! h-[22px]!",objectFit:"contain"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.name})]}),e[7]=l,e[8]=s.avatarUrl,e[9]=s.name,e[10]=m):m=e[10];let f;return e[11]!==o||e[12]!==d||e[13]!==m?(f=n.jsx(W,{onClick:d,onMouseEnter:o,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=o,e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function fn(t){const e=w.c(2),{children:s}=t;let a;return e[0]!==s?(a=n.jsx("div",{className:"px-1 pb-1 pt-0.5",children:s}),e[0]=s,e[1]=a):a=e[1],a}function un(t){const e=w.c(11),{onClick:s,icon:a,children:r,variant:l}=t,c=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let o;e[0]!==c?(o=M("w-full justify-start font-normal",c),e[0]=c,e[1]=o):o=e[1];let d;e[2]!==a?(d=a&&n.jsx("span",{className:"[&>svg]:size-4",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==r?(m=n.jsx("span",{children:r}),e[4]=r,e[5]=m):m=e[5];let f;return e[6]!==s||e[7]!==o||e[8]!==d||e[9]!==m?(f=n.jsxs(W,{variant:"ghost",size:"sm",className:o,onClick:s,children:[d,m]}),e[6]=s,e[7]=o,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}function hn(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(tn,{}),t[0]=e):e=t[0],e}function pn(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"h-4 w-16 bg-accent rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const V=Object.assign(nn,{Trigger:an,CurrentItem:rn,Content:ln,Panel:St,Search:cn,Items:dn,Item:mn,Actions:fn,Action:un,Separator:hn,Skeleton:pn});function Ce(){const t=w.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=_e(e),{data:a}=G.useListOrganizations(),r=ie();let l;t[1]!==s||t[2]!==a?(l=a?.find(E=>E.slug===s),t[1]=s,t[2]=a,t[3]=l):l=t[3];const i=l,[c,o]=N.useState(""),[d,m]=N.useState(!1);let f,u,b,g,p,x,h,j;if(t[4]!==i||t[5]!==r||t[6]!==s||t[7]!==c||t[8]!==a){const L=(a?(()=>{const R=a.filter(P=>P.name.toLowerCase().includes(c.toLowerCase()));if(s){const P=R.findIndex(F=>F.slug===s);if(P>0){const F=R[P];F&&(R.splice(P,1),R.unshift(F))}}return R})():[]).map(xn);let A;t[17]!==i?(A=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=A):A=t[18];const U=A;g=V;let D;t[19]!==r||t[20]!==s?(D=()=>r({to:"/$org",params:{org:s??""}}),t[19]=r,t[20]=s,t[21]=D):D=t[21];let H;t[22]!==U?(H=n.jsx(V.CurrentItem,{item:U}),t[22]=U,t[23]=H):H=t[23],t[24]!==D||t[25]!==H?(j=n.jsx(V.Trigger,{onClick:D,children:H}),t[24]=D,t[25]=H,t[26]=j):j=t[26],b=V.Content,u=V.Panel,t[27]!==c?(h=n.jsx(V.Search,{placeholder:"Search organizations...",value:c,onChange:o}),t[27]=c,t[28]=h):h=t[28],f=V.Items,p="No organizations found.";let B;t[29]!==r?(B=R=>n.jsx(V.Item,{item:R,onClick:P=>r({to:"/$org",params:{org:P.slug}})},R.slug),t[29]=r,t[30]=B):B=t[30],x=L.map(B),t[4]=i,t[5]=r,t[6]=s,t[7]=c,t[8]=a,t[9]=f,t[10]=u,t[11]=b,t[12]=g,t[13]=p,t[14]=x,t[15]=h,t[16]=j}else f=t[9],u=t[10],b=t[11],g=t[12],p=t[13],x=t[14],h=t[15],j=t[16];let v;t[31]!==f||t[32]!==p||t[33]!==x?(v=n.jsx(f,{emptyMessage:p,children:x}),t[31]=f,t[32]=p,t[33]=x,t[34]=v):v=t[34];let S,y;t[35]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(V.Actions,{children:n.jsx(V.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),y=n.jsx(V.Separator,{}),t[35]=S,t[36]=y):(S=t[35],y=t[36]);let _;t[37]!==r?(_=()=>r({to:"/"}),t[37]=r,t[38]=_):_=t[38];let k;t[39]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(fs,{}),t[39]=k):k=t[39];let $;t[40]!==_?($=n.jsx(V.Actions,{children:n.jsx(V.Action,{onClick:_,icon:k,children:"See all organizations"})}),t[40]=_,t[41]=$):$=t[41];let C;t[42]!==u||t[43]!==$||t[44]!==h||t[45]!==v?(C=n.jsxs(u,{children:[h,v,S,y,$]}),t[42]=u,t[43]=$,t[44]=h,t[45]=v,t[46]=C):C=t[46];let z;t[47]!==b||t[48]!==C?(z=n.jsx(b,{children:C}),t[47]=b,t[48]=C,t[49]=z):z=t[49];let I;t[50]!==g||t[51]!==z||t[52]!==j?(I=n.jsxs(g,{children:[j,z]}),t[50]=g,t[51]=z,t[52]=j,t[53]=I):I=t[53];let O;t[54]!==d?(O=n.jsx(qe,{open:d,onOpenChange:m}),t[54]=d,t[55]=O):O=t[55];let T;return t[56]!==I||t[57]!==O?(T=n.jsxs(n.Fragment,{children:[I,O]}),t[56]=I,t[57]=O,t[58]=T):T=t[58],T}function xn(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}Ce.Skeleton=V.Skeleton;function gn({prop:t,defaultProp:e,onChange:s=()=>{}}){const[a,r]=bn({defaultProp:e,onChange:s}),l=t!==void 0,i=l?t:a,c=Ue(s),o=N.useCallback(d=>{if(l){const f=typeof d=="function"?d(t):d;f!==t&&c(f)}else r(d)},[l,t,r,c]);return[i,o]}function bn({defaultProp:t,onChange:e}){const s=N.useState(t),[a]=s,r=N.useRef(a),l=Ue(e);return N.useEffect(()=>{r.current!==a&&(l(a),r.current=a)},[a,r,l]),s}function jn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Root,{"data-slot":"drawer",...s}),e[2]=s,e[3]=a):a=e[3],a}function vn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Trigger,{"data-slot":"drawer-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Nn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Portal,{"data-slot":"drawer-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function wn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(le.Overlay,{"data-slot":"drawer-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Sn(t){const e=w.c(12);let s,a,r;e[0]!==t?({className:a,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r):(s=e[1],a=e[2],r=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(wn,{}),e[4]=l):l=e[4];let i;e[5]!==a?(i=M("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=c):c=e[7];let o;return e[8]!==s||e[9]!==r||e[10]!==i?(o=n.jsxs(Nn,{"data-slot":"drawer-portal",children:[l,n.jsxs(le.Content,{"data-slot":"drawer-content",className:i,...r,children:[c,s]})]}),e[8]=s,e[9]=r,e[10]=i,e[11]=o):o=e[11],o}function yn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-1.5 px-4 py-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"drawer-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Cn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("text-foreground font-semibold",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(le.Title,{"data-slot":"drawer-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}const yt=N.createContext({setOpen:()=>{}}),kn=()=>N.useContext(yt),_n=t=>{const e=w.c(25);let s,a,r,l,i;e[0]!==t?({children:s,defaultOpen:a,open:l,onOpenChange:r,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5]);const c=a??!1;let o;e[6]!==r||e[7]!==l||e[8]!==c?(o={prop:l,defaultProp:c,onChange:r},e[6]=r,e[7]=l,e[8]=c,e[9]=o):o=e[9];const[d,m]=gn(o);let f;e[10]!==m?(f={setOpen:m},e[10]=m,e[11]=f):f=e[11];let u;e[12]!==s||e[13]!==d||e[14]!==i||e[15]!==m?(u=n.jsx(jn,{open:d,onOpenChange:m,...i,children:s}),e[12]=s,e[13]=d,e[14]=i,e[15]=m,e[16]=u):u=e[16];let b;e[17]!==d||e[18]!==i||e[19]!==m||e[20]!==u?(b=n.jsx(ps,{open:d,onOpenChange:m,...i,children:u}),e[17]=d,e[18]=i,e[19]=m,e[20]=u,e[21]=b):b=e[21];let g;return e[22]!==f||e[23]!==b?(g=n.jsx(yt.Provider,{value:f,children:b}),e[22]=f,e[23]=b,e[24]=g):g=e[24],g},zn=t=>{const{children:e,title:s,...a}=t,r=oe(),{className:l,...i}=a;return r?n.jsxs(Sn,{...i,children:[n.jsx(yn,{className:"hidden",children:n.jsx(Cn,{children:s})}),n.jsx("div",{className:M("flex flex-col gap-2 p-2 py-4",l),children:e})]}):n.jsx(hs,{...a,children:e})},$n=t=>{const{children:e,...s}=t,{setOpen:a}=kn(),r=oe(),{className:l,...i}=s;return r?n.jsx("div",{...i,onClick:c=>{a(!1);const{onClick:o}=i;o?.(c)},className:M("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),children:e}):n.jsx(xs,{...s,children:e})},In=t=>{const e=w.c(7);let s,a;e[0]!==t?({children:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const r=oe();let l;return e[3]!==s||e[4]!==r||e[5]!==a?(l=r?n.jsx(vn,{asChild:!0,children:s}):n.jsx(us,{...a,children:s}),e[3]=s,e[4]=r,e[5]=a,e[6]=l):l=e[6],l},On=t=>{const e=w.c(7);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const r=oe();let l;return e[3]!==s||e[4]!==r||e[5]!==a?(l=r?n.jsx(De,{className:M(s),...a}):n.jsx(De,{className:M(s),...a}),e[3]=s,e[4]=r,e[5]=a,e[6]=l):l=e[6],l};function Tn(t){const e=w.c(11),{user:s,trigger:a,align:r,children:l}=t,i=r===void 0?"start":r;let c;e[0]!==a||e[1]!==s?(c=a(s),e[0]=a,e[1]=s,e[2]=c):c=e[2];let o;e[3]!==c?(o=n.jsx(In,{asChild:!0,children:n.jsx("div",{children:c})}),e[3]=c,e[4]=o):o=e[4];let d;e[5]!==i||e[6]!==l?(d=n.jsx(zn,{side:"top",align:i,className:"md:w-[240px]",children:l}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let m;return e[8]!==o||e[9]!==d?(m=n.jsxs(_n,{children:[o,d]}),e[8]=o,e[9]=d,e[10]=m):m=e[10],m}function Mn(t){const e=w.c(8),{children:s,onClick:a,className:r,asChild:l}=t;let i;e[0]!==l||e[1]!==s||e[2]!==a?(i=l?s:n.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:a,children:s}),e[0]=l,e[1]=s,e[2]=a,e[3]=i):i=e[3];let c;return e[4]!==l||e[5]!==r||e[6]!==i?(c=n.jsx($n,{asChild:l,className:r,children:i}),e[4]=l,e[5]=r,e[6]=i,e[7]=c):c=e[7],c}function En(t){const e=w.c(2),{className:s}=t;let a;return e[0]!==s?(a=n.jsx(On,{className:s}),e[0]=s,e[1]=a):a=e[1],a}function Ln(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const J=Object.assign(Tn,{Item:Mn,Separator:En,Skeleton:Ln});function An(t){const e=w.c(47),{user:s,userImage:a}=t,[r,l]=N.useState(!1),[i,c]=N.useState(!1);let o;e[0]!==s.email||e[1]!==s.id||e[2]!==s.name?(o=()=>{const A=`ID: ${s.id}
4
4
  Name: ${s.name||"N/A"}
@@ -1 +1 @@
1
- import{c as C,q as d,j as a}from"./index-BMLEzHeY.js";import{c as m}from"./button-CjH_jeJQ.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,q as d,j as a}from"./index-CHQ9-Q-G.js";import{c as m}from"./button-CKIyuXIq.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
@@ -1 +1 @@
1
- import{c as h,a as g,j as o,b as _,S,d as j,e as b,f as d,g as y,N as p}from"./index-BMLEzHeY.js";function N(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[x,u]of Object.entries(n))u!=null&&r.set(x,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(S,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(_,{children:o.jsx(S,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(N,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
1
+ import{c as h,a as g,j as o,b as _,S,d as j,e as b,f as d,g as y,N as p}from"./index-CHQ9-Q-G.js";function N(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[x,u]of Object.entries(n))u!=null&&r.set(x,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(S,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(_,{children:o.jsx(S,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(N,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
@@ -1 +1 @@
1
- import{r as c,j as i,ak as C,al as y,am as T,an as I,ao as M,ap as H,aq as q,c as z}from"./index-BMLEzHeY.js";import{c as g}from"./button-CjH_jeJQ.js";var b="Switch",[A]=q(b),[U,L]=A(b),E=c.forwardRef((s,e)=>{const{__scopeSwitch:t,name:r,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=s,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:b});return i.jsxs(U,{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:I(s.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((s,e)=>{const{__scopeSwitch:t,...r}=s,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:s,control:e,checked:t,bubbles:r=!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:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),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=O;function j(s){return s?"checked":"unchecked"}var $=E,D=R;function X(s){const e=z.c(9);let t,r;e[0]!==s?({className:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=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/50 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-[3px] disabled:cursor-not-allowed 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(D,{"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]!==r||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...r,children:n}),e[6]=r,e[7]=a,e[8]=o):o=e[8],o}export{X as S};
1
+ import{r as c,j as i,ak as C,al as y,am as T,an as I,ao as M,ap as H,aq as q,c as z}from"./index-CHQ9-Q-G.js";import{c as g}from"./button-CKIyuXIq.js";var b="Switch",[A]=q(b),[U,L]=A(b),E=c.forwardRef((s,e)=>{const{__scopeSwitch:t,name:r,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=s,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:b});return i.jsxs(U,{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:I(s.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((s,e)=>{const{__scopeSwitch:t,...r}=s,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:s,control:e,checked:t,bubbles:r=!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:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),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=O;function j(s){return s?"checked":"unchecked"}var $=E,D=R;function X(s){const e=z.c(9);let t,r;e[0]!==s?({className:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=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/50 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-[3px] disabled:cursor-not-allowed 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(D,{"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]!==r||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...r,children:n}),e[6]=r,e[7]=a,e[8]=o):o=e[8],o}export{X as S};
@@ -1 +1 @@
1
- import{c as r,j as c}from"./index-BMLEzHeY.js";import{c as i}from"./button-CjH_jeJQ.js";function b(o){const e=r.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=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.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=r.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-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.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=c.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=r.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=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.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=c.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=r.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 [&: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=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{u as T,f as a,m as b,x as c,p as d,b as e};
1
+ import{c as r,j as c}from"./index-CHQ9-Q-G.js";import{c as i}from"./button-CKIyuXIq.js";function b(o){const e=r.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=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.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=r.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-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.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=c.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=r.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=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.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=c.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=r.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 [&: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=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{u as T,f as a,m as b,x as c,p as d,b as e};
@@ -1 +1 @@
1
- import{c as o,j as n}from"./index-BMLEzHeY.js";import{c as l}from"./button-CjH_jeJQ.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
1
+ import{c as o,j as n}from"./index-CHQ9-Q-G.js";import{c as l}from"./button-CKIyuXIq.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
@@ -1 +1 @@
1
- import{c as G,K as U,j as t,v as W,r as K}from"./index-BMLEzHeY.js";import{u as Y}from"./useQuery-CyQI_ufp.js";import{i as J}from"./File06-B-BJJgbp.js";import{i as P}from"./Loading01-DJg-4sIh.js";import{e as X}from"./github-icon-Dp3wHhYE.js";import{a as Z,C as ee}from"./collection-table-wrapper-Cf-srhsL.js";import{C as te}from"./collection-search-CEX16zDI.js";import{E as q,I as se}from"./empty-state-BvjoZw7e.js";import{C as oe}from"./card-BuSwLKUe.js";import{V as re}from"./layout-DF2Vd6dD.js";function ne(s){return s.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function ie(s){return s.replace(/<a\s+([^>]*href="[^"]*"[^>]*)>/gi,(e,o)=>{let r=e;return o.includes("target=")?r=r.replace(/target="[^"]*"/gi,'target="_blank"'):r=r.replace(/>/,' target="_blank">'),o.includes("rel=")?r=r.replace(/rel="[^"]*"/gi,'rel="noopener noreferrer"'):r=r.replace(/>/,' rel="noopener noreferrer">'),r})}function le(s){let e=ne(s);return e=ie(e),e}async function ae(s,e){try{const o=await fetch(`https://api.github.com/repos/${s}/${e}/readme`,{headers:{Accept:"application/vnd.github.v3.html"}});if(!o.ok){if(o.status===404)return null;throw new Error(`Failed to fetch README: ${o.statusText}`)}const r=await o.text();return le(r)}catch(o){return console.error("Error fetching README:",o),null}}function Se(s){const e=G.c(18),{repository:o,html:r,isLoading:b,queryKey:p}=s;let a,u,f,h;e[0]!==r||e[1]!==p||e[2]!==o?(a=o?X(o):null,u=!!a&&r===void 0,h=Y,f=p??U.githubReadme(a?.owner,a?.repo),e[0]=r,e[1]=p,e[2]=o,e[3]=a,e[4]=u,e[5]=f,e[6]=h):(a=e[3],u=e[4],f=e[5],h=e[6]);let d;e[7]!==a?(d=async()=>a?ae(a.owner,a.repo):null,e[7]=a,e[8]=d):d=e[8];let g;e[9]!==u||e[10]!==f||e[11]!==d?(g={queryKey:f,queryFn:d,enabled:u,staleTime:36e5,gcTime:864e5},e[9]=u,e[10]=f,e[11]=d,e[12]=g):g=e[12];const{data:E,isLoading:l}=h(g),x=r??E;if(b??(u&&l)){let m;return e[13]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(P,{size:32,className:"animate-spin text-muted-foreground"})}),e[13]=m):m=e[13],m}if(!x){let m;return e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-6",children:[t.jsx(J,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"README not found"}),t.jsx("p",{className:"text-muted-foreground max-w-md",children:"This repository doesn't have a README file, or it's not publicly accessible."})]}),e[14]=m):m=e[14],m}let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j={backgroundColor:"transparent"},e[15]=j):j=e[15];let n;return e[16]!==x?(n=t.jsx("div",{className:"p-5 markdown-body",style:j,dangerouslySetInnerHTML:{__html:x}}),e[16]=x,e[17]=n):n=e[17],n}function Ce(s){const e=G.c(40),{tools:o,connectionId:r,org:b,onToolClick:p,showToolbar:a,emptyMessage:u,isLoading:f}=s,h=a===void 0?!0:a,d=u===void 0?"This connection doesn't have any tools yet.":u,g=f===void 0?!1:f,E=W(),[l,x]=K.useState(""),[y,j]=K.useState("table"),[n,m]=K.useState("name"),[c,V]=K.useState("asc");let R;e[0]!==c||e[1]!==n?(R=i=>{n===i?(V(fe),c==="desc"&&m(void 0)):(m(i),V("asc"))},e[0]=c,e[1]=n,e[2]=R):R=e[2];const N=R;let _;e[3]!==r||e[4]!==E||e[5]!==p||e[6]!==b?(_=i=>{p?p(i):r&&b&&E({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:b,connectionId:r,collectionName:"tools",itemId:encodeURIComponent(i.name)}})},e[3]=r,e[4]=E,e[5]=p,e[6]=b,e[7]=_):_=e[7];const k=_;let I;if(e[8]!==l||e[9]!==c||e[10]!==n||e[11]!==o){const i=!o||o.length===0?[]:l.trim()?(()=>{const H=l.toLowerCase();return o.filter(L=>L.name.toLowerCase().includes(H)||L.description&&L.description.toLowerCase().includes(H))})():o;I=!n||!c?i:[...i].sort((H,L)=>{const O=H[n]||"",Q=L[n]||"",z=String(O).localeCompare(String(Q));return c==="asc"?z:-z}),e[8]=l,e[9]=c,e[10]=n,e[11]=o,e[12]=I}else I=e[12];const T=I;let M;e[13]===Symbol.for("react.memo_cache_sentinel")?(M=[{id:"name",header:"Name",render:ue,sortable:!0},{id:"description",header:"Description",render:de,cellClassName:"flex-1",sortable:!0}],e[13]=M):M=e[13];const F=M;let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=F.filter(me).map(ce),e[14]=$):$=e[14];const B=$;let v;e[15]!==N||e[16]!==h||e[17]!==c||e[18]!==n||e[19]!==y?(v=h&&t.jsx(re,{children:t.jsx(ee,{viewMode:y,onViewModeChange:j,sortKey:n,sortDirection:c,onSort:N,sortOptions:B})}),e[15]=N,e[16]=h,e[17]=c,e[18]=n,e[19]=y,e[20]=v):v=e[20];let D;e[21]===Symbol.for("react.memo_cache_sentinel")?(D=i=>{i.key==="Escape"&&(x(""),i.target.blur())},e[21]=D):D=e[21];let w;e[22]!==l?(w=t.jsx(te,{value:l,onChange:x,placeholder:"Search tools...",onKeyDown:D}),e[22]=l,e[23]=w):w=e[23];let S;e[24]!==d||e[25]!==N||e[26]!==k||e[27]!==g||e[28]!==l||e[29]!==c||e[30]!==n||e[31]!==T||e[32]!==y?(S=y==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(q,{image:null,title:l?"No tools found":"No tools available",description:l?"Try adjusting your search terms":d}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:T.map(i=>t.jsx(oe,{className:"cursor-pointer transition-colors",onClick:()=>k(i),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(se,{icon:null,name:i.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:i.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:i.description||"No description"})]})]})},i.name))})}):t.jsx(Z,{columns:F,data:T,isLoading:g,sortKey:n,sortDirection:c,onSort:N,onRowClick:i=>k(i),emptyState:t.jsx(q,{image:null,title:l?"No tools found":"No tools available",description:l?"Try adjusting your search terms":d})}),e[24]=d,e[25]=N,e[26]=k,e[27]=g,e[28]=l,e[29]=c,e[30]=n,e[31]=T,e[32]=y,e[33]=S):S=e[33];let C;e[34]!==w||e[35]!==S?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[w,S]}),e[34]=w,e[35]=S,e[36]=C):C=e[36];let A;return e[37]!==C||e[38]!==v?(A=t.jsxs(t.Fragment,{children:[v,C]}),e[37]=C,e[38]=v,e[39]=A):A=e[39],A}function ce(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function me(s){return s.sortable}function de(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ue(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function fe(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Se as R,Ce as T};
1
+ import{c as G,K as U,j as t,v as W,r as K}from"./index-CHQ9-Q-G.js";import{u as Y}from"./useQuery-CImYAWdS.js";import{i as J}from"./File06-iSPwdYi1.js";import{i as P}from"./Loading01-3CQcIIbt.js";import{e as X}from"./github-icon-Dp3wHhYE.js";import{a as Z,C as ee}from"./collection-table-wrapper-CzqGMTIb.js";import{C as te}from"./collection-search-CECpIAiD.js";import{E as q,I as se}from"./empty-state-VwVcPCE1.js";import{C as oe}from"./card-MU9VbmJ4.js";import{V as re}from"./layout-D8nQ7DGi.js";function ne(s){return s.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function ie(s){return s.replace(/<a\s+([^>]*href="[^"]*"[^>]*)>/gi,(e,o)=>{let r=e;return o.includes("target=")?r=r.replace(/target="[^"]*"/gi,'target="_blank"'):r=r.replace(/>/,' target="_blank">'),o.includes("rel=")?r=r.replace(/rel="[^"]*"/gi,'rel="noopener noreferrer"'):r=r.replace(/>/,' rel="noopener noreferrer">'),r})}function le(s){let e=ne(s);return e=ie(e),e}async function ae(s,e){try{const o=await fetch(`https://api.github.com/repos/${s}/${e}/readme`,{headers:{Accept:"application/vnd.github.v3.html"}});if(!o.ok){if(o.status===404)return null;throw new Error(`Failed to fetch README: ${o.statusText}`)}const r=await o.text();return le(r)}catch(o){return console.error("Error fetching README:",o),null}}function Se(s){const e=G.c(18),{repository:o,html:r,isLoading:b,queryKey:p}=s;let a,u,f,h;e[0]!==r||e[1]!==p||e[2]!==o?(a=o?X(o):null,u=!!a&&r===void 0,h=Y,f=p??U.githubReadme(a?.owner,a?.repo),e[0]=r,e[1]=p,e[2]=o,e[3]=a,e[4]=u,e[5]=f,e[6]=h):(a=e[3],u=e[4],f=e[5],h=e[6]);let d;e[7]!==a?(d=async()=>a?ae(a.owner,a.repo):null,e[7]=a,e[8]=d):d=e[8];let g;e[9]!==u||e[10]!==f||e[11]!==d?(g={queryKey:f,queryFn:d,enabled:u,staleTime:36e5,gcTime:864e5},e[9]=u,e[10]=f,e[11]=d,e[12]=g):g=e[12];const{data:E,isLoading:l}=h(g),x=r??E;if(b??(u&&l)){let m;return e[13]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(P,{size:32,className:"animate-spin text-muted-foreground"})}),e[13]=m):m=e[13],m}if(!x){let m;return e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-6",children:[t.jsx(J,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"README not found"}),t.jsx("p",{className:"text-muted-foreground max-w-md",children:"This repository doesn't have a README file, or it's not publicly accessible."})]}),e[14]=m):m=e[14],m}let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j={backgroundColor:"transparent"},e[15]=j):j=e[15];let n;return e[16]!==x?(n=t.jsx("div",{className:"p-5 markdown-body",style:j,dangerouslySetInnerHTML:{__html:x}}),e[16]=x,e[17]=n):n=e[17],n}function Ce(s){const e=G.c(40),{tools:o,connectionId:r,org:b,onToolClick:p,showToolbar:a,emptyMessage:u,isLoading:f}=s,h=a===void 0?!0:a,d=u===void 0?"This connection doesn't have any tools yet.":u,g=f===void 0?!1:f,E=W(),[l,x]=K.useState(""),[y,j]=K.useState("table"),[n,m]=K.useState("name"),[c,V]=K.useState("asc");let R;e[0]!==c||e[1]!==n?(R=i=>{n===i?(V(fe),c==="desc"&&m(void 0)):(m(i),V("asc"))},e[0]=c,e[1]=n,e[2]=R):R=e[2];const N=R;let _;e[3]!==r||e[4]!==E||e[5]!==p||e[6]!==b?(_=i=>{p?p(i):r&&b&&E({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:b,connectionId:r,collectionName:"tools",itemId:encodeURIComponent(i.name)}})},e[3]=r,e[4]=E,e[5]=p,e[6]=b,e[7]=_):_=e[7];const k=_;let I;if(e[8]!==l||e[9]!==c||e[10]!==n||e[11]!==o){const i=!o||o.length===0?[]:l.trim()?(()=>{const H=l.toLowerCase();return o.filter(L=>L.name.toLowerCase().includes(H)||L.description&&L.description.toLowerCase().includes(H))})():o;I=!n||!c?i:[...i].sort((H,L)=>{const O=H[n]||"",Q=L[n]||"",z=String(O).localeCompare(String(Q));return c==="asc"?z:-z}),e[8]=l,e[9]=c,e[10]=n,e[11]=o,e[12]=I}else I=e[12];const T=I;let M;e[13]===Symbol.for("react.memo_cache_sentinel")?(M=[{id:"name",header:"Name",render:ue,sortable:!0},{id:"description",header:"Description",render:de,cellClassName:"flex-1",sortable:!0}],e[13]=M):M=e[13];const F=M;let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=F.filter(me).map(ce),e[14]=$):$=e[14];const B=$;let v;e[15]!==N||e[16]!==h||e[17]!==c||e[18]!==n||e[19]!==y?(v=h&&t.jsx(re,{children:t.jsx(ee,{viewMode:y,onViewModeChange:j,sortKey:n,sortDirection:c,onSort:N,sortOptions:B})}),e[15]=N,e[16]=h,e[17]=c,e[18]=n,e[19]=y,e[20]=v):v=e[20];let D;e[21]===Symbol.for("react.memo_cache_sentinel")?(D=i=>{i.key==="Escape"&&(x(""),i.target.blur())},e[21]=D):D=e[21];let w;e[22]!==l?(w=t.jsx(te,{value:l,onChange:x,placeholder:"Search tools...",onKeyDown:D}),e[22]=l,e[23]=w):w=e[23];let S;e[24]!==d||e[25]!==N||e[26]!==k||e[27]!==g||e[28]!==l||e[29]!==c||e[30]!==n||e[31]!==T||e[32]!==y?(S=y==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(q,{image:null,title:l?"No tools found":"No tools available",description:l?"Try adjusting your search terms":d}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:T.map(i=>t.jsx(oe,{className:"cursor-pointer transition-colors",onClick:()=>k(i),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(se,{icon:null,name:i.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:i.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:i.description||"No description"})]})]})},i.name))})}):t.jsx(Z,{columns:F,data:T,isLoading:g,sortKey:n,sortDirection:c,onSort:N,onRowClick:i=>k(i),emptyState:t.jsx(q,{image:null,title:l?"No tools found":"No tools available",description:l?"Try adjusting your search terms":d})}),e[24]=d,e[25]=N,e[26]=k,e[27]=g,e[28]=l,e[29]=c,e[30]=n,e[31]=T,e[32]=y,e[33]=S):S=e[33];let C;e[34]!==w||e[35]!==S?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[w,S]}),e[34]=w,e[35]=S,e[36]=C):C=e[36];let A;return e[37]!==C||e[38]!==v?(A=t.jsxs(t.Fragment,{children:[v,C]}),e[37]=C,e[38]=v,e[39]=A):A=e[39],A}function ce(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function me(s){return s.sortable}function de(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ue(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function fe(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Se as R,Ce as T};
@@ -0,0 +1 @@
1
+ .markdown-body{color-scheme:light;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;font-weight:400;color:#1f2328;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body a{text-decoration:underline;text-underline-offset:.2rem}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:#0000;color:#0969da;text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:600}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid #d1d9e0b3}.markdown-body mark{background-color:#fff8c5;color:#1f2328}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 2.5rem}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:#0000;border-bottom:1px solid #d1d9e0b3;height:.25em;padding:0;margin:1.5rem 0;background-color:#d1d9e0;border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:#59636e;opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--borderColor-accent-emphasis);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px rgba(0,0,0,0)}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--borderColor-accent-emphasis);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:.25rem;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:#1f2328;vertical-align:middle;background-color:#f6f8fa;border:solid 1px var(--borderColor-muted);border-bottom-color:var(--borderColor-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:1.5rem;margin-bottom:1rem;font-weight:600;line-height:1.25}.markdown-body h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #d1d9e0b3}.markdown-body h3{font-weight:600;font-size:1.25em}.markdown-body h4{font-weight:600;font-size:1em}.markdown-body h5{font-weight:600;font-size:.875em}.markdown-body h6{font-weight:600;font-size:.85em;color:#59636e}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:#59636e;border-left:.25em solid #d1d9e0}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;appearance:none}.markdown-body .mr-2{margin-right:.5rem!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:#d1242f}.markdown-body .anchor{float:left;padding-right:.25rem;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:1rem}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:#1f2328;vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:1rem}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:1rem;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 1rem;margin-bottom:1rem}.markdown-body table th{font-weight:600}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid #d1d9e0}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:#fff;border-top:1px solid #d1d9e0b3}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body table img{background-color:#0000}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:#0000}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid #d1d9e0}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:#1f2328}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:#818b981f;border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:#0000;border:0}.markdown-body .highlight{margin-bottom:1rem}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:1rem;overflow:auto;font-size:85%;line-height:1.45;color:#1f2328;background-color:#f6f8fa;border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:#0000;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px .5rem 9px;text-align:right;background:#fff;border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:600;background:#f6f8fa;border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:#59636e;border-top:1px solid #d1d9e0}.markdown-body .footnotes ol{padding-left:1rem}.markdown-body .footnotes ol ul{display:inline-block;padding-left:1rem;margin-top:1rem}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;inset:-.5rem -.5rem -.5rem -1.5rem;pointer-events:none;content:"";border:2px solid #0969da;border-radius:6px}.markdown-body .footnotes li:target{color:#1f2328}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:#59636e}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:#0550ae}.markdown-body .pl-e,.markdown-body .pl-en{color:#6639ba}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:#1f2328}.markdown-body .pl-ent{color:#0550ae}.markdown-body .pl-k{color:#cf222e}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:#0a3069}.markdown-body .pl-v,.markdown-body .pl-smw{color:#953800}.markdown-body .pl-bu{color:#82071e}.markdown-body .pl-ii{color:var(--fgColor-danger);background-color:var(--bgColor-danger-muted)}.markdown-body .pl-c2{color:#f6f8fa;background-color:#cf222e}.markdown-body .pl-sr .pl-cce{font-weight:700;color:#116329}.markdown-body .pl-ml{color:#3b2300}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:#0550ae}.markdown-body .pl-mi{font-style:italic;color:#1f2328}.markdown-body .pl-mb{font-weight:700;color:#1f2328}.markdown-body .pl-md{color:#82071e;background-color:#ffebe9}.markdown-body .pl-mi1{color:#116329;background-color:#dafbe1}.markdown-body .pl-mc{color:#953800;background-color:#ffd8b5}.markdown-body .pl-mi2{color:#d1d9e0;background-color:#0550ae}.markdown-body .pl-mdr{font-weight:700;color:#8250df}.markdown-body .pl-ba{color:#59636e}.markdown-body .pl-sg{color:#818b98}.markdown-body .pl-corl{text-decoration:underline;color:#0a3069}.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),.markdown-body button:focus:not(:focus-visible),.markdown-body summary:focus:not(:focus-visible),.markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.markdown-body [tabindex="0"]:focus:not(:focus-visible),.markdown-body details-dialog:focus:not(:focus-visible){outline:none}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body a:has(>p,>div,>pre,>blockquote){display:block}.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)){width:fit-content}.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible{outline:2px solid var(--borderColor-accent-emphasis);outline-offset:2px}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:400}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:.25rem}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip-path:none}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:.5rem 1rem;margin-bottom:1rem;color:inherit;border-left:.25em solid #d1d9e0}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:500;align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:#0969da}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:#0969da}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:#8250df}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:#8250df}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:#9a6700}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:#9a6700}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:#1a7f37}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:#1a7f37}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:#cf222e}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:#d1242f}.markdown-body>*:first-child>.heading-element:first-child{margin-top:0!important}.markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}
@@ -1,4 +1,4 @@
1
- import{r as T,c as j,j as l,T as z,w as E,R as H,x as L,B as D,y as V,D as I}from"./index-BMLEzHeY.js";import{I as R}from"./input-BlxXRmnq.js";import{i as A}from"./X-BW6YCcKc.js";import{c as b}from"./button-CjH_jeJQ.js";import{i as M}from"./SearchMd-vzH73w2C.js";const O=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));O.displayName="ClockRewind";const B=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));B.displayName="MessageChatSquare";function W(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function P(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(V,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function q(n){const e=j.c(17);let t,s,a,o;e[0]!==n?({className:s,children:t,side:o,...a}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=a,e[4]=o):(t=e[1],s=e[2],a=e[3],o=e[4]);const c=o===void 0?"right":o;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(Q,{}),e[5]=h):h=e[5];const d=c==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",i=c==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r=c==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=c==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==s||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==v?(m=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,i,r,v,s),e[6]=s,e[7]=d,e[8]=i,e[9]=r,e[10]=v,e[11]=m):m=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs(D,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[l.jsx(A,{className:"size-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=u):u=e[12];let f;return e[13]!==t||e[14]!==a||e[15]!==m?(f=l.jsxs(P,{children:[h,l.jsxs(E,{"data-slot":"sheet-content",className:m,...a,children:[t,u]})]}),e[13]=t,e[14]=a,e[15]=m,e[16]=f):f=e[16],f}function F(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Z(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(z,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Y(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(I,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function _(n){const e=j.c(24),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showHeader:c,showBackButton:h}=n,d=c===void 0?!0:c,i=h===void 0?!1:h,[r,v]=T.useState("");let m;e[0]!==r||e[1]!==t?(m=r.trim()?t.filter(p=>(p.title||"New chat").toLowerCase().includes(r.toLowerCase())):t,e[0]=r,e[1]=t,e[2]=m):m=e[2];const u=m;let f;e[3]!==o||e[4]!==a?(f=p=>{a(p),o&&o()},e[3]=o,e[4]=a,e[5]=f):f=e[5];const k=f;let y;e[6]!==o||e[7]!==i||e[8]!==d?(y=d&&l.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[l.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),i&&l.jsx("button",{type:"button",onClick:o,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=o,e[7]=i,e[8]=d,e[9]=y):y=e[9];let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=b("px-3 py-3 border-b","shrink-0"),e[10]=C):C=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx(M,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=S):S=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=p=>v(p.target.value),e[12]=g):g=e[12];let x;e[13]!==r?(x=l.jsx("div",{className:C,children:l.jsxs("div",{className:"relative",children:[S,l.jsx(R,{type:"text",placeholder:"Search conversations...",value:r,onChange:g,className:"pl-9 h-9 text-sm"})]})}),e[13]=r,e[14]=x):x=e[14];let w;e[15]!==s||e[16]!==u||e[17]!==k||e[18]!==r?(w=l.jsx("div",{className:"flex-1 overflow-y-auto",children:u.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[l.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:l.jsx(B,{size:24,className:"text-muted-foreground"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("p",{className:"text-sm font-medium text-foreground",children:r?"No results found":"No conversations yet"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:r?"Try a different search term":"Start a new chat to see your history here"})]})]}):l.jsx("div",{className:"flex flex-col py-2",children:u.map(p=>{const $=p.id===s;return l.jsx("button",{type:"button",onClick:()=>k(p.id),className:b("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",$&&"bg-accent/50"),children:l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:b("text-sm truncate",$?"font-medium text-foreground":"text-muted-foreground"),children:p.title||"New chat"}),l.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(p.updatedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},p.id)})})}),e[15]=s,e[16]=u,e[17]=k,e[18]=r,e[19]=w):w=e[19];let N;return e[20]!==w||e[21]!==y||e[22]!==x?(N=l.jsxs(l.Fragment,{children:[y,x,w]}),e[20]=w,e[21]=y,e[22]=x,e[23]=N):N=e[23],N}function ee(n){const e=j.c(9),{open:t,onOpenChange:s,threads:a,activeThreadId:o,onThreadSelect:c}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:l.jsx(Z,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=h):h=e[0];let d;e[1]!==o||e[2]!==c||e[3]!==a?(d=l.jsxs(q,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[h,l.jsx(_,{threads:a,activeThreadId:o,onThreadSelect:c,showHeader:!1})]}),e[1]=o,e[2]=c,e[3]=a,e[4]=d):d=e[4];let i;return e[5]!==s||e[6]!==t||e[7]!==d?(i=l.jsx(W,{open:t,onOpenChange:s,children:d}),e[5]=s,e[6]=t,e[7]=d,e[8]=i):i=e[8],i}function te(n){const e=j.c(5),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o}=n;let c;return e[0]!==s||e[1]!==o||e[2]!==a||e[3]!==t?(c=l.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:l.jsx(_,{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showBackButton:!0})}),e[0]=s,e[1]=o,e[2]=a,e[3]=t,e[4]=c):c=e[4],c}function se(n){const e=j.c(22),{text:t,className:s,speed:a}=n,o=s===void 0?"":s,c=a===void 0?30:a,[h,d]=T.useState(!1),i=t.length/c*1e3,r=t.length,v=`${t.length}ch`;let m;e[0]!==i?(m=()=>{d(!1);const p=setTimeout(()=>{d(!0)},i);return()=>clearTimeout(p)},e[0]=i,e[1]=m):m=e[1];let u;e[2]!==i||e[3]!==t?(u=[t,i],e[2]=i,e[3]=t,e[4]=u):u=e[4],T.useEffect(m,u);let f;e[5]!==o?(f=b(o,"block overflow-hidden inline-flex"),e[5]=o,e[6]=f):f=e[6];const k=`${i}ms`;let y;e[7]!==v||e[8]!==r||e[9]!==k?(y={"--typewriter-duration":k,"--typewriter-steps":r,"--typewriter-max-width":v},e[7]=v,e[8]=r,e[9]=k,e[10]=y):y=e[10];const C=y,S=h&&"truncate";let g;e[11]!==S?(g=b("typewriter-text",S),e[11]=S,e[12]=g):g=e[12];let x;e[13]!==g||e[14]!==t?(x=l.jsx("span",{className:g,children:t}),e[13]=g,e[14]=t,e[15]=x):x=e[15];let w;e[16]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx("style",{children:`
1
+ import{r as T,c as j,j as l,T as z,w as E,R as H,x as L,B as D,y as V,D as I}from"./index-CHQ9-Q-G.js";import{I as R}from"./input-BrgRsDcE.js";import{i as A}from"./X-BnxI_xD6.js";import{c as b}from"./button-CKIyuXIq.js";import{i as M}from"./SearchMd-DTs0TtNF.js";const O=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));O.displayName="ClockRewind";const B=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));B.displayName="MessageChatSquare";function W(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function P(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(V,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function q(n){const e=j.c(17);let t,s,a,o;e[0]!==n?({className:s,children:t,side:o,...a}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=a,e[4]=o):(t=e[1],s=e[2],a=e[3],o=e[4]);const c=o===void 0?"right":o;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(Q,{}),e[5]=h):h=e[5];const d=c==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",i=c==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r=c==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=c==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==s||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==v?(m=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,i,r,v,s),e[6]=s,e[7]=d,e[8]=i,e[9]=r,e[10]=v,e[11]=m):m=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs(D,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[l.jsx(A,{className:"size-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=u):u=e[12];let f;return e[13]!==t||e[14]!==a||e[15]!==m?(f=l.jsxs(P,{children:[h,l.jsxs(E,{"data-slot":"sheet-content",className:m,...a,children:[t,u]})]}),e[13]=t,e[14]=a,e[15]=m,e[16]=f):f=e[16],f}function F(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Z(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(z,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Y(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(I,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function _(n){const e=j.c(24),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showHeader:c,showBackButton:h}=n,d=c===void 0?!0:c,i=h===void 0?!1:h,[r,v]=T.useState("");let m;e[0]!==r||e[1]!==t?(m=r.trim()?t.filter(p=>(p.title||"New chat").toLowerCase().includes(r.toLowerCase())):t,e[0]=r,e[1]=t,e[2]=m):m=e[2];const u=m;let f;e[3]!==o||e[4]!==a?(f=p=>{a(p),o&&o()},e[3]=o,e[4]=a,e[5]=f):f=e[5];const k=f;let y;e[6]!==o||e[7]!==i||e[8]!==d?(y=d&&l.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[l.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),i&&l.jsx("button",{type:"button",onClick:o,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=o,e[7]=i,e[8]=d,e[9]=y):y=e[9];let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=b("px-3 py-3 border-b","shrink-0"),e[10]=C):C=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx(M,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=S):S=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=p=>v(p.target.value),e[12]=g):g=e[12];let x;e[13]!==r?(x=l.jsx("div",{className:C,children:l.jsxs("div",{className:"relative",children:[S,l.jsx(R,{type:"text",placeholder:"Search conversations...",value:r,onChange:g,className:"pl-9 h-9 text-sm"})]})}),e[13]=r,e[14]=x):x=e[14];let w;e[15]!==s||e[16]!==u||e[17]!==k||e[18]!==r?(w=l.jsx("div",{className:"flex-1 overflow-y-auto",children:u.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[l.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:l.jsx(B,{size:24,className:"text-muted-foreground"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("p",{className:"text-sm font-medium text-foreground",children:r?"No results found":"No conversations yet"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:r?"Try a different search term":"Start a new chat to see your history here"})]})]}):l.jsx("div",{className:"flex flex-col py-2",children:u.map(p=>{const $=p.id===s;return l.jsx("button",{type:"button",onClick:()=>k(p.id),className:b("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",$&&"bg-accent/50"),children:l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:b("text-sm truncate",$?"font-medium text-foreground":"text-muted-foreground"),children:p.title||"New chat"}),l.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(p.updatedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},p.id)})})}),e[15]=s,e[16]=u,e[17]=k,e[18]=r,e[19]=w):w=e[19];let N;return e[20]!==w||e[21]!==y||e[22]!==x?(N=l.jsxs(l.Fragment,{children:[y,x,w]}),e[20]=w,e[21]=y,e[22]=x,e[23]=N):N=e[23],N}function ee(n){const e=j.c(9),{open:t,onOpenChange:s,threads:a,activeThreadId:o,onThreadSelect:c}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:l.jsx(Z,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=h):h=e[0];let d;e[1]!==o||e[2]!==c||e[3]!==a?(d=l.jsxs(q,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[h,l.jsx(_,{threads:a,activeThreadId:o,onThreadSelect:c,showHeader:!1})]}),e[1]=o,e[2]=c,e[3]=a,e[4]=d):d=e[4];let i;return e[5]!==s||e[6]!==t||e[7]!==d?(i=l.jsx(W,{open:t,onOpenChange:s,children:d}),e[5]=s,e[6]=t,e[7]=d,e[8]=i):i=e[8],i}function te(n){const e=j.c(5),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o}=n;let c;return e[0]!==s||e[1]!==o||e[2]!==a||e[3]!==t?(c=l.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:l.jsx(_,{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showBackButton:!0})}),e[0]=s,e[1]=o,e[2]=a,e[3]=t,e[4]=c):c=e[4],c}function se(n){const e=j.c(22),{text:t,className:s,speed:a}=n,o=s===void 0?"":s,c=a===void 0?30:a,[h,d]=T.useState(!1),i=t.length/c*1e3,r=t.length,v=`${t.length}ch`;let m;e[0]!==i?(m=()=>{d(!1);const p=setTimeout(()=>{d(!0)},i);return()=>clearTimeout(p)},e[0]=i,e[1]=m):m=e[1];let u;e[2]!==i||e[3]!==t?(u=[t,i],e[2]=i,e[3]=t,e[4]=u):u=e[4],T.useEffect(m,u);let f;e[5]!==o?(f=b(o,"block overflow-hidden inline-flex"),e[5]=o,e[6]=f):f=e[6];const k=`${i}ms`;let y;e[7]!==v||e[8]!==r||e[9]!==k?(y={"--typewriter-duration":k,"--typewriter-steps":r,"--typewriter-max-width":v},e[7]=v,e[8]=r,e[9]=k,e[10]=y):y=e[10];const C=y,S=h&&"truncate";let g;e[11]!==S?(g=b("typewriter-text",S),e[11]=S,e[12]=g):g=e[12];let x;e[13]!==g||e[14]!==t?(x=l.jsx("span",{className:g,children:t}),e[13]=g,e[14]=t,e[15]=x):x=e[15];let w;e[16]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx("style",{children:`
2
2
  .typewriter-text {
3
3
  display: inline-block;
4
4
  width: 0;
@@ -1,4 +1,4 @@
1
- import{a as v}from"./binder-CbZhSXdv.js";import{b9 as T,I as O,o as t,s as e,ba as p,ad as l,bb as c,bc as R,bd as U,be as i,ae as x,bf as u,bg as g,bh as n,bi as b,bj as L,bk as B,bl as C}from"./index-BMLEzHeY.js";const W=O.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),F=T("assistant",W),G=[...F],w=L(()=>u([B(),e(),i(),g(),p(e(),w),l(w)])),f=p(e(),p(e(),w)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:f}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),j=e().describe("File data as URL string"),k=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:j,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:f}),$=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:f}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:f}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),H=u([t({type:n("text"),value:e()}),t({type:n("json"),value:w}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:w}),t({type:n("content"),value:l(u([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))})]),A=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:H.describe("Result of the tool call"),result:b().describe("Unknown result of the tool call"),providerOptions:f}),X=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:c().describe("Result of the tool call (JSON-serializable)"),isError:g().optional().describe("Whether the result is an error or error message"),providerExecuted:g().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),Y=u([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:c().optional().describe("Additional provider-specific metadata")})]),Z=t({role:n("system"),content:e().describe("System message content"),providerOptions:f}),Q=t({role:n("user"),content:l(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:l(u([E,k,J,V,A])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:f}),te=t({role:n("tool"),content:l(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Z,Q,ee,te]),ae=l(oe).describe("A list of messages forming the prompt"),ie=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:l(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:u([t({type:n("text")}),t({type:n("json"),schema:c().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:l(c()).optional().describe("The tools that are available for the model"),toolChoice:c().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:g().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:c().optional().describe("Abort signal for cancelling the operation"),providerOptions:c().optional().describe("Additional provider-specific options")}),ne=t({content:l(u([q,$,K,z,X,Y])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:x(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:c().optional().describe("Additional provider-specific metadata"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:R().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:p(e(),e()).optional().describe("Response headers"),body:c().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:l(c()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:c().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),l(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ie}),re=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=T("llm",re,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:se},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ne},...le],de=t({scopes:l(e()).describe("List of scopes available"),stateSchema:p(e(),b()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({toolName:e().describe("Name of the tool to invoke on that connection"),transformCode:e().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),me=t({code:e().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
1
+ import{a as v}from"./binder-Dg2rfYkp.js";import{b9 as T,I as O,o as t,s as e,ba as p,ad as l,bb as c,bc as R,bd as U,be as i,ae as x,bf as u,bg as g,bh as n,bi as b,bj as L,bk as B,bl as C}from"./index-CHQ9-Q-G.js";const W=O.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),F=T("assistant",W),G=[...F],w=L(()=>u([B(),e(),i(),g(),p(e(),w),l(w)])),f=p(e(),p(e(),w)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:f}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),j=e().describe("File data as URL string"),k=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:j,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:f}),$=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:f}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:f}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),H=u([t({type:n("text"),value:e()}),t({type:n("json"),value:w}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:w}),t({type:n("content"),value:l(u([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))})]),A=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:H.describe("Result of the tool call"),result:b().describe("Unknown result of the tool call"),providerOptions:f}),X=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:c().describe("Result of the tool call (JSON-serializable)"),isError:g().optional().describe("Whether the result is an error or error message"),providerExecuted:g().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),Y=u([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:c().optional().describe("Additional provider-specific metadata")})]),Z=t({role:n("system"),content:e().describe("System message content"),providerOptions:f}),Q=t({role:n("user"),content:l(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:l(u([E,k,J,V,A])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:f}),te=t({role:n("tool"),content:l(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Z,Q,ee,te]),ae=l(oe).describe("A list of messages forming the prompt"),ie=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:l(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:u([t({type:n("text")}),t({type:n("json"),schema:c().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:l(c()).optional().describe("The tools that are available for the model"),toolChoice:c().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:g().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:c().optional().describe("Abort signal for cancelling the operation"),providerOptions:c().optional().describe("Additional provider-specific options")}),ne=t({content:l(u([q,$,K,z,X,Y])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:x(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:c().optional().describe("Additional provider-specific metadata"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:R().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:p(e(),e()).optional().describe("Response headers"),body:c().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:l(c()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:c().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),l(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ie}),re=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=T("llm",re,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:se},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ne},...le],de=t({scopes:l(e()).describe("List of scopes available"),stateSchema:p(e(),b()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({toolName:e().describe("Name of the tool to invoke on that connection"),transformCode:e().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),me=t({code:e().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
2
2
  The input is the resolved value of the references in the input field. Example:
3
3
  {
4
4
  "input": {
@@ -0,0 +1 @@
1
+ import{E as P,c as w,F as Q,t as h,u as v}from"./index-CHQ9-Q-G.js";import{u as F}from"./useMutation-C8K1KoTI.js";import{K as x,a as q,u as U}from"./constants-DwkB1age.js";function b(o,n,s){const e=[];if(o?.trim()){const t=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:t}));r.length===1&&r[0]?e.push(r[0]):r.length>1&&e.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const t of n)e.push({field:[t.column],operator:"eq",value:t.value});if(e.length!==0)return e.length===1?e[0]:{operator:"and",conditions:e}}function D(o,n,s){const e=o??s,t=n??"asc";return[{field:[String(e)],direction:t}]}function I(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function k(o,n,s,e){const t=w.c(13);let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const i=`COLLECTION_${r}_GET`;let c;t[2]!==e||t[3]!==i||t[4]!==s?(c=x.mcpToolCall(e,i,s??""),t[2]=e,t[3]=i,t[4]=s,t[5]=c):c=t[5];let l;t[6]!==e||t[7]!==i||t[8]!==s?(l=async()=>{if(!s)return{item:null};const p=await e.callTool({name:i,arguments:{id:s}});return I(p)},t[6]=e,t[7]=i,t[8]=s,t[9]=l):l=t[9];let d;t[10]!==c||t[11]!==l?(d={queryKey:c,queryFn:l,staleTime:6e4},t[10]=c,t[11]=l,t[12]=d):d=t[12];const{data:f}=P(d);return f?.item??null}const B={structuredContent:{items:[]},isError:!1};function R(o,n,s,e={}){const{searchTerm:t,filters:r,sortKey:a,sortDirection:i,searchFields:c=["title","description"],defaultSortKey:l="updated_at",pageSize:d=100}=e,p=`COLLECTION_${n.toUpperCase()}_LIST`,m=b(t,r,c),y=D(a,i,l),E={...m&&{where:m},...y&&{orderBy:y},limit:d,offset:0},C=JSON.stringify(E),g=x.mcpToolCall(s,p,C),{data:N}=P({queryKey:g,queryFn:async()=>s?await s.callTool({name:p,arguments:E}):B,staleTime:3e4,retry:!1,select:S=>I(S??{})?.items??[]});return N}function X(o,n,s,e={}){const{searchTerm:t,filters:r,sortKey:a,sortDirection:i,searchFields:c=["title","description"],defaultSortKey:l="updated_at",pageSize:d=100}=e,p=`COLLECTION_${n.toUpperCase()}_LIST`,m=b(t,r,c),y=D(a,i,l),E={...m&&{where:m},...y&&{orderBy:y},limit:d,offset:0},C=JSON.stringify(E);return x.mcpToolCall(o,p,C)}function j(o,n,s){const e=w.c(33),t=Q();let r;e[0]!==n?(r=n.toUpperCase(),e[0]=n,e[1]=r):r=e[1];const a=r,i=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,l=`COLLECTION_${a}_DELETE`;let d;e[2]!==t||e[3]!==a?(d=()=>{t.invalidateQueries({predicate:_=>{const u=_.queryKey;if(u[0]!=="mcp"||u[1]!=="client"||u[3]!=="tool-call")return!1;const L=u[4];return typeof L=="string"&&L.startsWith(`COLLECTION_${a}_`)}})},e[2]=t,e[3]=a,e[4]=d):d=e[4];const f=d;let p;e[5]!==s||e[6]!==i?(p=async _=>{const u=await s.callTool({name:i,arguments:{data:_}});if(u.isError)throw new Error(Array.isArray(u.content)?u.content[0]?.text:String(u.content));return I(u).item},e[5]=s,e[6]=i,e[7]=p):p=e[7];let m;e[8]!==f?(m=()=>{f(),h.success("Item created successfully")},e[8]=f,e[9]=m):m=e[9];let y;e[10]!==p||e[11]!==m?(y={mutationFn:p,onSuccess:m,onError:W},e[10]=p,e[11]=m,e[12]=y):y=e[12];const E=F(y);let C;e[13]!==s||e[14]!==c?(C=async _=>{const{id:u,data:L}=_,M=await s.callTool({name:c,arguments:{id:u,data:L}});return I(M).item},e[13]=s,e[14]=c,e[15]=C):C=e[15];let g;e[16]!==f?(g=()=>{f(),h.success("Item updated successfully")},e[16]=f,e[17]=g):g=e[17];let N;e[18]!==C||e[19]!==g?(N={mutationFn:C,onSuccess:g,onError:J},e[18]=C,e[19]=g,e[20]=N):N=e[20];const S=F(N);let T;e[21]!==s||e[22]!==l?(T=async _=>{const u=await s.callTool({name:l,arguments:{id:_}});return I(u).item.id},e[21]=s,e[22]=l,e[23]=T):T=e[23];let O;e[24]!==f?(O=()=>{f(),h.success("Item deleted successfully")},e[24]=f,e[25]=O):O=e[25];let K;e[26]!==T||e[27]!==O?(K={mutationFn:T,onSuccess:O,onError:z},e[26]=T,e[27]=O,e[28]=K):K=e[28];const A=F(K);let $;return e[29]!==E||e[30]!==A||e[31]!==S?($={create:E,update:S,delete:A},e[29]=E,e[30]=A,e[31]=S,e[32]=$):$=e[32],$}function z(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to delete item: ${n}`)}function J(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to update item: ${n}`)}function W(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to create item: ${n}`)}function Z(o){const n=w.c(4);let s;n[0]!==o?(s=o===void 0?{}:o,n[0]=o,n[1]=s):s=n[1];const e=s,{org:t}=v();let r;n[2]!==t.id?(r={connectionId:q,orgId:t.id},n[2]=t.id,n[3]=r):r=n[3];const a=U(r);return R(t.id,"CONNECTIONS",a,e)}function ee(o){const n=w.c(2),{org:s}=v();let e;n[0]!==s.id?(e={connectionId:q,orgId:s.id},n[0]=s.id,n[1]=e):e=n[1];const t=U(e);return k(s.id,"CONNECTIONS",o,t)}function te(){const o=w.c(2),{org:n}=v();let s;o[0]!==n.id?(s={connectionId:q,orgId:n.id},o[0]=n.id,o[1]=s):s=o[1];const e=U(s);return j(n.id,"CONNECTIONS",e)}export{B as E,D as a,X as b,b as c,k as d,R as e,ee as f,te as g,Z as h,j as u};
@@ -1 +1 @@
1
- import{c as p,u as v,v as f}from"./index-BMLEzHeY.js";import{a as m}from"./use-virtual-mcp-DrasHs63.js";function x(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=v(),c=f(),t=m();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{x as u};
1
+ import{c as p,u as v,v as f}from"./index-CHQ9-Q-G.js";import{a as m}from"./use-virtual-mcp-BIZk_q3v.js";function x(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=v(),c=f(),t=m();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{x as u};