@decocms/mesh 2.49.0 → 2.51.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 (148) hide show
  1. package/dist/client/assets/{AlertCircle-BFx0e2Kg.js → AlertCircle-Di9gDF27.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-CXYe7OQX.js → ArrowLeft-DRT5Kva0.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-R0MaTaQm.js → ArrowUp-ADrR5tBm.js} +1 -1
  4. package/dist/client/assets/{Check-Dl4vgpiq.js → Check-DV_PJHoi.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-Bw360URq.js → ChevronDown-miVIsNeU.js} +1 -1
  6. package/dist/client/assets/{Code01-C5Af9Cmu.js → Code01-DsGXDkFW.js} +1 -1
  7. package/dist/client/assets/{Copy01-Dwxl1_b8.js → Copy01-DjFu-LyY.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-jAK3hIr0.js → CpuChip02-DaRabvxH.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-CO9lVWWD.js → DotsHorizontal-9EIbueXK.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-7fR0Oh92.js → DotsVertical-A_4-2fyA.js} +1 -1
  11. package/dist/client/assets/{Download01-D3LKI3um.js → Download01-CVks9g2O.js} +1 -1
  12. package/dist/client/assets/{Edit01-eTcj7luW.js → Edit01-DCEA2Qo9.js} +1 -1
  13. package/dist/client/assets/{File06-CR5y5_r6.js → File06-C6uwXICm.js} +1 -1
  14. package/dist/client/assets/{FilterLines-BSrHPBCD.js → FilterLines-DJ93i98-.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-CECNBiyR.js → FlipBackward-DRTxuL3t.js} +1 -1
  16. package/dist/client/assets/{Grid01-z7B51opS.js → Grid01-BoZHahfB.js} +1 -1
  17. package/dist/client/assets/{Home02-D3uKc5vy.js → Home02-muh-RG9B.js} +1 -1
  18. package/dist/client/assets/{Image01-DaJkh8SV.js → Image01-D9YYSrLM.js} +1 -1
  19. package/dist/client/assets/{Inbox01-DN0A5urx.js → Inbox01-Cq_E93Vb.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-BIImTW8l.js → InfoCircle-Bsvsn9PN.js} +1 -1
  21. package/dist/client/assets/{Key01-CtWWv5DE.js → Key01-oOseIqFa.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CkozvERL.js → LinkExternal01-2BudTXxn.js} +1 -1
  23. package/dist/client/assets/{List-DjfxyLsa.js → List-Cxn3eArS.js} +1 -1
  24. package/dist/client/assets/{Loading01-DQ8Kn5fo.js → Loading01-aRByu34A.js} +1 -1
  25. package/dist/client/assets/{Lock01-D21WF_7F.js → Lock01-Brl3PEsE.js} +1 -1
  26. package/dist/client/assets/Pin01-DSY0pMf_.js +1 -0
  27. package/dist/client/assets/{Play-Bh_tgkP3.js → Play-DxbISkTi.js} +1 -1
  28. package/dist/client/assets/{Plus-BcDBhW0L.js → Plus-SY33KYEr.js} +1 -1
  29. package/dist/client/assets/{SearchMd-HI2aO3Sf.js → SearchMd-lbDK5Ate.js} +1 -1
  30. package/dist/client/assets/Share07-ZUAVRGob.js +1 -0
  31. package/dist/client/assets/{Terminal-ByvCcEAl.js → Terminal-CjZh4_rX.js} +1 -1
  32. package/dist/client/assets/{Trash01-BvTKgpoJ.js → Trash01-4FYj2iBl.js} +1 -1
  33. package/dist/client/assets/{Upload01-D5nIw1CS.js → Upload01-Bae6suDr.js} +1 -1
  34. package/dist/client/assets/{X-VemvUJYi.js → X-BEpqZ85A.js} +1 -1
  35. package/dist/client/assets/{XClose-BuJzgPXO.js → XClose-Cpieg5au.js} +1 -1
  36. package/dist/client/assets/agent-detail-DO7NyJaK.js +1 -0
  37. package/dist/client/assets/{agents-gA1FzKB9.js → agents-CYlVMl7O.js} +1 -1
  38. package/dist/client/assets/{alert-dialog-UkKJZN3T.js → alert-dialog-B5fsha1N.js} +1 -1
  39. package/dist/client/assets/{auth-catchall-ClXo_Czy.js → auth-catchall-BNK2FtQ5.js} +1 -1
  40. package/dist/client/assets/{avatar-Cbkc6T1n.js → avatar-ADVP1wQ0.js} +1 -1
  41. package/dist/client/assets/{badge-BGQ828q4.js → badge-BUaN0GSU.js} +1 -1
  42. package/dist/client/assets/{binder-D0pyLP77.js → binder-DP2nHbKJ.js} +1 -1
  43. package/dist/client/assets/{button-CFAZeZNj.js → button-lbHs5V7A.js} +1 -1
  44. package/dist/client/assets/{card-BNUgm4Cj.js → card-D3N03iqe.js} +1 -1
  45. package/dist/client/assets/{checkbox-BrJdV6BD.js → checkbox-DsczbnXL.js} +1 -1
  46. package/dist/client/assets/collection-detail-3Vy0aH1H.js +26 -0
  47. package/dist/client/assets/{collection-display-button-KL6yy337.js → collection-display-button-Bm1VRbpn.js} +1 -1
  48. package/dist/client/assets/{collection-header-BRPxBXdV.js → collection-header-EJ18B4Kz.js} +1 -1
  49. package/dist/client/assets/{collection-page-DnOeYCUs.js → collection-page-nhlC30CB.js} +1 -1
  50. package/dist/client/assets/{collection-search-38g04oQk.js → collection-search-DiKIf-5M.js} +1 -1
  51. package/dist/client/assets/{collection-tab-DaMZyMNK.js → collection-tab-D71oDPbA.js} +1 -1
  52. package/dist/client/assets/{collection-table-wrapper-a4UtkhWO.js → collection-table-wrapper-BLZDDtS3.js} +1 -1
  53. package/dist/client/assets/{connect-XdqJNfe-.js → connect-DK_ROefe.js} +1 -1
  54. package/dist/client/assets/{connection-card-eiNrc9Oz.js → connection-card-ClAy-kQR.js} +1 -1
  55. package/dist/client/assets/connection-detail-BQPv-aOL.js +1 -0
  56. package/dist/client/assets/{connections-CXyIFchp.js → connections-lF7xNpQy.js} +1 -1
  57. package/dist/client/assets/constants-B7pfoUZg.js +1 -0
  58. package/dist/client/assets/{constants-00bCXGh6.js → constants-ovc0nrYw.js} +1 -1
  59. package/dist/client/assets/{create-organization-dialog-CwkhEHMQ.js → create-organization-dialog-CY11ou7A.js} +1 -1
  60. package/dist/client/assets/{dialog-DM-upVuo.js → dialog-An0-PT9G.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-BSCcMvpq.js → dropdown-menu-jRXJy65A.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-DT4p-b7r.js → dynamic-plugin-layout-Ba0zmJ4P.js} +1 -1
  63. package/dist/client/assets/empty-state-CDV5F3rR.js +1 -0
  64. package/dist/client/assets/{empty-state-MJclvS0E.js → empty-state-Dcr6oc2T.js} +1 -1
  65. package/dist/client/assets/{env-vars-editor-B5RFEwRD.js → env-vars-editor-DCJfI9ec.js} +1 -1
  66. package/dist/client/assets/{error-boundary-BOGwopZ8.js → error-boundary-FFpmvDrc.js} +1 -1
  67. package/dist/client/assets/{extract-connection-data-ArbtrUUq.js → extract-connection-data-Ck7onbtS.js} +1 -1
  68. package/dist/client/assets/{file-browser-B__vDD-M.js → file-browser-DOWwpgy9.js} +2 -2
  69. package/dist/client/assets/{form-D2fsSg1B.js → form-Dmu6BYOb.js} +1 -1
  70. package/dist/client/assets/{grid-view-gUz58ppA.js → grid-view-2XpZTQtd.js} +1 -1
  71. package/dist/client/assets/{home-DFvABpDO.js → home-JjWXGei6.js} +1 -1
  72. package/dist/client/assets/{index-DOPyUYPA.js → index-8jAlU_ml.js} +1 -1
  73. package/dist/client/assets/index-BXgcsaLF.css +1 -0
  74. package/dist/client/assets/{index-DHEzlhNG.js → index-CSP34uke.js} +78 -78
  75. package/dist/client/assets/{index-CSKo3AB-.js → index-CctEkCg3.js} +2 -2
  76. package/dist/client/assets/{index-C8qswj69.js → index-DOFIWV3y.js} +1 -1
  77. package/dist/client/assets/{index-iYJsRKb1.js → index-DxlXchoO.js} +1 -1
  78. package/dist/client/assets/index-LzJObHKr.js +1 -0
  79. package/dist/client/assets/{infiniteQueryObserver-DITl44kb.js → infiniteQueryObserver-B3MDrAX7.js} +1 -1
  80. package/dist/client/assets/{input-dDHeSId1.js → input-ORro9zKB.js} +1 -1
  81. package/dist/client/assets/{layout-eAPYoLHe.js → layout-B9gKge9L.js} +1 -1
  82. package/dist/client/assets/{localstorage-keys-RorudcE2.js → localstorage-keys-C_QsekvO.js} +1 -1
  83. package/dist/client/assets/{login-Dspy4n1j.js → login-IU-ayTZF.js} +1 -1
  84. package/dist/client/assets/{mcp-oauth-Dyuau07a.js → mcp-oauth-D2MZPKxK.js} +1 -1
  85. package/dist/client/assets/{mcp-server-card-DXECwgUQ.js → mcp-server-card-BgJDEYWw.js} +1 -1
  86. package/dist/client/assets/{mcp-server-detail-BpEadstr.js → mcp-server-detail-HpvwCMXd.js} +2 -2
  87. package/dist/client/assets/{members-DTc-EP6X.js → members-CHefA9td.js} +1 -1
  88. package/dist/client/assets/{monaco-editor-CoGmzjgM.js → monaco-editor-B-LLGrs2.js} +1 -1
  89. package/dist/client/assets/monitoring-J0OpUpWh.js +49 -0
  90. package/dist/client/assets/{oauth-callback-LIfM465p.js → oauth-callback-BGIpYsFZ.js} +1 -1
  91. package/dist/client/assets/page-BylaQxnI.js +1 -0
  92. package/dist/client/assets/{page-p9eXrSJA.js → page-DLa2Zsi-.js} +1 -1
  93. package/dist/client/assets/pin-to-sidebar-button-DOK9Zss0.js +1 -0
  94. package/dist/client/assets/{plugin-empty-state-puwJA1ki.js → plugin-empty-state-n3Py5P3p.js} +1 -1
  95. package/dist/client/assets/{plugin-header-B66oq3LZ.js → plugin-header-CUoi_uCt.js} +1 -1
  96. package/dist/client/assets/{plugins-DshL_s7_.js → plugins-CXvBiPDQ.js} +1 -1
  97. package/dist/client/assets/{popover-7buvgRdj.js → popover-B_K1WCq-.js} +1 -1
  98. package/dist/client/assets/{registry-utils-CbzWp9OX.js → registry-utils-DOkK6lrH.js} +1 -1
  99. package/dist/client/assets/{resizable-BCXkVCQe.js → resizable-N3PmBkp2.js} +1 -1
  100. package/dist/client/assets/{resource-tabs-C_5hrBh-.js → resource-tabs-zgxDm5p_.js} +1 -1
  101. package/dist/client/assets/{select-DIh_ARVf.js → select-eS1X4-WO.js} +1 -1
  102. package/dist/client/assets/{settings-U9Ce1T3p.js → settings-heUtSQ9G.js} +1 -1
  103. package/dist/client/assets/shell-layout-BcqC19mc.js +3 -0
  104. package/dist/client/assets/{spinner-D29bareA.js → spinner-DbbM-Lkf.js} +1 -1
  105. package/dist/client/assets/{switch-CaozShsq.js → switch-CMaQzWDo.js} +1 -1
  106. package/dist/client/assets/{textarea-By7616c7.js → textarea-C5fJqZj1.js} +1 -1
  107. package/dist/client/assets/{tool-set-selector-CPK6fuP0.js → tool-set-selector-OlbxXjN2.js} +1 -1
  108. package/dist/client/assets/{tools-list-DmtwoEPt.js → tools-list-Dt39U_Mc.js} +1 -1
  109. package/dist/client/assets/{tooltip-C6p3ZTWD.js → tooltip-BxqZ0ncr.js} +1 -1
  110. package/dist/client/assets/typewriter-title-Bz16mlWc.js +16 -0
  111. package/dist/client/assets/{use-binding-DWMAlJMq.js → use-binding-B_0dZ2Cu.js} +3 -3
  112. package/dist/client/assets/{use-collections-DxVui4KR.js → use-collections-Dzj9tBCd.js} +1 -1
  113. package/dist/client/assets/{use-connection-M951sLQc.js → use-connection-B2MZNzHN.js} +1 -1
  114. package/dist/client/assets/{use-create-virtual-mcp-jExGASGt.js → use-create-virtual-mcp-CKwMRLUe.js} +1 -1
  115. package/dist/client/assets/{use-list-state-6d2DWIZc.js → use-list-state-UML86H2v.js} +1 -1
  116. package/dist/client/assets/{use-mcp-prompts-B8x8i4pO.js → use-mcp-prompts-4lPkeeHV.js} +1 -1
  117. package/dist/client/assets/{use-members-DR5gTD2C.js → use-members-BX7csdWV.js} +1 -1
  118. package/dist/client/assets/{use-mobile-npvaN7oN.js → use-mobile-DtgIvjED.js} +1 -1
  119. package/dist/client/assets/{use-organization-settings-D2PS4P0Y.js → use-organization-settings-S9rGWmpn.js} +1 -1
  120. package/dist/client/assets/{use-virtual-mcp-sMRp6Cch.js → use-virtual-mcp-B-vfbhzs.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-Cb9-alO8.js +1 -0
  122. package/dist/client/assets/{useMutation-B-hML37f.js → useMutation-DogLiEJl.js} +1 -1
  123. package/dist/client/assets/useQuery-606lSbCB.js +1 -0
  124. package/dist/client/assets/{view-mode-toggle-CHe5z87O.js → view-mode-toggle-DMe_n-l4.js} +1 -1
  125. package/dist/client/assets/workflow-DMMWwKId.js +1 -0
  126. package/dist/client/index.html +2 -2
  127. package/dist/server/cli.js +123 -123
  128. package/dist/server/migrate.js +105 -105
  129. package/dist/server/server.js +110 -110
  130. package/package.json +1 -2
  131. package/dist/client/assets/GitBranch01-CwMj0n-I.js +0 -1
  132. package/dist/client/assets/agent-detail-BogR5s3T.js +0 -1
  133. package/dist/client/assets/collection-detail-CEUGbkaT.js +0 -26
  134. package/dist/client/assets/connection-detail-CKc2_Ofa.js +0 -1
  135. package/dist/client/assets/constants-DViIPxIH.js +0 -1
  136. package/dist/client/assets/empty-state-D5F6myv7.js +0 -1
  137. package/dist/client/assets/index-B0qsrDFa.css +0 -1
  138. package/dist/client/assets/index-BGbU896x.js +0 -1
  139. package/dist/client/assets/monitoring-CcNyiiXy.js +0 -49
  140. package/dist/client/assets/page-BZV40eAE.css +0 -1
  141. package/dist/client/assets/page-BrzvV_Br.js +0 -21
  142. package/dist/client/assets/pin-to-sidebar-button-DTtHVcuw.js +0 -1
  143. package/dist/client/assets/shell-layout-DpAuW-G7.js +0 -3
  144. package/dist/client/assets/typewriter-title-DI2zJB0T.js +0 -16
  145. package/dist/client/assets/useInfiniteQuery-wdX1y8Qt.js +0 -1
  146. package/dist/client/assets/useQuery-CErcyT2z.js +0 -1
  147. package/dist/client/assets/value-BRo4iI4w.js +0 -1
  148. package/dist/client/assets/workflow-2AVxzWvo.js +0 -1
@@ -1,3 +0,0 @@
1
- import{r as w,ba as et,e as W,j as n,f as te,a8 as U,c as h,R as tt,T as st,D as at,n as nt,q as ot,w as lt,t as it,S as rt,m as ct,u as se,bg as ve,L as fe,aW as dt,bA as mt,a as we,bd as Ne,bB as Z,bC as ft,bD as ut,a6 as Se,bE as pt,bF as ht,a7 as xt,l as gt,P as bt,K as jt,O as vt,aL as ye}from"./index-CSKo3AB-.js";import{B as H,c as z}from"./button-CFAZeZNj.js";import{P as Ce,a as _e,b as ke}from"./popover-7buvgRdj.js";import{B as ue}from"./badge-BGQ828q4.js";import{i as ee}from"./Check-Dl4vgpiq.js";import{n as pe}from"./Inbox01-DN0A5urx.js";import{s as he}from"./XClose-BuJzgPXO.js";import{E as $e}from"./error-boundary-BOGwopZ8.js";import{i as wt}from"./File06-CR5y5_r6.js";import{i as Y}from"./X-VemvUJYi.js";import{u as q}from"./use-mobile-npvaN7oN.js";import{a as Ie,b as ze,T as Te,c as Oe}from"./tooltip-C6p3ZTWD.js";import{S as Me,i as Nt,u as St,C as A,a as yt,b as Ct}from"./index-DHEzlhNG.js";import{u as le,a as _t}from"./use-organization-settings-D2PS4P0Y.js";import{n as kt,I as $t}from"./empty-state-D5F6myv7.js";import{i as Ae}from"./CpuChip02-jAK3hIr0.js";import{a as It}from"./Home02-D3uKc5vy.js";import{C as zt}from"./create-organization-dialog-CwkhEHMQ.js";import{I as Tt}from"./input-dDHeSId1.js";import{A as G}from"./avatar-Cbkc6T1n.js";import{c as Ot}from"./Grid01-z7B51opS.js";import{a as Mt,b as At,D as Pt,c as Rt,g as xe}from"./dropdown-menu-BSCcMvpq.js";import{a as Pe}from"./Copy01-Dwxl1_b8.js";import{n as ge}from"./LinkExternal01-CkozvERL.js";import{c as Et,b as Dt,g as Lt,a as Ht,D as Bt}from"./dialog-DM-upVuo.js";import{L as Ut}from"./form-D2fsSg1B.js";import{S as Wt}from"./switch-CaozShsq.js";import{i as Ft}from"./Code01-C5Af9Cmu.js";import{u as ie,L as re}from"./localstorage-keys-RorudcE2.js";import{T as Vt,t as Kt}from"./typewriter-title-DI2zJB0T.js";import{R as Re,a as Gt,b as Zt}from"./resizable-BCXkVCQe.js";import{s as Yt}from"./Plus-BcDBhW0L.js";import"./constants-00bCXGh6.js";import"./use-virtual-mcp-sMRp6Cch.js";import"./use-collections-DxVui4KR.js";import"./useMutation-B-hML37f.js";import"./useQuery-CErcyT2z.js";import"./use-connection-M951sLQc.js";import"./use-binding-DWMAlJMq.js";import"./binder-D0pyLP77.js";import"./monaco-editor-CoGmzjgM.js";import"./infiniteQueryObserver-DITl44kb.js";import"./spinner-D29bareA.js";import"./select-DIh_ARVf.js";import"./ChevronDown-Bw360URq.js";import"./Image01-DaJkh8SV.js";import"./SearchMd-HI2aO3Sf.js";import"./use-mcp-prompts-B8x8i4pO.js";import"./AlertCircle-BFx0e2Kg.js";import"./ArrowUp-R0MaTaQm.js";import"./Edit01-eTcj7luW.js";import"./Terminal-ByvCcEAl.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-BvTKgpoJ.js";import"./use-create-virtual-mcp-jExGASGt.js";import"./alert-dialog-UkKJZN3T.js";const Ee=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Ee.displayName="BarChart10";const De=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));De.displayName="Building02";const Le=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Le.displayName="Globe01";const He=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));He.displayName="LayoutRight";const Be=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Be.displayName="LogOut01";const Ue=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Ue.displayName="Mail01";const ce=({size:t=24,color:e="currentColor",...s})=>w.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},w.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),w.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"}));ce.displayName="Settings01";const We=({size:t=24,color:e="currentColor",...s})=>w.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},w.createElement("path",{d:"M22 21v-2a4.002 4.002 0 0 0-3-3.874M15.5 3.291a4.001 4.001 0 0 1 0 7.418M17 21c0-1.864 0-2.796-.305-3.53a4 4 0 0 0-2.164-2.165C13.796 15 12.864 15 11 15H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));We.displayName="Users01";const Fe=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Fe.displayName="Zap";function qt({invitation:t,onStatusChange:e}){const[s,a]=w.useState(!1),[o,l]=w.useState(!1),i=te(),r=async()=>{a(!0);try{const b=await W.organization.acceptInvitation({invitationId:t.id});if(b.error)U.error(b.error.message),a(!1);else{e(t.id,"accepted");const x=await W.organization.setActive({organizationId:t.organizationId});x?.data?.slug?(U.success("Invitation accepted!"),i({to:"/$org",params:{org:x.data.slug}})):(U.success("Invitation accepted! Redirecting..."),i({to:"/"}))}}catch{U.error("Failed to accept invitation"),a(!1)}},c=async()=>{l(!0);try{const b=await W.organization.rejectInvitation({invitationId:t.id});b.error?(U.error(b.error.message),l(!1)):(U.success("Invitation rejected"),e(t.id,"rejected"),l(!1))}catch{U.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:z("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(Ue,{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(H,{variant:"ghost",size:"icon",onClick:c,disabled:s||o,className:"h-8 w-8",children:n.jsx(he,{size:14})}),n.jsx(H,{variant:"outline",size:"icon",onClick:r,disabled:s||o,className:"h-8 w-8",children:n.jsx(ee,{size:14})})]}):f?n.jsxs(ue,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(ee,{size:12}),"Accepted"]}):u?n.jsxs(ue,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(he,{size:12}),"Declined"]}):null})]})}function Jt(){const[t,e]=w.useState(!1),s=w.useContext(et),{data:a}=s.hooks.useListUserInvitations(),{data:o}=W.useListOrganizations(),[l,i]=w.useState({}),m=(a??[]).filter(p=>new Date(p.expiresAt)>new Date).map(p=>{const g=(o??[]).find(j=>j.id===p.organizationId);return{...p,organizationSlug:g?.slug||p.organizationSlug,organizationName:g?.name||p.organizationName}}).map(p=>({...p,status:l[p.id]||p.status})),f=[...m].sort((p,g)=>{const j={pending:0,accepted:1,rejected:2};return(j[p.status]??999)-(j[g.status]??999)}),b=m.filter(p=>p.status==="pending").length>0,x=(p,g)=>{i(j=>({...j,[p]:g}))};return n.jsxs(Ce,{open:t,onOpenChange:e,children:[n.jsx(_e,{asChild:!0,children:n.jsxs(H,{variant:"ghost",size:"sm",className:"relative h-7 w-7 p-0","aria-label":"Inbox",children:[n.jsx(pe,{size:18,className:"text-muted-foreground"}),b&&n.jsx("span",{className:"absolute bottom-1 right-0.5 h-2 w-2 rounded-full bg-destructive ring-2 ring-background"})]})}),n.jsxs(ke,{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(qt,{invitation:p,onStatusChange:x},p.id)):n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[n.jsx(pe,{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 Xt(t){const e=h.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(tt,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function Qt(t){const e=h.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(ot,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function es(t){const e=h.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 o;e[3]!==s?(o=z("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]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx(it,{"data-slot":"sheet-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function ts(t){const e=h.c(17);let s,a,o,l;e[0]!==t?({className:a,children:s,side:l,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l):(s=e[1],a=e[2],o=e[3],l=e[4]);const i=l===void 0?"right":l;let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(es,{}),e[5]=r):r=e[5];const c=i==="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",d=i==="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",m=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",f=i==="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 u;e[6]!==a||e[7]!==c||e[8]!==d||e[9]!==m||e[10]!==f?(u=z("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",c,d,m,f,a),e[6]=a,e[7]=c,e[8]=d,e[9]=m,e[10]=f,e[11]=u):u=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsxs(lt,{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:[n.jsx(Y,{className:"size-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=b):b=e[12];let x;return e[13]!==s||e[14]!==o||e[15]!==u?(x=n.jsxs(Qt,{children:[r,n.jsxs(nt,{"data-slot":"sheet-content",className:u,...o,children:[s,b]})]}),e[13]=s,e[14]=o,e[15]=u,e[16]=x):x=e[16],x}function ss(t){const e=h.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 o;e[3]!==s?(o=z("flex flex-col gap-1.5 p-4",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-slot":"sheet-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function as(t){const e=h.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 o;e[3]!==s?(o=z("text-foreground font-semibold",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx(st,{"data-slot":"sheet-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function ns(t){const e=h.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 o;e[3]!==s?(o=z("text-muted-foreground text-sm",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx(at,{"data-slot":"sheet-description",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}const os="sidebar_state",ls=3600*24*7,is="16rem",rs="18rem",cs="3rem",ds="b",Ve=w.createContext(null);function de(){const t=w.useContext(Ve);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ms(t){const e=h.c(21),{defaultOpen:s,open:a,onOpenChange:o,children:l}=t,i=s===void 0?!0:s,r=q(),[c,d]=w.useState(!1),[m,f]=w.useState(i),u=a??m;let b;e[0]!==u||e[1]!==o?(b=$=>{const S=typeof $=="function"?$(u):$;o?o(S):f(S),document.cookie=`${os}=${S}; path=/; max-age=${ls}`},e[0]=u,e[1]=o,e[2]=b):b=e[2];const x=b;let p;e[3]!==r||e[4]!==x?(p=()=>r?d(us):x(fs),e[3]=r,e[4]=x,e[5]=p):p=e[5];const g=p;let j,v;e[6]!==g?(j=()=>{const $=S=>{if(S.key===ds&&(S.metaKey||S.ctrlKey)){const I=S.target;if(I.tagName==="INPUT"||I.tagName==="TEXTAREA"||I.isContentEditable)return;S.preventDefault(),g()}};return globalThis.addEventListener("keydown",$),()=>globalThis.removeEventListener("keydown",$)},v=[g],e[6]=g,e[7]=j,e[8]=v):(j=e[7],v=e[8]),w.useEffect(j,v);const N=u?"expanded":"collapsed";let _;e[9]!==r||e[10]!==u||e[11]!==c||e[12]!==x||e[13]!==N||e[14]!==g?(_={state:N,open:u,setOpen:x,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=r,e[10]=u,e[11]=c,e[12]=x,e[13]=N,e[14]=g,e[15]=_):_=e[15];const y=_;let k;e[16]!==l?(k=n.jsx(ze,{delayDuration:0,children:l}),e[16]=l,e[17]=k):k=e[17];let C;return e[18]!==y||e[19]!==k?(C=n.jsx(Ve.Provider,{value:y,children:k}),e[18]=y,e[19]=k,e[20]=C):C=e[20],C}function fs(t){return!t}function us(t){return!t}function ps(t){const e=h.c(14);let s,a,o,l;e[0]!==t?({className:a,style:l,children:s,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l):(s=e[1],a=e[2],o=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":is,"--sidebar-width-icon":cs,...l},e[5]=l,e[6]=i):i=e[6];const r=i;let c;e[7]!==a?(c=z("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=c):c=e[8];let d;return e[9]!==s||e[10]!==o||e[11]!==r||e[12]!==c?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...o,children:s}),e[9]=s,e[10]=o,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function hs(t){const e=h.c(46);let s,a,o,l,i,r;e[0]!==t?({side:l,variant:i,collapsible:r,className:a,children:s,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=i,e[6]=r):(s=e[1],a=e[2],o=e[3],l=e[4],i=e[5],r=e[6]);const c=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=r===void 0?"offcanvas":r,{isMobile:f,state:u,openMobile:b,setOpenMobile:x}=de();if(m==="none"){let S;e[7]!==a?(S=z("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=S):S=e[8];let I;return e[9]!==s||e[10]!==o||e[11]!==S?(I=n.jsx("div",{"data-slot":"sidebar",className:S,...o,children:s}),e[9]=s,e[10]=o,e[11]=S,e[12]=I):I=e[12],I}if(f){let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S={"--sidebar-width":rs},e[13]=S):S=e[13];let I;e[14]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsxs(ss,{className:"sr-only",children:[n.jsx(as,{children:"Sidebar"}),n.jsx(ns,{children:"Displays the mobile sidebar."})]}),e[14]=I):I=e[14];let T;e[15]!==s?(T=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=T):T=e[16];let O;e[17]!==c||e[18]!==T?(O=n.jsxs(ts,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:S,side:c,children:[I,T]}),e[17]=c,e[18]=T,e[19]=O):O=e[19];let M;return e[20]!==b||e[21]!==o||e[22]!==x||e[23]!==O?(M=n.jsx(Xt,{open:b,onOpenChange:x,...o,children:O}),e[20]=b,e[21]=o,e[22]=x,e[23]=O,e[24]=M):M=e[24],M}const p=u==="collapsed"?m:"",g=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 j;e[25]!==g?(j=z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=j):j=e[26];let v;e[27]!==j?(v=n.jsx("div",{"data-slot":"sidebar-gap",className:j}),e[27]=j,e[28]=v):v=e[28];const N=c==="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)]",_=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]!==N||e[31]!==_?(y=z("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",N,_,a),e[29]=a,e[30]=N,e[31]=_,e[32]=y):y=e[32];let k;e[33]!==s?(k=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]=k):k=e[34];let C;e[35]!==o||e[36]!==y||e[37]!==k?(C=n.jsx("div",{"data-slot":"sidebar-container",className:y,...o,children:k}),e[35]=o,e[36]=y,e[37]=k,e[38]=C):C=e[38];let $;return e[39]!==c||e[40]!==u||e[41]!==C||e[42]!==p||e[43]!==v||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":c,"data-slot":"sidebar",children:[v,C]}),e[39]=c,e[40]=u,e[41]=C,e[42]=p,e[43]=v,e[44]=d,e[45]=$):$=e[45],$}function xs(t){const e=h.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 o;e[3]!==s?(o=z("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]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function gs(t){const e=h.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 o;e[3]!==s?(o=z("h-4 m-0! w-full",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-sidebar":"separator",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function bs(t){const e=h.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 o;e[3]!==s?(o=z("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function js(t){const e=h.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 o;e[3]!==s?(o=z("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function vs(t){const e=h.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 o;e[3]!==s?(o=z("w-full text-sm",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function ws(t){const e=h.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 o;e[3]!==s?(o=z("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function ae(t){const e=h.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 o;e[3]!==s?(o=z("group/menu-item relative",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}const Ns=ct("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 Ke(t){const e=h.c(28);let s,a,o,l,i,r,c;e[0]!==t?({asChild:o,isActive:l,variant:i,size:r,tooltip:c,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=i,e[6]=r,e[7]=c):(s=e[1],a=e[2],o=e[3],l=e[4],i=e[5],r=e[6],c=e[7]);const d=o===void 0?!1:o,m=l===void 0?!1:l,f=i===void 0?"default":i,u=r===void 0?"default":r,b=d?rt:"button",{isMobile:x,state:p}=de();let g;e[8]!==s||e[9]!==u||e[10]!==f?(g=z(Ns({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=g):g=e[11];let j;e[12]!==b||e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==g?(j=n.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:g,...a}),e[12]=b,e[13]=m,e[14]=a,e[15]=u,e[16]=g,e[17]=j):j=e[17];const v=j;if(!c)return v;if(typeof c=="string"){let C;e[18]!==c?(C={children:c},e[18]=c,e[19]=C):C=e[19],c=C}let N;e[20]!==v?(N=n.jsx(Te,{asChild:!0,children:v}),e[20]=v,e[21]=N):N=e[21];const _=p!=="collapsed"||x;let y;e[22]!==_||e[23]!==c?(y=n.jsx(Ie,{side:"right",align:"center",hidden:_,...c}),e[22]=_,e[23]=c,e[24]=y):y=e[24];let k;return e[25]!==N||e[26]!==y?(k=n.jsxs(Oe,{children:[N,y]}),e[25]=N,e[26]=y,e[27]=k):k=e[27],k}function Ss(t){const e=h.c(26),{item:s}=t,a=te(),{org:o}=se(),l=le(o.id),i=_t(o.id);let r;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(r=async()=>{const _=(l?.sidebar_items||[]).filter(y=>y.url!==s.url);await i.update.mutateAsync({sidebar_items:_})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=r):r=e[3];const c=r;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 x;e[10]!==f||e[11]!==s.icon||e[12]!==s.title?(x=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(wt,{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]=x):x=e[13];let p;e[14]!==s.title?(p=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=p):p=e[15];let g;e[16]!==p?(g=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]=g):g=e[17];let j;e[18]!==c?(j=n.jsx(Y,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:N=>{N.preventDefault(),N.stopPropagation(),c()}}),e[18]=c,e[19]=j):j=e[19];let v;return e[20]!==s.title||e[21]!==u||e[22]!==x||e[23]!==g||e[24]!==j?(v=n.jsx(ae,{children:n.jsxs(Ke,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:b,children:[x,g,j]})}),e[20]=s.title,e[21]=u,e[22]=x,e[23]=g,e[24]=j,e[25]=v):v=e[25],v}function ys(){const t=h.c(4),{org:e}=se(),a=le(e.id)?.sidebar_items;if(!a?.length)return null;let o;t[0]!==a?(o=a.map(Cs),t[0]=a,t[1]=o):o=t[1];let l;return t[2]!==o?(l=n.jsx(Ge,{children:o}),t[2]=o,t[3]=l):l=t[3],l}function Cs(t){return n.jsx(Ss,{item:t},t.url)}function be(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ae,{children:n.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:n.jsx(Me,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Ge(t){const e=h.c(4),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(gs,{className:"my-2 -ml-1"}),e[0]=a):a=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(ae,{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]=o):o=e[1];let l;return e[2]!==s?(l=n.jsxs(n.Fragment,{children:[a,o,s]}),e[2]=s,e[3]=l):l=e[3],l}function _s(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(w.Suspense,{fallback:n.jsxs(Ge,{children:[n.jsx(be,{}),n.jsx(be,{})]}),children:n.jsx(ys,{})}),t[0]=e):e=t[0],e}function ks(){const t=h.c(14),{locator:e,org:s}=se(),a=te(),o=ve(),{org:l}=fe.parse(e);let i;t[0]!==e?(i=fe.isOrgAdminProject(e),t[0]=e,t[1]=i):i=t[1];const r=i,c=le(s.id);let d;t[2]!==c?.enabled_plugins?(d=c?.enabled_plugins??[],t[2]=c?.enabled_plugins,t[3]=d):d=t[3];const m=d;let f;t[4]!==m?(f=C=>m.includes(C.pluginId),t[4]=m,t[5]=f):f=t[5];const u=dt.filter(f),b=o.location.pathname===`/${l}`||o.location.pathname===`/${l}/`;let x;t[6]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(It,{}),t[6]=x):x=t[6];let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(De,{}),t[7]=p):p=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(kt,{}),t[8]=g):g=t[8];let j;t[9]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Ae,{}),t[9]=j):j=t[9];let v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Fe,{}),t[10]=v):v=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(Ee,{}),t[11]=N):N=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(We,{}),t[12]=_):_=t[12];let y;t[13]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(ce,{}),t[13]=y):y=t[13];const k=[{key:"home",label:"Home",icon:x,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(C=>({key:C.pluginId,label:C.label,icon:C.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:l,pluginId:C.pluginId}})})),{key:"mcps",label:"Connections",icon:g,onClick:()=>a({to:"/$org/mcps",params:{org:l}})},{key:"agents",label:"Agents",icon:j,onClick:()=>a({to:"/$org/agents",params:{org:l}})},{key:"workflow",label:"Workflows",icon:v,onClick:()=>a({to:"/$org/workflows",params:{org:l}})},{key:"monitoring",label:"Monitoring",icon:N,onClick:()=>a({to:"/$org/monitoring",params:{org:l}})},{key:"members",label:"Members",icon:_,onClick:()=>a({to:"/$org/members",params:{org:l}})},{key:"settings",label:"Settings",icon:y,onClick:()=>a({to:"/$org/settings",params:{org:l}})}];return r?k:[]}function Ze(t){const e=h.c(10),{navigationItems:s,footer:a,additionalContent:o,variant:l,collapsible:i}=t,r=l===void 0?"sidebar":l,c=i===void 0?"icon":i;let d;e[0]!==s?(d=s.map($s),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o||e[3]!==d?(m=n.jsx(bs,{className:"flex-1 overflow-x-hidden",children:n.jsx(js,{className:"font-medium",children:n.jsx(vs,{children:n.jsxs(ws,{className:"gap-0.5",children:[d,o]})})})}),e[2]=o,e[3]=d,e[4]=m):m=e[4];let f;return e[5]!==c||e[6]!==a||e[7]!==m||e[8]!==r?(f=n.jsxs(hs,{variant:r,collapsible:c,children:[m,a]}),e[5]=c,e[6]=a,e[7]=m,e[8]=r,e[9]=f):f=e[9],f}function $s(t){return n.jsx(ae,{children:n.jsxs(Ke,{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)}Ze.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(Me,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function Is(){const t=h.c(3),e=ks();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(n.Fragment,{children:n.jsx($e,{children:n.jsx(w.Suspense,{fallback:null,children:n.jsx(_s,{})})})}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(Ze,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=a):a=t[2],a}function zs(t){const e=h.c(12);let s,a,o,l;e[0]!==t?({className:s,orientation:o,decorative:l,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l):(s=e[1],a=e[2],o=e[3],l=e[4]);const i=o===void 0?"horizontal":o,r=l===void 0?!0:l;let c;e[5]!==s?(c=z("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]=c):c=e[6];let d;return e[7]!==r||e[8]!==i||e[9]!==a||e[10]!==c?(d=n.jsx(mt,{"data-slot":"separator-root",decorative:r,orientation:i,className:c,...a}),e[7]=r,e[8]=i,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}const Ye=w.createContext(null);function Ts(){const t=w.useContext(Ye);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function Os(t){const e=h.c(10),{children:s,onItemHover:a}=t,[o,l]=w.useState(null);let i;e[0]!==a?(i=f=>{l(f),a?.(f)},e[0]=a,e[1]=i):i=e[1];const r=i;let c;e[2]!==o||e[3]!==r?(c={hoveredItem:o,setHoveredItem:r},e[2]=o,e[3]=r,e[4]=c):c=e[4];let d;e[5]!==s?(d=n.jsx(Ce,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==c||e[8]!==d?(m=n.jsx(Ye.Provider,{value:c,children:d}),e[7]=c,e[8]=d,e[9]=m):m=e[9],m}function Ms(t){const e=h.c(6),{children:s,onClick:a}=t;let o;e[0]!==s||e[1]!==a?(o=n.jsx(H,{variant:"link",className:"p-0.5 h-auto",onClick:a,type:"button",children:s}),e[0]=s,e[1]=a,e[2]=o):o=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(_e,{asChild:!0,children:n.jsx(H,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:n.jsx(Nt,{size:16,className:"opacity-50"})})}),e[3]=l):l=e[3];let i;return e[4]!==o?(i=n.jsxs("div",{className:"flex items-center gap-1",children:[o,l]}),e[4]=o,e[5]=i):i=e[5],i}function As(t){const e=h.c(8),{item:s,fallback:a}=t,o=a===void 0?"":a,l=s?.avatarUrl??"",i=s?.name??o;let r;e[0]!==l||e[1]!==i?(r=n.jsx(G,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=r):r=e[2];const c=s?.name??o;let d;e[3]!==c?(d=n.jsx("span",{children:c}),e[3]=c,e[4]=d):d=e[4];let m;return e[5]!==r||e[6]!==d?(m=n.jsxs("div",{className:"flex items-center gap-2",children:[r,d]}),e[5]=r,e[6]=d,e[7]=m):m=e[7],m}function Ps(t){const e=h.c(6),{children:s,align:a}=t,o=a===void 0?"start":a,i=w.Children.toArray(s).filter(Rs).length===1?"280px":"480px";let r;e[0]!==i?(r={width:i},e[0]=i,e[1]=r):r=e[1];let c;return e[2]!==o||e[3]!==s||e[4]!==r?(c=n.jsx(ke,{align:o,className:"p-0 flex items-start",style:r,children:s}),e[2]=o,e[3]=s,e[4]=r,e[5]=c):c=e[5],c}function Rs(t){return w.isValidElement(t)&&(t.type===Je||t.type===qe)}function qe(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}const Je=qe;function Es(t){const e=h.c(6),{placeholder:s,value:a,onChange:o}=t,l=s===void 0?"Search...":s;let i;e[0]!==o?(i=c=>o(c.target.value),e[0]=o,e[1]=i):i=e[1];let r;return e[2]!==l||e[3]!==i||e[4]!==a?(r=n.jsx(Tt,{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]=r):r=e[5],r}function Ds(t){const e=h.c(6),{children:s,emptyMessage:a}=t,o=a===void 0?"No items found.":a,l=w.Children.count(s)>0;let i;e[0]!==o||e[1]!==l?(i=!l&&n.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:o}),e[0]=o,e[1]=l,e[2]=i):i=e[2];let r;return e[3]!==s||e[4]!==i?(r=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]=r):r=e[5],r}function Ls(t){const e=h.c(15),{item:s,onClick:a,onHover:o,children:l}=t,i=Ts();let r;e[0]!==i||e[1]!==s||e[2]!==o?(r=()=>{i.setHoveredItem(s.slug),o?.(s)},e[0]=i,e[1]=s,e[2]=o,e[3]=r):r=e[3];const c=r;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(G,{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]!==c||e[12]!==d||e[13]!==m?(f=n.jsx(H,{onClick:d,onMouseEnter:c,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=c,e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function Hs(t){const e=h.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 Bs(t){const e=h.c(11),{onClick:s,icon:a,children:o,variant:l}=t,r=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let c;e[0]!==r?(c=z("w-full justify-start font-normal",r),e[0]=r,e[1]=c):c=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]!==o?(m=n.jsx("span",{children:o}),e[4]=o,e[5]=m):m=e[5];let f;return e[6]!==s||e[7]!==c||e[8]!==d||e[9]!==m?(f=n.jsxs(H,{variant:"ghost",size:"sm",className:c,onClick:s,children:[d,m]}),e[6]=s,e[7]=c,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}function Us(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(zs,{}),t[0]=e):e=t[0],e}function Ws(){const t=h.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 R=Object.assign(Os,{Trigger:Ms,CurrentItem:As,Content:Ps,Panel:Je,Search:Es,Items:Ds,Item:Ls,Actions:Hs,Action:Bs,Separator:Us,Skeleton:Ws});function oe(){const t=h.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=we(e),{data:a}=W.useListOrganizations(),o=te();let l;t[1]!==s||t[2]!==a?(l=a?.find(P=>P.slug===s),t[1]=s,t[2]=a,t[3]=l):l=t[3];const i=l,[r,c]=w.useState(""),[d,m]=w.useState(!1);let f,u,b,x,p,g,j,v;if(t[4]!==i||t[5]!==o||t[6]!==s||t[7]!==r||t[8]!==a){const E=(a?(()=>{const B=a.filter(F=>F.name.toLowerCase().includes(r.toLowerCase()));if(s){const F=B.findIndex(X=>X.slug===s);if(F>0){const X=B[F];X&&(B.splice(F,1),B.unshift(X))}}return B})():[]).map(Fs);let D;t[17]!==i?(D=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=D):D=t[18];const ne=D;x=R;let V;t[19]!==o||t[20]!==s?(V=()=>o({to:"/$org",params:{org:s??""}}),t[19]=o,t[20]=s,t[21]=V):V=t[21];let K;t[22]!==ne?(K=n.jsx(R.CurrentItem,{item:ne}),t[22]=ne,t[23]=K):K=t[23],t[24]!==V||t[25]!==K?(v=n.jsx(R.Trigger,{onClick:V,children:K}),t[24]=V,t[25]=K,t[26]=v):v=t[26],b=R.Content,u=R.Panel,t[27]!==r?(j=n.jsx(R.Search,{placeholder:"Search organizations...",value:r,onChange:c}),t[27]=r,t[28]=j):j=t[28],f=R.Items,p="No organizations found.";let J;t[29]!==o?(J=B=>n.jsx(R.Item,{item:B,onClick:F=>o({to:"/$org",params:{org:F.slug}})},B.slug),t[29]=o,t[30]=J):J=t[30],g=E.map(J),t[4]=i,t[5]=o,t[6]=s,t[7]=r,t[8]=a,t[9]=f,t[10]=u,t[11]=b,t[12]=x,t[13]=p,t[14]=g,t[15]=j,t[16]=v}else f=t[9],u=t[10],b=t[11],x=t[12],p=t[13],g=t[14],j=t[15],v=t[16];let N;t[31]!==f||t[32]!==p||t[33]!==g?(N=n.jsx(f,{emptyMessage:p,children:g}),t[31]=f,t[32]=p,t[33]=g,t[34]=N):N=t[34];let _,y;t[35]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(R.Actions,{children:n.jsx(R.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),y=n.jsx(R.Separator,{}),t[35]=_,t[36]=y):(_=t[35],y=t[36]);let k;t[37]!==o?(k=()=>o({to:"/"}),t[37]=o,t[38]=k):k=t[38];let C;t[39]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(Ot,{}),t[39]=C):C=t[39];let $;t[40]!==k?($=n.jsx(R.Actions,{children:n.jsx(R.Action,{onClick:k,icon:C,children:"See all organizations"})}),t[40]=k,t[41]=$):$=t[41];let S;t[42]!==u||t[43]!==$||t[44]!==j||t[45]!==N?(S=n.jsxs(u,{children:[j,N,_,y,$]}),t[42]=u,t[43]=$,t[44]=j,t[45]=N,t[46]=S):S=t[46];let I;t[47]!==b||t[48]!==S?(I=n.jsx(b,{children:S}),t[47]=b,t[48]=S,t[49]=I):I=t[49];let T;t[50]!==x||t[51]!==I||t[52]!==v?(T=n.jsxs(x,{children:[v,I]}),t[50]=x,t[51]=I,t[52]=v,t[53]=T):T=t[53];let O;t[54]!==d?(O=n.jsx(zt,{open:d,onOpenChange:m}),t[54]=d,t[55]=O):O=t[55];let M;return t[56]!==T||t[57]!==O?(M=n.jsxs(n.Fragment,{children:[T,O]}),t[56]=T,t[57]=O,t[58]=M):M=t[58],M}function Fs(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}oe.Skeleton=R.Skeleton;function Vs({prop:t,defaultProp:e,onChange:s=()=>{}}){const[a,o]=Ks({defaultProp:e,onChange:s}),l=t!==void 0,i=l?t:a,r=Ne(s),c=w.useCallback(d=>{if(l){const f=typeof d=="function"?d(t):d;f!==t&&r(f)}else o(d)},[l,t,o,r]);return[i,c]}function Ks({defaultProp:t,onChange:e}){const s=w.useState(t),[a]=s,o=w.useRef(a),l=Ne(e);return w.useEffect(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),s}function Gs(t){const e=h.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(Z.Root,{"data-slot":"drawer",...s}),e[2]=s,e[3]=a):a=e[3],a}function Zs(t){const e=h.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(Z.Trigger,{"data-slot":"drawer-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Ys(t){const e=h.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(Z.Portal,{"data-slot":"drawer-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function qs(t){const e=h.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 o;e[3]!==s?(o=z("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]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx(Z.Overlay,{"data-slot":"drawer-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function Js(t){const e=h.c(12);let s,a,o;e[0]!==t?({className:a,children:s,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o):(s=e[1],a=e[2],o=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(qs,{}),e[4]=l):l=e[4];let i;e[5]!==a?(i=z("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 r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=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]=r):r=e[7];let c;return e[8]!==s||e[9]!==o||e[10]!==i?(c=n.jsxs(Ys,{"data-slot":"drawer-portal",children:[l,n.jsxs(Z.Content,{"data-slot":"drawer-content",className:i,...o,children:[r,s]})]}),e[8]=s,e[9]=o,e[10]=i,e[11]=c):c=e[11],c}function Xs(t){const e=h.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 o;e[3]!==s?(o=z("flex flex-col gap-1.5 px-4 py-2",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx("div",{"data-slot":"drawer-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}function Qs(t){const e=h.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 o;e[3]!==s?(o=z("text-foreground font-semibold",s),e[3]=s,e[4]=o):o=e[4];let l;return e[5]!==a||e[6]!==o?(l=n.jsx(Z.Title,{"data-slot":"drawer-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=l):l=e[7],l}const Xe=w.createContext({setOpen:()=>{}}),ea=()=>w.useContext(Xe),ta=t=>{const e=h.c(25);let s,a,o,l,i;e[0]!==t?({children:s,defaultOpen:a,open:l,onOpenChange:o,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=i):(s=e[1],a=e[2],o=e[3],l=e[4],i=e[5]);const r=a??!1;let c;e[6]!==o||e[7]!==l||e[8]!==r?(c={prop:l,defaultProp:r,onChange:o},e[6]=o,e[7]=l,e[8]=r,e[9]=c):c=e[9];const[d,m]=Vs(c);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(Gs,{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(Pt,{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 x;return e[22]!==f||e[23]!==b?(x=n.jsx(Xe.Provider,{value:f,children:b}),e[22]=f,e[23]=b,e[24]=x):x=e[24],x},sa=t=>{const{children:e,title:s,...a}=t,o=q(),{className:l,...i}=a;return o?n.jsxs(Js,{...i,children:[n.jsx(Xs,{className:"hidden",children:n.jsx(Qs,{children:s})}),n.jsx("div",{className:z("flex flex-col gap-2 p-2 py-4",l),children:e})]}):n.jsx(At,{...a,children:e})},aa=t=>{const{children:e,...s}=t,{setOpen:a}=ea(),o=q(),{className:l,...i}=s;return o?n.jsx("div",{...i,onClick:r=>{a(!1);const{onClick:c}=i;c?.(r)},className:z("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(Rt,{...s,children:e})},na=t=>{const e=h.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 o=q();let l;return e[3]!==s||e[4]!==o||e[5]!==a?(l=o?n.jsx(Zs,{asChild:!0,children:s}):n.jsx(Mt,{...a,children:s}),e[3]=s,e[4]=o,e[5]=a,e[6]=l):l=e[6],l},oa=t=>{const e=h.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 o=q();let l;return e[3]!==s||e[4]!==o||e[5]!==a?(l=o?n.jsx(xe,{className:z(s),...a}):n.jsx(xe,{className:z(s),...a}),e[3]=s,e[4]=o,e[5]=a,e[6]=l):l=e[6],l};function la(t){const e=h.c(11),{user:s,trigger:a,align:o,children:l}=t,i=o===void 0?"start":o;let r;e[0]!==a||e[1]!==s?(r=a(s),e[0]=a,e[1]=s,e[2]=r):r=e[2];let c;e[3]!==r?(c=n.jsx(na,{asChild:!0,children:n.jsx("div",{children:r})}),e[3]=r,e[4]=c):c=e[4];let d;e[5]!==i||e[6]!==l?(d=n.jsx(sa,{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]!==c||e[9]!==d?(m=n.jsxs(ta,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10],m}function ia(t){const e=h.c(8),{children:s,onClick:a,className:o,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 r;return e[4]!==l||e[5]!==o||e[6]!==i?(r=n.jsx(aa,{asChild:l,className:o,children:i}),e[4]=l,e[5]=o,e[6]=i,e[7]=r):r=e[7],r}function ra(t){const e=h.c(2),{className:s}=t;let a;return e[0]!==s?(a=n.jsx(oa,{className:s}),e[0]=s,e[1]=a):a=e[1],a}function ca(){const t=h.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 L=Object.assign(la,{Item:ia,Separator:ra,Skeleton:ca});function da(t){const e=h.c(48),{open:s,onOpenChange:a,user:o,userImage:l}=t,[i,r]=St(),[c,d]=w.useState(!1);let m;e[0]!==o.id?(m=()=>{navigator.clipboard.writeText(o.id),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=o.id,e[1]=m):m=e[1];const f=m;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Et,{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(Dt,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[u,n.jsxs(Lt,{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(Y,{size:16}),n.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[3]=b):b=e[3];const x=o.name||"U";let p;e[4]!==x||e[5]!==l?(p=n.jsx(G,{url:l,fallback:x,shape:"circle",size:"xl",className:"h-16 w-16"}),e[4]=x,e[5]=l,e[6]=p):p=e[6];const g=o.name||"User";let j;e[7]!==g?(j=n.jsx("span",{className:"text-base font-medium text-foreground",children:g}),e[7]=g,e[8]=j):j=e[8];let v;e[9]!==o.email?(v=n.jsx("span",{className:"text-sm text-muted-foreground",children:o.email}),e[9]=o.email,e[10]=v):v=e[10];let N;e[11]!==j||e[12]!==v?(N=n.jsxs("div",{className:"flex flex-col gap-1",children:[j,v]}),e[11]=j,e[12]=v,e[13]=N):N=e[13];let _;e[14]!==p||e[15]!==N?(_=n.jsxs("div",{className:"flex items-center gap-4",children:[p,N]}),e[14]=p,e[15]=N,e[16]=_):_=e[16];let y;e[17]!==i||e[18]!==r?(y=()=>r(!i),e[17]=i,e[18]=r,e[19]=y):y=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[n.jsxs(Ut,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[n.jsx(Ft,{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]=k):k=e[20];let C;e[21]!==i||e[22]!==r?(C=n.jsx("div",{onClick:ma,children:n.jsx(Wt,{checked:i,onCheckedChange:r})}),e[21]=i,e[22]=r,e[23]=C):C=e[23];let $;e[24]!==y||e[25]!==C?($=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,C]}),e[24]=y,e[25]=C,e[26]=$):$=e[26];let S;e[27]!==_||e[28]!==$?(S=n.jsxs("div",{className:"p-5 space-y-6 min-h-[225px]",children:[_,$]}),e[27]=_,e[28]=$,e[29]=S):S=e[29];let I;e[30]!==o.id?(I=n.jsx("span",{className:"font-mono text-xs",children:o.id}),e[30]=o.id,e[31]=I):I=e[31];let T;e[32]!==c?(T=c?n.jsx(ee,{size:14,className:"text-green-600"}):n.jsx(Pe,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[32]=c,e[33]=T):T=e[33];let O;e[34]!==f||e[35]!==I||e[36]!==T?(O=n.jsx(Te,{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:[I,T]})}),e[34]=f,e[35]=I,e[36]=T,e[37]=O):O=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx(Ie,{side:"top",children:n.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[38]=M):M=e[38];let P;e[39]!==O?(P=n.jsx("div",{className:"border-t border-border px-5 py-4 flex items-center shrink-0",children:n.jsx(ze,{children:n.jsxs(Oe,{children:[O,M]})})}),e[39]=O,e[40]=P):P=e[40];let E;e[41]!==S||e[42]!==P?(E=n.jsxs(Ht,{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:[S,P]})]}),e[41]=S,e[42]=P,e[43]=E):E=e[43];let D;return e[44]!==a||e[45]!==s||e[46]!==E?(D=n.jsx(Bt,{open:s,onOpenChange:a,children:E}),e[44]=a,e[45]=s,e[46]=E,e[47]=D):D=e[47],D}function ma(t){return t.stopPropagation()}function fa(t){const e=h.c(47),{user:s,userImage:a}=t,[o,l]=w.useState(!1),[i,r]=w.useState(!1);let c;e[0]!==s.email||e[1]!==s.id||e[2]!==s.name?(c=()=>{const D=`ID: ${s.id}
2
- Name: ${s.name||"N/A"}
3
- Email: ${s.email}`;navigator.clipboard.writeText(D),r(!0),U.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=s.email,e[1]=s.id,e[2]=s.name,e[3]=c):c=e[3];const d=c;let m;e[4]!==s.email||e[5]!==s.name||e[6]!==a?(m=()=>n.jsx(G,{url:a,fallback:s.name||s.email||"U",shape:"circle",size:"sm",className:"cursor-pointer hover:ring-2 ring-muted-foreground transition-all h-7 w-7"}),e[4]=s.email,e[5]=s.name,e[6]=a,e[7]=m):m=e[7];const f=s.name||s.email||"U";let u;e[8]!==f||e[9]!==a?(u=n.jsx(G,{url:a,fallback:f,shape:"circle",size:"sm"}),e[8]=f,e[9]=a,e[10]=u):u=e[10];const b=s.name||"User";let x;e[11]!==b?(x=n.jsx("div",{className:"text-sm font-medium truncate",children:b}),e[11]=b,e[12]=x):x=e[12];let p;e[13]!==s.email?(p=n.jsx("div",{className:"text-xs text-muted-foreground truncate",children:s.email}),e[13]=s.email,e[14]=p):p=e[14];let g;e[15]!==x||e[16]!==p?(g=n.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[x,p]}),e[15]=x,e[16]=p,e[17]=g):g=e[17];let j;e[18]!==i?(j=n.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:i?n.jsx(ee,{size:16,className:"text-green-600"}):n.jsx(Pe,{size:16,className:"text-muted-foreground"})}),e[18]=i,e[19]=j):j=e[19];let v;e[20]!==u||e[21]!==g||e[22]!==j?(v=n.jsxs("div",{className:"group flex items-center gap-3 w-full py-1",children:[u,g,j]}),e[20]=u,e[21]=g,e[22]=j,e[23]=v):v=e[23];let N;e[24]!==d||e[25]!==v?(N=n.jsx(L.Item,{onClick:d,children:v}),e[24]=d,e[25]=v,e[26]=N):N=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(L.Separator,{}),e[27]=_):_=e[27];let y,k;e[28]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsxs(L.Item,{onClick:()=>l(!0),children:[n.jsx(ce,{className:"text-muted-foreground",size:18}),"Profile Settings"]}),k=n.jsx(L.Separator,{}),e[28]=y,e[29]=k):(y=e[28],k=e[29]);let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(ft,{className:"w-4 h-4 text-muted-foreground"}),e[30]=C):C=e[30];let $;e[31]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(L.Item,{asChild:!0,children:n.jsxs("a",{href:"https://github.com/decocms/admin",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[C,"decocms/admin",n.jsx(ge,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[31]=$):$=e[31];let S;e[32]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Le,{className:"text-muted-foreground",size:18}),e[32]=S):S=e[32];let I,T;e[33]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(L.Item,{asChild:!0,children:n.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[S,"Homepage",n.jsx(ge,{size:18,className:"ml-auto text-muted-foreground"})]})}),T=n.jsx(L.Separator,{}),e[33]=I,e[34]=T):(I=e[33],T=e[34]);let O;e[35]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsxs(L.Item,{onClick:ua,children:[n.jsx(Be,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[35]=O):O=e[35];let M;e[36]!==N||e[37]!==m||e[38]!==s?(M=n.jsxs(L,{user:s,trigger:m,align:"end",children:[N,_,y,k,$,I,T,O]}),e[36]=N,e[37]=m,e[38]=s,e[39]=M):M=e[39];let P;e[40]!==o||e[41]!==s||e[42]!==a?(P=o&&n.jsx(da,{open:o,onOpenChange:l,user:s,userImage:a}),e[40]=o,e[41]=s,e[42]=a,e[43]=P):P=e[43];let E;return e[44]!==M||e[45]!==P?(E=n.jsxs(n.Fragment,{children:[M,P]}),e[44]=M,e[45]=P,e[46]=E):E=e[46],E}function ua(){return W.signOut()}function pa(){const t=h.c(7),{data:e}=W.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(G,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const s=e.user,a=s.name??void 0;let o;t[1]!==a||t[2]!==s?(o={...s,name:a},t[1]=a,t[2]=s,t[3]=o):o=t[3];const l=o,i=s.image;let r;return t[4]!==i||t[5]!==l?(r=n.jsx(fa,{user:l,userImage:i}),t[4]=i,t[5]=l,t[6]=r):r=t[6],r}function me(){const t=h.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=re.decoChatOpen(),t[0]=e):e=t[0];const[s,a]=ie(e,ha);let o;return t[1]!==s||t[2]!==a?(o=[s,a],t[1]=s,t[2]=a,t[3]=o):o=t[3],o}function ha(t){return!!(t??!1)}function xa(t){const e=h.c(6),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ut,{children:n.jsx(Se,{})}),e[0]=a):a=e[0];let o;e[1]!==s?(o=n.jsx(pt,{children:s}),e[1]=s,e[2]=o):o=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ht,{children:n.jsx(xt,{to:"/login",replace:!0})}),e[3]=l):l=e[3];let i;return e[4]!==o?(i=n.jsxs(n.Fragment,{children:[a,o,l]}),e[4]=o,e[5]=i):i=e[5],i}function ga(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function ba(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("flex items-center justify-center px-2.5 h-full border-r border-border",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function ja(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("flex items-center gap-2 px-2 h-full",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function va(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("flex items-center gap-2 px-2 h-full flex-1",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function wa(t){const e=h.c(5),{children:s,className:a}=t;let o;e[0]!==a?(o=z("flex items-center gap-2 px-2 h-full ml-auto",a),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==s||e[3]!==o?(l=n.jsx("div",{className:o,children:s}),e[2]=s,e[3]=o,e[4]=l):l=e[4],l}function Na(){const t=h.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex items-center justify-center px-2 h-full border-r border-border",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"flex items-center gap-2 px-2 h-full",children:n.jsx("div",{className:"w-32 h-6 bg-muted rounded-md animate-pulse"})}),t[1]=s):s=t[1];let a;return t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsxs("div",{className:"fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",children:[e,s,n.jsx("div",{className:"flex items-center gap-2 px-2 h-full ml-auto",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"})})]}),t[2]=a):a=t[2],a}const Q=Object.assign(ga,{Sidebar:ba,Left:ja,Center:va,Right:wa,Skeleton:Na});function Qe(){const t=h.c(3),{toggleSidebar:e}=de();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(He,{className:"text-muted-foreground/85 group-hover:text-foreground transition-colors",size:18}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(n.Fragment,{children:n.jsx(H,{onClick:e,size:"icon",variant:"ghost",className:"w-7 h-7 rounded-md",children:s})}),t[1]=e,t[2]=a):a=t[2],a}Qe.Skeleton=function(){return n.jsx("div",{className:"w-7 h-7 bg-muted rounded-md animate-pulse"})};const Sa="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png";function ya(){const t=h.c(45),{org:e}=se(),[,s]=me(),{selectedVirtualMcp:a,modelsConnections:o,isChatEmpty:l,activeThreadId:i,setActiveThreadId:r,threads:c}=Ct();let d;if(t[0]!==i||t[1]!==c){let $;t[3]!==i?($=S=>S.id===i,t[3]=i,t[4]=$):$=t[4],d=c.find($),t[0]=i,t[1]=c,t[2]=d}else d=t[2];const m=d;if(o.length===0){let $;t[5]===Symbol.for("react.memo_cache_sentinel")?($=n.jsxs(A.Header.Left,{children:[n.jsx("img",{src:Sa,alt:"Chat",className:"size-5 rounded"}),n.jsx("span",{className:"text-sm font-medium",children:"Chat"})]}),t[5]=$):$=t[5];let S;t[6]!==s?(S=()=>s(!1),t[6]=s,t[7]=S):S=t[7];let I;t[8]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(Y,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[8]=I):I=t[8];let T;t[9]!==S?(T=n.jsxs(A.Header,{children:[$,n.jsx(A.Header.Right,{children:n.jsx("button",{type:"button",onClick:S,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:I})})]}),t[9]=S,t[10]=T):T=t[10];let O;t[11]!==e?(O=n.jsx(A.Main,{className:"flex flex-col items-center",children:n.jsx(A.EmptyState,{children:n.jsx(A.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[11]=e,t[12]=O):O=t[12];let M;return t[13]!==T||t[14]!==O?(M=n.jsxs(A,{children:[T,O]}),t[13]=T,t[14]=O,t[15]=M):M=t[15],M}let f;t[16]!==m||t[17]!==l?(f=n.jsx(A.Header.Left,{children:!l&&m?.title?n.jsx(Vt,{text:m.title,className:"text-sm font-medium text-foreground"}):n.jsx("span",{className:"text-sm font-medium text-foreground",children:"Chat"})}),t[16]=m,t[17]=l,t[18]=f):f=t[18];let u;t[19]!==r?(u=()=>r(crypto.randomUUID()),t[19]=r,t[20]=u):u=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Yt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[21]=b):b=t[21];let x;t[22]!==u?(x=n.jsx("button",{type:"button",onClick:u,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"New chat",children:b}),t[22]=u,t[23]=x):x=t[23];let p;t[24]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(A.ThreadHistoryPopover,{}),t[24]=p):p=t[24];let g;t[25]!==s?(g=()=>s(!1),t[25]=s,t[26]=g):g=t[26];let j;t[27]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Y,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=j):j=t[27];let v;t[28]!==g?(v=n.jsx("button",{type:"button",onClick:g,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:j}),t[28]=g,t[29]=v):v=t[29];let N;t[30]!==x||t[31]!==v?(N=n.jsxs(A.Header.Right,{children:[x,p,v]}),t[30]=x,t[31]=v,t[32]=N):N=t[32];let _;t[33]!==f||t[34]!==N?(_=n.jsxs(A.Header,{children:[f,N]}),t[33]=f,t[34]=N,t[35]=_):_=t[35];let y;t[36]!==l||t[37]!==a?.description||t[38]!==a?.icon||t[39]!==a?.title?(y=n.jsx(A.Main,{children:l?n.jsx(A.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($t,{icon:a?.icon??"/favicon.svg",name:a?.title||"Chat",size:"lg",fallbackIcon:n.jsx(Ae,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:a?.title||"Chat"}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:a?.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(A.IceBreakers,{})]})}):n.jsx(A.Messages,{minHeightOffset:280})}),t[36]=l,t[37]=a?.description,t[38]=a?.icon,t[39]=a?.title,t[40]=y):y=t[40];let k;t[41]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(A.Footer,{children:n.jsx(A.Input,{})}),t[41]=k):k=t[41];let C;return t[42]!==_||t[43]!==y?(C=n.jsxs(A,{children:[_,y,k]}),t[42]=_,t[43]=y,t[44]=C):C=t[44],C}function Ca(){const t=h.c(6),{threads:e,hasNextPage:s,isFetchingNextPage:a,fetchNextPage:o}=yt();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ya,{}),t[0]=l):l=t[0];let i;return t[1]!==o||t[2]!==s||t[3]!==a||t[4]!==e?(i=n.jsx(A.Provider,{initialThreads:e,hasNextPage:s,isFetchingNextPage:a,fetchNextPage:o,children:l}),t[1]=o,t[2]=s,t[3]=a,t[4]=e,t[5]=i):i=t[5],i}function _a(){const t=h.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(A.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx($e,{fallback:e,children:n.jsx(w.Suspense,{fallback:n.jsx(A.Skeleton,{}),children:n.jsx(Ca,{})})}),t[1]=s):s=t[1],s}function je({showSidebarToggle:t=!1,showOrgSwitcher:e=!1,showDecoChat:s=!1,disableDecoChat:a=!1}){const[o,l]=me(),i=w.useRef(a);a&&o&&i.current!==a&&l(!1),i.current=a;const r=()=>{a||l(c=>!c)};return n.jsxs(Q,{children:[t&&n.jsx(Q.Sidebar,{children:n.jsx(Qe,{})}),n.jsx(Q.Left,{children:e&&n.jsx(w.Suspense,{fallback:n.jsx(oe.Skeleton,{}),children:n.jsx(oe,{})})}),n.jsxs(Q.Right,{className:"gap-2",children:[n.jsx(Jt,{}),s&&!a&&n.jsxs(H,{size:"sm",variant:"default",onClick:r,className:"h-7 gap-2",children:[n.jsx(Kt,{size:16}),"Chat"]}),n.jsx(pa,{})]})]})}function ka(t){const e=h.c(10),{children:s,className:a}=t,[,o]=w.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=re.decoChatPanelWidth(),e[0]=l):l=e[0];const[i,r]=ie(l,30);let c;e[1]!==r?(c=u=>o(()=>r(u)),e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==a?(m=z("min-w-0",a),e[3]=a,e[4]=m):m=e[4];let f;return e[5]!==i||e[6]!==s||e[7]!==d||e[8]!==m?(f=n.jsx(Re,{defaultSize:i,minSize:20,className:m,onResize:d,children:s}),e[5]=i,e[6]=s,e[7]=d,e[8]=m,e[9]=f):f=e[9],f}function $a(t){const e=h.c(5),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=re.sidebarOpen(),e[0]=a):a=e[0];const[o,l]=ie(a,!0);let i;return e[1]!==s||e[2]!==l||e[3]!==o?(i=n.jsx(ms,{open:o,onOpenChange:l,children:s}),e[1]=s,e[2]=l,e[3]=o,e[4]=i):i=e[4],i}function Ia(t){const e=h.c(12),{disableChat:s}=t,a=s===void 0?!1:s,[o]=me(),l=o&&!a;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(Re,{className:"bg-background",children:n.jsx(ye,{})}),e[0]=i):i=e[0];let r;e[1]!==a||e[2]!==l?(r=!a&&n.jsx(Gt,{withHandle:l}),e[1]=a,e[2]=l,e[3]=r):r=e[3];const c=l?"max-w-none":"max-w-0";let d;e[4]!==c?(d=z(c),e[4]=c,e[5]=d):d=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(_a,{}),e[6]=m):m=e[6];let f;e[7]!==d?(f=n.jsx(ka,{className:d,children:m}),e[7]=d,e[8]=f):f=e[8];let u;return e[9]!==r||e[10]!==f?(u=n.jsxs(Zt,{direction:"horizontal",children:[i,r,f]}),e[9]=r,e[10]=f,e[11]=u):u=e[11],u}function za(){const t=h.c(22);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=we(e),a=ve(),o=a.location.pathname===`/${s}`||a.location.pathname===`/${s}/`;let l;t[1]!==s?(l=jt.activeOrganization(s),t[1]=s,t[2]=l):l=t[2];let i;t[3]!==s?(i=async()=>{if(!s)return null;const{data:p}=await W.organization.setActive({organizationSlug:s});return{org:p,project:{slug:vt}}},t[3]=s,t[4]=i):i=t[4];let r;t[5]!==l||t[6]!==i?(r={queryKey:l,queryFn:i,gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1},t[5]=l,t[6]=i,t[7]=r):r=t[7];const{data:c}=gt(r);if(!c){let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(je,{}),t[8]=p):p=t[8];let g;return t[9]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs("div",{className:"min-h-screen bg-background",children:[p,n.jsx("div",{className:"pt-12",children:n.jsx(ye,{})})]}),t[9]=g):g=t[9],g}let d;t[10]!==o?(d=n.jsx(je,{showSidebarToggle:!0,showOrgSwitcher:!0,showDecoChat:!0,disableDecoChat:o}),t[10]=o,t[11]=d):d=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={"--sidebar-width":"13rem","--sidebar-width-mobile":"11rem"},t[12]=m):m=t[12];let f;t[13]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Is,{}),t[13]=f):f=t[13];let u;t[14]!==o?(u=n.jsxs(ps,{className:"flex-1 bg-sidebar",style:m,children:[f,n.jsx(xs,{className:"pt-12",children:n.jsx(Ia,{disableChat:o})})]}),t[14]=o,t[15]=u):u=t[15];let b;t[16]!==d||t[17]!==u?(b=n.jsx($a,{children:n.jsxs("div",{className:"flex flex-col h-screen",children:[d,u]})}),t[16]=d,t[17]=u,t[18]=b):b=t[18];let x;return t[19]!==c||t[20]!==b?(x=n.jsx(bt,{...c,children:b}),t[19]=c,t[20]=b,t[21]=x):x=t[21],x}function An(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(xa,{children:n.jsx(w.Suspense,{fallback:n.jsx(Se,{}),children:n.jsx(za,{})})}),t[0]=e):e=t[0],e}export{An as default};
@@ -1,16 +0,0 @@
1
- import{r as d,c as V,j as v}from"./index-CSKo3AB-.js";import{c as j}from"./button-CFAZeZNj.js";const b=({size:a=24,color:e="currentColor",...t})=>d.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},d.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 L(a){const e=V.c(22),{text:t,className:C,speed:k}=a,h=C===void 0?"":C,E=k===void 0?30:k,[N,g]=d.useState(!1),s=t.length/E*1e3,w=t.length,f=`${t.length}ch`;let o;e[0]!==s?(o=()=>{g(!1);const T=setTimeout(()=>{g(!0)},s);return()=>clearTimeout(T)},e[0]=s,e[1]=o):o=e[1];let c;e[2]!==s||e[3]!==t?(c=[t,s],e[2]=s,e[3]=t,e[4]=c):c=e[4],d.useEffect(o,c);let n;e[5]!==h?(n=j(h,"block overflow-hidden"),e[5]=h,e[6]=n):n=e[6];const u=`${s}ms`;let l;e[7]!==f||e[8]!==w||e[9]!==u?(l={"--typewriter-duration":u,"--typewriter-steps":w,"--typewriter-max-width":f},e[7]=f,e[8]=w,e[9]=u,e[10]=l):l=e[10];const y=l,x=N&&"truncate";let r;e[11]!==x?(r=j("typewriter-text",x),e[11]=x,e[12]=r):r=e[12];let i;e[13]!==r||e[14]!==t?(i=v.jsx("span",{className:r,children:t}),e[13]=r,e[14]=t,e[15]=i):i=e[15];let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=v.jsx("style",{children:`
2
- .typewriter-text {
3
- display: inline-block;
4
- width: 0;
5
- max-width: 100%;
6
- overflow: hidden;
7
- white-space: nowrap;
8
- animation: typewriter var(--typewriter-duration) steps(var(--typewriter-steps)) forwards;
9
- }
10
-
11
- @keyframes typewriter {
12
- to {
13
- width: min(var(--typewriter-max-width), 100%);
14
- }
15
- }
16
- `}),e[16]=m):m=e[16];let p;return e[17]!==i||e[18]!==n||e[19]!==y||e[20]!==t?(p=v.jsxs("span",{className:n,style:y,children:[i,m]},t),e[17]=i,e[18]=n,e[19]=y,e[20]=t,e[21]=p):p=e[21],p}export{L as T,b as t};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-DITl44kb.js";import{W as i}from"./index-CSKo3AB-.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{W as u,X as s}from"./index-CSKo3AB-.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -1 +0,0 @@
1
- import{r as H,ae as A,j as c,ai as M,aj as ge,bz as h,b8 as he,b9 as X,aq as pe,b6 as be,b7 as me,m as ve,c as Y}from"./index-CSKo3AB-.js";import{c as Z}from"./button-CFAZeZNj.js";var ee="Toggle",te=H.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:a,...o}=t,[i,s]=A({prop:r,onChange:a,defaultProp:n??!1,caller:ee});return c.jsx(M.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...o,ref:e,onClick:ge(t.onClick,()=>{t.disabled||s(!i)})})});te.displayName=ee;var b="ToggleGroup",[re]=pe(b,[X]),ne=X(),S=h.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const a=n;return c.jsx(we,{...a,ref:e})}if(r==="multiple"){const a=n;return c.jsx(ye,{...a,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${b}\``)});S.displayName=b;var[ae,ie]=re(b),we=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??"",onChange:a,caller:b});return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"single",value:h.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:h.useCallback(()=>s(""),[s]),children:c.jsx(oe,{...o,ref:e})})}),ye=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??[],onChange:a,caller:b}),f=h.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=h.useCallback(l=>s((d=[])=>d.filter(xe=>xe!==l)),[s]);return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:f,onItemDeactivate:u,children:c.jsx(oe,{...o,ref:e})})});S.displayName=b;var[$e,Ne]=re(b),oe=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:o,dir:i,loop:s=!0,...f}=t,u=ne(r),l=be(i),d={role:"group",dir:l,...f};return c.jsx($e,{scope:r,rovingFocus:a,disabled:n,children:a?c.jsx(me,{asChild:!0,...u,orientation:o,dir:l,loop:s,children:c.jsx(M.div,{...d,ref:e})}):c.jsx(M.div,{...d,ref:e})})}),k="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(k,t.__scopeToggleGroup),n=Ne(k,t.__scopeToggleGroup),a=ne(t.__scopeToggleGroup),o=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:o,disabled:i},f=h.useRef(null);return n.rovingFocus?c.jsx(he,{asChild:!0,...a,focusable:!i,active:o,ref:f,children:c.jsx(D,{...s,ref:e})}):c.jsx(D,{...s,ref:e})});se.displayName=k;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(k,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return c.jsx(te,{...s,...a,ref:e,onPressedChange:f=>{f?o.onItemActivate(n):o.onItemDeactivate(n)}})}),Ge=S,Pe=se;const Re=ve("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=H.createContext({size:"default",variant:"default"});function Ye(t){const e=Y.c(20);let r,n,a,o,i;e[0]!==t?({className:n,variant:i,size:o,children:r,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);let s;e[6]!==n?(s=Z("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",n),e[6]=n,e[7]=s):s=e[7];let f;e[8]!==o||e[9]!==i?(f={variant:i,size:o},e[8]=o,e[9]=i,e[10]=f):f=e[10];let u;e[11]!==r||e[12]!==f?(u=c.jsx(fe.Provider,{value:f,children:r}),e[11]=r,e[12]=f,e[13]=u):u=e[13];let l;return e[14]!==a||e[15]!==o||e[16]!==s||e[17]!==u||e[18]!==i?(l=c.jsx(Ge,{"data-slot":"toggle-group","data-variant":i,"data-size":o,className:s,...a,children:u}),e[14]=a,e[15]=o,e[16]=s,e[17]=u,e[18]=i,e[19]=l):l=e[19],l}function Ze(t){const e=Y.c(18);let r,n,a,o,i;e[0]!==t?({className:n,children:r,variant:i,size:o,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);const s=H.useContext(fe),f=s.variant||i,u=s.size||o;let l;e[6]!==n||e[7]!==s.size||e[8]!==s.variant||e[9]!==o||e[10]!==i?(l=Z(Re({variant:s.variant||i,size:s.size||o}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",n),e[6]=n,e[7]=s.size,e[8]=s.variant,e[9]=o,e[10]=i,e[11]=l):l=e[11];let d;return e[12]!==r||e[13]!==a||e[14]!==f||e[15]!==u||e[16]!==l?(d=c.jsx(Pe,{"data-slot":"toggle-group-item","data-variant":f,"data-size":u,className:l,...a,children:r}),e[12]=r,e[13]=a,e[14]=f,e[15]=u,e[16]=l,e[17]=d):d=e[17],d}function V(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function le(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function G(){}var y=.7,j=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ke=/^#([0-9a-f]{3,8})$/,je=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Ce=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),Te=new RegExp(`^rgba\\(${w},${w},${w},${$}\\)$`),_e=new RegExp(`^rgba\\(${p},${p},${p},${$}\\)$`),Me=new RegExp(`^hsl\\(${$},${p},${p}\\)$`),Ie=new RegExp(`^hsla\\(${$},${p},${p},${$}\\)$`),F={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};V(G,N,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:Ee,formatHsl:ze,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function ze(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ke.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?L(e):r===3?new x(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?P(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?P(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=je.exec(t))?new x(e[1],e[2],e[3],1):(e=Ce.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Te.exec(t))?P(e[1],e[2],e[3],e[4]):(e=_e.exec(t))?P(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Me.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=Ie.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?L(F[t]):t==="transparent"?new x(NaN,NaN,NaN,0):null}function L(t){return new x(t>>16&255,t>>8&255,t&255,1)}function P(t,e,r,n){return n<=0&&(t=e=r=NaN),new x(t,e,r,n)}function He(t){return t instanceof G||(t=N(t)),t?(t=t.rgb(),new x(t.r,t.g,t.b,t.opacity)):new x}function I(t,e,r,n){return arguments.length===1?He(t):new x(t,e,r,n??1)}function x(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}V(x,I,le(G,{brighter(t){return t=t==null?j:Math.pow(j,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new x(v(this.r),v(this.g),v(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U,formatHex:U,formatHex8:Ae,formatRgb:J,toString:J}));function U(){return`#${m(this.r)}${m(this.g)}${m(this.b)}`}function Ae(){return`#${m(this.r)}${m(this.g)}${m(this.b)}${m((isNaN(this.opacity)?1:this.opacity)*255)}`}function J(){const t=C(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function C(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function v(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function m(t){return t=v(t),(t<16?"0":"")+t.toString(16)}function K(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new g(t,e,r,n)}function ue(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);if(t instanceof G||(t=N(t)),!t)return new g;if(t instanceof g)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=NaN,s=o-a,f=(o+a)/2;return s?(e===o?i=(r-n)/s+(r<n)*6:r===o?i=(n-e)/s+2:i=(e-r)/s+4,s/=f<.5?o+a:2-o-a,i*=60):s=f>0&&f<1?0:i,new g(i,s,f,t.opacity)}function Se(t,e,r,n){return arguments.length===1?ue(t):new g(t,e,r,n??1)}function g(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}V(g,Se,le(G,{brighter(t){return t=t==null?j:Math.pow(j,t),new g(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new x(T(t>=240?t-240:t+120,a,n),T(t,a,n),T(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),R(this.s),R(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=C(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${R(this.s)*100}%, ${R(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function R(t){return Math.max(0,Math.min(1,t||0))}function T(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const q=t=>()=>t;function Ve(t,e){return function(r){return t+r*e}}function qe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function De(t){return(t=+t)==1?ce:function(e,r){return r-e?qe(e,r,t):q(isNaN(e)?r:e)}}function ce(t,e){var r=e-t;return r?Ve(t,r):q(isNaN(t)?e:t)}const W=(function t(e){var r=De(e);function n(a,o){var i=r((a=I(a)).r,(o=I(o)).r),s=r(a.g,o.g),f=r(a.b,o.b),u=ce(a.opacity,o.opacity);return function(l){return a.r=i(l),a.g=s(l),a.b=f(l),a.opacity=u(l),a+""}}return n.gamma=t,n})(1);function Fe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=t[a]*(1-o)+e[a]*o;return n}}function Oe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Be(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),o=new Array(r),i;for(i=0;i<n;++i)a[i]=de(t[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(s){for(i=0;i<n;++i)o[i]=a[i](s);return o}}function Le(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function E(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ue(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=de(t[a],e[a]):n[a]=e[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(z.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=z.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=z.exec(t))&&(a=_.exec(e));)(o=a.index)>r&&(o=e.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,f.push({i,x:E(n,a)})),r=_.lastIndex;return r<e.length&&(o=e.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?f[0]?Ke(f[0].x):Je(e):(e=f.length,function(u){for(var l=0,d;l<e;++l)s[(d=f[l]).i]=d.x(u);return s.join("")})}function de(t,e){var r=typeof e,n;return e==null||r==="boolean"?q(e):(r==="number"?E:r==="string"?(n=N(e))?(e=n,W):Qe:e instanceof N?W:e instanceof Date?Le:Oe(e)?Fe:Array.isArray(e)?Be:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ue:E)(t,e)}export{Ze as T,W as a,Qe as b,N as c,de as d,Ye as e,E as i};
@@ -1 +0,0 @@
1
- import{u as k,e as L,f as P,r as v,j as e,c as B}from"./index-CSKo3AB-.js";import{b as _}from"./constants-00bCXGh6.js";import{C as R}from"./collection-tab-DaMZyMNK.js";import{a as z,b as A}from"./use-connection-M951sLQc.js";import{B as y}from"./button-CFAZeZNj.js";import{E as F}from"./empty-state-D5F6myv7.js";import{C as M}from"./collection-header-BRPxBXdV.js";import{a as O,b as H}from"./use-binding-DWMAlJMq.js";import{i as T}from"./Loading01-DQ8Kn5fo.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-KL6yy337.js";import"./dropdown-menu-BSCcMvpq.js";import"./Grid01-z7B51opS.js";import"./ArrowUp-R0MaTaQm.js";import"./Check-Dl4vgpiq.js";import"./List-DjfxyLsa.js";import"./tooltip-C6p3ZTWD.js";import"./view-mode-toggle-CHe5z87O.js";import"./collection-search-38g04oQk.js";import"./SearchMd-HI2aO3Sf.js";import"./input-dDHeSId1.js";import"./card-BNUgm4Cj.js";import"./Copy01-Dwxl1_b8.js";import"./DotsVertical-7fR0Oh92.js";import"./Edit01-eTcj7luW.js";import"./use-list-state-6d2DWIZc.js";import"./use-mobile-npvaN7oN.js";import"./Trash01-BvTKgpoJ.js";import"./collection-table-wrapper-a4UtkhWO.js";import"./empty-state-MJclvS0E.js";import"./Inbox01-DN0A5urx.js";import"./avatar-Cbkc6T1n.js";import"./useQuery-CErcyT2z.js";import"./pin-to-sidebar-button-DTtHVcuw.js";import"./use-organization-settings-D2PS4P0Y.js";import"./useMutation-B-hML37f.js";import"./use-collections-DxVui4KR.js";import"./constants-DViIPxIH.js";import"./alert-dialog-UkKJZN3T.js";import"./Plus-BcDBhW0L.js";import"./layout-eAPYoLHe.js";import"./ArrowLeft-CXYe7OQX.js";import"./binder-D0pyLP77.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=k(),{data:h}=L.useSession(),p=P(),[a,w]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){w(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{w(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=B.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=k(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),N=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let b;t[10]===Symbol.for("react.memo_cache_sentinel")?(b=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=b):b=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[b,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==N||t[20]!==m?(g=N?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=N,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let I;return t[25]!==d||t[26]!==x?(I=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=I):I=t[27],I}function _t(){const i=B.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{_t as default};